configure revision 8f65982a
19aa228fdSmrg#! /bin/sh
29aa228fdSmrg# Guess values for system-dependent variables and create Makefiles.
38f65982aSmrg# Generated by GNU Autoconf 2.68 for xmag 1.0.4.
49aa228fdSmrg#
59aa228fdSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
69aa228fdSmrg#
78f65982aSmrg#
89aa228fdSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
98f65982aSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
108f65982aSmrg# Foundation, Inc.
118f65982aSmrg#
128f65982aSmrg#
139aa228fdSmrg# This configure script is free software; the Free Software Foundation
149aa228fdSmrg# gives unlimited permission to copy, distribute and modify it.
158f65982aSmrg## -------------------- ##
168f65982aSmrg## M4sh Initialization. ##
178f65982aSmrg## -------------------- ##
189aa228fdSmrg
199aa228fdSmrg# Be more Bourne compatible
209aa228fdSmrgDUALCASE=1; export DUALCASE # for MKS sh
218f65982aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
229aa228fdSmrg  emulate sh
239aa228fdSmrg  NULLCMD=:
248f65982aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
259aa228fdSmrg  # is contrary to our usage.  Disable this feature.
269aa228fdSmrg  alias -g '${1+"$@"}'='"$@"'
279aa228fdSmrg  setopt NO_GLOB_SUBST
289aa228fdSmrgelse
298f65982aSmrg  case `(set -o) 2>/dev/null` in #(
308f65982aSmrg  *posix*) :
318f65982aSmrg    set -o posix ;; #(
328f65982aSmrg  *) :
338f65982aSmrg     ;;
349aa228fdSmrgesac
359aa228fdSmrgfi
369aa228fdSmrg
379aa228fdSmrg
388f65982aSmrgas_nl='
398f65982aSmrg'
408f65982aSmrgexport as_nl
418f65982aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
428f65982aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
438f65982aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
448f65982aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
458f65982aSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
468f65982aSmrg# but without wasting forks for bash or zsh.
478f65982aSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
488f65982aSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
498f65982aSmrg  as_echo='print -r --'
508f65982aSmrg  as_echo_n='print -rn --'
518f65982aSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
528f65982aSmrg  as_echo='printf %s\n'
538f65982aSmrg  as_echo_n='printf %s'
548f65982aSmrgelse
558f65982aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
568f65982aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
578f65982aSmrg    as_echo_n='/usr/ucb/echo -n'
589aa228fdSmrg  else
598f65982aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
608f65982aSmrg    as_echo_n_body='eval
618f65982aSmrg      arg=$1;
628f65982aSmrg      case $arg in #(
638f65982aSmrg      *"$as_nl"*)
648f65982aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
658f65982aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
668f65982aSmrg      esac;
678f65982aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
688f65982aSmrg    '
698f65982aSmrg    export as_echo_n_body
708f65982aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
719aa228fdSmrg  fi
728f65982aSmrg  export as_echo_body
738f65982aSmrg  as_echo='sh -c $as_echo_body as_echo'
749aa228fdSmrgfi
759aa228fdSmrg
768f65982aSmrg# The user is always right.
778f65982aSmrgif test "${PATH_SEPARATOR+set}" != set; then
788f65982aSmrg  PATH_SEPARATOR=:
798f65982aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
808f65982aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
818f65982aSmrg      PATH_SEPARATOR=';'
828f65982aSmrg  }
839aa228fdSmrgfi
849aa228fdSmrg
859aa228fdSmrg
869aa228fdSmrg# IFS
879aa228fdSmrg# We need space, tab and new line, in precisely that order.  Quoting is
889aa228fdSmrg# there to prevent editors from complaining about space-tab.
899aa228fdSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
909aa228fdSmrg# splitting by setting IFS to empty value.)
919aa228fdSmrgIFS=" ""	$as_nl"
929aa228fdSmrg
939aa228fdSmrg# Find who we are.  Look in the path if we contain no directory separator.
948f65982aSmrgas_myself=
958f65982aSmrgcase $0 in #((
969aa228fdSmrg  *[\\/]* ) as_myself=$0 ;;
979aa228fdSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989aa228fdSmrgfor as_dir in $PATH
999aa228fdSmrgdo
1009aa228fdSmrg  IFS=$as_save_IFS
1019aa228fdSmrg  test -z "$as_dir" && as_dir=.
1028f65982aSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1038f65982aSmrg  done
1049aa228fdSmrgIFS=$as_save_IFS
1059aa228fdSmrg
1069aa228fdSmrg     ;;
1079aa228fdSmrgesac
1089aa228fdSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1099aa228fdSmrg# in which case we are not to be found in the path.
1109aa228fdSmrgif test "x$as_myself" = x; then
1119aa228fdSmrg  as_myself=$0
1129aa228fdSmrgfi
1139aa228fdSmrgif test ! -f "$as_myself"; then
1148f65982aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1158f65982aSmrg  exit 1
1169aa228fdSmrgfi
1179aa228fdSmrg
1188f65982aSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1198f65982aSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1208f65982aSmrg# suppresses any "Segmentation fault" message there.  '((' could
1218f65982aSmrg# trigger a bug in pdksh 5.2.14.
1228f65982aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1238f65982aSmrgdo eval test x\${$as_var+set} = xset \
1248f65982aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1259aa228fdSmrgdone
1269aa228fdSmrgPS1='$ '
1279aa228fdSmrgPS2='> '
1289aa228fdSmrgPS4='+ '
1299aa228fdSmrg
1309aa228fdSmrg# NLS nuisances.
1318f65982aSmrgLC_ALL=C
1328f65982aSmrgexport LC_ALL
1338f65982aSmrgLANGUAGE=C
1348f65982aSmrgexport LANGUAGE
1359aa228fdSmrg
1369aa228fdSmrg# CDPATH.
1378f65982aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1389aa228fdSmrg
1399aa228fdSmrgif test "x$CONFIG_SHELL" = x; then
1408f65982aSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1418f65982aSmrg  emulate sh
1428f65982aSmrg  NULLCMD=:
1438f65982aSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1448f65982aSmrg  # is contrary to our usage.  Disable this feature.
1458f65982aSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1468f65982aSmrg  setopt NO_GLOB_SUBST
1479aa228fdSmrgelse
1488f65982aSmrg  case \`(set -o) 2>/dev/null\` in #(
1498f65982aSmrg  *posix*) :
1508f65982aSmrg    set -o posix ;; #(
1518f65982aSmrg  *) :
1528f65982aSmrg     ;;
1538f65982aSmrgesac
1549aa228fdSmrgfi
1558f65982aSmrg"
1568f65982aSmrg  as_required="as_fn_return () { (exit \$1); }
1578f65982aSmrgas_fn_success () { as_fn_return 0; }
1588f65982aSmrgas_fn_failure () { as_fn_return 1; }
1598f65982aSmrgas_fn_ret_success () { return 0; }
1608f65982aSmrgas_fn_ret_failure () { return 1; }
1619aa228fdSmrg
1629aa228fdSmrgexitcode=0
1638f65982aSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1648f65982aSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1658f65982aSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1668f65982aSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1678f65982aSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1688f65982aSmrg
1698f65982aSmrgelse
1708f65982aSmrg  exitcode=1; echo positional parameters were not saved.
1718f65982aSmrgfi
1728f65982aSmrgtest x\$exitcode = x0 || exit 1"
1738f65982aSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1748f65982aSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1758f65982aSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1768f65982aSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1778f65982aSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
1788f65982aSmrg  if (eval "$as_required") 2>/dev/null; then :
1798f65982aSmrg  as_have_required=yes
1809aa228fdSmrgelse
1818f65982aSmrg  as_have_required=no
1829aa228fdSmrgfi
1838f65982aSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1849aa228fdSmrg
1859aa228fdSmrgelse
1868f65982aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878f65982aSmrgas_found=false
1889aa228fdSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1899aa228fdSmrgdo
1909aa228fdSmrg  IFS=$as_save_IFS
1919aa228fdSmrg  test -z "$as_dir" && as_dir=.
1928f65982aSmrg  as_found=:
1938f65982aSmrg  case $as_dir in #(
1949aa228fdSmrg	 /*)
1959aa228fdSmrg	   for as_base in sh bash ksh sh5; do
1968f65982aSmrg	     # Try only shells that exist, to save several forks.
1978f65982aSmrg	     as_shell=$as_dir/$as_base
1988f65982aSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1998f65982aSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2008f65982aSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
2018f65982aSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2028f65982aSmrg  break 2
2038f65982aSmrgfi
2048f65982aSmrgfi
2059aa228fdSmrg	   done;;
2069aa228fdSmrg       esac
2078f65982aSmrg  as_found=false
2089aa228fdSmrgdone
2098f65982aSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2108f65982aSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2118f65982aSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
2128f65982aSmrgfi; }
2139aa228fdSmrgIFS=$as_save_IFS
2149aa228fdSmrg
2159aa228fdSmrg
2168f65982aSmrg      if test "x$CONFIG_SHELL" != x; then :
2178f65982aSmrg  # We cannot yet assume a decent shell, so we have to provide a
2188f65982aSmrg	# neutralization value for shells without unset; and this also
2198f65982aSmrg	# works around shells that cannot unset nonexistent variables.
2208f65982aSmrg	# Preserve -v and -x to the replacement shell.
2218f65982aSmrg	BASH_ENV=/dev/null
2228f65982aSmrg	ENV=/dev/null
2238f65982aSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2248f65982aSmrg	export CONFIG_SHELL
2258f65982aSmrg	case $- in # ((((
2268f65982aSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2278f65982aSmrg	  *v* ) as_opts=-v ;;
2288f65982aSmrg	  *x* ) as_opts=-x ;;
2298f65982aSmrg	  * ) as_opts= ;;
2308f65982aSmrg	esac
2318f65982aSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2329aa228fdSmrgfi
2339aa228fdSmrg
2348f65982aSmrg    if test x$as_have_required = xno; then :
2358f65982aSmrg  $as_echo "$0: This script requires a shell more modern than all"
2368f65982aSmrg  $as_echo "$0: the shells that I found on your system."
2378f65982aSmrg  if test x${ZSH_VERSION+set} = xset ; then
2388f65982aSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2398f65982aSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2408f65982aSmrg  else
2418f65982aSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2428f65982aSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2438f65982aSmrg$0: about your system, including any error possibly output
2448f65982aSmrg$0: before this message. Then install a modern shell, or
2458f65982aSmrg$0: manually run the script under such a shell if you do
2468f65982aSmrg$0: have one."
2478f65982aSmrg  fi
2488f65982aSmrg  exit 1
2499aa228fdSmrgfi
2508f65982aSmrgfi
2518f65982aSmrgfi
2528f65982aSmrgSHELL=${CONFIG_SHELL-/bin/sh}
2538f65982aSmrgexport SHELL
2548f65982aSmrg# Unset more variables known to interfere with behavior of common tools.
2558f65982aSmrgCLICOLOR_FORCE= GREP_OPTIONS=
2568f65982aSmrgunset CLICOLOR_FORCE GREP_OPTIONS
2579aa228fdSmrg
2588f65982aSmrg## --------------------- ##
2598f65982aSmrg## M4sh Shell Functions. ##
2608f65982aSmrg## --------------------- ##
2618f65982aSmrg# as_fn_unset VAR
2628f65982aSmrg# ---------------
2638f65982aSmrg# Portably unset VAR.
2648f65982aSmrgas_fn_unset ()
2658f65982aSmrg{
2668f65982aSmrg  { eval $1=; unset $1;}
2679aa228fdSmrg}
2688f65982aSmrgas_unset=as_fn_unset
2699aa228fdSmrg
2708f65982aSmrg# as_fn_set_status STATUS
2718f65982aSmrg# -----------------------
2728f65982aSmrg# Set $? to STATUS, without forking.
2738f65982aSmrgas_fn_set_status ()
2748f65982aSmrg{
2758f65982aSmrg  return $1
2768f65982aSmrg} # as_fn_set_status
2779aa228fdSmrg
2788f65982aSmrg# as_fn_exit STATUS
2798f65982aSmrg# -----------------
2808f65982aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2818f65982aSmrgas_fn_exit ()
2828f65982aSmrg{
2838f65982aSmrg  set +e
2848f65982aSmrg  as_fn_set_status $1
2858f65982aSmrg  exit $1
2868f65982aSmrg} # as_fn_exit
2878f65982aSmrg
2888f65982aSmrg# as_fn_mkdir_p
2898f65982aSmrg# -------------
2908f65982aSmrg# Create "$as_dir" as a directory, including parents if necessary.
2918f65982aSmrgas_fn_mkdir_p ()
2928f65982aSmrg{
2939aa228fdSmrg
2948f65982aSmrg  case $as_dir in #(
2958f65982aSmrg  -*) as_dir=./$as_dir;;
2968f65982aSmrg  esac
2978f65982aSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
2988f65982aSmrg    as_dirs=
2998f65982aSmrg    while :; do
3008f65982aSmrg      case $as_dir in #(
3018f65982aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3028f65982aSmrg      *) as_qdir=$as_dir;;
3038f65982aSmrg      esac
3048f65982aSmrg      as_dirs="'$as_qdir' $as_dirs"
3058f65982aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
3068f65982aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3078f65982aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3088f65982aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
3098f65982aSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3108f65982aSmrg$as_echo X"$as_dir" |
3118f65982aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3128f65982aSmrg	    s//\1/
3138f65982aSmrg	    q
3148f65982aSmrg	  }
3158f65982aSmrg	  /^X\(\/\/\)[^/].*/{
3168f65982aSmrg	    s//\1/
3178f65982aSmrg	    q
3188f65982aSmrg	  }
3198f65982aSmrg	  /^X\(\/\/\)$/{
3208f65982aSmrg	    s//\1/
3218f65982aSmrg	    q
3228f65982aSmrg	  }
3238f65982aSmrg	  /^X\(\/\).*/{
3248f65982aSmrg	    s//\1/
3258f65982aSmrg	    q
3268f65982aSmrg	  }
3278f65982aSmrg	  s/.*/./; q'`
3288f65982aSmrg      test -d "$as_dir" && break
3298f65982aSmrg    done
3308f65982aSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3318f65982aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3328f65982aSmrg
3338f65982aSmrg
3348f65982aSmrg} # as_fn_mkdir_p
3358f65982aSmrg# as_fn_append VAR VALUE
3368f65982aSmrg# ----------------------
3378f65982aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3388f65982aSmrg# advantage of any shell optimizations that allow amortized linear growth over
3398f65982aSmrg# repeated appends, instead of the typical quadratic growth present in naive
3408f65982aSmrg# implementations.
3418f65982aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3428f65982aSmrg  eval 'as_fn_append ()
3438f65982aSmrg  {
3448f65982aSmrg    eval $1+=\$2
3458f65982aSmrg  }'
3469aa228fdSmrgelse
3478f65982aSmrg  as_fn_append ()
3488f65982aSmrg  {
3498f65982aSmrg    eval $1=\$$1\$2
3508f65982aSmrg  }
3518f65982aSmrgfi # as_fn_append
3528f65982aSmrg
3538f65982aSmrg# as_fn_arith ARG...
3548f65982aSmrg# ------------------
3558f65982aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3568f65982aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3578f65982aSmrg# must be portable across $(()) and expr.
3588f65982aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3598f65982aSmrg  eval 'as_fn_arith ()
3608f65982aSmrg  {
3618f65982aSmrg    as_val=$(( $* ))
3628f65982aSmrg  }'
3639aa228fdSmrgelse
3648f65982aSmrg  as_fn_arith ()
3658f65982aSmrg  {
3668f65982aSmrg    as_val=`expr "$@" || test $? -eq 1`
3678f65982aSmrg  }
3688f65982aSmrgfi # as_fn_arith
3699aa228fdSmrg
3709aa228fdSmrg
3718f65982aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3728f65982aSmrg# ----------------------------------------
3738f65982aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3748f65982aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3758f65982aSmrg# script with STATUS, using 1 if that was 0.
3768f65982aSmrgas_fn_error ()
3778f65982aSmrg{
3788f65982aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
3798f65982aSmrg  if test "$4"; then
3808f65982aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3818f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3828f65982aSmrg  fi
3838f65982aSmrg  $as_echo "$as_me: error: $2" >&2
3848f65982aSmrg  as_fn_exit $as_status
3858f65982aSmrg} # as_fn_error
3869aa228fdSmrg
3878f65982aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3888f65982aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3898f65982aSmrg  as_expr=expr
3909aa228fdSmrgelse
3918f65982aSmrg  as_expr=false
3929aa228fdSmrgfi
3939aa228fdSmrg
3948f65982aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3958f65982aSmrg  as_basename=basename
3969aa228fdSmrgelse
3978f65982aSmrg  as_basename=false
3989aa228fdSmrgfi
3999aa228fdSmrg
4008f65982aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4018f65982aSmrg  as_dirname=dirname
4029aa228fdSmrgelse
4038f65982aSmrg  as_dirname=false
4049aa228fdSmrgfi
4059aa228fdSmrg
4068f65982aSmrgas_me=`$as_basename -- "$0" ||
4078f65982aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4088f65982aSmrg	 X"$0" : 'X\(//\)$' \| \
4098f65982aSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4108f65982aSmrg$as_echo X/"$0" |
4118f65982aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4128f65982aSmrg	    s//\1/
4138f65982aSmrg	    q
4148f65982aSmrg	  }
4158f65982aSmrg	  /^X\/\(\/\/\)$/{
4168f65982aSmrg	    s//\1/
4178f65982aSmrg	    q
4188f65982aSmrg	  }
4198f65982aSmrg	  /^X\/\(\/\).*/{
4208f65982aSmrg	    s//\1/
4218f65982aSmrg	    q
4228f65982aSmrg	  }
4238f65982aSmrg	  s/.*/./; q'`
4249aa228fdSmrg
4258f65982aSmrg# Avoid depending upon Character Ranges.
4268f65982aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4278f65982aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4288f65982aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4298f65982aSmrgas_cr_digits='0123456789'
4308f65982aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4319aa228fdSmrg
4329aa228fdSmrg
4338f65982aSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4348f65982aSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4358f65982aSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4368f65982aSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4378f65982aSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4389aa228fdSmrg  sed -n '
4399aa228fdSmrg    p
4409aa228fdSmrg    /[$]LINENO/=
4419aa228fdSmrg  ' <$as_myself |
4429aa228fdSmrg    sed '
4439aa228fdSmrg      s/[$]LINENO.*/&-/
4449aa228fdSmrg      t lineno
4459aa228fdSmrg      b
4469aa228fdSmrg      :lineno
4479aa228fdSmrg      N
4489aa228fdSmrg      :loop
4499aa228fdSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4509aa228fdSmrg      t loop
4519aa228fdSmrg      s/-\n.*//
4529aa228fdSmrg    ' >$as_me.lineno &&
4539aa228fdSmrg  chmod +x "$as_me.lineno" ||
4548f65982aSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4559aa228fdSmrg
4569aa228fdSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
4579aa228fdSmrg  # (the dirname of $[0] is not the place where we might find the
4589aa228fdSmrg  # original and so on.  Autoconf is especially sensitive to this).
4599aa228fdSmrg  . "./$as_me.lineno"
4609aa228fdSmrg  # Exit status is that of the last command.
4619aa228fdSmrg  exit
4629aa228fdSmrg}
4639aa228fdSmrg
4649aa228fdSmrgECHO_C= ECHO_N= ECHO_T=
4658f65982aSmrgcase `echo -n x` in #(((((
4669aa228fdSmrg-n*)
4678f65982aSmrg  case `echo 'xy\c'` in
4689aa228fdSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4698f65982aSmrg  xy)  ECHO_C='\c';;
4708f65982aSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4718f65982aSmrg       ECHO_T='	';;
4729aa228fdSmrg  esac;;
4739aa228fdSmrg*)
4749aa228fdSmrg  ECHO_N='-n';;
4759aa228fdSmrgesac
4769aa228fdSmrg
4779aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.file
4789aa228fdSmrgif test -d conf$$.dir; then
4799aa228fdSmrg  rm -f conf$$.dir/conf$$.file
4809aa228fdSmrgelse
4819aa228fdSmrg  rm -f conf$$.dir
4828f65982aSmrg  mkdir conf$$.dir 2>/dev/null
4838f65982aSmrgfi
4848f65982aSmrgif (echo >conf$$.file) 2>/dev/null; then
4858f65982aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4868f65982aSmrg    as_ln_s='ln -s'
4878f65982aSmrg    # ... but there are two gotchas:
4888f65982aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4898f65982aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4908f65982aSmrg    # In both cases, we have to default to `cp -p'.
4918f65982aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4928f65982aSmrg      as_ln_s='cp -p'
4938f65982aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4948f65982aSmrg    as_ln_s=ln
4958f65982aSmrg  else
4969aa228fdSmrg    as_ln_s='cp -p'
4978f65982aSmrg  fi
4989aa228fdSmrgelse
4999aa228fdSmrg  as_ln_s='cp -p'
5009aa228fdSmrgfi
5019aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5029aa228fdSmrgrmdir conf$$.dir 2>/dev/null
5039aa228fdSmrg
5049aa228fdSmrgif mkdir -p . 2>/dev/null; then
5058f65982aSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5069aa228fdSmrgelse
5079aa228fdSmrg  test -d ./-p && rmdir ./-p
5089aa228fdSmrg  as_mkdir_p=false
5099aa228fdSmrgfi
5109aa228fdSmrg
5119aa228fdSmrgif test -x / >/dev/null 2>&1; then
5129aa228fdSmrg  as_test_x='test -x'
5139aa228fdSmrgelse
5149aa228fdSmrg  if ls -dL / >/dev/null 2>&1; then
5159aa228fdSmrg    as_ls_L_option=L
5169aa228fdSmrg  else
5179aa228fdSmrg    as_ls_L_option=
5189aa228fdSmrg  fi
5199aa228fdSmrg  as_test_x='
5209aa228fdSmrg    eval sh -c '\''
5219aa228fdSmrg      if test -d "$1"; then
5228f65982aSmrg	test -d "$1/.";
5239aa228fdSmrg      else
5248f65982aSmrg	case $1 in #(
5258f65982aSmrg	-*)set "./$1";;
5269aa228fdSmrg	esac;
5278f65982aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5289aa228fdSmrg	???[sx]*):;;*)false;;esac;fi
5299aa228fdSmrg    '\'' sh
5309aa228fdSmrg  '
5319aa228fdSmrgfi
5329aa228fdSmrgas_executable_p=$as_test_x
5339aa228fdSmrg
5349aa228fdSmrg# Sed expression to map a string onto a valid CPP name.
5359aa228fdSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5369aa228fdSmrg
5379aa228fdSmrg# Sed expression to map a string onto a valid variable name.
5389aa228fdSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5399aa228fdSmrg
5409aa228fdSmrg
5418f65982aSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5428f65982aSmrgexec 6>&1
5439aa228fdSmrg
5449aa228fdSmrg# Name of the host.
5458f65982aSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5469aa228fdSmrg# so uname gets run too.
5479aa228fdSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5489aa228fdSmrg
5499aa228fdSmrg#
5509aa228fdSmrg# Initializations.
5519aa228fdSmrg#
5529aa228fdSmrgac_default_prefix=/usr/local
5539aa228fdSmrgac_clean_files=
5549aa228fdSmrgac_config_libobj_dir=.
5559aa228fdSmrgLIBOBJS=
5569aa228fdSmrgcross_compiling=no
5579aa228fdSmrgsubdirs=
5589aa228fdSmrgMFLAGS=
5599aa228fdSmrgMAKEFLAGS=
5609aa228fdSmrg
5619aa228fdSmrg# Identity of this package.
5629aa228fdSmrgPACKAGE_NAME='xmag'
5639aa228fdSmrgPACKAGE_TARNAME='xmag'
5648f65982aSmrgPACKAGE_VERSION='1.0.4'
5658f65982aSmrgPACKAGE_STRING='xmag 1.0.4'
5669aa228fdSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5678f65982aSmrgPACKAGE_URL=''
5689aa228fdSmrg
56983d7c197Smrg# Factoring default headers for most tests.
57083d7c197Smrgac_includes_default="\
57183d7c197Smrg#include <stdio.h>
57283d7c197Smrg#ifdef HAVE_SYS_TYPES_H
57383d7c197Smrg# include <sys/types.h>
57483d7c197Smrg#endif
57583d7c197Smrg#ifdef HAVE_SYS_STAT_H
57683d7c197Smrg# include <sys/stat.h>
57783d7c197Smrg#endif
57883d7c197Smrg#ifdef STDC_HEADERS
57983d7c197Smrg# include <stdlib.h>
58083d7c197Smrg# include <stddef.h>
58183d7c197Smrg#else
5828f65982aSmrg# ifdef HAVE_STDLIB_H
5838f65982aSmrg#  include <stdlib.h>
5848f65982aSmrg# endif
5858f65982aSmrg#endif
5868f65982aSmrg#ifdef HAVE_STRING_H
5878f65982aSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5888f65982aSmrg#  include <memory.h>
5898f65982aSmrg# endif
5908f65982aSmrg# include <string.h>
5918f65982aSmrg#endif
5928f65982aSmrg#ifdef HAVE_STRINGS_H
5938f65982aSmrg# include <strings.h>
5948f65982aSmrg#endif
5958f65982aSmrg#ifdef HAVE_INTTYPES_H
5968f65982aSmrg# include <inttypes.h>
5978f65982aSmrg#endif
5988f65982aSmrg#ifdef HAVE_STDINT_H
5998f65982aSmrg# include <stdint.h>
6008f65982aSmrg#endif
6018f65982aSmrg#ifdef HAVE_UNISTD_H
6028f65982aSmrg# include <unistd.h>
6038f65982aSmrg#endif"
6048f65982aSmrg
6058f65982aSmrgac_subst_vars='am__EXEEXT_FALSE
6068f65982aSmrgam__EXEEXT_TRUE
6078f65982aSmrgLTLIBOBJS
6088f65982aSmrgLIBOBJS
6099aa228fdSmrgappdefaultdir
6108f65982aSmrgXMAG_LIBS
6118f65982aSmrgXMAG_CFLAGS
6128f65982aSmrgAM_BACKSLASH
6138f65982aSmrgAM_DEFAULT_VERBOSITY
6148f65982aSmrgMAN_SUBSTS
6158f65982aSmrgXORG_MAN_PAGE
6169aa228fdSmrgADMIN_MAN_DIR
6178f65982aSmrgDRIVER_MAN_DIR
6188f65982aSmrgMISC_MAN_DIR
6198f65982aSmrgFILE_MAN_DIR
6208f65982aSmrgLIB_MAN_DIR
6218f65982aSmrgAPP_MAN_DIR
6228f65982aSmrgADMIN_MAN_SUFFIX
6238f65982aSmrgDRIVER_MAN_SUFFIX
6248f65982aSmrgMISC_MAN_SUFFIX
6258f65982aSmrgFILE_MAN_SUFFIX
6268f65982aSmrgLIB_MAN_SUFFIX
6278f65982aSmrgAPP_MAN_SUFFIX
6288f65982aSmrgSED
6298f65982aSmrghost_os
6308f65982aSmrghost_vendor
6318f65982aSmrghost_cpu
6328f65982aSmrghost
6338f65982aSmrgbuild_os
6348f65982aSmrgbuild_vendor
6358f65982aSmrgbuild_cpu
6368f65982aSmrgbuild
6378f65982aSmrgINSTALL_CMD
6388f65982aSmrgPKG_CONFIG
63983d7c197SmrgCHANGELOG_CMD
6408f65982aSmrgCWARNFLAGS
6418f65982aSmrgEGREP
6428f65982aSmrgGREP
6438f65982aSmrgCPP
6448f65982aSmrgam__fastdepCC_FALSE
6458f65982aSmrgam__fastdepCC_TRUE
6468f65982aSmrgCCDEPMODE
6478f65982aSmrgAMDEPBACKSLASH
6488f65982aSmrgAMDEP_FALSE
6498f65982aSmrgAMDEP_TRUE
6508f65982aSmrgam__quote
6518f65982aSmrgam__include
6528f65982aSmrgDEPDIR
6538f65982aSmrgOBJEXT
6548f65982aSmrgEXEEXT
6558f65982aSmrgac_ct_CC
6568f65982aSmrgCPPFLAGS
6578f65982aSmrgLDFLAGS
6588f65982aSmrgCFLAGS
6598f65982aSmrgCC
6608f65982aSmrgMAINT
6618f65982aSmrgMAINTAINER_MODE_FALSE
6628f65982aSmrgMAINTAINER_MODE_TRUE
6638f65982aSmrgam__untar
6648f65982aSmrgam__tar
6658f65982aSmrgAMTAR
6668f65982aSmrgam__leading_dot
6678f65982aSmrgSET_MAKE
6688f65982aSmrgAWK
6698f65982aSmrgmkdir_p
6708f65982aSmrgMKDIR_P
6718f65982aSmrgINSTALL_STRIP_PROGRAM
6728f65982aSmrgSTRIP
6738f65982aSmrginstall_sh
6748f65982aSmrgMAKEINFO
6758f65982aSmrgAUTOHEADER
6768f65982aSmrgAUTOMAKE
6778f65982aSmrgAUTOCONF
6788f65982aSmrgACLOCAL
6798f65982aSmrgVERSION
6808f65982aSmrgPACKAGE
6818f65982aSmrgCYGPATH_W
6828f65982aSmrgam__isrc
6838f65982aSmrgINSTALL_DATA
6848f65982aSmrgINSTALL_SCRIPT
6858f65982aSmrgINSTALL_PROGRAM
6868f65982aSmrgtarget_alias
6878f65982aSmrghost_alias
6888f65982aSmrgbuild_alias
6898f65982aSmrgLIBS
6908f65982aSmrgECHO_T
6918f65982aSmrgECHO_N
6928f65982aSmrgECHO_C
6938f65982aSmrgDEFS
6948f65982aSmrgmandir
6958f65982aSmrglocaledir
6968f65982aSmrglibdir
6978f65982aSmrgpsdir
6988f65982aSmrgpdfdir
6998f65982aSmrgdvidir
7008f65982aSmrghtmldir
7018f65982aSmrginfodir
7028f65982aSmrgdocdir
7038f65982aSmrgoldincludedir
7048f65982aSmrgincludedir
7058f65982aSmrglocalstatedir
7068f65982aSmrgsharedstatedir
7078f65982aSmrgsysconfdir
7088f65982aSmrgdatadir
7098f65982aSmrgdatarootdir
7108f65982aSmrglibexecdir
7118f65982aSmrgsbindir
7128f65982aSmrgbindir
7138f65982aSmrgprogram_transform_name
7148f65982aSmrgprefix
7158f65982aSmrgexec_prefix
7168f65982aSmrgPACKAGE_URL
7178f65982aSmrgPACKAGE_BUGREPORT
7188f65982aSmrgPACKAGE_STRING
7198f65982aSmrgPACKAGE_VERSION
7208f65982aSmrgPACKAGE_TARNAME
7218f65982aSmrgPACKAGE_NAME
7228f65982aSmrgPATH_SEPARATOR
7238f65982aSmrgSHELL'
7249aa228fdSmrgac_subst_files=''
7258f65982aSmrgac_user_opts='
7268f65982aSmrgenable_option_checking
7278f65982aSmrgenable_maintainer_mode
7288f65982aSmrgenable_dependency_tracking
7298f65982aSmrgenable_strict_compilation
7308f65982aSmrgenable_silent_rules
7318f65982aSmrgwith_appdefaultdir
7328f65982aSmrg'
7339aa228fdSmrg      ac_precious_vars='build_alias
7349aa228fdSmrghost_alias
7359aa228fdSmrgtarget_alias
7369aa228fdSmrgCC
7379aa228fdSmrgCFLAGS
7389aa228fdSmrgLDFLAGS
7399aa228fdSmrgLIBS
7409aa228fdSmrgCPPFLAGS
74183d7c197SmrgCPP
7429aa228fdSmrgPKG_CONFIG
74383d7c197SmrgXMAG_CFLAGS
7448f65982aSmrgXMAG_LIBS'
7459aa228fdSmrg
7469aa228fdSmrg
7479aa228fdSmrg# Initialize some variables set by options.
7489aa228fdSmrgac_init_help=
7499aa228fdSmrgac_init_version=false
7508f65982aSmrgac_unrecognized_opts=
7518f65982aSmrgac_unrecognized_sep=
7529aa228fdSmrg# The variables have the same names as the options, with
7539aa228fdSmrg# dashes changed to underlines.
7549aa228fdSmrgcache_file=/dev/null
7559aa228fdSmrgexec_prefix=NONE
7569aa228fdSmrgno_create=
7579aa228fdSmrgno_recursion=
7589aa228fdSmrgprefix=NONE
7599aa228fdSmrgprogram_prefix=NONE
7609aa228fdSmrgprogram_suffix=NONE
7619aa228fdSmrgprogram_transform_name=s,x,x,
7629aa228fdSmrgsilent=
7639aa228fdSmrgsite=
7649aa228fdSmrgsrcdir=
7659aa228fdSmrgverbose=
7669aa228fdSmrgx_includes=NONE
7679aa228fdSmrgx_libraries=NONE
7689aa228fdSmrg
7699aa228fdSmrg# Installation directory options.
7709aa228fdSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
7719aa228fdSmrg# and all the variables that are supposed to be based on exec_prefix
7729aa228fdSmrg# by default will actually change.
7739aa228fdSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
7749aa228fdSmrg# (The list follows the same order as the GNU Coding Standards.)
7759aa228fdSmrgbindir='${exec_prefix}/bin'
7769aa228fdSmrgsbindir='${exec_prefix}/sbin'
7779aa228fdSmrglibexecdir='${exec_prefix}/libexec'
7789aa228fdSmrgdatarootdir='${prefix}/share'
7799aa228fdSmrgdatadir='${datarootdir}'
7809aa228fdSmrgsysconfdir='${prefix}/etc'
7819aa228fdSmrgsharedstatedir='${prefix}/com'
7829aa228fdSmrglocalstatedir='${prefix}/var'
7839aa228fdSmrgincludedir='${prefix}/include'
7849aa228fdSmrgoldincludedir='/usr/include'
7859aa228fdSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7869aa228fdSmrginfodir='${datarootdir}/info'
7879aa228fdSmrghtmldir='${docdir}'
7889aa228fdSmrgdvidir='${docdir}'
7899aa228fdSmrgpdfdir='${docdir}'
7909aa228fdSmrgpsdir='${docdir}'
7919aa228fdSmrglibdir='${exec_prefix}/lib'
7929aa228fdSmrglocaledir='${datarootdir}/locale'
7939aa228fdSmrgmandir='${datarootdir}/man'
7949aa228fdSmrg
7959aa228fdSmrgac_prev=
7969aa228fdSmrgac_dashdash=
7979aa228fdSmrgfor ac_option
7989aa228fdSmrgdo
7999aa228fdSmrg  # If the previous option needs an argument, assign it.
8009aa228fdSmrg  if test -n "$ac_prev"; then
8019aa228fdSmrg    eval $ac_prev=\$ac_option
8029aa228fdSmrg    ac_prev=
8039aa228fdSmrg    continue
8049aa228fdSmrg  fi
8059aa228fdSmrg
8069aa228fdSmrg  case $ac_option in
8078f65982aSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8088f65982aSmrg  *=)   ac_optarg= ;;
8098f65982aSmrg  *)    ac_optarg=yes ;;
8109aa228fdSmrg  esac
8119aa228fdSmrg
8129aa228fdSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8139aa228fdSmrg
8149aa228fdSmrg  case $ac_dashdash$ac_option in
8159aa228fdSmrg  --)
8169aa228fdSmrg    ac_dashdash=yes ;;
8179aa228fdSmrg
8189aa228fdSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8199aa228fdSmrg    ac_prev=bindir ;;
8209aa228fdSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8219aa228fdSmrg    bindir=$ac_optarg ;;
8229aa228fdSmrg
8239aa228fdSmrg  -build | --build | --buil | --bui | --bu)
8249aa228fdSmrg    ac_prev=build_alias ;;
8259aa228fdSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8269aa228fdSmrg    build_alias=$ac_optarg ;;
8279aa228fdSmrg
8289aa228fdSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8299aa228fdSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8309aa228fdSmrg    ac_prev=cache_file ;;
8319aa228fdSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8329aa228fdSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8339aa228fdSmrg    cache_file=$ac_optarg ;;
8349aa228fdSmrg
8359aa228fdSmrg  --config-cache | -C)
8369aa228fdSmrg    cache_file=config.cache ;;
8379aa228fdSmrg
8389aa228fdSmrg  -datadir | --datadir | --datadi | --datad)
8399aa228fdSmrg    ac_prev=datadir ;;
8409aa228fdSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8419aa228fdSmrg    datadir=$ac_optarg ;;
8429aa228fdSmrg
8439aa228fdSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8449aa228fdSmrg  | --dataroo | --dataro | --datar)
8459aa228fdSmrg    ac_prev=datarootdir ;;
8469aa228fdSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8479aa228fdSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8489aa228fdSmrg    datarootdir=$ac_optarg ;;
8499aa228fdSmrg
8509aa228fdSmrg  -disable-* | --disable-*)
8518f65982aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8529aa228fdSmrg    # Reject names that are not valid shell variable names.
8538f65982aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8548f65982aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8558f65982aSmrg    ac_useropt_orig=$ac_useropt
8568f65982aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8578f65982aSmrg    case $ac_user_opts in
8588f65982aSmrg      *"
8598f65982aSmrg"enable_$ac_useropt"
8608f65982aSmrg"*) ;;
8618f65982aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8628f65982aSmrg	 ac_unrecognized_sep=', ';;
8638f65982aSmrg    esac
8648f65982aSmrg    eval enable_$ac_useropt=no ;;
8659aa228fdSmrg
8669aa228fdSmrg  -docdir | --docdir | --docdi | --doc | --do)
8679aa228fdSmrg    ac_prev=docdir ;;
8689aa228fdSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8699aa228fdSmrg    docdir=$ac_optarg ;;
8709aa228fdSmrg
8719aa228fdSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8729aa228fdSmrg    ac_prev=dvidir ;;
8739aa228fdSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8749aa228fdSmrg    dvidir=$ac_optarg ;;
8759aa228fdSmrg
8769aa228fdSmrg  -enable-* | --enable-*)
8778f65982aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8789aa228fdSmrg    # Reject names that are not valid shell variable names.
8798f65982aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8808f65982aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8818f65982aSmrg    ac_useropt_orig=$ac_useropt
8828f65982aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8838f65982aSmrg    case $ac_user_opts in
8848f65982aSmrg      *"
8858f65982aSmrg"enable_$ac_useropt"
8868f65982aSmrg"*) ;;
8878f65982aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8888f65982aSmrg	 ac_unrecognized_sep=', ';;
8898f65982aSmrg    esac
8908f65982aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
8919aa228fdSmrg
8929aa228fdSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8939aa228fdSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8949aa228fdSmrg  | --exec | --exe | --ex)
8959aa228fdSmrg    ac_prev=exec_prefix ;;
8969aa228fdSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8979aa228fdSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8989aa228fdSmrg  | --exec=* | --exe=* | --ex=*)
8999aa228fdSmrg    exec_prefix=$ac_optarg ;;
9009aa228fdSmrg
9019aa228fdSmrg  -gas | --gas | --ga | --g)
9029aa228fdSmrg    # Obsolete; use --with-gas.
9039aa228fdSmrg    with_gas=yes ;;
9049aa228fdSmrg
9059aa228fdSmrg  -help | --help | --hel | --he | -h)
9069aa228fdSmrg    ac_init_help=long ;;
9079aa228fdSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9089aa228fdSmrg    ac_init_help=recursive ;;
9099aa228fdSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9109aa228fdSmrg    ac_init_help=short ;;
9119aa228fdSmrg
9129aa228fdSmrg  -host | --host | --hos | --ho)
9139aa228fdSmrg    ac_prev=host_alias ;;
9149aa228fdSmrg  -host=* | --host=* | --hos=* | --ho=*)
9159aa228fdSmrg    host_alias=$ac_optarg ;;
9169aa228fdSmrg
9179aa228fdSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9189aa228fdSmrg    ac_prev=htmldir ;;
9199aa228fdSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9209aa228fdSmrg  | --ht=*)
9219aa228fdSmrg    htmldir=$ac_optarg ;;
9229aa228fdSmrg
9239aa228fdSmrg  -includedir | --includedir | --includedi | --included | --include \
9249aa228fdSmrg  | --includ | --inclu | --incl | --inc)
9259aa228fdSmrg    ac_prev=includedir ;;
9269aa228fdSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9279aa228fdSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9289aa228fdSmrg    includedir=$ac_optarg ;;
9299aa228fdSmrg
9309aa228fdSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9319aa228fdSmrg    ac_prev=infodir ;;
9329aa228fdSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9339aa228fdSmrg    infodir=$ac_optarg ;;
9349aa228fdSmrg
9359aa228fdSmrg  -libdir | --libdir | --libdi | --libd)
9369aa228fdSmrg    ac_prev=libdir ;;
9379aa228fdSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9389aa228fdSmrg    libdir=$ac_optarg ;;
9399aa228fdSmrg
9409aa228fdSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9419aa228fdSmrg  | --libexe | --libex | --libe)
9429aa228fdSmrg    ac_prev=libexecdir ;;
9439aa228fdSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9449aa228fdSmrg  | --libexe=* | --libex=* | --libe=*)
9459aa228fdSmrg    libexecdir=$ac_optarg ;;
9469aa228fdSmrg
9479aa228fdSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9489aa228fdSmrg    ac_prev=localedir ;;
9499aa228fdSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9509aa228fdSmrg    localedir=$ac_optarg ;;
9519aa228fdSmrg
9529aa228fdSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9539aa228fdSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9549aa228fdSmrg    ac_prev=localstatedir ;;
9559aa228fdSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9569aa228fdSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9579aa228fdSmrg    localstatedir=$ac_optarg ;;
9589aa228fdSmrg
9599aa228fdSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9609aa228fdSmrg    ac_prev=mandir ;;
9619aa228fdSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9629aa228fdSmrg    mandir=$ac_optarg ;;
9639aa228fdSmrg
9649aa228fdSmrg  -nfp | --nfp | --nf)
9659aa228fdSmrg    # Obsolete; use --without-fp.
9669aa228fdSmrg    with_fp=no ;;
9679aa228fdSmrg
9689aa228fdSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9699aa228fdSmrg  | --no-cr | --no-c | -n)
9709aa228fdSmrg    no_create=yes ;;
9719aa228fdSmrg
9729aa228fdSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9739aa228fdSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9749aa228fdSmrg    no_recursion=yes ;;
9759aa228fdSmrg
9769aa228fdSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9779aa228fdSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9789aa228fdSmrg  | --oldin | --oldi | --old | --ol | --o)
9799aa228fdSmrg    ac_prev=oldincludedir ;;
9809aa228fdSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9819aa228fdSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9829aa228fdSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9839aa228fdSmrg    oldincludedir=$ac_optarg ;;
9849aa228fdSmrg
9859aa228fdSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9869aa228fdSmrg    ac_prev=prefix ;;
9879aa228fdSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9889aa228fdSmrg    prefix=$ac_optarg ;;
9899aa228fdSmrg
9909aa228fdSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9919aa228fdSmrg  | --program-pre | --program-pr | --program-p)
9929aa228fdSmrg    ac_prev=program_prefix ;;
9939aa228fdSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9949aa228fdSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9959aa228fdSmrg    program_prefix=$ac_optarg ;;
9969aa228fdSmrg
9979aa228fdSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9989aa228fdSmrg  | --program-suf | --program-su | --program-s)
9999aa228fdSmrg    ac_prev=program_suffix ;;
10009aa228fdSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10019aa228fdSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10029aa228fdSmrg    program_suffix=$ac_optarg ;;
10039aa228fdSmrg
10049aa228fdSmrg  -program-transform-name | --program-transform-name \
10059aa228fdSmrg  | --program-transform-nam | --program-transform-na \
10069aa228fdSmrg  | --program-transform-n | --program-transform- \
10079aa228fdSmrg  | --program-transform | --program-transfor \
10089aa228fdSmrg  | --program-transfo | --program-transf \
10099aa228fdSmrg  | --program-trans | --program-tran \
10109aa228fdSmrg  | --progr-tra | --program-tr | --program-t)
10119aa228fdSmrg    ac_prev=program_transform_name ;;
10129aa228fdSmrg  -program-transform-name=* | --program-transform-name=* \
10139aa228fdSmrg  | --program-transform-nam=* | --program-transform-na=* \
10149aa228fdSmrg  | --program-transform-n=* | --program-transform-=* \
10159aa228fdSmrg  | --program-transform=* | --program-transfor=* \
10169aa228fdSmrg  | --program-transfo=* | --program-transf=* \
10179aa228fdSmrg  | --program-trans=* | --program-tran=* \
10189aa228fdSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10199aa228fdSmrg    program_transform_name=$ac_optarg ;;
10209aa228fdSmrg
10219aa228fdSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10229aa228fdSmrg    ac_prev=pdfdir ;;
10239aa228fdSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10249aa228fdSmrg    pdfdir=$ac_optarg ;;
10259aa228fdSmrg
10269aa228fdSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10279aa228fdSmrg    ac_prev=psdir ;;
10289aa228fdSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10299aa228fdSmrg    psdir=$ac_optarg ;;
10309aa228fdSmrg
10319aa228fdSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10329aa228fdSmrg  | -silent | --silent | --silen | --sile | --sil)
10339aa228fdSmrg    silent=yes ;;
10349aa228fdSmrg
10359aa228fdSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10369aa228fdSmrg    ac_prev=sbindir ;;
10379aa228fdSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10389aa228fdSmrg  | --sbi=* | --sb=*)
10399aa228fdSmrg    sbindir=$ac_optarg ;;
10409aa228fdSmrg
10419aa228fdSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10429aa228fdSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10439aa228fdSmrg  | --sharedst | --shareds | --shared | --share | --shar \
10449aa228fdSmrg  | --sha | --sh)
10459aa228fdSmrg    ac_prev=sharedstatedir ;;
10469aa228fdSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10479aa228fdSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10489aa228fdSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10499aa228fdSmrg  | --sha=* | --sh=*)
10509aa228fdSmrg    sharedstatedir=$ac_optarg ;;
10519aa228fdSmrg
10529aa228fdSmrg  -site | --site | --sit)
10539aa228fdSmrg    ac_prev=site ;;
10549aa228fdSmrg  -site=* | --site=* | --sit=*)
10559aa228fdSmrg    site=$ac_optarg ;;
10569aa228fdSmrg
10579aa228fdSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10589aa228fdSmrg    ac_prev=srcdir ;;
10599aa228fdSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10609aa228fdSmrg    srcdir=$ac_optarg ;;
10619aa228fdSmrg
10629aa228fdSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10639aa228fdSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
10649aa228fdSmrg    ac_prev=sysconfdir ;;
10659aa228fdSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10669aa228fdSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10679aa228fdSmrg    sysconfdir=$ac_optarg ;;
10689aa228fdSmrg
10699aa228fdSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
10709aa228fdSmrg    ac_prev=target_alias ;;
10719aa228fdSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10729aa228fdSmrg    target_alias=$ac_optarg ;;
10739aa228fdSmrg
10749aa228fdSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10759aa228fdSmrg    verbose=yes ;;
10769aa228fdSmrg
10779aa228fdSmrg  -version | --version | --versio | --versi | --vers | -V)
10789aa228fdSmrg    ac_init_version=: ;;
10799aa228fdSmrg
10809aa228fdSmrg  -with-* | --with-*)
10818f65982aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10829aa228fdSmrg    # Reject names that are not valid shell variable names.
10838f65982aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10848f65982aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
10858f65982aSmrg    ac_useropt_orig=$ac_useropt
10868f65982aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10878f65982aSmrg    case $ac_user_opts in
10888f65982aSmrg      *"
10898f65982aSmrg"with_$ac_useropt"
10908f65982aSmrg"*) ;;
10918f65982aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10928f65982aSmrg	 ac_unrecognized_sep=', ';;
10938f65982aSmrg    esac
10948f65982aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
10959aa228fdSmrg
10969aa228fdSmrg  -without-* | --without-*)
10978f65982aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10989aa228fdSmrg    # Reject names that are not valid shell variable names.
10998f65982aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11008f65982aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11018f65982aSmrg    ac_useropt_orig=$ac_useropt
11028f65982aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11038f65982aSmrg    case $ac_user_opts in
11048f65982aSmrg      *"
11058f65982aSmrg"with_$ac_useropt"
11068f65982aSmrg"*) ;;
11078f65982aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11088f65982aSmrg	 ac_unrecognized_sep=', ';;
11098f65982aSmrg    esac
11108f65982aSmrg    eval with_$ac_useropt=no ;;
11119aa228fdSmrg
11129aa228fdSmrg  --x)
11139aa228fdSmrg    # Obsolete; use --with-x.
11149aa228fdSmrg    with_x=yes ;;
11159aa228fdSmrg
11169aa228fdSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11179aa228fdSmrg  | --x-incl | --x-inc | --x-in | --x-i)
11189aa228fdSmrg    ac_prev=x_includes ;;
11199aa228fdSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11209aa228fdSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11219aa228fdSmrg    x_includes=$ac_optarg ;;
11229aa228fdSmrg
11239aa228fdSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11249aa228fdSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11259aa228fdSmrg    ac_prev=x_libraries ;;
11269aa228fdSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11279aa228fdSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11289aa228fdSmrg    x_libraries=$ac_optarg ;;
11299aa228fdSmrg
11308f65982aSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11318f65982aSmrgTry \`$0 --help' for more information"
11329aa228fdSmrg    ;;
11339aa228fdSmrg
11349aa228fdSmrg  *=*)
11359aa228fdSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11369aa228fdSmrg    # Reject names that are not valid shell variable names.
11378f65982aSmrg    case $ac_envvar in #(
11388f65982aSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11398f65982aSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11408f65982aSmrg    esac
11419aa228fdSmrg    eval $ac_envvar=\$ac_optarg
11429aa228fdSmrg    export $ac_envvar ;;
11439aa228fdSmrg
11449aa228fdSmrg  *)
11459aa228fdSmrg    # FIXME: should be removed in autoconf 3.0.
11468f65982aSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11479aa228fdSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11488f65982aSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11498f65982aSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11509aa228fdSmrg    ;;
11519aa228fdSmrg
11529aa228fdSmrg  esac
11539aa228fdSmrgdone
11549aa228fdSmrg
11559aa228fdSmrgif test -n "$ac_prev"; then
11569aa228fdSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11578f65982aSmrg  as_fn_error $? "missing argument to $ac_option"
11588f65982aSmrgfi
11598f65982aSmrg
11608f65982aSmrgif test -n "$ac_unrecognized_opts"; then
11618f65982aSmrg  case $enable_option_checking in
11628f65982aSmrg    no) ;;
11638f65982aSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11648f65982aSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11658f65982aSmrg  esac
11669aa228fdSmrgfi
11679aa228fdSmrg
11688f65982aSmrg# Check all directory arguments for consistency.
11699aa228fdSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11709aa228fdSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11719aa228fdSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11729aa228fdSmrg		libdir localedir mandir
11739aa228fdSmrgdo
11749aa228fdSmrg  eval ac_val=\$$ac_var
11758f65982aSmrg  # Remove trailing slashes.
11768f65982aSmrg  case $ac_val in
11778f65982aSmrg    */ )
11788f65982aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11798f65982aSmrg      eval $ac_var=\$ac_val;;
11808f65982aSmrg  esac
11818f65982aSmrg  # Be sure to have absolute directory names.
11829aa228fdSmrg  case $ac_val in
11839aa228fdSmrg    [\\/$]* | ?:[\\/]* )  continue;;
11849aa228fdSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11859aa228fdSmrg  esac
11868f65982aSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11879aa228fdSmrgdone
11889aa228fdSmrg
11899aa228fdSmrg# There might be people who depend on the old broken behavior: `$host'
11909aa228fdSmrg# used to hold the argument of --host etc.
11919aa228fdSmrg# FIXME: To remove some day.
11929aa228fdSmrgbuild=$build_alias
11939aa228fdSmrghost=$host_alias
11949aa228fdSmrgtarget=$target_alias
11959aa228fdSmrg
11969aa228fdSmrg# FIXME: To remove some day.
11979aa228fdSmrgif test "x$host_alias" != x; then
11989aa228fdSmrg  if test "x$build_alias" = x; then
11999aa228fdSmrg    cross_compiling=maybe
12008f65982aSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12018f65982aSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
12029aa228fdSmrg  elif test "x$build_alias" != "x$host_alias"; then
12039aa228fdSmrg    cross_compiling=yes
12049aa228fdSmrg  fi
12059aa228fdSmrgfi
12069aa228fdSmrg
12079aa228fdSmrgac_tool_prefix=
12089aa228fdSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12099aa228fdSmrg
12109aa228fdSmrgtest "$silent" = yes && exec 6>/dev/null
12119aa228fdSmrg
12129aa228fdSmrg
12139aa228fdSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12149aa228fdSmrgac_ls_di=`ls -di .` &&
12159aa228fdSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12168f65982aSmrg  as_fn_error $? "working directory cannot be determined"
12179aa228fdSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12188f65982aSmrg  as_fn_error $? "pwd does not report name of working directory"
12199aa228fdSmrg
12209aa228fdSmrg
12219aa228fdSmrg# Find the source files, if location was not specified.
12229aa228fdSmrgif test -z "$srcdir"; then
12239aa228fdSmrg  ac_srcdir_defaulted=yes
12249aa228fdSmrg  # Try the directory containing this script, then the parent directory.
12258f65982aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12268f65982aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12278f65982aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12288f65982aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12298f65982aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12308f65982aSmrg$as_echo X"$as_myself" |
12319aa228fdSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12329aa228fdSmrg	    s//\1/
12339aa228fdSmrg	    q
12349aa228fdSmrg	  }
12359aa228fdSmrg	  /^X\(\/\/\)[^/].*/{
12369aa228fdSmrg	    s//\1/
12379aa228fdSmrg	    q
12389aa228fdSmrg	  }
12399aa228fdSmrg	  /^X\(\/\/\)$/{
12409aa228fdSmrg	    s//\1/
12419aa228fdSmrg	    q
12429aa228fdSmrg	  }
12439aa228fdSmrg	  /^X\(\/\).*/{
12449aa228fdSmrg	    s//\1/
12459aa228fdSmrg	    q
12469aa228fdSmrg	  }
12479aa228fdSmrg	  s/.*/./; q'`
12489aa228fdSmrg  srcdir=$ac_confdir
12499aa228fdSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12509aa228fdSmrg    srcdir=..
12519aa228fdSmrg  fi
12529aa228fdSmrgelse
12539aa228fdSmrg  ac_srcdir_defaulted=no
12549aa228fdSmrgfi
12559aa228fdSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12569aa228fdSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12578f65982aSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12589aa228fdSmrgfi
12599aa228fdSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12609aa228fdSmrgac_abs_confdir=`(
12618f65982aSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12629aa228fdSmrg	pwd)`
12639aa228fdSmrg# When building in place, set srcdir=.
12649aa228fdSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12659aa228fdSmrg  srcdir=.
12669aa228fdSmrgfi
12679aa228fdSmrg# Remove unnecessary trailing slashes from srcdir.
12689aa228fdSmrg# Double slashes in file names in object file debugging info
12699aa228fdSmrg# mess up M-x gdb in Emacs.
12709aa228fdSmrgcase $srcdir in
12719aa228fdSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12729aa228fdSmrgesac
12739aa228fdSmrgfor ac_var in $ac_precious_vars; do
12749aa228fdSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12759aa228fdSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
12769aa228fdSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12779aa228fdSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12789aa228fdSmrgdone
12799aa228fdSmrg
12809aa228fdSmrg#
12819aa228fdSmrg# Report the --help message.
12829aa228fdSmrg#
12839aa228fdSmrgif test "$ac_init_help" = "long"; then
12849aa228fdSmrg  # Omit some internal or obsolete options to make the list less imposing.
12859aa228fdSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
12869aa228fdSmrg  cat <<_ACEOF
12878f65982aSmrg\`configure' configures xmag 1.0.4 to adapt to many kinds of systems.
12889aa228fdSmrg
12899aa228fdSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
12909aa228fdSmrg
12919aa228fdSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12929aa228fdSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
12939aa228fdSmrg
12949aa228fdSmrgDefaults for the options are specified in brackets.
12959aa228fdSmrg
12969aa228fdSmrgConfiguration:
12979aa228fdSmrg  -h, --help              display this help and exit
12989aa228fdSmrg      --help=short        display options specific to this package
12999aa228fdSmrg      --help=recursive    display the short help of all the included packages
13009aa228fdSmrg  -V, --version           display version information and exit
13018f65982aSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
13029aa228fdSmrg      --cache-file=FILE   cache test results in FILE [disabled]
13039aa228fdSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13049aa228fdSmrg  -n, --no-create         do not create output files
13059aa228fdSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13069aa228fdSmrg
13079aa228fdSmrgInstallation directories:
13089aa228fdSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13098f65982aSmrg                          [$ac_default_prefix]
13109aa228fdSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13118f65982aSmrg                          [PREFIX]
13129aa228fdSmrg
13139aa228fdSmrgBy default, \`make install' will install all the files in
13149aa228fdSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13159aa228fdSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13169aa228fdSmrgfor instance \`--prefix=\$HOME'.
13179aa228fdSmrg
13189aa228fdSmrgFor better control, use the options below.
13199aa228fdSmrg
13209aa228fdSmrgFine tuning of the installation directories:
13218f65982aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13228f65982aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13238f65982aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13248f65982aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13258f65982aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13268f65982aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13278f65982aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13288f65982aSmrg  --includedir=DIR        C header files [PREFIX/include]
13298f65982aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13308f65982aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13318f65982aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13328f65982aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13338f65982aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13348f65982aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13358f65982aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xmag]
13368f65982aSmrg  --htmldir=DIR           html documentation [DOCDIR]
13378f65982aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13388f65982aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13398f65982aSmrg  --psdir=DIR             ps documentation [DOCDIR]
13409aa228fdSmrg_ACEOF
13419aa228fdSmrg
13429aa228fdSmrg  cat <<\_ACEOF
13439aa228fdSmrg
13449aa228fdSmrgProgram names:
13459aa228fdSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13469aa228fdSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13479aa228fdSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13489aa228fdSmrg
13499aa228fdSmrgSystem types:
13509aa228fdSmrg  --build=BUILD     configure for building on BUILD [guessed]
13519aa228fdSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13529aa228fdSmrg_ACEOF
13539aa228fdSmrgfi
13549aa228fdSmrg
13559aa228fdSmrgif test -n "$ac_init_help"; then
13569aa228fdSmrg  case $ac_init_help in
13578f65982aSmrg     short | recursive ) echo "Configuration of xmag 1.0.4:";;
13589aa228fdSmrg   esac
13599aa228fdSmrg  cat <<\_ACEOF
13609aa228fdSmrg
13619aa228fdSmrgOptional Features:
13628f65982aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
13639aa228fdSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13649aa228fdSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13659aa228fdSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
13669aa228fdSmrg			  (and sometimes confusing) to the casual installer
13679aa228fdSmrg  --disable-dependency-tracking  speeds up one-time build
13689aa228fdSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
13698f65982aSmrg  --enable-strict-compilation
13708f65982aSmrg                          Enable all warnings from compiler and make them
13718f65982aSmrg                          errors (default: disabled)
13728f65982aSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13738f65982aSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
13749aa228fdSmrg
13759aa228fdSmrgOptional Packages:
13769aa228fdSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
13779aa228fdSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
137883d7c197Smrg  --with-appdefaultdir=<pathname>
137983d7c197Smrg                          specify directory for app-defaults files (default is
138083d7c197Smrg                          autodetected)
13819aa228fdSmrg
13829aa228fdSmrgSome influential environment variables:
13839aa228fdSmrg  CC          C compiler command
13849aa228fdSmrg  CFLAGS      C compiler flags
13859aa228fdSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13869aa228fdSmrg              nonstandard directory <lib dir>
13879aa228fdSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
13888f65982aSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13899aa228fdSmrg              you have headers in a nonstandard directory <include dir>
139083d7c197Smrg  CPP         C preprocessor
13919aa228fdSmrg  PKG_CONFIG  path to pkg-config utility
139283d7c197Smrg  XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config
139383d7c197Smrg  XMAG_LIBS   linker flags for XMAG, overriding pkg-config
13949aa228fdSmrg
13959aa228fdSmrgUse these variables to override the choices made by `configure' or to help
13969aa228fdSmrgit to find libraries and programs with nonstandard names/locations.
13979aa228fdSmrg
13989aa228fdSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
13999aa228fdSmrg_ACEOF
14009aa228fdSmrgac_status=$?
14019aa228fdSmrgfi
14029aa228fdSmrg
14039aa228fdSmrgif test "$ac_init_help" = "recursive"; then
14049aa228fdSmrg  # If there are subdirs, report their specific --help.
14059aa228fdSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14068f65982aSmrg    test -d "$ac_dir" ||
14078f65982aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14088f65982aSmrg      continue
14099aa228fdSmrg    ac_builddir=.
14109aa228fdSmrg
14119aa228fdSmrgcase "$ac_dir" in
14129aa228fdSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14139aa228fdSmrg*)
14148f65982aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14159aa228fdSmrg  # A ".." for each directory in $ac_dir_suffix.
14168f65982aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14179aa228fdSmrg  case $ac_top_builddir_sub in
14189aa228fdSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14199aa228fdSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14209aa228fdSmrg  esac ;;
14219aa228fdSmrgesac
14229aa228fdSmrgac_abs_top_builddir=$ac_pwd
14239aa228fdSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14249aa228fdSmrg# for backward compatibility:
14259aa228fdSmrgac_top_builddir=$ac_top_build_prefix
14269aa228fdSmrg
14279aa228fdSmrgcase $srcdir in
14289aa228fdSmrg  .)  # We are building in place.
14299aa228fdSmrg    ac_srcdir=.
14309aa228fdSmrg    ac_top_srcdir=$ac_top_builddir_sub
14319aa228fdSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14329aa228fdSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14339aa228fdSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14349aa228fdSmrg    ac_top_srcdir=$srcdir
14359aa228fdSmrg    ac_abs_top_srcdir=$srcdir ;;
14369aa228fdSmrg  *) # Relative name.
14379aa228fdSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14389aa228fdSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14399aa228fdSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14409aa228fdSmrgesac
14418f65982aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14428f65982aSmrg
14438f65982aSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14448f65982aSmrg    # Check for guested configure.
14458f65982aSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14468f65982aSmrg      echo &&
14478f65982aSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14488f65982aSmrg    elif test -f "$ac_srcdir/configure"; then
14498f65982aSmrg      echo &&
14508f65982aSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14518f65982aSmrg    else
14528f65982aSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14538f65982aSmrg    fi || ac_status=$?
14548f65982aSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14558f65982aSmrg  done
14568f65982aSmrgfi
14578f65982aSmrg
14588f65982aSmrgtest -n "$ac_init_help" && exit $ac_status
14598f65982aSmrgif $ac_init_version; then
14608f65982aSmrg  cat <<\_ACEOF
14618f65982aSmrgxmag configure 1.0.4
14628f65982aSmrggenerated by GNU Autoconf 2.68
14638f65982aSmrg
14648f65982aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
14658f65982aSmrgThis configure script is free software; the Free Software Foundation
14668f65982aSmrggives unlimited permission to copy, distribute and modify it.
14678f65982aSmrg_ACEOF
14688f65982aSmrg  exit
14698f65982aSmrgfi
14708f65982aSmrg
14718f65982aSmrg## ------------------------ ##
14728f65982aSmrg## Autoconf initialization. ##
14738f65982aSmrg## ------------------------ ##
14748f65982aSmrg
14758f65982aSmrg# ac_fn_c_try_compile LINENO
14768f65982aSmrg# --------------------------
14778f65982aSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
14788f65982aSmrgac_fn_c_try_compile ()
14798f65982aSmrg{
14808f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14818f65982aSmrg  rm -f conftest.$ac_objext
14828f65982aSmrg  if { { ac_try="$ac_compile"
14838f65982aSmrgcase "(($ac_try" in
14848f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858f65982aSmrg  *) ac_try_echo=$ac_try;;
14868f65982aSmrgesac
14878f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14888f65982aSmrg$as_echo "$ac_try_echo"; } >&5
14898f65982aSmrg  (eval "$ac_compile") 2>conftest.err
14908f65982aSmrg  ac_status=$?
14918f65982aSmrg  if test -s conftest.err; then
14928f65982aSmrg    grep -v '^ *+' conftest.err >conftest.er1
14938f65982aSmrg    cat conftest.er1 >&5
14948f65982aSmrg    mv -f conftest.er1 conftest.err
14958f65982aSmrg  fi
14968f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14978f65982aSmrg  test $ac_status = 0; } && {
14988f65982aSmrg	 test -z "$ac_c_werror_flag" ||
14998f65982aSmrg	 test ! -s conftest.err
15008f65982aSmrg       } && test -s conftest.$ac_objext; then :
15018f65982aSmrg  ac_retval=0
15028f65982aSmrgelse
15038f65982aSmrg  $as_echo "$as_me: failed program was:" >&5
15048f65982aSmrgsed 's/^/| /' conftest.$ac_ext >&5
15058f65982aSmrg
15068f65982aSmrg	ac_retval=1
15078f65982aSmrgfi
15088f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15098f65982aSmrg  as_fn_set_status $ac_retval
15108f65982aSmrg
15118f65982aSmrg} # ac_fn_c_try_compile
15128f65982aSmrg
15138f65982aSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15148f65982aSmrg# ---------------------------------------------
15158f65982aSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15168f65982aSmrg# accordingly.
15178f65982aSmrgac_fn_c_check_decl ()
15188f65982aSmrg{
15198f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15208f65982aSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15218f65982aSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15228f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15238f65982aSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15248f65982aSmrgif eval \${$3+:} false; then :
15258f65982aSmrg  $as_echo_n "(cached) " >&6
15268f65982aSmrgelse
15278f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288f65982aSmrg/* end confdefs.h.  */
15298f65982aSmrg$4
15308f65982aSmrgint
15318f65982aSmrgmain ()
15328f65982aSmrg{
15338f65982aSmrg#ifndef $as_decl_name
15348f65982aSmrg#ifdef __cplusplus
15358f65982aSmrg  (void) $as_decl_use;
15368f65982aSmrg#else
15378f65982aSmrg  (void) $as_decl_name;
15388f65982aSmrg#endif
15398f65982aSmrg#endif
15408f65982aSmrg
15418f65982aSmrg  ;
15428f65982aSmrg  return 0;
15438f65982aSmrg}
15448f65982aSmrg_ACEOF
15458f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
15468f65982aSmrg  eval "$3=yes"
15478f65982aSmrgelse
15488f65982aSmrg  eval "$3=no"
15498f65982aSmrgfi
15508f65982aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518f65982aSmrgfi
15528f65982aSmrgeval ac_res=\$$3
15538f65982aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15548f65982aSmrg$as_echo "$ac_res" >&6; }
15558f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15568f65982aSmrg
15578f65982aSmrg} # ac_fn_c_check_decl
15588f65982aSmrg
15598f65982aSmrg# ac_fn_c_try_cpp LINENO
15608f65982aSmrg# ----------------------
15618f65982aSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15628f65982aSmrgac_fn_c_try_cpp ()
15638f65982aSmrg{
15648f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15658f65982aSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15668f65982aSmrgcase "(($ac_try" in
15678f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688f65982aSmrg  *) ac_try_echo=$ac_try;;
15698f65982aSmrgesac
15708f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15718f65982aSmrg$as_echo "$ac_try_echo"; } >&5
15728f65982aSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15738f65982aSmrg  ac_status=$?
15748f65982aSmrg  if test -s conftest.err; then
15758f65982aSmrg    grep -v '^ *+' conftest.err >conftest.er1
15768f65982aSmrg    cat conftest.er1 >&5
15778f65982aSmrg    mv -f conftest.er1 conftest.err
15788f65982aSmrg  fi
15798f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15808f65982aSmrg  test $ac_status = 0; } > conftest.i && {
15818f65982aSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15828f65982aSmrg	 test ! -s conftest.err
15838f65982aSmrg       }; then :
15848f65982aSmrg  ac_retval=0
15858f65982aSmrgelse
15868f65982aSmrg  $as_echo "$as_me: failed program was:" >&5
15878f65982aSmrgsed 's/^/| /' conftest.$ac_ext >&5
15888f65982aSmrg
15898f65982aSmrg    ac_retval=1
15908f65982aSmrgfi
15918f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15928f65982aSmrg  as_fn_set_status $ac_retval
15938f65982aSmrg
15948f65982aSmrg} # ac_fn_c_try_cpp
15958f65982aSmrg
15968f65982aSmrg# ac_fn_c_try_run LINENO
15978f65982aSmrg# ----------------------
15988f65982aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
15998f65982aSmrg# that executables *can* be run.
16008f65982aSmrgac_fn_c_try_run ()
16018f65982aSmrg{
16028f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16038f65982aSmrg  if { { ac_try="$ac_link"
16048f65982aSmrgcase "(($ac_try" in
16058f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068f65982aSmrg  *) ac_try_echo=$ac_try;;
16078f65982aSmrgesac
16088f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16098f65982aSmrg$as_echo "$ac_try_echo"; } >&5
16108f65982aSmrg  (eval "$ac_link") 2>&5
16118f65982aSmrg  ac_status=$?
16128f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138f65982aSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16148f65982aSmrg  { { case "(($ac_try" in
16158f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168f65982aSmrg  *) ac_try_echo=$ac_try;;
16178f65982aSmrgesac
16188f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16198f65982aSmrg$as_echo "$ac_try_echo"; } >&5
16208f65982aSmrg  (eval "$ac_try") 2>&5
16218f65982aSmrg  ac_status=$?
16228f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16238f65982aSmrg  test $ac_status = 0; }; }; then :
16248f65982aSmrg  ac_retval=0
16258f65982aSmrgelse
16268f65982aSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16278f65982aSmrg       $as_echo "$as_me: failed program was:" >&5
16288f65982aSmrgsed 's/^/| /' conftest.$ac_ext >&5
16298f65982aSmrg
16308f65982aSmrg       ac_retval=$ac_status
16318f65982aSmrgfi
16328f65982aSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16338f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16348f65982aSmrg  as_fn_set_status $ac_retval
16358f65982aSmrg
16368f65982aSmrg} # ac_fn_c_try_run
16378f65982aSmrg
16388f65982aSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16398f65982aSmrg# -------------------------------------------------------
16408f65982aSmrg# Tests whether HEADER exists and can be compiled using the include files in
16418f65982aSmrg# INCLUDES, setting the cache variable VAR accordingly.
16428f65982aSmrgac_fn_c_check_header_compile ()
16438f65982aSmrg{
16448f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16458f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16468f65982aSmrg$as_echo_n "checking for $2... " >&6; }
16478f65982aSmrgif eval \${$3+:} false; then :
16488f65982aSmrg  $as_echo_n "(cached) " >&6
16498f65982aSmrgelse
16508f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518f65982aSmrg/* end confdefs.h.  */
16528f65982aSmrg$4
16538f65982aSmrg#include <$2>
16548f65982aSmrg_ACEOF
16558f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
16568f65982aSmrg  eval "$3=yes"
16578f65982aSmrgelse
16588f65982aSmrg  eval "$3=no"
16598f65982aSmrgfi
16608f65982aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618f65982aSmrgfi
16628f65982aSmrgeval ac_res=\$$3
16638f65982aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16648f65982aSmrg$as_echo "$ac_res" >&6; }
16658f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16668f65982aSmrg
16678f65982aSmrg} # ac_fn_c_check_header_compile
16688f65982aSmrg
16698f65982aSmrg# ac_fn_c_try_link LINENO
16708f65982aSmrg# -----------------------
16718f65982aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16728f65982aSmrgac_fn_c_try_link ()
16738f65982aSmrg{
16748f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16758f65982aSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
16768f65982aSmrg  if { { ac_try="$ac_link"
16778f65982aSmrgcase "(($ac_try" in
16788f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798f65982aSmrg  *) ac_try_echo=$ac_try;;
16808f65982aSmrgesac
16818f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16828f65982aSmrg$as_echo "$ac_try_echo"; } >&5
16838f65982aSmrg  (eval "$ac_link") 2>conftest.err
16848f65982aSmrg  ac_status=$?
16858f65982aSmrg  if test -s conftest.err; then
16868f65982aSmrg    grep -v '^ *+' conftest.err >conftest.er1
16878f65982aSmrg    cat conftest.er1 >&5
16888f65982aSmrg    mv -f conftest.er1 conftest.err
16898f65982aSmrg  fi
16908f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16918f65982aSmrg  test $ac_status = 0; } && {
16928f65982aSmrg	 test -z "$ac_c_werror_flag" ||
16938f65982aSmrg	 test ! -s conftest.err
16948f65982aSmrg       } && test -s conftest$ac_exeext && {
16958f65982aSmrg	 test "$cross_compiling" = yes ||
16968f65982aSmrg	 $as_test_x conftest$ac_exeext
16978f65982aSmrg       }; then :
16988f65982aSmrg  ac_retval=0
16998f65982aSmrgelse
17008f65982aSmrg  $as_echo "$as_me: failed program was:" >&5
17018f65982aSmrgsed 's/^/| /' conftest.$ac_ext >&5
17029aa228fdSmrg
17038f65982aSmrg	ac_retval=1
17049aa228fdSmrgfi
17058f65982aSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17068f65982aSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17078f65982aSmrg  # interfere with the next link command; also delete a directory that is
17088f65982aSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
17098f65982aSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17108f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17118f65982aSmrg  as_fn_set_status $ac_retval
17129aa228fdSmrg
17138f65982aSmrg} # ac_fn_c_try_link
17149aa228fdSmrg
17158f65982aSmrg# ac_fn_c_check_func LINENO FUNC VAR
17168f65982aSmrg# ----------------------------------
17178f65982aSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17188f65982aSmrgac_fn_c_check_func ()
17198f65982aSmrg{
17208f65982aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17218f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17228f65982aSmrg$as_echo_n "checking for $2... " >&6; }
17238f65982aSmrgif eval \${$3+:} false; then :
17248f65982aSmrg  $as_echo_n "(cached) " >&6
17258f65982aSmrgelse
17268f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278f65982aSmrg/* end confdefs.h.  */
17288f65982aSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17298f65982aSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17308f65982aSmrg#define $2 innocuous_$2
17318f65982aSmrg
17328f65982aSmrg/* System header to define __stub macros and hopefully few prototypes,
17338f65982aSmrg    which can conflict with char $2 (); below.
17348f65982aSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358f65982aSmrg    <limits.h> exists even on freestanding compilers.  */
17368f65982aSmrg
17378f65982aSmrg#ifdef __STDC__
17388f65982aSmrg# include <limits.h>
17398f65982aSmrg#else
17408f65982aSmrg# include <assert.h>
17418f65982aSmrg#endif
17428f65982aSmrg
17438f65982aSmrg#undef $2
17448f65982aSmrg
17458f65982aSmrg/* Override any GCC internal prototype to avoid an error.
17468f65982aSmrg   Use char because int might match the return type of a GCC
17478f65982aSmrg   builtin and then its argument prototype would still apply.  */
17488f65982aSmrg#ifdef __cplusplus
17498f65982aSmrgextern "C"
17508f65982aSmrg#endif
17518f65982aSmrgchar $2 ();
17528f65982aSmrg/* The GNU C library defines this for functions which it implements
17538f65982aSmrg    to always fail with ENOSYS.  Some functions are actually named
17548f65982aSmrg    something starting with __ and the normal name is an alias.  */
17558f65982aSmrg#if defined __stub_$2 || defined __stub___$2
17568f65982aSmrgchoke me
17578f65982aSmrg#endif
17588f65982aSmrg
17598f65982aSmrgint
17608f65982aSmrgmain ()
17618f65982aSmrg{
17628f65982aSmrgreturn $2 ();
17638f65982aSmrg  ;
17648f65982aSmrg  return 0;
17658f65982aSmrg}
17669aa228fdSmrg_ACEOF
17678f65982aSmrgif ac_fn_c_try_link "$LINENO"; then :
17688f65982aSmrg  eval "$3=yes"
17698f65982aSmrgelse
17708f65982aSmrg  eval "$3=no"
17719aa228fdSmrgfi
17728f65982aSmrgrm -f core conftest.err conftest.$ac_objext \
17738f65982aSmrg    conftest$ac_exeext conftest.$ac_ext
17748f65982aSmrgfi
17758f65982aSmrgeval ac_res=\$$3
17768f65982aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17778f65982aSmrg$as_echo "$ac_res" >&6; }
17788f65982aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17798f65982aSmrg
17808f65982aSmrg} # ac_fn_c_check_func
17819aa228fdSmrgcat >config.log <<_ACEOF
17829aa228fdSmrgThis file contains any messages produced by compilers while
17839aa228fdSmrgrunning configure, to aid debugging if configure makes a mistake.
17849aa228fdSmrg
17858f65982aSmrgIt was created by xmag $as_me 1.0.4, which was
17868f65982aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
17879aa228fdSmrg
17889aa228fdSmrg  $ $0 $@
17899aa228fdSmrg
17909aa228fdSmrg_ACEOF
17919aa228fdSmrgexec 5>>config.log
17929aa228fdSmrg{
17939aa228fdSmrgcat <<_ASUNAME
17949aa228fdSmrg## --------- ##
17959aa228fdSmrg## Platform. ##
17969aa228fdSmrg## --------- ##
17979aa228fdSmrg
17989aa228fdSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17999aa228fdSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18009aa228fdSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18019aa228fdSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18029aa228fdSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18039aa228fdSmrg
18049aa228fdSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18059aa228fdSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18069aa228fdSmrg
18079aa228fdSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18089aa228fdSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18099aa228fdSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18109aa228fdSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18119aa228fdSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18129aa228fdSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18139aa228fdSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18149aa228fdSmrg
18159aa228fdSmrg_ASUNAME
18169aa228fdSmrg
18179aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18189aa228fdSmrgfor as_dir in $PATH
18199aa228fdSmrgdo
18209aa228fdSmrg  IFS=$as_save_IFS
18219aa228fdSmrg  test -z "$as_dir" && as_dir=.
18228f65982aSmrg    $as_echo "PATH: $as_dir"
18238f65982aSmrg  done
18249aa228fdSmrgIFS=$as_save_IFS
18259aa228fdSmrg
18269aa228fdSmrg} >&5
18279aa228fdSmrg
18289aa228fdSmrgcat >&5 <<_ACEOF
18299aa228fdSmrg
18309aa228fdSmrg
18319aa228fdSmrg## ----------- ##
18329aa228fdSmrg## Core tests. ##
18339aa228fdSmrg## ----------- ##
18349aa228fdSmrg
18359aa228fdSmrg_ACEOF
18369aa228fdSmrg
18379aa228fdSmrg
18389aa228fdSmrg# Keep a trace of the command line.
18399aa228fdSmrg# Strip out --no-create and --no-recursion so they do not pile up.
18409aa228fdSmrg# Strip out --silent because we don't want to record it for future runs.
18419aa228fdSmrg# Also quote any args containing shell meta-characters.
18429aa228fdSmrg# Make two passes to allow for proper duplicate-argument suppression.
18439aa228fdSmrgac_configure_args=
18449aa228fdSmrgac_configure_args0=
18459aa228fdSmrgac_configure_args1=
18469aa228fdSmrgac_must_keep_next=false
18479aa228fdSmrgfor ac_pass in 1 2
18489aa228fdSmrgdo
18499aa228fdSmrg  for ac_arg
18509aa228fdSmrg  do
18519aa228fdSmrg    case $ac_arg in
18529aa228fdSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18539aa228fdSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18549aa228fdSmrg    | -silent | --silent | --silen | --sile | --sil)
18559aa228fdSmrg      continue ;;
18569aa228fdSmrg    *\'*)
18578f65982aSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18589aa228fdSmrg    esac
18599aa228fdSmrg    case $ac_pass in
18608f65982aSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18619aa228fdSmrg    2)
18628f65982aSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18639aa228fdSmrg      if test $ac_must_keep_next = true; then
18649aa228fdSmrg	ac_must_keep_next=false # Got value, back to normal.
18659aa228fdSmrg      else
18669aa228fdSmrg	case $ac_arg in
18679aa228fdSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18689aa228fdSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18699aa228fdSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18709aa228fdSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18719aa228fdSmrg	    case "$ac_configure_args0 " in
18729aa228fdSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18739aa228fdSmrg	    esac
18749aa228fdSmrg	    ;;
18759aa228fdSmrg	  -* ) ac_must_keep_next=true ;;
18769aa228fdSmrg	esac
18779aa228fdSmrg      fi
18788f65982aSmrg      as_fn_append ac_configure_args " '$ac_arg'"
18799aa228fdSmrg      ;;
18809aa228fdSmrg    esac
18819aa228fdSmrg  done
18829aa228fdSmrgdone
18838f65982aSmrg{ ac_configure_args0=; unset ac_configure_args0;}
18848f65982aSmrg{ ac_configure_args1=; unset ac_configure_args1;}
18859aa228fdSmrg
18869aa228fdSmrg# When interrupted or exit'd, cleanup temporary files, and complete
18879aa228fdSmrg# config.log.  We remove comments because anyway the quotes in there
18889aa228fdSmrg# would cause problems or look ugly.
18899aa228fdSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
18909aa228fdSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18919aa228fdSmrgtrap 'exit_status=$?
18929aa228fdSmrg  # Save into config.log some information that might help in debugging.
18939aa228fdSmrg  {
18949aa228fdSmrg    echo
18959aa228fdSmrg
18968f65982aSmrg    $as_echo "## ---------------- ##
18979aa228fdSmrg## Cache variables. ##
18988f65982aSmrg## ---------------- ##"
18999aa228fdSmrg    echo
19009aa228fdSmrg    # The following way of writing the cache mishandles newlines in values,
19019aa228fdSmrg(
19029aa228fdSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
19039aa228fdSmrg    eval ac_val=\$$ac_var
19049aa228fdSmrg    case $ac_val in #(
19059aa228fdSmrg    *${as_nl}*)
19069aa228fdSmrg      case $ac_var in #(
19078f65982aSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19088f65982aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19099aa228fdSmrg      esac
19109aa228fdSmrg      case $ac_var in #(
19119aa228fdSmrg      _ | IFS | as_nl) ;; #(
19128f65982aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19138f65982aSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
19149aa228fdSmrg      esac ;;
19159aa228fdSmrg    esac
19169aa228fdSmrg  done
19179aa228fdSmrg  (set) 2>&1 |
19189aa228fdSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
19199aa228fdSmrg    *${as_nl}ac_space=\ *)
19209aa228fdSmrg      sed -n \
19219aa228fdSmrg	"s/'\''/'\''\\\\'\'''\''/g;
19229aa228fdSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
19239aa228fdSmrg      ;; #(
19249aa228fdSmrg    *)
19259aa228fdSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19269aa228fdSmrg      ;;
19279aa228fdSmrg    esac |
19289aa228fdSmrg    sort
19299aa228fdSmrg)
19309aa228fdSmrg    echo
19319aa228fdSmrg
19328f65982aSmrg    $as_echo "## ----------------- ##
19339aa228fdSmrg## Output variables. ##
19348f65982aSmrg## ----------------- ##"
19359aa228fdSmrg    echo
19369aa228fdSmrg    for ac_var in $ac_subst_vars
19379aa228fdSmrg    do
19389aa228fdSmrg      eval ac_val=\$$ac_var
19399aa228fdSmrg      case $ac_val in
19408f65982aSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19419aa228fdSmrg      esac
19428f65982aSmrg      $as_echo "$ac_var='\''$ac_val'\''"
19439aa228fdSmrg    done | sort
19449aa228fdSmrg    echo
19459aa228fdSmrg
19469aa228fdSmrg    if test -n "$ac_subst_files"; then
19478f65982aSmrg      $as_echo "## ------------------- ##
19489aa228fdSmrg## File substitutions. ##
19498f65982aSmrg## ------------------- ##"
19509aa228fdSmrg      echo
19519aa228fdSmrg      for ac_var in $ac_subst_files
19529aa228fdSmrg      do
19539aa228fdSmrg	eval ac_val=\$$ac_var
19549aa228fdSmrg	case $ac_val in
19558f65982aSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19569aa228fdSmrg	esac
19578f65982aSmrg	$as_echo "$ac_var='\''$ac_val'\''"
19589aa228fdSmrg      done | sort
19599aa228fdSmrg      echo
19609aa228fdSmrg    fi
19619aa228fdSmrg
19629aa228fdSmrg    if test -s confdefs.h; then
19638f65982aSmrg      $as_echo "## ----------- ##
19649aa228fdSmrg## confdefs.h. ##
19658f65982aSmrg## ----------- ##"
19669aa228fdSmrg      echo
19679aa228fdSmrg      cat confdefs.h
19689aa228fdSmrg      echo
19699aa228fdSmrg    fi
19709aa228fdSmrg    test "$ac_signal" != 0 &&
19718f65982aSmrg      $as_echo "$as_me: caught signal $ac_signal"
19728f65982aSmrg    $as_echo "$as_me: exit $exit_status"
19739aa228fdSmrg  } >&5
19749aa228fdSmrg  rm -f core *.core core.conftest.* &&
19759aa228fdSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19769aa228fdSmrg    exit $exit_status
19779aa228fdSmrg' 0
19789aa228fdSmrgfor ac_signal in 1 2 13 15; do
19798f65982aSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19809aa228fdSmrgdone
19819aa228fdSmrgac_signal=0
19829aa228fdSmrg
19839aa228fdSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
19849aa228fdSmrgrm -f -r conftest* confdefs.h
19859aa228fdSmrg
19868f65982aSmrg$as_echo "/* confdefs.h */" > confdefs.h
19878f65982aSmrg
19889aa228fdSmrg# Predefined preprocessor variables.
19899aa228fdSmrg
19909aa228fdSmrgcat >>confdefs.h <<_ACEOF
19919aa228fdSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
19929aa228fdSmrg_ACEOF
19939aa228fdSmrg
19949aa228fdSmrgcat >>confdefs.h <<_ACEOF
19959aa228fdSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
19969aa228fdSmrg_ACEOF
19979aa228fdSmrg
19989aa228fdSmrgcat >>confdefs.h <<_ACEOF
19999aa228fdSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
20009aa228fdSmrg_ACEOF
20019aa228fdSmrg
20029aa228fdSmrgcat >>confdefs.h <<_ACEOF
20039aa228fdSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
20049aa228fdSmrg_ACEOF
20059aa228fdSmrg
20069aa228fdSmrgcat >>confdefs.h <<_ACEOF
20079aa228fdSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
20089aa228fdSmrg_ACEOF
20099aa228fdSmrg
20108f65982aSmrgcat >>confdefs.h <<_ACEOF
20118f65982aSmrg#define PACKAGE_URL "$PACKAGE_URL"
20128f65982aSmrg_ACEOF
20138f65982aSmrg
20149aa228fdSmrg
20159aa228fdSmrg# Let the site file select an alternate cache file if it wants to.
20168f65982aSmrg# Prefer an explicitly selected file to automatically selected ones.
20178f65982aSmrgac_site_file1=NONE
20188f65982aSmrgac_site_file2=NONE
20199aa228fdSmrgif test -n "$CONFIG_SITE"; then
20208f65982aSmrg  # We do not want a PATH search for config.site.
20218f65982aSmrg  case $CONFIG_SITE in #((
20228f65982aSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
20238f65982aSmrg    */*) ac_site_file1=$CONFIG_SITE;;
20248f65982aSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
20258f65982aSmrg  esac
20269aa228fdSmrgelif test "x$prefix" != xNONE; then
20278f65982aSmrg  ac_site_file1=$prefix/share/config.site
20288f65982aSmrg  ac_site_file2=$prefix/etc/config.site
20299aa228fdSmrgelse
20308f65982aSmrg  ac_site_file1=$ac_default_prefix/share/config.site
20318f65982aSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
20329aa228fdSmrgfi
20338f65982aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
20349aa228fdSmrgdo
20358f65982aSmrg  test "x$ac_site_file" = xNONE && continue
20368f65982aSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
20378f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20388f65982aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
20399aa228fdSmrg    sed 's/^/| /' "$ac_site_file" >&5
20408f65982aSmrg    . "$ac_site_file" \
20418f65982aSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20428f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20438f65982aSmrgas_fn_error $? "failed to load site script $ac_site_file
20448f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
20459aa228fdSmrg  fi
20469aa228fdSmrgdone
20479aa228fdSmrg
20489aa228fdSmrgif test -r "$cache_file"; then
20498f65982aSmrg  # Some versions of bash will fail to source /dev/null (special files
20508f65982aSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20518f65982aSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20528f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20538f65982aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
20549aa228fdSmrg    case $cache_file in
20559aa228fdSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
20569aa228fdSmrg      *)                      . "./$cache_file";;
20579aa228fdSmrg    esac
20589aa228fdSmrg  fi
20599aa228fdSmrgelse
20608f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20618f65982aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
20629aa228fdSmrg  >$cache_file
20639aa228fdSmrgfi
20649aa228fdSmrg
20659aa228fdSmrg# Check that the precious variables saved in the cache have kept the same
20669aa228fdSmrg# value.
20679aa228fdSmrgac_cache_corrupted=false
20689aa228fdSmrgfor ac_var in $ac_precious_vars; do
20699aa228fdSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
20709aa228fdSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
20719aa228fdSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
20729aa228fdSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
20739aa228fdSmrg  case $ac_old_set,$ac_new_set in
20749aa228fdSmrg    set,)
20758f65982aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20768f65982aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
20779aa228fdSmrg      ac_cache_corrupted=: ;;
20789aa228fdSmrg    ,set)
20798f65982aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
20808f65982aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
20819aa228fdSmrg      ac_cache_corrupted=: ;;
20829aa228fdSmrg    ,);;
20839aa228fdSmrg    *)
20849aa228fdSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
20858f65982aSmrg	# differences in whitespace do not lead to failure.
20868f65982aSmrg	ac_old_val_w=`echo x $ac_old_val`
20878f65982aSmrg	ac_new_val_w=`echo x $ac_new_val`
20888f65982aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
20898f65982aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
20908f65982aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20918f65982aSmrg	  ac_cache_corrupted=:
20928f65982aSmrg	else
20938f65982aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
20948f65982aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
20958f65982aSmrg	  eval $ac_var=\$ac_old_val
20968f65982aSmrg	fi
20978f65982aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
20988f65982aSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
20998f65982aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
21008f65982aSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
21019aa228fdSmrg      fi;;
21029aa228fdSmrg  esac
21039aa228fdSmrg  # Pass precious variables to config.status.
21049aa228fdSmrg  if test "$ac_new_set" = set; then
21059aa228fdSmrg    case $ac_new_val in
21068f65982aSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
21079aa228fdSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
21089aa228fdSmrg    esac
21099aa228fdSmrg    case " $ac_configure_args " in
21109aa228fdSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
21118f65982aSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
21129aa228fdSmrg    esac
21139aa228fdSmrg  fi
21149aa228fdSmrgdone
21159aa228fdSmrgif $ac_cache_corrupted; then
21168f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21178f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21188f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
21198f65982aSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
21208f65982aSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
21219aa228fdSmrgfi
21228f65982aSmrg## -------------------- ##
21238f65982aSmrg## Main body of script. ##
21248f65982aSmrg## -------------------- ##
21259aa228fdSmrg
21269aa228fdSmrgac_ext=c
21279aa228fdSmrgac_cpp='$CPP $CPPFLAGS'
21289aa228fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21299aa228fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21309aa228fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
21319aa228fdSmrg
21329aa228fdSmrg
21338f65982aSmrgam__api_version='1.11'
21349aa228fdSmrg
21359aa228fdSmrgac_aux_dir=
21369aa228fdSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21379aa228fdSmrg  if test -f "$ac_dir/install-sh"; then
21389aa228fdSmrg    ac_aux_dir=$ac_dir
21399aa228fdSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
21409aa228fdSmrg    break
21419aa228fdSmrg  elif test -f "$ac_dir/install.sh"; then
21429aa228fdSmrg    ac_aux_dir=$ac_dir
21439aa228fdSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
21449aa228fdSmrg    break
21459aa228fdSmrg  elif test -f "$ac_dir/shtool"; then
21469aa228fdSmrg    ac_aux_dir=$ac_dir
21479aa228fdSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
21489aa228fdSmrg    break
21499aa228fdSmrg  fi
21509aa228fdSmrgdone
21519aa228fdSmrgif test -z "$ac_aux_dir"; then
21528f65982aSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
21539aa228fdSmrgfi
21549aa228fdSmrg
21559aa228fdSmrg# These three variables are undocumented and unsupported,
21569aa228fdSmrg# and are intended to be withdrawn in a future Autoconf release.
21579aa228fdSmrg# They can cause serious problems if a builder's source tree is in a directory
21589aa228fdSmrg# whose full name contains unusual characters.
21599aa228fdSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
21609aa228fdSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
21619aa228fdSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
21629aa228fdSmrg
21639aa228fdSmrg
21649aa228fdSmrg# Find a good install program.  We prefer a C program (faster),
21659aa228fdSmrg# so one script is as good as another.  But avoid the broken or
21669aa228fdSmrg# incompatible versions:
21679aa228fdSmrg# SysV /etc/install, /usr/sbin/install
21689aa228fdSmrg# SunOS /usr/etc/install
21699aa228fdSmrg# IRIX /sbin/install
21709aa228fdSmrg# AIX /bin/install
21719aa228fdSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
21729aa228fdSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21739aa228fdSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21749aa228fdSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21759aa228fdSmrg# OS/2's system install, which has a completely different semantic
21769aa228fdSmrg# ./install, which can be erroneously created by make from ./install.sh.
21778f65982aSmrg# Reject install programs that cannot install multiple files.
21788f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
21798f65982aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
21809aa228fdSmrgif test -z "$INSTALL"; then
21818f65982aSmrgif ${ac_cv_path_install+:} false; then :
21828f65982aSmrg  $as_echo_n "(cached) " >&6
21839aa228fdSmrgelse
21849aa228fdSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859aa228fdSmrgfor as_dir in $PATH
21869aa228fdSmrgdo
21879aa228fdSmrg  IFS=$as_save_IFS
21889aa228fdSmrg  test -z "$as_dir" && as_dir=.
21898f65982aSmrg    # Account for people who put trailing slashes in PATH elements.
21908f65982aSmrgcase $as_dir/ in #((
21918f65982aSmrg  ./ | .// | /[cC]/* | \
21929aa228fdSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21938f65982aSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
21949aa228fdSmrg  /usr/ucb/* ) ;;
21959aa228fdSmrg  *)
21969aa228fdSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
21979aa228fdSmrg    # Don't use installbsd from OSF since it installs stuff as root
21989aa228fdSmrg    # by default.
21999aa228fdSmrg    for ac_prog in ginstall scoinst install; do
22009aa228fdSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
22019aa228fdSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
22029aa228fdSmrg	  if test $ac_prog = install &&
22039aa228fdSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22049aa228fdSmrg	    # AIX install.  It has an incompatible calling convention.
22059aa228fdSmrg	    :
22069aa228fdSmrg	  elif test $ac_prog = install &&
22079aa228fdSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22089aa228fdSmrg	    # program-specific install script used by HP pwplus--don't use.
22099aa228fdSmrg	    :
22109aa228fdSmrg	  else
22118f65982aSmrg	    rm -rf conftest.one conftest.two conftest.dir
22128f65982aSmrg	    echo one > conftest.one
22138f65982aSmrg	    echo two > conftest.two
22148f65982aSmrg	    mkdir conftest.dir
22158f65982aSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22168f65982aSmrg	      test -s conftest.one && test -s conftest.two &&
22178f65982aSmrg	      test -s conftest.dir/conftest.one &&
22188f65982aSmrg	      test -s conftest.dir/conftest.two
22198f65982aSmrg	    then
22208f65982aSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22218f65982aSmrg	      break 3
22228f65982aSmrg	    fi
22239aa228fdSmrg	  fi
22249aa228fdSmrg	fi
22259aa228fdSmrg      done
22269aa228fdSmrg    done
22279aa228fdSmrg    ;;
22289aa228fdSmrgesac
22298f65982aSmrg
22308f65982aSmrg  done
22318f65982aSmrgIFS=$as_save_IFS
22328f65982aSmrg
22338f65982aSmrgrm -rf conftest.one conftest.two conftest.dir
22348f65982aSmrg
22358f65982aSmrgfi
22368f65982aSmrg  if test "${ac_cv_path_install+set}" = set; then
22378f65982aSmrg    INSTALL=$ac_cv_path_install
22388f65982aSmrg  else
22398f65982aSmrg    # As a last resort, use the slow shell script.  Don't cache a
22408f65982aSmrg    # value for INSTALL within a source directory, because that will
22418f65982aSmrg    # break other packages using the cache if that directory is
22428f65982aSmrg    # removed, or if the value is a relative name.
22438f65982aSmrg    INSTALL=$ac_install_sh
22448f65982aSmrg  fi
22458f65982aSmrgfi
22468f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22478f65982aSmrg$as_echo "$INSTALL" >&6; }
22488f65982aSmrg
22498f65982aSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22508f65982aSmrg# It thinks the first close brace ends the variable substitution.
22518f65982aSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22528f65982aSmrg
22538f65982aSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22548f65982aSmrg
22558f65982aSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22568f65982aSmrg
22578f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
22588f65982aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
22598f65982aSmrg# Just in case
22608f65982aSmrgsleep 1
22618f65982aSmrgecho timestamp > conftest.file
22628f65982aSmrg# Reject unsafe characters in $srcdir or the absolute working directory
22638f65982aSmrg# name.  Accept space and tab only in the latter.
22648f65982aSmrgam_lf='
22658f65982aSmrg'
22668f65982aSmrgcase `pwd` in
22678f65982aSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
22688f65982aSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
22698f65982aSmrgesac
22708f65982aSmrgcase $srcdir in
22718f65982aSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
22728f65982aSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
22738f65982aSmrgesac
22748f65982aSmrg
22758f65982aSmrg# Do `set' in a subshell so we don't clobber the current shell's
22768f65982aSmrg# arguments.  Must try -L first in case configure is actually a
22778f65982aSmrg# symlink; some systems play weird games with the mod time of symlinks
22788f65982aSmrg# (eg FreeBSD returns the mod time of the symlink's containing
22798f65982aSmrg# directory).
22808f65982aSmrgif (
22818f65982aSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
22828f65982aSmrg   if test "$*" = "X"; then
22838f65982aSmrg      # -L didn't work.
22848f65982aSmrg      set X `ls -t "$srcdir/configure" conftest.file`
22858f65982aSmrg   fi
22868f65982aSmrg   rm -f conftest.file
22878f65982aSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
22888f65982aSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
22898f65982aSmrg
22908f65982aSmrg      # If neither matched, then we have a broken ls.  This can happen
22918f65982aSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
22928f65982aSmrg      # broken ls alias from the environment.  This has actually
22938f65982aSmrg      # happened.  Such a system could not be considered "sane".
22948f65982aSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
22958f65982aSmrgalias in your environment" "$LINENO" 5
22968f65982aSmrg   fi
22978f65982aSmrg
22988f65982aSmrg   test "$2" = conftest.file
22998f65982aSmrg   )
23008f65982aSmrgthen
23018f65982aSmrg   # Ok.
23028f65982aSmrg   :
23038f65982aSmrgelse
23048f65982aSmrg   as_fn_error $? "newly created file is older than distributed files!
23058f65982aSmrgCheck your system clock" "$LINENO" 5
23068f65982aSmrgfi
23078f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23088f65982aSmrg$as_echo "yes" >&6; }
23098f65982aSmrgtest "$program_prefix" != NONE &&
23108f65982aSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
23118f65982aSmrg# Use a double $ so make ignores it.
23128f65982aSmrgtest "$program_suffix" != NONE &&
23138f65982aSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23148f65982aSmrg# Double any \ or $.
23158f65982aSmrg# By default was `s,x,x', remove it if useless.
23168f65982aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23178f65982aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
23188f65982aSmrg
23198f65982aSmrg# expand $ac_aux_dir to an absolute path
23208f65982aSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
23218f65982aSmrg
23228f65982aSmrgif test x"${MISSING+set}" != xset; then
23238f65982aSmrg  case $am_aux_dir in
23248f65982aSmrg  *\ * | *\	*)
23258f65982aSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23268f65982aSmrg  *)
23278f65982aSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23288f65982aSmrg  esac
23298f65982aSmrgfi
23308f65982aSmrg# Use eval to expand $SHELL
23318f65982aSmrgif eval "$MISSING --run true"; then
23328f65982aSmrg  am_missing_run="$MISSING --run "
23338f65982aSmrgelse
23348f65982aSmrg  am_missing_run=
23358f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
23368f65982aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23378f65982aSmrgfi
23388f65982aSmrg
23398f65982aSmrgif test x"${install_sh}" != xset; then
23408f65982aSmrg  case $am_aux_dir in
23418f65982aSmrg  *\ * | *\	*)
23428f65982aSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23438f65982aSmrg  *)
23448f65982aSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23458f65982aSmrg  esac
23468f65982aSmrgfi
23478f65982aSmrg
23488f65982aSmrg# Installed binaries are usually stripped using `strip' when the user
23498f65982aSmrg# run `make install-strip'.  However `strip' might not be the right
23508f65982aSmrg# tool to use in cross-compilation environments, therefore Automake
23518f65982aSmrg# will honor the `STRIP' environment variable to overrule this program.
23528f65982aSmrgif test "$cross_compiling" != no; then
23538f65982aSmrg  if test -n "$ac_tool_prefix"; then
23548f65982aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23558f65982aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
23568f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23578f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
23588f65982aSmrgif ${ac_cv_prog_STRIP+:} false; then :
23598f65982aSmrg  $as_echo_n "(cached) " >&6
23608f65982aSmrgelse
23618f65982aSmrg  if test -n "$STRIP"; then
23628f65982aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
23638f65982aSmrgelse
23648f65982aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23658f65982aSmrgfor as_dir in $PATH
23668f65982aSmrgdo
23678f65982aSmrg  IFS=$as_save_IFS
23688f65982aSmrg  test -z "$as_dir" && as_dir=.
23698f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
23708f65982aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23718f65982aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23728f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23738f65982aSmrg    break 2
23748f65982aSmrg  fi
23758f65982aSmrgdone
23768f65982aSmrg  done
23778f65982aSmrgIFS=$as_save_IFS
23788f65982aSmrg
23798f65982aSmrgfi
23808f65982aSmrgfi
23818f65982aSmrgSTRIP=$ac_cv_prog_STRIP
23828f65982aSmrgif test -n "$STRIP"; then
23838f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
23848f65982aSmrg$as_echo "$STRIP" >&6; }
23858f65982aSmrgelse
23868f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878f65982aSmrg$as_echo "no" >&6; }
23888f65982aSmrgfi
23898f65982aSmrg
23908f65982aSmrg
23918f65982aSmrgfi
23928f65982aSmrgif test -z "$ac_cv_prog_STRIP"; then
23938f65982aSmrg  ac_ct_STRIP=$STRIP
23948f65982aSmrg  # Extract the first word of "strip", so it can be a program name with args.
23958f65982aSmrgset dummy strip; ac_word=$2
23968f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23978f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
23988f65982aSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
23998f65982aSmrg  $as_echo_n "(cached) " >&6
24008f65982aSmrgelse
24018f65982aSmrg  if test -n "$ac_ct_STRIP"; then
24028f65982aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24038f65982aSmrgelse
24048f65982aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24058f65982aSmrgfor as_dir in $PATH
24068f65982aSmrgdo
24078f65982aSmrg  IFS=$as_save_IFS
24088f65982aSmrg  test -z "$as_dir" && as_dir=.
24098f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
24108f65982aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24118f65982aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
24128f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24138f65982aSmrg    break 2
24148f65982aSmrg  fi
24159aa228fdSmrgdone
24168f65982aSmrg  done
24179aa228fdSmrgIFS=$as_save_IFS
24189aa228fdSmrg
24199aa228fdSmrgfi
24209aa228fdSmrgfi
24218f65982aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24228f65982aSmrgif test -n "$ac_ct_STRIP"; then
24238f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24248f65982aSmrg$as_echo "$ac_ct_STRIP" >&6; }
24259aa228fdSmrgelse
24268f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24278f65982aSmrg$as_echo "no" >&6; }
24289aa228fdSmrgfi
24299aa228fdSmrg
24308f65982aSmrg  if test "x$ac_ct_STRIP" = x; then
24318f65982aSmrg    STRIP=":"
24328f65982aSmrg  else
24338f65982aSmrg    case $cross_compiling:$ac_tool_warned in
24348f65982aSmrgyes:)
24358f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24368f65982aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24378f65982aSmrgac_tool_warned=yes ;;
24388f65982aSmrgesac
24398f65982aSmrg    STRIP=$ac_ct_STRIP
24408f65982aSmrg  fi
24419aa228fdSmrgelse
24428f65982aSmrg  STRIP="$ac_cv_prog_STRIP"
24438f65982aSmrgfi
24448f65982aSmrg
24459aa228fdSmrgfi
24468f65982aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24479aa228fdSmrg
24488f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
24498f65982aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
24509aa228fdSmrgif test -z "$MKDIR_P"; then
24518f65982aSmrg  if ${ac_cv_path_mkdir+:} false; then :
24528f65982aSmrg  $as_echo_n "(cached) " >&6
24539aa228fdSmrgelse
24549aa228fdSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24559aa228fdSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
24569aa228fdSmrgdo
24579aa228fdSmrg  IFS=$as_save_IFS
24589aa228fdSmrg  test -z "$as_dir" && as_dir=.
24598f65982aSmrg    for ac_prog in mkdir gmkdir; do
24609aa228fdSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
24619aa228fdSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
24629aa228fdSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24639aa228fdSmrg	     'mkdir (GNU coreutils) '* | \
24649aa228fdSmrg	     'mkdir (coreutils) '* | \
24659aa228fdSmrg	     'mkdir (fileutils) '4.1*)
24669aa228fdSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
24679aa228fdSmrg	       break 3;;
24689aa228fdSmrg	   esac
24699aa228fdSmrg	 done
24709aa228fdSmrg       done
24718f65982aSmrg  done
24729aa228fdSmrgIFS=$as_save_IFS
24739aa228fdSmrg
24749aa228fdSmrgfi
24759aa228fdSmrg
24768f65982aSmrg  test -d ./--version && rmdir ./--version
24779aa228fdSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
24789aa228fdSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
24799aa228fdSmrg  else
24809aa228fdSmrg    # As a last resort, use the slow shell script.  Don't cache a
24819aa228fdSmrg    # value for MKDIR_P within a source directory, because that will
24829aa228fdSmrg    # break other packages using the cache if that directory is
24839aa228fdSmrg    # removed, or if the value is a relative name.
24849aa228fdSmrg    MKDIR_P="$ac_install_sh -d"
24859aa228fdSmrg  fi
24869aa228fdSmrgfi
24878f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
24888f65982aSmrg$as_echo "$MKDIR_P" >&6; }
24899aa228fdSmrg
24909aa228fdSmrgmkdir_p="$MKDIR_P"
24919aa228fdSmrgcase $mkdir_p in
24929aa228fdSmrg  [\\/$]* | ?:[\\/]*) ;;
24939aa228fdSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
24949aa228fdSmrgesac
24959aa228fdSmrg
24969aa228fdSmrgfor ac_prog in gawk mawk nawk awk
24979aa228fdSmrgdo
24989aa228fdSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
24999aa228fdSmrgset dummy $ac_prog; ac_word=$2
25008f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25018f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
25028f65982aSmrgif ${ac_cv_prog_AWK+:} false; then :
25038f65982aSmrg  $as_echo_n "(cached) " >&6
25049aa228fdSmrgelse
25059aa228fdSmrg  if test -n "$AWK"; then
25069aa228fdSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
25079aa228fdSmrgelse
25089aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25099aa228fdSmrgfor as_dir in $PATH
25109aa228fdSmrgdo
25119aa228fdSmrg  IFS=$as_save_IFS
25129aa228fdSmrg  test -z "$as_dir" && as_dir=.
25138f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
25149aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25159aa228fdSmrg    ac_cv_prog_AWK="$ac_prog"
25168f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25179aa228fdSmrg    break 2
25189aa228fdSmrg  fi
25199aa228fdSmrgdone
25208f65982aSmrg  done
25219aa228fdSmrgIFS=$as_save_IFS
25229aa228fdSmrg
25239aa228fdSmrgfi
25249aa228fdSmrgfi
25259aa228fdSmrgAWK=$ac_cv_prog_AWK
25269aa228fdSmrgif test -n "$AWK"; then
25278f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25288f65982aSmrg$as_echo "$AWK" >&6; }
25299aa228fdSmrgelse
25308f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25318f65982aSmrg$as_echo "no" >&6; }
25329aa228fdSmrgfi
25339aa228fdSmrg
25349aa228fdSmrg
25359aa228fdSmrg  test -n "$AWK" && break
25369aa228fdSmrgdone
25379aa228fdSmrg
25388f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25398f65982aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25408f65982aSmrgset x ${MAKE-make}
25418f65982aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25428f65982aSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25438f65982aSmrg  $as_echo_n "(cached) " >&6
25449aa228fdSmrgelse
25459aa228fdSmrg  cat >conftest.make <<\_ACEOF
25469aa228fdSmrgSHELL = /bin/sh
25479aa228fdSmrgall:
25489aa228fdSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
25499aa228fdSmrg_ACEOF
25508f65982aSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25519aa228fdSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
25529aa228fdSmrg  *@@@%%%=?*=@@@%%%*)
25539aa228fdSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
25549aa228fdSmrg  *)
25559aa228fdSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
25569aa228fdSmrgesac
25579aa228fdSmrgrm -f conftest.make
25589aa228fdSmrgfi
25599aa228fdSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25608f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25618f65982aSmrg$as_echo "yes" >&6; }
25629aa228fdSmrg  SET_MAKE=
25639aa228fdSmrgelse
25648f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25658f65982aSmrg$as_echo "no" >&6; }
25669aa228fdSmrg  SET_MAKE="MAKE=${MAKE-make}"
25679aa228fdSmrgfi
25689aa228fdSmrg
25699aa228fdSmrgrm -rf .tst 2>/dev/null
25709aa228fdSmrgmkdir .tst 2>/dev/null
25719aa228fdSmrgif test -d .tst; then
25729aa228fdSmrg  am__leading_dot=.
25739aa228fdSmrgelse
25749aa228fdSmrg  am__leading_dot=_
25759aa228fdSmrgfi
25769aa228fdSmrgrmdir .tst 2>/dev/null
25779aa228fdSmrg
25789aa228fdSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
25799aa228fdSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25809aa228fdSmrg  # is not polluted with repeated "-I."
25819aa228fdSmrg  am__isrc=' -I$(srcdir)'
25829aa228fdSmrg  # test to see if srcdir already configured
25839aa228fdSmrg  if test -f $srcdir/config.status; then
25848f65982aSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25859aa228fdSmrg  fi
25869aa228fdSmrgfi
25879aa228fdSmrg
25889aa228fdSmrg# test whether we have cygpath
25899aa228fdSmrgif test -z "$CYGPATH_W"; then
25909aa228fdSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
25919aa228fdSmrg    CYGPATH_W='cygpath -w'
25929aa228fdSmrg  else
25939aa228fdSmrg    CYGPATH_W=echo
25949aa228fdSmrg  fi
25959aa228fdSmrgfi
25969aa228fdSmrg
25979aa228fdSmrg
25989aa228fdSmrg# Define the identity of the package.
25999aa228fdSmrg PACKAGE='xmag'
26008f65982aSmrg VERSION='1.0.4'
26019aa228fdSmrg
26029aa228fdSmrg
26039aa228fdSmrgcat >>confdefs.h <<_ACEOF
26049aa228fdSmrg#define PACKAGE "$PACKAGE"
26059aa228fdSmrg_ACEOF
26069aa228fdSmrg
26079aa228fdSmrg
26089aa228fdSmrgcat >>confdefs.h <<_ACEOF
26099aa228fdSmrg#define VERSION "$VERSION"
26109aa228fdSmrg_ACEOF
26119aa228fdSmrg
26129aa228fdSmrg# Some tools Automake needs.
26139aa228fdSmrg
26149aa228fdSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26159aa228fdSmrg
26169aa228fdSmrg
26179aa228fdSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26189aa228fdSmrg
26199aa228fdSmrg
26209aa228fdSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26219aa228fdSmrg
26229aa228fdSmrg
26239aa228fdSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26249aa228fdSmrg
26259aa228fdSmrg
26269aa228fdSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26279aa228fdSmrg
26289aa228fdSmrg# We need awk for the "check" target.  The system "awk" is bad on
26299aa228fdSmrg# some platforms.
26309aa228fdSmrg# Always define AMTAR for backward compatibility.
26319aa228fdSmrg
26329aa228fdSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
26339aa228fdSmrg
26349aa228fdSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
26359aa228fdSmrg
26369aa228fdSmrg
26379aa228fdSmrg
26389aa228fdSmrg
26399aa228fdSmrg
26408f65982aSmrg
26418f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26428f65982aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26439aa228fdSmrg    # Check whether --enable-maintainer-mode was given.
26448f65982aSmrgif test "${enable_maintainer_mode+set}" = set; then :
26459aa228fdSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26469aa228fdSmrgelse
26479aa228fdSmrg  USE_MAINTAINER_MODE=no
26489aa228fdSmrgfi
26499aa228fdSmrg
26508f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
26518f65982aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
26529aa228fdSmrg   if test $USE_MAINTAINER_MODE = yes; then
26539aa228fdSmrg  MAINTAINER_MODE_TRUE=
26549aa228fdSmrg  MAINTAINER_MODE_FALSE='#'
26559aa228fdSmrgelse
26569aa228fdSmrg  MAINTAINER_MODE_TRUE='#'
26579aa228fdSmrg  MAINTAINER_MODE_FALSE=
26589aa228fdSmrgfi
26599aa228fdSmrg
26609aa228fdSmrg  MAINT=$MAINTAINER_MODE_TRUE
26619aa228fdSmrg
26629aa228fdSmrg
26639aa228fdSmrg
26648f65982aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
266583d7c197Smrg
266683d7c197Smrg
266783d7c197Smrg
266883d7c197Smrg
266983d7c197Smrg
267083d7c197Smrg
267183d7c197Smrg
267283d7c197Smrg
267383d7c197Smrg
267483d7c197Smrg
267583d7c197Smrg
26768f65982aSmrgDEPDIR="${am__leading_dot}deps"
267783d7c197Smrg
26788f65982aSmrgac_config_commands="$ac_config_commands depfiles"
26798f65982aSmrg
26808f65982aSmrg
26818f65982aSmrgam_make=${MAKE-make}
26828f65982aSmrgcat > confinc << 'END'
26838f65982aSmrgam__doit:
26848f65982aSmrg	@echo this is the am__doit target
26858f65982aSmrg.PHONY: am__doit
26868f65982aSmrgEND
26878f65982aSmrg# If we don't find an include directive, just comment out the code.
26888f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26898f65982aSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
26908f65982aSmrgam__include="#"
26918f65982aSmrgam__quote=
26928f65982aSmrg_am_result=none
26938f65982aSmrg# First try GNU make style include.
26948f65982aSmrgecho "include confinc" > confmf
26958f65982aSmrg# Ignore all kinds of additional output from `make'.
26968f65982aSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
26978f65982aSmrg*the\ am__doit\ target*)
26988f65982aSmrg  am__include=include
26998f65982aSmrg  am__quote=
27008f65982aSmrg  _am_result=GNU
27018f65982aSmrg  ;;
27028f65982aSmrgesac
27038f65982aSmrg# Now try BSD make style include.
27048f65982aSmrgif test "$am__include" = "#"; then
27058f65982aSmrg   echo '.include "confinc"' > confmf
27068f65982aSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27078f65982aSmrg   *the\ am__doit\ target*)
27088f65982aSmrg     am__include=.include
27098f65982aSmrg     am__quote="\""
27108f65982aSmrg     _am_result=BSD
27118f65982aSmrg     ;;
27128f65982aSmrg   esac
27138f65982aSmrgfi
27148f65982aSmrg
27158f65982aSmrg
27168f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27178f65982aSmrg$as_echo "$_am_result" >&6; }
27188f65982aSmrgrm -f confinc confmf
27198f65982aSmrg
27208f65982aSmrg# Check whether --enable-dependency-tracking was given.
27218f65982aSmrgif test "${enable_dependency_tracking+set}" = set; then :
27228f65982aSmrg  enableval=$enable_dependency_tracking;
27238f65982aSmrgfi
27248f65982aSmrg
27258f65982aSmrgif test "x$enable_dependency_tracking" != xno; then
27268f65982aSmrg  am_depcomp="$ac_aux_dir/depcomp"
27278f65982aSmrg  AMDEPBACKSLASH='\'
27288f65982aSmrgfi
27298f65982aSmrg if test "x$enable_dependency_tracking" != xno; then
27308f65982aSmrg  AMDEP_TRUE=
27318f65982aSmrg  AMDEP_FALSE='#'
27328f65982aSmrgelse
27338f65982aSmrg  AMDEP_TRUE='#'
27348f65982aSmrg  AMDEP_FALSE=
27358f65982aSmrgfi
27369aa228fdSmrg
27379aa228fdSmrg
27389aa228fdSmrgac_ext=c
27399aa228fdSmrgac_cpp='$CPP $CPPFLAGS'
27409aa228fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27419aa228fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27429aa228fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27439aa228fdSmrgif test -n "$ac_tool_prefix"; then
27449aa228fdSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27459aa228fdSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27468f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27478f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27488f65982aSmrgif ${ac_cv_prog_CC+:} false; then :
27498f65982aSmrg  $as_echo_n "(cached) " >&6
27509aa228fdSmrgelse
27519aa228fdSmrg  if test -n "$CC"; then
27529aa228fdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27539aa228fdSmrgelse
27549aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27559aa228fdSmrgfor as_dir in $PATH
27569aa228fdSmrgdo
27579aa228fdSmrg  IFS=$as_save_IFS
27589aa228fdSmrg  test -z "$as_dir" && as_dir=.
27598f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
27609aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27619aa228fdSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
27628f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27639aa228fdSmrg    break 2
27649aa228fdSmrg  fi
27659aa228fdSmrgdone
27668f65982aSmrg  done
27679aa228fdSmrgIFS=$as_save_IFS
27689aa228fdSmrg
27699aa228fdSmrgfi
27709aa228fdSmrgfi
27719aa228fdSmrgCC=$ac_cv_prog_CC
27729aa228fdSmrgif test -n "$CC"; then
27738f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27748f65982aSmrg$as_echo "$CC" >&6; }
27759aa228fdSmrgelse
27768f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27778f65982aSmrg$as_echo "no" >&6; }
27789aa228fdSmrgfi
27799aa228fdSmrg
27809aa228fdSmrg
27819aa228fdSmrgfi
27829aa228fdSmrgif test -z "$ac_cv_prog_CC"; then
27839aa228fdSmrg  ac_ct_CC=$CC
27849aa228fdSmrg  # Extract the first word of "gcc", so it can be a program name with args.
27859aa228fdSmrgset dummy gcc; ac_word=$2
27868f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27878f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27888f65982aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
27898f65982aSmrg  $as_echo_n "(cached) " >&6
27909aa228fdSmrgelse
27919aa228fdSmrg  if test -n "$ac_ct_CC"; then
27929aa228fdSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27939aa228fdSmrgelse
27949aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27959aa228fdSmrgfor as_dir in $PATH
27969aa228fdSmrgdo
27979aa228fdSmrg  IFS=$as_save_IFS
27989aa228fdSmrg  test -z "$as_dir" && as_dir=.
27998f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28009aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28019aa228fdSmrg    ac_cv_prog_ac_ct_CC="gcc"
28028f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28039aa228fdSmrg    break 2
28049aa228fdSmrg  fi
28059aa228fdSmrgdone
28068f65982aSmrg  done
28079aa228fdSmrgIFS=$as_save_IFS
28089aa228fdSmrg
28099aa228fdSmrgfi
28109aa228fdSmrgfi
28119aa228fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
28129aa228fdSmrgif test -n "$ac_ct_CC"; then
28138f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28148f65982aSmrg$as_echo "$ac_ct_CC" >&6; }
28159aa228fdSmrgelse
28168f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28178f65982aSmrg$as_echo "no" >&6; }
28189aa228fdSmrgfi
28199aa228fdSmrg
28209aa228fdSmrg  if test "x$ac_ct_CC" = x; then
28219aa228fdSmrg    CC=""
28229aa228fdSmrg  else
28239aa228fdSmrg    case $cross_compiling:$ac_tool_warned in
28249aa228fdSmrgyes:)
28258f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28268f65982aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28279aa228fdSmrgac_tool_warned=yes ;;
28289aa228fdSmrgesac
28299aa228fdSmrg    CC=$ac_ct_CC
28309aa228fdSmrg  fi
28319aa228fdSmrgelse
28329aa228fdSmrg  CC="$ac_cv_prog_CC"
28339aa228fdSmrgfi
28349aa228fdSmrg
28359aa228fdSmrgif test -z "$CC"; then
28369aa228fdSmrg          if test -n "$ac_tool_prefix"; then
28379aa228fdSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28389aa228fdSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28398f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28408f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
28418f65982aSmrgif ${ac_cv_prog_CC+:} false; then :
28428f65982aSmrg  $as_echo_n "(cached) " >&6
28439aa228fdSmrgelse
28449aa228fdSmrg  if test -n "$CC"; then
28459aa228fdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28469aa228fdSmrgelse
28479aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28489aa228fdSmrgfor as_dir in $PATH
28499aa228fdSmrgdo
28509aa228fdSmrg  IFS=$as_save_IFS
28519aa228fdSmrg  test -z "$as_dir" && as_dir=.
28528f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28539aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28549aa228fdSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
28558f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28569aa228fdSmrg    break 2
28579aa228fdSmrg  fi
28589aa228fdSmrgdone
28598f65982aSmrg  done
28609aa228fdSmrgIFS=$as_save_IFS
28619aa228fdSmrg
28629aa228fdSmrgfi
28639aa228fdSmrgfi
28649aa228fdSmrgCC=$ac_cv_prog_CC
28659aa228fdSmrgif test -n "$CC"; then
28668f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28678f65982aSmrg$as_echo "$CC" >&6; }
28689aa228fdSmrgelse
28698f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28708f65982aSmrg$as_echo "no" >&6; }
28719aa228fdSmrgfi
28729aa228fdSmrg
28739aa228fdSmrg
28749aa228fdSmrg  fi
28759aa228fdSmrgfi
28769aa228fdSmrgif test -z "$CC"; then
28779aa228fdSmrg  # Extract the first word of "cc", so it can be a program name with args.
28789aa228fdSmrgset dummy cc; ac_word=$2
28798f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28808f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
28818f65982aSmrgif ${ac_cv_prog_CC+:} false; then :
28828f65982aSmrg  $as_echo_n "(cached) " >&6
28839aa228fdSmrgelse
28849aa228fdSmrg  if test -n "$CC"; then
28859aa228fdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28869aa228fdSmrgelse
28879aa228fdSmrg  ac_prog_rejected=no
28889aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28899aa228fdSmrgfor as_dir in $PATH
28909aa228fdSmrgdo
28919aa228fdSmrg  IFS=$as_save_IFS
28929aa228fdSmrg  test -z "$as_dir" && as_dir=.
28938f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28949aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28959aa228fdSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28969aa228fdSmrg       ac_prog_rejected=yes
28979aa228fdSmrg       continue
28989aa228fdSmrg     fi
28999aa228fdSmrg    ac_cv_prog_CC="cc"
29008f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29019aa228fdSmrg    break 2
29029aa228fdSmrg  fi
29039aa228fdSmrgdone
29048f65982aSmrg  done
29059aa228fdSmrgIFS=$as_save_IFS
29069aa228fdSmrg
29079aa228fdSmrgif test $ac_prog_rejected = yes; then
29089aa228fdSmrg  # We found a bogon in the path, so make sure we never use it.
29099aa228fdSmrg  set dummy $ac_cv_prog_CC
29109aa228fdSmrg  shift
29119aa228fdSmrg  if test $# != 0; then
29129aa228fdSmrg    # We chose a different compiler from the bogus one.
29139aa228fdSmrg    # However, it has the same basename, so the bogon will be chosen
29149aa228fdSmrg    # first if we set CC to just the basename; use the full file name.
29159aa228fdSmrg    shift
29169aa228fdSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
29179aa228fdSmrg  fi
29189aa228fdSmrgfi
29199aa228fdSmrgfi
29209aa228fdSmrgfi
29219aa228fdSmrgCC=$ac_cv_prog_CC
29229aa228fdSmrgif test -n "$CC"; then
29238f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29248f65982aSmrg$as_echo "$CC" >&6; }
29259aa228fdSmrgelse
29268f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278f65982aSmrg$as_echo "no" >&6; }
29289aa228fdSmrgfi
29299aa228fdSmrg
29309aa228fdSmrg
29319aa228fdSmrgfi
29329aa228fdSmrgif test -z "$CC"; then
29339aa228fdSmrg  if test -n "$ac_tool_prefix"; then
29349aa228fdSmrg  for ac_prog in cl.exe
29359aa228fdSmrg  do
29369aa228fdSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29379aa228fdSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29388f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29398f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
29408f65982aSmrgif ${ac_cv_prog_CC+:} false; then :
29418f65982aSmrg  $as_echo_n "(cached) " >&6
29429aa228fdSmrgelse
29439aa228fdSmrg  if test -n "$CC"; then
29449aa228fdSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29459aa228fdSmrgelse
29469aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29479aa228fdSmrgfor as_dir in $PATH
29489aa228fdSmrgdo
29499aa228fdSmrg  IFS=$as_save_IFS
29509aa228fdSmrg  test -z "$as_dir" && as_dir=.
29518f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29529aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29539aa228fdSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29548f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29559aa228fdSmrg    break 2
29569aa228fdSmrg  fi
29579aa228fdSmrgdone
29588f65982aSmrg  done
29599aa228fdSmrgIFS=$as_save_IFS
29609aa228fdSmrg
29619aa228fdSmrgfi
29629aa228fdSmrgfi
29639aa228fdSmrgCC=$ac_cv_prog_CC
29649aa228fdSmrgif test -n "$CC"; then
29658f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29668f65982aSmrg$as_echo "$CC" >&6; }
29679aa228fdSmrgelse
29688f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29698f65982aSmrg$as_echo "no" >&6; }
29709aa228fdSmrgfi
29719aa228fdSmrg
29729aa228fdSmrg
29739aa228fdSmrg    test -n "$CC" && break
29749aa228fdSmrg  done
29759aa228fdSmrgfi
29769aa228fdSmrgif test -z "$CC"; then
29779aa228fdSmrg  ac_ct_CC=$CC
29789aa228fdSmrg  for ac_prog in cl.exe
29799aa228fdSmrgdo
29809aa228fdSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
29819aa228fdSmrgset dummy $ac_prog; ac_word=$2
29828f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29838f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
29848f65982aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
29858f65982aSmrg  $as_echo_n "(cached) " >&6
29869aa228fdSmrgelse
29879aa228fdSmrg  if test -n "$ac_ct_CC"; then
29889aa228fdSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29899aa228fdSmrgelse
29909aa228fdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29919aa228fdSmrgfor as_dir in $PATH
29929aa228fdSmrgdo
29939aa228fdSmrg  IFS=$as_save_IFS
29949aa228fdSmrg  test -z "$as_dir" && as_dir=.
29958f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
29969aa228fdSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29979aa228fdSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
29988f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29999aa228fdSmrg    break 2
30009aa228fdSmrg  fi
30019aa228fdSmrgdone
30028f65982aSmrg  done
30039aa228fdSmrgIFS=$as_save_IFS
30049aa228fdSmrg
30059aa228fdSmrgfi
30069aa228fdSmrgfi
30079aa228fdSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30089aa228fdSmrgif test -n "$ac_ct_CC"; then
30098f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30108f65982aSmrg$as_echo "$ac_ct_CC" >&6; }
30119aa228fdSmrgelse
30128f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30138f65982aSmrg$as_echo "no" >&6; }
30149aa228fdSmrgfi
30159aa228fdSmrg
30169aa228fdSmrg
30179aa228fdSmrg  test -n "$ac_ct_CC" && break
30189aa228fdSmrgdone
30199aa228fdSmrg
30209aa228fdSmrg  if test "x$ac_ct_CC" = x; then
30219aa228fdSmrg    CC=""
30229aa228fdSmrg  else
30239aa228fdSmrg    case $cross_compiling:$ac_tool_warned in
30249aa228fdSmrgyes:)
30258f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30268f65982aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30279aa228fdSmrgac_tool_warned=yes ;;
30289aa228fdSmrgesac
30299aa228fdSmrg    CC=$ac_ct_CC
30309aa228fdSmrg  fi
30319aa228fdSmrgfi
30329aa228fdSmrg
30339aa228fdSmrgfi
30349aa228fdSmrg
30359aa228fdSmrg
30368f65982aSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30378f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30388f65982aSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
30398f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
30409aa228fdSmrg
30419aa228fdSmrg# Provide some information about the compiler.
30428f65982aSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30438f65982aSmrgset X $ac_compile
30448f65982aSmrgac_compiler=$2
30458f65982aSmrgfor ac_option in --version -v -V -qversion; do
30468f65982aSmrg  { { ac_try="$ac_compiler $ac_option >&5"
30479aa228fdSmrgcase "(($ac_try" in
30489aa228fdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499aa228fdSmrg  *) ac_try_echo=$ac_try;;
30509aa228fdSmrgesac
30518f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30528f65982aSmrg$as_echo "$ac_try_echo"; } >&5
30538f65982aSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30549aa228fdSmrg  ac_status=$?
30558f65982aSmrg  if test -s conftest.err; then
30568f65982aSmrg    sed '10a\
30578f65982aSmrg... rest of stderr output deleted ...
30588f65982aSmrg         10q' conftest.err >conftest.er1
30598f65982aSmrg    cat conftest.er1 >&5
30608f65982aSmrg  fi
30618f65982aSmrg  rm -f conftest.er1 conftest.err
30628f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30638f65982aSmrg  test $ac_status = 0; }
30648f65982aSmrgdone
30659aa228fdSmrg
30668f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
30679aa228fdSmrg/* end confdefs.h.  */
30689aa228fdSmrg
30699aa228fdSmrgint
30709aa228fdSmrgmain ()
30719aa228fdSmrg{
30729aa228fdSmrg
30739aa228fdSmrg  ;
30749aa228fdSmrg  return 0;
30759aa228fdSmrg}
30769aa228fdSmrg_ACEOF
30779aa228fdSmrgac_clean_files_save=$ac_clean_files
30788f65982aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30799aa228fdSmrg# Try to create an executable without -o first, disregard a.out.
30809aa228fdSmrg# It will help us diagnose broken compilers, and finding out an intuition
30819aa228fdSmrg# of exeext.
30828f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30838f65982aSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
30848f65982aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30858f65982aSmrg
30868f65982aSmrg# The possible output files:
30878f65982aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
30888f65982aSmrg
30899aa228fdSmrgac_rmfiles=
30909aa228fdSmrgfor ac_file in $ac_files
30919aa228fdSmrgdo
30929aa228fdSmrg  case $ac_file in
30938f65982aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30949aa228fdSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
30959aa228fdSmrg  esac
30969aa228fdSmrgdone
30979aa228fdSmrgrm -f $ac_rmfiles
30989aa228fdSmrg
30998f65982aSmrgif { { ac_try="$ac_link_default"
31009aa228fdSmrgcase "(($ac_try" in
31019aa228fdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029aa228fdSmrg  *) ac_try_echo=$ac_try;;
31039aa228fdSmrgesac
31048f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31058f65982aSmrg$as_echo "$ac_try_echo"; } >&5
31069aa228fdSmrg  (eval "$ac_link_default") 2>&5
31079aa228fdSmrg  ac_status=$?
31088f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31098f65982aSmrg  test $ac_status = 0; }; then :
31109aa228fdSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
31119aa228fdSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
31129aa228fdSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
31139aa228fdSmrg# so that the user can short-circuit this test for compilers unknown to
31149aa228fdSmrg# Autoconf.
31159aa228fdSmrgfor ac_file in $ac_files ''
31169aa228fdSmrgdo
31179aa228fdSmrg  test -f "$ac_file" || continue
31189aa228fdSmrg  case $ac_file in
31198f65982aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
31209aa228fdSmrg	;;
31219aa228fdSmrg    [ab].out )
31229aa228fdSmrg	# We found the default executable, but exeext='' is most
31239aa228fdSmrg	# certainly right.
31249aa228fdSmrg	break;;
31259aa228fdSmrg    *.* )
31268f65982aSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31279aa228fdSmrg	then :; else
31289aa228fdSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31299aa228fdSmrg	fi
31309aa228fdSmrg	# We set ac_cv_exeext here because the later test for it is not
31319aa228fdSmrg	# safe: cross compilers may not add the suffix if given an `-o'
31329aa228fdSmrg	# argument, so we may need to know it at that point already.
31339aa228fdSmrg	# Even if this section looks crufty: it has the advantage of
31349aa228fdSmrg	# actually working.
31359aa228fdSmrg	break;;
31369aa228fdSmrg    * )
31379aa228fdSmrg	break;;
31389aa228fdSmrg  esac
31399aa228fdSmrgdone
31409aa228fdSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
31419aa228fdSmrg
31429aa228fdSmrgelse
31439aa228fdSmrg  ac_file=''
31449aa228fdSmrgfi
31458f65982aSmrgif test -z "$ac_file"; then :
31468f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31478f65982aSmrg$as_echo "no" >&6; }
31488f65982aSmrg$as_echo "$as_me: failed program was:" >&5
31499aa228fdSmrgsed 's/^/| /' conftest.$ac_ext >&5
31508f65982aSmrg
31518f65982aSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31528f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31538f65982aSmrgas_fn_error 77 "C compiler cannot create executables
31548f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
31558f65982aSmrgelse
31568f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31578f65982aSmrg$as_echo "yes" >&6; }
31589aa228fdSmrgfi
31598f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
31608f65982aSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
31618f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
31628f65982aSmrg$as_echo "$ac_file" >&6; }
31638f65982aSmrgac_exeext=$ac_cv_exeext
31649aa228fdSmrg
31658f65982aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
31669aa228fdSmrgac_clean_files=$ac_clean_files_save
31678f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
31688f65982aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
31698f65982aSmrgif { { ac_try="$ac_link"
31709aa228fdSmrgcase "(($ac_try" in
31719aa228fdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729aa228fdSmrg  *) ac_try_echo=$ac_try;;
31739aa228fdSmrgesac
31748f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31758f65982aSmrg$as_echo "$ac_try_echo"; } >&5
31769aa228fdSmrg  (eval "$ac_link") 2>&5
31779aa228fdSmrg  ac_status=$?
31788f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31798f65982aSmrg  test $ac_status = 0; }; then :
31809aa228fdSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
31819aa228fdSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
31829aa228fdSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
31839aa228fdSmrg# `rm'.
31849aa228fdSmrgfor ac_file in conftest.exe conftest conftest.*; do
31859aa228fdSmrg  test -f "$ac_file" || continue
31869aa228fdSmrg  case $ac_file in
31878f65982aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31889aa228fdSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31899aa228fdSmrg	  break;;
31909aa228fdSmrg    * ) break;;
31919aa228fdSmrg  esac
31929aa228fdSmrgdone
31939aa228fdSmrgelse
31948f65982aSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31958f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31968f65982aSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
31978f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
31989aa228fdSmrgfi
31998f65982aSmrgrm -f conftest conftest$ac_cv_exeext
32008f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32018f65982aSmrg$as_echo "$ac_cv_exeext" >&6; }
32029aa228fdSmrg
32039aa228fdSmrgrm -f conftest.$ac_ext
32049aa228fdSmrgEXEEXT=$ac_cv_exeext
32059aa228fdSmrgac_exeext=$EXEEXT
32068f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078f65982aSmrg/* end confdefs.h.  */
32088f65982aSmrg#include <stdio.h>
32098f65982aSmrgint
32108f65982aSmrgmain ()
32118f65982aSmrg{
32128f65982aSmrgFILE *f = fopen ("conftest.out", "w");
32138f65982aSmrg return ferror (f) || fclose (f) != 0;
32148f65982aSmrg
32158f65982aSmrg  ;
32168f65982aSmrg  return 0;
32178f65982aSmrg}
32189aa228fdSmrg_ACEOF
32198f65982aSmrgac_clean_files="$ac_clean_files conftest.out"
32208f65982aSmrg# Check that the compiler produces executables we can run.  If not, either
32218f65982aSmrg# the compiler is broken, or we cross compile.
32228f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32238f65982aSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32248f65982aSmrgif test "$cross_compiling" != yes; then
32258f65982aSmrg  { { ac_try="$ac_link"
32268f65982aSmrgcase "(($ac_try" in
32278f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288f65982aSmrg  *) ac_try_echo=$ac_try;;
32298f65982aSmrgesac
32308f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32318f65982aSmrg$as_echo "$ac_try_echo"; } >&5
32328f65982aSmrg  (eval "$ac_link") 2>&5
32338f65982aSmrg  ac_status=$?
32348f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32358f65982aSmrg  test $ac_status = 0; }
32368f65982aSmrg  if { ac_try='./conftest$ac_cv_exeext'
32378f65982aSmrg  { { case "(($ac_try" in
32388f65982aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398f65982aSmrg  *) ac_try_echo=$ac_try;;
32408f65982aSmrgesac
32418f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32428f65982aSmrg$as_echo "$ac_try_echo"; } >&5
32438f65982aSmrg  (eval "$ac_try") 2>&5
32448f65982aSmrg  ac_status=$?
32458f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32468f65982aSmrg  test $ac_status = 0; }; }; then
32478f65982aSmrg    cross_compiling=no
32488f65982aSmrg  else
32498f65982aSmrg    if test "$cross_compiling" = maybe; then
32508f65982aSmrg	cross_compiling=yes
32518f65982aSmrg    else
32528f65982aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32538f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32548f65982aSmrgas_fn_error $? "cannot run C compiled programs.
32558f65982aSmrgIf you meant to cross compile, use \`--host'.
32568f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
32578f65982aSmrg    fi
32588f65982aSmrg  fi
32598f65982aSmrgfi
32608f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
32618f65982aSmrg$as_echo "$cross_compiling" >&6; }
32628f65982aSmrg
32638f65982aSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
32648f65982aSmrgac_clean_files=$ac_clean_files_save
32658f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
32668f65982aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
32678f65982aSmrgif ${ac_cv_objext+:} false; then :
32688f65982aSmrg  $as_echo_n "(cached) " >&6
32698f65982aSmrgelse
32708f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32719aa228fdSmrg/* end confdefs.h.  */
32729aa228fdSmrg
32739aa228fdSmrgint
32749aa228fdSmrgmain ()
32759aa228fdSmrg{
32769aa228fdSmrg
32779aa228fdSmrg  ;
32789aa228fdSmrg  return 0;
32799aa228fdSmrg}
32809aa228fdSmrg_ACEOF
32819aa228fdSmrgrm -f conftest.o conftest.obj
32828f65982aSmrgif { { ac_try="$ac_compile"
32839aa228fdSmrgcase "(($ac_try" in
32849aa228fdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859aa228fdSmrg  *) ac_try_echo=$ac_try;;
32869aa228fdSmrgesac
32878f65982aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32888f65982aSmrg$as_echo "$ac_try_echo"; } >&5
32899aa228fdSmrg  (eval "$ac_compile") 2>&5
32909aa228fdSmrg  ac_status=$?
32918f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32928f65982aSmrg  test $ac_status = 0; }; then :
32939aa228fdSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
32949aa228fdSmrg  test -f "$ac_file" || continue;
32959aa228fdSmrg  case $ac_file in
32968f65982aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
32979aa228fdSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
32989aa228fdSmrg       break;;
32999aa228fdSmrg  esac
33009aa228fdSmrgdone
33019aa228fdSmrgelse
33028f65982aSmrg  $as_echo "$as_me: failed program was:" >&5
33039aa228fdSmrgsed 's/^/| /' conftest.$ac_ext >&5
33049aa228fdSmrg
33058f65982aSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33068f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33078f65982aSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
33088f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
33099aa228fdSmrgfi
33109aa228fdSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
33119aa228fdSmrgfi
33128f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33138f65982aSmrg$as_echo "$ac_cv_objext" >&6; }
33149aa228fdSmrgOBJEXT=$ac_cv_objext
33159aa228fdSmrgac_objext=$OBJEXT
33168f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
33178f65982aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
33188f65982aSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
33198f65982aSmrg  $as_echo_n "(cached) " >&6
33209aa228fdSmrgelse
33218f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33229aa228fdSmrg/* end confdefs.h.  */
33239aa228fdSmrg
33249aa228fdSmrgint
33259aa228fdSmrgmain ()
33269aa228fdSmrg{
33279aa228fdSmrg#ifndef __GNUC__
33289aa228fdSmrg       choke me
33299aa228fdSmrg#endif
33309aa228fdSmrg
33319aa228fdSmrg  ;
33329aa228fdSmrg  return 0;
33339aa228fdSmrg}
33349aa228fdSmrg_ACEOF
33358f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
33369aa228fdSmrg  ac_compiler_gnu=yes
33379aa228fdSmrgelse
33388f65982aSmrg  ac_compiler_gnu=no
33399aa228fdSmrgfi
33409aa228fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33419aa228fdSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
33429aa228fdSmrg
33439aa228fdSmrgfi
33448f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33458f65982aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
33468f65982aSmrgif test $ac_compiler_gnu = yes; then
33478f65982aSmrg  GCC=yes
33488f65982aSmrgelse
33498f65982aSmrg  GCC=
33508f65982aSmrgfi
33519aa228fdSmrgac_test_CFLAGS=${CFLAGS+set}
33529aa228fdSmrgac_save_CFLAGS=$CFLAGS
33538f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
33548f65982aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
33558f65982aSmrgif ${ac_cv_prog_cc_g+:} false; then :
33568f65982aSmrg  $as_echo_n "(cached) " >&6
33579aa228fdSmrgelse
33589aa228fdSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
33599aa228fdSmrg   ac_c_werror_flag=yes
33609aa228fdSmrg   ac_cv_prog_cc_g=no
33619aa228fdSmrg   CFLAGS="-g"
33628f65982aSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33639aa228fdSmrg/* end confdefs.h.  */
33649aa228fdSmrg
33659aa228fdSmrgint
33669aa228fdSmrgmain ()
33679aa228fdSmrg{
33689aa228fdSmrg
33699aa228fdSmrg  ;
33709aa228fdSmrg  return 0;
33719aa228fdSmrg}
33729aa228fdSmrg_ACEOF
33738f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
33749aa228fdSmrg  ac_cv_prog_cc_g=yes
33759aa228fdSmrgelse
33768f65982aSmrg  CFLAGS=""
33778f65982aSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33789aa228fdSmrg/* end confdefs.h.  */
33799aa228fdSmrg
33809aa228fdSmrgint
33819aa228fdSmrgmain ()
33829aa228fdSmrg{
33839aa228fdSmrg
33849aa228fdSmrg  ;
33859aa228fdSmrg  return 0;
33869aa228fdSmrg}
33879aa228fdSmrg_ACEOF
33888f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
33899aa228fdSmrg
33908f65982aSmrgelse
33918f65982aSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
33929aa228fdSmrg	 CFLAGS="-g"
33938f65982aSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33949aa228fdSmrg/* end confdefs.h.  */
33959aa228fdSmrg
33969aa228fdSmrgint
33979aa228fdSmrgmain ()
33989aa228fdSmrg{
33999aa228fdSmrg
34009aa228fdSmrg  ;
34019aa228fdSmrg  return 0;
34029aa228fdSmrg}
34039aa228fdSmrg_ACEOF
34048f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
34059aa228fdSmrg  ac_cv_prog_cc_g=yes
34069aa228fdSmrgfi
34079aa228fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34089aa228fdSmrgfi
34099aa228fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34109aa228fdSmrgfi
34119aa228fdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34129aa228fdSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
34139aa228fdSmrgfi
34148f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34158f65982aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
34169aa228fdSmrgif test "$ac_test_CFLAGS" = set; then
34179aa228fdSmrg  CFLAGS=$ac_save_CFLAGS
34189aa228fdSmrgelif test $ac_cv_prog_cc_g = yes; then
34199aa228fdSmrg  if test "$GCC" = yes; then
34209aa228fdSmrg    CFLAGS="-g -O2"
34219aa228fdSmrg  else
34229aa228fdSmrg    CFLAGS="-g"
34239aa228fdSmrg  fi
34249aa228fdSmrgelse
34259aa228fdSmrg  if test "$GCC" = yes; then
34269aa228fdSmrg    CFLAGS="-O2"
34279aa228fdSmrg  else
34289aa228fdSmrg    CFLAGS=
34299aa228fdSmrg  fi
34309aa228fdSmrgfi
34318f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
34328f65982aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
34338f65982aSmrgif ${ac_cv_prog_cc_c89+:} false; then :
34348f65982aSmrg  $as_echo_n "(cached) " >&6
34359aa228fdSmrgelse
34369aa228fdSmrg  ac_cv_prog_cc_c89=no
34379aa228fdSmrgac_save_CC=$CC
34388f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34399aa228fdSmrg/* end confdefs.h.  */
34409aa228fdSmrg#include <stdarg.h>
34419aa228fdSmrg#include <stdio.h>
34429aa228fdSmrg#include <sys/types.h>
34439aa228fdSmrg#include <sys/stat.h>
34449aa228fdSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
34459aa228fdSmrgstruct buf { int x; };
34469aa228fdSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
34479aa228fdSmrgstatic char *e (p, i)
34489aa228fdSmrg     char **p;
34499aa228fdSmrg     int i;
34509aa228fdSmrg{
34519aa228fdSmrg  return p[i];
34529aa228fdSmrg}
34539aa228fdSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
34549aa228fdSmrg{
34559aa228fdSmrg  char *s;
34569aa228fdSmrg  va_list v;
34579aa228fdSmrg  va_start (v,p);
34589aa228fdSmrg  s = g (p, va_arg (v,int));
34599aa228fdSmrg  va_end (v);
34609aa228fdSmrg  return s;
34619aa228fdSmrg}
34629aa228fdSmrg
34639aa228fdSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
34649aa228fdSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
34659aa228fdSmrg   These don't provoke an error unfortunately, instead are silently treated
34669aa228fdSmrg   as 'x'.  The following induces an error, until -std is added to get
34679aa228fdSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
34689aa228fdSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
34699aa228fdSmrg   that's true only with -std.  */
34709aa228fdSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
34719aa228fdSmrg
34729aa228fdSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
34739aa228fdSmrg   inside strings and character constants.  */
34749aa228fdSmrg#define FOO(x) 'x'
34759aa228fdSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
34769aa228fdSmrg
34779aa228fdSmrgint test (int i, double x);
34789aa228fdSmrgstruct s1 {int (*f) (int a);};
34799aa228fdSmrgstruct s2 {int (*f) (double a);};
34809aa228fdSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
34819aa228fdSmrgint argc;
34829aa228fdSmrgchar **argv;
34839aa228fdSmrgint
34849aa228fdSmrgmain ()
34859aa228fdSmrg{
34869aa228fdSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
34879aa228fdSmrg  ;
34889aa228fdSmrg  return 0;
34899aa228fdSmrg}
34909aa228fdSmrg_ACEOF
34919aa228fdSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
34929aa228fdSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
34939aa228fdSmrgdo
34949aa228fdSmrg  CC="$ac_save_CC $ac_arg"
34958f65982aSmrg  if ac_fn_c_try_compile "$LINENO"; then :
34969aa228fdSmrg  ac_cv_prog_cc_c89=$ac_arg
34979aa228fdSmrgfi
34989aa228fdSmrgrm -f core conftest.err conftest.$ac_objext
34999aa228fdSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
35009aa228fdSmrgdone
35019aa228fdSmrgrm -f conftest.$ac_ext
35029aa228fdSmrgCC=$ac_save_CC
35039aa228fdSmrg
35049aa228fdSmrgfi
35059aa228fdSmrg# AC_CACHE_VAL
35069aa228fdSmrgcase "x$ac_cv_prog_cc_c89" in
35079aa228fdSmrg  x)
35088f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35098f65982aSmrg$as_echo "none needed" >&6; } ;;
35109aa228fdSmrg  xno)
35118f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35128f65982aSmrg$as_echo "unsupported" >&6; } ;;
35139aa228fdSmrg  *)
35149aa228fdSmrg    CC="$CC $ac_cv_prog_cc_c89"
35158f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35168f65982aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35179aa228fdSmrgesac
35188f65982aSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
35199aa228fdSmrg
35208f65982aSmrgfi
35219aa228fdSmrg
35229aa228fdSmrgac_ext=c
35239aa228fdSmrgac_cpp='$CPP $CPPFLAGS'
35249aa228fdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35259aa228fdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35269aa228fdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35279aa228fdSmrg
35289aa228fdSmrgdepcc="$CC"   am_compiler_list=
35299aa228fdSmrg
35308f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
35318f65982aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
35328f65982aSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
35338f65982aSmrg  $as_echo_n "(cached) " >&6
35349aa228fdSmrgelse
35359aa228fdSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35369aa228fdSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
35379aa228fdSmrg  # making bogus files that we don't know about and never remove.  For
35389aa228fdSmrg  # instance it was reported that on HP-UX the gcc test will end up
35399aa228fdSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
35409aa228fdSmrg  # in D'.
35419aa228fdSmrg  mkdir conftest.dir
35429aa228fdSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
35439aa228fdSmrg  # using a relative directory.
35449aa228fdSmrg  cp "$am_depcomp" conftest.dir
35459aa228fdSmrg  cd conftest.dir
35469aa228fdSmrg  # We will build objects and dependencies in a subdirectory because
35479aa228fdSmrg  # it helps to detect inapplicable dependency modes.  For instance
35489aa228fdSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
35499aa228fdSmrg  # side effect of compilation, but ICC will put the dependencies in
35509aa228fdSmrg  # the current directory while Tru64 will put them in the object
35519aa228fdSmrg  # directory.
35529aa228fdSmrg  mkdir sub
35539aa228fdSmrg
35549aa228fdSmrg  am_cv_CC_dependencies_compiler_type=none
35559aa228fdSmrg  if test "$am_compiler_list" = ""; then
35569aa228fdSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35579aa228fdSmrg  fi
35588f65982aSmrg  am__universal=false
35598f65982aSmrg  case " $depcc " in #(
35608f65982aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
35618f65982aSmrg     esac
35628f65982aSmrg
35639aa228fdSmrg  for depmode in $am_compiler_list; do
35649aa228fdSmrg    # Setup a source with many dependencies, because some compilers
35659aa228fdSmrg    # like to wrap large dependency lists on column 80 (with \), and
35669aa228fdSmrg    # we should not choose a depcomp mode which is confused by this.
35679aa228fdSmrg    #
35689aa228fdSmrg    # We need to recreate these files for each test, as the compiler may
35699aa228fdSmrg    # overwrite some of them when testing with obscure command lines.
35709aa228fdSmrg    # This happens at least with the AIX C compiler.
35719aa228fdSmrg    : > sub/conftest.c
35729aa228fdSmrg    for i in 1 2 3 4 5 6; do
35739aa228fdSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
35749aa228fdSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35759aa228fdSmrg      # Solaris 8's {/usr,}/bin/sh.
35769aa228fdSmrg      touch sub/conftst$i.h
35779aa228fdSmrg    done
35789aa228fdSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35799aa228fdSmrg
35808f65982aSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
35818f65982aSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
35828f65982aSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
35838f65982aSmrg    # versions had trouble with output in subdirs
35848f65982aSmrg    am__obj=sub/conftest.${OBJEXT-o}
35858f65982aSmrg    am__minus_obj="-o $am__obj"
35869aa228fdSmrg    case $depmode in
35878f65982aSmrg    gcc)
35888f65982aSmrg      # This depmode causes a compiler race in universal mode.
35898f65982aSmrg      test "$am__universal" = false || continue
35908f65982aSmrg      ;;
35919aa228fdSmrg    nosideeffect)
35929aa228fdSmrg      # after this tag, mechanisms are not by side-effect, so they'll
35939aa228fdSmrg      # only be used when explicitly requested
35949aa228fdSmrg      if test "x$enable_dependency_tracking" = xyes; then
35959aa228fdSmrg	continue
35969aa228fdSmrg      else
35979aa228fdSmrg	break
35989aa228fdSmrg      fi
35999aa228fdSmrg      ;;
36008f65982aSmrg    msvisualcpp | msvcmsys)
36018f65982aSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
36028f65982aSmrg      # not run yet.  These depmodes are late enough in the game, and
36038f65982aSmrg      # so weak that their functioning should not be impacted.
36048f65982aSmrg      am__obj=conftest.${OBJEXT-o}
36058f65982aSmrg      am__minus_obj=
36068f65982aSmrg      ;;
36079aa228fdSmrg    none) break ;;
36089aa228fdSmrg    esac
36099aa228fdSmrg    if depmode=$depmode \
36108f65982aSmrg       source=sub/conftest.c object=$am__obj \
36119aa228fdSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
36128f65982aSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
36139aa228fdSmrg         >/dev/null 2>conftest.err &&
36149aa228fdSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
36159aa228fdSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
36168f65982aSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
36179aa228fdSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
36189aa228fdSmrg      # icc doesn't choke on unknown options, it will just issue warnings
36199aa228fdSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
36209aa228fdSmrg      # that says an option was ignored or not supported.
36219aa228fdSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
36229aa228fdSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
36239aa228fdSmrg      # The diagnosis changed in icc 8.0:
36249aa228fdSmrg      #   icc: Command line remark: option '-MP' not supported
36259aa228fdSmrg      if (grep 'ignoring option' conftest.err ||
36269aa228fdSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
36279aa228fdSmrg        am_cv_CC_dependencies_compiler_type=$depmode
36289aa228fdSmrg        break
36299aa228fdSmrg      fi
36309aa228fdSmrg    fi
36319aa228fdSmrg  done
36329aa228fdSmrg
36339aa228fdSmrg  cd ..
36349aa228fdSmrg  rm -rf conftest.dir
36359aa228fdSmrgelse
36369aa228fdSmrg  am_cv_CC_dependencies_compiler_type=none
36379aa228fdSmrgfi
36389aa228fdSmrg
36399aa228fdSmrgfi
36408f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
36418f65982aSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
36429aa228fdSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
36439aa228fdSmrg
36449aa228fdSmrg if
36459aa228fdSmrg  test "x$enable_dependency_tracking" != xno \
36469aa228fdSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
36479aa228fdSmrg  am__fastdepCC_TRUE=
36489aa228fdSmrg  am__fastdepCC_FALSE='#'
36499aa228fdSmrgelse
36509aa228fdSmrg  am__fastdepCC_TRUE='#'
36519aa228fdSmrg  am__fastdepCC_FALSE=
36529aa228fdSmrgfi
36539aa228fdSmrg
36549aa228fdSmrg
36558f65982aSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
36568f65982aSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
36578f65982aSmrgif ${ac_cv_prog_cc_c99+:} false; then :
36588f65982aSmrg  $as_echo_n "(cached) " >&6
36599aa228fdSmrgelse
36608f65982aSmrg  ac_cv_prog_cc_c99=no
36618f65982aSmrgac_save_CC=$CC
36628f65982aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36638f65982aSmrg/* end confdefs.h.  */
36648f65982aSmrg#include <stdarg.h>
36658f65982aSmrg#include <stdbool.h>
36668f65982aSmrg#include <stdlib.h>
36678f65982aSmrg#include <wchar.h>
36688f65982aSmrg#include <stdio.h>
36699aa228fdSmrg
36708f65982aSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
36718f65982aSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
36728f65982aSmrg#define showlist(...) puts (#__VA_ARGS__)
36738f65982aSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
36748f65982aSmrgstatic void
36758f65982aSmrgtest_varargs_macros (void)
36768f65982aSmrg{
36778f65982aSmrg  int x = 1234;
36788f65982aSmrg  int y = 5678;
36798f65982aSmrg  debug ("Flag");
36808f65982aSmrg  debug ("X = %d\n", x);
36818f65982aSmrg  showlist (The first, second, and third items.);
36828f65982aSmrg  report (x>y, "x is %d but y is %d", x, y);
36838f65982aSmrg}
36849aa228fdSmrg
36858f65982aSmrg// Check long long types.
36868f65982aSmrg#define BIG64 18446744073709551615ull
36878f65982aSmrg#define BIG32 4294967295ul
36888f65982aSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
36898f65982aSmrg#if !BIG_OK
36908f65982aSmrg  your preprocessor is broken;
36918f65982aSmrg#endif
36928f65982aSmrg#if BIG_OK
36938f65982aSmrg#else
36948f65982aSmrg  your preprocessor is broken;
36958f65982aSmrg#endif
36968f65982aSmrgstatic long long int bignum = -9223372036854775807LL;
36978f65982aSmrgstatic unsigned long long int ubignum = BIG64;
36989aa228fdSmrg
36998f65982aSmrgstruct incomplete_array
37008f65982aSmrg{
37018f65982aSmrg  int datasize;
37028f65982aSmrg  double data[];
37038f65982aSmrg};
37048f65982aSmrg
37058f65982aSmrgstruct named_init {
37068f65982aSmrg  int number;
37078f65982aSmrg  const wchar_t *name;
37088f65982aSmrg  double average;
37098f65982aSmrg};
37108f65982aSmrg
37118f65982aSmrgtypedef const char *ccp;
37128f65982aSmrg
37138f65982aSmrgstatic inline int
37148f65982aSmrgtest_restrict (ccp restrict text)
37158f65982aSmrg{
37168f65982aSmrg  // See if C++-style comments work.
37178f65982aSmrg  // Iterate through items via the restricted pointer.
37188f65982aSmrg  // Also check for declarations in for loops.
37198f65982aSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
37208f65982aSmrg    continue;
37218f65982aSmrg  return 0;
37228f65982aSmrg}
37238f65982aSmrg
37248f65982aSmrg// Check varargs and va_copy.
37258f65982aSmrgstatic void
37268f65982aSmrgtest_varargs (const char *format, ...)
37278f65982aSmrg{
37288f65982aSmrg  va_list args;
37298f65982aSmrg  va_start (args, format);
37308f65982aSmrg  va_list args_copy;
37318f65982aSmrg  va_copy (args_copy, args);
37328f65982aSmrg
37338f65982aSmrg  const char *str;
37348f65982aSmrg  int number;
37358f65982aSmrg  float fnumber;
37368f65982aSmrg
37378f65982aSmrg  while (*format)
37388f65982aSmrg    {
37398f65982aSmrg      switch (*format++)
37408f65982aSmrg	{
37418f65982aSmrg	case 's': // string
37428f65982aSmrg	  str = va_arg (args_copy, const char *);
37438f65982aSmrg	  break;
37448f65982aSmrg	case 'd': // int
37458f65982aSmrg	  number = va_arg (args_copy, int);
37468f65982aSmrg	  break;
37478f65982aSmrg	case 'f': // float
37488f65982aSmrg	  fnumber = va_arg (args_copy, double);
37498f65982aSmrg	  break;
37508f65982aSmrg	default:
37518f65982aSmrg	  break;
37528f65982aSmrg	}
37538f65982aSmrg    }
37548f65982aSmrg  va_end (args_copy);
37558f65982aSmrg  va_end (args);
37568f65982aSmrg}
37578f65982aSmrg
37588f65982aSmrgint
37598f65982aSmrgmain ()
37608f65982aSmrg{
37618f65982aSmrg
37628f65982aSmrg  // Check bool.
37638f65982aSmrg  _Bool success = false;
37648f65982aSmrg
37658f65982aSmrg  // Check restrict.
37668f65982aSmrg  if (test_restrict ("String literal") == 0)
37678f65982aSmrg    success = true;
37688f65982aSmrg  char *restrict newvar = "Another string";
37698f65982aSmrg
37708f65982aSmrg  // Check varargs.
37718f65982aSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
37728f65982aSmrg  test_varargs_macros ();
37738f65982aSmrg
37748f65982aSmrg  // Check flexible array members.
37758f65982aSmrg  struct incomplete_array *ia =
37768f65982aSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
37778f65982aSmrg  ia->datasize = 10;
37788f65982aSmrg  for (int i = 0; i < ia->datasize; ++i)
37798f65982aSmrg    ia->data[i] = i * 1.234;
37808f65982aSmrg
37818f65982aSmrg  // Check named initializers.
37828f65982aSmrg  struct named_init ni = {
37838f65982aSmrg    .number = 34,
37848f65982aSmrg    .name = L"Test wide string",
37858f65982aSmrg    .average = 543.34343,
37868f65982aSmrg  };
37878f65982aSmrg
37888f65982aSmrg  ni.number = 58;
37898f65982aSmrg
37908f65982aSmrg  int dynamic_array[ni.number];
37918f65982aSmrg  dynamic_array[ni.number - 1] = 543;
37928f65982aSmrg
37938f65982aSmrg  // work around unused variable warnings
37948f65982aSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
37958f65982aSmrg	  || dynamic_array[ni.number - 1] != 543);
37968f65982aSmrg
37978f65982aSmrg  ;
37988f65982aSmrg  return 0;
37998f65982aSmrg}
38008f65982aSmrg_ACEOF
38018f65982aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
38028f65982aSmrgdo
38038f65982aSmrg  CC="$ac_save_CC $ac_arg"
38048f65982aSmrg  if ac_fn_c_try_compile "$LINENO"; then :
38058f65982aSmrg  ac_cv_prog_cc_c99=$ac_arg
38068f65982aSmrgfi
38078f65982aSmrgrm -f core conftest.err conftest.$ac_objext
38088f65982aSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
38098f65982aSmrgdone
38108f65982aSmrgrm -f conftest.$ac_ext
38118f65982aSmrgCC=$ac_save_CC
38129aa228fdSmrg
38138f65982aSmrgfi
38148f65982aSmrg# AC_CACHE_VAL
38158f65982aSmrgcase "x$ac_cv_prog_cc_c99" in
38168f65982aSmrg  x)
38178f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38188f65982aSmrg$as_echo "none needed" >&6; } ;;
38198f65982aSmrg  xno)
38208f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38218f65982aSmrg$as_echo "unsupported" >&6; } ;;
38228f65982aSmrg  *)
38238f65982aSmrg    CC="$CC $ac_cv_prog_cc_c99"
38248f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
38258f65982aSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
38268f65982aSmrgesac
38278f65982aSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
38289aa228fdSmrg
38298f65982aSmrgfi
38309aa228fdSmrg
38319aa228fdSmrg
38329aa228fdSmrg
383383d7c197Smrgac_ext=c
383483d7c197Smrgac_cpp='$CPP $CPPFLAGS'
383583d7c197Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
383683d7c197Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
383783d7c197Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38388f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
38398f65982aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
384083d7c197Smrg# On Suns, sometimes $CPP names a directory.
384183d7c197Smrgif test -n "$CPP" && test -d "$CPP"; then
384283d7c197Smrg  CPP=
384383d7c197Smrgfi
384483d7c197Smrgif test -z "$CPP"; then
38458f65982aSmrg  if ${ac_cv_prog_CPP+:} false; then :
38468f65982aSmrg  $as_echo_n "(cached) " >&6
38479aa228fdSmrgelse
384883d7c197Smrg      # Double quotes because CPP needs to be expanded
384983d7c197Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
385083d7c197Smrg    do
385183d7c197Smrg      ac_preproc_ok=false
385283d7c197Smrgfor ac_c_preproc_warn_flag in '' yes
385383d7c197Smrgdo
385483d7c197Smrg  # Use a header file that comes with gcc, so configuring glibc
385583d7c197Smrg  # with a fresh cross-compiler works.
385683d7c197Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
385783d7c197Smrg  # <limits.h> exists even on freestanding compilers.
385883d7c197Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
385983d7c197Smrg  # not just through cpp. "Syntax error" is here to catch this case.
38608f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38619aa228fdSmrg/* end confdefs.h.  */
38629aa228fdSmrg#ifdef __STDC__
38639aa228fdSmrg# include <limits.h>
38649aa228fdSmrg#else
38659aa228fdSmrg# include <assert.h>
38669aa228fdSmrg#endif
386783d7c197Smrg		     Syntax error
386883d7c197Smrg_ACEOF
38698f65982aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
38709aa228fdSmrg
38718f65982aSmrgelse
387283d7c197Smrg  # Broken: fails on valid input.
387383d7c197Smrgcontinue
387483d7c197Smrgfi
38758f65982aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38769aa228fdSmrg
387783d7c197Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
387883d7c197Smrg  # can be detected and how.
38798f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
388083d7c197Smrg/* end confdefs.h.  */
388183d7c197Smrg#include <ac_nonexistent.h>
388283d7c197Smrg_ACEOF
38838f65982aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
388483d7c197Smrg  # Broken: success on invalid input.
388583d7c197Smrgcontinue
38869aa228fdSmrgelse
388783d7c197Smrg  # Passes both tests.
388883d7c197Smrgac_preproc_ok=:
388983d7c197Smrgbreak
38909aa228fdSmrgfi
38918f65982aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
389283d7c197Smrg
389383d7c197Smrgdone
389483d7c197Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38958f65982aSmrgrm -f conftest.i conftest.err conftest.$ac_ext
38968f65982aSmrgif $ac_preproc_ok; then :
389783d7c197Smrg  break
38989aa228fdSmrgfi
389983d7c197Smrg
390083d7c197Smrg    done
390183d7c197Smrg    ac_cv_prog_CPP=$CPP
390283d7c197Smrg
390383d7c197Smrgfi
390483d7c197Smrg  CPP=$ac_cv_prog_CPP
390583d7c197Smrgelse
390683d7c197Smrg  ac_cv_prog_CPP=$CPP
390783d7c197Smrgfi
39088f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
39098f65982aSmrg$as_echo "$CPP" >&6; }
391083d7c197Smrgac_preproc_ok=false
391183d7c197Smrgfor ac_c_preproc_warn_flag in '' yes
391283d7c197Smrgdo
391383d7c197Smrg  # Use a header file that comes with gcc, so configuring glibc
391483d7c197Smrg  # with a fresh cross-compiler works.
391583d7c197Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
391683d7c197Smrg  # <limits.h> exists even on freestanding compilers.
391783d7c197Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
391883d7c197Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39198f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
392083d7c197Smrg/* end confdefs.h.  */
392183d7c197Smrg#ifdef __STDC__
392283d7c197Smrg# include <limits.h>
392383d7c197Smrg#else
392483d7c197Smrg# include <assert.h>
392583d7c197Smrg#endif
392683d7c197Smrg		     Syntax error
39279aa228fdSmrg_ACEOF
39288f65982aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
39299aa228fdSmrg
39308f65982aSmrgelse
393183d7c197Smrg  # Broken: fails on valid input.
393283d7c197Smrgcontinue
39339aa228fdSmrgfi
39348f65982aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39359aa228fdSmrg
393683d7c197Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
393783d7c197Smrg  # can be detected and how.
39388f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
393983d7c197Smrg/* end confdefs.h.  */
394083d7c197Smrg#include <ac_nonexistent.h>
394183d7c197Smrg_ACEOF
39428f65982aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
394383d7c197Smrg  # Broken: success on invalid input.
394483d7c197Smrgcontinue
394583d7c197Smrgelse
394683d7c197Smrg  # Passes both tests.
394783d7c197Smrgac_preproc_ok=:
394883d7c197Smrgbreak
394983d7c197Smrgfi
39508f65982aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
395183d7c197Smrg
395283d7c197Smrgdone
395383d7c197Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39548f65982aSmrgrm -f conftest.i conftest.err conftest.$ac_ext
39558f65982aSmrgif $ac_preproc_ok; then :
39568f65982aSmrg
395783d7c197Smrgelse
39588f65982aSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39598f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39608f65982aSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
39618f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
396283d7c197Smrgfi
396383d7c197Smrg
396483d7c197Smrgac_ext=c
396583d7c197Smrgac_cpp='$CPP $CPPFLAGS'
396683d7c197Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
396783d7c197Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
396883d7c197Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
396983d7c197Smrg
397083d7c197Smrg
39718f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
39728f65982aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
39738f65982aSmrgif ${ac_cv_path_GREP+:} false; then :
39748f65982aSmrg  $as_echo_n "(cached) " >&6
397583d7c197Smrgelse
39768f65982aSmrg  if test -z "$GREP"; then
397783d7c197Smrg  ac_path_GREP_found=false
39788f65982aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
39798f65982aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
398083d7c197Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39819aa228fdSmrgdo
39829aa228fdSmrg  IFS=$as_save_IFS
39839aa228fdSmrg  test -z "$as_dir" && as_dir=.
39848f65982aSmrg    for ac_prog in grep ggrep; do
39858f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
39868f65982aSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
39878f65982aSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
39888f65982aSmrg# Check for GNU ac_path_GREP and select it if it is found.
398983d7c197Smrg  # Check for GNU $ac_path_GREP
399083d7c197Smrgcase `"$ac_path_GREP" --version 2>&1` in
399183d7c197Smrg*GNU*)
399283d7c197Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
399383d7c197Smrg*)
399483d7c197Smrg  ac_count=0
39958f65982aSmrg  $as_echo_n 0123456789 >"conftest.in"
399683d7c197Smrg  while :
399783d7c197Smrg  do
399883d7c197Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
399983d7c197Smrg    mv "conftest.tmp" "conftest.in"
400083d7c197Smrg    cp "conftest.in" "conftest.nl"
40018f65982aSmrg    $as_echo 'GREP' >> "conftest.nl"
400283d7c197Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
400383d7c197Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40048f65982aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
400583d7c197Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
400683d7c197Smrg      # Best one so far, save it but keep looking for a better one
400783d7c197Smrg      ac_cv_path_GREP="$ac_path_GREP"
400883d7c197Smrg      ac_path_GREP_max=$ac_count
400983d7c197Smrg    fi
401083d7c197Smrg    # 10*(2^10) chars as input seems more than enough
401183d7c197Smrg    test $ac_count -gt 10 && break
401283d7c197Smrg  done
401383d7c197Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
401483d7c197Smrgesac
401583d7c197Smrg
40168f65982aSmrg      $ac_path_GREP_found && break 3
40178f65982aSmrg    done
40188f65982aSmrg  done
401983d7c197Smrg  done
40209aa228fdSmrgIFS=$as_save_IFS
40218f65982aSmrg  if test -z "$ac_cv_path_GREP"; then
40228f65982aSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40238f65982aSmrg  fi
40249aa228fdSmrgelse
402583d7c197Smrg  ac_cv_path_GREP=$GREP
40269aa228fdSmrgfi
40279aa228fdSmrg
40289aa228fdSmrgfi
40298f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
40308f65982aSmrg$as_echo "$ac_cv_path_GREP" >&6; }
403183d7c197Smrg GREP="$ac_cv_path_GREP"
403283d7c197Smrg
403383d7c197Smrg
40348f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
40358f65982aSmrg$as_echo_n "checking for egrep... " >&6; }
40368f65982aSmrgif ${ac_cv_path_EGREP+:} false; then :
40378f65982aSmrg  $as_echo_n "(cached) " >&6
40389aa228fdSmrgelse
403983d7c197Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
404083d7c197Smrg   then ac_cv_path_EGREP="$GREP -E"
404183d7c197Smrg   else
40428f65982aSmrg     if test -z "$EGREP"; then
404383d7c197Smrg  ac_path_EGREP_found=false
40448f65982aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40458f65982aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
404683d7c197Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40479aa228fdSmrgdo
40489aa228fdSmrg  IFS=$as_save_IFS
40499aa228fdSmrg  test -z "$as_dir" && as_dir=.
40508f65982aSmrg    for ac_prog in egrep; do
40518f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40528f65982aSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
40538f65982aSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
40548f65982aSmrg# Check for GNU ac_path_EGREP and select it if it is found.
405583d7c197Smrg  # Check for GNU $ac_path_EGREP
405683d7c197Smrgcase `"$ac_path_EGREP" --version 2>&1` in
405783d7c197Smrg*GNU*)
405883d7c197Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
405983d7c197Smrg*)
406083d7c197Smrg  ac_count=0
40618f65982aSmrg  $as_echo_n 0123456789 >"conftest.in"
406283d7c197Smrg  while :
406383d7c197Smrg  do
406483d7c197Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
406583d7c197Smrg    mv "conftest.tmp" "conftest.in"
406683d7c197Smrg    cp "conftest.in" "conftest.nl"
40678f65982aSmrg    $as_echo 'EGREP' >> "conftest.nl"
406883d7c197Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
406983d7c197Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40708f65982aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
407183d7c197Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
407283d7c197Smrg      # Best one so far, save it but keep looking for a better one
40738f65982aSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
40748f65982aSmrg      ac_path_EGREP_max=$ac_count
40758f65982aSmrg    fi
40768f65982aSmrg    # 10*(2^10) chars as input seems more than enough
40778f65982aSmrg    test $ac_count -gt 10 && break
40788f65982aSmrg  done
40798f65982aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
408083d7c197Smrgesac
408183d7c197Smrg
40828f65982aSmrg      $ac_path_EGREP_found && break 3
40838f65982aSmrg    done
40848f65982aSmrg  done
40858f65982aSmrg  done
40868f65982aSmrgIFS=$as_save_IFS
40878f65982aSmrg  if test -z "$ac_cv_path_EGREP"; then
40888f65982aSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40898f65982aSmrg  fi
40908f65982aSmrgelse
40918f65982aSmrg  ac_cv_path_EGREP=$EGREP
409283d7c197Smrgfi
409383d7c197Smrg
40948f65982aSmrg   fi
409583d7c197Smrgfi
40968f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
40978f65982aSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
40988f65982aSmrg EGREP="$ac_cv_path_EGREP"
409983d7c197Smrg
410083d7c197Smrg
41018f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
41028f65982aSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
41038f65982aSmrgif ${ac_cv_header_stdc+:} false; then :
41048f65982aSmrg  $as_echo_n "(cached) " >&6
410583d7c197Smrgelse
41068f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
410783d7c197Smrg/* end confdefs.h.  */
41088f65982aSmrg#include <stdlib.h>
41098f65982aSmrg#include <stdarg.h>
41108f65982aSmrg#include <string.h>
41118f65982aSmrg#include <float.h>
41128f65982aSmrg
411383d7c197Smrgint
411483d7c197Smrgmain ()
411583d7c197Smrg{
411683d7c197Smrg
411783d7c197Smrg  ;
411883d7c197Smrg  return 0;
411983d7c197Smrg}
412083d7c197Smrg_ACEOF
41218f65982aSmrgif ac_fn_c_try_compile "$LINENO"; then :
41228f65982aSmrg  ac_cv_header_stdc=yes
412383d7c197Smrgelse
41248f65982aSmrg  ac_cv_header_stdc=no
412583d7c197Smrgfi
412683d7c197Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41278f65982aSmrg
41288f65982aSmrgif test $ac_cv_header_stdc = yes; then
41298f65982aSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41308f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41318f65982aSmrg/* end confdefs.h.  */
41328f65982aSmrg#include <string.h>
41338f65982aSmrg
41348f65982aSmrg_ACEOF
41358f65982aSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41368f65982aSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
41378f65982aSmrg
413883d7c197Smrgelse
41398f65982aSmrg  ac_cv_header_stdc=no
414083d7c197Smrgfi
41418f65982aSmrgrm -f conftest*
414283d7c197Smrg
414383d7c197Smrgfi
414483d7c197Smrg
41458f65982aSmrgif test $ac_cv_header_stdc = yes; then
41468f65982aSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41478f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41488f65982aSmrg/* end confdefs.h.  */
41498f65982aSmrg#include <stdlib.h>
415083d7c197Smrg
41518f65982aSmrg_ACEOF
41528f65982aSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41538f65982aSmrg  $EGREP "free" >/dev/null 2>&1; then :
415483d7c197Smrg
41558f65982aSmrgelse
41568f65982aSmrg  ac_cv_header_stdc=no
41578f65982aSmrgfi
41588f65982aSmrgrm -f conftest*
415983d7c197Smrg
41608f65982aSmrgfi
416183d7c197Smrg
41628f65982aSmrgif test $ac_cv_header_stdc = yes; then
41638f65982aSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
41648f65982aSmrg  if test "$cross_compiling" = yes; then :
41658f65982aSmrg  :
41668f65982aSmrgelse
41678f65982aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
416883d7c197Smrg/* end confdefs.h.  */
41698f65982aSmrg#include <ctype.h>
41708f65982aSmrg#include <stdlib.h>
41718f65982aSmrg#if ((' ' & 0x0FF) == 0x020)
41728f65982aSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
41738f65982aSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
417483d7c197Smrg#else
41758f65982aSmrg# define ISLOWER(c) \
41768f65982aSmrg		   (('a' <= (c) && (c) <= 'i') \
41778f65982aSmrg		     || ('j' <= (c) && (c) <= 'r') \
41788f65982aSmrg		     || ('s' <= (c) && (c) <= 'z'))
41798f65982aSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
418083d7c197Smrg#endif
418183d7c197Smrg
41828f65982aSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
418383d7c197Smrgint
418483d7c197Smrgmain ()
418583d7c197Smrg{
41868f65982aSmrg  int i;
41878f65982aSmrg  for (i = 0; i < 256; i++)
41888f65982aSmrg    if (XOR (islower (i), ISLOWER (i))
41898f65982aSmrg	|| toupper (i) != TOUPPER (i))
41908f65982aSmrg      return 2;
419183d7c197Smrg  return 0;
419283d7c197Smrg}
419383d7c197Smrg_ACEOF
41948f65982aSmrgif ac_fn_c_try_run "$LINENO"; then :
41958f65982aSmrg
419683d7c197Smrgelse
41978f65982aSmrg  ac_cv_header_stdc=no
41988f65982aSmrgfi
41998f65982aSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42008f65982aSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
42018f65982aSmrgfi
420283d7c197Smrg
420383d7c197Smrgfi
42048f65982aSmrgfi
42058f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
42068f65982aSmrg$as_echo "$ac_cv_header_stdc" >&6; }
42078f65982aSmrgif test $ac_cv_header_stdc = yes; then
42088f65982aSmrg
42098f65982aSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
421083d7c197Smrg
421183d7c197Smrgfi
42128f65982aSmrg
42138f65982aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42148f65982aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42158f65982aSmrg		  inttypes.h stdint.h unistd.h
42168f65982aSmrgdo :
42178f65982aSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42188f65982aSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
42198f65982aSmrg"
42208f65982aSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
422183d7c197Smrg  cat >>confdefs.h <<_ACEOF
42228f65982aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
422383d7c197Smrg_ACEOF
422483d7c197Smrg
422583d7c197Smrgfi
42268f65982aSmrg
422783d7c197Smrgdone
422883d7c197Smrg
422983d7c197Smrg
423083d7c197Smrg
423183d7c197Smrg
423283d7c197Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
423383d7c197Smrg	if test -n "$ac_tool_prefix"; then
423483d7c197Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
423583d7c197Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42368f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42378f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
42388f65982aSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
42398f65982aSmrg  $as_echo_n "(cached) " >&6
424083d7c197Smrgelse
424183d7c197Smrg  case $PKG_CONFIG in
424283d7c197Smrg  [\\/]* | ?:[\\/]*)
424383d7c197Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
424483d7c197Smrg  ;;
424583d7c197Smrg  *)
424683d7c197Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
424783d7c197Smrgfor as_dir in $PATH
424883d7c197Smrgdo
424983d7c197Smrg  IFS=$as_save_IFS
425083d7c197Smrg  test -z "$as_dir" && as_dir=.
42518f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
425283d7c197Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
425383d7c197Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42548f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
425583d7c197Smrg    break 2
425683d7c197Smrg  fi
425783d7c197Smrgdone
42588f65982aSmrg  done
425983d7c197SmrgIFS=$as_save_IFS
426083d7c197Smrg
426183d7c197Smrg  ;;
426283d7c197Smrgesac
426383d7c197Smrgfi
426483d7c197SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
426583d7c197Smrgif test -n "$PKG_CONFIG"; then
42668f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
42678f65982aSmrg$as_echo "$PKG_CONFIG" >&6; }
426883d7c197Smrgelse
42698f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42708f65982aSmrg$as_echo "no" >&6; }
427183d7c197Smrgfi
427283d7c197Smrg
427383d7c197Smrg
427483d7c197Smrgfi
427583d7c197Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
427683d7c197Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
427783d7c197Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
427883d7c197Smrgset dummy pkg-config; ac_word=$2
42798f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42808f65982aSmrg$as_echo_n "checking for $ac_word... " >&6; }
42818f65982aSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
42828f65982aSmrg  $as_echo_n "(cached) " >&6
428383d7c197Smrgelse
428483d7c197Smrg  case $ac_pt_PKG_CONFIG in
428583d7c197Smrg  [\\/]* | ?:[\\/]*)
428683d7c197Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
428783d7c197Smrg  ;;
428883d7c197Smrg  *)
428983d7c197Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
429083d7c197Smrgfor as_dir in $PATH
429183d7c197Smrgdo
429283d7c197Smrg  IFS=$as_save_IFS
429383d7c197Smrg  test -z "$as_dir" && as_dir=.
42948f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
429583d7c197Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
429683d7c197Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42978f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
429883d7c197Smrg    break 2
429983d7c197Smrg  fi
430083d7c197Smrgdone
43018f65982aSmrg  done
43029aa228fdSmrgIFS=$as_save_IFS
43039aa228fdSmrg
43049aa228fdSmrg  ;;
43059aa228fdSmrgesac
43069aa228fdSmrgfi
43079aa228fdSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43089aa228fdSmrgif test -n "$ac_pt_PKG_CONFIG"; then
43098f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
43108f65982aSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
43119aa228fdSmrgelse
43128f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43138f65982aSmrg$as_echo "no" >&6; }
43149aa228fdSmrgfi
43159aa228fdSmrg
43169aa228fdSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
43179aa228fdSmrg    PKG_CONFIG=""
43189aa228fdSmrg  else
43199aa228fdSmrg    case $cross_compiling:$ac_tool_warned in
43209aa228fdSmrgyes:)
43218f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43228f65982aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43238f65982aSmrgac_tool_warned=yes ;;
43248f65982aSmrgesac
43258f65982aSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
43268f65982aSmrg  fi
43279aa228fdSmrgelse
43288f65982aSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43299aa228fdSmrgfi
433083d7c197Smrg
433183d7c197Smrgfi
43328f65982aSmrgif test -n "$PKG_CONFIG"; then
43338f65982aSmrg	_pkg_min_version=0.9.0
43348f65982aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
43358f65982aSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
43368f65982aSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43378f65982aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43388f65982aSmrg$as_echo "yes" >&6; }
43398f65982aSmrg	else
43408f65982aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43418f65982aSmrg$as_echo "no" >&6; }
43428f65982aSmrg		PKG_CONFIG=""
43438f65982aSmrg	fi
434483d7c197Smrg
43458f65982aSmrgfi
43469aa228fdSmrg# Make sure we can run config.sub.
43479aa228fdSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
43488f65982aSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
43499aa228fdSmrg
43508f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
43518f65982aSmrg$as_echo_n "checking build system type... " >&6; }
43528f65982aSmrgif ${ac_cv_build+:} false; then :
43538f65982aSmrg  $as_echo_n "(cached) " >&6
43549aa228fdSmrgelse
43559aa228fdSmrg  ac_build_alias=$build_alias
43569aa228fdSmrgtest "x$ac_build_alias" = x &&
43579aa228fdSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
43589aa228fdSmrgtest "x$ac_build_alias" = x &&
43598f65982aSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
43609aa228fdSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
43618f65982aSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
43629aa228fdSmrg
43639aa228fdSmrgfi
43648f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
43658f65982aSmrg$as_echo "$ac_cv_build" >&6; }
43669aa228fdSmrgcase $ac_cv_build in
43679aa228fdSmrg*-*-*) ;;
43688f65982aSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
43699aa228fdSmrgesac
43709aa228fdSmrgbuild=$ac_cv_build
43719aa228fdSmrgac_save_IFS=$IFS; IFS='-'
43729aa228fdSmrgset x $ac_cv_build
43739aa228fdSmrgshift
43749aa228fdSmrgbuild_cpu=$1
43759aa228fdSmrgbuild_vendor=$2
43769aa228fdSmrgshift; shift
43779aa228fdSmrg# Remember, the first character of IFS is used to create $*,
43789aa228fdSmrg# except with old shells:
43799aa228fdSmrgbuild_os=$*
43809aa228fdSmrgIFS=$ac_save_IFS
43819aa228fdSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
43829aa228fdSmrg
43839aa228fdSmrg
43848f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
43858f65982aSmrg$as_echo_n "checking host system type... " >&6; }
43868f65982aSmrgif ${ac_cv_host+:} false; then :
43878f65982aSmrg  $as_echo_n "(cached) " >&6
43889aa228fdSmrgelse
43899aa228fdSmrg  if test "x$host_alias" = x; then
43909aa228fdSmrg  ac_cv_host=$ac_cv_build
43919aa228fdSmrgelse
43929aa228fdSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
43938f65982aSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
43949aa228fdSmrgfi
43959aa228fdSmrg
43969aa228fdSmrgfi
43978f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
43988f65982aSmrg$as_echo "$ac_cv_host" >&6; }
43999aa228fdSmrgcase $ac_cv_host in
44009aa228fdSmrg*-*-*) ;;
44018f65982aSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
44029aa228fdSmrgesac
44039aa228fdSmrghost=$ac_cv_host
44049aa228fdSmrgac_save_IFS=$IFS; IFS='-'
44059aa228fdSmrgset x $ac_cv_host
44069aa228fdSmrgshift
44079aa228fdSmrghost_cpu=$1
44089aa228fdSmrghost_vendor=$2
44099aa228fdSmrgshift; shift
44109aa228fdSmrg# Remember, the first character of IFS is used to create $*,
44119aa228fdSmrg# except with old shells:
44129aa228fdSmrghost_os=$*
44139aa228fdSmrgIFS=$ac_save_IFS
44149aa228fdSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
44159aa228fdSmrg
44169aa228fdSmrg
44178f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44188f65982aSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
44198f65982aSmrgif ${ac_cv_path_SED+:} false; then :
44208f65982aSmrg  $as_echo_n "(cached) " >&6
44218f65982aSmrgelse
44228f65982aSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44238f65982aSmrg     for ac_i in 1 2 3 4 5 6 7; do
44248f65982aSmrg       ac_script="$ac_script$as_nl$ac_script"
44258f65982aSmrg     done
44268f65982aSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44278f65982aSmrg     { ac_script=; unset ac_script;}
44288f65982aSmrg     if test -z "$SED"; then
44298f65982aSmrg  ac_path_SED_found=false
44308f65982aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
44318f65982aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44328f65982aSmrgfor as_dir in $PATH
44338f65982aSmrgdo
44348f65982aSmrg  IFS=$as_save_IFS
44358f65982aSmrg  test -z "$as_dir" && as_dir=.
44368f65982aSmrg    for ac_prog in sed gsed; do
44378f65982aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
44388f65982aSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
44398f65982aSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
44408f65982aSmrg# Check for GNU ac_path_SED and select it if it is found.
44418f65982aSmrg  # Check for GNU $ac_path_SED
44428f65982aSmrgcase `"$ac_path_SED" --version 2>&1` in
44438f65982aSmrg*GNU*)
44448f65982aSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
44458f65982aSmrg*)
44468f65982aSmrg  ac_count=0
44478f65982aSmrg  $as_echo_n 0123456789 >"conftest.in"
44488f65982aSmrg  while :
44498f65982aSmrg  do
44508f65982aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
44518f65982aSmrg    mv "conftest.tmp" "conftest.in"
44528f65982aSmrg    cp "conftest.in" "conftest.nl"
44538f65982aSmrg    $as_echo '' >> "conftest.nl"
44548f65982aSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
44558f65982aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
44568f65982aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
44578f65982aSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
44588f65982aSmrg      # Best one so far, save it but keep looking for a better one
44598f65982aSmrg      ac_cv_path_SED="$ac_path_SED"
44608f65982aSmrg      ac_path_SED_max=$ac_count
44618f65982aSmrg    fi
44628f65982aSmrg    # 10*(2^10) chars as input seems more than enough
44638f65982aSmrg    test $ac_count -gt 10 && break
44648f65982aSmrg  done
44658f65982aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
44668f65982aSmrgesac
44678f65982aSmrg
44688f65982aSmrg      $ac_path_SED_found && break 3
44698f65982aSmrg    done
44708f65982aSmrg  done
44718f65982aSmrg  done
44728f65982aSmrgIFS=$as_save_IFS
44738f65982aSmrg  if test -z "$ac_cv_path_SED"; then
44748f65982aSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
44758f65982aSmrg  fi
44768f65982aSmrgelse
44778f65982aSmrg  ac_cv_path_SED=$SED
44788f65982aSmrgfi
44798f65982aSmrg
44808f65982aSmrgfi
44818f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
44828f65982aSmrg$as_echo "$ac_cv_path_SED" >&6; }
44838f65982aSmrg SED="$ac_cv_path_SED"
44848f65982aSmrg  rm -f conftest.sed
44858f65982aSmrg
44868f65982aSmrg
44878f65982aSmrg
44888f65982aSmrg
44898f65982aSmrg
44908f65982aSmrgif  test "x$GCC" = xyes ; then
44918f65982aSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
44928f65982aSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
44938f65982aSmrg-Wbad-function-cast -Wformat=2"
44948f65982aSmrg    case `$CC -dumpversion` in
44958f65982aSmrg    3.4.* | 4.*)
44968f65982aSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
44978f65982aSmrg	;;
44988f65982aSmrg    esac
44998f65982aSmrgelse
45008f65982aSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45018f65982aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
45028f65982aSmrg  SUNCC="yes"
45038f65982aSmrgelse
45048f65982aSmrg  SUNCC="no"
45058f65982aSmrgfi
45068f65982aSmrg
45078f65982aSmrg    if test "x$SUNCC" = "xyes"; then
45088f65982aSmrg	CWARNFLAGS="-v"
45098f65982aSmrg    fi
45108f65982aSmrgfi
45118f65982aSmrg
45128f65982aSmrg
45138f65982aSmrg
45148f65982aSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
45158f65982aSmrg
45168f65982aSmrg
45178f65982aSmrg
45188f65982aSmrg# Check whether --enable-strict-compilation was given.
45198f65982aSmrgif test "${enable_strict_compilation+set}" = set; then :
45208f65982aSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
45218f65982aSmrgelse
45228f65982aSmrg  STRICT_COMPILE=no
45238f65982aSmrgfi
45248f65982aSmrg
45258f65982aSmrgif test "x$STRICT_COMPILE" = "xyes"; then
45268f65982aSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45278f65982aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
45288f65982aSmrg  SUNCC="yes"
45298f65982aSmrgelse
45308f65982aSmrg  SUNCC="no"
45318f65982aSmrgfi
45328f65982aSmrg
45338f65982aSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
45348f65982aSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
45358f65982aSmrg  INTELCC="yes"
45368f65982aSmrgelse
45378f65982aSmrg  INTELCC="no"
45388f65982aSmrgfi
45398f65982aSmrg
45408f65982aSmrg	if test "x$GCC" = xyes ; then
45418f65982aSmrg		STRICT_CFLAGS="-pedantic -Werror"
45428f65982aSmrg	elif test "x$SUNCC" = "xyes"; then
45438f65982aSmrg		STRICT_CFLAGS="-errwarn"
45448f65982aSmrg    elif test "x$INTELCC" = "xyes"; then
45458f65982aSmrg		STRICT_CFLAGS="-Werror"
45468f65982aSmrg	fi
45478f65982aSmrgfi
45488f65982aSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
45498f65982aSmrg
45508f65982aSmrg
45518f65982aSmrg
45528f65982aSmrg
45538f65982aSmrgcat >>confdefs.h <<_ACEOF
45548f65982aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
45558f65982aSmrg_ACEOF
45568f65982aSmrg
45578f65982aSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
45588f65982aSmrg	if test "x$PVM" = "x"; then
45598f65982aSmrg		PVM="0"
45608f65982aSmrg	fi
45618f65982aSmrg
45628f65982aSmrgcat >>confdefs.h <<_ACEOF
45638f65982aSmrg#define PACKAGE_VERSION_MINOR $PVM
45648f65982aSmrg_ACEOF
45658f65982aSmrg
45668f65982aSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
45678f65982aSmrg	if test "x$PVP" = "x"; then
45688f65982aSmrg		PVP="0"
45698f65982aSmrg	fi
45708f65982aSmrg
45718f65982aSmrgcat >>confdefs.h <<_ACEOF
45728f65982aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
45738f65982aSmrg_ACEOF
45748f65982aSmrg
45758f65982aSmrg
45768f65982aSmrg
45778f65982aSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
45788f65982aSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
45798f65982aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
45808f65982aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
45818f65982aSmrg
45828f65982aSmrg
45838f65982aSmrg
45848f65982aSmrg
45858f65982aSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
45868f65982aSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
45878f65982aSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
45888f65982aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
45898f65982aSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
45908f65982aSmrg
45918f65982aSmrg
45928f65982aSmrg
45939aa228fdSmrg
45949aa228fdSmrg
45959aa228fdSmrg
45969aa228fdSmrgif test x$APP_MAN_SUFFIX = x    ; then
45979aa228fdSmrg    APP_MAN_SUFFIX=1
45989aa228fdSmrgfi
45999aa228fdSmrgif test x$APP_MAN_DIR = x    ; then
46009aa228fdSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
46019aa228fdSmrgfi
46029aa228fdSmrg
46039aa228fdSmrgif test x$LIB_MAN_SUFFIX = x    ; then
46049aa228fdSmrg    LIB_MAN_SUFFIX=3
46059aa228fdSmrgfi
46069aa228fdSmrgif test x$LIB_MAN_DIR = x    ; then
46079aa228fdSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
46089aa228fdSmrgfi
46099aa228fdSmrg
46109aa228fdSmrgif test x$FILE_MAN_SUFFIX = x    ; then
46119aa228fdSmrg    case $host_os in
46129aa228fdSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
46139aa228fdSmrg	*)		FILE_MAN_SUFFIX=5  ;;
46149aa228fdSmrg    esac
46159aa228fdSmrgfi
46169aa228fdSmrgif test x$FILE_MAN_DIR = x    ; then
46179aa228fdSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
46189aa228fdSmrgfi
46199aa228fdSmrg
46209aa228fdSmrgif test x$MISC_MAN_SUFFIX = x    ; then
46219aa228fdSmrg    case $host_os in
46229aa228fdSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
46239aa228fdSmrg	*)		MISC_MAN_SUFFIX=7  ;;
46249aa228fdSmrg    esac
46259aa228fdSmrgfi
46269aa228fdSmrgif test x$MISC_MAN_DIR = x    ; then
46279aa228fdSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
46289aa228fdSmrgfi
46299aa228fdSmrg
46309aa228fdSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
46319aa228fdSmrg    case $host_os in
46329aa228fdSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
46339aa228fdSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
46349aa228fdSmrg    esac
46359aa228fdSmrgfi
46369aa228fdSmrgif test x$DRIVER_MAN_DIR = x    ; then
46379aa228fdSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
46389aa228fdSmrgfi
46399aa228fdSmrg
46409aa228fdSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
46419aa228fdSmrg    case $host_os in
46429aa228fdSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
46439aa228fdSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
46449aa228fdSmrg    esac
46459aa228fdSmrgfi
46469aa228fdSmrgif test x$ADMIN_MAN_DIR = x    ; then
46479aa228fdSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
46489aa228fdSmrgfi
46499aa228fdSmrg
46509aa228fdSmrg
46519aa228fdSmrg
46529aa228fdSmrg
46539aa228fdSmrg
46549aa228fdSmrg
46559aa228fdSmrg
46569aa228fdSmrg
46579aa228fdSmrg
46589aa228fdSmrg
46599aa228fdSmrg
46609aa228fdSmrg
46619aa228fdSmrg
46629aa228fdSmrg
46639aa228fdSmrg
46648f65982aSmrgXORG_MAN_PAGE="X Version 11"
46659aa228fdSmrg
46668f65982aSmrgMAN_SUBSTS="\
46678f65982aSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
46688f65982aSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
46698f65982aSmrg	-e 's|__xservername__|Xorg|g' \
46708f65982aSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
46718f65982aSmrg	-e 's|__projectroot__|\$(prefix)|g' \
46728f65982aSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
46738f65982aSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
46748f65982aSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
46758f65982aSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
46768f65982aSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
46778f65982aSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
46788f65982aSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
46799aa228fdSmrg
46808f65982aSmrg
46818f65982aSmrg
46828f65982aSmrg# Check whether --enable-silent-rules was given.
46838f65982aSmrgif test "${enable_silent_rules+set}" = set; then :
46848f65982aSmrg  enableval=$enable_silent_rules;
46859aa228fdSmrgfi
46869aa228fdSmrg
46878f65982aSmrgcase $enable_silent_rules in
46888f65982aSmrgyes) AM_DEFAULT_VERBOSITY=0;;
46898f65982aSmrgno)  AM_DEFAULT_VERBOSITY=1;;
46908f65982aSmrg*)   AM_DEFAULT_VERBOSITY=0;;
46918f65982aSmrgesac
46928f65982aSmrgAM_BACKSLASH='\'
46939aa228fdSmrg
46949aa228fdSmrg
46959aa228fdSmrg
46968f65982aSmrgac_config_headers="$ac_config_headers config.h"
46979aa228fdSmrg
46989aa228fdSmrg
46998f65982aSmrgfor ac_func in nanosleep poll select
47008f65982aSmrgdo :
47018f65982aSmrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47028f65982aSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47038f65982aSmrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47048f65982aSmrg  cat >>confdefs.h <<_ACEOF
47058f65982aSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47069aa228fdSmrg_ACEOF
47079aa228fdSmrg
47088f65982aSmrgfi
47098f65982aSmrgdone
47109aa228fdSmrg
47119aa228fdSmrg
47128f65982aSmrg# Checks for pkg-config packages
47138f65982aSmrg
47148f65982aSmrgpkg_failed=no
47158f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5
47168f65982aSmrg$as_echo_n "checking for XMAG... " >&6; }
47178f65982aSmrg
47188f65982aSmrgif test -n "$XMAG_CFLAGS"; then
47198f65982aSmrg    pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS"
47208f65982aSmrg elif test -n "$PKG_CONFIG"; then
47218f65982aSmrg    if test -n "$PKG_CONFIG" && \
47228f65982aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
47238f65982aSmrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
47248f65982aSmrg  ac_status=$?
47258f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47268f65982aSmrg  test $ac_status = 0; }; then
47278f65982aSmrg  pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
47288f65982aSmrgelse
47298f65982aSmrg  pkg_failed=yes
47308f65982aSmrgfi
47318f65982aSmrg else
47328f65982aSmrg    pkg_failed=untried
47338f65982aSmrgfi
47348f65982aSmrgif test -n "$XMAG_LIBS"; then
47358f65982aSmrg    pkg_cv_XMAG_LIBS="$XMAG_LIBS"
47368f65982aSmrg elif test -n "$PKG_CONFIG"; then
47378f65982aSmrg    if test -n "$PKG_CONFIG" && \
47388f65982aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
47398f65982aSmrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
47408f65982aSmrg  ac_status=$?
47418f65982aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47428f65982aSmrg  test $ac_status = 0; }; then
47438f65982aSmrg  pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
47448f65982aSmrgelse
47458f65982aSmrg  pkg_failed=yes
47468f65982aSmrgfi
47478f65982aSmrg else
47488f65982aSmrg    pkg_failed=untried
47498f65982aSmrgfi
47508f65982aSmrg
47518f65982aSmrg
47528f65982aSmrg
47538f65982aSmrgif test $pkg_failed = yes; then
47548f65982aSmrg
47558f65982aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47568f65982aSmrg        _pkg_short_errors_supported=yes
47578f65982aSmrgelse
47588f65982aSmrg        _pkg_short_errors_supported=no
47598f65982aSmrgfi
47608f65982aSmrg        if test $_pkg_short_errors_supported = yes; then
47618f65982aSmrg	        XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1`
47628f65982aSmrg        else
47638f65982aSmrg	        XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1`
47648f65982aSmrg        fi
47658f65982aSmrg	# Put the nasty error message in config.log where it belongs
47668f65982aSmrg	echo "$XMAG_PKG_ERRORS" >&5
47678f65982aSmrg
47688f65982aSmrg	as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
47698f65982aSmrg
47708f65982aSmrg$XMAG_PKG_ERRORS
47718f65982aSmrg
47728f65982aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
47738f65982aSmrginstalled software in a non-standard prefix.
47748f65982aSmrg
47758f65982aSmrgAlternatively, you may set the environment variables XMAG_CFLAGS
47768f65982aSmrgand XMAG_LIBS to avoid the need to call pkg-config.
47778f65982aSmrgSee the pkg-config man page for more details.
47788f65982aSmrg" "$LINENO" 5
47798f65982aSmrgelif test $pkg_failed = untried; then
47808f65982aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47818f65982aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47828f65982aSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47838f65982aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
47848f65982aSmrgpath to pkg-config.
47858f65982aSmrg
47868f65982aSmrgAlternatively, you may set the environment variables XMAG_CFLAGS
47878f65982aSmrgand XMAG_LIBS to avoid the need to call pkg-config.
47888f65982aSmrgSee the pkg-config man page for more details.
47898f65982aSmrg
47908f65982aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
47918f65982aSmrgSee \`config.log' for more details" "$LINENO" 5; }
47928f65982aSmrgelse
47938f65982aSmrg	XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS
47948f65982aSmrg	XMAG_LIBS=$pkg_cv_XMAG_LIBS
47958f65982aSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47968f65982aSmrg$as_echo "yes" >&6; }
47978f65982aSmrg	:
47988f65982aSmrgfi
47998f65982aSmrg
48008f65982aSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
48018f65982aSmrg
48028f65982aSmrg# Check whether --with-appdefaultdir was given.
48038f65982aSmrgif test "${with_appdefaultdir+set}" = set; then :
48048f65982aSmrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
48058f65982aSmrgelse
48068f65982aSmrg  appdefaultdir="${xt_appdefaultdir}"
48078f65982aSmrgfi
480883d7c197Smrg
480983d7c197Smrg
481083d7c197Smrg
481183d7c197Smrg
48129aa228fdSmrgac_config_files="$ac_config_files Makefile"
48139aa228fdSmrg
48149aa228fdSmrgcat >confcache <<\_ACEOF
48159aa228fdSmrg# This file is a shell script that caches the results of configure
48169aa228fdSmrg# tests run on this system so they can be shared between configure
48179aa228fdSmrg# scripts and configure runs, see configure's option --config-cache.
48189aa228fdSmrg# It is not useful on other systems.  If it contains results you don't
48199aa228fdSmrg# want to keep, you may remove or edit it.
48209aa228fdSmrg#
48219aa228fdSmrg# config.status only pays attention to the cache file if you give it
48229aa228fdSmrg# the --recheck option to rerun configure.
48239aa228fdSmrg#
48249aa228fdSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
48259aa228fdSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
48269aa228fdSmrg# following values.
48279aa228fdSmrg
48289aa228fdSmrg_ACEOF
48299aa228fdSmrg
48309aa228fdSmrg# The following way of writing the cache mishandles newlines in values,
48319aa228fdSmrg# but we know of no workaround that is simple, portable, and efficient.
48329aa228fdSmrg# So, we kill variables containing newlines.
48339aa228fdSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
48349aa228fdSmrg# and sets the high bit in the cache file unless we assign to the vars.
48359aa228fdSmrg(
48369aa228fdSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48379aa228fdSmrg    eval ac_val=\$$ac_var
48389aa228fdSmrg    case $ac_val in #(
48399aa228fdSmrg    *${as_nl}*)
48409aa228fdSmrg      case $ac_var in #(
48418f65982aSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
48428f65982aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48439aa228fdSmrg      esac
48449aa228fdSmrg      case $ac_var in #(
48459aa228fdSmrg      _ | IFS | as_nl) ;; #(
48468f65982aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48478f65982aSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
48489aa228fdSmrg      esac ;;
48499aa228fdSmrg    esac
48509aa228fdSmrg  done
48519aa228fdSmrg
48529aa228fdSmrg  (set) 2>&1 |
48539aa228fdSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
48549aa228fdSmrg    *${as_nl}ac_space=\ *)
48558f65982aSmrg      # `set' does not quote correctly, so add quotes: double-quote
48568f65982aSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
48579aa228fdSmrg      sed -n \
48589aa228fdSmrg	"s/'/'\\\\''/g;
48599aa228fdSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48609aa228fdSmrg      ;; #(
48619aa228fdSmrg    *)
48629aa228fdSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
48639aa228fdSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48649aa228fdSmrg      ;;
48659aa228fdSmrg    esac |
48669aa228fdSmrg    sort
48679aa228fdSmrg) |
48689aa228fdSmrg  sed '
48699aa228fdSmrg     /^ac_cv_env_/b end
48709aa228fdSmrg     t clear
48719aa228fdSmrg     :clear
48729aa228fdSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48739aa228fdSmrg     t end
48749aa228fdSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48759aa228fdSmrg     :end' >>confcache
48769aa228fdSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48779aa228fdSmrg  if test -w "$cache_file"; then
48788f65982aSmrg    if test "x$cache_file" != "x/dev/null"; then
48798f65982aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
48808f65982aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
48818f65982aSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
48828f65982aSmrg	cat confcache >"$cache_file"
48838f65982aSmrg      else
48848f65982aSmrg        case $cache_file in #(
48858f65982aSmrg        */* | ?:*)
48868f65982aSmrg	  mv -f confcache "$cache_file"$$ &&
48878f65982aSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
48888f65982aSmrg        *)
48898f65982aSmrg	  mv -f confcache "$cache_file" ;;
48908f65982aSmrg	esac
48918f65982aSmrg      fi
48928f65982aSmrg    fi
48939aa228fdSmrg  else
48948f65982aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
48958f65982aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48969aa228fdSmrg  fi
48979aa228fdSmrgfi
48989aa228fdSmrgrm -f confcache
48999aa228fdSmrg
49009aa228fdSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
49019aa228fdSmrg# Let make expand exec_prefix.
49029aa228fdSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49039aa228fdSmrg
49049aa228fdSmrgDEFS=-DHAVE_CONFIG_H
49059aa228fdSmrg
49069aa228fdSmrgac_libobjs=
49079aa228fdSmrgac_ltlibobjs=
49088f65982aSmrgU=
49099aa228fdSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49109aa228fdSmrg  # 1. Remove the extension, and $U if already installed.
49119aa228fdSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49128f65982aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
49139aa228fdSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
49149aa228fdSmrg  #    will be set to the directory where LIBOBJS objects are built.
49158f65982aSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49168f65982aSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
49179aa228fdSmrgdone
49189aa228fdSmrgLIBOBJS=$ac_libobjs
49199aa228fdSmrg
49209aa228fdSmrgLTLIBOBJS=$ac_ltlibobjs
49219aa228fdSmrg
49229aa228fdSmrg
49238f65982aSmrg if test -n "$EXEEXT"; then
49248f65982aSmrg  am__EXEEXT_TRUE=
49258f65982aSmrg  am__EXEEXT_FALSE='#'
49268f65982aSmrgelse
49278f65982aSmrg  am__EXEEXT_TRUE='#'
49288f65982aSmrg  am__EXEEXT_FALSE=
49298f65982aSmrgfi
49308f65982aSmrg
49319aa228fdSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
49328f65982aSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
49338f65982aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
49349aa228fdSmrgfi
49359aa228fdSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49368f65982aSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
49378f65982aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
49389aa228fdSmrgfi
49399aa228fdSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49408f65982aSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
49418f65982aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
49429aa228fdSmrgfi
49439aa228fdSmrg
49448f65982aSmrg: "${CONFIG_STATUS=./config.status}"
49458f65982aSmrgac_write_fail=0
49469aa228fdSmrgac_clean_files_save=$ac_clean_files
49479aa228fdSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
49488f65982aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
49498f65982aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
49508f65982aSmrgas_write_fail=0
49518f65982aSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
49529aa228fdSmrg#! $SHELL
49539aa228fdSmrg# Generated by $as_me.
49549aa228fdSmrg# Run this file to recreate the current configuration.
49559aa228fdSmrg# Compiler output produced by configure, useful for debugging
49569aa228fdSmrg# configure, is in config.log if it exists.
49579aa228fdSmrg
49589aa228fdSmrgdebug=false
49599aa228fdSmrgac_cs_recheck=false
49609aa228fdSmrgac_cs_silent=false
49619aa228fdSmrg
49628f65982aSmrgSHELL=\${CONFIG_SHELL-$SHELL}
49638f65982aSmrgexport SHELL
49648f65982aSmrg_ASEOF
49658f65982aSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
49668f65982aSmrg## -------------------- ##
49678f65982aSmrg## M4sh Initialization. ##
49688f65982aSmrg## -------------------- ##
49699aa228fdSmrg
49709aa228fdSmrg# Be more Bourne compatible
49719aa228fdSmrgDUALCASE=1; export DUALCASE # for MKS sh
49728f65982aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
49739aa228fdSmrg  emulate sh
49749aa228fdSmrg  NULLCMD=:
49758f65982aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
49769aa228fdSmrg  # is contrary to our usage.  Disable this feature.
49779aa228fdSmrg  alias -g '${1+"$@"}'='"$@"'
49789aa228fdSmrg  setopt NO_GLOB_SUBST
49799aa228fdSmrgelse
49808f65982aSmrg  case `(set -o) 2>/dev/null` in #(
49818f65982aSmrg  *posix*) :
49828f65982aSmrg    set -o posix ;; #(
49838f65982aSmrg  *) :
49848f65982aSmrg     ;;
49859aa228fdSmrgesac
49869aa228fdSmrgfi
49879aa228fdSmrg
49889aa228fdSmrg
49898f65982aSmrgas_nl='
49908f65982aSmrg'
49918f65982aSmrgexport as_nl
49928f65982aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
49938f65982aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49948f65982aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49958f65982aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49968f65982aSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
49978f65982aSmrg# but without wasting forks for bash or zsh.
49988f65982aSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
49998f65982aSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50008f65982aSmrg  as_echo='print -r --'
50018f65982aSmrg  as_echo_n='print -rn --'
50028f65982aSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50038f65982aSmrg  as_echo='printf %s\n'
50048f65982aSmrg  as_echo_n='printf %s'
50058f65982aSmrgelse
50068f65982aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50078f65982aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50088f65982aSmrg    as_echo_n='/usr/ucb/echo -n'
50099aa228fdSmrg  else
50108f65982aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50118f65982aSmrg    as_echo_n_body='eval
50128f65982aSmrg      arg=$1;
50138f65982aSmrg      case $arg in #(
50148f65982aSmrg      *"$as_nl"*)
50158f65982aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
50168f65982aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50178f65982aSmrg      esac;
50188f65982aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50198f65982aSmrg    '
50208f65982aSmrg    export as_echo_n_body
50218f65982aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
50229aa228fdSmrg  fi
50238f65982aSmrg  export as_echo_body
50248f65982aSmrg  as_echo='sh -c $as_echo_body as_echo'
50259aa228fdSmrgfi
50269aa228fdSmrg
50278f65982aSmrg# The user is always right.
50288f65982aSmrgif test "${PATH_SEPARATOR+set}" != set; then
50298f65982aSmrg  PATH_SEPARATOR=:
50308f65982aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
50318f65982aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
50328f65982aSmrg      PATH_SEPARATOR=';'
50338f65982aSmrg  }
50349aa228fdSmrgfi
50359aa228fdSmrg
50369aa228fdSmrg
50379aa228fdSmrg# IFS
50389aa228fdSmrg# We need space, tab and new line, in precisely that order.  Quoting is
50399aa228fdSmrg# there to prevent editors from complaining about space-tab.
50409aa228fdSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
50419aa228fdSmrg# splitting by setting IFS to empty value.)
50429aa228fdSmrgIFS=" ""	$as_nl"
50439aa228fdSmrg
50449aa228fdSmrg# Find who we are.  Look in the path if we contain no directory separator.
50458f65982aSmrgas_myself=
50468f65982aSmrgcase $0 in #((
50479aa228fdSmrg  *[\\/]* ) as_myself=$0 ;;
50489aa228fdSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50499aa228fdSmrgfor as_dir in $PATH
50509aa228fdSmrgdo
50519aa228fdSmrg  IFS=$as_save_IFS
50529aa228fdSmrg  test -z "$as_dir" && as_dir=.
50538f65982aSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50548f65982aSmrg  done
50559aa228fdSmrgIFS=$as_save_IFS
50569aa228fdSmrg
50579aa228fdSmrg     ;;
50589aa228fdSmrgesac
50599aa228fdSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
50609aa228fdSmrg# in which case we are not to be found in the path.
50619aa228fdSmrgif test "x$as_myself" = x; then
50629aa228fdSmrg  as_myself=$0
50639aa228fdSmrgfi
50649aa228fdSmrgif test ! -f "$as_myself"; then
50658f65982aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50668f65982aSmrg  exit 1
50679aa228fdSmrgfi
50689aa228fdSmrg
50698f65982aSmrg# Unset variables that we do not need and which cause bugs (e.g. in
50708f65982aSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
50718f65982aSmrg# suppresses any "Segmentation fault" message there.  '((' could
50728f65982aSmrg# trigger a bug in pdksh 5.2.14.
50738f65982aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
50748f65982aSmrgdo eval test x\${$as_var+set} = xset \
50758f65982aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
50769aa228fdSmrgdone
50779aa228fdSmrgPS1='$ '
50789aa228fdSmrgPS2='> '
50799aa228fdSmrgPS4='+ '
50809aa228fdSmrg
50819aa228fdSmrg# NLS nuisances.
50828f65982aSmrgLC_ALL=C
50838f65982aSmrgexport LC_ALL
50848f65982aSmrgLANGUAGE=C
50858f65982aSmrgexport LANGUAGE
50868f65982aSmrg
50878f65982aSmrg# CDPATH.
50888f65982aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
50898f65982aSmrg
50908f65982aSmrg
50918f65982aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
50928f65982aSmrg# ----------------------------------------
50938f65982aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
50948f65982aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50958f65982aSmrg# script with STATUS, using 1 if that was 0.
50968f65982aSmrgas_fn_error ()
50978f65982aSmrg{
50988f65982aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
50998f65982aSmrg  if test "$4"; then
51008f65982aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
51018f65982aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
51029aa228fdSmrg  fi
51038f65982aSmrg  $as_echo "$as_me: error: $2" >&2
51048f65982aSmrg  as_fn_exit $as_status
51058f65982aSmrg} # as_fn_error
51068f65982aSmrg
51078f65982aSmrg
51088f65982aSmrg# as_fn_set_status STATUS
51098f65982aSmrg# -----------------------
51108f65982aSmrg# Set $? to STATUS, without forking.
51118f65982aSmrgas_fn_set_status ()
51128f65982aSmrg{
51138f65982aSmrg  return $1
51148f65982aSmrg} # as_fn_set_status
51158f65982aSmrg
51168f65982aSmrg# as_fn_exit STATUS
51178f65982aSmrg# -----------------
51188f65982aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
51198f65982aSmrgas_fn_exit ()
51208f65982aSmrg{
51218f65982aSmrg  set +e
51228f65982aSmrg  as_fn_set_status $1
51238f65982aSmrg  exit $1
51248f65982aSmrg} # as_fn_exit
51258f65982aSmrg
51268f65982aSmrg# as_fn_unset VAR
51278f65982aSmrg# ---------------
51288f65982aSmrg# Portably unset VAR.
51298f65982aSmrgas_fn_unset ()
51308f65982aSmrg{
51318f65982aSmrg  { eval $1=; unset $1;}
51328f65982aSmrg}
51338f65982aSmrgas_unset=as_fn_unset
51348f65982aSmrg# as_fn_append VAR VALUE
51358f65982aSmrg# ----------------------
51368f65982aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
51378f65982aSmrg# advantage of any shell optimizations that allow amortized linear growth over
51388f65982aSmrg# repeated appends, instead of the typical quadratic growth present in naive
51398f65982aSmrg# implementations.
51408f65982aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
51418f65982aSmrg  eval 'as_fn_append ()
51428f65982aSmrg  {
51438f65982aSmrg    eval $1+=\$2
51448f65982aSmrg  }'
51458f65982aSmrgelse
51468f65982aSmrg  as_fn_append ()
51478f65982aSmrg  {
51488f65982aSmrg    eval $1=\$$1\$2
51498f65982aSmrg  }
51508f65982aSmrgfi # as_fn_append
51518f65982aSmrg
51528f65982aSmrg# as_fn_arith ARG...
51538f65982aSmrg# ------------------
51548f65982aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
51558f65982aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
51568f65982aSmrg# must be portable across $(()) and expr.
51578f65982aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
51588f65982aSmrg  eval 'as_fn_arith ()
51598f65982aSmrg  {
51608f65982aSmrg    as_val=$(( $* ))
51618f65982aSmrg  }'
51628f65982aSmrgelse
51638f65982aSmrg  as_fn_arith ()
51648f65982aSmrg  {
51658f65982aSmrg    as_val=`expr "$@" || test $? -eq 1`
51668f65982aSmrg  }
51678f65982aSmrgfi # as_fn_arith
51688f65982aSmrg
51699aa228fdSmrg
51709aa228fdSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
51719aa228fdSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
51729aa228fdSmrg  as_expr=expr
51739aa228fdSmrgelse
51749aa228fdSmrg  as_expr=false
51759aa228fdSmrgfi
51769aa228fdSmrg
51779aa228fdSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51789aa228fdSmrg  as_basename=basename
51799aa228fdSmrgelse
51809aa228fdSmrg  as_basename=false
51819aa228fdSmrgfi
51829aa228fdSmrg
51838f65982aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51848f65982aSmrg  as_dirname=dirname
51858f65982aSmrgelse
51868f65982aSmrg  as_dirname=false
51878f65982aSmrgfi
51889aa228fdSmrg
51899aa228fdSmrgas_me=`$as_basename -- "$0" ||
51909aa228fdSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51919aa228fdSmrg	 X"$0" : 'X\(//\)$' \| \
51929aa228fdSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51938f65982aSmrg$as_echo X/"$0" |
51949aa228fdSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
51959aa228fdSmrg	    s//\1/
51969aa228fdSmrg	    q
51979aa228fdSmrg	  }
51989aa228fdSmrg	  /^X\/\(\/\/\)$/{
51999aa228fdSmrg	    s//\1/
52009aa228fdSmrg	    q
52019aa228fdSmrg	  }
52029aa228fdSmrg	  /^X\/\(\/\).*/{
52039aa228fdSmrg	    s//\1/
52049aa228fdSmrg	    q
52059aa228fdSmrg	  }
52069aa228fdSmrg	  s/.*/./; q'`
52079aa228fdSmrg
52088f65982aSmrg# Avoid depending upon Character Ranges.
52098f65982aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
52108f65982aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52118f65982aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
52128f65982aSmrgas_cr_digits='0123456789'
52138f65982aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
52149aa228fdSmrg
52159aa228fdSmrgECHO_C= ECHO_N= ECHO_T=
52168f65982aSmrgcase `echo -n x` in #(((((
52179aa228fdSmrg-n*)
52188f65982aSmrg  case `echo 'xy\c'` in
52199aa228fdSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
52208f65982aSmrg  xy)  ECHO_C='\c';;
52218f65982aSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
52228f65982aSmrg       ECHO_T='	';;
52239aa228fdSmrg  esac;;
52249aa228fdSmrg*)
52259aa228fdSmrg  ECHO_N='-n';;
52269aa228fdSmrgesac
52279aa228fdSmrg
52289aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.file
52299aa228fdSmrgif test -d conf$$.dir; then
52309aa228fdSmrg  rm -f conf$$.dir/conf$$.file
52319aa228fdSmrgelse
52329aa228fdSmrg  rm -f conf$$.dir
52338f65982aSmrg  mkdir conf$$.dir 2>/dev/null
52348f65982aSmrgfi
52358f65982aSmrgif (echo >conf$$.file) 2>/dev/null; then
52368f65982aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
52378f65982aSmrg    as_ln_s='ln -s'
52388f65982aSmrg    # ... but there are two gotchas:
52398f65982aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52408f65982aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52418f65982aSmrg    # In both cases, we have to default to `cp -p'.
52428f65982aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52438f65982aSmrg      as_ln_s='cp -p'
52448f65982aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
52458f65982aSmrg    as_ln_s=ln
52468f65982aSmrg  else
52479aa228fdSmrg    as_ln_s='cp -p'
52488f65982aSmrg  fi
52499aa228fdSmrgelse
52509aa228fdSmrg  as_ln_s='cp -p'
52519aa228fdSmrgfi
52529aa228fdSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52539aa228fdSmrgrmdir conf$$.dir 2>/dev/null
52549aa228fdSmrg
52558f65982aSmrg
52568f65982aSmrg# as_fn_mkdir_p
52578f65982aSmrg# -------------
52588f65982aSmrg# Create "$as_dir" as a directory, including parents if necessary.
52598f65982aSmrgas_fn_mkdir_p ()
52608f65982aSmrg{
52618f65982aSmrg
52628f65982aSmrg  case $as_dir in #(
52638f65982aSmrg  -*) as_dir=./$as_dir;;
52648f65982aSmrg  esac
52658f65982aSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
52668f65982aSmrg    as_dirs=
52678f65982aSmrg    while :; do
52688f65982aSmrg      case $as_dir in #(
52698f65982aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52708f65982aSmrg      *) as_qdir=$as_dir;;
52718f65982aSmrg      esac
52728f65982aSmrg      as_dirs="'$as_qdir' $as_dirs"
52738f65982aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
52748f65982aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52758f65982aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
52768f65982aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
52778f65982aSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52788f65982aSmrg$as_echo X"$as_dir" |
52798f65982aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52808f65982aSmrg	    s//\1/
52818f65982aSmrg	    q
52828f65982aSmrg	  }
52838f65982aSmrg	  /^X\(\/\/\)[^/].*/{
52848f65982aSmrg	    s//\1/
52858f65982aSmrg	    q
52868f65982aSmrg	  }
52878f65982aSmrg	  /^X\(\/\/\)$/{
52888f65982aSmrg	    s//\1/
52898f65982aSmrg	    q
52908f65982aSmrg	  }
52918f65982aSmrg	  /^X\(\/\).*/{
52928f65982aSmrg	    s//\1/
52938f65982aSmrg	    q
52948f65982aSmrg	  }
52958f65982aSmrg	  s/.*/./; q'`
52968f65982aSmrg      test -d "$as_dir" && break
52978f65982aSmrg    done
52988f65982aSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
52998f65982aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
53008f65982aSmrg
53018f65982aSmrg
53028f65982aSmrg} # as_fn_mkdir_p
53039aa228fdSmrgif mkdir -p . 2>/dev/null; then
53048f65982aSmrg  as_mkdir_p='mkdir -p "$as_dir"'
53059aa228fdSmrgelse
53069aa228fdSmrg  test -d ./-p && rmdir ./-p
53079aa228fdSmrg  as_mkdir_p=false
53089aa228fdSmrgfi
53099aa228fdSmrg
53109aa228fdSmrgif test -x / >/dev/null 2>&1; then
53119aa228fdSmrg  as_test_x='test -x'
53129aa228fdSmrgelse
53139aa228fdSmrg  if ls -dL / >/dev/null 2>&1; then
53149aa228fdSmrg    as_ls_L_option=L
53159aa228fdSmrg  else
53169aa228fdSmrg    as_ls_L_option=
53179aa228fdSmrg  fi
53189aa228fdSmrg  as_test_x='
53199aa228fdSmrg    eval sh -c '\''
53209aa228fdSmrg      if test -d "$1"; then
53218f65982aSmrg	test -d "$1/.";
53229aa228fdSmrg      else
53238f65982aSmrg	case $1 in #(
53248f65982aSmrg	-*)set "./$1";;
53259aa228fdSmrg	esac;
53268f65982aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
53279aa228fdSmrg	???[sx]*):;;*)false;;esac;fi
53289aa228fdSmrg    '\'' sh
53299aa228fdSmrg  '
53309aa228fdSmrgfi
53319aa228fdSmrgas_executable_p=$as_test_x
53329aa228fdSmrg
53339aa228fdSmrg# Sed expression to map a string onto a valid CPP name.
53349aa228fdSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53359aa228fdSmrg
53369aa228fdSmrg# Sed expression to map a string onto a valid variable name.
53379aa228fdSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53389aa228fdSmrg
53399aa228fdSmrg
53409aa228fdSmrgexec 6>&1
53418f65982aSmrg## ----------------------------------- ##
53428f65982aSmrg## Main body of $CONFIG_STATUS script. ##
53438f65982aSmrg## ----------------------------------- ##
53448f65982aSmrg_ASEOF
53458f65982aSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
53469aa228fdSmrg
53478f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53488f65982aSmrg# Save the log message, to keep $0 and so on meaningful, and to
53499aa228fdSmrg# report actual input values of CONFIG_FILES etc. instead of their
53509aa228fdSmrg# values after options handling.
53519aa228fdSmrgac_log="
53528f65982aSmrgThis file was extended by xmag $as_me 1.0.4, which was
53538f65982aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
53549aa228fdSmrg
53559aa228fdSmrg  CONFIG_FILES    = $CONFIG_FILES
53569aa228fdSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
53579aa228fdSmrg  CONFIG_LINKS    = $CONFIG_LINKS
53589aa228fdSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
53599aa228fdSmrg  $ $0 $@
53609aa228fdSmrg
53619aa228fdSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
53629aa228fdSmrg"
53639aa228fdSmrg
53649aa228fdSmrg_ACEOF
53659aa228fdSmrg
53668f65982aSmrgcase $ac_config_files in *"
53678f65982aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
53688f65982aSmrgesac
53698f65982aSmrg
53708f65982aSmrgcase $ac_config_headers in *"
53718f65982aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
53728f65982aSmrgesac
53738f65982aSmrg
53748f65982aSmrg
53758f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53769aa228fdSmrg# Files that config.status was made for.
53779aa228fdSmrgconfig_files="$ac_config_files"
53789aa228fdSmrgconfig_headers="$ac_config_headers"
53799aa228fdSmrgconfig_commands="$ac_config_commands"
53809aa228fdSmrg
53819aa228fdSmrg_ACEOF
53829aa228fdSmrg
53838f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53849aa228fdSmrgac_cs_usage="\
53858f65982aSmrg\`$as_me' instantiates files and other configuration actions
53868f65982aSmrgfrom templates according to the current configuration.  Unless the files
53878f65982aSmrgand actions are specified as TAGs, all are instantiated by default.
53889aa228fdSmrg
53898f65982aSmrgUsage: $0 [OPTION]... [TAG]...
53909aa228fdSmrg
53919aa228fdSmrg  -h, --help       print this help, then exit
53929aa228fdSmrg  -V, --version    print version number and configuration settings, then exit
53938f65982aSmrg      --config     print configuration, then exit
53948f65982aSmrg  -q, --quiet, --silent
53958f65982aSmrg                   do not print progress messages
53969aa228fdSmrg  -d, --debug      don't remove temporary files
53979aa228fdSmrg      --recheck    update $as_me by reconfiguring in the same conditions
53988f65982aSmrg      --file=FILE[:TEMPLATE]
53998f65982aSmrg                   instantiate the configuration file FILE
54008f65982aSmrg      --header=FILE[:TEMPLATE]
54018f65982aSmrg                   instantiate the configuration header FILE
54029aa228fdSmrg
54039aa228fdSmrgConfiguration files:
54049aa228fdSmrg$config_files
54059aa228fdSmrg
54069aa228fdSmrgConfiguration headers:
54079aa228fdSmrg$config_headers
54089aa228fdSmrg
54099aa228fdSmrgConfiguration commands:
54109aa228fdSmrg$config_commands
54119aa228fdSmrg
54128f65982aSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
54139aa228fdSmrg
54149aa228fdSmrg_ACEOF
54158f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54168f65982aSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
54179aa228fdSmrgac_cs_version="\\
54188f65982aSmrgxmag config.status 1.0.4
54198f65982aSmrgconfigured by $0, generated by GNU Autoconf 2.68,
54208f65982aSmrg  with options \\"\$ac_cs_config\\"
54219aa228fdSmrg
54228f65982aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
54239aa228fdSmrgThis config.status script is free software; the Free Software Foundation
54249aa228fdSmrggives unlimited permission to copy, distribute and modify it."
54259aa228fdSmrg
54269aa228fdSmrgac_pwd='$ac_pwd'
54279aa228fdSmrgsrcdir='$srcdir'
54289aa228fdSmrgINSTALL='$INSTALL'
54299aa228fdSmrgMKDIR_P='$MKDIR_P'
54308f65982aSmrgAWK='$AWK'
54318f65982aSmrgtest -n "\$AWK" || AWK=awk
54329aa228fdSmrg_ACEOF
54339aa228fdSmrg
54348f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54358f65982aSmrg# The default lists apply if the user does not specify any file.
54369aa228fdSmrgac_need_defaults=:
54379aa228fdSmrgwhile test $# != 0
54389aa228fdSmrgdo
54399aa228fdSmrg  case $1 in
54408f65982aSmrg  --*=?*)
54419aa228fdSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
54429aa228fdSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54439aa228fdSmrg    ac_shift=:
54449aa228fdSmrg    ;;
54458f65982aSmrg  --*=)
54468f65982aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
54478f65982aSmrg    ac_optarg=
54488f65982aSmrg    ac_shift=:
54498f65982aSmrg    ;;
54509aa228fdSmrg  *)
54519aa228fdSmrg    ac_option=$1
54529aa228fdSmrg    ac_optarg=$2
54539aa228fdSmrg    ac_shift=shift
54549aa228fdSmrg    ;;
54559aa228fdSmrg  esac
54569aa228fdSmrg
54579aa228fdSmrg  case $ac_option in
54589aa228fdSmrg  # Handling of the options.
54599aa228fdSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54609aa228fdSmrg    ac_cs_recheck=: ;;
54619aa228fdSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54628f65982aSmrg    $as_echo "$ac_cs_version"; exit ;;
54638f65982aSmrg  --config | --confi | --conf | --con | --co | --c )
54648f65982aSmrg    $as_echo "$ac_cs_config"; exit ;;
54659aa228fdSmrg  --debug | --debu | --deb | --de | --d | -d )
54669aa228fdSmrg    debug=: ;;
54679aa228fdSmrg  --file | --fil | --fi | --f )
54689aa228fdSmrg    $ac_shift
54698f65982aSmrg    case $ac_optarg in
54708f65982aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
54718f65982aSmrg    '') as_fn_error $? "missing file argument" ;;
54728f65982aSmrg    esac
54738f65982aSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
54749aa228fdSmrg    ac_need_defaults=false;;
54759aa228fdSmrg  --header | --heade | --head | --hea )
54769aa228fdSmrg    $ac_shift
54778f65982aSmrg    case $ac_optarg in
54788f65982aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
54798f65982aSmrg    esac
54808f65982aSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
54819aa228fdSmrg    ac_need_defaults=false;;
54829aa228fdSmrg  --he | --h)
54839aa228fdSmrg    # Conflict between --help and --header
54848f65982aSmrg    as_fn_error $? "ambiguous option: \`$1'
54858f65982aSmrgTry \`$0 --help' for more information.";;
54869aa228fdSmrg  --help | --hel | -h )
54878f65982aSmrg    $as_echo "$ac_cs_usage"; exit ;;
54889aa228fdSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54899aa228fdSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
54909aa228fdSmrg    ac_cs_silent=: ;;
54919aa228fdSmrg
54929aa228fdSmrg  # This is an error.
54938f65982aSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
54948f65982aSmrgTry \`$0 --help' for more information." ;;
54959aa228fdSmrg
54968f65982aSmrg  *) as_fn_append ac_config_targets " $1"
54979aa228fdSmrg     ac_need_defaults=false ;;
54989aa228fdSmrg
54999aa228fdSmrg  esac
55009aa228fdSmrg  shift
55019aa228fdSmrgdone
55029aa228fdSmrg
55039aa228fdSmrgac_configure_extra_args=
55049aa228fdSmrg
55059aa228fdSmrgif $ac_cs_silent; then
55069aa228fdSmrg  exec 6>/dev/null
55079aa228fdSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
55089aa228fdSmrgfi
55099aa228fdSmrg
55109aa228fdSmrg_ACEOF
55118f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55129aa228fdSmrgif \$ac_cs_recheck; then
55138f65982aSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
55148f65982aSmrg  shift
55158f65982aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
55168f65982aSmrg  CONFIG_SHELL='$SHELL'
55179aa228fdSmrg  export CONFIG_SHELL
55188f65982aSmrg  exec "\$@"
55199aa228fdSmrgfi
55209aa228fdSmrg
55219aa228fdSmrg_ACEOF
55228f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55239aa228fdSmrgexec 5>>config.log
55249aa228fdSmrg{
55259aa228fdSmrg  echo
55269aa228fdSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55279aa228fdSmrg## Running $as_me. ##
55289aa228fdSmrg_ASBOX
55298f65982aSmrg  $as_echo "$ac_log"
55309aa228fdSmrg} >&5
55319aa228fdSmrg
55329aa228fdSmrg_ACEOF
55338f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55349aa228fdSmrg#
55359aa228fdSmrg# INIT-COMMANDS
55369aa228fdSmrg#
55379aa228fdSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
55389aa228fdSmrg
55399aa228fdSmrg_ACEOF
55409aa228fdSmrg
55418f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55429aa228fdSmrg
55439aa228fdSmrg# Handling of arguments.
55449aa228fdSmrgfor ac_config_target in $ac_config_targets
55459aa228fdSmrgdo
55469aa228fdSmrg  case $ac_config_target in
55479aa228fdSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
55488f65982aSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
55499aa228fdSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
55509aa228fdSmrg
55518f65982aSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
55529aa228fdSmrg  esac
55539aa228fdSmrgdone
55549aa228fdSmrg
55559aa228fdSmrg
55569aa228fdSmrg# If the user did not use the arguments to specify the items to instantiate,
55579aa228fdSmrg# then the envvar interface is used.  Set only those that are not.
55589aa228fdSmrg# We use the long form for the default assignment because of an extremely
55599aa228fdSmrg# bizarre bug on SunOS 4.1.3.
55609aa228fdSmrgif $ac_need_defaults; then
55619aa228fdSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
55629aa228fdSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
55639aa228fdSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
55649aa228fdSmrgfi
55659aa228fdSmrg
55669aa228fdSmrg# Have a temporary directory for convenience.  Make it in the build tree
55679aa228fdSmrg# simply because there is no reason against having it here, and in addition,
55689aa228fdSmrg# creating and moving files from /tmp can sometimes cause problems.
55699aa228fdSmrg# Hook for its removal unless debugging.
55709aa228fdSmrg# Note that there is a small window in which the directory will not be cleaned:
55719aa228fdSmrg# after its creation but before its name has been assigned to `$tmp'.
55729aa228fdSmrg$debug ||
55739aa228fdSmrg{
55748f65982aSmrg  tmp= ac_tmp=
55759aa228fdSmrg  trap 'exit_status=$?
55768f65982aSmrg  : "${ac_tmp:=$tmp}"
55778f65982aSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
55789aa228fdSmrg' 0
55798f65982aSmrg  trap 'as_fn_exit 1' 1 2 13 15
55809aa228fdSmrg}
55819aa228fdSmrg# Create a (secure) tmp directory for tmp files.
55829aa228fdSmrg
55839aa228fdSmrg{
55849aa228fdSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55858f65982aSmrg  test -d "$tmp"
55869aa228fdSmrg}  ||
55879aa228fdSmrg{
55889aa228fdSmrg  tmp=./conf$$-$RANDOM
55899aa228fdSmrg  (umask 077 && mkdir "$tmp")
55908f65982aSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
55918f65982aSmrgac_tmp=$tmp
55929aa228fdSmrg
55938f65982aSmrg# Set up the scripts for CONFIG_FILES section.
55948f65982aSmrg# No need to generate them if there are no CONFIG_FILES.
55958f65982aSmrg# This happens for instance with `./config.status config.h'.
55969aa228fdSmrgif test -n "$CONFIG_FILES"; then
55979aa228fdSmrg
55989aa228fdSmrg
55998f65982aSmrgac_cr=`echo X | tr X '\015'`
56008f65982aSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
56018f65982aSmrg# But we know of no other shell where ac_cr would be empty at this
56028f65982aSmrg# point, so we can use a bashism as a fallback.
56038f65982aSmrgif test "x$ac_cr" = x; then
56048f65982aSmrg  eval ac_cr=\$\'\\r\'
56058f65982aSmrgfi
56068f65982aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
56078f65982aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
56088f65982aSmrg  ac_cs_awk_cr='\\r'
56098f65982aSmrgelse
56108f65982aSmrg  ac_cs_awk_cr=$ac_cr
56119aa228fdSmrgfi
56129aa228fdSmrg
56138f65982aSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
56149aa228fdSmrg_ACEOF
56159aa228fdSmrg
56169aa228fdSmrg
56178f65982aSmrg{
56188f65982aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
56198f65982aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
56208f65982aSmrg  echo "_ACEOF"
56218f65982aSmrg} >conf$$subs.sh ||
56228f65982aSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
56238f65982aSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
56249aa228fdSmrgac_delim='%!_!# '
56259aa228fdSmrgfor ac_last_try in false false false false false :; do
56268f65982aSmrg  . ./conf$$subs.sh ||
56278f65982aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
56289aa228fdSmrg
56298f65982aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
56308f65982aSmrg  if test $ac_delim_n = $ac_delim_num; then
56319aa228fdSmrg    break
56329aa228fdSmrg  elif $ac_last_try; then
56338f65982aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
56349aa228fdSmrg  else
56359aa228fdSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56369aa228fdSmrg  fi
56379aa228fdSmrgdone
56388f65982aSmrgrm -f conf$$subs.sh
56399aa228fdSmrg
56408f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56418f65982aSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
56428f65982aSmrg_ACEOF
56438f65982aSmrgsed -n '
56448f65982aSmrgh
56458f65982aSmrgs/^/S["/; s/!.*/"]=/
56468f65982aSmrgp
56478f65982aSmrgg
56488f65982aSmrgs/^[^!]*!//
56498f65982aSmrg:repl
56508f65982aSmrgt repl
56518f65982aSmrgs/'"$ac_delim"'$//
56528f65982aSmrgt delim
56538f65982aSmrg:nl
56548f65982aSmrgh
56558f65982aSmrgs/\(.\{148\}\)..*/\1/
56568f65982aSmrgt more1
56578f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
56588f65982aSmrgp
56598f65982aSmrgn
56608f65982aSmrgb repl
56618f65982aSmrg:more1
56628f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
56638f65982aSmrgp
56648f65982aSmrgg
56658f65982aSmrgs/.\{148\}//
56668f65982aSmrgt nl
56678f65982aSmrg:delim
56688f65982aSmrgh
56698f65982aSmrgs/\(.\{148\}\)..*/\1/
56708f65982aSmrgt more2
56718f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
56728f65982aSmrgp
56738f65982aSmrgb
56748f65982aSmrg:more2
56758f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
56768f65982aSmrgp
56778f65982aSmrgg
56788f65982aSmrgs/.\{148\}//
56798f65982aSmrgt delim
56808f65982aSmrg' <conf$$subs.awk | sed '
56818f65982aSmrg/^[^""]/{
56828f65982aSmrg  N
56838f65982aSmrg  s/\n//
56848f65982aSmrg}
56858f65982aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
56868f65982aSmrgrm -f conf$$subs.awk
56878f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56888f65982aSmrg_ACAWK
56898f65982aSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
56908f65982aSmrg  for (key in S) S_is_set[key] = 1
56918f65982aSmrg  FS = ""
56928f65982aSmrg
56938f65982aSmrg}
56948f65982aSmrg{
56958f65982aSmrg  line = $ 0
56968f65982aSmrg  nfields = split(line, field, "@")
56978f65982aSmrg  substed = 0
56988f65982aSmrg  len = length(field[1])
56998f65982aSmrg  for (i = 2; i < nfields; i++) {
57008f65982aSmrg    key = field[i]
57018f65982aSmrg    keylen = length(key)
57028f65982aSmrg    if (S_is_set[key]) {
57038f65982aSmrg      value = S[key]
57048f65982aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57058f65982aSmrg      len += length(value) + length(field[++i])
57068f65982aSmrg      substed = 1
57078f65982aSmrg    } else
57088f65982aSmrg      len += 1 + keylen
57098f65982aSmrg  }
57108f65982aSmrg
57118f65982aSmrg  print line
57128f65982aSmrg}
57139aa228fdSmrg
57148f65982aSmrg_ACAWK
57159aa228fdSmrg_ACEOF
57168f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57178f65982aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57188f65982aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57198f65982aSmrgelse
57208f65982aSmrg  cat
57218f65982aSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
57228f65982aSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
57239aa228fdSmrg_ACEOF
57249aa228fdSmrg
57258f65982aSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
57268f65982aSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
57279aa228fdSmrg# trailing colons and then remove the whole line if VPATH becomes empty
57289aa228fdSmrg# (actually we leave an empty line to preserve line numbers).
57299aa228fdSmrgif test "x$srcdir" = x.; then
57308f65982aSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
57318f65982aSmrgh
57328f65982aSmrgs///
57338f65982aSmrgs/^/:/
57348f65982aSmrgs/[	 ]*$/:/
57358f65982aSmrgs/:\$(srcdir):/:/g
57368f65982aSmrgs/:\${srcdir}:/:/g
57378f65982aSmrgs/:@srcdir@:/:/g
57388f65982aSmrgs/^:*//
57399aa228fdSmrgs/:*$//
57408f65982aSmrgx
57418f65982aSmrgs/\(=[	 ]*\).*/\1/
57428f65982aSmrgG
57438f65982aSmrgs/\n//
57449aa228fdSmrgs/^[^=]*=[	 ]*$//
57459aa228fdSmrg}'
57469aa228fdSmrgfi
57479aa228fdSmrg
57488f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57499aa228fdSmrgfi # test -n "$CONFIG_FILES"
57509aa228fdSmrg
57518f65982aSmrg# Set up the scripts for CONFIG_HEADERS section.
57528f65982aSmrg# No need to generate them if there are no CONFIG_HEADERS.
57538f65982aSmrg# This happens for instance with `./config.status Makefile'.
57548f65982aSmrgif test -n "$CONFIG_HEADERS"; then
57558f65982aSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
57568f65982aSmrgBEGIN {
57578f65982aSmrg_ACEOF
57588f65982aSmrg
57598f65982aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
57608f65982aSmrg# here-document in config.status, that substitutes the proper values into
57618f65982aSmrg# config.h.in to produce config.h.
57628f65982aSmrg
57638f65982aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
57648f65982aSmrg# handling of long lines.
57658f65982aSmrgac_delim='%!_!# '
57668f65982aSmrgfor ac_last_try in false false :; do
57678f65982aSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
57688f65982aSmrg  if test -z "$ac_tt"; then
57698f65982aSmrg    break
57708f65982aSmrg  elif $ac_last_try; then
57718f65982aSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
57728f65982aSmrg  else
57738f65982aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57748f65982aSmrg  fi
57758f65982aSmrgdone
57768f65982aSmrg
57778f65982aSmrg# For the awk script, D is an array of macro values keyed by name,
57788f65982aSmrg# likewise P contains macro parameters if any.  Preserve backslash
57798f65982aSmrg# newline sequences.
57808f65982aSmrg
57818f65982aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57828f65982aSmrgsed -n '
57838f65982aSmrgs/.\{148\}/&'"$ac_delim"'/g
57848f65982aSmrgt rset
57858f65982aSmrg:rset
57868f65982aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
57878f65982aSmrgt def
57888f65982aSmrgd
57898f65982aSmrg:def
57908f65982aSmrgs/\\$//
57918f65982aSmrgt bsnl
57928f65982aSmrgs/["\\]/\\&/g
57938f65982aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
57948f65982aSmrgD["\1"]=" \3"/p
57958f65982aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
57968f65982aSmrgd
57978f65982aSmrg:bsnl
57988f65982aSmrgs/["\\]/\\&/g
57998f65982aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
58008f65982aSmrgD["\1"]=" \3\\\\\\n"\\/p
58018f65982aSmrgt cont
58028f65982aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
58038f65982aSmrgt cont
58048f65982aSmrgd
58058f65982aSmrg:cont
58068f65982aSmrgn
58078f65982aSmrgs/.\{148\}/&'"$ac_delim"'/g
58088f65982aSmrgt clear
58098f65982aSmrg:clear
58108f65982aSmrgs/\\$//
58118f65982aSmrgt bsnlc
58128f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
58138f65982aSmrgd
58148f65982aSmrg:bsnlc
58158f65982aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
58168f65982aSmrgb cont
58178f65982aSmrg' <confdefs.h | sed '
58188f65982aSmrgs/'"$ac_delim"'/"\\\
58198f65982aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
58208f65982aSmrg
58218f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58228f65982aSmrg  for (key in D) D_is_set[key] = 1
58238f65982aSmrg  FS = ""
58248f65982aSmrg}
58258f65982aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
58268f65982aSmrg  line = \$ 0
58278f65982aSmrg  split(line, arg, " ")
58288f65982aSmrg  if (arg[1] == "#") {
58298f65982aSmrg    defundef = arg[2]
58308f65982aSmrg    mac1 = arg[3]
58318f65982aSmrg  } else {
58328f65982aSmrg    defundef = substr(arg[1], 2)
58338f65982aSmrg    mac1 = arg[2]
58348f65982aSmrg  }
58358f65982aSmrg  split(mac1, mac2, "(") #)
58368f65982aSmrg  macro = mac2[1]
58378f65982aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
58388f65982aSmrg  if (D_is_set[macro]) {
58398f65982aSmrg    # Preserve the white space surrounding the "#".
58408f65982aSmrg    print prefix "define", macro P[macro] D[macro]
58418f65982aSmrg    next
58428f65982aSmrg  } else {
58438f65982aSmrg    # Replace #undef with comments.  This is necessary, for example,
58448f65982aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
58458f65982aSmrg    # on some systems where configure will not decide to define it.
58468f65982aSmrg    if (defundef == "undef") {
58478f65982aSmrg      print "/*", prefix defundef, macro, "*/"
58488f65982aSmrg      next
58498f65982aSmrg    }
58508f65982aSmrg  }
58518f65982aSmrg}
58528f65982aSmrg{ print }
58538f65982aSmrg_ACAWK
58548f65982aSmrg_ACEOF
58558f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58568f65982aSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
58578f65982aSmrgfi # test -n "$CONFIG_HEADERS"
58588f65982aSmrg
58599aa228fdSmrg
58608f65982aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
58618f65982aSmrgshift
58628f65982aSmrgfor ac_tag
58639aa228fdSmrgdo
58649aa228fdSmrg  case $ac_tag in
58659aa228fdSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
58669aa228fdSmrg  esac
58679aa228fdSmrg  case $ac_mode$ac_tag in
58689aa228fdSmrg  :[FHL]*:*);;
58698f65982aSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
58709aa228fdSmrg  :[FH]-) ac_tag=-:-;;
58719aa228fdSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
58729aa228fdSmrg  esac
58739aa228fdSmrg  ac_save_IFS=$IFS
58749aa228fdSmrg  IFS=:
58759aa228fdSmrg  set x $ac_tag
58769aa228fdSmrg  IFS=$ac_save_IFS
58779aa228fdSmrg  shift
58789aa228fdSmrg  ac_file=$1
58799aa228fdSmrg  shift
58809aa228fdSmrg
58819aa228fdSmrg  case $ac_mode in
58829aa228fdSmrg  :L) ac_source=$1;;
58839aa228fdSmrg  :[FH])
58849aa228fdSmrg    ac_file_inputs=
58859aa228fdSmrg    for ac_f
58869aa228fdSmrg    do
58879aa228fdSmrg      case $ac_f in
58888f65982aSmrg      -) ac_f="$ac_tmp/stdin";;
58899aa228fdSmrg      *) # Look for the file first in the build tree, then in the source tree
58909aa228fdSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
58919aa228fdSmrg	 # because $ac_f cannot contain `:'.
58929aa228fdSmrg	 test -f "$ac_f" ||
58939aa228fdSmrg	   case $ac_f in
58949aa228fdSmrg	   [\\/$]*) false;;
58959aa228fdSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
58969aa228fdSmrg	   esac ||
58978f65982aSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
58989aa228fdSmrg      esac
58998f65982aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
59008f65982aSmrg      as_fn_append ac_file_inputs " '$ac_f'"
59019aa228fdSmrg    done
59029aa228fdSmrg
59039aa228fdSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
59049aa228fdSmrg    # use $as_me), people would be surprised to read:
59059aa228fdSmrg    #    /* config.h.  Generated by config.status.  */
59068f65982aSmrg    configure_input='Generated from '`
59078f65982aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
59088f65982aSmrg	`' by configure.'
59099aa228fdSmrg    if test x"$ac_file" != x-; then
59109aa228fdSmrg      configure_input="$ac_file.  $configure_input"
59118f65982aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
59128f65982aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
59139aa228fdSmrg    fi
59148f65982aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
59158f65982aSmrg    case $configure_input in #(
59168f65982aSmrg    *\&* | *\|* | *\\* )
59178f65982aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
59188f65982aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
59198f65982aSmrg    *) ac_sed_conf_input=$configure_input;;
59208f65982aSmrg    esac
59219aa228fdSmrg
59229aa228fdSmrg    case $ac_tag in
59238f65982aSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
59248f65982aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
59259aa228fdSmrg    esac
59269aa228fdSmrg    ;;
59279aa228fdSmrg  esac
59289aa228fdSmrg
59299aa228fdSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
59309aa228fdSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59319aa228fdSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
59329aa228fdSmrg	 X"$ac_file" : 'X\(//\)$' \| \
59339aa228fdSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
59348f65982aSmrg$as_echo X"$ac_file" |
59359aa228fdSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59369aa228fdSmrg	    s//\1/
59379aa228fdSmrg	    q
59389aa228fdSmrg	  }
59399aa228fdSmrg	  /^X\(\/\/\)[^/].*/{
59409aa228fdSmrg	    s//\1/
59419aa228fdSmrg	    q
59429aa228fdSmrg	  }
59439aa228fdSmrg	  /^X\(\/\/\)$/{
59449aa228fdSmrg	    s//\1/
59459aa228fdSmrg	    q
59469aa228fdSmrg	  }
59479aa228fdSmrg	  /^X\(\/\).*/{
59489aa228fdSmrg	    s//\1/
59499aa228fdSmrg	    q
59509aa228fdSmrg	  }
59519aa228fdSmrg	  s/.*/./; q'`
59528f65982aSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
59539aa228fdSmrg  ac_builddir=.
59549aa228fdSmrg
59559aa228fdSmrgcase "$ac_dir" in
59569aa228fdSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
59579aa228fdSmrg*)
59588f65982aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
59599aa228fdSmrg  # A ".." for each directory in $ac_dir_suffix.
59608f65982aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
59619aa228fdSmrg  case $ac_top_builddir_sub in
59629aa228fdSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
59639aa228fdSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
59649aa228fdSmrg  esac ;;
59659aa228fdSmrgesac
59669aa228fdSmrgac_abs_top_builddir=$ac_pwd
59679aa228fdSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
59689aa228fdSmrg# for backward compatibility:
59699aa228fdSmrgac_top_builddir=$ac_top_build_prefix
59709aa228fdSmrg
59719aa228fdSmrgcase $srcdir in
59729aa228fdSmrg  .)  # We are building in place.
59739aa228fdSmrg    ac_srcdir=.
59749aa228fdSmrg    ac_top_srcdir=$ac_top_builddir_sub
59759aa228fdSmrg    ac_abs_top_srcdir=$ac_pwd ;;
59769aa228fdSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
59779aa228fdSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
59789aa228fdSmrg    ac_top_srcdir=$srcdir
59799aa228fdSmrg    ac_abs_top_srcdir=$srcdir ;;
59809aa228fdSmrg  *) # Relative name.
59819aa228fdSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
59829aa228fdSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
59839aa228fdSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
59849aa228fdSmrgesac
59859aa228fdSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
59869aa228fdSmrg
59879aa228fdSmrg
59889aa228fdSmrg  case $ac_mode in
59899aa228fdSmrg  :F)
59909aa228fdSmrg  #
59919aa228fdSmrg  # CONFIG_FILE
59929aa228fdSmrg  #
59939aa228fdSmrg
59949aa228fdSmrg  case $INSTALL in
59959aa228fdSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
59969aa228fdSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
59979aa228fdSmrg  esac
59989aa228fdSmrg  ac_MKDIR_P=$MKDIR_P
59999aa228fdSmrg  case $MKDIR_P in
60009aa228fdSmrg  [\\/$]* | ?:[\\/]* ) ;;
60019aa228fdSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
60029aa228fdSmrg  esac
60039aa228fdSmrg_ACEOF
60049aa228fdSmrg
60058f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60069aa228fdSmrg# If the template does not know about datarootdir, expand it.
60079aa228fdSmrg# FIXME: This hack should be removed a few years after 2.60.
60089aa228fdSmrgac_datarootdir_hack=; ac_datarootdir_seen=
60098f65982aSmrgac_sed_dataroot='
60108f65982aSmrg/datarootdir/ {
60119aa228fdSmrg  p
60129aa228fdSmrg  q
60139aa228fdSmrg}
60149aa228fdSmrg/@datadir@/p
60159aa228fdSmrg/@docdir@/p
60169aa228fdSmrg/@infodir@/p
60179aa228fdSmrg/@localedir@/p
60188f65982aSmrg/@mandir@/p'
60198f65982aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
60209aa228fdSmrg*datarootdir*) ac_datarootdir_seen=yes;;
60219aa228fdSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
60228f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
60238f65982aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
60249aa228fdSmrg_ACEOF
60258f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60269aa228fdSmrg  ac_datarootdir_hack='
60279aa228fdSmrg  s&@datadir@&$datadir&g
60289aa228fdSmrg  s&@docdir@&$docdir&g
60299aa228fdSmrg  s&@infodir@&$infodir&g
60309aa228fdSmrg  s&@localedir@&$localedir&g
60319aa228fdSmrg  s&@mandir@&$mandir&g
60328f65982aSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
60339aa228fdSmrgesac
60349aa228fdSmrg_ACEOF
60359aa228fdSmrg
60369aa228fdSmrg# Neutralize VPATH when `$srcdir' = `.'.
60379aa228fdSmrg# Shell code in configure.ac might set extrasub.
60389aa228fdSmrg# FIXME: do we really want to maintain this feature?
60398f65982aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60408f65982aSmrgac_sed_extra="$ac_vpsub
60419aa228fdSmrg$extrasub
60429aa228fdSmrg_ACEOF
60438f65982aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60449aa228fdSmrg:t
60459aa228fdSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60468f65982aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
60479aa228fdSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
60488f65982aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
60499aa228fdSmrgs&@srcdir@&$ac_srcdir&;t t
60509aa228fdSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
60519aa228fdSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
60529aa228fdSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
60539aa228fdSmrgs&@builddir@&$ac_builddir&;t t
60549aa228fdSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
60559aa228fdSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
60569aa228fdSmrgs&@INSTALL@&$ac_INSTALL&;t t
60579aa228fdSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
60589aa228fdSmrg$ac_datarootdir_hack
60598f65982aSmrg"
60608f65982aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
60618f65982aSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
60629aa228fdSmrg
60639aa228fdSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
60648f65982aSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
60658f65982aSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
60668f65982aSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
60678f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60688f65982aSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
60698f65982aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60708f65982aSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
60718f65982aSmrg
60728f65982aSmrg  rm -f "$ac_tmp/stdin"
60739aa228fdSmrg  case $ac_file in
60748f65982aSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
60758f65982aSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
60768f65982aSmrg  esac \
60778f65982aSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
60789aa228fdSmrg ;;
60799aa228fdSmrg  :H)
60809aa228fdSmrg  #
60819aa228fdSmrg  # CONFIG_HEADER
60829aa228fdSmrg  #
60839aa228fdSmrg  if test x"$ac_file" != x-; then
60848f65982aSmrg    {
60858f65982aSmrg      $as_echo "/* $configure_input  */" \
60868f65982aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
60878f65982aSmrg    } >"$ac_tmp/config.h" \
60888f65982aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
60898f65982aSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
60908f65982aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
60918f65982aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
60929aa228fdSmrg    else
60938f65982aSmrg      rm -f "$ac_file"
60948f65982aSmrg      mv "$ac_tmp/config.h" "$ac_file" \
60958f65982aSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
60969aa228fdSmrg    fi
60979aa228fdSmrg  else
60988f65982aSmrg    $as_echo "/* $configure_input  */" \
60998f65982aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
61008f65982aSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
61019aa228fdSmrg  fi
61028f65982aSmrg# Compute "$ac_file"'s index in $config_headers.
61038f65982aSmrg_am_arg="$ac_file"
61049aa228fdSmrg_am_stamp_count=1
61059aa228fdSmrgfor _am_header in $config_headers :; do
61069aa228fdSmrg  case $_am_header in
61078f65982aSmrg    $_am_arg | $_am_arg:* )
61089aa228fdSmrg      break ;;
61099aa228fdSmrg    * )
61109aa228fdSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
61119aa228fdSmrg  esac
61129aa228fdSmrgdone
61138f65982aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
61148f65982aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61158f65982aSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
61168f65982aSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
61178f65982aSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
61188f65982aSmrg$as_echo X"$_am_arg" |
61199aa228fdSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61209aa228fdSmrg	    s//\1/
61219aa228fdSmrg	    q
61229aa228fdSmrg	  }
61239aa228fdSmrg	  /^X\(\/\/\)[^/].*/{
61249aa228fdSmrg	    s//\1/
61259aa228fdSmrg	    q
61269aa228fdSmrg	  }
61279aa228fdSmrg	  /^X\(\/\/\)$/{
61289aa228fdSmrg	    s//\1/
61299aa228fdSmrg	    q
61309aa228fdSmrg	  }
61319aa228fdSmrg	  /^X\(\/\).*/{
61329aa228fdSmrg	    s//\1/
61339aa228fdSmrg	    q
61349aa228fdSmrg	  }
61359aa228fdSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
61369aa228fdSmrg ;;
61379aa228fdSmrg
61388f65982aSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
61398f65982aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
61409aa228fdSmrg ;;
61419aa228fdSmrg  esac
61429aa228fdSmrg
61439aa228fdSmrg
61449aa228fdSmrg  case $ac_file$ac_mode in
61458f65982aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
61468f65982aSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
61478f65982aSmrg  # are listed without --file.  Let's play safe and only enable the eval
61488f65982aSmrg  # if we detect the quoting.
61498f65982aSmrg  case $CONFIG_FILES in
61508f65982aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
61518f65982aSmrg  *)   set x $CONFIG_FILES ;;
61528f65982aSmrg  esac
61538f65982aSmrg  shift
61548f65982aSmrg  for mf
61558f65982aSmrg  do
61568f65982aSmrg    # Strip MF so we end up with the name of the file.
61578f65982aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
61588f65982aSmrg    # Check whether this is an Automake generated Makefile or not.
61598f65982aSmrg    # We used to match only the files named `Makefile.in', but
61608f65982aSmrg    # some people rename them; so instead we look at the file content.
61618f65982aSmrg    # Grep'ing the first line is not enough: some people post-process
61628f65982aSmrg    # each Makefile.in and add a new line on top of each file to say so.
61638f65982aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
61648f65982aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
61658f65982aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
61668f65982aSmrg      dirpart=`$as_dirname -- "$mf" ||
61679aa228fdSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61689aa228fdSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
61699aa228fdSmrg	 X"$mf" : 'X\(//\)$' \| \
61709aa228fdSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
61718f65982aSmrg$as_echo X"$mf" |
61729aa228fdSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61739aa228fdSmrg	    s//\1/
61749aa228fdSmrg	    q
61759aa228fdSmrg	  }
61769aa228fdSmrg	  /^X\(\/\/\)[^/].*/{
61779aa228fdSmrg	    s//\1/
61789aa228fdSmrg	    q
61799aa228fdSmrg	  }
61809aa228fdSmrg	  /^X\(\/\/\)$/{
61819aa228fdSmrg	    s//\1/
61829aa228fdSmrg	    q
61839aa228fdSmrg	  }
61849aa228fdSmrg	  /^X\(\/\).*/{
61859aa228fdSmrg	    s//\1/
61869aa228fdSmrg	    q
61879aa228fdSmrg	  }
61889aa228fdSmrg	  s/.*/./; q'`
61898f65982aSmrg    else
61908f65982aSmrg      continue
61918f65982aSmrg    fi
61928f65982aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
61938f65982aSmrg    # from the Makefile without running `make'.
61948f65982aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
61958f65982aSmrg    test -z "$DEPDIR" && continue
61968f65982aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
61978f65982aSmrg    test -z "am__include" && continue
61988f65982aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
61998f65982aSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
62008f65982aSmrg    U=`sed -n 's/^U = //p' < "$mf"`
62018f65982aSmrg    # Find all dependency output files, they are included files with
62028f65982aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
62038f65982aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
62048f65982aSmrg    # expansion.
62058f65982aSmrg    for file in `sed -n "
62068f65982aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62078f65982aSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62088f65982aSmrg      # Make sure the directory exists.
62098f65982aSmrg      test -f "$dirpart/$file" && continue
62108f65982aSmrg      fdir=`$as_dirname -- "$file" ||
62119aa228fdSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62129aa228fdSmrg	 X"$file" : 'X\(//\)[^/]' \| \
62139aa228fdSmrg	 X"$file" : 'X\(//\)$' \| \
62149aa228fdSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
62158f65982aSmrg$as_echo X"$file" |
62169aa228fdSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62179aa228fdSmrg	    s//\1/
62189aa228fdSmrg	    q
62199aa228fdSmrg	  }
62209aa228fdSmrg	  /^X\(\/\/\)[^/].*/{
62219aa228fdSmrg	    s//\1/
62229aa228fdSmrg	    q
62239aa228fdSmrg	  }
62249aa228fdSmrg	  /^X\(\/\/\)$/{
62259aa228fdSmrg	    s//\1/
62269aa228fdSmrg	    q
62279aa228fdSmrg	  }
62289aa228fdSmrg	  /^X\(\/\).*/{
62299aa228fdSmrg	    s//\1/
62309aa228fdSmrg	    q
62319aa228fdSmrg	  }
62329aa228fdSmrg	  s/.*/./; q'`
62338f65982aSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
62348f65982aSmrg      # echo "creating $dirpart/$file"
62358f65982aSmrg      echo '# dummy' > "$dirpart/$file"
62369aa228fdSmrg    done
62379aa228fdSmrg  done
62388f65982aSmrg}
62399aa228fdSmrg ;;
62409aa228fdSmrg
62419aa228fdSmrg  esac
62429aa228fdSmrgdone # for ac_tag
62439aa228fdSmrg
62449aa228fdSmrg
62458f65982aSmrgas_fn_exit 0
62469aa228fdSmrg_ACEOF
62479aa228fdSmrgac_clean_files=$ac_clean_files_save
62489aa228fdSmrg
62498f65982aSmrgtest $ac_write_fail = 0 ||
62508f65982aSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
62518f65982aSmrg
62529aa228fdSmrg
62539aa228fdSmrg# configure is writing to config.log, and then calls config.status.
62549aa228fdSmrg# config.status does its own redirection, appending to config.log.
62559aa228fdSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
62569aa228fdSmrg# by configure, so config.status won't be able to write to it; its
62579aa228fdSmrg# output is simply discarded.  So we exec the FD to /dev/null,
62589aa228fdSmrg# effectively closing config.log, so it can be properly (re)opened and
62599aa228fdSmrg# appended to by config.status.  When coming back to configure, we
62609aa228fdSmrg# need to make the FD available again.
62619aa228fdSmrgif test "$no_create" != yes; then
62629aa228fdSmrg  ac_cs_success=:
62639aa228fdSmrg  ac_config_status_args=
62649aa228fdSmrg  test "$silent" = yes &&
62659aa228fdSmrg    ac_config_status_args="$ac_config_status_args --quiet"
62669aa228fdSmrg  exec 5>/dev/null
62679aa228fdSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62689aa228fdSmrg  exec 5>>config.log
62699aa228fdSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62709aa228fdSmrg  # would make configure fail if this is the last instruction.
62718f65982aSmrg  $ac_cs_success || as_fn_exit 1
62728f65982aSmrgfi
62738f65982aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
62748f65982aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
62758f65982aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
62769aa228fdSmrgfi
62779aa228fdSmrg
6278