configure revision 2d861bc5
144d7874bSmrg#! /bin/sh
244d7874bSmrg# Guess values for system-dependent variables and create Makefiles.
32d861bc5Smrg# Generated by GNU Autoconf 2.68 for beforelight 1.0.4.
444d7874bSmrg#
544d7874bSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
644d7874bSmrg#
72d861bc5Smrg#
82d861bc5Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
92d861bc5Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
102d861bc5Smrg# Foundation, Inc.
112d861bc5Smrg#
122d861bc5Smrg#
1344d7874bSmrg# This configure script is free software; the Free Software Foundation
1444d7874bSmrg# gives unlimited permission to copy, distribute and modify it.
152d861bc5Smrg## -------------------- ##
162d861bc5Smrg## M4sh Initialization. ##
172d861bc5Smrg## -------------------- ##
1844d7874bSmrg
192d861bc5Smrg# Be more Bourne compatible
202d861bc5SmrgDUALCASE=1; export DUALCASE # for MKS sh
212d861bc5Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2244d7874bSmrg  emulate sh
2344d7874bSmrg  NULLCMD=:
242d861bc5Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2544d7874bSmrg  # is contrary to our usage.  Disable this feature.
2644d7874bSmrg  alias -g '${1+"$@"}'='"$@"'
272d861bc5Smrg  setopt NO_GLOB_SUBST
282d861bc5Smrgelse
292d861bc5Smrg  case `(set -o) 2>/dev/null` in #(
302d861bc5Smrg  *posix*) :
312d861bc5Smrg    set -o posix ;; #(
322d861bc5Smrg  *) :
332d861bc5Smrg     ;;
342d861bc5Smrgesac
3544d7874bSmrgfi
3644d7874bSmrg
372d861bc5Smrg
382d861bc5Smrgas_nl='
392d861bc5Smrg'
402d861bc5Smrgexport as_nl
412d861bc5Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
422d861bc5Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
432d861bc5Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
442d861bc5Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
452d861bc5Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
462d861bc5Smrg# but without wasting forks for bash or zsh.
472d861bc5Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
482d861bc5Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
492d861bc5Smrg  as_echo='print -r --'
502d861bc5Smrg  as_echo_n='print -rn --'
512d861bc5Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
522d861bc5Smrg  as_echo='printf %s\n'
532d861bc5Smrg  as_echo_n='printf %s'
5444d7874bSmrgelse
552d861bc5Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
562d861bc5Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
572d861bc5Smrg    as_echo_n='/usr/ucb/echo -n'
582d861bc5Smrg  else
592d861bc5Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
602d861bc5Smrg    as_echo_n_body='eval
612d861bc5Smrg      arg=$1;
622d861bc5Smrg      case $arg in #(
632d861bc5Smrg      *"$as_nl"*)
642d861bc5Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
652d861bc5Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
662d861bc5Smrg      esac;
672d861bc5Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
682d861bc5Smrg    '
692d861bc5Smrg    export as_echo_n_body
702d861bc5Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
712d861bc5Smrg  fi
722d861bc5Smrg  export as_echo_body
732d861bc5Smrg  as_echo='sh -c $as_echo_body as_echo'
742d861bc5Smrgfi
752d861bc5Smrg
762d861bc5Smrg# The user is always right.
772d861bc5Smrgif test "${PATH_SEPARATOR+set}" != set; then
782d861bc5Smrg  PATH_SEPARATOR=:
792d861bc5Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
802d861bc5Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
812d861bc5Smrg      PATH_SEPARATOR=';'
822d861bc5Smrg  }
8344d7874bSmrgfi
8444d7874bSmrg
8544d7874bSmrg
862d861bc5Smrg# IFS
872d861bc5Smrg# We need space, tab and new line, in precisely that order.  Quoting is
882d861bc5Smrg# there to prevent editors from complaining about space-tab.
892d861bc5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
902d861bc5Smrg# splitting by setting IFS to empty value.)
912d861bc5SmrgIFS=" ""	$as_nl"
922d861bc5Smrg
932d861bc5Smrg# Find who we are.  Look in the path if we contain no directory separator.
942d861bc5Smrgas_myself=
952d861bc5Smrgcase $0 in #((
962d861bc5Smrg  *[\\/]* ) as_myself=$0 ;;
972d861bc5Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982d861bc5Smrgfor as_dir in $PATH
992d861bc5Smrgdo
1002d861bc5Smrg  IFS=$as_save_IFS
1012d861bc5Smrg  test -z "$as_dir" && as_dir=.
1022d861bc5Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1032d861bc5Smrg  done
1042d861bc5SmrgIFS=$as_save_IFS
1052d861bc5Smrg
1062d861bc5Smrg     ;;
1072d861bc5Smrgesac
1082d861bc5Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1092d861bc5Smrg# in which case we are not to be found in the path.
1102d861bc5Smrgif test "x$as_myself" = x; then
1112d861bc5Smrg  as_myself=$0
1122d861bc5Smrgfi
1132d861bc5Smrgif test ! -f "$as_myself"; then
1142d861bc5Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1152d861bc5Smrg  exit 1
1162d861bc5Smrgfi
1172d861bc5Smrg
1182d861bc5Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1192d861bc5Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1202d861bc5Smrg# suppresses any "Segmentation fault" message there.  '((' could
1212d861bc5Smrg# trigger a bug in pdksh 5.2.14.
1222d861bc5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1232d861bc5Smrgdo eval test x\${$as_var+set} = xset \
1242d861bc5Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1252d861bc5Smrgdone
12644d7874bSmrgPS1='$ '
12744d7874bSmrgPS2='> '
12844d7874bSmrgPS4='+ '
12944d7874bSmrg
13044d7874bSmrg# NLS nuisances.
1312d861bc5SmrgLC_ALL=C
1322d861bc5Smrgexport LC_ALL
1332d861bc5SmrgLANGUAGE=C
1342d861bc5Smrgexport LANGUAGE
1352d861bc5Smrg
1362d861bc5Smrg# CDPATH.
1372d861bc5Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1382d861bc5Smrg
1392d861bc5Smrgif test "x$CONFIG_SHELL" = x; then
1402d861bc5Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1412d861bc5Smrg  emulate sh
1422d861bc5Smrg  NULLCMD=:
1432d861bc5Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1442d861bc5Smrg  # is contrary to our usage.  Disable this feature.
1452d861bc5Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1462d861bc5Smrg  setopt NO_GLOB_SUBST
1472d861bc5Smrgelse
1482d861bc5Smrg  case \`(set -o) 2>/dev/null\` in #(
1492d861bc5Smrg  *posix*) :
1502d861bc5Smrg    set -o posix ;; #(
1512d861bc5Smrg  *) :
1522d861bc5Smrg     ;;
1532d861bc5Smrgesac
1542d861bc5Smrgfi
1552d861bc5Smrg"
1562d861bc5Smrg  as_required="as_fn_return () { (exit \$1); }
1572d861bc5Smrgas_fn_success () { as_fn_return 0; }
1582d861bc5Smrgas_fn_failure () { as_fn_return 1; }
1592d861bc5Smrgas_fn_ret_success () { return 0; }
1602d861bc5Smrgas_fn_ret_failure () { return 1; }
1612d861bc5Smrg
1622d861bc5Smrgexitcode=0
1632d861bc5Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1642d861bc5Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1652d861bc5Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1662d861bc5Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1672d861bc5Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1682d861bc5Smrg
1692d861bc5Smrgelse
1702d861bc5Smrg  exitcode=1; echo positional parameters were not saved.
1712d861bc5Smrgfi
1722d861bc5Smrgtest x\$exitcode = x0 || exit 1"
1732d861bc5Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1742d861bc5Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1752d861bc5Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1762d861bc5Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1772d861bc5Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1782d861bc5Smrg  if (eval "$as_required") 2>/dev/null; then :
1792d861bc5Smrg  as_have_required=yes
1802d861bc5Smrgelse
1812d861bc5Smrg  as_have_required=no
1822d861bc5Smrgfi
1832d861bc5Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1842d861bc5Smrg
1852d861bc5Smrgelse
1862d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872d861bc5Smrgas_found=false
1882d861bc5Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18944d7874bSmrgdo
1902d861bc5Smrg  IFS=$as_save_IFS
1912d861bc5Smrg  test -z "$as_dir" && as_dir=.
1922d861bc5Smrg  as_found=:
1932d861bc5Smrg  case $as_dir in #(
1942d861bc5Smrg	 /*)
1952d861bc5Smrg	   for as_base in sh bash ksh sh5; do
1962d861bc5Smrg	     # Try only shells that exist, to save several forks.
1972d861bc5Smrg	     as_shell=$as_dir/$as_base
1982d861bc5Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1992d861bc5Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2002d861bc5Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2012d861bc5Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2022d861bc5Smrg  break 2
2032d861bc5Smrgfi
2042d861bc5Smrgfi
2052d861bc5Smrg	   done;;
2062d861bc5Smrg       esac
2072d861bc5Smrg  as_found=false
2082d861bc5Smrgdone
2092d861bc5Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2102d861bc5Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2112d861bc5Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2122d861bc5Smrgfi; }
2132d861bc5SmrgIFS=$as_save_IFS
2142d861bc5Smrg
2152d861bc5Smrg
2162d861bc5Smrg      if test "x$CONFIG_SHELL" != x; then :
2172d861bc5Smrg  # We cannot yet assume a decent shell, so we have to provide a
2182d861bc5Smrg	# neutralization value for shells without unset; and this also
2192d861bc5Smrg	# works around shells that cannot unset nonexistent variables.
2202d861bc5Smrg	# Preserve -v and -x to the replacement shell.
2212d861bc5Smrg	BASH_ENV=/dev/null
2222d861bc5Smrg	ENV=/dev/null
2232d861bc5Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2242d861bc5Smrg	export CONFIG_SHELL
2252d861bc5Smrg	case $- in # ((((
2262d861bc5Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2272d861bc5Smrg	  *v* ) as_opts=-v ;;
2282d861bc5Smrg	  *x* ) as_opts=-x ;;
2292d861bc5Smrg	  * ) as_opts= ;;
2302d861bc5Smrg	esac
2312d861bc5Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2322d861bc5Smrgfi
2332d861bc5Smrg
2342d861bc5Smrg    if test x$as_have_required = xno; then :
2352d861bc5Smrg  $as_echo "$0: This script requires a shell more modern than all"
2362d861bc5Smrg  $as_echo "$0: the shells that I found on your system."
2372d861bc5Smrg  if test x${ZSH_VERSION+set} = xset ; then
2382d861bc5Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2392d861bc5Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24044d7874bSmrg  else
2412d861bc5Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2422d861bc5Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2432d861bc5Smrg$0: about your system, including any error possibly output
2442d861bc5Smrg$0: before this message. Then install a modern shell, or
2452d861bc5Smrg$0: manually run the script under such a shell if you do
2462d861bc5Smrg$0: have one."
24744d7874bSmrg  fi
2482d861bc5Smrg  exit 1
2492d861bc5Smrgfi
2502d861bc5Smrgfi
2512d861bc5Smrgfi
2522d861bc5SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2532d861bc5Smrgexport SHELL
2542d861bc5Smrg# Unset more variables known to interfere with behavior of common tools.
2552d861bc5SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2562d861bc5Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2572d861bc5Smrg
2582d861bc5Smrg## --------------------- ##
2592d861bc5Smrg## M4sh Shell Functions. ##
2602d861bc5Smrg## --------------------- ##
2612d861bc5Smrg# as_fn_unset VAR
2622d861bc5Smrg# ---------------
2632d861bc5Smrg# Portably unset VAR.
2642d861bc5Smrgas_fn_unset ()
2652d861bc5Smrg{
2662d861bc5Smrg  { eval $1=; unset $1;}
2672d861bc5Smrg}
2682d861bc5Smrgas_unset=as_fn_unset
2692d861bc5Smrg
2702d861bc5Smrg# as_fn_set_status STATUS
2712d861bc5Smrg# -----------------------
2722d861bc5Smrg# Set $? to STATUS, without forking.
2732d861bc5Smrgas_fn_set_status ()
2742d861bc5Smrg{
2752d861bc5Smrg  return $1
2762d861bc5Smrg} # as_fn_set_status
27744d7874bSmrg
2782d861bc5Smrg# as_fn_exit STATUS
2792d861bc5Smrg# -----------------
2802d861bc5Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2812d861bc5Smrgas_fn_exit ()
2822d861bc5Smrg{
2832d861bc5Smrg  set +e
2842d861bc5Smrg  as_fn_set_status $1
2852d861bc5Smrg  exit $1
2862d861bc5Smrg} # as_fn_exit
2872d861bc5Smrg
2882d861bc5Smrg# as_fn_mkdir_p
2892d861bc5Smrg# -------------
2902d861bc5Smrg# Create "$as_dir" as a directory, including parents if necessary.
2912d861bc5Smrgas_fn_mkdir_p ()
2922d861bc5Smrg{
2932d861bc5Smrg
2942d861bc5Smrg  case $as_dir in #(
2952d861bc5Smrg  -*) as_dir=./$as_dir;;
2962d861bc5Smrg  esac
2972d861bc5Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2982d861bc5Smrg    as_dirs=
2992d861bc5Smrg    while :; do
3002d861bc5Smrg      case $as_dir in #(
3012d861bc5Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3022d861bc5Smrg      *) as_qdir=$as_dir;;
3032d861bc5Smrg      esac
3042d861bc5Smrg      as_dirs="'$as_qdir' $as_dirs"
3052d861bc5Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3062d861bc5Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3072d861bc5Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3082d861bc5Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3092d861bc5Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3102d861bc5Smrg$as_echo X"$as_dir" |
3112d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3122d861bc5Smrg	    s//\1/
3132d861bc5Smrg	    q
3142d861bc5Smrg	  }
3152d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
3162d861bc5Smrg	    s//\1/
3172d861bc5Smrg	    q
3182d861bc5Smrg	  }
3192d861bc5Smrg	  /^X\(\/\/\)$/{
3202d861bc5Smrg	    s//\1/
3212d861bc5Smrg	    q
3222d861bc5Smrg	  }
3232d861bc5Smrg	  /^X\(\/\).*/{
3242d861bc5Smrg	    s//\1/
3252d861bc5Smrg	    q
3262d861bc5Smrg	  }
3272d861bc5Smrg	  s/.*/./; q'`
3282d861bc5Smrg      test -d "$as_dir" && break
3292d861bc5Smrg    done
3302d861bc5Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3312d861bc5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3322d861bc5Smrg
3332d861bc5Smrg
3342d861bc5Smrg} # as_fn_mkdir_p
3352d861bc5Smrg# as_fn_append VAR VALUE
3362d861bc5Smrg# ----------------------
3372d861bc5Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3382d861bc5Smrg# advantage of any shell optimizations that allow amortized linear growth over
3392d861bc5Smrg# repeated appends, instead of the typical quadratic growth present in naive
3402d861bc5Smrg# implementations.
3412d861bc5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3422d861bc5Smrg  eval 'as_fn_append ()
3432d861bc5Smrg  {
3442d861bc5Smrg    eval $1+=\$2
3452d861bc5Smrg  }'
3462d861bc5Smrgelse
3472d861bc5Smrg  as_fn_append ()
3482d861bc5Smrg  {
3492d861bc5Smrg    eval $1=\$$1\$2
3502d861bc5Smrg  }
3512d861bc5Smrgfi # as_fn_append
3522d861bc5Smrg
3532d861bc5Smrg# as_fn_arith ARG...
3542d861bc5Smrg# ------------------
3552d861bc5Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3562d861bc5Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3572d861bc5Smrg# must be portable across $(()) and expr.
3582d861bc5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3592d861bc5Smrg  eval 'as_fn_arith ()
3602d861bc5Smrg  {
3612d861bc5Smrg    as_val=$(( $* ))
3622d861bc5Smrg  }'
3632d861bc5Smrgelse
3642d861bc5Smrg  as_fn_arith ()
3652d861bc5Smrg  {
3662d861bc5Smrg    as_val=`expr "$@" || test $? -eq 1`
3672d861bc5Smrg  }
3682d861bc5Smrgfi # as_fn_arith
3692d861bc5Smrg
3702d861bc5Smrg
3712d861bc5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3722d861bc5Smrg# ----------------------------------------
3732d861bc5Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3742d861bc5Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3752d861bc5Smrg# script with STATUS, using 1 if that was 0.
3762d861bc5Smrgas_fn_error ()
3772d861bc5Smrg{
3782d861bc5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
3792d861bc5Smrg  if test "$4"; then
3802d861bc5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3812d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3822d861bc5Smrg  fi
3832d861bc5Smrg  $as_echo "$as_me: error: $2" >&2
3842d861bc5Smrg  as_fn_exit $as_status
3852d861bc5Smrg} # as_fn_error
3862d861bc5Smrg
3872d861bc5Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3882d861bc5Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38944d7874bSmrg  as_expr=expr
39044d7874bSmrgelse
39144d7874bSmrg  as_expr=false
39244d7874bSmrgfi
39344d7874bSmrg
3942d861bc5Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39544d7874bSmrg  as_basename=basename
39644d7874bSmrgelse
39744d7874bSmrg  as_basename=false
39844d7874bSmrgfi
39944d7874bSmrg
4002d861bc5Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4012d861bc5Smrg  as_dirname=dirname
4022d861bc5Smrgelse
4032d861bc5Smrg  as_dirname=false
4042d861bc5Smrgfi
40544d7874bSmrg
4062d861bc5Smrgas_me=`$as_basename -- "$0" ||
40744d7874bSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40844d7874bSmrg	 X"$0" : 'X\(//\)$' \| \
4092d861bc5Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4102d861bc5Smrg$as_echo X/"$0" |
4112d861bc5Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4122d861bc5Smrg	    s//\1/
4132d861bc5Smrg	    q
4142d861bc5Smrg	  }
4152d861bc5Smrg	  /^X\/\(\/\/\)$/{
4162d861bc5Smrg	    s//\1/
4172d861bc5Smrg	    q
4182d861bc5Smrg	  }
4192d861bc5Smrg	  /^X\/\(\/\).*/{
4202d861bc5Smrg	    s//\1/
4212d861bc5Smrg	    q
4222d861bc5Smrg	  }
4232d861bc5Smrg	  s/.*/./; q'`
42444d7874bSmrg
42544d7874bSmrg# Avoid depending upon Character Ranges.
42644d7874bSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
42744d7874bSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42844d7874bSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
42944d7874bSmrgas_cr_digits='0123456789'
43044d7874bSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43144d7874bSmrg
43244d7874bSmrg
4332d861bc5Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4342d861bc5Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4352d861bc5Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4362d861bc5Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4372d861bc5Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4382d861bc5Smrg  sed -n '
4392d861bc5Smrg    p
4402d861bc5Smrg    /[$]LINENO/=
4412d861bc5Smrg  ' <$as_myself |
44244d7874bSmrg    sed '
4432d861bc5Smrg      s/[$]LINENO.*/&-/
4442d861bc5Smrg      t lineno
4452d861bc5Smrg      b
4462d861bc5Smrg      :lineno
44744d7874bSmrg      N
4482d861bc5Smrg      :loop
4492d861bc5Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45044d7874bSmrg      t loop
4512d861bc5Smrg      s/-\n.*//
45244d7874bSmrg    ' >$as_me.lineno &&
4532d861bc5Smrg  chmod +x "$as_me.lineno" ||
4542d861bc5Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45544d7874bSmrg
45644d7874bSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
45744d7874bSmrg  # (the dirname of $[0] is not the place where we might find the
4582d861bc5Smrg  # original and so on.  Autoconf is especially sensitive to this).
4592d861bc5Smrg  . "./$as_me.lineno"
46044d7874bSmrg  # Exit status is that of the last command.
46144d7874bSmrg  exit
46244d7874bSmrg}
46344d7874bSmrg
4642d861bc5SmrgECHO_C= ECHO_N= ECHO_T=
4652d861bc5Smrgcase `echo -n x` in #(((((
4662d861bc5Smrg-n*)
4672d861bc5Smrg  case `echo 'xy\c'` in
4682d861bc5Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4692d861bc5Smrg  xy)  ECHO_C='\c';;
4702d861bc5Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4712d861bc5Smrg       ECHO_T='	';;
4722d861bc5Smrg  esac;;
4732d861bc5Smrg*)
4742d861bc5Smrg  ECHO_N='-n';;
47544d7874bSmrgesac
47644d7874bSmrg
4772d861bc5Smrgrm -f conf$$ conf$$.exe conf$$.file
4782d861bc5Smrgif test -d conf$$.dir; then
4792d861bc5Smrg  rm -f conf$$.dir/conf$$.file
48044d7874bSmrgelse
4812d861bc5Smrg  rm -f conf$$.dir
4822d861bc5Smrg  mkdir conf$$.dir 2>/dev/null
48344d7874bSmrgfi
4842d861bc5Smrgif (echo >conf$$.file) 2>/dev/null; then
4852d861bc5Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
48644d7874bSmrg    as_ln_s='ln -s'
4872d861bc5Smrg    # ... but there are two gotchas:
4882d861bc5Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4892d861bc5Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4902d861bc5Smrg    # In both cases, we have to default to `cp -p'.
4912d861bc5Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4922d861bc5Smrg      as_ln_s='cp -p'
4932d861bc5Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4942d861bc5Smrg    as_ln_s=ln
4952d861bc5Smrg  else
4962d861bc5Smrg    as_ln_s='cp -p'
49744d7874bSmrg  fi
49844d7874bSmrgelse
49944d7874bSmrg  as_ln_s='cp -p'
50044d7874bSmrgfi
5012d861bc5Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5022d861bc5Smrgrmdir conf$$.dir 2>/dev/null
50344d7874bSmrg
50444d7874bSmrgif mkdir -p . 2>/dev/null; then
5052d861bc5Smrg  as_mkdir_p='mkdir -p "$as_dir"'
50644d7874bSmrgelse
50744d7874bSmrg  test -d ./-p && rmdir ./-p
50844d7874bSmrg  as_mkdir_p=false
50944d7874bSmrgfi
51044d7874bSmrg
5112d861bc5Smrgif test -x / >/dev/null 2>&1; then
5122d861bc5Smrg  as_test_x='test -x'
5132d861bc5Smrgelse
5142d861bc5Smrg  if ls -dL / >/dev/null 2>&1; then
5152d861bc5Smrg    as_ls_L_option=L
5162d861bc5Smrg  else
5172d861bc5Smrg    as_ls_L_option=
5182d861bc5Smrg  fi
5192d861bc5Smrg  as_test_x='
5202d861bc5Smrg    eval sh -c '\''
5212d861bc5Smrg      if test -d "$1"; then
5222d861bc5Smrg	test -d "$1/.";
5232d861bc5Smrg      else
5242d861bc5Smrg	case $1 in #(
5252d861bc5Smrg	-*)set "./$1";;
5262d861bc5Smrg	esac;
5272d861bc5Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5282d861bc5Smrg	???[sx]*):;;*)false;;esac;fi
5292d861bc5Smrg    '\'' sh
5302d861bc5Smrg  '
5312d861bc5Smrgfi
5322d861bc5Smrgas_executable_p=$as_test_x
53344d7874bSmrg
53444d7874bSmrg# Sed expression to map a string onto a valid CPP name.
53544d7874bSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53644d7874bSmrg
53744d7874bSmrg# Sed expression to map a string onto a valid variable name.
53844d7874bSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53944d7874bSmrg
54044d7874bSmrg
5412d861bc5Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5422d861bc5Smrgexec 6>&1
54344d7874bSmrg
54444d7874bSmrg# Name of the host.
5452d861bc5Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
54644d7874bSmrg# so uname gets run too.
54744d7874bSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54844d7874bSmrg
54944d7874bSmrg#
55044d7874bSmrg# Initializations.
55144d7874bSmrg#
55244d7874bSmrgac_default_prefix=/usr/local
5532d861bc5Smrgac_clean_files=
55444d7874bSmrgac_config_libobj_dir=.
5552d861bc5SmrgLIBOBJS=
55644d7874bSmrgcross_compiling=no
55744d7874bSmrgsubdirs=
55844d7874bSmrgMFLAGS=
55944d7874bSmrgMAKEFLAGS=
56044d7874bSmrg
56144d7874bSmrg# Identity of this package.
56244d7874bSmrgPACKAGE_NAME='beforelight'
56344d7874bSmrgPACKAGE_TARNAME='beforelight'
5642d861bc5SmrgPACKAGE_VERSION='1.0.4'
5652d861bc5SmrgPACKAGE_STRING='beforelight 1.0.4'
56644d7874bSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5672d861bc5SmrgPACKAGE_URL=''
56844d7874bSmrg
5692d861bc5Smrg# Factoring default headers for most tests.
5702d861bc5Smrgac_includes_default="\
5712d861bc5Smrg#include <stdio.h>
5722d861bc5Smrg#ifdef HAVE_SYS_TYPES_H
5732d861bc5Smrg# include <sys/types.h>
5742d861bc5Smrg#endif
5752d861bc5Smrg#ifdef HAVE_SYS_STAT_H
5762d861bc5Smrg# include <sys/stat.h>
5772d861bc5Smrg#endif
5782d861bc5Smrg#ifdef STDC_HEADERS
5792d861bc5Smrg# include <stdlib.h>
5802d861bc5Smrg# include <stddef.h>
5812d861bc5Smrg#else
5822d861bc5Smrg# ifdef HAVE_STDLIB_H
5832d861bc5Smrg#  include <stdlib.h>
5842d861bc5Smrg# endif
5852d861bc5Smrg#endif
5862d861bc5Smrg#ifdef HAVE_STRING_H
5872d861bc5Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5882d861bc5Smrg#  include <memory.h>
5892d861bc5Smrg# endif
5902d861bc5Smrg# include <string.h>
5912d861bc5Smrg#endif
5922d861bc5Smrg#ifdef HAVE_STRINGS_H
5932d861bc5Smrg# include <strings.h>
5942d861bc5Smrg#endif
5952d861bc5Smrg#ifdef HAVE_INTTYPES_H
5962d861bc5Smrg# include <inttypes.h>
5972d861bc5Smrg#endif
5982d861bc5Smrg#ifdef HAVE_STDINT_H
5992d861bc5Smrg# include <stdint.h>
6002d861bc5Smrg#endif
6012d861bc5Smrg#ifdef HAVE_UNISTD_H
6022d861bc5Smrg# include <unistd.h>
6032d861bc5Smrg#endif"
6042d861bc5Smrg
6052d861bc5Smrgac_subst_vars='am__EXEEXT_FALSE
6062d861bc5Smrgam__EXEEXT_TRUE
6072d861bc5SmrgLTLIBOBJS
6082d861bc5SmrgLIBOBJS
6092d861bc5Smrgappdefaultdir
6102d861bc5SmrgAPPDEFS_LIBS
6112d861bc5SmrgAPPDEFS_CFLAGS
6122d861bc5SmrgXAW_LIBS
6132d861bc5SmrgXAW_CFLAGS
6142d861bc5SmrgBEFORELIGHT_LIBS
6152d861bc5SmrgBEFORELIGHT_CFLAGS
6162d861bc5SmrgAM_BACKSLASH
6172d861bc5SmrgAM_DEFAULT_VERBOSITY
6182d861bc5SmrgMAN_SUBSTS
6192d861bc5SmrgXORG_MAN_PAGE
6202d861bc5SmrgADMIN_MAN_DIR
6212d861bc5SmrgDRIVER_MAN_DIR
6222d861bc5SmrgMISC_MAN_DIR
6232d861bc5SmrgFILE_MAN_DIR
6242d861bc5SmrgLIB_MAN_DIR
6252d861bc5SmrgAPP_MAN_DIR
6262d861bc5SmrgADMIN_MAN_SUFFIX
6272d861bc5SmrgDRIVER_MAN_SUFFIX
6282d861bc5SmrgMISC_MAN_SUFFIX
6292d861bc5SmrgFILE_MAN_SUFFIX
6302d861bc5SmrgLIB_MAN_SUFFIX
6312d861bc5SmrgAPP_MAN_SUFFIX
6322d861bc5SmrgSED
6332d861bc5Smrghost_os
6342d861bc5Smrghost_vendor
6352d861bc5Smrghost_cpu
6362d861bc5Smrghost
6372d861bc5Smrgbuild_os
6382d861bc5Smrgbuild_vendor
6392d861bc5Smrgbuild_cpu
6402d861bc5Smrgbuild
6412d861bc5SmrgINSTALL_CMD
6422d861bc5SmrgPKG_CONFIG
6432d861bc5SmrgCHANGELOG_CMD
6442d861bc5SmrgCWARNFLAGS
6452d861bc5SmrgEGREP
6462d861bc5SmrgGREP
6472d861bc5SmrgCPP
6482d861bc5Smrgam__fastdepCC_FALSE
6492d861bc5Smrgam__fastdepCC_TRUE
6502d861bc5SmrgCCDEPMODE
6512d861bc5SmrgAMDEPBACKSLASH
6522d861bc5SmrgAMDEP_FALSE
6532d861bc5SmrgAMDEP_TRUE
6542d861bc5Smrgam__quote
6552d861bc5Smrgam__include
6562d861bc5SmrgDEPDIR
6572d861bc5SmrgOBJEXT
6582d861bc5SmrgEXEEXT
6592d861bc5Smrgac_ct_CC
6602d861bc5SmrgCPPFLAGS
6612d861bc5SmrgLDFLAGS
6622d861bc5SmrgCFLAGS
6632d861bc5SmrgCC
6642d861bc5SmrgMAINT
6652d861bc5SmrgMAINTAINER_MODE_FALSE
6662d861bc5SmrgMAINTAINER_MODE_TRUE
6672d861bc5Smrgam__untar
6682d861bc5Smrgam__tar
6692d861bc5SmrgAMTAR
6702d861bc5Smrgam__leading_dot
6712d861bc5SmrgSET_MAKE
6722d861bc5SmrgAWK
6732d861bc5Smrgmkdir_p
6742d861bc5SmrgMKDIR_P
6752d861bc5SmrgINSTALL_STRIP_PROGRAM
6762d861bc5SmrgSTRIP
6772d861bc5Smrginstall_sh
6782d861bc5SmrgMAKEINFO
6792d861bc5SmrgAUTOHEADER
6802d861bc5SmrgAUTOMAKE
6812d861bc5SmrgAUTOCONF
6822d861bc5SmrgACLOCAL
6832d861bc5SmrgVERSION
6842d861bc5SmrgPACKAGE
6852d861bc5SmrgCYGPATH_W
6862d861bc5Smrgam__isrc
6872d861bc5SmrgINSTALL_DATA
6882d861bc5SmrgINSTALL_SCRIPT
6892d861bc5SmrgINSTALL_PROGRAM
6902d861bc5Smrgtarget_alias
6912d861bc5Smrghost_alias
6922d861bc5Smrgbuild_alias
6932d861bc5SmrgLIBS
6942d861bc5SmrgECHO_T
6952d861bc5SmrgECHO_N
6962d861bc5SmrgECHO_C
6972d861bc5SmrgDEFS
6982d861bc5Smrgmandir
6992d861bc5Smrglocaledir
7002d861bc5Smrglibdir
7012d861bc5Smrgpsdir
7022d861bc5Smrgpdfdir
7032d861bc5Smrgdvidir
7042d861bc5Smrghtmldir
7052d861bc5Smrginfodir
7062d861bc5Smrgdocdir
7072d861bc5Smrgoldincludedir
7082d861bc5Smrgincludedir
7092d861bc5Smrglocalstatedir
7102d861bc5Smrgsharedstatedir
7112d861bc5Smrgsysconfdir
7122d861bc5Smrgdatadir
7132d861bc5Smrgdatarootdir
7142d861bc5Smrglibexecdir
7152d861bc5Smrgsbindir
7162d861bc5Smrgbindir
7172d861bc5Smrgprogram_transform_name
7182d861bc5Smrgprefix
7192d861bc5Smrgexec_prefix
7202d861bc5SmrgPACKAGE_URL
7212d861bc5SmrgPACKAGE_BUGREPORT
7222d861bc5SmrgPACKAGE_STRING
7232d861bc5SmrgPACKAGE_VERSION
7242d861bc5SmrgPACKAGE_TARNAME
7252d861bc5SmrgPACKAGE_NAME
7262d861bc5SmrgPATH_SEPARATOR
7272d861bc5SmrgSHELL'
72844d7874bSmrgac_subst_files=''
7292d861bc5Smrgac_user_opts='
7302d861bc5Smrgenable_option_checking
7312d861bc5Smrgenable_maintainer_mode
7322d861bc5Smrgenable_dependency_tracking
7332d861bc5Smrgenable_strict_compilation
7342d861bc5Smrgenable_silent_rules
7352d861bc5Smrgwith_appdefaultdir
7362d861bc5Smrg'
7372d861bc5Smrg      ac_precious_vars='build_alias
7382d861bc5Smrghost_alias
7392d861bc5Smrgtarget_alias
7402d861bc5SmrgCC
7412d861bc5SmrgCFLAGS
7422d861bc5SmrgLDFLAGS
7432d861bc5SmrgLIBS
7442d861bc5SmrgCPPFLAGS
7452d861bc5SmrgCPP
7462d861bc5SmrgPKG_CONFIG
7472d861bc5SmrgBEFORELIGHT_CFLAGS
7482d861bc5SmrgBEFORELIGHT_LIBS
7492d861bc5SmrgXAW_CFLAGS
7502d861bc5SmrgXAW_LIBS
7512d861bc5SmrgAPPDEFS_CFLAGS
7522d861bc5SmrgAPPDEFS_LIBS'
7532d861bc5Smrg
75444d7874bSmrg
75544d7874bSmrg# Initialize some variables set by options.
75644d7874bSmrgac_init_help=
75744d7874bSmrgac_init_version=false
7582d861bc5Smrgac_unrecognized_opts=
7592d861bc5Smrgac_unrecognized_sep=
76044d7874bSmrg# The variables have the same names as the options, with
76144d7874bSmrg# dashes changed to underlines.
76244d7874bSmrgcache_file=/dev/null
76344d7874bSmrgexec_prefix=NONE
76444d7874bSmrgno_create=
76544d7874bSmrgno_recursion=
76644d7874bSmrgprefix=NONE
76744d7874bSmrgprogram_prefix=NONE
76844d7874bSmrgprogram_suffix=NONE
76944d7874bSmrgprogram_transform_name=s,x,x,
77044d7874bSmrgsilent=
77144d7874bSmrgsite=
77244d7874bSmrgsrcdir=
77344d7874bSmrgverbose=
77444d7874bSmrgx_includes=NONE
77544d7874bSmrgx_libraries=NONE
77644d7874bSmrg
77744d7874bSmrg# Installation directory options.
77844d7874bSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
77944d7874bSmrg# and all the variables that are supposed to be based on exec_prefix
78044d7874bSmrg# by default will actually change.
78144d7874bSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
7822d861bc5Smrg# (The list follows the same order as the GNU Coding Standards.)
78344d7874bSmrgbindir='${exec_prefix}/bin'
78444d7874bSmrgsbindir='${exec_prefix}/sbin'
78544d7874bSmrglibexecdir='${exec_prefix}/libexec'
7862d861bc5Smrgdatarootdir='${prefix}/share'
7872d861bc5Smrgdatadir='${datarootdir}'
78844d7874bSmrgsysconfdir='${prefix}/etc'
78944d7874bSmrgsharedstatedir='${prefix}/com'
79044d7874bSmrglocalstatedir='${prefix}/var'
79144d7874bSmrgincludedir='${prefix}/include'
79244d7874bSmrgoldincludedir='/usr/include'
7932d861bc5Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7942d861bc5Smrginfodir='${datarootdir}/info'
7952d861bc5Smrghtmldir='${docdir}'
7962d861bc5Smrgdvidir='${docdir}'
7972d861bc5Smrgpdfdir='${docdir}'
7982d861bc5Smrgpsdir='${docdir}'
7992d861bc5Smrglibdir='${exec_prefix}/lib'
8002d861bc5Smrglocaledir='${datarootdir}/locale'
8012d861bc5Smrgmandir='${datarootdir}/man'
80244d7874bSmrg
80344d7874bSmrgac_prev=
8042d861bc5Smrgac_dashdash=
80544d7874bSmrgfor ac_option
80644d7874bSmrgdo
80744d7874bSmrg  # If the previous option needs an argument, assign it.
80844d7874bSmrg  if test -n "$ac_prev"; then
8092d861bc5Smrg    eval $ac_prev=\$ac_option
81044d7874bSmrg    ac_prev=
81144d7874bSmrg    continue
81244d7874bSmrg  fi
81344d7874bSmrg
8142d861bc5Smrg  case $ac_option in
8152d861bc5Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8162d861bc5Smrg  *=)   ac_optarg= ;;
8172d861bc5Smrg  *)    ac_optarg=yes ;;
8182d861bc5Smrg  esac
81944d7874bSmrg
82044d7874bSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
82144d7874bSmrg
8222d861bc5Smrg  case $ac_dashdash$ac_option in
8232d861bc5Smrg  --)
8242d861bc5Smrg    ac_dashdash=yes ;;
82544d7874bSmrg
82644d7874bSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
82744d7874bSmrg    ac_prev=bindir ;;
82844d7874bSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82944d7874bSmrg    bindir=$ac_optarg ;;
83044d7874bSmrg
83144d7874bSmrg  -build | --build | --buil | --bui | --bu)
83244d7874bSmrg    ac_prev=build_alias ;;
83344d7874bSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83444d7874bSmrg    build_alias=$ac_optarg ;;
83544d7874bSmrg
83644d7874bSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
83744d7874bSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
83844d7874bSmrg    ac_prev=cache_file ;;
83944d7874bSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
84044d7874bSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
84144d7874bSmrg    cache_file=$ac_optarg ;;
84244d7874bSmrg
84344d7874bSmrg  --config-cache | -C)
84444d7874bSmrg    cache_file=config.cache ;;
84544d7874bSmrg
8462d861bc5Smrg  -datadir | --datadir | --datadi | --datad)
84744d7874bSmrg    ac_prev=datadir ;;
8482d861bc5Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
84944d7874bSmrg    datadir=$ac_optarg ;;
85044d7874bSmrg
8512d861bc5Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8522d861bc5Smrg  | --dataroo | --dataro | --datar)
8532d861bc5Smrg    ac_prev=datarootdir ;;
8542d861bc5Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8552d861bc5Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8562d861bc5Smrg    datarootdir=$ac_optarg ;;
8572d861bc5Smrg
85844d7874bSmrg  -disable-* | --disable-*)
8592d861bc5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
86044d7874bSmrg    # Reject names that are not valid shell variable names.
8612d861bc5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8622d861bc5Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8632d861bc5Smrg    ac_useropt_orig=$ac_useropt
8642d861bc5Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8652d861bc5Smrg    case $ac_user_opts in
8662d861bc5Smrg      *"
8672d861bc5Smrg"enable_$ac_useropt"
8682d861bc5Smrg"*) ;;
8692d861bc5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8702d861bc5Smrg	 ac_unrecognized_sep=', ';;
8712d861bc5Smrg    esac
8722d861bc5Smrg    eval enable_$ac_useropt=no ;;
8732d861bc5Smrg
8742d861bc5Smrg  -docdir | --docdir | --docdi | --doc | --do)
8752d861bc5Smrg    ac_prev=docdir ;;
8762d861bc5Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8772d861bc5Smrg    docdir=$ac_optarg ;;
8782d861bc5Smrg
8792d861bc5Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8802d861bc5Smrg    ac_prev=dvidir ;;
8812d861bc5Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8822d861bc5Smrg    dvidir=$ac_optarg ;;
88344d7874bSmrg
88444d7874bSmrg  -enable-* | --enable-*)
8852d861bc5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
88644d7874bSmrg    # Reject names that are not valid shell variable names.
8872d861bc5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8882d861bc5Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8892d861bc5Smrg    ac_useropt_orig=$ac_useropt
8902d861bc5Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8912d861bc5Smrg    case $ac_user_opts in
8922d861bc5Smrg      *"
8932d861bc5Smrg"enable_$ac_useropt"
8942d861bc5Smrg"*) ;;
8952d861bc5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8962d861bc5Smrg	 ac_unrecognized_sep=', ';;
89744d7874bSmrg    esac
8982d861bc5Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
89944d7874bSmrg
90044d7874bSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
90144d7874bSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
90244d7874bSmrg  | --exec | --exe | --ex)
90344d7874bSmrg    ac_prev=exec_prefix ;;
90444d7874bSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
90544d7874bSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
90644d7874bSmrg  | --exec=* | --exe=* | --ex=*)
90744d7874bSmrg    exec_prefix=$ac_optarg ;;
90844d7874bSmrg
90944d7874bSmrg  -gas | --gas | --ga | --g)
91044d7874bSmrg    # Obsolete; use --with-gas.
91144d7874bSmrg    with_gas=yes ;;
91244d7874bSmrg
91344d7874bSmrg  -help | --help | --hel | --he | -h)
91444d7874bSmrg    ac_init_help=long ;;
91544d7874bSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
91644d7874bSmrg    ac_init_help=recursive ;;
91744d7874bSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
91844d7874bSmrg    ac_init_help=short ;;
91944d7874bSmrg
92044d7874bSmrg  -host | --host | --hos | --ho)
92144d7874bSmrg    ac_prev=host_alias ;;
92244d7874bSmrg  -host=* | --host=* | --hos=* | --ho=*)
92344d7874bSmrg    host_alias=$ac_optarg ;;
92444d7874bSmrg
9252d861bc5Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9262d861bc5Smrg    ac_prev=htmldir ;;
9272d861bc5Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9282d861bc5Smrg  | --ht=*)
9292d861bc5Smrg    htmldir=$ac_optarg ;;
9302d861bc5Smrg
93144d7874bSmrg  -includedir | --includedir | --includedi | --included | --include \
93244d7874bSmrg  | --includ | --inclu | --incl | --inc)
93344d7874bSmrg    ac_prev=includedir ;;
93444d7874bSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
93544d7874bSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
93644d7874bSmrg    includedir=$ac_optarg ;;
93744d7874bSmrg
93844d7874bSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
93944d7874bSmrg    ac_prev=infodir ;;
94044d7874bSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
94144d7874bSmrg    infodir=$ac_optarg ;;
94244d7874bSmrg
94344d7874bSmrg  -libdir | --libdir | --libdi | --libd)
94444d7874bSmrg    ac_prev=libdir ;;
94544d7874bSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
94644d7874bSmrg    libdir=$ac_optarg ;;
94744d7874bSmrg
94844d7874bSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
94944d7874bSmrg  | --libexe | --libex | --libe)
95044d7874bSmrg    ac_prev=libexecdir ;;
95144d7874bSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
95244d7874bSmrg  | --libexe=* | --libex=* | --libe=*)
95344d7874bSmrg    libexecdir=$ac_optarg ;;
95444d7874bSmrg
9552d861bc5Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9562d861bc5Smrg    ac_prev=localedir ;;
9572d861bc5Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9582d861bc5Smrg    localedir=$ac_optarg ;;
9592d861bc5Smrg
96044d7874bSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9612d861bc5Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
96244d7874bSmrg    ac_prev=localstatedir ;;
96344d7874bSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9642d861bc5Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
96544d7874bSmrg    localstatedir=$ac_optarg ;;
96644d7874bSmrg
96744d7874bSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
96844d7874bSmrg    ac_prev=mandir ;;
96944d7874bSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
97044d7874bSmrg    mandir=$ac_optarg ;;
97144d7874bSmrg
97244d7874bSmrg  -nfp | --nfp | --nf)
97344d7874bSmrg    # Obsolete; use --without-fp.
97444d7874bSmrg    with_fp=no ;;
97544d7874bSmrg
97644d7874bSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
97744d7874bSmrg  | --no-cr | --no-c | -n)
97844d7874bSmrg    no_create=yes ;;
97944d7874bSmrg
98044d7874bSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
98144d7874bSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
98244d7874bSmrg    no_recursion=yes ;;
98344d7874bSmrg
98444d7874bSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
98544d7874bSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
98644d7874bSmrg  | --oldin | --oldi | --old | --ol | --o)
98744d7874bSmrg    ac_prev=oldincludedir ;;
98844d7874bSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
98944d7874bSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
99044d7874bSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
99144d7874bSmrg    oldincludedir=$ac_optarg ;;
99244d7874bSmrg
99344d7874bSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
99444d7874bSmrg    ac_prev=prefix ;;
99544d7874bSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
99644d7874bSmrg    prefix=$ac_optarg ;;
99744d7874bSmrg
99844d7874bSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
99944d7874bSmrg  | --program-pre | --program-pr | --program-p)
100044d7874bSmrg    ac_prev=program_prefix ;;
100144d7874bSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
100244d7874bSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
100344d7874bSmrg    program_prefix=$ac_optarg ;;
100444d7874bSmrg
100544d7874bSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
100644d7874bSmrg  | --program-suf | --program-su | --program-s)
100744d7874bSmrg    ac_prev=program_suffix ;;
100844d7874bSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
100944d7874bSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
101044d7874bSmrg    program_suffix=$ac_optarg ;;
101144d7874bSmrg
101244d7874bSmrg  -program-transform-name | --program-transform-name \
101344d7874bSmrg  | --program-transform-nam | --program-transform-na \
101444d7874bSmrg  | --program-transform-n | --program-transform- \
101544d7874bSmrg  | --program-transform | --program-transfor \
101644d7874bSmrg  | --program-transfo | --program-transf \
101744d7874bSmrg  | --program-trans | --program-tran \
101844d7874bSmrg  | --progr-tra | --program-tr | --program-t)
101944d7874bSmrg    ac_prev=program_transform_name ;;
102044d7874bSmrg  -program-transform-name=* | --program-transform-name=* \
102144d7874bSmrg  | --program-transform-nam=* | --program-transform-na=* \
102244d7874bSmrg  | --program-transform-n=* | --program-transform-=* \
102344d7874bSmrg  | --program-transform=* | --program-transfor=* \
102444d7874bSmrg  | --program-transfo=* | --program-transf=* \
102544d7874bSmrg  | --program-trans=* | --program-tran=* \
102644d7874bSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
102744d7874bSmrg    program_transform_name=$ac_optarg ;;
102844d7874bSmrg
10292d861bc5Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10302d861bc5Smrg    ac_prev=pdfdir ;;
10312d861bc5Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10322d861bc5Smrg    pdfdir=$ac_optarg ;;
10332d861bc5Smrg
10342d861bc5Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10352d861bc5Smrg    ac_prev=psdir ;;
10362d861bc5Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10372d861bc5Smrg    psdir=$ac_optarg ;;
10382d861bc5Smrg
103944d7874bSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
104044d7874bSmrg  | -silent | --silent | --silen | --sile | --sil)
104144d7874bSmrg    silent=yes ;;
104244d7874bSmrg
104344d7874bSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
104444d7874bSmrg    ac_prev=sbindir ;;
104544d7874bSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
104644d7874bSmrg  | --sbi=* | --sb=*)
104744d7874bSmrg    sbindir=$ac_optarg ;;
104844d7874bSmrg
104944d7874bSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
105044d7874bSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
105144d7874bSmrg  | --sharedst | --shareds | --shared | --share | --shar \
105244d7874bSmrg  | --sha | --sh)
105344d7874bSmrg    ac_prev=sharedstatedir ;;
105444d7874bSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
105544d7874bSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
105644d7874bSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
105744d7874bSmrg  | --sha=* | --sh=*)
105844d7874bSmrg    sharedstatedir=$ac_optarg ;;
105944d7874bSmrg
106044d7874bSmrg  -site | --site | --sit)
106144d7874bSmrg    ac_prev=site ;;
106244d7874bSmrg  -site=* | --site=* | --sit=*)
106344d7874bSmrg    site=$ac_optarg ;;
106444d7874bSmrg
106544d7874bSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
106644d7874bSmrg    ac_prev=srcdir ;;
106744d7874bSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
106844d7874bSmrg    srcdir=$ac_optarg ;;
106944d7874bSmrg
107044d7874bSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
107144d7874bSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
107244d7874bSmrg    ac_prev=sysconfdir ;;
107344d7874bSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
107444d7874bSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
107544d7874bSmrg    sysconfdir=$ac_optarg ;;
107644d7874bSmrg
107744d7874bSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
107844d7874bSmrg    ac_prev=target_alias ;;
107944d7874bSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
108044d7874bSmrg    target_alias=$ac_optarg ;;
108144d7874bSmrg
108244d7874bSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
108344d7874bSmrg    verbose=yes ;;
108444d7874bSmrg
108544d7874bSmrg  -version | --version | --versio | --versi | --vers | -V)
108644d7874bSmrg    ac_init_version=: ;;
108744d7874bSmrg
108844d7874bSmrg  -with-* | --with-*)
10892d861bc5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
109044d7874bSmrg    # Reject names that are not valid shell variable names.
10912d861bc5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10922d861bc5Smrg      as_fn_error $? "invalid package name: $ac_useropt"
10932d861bc5Smrg    ac_useropt_orig=$ac_useropt
10942d861bc5Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10952d861bc5Smrg    case $ac_user_opts in
10962d861bc5Smrg      *"
10972d861bc5Smrg"with_$ac_useropt"
10982d861bc5Smrg"*) ;;
10992d861bc5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11002d861bc5Smrg	 ac_unrecognized_sep=', ';;
110144d7874bSmrg    esac
11022d861bc5Smrg    eval with_$ac_useropt=\$ac_optarg ;;
110344d7874bSmrg
110444d7874bSmrg  -without-* | --without-*)
11052d861bc5Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
110644d7874bSmrg    # Reject names that are not valid shell variable names.
11072d861bc5Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11082d861bc5Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11092d861bc5Smrg    ac_useropt_orig=$ac_useropt
11102d861bc5Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11112d861bc5Smrg    case $ac_user_opts in
11122d861bc5Smrg      *"
11132d861bc5Smrg"with_$ac_useropt"
11142d861bc5Smrg"*) ;;
11152d861bc5Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11162d861bc5Smrg	 ac_unrecognized_sep=', ';;
11172d861bc5Smrg    esac
11182d861bc5Smrg    eval with_$ac_useropt=no ;;
111944d7874bSmrg
112044d7874bSmrg  --x)
112144d7874bSmrg    # Obsolete; use --with-x.
112244d7874bSmrg    with_x=yes ;;
112344d7874bSmrg
112444d7874bSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
112544d7874bSmrg  | --x-incl | --x-inc | --x-in | --x-i)
112644d7874bSmrg    ac_prev=x_includes ;;
112744d7874bSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
112844d7874bSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
112944d7874bSmrg    x_includes=$ac_optarg ;;
113044d7874bSmrg
113144d7874bSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
113244d7874bSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
113344d7874bSmrg    ac_prev=x_libraries ;;
113444d7874bSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
113544d7874bSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
113644d7874bSmrg    x_libraries=$ac_optarg ;;
113744d7874bSmrg
11382d861bc5Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11392d861bc5SmrgTry \`$0 --help' for more information"
114044d7874bSmrg    ;;
114144d7874bSmrg
114244d7874bSmrg  *=*)
114344d7874bSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
114444d7874bSmrg    # Reject names that are not valid shell variable names.
11452d861bc5Smrg    case $ac_envvar in #(
11462d861bc5Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11472d861bc5Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11482d861bc5Smrg    esac
11492d861bc5Smrg    eval $ac_envvar=\$ac_optarg
115044d7874bSmrg    export $ac_envvar ;;
115144d7874bSmrg
115244d7874bSmrg  *)
115344d7874bSmrg    # FIXME: should be removed in autoconf 3.0.
11542d861bc5Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
115544d7874bSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11562d861bc5Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11572d861bc5Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
115844d7874bSmrg    ;;
115944d7874bSmrg
116044d7874bSmrg  esac
116144d7874bSmrgdone
116244d7874bSmrg
116344d7874bSmrgif test -n "$ac_prev"; then
116444d7874bSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11652d861bc5Smrg  as_fn_error $? "missing argument to $ac_option"
116644d7874bSmrgfi
116744d7874bSmrg
11682d861bc5Smrgif test -n "$ac_unrecognized_opts"; then
11692d861bc5Smrg  case $enable_option_checking in
11702d861bc5Smrg    no) ;;
11712d861bc5Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11722d861bc5Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
117344d7874bSmrg  esac
11742d861bc5Smrgfi
117544d7874bSmrg
11762d861bc5Smrg# Check all directory arguments for consistency.
11772d861bc5Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11782d861bc5Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11792d861bc5Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11802d861bc5Smrg		libdir localedir mandir
118144d7874bSmrgdo
11822d861bc5Smrg  eval ac_val=\$$ac_var
11832d861bc5Smrg  # Remove trailing slashes.
11842d861bc5Smrg  case $ac_val in
11852d861bc5Smrg    */ )
11862d861bc5Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11872d861bc5Smrg      eval $ac_var=\$ac_val;;
11882d861bc5Smrg  esac
11892d861bc5Smrg  # Be sure to have absolute directory names.
119044d7874bSmrg  case $ac_val in
11912d861bc5Smrg    [\\/$]* | ?:[\\/]* )  continue;;
11922d861bc5Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
119344d7874bSmrg  esac
11942d861bc5Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
119544d7874bSmrgdone
119644d7874bSmrg
119744d7874bSmrg# There might be people who depend on the old broken behavior: `$host'
119844d7874bSmrg# used to hold the argument of --host etc.
119944d7874bSmrg# FIXME: To remove some day.
120044d7874bSmrgbuild=$build_alias
120144d7874bSmrghost=$host_alias
120244d7874bSmrgtarget=$target_alias
120344d7874bSmrg
120444d7874bSmrg# FIXME: To remove some day.
120544d7874bSmrgif test "x$host_alias" != x; then
120644d7874bSmrg  if test "x$build_alias" = x; then
120744d7874bSmrg    cross_compiling=maybe
12082d861bc5Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12092d861bc5Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
121044d7874bSmrg  elif test "x$build_alias" != "x$host_alias"; then
121144d7874bSmrg    cross_compiling=yes
121244d7874bSmrg  fi
121344d7874bSmrgfi
121444d7874bSmrg
121544d7874bSmrgac_tool_prefix=
121644d7874bSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
121744d7874bSmrg
121844d7874bSmrgtest "$silent" = yes && exec 6>/dev/null
121944d7874bSmrg
122044d7874bSmrg
12212d861bc5Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12222d861bc5Smrgac_ls_di=`ls -di .` &&
12232d861bc5Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12242d861bc5Smrg  as_fn_error $? "working directory cannot be determined"
12252d861bc5Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12262d861bc5Smrg  as_fn_error $? "pwd does not report name of working directory"
12272d861bc5Smrg
12282d861bc5Smrg
122944d7874bSmrg# Find the source files, if location was not specified.
123044d7874bSmrgif test -z "$srcdir"; then
123144d7874bSmrg  ac_srcdir_defaulted=yes
12322d861bc5Smrg  # Try the directory containing this script, then the parent directory.
12332d861bc5Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12342d861bc5Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12352d861bc5Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12362d861bc5Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12372d861bc5Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12382d861bc5Smrg$as_echo X"$as_myself" |
12392d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12402d861bc5Smrg	    s//\1/
12412d861bc5Smrg	    q
12422d861bc5Smrg	  }
12432d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
12442d861bc5Smrg	    s//\1/
12452d861bc5Smrg	    q
12462d861bc5Smrg	  }
12472d861bc5Smrg	  /^X\(\/\/\)$/{
12482d861bc5Smrg	    s//\1/
12492d861bc5Smrg	    q
12502d861bc5Smrg	  }
12512d861bc5Smrg	  /^X\(\/\).*/{
12522d861bc5Smrg	    s//\1/
12532d861bc5Smrg	    q
12542d861bc5Smrg	  }
12552d861bc5Smrg	  s/.*/./; q'`
125644d7874bSmrg  srcdir=$ac_confdir
12572d861bc5Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
125844d7874bSmrg    srcdir=..
125944d7874bSmrg  fi
126044d7874bSmrgelse
126144d7874bSmrg  ac_srcdir_defaulted=no
126244d7874bSmrgfi
12632d861bc5Smrgif test ! -r "$srcdir/$ac_unique_file"; then
12642d861bc5Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12652d861bc5Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12662d861bc5Smrgfi
12672d861bc5Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12682d861bc5Smrgac_abs_confdir=`(
12692d861bc5Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12702d861bc5Smrg	pwd)`
12712d861bc5Smrg# When building in place, set srcdir=.
12722d861bc5Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12732d861bc5Smrg  srcdir=.
12742d861bc5Smrgfi
12752d861bc5Smrg# Remove unnecessary trailing slashes from srcdir.
12762d861bc5Smrg# Double slashes in file names in object file debugging info
12772d861bc5Smrg# mess up M-x gdb in Emacs.
12782d861bc5Smrgcase $srcdir in
12792d861bc5Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12802d861bc5Smrgesac
12812d861bc5Smrgfor ac_var in $ac_precious_vars; do
12822d861bc5Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12832d861bc5Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
12842d861bc5Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12852d861bc5Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12862d861bc5Smrgdone
128744d7874bSmrg
128844d7874bSmrg#
128944d7874bSmrg# Report the --help message.
129044d7874bSmrg#
129144d7874bSmrgif test "$ac_init_help" = "long"; then
129244d7874bSmrg  # Omit some internal or obsolete options to make the list less imposing.
129344d7874bSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
129444d7874bSmrg  cat <<_ACEOF
12952d861bc5Smrg\`configure' configures beforelight 1.0.4 to adapt to many kinds of systems.
129644d7874bSmrg
129744d7874bSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
129844d7874bSmrg
129944d7874bSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
130044d7874bSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
130144d7874bSmrg
130244d7874bSmrgDefaults for the options are specified in brackets.
130344d7874bSmrg
130444d7874bSmrgConfiguration:
130544d7874bSmrg  -h, --help              display this help and exit
130644d7874bSmrg      --help=short        display options specific to this package
130744d7874bSmrg      --help=recursive    display the short help of all the included packages
130844d7874bSmrg  -V, --version           display version information and exit
13092d861bc5Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
131044d7874bSmrg      --cache-file=FILE   cache test results in FILE [disabled]
131144d7874bSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
131244d7874bSmrg  -n, --no-create         do not create output files
131344d7874bSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
131444d7874bSmrg
131544d7874bSmrgInstallation directories:
131644d7874bSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13172d861bc5Smrg                          [$ac_default_prefix]
131844d7874bSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13192d861bc5Smrg                          [PREFIX]
132044d7874bSmrg
132144d7874bSmrgBy default, \`make install' will install all the files in
132244d7874bSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
132344d7874bSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
132444d7874bSmrgfor instance \`--prefix=\$HOME'.
132544d7874bSmrg
132644d7874bSmrgFor better control, use the options below.
132744d7874bSmrg
132844d7874bSmrgFine tuning of the installation directories:
13292d861bc5Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13302d861bc5Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13312d861bc5Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13322d861bc5Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13332d861bc5Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13342d861bc5Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13352d861bc5Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13362d861bc5Smrg  --includedir=DIR        C header files [PREFIX/include]
13372d861bc5Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13382d861bc5Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13392d861bc5Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13402d861bc5Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13412d861bc5Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13422d861bc5Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13432d861bc5Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/beforelight]
13442d861bc5Smrg  --htmldir=DIR           html documentation [DOCDIR]
13452d861bc5Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13462d861bc5Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13472d861bc5Smrg  --psdir=DIR             ps documentation [DOCDIR]
134844d7874bSmrg_ACEOF
134944d7874bSmrg
135044d7874bSmrg  cat <<\_ACEOF
135144d7874bSmrg
135244d7874bSmrgProgram names:
135344d7874bSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
135444d7874bSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
135544d7874bSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
135644d7874bSmrg
135744d7874bSmrgSystem types:
135844d7874bSmrg  --build=BUILD     configure for building on BUILD [guessed]
135944d7874bSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
136044d7874bSmrg_ACEOF
136144d7874bSmrgfi
136244d7874bSmrg
136344d7874bSmrgif test -n "$ac_init_help"; then
136444d7874bSmrg  case $ac_init_help in
13652d861bc5Smrg     short | recursive ) echo "Configuration of beforelight 1.0.4:";;
136644d7874bSmrg   esac
136744d7874bSmrg  cat <<\_ACEOF
136844d7874bSmrg
136944d7874bSmrgOptional Features:
13702d861bc5Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
137144d7874bSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
137244d7874bSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
137344d7874bSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
137444d7874bSmrg			  (and sometimes confusing) to the casual installer
137544d7874bSmrg  --disable-dependency-tracking  speeds up one-time build
137644d7874bSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
13772d861bc5Smrg  --enable-strict-compilation
13782d861bc5Smrg                          Enable all warnings from compiler and make them
13792d861bc5Smrg                          errors (default: disabled)
13802d861bc5Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13812d861bc5Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
138244d7874bSmrg
138344d7874bSmrgOptional Packages:
138444d7874bSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
138544d7874bSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
13862d861bc5Smrg  --with-appdefaultdir=<pathname>
13872d861bc5Smrg                          specify directory for app-defaults files (default is
13882d861bc5Smrg                          autodetected)
138944d7874bSmrg
139044d7874bSmrgSome influential environment variables:
139144d7874bSmrg  CC          C compiler command
139244d7874bSmrg  CFLAGS      C compiler flags
139344d7874bSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
139444d7874bSmrg              nonstandard directory <lib dir>
13952d861bc5Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
13962d861bc5Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13972d861bc5Smrg              you have headers in a nonstandard directory <include dir>
13982d861bc5Smrg  CPP         C preprocessor
139944d7874bSmrg  PKG_CONFIG  path to pkg-config utility
140044d7874bSmrg  BEFORELIGHT_CFLAGS
140144d7874bSmrg              C compiler flags for BEFORELIGHT, overriding pkg-config
140244d7874bSmrg  BEFORELIGHT_LIBS
140344d7874bSmrg              linker flags for BEFORELIGHT, overriding pkg-config
14042d861bc5Smrg  XAW_CFLAGS  C compiler flags for XAW, overriding pkg-config
14052d861bc5Smrg  XAW_LIBS    linker flags for XAW, overriding pkg-config
140644d7874bSmrg  APPDEFS_CFLAGS
140744d7874bSmrg              C compiler flags for APPDEFS, overriding pkg-config
140844d7874bSmrg  APPDEFS_LIBS
140944d7874bSmrg              linker flags for APPDEFS, overriding pkg-config
141044d7874bSmrg
141144d7874bSmrgUse these variables to override the choices made by `configure' or to help
141244d7874bSmrgit to find libraries and programs with nonstandard names/locations.
141344d7874bSmrg
141444d7874bSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
141544d7874bSmrg_ACEOF
14162d861bc5Smrgac_status=$?
141744d7874bSmrgfi
141844d7874bSmrg
141944d7874bSmrgif test "$ac_init_help" = "recursive"; then
142044d7874bSmrg  # If there are subdirs, report their specific --help.
142144d7874bSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14222d861bc5Smrg    test -d "$ac_dir" ||
14232d861bc5Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14242d861bc5Smrg      continue
142544d7874bSmrg    ac_builddir=.
142644d7874bSmrg
14272d861bc5Smrgcase "$ac_dir" in
14282d861bc5Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14292d861bc5Smrg*)
14302d861bc5Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14312d861bc5Smrg  # A ".." for each directory in $ac_dir_suffix.
14322d861bc5Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14332d861bc5Smrg  case $ac_top_builddir_sub in
14342d861bc5Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14352d861bc5Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14362d861bc5Smrg  esac ;;
14372d861bc5Smrgesac
14382d861bc5Smrgac_abs_top_builddir=$ac_pwd
14392d861bc5Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14402d861bc5Smrg# for backward compatibility:
14412d861bc5Smrgac_top_builddir=$ac_top_build_prefix
144244d7874bSmrg
144344d7874bSmrgcase $srcdir in
14442d861bc5Smrg  .)  # We are building in place.
144544d7874bSmrg    ac_srcdir=.
14462d861bc5Smrg    ac_top_srcdir=$ac_top_builddir_sub
14472d861bc5Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14482d861bc5Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
144944d7874bSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14502d861bc5Smrg    ac_top_srcdir=$srcdir
14512d861bc5Smrg    ac_abs_top_srcdir=$srcdir ;;
14522d861bc5Smrg  *) # Relative name.
14532d861bc5Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14542d861bc5Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14552d861bc5Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
145644d7874bSmrgesac
14572d861bc5Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14582d861bc5Smrg
14592d861bc5Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
14602d861bc5Smrg    # Check for guested configure.
14612d861bc5Smrg    if test -f "$ac_srcdir/configure.gnu"; then
14622d861bc5Smrg      echo &&
14632d861bc5Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14642d861bc5Smrg    elif test -f "$ac_srcdir/configure"; then
14652d861bc5Smrg      echo &&
14662d861bc5Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
146744d7874bSmrg    else
14682d861bc5Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14692d861bc5Smrg    fi || ac_status=$?
14702d861bc5Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
147144d7874bSmrg  done
147244d7874bSmrgfi
147344d7874bSmrg
14742d861bc5Smrgtest -n "$ac_init_help" && exit $ac_status
147544d7874bSmrgif $ac_init_version; then
147644d7874bSmrg  cat <<\_ACEOF
14772d861bc5Smrgbeforelight configure 1.0.4
14782d861bc5Smrggenerated by GNU Autoconf 2.68
147944d7874bSmrg
14802d861bc5SmrgCopyright (C) 2010 Free Software Foundation, Inc.
148144d7874bSmrgThis configure script is free software; the Free Software Foundation
148244d7874bSmrggives unlimited permission to copy, distribute and modify it.
148344d7874bSmrg_ACEOF
14842d861bc5Smrg  exit
148544d7874bSmrgfi
148644d7874bSmrg
14872d861bc5Smrg## ------------------------ ##
14882d861bc5Smrg## Autoconf initialization. ##
14892d861bc5Smrg## ------------------------ ##
149044d7874bSmrg
14912d861bc5Smrg# ac_fn_c_try_compile LINENO
14922d861bc5Smrg# --------------------------
14932d861bc5Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
14942d861bc5Smrgac_fn_c_try_compile ()
149544d7874bSmrg{
14962d861bc5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14972d861bc5Smrg  rm -f conftest.$ac_objext
14982d861bc5Smrg  if { { ac_try="$ac_compile"
14992d861bc5Smrgcase "(($ac_try" in
15002d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012d861bc5Smrg  *) ac_try_echo=$ac_try;;
15022d861bc5Smrgesac
15032d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15042d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
15052d861bc5Smrg  (eval "$ac_compile") 2>conftest.err
15062d861bc5Smrg  ac_status=$?
15072d861bc5Smrg  if test -s conftest.err; then
15082d861bc5Smrg    grep -v '^ *+' conftest.err >conftest.er1
15092d861bc5Smrg    cat conftest.er1 >&5
15102d861bc5Smrg    mv -f conftest.er1 conftest.err
15112d861bc5Smrg  fi
15122d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15132d861bc5Smrg  test $ac_status = 0; } && {
15142d861bc5Smrg	 test -z "$ac_c_werror_flag" ||
15152d861bc5Smrg	 test ! -s conftest.err
15162d861bc5Smrg       } && test -s conftest.$ac_objext; then :
15172d861bc5Smrg  ac_retval=0
15182d861bc5Smrgelse
15192d861bc5Smrg  $as_echo "$as_me: failed program was:" >&5
15202d861bc5Smrgsed 's/^/| /' conftest.$ac_ext >&5
152144d7874bSmrg
15222d861bc5Smrg	ac_retval=1
15232d861bc5Smrgfi
15242d861bc5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15252d861bc5Smrg  as_fn_set_status $ac_retval
152644d7874bSmrg
15272d861bc5Smrg} # ac_fn_c_try_compile
152844d7874bSmrg
15292d861bc5Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15302d861bc5Smrg# ---------------------------------------------
15312d861bc5Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15322d861bc5Smrg# accordingly.
15332d861bc5Smrgac_fn_c_check_decl ()
15342d861bc5Smrg{
15352d861bc5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15362d861bc5Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15372d861bc5Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15382d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15392d861bc5Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15402d861bc5Smrgif eval \${$3+:} false; then :
15412d861bc5Smrg  $as_echo_n "(cached) " >&6
15422d861bc5Smrgelse
15432d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442d861bc5Smrg/* end confdefs.h.  */
15452d861bc5Smrg$4
15462d861bc5Smrgint
15472d861bc5Smrgmain ()
15482d861bc5Smrg{
15492d861bc5Smrg#ifndef $as_decl_name
15502d861bc5Smrg#ifdef __cplusplus
15512d861bc5Smrg  (void) $as_decl_use;
15522d861bc5Smrg#else
15532d861bc5Smrg  (void) $as_decl_name;
15542d861bc5Smrg#endif
15552d861bc5Smrg#endif
155644d7874bSmrg
15572d861bc5Smrg  ;
15582d861bc5Smrg  return 0;
15592d861bc5Smrg}
15602d861bc5Smrg_ACEOF
15612d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15622d861bc5Smrg  eval "$3=yes"
15632d861bc5Smrgelse
15642d861bc5Smrg  eval "$3=no"
15652d861bc5Smrgfi
15662d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672d861bc5Smrgfi
15682d861bc5Smrgeval ac_res=\$$3
15692d861bc5Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15702d861bc5Smrg$as_echo "$ac_res" >&6; }
15712d861bc5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
157244d7874bSmrg
15732d861bc5Smrg} # ac_fn_c_check_decl
15742d861bc5Smrg
15752d861bc5Smrg# ac_fn_c_try_cpp LINENO
15762d861bc5Smrg# ----------------------
15772d861bc5Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15782d861bc5Smrgac_fn_c_try_cpp ()
15792d861bc5Smrg{
15802d861bc5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15812d861bc5Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15822d861bc5Smrgcase "(($ac_try" in
15832d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842d861bc5Smrg  *) ac_try_echo=$ac_try;;
15852d861bc5Smrgesac
15862d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15872d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
15882d861bc5Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15892d861bc5Smrg  ac_status=$?
15902d861bc5Smrg  if test -s conftest.err; then
15912d861bc5Smrg    grep -v '^ *+' conftest.err >conftest.er1
15922d861bc5Smrg    cat conftest.er1 >&5
15932d861bc5Smrg    mv -f conftest.er1 conftest.err
15942d861bc5Smrg  fi
15952d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962d861bc5Smrg  test $ac_status = 0; } > conftest.i && {
15972d861bc5Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15982d861bc5Smrg	 test ! -s conftest.err
15992d861bc5Smrg       }; then :
16002d861bc5Smrg  ac_retval=0
16012d861bc5Smrgelse
16022d861bc5Smrg  $as_echo "$as_me: failed program was:" >&5
16032d861bc5Smrgsed 's/^/| /' conftest.$ac_ext >&5
16042d861bc5Smrg
16052d861bc5Smrg    ac_retval=1
16062d861bc5Smrgfi
16072d861bc5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16082d861bc5Smrg  as_fn_set_status $ac_retval
16092d861bc5Smrg
16102d861bc5Smrg} # ac_fn_c_try_cpp
16112d861bc5Smrg
16122d861bc5Smrg# ac_fn_c_try_run LINENO
16132d861bc5Smrg# ----------------------
16142d861bc5Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16152d861bc5Smrg# that executables *can* be run.
16162d861bc5Smrgac_fn_c_try_run ()
16172d861bc5Smrg{
16182d861bc5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16192d861bc5Smrg  if { { ac_try="$ac_link"
16202d861bc5Smrgcase "(($ac_try" in
16212d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222d861bc5Smrg  *) ac_try_echo=$ac_try;;
16232d861bc5Smrgesac
16242d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16252d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
16262d861bc5Smrg  (eval "$ac_link") 2>&5
16272d861bc5Smrg  ac_status=$?
16282d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16292d861bc5Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16302d861bc5Smrg  { { case "(($ac_try" in
16312d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322d861bc5Smrg  *) ac_try_echo=$ac_try;;
16332d861bc5Smrgesac
16342d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16352d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
16362d861bc5Smrg  (eval "$ac_try") 2>&5
16372d861bc5Smrg  ac_status=$?
16382d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16392d861bc5Smrg  test $ac_status = 0; }; }; then :
16402d861bc5Smrg  ac_retval=0
16412d861bc5Smrgelse
16422d861bc5Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16432d861bc5Smrg       $as_echo "$as_me: failed program was:" >&5
16442d861bc5Smrgsed 's/^/| /' conftest.$ac_ext >&5
16452d861bc5Smrg
16462d861bc5Smrg       ac_retval=$ac_status
16472d861bc5Smrgfi
16482d861bc5Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16492d861bc5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16502d861bc5Smrg  as_fn_set_status $ac_retval
16512d861bc5Smrg
16522d861bc5Smrg} # ac_fn_c_try_run
16532d861bc5Smrg
16542d861bc5Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16552d861bc5Smrg# -------------------------------------------------------
16562d861bc5Smrg# Tests whether HEADER exists and can be compiled using the include files in
16572d861bc5Smrg# INCLUDES, setting the cache variable VAR accordingly.
16582d861bc5Smrgac_fn_c_check_header_compile ()
16592d861bc5Smrg{
16602d861bc5Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16612d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16622d861bc5Smrg$as_echo_n "checking for $2... " >&6; }
16632d861bc5Smrgif eval \${$3+:} false; then :
16642d861bc5Smrg  $as_echo_n "(cached) " >&6
16652d861bc5Smrgelse
16662d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672d861bc5Smrg/* end confdefs.h.  */
16682d861bc5Smrg$4
16692d861bc5Smrg#include <$2>
16702d861bc5Smrg_ACEOF
16712d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16722d861bc5Smrg  eval "$3=yes"
16732d861bc5Smrgelse
16742d861bc5Smrg  eval "$3=no"
16752d861bc5Smrgfi
16762d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772d861bc5Smrgfi
16782d861bc5Smrgeval ac_res=\$$3
16792d861bc5Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16802d861bc5Smrg$as_echo "$ac_res" >&6; }
16812d861bc5Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16822d861bc5Smrg
16832d861bc5Smrg} # ac_fn_c_check_header_compile
16842d861bc5Smrgcat >config.log <<_ACEOF
16852d861bc5SmrgThis file contains any messages produced by compilers while
16862d861bc5Smrgrunning configure, to aid debugging if configure makes a mistake.
16872d861bc5Smrg
16882d861bc5SmrgIt was created by beforelight $as_me 1.0.4, which was
16892d861bc5Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
16902d861bc5Smrg
16912d861bc5Smrg  $ $0 $@
16922d861bc5Smrg
16932d861bc5Smrg_ACEOF
16942d861bc5Smrgexec 5>>config.log
16952d861bc5Smrg{
16962d861bc5Smrgcat <<_ASUNAME
16972d861bc5Smrg## --------- ##
16982d861bc5Smrg## Platform. ##
16992d861bc5Smrg## --------- ##
17002d861bc5Smrg
17012d861bc5Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17022d861bc5Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
17032d861bc5Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
17042d861bc5Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
17052d861bc5Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
17062d861bc5Smrg
17072d861bc5Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
17082d861bc5Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
17092d861bc5Smrg
17102d861bc5Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
17112d861bc5Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
17122d861bc5Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
17132d861bc5Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
17142d861bc5Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
17152d861bc5Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
17162d861bc5Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
17172d861bc5Smrg
17182d861bc5Smrg_ASUNAME
17192d861bc5Smrg
17202d861bc5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
172144d7874bSmrgfor as_dir in $PATH
172244d7874bSmrgdo
172344d7874bSmrg  IFS=$as_save_IFS
172444d7874bSmrg  test -z "$as_dir" && as_dir=.
17252d861bc5Smrg    $as_echo "PATH: $as_dir"
17262d861bc5Smrg  done
17272d861bc5SmrgIFS=$as_save_IFS
172844d7874bSmrg
172944d7874bSmrg} >&5
173044d7874bSmrg
173144d7874bSmrgcat >&5 <<_ACEOF
173244d7874bSmrg
173344d7874bSmrg
173444d7874bSmrg## ----------- ##
173544d7874bSmrg## Core tests. ##
173644d7874bSmrg## ----------- ##
173744d7874bSmrg
173844d7874bSmrg_ACEOF
173944d7874bSmrg
174044d7874bSmrg
174144d7874bSmrg# Keep a trace of the command line.
174244d7874bSmrg# Strip out --no-create and --no-recursion so they do not pile up.
174344d7874bSmrg# Strip out --silent because we don't want to record it for future runs.
174444d7874bSmrg# Also quote any args containing shell meta-characters.
174544d7874bSmrg# Make two passes to allow for proper duplicate-argument suppression.
174644d7874bSmrgac_configure_args=
174744d7874bSmrgac_configure_args0=
174844d7874bSmrgac_configure_args1=
174944d7874bSmrgac_must_keep_next=false
175044d7874bSmrgfor ac_pass in 1 2
175144d7874bSmrgdo
175244d7874bSmrg  for ac_arg
175344d7874bSmrg  do
175444d7874bSmrg    case $ac_arg in
175544d7874bSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
175644d7874bSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
175744d7874bSmrg    | -silent | --silent | --silen | --sile | --sil)
175844d7874bSmrg      continue ;;
17592d861bc5Smrg    *\'*)
17602d861bc5Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
176144d7874bSmrg    esac
176244d7874bSmrg    case $ac_pass in
17632d861bc5Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
176444d7874bSmrg    2)
17652d861bc5Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
176644d7874bSmrg      if test $ac_must_keep_next = true; then
176744d7874bSmrg	ac_must_keep_next=false # Got value, back to normal.
176844d7874bSmrg      else
176944d7874bSmrg	case $ac_arg in
177044d7874bSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
177144d7874bSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
177244d7874bSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
177344d7874bSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
177444d7874bSmrg	    case "$ac_configure_args0 " in
177544d7874bSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
177644d7874bSmrg	    esac
177744d7874bSmrg	    ;;
177844d7874bSmrg	  -* ) ac_must_keep_next=true ;;
177944d7874bSmrg	esac
178044d7874bSmrg      fi
17812d861bc5Smrg      as_fn_append ac_configure_args " '$ac_arg'"
178244d7874bSmrg      ;;
178344d7874bSmrg    esac
178444d7874bSmrg  done
178544d7874bSmrgdone
17862d861bc5Smrg{ ac_configure_args0=; unset ac_configure_args0;}
17872d861bc5Smrg{ ac_configure_args1=; unset ac_configure_args1;}
178844d7874bSmrg
178944d7874bSmrg# When interrupted or exit'd, cleanup temporary files, and complete
179044d7874bSmrg# config.log.  We remove comments because anyway the quotes in there
179144d7874bSmrg# would cause problems or look ugly.
17922d861bc5Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
17932d861bc5Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
179444d7874bSmrgtrap 'exit_status=$?
179544d7874bSmrg  # Save into config.log some information that might help in debugging.
179644d7874bSmrg  {
179744d7874bSmrg    echo
179844d7874bSmrg
17992d861bc5Smrg    $as_echo "## ---------------- ##
180044d7874bSmrg## Cache variables. ##
18012d861bc5Smrg## ---------------- ##"
180244d7874bSmrg    echo
180344d7874bSmrg    # The following way of writing the cache mishandles newlines in values,
18042d861bc5Smrg(
18052d861bc5Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
18062d861bc5Smrg    eval ac_val=\$$ac_var
18072d861bc5Smrg    case $ac_val in #(
18082d861bc5Smrg    *${as_nl}*)
18092d861bc5Smrg      case $ac_var in #(
18102d861bc5Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18112d861bc5Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18122d861bc5Smrg      esac
18132d861bc5Smrg      case $ac_var in #(
18142d861bc5Smrg      _ | IFS | as_nl) ;; #(
18152d861bc5Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18162d861bc5Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
18172d861bc5Smrg      esac ;;
18182d861bc5Smrg    esac
18192d861bc5Smrg  done
182044d7874bSmrg  (set) 2>&1 |
18212d861bc5Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
18222d861bc5Smrg    *${as_nl}ac_space=\ *)
182344d7874bSmrg      sed -n \
18242d861bc5Smrg	"s/'\''/'\''\\\\'\'''\''/g;
18252d861bc5Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
18262d861bc5Smrg      ;; #(
182744d7874bSmrg    *)
18282d861bc5Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
182944d7874bSmrg      ;;
18302d861bc5Smrg    esac |
18312d861bc5Smrg    sort
18322d861bc5Smrg)
183344d7874bSmrg    echo
183444d7874bSmrg
18352d861bc5Smrg    $as_echo "## ----------------- ##
183644d7874bSmrg## Output variables. ##
18372d861bc5Smrg## ----------------- ##"
183844d7874bSmrg    echo
183944d7874bSmrg    for ac_var in $ac_subst_vars
184044d7874bSmrg    do
18412d861bc5Smrg      eval ac_val=\$$ac_var
18422d861bc5Smrg      case $ac_val in
18432d861bc5Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18442d861bc5Smrg      esac
18452d861bc5Smrg      $as_echo "$ac_var='\''$ac_val'\''"
184644d7874bSmrg    done | sort
184744d7874bSmrg    echo
184844d7874bSmrg
184944d7874bSmrg    if test -n "$ac_subst_files"; then
18502d861bc5Smrg      $as_echo "## ------------------- ##
18512d861bc5Smrg## File substitutions. ##
18522d861bc5Smrg## ------------------- ##"
185344d7874bSmrg      echo
185444d7874bSmrg      for ac_var in $ac_subst_files
185544d7874bSmrg      do
18562d861bc5Smrg	eval ac_val=\$$ac_var
18572d861bc5Smrg	case $ac_val in
18582d861bc5Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18592d861bc5Smrg	esac
18602d861bc5Smrg	$as_echo "$ac_var='\''$ac_val'\''"
186144d7874bSmrg      done | sort
186244d7874bSmrg      echo
186344d7874bSmrg    fi
186444d7874bSmrg
186544d7874bSmrg    if test -s confdefs.h; then
18662d861bc5Smrg      $as_echo "## ----------- ##
186744d7874bSmrg## confdefs.h. ##
18682d861bc5Smrg## ----------- ##"
186944d7874bSmrg      echo
18702d861bc5Smrg      cat confdefs.h
187144d7874bSmrg      echo
187244d7874bSmrg    fi
187344d7874bSmrg    test "$ac_signal" != 0 &&
18742d861bc5Smrg      $as_echo "$as_me: caught signal $ac_signal"
18752d861bc5Smrg    $as_echo "$as_me: exit $exit_status"
187644d7874bSmrg  } >&5
18772d861bc5Smrg  rm -f core *.core core.conftest.* &&
18782d861bc5Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
187944d7874bSmrg    exit $exit_status
18802d861bc5Smrg' 0
188144d7874bSmrgfor ac_signal in 1 2 13 15; do
18822d861bc5Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
188344d7874bSmrgdone
188444d7874bSmrgac_signal=0
188544d7874bSmrg
188644d7874bSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
18872d861bc5Smrgrm -f -r conftest* confdefs.h
18882d861bc5Smrg
18892d861bc5Smrg$as_echo "/* confdefs.h */" > confdefs.h
189044d7874bSmrg
189144d7874bSmrg# Predefined preprocessor variables.
189244d7874bSmrg
189344d7874bSmrgcat >>confdefs.h <<_ACEOF
189444d7874bSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
189544d7874bSmrg_ACEOF
189644d7874bSmrg
189744d7874bSmrgcat >>confdefs.h <<_ACEOF
189844d7874bSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
189944d7874bSmrg_ACEOF
190044d7874bSmrg
190144d7874bSmrgcat >>confdefs.h <<_ACEOF
190244d7874bSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
190344d7874bSmrg_ACEOF
190444d7874bSmrg
190544d7874bSmrgcat >>confdefs.h <<_ACEOF
190644d7874bSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
190744d7874bSmrg_ACEOF
190844d7874bSmrg
190944d7874bSmrgcat >>confdefs.h <<_ACEOF
191044d7874bSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
191144d7874bSmrg_ACEOF
191244d7874bSmrg
19132d861bc5Smrgcat >>confdefs.h <<_ACEOF
19142d861bc5Smrg#define PACKAGE_URL "$PACKAGE_URL"
19152d861bc5Smrg_ACEOF
19162d861bc5Smrg
191744d7874bSmrg
191844d7874bSmrg# Let the site file select an alternate cache file if it wants to.
19192d861bc5Smrg# Prefer an explicitly selected file to automatically selected ones.
19202d861bc5Smrgac_site_file1=NONE
19212d861bc5Smrgac_site_file2=NONE
19222d861bc5Smrgif test -n "$CONFIG_SITE"; then
19232d861bc5Smrg  # We do not want a PATH search for config.site.
19242d861bc5Smrg  case $CONFIG_SITE in #((
19252d861bc5Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
19262d861bc5Smrg    */*) ac_site_file1=$CONFIG_SITE;;
19272d861bc5Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
19282d861bc5Smrg  esac
19292d861bc5Smrgelif test "x$prefix" != xNONE; then
19302d861bc5Smrg  ac_site_file1=$prefix/share/config.site
19312d861bc5Smrg  ac_site_file2=$prefix/etc/config.site
19322d861bc5Smrgelse
19332d861bc5Smrg  ac_site_file1=$ac_default_prefix/share/config.site
19342d861bc5Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
193544d7874bSmrgfi
19362d861bc5Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
19372d861bc5Smrgdo
19382d861bc5Smrg  test "x$ac_site_file" = xNONE && continue
19392d861bc5Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
19402d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
19412d861bc5Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
194244d7874bSmrg    sed 's/^/| /' "$ac_site_file" >&5
19432d861bc5Smrg    . "$ac_site_file" \
19442d861bc5Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19452d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19462d861bc5Smrgas_fn_error $? "failed to load site script $ac_site_file
19472d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
194844d7874bSmrg  fi
194944d7874bSmrgdone
195044d7874bSmrg
195144d7874bSmrgif test -r "$cache_file"; then
19522d861bc5Smrg  # Some versions of bash will fail to source /dev/null (special files
19532d861bc5Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
19542d861bc5Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
19552d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
19562d861bc5Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
195744d7874bSmrg    case $cache_file in
19582d861bc5Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
19592d861bc5Smrg      *)                      . "./$cache_file";;
196044d7874bSmrg    esac
196144d7874bSmrg  fi
196244d7874bSmrgelse
19632d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
19642d861bc5Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
196544d7874bSmrg  >$cache_file
196644d7874bSmrgfi
196744d7874bSmrg
196844d7874bSmrg# Check that the precious variables saved in the cache have kept the same
196944d7874bSmrg# value.
197044d7874bSmrgac_cache_corrupted=false
19712d861bc5Smrgfor ac_var in $ac_precious_vars; do
197244d7874bSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
197344d7874bSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
19742d861bc5Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
19752d861bc5Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
197644d7874bSmrg  case $ac_old_set,$ac_new_set in
197744d7874bSmrg    set,)
19782d861bc5Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
19792d861bc5Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
198044d7874bSmrg      ac_cache_corrupted=: ;;
198144d7874bSmrg    ,set)
19822d861bc5Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
19832d861bc5Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
198444d7874bSmrg      ac_cache_corrupted=: ;;
198544d7874bSmrg    ,);;
198644d7874bSmrg    *)
198744d7874bSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
19882d861bc5Smrg	# differences in whitespace do not lead to failure.
19892d861bc5Smrg	ac_old_val_w=`echo x $ac_old_val`
19902d861bc5Smrg	ac_new_val_w=`echo x $ac_new_val`
19912d861bc5Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
19922d861bc5Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
19932d861bc5Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
19942d861bc5Smrg	  ac_cache_corrupted=:
19952d861bc5Smrg	else
19962d861bc5Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
19972d861bc5Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
19982d861bc5Smrg	  eval $ac_var=\$ac_old_val
19992d861bc5Smrg	fi
20002d861bc5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
20012d861bc5Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
20022d861bc5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
20032d861bc5Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
200444d7874bSmrg      fi;;
200544d7874bSmrg  esac
200644d7874bSmrg  # Pass precious variables to config.status.
200744d7874bSmrg  if test "$ac_new_set" = set; then
200844d7874bSmrg    case $ac_new_val in
20092d861bc5Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
201044d7874bSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
201144d7874bSmrg    esac
201244d7874bSmrg    case " $ac_configure_args " in
201344d7874bSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
20142d861bc5Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
201544d7874bSmrg    esac
201644d7874bSmrg  fi
201744d7874bSmrgdone
201844d7874bSmrgif $ac_cache_corrupted; then
20192d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20202d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20212d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
20222d861bc5Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
20232d861bc5Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
202444d7874bSmrgfi
20252d861bc5Smrg## -------------------- ##
20262d861bc5Smrg## Main body of script. ##
20272d861bc5Smrg## -------------------- ##
202844d7874bSmrg
202944d7874bSmrgac_ext=c
203044d7874bSmrgac_cpp='$CPP $CPPFLAGS'
203144d7874bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
203244d7874bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
203344d7874bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
203444d7874bSmrg
203544d7874bSmrg
20362d861bc5Smrgam__api_version='1.11'
203744d7874bSmrg
203844d7874bSmrgac_aux_dir=
20392d861bc5Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
20402d861bc5Smrg  if test -f "$ac_dir/install-sh"; then
204144d7874bSmrg    ac_aux_dir=$ac_dir
204244d7874bSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
204344d7874bSmrg    break
20442d861bc5Smrg  elif test -f "$ac_dir/install.sh"; then
204544d7874bSmrg    ac_aux_dir=$ac_dir
204644d7874bSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
204744d7874bSmrg    break
20482d861bc5Smrg  elif test -f "$ac_dir/shtool"; then
204944d7874bSmrg    ac_aux_dir=$ac_dir
205044d7874bSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
205144d7874bSmrg    break
205244d7874bSmrg  fi
205344d7874bSmrgdone
205444d7874bSmrgif test -z "$ac_aux_dir"; then
20552d861bc5Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
205644d7874bSmrgfi
20572d861bc5Smrg
20582d861bc5Smrg# These three variables are undocumented and unsupported,
20592d861bc5Smrg# and are intended to be withdrawn in a future Autoconf release.
20602d861bc5Smrg# They can cause serious problems if a builder's source tree is in a directory
20612d861bc5Smrg# whose full name contains unusual characters.
20622d861bc5Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
20632d861bc5Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
20642d861bc5Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
20652d861bc5Smrg
206644d7874bSmrg
206744d7874bSmrg# Find a good install program.  We prefer a C program (faster),
206844d7874bSmrg# so one script is as good as another.  But avoid the broken or
206944d7874bSmrg# incompatible versions:
207044d7874bSmrg# SysV /etc/install, /usr/sbin/install
207144d7874bSmrg# SunOS /usr/etc/install
207244d7874bSmrg# IRIX /sbin/install
207344d7874bSmrg# AIX /bin/install
207444d7874bSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
207544d7874bSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
207644d7874bSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
207744d7874bSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
207844d7874bSmrg# OS/2's system install, which has a completely different semantic
207944d7874bSmrg# ./install, which can be erroneously created by make from ./install.sh.
20802d861bc5Smrg# Reject install programs that cannot install multiple files.
20812d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
20822d861bc5Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
208344d7874bSmrgif test -z "$INSTALL"; then
20842d861bc5Smrgif ${ac_cv_path_install+:} false; then :
20852d861bc5Smrg  $as_echo_n "(cached) " >&6
208644d7874bSmrgelse
208744d7874bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208844d7874bSmrgfor as_dir in $PATH
208944d7874bSmrgdo
209044d7874bSmrg  IFS=$as_save_IFS
209144d7874bSmrg  test -z "$as_dir" && as_dir=.
20922d861bc5Smrg    # Account for people who put trailing slashes in PATH elements.
20932d861bc5Smrgcase $as_dir/ in #((
20942d861bc5Smrg  ./ | .// | /[cC]/* | \
209544d7874bSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20962d861bc5Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
209744d7874bSmrg  /usr/ucb/* ) ;;
209844d7874bSmrg  *)
209944d7874bSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
210044d7874bSmrg    # Don't use installbsd from OSF since it installs stuff as root
210144d7874bSmrg    # by default.
210244d7874bSmrg    for ac_prog in ginstall scoinst install; do
210344d7874bSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
21042d861bc5Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
210544d7874bSmrg	  if test $ac_prog = install &&
210644d7874bSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
210744d7874bSmrg	    # AIX install.  It has an incompatible calling convention.
210844d7874bSmrg	    :
210944d7874bSmrg	  elif test $ac_prog = install &&
211044d7874bSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
211144d7874bSmrg	    # program-specific install script used by HP pwplus--don't use.
211244d7874bSmrg	    :
211344d7874bSmrg	  else
21142d861bc5Smrg	    rm -rf conftest.one conftest.two conftest.dir
21152d861bc5Smrg	    echo one > conftest.one
21162d861bc5Smrg	    echo two > conftest.two
21172d861bc5Smrg	    mkdir conftest.dir
21182d861bc5Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
21192d861bc5Smrg	      test -s conftest.one && test -s conftest.two &&
21202d861bc5Smrg	      test -s conftest.dir/conftest.one &&
21212d861bc5Smrg	      test -s conftest.dir/conftest.two
21222d861bc5Smrg	    then
21232d861bc5Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21242d861bc5Smrg	      break 3
21252d861bc5Smrg	    fi
212644d7874bSmrg	  fi
212744d7874bSmrg	fi
212844d7874bSmrg      done
212944d7874bSmrg    done
213044d7874bSmrg    ;;
213144d7874bSmrgesac
213244d7874bSmrg
21332d861bc5Smrg  done
21342d861bc5SmrgIFS=$as_save_IFS
21352d861bc5Smrg
21362d861bc5Smrgrm -rf conftest.one conftest.two conftest.dir
213744d7874bSmrg
213844d7874bSmrgfi
213944d7874bSmrg  if test "${ac_cv_path_install+set}" = set; then
214044d7874bSmrg    INSTALL=$ac_cv_path_install
214144d7874bSmrg  else
21422d861bc5Smrg    # As a last resort, use the slow shell script.  Don't cache a
21432d861bc5Smrg    # value for INSTALL within a source directory, because that will
214444d7874bSmrg    # break other packages using the cache if that directory is
21452d861bc5Smrg    # removed, or if the value is a relative name.
214644d7874bSmrg    INSTALL=$ac_install_sh
214744d7874bSmrg  fi
214844d7874bSmrgfi
21492d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
21502d861bc5Smrg$as_echo "$INSTALL" >&6; }
215144d7874bSmrg
215244d7874bSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
215344d7874bSmrg# It thinks the first close brace ends the variable substitution.
215444d7874bSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
215544d7874bSmrg
215644d7874bSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
215744d7874bSmrg
215844d7874bSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
215944d7874bSmrg
21602d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
21612d861bc5Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
216244d7874bSmrg# Just in case
216344d7874bSmrgsleep 1
216444d7874bSmrgecho timestamp > conftest.file
21652d861bc5Smrg# Reject unsafe characters in $srcdir or the absolute working directory
21662d861bc5Smrg# name.  Accept space and tab only in the latter.
21672d861bc5Smrgam_lf='
21682d861bc5Smrg'
21692d861bc5Smrgcase `pwd` in
21702d861bc5Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
21712d861bc5Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
21722d861bc5Smrgesac
21732d861bc5Smrgcase $srcdir in
21742d861bc5Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
21752d861bc5Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
21762d861bc5Smrgesac
21772d861bc5Smrg
217844d7874bSmrg# Do `set' in a subshell so we don't clobber the current shell's
217944d7874bSmrg# arguments.  Must try -L first in case configure is actually a
218044d7874bSmrg# symlink; some systems play weird games with the mod time of symlinks
218144d7874bSmrg# (eg FreeBSD returns the mod time of the symlink's containing
218244d7874bSmrg# directory).
218344d7874bSmrgif (
21842d861bc5Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
218544d7874bSmrg   if test "$*" = "X"; then
218644d7874bSmrg      # -L didn't work.
21872d861bc5Smrg      set X `ls -t "$srcdir/configure" conftest.file`
218844d7874bSmrg   fi
218944d7874bSmrg   rm -f conftest.file
219044d7874bSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
219144d7874bSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
219244d7874bSmrg
219344d7874bSmrg      # If neither matched, then we have a broken ls.  This can happen
219444d7874bSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
219544d7874bSmrg      # broken ls alias from the environment.  This has actually
219644d7874bSmrg      # happened.  Such a system could not be considered "sane".
21972d861bc5Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
21982d861bc5Smrgalias in your environment" "$LINENO" 5
219944d7874bSmrg   fi
220044d7874bSmrg
220144d7874bSmrg   test "$2" = conftest.file
220244d7874bSmrg   )
220344d7874bSmrgthen
220444d7874bSmrg   # Ok.
220544d7874bSmrg   :
220644d7874bSmrgelse
22072d861bc5Smrg   as_fn_error $? "newly created file is older than distributed files!
22082d861bc5SmrgCheck your system clock" "$LINENO" 5
220944d7874bSmrgfi
22102d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22112d861bc5Smrg$as_echo "yes" >&6; }
221244d7874bSmrgtest "$program_prefix" != NONE &&
22132d861bc5Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
221444d7874bSmrg# Use a double $ so make ignores it.
221544d7874bSmrgtest "$program_suffix" != NONE &&
22162d861bc5Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
22172d861bc5Smrg# Double any \ or $.
221844d7874bSmrg# By default was `s,x,x', remove it if useless.
22192d861bc5Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
22202d861bc5Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
222144d7874bSmrg
222244d7874bSmrg# expand $ac_aux_dir to an absolute path
222344d7874bSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
222444d7874bSmrg
22252d861bc5Smrgif test x"${MISSING+set}" != xset; then
22262d861bc5Smrg  case $am_aux_dir in
22272d861bc5Smrg  *\ * | *\	*)
22282d861bc5Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
22292d861bc5Smrg  *)
22302d861bc5Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
22312d861bc5Smrg  esac
22322d861bc5Smrgfi
223344d7874bSmrg# Use eval to expand $SHELL
223444d7874bSmrgif eval "$MISSING --run true"; then
223544d7874bSmrg  am_missing_run="$MISSING --run "
223644d7874bSmrgelse
223744d7874bSmrg  am_missing_run=
22382d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
22392d861bc5Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
22402d861bc5Smrgfi
22412d861bc5Smrg
22422d861bc5Smrgif test x"${install_sh}" != xset; then
22432d861bc5Smrg  case $am_aux_dir in
22442d861bc5Smrg  *\ * | *\	*)
22452d861bc5Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
22462d861bc5Smrg  *)
22472d861bc5Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
22482d861bc5Smrg  esac
22492d861bc5Smrgfi
22502d861bc5Smrg
22512d861bc5Smrg# Installed binaries are usually stripped using `strip' when the user
22522d861bc5Smrg# run `make install-strip'.  However `strip' might not be the right
22532d861bc5Smrg# tool to use in cross-compilation environments, therefore Automake
22542d861bc5Smrg# will honor the `STRIP' environment variable to overrule this program.
22552d861bc5Smrgif test "$cross_compiling" != no; then
22562d861bc5Smrg  if test -n "$ac_tool_prefix"; then
22572d861bc5Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
22582d861bc5Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
22592d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22602d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
22612d861bc5Smrgif ${ac_cv_prog_STRIP+:} false; then :
22622d861bc5Smrg  $as_echo_n "(cached) " >&6
22632d861bc5Smrgelse
22642d861bc5Smrg  if test -n "$STRIP"; then
22652d861bc5Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
22662d861bc5Smrgelse
22672d861bc5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22682d861bc5Smrgfor as_dir in $PATH
22692d861bc5Smrgdo
22702d861bc5Smrg  IFS=$as_save_IFS
22712d861bc5Smrg  test -z "$as_dir" && as_dir=.
22722d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
22732d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22742d861bc5Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
22752d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22762d861bc5Smrg    break 2
22772d861bc5Smrg  fi
22782d861bc5Smrgdone
22792d861bc5Smrg  done
22802d861bc5SmrgIFS=$as_save_IFS
22812d861bc5Smrg
22822d861bc5Smrgfi
22832d861bc5Smrgfi
22842d861bc5SmrgSTRIP=$ac_cv_prog_STRIP
22852d861bc5Smrgif test -n "$STRIP"; then
22862d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
22872d861bc5Smrg$as_echo "$STRIP" >&6; }
22882d861bc5Smrgelse
22892d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22902d861bc5Smrg$as_echo "no" >&6; }
22912d861bc5Smrgfi
22922d861bc5Smrg
22932d861bc5Smrg
22942d861bc5Smrgfi
22952d861bc5Smrgif test -z "$ac_cv_prog_STRIP"; then
22962d861bc5Smrg  ac_ct_STRIP=$STRIP
22972d861bc5Smrg  # Extract the first word of "strip", so it can be a program name with args.
22982d861bc5Smrgset dummy strip; ac_word=$2
22992d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23002d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
23012d861bc5Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
23022d861bc5Smrg  $as_echo_n "(cached) " >&6
23032d861bc5Smrgelse
23042d861bc5Smrg  if test -n "$ac_ct_STRIP"; then
23052d861bc5Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
23062d861bc5Smrgelse
23072d861bc5Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23082d861bc5Smrgfor as_dir in $PATH
23092d861bc5Smrgdo
23102d861bc5Smrg  IFS=$as_save_IFS
23112d861bc5Smrg  test -z "$as_dir" && as_dir=.
23122d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23132d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23142d861bc5Smrg    ac_cv_prog_ac_ct_STRIP="strip"
23152d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23162d861bc5Smrg    break 2
23172d861bc5Smrg  fi
23182d861bc5Smrgdone
23192d861bc5Smrg  done
23202d861bc5SmrgIFS=$as_save_IFS
23212d861bc5Smrg
23222d861bc5Smrgfi
23232d861bc5Smrgfi
23242d861bc5Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
23252d861bc5Smrgif test -n "$ac_ct_STRIP"; then
23262d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
23272d861bc5Smrg$as_echo "$ac_ct_STRIP" >&6; }
23282d861bc5Smrgelse
23292d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302d861bc5Smrg$as_echo "no" >&6; }
23312d861bc5Smrgfi
23322d861bc5Smrg
23332d861bc5Smrg  if test "x$ac_ct_STRIP" = x; then
23342d861bc5Smrg    STRIP=":"
23352d861bc5Smrg  else
23362d861bc5Smrg    case $cross_compiling:$ac_tool_warned in
23372d861bc5Smrgyes:)
23382d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23392d861bc5Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23402d861bc5Smrgac_tool_warned=yes ;;
23412d861bc5Smrgesac
23422d861bc5Smrg    STRIP=$ac_ct_STRIP
23432d861bc5Smrg  fi
23442d861bc5Smrgelse
23452d861bc5Smrg  STRIP="$ac_cv_prog_STRIP"
23462d861bc5Smrgfi
23472d861bc5Smrg
23482d861bc5Smrgfi
23492d861bc5SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
23502d861bc5Smrg
23512d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
23522d861bc5Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
23532d861bc5Smrgif test -z "$MKDIR_P"; then
23542d861bc5Smrg  if ${ac_cv_path_mkdir+:} false; then :
23552d861bc5Smrg  $as_echo_n "(cached) " >&6
23562d861bc5Smrgelse
23572d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23582d861bc5Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
23592d861bc5Smrgdo
23602d861bc5Smrg  IFS=$as_save_IFS
23612d861bc5Smrg  test -z "$as_dir" && as_dir=.
23622d861bc5Smrg    for ac_prog in mkdir gmkdir; do
23632d861bc5Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
23642d861bc5Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
23652d861bc5Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
23662d861bc5Smrg	     'mkdir (GNU coreutils) '* | \
23672d861bc5Smrg	     'mkdir (coreutils) '* | \
23682d861bc5Smrg	     'mkdir (fileutils) '4.1*)
23692d861bc5Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
23702d861bc5Smrg	       break 3;;
23712d861bc5Smrg	   esac
23722d861bc5Smrg	 done
23732d861bc5Smrg       done
237444d7874bSmrg  done
23752d861bc5SmrgIFS=$as_save_IFS
23762d861bc5Smrg
23772d861bc5Smrgfi
23782d861bc5Smrg
23792d861bc5Smrg  test -d ./--version && rmdir ./--version
23802d861bc5Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
23812d861bc5Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
238244d7874bSmrg  else
23832d861bc5Smrg    # As a last resort, use the slow shell script.  Don't cache a
23842d861bc5Smrg    # value for MKDIR_P within a source directory, because that will
23852d861bc5Smrg    # break other packages using the cache if that directory is
23862d861bc5Smrg    # removed, or if the value is a relative name.
23872d861bc5Smrg    MKDIR_P="$ac_install_sh -d"
238844d7874bSmrg  fi
238944d7874bSmrgfi
23902d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
23912d861bc5Smrg$as_echo "$MKDIR_P" >&6; }
23922d861bc5Smrg
23932d861bc5Smrgmkdir_p="$MKDIR_P"
23942d861bc5Smrgcase $mkdir_p in
23952d861bc5Smrg  [\\/$]* | ?:[\\/]*) ;;
23962d861bc5Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
23972d861bc5Smrgesac
239844d7874bSmrg
239944d7874bSmrgfor ac_prog in gawk mawk nawk awk
240044d7874bSmrgdo
240144d7874bSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
240244d7874bSmrgset dummy $ac_prog; ac_word=$2
24032d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24042d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
24052d861bc5Smrgif ${ac_cv_prog_AWK+:} false; then :
24062d861bc5Smrg  $as_echo_n "(cached) " >&6
240744d7874bSmrgelse
240844d7874bSmrg  if test -n "$AWK"; then
240944d7874bSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
241044d7874bSmrgelse
241144d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241244d7874bSmrgfor as_dir in $PATH
241344d7874bSmrgdo
241444d7874bSmrg  IFS=$as_save_IFS
241544d7874bSmrg  test -z "$as_dir" && as_dir=.
24162d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24172d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
241844d7874bSmrg    ac_cv_prog_AWK="$ac_prog"
24192d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
242044d7874bSmrg    break 2
242144d7874bSmrg  fi
242244d7874bSmrgdone
24232d861bc5Smrg  done
24242d861bc5SmrgIFS=$as_save_IFS
242544d7874bSmrg
242644d7874bSmrgfi
242744d7874bSmrgfi
242844d7874bSmrgAWK=$ac_cv_prog_AWK
242944d7874bSmrgif test -n "$AWK"; then
24302d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24312d861bc5Smrg$as_echo "$AWK" >&6; }
243244d7874bSmrgelse
24332d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24342d861bc5Smrg$as_echo "no" >&6; }
243544d7874bSmrgfi
243644d7874bSmrg
24372d861bc5Smrg
243844d7874bSmrg  test -n "$AWK" && break
243944d7874bSmrgdone
244044d7874bSmrg
24412d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24422d861bc5Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24432d861bc5Smrgset x ${MAKE-make}
24442d861bc5Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24452d861bc5Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24462d861bc5Smrg  $as_echo_n "(cached) " >&6
244744d7874bSmrgelse
244844d7874bSmrg  cat >conftest.make <<\_ACEOF
24492d861bc5SmrgSHELL = /bin/sh
245044d7874bSmrgall:
24512d861bc5Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
245244d7874bSmrg_ACEOF
24532d861bc5Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24542d861bc5Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
24552d861bc5Smrg  *@@@%%%=?*=@@@%%%*)
24562d861bc5Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
24572d861bc5Smrg  *)
24582d861bc5Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
24592d861bc5Smrgesac
246044d7874bSmrgrm -f conftest.make
246144d7874bSmrgfi
24622d861bc5Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
24632d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24642d861bc5Smrg$as_echo "yes" >&6; }
246544d7874bSmrg  SET_MAKE=
246644d7874bSmrgelse
24672d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682d861bc5Smrg$as_echo "no" >&6; }
246944d7874bSmrg  SET_MAKE="MAKE=${MAKE-make}"
247044d7874bSmrgfi
247144d7874bSmrg
247244d7874bSmrgrm -rf .tst 2>/dev/null
247344d7874bSmrgmkdir .tst 2>/dev/null
247444d7874bSmrgif test -d .tst; then
247544d7874bSmrg  am__leading_dot=.
247644d7874bSmrgelse
247744d7874bSmrg  am__leading_dot=_
247844d7874bSmrgfi
247944d7874bSmrgrmdir .tst 2>/dev/null
248044d7874bSmrg
24812d861bc5Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
24822d861bc5Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
24832d861bc5Smrg  # is not polluted with repeated "-I."
24842d861bc5Smrg  am__isrc=' -I$(srcdir)'
24852d861bc5Smrg  # test to see if srcdir already configured
24862d861bc5Smrg  if test -f $srcdir/config.status; then
24872d861bc5Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
24882d861bc5Smrg  fi
248944d7874bSmrgfi
249044d7874bSmrg
249144d7874bSmrg# test whether we have cygpath
249244d7874bSmrgif test -z "$CYGPATH_W"; then
249344d7874bSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
249444d7874bSmrg    CYGPATH_W='cygpath -w'
249544d7874bSmrg  else
249644d7874bSmrg    CYGPATH_W=echo
249744d7874bSmrg  fi
249844d7874bSmrgfi
249944d7874bSmrg
250044d7874bSmrg
250144d7874bSmrg# Define the identity of the package.
250244d7874bSmrg PACKAGE='beforelight'
25032d861bc5Smrg VERSION='1.0.4'
250444d7874bSmrg
250544d7874bSmrg
250644d7874bSmrgcat >>confdefs.h <<_ACEOF
250744d7874bSmrg#define PACKAGE "$PACKAGE"
250844d7874bSmrg_ACEOF
250944d7874bSmrg
251044d7874bSmrg
251144d7874bSmrgcat >>confdefs.h <<_ACEOF
251244d7874bSmrg#define VERSION "$VERSION"
251344d7874bSmrg_ACEOF
251444d7874bSmrg
251544d7874bSmrg# Some tools Automake needs.
251644d7874bSmrg
251744d7874bSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
251844d7874bSmrg
251944d7874bSmrg
252044d7874bSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
252144d7874bSmrg
252244d7874bSmrg
252344d7874bSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
252444d7874bSmrg
252544d7874bSmrg
252644d7874bSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
252744d7874bSmrg
252844d7874bSmrg
252944d7874bSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
253044d7874bSmrg
25312d861bc5Smrg# We need awk for the "check" target.  The system "awk" is bad on
25322d861bc5Smrg# some platforms.
25332d861bc5Smrg# Always define AMTAR for backward compatibility.
253444d7874bSmrg
25352d861bc5SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
25362d861bc5Smrg
25372d861bc5Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
25382d861bc5Smrg
25392d861bc5Smrg
25402d861bc5Smrg
25412d861bc5Smrg
25422d861bc5Smrg
25432d861bc5Smrg
25442d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25452d861bc5Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25462d861bc5Smrg    # Check whether --enable-maintainer-mode was given.
25472d861bc5Smrgif test "${enable_maintainer_mode+set}" = set; then :
25482d861bc5Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
254944d7874bSmrgelse
25502d861bc5Smrg  USE_MAINTAINER_MODE=no
25512d861bc5Smrgfi
25522d861bc5Smrg
25532d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
25542d861bc5Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
25552d861bc5Smrg   if test $USE_MAINTAINER_MODE = yes; then
25562d861bc5Smrg  MAINTAINER_MODE_TRUE=
25572d861bc5Smrg  MAINTAINER_MODE_FALSE='#'
255844d7874bSmrgelse
25592d861bc5Smrg  MAINTAINER_MODE_TRUE='#'
25602d861bc5Smrg  MAINTAINER_MODE_FALSE=
256144d7874bSmrgfi
256244d7874bSmrg
25632d861bc5Smrg  MAINT=$MAINTAINER_MODE_TRUE
256444d7874bSmrg
256544d7874bSmrg
256644d7874bSmrg
25672d861bc5Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
256844d7874bSmrg
256944d7874bSmrg
257044d7874bSmrg
257144d7874bSmrg
257244d7874bSmrg
257344d7874bSmrg
257444d7874bSmrg
257544d7874bSmrg
257644d7874bSmrg
257744d7874bSmrg
25782d861bc5Smrg
25792d861bc5SmrgDEPDIR="${am__leading_dot}deps"
25802d861bc5Smrg
25812d861bc5Smrgac_config_commands="$ac_config_commands depfiles"
25822d861bc5Smrg
25832d861bc5Smrg
25842d861bc5Smrgam_make=${MAKE-make}
25852d861bc5Smrgcat > confinc << 'END'
25862d861bc5Smrgam__doit:
25872d861bc5Smrg	@echo this is the am__doit target
25882d861bc5Smrg.PHONY: am__doit
25892d861bc5SmrgEND
25902d861bc5Smrg# If we don't find an include directive, just comment out the code.
25912d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
25922d861bc5Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
25932d861bc5Smrgam__include="#"
25942d861bc5Smrgam__quote=
25952d861bc5Smrg_am_result=none
25962d861bc5Smrg# First try GNU make style include.
25972d861bc5Smrgecho "include confinc" > confmf
25982d861bc5Smrg# Ignore all kinds of additional output from `make'.
25992d861bc5Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
26002d861bc5Smrg*the\ am__doit\ target*)
26012d861bc5Smrg  am__include=include
26022d861bc5Smrg  am__quote=
26032d861bc5Smrg  _am_result=GNU
26042d861bc5Smrg  ;;
26052d861bc5Smrgesac
26062d861bc5Smrg# Now try BSD make style include.
26072d861bc5Smrgif test "$am__include" = "#"; then
26082d861bc5Smrg   echo '.include "confinc"' > confmf
26092d861bc5Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
26102d861bc5Smrg   *the\ am__doit\ target*)
26112d861bc5Smrg     am__include=.include
26122d861bc5Smrg     am__quote="\""
26132d861bc5Smrg     _am_result=BSD
26142d861bc5Smrg     ;;
26152d861bc5Smrg   esac
261644d7874bSmrgfi
261744d7874bSmrg
261844d7874bSmrg
26192d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26202d861bc5Smrg$as_echo "$_am_result" >&6; }
26212d861bc5Smrgrm -f confinc confmf
262244d7874bSmrg
26232d861bc5Smrg# Check whether --enable-dependency-tracking was given.
26242d861bc5Smrgif test "${enable_dependency_tracking+set}" = set; then :
26252d861bc5Smrg  enableval=$enable_dependency_tracking;
26262d861bc5Smrgfi
262744d7874bSmrg
26282d861bc5Smrgif test "x$enable_dependency_tracking" != xno; then
26292d861bc5Smrg  am_depcomp="$ac_aux_dir/depcomp"
26302d861bc5Smrg  AMDEPBACKSLASH='\'
26312d861bc5Smrgfi
26322d861bc5Smrg if test "x$enable_dependency_tracking" != xno; then
26332d861bc5Smrg  AMDEP_TRUE=
26342d861bc5Smrg  AMDEP_FALSE='#'
26352d861bc5Smrgelse
26362d861bc5Smrg  AMDEP_TRUE='#'
26372d861bc5Smrg  AMDEP_FALSE=
26382d861bc5Smrgfi
263944d7874bSmrg
264044d7874bSmrg
264144d7874bSmrgac_ext=c
264244d7874bSmrgac_cpp='$CPP $CPPFLAGS'
264344d7874bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
264444d7874bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
264544d7874bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
264644d7874bSmrgif test -n "$ac_tool_prefix"; then
264744d7874bSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
264844d7874bSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
26492d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26502d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
26512d861bc5Smrgif ${ac_cv_prog_CC+:} false; then :
26522d861bc5Smrg  $as_echo_n "(cached) " >&6
265344d7874bSmrgelse
265444d7874bSmrg  if test -n "$CC"; then
265544d7874bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
265644d7874bSmrgelse
265744d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
265844d7874bSmrgfor as_dir in $PATH
265944d7874bSmrgdo
266044d7874bSmrg  IFS=$as_save_IFS
266144d7874bSmrg  test -z "$as_dir" && as_dir=.
26622d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26632d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
266444d7874bSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
26652d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
266644d7874bSmrg    break 2
266744d7874bSmrg  fi
266844d7874bSmrgdone
26692d861bc5Smrg  done
26702d861bc5SmrgIFS=$as_save_IFS
267144d7874bSmrg
267244d7874bSmrgfi
267344d7874bSmrgfi
267444d7874bSmrgCC=$ac_cv_prog_CC
267544d7874bSmrgif test -n "$CC"; then
26762d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
26772d861bc5Smrg$as_echo "$CC" >&6; }
267844d7874bSmrgelse
26792d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26802d861bc5Smrg$as_echo "no" >&6; }
268144d7874bSmrgfi
268244d7874bSmrg
26832d861bc5Smrg
268444d7874bSmrgfi
268544d7874bSmrgif test -z "$ac_cv_prog_CC"; then
268644d7874bSmrg  ac_ct_CC=$CC
268744d7874bSmrg  # Extract the first word of "gcc", so it can be a program name with args.
268844d7874bSmrgset dummy gcc; ac_word=$2
26892d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26902d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
26912d861bc5Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
26922d861bc5Smrg  $as_echo_n "(cached) " >&6
269344d7874bSmrgelse
269444d7874bSmrg  if test -n "$ac_ct_CC"; then
269544d7874bSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
269644d7874bSmrgelse
269744d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269844d7874bSmrgfor as_dir in $PATH
269944d7874bSmrgdo
270044d7874bSmrg  IFS=$as_save_IFS
270144d7874bSmrg  test -z "$as_dir" && as_dir=.
27022d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27032d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
270444d7874bSmrg    ac_cv_prog_ac_ct_CC="gcc"
27052d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
270644d7874bSmrg    break 2
270744d7874bSmrg  fi
270844d7874bSmrgdone
27092d861bc5Smrg  done
27102d861bc5SmrgIFS=$as_save_IFS
271144d7874bSmrg
271244d7874bSmrgfi
271344d7874bSmrgfi
271444d7874bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
271544d7874bSmrgif test -n "$ac_ct_CC"; then
27162d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
27172d861bc5Smrg$as_echo "$ac_ct_CC" >&6; }
271844d7874bSmrgelse
27192d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27202d861bc5Smrg$as_echo "no" >&6; }
272144d7874bSmrgfi
272244d7874bSmrg
27232d861bc5Smrg  if test "x$ac_ct_CC" = x; then
27242d861bc5Smrg    CC=""
27252d861bc5Smrg  else
27262d861bc5Smrg    case $cross_compiling:$ac_tool_warned in
27272d861bc5Smrgyes:)
27282d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27292d861bc5Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27302d861bc5Smrgac_tool_warned=yes ;;
27312d861bc5Smrgesac
27322d861bc5Smrg    CC=$ac_ct_CC
27332d861bc5Smrg  fi
273444d7874bSmrgelse
273544d7874bSmrg  CC="$ac_cv_prog_CC"
273644d7874bSmrgfi
273744d7874bSmrg
273844d7874bSmrgif test -z "$CC"; then
27392d861bc5Smrg          if test -n "$ac_tool_prefix"; then
27402d861bc5Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
274144d7874bSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
27422d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27432d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
27442d861bc5Smrgif ${ac_cv_prog_CC+:} false; then :
27452d861bc5Smrg  $as_echo_n "(cached) " >&6
274644d7874bSmrgelse
274744d7874bSmrg  if test -n "$CC"; then
274844d7874bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
274944d7874bSmrgelse
275044d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
275144d7874bSmrgfor as_dir in $PATH
275244d7874bSmrgdo
275344d7874bSmrg  IFS=$as_save_IFS
275444d7874bSmrg  test -z "$as_dir" && as_dir=.
27552d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27562d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
275744d7874bSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
27582d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
275944d7874bSmrg    break 2
276044d7874bSmrg  fi
276144d7874bSmrgdone
27622d861bc5Smrg  done
27632d861bc5SmrgIFS=$as_save_IFS
276444d7874bSmrg
276544d7874bSmrgfi
276644d7874bSmrgfi
276744d7874bSmrgCC=$ac_cv_prog_CC
276844d7874bSmrgif test -n "$CC"; then
27692d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27702d861bc5Smrg$as_echo "$CC" >&6; }
277144d7874bSmrgelse
27722d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27732d861bc5Smrg$as_echo "no" >&6; }
277444d7874bSmrgfi
277544d7874bSmrg
277644d7874bSmrg
27772d861bc5Smrg  fi
277844d7874bSmrgfi
277944d7874bSmrgif test -z "$CC"; then
278044d7874bSmrg  # Extract the first word of "cc", so it can be a program name with args.
278144d7874bSmrgset dummy cc; ac_word=$2
27822d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27832d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
27842d861bc5Smrgif ${ac_cv_prog_CC+:} false; then :
27852d861bc5Smrg  $as_echo_n "(cached) " >&6
278644d7874bSmrgelse
278744d7874bSmrg  if test -n "$CC"; then
278844d7874bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
278944d7874bSmrgelse
279044d7874bSmrg  ac_prog_rejected=no
279144d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
279244d7874bSmrgfor as_dir in $PATH
279344d7874bSmrgdo
279444d7874bSmrg  IFS=$as_save_IFS
279544d7874bSmrg  test -z "$as_dir" && as_dir=.
27962d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27972d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
279844d7874bSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
279944d7874bSmrg       ac_prog_rejected=yes
280044d7874bSmrg       continue
280144d7874bSmrg     fi
280244d7874bSmrg    ac_cv_prog_CC="cc"
28032d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
280444d7874bSmrg    break 2
280544d7874bSmrg  fi
280644d7874bSmrgdone
28072d861bc5Smrg  done
28082d861bc5SmrgIFS=$as_save_IFS
280944d7874bSmrg
281044d7874bSmrgif test $ac_prog_rejected = yes; then
281144d7874bSmrg  # We found a bogon in the path, so make sure we never use it.
281244d7874bSmrg  set dummy $ac_cv_prog_CC
281344d7874bSmrg  shift
281444d7874bSmrg  if test $# != 0; then
281544d7874bSmrg    # We chose a different compiler from the bogus one.
281644d7874bSmrg    # However, it has the same basename, so the bogon will be chosen
281744d7874bSmrg    # first if we set CC to just the basename; use the full file name.
281844d7874bSmrg    shift
281944d7874bSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
282044d7874bSmrg  fi
282144d7874bSmrgfi
282244d7874bSmrgfi
282344d7874bSmrgfi
282444d7874bSmrgCC=$ac_cv_prog_CC
282544d7874bSmrgif test -n "$CC"; then
28262d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28272d861bc5Smrg$as_echo "$CC" >&6; }
282844d7874bSmrgelse
28292d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28302d861bc5Smrg$as_echo "no" >&6; }
283144d7874bSmrgfi
283244d7874bSmrg
28332d861bc5Smrg
283444d7874bSmrgfi
283544d7874bSmrgif test -z "$CC"; then
283644d7874bSmrg  if test -n "$ac_tool_prefix"; then
28372d861bc5Smrg  for ac_prog in cl.exe
283844d7874bSmrg  do
283944d7874bSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
284044d7874bSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
28412d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28422d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
28432d861bc5Smrgif ${ac_cv_prog_CC+:} false; then :
28442d861bc5Smrg  $as_echo_n "(cached) " >&6
284544d7874bSmrgelse
284644d7874bSmrg  if test -n "$CC"; then
284744d7874bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
284844d7874bSmrgelse
284944d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
285044d7874bSmrgfor as_dir in $PATH
285144d7874bSmrgdo
285244d7874bSmrg  IFS=$as_save_IFS
285344d7874bSmrg  test -z "$as_dir" && as_dir=.
28542d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28552d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
285644d7874bSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28572d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
285844d7874bSmrg    break 2
285944d7874bSmrg  fi
286044d7874bSmrgdone
28612d861bc5Smrg  done
28622d861bc5SmrgIFS=$as_save_IFS
286344d7874bSmrg
286444d7874bSmrgfi
286544d7874bSmrgfi
286644d7874bSmrgCC=$ac_cv_prog_CC
286744d7874bSmrgif test -n "$CC"; then
28682d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28692d861bc5Smrg$as_echo "$CC" >&6; }
287044d7874bSmrgelse
28712d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28722d861bc5Smrg$as_echo "no" >&6; }
287344d7874bSmrgfi
287444d7874bSmrg
28752d861bc5Smrg
287644d7874bSmrg    test -n "$CC" && break
287744d7874bSmrg  done
287844d7874bSmrgfi
287944d7874bSmrgif test -z "$CC"; then
288044d7874bSmrg  ac_ct_CC=$CC
28812d861bc5Smrg  for ac_prog in cl.exe
288244d7874bSmrgdo
288344d7874bSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
288444d7874bSmrgset dummy $ac_prog; ac_word=$2
28852d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28862d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
28872d861bc5Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28882d861bc5Smrg  $as_echo_n "(cached) " >&6
288944d7874bSmrgelse
289044d7874bSmrg  if test -n "$ac_ct_CC"; then
289144d7874bSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
289244d7874bSmrgelse
289344d7874bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289444d7874bSmrgfor as_dir in $PATH
289544d7874bSmrgdo
289644d7874bSmrg  IFS=$as_save_IFS
289744d7874bSmrg  test -z "$as_dir" && as_dir=.
28982d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28992d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
290044d7874bSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
29012d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
290244d7874bSmrg    break 2
290344d7874bSmrg  fi
290444d7874bSmrgdone
29052d861bc5Smrg  done
29062d861bc5SmrgIFS=$as_save_IFS
290744d7874bSmrg
290844d7874bSmrgfi
290944d7874bSmrgfi
291044d7874bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
291144d7874bSmrgif test -n "$ac_ct_CC"; then
29122d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
29132d861bc5Smrg$as_echo "$ac_ct_CC" >&6; }
291444d7874bSmrgelse
29152d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29162d861bc5Smrg$as_echo "no" >&6; }
291744d7874bSmrgfi
291844d7874bSmrg
29192d861bc5Smrg
292044d7874bSmrg  test -n "$ac_ct_CC" && break
292144d7874bSmrgdone
292244d7874bSmrg
29232d861bc5Smrg  if test "x$ac_ct_CC" = x; then
29242d861bc5Smrg    CC=""
29252d861bc5Smrg  else
29262d861bc5Smrg    case $cross_compiling:$ac_tool_warned in
29272d861bc5Smrgyes:)
29282d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29292d861bc5Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29302d861bc5Smrgac_tool_warned=yes ;;
29312d861bc5Smrgesac
29322d861bc5Smrg    CC=$ac_ct_CC
29332d861bc5Smrg  fi
293444d7874bSmrgfi
293544d7874bSmrg
293644d7874bSmrgfi
293744d7874bSmrg
293844d7874bSmrg
29392d861bc5Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29402d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29412d861bc5Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
29422d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
294344d7874bSmrg
294444d7874bSmrg# Provide some information about the compiler.
29452d861bc5Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
29462d861bc5Smrgset X $ac_compile
29472d861bc5Smrgac_compiler=$2
29482d861bc5Smrgfor ac_option in --version -v -V -qversion; do
29492d861bc5Smrg  { { ac_try="$ac_compiler $ac_option >&5"
29502d861bc5Smrgcase "(($ac_try" in
29512d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522d861bc5Smrg  *) ac_try_echo=$ac_try;;
29532d861bc5Smrgesac
29542d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29552d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
29562d861bc5Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
295744d7874bSmrg  ac_status=$?
29582d861bc5Smrg  if test -s conftest.err; then
29592d861bc5Smrg    sed '10a\
29602d861bc5Smrg... rest of stderr output deleted ...
29612d861bc5Smrg         10q' conftest.err >conftest.er1
29622d861bc5Smrg    cat conftest.er1 >&5
29632d861bc5Smrg  fi
29642d861bc5Smrg  rm -f conftest.er1 conftest.err
29652d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29662d861bc5Smrg  test $ac_status = 0; }
29672d861bc5Smrgdone
296844d7874bSmrg
29692d861bc5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
297044d7874bSmrg/* end confdefs.h.  */
297144d7874bSmrg
297244d7874bSmrgint
297344d7874bSmrgmain ()
297444d7874bSmrg{
297544d7874bSmrg
297644d7874bSmrg  ;
297744d7874bSmrg  return 0;
297844d7874bSmrg}
297944d7874bSmrg_ACEOF
298044d7874bSmrgac_clean_files_save=$ac_clean_files
29812d861bc5Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
298244d7874bSmrg# Try to create an executable without -o first, disregard a.out.
298344d7874bSmrg# It will help us diagnose broken compilers, and finding out an intuition
298444d7874bSmrg# of exeext.
29852d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
29862d861bc5Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
29872d861bc5Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
29882d861bc5Smrg
29892d861bc5Smrg# The possible output files:
29902d861bc5Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
29912d861bc5Smrg
29922d861bc5Smrgac_rmfiles=
29932d861bc5Smrgfor ac_file in $ac_files
29942d861bc5Smrgdo
29952d861bc5Smrg  case $ac_file in
29962d861bc5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29972d861bc5Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
29982d861bc5Smrg  esac
29992d861bc5Smrgdone
30002d861bc5Smrgrm -f $ac_rmfiles
30012d861bc5Smrg
30022d861bc5Smrgif { { ac_try="$ac_link_default"
30032d861bc5Smrgcase "(($ac_try" in
30042d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052d861bc5Smrg  *) ac_try_echo=$ac_try;;
30062d861bc5Smrgesac
30072d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30082d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
30092d861bc5Smrg  (eval "$ac_link_default") 2>&5
301044d7874bSmrg  ac_status=$?
30112d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30122d861bc5Smrg  test $ac_status = 0; }; then :
30132d861bc5Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
30142d861bc5Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
30152d861bc5Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
30162d861bc5Smrg# so that the user can short-circuit this test for compilers unknown to
30172d861bc5Smrg# Autoconf.
30182d861bc5Smrgfor ac_file in $ac_files ''
301944d7874bSmrgdo
302044d7874bSmrg  test -f "$ac_file" || continue
302144d7874bSmrg  case $ac_file in
30222d861bc5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
302344d7874bSmrg	;;
302444d7874bSmrg    [ab].out )
302544d7874bSmrg	# We found the default executable, but exeext='' is most
302644d7874bSmrg	# certainly right.
302744d7874bSmrg	break;;
302844d7874bSmrg    *.* )
30292d861bc5Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
30302d861bc5Smrg	then :; else
30312d861bc5Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30322d861bc5Smrg	fi
30332d861bc5Smrg	# We set ac_cv_exeext here because the later test for it is not
30342d861bc5Smrg	# safe: cross compilers may not add the suffix if given an `-o'
30352d861bc5Smrg	# argument, so we may need to know it at that point already.
30362d861bc5Smrg	# Even if this section looks crufty: it has the advantage of
30372d861bc5Smrg	# actually working.
303844d7874bSmrg	break;;
303944d7874bSmrg    * )
304044d7874bSmrg	break;;
304144d7874bSmrg  esac
304244d7874bSmrgdone
30432d861bc5Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
30442d861bc5Smrg
304544d7874bSmrgelse
30462d861bc5Smrg  ac_file=''
30472d861bc5Smrgfi
30482d861bc5Smrgif test -z "$ac_file"; then :
30492d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30502d861bc5Smrg$as_echo "no" >&6; }
30512d861bc5Smrg$as_echo "$as_me: failed program was:" >&5
305244d7874bSmrgsed 's/^/| /' conftest.$ac_ext >&5
305344d7874bSmrg
30542d861bc5Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30552d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30562d861bc5Smrgas_fn_error 77 "C compiler cannot create executables
30572d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
30582d861bc5Smrgelse
30592d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30602d861bc5Smrg$as_echo "yes" >&6; }
306144d7874bSmrgfi
30622d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
30632d861bc5Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
30642d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
30652d861bc5Smrg$as_echo "$ac_file" >&6; }
306644d7874bSmrgac_exeext=$ac_cv_exeext
306744d7874bSmrg
30682d861bc5Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
306944d7874bSmrgac_clean_files=$ac_clean_files_save
30702d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
30712d861bc5Smrg$as_echo_n "checking for suffix of executables... " >&6; }
30722d861bc5Smrgif { { ac_try="$ac_link"
30732d861bc5Smrgcase "(($ac_try" in
30742d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752d861bc5Smrg  *) ac_try_echo=$ac_try;;
30762d861bc5Smrgesac
30772d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30782d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
30792d861bc5Smrg  (eval "$ac_link") 2>&5
308044d7874bSmrg  ac_status=$?
30812d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30822d861bc5Smrg  test $ac_status = 0; }; then :
308344d7874bSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
308444d7874bSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
308544d7874bSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
308644d7874bSmrg# `rm'.
308744d7874bSmrgfor ac_file in conftest.exe conftest conftest.*; do
308844d7874bSmrg  test -f "$ac_file" || continue
308944d7874bSmrg  case $ac_file in
30902d861bc5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
309144d7874bSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
309244d7874bSmrg	  break;;
309344d7874bSmrg    * ) break;;
309444d7874bSmrg  esac
309544d7874bSmrgdone
309644d7874bSmrgelse
30972d861bc5Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30982d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30992d861bc5Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
31002d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
310144d7874bSmrgfi
31022d861bc5Smrgrm -f conftest conftest$ac_cv_exeext
31032d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
31042d861bc5Smrg$as_echo "$ac_cv_exeext" >&6; }
310544d7874bSmrg
310644d7874bSmrgrm -f conftest.$ac_ext
310744d7874bSmrgEXEEXT=$ac_cv_exeext
310844d7874bSmrgac_exeext=$EXEEXT
31092d861bc5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
31102d861bc5Smrg/* end confdefs.h.  */
31112d861bc5Smrg#include <stdio.h>
31122d861bc5Smrgint
31132d861bc5Smrgmain ()
31142d861bc5Smrg{
31152d861bc5SmrgFILE *f = fopen ("conftest.out", "w");
31162d861bc5Smrg return ferror (f) || fclose (f) != 0;
31172d861bc5Smrg
31182d861bc5Smrg  ;
31192d861bc5Smrg  return 0;
31202d861bc5Smrg}
312144d7874bSmrg_ACEOF
31222d861bc5Smrgac_clean_files="$ac_clean_files conftest.out"
31232d861bc5Smrg# Check that the compiler produces executables we can run.  If not, either
31242d861bc5Smrg# the compiler is broken, or we cross compile.
31252d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
31262d861bc5Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
31272d861bc5Smrgif test "$cross_compiling" != yes; then
31282d861bc5Smrg  { { ac_try="$ac_link"
31292d861bc5Smrgcase "(($ac_try" in
31302d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312d861bc5Smrg  *) ac_try_echo=$ac_try;;
31322d861bc5Smrgesac
31332d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31342d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
31352d861bc5Smrg  (eval "$ac_link") 2>&5
31362d861bc5Smrg  ac_status=$?
31372d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31382d861bc5Smrg  test $ac_status = 0; }
31392d861bc5Smrg  if { ac_try='./conftest$ac_cv_exeext'
31402d861bc5Smrg  { { case "(($ac_try" in
31412d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422d861bc5Smrg  *) ac_try_echo=$ac_try;;
31432d861bc5Smrgesac
31442d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31452d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
31462d861bc5Smrg  (eval "$ac_try") 2>&5
31472d861bc5Smrg  ac_status=$?
31482d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31492d861bc5Smrg  test $ac_status = 0; }; }; then
31502d861bc5Smrg    cross_compiling=no
31512d861bc5Smrg  else
31522d861bc5Smrg    if test "$cross_compiling" = maybe; then
31532d861bc5Smrg	cross_compiling=yes
31542d861bc5Smrg    else
31552d861bc5Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31562d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31572d861bc5Smrgas_fn_error $? "cannot run C compiled programs.
31582d861bc5SmrgIf you meant to cross compile, use \`--host'.
31592d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
31602d861bc5Smrg    fi
31612d861bc5Smrg  fi
31622d861bc5Smrgfi
31632d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
31642d861bc5Smrg$as_echo "$cross_compiling" >&6; }
31652d861bc5Smrg
31662d861bc5Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
31672d861bc5Smrgac_clean_files=$ac_clean_files_save
31682d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
31692d861bc5Smrg$as_echo_n "checking for suffix of object files... " >&6; }
31702d861bc5Smrgif ${ac_cv_objext+:} false; then :
31712d861bc5Smrg  $as_echo_n "(cached) " >&6
31722d861bc5Smrgelse
31732d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
317444d7874bSmrg/* end confdefs.h.  */
317544d7874bSmrg
317644d7874bSmrgint
317744d7874bSmrgmain ()
317844d7874bSmrg{
317944d7874bSmrg
318044d7874bSmrg  ;
318144d7874bSmrg  return 0;
318244d7874bSmrg}
318344d7874bSmrg_ACEOF
318444d7874bSmrgrm -f conftest.o conftest.obj
31852d861bc5Smrgif { { ac_try="$ac_compile"
31862d861bc5Smrgcase "(($ac_try" in
31872d861bc5Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31882d861bc5Smrg  *) ac_try_echo=$ac_try;;
31892d861bc5Smrgesac
31902d861bc5Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31912d861bc5Smrg$as_echo "$ac_try_echo"; } >&5
31922d861bc5Smrg  (eval "$ac_compile") 2>&5
319344d7874bSmrg  ac_status=$?
31942d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31952d861bc5Smrg  test $ac_status = 0; }; then :
31962d861bc5Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
31972d861bc5Smrg  test -f "$ac_file" || continue;
319844d7874bSmrg  case $ac_file in
31992d861bc5Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
320044d7874bSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
320144d7874bSmrg       break;;
320244d7874bSmrg  esac
320344d7874bSmrgdone
320444d7874bSmrgelse
32052d861bc5Smrg  $as_echo "$as_me: failed program was:" >&5
320644d7874bSmrgsed 's/^/| /' conftest.$ac_ext >&5
320744d7874bSmrg
32082d861bc5Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32092d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32102d861bc5Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
32112d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
321244d7874bSmrgfi
321344d7874bSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
321444d7874bSmrgfi
32152d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
32162d861bc5Smrg$as_echo "$ac_cv_objext" >&6; }
321744d7874bSmrgOBJEXT=$ac_cv_objext
321844d7874bSmrgac_objext=$OBJEXT
32192d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
32202d861bc5Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
32212d861bc5Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
32222d861bc5Smrg  $as_echo_n "(cached) " >&6
322344d7874bSmrgelse
32242d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
322544d7874bSmrg/* end confdefs.h.  */
322644d7874bSmrg
322744d7874bSmrgint
322844d7874bSmrgmain ()
322944d7874bSmrg{
323044d7874bSmrg#ifndef __GNUC__
323144d7874bSmrg       choke me
323244d7874bSmrg#endif
323344d7874bSmrg
323444d7874bSmrg  ;
323544d7874bSmrg  return 0;
323644d7874bSmrg}
323744d7874bSmrg_ACEOF
32382d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
323944d7874bSmrg  ac_compiler_gnu=yes
324044d7874bSmrgelse
32412d861bc5Smrg  ac_compiler_gnu=no
324244d7874bSmrgfi
32432d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
324444d7874bSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
324544d7874bSmrg
324644d7874bSmrgfi
32472d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
32482d861bc5Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
32492d861bc5Smrgif test $ac_compiler_gnu = yes; then
32502d861bc5Smrg  GCC=yes
32512d861bc5Smrgelse
32522d861bc5Smrg  GCC=
32532d861bc5Smrgfi
325444d7874bSmrgac_test_CFLAGS=${CFLAGS+set}
325544d7874bSmrgac_save_CFLAGS=$CFLAGS
32562d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
32572d861bc5Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
32582d861bc5Smrgif ${ac_cv_prog_cc_g+:} false; then :
32592d861bc5Smrg  $as_echo_n "(cached) " >&6
32602d861bc5Smrgelse
32612d861bc5Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
32622d861bc5Smrg   ac_c_werror_flag=yes
32632d861bc5Smrg   ac_cv_prog_cc_g=no
32642d861bc5Smrg   CFLAGS="-g"
32652d861bc5Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
326644d7874bSmrg/* end confdefs.h.  */
326744d7874bSmrg
326844d7874bSmrgint
326944d7874bSmrgmain ()
327044d7874bSmrg{
327144d7874bSmrg
327244d7874bSmrg  ;
327344d7874bSmrg  return 0;
327444d7874bSmrg}
327544d7874bSmrg_ACEOF
32762d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
327744d7874bSmrg  ac_cv_prog_cc_g=yes
327844d7874bSmrgelse
32792d861bc5Smrg  CFLAGS=""
32802d861bc5Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32812d861bc5Smrg/* end confdefs.h.  */
32822d861bc5Smrg
32832d861bc5Smrgint
32842d861bc5Smrgmain ()
32852d861bc5Smrg{
32862d861bc5Smrg
32872d861bc5Smrg  ;
32882d861bc5Smrg  return 0;
32892d861bc5Smrg}
32902d861bc5Smrg_ACEOF
32912d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
32922d861bc5Smrg
32932d861bc5Smrgelse
32942d861bc5Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
32952d861bc5Smrg	 CFLAGS="-g"
32962d861bc5Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32972d861bc5Smrg/* end confdefs.h.  */
32982d861bc5Smrg
32992d861bc5Smrgint
33002d861bc5Smrgmain ()
33012d861bc5Smrg{
330244d7874bSmrg
33032d861bc5Smrg  ;
33042d861bc5Smrg  return 0;
33052d861bc5Smrg}
33062d861bc5Smrg_ACEOF
33072d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
33082d861bc5Smrg  ac_cv_prog_cc_g=yes
33092d861bc5Smrgfi
33102d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33112d861bc5Smrgfi
33122d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
331344d7874bSmrgfi
33142d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33152d861bc5Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
331644d7874bSmrgfi
33172d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
33182d861bc5Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
331944d7874bSmrgif test "$ac_test_CFLAGS" = set; then
332044d7874bSmrg  CFLAGS=$ac_save_CFLAGS
332144d7874bSmrgelif test $ac_cv_prog_cc_g = yes; then
332244d7874bSmrg  if test "$GCC" = yes; then
332344d7874bSmrg    CFLAGS="-g -O2"
332444d7874bSmrg  else
332544d7874bSmrg    CFLAGS="-g"
332644d7874bSmrg  fi
332744d7874bSmrgelse
332844d7874bSmrg  if test "$GCC" = yes; then
332944d7874bSmrg    CFLAGS="-O2"
333044d7874bSmrg  else
333144d7874bSmrg    CFLAGS=
333244d7874bSmrg  fi
333344d7874bSmrgfi
33342d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
33352d861bc5Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
33362d861bc5Smrgif ${ac_cv_prog_cc_c89+:} false; then :
33372d861bc5Smrg  $as_echo_n "(cached) " >&6
333844d7874bSmrgelse
33392d861bc5Smrg  ac_cv_prog_cc_c89=no
334044d7874bSmrgac_save_CC=$CC
33412d861bc5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
334244d7874bSmrg/* end confdefs.h.  */
334344d7874bSmrg#include <stdarg.h>
334444d7874bSmrg#include <stdio.h>
334544d7874bSmrg#include <sys/types.h>
334644d7874bSmrg#include <sys/stat.h>
334744d7874bSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
334844d7874bSmrgstruct buf { int x; };
334944d7874bSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
335044d7874bSmrgstatic char *e (p, i)
335144d7874bSmrg     char **p;
335244d7874bSmrg     int i;
335344d7874bSmrg{
335444d7874bSmrg  return p[i];
335544d7874bSmrg}
335644d7874bSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
335744d7874bSmrg{
335844d7874bSmrg  char *s;
335944d7874bSmrg  va_list v;
336044d7874bSmrg  va_start (v,p);
336144d7874bSmrg  s = g (p, va_arg (v,int));
336244d7874bSmrg  va_end (v);
336344d7874bSmrg  return s;
336444d7874bSmrg}
336544d7874bSmrg
336644d7874bSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
336744d7874bSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
336844d7874bSmrg   These don't provoke an error unfortunately, instead are silently treated
33692d861bc5Smrg   as 'x'.  The following induces an error, until -std is added to get
337044d7874bSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
337144d7874bSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
33722d861bc5Smrg   that's true only with -std.  */
337344d7874bSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
337444d7874bSmrg
33752d861bc5Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
33762d861bc5Smrg   inside strings and character constants.  */
33772d861bc5Smrg#define FOO(x) 'x'
33782d861bc5Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
33792d861bc5Smrg
338044d7874bSmrgint test (int i, double x);
338144d7874bSmrgstruct s1 {int (*f) (int a);};
338244d7874bSmrgstruct s2 {int (*f) (double a);};
338344d7874bSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
338444d7874bSmrgint argc;
338544d7874bSmrgchar **argv;
338644d7874bSmrgint
338744d7874bSmrgmain ()
338844d7874bSmrg{
338944d7874bSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
339044d7874bSmrg  ;
339144d7874bSmrg  return 0;
339244d7874bSmrg}
339344d7874bSmrg_ACEOF
33942d861bc5Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
33952d861bc5Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
339644d7874bSmrgdo
339744d7874bSmrg  CC="$ac_save_CC $ac_arg"
33982d861bc5Smrg  if ac_fn_c_try_compile "$LINENO"; then :
33992d861bc5Smrg  ac_cv_prog_cc_c89=$ac_arg
340044d7874bSmrgfi
34012d861bc5Smrgrm -f core conftest.err conftest.$ac_objext
34022d861bc5Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
340344d7874bSmrgdone
34042d861bc5Smrgrm -f conftest.$ac_ext
340544d7874bSmrgCC=$ac_save_CC
340644d7874bSmrg
340744d7874bSmrgfi
34082d861bc5Smrg# AC_CACHE_VAL
34092d861bc5Smrgcase "x$ac_cv_prog_cc_c89" in
34102d861bc5Smrg  x)
34112d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
34122d861bc5Smrg$as_echo "none needed" >&6; } ;;
34132d861bc5Smrg  xno)
34142d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
34152d861bc5Smrg$as_echo "unsupported" >&6; } ;;
341644d7874bSmrg  *)
34172d861bc5Smrg    CC="$CC $ac_cv_prog_cc_c89"
34182d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
34192d861bc5Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
342044d7874bSmrgesac
34212d861bc5Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
342244d7874bSmrg
342344d7874bSmrgfi
342444d7874bSmrg
342544d7874bSmrgac_ext=c
342644d7874bSmrgac_cpp='$CPP $CPPFLAGS'
342744d7874bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
342844d7874bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
342944d7874bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
343044d7874bSmrg
343144d7874bSmrgdepcc="$CC"   am_compiler_list=
343244d7874bSmrg
34332d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
34342d861bc5Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34352d861bc5Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
34362d861bc5Smrg  $as_echo_n "(cached) " >&6
343744d7874bSmrgelse
343844d7874bSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
343944d7874bSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
344044d7874bSmrg  # making bogus files that we don't know about and never remove.  For
344144d7874bSmrg  # instance it was reported that on HP-UX the gcc test will end up
344244d7874bSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
344344d7874bSmrg  # in D'.
344444d7874bSmrg  mkdir conftest.dir
344544d7874bSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
344644d7874bSmrg  # using a relative directory.
344744d7874bSmrg  cp "$am_depcomp" conftest.dir
344844d7874bSmrg  cd conftest.dir
344944d7874bSmrg  # We will build objects and dependencies in a subdirectory because
345044d7874bSmrg  # it helps to detect inapplicable dependency modes.  For instance
345144d7874bSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
345244d7874bSmrg  # side effect of compilation, but ICC will put the dependencies in
345344d7874bSmrg  # the current directory while Tru64 will put them in the object
345444d7874bSmrg  # directory.
345544d7874bSmrg  mkdir sub
345644d7874bSmrg
345744d7874bSmrg  am_cv_CC_dependencies_compiler_type=none
345844d7874bSmrg  if test "$am_compiler_list" = ""; then
345944d7874bSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
346044d7874bSmrg  fi
34612d861bc5Smrg  am__universal=false
34622d861bc5Smrg  case " $depcc " in #(
34632d861bc5Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
34642d861bc5Smrg     esac
34652d861bc5Smrg
346644d7874bSmrg  for depmode in $am_compiler_list; do
346744d7874bSmrg    # Setup a source with many dependencies, because some compilers
346844d7874bSmrg    # like to wrap large dependency lists on column 80 (with \), and
346944d7874bSmrg    # we should not choose a depcomp mode which is confused by this.
347044d7874bSmrg    #
347144d7874bSmrg    # We need to recreate these files for each test, as the compiler may
347244d7874bSmrg    # overwrite some of them when testing with obscure command lines.
347344d7874bSmrg    # This happens at least with the AIX C compiler.
347444d7874bSmrg    : > sub/conftest.c
347544d7874bSmrg    for i in 1 2 3 4 5 6; do
347644d7874bSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
347744d7874bSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
347844d7874bSmrg      # Solaris 8's {/usr,}/bin/sh.
347944d7874bSmrg      touch sub/conftst$i.h
348044d7874bSmrg    done
348144d7874bSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
348244d7874bSmrg
34832d861bc5Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
34842d861bc5Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
34852d861bc5Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
34862d861bc5Smrg    # versions had trouble with output in subdirs
34872d861bc5Smrg    am__obj=sub/conftest.${OBJEXT-o}
34882d861bc5Smrg    am__minus_obj="-o $am__obj"
348944d7874bSmrg    case $depmode in
34902d861bc5Smrg    gcc)
34912d861bc5Smrg      # This depmode causes a compiler race in universal mode.
34922d861bc5Smrg      test "$am__universal" = false || continue
34932d861bc5Smrg      ;;
349444d7874bSmrg    nosideeffect)
349544d7874bSmrg      # after this tag, mechanisms are not by side-effect, so they'll
349644d7874bSmrg      # only be used when explicitly requested
349744d7874bSmrg      if test "x$enable_dependency_tracking" = xyes; then
349844d7874bSmrg	continue
349944d7874bSmrg      else
350044d7874bSmrg	break
350144d7874bSmrg      fi
350244d7874bSmrg      ;;
35032d861bc5Smrg    msvisualcpp | msvcmsys)
35042d861bc5Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
35052d861bc5Smrg      # not run yet.  These depmodes are late enough in the game, and
35062d861bc5Smrg      # so weak that their functioning should not be impacted.
35072d861bc5Smrg      am__obj=conftest.${OBJEXT-o}
35082d861bc5Smrg      am__minus_obj=
35092d861bc5Smrg      ;;
351044d7874bSmrg    none) break ;;
351144d7874bSmrg    esac
351244d7874bSmrg    if depmode=$depmode \
35132d861bc5Smrg       source=sub/conftest.c object=$am__obj \
351444d7874bSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35152d861bc5Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
351644d7874bSmrg         >/dev/null 2>conftest.err &&
35172d861bc5Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
351844d7874bSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35192d861bc5Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
352044d7874bSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
352144d7874bSmrg      # icc doesn't choke on unknown options, it will just issue warnings
352244d7874bSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
352344d7874bSmrg      # that says an option was ignored or not supported.
352444d7874bSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
352544d7874bSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
352644d7874bSmrg      # The diagnosis changed in icc 8.0:
352744d7874bSmrg      #   icc: Command line remark: option '-MP' not supported
352844d7874bSmrg      if (grep 'ignoring option' conftest.err ||
352944d7874bSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
353044d7874bSmrg        am_cv_CC_dependencies_compiler_type=$depmode
353144d7874bSmrg        break
353244d7874bSmrg      fi
353344d7874bSmrg    fi
353444d7874bSmrg  done
353544d7874bSmrg
353644d7874bSmrg  cd ..
353744d7874bSmrg  rm -rf conftest.dir
353844d7874bSmrgelse
353944d7874bSmrg  am_cv_CC_dependencies_compiler_type=none
354044d7874bSmrgfi
354144d7874bSmrg
354244d7874bSmrgfi
35432d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
35442d861bc5Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
354544d7874bSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
354644d7874bSmrg
35472d861bc5Smrg if
354844d7874bSmrg  test "x$enable_dependency_tracking" != xno \
354944d7874bSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
355044d7874bSmrg  am__fastdepCC_TRUE=
355144d7874bSmrg  am__fastdepCC_FALSE='#'
355244d7874bSmrgelse
355344d7874bSmrg  am__fastdepCC_TRUE='#'
355444d7874bSmrg  am__fastdepCC_FALSE=
355544d7874bSmrgfi
355644d7874bSmrg
355744d7874bSmrg
35582d861bc5Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
35592d861bc5Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
35602d861bc5Smrgif ${ac_cv_prog_cc_c99+:} false; then :
35612d861bc5Smrg  $as_echo_n "(cached) " >&6
356244d7874bSmrgelse
35632d861bc5Smrg  ac_cv_prog_cc_c99=no
35642d861bc5Smrgac_save_CC=$CC
35652d861bc5Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
35662d861bc5Smrg/* end confdefs.h.  */
35672d861bc5Smrg#include <stdarg.h>
35682d861bc5Smrg#include <stdbool.h>
35692d861bc5Smrg#include <stdlib.h>
35702d861bc5Smrg#include <wchar.h>
35712d861bc5Smrg#include <stdio.h>
357244d7874bSmrg
35732d861bc5Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
35742d861bc5Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
35752d861bc5Smrg#define showlist(...) puts (#__VA_ARGS__)
35762d861bc5Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
35772d861bc5Smrgstatic void
35782d861bc5Smrgtest_varargs_macros (void)
35792d861bc5Smrg{
35802d861bc5Smrg  int x = 1234;
35812d861bc5Smrg  int y = 5678;
35822d861bc5Smrg  debug ("Flag");
35832d861bc5Smrg  debug ("X = %d\n", x);
35842d861bc5Smrg  showlist (The first, second, and third items.);
35852d861bc5Smrg  report (x>y, "x is %d but y is %d", x, y);
35862d861bc5Smrg}
358744d7874bSmrg
35882d861bc5Smrg// Check long long types.
35892d861bc5Smrg#define BIG64 18446744073709551615ull
35902d861bc5Smrg#define BIG32 4294967295ul
35912d861bc5Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
35922d861bc5Smrg#if !BIG_OK
35932d861bc5Smrg  your preprocessor is broken;
35942d861bc5Smrg#endif
35952d861bc5Smrg#if BIG_OK
35962d861bc5Smrg#else
35972d861bc5Smrg  your preprocessor is broken;
35982d861bc5Smrg#endif
35992d861bc5Smrgstatic long long int bignum = -9223372036854775807LL;
36002d861bc5Smrgstatic unsigned long long int ubignum = BIG64;
360144d7874bSmrg
36022d861bc5Smrgstruct incomplete_array
36032d861bc5Smrg{
36042d861bc5Smrg  int datasize;
36052d861bc5Smrg  double data[];
36062d861bc5Smrg};
360744d7874bSmrg
36082d861bc5Smrgstruct named_init {
36092d861bc5Smrg  int number;
36102d861bc5Smrg  const wchar_t *name;
36112d861bc5Smrg  double average;
36122d861bc5Smrg};
361344d7874bSmrg
36142d861bc5Smrgtypedef const char *ccp;
361544d7874bSmrg
36162d861bc5Smrgstatic inline int
36172d861bc5Smrgtest_restrict (ccp restrict text)
36182d861bc5Smrg{
36192d861bc5Smrg  // See if C++-style comments work.
36202d861bc5Smrg  // Iterate through items via the restricted pointer.
36212d861bc5Smrg  // Also check for declarations in for loops.
36222d861bc5Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
36232d861bc5Smrg    continue;
36242d861bc5Smrg  return 0;
36252d861bc5Smrg}
362644d7874bSmrg
36272d861bc5Smrg// Check varargs and va_copy.
36282d861bc5Smrgstatic void
36292d861bc5Smrgtest_varargs (const char *format, ...)
36302d861bc5Smrg{
36312d861bc5Smrg  va_list args;
36322d861bc5Smrg  va_start (args, format);
36332d861bc5Smrg  va_list args_copy;
36342d861bc5Smrg  va_copy (args_copy, args);
36352d861bc5Smrg
36362d861bc5Smrg  const char *str;
36372d861bc5Smrg  int number;
36382d861bc5Smrg  float fnumber;
36392d861bc5Smrg
36402d861bc5Smrg  while (*format)
36412d861bc5Smrg    {
36422d861bc5Smrg      switch (*format++)
36432d861bc5Smrg	{
36442d861bc5Smrg	case 's': // string
36452d861bc5Smrg	  str = va_arg (args_copy, const char *);
36462d861bc5Smrg	  break;
36472d861bc5Smrg	case 'd': // int
36482d861bc5Smrg	  number = va_arg (args_copy, int);
36492d861bc5Smrg	  break;
36502d861bc5Smrg	case 'f': // float
36512d861bc5Smrg	  fnumber = va_arg (args_copy, double);
36522d861bc5Smrg	  break;
36532d861bc5Smrg	default:
36542d861bc5Smrg	  break;
36552d861bc5Smrg	}
36562d861bc5Smrg    }
36572d861bc5Smrg  va_end (args_copy);
36582d861bc5Smrg  va_end (args);
36592d861bc5Smrg}
366044d7874bSmrg
36612d861bc5Smrgint
36622d861bc5Smrgmain ()
36632d861bc5Smrg{
366444d7874bSmrg
36652d861bc5Smrg  // Check bool.
36662d861bc5Smrg  _Bool success = false;
366744d7874bSmrg
36682d861bc5Smrg  // Check restrict.
36692d861bc5Smrg  if (test_restrict ("String literal") == 0)
36702d861bc5Smrg    success = true;
36712d861bc5Smrg  char *restrict newvar = "Another string";
367244d7874bSmrg
36732d861bc5Smrg  // Check varargs.
36742d861bc5Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
36752d861bc5Smrg  test_varargs_macros ();
367644d7874bSmrg
36772d861bc5Smrg  // Check flexible array members.
36782d861bc5Smrg  struct incomplete_array *ia =
36792d861bc5Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
36802d861bc5Smrg  ia->datasize = 10;
36812d861bc5Smrg  for (int i = 0; i < ia->datasize; ++i)
36822d861bc5Smrg    ia->data[i] = i * 1.234;
36832d861bc5Smrg
36842d861bc5Smrg  // Check named initializers.
36852d861bc5Smrg  struct named_init ni = {
36862d861bc5Smrg    .number = 34,
36872d861bc5Smrg    .name = L"Test wide string",
36882d861bc5Smrg    .average = 543.34343,
36892d861bc5Smrg  };
36902d861bc5Smrg
36912d861bc5Smrg  ni.number = 58;
36922d861bc5Smrg
36932d861bc5Smrg  int dynamic_array[ni.number];
36942d861bc5Smrg  dynamic_array[ni.number - 1] = 543;
36952d861bc5Smrg
36962d861bc5Smrg  // work around unused variable warnings
36972d861bc5Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
36982d861bc5Smrg	  || dynamic_array[ni.number - 1] != 543);
36992d861bc5Smrg
37002d861bc5Smrg  ;
37012d861bc5Smrg  return 0;
37022d861bc5Smrg}
37032d861bc5Smrg_ACEOF
37042d861bc5Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
370544d7874bSmrgdo
37062d861bc5Smrg  CC="$ac_save_CC $ac_arg"
37072d861bc5Smrg  if ac_fn_c_try_compile "$LINENO"; then :
37082d861bc5Smrg  ac_cv_prog_cc_c99=$ac_arg
37092d861bc5Smrgfi
37102d861bc5Smrgrm -f core conftest.err conftest.$ac_objext
37112d861bc5Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
371244d7874bSmrgdone
37132d861bc5Smrgrm -f conftest.$ac_ext
37142d861bc5SmrgCC=$ac_save_CC
371544d7874bSmrg
371644d7874bSmrgfi
37172d861bc5Smrg# AC_CACHE_VAL
37182d861bc5Smrgcase "x$ac_cv_prog_cc_c99" in
37192d861bc5Smrg  x)
37202d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
37212d861bc5Smrg$as_echo "none needed" >&6; } ;;
37222d861bc5Smrg  xno)
37232d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
37242d861bc5Smrg$as_echo "unsupported" >&6; } ;;
37252d861bc5Smrg  *)
37262d861bc5Smrg    CC="$CC $ac_cv_prog_cc_c99"
37272d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
37282d861bc5Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
37292d861bc5Smrgesac
37302d861bc5Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
373144d7874bSmrg
373244d7874bSmrgfi
373344d7874bSmrg
373444d7874bSmrg
37352d861bc5Smrg
37362d861bc5Smrgac_ext=c
37372d861bc5Smrgac_cpp='$CPP $CPPFLAGS'
37382d861bc5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37392d861bc5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37402d861bc5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37412d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
37422d861bc5Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
37432d861bc5Smrg# On Suns, sometimes $CPP names a directory.
37442d861bc5Smrgif test -n "$CPP" && test -d "$CPP"; then
37452d861bc5Smrg  CPP=
37462d861bc5Smrgfi
37472d861bc5Smrgif test -z "$CPP"; then
37482d861bc5Smrg  if ${ac_cv_prog_CPP+:} false; then :
37492d861bc5Smrg  $as_echo_n "(cached) " >&6
37502d861bc5Smrgelse
37512d861bc5Smrg      # Double quotes because CPP needs to be expanded
37522d861bc5Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
37532d861bc5Smrg    do
37542d861bc5Smrg      ac_preproc_ok=false
37552d861bc5Smrgfor ac_c_preproc_warn_flag in '' yes
37562d861bc5Smrgdo
37572d861bc5Smrg  # Use a header file that comes with gcc, so configuring glibc
37582d861bc5Smrg  # with a fresh cross-compiler works.
37592d861bc5Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37602d861bc5Smrg  # <limits.h> exists even on freestanding compilers.
37612d861bc5Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
37622d861bc5Smrg  # not just through cpp. "Syntax error" is here to catch this case.
37632d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37642d861bc5Smrg/* end confdefs.h.  */
37652d861bc5Smrg#ifdef __STDC__
37662d861bc5Smrg# include <limits.h>
37672d861bc5Smrg#else
37682d861bc5Smrg# include <assert.h>
37692d861bc5Smrg#endif
37702d861bc5Smrg		     Syntax error
37712d861bc5Smrg_ACEOF
37722d861bc5Smrgif ac_fn_c_try_cpp "$LINENO"; then :
37732d861bc5Smrg
37742d861bc5Smrgelse
37752d861bc5Smrg  # Broken: fails on valid input.
37762d861bc5Smrgcontinue
37772d861bc5Smrgfi
37782d861bc5Smrgrm -f conftest.err conftest.i conftest.$ac_ext
37792d861bc5Smrg
37802d861bc5Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
37812d861bc5Smrg  # can be detected and how.
37822d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37832d861bc5Smrg/* end confdefs.h.  */
37842d861bc5Smrg#include <ac_nonexistent.h>
37852d861bc5Smrg_ACEOF
37862d861bc5Smrgif ac_fn_c_try_cpp "$LINENO"; then :
37872d861bc5Smrg  # Broken: success on invalid input.
37882d861bc5Smrgcontinue
37892d861bc5Smrgelse
37902d861bc5Smrg  # Passes both tests.
37912d861bc5Smrgac_preproc_ok=:
37922d861bc5Smrgbreak
37932d861bc5Smrgfi
37942d861bc5Smrgrm -f conftest.err conftest.i conftest.$ac_ext
37952d861bc5Smrg
37962d861bc5Smrgdone
37972d861bc5Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
37982d861bc5Smrgrm -f conftest.i conftest.err conftest.$ac_ext
37992d861bc5Smrgif $ac_preproc_ok; then :
38002d861bc5Smrg  break
38012d861bc5Smrgfi
38022d861bc5Smrg
38032d861bc5Smrg    done
38042d861bc5Smrg    ac_cv_prog_CPP=$CPP
38052d861bc5Smrg
38062d861bc5Smrgfi
38072d861bc5Smrg  CPP=$ac_cv_prog_CPP
38082d861bc5Smrgelse
38092d861bc5Smrg  ac_cv_prog_CPP=$CPP
38102d861bc5Smrgfi
38112d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
38122d861bc5Smrg$as_echo "$CPP" >&6; }
38132d861bc5Smrgac_preproc_ok=false
38142d861bc5Smrgfor ac_c_preproc_warn_flag in '' yes
38152d861bc5Smrgdo
38162d861bc5Smrg  # Use a header file that comes with gcc, so configuring glibc
38172d861bc5Smrg  # with a fresh cross-compiler works.
38182d861bc5Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38192d861bc5Smrg  # <limits.h> exists even on freestanding compilers.
38202d861bc5Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38212d861bc5Smrg  # not just through cpp. "Syntax error" is here to catch this case.
38222d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38232d861bc5Smrg/* end confdefs.h.  */
38242d861bc5Smrg#ifdef __STDC__
38252d861bc5Smrg# include <limits.h>
38262d861bc5Smrg#else
38272d861bc5Smrg# include <assert.h>
38282d861bc5Smrg#endif
38292d861bc5Smrg		     Syntax error
38302d861bc5Smrg_ACEOF
38312d861bc5Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38322d861bc5Smrg
38332d861bc5Smrgelse
38342d861bc5Smrg  # Broken: fails on valid input.
38352d861bc5Smrgcontinue
38362d861bc5Smrgfi
38372d861bc5Smrgrm -f conftest.err conftest.i conftest.$ac_ext
38382d861bc5Smrg
38392d861bc5Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
38402d861bc5Smrg  # can be detected and how.
38412d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38422d861bc5Smrg/* end confdefs.h.  */
38432d861bc5Smrg#include <ac_nonexistent.h>
38442d861bc5Smrg_ACEOF
38452d861bc5Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38462d861bc5Smrg  # Broken: success on invalid input.
38472d861bc5Smrgcontinue
38482d861bc5Smrgelse
38492d861bc5Smrg  # Passes both tests.
38502d861bc5Smrgac_preproc_ok=:
38512d861bc5Smrgbreak
38522d861bc5Smrgfi
38532d861bc5Smrgrm -f conftest.err conftest.i conftest.$ac_ext
38542d861bc5Smrg
38552d861bc5Smrgdone
38562d861bc5Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38572d861bc5Smrgrm -f conftest.i conftest.err conftest.$ac_ext
38582d861bc5Smrgif $ac_preproc_ok; then :
38592d861bc5Smrg
38602d861bc5Smrgelse
38612d861bc5Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38622d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38632d861bc5Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
38642d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
38652d861bc5Smrgfi
38662d861bc5Smrg
38672d861bc5Smrgac_ext=c
38682d861bc5Smrgac_cpp='$CPP $CPPFLAGS'
38692d861bc5Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38702d861bc5Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38712d861bc5Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38722d861bc5Smrg
38732d861bc5Smrg
38742d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
38752d861bc5Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
38762d861bc5Smrgif ${ac_cv_path_GREP+:} false; then :
38772d861bc5Smrg  $as_echo_n "(cached) " >&6
38782d861bc5Smrgelse
38792d861bc5Smrg  if test -z "$GREP"; then
38802d861bc5Smrg  ac_path_GREP_found=false
38812d861bc5Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
38822d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38832d861bc5Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
38842d861bc5Smrgdo
38852d861bc5Smrg  IFS=$as_save_IFS
38862d861bc5Smrg  test -z "$as_dir" && as_dir=.
38872d861bc5Smrg    for ac_prog in grep ggrep; do
38882d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
38892d861bc5Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
38902d861bc5Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
38912d861bc5Smrg# Check for GNU ac_path_GREP and select it if it is found.
38922d861bc5Smrg  # Check for GNU $ac_path_GREP
38932d861bc5Smrgcase `"$ac_path_GREP" --version 2>&1` in
38942d861bc5Smrg*GNU*)
38952d861bc5Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
38962d861bc5Smrg*)
38972d861bc5Smrg  ac_count=0
38982d861bc5Smrg  $as_echo_n 0123456789 >"conftest.in"
38992d861bc5Smrg  while :
39002d861bc5Smrg  do
39012d861bc5Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39022d861bc5Smrg    mv "conftest.tmp" "conftest.in"
39032d861bc5Smrg    cp "conftest.in" "conftest.nl"
39042d861bc5Smrg    $as_echo 'GREP' >> "conftest.nl"
39052d861bc5Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39062d861bc5Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39072d861bc5Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
39082d861bc5Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
39092d861bc5Smrg      # Best one so far, save it but keep looking for a better one
39102d861bc5Smrg      ac_cv_path_GREP="$ac_path_GREP"
39112d861bc5Smrg      ac_path_GREP_max=$ac_count
39122d861bc5Smrg    fi
39132d861bc5Smrg    # 10*(2^10) chars as input seems more than enough
39142d861bc5Smrg    test $ac_count -gt 10 && break
39152d861bc5Smrg  done
39162d861bc5Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39172d861bc5Smrgesac
39182d861bc5Smrg
39192d861bc5Smrg      $ac_path_GREP_found && break 3
39202d861bc5Smrg    done
39212d861bc5Smrg  done
39222d861bc5Smrg  done
39232d861bc5SmrgIFS=$as_save_IFS
39242d861bc5Smrg  if test -z "$ac_cv_path_GREP"; then
39252d861bc5Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
39262d861bc5Smrg  fi
39272d861bc5Smrgelse
39282d861bc5Smrg  ac_cv_path_GREP=$GREP
39292d861bc5Smrgfi
39302d861bc5Smrg
39312d861bc5Smrgfi
39322d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
39332d861bc5Smrg$as_echo "$ac_cv_path_GREP" >&6; }
39342d861bc5Smrg GREP="$ac_cv_path_GREP"
39352d861bc5Smrg
39362d861bc5Smrg
39372d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
39382d861bc5Smrg$as_echo_n "checking for egrep... " >&6; }
39392d861bc5Smrgif ${ac_cv_path_EGREP+:} false; then :
39402d861bc5Smrg  $as_echo_n "(cached) " >&6
39412d861bc5Smrgelse
39422d861bc5Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
39432d861bc5Smrg   then ac_cv_path_EGREP="$GREP -E"
39442d861bc5Smrg   else
39452d861bc5Smrg     if test -z "$EGREP"; then
39462d861bc5Smrg  ac_path_EGREP_found=false
39472d861bc5Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
39482d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39492d861bc5Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39502d861bc5Smrgdo
39512d861bc5Smrg  IFS=$as_save_IFS
39522d861bc5Smrg  test -z "$as_dir" && as_dir=.
39532d861bc5Smrg    for ac_prog in egrep; do
39542d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
39552d861bc5Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
39562d861bc5Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
39572d861bc5Smrg# Check for GNU ac_path_EGREP and select it if it is found.
39582d861bc5Smrg  # Check for GNU $ac_path_EGREP
39592d861bc5Smrgcase `"$ac_path_EGREP" --version 2>&1` in
39602d861bc5Smrg*GNU*)
39612d861bc5Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
39622d861bc5Smrg*)
39632d861bc5Smrg  ac_count=0
39642d861bc5Smrg  $as_echo_n 0123456789 >"conftest.in"
39652d861bc5Smrg  while :
39662d861bc5Smrg  do
39672d861bc5Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39682d861bc5Smrg    mv "conftest.tmp" "conftest.in"
39692d861bc5Smrg    cp "conftest.in" "conftest.nl"
39702d861bc5Smrg    $as_echo 'EGREP' >> "conftest.nl"
39712d861bc5Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39722d861bc5Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39732d861bc5Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
39742d861bc5Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
39752d861bc5Smrg      # Best one so far, save it but keep looking for a better one
39762d861bc5Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
39772d861bc5Smrg      ac_path_EGREP_max=$ac_count
39782d861bc5Smrg    fi
39792d861bc5Smrg    # 10*(2^10) chars as input seems more than enough
39802d861bc5Smrg    test $ac_count -gt 10 && break
39812d861bc5Smrg  done
39822d861bc5Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39832d861bc5Smrgesac
39842d861bc5Smrg
39852d861bc5Smrg      $ac_path_EGREP_found && break 3
39862d861bc5Smrg    done
39872d861bc5Smrg  done
39882d861bc5Smrg  done
39892d861bc5SmrgIFS=$as_save_IFS
39902d861bc5Smrg  if test -z "$ac_cv_path_EGREP"; then
39912d861bc5Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
39922d861bc5Smrg  fi
39932d861bc5Smrgelse
39942d861bc5Smrg  ac_cv_path_EGREP=$EGREP
39952d861bc5Smrgfi
39962d861bc5Smrg
39972d861bc5Smrg   fi
39982d861bc5Smrgfi
39992d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
40002d861bc5Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
40012d861bc5Smrg EGREP="$ac_cv_path_EGREP"
40022d861bc5Smrg
40032d861bc5Smrg
40042d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40052d861bc5Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
40062d861bc5Smrgif ${ac_cv_header_stdc+:} false; then :
40072d861bc5Smrg  $as_echo_n "(cached) " >&6
40082d861bc5Smrgelse
40092d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40102d861bc5Smrg/* end confdefs.h.  */
40112d861bc5Smrg#include <stdlib.h>
40122d861bc5Smrg#include <stdarg.h>
40132d861bc5Smrg#include <string.h>
40142d861bc5Smrg#include <float.h>
40152d861bc5Smrg
40162d861bc5Smrgint
40172d861bc5Smrgmain ()
40182d861bc5Smrg{
40192d861bc5Smrg
40202d861bc5Smrg  ;
40212d861bc5Smrg  return 0;
40222d861bc5Smrg}
40232d861bc5Smrg_ACEOF
40242d861bc5Smrgif ac_fn_c_try_compile "$LINENO"; then :
40252d861bc5Smrg  ac_cv_header_stdc=yes
40262d861bc5Smrgelse
40272d861bc5Smrg  ac_cv_header_stdc=no
40282d861bc5Smrgfi
40292d861bc5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40302d861bc5Smrg
40312d861bc5Smrgif test $ac_cv_header_stdc = yes; then
40322d861bc5Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40332d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40342d861bc5Smrg/* end confdefs.h.  */
40352d861bc5Smrg#include <string.h>
40362d861bc5Smrg
40372d861bc5Smrg_ACEOF
40382d861bc5Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40392d861bc5Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
40402d861bc5Smrg
40412d861bc5Smrgelse
40422d861bc5Smrg  ac_cv_header_stdc=no
40432d861bc5Smrgfi
40442d861bc5Smrgrm -f conftest*
40452d861bc5Smrg
40462d861bc5Smrgfi
40472d861bc5Smrg
40482d861bc5Smrgif test $ac_cv_header_stdc = yes; then
40492d861bc5Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
40502d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40512d861bc5Smrg/* end confdefs.h.  */
40522d861bc5Smrg#include <stdlib.h>
40532d861bc5Smrg
40542d861bc5Smrg_ACEOF
40552d861bc5Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40562d861bc5Smrg  $EGREP "free" >/dev/null 2>&1; then :
40572d861bc5Smrg
40582d861bc5Smrgelse
40592d861bc5Smrg  ac_cv_header_stdc=no
40602d861bc5Smrgfi
40612d861bc5Smrgrm -f conftest*
40622d861bc5Smrg
40632d861bc5Smrgfi
40642d861bc5Smrg
40652d861bc5Smrgif test $ac_cv_header_stdc = yes; then
40662d861bc5Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
40672d861bc5Smrg  if test "$cross_compiling" = yes; then :
40682d861bc5Smrg  :
40692d861bc5Smrgelse
40702d861bc5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40712d861bc5Smrg/* end confdefs.h.  */
40722d861bc5Smrg#include <ctype.h>
40732d861bc5Smrg#include <stdlib.h>
40742d861bc5Smrg#if ((' ' & 0x0FF) == 0x020)
40752d861bc5Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
40762d861bc5Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
40772d861bc5Smrg#else
40782d861bc5Smrg# define ISLOWER(c) \
40792d861bc5Smrg		   (('a' <= (c) && (c) <= 'i') \
40802d861bc5Smrg		     || ('j' <= (c) && (c) <= 'r') \
40812d861bc5Smrg		     || ('s' <= (c) && (c) <= 'z'))
40822d861bc5Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
40832d861bc5Smrg#endif
40842d861bc5Smrg
40852d861bc5Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
40862d861bc5Smrgint
40872d861bc5Smrgmain ()
40882d861bc5Smrg{
40892d861bc5Smrg  int i;
40902d861bc5Smrg  for (i = 0; i < 256; i++)
40912d861bc5Smrg    if (XOR (islower (i), ISLOWER (i))
40922d861bc5Smrg	|| toupper (i) != TOUPPER (i))
40932d861bc5Smrg      return 2;
40942d861bc5Smrg  return 0;
40952d861bc5Smrg}
40962d861bc5Smrg_ACEOF
40972d861bc5Smrgif ac_fn_c_try_run "$LINENO"; then :
40982d861bc5Smrg
40992d861bc5Smrgelse
41002d861bc5Smrg  ac_cv_header_stdc=no
41012d861bc5Smrgfi
41022d861bc5Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41032d861bc5Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
41042d861bc5Smrgfi
41052d861bc5Smrg
41062d861bc5Smrgfi
41072d861bc5Smrgfi
41082d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
41092d861bc5Smrg$as_echo "$ac_cv_header_stdc" >&6; }
41102d861bc5Smrgif test $ac_cv_header_stdc = yes; then
41112d861bc5Smrg
41122d861bc5Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
41132d861bc5Smrg
41142d861bc5Smrgfi
41152d861bc5Smrg
41162d861bc5Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
41172d861bc5Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
41182d861bc5Smrg		  inttypes.h stdint.h unistd.h
41192d861bc5Smrgdo :
41202d861bc5Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41212d861bc5Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
41222d861bc5Smrg"
41232d861bc5Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41242d861bc5Smrg  cat >>confdefs.h <<_ACEOF
41252d861bc5Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41262d861bc5Smrg_ACEOF
41272d861bc5Smrg
41282d861bc5Smrgfi
41292d861bc5Smrg
41302d861bc5Smrgdone
41312d861bc5Smrg
41322d861bc5Smrg
41332d861bc5Smrg
41342d861bc5Smrg
41352d861bc5Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41362d861bc5Smrg	if test -n "$ac_tool_prefix"; then
41372d861bc5Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41382d861bc5Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41392d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41402d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
41412d861bc5Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
41422d861bc5Smrg  $as_echo_n "(cached) " >&6
41432d861bc5Smrgelse
41442d861bc5Smrg  case $PKG_CONFIG in
41452d861bc5Smrg  [\\/]* | ?:[\\/]*)
41462d861bc5Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41472d861bc5Smrg  ;;
41482d861bc5Smrg  *)
41492d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41502d861bc5Smrgfor as_dir in $PATH
41512d861bc5Smrgdo
41522d861bc5Smrg  IFS=$as_save_IFS
41532d861bc5Smrg  test -z "$as_dir" && as_dir=.
41542d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
41552d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41562d861bc5Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41572d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41582d861bc5Smrg    break 2
41592d861bc5Smrg  fi
41602d861bc5Smrgdone
41612d861bc5Smrg  done
41622d861bc5SmrgIFS=$as_save_IFS
41632d861bc5Smrg
41642d861bc5Smrg  ;;
41652d861bc5Smrgesac
41662d861bc5Smrgfi
41672d861bc5SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
41682d861bc5Smrgif test -n "$PKG_CONFIG"; then
41692d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
41702d861bc5Smrg$as_echo "$PKG_CONFIG" >&6; }
41712d861bc5Smrgelse
41722d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41732d861bc5Smrg$as_echo "no" >&6; }
41742d861bc5Smrgfi
41752d861bc5Smrg
41762d861bc5Smrg
41772d861bc5Smrgfi
41782d861bc5Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
41792d861bc5Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
41802d861bc5Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
41812d861bc5Smrgset dummy pkg-config; ac_word=$2
41822d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41832d861bc5Smrg$as_echo_n "checking for $ac_word... " >&6; }
41842d861bc5Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
41852d861bc5Smrg  $as_echo_n "(cached) " >&6
41862d861bc5Smrgelse
41872d861bc5Smrg  case $ac_pt_PKG_CONFIG in
41882d861bc5Smrg  [\\/]* | ?:[\\/]*)
41892d861bc5Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
41902d861bc5Smrg  ;;
41912d861bc5Smrg  *)
41922d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41932d861bc5Smrgfor as_dir in $PATH
41942d861bc5Smrgdo
41952d861bc5Smrg  IFS=$as_save_IFS
41962d861bc5Smrg  test -z "$as_dir" && as_dir=.
41972d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
41982d861bc5Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41992d861bc5Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42002d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42012d861bc5Smrg    break 2
42022d861bc5Smrg  fi
42032d861bc5Smrgdone
42042d861bc5Smrg  done
42052d861bc5SmrgIFS=$as_save_IFS
42062d861bc5Smrg
42072d861bc5Smrg  ;;
42082d861bc5Smrgesac
42092d861bc5Smrgfi
42102d861bc5Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42112d861bc5Smrgif test -n "$ac_pt_PKG_CONFIG"; then
42122d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
42132d861bc5Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
42142d861bc5Smrgelse
42152d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42162d861bc5Smrg$as_echo "no" >&6; }
42172d861bc5Smrgfi
42182d861bc5Smrg
42192d861bc5Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
42202d861bc5Smrg    PKG_CONFIG=""
42212d861bc5Smrg  else
42222d861bc5Smrg    case $cross_compiling:$ac_tool_warned in
42232d861bc5Smrgyes:)
42242d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
42252d861bc5Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42262d861bc5Smrgac_tool_warned=yes ;;
42272d861bc5Smrgesac
42282d861bc5Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
42292d861bc5Smrg  fi
42302d861bc5Smrgelse
42312d861bc5Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42322d861bc5Smrgfi
42332d861bc5Smrg
42342d861bc5Smrgfi
42352d861bc5Smrgif test -n "$PKG_CONFIG"; then
42362d861bc5Smrg	_pkg_min_version=0.9.0
42372d861bc5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
42382d861bc5Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
42392d861bc5Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42402d861bc5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42412d861bc5Smrg$as_echo "yes" >&6; }
42422d861bc5Smrg	else
42432d861bc5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42442d861bc5Smrg$as_echo "no" >&6; }
424544d7874bSmrg		PKG_CONFIG=""
424644d7874bSmrg	fi
424744d7874bSmrg
424844d7874bSmrgfi
42492d861bc5Smrg# Make sure we can run config.sub.
42502d861bc5Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
42512d861bc5Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
425244d7874bSmrg
42532d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
42542d861bc5Smrg$as_echo_n "checking build system type... " >&6; }
42552d861bc5Smrgif ${ac_cv_build+:} false; then :
42562d861bc5Smrg  $as_echo_n "(cached) " >&6
42572d861bc5Smrgelse
42582d861bc5Smrg  ac_build_alias=$build_alias
42592d861bc5Smrgtest "x$ac_build_alias" = x &&
42602d861bc5Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
42612d861bc5Smrgtest "x$ac_build_alias" = x &&
42622d861bc5Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
42632d861bc5Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
42642d861bc5Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
42652d861bc5Smrg
42662d861bc5Smrgfi
42672d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
42682d861bc5Smrg$as_echo "$ac_cv_build" >&6; }
42692d861bc5Smrgcase $ac_cv_build in
42702d861bc5Smrg*-*-*) ;;
42712d861bc5Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
42722d861bc5Smrgesac
42732d861bc5Smrgbuild=$ac_cv_build
42742d861bc5Smrgac_save_IFS=$IFS; IFS='-'
42752d861bc5Smrgset x $ac_cv_build
42762d861bc5Smrgshift
42772d861bc5Smrgbuild_cpu=$1
42782d861bc5Smrgbuild_vendor=$2
42792d861bc5Smrgshift; shift
42802d861bc5Smrg# Remember, the first character of IFS is used to create $*,
42812d861bc5Smrg# except with old shells:
42822d861bc5Smrgbuild_os=$*
42832d861bc5SmrgIFS=$ac_save_IFS
42842d861bc5Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42852d861bc5Smrg
42862d861bc5Smrg
42872d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
42882d861bc5Smrg$as_echo_n "checking host system type... " >&6; }
42892d861bc5Smrgif ${ac_cv_host+:} false; then :
42902d861bc5Smrg  $as_echo_n "(cached) " >&6
42912d861bc5Smrgelse
42922d861bc5Smrg  if test "x$host_alias" = x; then
42932d861bc5Smrg  ac_cv_host=$ac_cv_build
42942d861bc5Smrgelse
42952d861bc5Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
42962d861bc5Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
42972d861bc5Smrgfi
429844d7874bSmrg
42992d861bc5Smrgfi
43002d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
43012d861bc5Smrg$as_echo "$ac_cv_host" >&6; }
43022d861bc5Smrgcase $ac_cv_host in
43032d861bc5Smrg*-*-*) ;;
43042d861bc5Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
43052d861bc5Smrgesac
43062d861bc5Smrghost=$ac_cv_host
43072d861bc5Smrgac_save_IFS=$IFS; IFS='-'
43082d861bc5Smrgset x $ac_cv_host
43092d861bc5Smrgshift
43102d861bc5Smrghost_cpu=$1
43112d861bc5Smrghost_vendor=$2
43122d861bc5Smrgshift; shift
43132d861bc5Smrg# Remember, the first character of IFS is used to create $*,
43142d861bc5Smrg# except with old shells:
43152d861bc5Smrghost_os=$*
43162d861bc5SmrgIFS=$ac_save_IFS
43172d861bc5Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
43182d861bc5Smrg
43192d861bc5Smrg
43202d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
43212d861bc5Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
43222d861bc5Smrgif ${ac_cv_path_SED+:} false; then :
43232d861bc5Smrg  $as_echo_n "(cached) " >&6
432444d7874bSmrgelse
43252d861bc5Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
43262d861bc5Smrg     for ac_i in 1 2 3 4 5 6 7; do
43272d861bc5Smrg       ac_script="$ac_script$as_nl$ac_script"
43282d861bc5Smrg     done
43292d861bc5Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
43302d861bc5Smrg     { ac_script=; unset ac_script;}
43312d861bc5Smrg     if test -z "$SED"; then
43322d861bc5Smrg  ac_path_SED_found=false
43332d861bc5Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
43342d861bc5Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43352d861bc5Smrgfor as_dir in $PATH
43362d861bc5Smrgdo
43372d861bc5Smrg  IFS=$as_save_IFS
43382d861bc5Smrg  test -z "$as_dir" && as_dir=.
43392d861bc5Smrg    for ac_prog in sed gsed; do
43402d861bc5Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43412d861bc5Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
43422d861bc5Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
43432d861bc5Smrg# Check for GNU ac_path_SED and select it if it is found.
43442d861bc5Smrg  # Check for GNU $ac_path_SED
43452d861bc5Smrgcase `"$ac_path_SED" --version 2>&1` in
43462d861bc5Smrg*GNU*)
43472d861bc5Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
43482d861bc5Smrg*)
43492d861bc5Smrg  ac_count=0
43502d861bc5Smrg  $as_echo_n 0123456789 >"conftest.in"
43512d861bc5Smrg  while :
43522d861bc5Smrg  do
43532d861bc5Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
43542d861bc5Smrg    mv "conftest.tmp" "conftest.in"
43552d861bc5Smrg    cp "conftest.in" "conftest.nl"
43562d861bc5Smrg    $as_echo '' >> "conftest.nl"
43572d861bc5Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
43582d861bc5Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43592d861bc5Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
43602d861bc5Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
43612d861bc5Smrg      # Best one so far, save it but keep looking for a better one
43622d861bc5Smrg      ac_cv_path_SED="$ac_path_SED"
43632d861bc5Smrg      ac_path_SED_max=$ac_count
43642d861bc5Smrg    fi
43652d861bc5Smrg    # 10*(2^10) chars as input seems more than enough
43662d861bc5Smrg    test $ac_count -gt 10 && break
43672d861bc5Smrg  done
43682d861bc5Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43692d861bc5Smrgesac
43702d861bc5Smrg
43712d861bc5Smrg      $ac_path_SED_found && break 3
43722d861bc5Smrg    done
43732d861bc5Smrg  done
43742d861bc5Smrg  done
43752d861bc5SmrgIFS=$as_save_IFS
43762d861bc5Smrg  if test -z "$ac_cv_path_SED"; then
43772d861bc5Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
43782d861bc5Smrg  fi
43792d861bc5Smrgelse
43802d861bc5Smrg  ac_cv_path_SED=$SED
438144d7874bSmrgfi
43822d861bc5Smrg
43832d861bc5Smrgfi
43842d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
43852d861bc5Smrg$as_echo "$ac_cv_path_SED" >&6; }
43862d861bc5Smrg SED="$ac_cv_path_SED"
43872d861bc5Smrg  rm -f conftest.sed
43882d861bc5Smrg
43892d861bc5Smrg
43902d861bc5Smrg
43912d861bc5Smrg
43922d861bc5Smrg
43932d861bc5Smrgif  test "x$GCC" = xyes ; then
43942d861bc5Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
43952d861bc5Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
43962d861bc5Smrg-Wbad-function-cast -Wformat=2"
43972d861bc5Smrg    case `$CC -dumpversion` in
43982d861bc5Smrg    3.4.* | 4.*)
43992d861bc5Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
44002d861bc5Smrg	;;
44012d861bc5Smrg    esac
44022d861bc5Smrgelse
44032d861bc5Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
44042d861bc5Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
44052d861bc5Smrg  SUNCC="yes"
44062d861bc5Smrgelse
44072d861bc5Smrg  SUNCC="no"
44082d861bc5Smrgfi
44092d861bc5Smrg
44102d861bc5Smrg    if test "x$SUNCC" = "xyes"; then
44112d861bc5Smrg	CWARNFLAGS="-v"
441244d7874bSmrg    fi
44132d861bc5Smrgfi
44142d861bc5Smrg
44152d861bc5Smrg
44162d861bc5Smrg
44172d861bc5Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
44182d861bc5Smrg
44192d861bc5Smrg
44202d861bc5Smrg
44212d861bc5Smrg# Check whether --enable-strict-compilation was given.
44222d861bc5Smrgif test "${enable_strict_compilation+set}" = set; then :
44232d861bc5Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
442444d7874bSmrgelse
44252d861bc5Smrg  STRICT_COMPILE=no
442644d7874bSmrgfi
44272d861bc5Smrg
44282d861bc5Smrgif test "x$STRICT_COMPILE" = "xyes"; then
44292d861bc5Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
44302d861bc5Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
44312d861bc5Smrg  SUNCC="yes"
44322d861bc5Smrgelse
44332d861bc5Smrg  SUNCC="no"
44342d861bc5Smrgfi
44352d861bc5Smrg
44362d861bc5Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
44372d861bc5Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
44382d861bc5Smrg  INTELCC="yes"
44392d861bc5Smrgelse
44402d861bc5Smrg  INTELCC="no"
44412d861bc5Smrgfi
44422d861bc5Smrg
44432d861bc5Smrg	if test "x$GCC" = xyes ; then
44442d861bc5Smrg		STRICT_CFLAGS="-pedantic -Werror"
44452d861bc5Smrg	elif test "x$SUNCC" = "xyes"; then
44462d861bc5Smrg		STRICT_CFLAGS="-errwarn"
44472d861bc5Smrg    elif test "x$INTELCC" = "xyes"; then
44482d861bc5Smrg		STRICT_CFLAGS="-Werror"
44492d861bc5Smrg	fi
44502d861bc5Smrgfi
44512d861bc5SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
44522d861bc5Smrg
44532d861bc5Smrg
44542d861bc5Smrg
44552d861bc5Smrg
44562d861bc5Smrgcat >>confdefs.h <<_ACEOF
44572d861bc5Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
44582d861bc5Smrg_ACEOF
44592d861bc5Smrg
44602d861bc5Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
44612d861bc5Smrg	if test "x$PVM" = "x"; then
44622d861bc5Smrg		PVM="0"
44632d861bc5Smrg	fi
44642d861bc5Smrg
44652d861bc5Smrgcat >>confdefs.h <<_ACEOF
44662d861bc5Smrg#define PACKAGE_VERSION_MINOR $PVM
44672d861bc5Smrg_ACEOF
44682d861bc5Smrg
44692d861bc5Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
44702d861bc5Smrg	if test "x$PVP" = "x"; then
44712d861bc5Smrg		PVP="0"
44722d861bc5Smrg	fi
44732d861bc5Smrg
44742d861bc5Smrgcat >>confdefs.h <<_ACEOF
44752d861bc5Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
44762d861bc5Smrg_ACEOF
44772d861bc5Smrg
44782d861bc5Smrg
44792d861bc5Smrg
44802d861bc5SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
44812d861bc5Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
44822d861bc5Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
44832d861bc5Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
44842d861bc5Smrg
44852d861bc5Smrg
44862d861bc5Smrg
44872d861bc5Smrg
44882d861bc5Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
44892d861bc5SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
44902d861bc5Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
44912d861bc5Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
44922d861bc5Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
44932d861bc5Smrg
44942d861bc5Smrg
44952d861bc5Smrg
44962d861bc5Smrg
44972d861bc5Smrg
44982d861bc5Smrg
44992d861bc5Smrgif test x$APP_MAN_SUFFIX = x    ; then
45002d861bc5Smrg    APP_MAN_SUFFIX=1
45012d861bc5Smrgfi
45022d861bc5Smrgif test x$APP_MAN_DIR = x    ; then
45032d861bc5Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
45042d861bc5Smrgfi
45052d861bc5Smrg
45062d861bc5Smrgif test x$LIB_MAN_SUFFIX = x    ; then
45072d861bc5Smrg    LIB_MAN_SUFFIX=3
45082d861bc5Smrgfi
45092d861bc5Smrgif test x$LIB_MAN_DIR = x    ; then
45102d861bc5Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
45112d861bc5Smrgfi
45122d861bc5Smrg
45132d861bc5Smrgif test x$FILE_MAN_SUFFIX = x    ; then
45142d861bc5Smrg    case $host_os in
45152d861bc5Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
45162d861bc5Smrg	*)		FILE_MAN_SUFFIX=5  ;;
45172d861bc5Smrg    esac
45182d861bc5Smrgfi
45192d861bc5Smrgif test x$FILE_MAN_DIR = x    ; then
45202d861bc5Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
45212d861bc5Smrgfi
45222d861bc5Smrg
45232d861bc5Smrgif test x$MISC_MAN_SUFFIX = x    ; then
45242d861bc5Smrg    case $host_os in
45252d861bc5Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
45262d861bc5Smrg	*)		MISC_MAN_SUFFIX=7  ;;
45272d861bc5Smrg    esac
45282d861bc5Smrgfi
45292d861bc5Smrgif test x$MISC_MAN_DIR = x    ; then
45302d861bc5Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
45312d861bc5Smrgfi
45322d861bc5Smrg
45332d861bc5Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
45342d861bc5Smrg    case $host_os in
45352d861bc5Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
45362d861bc5Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
45372d861bc5Smrg    esac
45382d861bc5Smrgfi
45392d861bc5Smrgif test x$DRIVER_MAN_DIR = x    ; then
45402d861bc5Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
45412d861bc5Smrgfi
45422d861bc5Smrg
45432d861bc5Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
45442d861bc5Smrg    case $host_os in
45452d861bc5Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
45462d861bc5Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
45472d861bc5Smrg    esac
45482d861bc5Smrgfi
45492d861bc5Smrgif test x$ADMIN_MAN_DIR = x    ; then
45502d861bc5Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
45512d861bc5Smrgfi
45522d861bc5Smrg
45532d861bc5Smrg
45542d861bc5Smrg
45552d861bc5Smrg
45562d861bc5Smrg
45572d861bc5Smrg
45582d861bc5Smrg
45592d861bc5Smrg
45602d861bc5Smrg
45612d861bc5Smrg
45622d861bc5Smrg
45632d861bc5Smrg
45642d861bc5Smrg
45652d861bc5Smrg
45662d861bc5Smrg
45672d861bc5SmrgXORG_MAN_PAGE="X Version 11"
45682d861bc5Smrg
45692d861bc5SmrgMAN_SUBSTS="\
45702d861bc5Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
45712d861bc5Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
45722d861bc5Smrg	-e 's|__xservername__|Xorg|g' \
45732d861bc5Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
45742d861bc5Smrg	-e 's|__projectroot__|\$(prefix)|g' \
45752d861bc5Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
45762d861bc5Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
45772d861bc5Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
45782d861bc5Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
45792d861bc5Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
45802d861bc5Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
45812d861bc5Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
45822d861bc5Smrg
45832d861bc5Smrg
45842d861bc5Smrg
45852d861bc5Smrg# Check whether --enable-silent-rules was given.
45862d861bc5Smrgif test "${enable_silent_rules+set}" = set; then :
45872d861bc5Smrg  enableval=$enable_silent_rules;
45882d861bc5Smrgfi
45892d861bc5Smrg
45902d861bc5Smrgcase $enable_silent_rules in
45912d861bc5Smrgyes) AM_DEFAULT_VERBOSITY=0;;
45922d861bc5Smrgno)  AM_DEFAULT_VERBOSITY=1;;
45932d861bc5Smrg*)   AM_DEFAULT_VERBOSITY=0;;
45942d861bc5Smrgesac
45952d861bc5SmrgAM_BACKSLASH='\'
45962d861bc5Smrg
45972d861bc5Smrg
45982d861bc5Smrg
45992d861bc5Smrgac_config_headers="$ac_config_headers config.h"
46002d861bc5Smrg
46012d861bc5Smrg
46022d861bc5Smrg# Checks for pkg-config packages
46032d861bc5Smrg
46042d861bc5Smrgpkg_failed=no
46052d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BEFORELIGHT" >&5
46062d861bc5Smrg$as_echo_n "checking for BEFORELIGHT... " >&6; }
46072d861bc5Smrg
46082d861bc5Smrgif test -n "$BEFORELIGHT_CFLAGS"; then
46092d861bc5Smrg    pkg_cv_BEFORELIGHT_CFLAGS="$BEFORELIGHT_CFLAGS"
46102d861bc5Smrg elif test -n "$PKG_CONFIG"; then
46112d861bc5Smrg    if test -n "$PKG_CONFIG" && \
46122d861bc5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xscrnsaver xt\""; } >&5
46132d861bc5Smrg  ($PKG_CONFIG --exists --print-errors "x11 xscrnsaver xt") 2>&5
461444d7874bSmrg  ac_status=$?
46152d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46162d861bc5Smrg  test $ac_status = 0; }; then
46172d861bc5Smrg  pkg_cv_BEFORELIGHT_CFLAGS=`$PKG_CONFIG --cflags "x11 xscrnsaver xt" 2>/dev/null`
461844d7874bSmrgelse
461944d7874bSmrg  pkg_failed=yes
462044d7874bSmrgfi
46212d861bc5Smrg else
46222d861bc5Smrg    pkg_failed=untried
46232d861bc5Smrgfi
46242d861bc5Smrgif test -n "$BEFORELIGHT_LIBS"; then
46252d861bc5Smrg    pkg_cv_BEFORELIGHT_LIBS="$BEFORELIGHT_LIBS"
46262d861bc5Smrg elif test -n "$PKG_CONFIG"; then
46272d861bc5Smrg    if test -n "$PKG_CONFIG" && \
46282d861bc5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xscrnsaver xt\""; } >&5
46292d861bc5Smrg  ($PKG_CONFIG --exists --print-errors "x11 xscrnsaver xt") 2>&5
46302d861bc5Smrg  ac_status=$?
46312d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46322d861bc5Smrg  test $ac_status = 0; }; then
46332d861bc5Smrg  pkg_cv_BEFORELIGHT_LIBS=`$PKG_CONFIG --libs "x11 xscrnsaver xt" 2>/dev/null`
463444d7874bSmrgelse
46352d861bc5Smrg  pkg_failed=yes
46362d861bc5Smrgfi
46372d861bc5Smrg else
46382d861bc5Smrg    pkg_failed=untried
463944d7874bSmrgfi
464044d7874bSmrg
464144d7874bSmrg
464244d7874bSmrg
464344d7874bSmrgif test $pkg_failed = yes; then
464444d7874bSmrg
464544d7874bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
464644d7874bSmrg        _pkg_short_errors_supported=yes
464744d7874bSmrgelse
464844d7874bSmrg        _pkg_short_errors_supported=no
464944d7874bSmrgfi
465044d7874bSmrg        if test $_pkg_short_errors_supported = yes; then
46512d861bc5Smrg	        BEFORELIGHT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xscrnsaver xt" 2>&1`
465244d7874bSmrg        else
46532d861bc5Smrg	        BEFORELIGHT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xscrnsaver xt" 2>&1`
465444d7874bSmrg        fi
465544d7874bSmrg	# Put the nasty error message in config.log where it belongs
465644d7874bSmrg	echo "$BEFORELIGHT_PKG_ERRORS" >&5
465744d7874bSmrg
46582d861bc5Smrg	as_fn_error $? "Package requirements (x11 xscrnsaver xt) were not met:
465944d7874bSmrg
466044d7874bSmrg$BEFORELIGHT_PKG_ERRORS
466144d7874bSmrg
466244d7874bSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
466344d7874bSmrginstalled software in a non-standard prefix.
466444d7874bSmrg
466544d7874bSmrgAlternatively, you may set the environment variables BEFORELIGHT_CFLAGS
466644d7874bSmrgand BEFORELIGHT_LIBS to avoid the need to call pkg-config.
466744d7874bSmrgSee the pkg-config man page for more details.
46682d861bc5Smrg" "$LINENO" 5
466944d7874bSmrgelif test $pkg_failed = untried; then
46702d861bc5Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46712d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46722d861bc5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
467344d7874bSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
467444d7874bSmrgpath to pkg-config.
467544d7874bSmrg
467644d7874bSmrgAlternatively, you may set the environment variables BEFORELIGHT_CFLAGS
467744d7874bSmrgand BEFORELIGHT_LIBS to avoid the need to call pkg-config.
467844d7874bSmrgSee the pkg-config man page for more details.
467944d7874bSmrg
46802d861bc5SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
46812d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
468244d7874bSmrgelse
468344d7874bSmrg	BEFORELIGHT_CFLAGS=$pkg_cv_BEFORELIGHT_CFLAGS
468444d7874bSmrg	BEFORELIGHT_LIBS=$pkg_cv_BEFORELIGHT_LIBS
46852d861bc5Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46862d861bc5Smrg$as_echo "yes" >&6; }
468744d7874bSmrg	:
468844d7874bSmrgfi
468944d7874bSmrg
46902d861bc5Smrgpkg_failed=no
46912d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAW" >&5
46922d861bc5Smrg$as_echo_n "checking for XAW... " >&6; }
46932d861bc5Smrg
46942d861bc5Smrgif test -n "$XAW_CFLAGS"; then
46952d861bc5Smrg    pkg_cv_XAW_CFLAGS="$XAW_CFLAGS"
46962d861bc5Smrg elif test -n "$PKG_CONFIG"; then
46972d861bc5Smrg    if test -n "$PKG_CONFIG" && \
46982d861bc5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
46992d861bc5Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
47002d861bc5Smrg  ac_status=$?
47012d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47022d861bc5Smrg  test $ac_status = 0; }; then
47032d861bc5Smrg  pkg_cv_XAW_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
47042d861bc5Smrgelse
47052d861bc5Smrg  pkg_failed=yes
47062d861bc5Smrgfi
47072d861bc5Smrg else
47082d861bc5Smrg    pkg_failed=untried
47092d861bc5Smrgfi
47102d861bc5Smrgif test -n "$XAW_LIBS"; then
47112d861bc5Smrg    pkg_cv_XAW_LIBS="$XAW_LIBS"
47122d861bc5Smrg elif test -n "$PKG_CONFIG"; then
47132d861bc5Smrg    if test -n "$PKG_CONFIG" && \
47142d861bc5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
47152d861bc5Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
47162d861bc5Smrg  ac_status=$?
47172d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47182d861bc5Smrg  test $ac_status = 0; }; then
47192d861bc5Smrg  pkg_cv_XAW_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
47202d861bc5Smrgelse
47212d861bc5Smrg  pkg_failed=yes
47222d861bc5Smrgfi
47232d861bc5Smrg else
47242d861bc5Smrg    pkg_failed=untried
47252d861bc5Smrgfi
472644d7874bSmrg
472744d7874bSmrg
472844d7874bSmrg
47292d861bc5Smrgif test $pkg_failed = yes; then
473044d7874bSmrg
47312d861bc5Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47322d861bc5Smrg        _pkg_short_errors_supported=yes
47332d861bc5Smrgelse
47342d861bc5Smrg        _pkg_short_errors_supported=no
47352d861bc5Smrgfi
47362d861bc5Smrg        if test $_pkg_short_errors_supported = yes; then
47372d861bc5Smrg	        XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1`
47382d861bc5Smrg        else
47392d861bc5Smrg	        XAW_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1`
47402d861bc5Smrg        fi
47412d861bc5Smrg	# Put the nasty error message in config.log where it belongs
47422d861bc5Smrg	echo "$XAW_PKG_ERRORS" >&5
47432d861bc5Smrg
47442d861bc5Smrg	as_fn_error $? "Package requirements (xaw7) were not met:
47452d861bc5Smrg
47462d861bc5Smrg$XAW_PKG_ERRORS
47472d861bc5Smrg
47482d861bc5SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
47492d861bc5Smrginstalled software in a non-standard prefix.
47502d861bc5Smrg
47512d861bc5SmrgAlternatively, you may set the environment variables XAW_CFLAGS
47522d861bc5Smrgand XAW_LIBS to avoid the need to call pkg-config.
47532d861bc5SmrgSee the pkg-config man page for more details.
47542d861bc5Smrg" "$LINENO" 5
47552d861bc5Smrgelif test $pkg_failed = untried; then
47562d861bc5Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47572d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47582d861bc5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47592d861bc5Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
47602d861bc5Smrgpath to pkg-config.
47612d861bc5Smrg
47622d861bc5SmrgAlternatively, you may set the environment variables XAW_CFLAGS
47632d861bc5Smrgand XAW_LIBS to avoid the need to call pkg-config.
47642d861bc5SmrgSee the pkg-config man page for more details.
47652d861bc5Smrg
47662d861bc5SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
47672d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
47682d861bc5Smrgelse
47692d861bc5Smrg	XAW_CFLAGS=$pkg_cv_XAW_CFLAGS
47702d861bc5Smrg	XAW_LIBS=$pkg_cv_XAW_LIBS
47712d861bc5Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47722d861bc5Smrg$as_echo "yes" >&6; }
47732d861bc5Smrg	:
47742d861bc5Smrgfi
47752d861bc5Smrg
47762d861bc5Smrg
47772d861bc5Smrgpkg_failed=no
47782d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
47792d861bc5Smrg$as_echo_n "checking for APPDEFS... " >&6; }
47802d861bc5Smrg
47812d861bc5Smrgif test -n "$APPDEFS_CFLAGS"; then
47822d861bc5Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
47832d861bc5Smrg elif test -n "$PKG_CONFIG"; then
47842d861bc5Smrg    if test -n "$PKG_CONFIG" && \
47852d861bc5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
478644d7874bSmrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
478744d7874bSmrg  ac_status=$?
47882d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47892d861bc5Smrg  test $ac_status = 0; }; then
479044d7874bSmrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
479144d7874bSmrgelse
479244d7874bSmrg  pkg_failed=yes
479344d7874bSmrgfi
47942d861bc5Smrg else
47952d861bc5Smrg    pkg_failed=untried
479644d7874bSmrgfi
47972d861bc5Smrgif test -n "$APPDEFS_LIBS"; then
47982d861bc5Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
47992d861bc5Smrg elif test -n "$PKG_CONFIG"; then
48002d861bc5Smrg    if test -n "$PKG_CONFIG" && \
48012d861bc5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
480244d7874bSmrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
480344d7874bSmrg  ac_status=$?
48042d861bc5Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48052d861bc5Smrg  test $ac_status = 0; }; then
480644d7874bSmrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
480744d7874bSmrgelse
480844d7874bSmrg  pkg_failed=yes
480944d7874bSmrgfi
48102d861bc5Smrg else
48112d861bc5Smrg    pkg_failed=untried
481244d7874bSmrgfi
481344d7874bSmrg
481444d7874bSmrg
481544d7874bSmrg
481644d7874bSmrgif test $pkg_failed = yes; then
481744d7874bSmrg
481844d7874bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
481944d7874bSmrg        _pkg_short_errors_supported=yes
482044d7874bSmrgelse
482144d7874bSmrg        _pkg_short_errors_supported=no
482244d7874bSmrgfi
482344d7874bSmrg        if test $_pkg_short_errors_supported = yes; then
48242d861bc5Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
482544d7874bSmrg        else
48262d861bc5Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
482744d7874bSmrg        fi
482844d7874bSmrg	# Put the nasty error message in config.log where it belongs
482944d7874bSmrg	echo "$APPDEFS_PKG_ERRORS" >&5
483044d7874bSmrg
48312d861bc5Smrg	as_fn_error $? "Package requirements (xt) were not met:
483244d7874bSmrg
483344d7874bSmrg$APPDEFS_PKG_ERRORS
483444d7874bSmrg
483544d7874bSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
483644d7874bSmrginstalled software in a non-standard prefix.
483744d7874bSmrg
483844d7874bSmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
483944d7874bSmrgand APPDEFS_LIBS to avoid the need to call pkg-config.
484044d7874bSmrgSee the pkg-config man page for more details.
48412d861bc5Smrg" "$LINENO" 5
484244d7874bSmrgelif test $pkg_failed = untried; then
48432d861bc5Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48442d861bc5Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48452d861bc5Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
484644d7874bSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
484744d7874bSmrgpath to pkg-config.
484844d7874bSmrg
484944d7874bSmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
485044d7874bSmrgand APPDEFS_LIBS to avoid the need to call pkg-config.
485144d7874bSmrgSee the pkg-config man page for more details.
485244d7874bSmrg
48532d861bc5SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
48542d861bc5SmrgSee \`config.log' for more details" "$LINENO" 5; }
485544d7874bSmrgelse
485644d7874bSmrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
485744d7874bSmrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
48582d861bc5Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48592d861bc5Smrg$as_echo "yes" >&6; }
486044d7874bSmrg	:
486144d7874bSmrgfi
48622d861bc5Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
486344d7874bSmrg
48642d861bc5Smrg# Check whether --with-appdefaultdir was given.
48652d861bc5Smrgif test "${with_appdefaultdir+set}" = set; then :
48662d861bc5Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
486744d7874bSmrgelse
48682d861bc5Smrg  appdefaultdir="${xt_appdefaultdir}"
486944d7874bSmrgfi
487044d7874bSmrg
487144d7874bSmrg
487244d7874bSmrg
487344d7874bSmrg
48742d861bc5Smrgac_config_files="$ac_config_files Makefile"
487544d7874bSmrg
487644d7874bSmrgcat >confcache <<\_ACEOF
487744d7874bSmrg# This file is a shell script that caches the results of configure
487844d7874bSmrg# tests run on this system so they can be shared between configure
487944d7874bSmrg# scripts and configure runs, see configure's option --config-cache.
488044d7874bSmrg# It is not useful on other systems.  If it contains results you don't
488144d7874bSmrg# want to keep, you may remove or edit it.
488244d7874bSmrg#
488344d7874bSmrg# config.status only pays attention to the cache file if you give it
488444d7874bSmrg# the --recheck option to rerun configure.
488544d7874bSmrg#
488644d7874bSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
488744d7874bSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
488844d7874bSmrg# following values.
488944d7874bSmrg
489044d7874bSmrg_ACEOF
489144d7874bSmrg
489244d7874bSmrg# The following way of writing the cache mishandles newlines in values,
489344d7874bSmrg# but we know of no workaround that is simple, portable, and efficient.
48942d861bc5Smrg# So, we kill variables containing newlines.
489544d7874bSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
489644d7874bSmrg# and sets the high bit in the cache file unless we assign to the vars.
48972d861bc5Smrg(
48982d861bc5Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48992d861bc5Smrg    eval ac_val=\$$ac_var
49002d861bc5Smrg    case $ac_val in #(
49012d861bc5Smrg    *${as_nl}*)
49022d861bc5Smrg      case $ac_var in #(
49032d861bc5Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
49042d861bc5Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
49052d861bc5Smrg      esac
49062d861bc5Smrg      case $ac_var in #(
49072d861bc5Smrg      _ | IFS | as_nl) ;; #(
49082d861bc5Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
49092d861bc5Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
49102d861bc5Smrg      esac ;;
49112d861bc5Smrg    esac
49122d861bc5Smrg  done
49132d861bc5Smrg
491444d7874bSmrg  (set) 2>&1 |
49152d861bc5Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
49162d861bc5Smrg    *${as_nl}ac_space=\ *)
49172d861bc5Smrg      # `set' does not quote correctly, so add quotes: double-quote
49182d861bc5Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
491944d7874bSmrg      sed -n \
492044d7874bSmrg	"s/'/'\\\\''/g;
492144d7874bSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49222d861bc5Smrg      ;; #(
492344d7874bSmrg    *)
492444d7874bSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
49252d861bc5Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
492644d7874bSmrg      ;;
49272d861bc5Smrg    esac |
49282d861bc5Smrg    sort
49292d861bc5Smrg) |
493044d7874bSmrg  sed '
49312d861bc5Smrg     /^ac_cv_env_/b end
493244d7874bSmrg     t clear
49332d861bc5Smrg     :clear
493444d7874bSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
493544d7874bSmrg     t end
49362d861bc5Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49372d861bc5Smrg     :end' >>confcache
49382d861bc5Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49392d861bc5Smrg  if test -w "$cache_file"; then
49402d861bc5Smrg    if test "x$cache_file" != "x/dev/null"; then
49412d861bc5Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
49422d861bc5Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
49432d861bc5Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
49442d861bc5Smrg	cat confcache >"$cache_file"
49452d861bc5Smrg      else
49462d861bc5Smrg        case $cache_file in #(
49472d861bc5Smrg        */* | ?:*)
49482d861bc5Smrg	  mv -f confcache "$cache_file"$$ &&
49492d861bc5Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
49502d861bc5Smrg        *)
49512d861bc5Smrg	  mv -f confcache "$cache_file" ;;
49522d861bc5Smrg	esac
49532d861bc5Smrg      fi
49542d861bc5Smrg    fi
495544d7874bSmrg  else
49562d861bc5Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
49572d861bc5Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
495844d7874bSmrg  fi
495944d7874bSmrgfi
496044d7874bSmrgrm -f confcache
496144d7874bSmrg
496244d7874bSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
496344d7874bSmrg# Let make expand exec_prefix.
496444d7874bSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
496544d7874bSmrg
496644d7874bSmrgDEFS=-DHAVE_CONFIG_H
496744d7874bSmrg
496844d7874bSmrgac_libobjs=
496944d7874bSmrgac_ltlibobjs=
49702d861bc5SmrgU=
497144d7874bSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
497244d7874bSmrg  # 1. Remove the extension, and $U if already installed.
49732d861bc5Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49742d861bc5Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
49752d861bc5Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
49762d861bc5Smrg  #    will be set to the directory where LIBOBJS objects are built.
49772d861bc5Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49782d861bc5Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
497944d7874bSmrgdone
498044d7874bSmrgLIBOBJS=$ac_libobjs
498144d7874bSmrg
498244d7874bSmrgLTLIBOBJS=$ac_ltlibobjs
498344d7874bSmrg
498444d7874bSmrg
49852d861bc5Smrg if test -n "$EXEEXT"; then
49862d861bc5Smrg  am__EXEEXT_TRUE=
49872d861bc5Smrg  am__EXEEXT_FALSE='#'
49882d861bc5Smrgelse
49892d861bc5Smrg  am__EXEEXT_TRUE='#'
49902d861bc5Smrg  am__EXEEXT_FALSE=
49912d861bc5Smrgfi
49922d861bc5Smrg
499344d7874bSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
49942d861bc5Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
49952d861bc5SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
499644d7874bSmrgfi
499744d7874bSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49982d861bc5Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
49992d861bc5SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
500044d7874bSmrgfi
500144d7874bSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50022d861bc5Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
50032d861bc5SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
500444d7874bSmrgfi
500544d7874bSmrg
50062d861bc5Smrg: "${CONFIG_STATUS=./config.status}"
50072d861bc5Smrgac_write_fail=0
500844d7874bSmrgac_clean_files_save=$ac_clean_files
500944d7874bSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
50102d861bc5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
50112d861bc5Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50122d861bc5Smrgas_write_fail=0
50132d861bc5Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
501444d7874bSmrg#! $SHELL
501544d7874bSmrg# Generated by $as_me.
501644d7874bSmrg# Run this file to recreate the current configuration.
501744d7874bSmrg# Compiler output produced by configure, useful for debugging
501844d7874bSmrg# configure, is in config.log if it exists.
501944d7874bSmrg
502044d7874bSmrgdebug=false
502144d7874bSmrgac_cs_recheck=false
502244d7874bSmrgac_cs_silent=false
502344d7874bSmrg
50242d861bc5SmrgSHELL=\${CONFIG_SHELL-$SHELL}
50252d861bc5Smrgexport SHELL
50262d861bc5Smrg_ASEOF
50272d861bc5Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
50282d861bc5Smrg## -------------------- ##
50292d861bc5Smrg## M4sh Initialization. ##
50302d861bc5Smrg## -------------------- ##
50312d861bc5Smrg
50322d861bc5Smrg# Be more Bourne compatible
50332d861bc5SmrgDUALCASE=1; export DUALCASE # for MKS sh
50342d861bc5Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
503544d7874bSmrg  emulate sh
503644d7874bSmrg  NULLCMD=:
50372d861bc5Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
503844d7874bSmrg  # is contrary to our usage.  Disable this feature.
503944d7874bSmrg  alias -g '${1+"$@"}'='"$@"'
50402d861bc5Smrg  setopt NO_GLOB_SUBST
50412d861bc5Smrgelse
50422d861bc5Smrg  case `(set -o) 2>/dev/null` in #(
50432d861bc5Smrg  *posix*) :
50442d861bc5Smrg    set -o posix ;; #(
50452d861bc5Smrg  *) :
50462d861bc5Smrg     ;;
50472d861bc5Smrgesac
504844d7874bSmrgfi
504944d7874bSmrg
50502d861bc5Smrg
50512d861bc5Smrgas_nl='
50522d861bc5Smrg'
50532d861bc5Smrgexport as_nl
50542d861bc5Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
50552d861bc5Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50562d861bc5Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50572d861bc5Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50582d861bc5Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
50592d861bc5Smrg# but without wasting forks for bash or zsh.
50602d861bc5Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
50612d861bc5Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50622d861bc5Smrg  as_echo='print -r --'
50632d861bc5Smrg  as_echo_n='print -rn --'
50642d861bc5Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50652d861bc5Smrg  as_echo='printf %s\n'
50662d861bc5Smrg  as_echo_n='printf %s'
506744d7874bSmrgelse
50682d861bc5Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50692d861bc5Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50702d861bc5Smrg    as_echo_n='/usr/ucb/echo -n'
50712d861bc5Smrg  else
50722d861bc5Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50732d861bc5Smrg    as_echo_n_body='eval
50742d861bc5Smrg      arg=$1;
50752d861bc5Smrg      case $arg in #(
50762d861bc5Smrg      *"$as_nl"*)
50772d861bc5Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
50782d861bc5Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50792d861bc5Smrg      esac;
50802d861bc5Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50812d861bc5Smrg    '
50822d861bc5Smrg    export as_echo_n_body
50832d861bc5Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
50842d861bc5Smrg  fi
50852d861bc5Smrg  export as_echo_body
50862d861bc5Smrg  as_echo='sh -c $as_echo_body as_echo'
508744d7874bSmrgfi
508844d7874bSmrg
50892d861bc5Smrg# The user is always right.
50902d861bc5Smrgif test "${PATH_SEPARATOR+set}" != set; then
50912d861bc5Smrg  PATH_SEPARATOR=:
50922d861bc5Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
50932d861bc5Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
50942d861bc5Smrg      PATH_SEPARATOR=';'
50952d861bc5Smrg  }
50962d861bc5Smrgfi
50972d861bc5Smrg
50982d861bc5Smrg
50992d861bc5Smrg# IFS
51002d861bc5Smrg# We need space, tab and new line, in precisely that order.  Quoting is
51012d861bc5Smrg# there to prevent editors from complaining about space-tab.
51022d861bc5Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
51032d861bc5Smrg# splitting by setting IFS to empty value.)
51042d861bc5SmrgIFS=" ""	$as_nl"
51052d861bc5Smrg
51062d861bc5Smrg# Find who we are.  Look in the path if we contain no directory separator.
51072d861bc5Smrgas_myself=
51082d861bc5Smrgcase $0 in #((
51092d861bc5Smrg  *[\\/]* ) as_myself=$0 ;;
51102d861bc5Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51112d861bc5Smrgfor as_dir in $PATH
51122d861bc5Smrgdo
51132d861bc5Smrg  IFS=$as_save_IFS
51142d861bc5Smrg  test -z "$as_dir" && as_dir=.
51152d861bc5Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51162d861bc5Smrg  done
51172d861bc5SmrgIFS=$as_save_IFS
511844d7874bSmrg
51192d861bc5Smrg     ;;
51202d861bc5Smrgesac
51212d861bc5Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
51222d861bc5Smrg# in which case we are not to be found in the path.
51232d861bc5Smrgif test "x$as_myself" = x; then
51242d861bc5Smrg  as_myself=$0
51252d861bc5Smrgfi
51262d861bc5Smrgif test ! -f "$as_myself"; then
51272d861bc5Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51282d861bc5Smrg  exit 1
51292d861bc5Smrgfi
51302d861bc5Smrg
51312d861bc5Smrg# Unset variables that we do not need and which cause bugs (e.g. in
51322d861bc5Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
51332d861bc5Smrg# suppresses any "Segmentation fault" message there.  '((' could
51342d861bc5Smrg# trigger a bug in pdksh 5.2.14.
51352d861bc5Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
51362d861bc5Smrgdo eval test x\${$as_var+set} = xset \
51372d861bc5Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
51382d861bc5Smrgdone
513944d7874bSmrgPS1='$ '
514044d7874bSmrgPS2='> '
514144d7874bSmrgPS4='+ '
514244d7874bSmrg
514344d7874bSmrg# NLS nuisances.
51442d861bc5SmrgLC_ALL=C
51452d861bc5Smrgexport LC_ALL
51462d861bc5SmrgLANGUAGE=C
51472d861bc5Smrgexport LANGUAGE
51482d861bc5Smrg
51492d861bc5Smrg# CDPATH.
51502d861bc5Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51512d861bc5Smrg
51522d861bc5Smrg
51532d861bc5Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
51542d861bc5Smrg# ----------------------------------------
51552d861bc5Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
51562d861bc5Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
51572d861bc5Smrg# script with STATUS, using 1 if that was 0.
51582d861bc5Smrgas_fn_error ()
51592d861bc5Smrg{
51602d861bc5Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
51612d861bc5Smrg  if test "$4"; then
51622d861bc5Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
51632d861bc5Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
516444d7874bSmrg  fi
51652d861bc5Smrg  $as_echo "$as_me: error: $2" >&2
51662d861bc5Smrg  as_fn_exit $as_status
51672d861bc5Smrg} # as_fn_error
51682d861bc5Smrg
51692d861bc5Smrg
51702d861bc5Smrg# as_fn_set_status STATUS
51712d861bc5Smrg# -----------------------
51722d861bc5Smrg# Set $? to STATUS, without forking.
51732d861bc5Smrgas_fn_set_status ()
51742d861bc5Smrg{
51752d861bc5Smrg  return $1
51762d861bc5Smrg} # as_fn_set_status
51772d861bc5Smrg
51782d861bc5Smrg# as_fn_exit STATUS
51792d861bc5Smrg# -----------------
51802d861bc5Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
51812d861bc5Smrgas_fn_exit ()
51822d861bc5Smrg{
51832d861bc5Smrg  set +e
51842d861bc5Smrg  as_fn_set_status $1
51852d861bc5Smrg  exit $1
51862d861bc5Smrg} # as_fn_exit
51872d861bc5Smrg
51882d861bc5Smrg# as_fn_unset VAR
51892d861bc5Smrg# ---------------
51902d861bc5Smrg# Portably unset VAR.
51912d861bc5Smrgas_fn_unset ()
51922d861bc5Smrg{
51932d861bc5Smrg  { eval $1=; unset $1;}
51942d861bc5Smrg}
51952d861bc5Smrgas_unset=as_fn_unset
51962d861bc5Smrg# as_fn_append VAR VALUE
51972d861bc5Smrg# ----------------------
51982d861bc5Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
51992d861bc5Smrg# advantage of any shell optimizations that allow amortized linear growth over
52002d861bc5Smrg# repeated appends, instead of the typical quadratic growth present in naive
52012d861bc5Smrg# implementations.
52022d861bc5Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
52032d861bc5Smrg  eval 'as_fn_append ()
52042d861bc5Smrg  {
52052d861bc5Smrg    eval $1+=\$2
52062d861bc5Smrg  }'
52072d861bc5Smrgelse
52082d861bc5Smrg  as_fn_append ()
52092d861bc5Smrg  {
52102d861bc5Smrg    eval $1=\$$1\$2
52112d861bc5Smrg  }
52122d861bc5Smrgfi # as_fn_append
52132d861bc5Smrg
52142d861bc5Smrg# as_fn_arith ARG...
52152d861bc5Smrg# ------------------
52162d861bc5Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
52172d861bc5Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
52182d861bc5Smrg# must be portable across $(()) and expr.
52192d861bc5Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
52202d861bc5Smrg  eval 'as_fn_arith ()
52212d861bc5Smrg  {
52222d861bc5Smrg    as_val=$(( $* ))
52232d861bc5Smrg  }'
52242d861bc5Smrgelse
52252d861bc5Smrg  as_fn_arith ()
52262d861bc5Smrg  {
52272d861bc5Smrg    as_val=`expr "$@" || test $? -eq 1`
52282d861bc5Smrg  }
52292d861bc5Smrgfi # as_fn_arith
523044d7874bSmrg
52312d861bc5Smrg
52322d861bc5Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
52332d861bc5Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
523444d7874bSmrg  as_expr=expr
523544d7874bSmrgelse
523644d7874bSmrg  as_expr=false
523744d7874bSmrgfi
523844d7874bSmrg
52392d861bc5Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
524044d7874bSmrg  as_basename=basename
524144d7874bSmrgelse
524244d7874bSmrg  as_basename=false
524344d7874bSmrgfi
524444d7874bSmrg
52452d861bc5Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52462d861bc5Smrg  as_dirname=dirname
52472d861bc5Smrgelse
52482d861bc5Smrg  as_dirname=false
52492d861bc5Smrgfi
525044d7874bSmrg
52512d861bc5Smrgas_me=`$as_basename -- "$0" ||
525244d7874bSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
525344d7874bSmrg	 X"$0" : 'X\(//\)$' \| \
52542d861bc5Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
52552d861bc5Smrg$as_echo X/"$0" |
52562d861bc5Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
52572d861bc5Smrg	    s//\1/
52582d861bc5Smrg	    q
52592d861bc5Smrg	  }
52602d861bc5Smrg	  /^X\/\(\/\/\)$/{
52612d861bc5Smrg	    s//\1/
52622d861bc5Smrg	    q
52632d861bc5Smrg	  }
52642d861bc5Smrg	  /^X\/\(\/\).*/{
52652d861bc5Smrg	    s//\1/
52662d861bc5Smrg	    q
52672d861bc5Smrg	  }
52682d861bc5Smrg	  s/.*/./; q'`
526944d7874bSmrg
527044d7874bSmrg# Avoid depending upon Character Ranges.
527144d7874bSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
527244d7874bSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
527344d7874bSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
527444d7874bSmrgas_cr_digits='0123456789'
527544d7874bSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
527644d7874bSmrg
52772d861bc5SmrgECHO_C= ECHO_N= ECHO_T=
52782d861bc5Smrgcase `echo -n x` in #(((((
52792d861bc5Smrg-n*)
52802d861bc5Smrg  case `echo 'xy\c'` in
52812d861bc5Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
52822d861bc5Smrg  xy)  ECHO_C='\c';;
52832d861bc5Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
52842d861bc5Smrg       ECHO_T='	';;
52852d861bc5Smrg  esac;;
52862d861bc5Smrg*)
52872d861bc5Smrg  ECHO_N='-n';;
528844d7874bSmrgesac
528944d7874bSmrg
52902d861bc5Smrgrm -f conf$$ conf$$.exe conf$$.file
52912d861bc5Smrgif test -d conf$$.dir; then
52922d861bc5Smrg  rm -f conf$$.dir/conf$$.file
529344d7874bSmrgelse
52942d861bc5Smrg  rm -f conf$$.dir
52952d861bc5Smrg  mkdir conf$$.dir 2>/dev/null
529644d7874bSmrgfi
52972d861bc5Smrgif (echo >conf$$.file) 2>/dev/null; then
52982d861bc5Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
529944d7874bSmrg    as_ln_s='ln -s'
53002d861bc5Smrg    # ... but there are two gotchas:
53012d861bc5Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53022d861bc5Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53032d861bc5Smrg    # In both cases, we have to default to `cp -p'.
53042d861bc5Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53052d861bc5Smrg      as_ln_s='cp -p'
53062d861bc5Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
53072d861bc5Smrg    as_ln_s=ln
53082d861bc5Smrg  else
53092d861bc5Smrg    as_ln_s='cp -p'
531044d7874bSmrg  fi
531144d7874bSmrgelse
531244d7874bSmrg  as_ln_s='cp -p'
531344d7874bSmrgfi
53142d861bc5Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53152d861bc5Smrgrmdir conf$$.dir 2>/dev/null
53162d861bc5Smrg
53172d861bc5Smrg
53182d861bc5Smrg# as_fn_mkdir_p
53192d861bc5Smrg# -------------
53202d861bc5Smrg# Create "$as_dir" as a directory, including parents if necessary.
53212d861bc5Smrgas_fn_mkdir_p ()
53222d861bc5Smrg{
53232d861bc5Smrg
53242d861bc5Smrg  case $as_dir in #(
53252d861bc5Smrg  -*) as_dir=./$as_dir;;
53262d861bc5Smrg  esac
53272d861bc5Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
53282d861bc5Smrg    as_dirs=
53292d861bc5Smrg    while :; do
53302d861bc5Smrg      case $as_dir in #(
53312d861bc5Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
53322d861bc5Smrg      *) as_qdir=$as_dir;;
53332d861bc5Smrg      esac
53342d861bc5Smrg      as_dirs="'$as_qdir' $as_dirs"
53352d861bc5Smrg      as_dir=`$as_dirname -- "$as_dir" ||
53362d861bc5Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53372d861bc5Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
53382d861bc5Smrg	 X"$as_dir" : 'X\(//\)$' \| \
53392d861bc5Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53402d861bc5Smrg$as_echo X"$as_dir" |
53412d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53422d861bc5Smrg	    s//\1/
53432d861bc5Smrg	    q
53442d861bc5Smrg	  }
53452d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
53462d861bc5Smrg	    s//\1/
53472d861bc5Smrg	    q
53482d861bc5Smrg	  }
53492d861bc5Smrg	  /^X\(\/\/\)$/{
53502d861bc5Smrg	    s//\1/
53512d861bc5Smrg	    q
53522d861bc5Smrg	  }
53532d861bc5Smrg	  /^X\(\/\).*/{
53542d861bc5Smrg	    s//\1/
53552d861bc5Smrg	    q
53562d861bc5Smrg	  }
53572d861bc5Smrg	  s/.*/./; q'`
53582d861bc5Smrg      test -d "$as_dir" && break
53592d861bc5Smrg    done
53602d861bc5Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
53612d861bc5Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
536244d7874bSmrg
53632d861bc5Smrg
53642d861bc5Smrg} # as_fn_mkdir_p
536544d7874bSmrgif mkdir -p . 2>/dev/null; then
53662d861bc5Smrg  as_mkdir_p='mkdir -p "$as_dir"'
536744d7874bSmrgelse
536844d7874bSmrg  test -d ./-p && rmdir ./-p
536944d7874bSmrg  as_mkdir_p=false
537044d7874bSmrgfi
537144d7874bSmrg
53722d861bc5Smrgif test -x / >/dev/null 2>&1; then
53732d861bc5Smrg  as_test_x='test -x'
53742d861bc5Smrgelse
53752d861bc5Smrg  if ls -dL / >/dev/null 2>&1; then
53762d861bc5Smrg    as_ls_L_option=L
53772d861bc5Smrg  else
53782d861bc5Smrg    as_ls_L_option=
53792d861bc5Smrg  fi
53802d861bc5Smrg  as_test_x='
53812d861bc5Smrg    eval sh -c '\''
53822d861bc5Smrg      if test -d "$1"; then
53832d861bc5Smrg	test -d "$1/.";
53842d861bc5Smrg      else
53852d861bc5Smrg	case $1 in #(
53862d861bc5Smrg	-*)set "./$1";;
53872d861bc5Smrg	esac;
53882d861bc5Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
53892d861bc5Smrg	???[sx]*):;;*)false;;esac;fi
53902d861bc5Smrg    '\'' sh
53912d861bc5Smrg  '
53922d861bc5Smrgfi
53932d861bc5Smrgas_executable_p=$as_test_x
539444d7874bSmrg
539544d7874bSmrg# Sed expression to map a string onto a valid CPP name.
539644d7874bSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539744d7874bSmrg
539844d7874bSmrg# Sed expression to map a string onto a valid variable name.
539944d7874bSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540044d7874bSmrg
540144d7874bSmrg
540244d7874bSmrgexec 6>&1
54032d861bc5Smrg## ----------------------------------- ##
54042d861bc5Smrg## Main body of $CONFIG_STATUS script. ##
54052d861bc5Smrg## ----------------------------------- ##
54062d861bc5Smrg_ASEOF
54072d861bc5Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
54082d861bc5Smrg
54092d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54102d861bc5Smrg# Save the log message, to keep $0 and so on meaningful, and to
541144d7874bSmrg# report actual input values of CONFIG_FILES etc. instead of their
54122d861bc5Smrg# values after options handling.
54132d861bc5Smrgac_log="
54142d861bc5SmrgThis file was extended by beforelight $as_me 1.0.4, which was
54152d861bc5Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
541644d7874bSmrg
541744d7874bSmrg  CONFIG_FILES    = $CONFIG_FILES
541844d7874bSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
541944d7874bSmrg  CONFIG_LINKS    = $CONFIG_LINKS
542044d7874bSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
542144d7874bSmrg  $ $0 $@
542244d7874bSmrg
54232d861bc5Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
54242d861bc5Smrg"
54252d861bc5Smrg
542644d7874bSmrg_ACEOF
542744d7874bSmrg
54282d861bc5Smrgcase $ac_config_files in *"
54292d861bc5Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
54302d861bc5Smrgesac
543144d7874bSmrg
54322d861bc5Smrgcase $ac_config_headers in *"
54332d861bc5Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
54342d861bc5Smrgesac
543544d7874bSmrg
543644d7874bSmrg
54372d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54382d861bc5Smrg# Files that config.status was made for.
54392d861bc5Smrgconfig_files="$ac_config_files"
54402d861bc5Smrgconfig_headers="$ac_config_headers"
54412d861bc5Smrgconfig_commands="$ac_config_commands"
544244d7874bSmrg
54432d861bc5Smrg_ACEOF
544444d7874bSmrg
54452d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
544644d7874bSmrgac_cs_usage="\
54472d861bc5Smrg\`$as_me' instantiates files and other configuration actions
54482d861bc5Smrgfrom templates according to the current configuration.  Unless the files
54492d861bc5Smrgand actions are specified as TAGs, all are instantiated by default.
545044d7874bSmrg
54512d861bc5SmrgUsage: $0 [OPTION]... [TAG]...
545244d7874bSmrg
545344d7874bSmrg  -h, --help       print this help, then exit
54542d861bc5Smrg  -V, --version    print version number and configuration settings, then exit
54552d861bc5Smrg      --config     print configuration, then exit
54562d861bc5Smrg  -q, --quiet, --silent
54572d861bc5Smrg                   do not print progress messages
545844d7874bSmrg  -d, --debug      don't remove temporary files
545944d7874bSmrg      --recheck    update $as_me by reconfiguring in the same conditions
54602d861bc5Smrg      --file=FILE[:TEMPLATE]
54612d861bc5Smrg                   instantiate the configuration file FILE
54622d861bc5Smrg      --header=FILE[:TEMPLATE]
54632d861bc5Smrg                   instantiate the configuration header FILE
546444d7874bSmrg
546544d7874bSmrgConfiguration files:
546644d7874bSmrg$config_files
546744d7874bSmrg
546844d7874bSmrgConfiguration headers:
546944d7874bSmrg$config_headers
547044d7874bSmrg
547144d7874bSmrgConfiguration commands:
547244d7874bSmrg$config_commands
547344d7874bSmrg
54742d861bc5SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
547544d7874bSmrg
54762d861bc5Smrg_ACEOF
54772d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54782d861bc5Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
547944d7874bSmrgac_cs_version="\\
54802d861bc5Smrgbeforelight config.status 1.0.4
54812d861bc5Smrgconfigured by $0, generated by GNU Autoconf 2.68,
54822d861bc5Smrg  with options \\"\$ac_cs_config\\"
548344d7874bSmrg
54842d861bc5SmrgCopyright (C) 2010 Free Software Foundation, Inc.
548544d7874bSmrgThis config.status script is free software; the Free Software Foundation
548644d7874bSmrggives unlimited permission to copy, distribute and modify it."
54872d861bc5Smrg
54882d861bc5Smrgac_pwd='$ac_pwd'
54892d861bc5Smrgsrcdir='$srcdir'
54902d861bc5SmrgINSTALL='$INSTALL'
54912d861bc5SmrgMKDIR_P='$MKDIR_P'
54922d861bc5SmrgAWK='$AWK'
54932d861bc5Smrgtest -n "\$AWK" || AWK=awk
549444d7874bSmrg_ACEOF
549544d7874bSmrg
54962d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54972d861bc5Smrg# The default lists apply if the user does not specify any file.
549844d7874bSmrgac_need_defaults=:
549944d7874bSmrgwhile test $# != 0
550044d7874bSmrgdo
550144d7874bSmrg  case $1 in
55022d861bc5Smrg  --*=?*)
55032d861bc5Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
55042d861bc5Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
550544d7874bSmrg    ac_shift=:
550644d7874bSmrg    ;;
55072d861bc5Smrg  --*=)
55082d861bc5Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
55092d861bc5Smrg    ac_optarg=
55102d861bc5Smrg    ac_shift=:
55112d861bc5Smrg    ;;
55122d861bc5Smrg  *)
551344d7874bSmrg    ac_option=$1
551444d7874bSmrg    ac_optarg=$2
551544d7874bSmrg    ac_shift=shift
551644d7874bSmrg    ;;
551744d7874bSmrg  esac
551844d7874bSmrg
551944d7874bSmrg  case $ac_option in
552044d7874bSmrg  # Handling of the options.
552144d7874bSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
552244d7874bSmrg    ac_cs_recheck=: ;;
55232d861bc5Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
55242d861bc5Smrg    $as_echo "$ac_cs_version"; exit ;;
55252d861bc5Smrg  --config | --confi | --conf | --con | --co | --c )
55262d861bc5Smrg    $as_echo "$ac_cs_config"; exit ;;
55272d861bc5Smrg  --debug | --debu | --deb | --de | --d | -d )
552844d7874bSmrg    debug=: ;;
552944d7874bSmrg  --file | --fil | --fi | --f )
553044d7874bSmrg    $ac_shift
55312d861bc5Smrg    case $ac_optarg in
55322d861bc5Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55332d861bc5Smrg    '') as_fn_error $? "missing file argument" ;;
55342d861bc5Smrg    esac
55352d861bc5Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
553644d7874bSmrg    ac_need_defaults=false;;
553744d7874bSmrg  --header | --heade | --head | --hea )
553844d7874bSmrg    $ac_shift
55392d861bc5Smrg    case $ac_optarg in
55402d861bc5Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55412d861bc5Smrg    esac
55422d861bc5Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
554344d7874bSmrg    ac_need_defaults=false;;
55442d861bc5Smrg  --he | --h)
55452d861bc5Smrg    # Conflict between --help and --header
55462d861bc5Smrg    as_fn_error $? "ambiguous option: \`$1'
55472d861bc5SmrgTry \`$0 --help' for more information.";;
55482d861bc5Smrg  --help | --hel | -h )
55492d861bc5Smrg    $as_echo "$ac_cs_usage"; exit ;;
555044d7874bSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
555144d7874bSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
555244d7874bSmrg    ac_cs_silent=: ;;
555344d7874bSmrg
555444d7874bSmrg  # This is an error.
55552d861bc5Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
55562d861bc5SmrgTry \`$0 --help' for more information." ;;
555744d7874bSmrg
55582d861bc5Smrg  *) as_fn_append ac_config_targets " $1"
55592d861bc5Smrg     ac_need_defaults=false ;;
556044d7874bSmrg
556144d7874bSmrg  esac
556244d7874bSmrg  shift
556344d7874bSmrgdone
556444d7874bSmrg
556544d7874bSmrgac_configure_extra_args=
556644d7874bSmrg
556744d7874bSmrgif $ac_cs_silent; then
556844d7874bSmrg  exec 6>/dev/null
556944d7874bSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
557044d7874bSmrgfi
557144d7874bSmrg
557244d7874bSmrg_ACEOF
55732d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
557444d7874bSmrgif \$ac_cs_recheck; then
55752d861bc5Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
55762d861bc5Smrg  shift
55772d861bc5Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
55782d861bc5Smrg  CONFIG_SHELL='$SHELL'
55792d861bc5Smrg  export CONFIG_SHELL
55802d861bc5Smrg  exec "\$@"
558144d7874bSmrgfi
558244d7874bSmrg
558344d7874bSmrg_ACEOF
55842d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55852d861bc5Smrgexec 5>>config.log
55862d861bc5Smrg{
55872d861bc5Smrg  echo
55882d861bc5Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55892d861bc5Smrg## Running $as_me. ##
55902d861bc5Smrg_ASBOX
55912d861bc5Smrg  $as_echo "$ac_log"
55922d861bc5Smrg} >&5
559344d7874bSmrg
55942d861bc5Smrg_ACEOF
55952d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
559644d7874bSmrg#
55972d861bc5Smrg# INIT-COMMANDS
559844d7874bSmrg#
559944d7874bSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
560044d7874bSmrg
560144d7874bSmrg_ACEOF
560244d7874bSmrg
56032d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
560444d7874bSmrg
56052d861bc5Smrg# Handling of arguments.
560644d7874bSmrgfor ac_config_target in $ac_config_targets
560744d7874bSmrgdo
56082d861bc5Smrg  case $ac_config_target in
56092d861bc5Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
56102d861bc5Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
56112d861bc5Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56122d861bc5Smrg
56132d861bc5Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
561444d7874bSmrg  esac
561544d7874bSmrgdone
561644d7874bSmrg
56172d861bc5Smrg
561844d7874bSmrg# If the user did not use the arguments to specify the items to instantiate,
561944d7874bSmrg# then the envvar interface is used.  Set only those that are not.
562044d7874bSmrg# We use the long form for the default assignment because of an extremely
562144d7874bSmrg# bizarre bug on SunOS 4.1.3.
562244d7874bSmrgif $ac_need_defaults; then
562344d7874bSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
562444d7874bSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
562544d7874bSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
562644d7874bSmrgfi
562744d7874bSmrg
562844d7874bSmrg# Have a temporary directory for convenience.  Make it in the build tree
56292d861bc5Smrg# simply because there is no reason against having it here, and in addition,
563044d7874bSmrg# creating and moving files from /tmp can sometimes cause problems.
56312d861bc5Smrg# Hook for its removal unless debugging.
56322d861bc5Smrg# Note that there is a small window in which the directory will not be cleaned:
56332d861bc5Smrg# after its creation but before its name has been assigned to `$tmp'.
563444d7874bSmrg$debug ||
563544d7874bSmrg{
56362d861bc5Smrg  tmp= ac_tmp=
56372d861bc5Smrg  trap 'exit_status=$?
56382d861bc5Smrg  : "${ac_tmp:=$tmp}"
56392d861bc5Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
56402d861bc5Smrg' 0
56412d861bc5Smrg  trap 'as_fn_exit 1' 1 2 13 15
564244d7874bSmrg}
564344d7874bSmrg# Create a (secure) tmp directory for tmp files.
564444d7874bSmrg
564544d7874bSmrg{
56462d861bc5Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56472d861bc5Smrg  test -d "$tmp"
564844d7874bSmrg}  ||
564944d7874bSmrg{
56502d861bc5Smrg  tmp=./conf$$-$RANDOM
56512d861bc5Smrg  (umask 077 && mkdir "$tmp")
56522d861bc5Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
56532d861bc5Smrgac_tmp=$tmp
56542d861bc5Smrg
56552d861bc5Smrg# Set up the scripts for CONFIG_FILES section.
56562d861bc5Smrg# No need to generate them if there are no CONFIG_FILES.
56572d861bc5Smrg# This happens for instance with `./config.status config.h'.
56582d861bc5Smrgif test -n "$CONFIG_FILES"; then
56592d861bc5Smrg
56602d861bc5Smrg
56612d861bc5Smrgac_cr=`echo X | tr X '\015'`
56622d861bc5Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
56632d861bc5Smrg# But we know of no other shell where ac_cr would be empty at this
56642d861bc5Smrg# point, so we can use a bashism as a fallback.
56652d861bc5Smrgif test "x$ac_cr" = x; then
56662d861bc5Smrg  eval ac_cr=\$\'\\r\'
56672d861bc5Smrgfi
56682d861bc5Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
56692d861bc5Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
56702d861bc5Smrg  ac_cs_awk_cr='\\r'
56712d861bc5Smrgelse
56722d861bc5Smrg  ac_cs_awk_cr=$ac_cr
56732d861bc5Smrgfi
56742d861bc5Smrg
56752d861bc5Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
56762d861bc5Smrg_ACEOF
56772d861bc5Smrg
56782d861bc5Smrg
56792d861bc5Smrg{
56802d861bc5Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
56812d861bc5Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
56822d861bc5Smrg  echo "_ACEOF"
56832d861bc5Smrg} >conf$$subs.sh ||
56842d861bc5Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
56852d861bc5Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
56862d861bc5Smrgac_delim='%!_!# '
56872d861bc5Smrgfor ac_last_try in false false false false false :; do
56882d861bc5Smrg  . ./conf$$subs.sh ||
56892d861bc5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
56902d861bc5Smrg
56912d861bc5Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
56922d861bc5Smrg  if test $ac_delim_n = $ac_delim_num; then
56932d861bc5Smrg    break
56942d861bc5Smrg  elif $ac_last_try; then
56952d861bc5Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
56962d861bc5Smrg  else
56972d861bc5Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56982d861bc5Smrg  fi
56992d861bc5Smrgdone
57002d861bc5Smrgrm -f conf$$subs.sh
57012d861bc5Smrg
57022d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57032d861bc5Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
57042d861bc5Smrg_ACEOF
57052d861bc5Smrgsed -n '
57062d861bc5Smrgh
57072d861bc5Smrgs/^/S["/; s/!.*/"]=/
57082d861bc5Smrgp
57092d861bc5Smrgg
57102d861bc5Smrgs/^[^!]*!//
57112d861bc5Smrg:repl
57122d861bc5Smrgt repl
57132d861bc5Smrgs/'"$ac_delim"'$//
57142d861bc5Smrgt delim
57152d861bc5Smrg:nl
57162d861bc5Smrgh
57172d861bc5Smrgs/\(.\{148\}\)..*/\1/
57182d861bc5Smrgt more1
57192d861bc5Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
57202d861bc5Smrgp
57212d861bc5Smrgn
57222d861bc5Smrgb repl
57232d861bc5Smrg:more1
57242d861bc5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
57252d861bc5Smrgp
57262d861bc5Smrgg
57272d861bc5Smrgs/.\{148\}//
57282d861bc5Smrgt nl
57292d861bc5Smrg:delim
57302d861bc5Smrgh
57312d861bc5Smrgs/\(.\{148\}\)..*/\1/
57322d861bc5Smrgt more2
57332d861bc5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
57342d861bc5Smrgp
57352d861bc5Smrgb
57362d861bc5Smrg:more2
57372d861bc5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
57382d861bc5Smrgp
57392d861bc5Smrgg
57402d861bc5Smrgs/.\{148\}//
57412d861bc5Smrgt delim
57422d861bc5Smrg' <conf$$subs.awk | sed '
57432d861bc5Smrg/^[^""]/{
57442d861bc5Smrg  N
57452d861bc5Smrg  s/\n//
57462d861bc5Smrg}
57472d861bc5Smrg' >>$CONFIG_STATUS || ac_write_fail=1
57482d861bc5Smrgrm -f conf$$subs.awk
57492d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57502d861bc5Smrg_ACAWK
57512d861bc5Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
57522d861bc5Smrg  for (key in S) S_is_set[key] = 1
57532d861bc5Smrg  FS = ""
57542d861bc5Smrg
57552d861bc5Smrg}
575644d7874bSmrg{
57572d861bc5Smrg  line = $ 0
57582d861bc5Smrg  nfields = split(line, field, "@")
57592d861bc5Smrg  substed = 0
57602d861bc5Smrg  len = length(field[1])
57612d861bc5Smrg  for (i = 2; i < nfields; i++) {
57622d861bc5Smrg    key = field[i]
57632d861bc5Smrg    keylen = length(key)
57642d861bc5Smrg    if (S_is_set[key]) {
57652d861bc5Smrg      value = S[key]
57662d861bc5Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57672d861bc5Smrg      len += length(value) + length(field[++i])
57682d861bc5Smrg      substed = 1
57692d861bc5Smrg    } else
57702d861bc5Smrg      len += 1 + keylen
57712d861bc5Smrg  }
57722d861bc5Smrg
57732d861bc5Smrg  print line
577444d7874bSmrg}
577544d7874bSmrg
57762d861bc5Smrg_ACAWK
57772d861bc5Smrg_ACEOF
57782d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57792d861bc5Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57802d861bc5Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57812d861bc5Smrgelse
57822d861bc5Smrg  cat
57832d861bc5Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
57842d861bc5Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
578544d7874bSmrg_ACEOF
578644d7874bSmrg
57872d861bc5Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
57882d861bc5Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
57892d861bc5Smrg# trailing colons and then remove the whole line if VPATH becomes empty
57902d861bc5Smrg# (actually we leave an empty line to preserve line numbers).
57912d861bc5Smrgif test "x$srcdir" = x.; then
57922d861bc5Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
57932d861bc5Smrgh
57942d861bc5Smrgs///
57952d861bc5Smrgs/^/:/
57962d861bc5Smrgs/[	 ]*$/:/
57972d861bc5Smrgs/:\$(srcdir):/:/g
57982d861bc5Smrgs/:\${srcdir}:/:/g
57992d861bc5Smrgs/:@srcdir@:/:/g
58002d861bc5Smrgs/^:*//
58012d861bc5Smrgs/:*$//
58022d861bc5Smrgx
58032d861bc5Smrgs/\(=[	 ]*\).*/\1/
58042d861bc5SmrgG
58052d861bc5Smrgs/\n//
58062d861bc5Smrgs/^[^=]*=[	 ]*$//
58072d861bc5Smrg}'
58082d861bc5Smrgfi
580944d7874bSmrg
58102d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58112d861bc5Smrgfi # test -n "$CONFIG_FILES"
581244d7874bSmrg
58132d861bc5Smrg# Set up the scripts for CONFIG_HEADERS section.
58142d861bc5Smrg# No need to generate them if there are no CONFIG_HEADERS.
58152d861bc5Smrg# This happens for instance with `./config.status Makefile'.
58162d861bc5Smrgif test -n "$CONFIG_HEADERS"; then
58172d861bc5Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
58182d861bc5SmrgBEGIN {
581944d7874bSmrg_ACEOF
582044d7874bSmrg
58212d861bc5Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
58222d861bc5Smrg# here-document in config.status, that substitutes the proper values into
58232d861bc5Smrg# config.h.in to produce config.h.
58242d861bc5Smrg
58252d861bc5Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
58262d861bc5Smrg# handling of long lines.
58272d861bc5Smrgac_delim='%!_!# '
58282d861bc5Smrgfor ac_last_try in false false :; do
58292d861bc5Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
58302d861bc5Smrg  if test -z "$ac_tt"; then
58312d861bc5Smrg    break
58322d861bc5Smrg  elif $ac_last_try; then
58332d861bc5Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
58342d861bc5Smrg  else
58352d861bc5Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
583644d7874bSmrg  fi
58372d861bc5Smrgdone
583844d7874bSmrg
58392d861bc5Smrg# For the awk script, D is an array of macro values keyed by name,
58402d861bc5Smrg# likewise P contains macro parameters if any.  Preserve backslash
58412d861bc5Smrg# newline sequences.
58422d861bc5Smrg
58432d861bc5Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
58442d861bc5Smrgsed -n '
58452d861bc5Smrgs/.\{148\}/&'"$ac_delim"'/g
58462d861bc5Smrgt rset
58472d861bc5Smrg:rset
58482d861bc5Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
58492d861bc5Smrgt def
58502d861bc5Smrgd
58512d861bc5Smrg:def
58522d861bc5Smrgs/\\$//
58532d861bc5Smrgt bsnl
58542d861bc5Smrgs/["\\]/\\&/g
58552d861bc5Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
58562d861bc5SmrgD["\1"]=" \3"/p
58572d861bc5Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
58582d861bc5Smrgd
58592d861bc5Smrg:bsnl
58602d861bc5Smrgs/["\\]/\\&/g
58612d861bc5Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
58622d861bc5SmrgD["\1"]=" \3\\\\\\n"\\/p
58632d861bc5Smrgt cont
58642d861bc5Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
58652d861bc5Smrgt cont
58662d861bc5Smrgd
58672d861bc5Smrg:cont
58682d861bc5Smrgn
58692d861bc5Smrgs/.\{148\}/&'"$ac_delim"'/g
58702d861bc5Smrgt clear
58712d861bc5Smrg:clear
58722d861bc5Smrgs/\\$//
58732d861bc5Smrgt bsnlc
58742d861bc5Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
58752d861bc5Smrgd
58762d861bc5Smrg:bsnlc
58772d861bc5Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
58782d861bc5Smrgb cont
58792d861bc5Smrg' <confdefs.h | sed '
58802d861bc5Smrgs/'"$ac_delim"'/"\\\
58812d861bc5Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
58822d861bc5Smrg
58832d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58842d861bc5Smrg  for (key in D) D_is_set[key] = 1
58852d861bc5Smrg  FS = ""
58862d861bc5Smrg}
58872d861bc5Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
58882d861bc5Smrg  line = \$ 0
58892d861bc5Smrg  split(line, arg, " ")
58902d861bc5Smrg  if (arg[1] == "#") {
58912d861bc5Smrg    defundef = arg[2]
58922d861bc5Smrg    mac1 = arg[3]
58932d861bc5Smrg  } else {
58942d861bc5Smrg    defundef = substr(arg[1], 2)
58952d861bc5Smrg    mac1 = arg[2]
58962d861bc5Smrg  }
58972d861bc5Smrg  split(mac1, mac2, "(") #)
58982d861bc5Smrg  macro = mac2[1]
58992d861bc5Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
59002d861bc5Smrg  if (D_is_set[macro]) {
59012d861bc5Smrg    # Preserve the white space surrounding the "#".
59022d861bc5Smrg    print prefix "define", macro P[macro] D[macro]
59032d861bc5Smrg    next
59042d861bc5Smrg  } else {
59052d861bc5Smrg    # Replace #undef with comments.  This is necessary, for example,
59062d861bc5Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
59072d861bc5Smrg    # on some systems where configure will not decide to define it.
59082d861bc5Smrg    if (defundef == "undef") {
59092d861bc5Smrg      print "/*", prefix defundef, macro, "*/"
59102d861bc5Smrg      next
59112d861bc5Smrg    }
59122d861bc5Smrg  }
59132d861bc5Smrg}
59142d861bc5Smrg{ print }
59152d861bc5Smrg_ACAWK
591644d7874bSmrg_ACEOF
59172d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59182d861bc5Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
59192d861bc5Smrgfi # test -n "$CONFIG_HEADERS"
59202d861bc5Smrg
59212d861bc5Smrg
59222d861bc5Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
59232d861bc5Smrgshift
59242d861bc5Smrgfor ac_tag
59252d861bc5Smrgdo
59262d861bc5Smrg  case $ac_tag in
59272d861bc5Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
59282d861bc5Smrg  esac
59292d861bc5Smrg  case $ac_mode$ac_tag in
59302d861bc5Smrg  :[FHL]*:*);;
59312d861bc5Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
59322d861bc5Smrg  :[FH]-) ac_tag=-:-;;
59332d861bc5Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
59342d861bc5Smrg  esac
59352d861bc5Smrg  ac_save_IFS=$IFS
59362d861bc5Smrg  IFS=:
59372d861bc5Smrg  set x $ac_tag
59382d861bc5Smrg  IFS=$ac_save_IFS
59392d861bc5Smrg  shift
59402d861bc5Smrg  ac_file=$1
59412d861bc5Smrg  shift
59422d861bc5Smrg
59432d861bc5Smrg  case $ac_mode in
59442d861bc5Smrg  :L) ac_source=$1;;
59452d861bc5Smrg  :[FH])
59462d861bc5Smrg    ac_file_inputs=
59472d861bc5Smrg    for ac_f
59482d861bc5Smrg    do
59492d861bc5Smrg      case $ac_f in
59502d861bc5Smrg      -) ac_f="$ac_tmp/stdin";;
59512d861bc5Smrg      *) # Look for the file first in the build tree, then in the source tree
59522d861bc5Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
59532d861bc5Smrg	 # because $ac_f cannot contain `:'.
59542d861bc5Smrg	 test -f "$ac_f" ||
59552d861bc5Smrg	   case $ac_f in
59562d861bc5Smrg	   [\\/$]*) false;;
59572d861bc5Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
59582d861bc5Smrg	   esac ||
59592d861bc5Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
59602d861bc5Smrg      esac
59612d861bc5Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
59622d861bc5Smrg      as_fn_append ac_file_inputs " '$ac_f'"
59632d861bc5Smrg    done
59642d861bc5Smrg
59652d861bc5Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
59662d861bc5Smrg    # use $as_me), people would be surprised to read:
59672d861bc5Smrg    #    /* config.h.  Generated by config.status.  */
59682d861bc5Smrg    configure_input='Generated from '`
59692d861bc5Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
59702d861bc5Smrg	`' by configure.'
59712d861bc5Smrg    if test x"$ac_file" != x-; then
59722d861bc5Smrg      configure_input="$ac_file.  $configure_input"
59732d861bc5Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
59742d861bc5Smrg$as_echo "$as_me: creating $ac_file" >&6;}
59752d861bc5Smrg    fi
59762d861bc5Smrg    # Neutralize special characters interpreted by sed in replacement strings.
59772d861bc5Smrg    case $configure_input in #(
59782d861bc5Smrg    *\&* | *\|* | *\\* )
59792d861bc5Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
59802d861bc5Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
59812d861bc5Smrg    *) ac_sed_conf_input=$configure_input;;
59822d861bc5Smrg    esac
59832d861bc5Smrg
59842d861bc5Smrg    case $ac_tag in
59852d861bc5Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
59862d861bc5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
59872d861bc5Smrg    esac
59882d861bc5Smrg    ;;
598944d7874bSmrg  esac
599044d7874bSmrg
59912d861bc5Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
599244d7874bSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
599344d7874bSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
599444d7874bSmrg	 X"$ac_file" : 'X\(//\)$' \| \
59952d861bc5Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
59962d861bc5Smrg$as_echo X"$ac_file" |
59972d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59982d861bc5Smrg	    s//\1/
59992d861bc5Smrg	    q
60002d861bc5Smrg	  }
60012d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
60022d861bc5Smrg	    s//\1/
60032d861bc5Smrg	    q
60042d861bc5Smrg	  }
60052d861bc5Smrg	  /^X\(\/\/\)$/{
60062d861bc5Smrg	    s//\1/
60072d861bc5Smrg	    q
60082d861bc5Smrg	  }
60092d861bc5Smrg	  /^X\(\/\).*/{
60102d861bc5Smrg	    s//\1/
60112d861bc5Smrg	    q
60122d861bc5Smrg	  }
60132d861bc5Smrg	  s/.*/./; q'`
60142d861bc5Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
601544d7874bSmrg  ac_builddir=.
601644d7874bSmrg
60172d861bc5Smrgcase "$ac_dir" in
60182d861bc5Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
60192d861bc5Smrg*)
60202d861bc5Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
60212d861bc5Smrg  # A ".." for each directory in $ac_dir_suffix.
60222d861bc5Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
60232d861bc5Smrg  case $ac_top_builddir_sub in
60242d861bc5Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
60252d861bc5Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
60262d861bc5Smrg  esac ;;
60272d861bc5Smrgesac
60282d861bc5Smrgac_abs_top_builddir=$ac_pwd
60292d861bc5Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
60302d861bc5Smrg# for backward compatibility:
60312d861bc5Smrgac_top_builddir=$ac_top_build_prefix
603244d7874bSmrg
603344d7874bSmrgcase $srcdir in
60342d861bc5Smrg  .)  # We are building in place.
603544d7874bSmrg    ac_srcdir=.
60362d861bc5Smrg    ac_top_srcdir=$ac_top_builddir_sub
60372d861bc5Smrg    ac_abs_top_srcdir=$ac_pwd ;;
60382d861bc5Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
603944d7874bSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
60402d861bc5Smrg    ac_top_srcdir=$srcdir
60412d861bc5Smrg    ac_abs_top_srcdir=$srcdir ;;
60422d861bc5Smrg  *) # Relative name.
60432d861bc5Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
60442d861bc5Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
60452d861bc5Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
604644d7874bSmrgesac
60472d861bc5Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
604844d7874bSmrg
604944d7874bSmrg
60502d861bc5Smrg  case $ac_mode in
60512d861bc5Smrg  :F)
60522d861bc5Smrg  #
60532d861bc5Smrg  # CONFIG_FILE
60542d861bc5Smrg  #
605544d7874bSmrg
605644d7874bSmrg  case $INSTALL in
605744d7874bSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60582d861bc5Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
60592d861bc5Smrg  esac
60602d861bc5Smrg  ac_MKDIR_P=$MKDIR_P
60612d861bc5Smrg  case $MKDIR_P in
60622d861bc5Smrg  [\\/$]* | ?:[\\/]* ) ;;
60632d861bc5Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
606444d7874bSmrg  esac
60652d861bc5Smrg_ACEOF
606644d7874bSmrg
60672d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60682d861bc5Smrg# If the template does not know about datarootdir, expand it.
60692d861bc5Smrg# FIXME: This hack should be removed a few years after 2.60.
60702d861bc5Smrgac_datarootdir_hack=; ac_datarootdir_seen=
60712d861bc5Smrgac_sed_dataroot='
60722d861bc5Smrg/datarootdir/ {
60732d861bc5Smrg  p
60742d861bc5Smrg  q
60752d861bc5Smrg}
60762d861bc5Smrg/@datadir@/p
60772d861bc5Smrg/@docdir@/p
60782d861bc5Smrg/@infodir@/p
60792d861bc5Smrg/@localedir@/p
60802d861bc5Smrg/@mandir@/p'
60812d861bc5Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
60822d861bc5Smrg*datarootdir*) ac_datarootdir_seen=yes;;
60832d861bc5Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
60842d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
60852d861bc5Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
60862d861bc5Smrg_ACEOF
60872d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60882d861bc5Smrg  ac_datarootdir_hack='
60892d861bc5Smrg  s&@datadir@&$datadir&g
60902d861bc5Smrg  s&@docdir@&$docdir&g
60912d861bc5Smrg  s&@infodir@&$infodir&g
60922d861bc5Smrg  s&@localedir@&$localedir&g
60932d861bc5Smrg  s&@mandir@&$mandir&g
60942d861bc5Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
60952d861bc5Smrgesac
609644d7874bSmrg_ACEOF
60972d861bc5Smrg
60982d861bc5Smrg# Neutralize VPATH when `$srcdir' = `.'.
60992d861bc5Smrg# Shell code in configure.ac might set extrasub.
61002d861bc5Smrg# FIXME: do we really want to maintain this feature?
61012d861bc5Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61022d861bc5Smrgac_sed_extra="$ac_vpsub
610344d7874bSmrg$extrasub
610444d7874bSmrg_ACEOF
61052d861bc5Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
610644d7874bSmrg:t
610744d7874bSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
61082d861bc5Smrgs|@configure_input@|$ac_sed_conf_input|;t t
61092d861bc5Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
61102d861bc5Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
61112d861bc5Smrgs&@srcdir@&$ac_srcdir&;t t
61122d861bc5Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
61132d861bc5Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
61142d861bc5Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
61152d861bc5Smrgs&@builddir@&$ac_builddir&;t t
61162d861bc5Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
61172d861bc5Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
61182d861bc5Smrgs&@INSTALL@&$ac_INSTALL&;t t
61192d861bc5Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
61202d861bc5Smrg$ac_datarootdir_hack
61212d861bc5Smrg"
61222d861bc5Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
61232d861bc5Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61242d861bc5Smrg
61252d861bc5Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
61262d861bc5Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
61272d861bc5Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
61282d861bc5Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
61292d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
61302d861bc5Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
61312d861bc5Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
61322d861bc5Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
61332d861bc5Smrg
61342d861bc5Smrg  rm -f "$ac_tmp/stdin"
613544d7874bSmrg  case $ac_file in
61362d861bc5Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
61372d861bc5Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
61382d861bc5Smrg  esac \
61392d861bc5Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61402d861bc5Smrg ;;
61412d861bc5Smrg  :H)
61422d861bc5Smrg  #
61432d861bc5Smrg  # CONFIG_HEADER
61442d861bc5Smrg  #
614544d7874bSmrg  if test x"$ac_file" != x-; then
61462d861bc5Smrg    {
61472d861bc5Smrg      $as_echo "/* $configure_input  */" \
61482d861bc5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
61492d861bc5Smrg    } >"$ac_tmp/config.h" \
61502d861bc5Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61512d861bc5Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
61522d861bc5Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
61532d861bc5Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
615444d7874bSmrg    else
61552d861bc5Smrg      rm -f "$ac_file"
61562d861bc5Smrg      mv "$ac_tmp/config.h" "$ac_file" \
61572d861bc5Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
615844d7874bSmrg    fi
615944d7874bSmrg  else
61602d861bc5Smrg    $as_echo "/* $configure_input  */" \
61612d861bc5Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
61622d861bc5Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
616344d7874bSmrg  fi
61642d861bc5Smrg# Compute "$ac_file"'s index in $config_headers.
61652d861bc5Smrg_am_arg="$ac_file"
616644d7874bSmrg_am_stamp_count=1
616744d7874bSmrgfor _am_header in $config_headers :; do
616844d7874bSmrg  case $_am_header in
61692d861bc5Smrg    $_am_arg | $_am_arg:* )
617044d7874bSmrg      break ;;
617144d7874bSmrg    * )
617244d7874bSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
617344d7874bSmrg  esac
617444d7874bSmrgdone
61752d861bc5Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
61762d861bc5Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61772d861bc5Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
61782d861bc5Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
61792d861bc5Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
61802d861bc5Smrg$as_echo X"$_am_arg" |
61812d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61822d861bc5Smrg	    s//\1/
61832d861bc5Smrg	    q
61842d861bc5Smrg	  }
61852d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
61862d861bc5Smrg	    s//\1/
61872d861bc5Smrg	    q
61882d861bc5Smrg	  }
61892d861bc5Smrg	  /^X\(\/\/\)$/{
61902d861bc5Smrg	    s//\1/
61912d861bc5Smrg	    q
61922d861bc5Smrg	  }
61932d861bc5Smrg	  /^X\(\/\).*/{
61942d861bc5Smrg	    s//\1/
61952d861bc5Smrg	    q
61962d861bc5Smrg	  }
61972d861bc5Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
61982d861bc5Smrg ;;
619944d7874bSmrg
62002d861bc5Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
62012d861bc5Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
62022d861bc5Smrg ;;
62032d861bc5Smrg  esac
620444d7874bSmrg
620544d7874bSmrg
62062d861bc5Smrg  case $ac_file$ac_mode in
62072d861bc5Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
62082d861bc5Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
62092d861bc5Smrg  # are listed without --file.  Let's play safe and only enable the eval
62102d861bc5Smrg  # if we detect the quoting.
62112d861bc5Smrg  case $CONFIG_FILES in
62122d861bc5Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
62132d861bc5Smrg  *)   set x $CONFIG_FILES ;;
62142d861bc5Smrg  esac
62152d861bc5Smrg  shift
62162d861bc5Smrg  for mf
62172d861bc5Smrg  do
62182d861bc5Smrg    # Strip MF so we end up with the name of the file.
62192d861bc5Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
62202d861bc5Smrg    # Check whether this is an Automake generated Makefile or not.
62212d861bc5Smrg    # We used to match only the files named `Makefile.in', but
62222d861bc5Smrg    # some people rename them; so instead we look at the file content.
62232d861bc5Smrg    # Grep'ing the first line is not enough: some people post-process
62242d861bc5Smrg    # each Makefile.in and add a new line on top of each file to say so.
62252d861bc5Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
62262d861bc5Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
62272d861bc5Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
62282d861bc5Smrg      dirpart=`$as_dirname -- "$mf" ||
622944d7874bSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
623044d7874bSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
623144d7874bSmrg	 X"$mf" : 'X\(//\)$' \| \
62322d861bc5Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
62332d861bc5Smrg$as_echo X"$mf" |
62342d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62352d861bc5Smrg	    s//\1/
62362d861bc5Smrg	    q
62372d861bc5Smrg	  }
62382d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
62392d861bc5Smrg	    s//\1/
62402d861bc5Smrg	    q
62412d861bc5Smrg	  }
62422d861bc5Smrg	  /^X\(\/\/\)$/{
62432d861bc5Smrg	    s//\1/
62442d861bc5Smrg	    q
62452d861bc5Smrg	  }
62462d861bc5Smrg	  /^X\(\/\).*/{
62472d861bc5Smrg	    s//\1/
62482d861bc5Smrg	    q
62492d861bc5Smrg	  }
62502d861bc5Smrg	  s/.*/./; q'`
62512d861bc5Smrg    else
62522d861bc5Smrg      continue
62532d861bc5Smrg    fi
62542d861bc5Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
62552d861bc5Smrg    # from the Makefile without running `make'.
62562d861bc5Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
62572d861bc5Smrg    test -z "$DEPDIR" && continue
62582d861bc5Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
62592d861bc5Smrg    test -z "am__include" && continue
62602d861bc5Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
62612d861bc5Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
62622d861bc5Smrg    U=`sed -n 's/^U = //p' < "$mf"`
62632d861bc5Smrg    # Find all dependency output files, they are included files with
62642d861bc5Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
62652d861bc5Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
62662d861bc5Smrg    # expansion.
62672d861bc5Smrg    for file in `sed -n "
62682d861bc5Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62692d861bc5Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62702d861bc5Smrg      # Make sure the directory exists.
62712d861bc5Smrg      test -f "$dirpart/$file" && continue
62722d861bc5Smrg      fdir=`$as_dirname -- "$file" ||
627344d7874bSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
627444d7874bSmrg	 X"$file" : 'X\(//\)[^/]' \| \
627544d7874bSmrg	 X"$file" : 'X\(//\)$' \| \
62762d861bc5Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
62772d861bc5Smrg$as_echo X"$file" |
62782d861bc5Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62792d861bc5Smrg	    s//\1/
62802d861bc5Smrg	    q
62812d861bc5Smrg	  }
62822d861bc5Smrg	  /^X\(\/\/\)[^/].*/{
62832d861bc5Smrg	    s//\1/
62842d861bc5Smrg	    q
62852d861bc5Smrg	  }
62862d861bc5Smrg	  /^X\(\/\/\)$/{
62872d861bc5Smrg	    s//\1/
62882d861bc5Smrg	    q
62892d861bc5Smrg	  }
62902d861bc5Smrg	  /^X\(\/\).*/{
62912d861bc5Smrg	    s//\1/
62922d861bc5Smrg	    q
62932d861bc5Smrg	  }
62942d861bc5Smrg	  s/.*/./; q'`
62952d861bc5Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
62962d861bc5Smrg      # echo "creating $dirpart/$file"
62972d861bc5Smrg      echo '# dummy' > "$dirpart/$file"
629844d7874bSmrg    done
629944d7874bSmrg  done
63002d861bc5Smrg}
630144d7874bSmrg ;;
63022d861bc5Smrg
630344d7874bSmrg  esac
63042d861bc5Smrgdone # for ac_tag
630544d7874bSmrg
630644d7874bSmrg
63072d861bc5Smrgas_fn_exit 0
630844d7874bSmrg_ACEOF
630944d7874bSmrgac_clean_files=$ac_clean_files_save
631044d7874bSmrg
63112d861bc5Smrgtest $ac_write_fail = 0 ||
63122d861bc5Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
63132d861bc5Smrg
631444d7874bSmrg
631544d7874bSmrg# configure is writing to config.log, and then calls config.status.
631644d7874bSmrg# config.status does its own redirection, appending to config.log.
631744d7874bSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
631844d7874bSmrg# by configure, so config.status won't be able to write to it; its
631944d7874bSmrg# output is simply discarded.  So we exec the FD to /dev/null,
632044d7874bSmrg# effectively closing config.log, so it can be properly (re)opened and
632144d7874bSmrg# appended to by config.status.  When coming back to configure, we
632244d7874bSmrg# need to make the FD available again.
632344d7874bSmrgif test "$no_create" != yes; then
632444d7874bSmrg  ac_cs_success=:
632544d7874bSmrg  ac_config_status_args=
632644d7874bSmrg  test "$silent" = yes &&
632744d7874bSmrg    ac_config_status_args="$ac_config_status_args --quiet"
632844d7874bSmrg  exec 5>/dev/null
632944d7874bSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
633044d7874bSmrg  exec 5>>config.log
633144d7874bSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
633244d7874bSmrg  # would make configure fail if this is the last instruction.
63332d861bc5Smrg  $ac_cs_success || as_fn_exit 1
63342d861bc5Smrgfi
63352d861bc5Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
63362d861bc5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
63372d861bc5Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
633844d7874bSmrgfi
633944d7874bSmrg
6340