configure revision 7e4fd55a
1b8f75c19Smrg#! /bin/sh
2b8f75c19Smrg# Guess values for system-dependent variables and create Makefiles.
37e4fd55aSmrg# Generated by GNU Autoconf 2.68 for xfindproxy 1.0.2.
47e4fd55aSmrg#
57e4fd55aSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
67e4fd55aSmrg#
77e4fd55aSmrg#
87e4fd55aSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
97e4fd55aSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
107e4fd55aSmrg# Foundation, Inc.
11b8f75c19Smrg#
12b8f75c19Smrg#
13b8f75c19Smrg# This configure script is free software; the Free Software Foundation
14b8f75c19Smrg# gives unlimited permission to copy, distribute and modify it.
157e4fd55aSmrg## -------------------- ##
167e4fd55aSmrg## M4sh Initialization. ##
177e4fd55aSmrg## -------------------- ##
18b8f75c19Smrg
197e4fd55aSmrg# Be more Bourne compatible
207e4fd55aSmrgDUALCASE=1; export DUALCASE # for MKS sh
217e4fd55aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22b8f75c19Smrg  emulate sh
23b8f75c19Smrg  NULLCMD=:
247e4fd55aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25b8f75c19Smrg  # is contrary to our usage.  Disable this feature.
26b8f75c19Smrg  alias -g '${1+"$@"}'='"$@"'
277e4fd55aSmrg  setopt NO_GLOB_SUBST
287e4fd55aSmrgelse
297e4fd55aSmrg  case `(set -o) 2>/dev/null` in #(
307e4fd55aSmrg  *posix*) :
317e4fd55aSmrg    set -o posix ;; #(
327e4fd55aSmrg  *) :
337e4fd55aSmrg     ;;
347e4fd55aSmrgesac
35b8f75c19Smrgfi
36b8f75c19Smrg
377e4fd55aSmrg
387e4fd55aSmrgas_nl='
397e4fd55aSmrg'
407e4fd55aSmrgexport as_nl
417e4fd55aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
427e4fd55aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
437e4fd55aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
447e4fd55aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
457e4fd55aSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
467e4fd55aSmrg# but without wasting forks for bash or zsh.
477e4fd55aSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
487e4fd55aSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
497e4fd55aSmrg  as_echo='print -r --'
507e4fd55aSmrg  as_echo_n='print -rn --'
517e4fd55aSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
527e4fd55aSmrg  as_echo='printf %s\n'
537e4fd55aSmrg  as_echo_n='printf %s'
54b8f75c19Smrgelse
557e4fd55aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
567e4fd55aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
577e4fd55aSmrg    as_echo_n='/usr/ucb/echo -n'
587e4fd55aSmrg  else
597e4fd55aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
607e4fd55aSmrg    as_echo_n_body='eval
617e4fd55aSmrg      arg=$1;
627e4fd55aSmrg      case $arg in #(
637e4fd55aSmrg      *"$as_nl"*)
647e4fd55aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
657e4fd55aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
667e4fd55aSmrg      esac;
677e4fd55aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
687e4fd55aSmrg    '
697e4fd55aSmrg    export as_echo_n_body
707e4fd55aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
717e4fd55aSmrg  fi
727e4fd55aSmrg  export as_echo_body
737e4fd55aSmrg  as_echo='sh -c $as_echo_body as_echo'
747e4fd55aSmrgfi
757e4fd55aSmrg
767e4fd55aSmrg# The user is always right.
777e4fd55aSmrgif test "${PATH_SEPARATOR+set}" != set; then
787e4fd55aSmrg  PATH_SEPARATOR=:
797e4fd55aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
807e4fd55aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
817e4fd55aSmrg      PATH_SEPARATOR=';'
827e4fd55aSmrg  }
83b8f75c19Smrgfi
84b8f75c19Smrg
85b8f75c19Smrg
867e4fd55aSmrg# IFS
877e4fd55aSmrg# We need space, tab and new line, in precisely that order.  Quoting is
887e4fd55aSmrg# there to prevent editors from complaining about space-tab.
897e4fd55aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
907e4fd55aSmrg# splitting by setting IFS to empty value.)
917e4fd55aSmrgIFS=" ""	$as_nl"
927e4fd55aSmrg
937e4fd55aSmrg# Find who we are.  Look in the path if we contain no directory separator.
947e4fd55aSmrgas_myself=
957e4fd55aSmrgcase $0 in #((
967e4fd55aSmrg  *[\\/]* ) as_myself=$0 ;;
977e4fd55aSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987e4fd55aSmrgfor as_dir in $PATH
997e4fd55aSmrgdo
1007e4fd55aSmrg  IFS=$as_save_IFS
1017e4fd55aSmrg  test -z "$as_dir" && as_dir=.
1027e4fd55aSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1037e4fd55aSmrg  done
1047e4fd55aSmrgIFS=$as_save_IFS
1057e4fd55aSmrg
1067e4fd55aSmrg     ;;
1077e4fd55aSmrgesac
1087e4fd55aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1097e4fd55aSmrg# in which case we are not to be found in the path.
1107e4fd55aSmrgif test "x$as_myself" = x; then
1117e4fd55aSmrg  as_myself=$0
1127e4fd55aSmrgfi
1137e4fd55aSmrgif test ! -f "$as_myself"; then
1147e4fd55aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1157e4fd55aSmrg  exit 1
1167e4fd55aSmrgfi
1177e4fd55aSmrg
1187e4fd55aSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1197e4fd55aSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1207e4fd55aSmrg# suppresses any "Segmentation fault" message there.  '((' could
1217e4fd55aSmrg# trigger a bug in pdksh 5.2.14.
1227e4fd55aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1237e4fd55aSmrgdo eval test x\${$as_var+set} = xset \
1247e4fd55aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1257e4fd55aSmrgdone
126b8f75c19SmrgPS1='$ '
127b8f75c19SmrgPS2='> '
128b8f75c19SmrgPS4='+ '
129b8f75c19Smrg
130b8f75c19Smrg# NLS nuisances.
1317e4fd55aSmrgLC_ALL=C
1327e4fd55aSmrgexport LC_ALL
1337e4fd55aSmrgLANGUAGE=C
1347e4fd55aSmrgexport LANGUAGE
1357e4fd55aSmrg
1367e4fd55aSmrg# CDPATH.
1377e4fd55aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1387e4fd55aSmrg
1397e4fd55aSmrgif test "x$CONFIG_SHELL" = x; then
1407e4fd55aSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1417e4fd55aSmrg  emulate sh
1427e4fd55aSmrg  NULLCMD=:
1437e4fd55aSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1447e4fd55aSmrg  # is contrary to our usage.  Disable this feature.
1457e4fd55aSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1467e4fd55aSmrg  setopt NO_GLOB_SUBST
1477e4fd55aSmrgelse
1487e4fd55aSmrg  case \`(set -o) 2>/dev/null\` in #(
1497e4fd55aSmrg  *posix*) :
1507e4fd55aSmrg    set -o posix ;; #(
1517e4fd55aSmrg  *) :
1527e4fd55aSmrg     ;;
1537e4fd55aSmrgesac
1547e4fd55aSmrgfi
1557e4fd55aSmrg"
1567e4fd55aSmrg  as_required="as_fn_return () { (exit \$1); }
1577e4fd55aSmrgas_fn_success () { as_fn_return 0; }
1587e4fd55aSmrgas_fn_failure () { as_fn_return 1; }
1597e4fd55aSmrgas_fn_ret_success () { return 0; }
1607e4fd55aSmrgas_fn_ret_failure () { return 1; }
1617e4fd55aSmrg
1627e4fd55aSmrgexitcode=0
1637e4fd55aSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1647e4fd55aSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1657e4fd55aSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1667e4fd55aSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1677e4fd55aSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1687e4fd55aSmrg
1697e4fd55aSmrgelse
1707e4fd55aSmrg  exitcode=1; echo positional parameters were not saved.
1717e4fd55aSmrgfi
1727e4fd55aSmrgtest x\$exitcode = x0 || exit 1"
1737e4fd55aSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1747e4fd55aSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1757e4fd55aSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1767e4fd55aSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1777e4fd55aSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
1787e4fd55aSmrg  if (eval "$as_required") 2>/dev/null; then :
1797e4fd55aSmrg  as_have_required=yes
1807e4fd55aSmrgelse
1817e4fd55aSmrg  as_have_required=no
1827e4fd55aSmrgfi
1837e4fd55aSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1847e4fd55aSmrg
1857e4fd55aSmrgelse
1867e4fd55aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877e4fd55aSmrgas_found=false
1887e4fd55aSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189b8f75c19Smrgdo
1907e4fd55aSmrg  IFS=$as_save_IFS
1917e4fd55aSmrg  test -z "$as_dir" && as_dir=.
1927e4fd55aSmrg  as_found=:
1937e4fd55aSmrg  case $as_dir in #(
1947e4fd55aSmrg	 /*)
1957e4fd55aSmrg	   for as_base in sh bash ksh sh5; do
1967e4fd55aSmrg	     # Try only shells that exist, to save several forks.
1977e4fd55aSmrg	     as_shell=$as_dir/$as_base
1987e4fd55aSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1997e4fd55aSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2007e4fd55aSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
2017e4fd55aSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2027e4fd55aSmrg  break 2
2037e4fd55aSmrgfi
2047e4fd55aSmrgfi
2057e4fd55aSmrg	   done;;
2067e4fd55aSmrg       esac
2077e4fd55aSmrg  as_found=false
2087e4fd55aSmrgdone
2097e4fd55aSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2107e4fd55aSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2117e4fd55aSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
2127e4fd55aSmrgfi; }
2137e4fd55aSmrgIFS=$as_save_IFS
2147e4fd55aSmrg
2157e4fd55aSmrg
2167e4fd55aSmrg      if test "x$CONFIG_SHELL" != x; then :
2177e4fd55aSmrg  # We cannot yet assume a decent shell, so we have to provide a
2187e4fd55aSmrg	# neutralization value for shells without unset; and this also
2197e4fd55aSmrg	# works around shells that cannot unset nonexistent variables.
2207e4fd55aSmrg	# Preserve -v and -x to the replacement shell.
2217e4fd55aSmrg	BASH_ENV=/dev/null
2227e4fd55aSmrg	ENV=/dev/null
2237e4fd55aSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2247e4fd55aSmrg	export CONFIG_SHELL
2257e4fd55aSmrg	case $- in # ((((
2267e4fd55aSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2277e4fd55aSmrg	  *v* ) as_opts=-v ;;
2287e4fd55aSmrg	  *x* ) as_opts=-x ;;
2297e4fd55aSmrg	  * ) as_opts= ;;
2307e4fd55aSmrg	esac
2317e4fd55aSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2327e4fd55aSmrgfi
2337e4fd55aSmrg
2347e4fd55aSmrg    if test x$as_have_required = xno; then :
2357e4fd55aSmrg  $as_echo "$0: This script requires a shell more modern than all"
2367e4fd55aSmrg  $as_echo "$0: the shells that I found on your system."
2377e4fd55aSmrg  if test x${ZSH_VERSION+set} = xset ; then
2387e4fd55aSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2397e4fd55aSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240b8f75c19Smrg  else
2417e4fd55aSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2427e4fd55aSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2437e4fd55aSmrg$0: about your system, including any error possibly output
2447e4fd55aSmrg$0: before this message. Then install a modern shell, or
2457e4fd55aSmrg$0: manually run the script under such a shell if you do
2467e4fd55aSmrg$0: have one."
247b8f75c19Smrg  fi
2487e4fd55aSmrg  exit 1
2497e4fd55aSmrgfi
2507e4fd55aSmrgfi
2517e4fd55aSmrgfi
2527e4fd55aSmrgSHELL=${CONFIG_SHELL-/bin/sh}
2537e4fd55aSmrgexport SHELL
2547e4fd55aSmrg# Unset more variables known to interfere with behavior of common tools.
2557e4fd55aSmrgCLICOLOR_FORCE= GREP_OPTIONS=
2567e4fd55aSmrgunset CLICOLOR_FORCE GREP_OPTIONS
2577e4fd55aSmrg
2587e4fd55aSmrg## --------------------- ##
2597e4fd55aSmrg## M4sh Shell Functions. ##
2607e4fd55aSmrg## --------------------- ##
2617e4fd55aSmrg# as_fn_unset VAR
2627e4fd55aSmrg# ---------------
2637e4fd55aSmrg# Portably unset VAR.
2647e4fd55aSmrgas_fn_unset ()
2657e4fd55aSmrg{
2667e4fd55aSmrg  { eval $1=; unset $1;}
2677e4fd55aSmrg}
2687e4fd55aSmrgas_unset=as_fn_unset
2697e4fd55aSmrg
2707e4fd55aSmrg# as_fn_set_status STATUS
2717e4fd55aSmrg# -----------------------
2727e4fd55aSmrg# Set $? to STATUS, without forking.
2737e4fd55aSmrgas_fn_set_status ()
2747e4fd55aSmrg{
2757e4fd55aSmrg  return $1
2767e4fd55aSmrg} # as_fn_set_status
277b8f75c19Smrg
2787e4fd55aSmrg# as_fn_exit STATUS
2797e4fd55aSmrg# -----------------
2807e4fd55aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2817e4fd55aSmrgas_fn_exit ()
2827e4fd55aSmrg{
2837e4fd55aSmrg  set +e
2847e4fd55aSmrg  as_fn_set_status $1
2857e4fd55aSmrg  exit $1
2867e4fd55aSmrg} # as_fn_exit
2877e4fd55aSmrg
2887e4fd55aSmrg# as_fn_mkdir_p
2897e4fd55aSmrg# -------------
2907e4fd55aSmrg# Create "$as_dir" as a directory, including parents if necessary.
2917e4fd55aSmrgas_fn_mkdir_p ()
2927e4fd55aSmrg{
2937e4fd55aSmrg
2947e4fd55aSmrg  case $as_dir in #(
2957e4fd55aSmrg  -*) as_dir=./$as_dir;;
2967e4fd55aSmrg  esac
2977e4fd55aSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
2987e4fd55aSmrg    as_dirs=
2997e4fd55aSmrg    while :; do
3007e4fd55aSmrg      case $as_dir in #(
3017e4fd55aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3027e4fd55aSmrg      *) as_qdir=$as_dir;;
3037e4fd55aSmrg      esac
3047e4fd55aSmrg      as_dirs="'$as_qdir' $as_dirs"
3057e4fd55aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
3067e4fd55aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3077e4fd55aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3087e4fd55aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
3097e4fd55aSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3107e4fd55aSmrg$as_echo X"$as_dir" |
3117e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3127e4fd55aSmrg	    s//\1/
3137e4fd55aSmrg	    q
3147e4fd55aSmrg	  }
3157e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
3167e4fd55aSmrg	    s//\1/
3177e4fd55aSmrg	    q
3187e4fd55aSmrg	  }
3197e4fd55aSmrg	  /^X\(\/\/\)$/{
3207e4fd55aSmrg	    s//\1/
3217e4fd55aSmrg	    q
3227e4fd55aSmrg	  }
3237e4fd55aSmrg	  /^X\(\/\).*/{
3247e4fd55aSmrg	    s//\1/
3257e4fd55aSmrg	    q
3267e4fd55aSmrg	  }
3277e4fd55aSmrg	  s/.*/./; q'`
3287e4fd55aSmrg      test -d "$as_dir" && break
3297e4fd55aSmrg    done
3307e4fd55aSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3317e4fd55aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3327e4fd55aSmrg
3337e4fd55aSmrg
3347e4fd55aSmrg} # as_fn_mkdir_p
3357e4fd55aSmrg# as_fn_append VAR VALUE
3367e4fd55aSmrg# ----------------------
3377e4fd55aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3387e4fd55aSmrg# advantage of any shell optimizations that allow amortized linear growth over
3397e4fd55aSmrg# repeated appends, instead of the typical quadratic growth present in naive
3407e4fd55aSmrg# implementations.
3417e4fd55aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3427e4fd55aSmrg  eval 'as_fn_append ()
3437e4fd55aSmrg  {
3447e4fd55aSmrg    eval $1+=\$2
3457e4fd55aSmrg  }'
3467e4fd55aSmrgelse
3477e4fd55aSmrg  as_fn_append ()
3487e4fd55aSmrg  {
3497e4fd55aSmrg    eval $1=\$$1\$2
3507e4fd55aSmrg  }
3517e4fd55aSmrgfi # as_fn_append
3527e4fd55aSmrg
3537e4fd55aSmrg# as_fn_arith ARG...
3547e4fd55aSmrg# ------------------
3557e4fd55aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3567e4fd55aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3577e4fd55aSmrg# must be portable across $(()) and expr.
3587e4fd55aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3597e4fd55aSmrg  eval 'as_fn_arith ()
3607e4fd55aSmrg  {
3617e4fd55aSmrg    as_val=$(( $* ))
3627e4fd55aSmrg  }'
3637e4fd55aSmrgelse
3647e4fd55aSmrg  as_fn_arith ()
3657e4fd55aSmrg  {
3667e4fd55aSmrg    as_val=`expr "$@" || test $? -eq 1`
3677e4fd55aSmrg  }
3687e4fd55aSmrgfi # as_fn_arith
3697e4fd55aSmrg
3707e4fd55aSmrg
3717e4fd55aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3727e4fd55aSmrg# ----------------------------------------
3737e4fd55aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3747e4fd55aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3757e4fd55aSmrg# script with STATUS, using 1 if that was 0.
3767e4fd55aSmrgas_fn_error ()
3777e4fd55aSmrg{
3787e4fd55aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
3797e4fd55aSmrg  if test "$4"; then
3807e4fd55aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3817e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3827e4fd55aSmrg  fi
3837e4fd55aSmrg  $as_echo "$as_me: error: $2" >&2
3847e4fd55aSmrg  as_fn_exit $as_status
3857e4fd55aSmrg} # as_fn_error
3867e4fd55aSmrg
3877e4fd55aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3887e4fd55aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389b8f75c19Smrg  as_expr=expr
390b8f75c19Smrgelse
391b8f75c19Smrg  as_expr=false
392b8f75c19Smrgfi
393b8f75c19Smrg
3947e4fd55aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395b8f75c19Smrg  as_basename=basename
396b8f75c19Smrgelse
397b8f75c19Smrg  as_basename=false
398b8f75c19Smrgfi
399b8f75c19Smrg
4007e4fd55aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4017e4fd55aSmrg  as_dirname=dirname
4027e4fd55aSmrgelse
4037e4fd55aSmrg  as_dirname=false
4047e4fd55aSmrgfi
405b8f75c19Smrg
4067e4fd55aSmrgas_me=`$as_basename -- "$0" ||
407b8f75c19Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408b8f75c19Smrg	 X"$0" : 'X\(//\)$' \| \
4097e4fd55aSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4107e4fd55aSmrg$as_echo X/"$0" |
4117e4fd55aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4127e4fd55aSmrg	    s//\1/
4137e4fd55aSmrg	    q
4147e4fd55aSmrg	  }
4157e4fd55aSmrg	  /^X\/\(\/\/\)$/{
4167e4fd55aSmrg	    s//\1/
4177e4fd55aSmrg	    q
4187e4fd55aSmrg	  }
4197e4fd55aSmrg	  /^X\/\(\/\).*/{
4207e4fd55aSmrg	    s//\1/
4217e4fd55aSmrg	    q
4227e4fd55aSmrg	  }
4237e4fd55aSmrg	  s/.*/./; q'`
424b8f75c19Smrg
425b8f75c19Smrg# Avoid depending upon Character Ranges.
426b8f75c19Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427b8f75c19Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428b8f75c19Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429b8f75c19Smrgas_cr_digits='0123456789'
430b8f75c19Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431b8f75c19Smrg
432b8f75c19Smrg
4337e4fd55aSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4347e4fd55aSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4357e4fd55aSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4367e4fd55aSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4377e4fd55aSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4387e4fd55aSmrg  sed -n '
4397e4fd55aSmrg    p
4407e4fd55aSmrg    /[$]LINENO/=
4417e4fd55aSmrg  ' <$as_myself |
442b8f75c19Smrg    sed '
4437e4fd55aSmrg      s/[$]LINENO.*/&-/
4447e4fd55aSmrg      t lineno
4457e4fd55aSmrg      b
4467e4fd55aSmrg      :lineno
447b8f75c19Smrg      N
4487e4fd55aSmrg      :loop
4497e4fd55aSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450b8f75c19Smrg      t loop
4517e4fd55aSmrg      s/-\n.*//
452b8f75c19Smrg    ' >$as_me.lineno &&
4537e4fd55aSmrg  chmod +x "$as_me.lineno" ||
4547e4fd55aSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455b8f75c19Smrg
456b8f75c19Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457b8f75c19Smrg  # (the dirname of $[0] is not the place where we might find the
4587e4fd55aSmrg  # original and so on.  Autoconf is especially sensitive to this).
4597e4fd55aSmrg  . "./$as_me.lineno"
460b8f75c19Smrg  # Exit status is that of the last command.
461b8f75c19Smrg  exit
462b8f75c19Smrg}
463b8f75c19Smrg
4647e4fd55aSmrgECHO_C= ECHO_N= ECHO_T=
4657e4fd55aSmrgcase `echo -n x` in #(((((
4667e4fd55aSmrg-n*)
4677e4fd55aSmrg  case `echo 'xy\c'` in
4687e4fd55aSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4697e4fd55aSmrg  xy)  ECHO_C='\c';;
4707e4fd55aSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4717e4fd55aSmrg       ECHO_T='	';;
4727e4fd55aSmrg  esac;;
4737e4fd55aSmrg*)
4747e4fd55aSmrg  ECHO_N='-n';;
475b8f75c19Smrgesac
476b8f75c19Smrg
4777e4fd55aSmrgrm -f conf$$ conf$$.exe conf$$.file
4787e4fd55aSmrgif test -d conf$$.dir; then
4797e4fd55aSmrg  rm -f conf$$.dir/conf$$.file
480b8f75c19Smrgelse
4817e4fd55aSmrg  rm -f conf$$.dir
4827e4fd55aSmrg  mkdir conf$$.dir 2>/dev/null
483b8f75c19Smrgfi
4847e4fd55aSmrgif (echo >conf$$.file) 2>/dev/null; then
4857e4fd55aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486b8f75c19Smrg    as_ln_s='ln -s'
4877e4fd55aSmrg    # ... but there are two gotchas:
4887e4fd55aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4897e4fd55aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4907e4fd55aSmrg    # In both cases, we have to default to `cp -p'.
4917e4fd55aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4927e4fd55aSmrg      as_ln_s='cp -p'
4937e4fd55aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4947e4fd55aSmrg    as_ln_s=ln
4957e4fd55aSmrg  else
4967e4fd55aSmrg    as_ln_s='cp -p'
497b8f75c19Smrg  fi
498b8f75c19Smrgelse
499b8f75c19Smrg  as_ln_s='cp -p'
500b8f75c19Smrgfi
5017e4fd55aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5027e4fd55aSmrgrmdir conf$$.dir 2>/dev/null
503b8f75c19Smrg
504b8f75c19Smrgif mkdir -p . 2>/dev/null; then
5057e4fd55aSmrg  as_mkdir_p='mkdir -p "$as_dir"'
506b8f75c19Smrgelse
507b8f75c19Smrg  test -d ./-p && rmdir ./-p
508b8f75c19Smrg  as_mkdir_p=false
509b8f75c19Smrgfi
510b8f75c19Smrg
5117e4fd55aSmrgif test -x / >/dev/null 2>&1; then
5127e4fd55aSmrg  as_test_x='test -x'
5137e4fd55aSmrgelse
5147e4fd55aSmrg  if ls -dL / >/dev/null 2>&1; then
5157e4fd55aSmrg    as_ls_L_option=L
5167e4fd55aSmrg  else
5177e4fd55aSmrg    as_ls_L_option=
5187e4fd55aSmrg  fi
5197e4fd55aSmrg  as_test_x='
5207e4fd55aSmrg    eval sh -c '\''
5217e4fd55aSmrg      if test -d "$1"; then
5227e4fd55aSmrg	test -d "$1/.";
5237e4fd55aSmrg      else
5247e4fd55aSmrg	case $1 in #(
5257e4fd55aSmrg	-*)set "./$1";;
5267e4fd55aSmrg	esac;
5277e4fd55aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5287e4fd55aSmrg	???[sx]*):;;*)false;;esac;fi
5297e4fd55aSmrg    '\'' sh
5307e4fd55aSmrg  '
5317e4fd55aSmrgfi
5327e4fd55aSmrgas_executable_p=$as_test_x
533b8f75c19Smrg
534b8f75c19Smrg# Sed expression to map a string onto a valid CPP name.
535b8f75c19Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536b8f75c19Smrg
537b8f75c19Smrg# Sed expression to map a string onto a valid variable name.
538b8f75c19Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539b8f75c19Smrg
540b8f75c19Smrg
5417e4fd55aSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5427e4fd55aSmrgexec 6>&1
543b8f75c19Smrg
544b8f75c19Smrg# Name of the host.
5457e4fd55aSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546b8f75c19Smrg# so uname gets run too.
547b8f75c19Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548b8f75c19Smrg
549b8f75c19Smrg#
550b8f75c19Smrg# Initializations.
551b8f75c19Smrg#
552b8f75c19Smrgac_default_prefix=/usr/local
5537e4fd55aSmrgac_clean_files=
554b8f75c19Smrgac_config_libobj_dir=.
5557e4fd55aSmrgLIBOBJS=
556b8f75c19Smrgcross_compiling=no
557b8f75c19Smrgsubdirs=
558b8f75c19SmrgMFLAGS=
559b8f75c19SmrgMAKEFLAGS=
560b8f75c19Smrg
561b8f75c19Smrg# Identity of this package.
562b8f75c19SmrgPACKAGE_NAME='xfindproxy'
563b8f75c19SmrgPACKAGE_TARNAME='xfindproxy'
5647e4fd55aSmrgPACKAGE_VERSION='1.0.2'
5657e4fd55aSmrgPACKAGE_STRING='xfindproxy 1.0.2'
5667e4fd55aSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5677e4fd55aSmrgPACKAGE_URL=''
5687e4fd55aSmrg
5697e4fd55aSmrgac_unique_file="Makefile.am"
5707e4fd55aSmrg# Factoring default headers for most tests.
5717e4fd55aSmrgac_includes_default="\
5727e4fd55aSmrg#include <stdio.h>
5737e4fd55aSmrg#ifdef HAVE_SYS_TYPES_H
5747e4fd55aSmrg# include <sys/types.h>
5757e4fd55aSmrg#endif
5767e4fd55aSmrg#ifdef HAVE_SYS_STAT_H
5777e4fd55aSmrg# include <sys/stat.h>
5787e4fd55aSmrg#endif
5797e4fd55aSmrg#ifdef STDC_HEADERS
5807e4fd55aSmrg# include <stdlib.h>
5817e4fd55aSmrg# include <stddef.h>
5827e4fd55aSmrg#else
5837e4fd55aSmrg# ifdef HAVE_STDLIB_H
5847e4fd55aSmrg#  include <stdlib.h>
5857e4fd55aSmrg# endif
5867e4fd55aSmrg#endif
5877e4fd55aSmrg#ifdef HAVE_STRING_H
5887e4fd55aSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5897e4fd55aSmrg#  include <memory.h>
5907e4fd55aSmrg# endif
5917e4fd55aSmrg# include <string.h>
5927e4fd55aSmrg#endif
5937e4fd55aSmrg#ifdef HAVE_STRINGS_H
5947e4fd55aSmrg# include <strings.h>
5957e4fd55aSmrg#endif
5967e4fd55aSmrg#ifdef HAVE_INTTYPES_H
5977e4fd55aSmrg# include <inttypes.h>
5987e4fd55aSmrg#endif
5997e4fd55aSmrg#ifdef HAVE_STDINT_H
6007e4fd55aSmrg# include <stdint.h>
6017e4fd55aSmrg#endif
6027e4fd55aSmrg#ifdef HAVE_UNISTD_H
6037e4fd55aSmrg# include <unistd.h>
6047e4fd55aSmrg#endif"
6057e4fd55aSmrg
6067e4fd55aSmrgac_subst_vars='am__EXEEXT_FALSE
6077e4fd55aSmrgam__EXEEXT_TRUE
6087e4fd55aSmrgLTLIBOBJS
6097e4fd55aSmrgLIBOBJS
6107e4fd55aSmrgXFINDPROXY_LIBS
6117e4fd55aSmrgXFINDPROXY_CFLAGS
6127e4fd55aSmrgAM_BACKSLASH
6137e4fd55aSmrgAM_DEFAULT_VERBOSITY
6147e4fd55aSmrgMAN_SUBSTS
6157e4fd55aSmrgXORG_MAN_PAGE
6167e4fd55aSmrgADMIN_MAN_DIR
6177e4fd55aSmrgDRIVER_MAN_DIR
6187e4fd55aSmrgMISC_MAN_DIR
6197e4fd55aSmrgFILE_MAN_DIR
6207e4fd55aSmrgLIB_MAN_DIR
6217e4fd55aSmrgAPP_MAN_DIR
6227e4fd55aSmrgADMIN_MAN_SUFFIX
6237e4fd55aSmrgDRIVER_MAN_SUFFIX
6247e4fd55aSmrgMISC_MAN_SUFFIX
6257e4fd55aSmrgFILE_MAN_SUFFIX
6267e4fd55aSmrgLIB_MAN_SUFFIX
6277e4fd55aSmrgAPP_MAN_SUFFIX
6287e4fd55aSmrgSED
6297e4fd55aSmrghost_os
6307e4fd55aSmrghost_vendor
6317e4fd55aSmrghost_cpu
6327e4fd55aSmrghost
6337e4fd55aSmrgbuild_os
6347e4fd55aSmrgbuild_vendor
6357e4fd55aSmrgbuild_cpu
6367e4fd55aSmrgbuild
6377e4fd55aSmrgINSTALL_CMD
6387e4fd55aSmrgPKG_CONFIG
6397e4fd55aSmrgCHANGELOG_CMD
6407e4fd55aSmrgCWARNFLAGS
6417e4fd55aSmrgEGREP
6427e4fd55aSmrgGREP
6437e4fd55aSmrgCPP
6447e4fd55aSmrgam__fastdepCC_FALSE
6457e4fd55aSmrgam__fastdepCC_TRUE
6467e4fd55aSmrgCCDEPMODE
6477e4fd55aSmrgAMDEPBACKSLASH
6487e4fd55aSmrgAMDEP_FALSE
6497e4fd55aSmrgAMDEP_TRUE
6507e4fd55aSmrgam__quote
6517e4fd55aSmrgam__include
6527e4fd55aSmrgDEPDIR
6537e4fd55aSmrgOBJEXT
6547e4fd55aSmrgEXEEXT
6557e4fd55aSmrgac_ct_CC
6567e4fd55aSmrgCPPFLAGS
6577e4fd55aSmrgLDFLAGS
6587e4fd55aSmrgCFLAGS
6597e4fd55aSmrgCC
6607e4fd55aSmrgMAINT
6617e4fd55aSmrgMAINTAINER_MODE_FALSE
6627e4fd55aSmrgMAINTAINER_MODE_TRUE
6637e4fd55aSmrgam__untar
6647e4fd55aSmrgam__tar
6657e4fd55aSmrgAMTAR
6667e4fd55aSmrgam__leading_dot
6677e4fd55aSmrgSET_MAKE
6687e4fd55aSmrgAWK
6697e4fd55aSmrgmkdir_p
6707e4fd55aSmrgMKDIR_P
6717e4fd55aSmrgINSTALL_STRIP_PROGRAM
6727e4fd55aSmrgSTRIP
6737e4fd55aSmrginstall_sh
6747e4fd55aSmrgMAKEINFO
6757e4fd55aSmrgAUTOHEADER
6767e4fd55aSmrgAUTOMAKE
6777e4fd55aSmrgAUTOCONF
6787e4fd55aSmrgACLOCAL
6797e4fd55aSmrgVERSION
6807e4fd55aSmrgPACKAGE
6817e4fd55aSmrgCYGPATH_W
6827e4fd55aSmrgam__isrc
6837e4fd55aSmrgINSTALL_DATA
6847e4fd55aSmrgINSTALL_SCRIPT
6857e4fd55aSmrgINSTALL_PROGRAM
6867e4fd55aSmrgtarget_alias
6877e4fd55aSmrghost_alias
6887e4fd55aSmrgbuild_alias
6897e4fd55aSmrgLIBS
6907e4fd55aSmrgECHO_T
6917e4fd55aSmrgECHO_N
6927e4fd55aSmrgECHO_C
6937e4fd55aSmrgDEFS
6947e4fd55aSmrgmandir
6957e4fd55aSmrglocaledir
6967e4fd55aSmrglibdir
6977e4fd55aSmrgpsdir
6987e4fd55aSmrgpdfdir
6997e4fd55aSmrgdvidir
7007e4fd55aSmrghtmldir
7017e4fd55aSmrginfodir
7027e4fd55aSmrgdocdir
7037e4fd55aSmrgoldincludedir
7047e4fd55aSmrgincludedir
7057e4fd55aSmrglocalstatedir
7067e4fd55aSmrgsharedstatedir
7077e4fd55aSmrgsysconfdir
7087e4fd55aSmrgdatadir
7097e4fd55aSmrgdatarootdir
7107e4fd55aSmrglibexecdir
7117e4fd55aSmrgsbindir
7127e4fd55aSmrgbindir
7137e4fd55aSmrgprogram_transform_name
7147e4fd55aSmrgprefix
7157e4fd55aSmrgexec_prefix
7167e4fd55aSmrgPACKAGE_URL
7177e4fd55aSmrgPACKAGE_BUGREPORT
7187e4fd55aSmrgPACKAGE_STRING
7197e4fd55aSmrgPACKAGE_VERSION
7207e4fd55aSmrgPACKAGE_TARNAME
7217e4fd55aSmrgPACKAGE_NAME
7227e4fd55aSmrgPATH_SEPARATOR
7237e4fd55aSmrgSHELL'
724b8f75c19Smrgac_subst_files=''
7257e4fd55aSmrgac_user_opts='
7267e4fd55aSmrgenable_option_checking
7277e4fd55aSmrgenable_maintainer_mode
7287e4fd55aSmrgenable_dependency_tracking
7297e4fd55aSmrgenable_strict_compilation
7307e4fd55aSmrgenable_silent_rules
7317e4fd55aSmrg'
7327e4fd55aSmrg      ac_precious_vars='build_alias
7337e4fd55aSmrghost_alias
7347e4fd55aSmrgtarget_alias
7357e4fd55aSmrgCC
7367e4fd55aSmrgCFLAGS
7377e4fd55aSmrgLDFLAGS
7387e4fd55aSmrgLIBS
7397e4fd55aSmrgCPPFLAGS
7407e4fd55aSmrgCPP
7417e4fd55aSmrgPKG_CONFIG
7427e4fd55aSmrgXFINDPROXY_CFLAGS
7437e4fd55aSmrgXFINDPROXY_LIBS'
7447e4fd55aSmrg
745b8f75c19Smrg
746b8f75c19Smrg# Initialize some variables set by options.
747b8f75c19Smrgac_init_help=
748b8f75c19Smrgac_init_version=false
7497e4fd55aSmrgac_unrecognized_opts=
7507e4fd55aSmrgac_unrecognized_sep=
751b8f75c19Smrg# The variables have the same names as the options, with
752b8f75c19Smrg# dashes changed to underlines.
753b8f75c19Smrgcache_file=/dev/null
754b8f75c19Smrgexec_prefix=NONE
755b8f75c19Smrgno_create=
756b8f75c19Smrgno_recursion=
757b8f75c19Smrgprefix=NONE
758b8f75c19Smrgprogram_prefix=NONE
759b8f75c19Smrgprogram_suffix=NONE
760b8f75c19Smrgprogram_transform_name=s,x,x,
761b8f75c19Smrgsilent=
762b8f75c19Smrgsite=
763b8f75c19Smrgsrcdir=
764b8f75c19Smrgverbose=
765b8f75c19Smrgx_includes=NONE
766b8f75c19Smrgx_libraries=NONE
767b8f75c19Smrg
768b8f75c19Smrg# Installation directory options.
769b8f75c19Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
770b8f75c19Smrg# and all the variables that are supposed to be based on exec_prefix
771b8f75c19Smrg# by default will actually change.
772b8f75c19Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
7737e4fd55aSmrg# (The list follows the same order as the GNU Coding Standards.)
774b8f75c19Smrgbindir='${exec_prefix}/bin'
775b8f75c19Smrgsbindir='${exec_prefix}/sbin'
776b8f75c19Smrglibexecdir='${exec_prefix}/libexec'
7777e4fd55aSmrgdatarootdir='${prefix}/share'
7787e4fd55aSmrgdatadir='${datarootdir}'
779b8f75c19Smrgsysconfdir='${prefix}/etc'
780b8f75c19Smrgsharedstatedir='${prefix}/com'
781b8f75c19Smrglocalstatedir='${prefix}/var'
782b8f75c19Smrgincludedir='${prefix}/include'
783b8f75c19Smrgoldincludedir='/usr/include'
7847e4fd55aSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7857e4fd55aSmrginfodir='${datarootdir}/info'
7867e4fd55aSmrghtmldir='${docdir}'
7877e4fd55aSmrgdvidir='${docdir}'
7887e4fd55aSmrgpdfdir='${docdir}'
7897e4fd55aSmrgpsdir='${docdir}'
7907e4fd55aSmrglibdir='${exec_prefix}/lib'
7917e4fd55aSmrglocaledir='${datarootdir}/locale'
7927e4fd55aSmrgmandir='${datarootdir}/man'
793b8f75c19Smrg
794b8f75c19Smrgac_prev=
7957e4fd55aSmrgac_dashdash=
796b8f75c19Smrgfor ac_option
797b8f75c19Smrgdo
798b8f75c19Smrg  # If the previous option needs an argument, assign it.
799b8f75c19Smrg  if test -n "$ac_prev"; then
8007e4fd55aSmrg    eval $ac_prev=\$ac_option
801b8f75c19Smrg    ac_prev=
802b8f75c19Smrg    continue
803b8f75c19Smrg  fi
804b8f75c19Smrg
8057e4fd55aSmrg  case $ac_option in
8067e4fd55aSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8077e4fd55aSmrg  *=)   ac_optarg= ;;
8087e4fd55aSmrg  *)    ac_optarg=yes ;;
8097e4fd55aSmrg  esac
810b8f75c19Smrg
811b8f75c19Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
812b8f75c19Smrg
8137e4fd55aSmrg  case $ac_dashdash$ac_option in
8147e4fd55aSmrg  --)
8157e4fd55aSmrg    ac_dashdash=yes ;;
816b8f75c19Smrg
817b8f75c19Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
818b8f75c19Smrg    ac_prev=bindir ;;
819b8f75c19Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820b8f75c19Smrg    bindir=$ac_optarg ;;
821b8f75c19Smrg
822b8f75c19Smrg  -build | --build | --buil | --bui | --bu)
823b8f75c19Smrg    ac_prev=build_alias ;;
824b8f75c19Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825b8f75c19Smrg    build_alias=$ac_optarg ;;
826b8f75c19Smrg
827b8f75c19Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
828b8f75c19Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829b8f75c19Smrg    ac_prev=cache_file ;;
830b8f75c19Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831b8f75c19Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832b8f75c19Smrg    cache_file=$ac_optarg ;;
833b8f75c19Smrg
834b8f75c19Smrg  --config-cache | -C)
835b8f75c19Smrg    cache_file=config.cache ;;
836b8f75c19Smrg
8377e4fd55aSmrg  -datadir | --datadir | --datadi | --datad)
838b8f75c19Smrg    ac_prev=datadir ;;
8397e4fd55aSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
840b8f75c19Smrg    datadir=$ac_optarg ;;
841b8f75c19Smrg
8427e4fd55aSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8437e4fd55aSmrg  | --dataroo | --dataro | --datar)
8447e4fd55aSmrg    ac_prev=datarootdir ;;
8457e4fd55aSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8467e4fd55aSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8477e4fd55aSmrg    datarootdir=$ac_optarg ;;
8487e4fd55aSmrg
849b8f75c19Smrg  -disable-* | --disable-*)
8507e4fd55aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851b8f75c19Smrg    # Reject names that are not valid shell variable names.
8527e4fd55aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8537e4fd55aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8547e4fd55aSmrg    ac_useropt_orig=$ac_useropt
8557e4fd55aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8567e4fd55aSmrg    case $ac_user_opts in
8577e4fd55aSmrg      *"
8587e4fd55aSmrg"enable_$ac_useropt"
8597e4fd55aSmrg"*) ;;
8607e4fd55aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8617e4fd55aSmrg	 ac_unrecognized_sep=', ';;
8627e4fd55aSmrg    esac
8637e4fd55aSmrg    eval enable_$ac_useropt=no ;;
8647e4fd55aSmrg
8657e4fd55aSmrg  -docdir | --docdir | --docdi | --doc | --do)
8667e4fd55aSmrg    ac_prev=docdir ;;
8677e4fd55aSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8687e4fd55aSmrg    docdir=$ac_optarg ;;
8697e4fd55aSmrg
8707e4fd55aSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8717e4fd55aSmrg    ac_prev=dvidir ;;
8727e4fd55aSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8737e4fd55aSmrg    dvidir=$ac_optarg ;;
874b8f75c19Smrg
875b8f75c19Smrg  -enable-* | --enable-*)
8767e4fd55aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877b8f75c19Smrg    # Reject names that are not valid shell variable names.
8787e4fd55aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8797e4fd55aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8807e4fd55aSmrg    ac_useropt_orig=$ac_useropt
8817e4fd55aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8827e4fd55aSmrg    case $ac_user_opts in
8837e4fd55aSmrg      *"
8847e4fd55aSmrg"enable_$ac_useropt"
8857e4fd55aSmrg"*) ;;
8867e4fd55aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8877e4fd55aSmrg	 ac_unrecognized_sep=', ';;
888b8f75c19Smrg    esac
8897e4fd55aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
890b8f75c19Smrg
891b8f75c19Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892b8f75c19Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893b8f75c19Smrg  | --exec | --exe | --ex)
894b8f75c19Smrg    ac_prev=exec_prefix ;;
895b8f75c19Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896b8f75c19Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897b8f75c19Smrg  | --exec=* | --exe=* | --ex=*)
898b8f75c19Smrg    exec_prefix=$ac_optarg ;;
899b8f75c19Smrg
900b8f75c19Smrg  -gas | --gas | --ga | --g)
901b8f75c19Smrg    # Obsolete; use --with-gas.
902b8f75c19Smrg    with_gas=yes ;;
903b8f75c19Smrg
904b8f75c19Smrg  -help | --help | --hel | --he | -h)
905b8f75c19Smrg    ac_init_help=long ;;
906b8f75c19Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907b8f75c19Smrg    ac_init_help=recursive ;;
908b8f75c19Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909b8f75c19Smrg    ac_init_help=short ;;
910b8f75c19Smrg
911b8f75c19Smrg  -host | --host | --hos | --ho)
912b8f75c19Smrg    ac_prev=host_alias ;;
913b8f75c19Smrg  -host=* | --host=* | --hos=* | --ho=*)
914b8f75c19Smrg    host_alias=$ac_optarg ;;
915b8f75c19Smrg
9167e4fd55aSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9177e4fd55aSmrg    ac_prev=htmldir ;;
9187e4fd55aSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9197e4fd55aSmrg  | --ht=*)
9207e4fd55aSmrg    htmldir=$ac_optarg ;;
9217e4fd55aSmrg
922b8f75c19Smrg  -includedir | --includedir | --includedi | --included | --include \
923b8f75c19Smrg  | --includ | --inclu | --incl | --inc)
924b8f75c19Smrg    ac_prev=includedir ;;
925b8f75c19Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926b8f75c19Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
927b8f75c19Smrg    includedir=$ac_optarg ;;
928b8f75c19Smrg
929b8f75c19Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
930b8f75c19Smrg    ac_prev=infodir ;;
931b8f75c19Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932b8f75c19Smrg    infodir=$ac_optarg ;;
933b8f75c19Smrg
934b8f75c19Smrg  -libdir | --libdir | --libdi | --libd)
935b8f75c19Smrg    ac_prev=libdir ;;
936b8f75c19Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
937b8f75c19Smrg    libdir=$ac_optarg ;;
938b8f75c19Smrg
939b8f75c19Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940b8f75c19Smrg  | --libexe | --libex | --libe)
941b8f75c19Smrg    ac_prev=libexecdir ;;
942b8f75c19Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943b8f75c19Smrg  | --libexe=* | --libex=* | --libe=*)
944b8f75c19Smrg    libexecdir=$ac_optarg ;;
945b8f75c19Smrg
9467e4fd55aSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9477e4fd55aSmrg    ac_prev=localedir ;;
9487e4fd55aSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9497e4fd55aSmrg    localedir=$ac_optarg ;;
9507e4fd55aSmrg
951b8f75c19Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9527e4fd55aSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
953b8f75c19Smrg    ac_prev=localstatedir ;;
954b8f75c19Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9557e4fd55aSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956b8f75c19Smrg    localstatedir=$ac_optarg ;;
957b8f75c19Smrg
958b8f75c19Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959b8f75c19Smrg    ac_prev=mandir ;;
960b8f75c19Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961b8f75c19Smrg    mandir=$ac_optarg ;;
962b8f75c19Smrg
963b8f75c19Smrg  -nfp | --nfp | --nf)
964b8f75c19Smrg    # Obsolete; use --without-fp.
965b8f75c19Smrg    with_fp=no ;;
966b8f75c19Smrg
967b8f75c19Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968b8f75c19Smrg  | --no-cr | --no-c | -n)
969b8f75c19Smrg    no_create=yes ;;
970b8f75c19Smrg
971b8f75c19Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972b8f75c19Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973b8f75c19Smrg    no_recursion=yes ;;
974b8f75c19Smrg
975b8f75c19Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976b8f75c19Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977b8f75c19Smrg  | --oldin | --oldi | --old | --ol | --o)
978b8f75c19Smrg    ac_prev=oldincludedir ;;
979b8f75c19Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980b8f75c19Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981b8f75c19Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982b8f75c19Smrg    oldincludedir=$ac_optarg ;;
983b8f75c19Smrg
984b8f75c19Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985b8f75c19Smrg    ac_prev=prefix ;;
986b8f75c19Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987b8f75c19Smrg    prefix=$ac_optarg ;;
988b8f75c19Smrg
989b8f75c19Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
990b8f75c19Smrg  | --program-pre | --program-pr | --program-p)
991b8f75c19Smrg    ac_prev=program_prefix ;;
992b8f75c19Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
993b8f75c19Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994b8f75c19Smrg    program_prefix=$ac_optarg ;;
995b8f75c19Smrg
996b8f75c19Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
997b8f75c19Smrg  | --program-suf | --program-su | --program-s)
998b8f75c19Smrg    ac_prev=program_suffix ;;
999b8f75c19Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000b8f75c19Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001b8f75c19Smrg    program_suffix=$ac_optarg ;;
1002b8f75c19Smrg
1003b8f75c19Smrg  -program-transform-name | --program-transform-name \
1004b8f75c19Smrg  | --program-transform-nam | --program-transform-na \
1005b8f75c19Smrg  | --program-transform-n | --program-transform- \
1006b8f75c19Smrg  | --program-transform | --program-transfor \
1007b8f75c19Smrg  | --program-transfo | --program-transf \
1008b8f75c19Smrg  | --program-trans | --program-tran \
1009b8f75c19Smrg  | --progr-tra | --program-tr | --program-t)
1010b8f75c19Smrg    ac_prev=program_transform_name ;;
1011b8f75c19Smrg  -program-transform-name=* | --program-transform-name=* \
1012b8f75c19Smrg  | --program-transform-nam=* | --program-transform-na=* \
1013b8f75c19Smrg  | --program-transform-n=* | --program-transform-=* \
1014b8f75c19Smrg  | --program-transform=* | --program-transfor=* \
1015b8f75c19Smrg  | --program-transfo=* | --program-transf=* \
1016b8f75c19Smrg  | --program-trans=* | --program-tran=* \
1017b8f75c19Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1018b8f75c19Smrg    program_transform_name=$ac_optarg ;;
1019b8f75c19Smrg
10207e4fd55aSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10217e4fd55aSmrg    ac_prev=pdfdir ;;
10227e4fd55aSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10237e4fd55aSmrg    pdfdir=$ac_optarg ;;
10247e4fd55aSmrg
10257e4fd55aSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10267e4fd55aSmrg    ac_prev=psdir ;;
10277e4fd55aSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10287e4fd55aSmrg    psdir=$ac_optarg ;;
10297e4fd55aSmrg
1030b8f75c19Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031b8f75c19Smrg  | -silent | --silent | --silen | --sile | --sil)
1032b8f75c19Smrg    silent=yes ;;
1033b8f75c19Smrg
1034b8f75c19Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035b8f75c19Smrg    ac_prev=sbindir ;;
1036b8f75c19Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037b8f75c19Smrg  | --sbi=* | --sb=*)
1038b8f75c19Smrg    sbindir=$ac_optarg ;;
1039b8f75c19Smrg
1040b8f75c19Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041b8f75c19Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042b8f75c19Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1043b8f75c19Smrg  | --sha | --sh)
1044b8f75c19Smrg    ac_prev=sharedstatedir ;;
1045b8f75c19Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046b8f75c19Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047b8f75c19Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048b8f75c19Smrg  | --sha=* | --sh=*)
1049b8f75c19Smrg    sharedstatedir=$ac_optarg ;;
1050b8f75c19Smrg
1051b8f75c19Smrg  -site | --site | --sit)
1052b8f75c19Smrg    ac_prev=site ;;
1053b8f75c19Smrg  -site=* | --site=* | --sit=*)
1054b8f75c19Smrg    site=$ac_optarg ;;
1055b8f75c19Smrg
1056b8f75c19Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057b8f75c19Smrg    ac_prev=srcdir ;;
1058b8f75c19Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059b8f75c19Smrg    srcdir=$ac_optarg ;;
1060b8f75c19Smrg
1061b8f75c19Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062b8f75c19Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1063b8f75c19Smrg    ac_prev=sysconfdir ;;
1064b8f75c19Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065b8f75c19Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066b8f75c19Smrg    sysconfdir=$ac_optarg ;;
1067b8f75c19Smrg
1068b8f75c19Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1069b8f75c19Smrg    ac_prev=target_alias ;;
1070b8f75c19Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071b8f75c19Smrg    target_alias=$ac_optarg ;;
1072b8f75c19Smrg
1073b8f75c19Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074b8f75c19Smrg    verbose=yes ;;
1075b8f75c19Smrg
1076b8f75c19Smrg  -version | --version | --versio | --versi | --vers | -V)
1077b8f75c19Smrg    ac_init_version=: ;;
1078b8f75c19Smrg
1079b8f75c19Smrg  -with-* | --with-*)
10807e4fd55aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081b8f75c19Smrg    # Reject names that are not valid shell variable names.
10827e4fd55aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10837e4fd55aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
10847e4fd55aSmrg    ac_useropt_orig=$ac_useropt
10857e4fd55aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10867e4fd55aSmrg    case $ac_user_opts in
10877e4fd55aSmrg      *"
10887e4fd55aSmrg"with_$ac_useropt"
10897e4fd55aSmrg"*) ;;
10907e4fd55aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10917e4fd55aSmrg	 ac_unrecognized_sep=', ';;
1092b8f75c19Smrg    esac
10937e4fd55aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1094b8f75c19Smrg
1095b8f75c19Smrg  -without-* | --without-*)
10967e4fd55aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097b8f75c19Smrg    # Reject names that are not valid shell variable names.
10987e4fd55aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10997e4fd55aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11007e4fd55aSmrg    ac_useropt_orig=$ac_useropt
11017e4fd55aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11027e4fd55aSmrg    case $ac_user_opts in
11037e4fd55aSmrg      *"
11047e4fd55aSmrg"with_$ac_useropt"
11057e4fd55aSmrg"*) ;;
11067e4fd55aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11077e4fd55aSmrg	 ac_unrecognized_sep=', ';;
11087e4fd55aSmrg    esac
11097e4fd55aSmrg    eval with_$ac_useropt=no ;;
1110b8f75c19Smrg
1111b8f75c19Smrg  --x)
1112b8f75c19Smrg    # Obsolete; use --with-x.
1113b8f75c19Smrg    with_x=yes ;;
1114b8f75c19Smrg
1115b8f75c19Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116b8f75c19Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1117b8f75c19Smrg    ac_prev=x_includes ;;
1118b8f75c19Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119b8f75c19Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120b8f75c19Smrg    x_includes=$ac_optarg ;;
1121b8f75c19Smrg
1122b8f75c19Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123b8f75c19Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124b8f75c19Smrg    ac_prev=x_libraries ;;
1125b8f75c19Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126b8f75c19Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127b8f75c19Smrg    x_libraries=$ac_optarg ;;
1128b8f75c19Smrg
11297e4fd55aSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11307e4fd55aSmrgTry \`$0 --help' for more information"
1131b8f75c19Smrg    ;;
1132b8f75c19Smrg
1133b8f75c19Smrg  *=*)
1134b8f75c19Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135b8f75c19Smrg    # Reject names that are not valid shell variable names.
11367e4fd55aSmrg    case $ac_envvar in #(
11377e4fd55aSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11387e4fd55aSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11397e4fd55aSmrg    esac
11407e4fd55aSmrg    eval $ac_envvar=\$ac_optarg
1141b8f75c19Smrg    export $ac_envvar ;;
1142b8f75c19Smrg
1143b8f75c19Smrg  *)
1144b8f75c19Smrg    # FIXME: should be removed in autoconf 3.0.
11457e4fd55aSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146b8f75c19Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11477e4fd55aSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11487e4fd55aSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149b8f75c19Smrg    ;;
1150b8f75c19Smrg
1151b8f75c19Smrg  esac
1152b8f75c19Smrgdone
1153b8f75c19Smrg
1154b8f75c19Smrgif test -n "$ac_prev"; then
1155b8f75c19Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11567e4fd55aSmrg  as_fn_error $? "missing argument to $ac_option"
1157b8f75c19Smrgfi
1158b8f75c19Smrg
11597e4fd55aSmrgif test -n "$ac_unrecognized_opts"; then
11607e4fd55aSmrg  case $enable_option_checking in
11617e4fd55aSmrg    no) ;;
11627e4fd55aSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11637e4fd55aSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164b8f75c19Smrg  esac
11657e4fd55aSmrgfi
1166b8f75c19Smrg
11677e4fd55aSmrg# Check all directory arguments for consistency.
11687e4fd55aSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11697e4fd55aSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11707e4fd55aSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11717e4fd55aSmrg		libdir localedir mandir
1172b8f75c19Smrgdo
11737e4fd55aSmrg  eval ac_val=\$$ac_var
11747e4fd55aSmrg  # Remove trailing slashes.
1175b8f75c19Smrg  case $ac_val in
11767e4fd55aSmrg    */ )
11777e4fd55aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11787e4fd55aSmrg      eval $ac_var=\$ac_val;;
1179b8f75c19Smrg  esac
11807e4fd55aSmrg  # Be sure to have absolute directory names.
11817e4fd55aSmrg  case $ac_val in
11827e4fd55aSmrg    [\\/$]* | ?:[\\/]* )  continue;;
11837e4fd55aSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11847e4fd55aSmrg  esac
11857e4fd55aSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186b8f75c19Smrgdone
1187b8f75c19Smrg
1188b8f75c19Smrg# There might be people who depend on the old broken behavior: `$host'
1189b8f75c19Smrg# used to hold the argument of --host etc.
1190b8f75c19Smrg# FIXME: To remove some day.
1191b8f75c19Smrgbuild=$build_alias
1192b8f75c19Smrghost=$host_alias
1193b8f75c19Smrgtarget=$target_alias
1194b8f75c19Smrg
1195b8f75c19Smrg# FIXME: To remove some day.
1196b8f75c19Smrgif test "x$host_alias" != x; then
1197b8f75c19Smrg  if test "x$build_alias" = x; then
1198b8f75c19Smrg    cross_compiling=maybe
11997e4fd55aSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12007e4fd55aSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1201b8f75c19Smrg  elif test "x$build_alias" != "x$host_alias"; then
1202b8f75c19Smrg    cross_compiling=yes
1203b8f75c19Smrg  fi
1204b8f75c19Smrgfi
1205b8f75c19Smrg
1206b8f75c19Smrgac_tool_prefix=
1207b8f75c19Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1208b8f75c19Smrg
1209b8f75c19Smrgtest "$silent" = yes && exec 6>/dev/null
1210b8f75c19Smrg
1211b8f75c19Smrg
12127e4fd55aSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12137e4fd55aSmrgac_ls_di=`ls -di .` &&
12147e4fd55aSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12157e4fd55aSmrg  as_fn_error $? "working directory cannot be determined"
12167e4fd55aSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12177e4fd55aSmrg  as_fn_error $? "pwd does not report name of working directory"
12187e4fd55aSmrg
12197e4fd55aSmrg
1220b8f75c19Smrg# Find the source files, if location was not specified.
1221b8f75c19Smrgif test -z "$srcdir"; then
1222b8f75c19Smrg  ac_srcdir_defaulted=yes
12237e4fd55aSmrg  # Try the directory containing this script, then the parent directory.
12247e4fd55aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12257e4fd55aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12267e4fd55aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12277e4fd55aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12287e4fd55aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12297e4fd55aSmrg$as_echo X"$as_myself" |
12307e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12317e4fd55aSmrg	    s//\1/
12327e4fd55aSmrg	    q
12337e4fd55aSmrg	  }
12347e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
12357e4fd55aSmrg	    s//\1/
12367e4fd55aSmrg	    q
12377e4fd55aSmrg	  }
12387e4fd55aSmrg	  /^X\(\/\/\)$/{
12397e4fd55aSmrg	    s//\1/
12407e4fd55aSmrg	    q
12417e4fd55aSmrg	  }
12427e4fd55aSmrg	  /^X\(\/\).*/{
12437e4fd55aSmrg	    s//\1/
12447e4fd55aSmrg	    q
12457e4fd55aSmrg	  }
12467e4fd55aSmrg	  s/.*/./; q'`
1247b8f75c19Smrg  srcdir=$ac_confdir
12487e4fd55aSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1249b8f75c19Smrg    srcdir=..
1250b8f75c19Smrg  fi
1251b8f75c19Smrgelse
1252b8f75c19Smrg  ac_srcdir_defaulted=no
1253b8f75c19Smrgfi
12547e4fd55aSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12557e4fd55aSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12567e4fd55aSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12577e4fd55aSmrgfi
12587e4fd55aSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12597e4fd55aSmrgac_abs_confdir=`(
12607e4fd55aSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12617e4fd55aSmrg	pwd)`
12627e4fd55aSmrg# When building in place, set srcdir=.
12637e4fd55aSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12647e4fd55aSmrg  srcdir=.
12657e4fd55aSmrgfi
12667e4fd55aSmrg# Remove unnecessary trailing slashes from srcdir.
12677e4fd55aSmrg# Double slashes in file names in object file debugging info
12687e4fd55aSmrg# mess up M-x gdb in Emacs.
12697e4fd55aSmrgcase $srcdir in
12707e4fd55aSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12717e4fd55aSmrgesac
12727e4fd55aSmrgfor ac_var in $ac_precious_vars; do
12737e4fd55aSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12747e4fd55aSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
12757e4fd55aSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12767e4fd55aSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12777e4fd55aSmrgdone
1278b8f75c19Smrg
1279b8f75c19Smrg#
1280b8f75c19Smrg# Report the --help message.
1281b8f75c19Smrg#
1282b8f75c19Smrgif test "$ac_init_help" = "long"; then
1283b8f75c19Smrg  # Omit some internal or obsolete options to make the list less imposing.
1284b8f75c19Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1285b8f75c19Smrg  cat <<_ACEOF
12867e4fd55aSmrg\`configure' configures xfindproxy 1.0.2 to adapt to many kinds of systems.
1287b8f75c19Smrg
1288b8f75c19SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1289b8f75c19Smrg
1290b8f75c19SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1291b8f75c19SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1292b8f75c19Smrg
1293b8f75c19SmrgDefaults for the options are specified in brackets.
1294b8f75c19Smrg
1295b8f75c19SmrgConfiguration:
1296b8f75c19Smrg  -h, --help              display this help and exit
1297b8f75c19Smrg      --help=short        display options specific to this package
1298b8f75c19Smrg      --help=recursive    display the short help of all the included packages
1299b8f75c19Smrg  -V, --version           display version information and exit
13007e4fd55aSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1301b8f75c19Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1302b8f75c19Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1303b8f75c19Smrg  -n, --no-create         do not create output files
1304b8f75c19Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1305b8f75c19Smrg
1306b8f75c19SmrgInstallation directories:
1307b8f75c19Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13087e4fd55aSmrg                          [$ac_default_prefix]
1309b8f75c19Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13107e4fd55aSmrg                          [PREFIX]
1311b8f75c19Smrg
1312b8f75c19SmrgBy default, \`make install' will install all the files in
1313b8f75c19Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1314b8f75c19Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315b8f75c19Smrgfor instance \`--prefix=\$HOME'.
1316b8f75c19Smrg
1317b8f75c19SmrgFor better control, use the options below.
1318b8f75c19Smrg
1319b8f75c19SmrgFine tuning of the installation directories:
13207e4fd55aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13217e4fd55aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13227e4fd55aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13237e4fd55aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13247e4fd55aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13257e4fd55aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13267e4fd55aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13277e4fd55aSmrg  --includedir=DIR        C header files [PREFIX/include]
13287e4fd55aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13297e4fd55aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13307e4fd55aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13317e4fd55aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13327e4fd55aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13337e4fd55aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13347e4fd55aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfindproxy]
13357e4fd55aSmrg  --htmldir=DIR           html documentation [DOCDIR]
13367e4fd55aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13377e4fd55aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13387e4fd55aSmrg  --psdir=DIR             ps documentation [DOCDIR]
1339b8f75c19Smrg_ACEOF
1340b8f75c19Smrg
1341b8f75c19Smrg  cat <<\_ACEOF
1342b8f75c19Smrg
1343b8f75c19SmrgProgram names:
1344b8f75c19Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1345b8f75c19Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1346b8f75c19Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1347b8f75c19Smrg
1348b8f75c19SmrgSystem types:
1349b8f75c19Smrg  --build=BUILD     configure for building on BUILD [guessed]
1350b8f75c19Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1351b8f75c19Smrg_ACEOF
1352b8f75c19Smrgfi
1353b8f75c19Smrg
1354b8f75c19Smrgif test -n "$ac_init_help"; then
1355b8f75c19Smrg  case $ac_init_help in
13567e4fd55aSmrg     short | recursive ) echo "Configuration of xfindproxy 1.0.2:";;
1357b8f75c19Smrg   esac
1358b8f75c19Smrg  cat <<\_ACEOF
1359b8f75c19Smrg
1360b8f75c19SmrgOptional Features:
13617e4fd55aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1362b8f75c19Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363b8f75c19Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13647e4fd55aSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
13657e4fd55aSmrg			  (and sometimes confusing) to the casual installer
13667e4fd55aSmrg  --disable-dependency-tracking  speeds up one-time build
13677e4fd55aSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
13687e4fd55aSmrg  --enable-strict-compilation
13697e4fd55aSmrg                          Enable all warnings from compiler and make them
13707e4fd55aSmrg                          errors (default: disabled)
13717e4fd55aSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13727e4fd55aSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1373b8f75c19Smrg
1374b8f75c19SmrgSome influential environment variables:
1375b8f75c19Smrg  CC          C compiler command
1376b8f75c19Smrg  CFLAGS      C compiler flags
1377b8f75c19Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1378b8f75c19Smrg              nonstandard directory <lib dir>
13797e4fd55aSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
13807e4fd55aSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13817e4fd55aSmrg              you have headers in a nonstandard directory <include dir>
13827e4fd55aSmrg  CPP         C preprocessor
1383b8f75c19Smrg  PKG_CONFIG  path to pkg-config utility
13847e4fd55aSmrg  XFINDPROXY_CFLAGS
13857e4fd55aSmrg              C compiler flags for XFINDPROXY, overriding pkg-config
13867e4fd55aSmrg  XFINDPROXY_LIBS
13877e4fd55aSmrg              linker flags for XFINDPROXY, overriding pkg-config
1388b8f75c19Smrg
1389b8f75c19SmrgUse these variables to override the choices made by `configure' or to help
1390b8f75c19Smrgit to find libraries and programs with nonstandard names/locations.
1391b8f75c19Smrg
13927e4fd55aSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1393b8f75c19Smrg_ACEOF
13947e4fd55aSmrgac_status=$?
1395b8f75c19Smrgfi
1396b8f75c19Smrg
1397b8f75c19Smrgif test "$ac_init_help" = "recursive"; then
1398b8f75c19Smrg  # If there are subdirs, report their specific --help.
1399b8f75c19Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14007e4fd55aSmrg    test -d "$ac_dir" ||
14017e4fd55aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14027e4fd55aSmrg      continue
1403b8f75c19Smrg    ac_builddir=.
1404b8f75c19Smrg
14057e4fd55aSmrgcase "$ac_dir" in
14067e4fd55aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14077e4fd55aSmrg*)
14087e4fd55aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14097e4fd55aSmrg  # A ".." for each directory in $ac_dir_suffix.
14107e4fd55aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14117e4fd55aSmrg  case $ac_top_builddir_sub in
14127e4fd55aSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14137e4fd55aSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14147e4fd55aSmrg  esac ;;
14157e4fd55aSmrgesac
14167e4fd55aSmrgac_abs_top_builddir=$ac_pwd
14177e4fd55aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14187e4fd55aSmrg# for backward compatibility:
14197e4fd55aSmrgac_top_builddir=$ac_top_build_prefix
1420b8f75c19Smrg
1421b8f75c19Smrgcase $srcdir in
14227e4fd55aSmrg  .)  # We are building in place.
1423b8f75c19Smrg    ac_srcdir=.
14247e4fd55aSmrg    ac_top_srcdir=$ac_top_builddir_sub
14257e4fd55aSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14267e4fd55aSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1427b8f75c19Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14287e4fd55aSmrg    ac_top_srcdir=$srcdir
14297e4fd55aSmrg    ac_abs_top_srcdir=$srcdir ;;
14307e4fd55aSmrg  *) # Relative name.
14317e4fd55aSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14327e4fd55aSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14337e4fd55aSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434b8f75c19Smrgesac
14357e4fd55aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14367e4fd55aSmrg
14377e4fd55aSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14387e4fd55aSmrg    # Check for guested configure.
14397e4fd55aSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14407e4fd55aSmrg      echo &&
14417e4fd55aSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14427e4fd55aSmrg    elif test -f "$ac_srcdir/configure"; then
14437e4fd55aSmrg      echo &&
14447e4fd55aSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1445b8f75c19Smrg    else
14467e4fd55aSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14477e4fd55aSmrg    fi || ac_status=$?
14487e4fd55aSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1449b8f75c19Smrg  done
1450b8f75c19Smrgfi
1451b8f75c19Smrg
14527e4fd55aSmrgtest -n "$ac_init_help" && exit $ac_status
1453b8f75c19Smrgif $ac_init_version; then
1454b8f75c19Smrg  cat <<\_ACEOF
14557e4fd55aSmrgxfindproxy configure 1.0.2
14567e4fd55aSmrggenerated by GNU Autoconf 2.68
1457b8f75c19Smrg
14587e4fd55aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1459b8f75c19SmrgThis configure script is free software; the Free Software Foundation
1460b8f75c19Smrggives unlimited permission to copy, distribute and modify it.
1461b8f75c19Smrg_ACEOF
14627e4fd55aSmrg  exit
1463b8f75c19Smrgfi
1464b8f75c19Smrg
14657e4fd55aSmrg## ------------------------ ##
14667e4fd55aSmrg## Autoconf initialization. ##
14677e4fd55aSmrg## ------------------------ ##
1468b8f75c19Smrg
14697e4fd55aSmrg# ac_fn_c_try_compile LINENO
14707e4fd55aSmrg# --------------------------
14717e4fd55aSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
14727e4fd55aSmrgac_fn_c_try_compile ()
1473b8f75c19Smrg{
14747e4fd55aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14757e4fd55aSmrg  rm -f conftest.$ac_objext
14767e4fd55aSmrg  if { { ac_try="$ac_compile"
14777e4fd55aSmrgcase "(($ac_try" in
14787e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797e4fd55aSmrg  *) ac_try_echo=$ac_try;;
14807e4fd55aSmrgesac
14817e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14827e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
14837e4fd55aSmrg  (eval "$ac_compile") 2>conftest.err
14847e4fd55aSmrg  ac_status=$?
14857e4fd55aSmrg  if test -s conftest.err; then
14867e4fd55aSmrg    grep -v '^ *+' conftest.err >conftest.er1
14877e4fd55aSmrg    cat conftest.er1 >&5
14887e4fd55aSmrg    mv -f conftest.er1 conftest.err
14897e4fd55aSmrg  fi
14907e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14917e4fd55aSmrg  test $ac_status = 0; } && {
14927e4fd55aSmrg	 test -z "$ac_c_werror_flag" ||
14937e4fd55aSmrg	 test ! -s conftest.err
14947e4fd55aSmrg       } && test -s conftest.$ac_objext; then :
14957e4fd55aSmrg  ac_retval=0
14967e4fd55aSmrgelse
14977e4fd55aSmrg  $as_echo "$as_me: failed program was:" >&5
14987e4fd55aSmrgsed 's/^/| /' conftest.$ac_ext >&5
1499b8f75c19Smrg
15007e4fd55aSmrg	ac_retval=1
15017e4fd55aSmrgfi
15027e4fd55aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15037e4fd55aSmrg  as_fn_set_status $ac_retval
1504b8f75c19Smrg
15057e4fd55aSmrg} # ac_fn_c_try_compile
1506b8f75c19Smrg
15077e4fd55aSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15087e4fd55aSmrg# ---------------------------------------------
15097e4fd55aSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15107e4fd55aSmrg# accordingly.
15117e4fd55aSmrgac_fn_c_check_decl ()
15127e4fd55aSmrg{
15137e4fd55aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15147e4fd55aSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15157e4fd55aSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15167e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15177e4fd55aSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15187e4fd55aSmrgif eval \${$3+:} false; then :
15197e4fd55aSmrg  $as_echo_n "(cached) " >&6
15207e4fd55aSmrgelse
15217e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227e4fd55aSmrg/* end confdefs.h.  */
15237e4fd55aSmrg$4
15247e4fd55aSmrgint
15257e4fd55aSmrgmain ()
15267e4fd55aSmrg{
15277e4fd55aSmrg#ifndef $as_decl_name
15287e4fd55aSmrg#ifdef __cplusplus
15297e4fd55aSmrg  (void) $as_decl_use;
15307e4fd55aSmrg#else
15317e4fd55aSmrg  (void) $as_decl_name;
15327e4fd55aSmrg#endif
15337e4fd55aSmrg#endif
1534b8f75c19Smrg
15357e4fd55aSmrg  ;
15367e4fd55aSmrg  return 0;
15377e4fd55aSmrg}
15387e4fd55aSmrg_ACEOF
15397e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
15407e4fd55aSmrg  eval "$3=yes"
15417e4fd55aSmrgelse
15427e4fd55aSmrg  eval "$3=no"
15437e4fd55aSmrgfi
15447e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457e4fd55aSmrgfi
15467e4fd55aSmrgeval ac_res=\$$3
15477e4fd55aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15487e4fd55aSmrg$as_echo "$ac_res" >&6; }
15497e4fd55aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15507e4fd55aSmrg
15517e4fd55aSmrg} # ac_fn_c_check_decl
15527e4fd55aSmrg
15537e4fd55aSmrg# ac_fn_c_try_cpp LINENO
15547e4fd55aSmrg# ----------------------
15557e4fd55aSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15567e4fd55aSmrgac_fn_c_try_cpp ()
15577e4fd55aSmrg{
15587e4fd55aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15597e4fd55aSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15607e4fd55aSmrgcase "(($ac_try" in
15617e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627e4fd55aSmrg  *) ac_try_echo=$ac_try;;
15637e4fd55aSmrgesac
15647e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15657e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
15667e4fd55aSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15677e4fd55aSmrg  ac_status=$?
15687e4fd55aSmrg  if test -s conftest.err; then
15697e4fd55aSmrg    grep -v '^ *+' conftest.err >conftest.er1
15707e4fd55aSmrg    cat conftest.er1 >&5
15717e4fd55aSmrg    mv -f conftest.er1 conftest.err
15727e4fd55aSmrg  fi
15737e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15747e4fd55aSmrg  test $ac_status = 0; } > conftest.i && {
15757e4fd55aSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15767e4fd55aSmrg	 test ! -s conftest.err
15777e4fd55aSmrg       }; then :
15787e4fd55aSmrg  ac_retval=0
15797e4fd55aSmrgelse
15807e4fd55aSmrg  $as_echo "$as_me: failed program was:" >&5
15817e4fd55aSmrgsed 's/^/| /' conftest.$ac_ext >&5
15827e4fd55aSmrg
15837e4fd55aSmrg    ac_retval=1
15847e4fd55aSmrgfi
15857e4fd55aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15867e4fd55aSmrg  as_fn_set_status $ac_retval
15877e4fd55aSmrg
15887e4fd55aSmrg} # ac_fn_c_try_cpp
15897e4fd55aSmrg
15907e4fd55aSmrg# ac_fn_c_try_run LINENO
15917e4fd55aSmrg# ----------------------
15927e4fd55aSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
15937e4fd55aSmrg# that executables *can* be run.
15947e4fd55aSmrgac_fn_c_try_run ()
15957e4fd55aSmrg{
15967e4fd55aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15977e4fd55aSmrg  if { { ac_try="$ac_link"
15987e4fd55aSmrgcase "(($ac_try" in
15997e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007e4fd55aSmrg  *) ac_try_echo=$ac_try;;
16017e4fd55aSmrgesac
16027e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16037e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
16047e4fd55aSmrg  (eval "$ac_link") 2>&5
16057e4fd55aSmrg  ac_status=$?
16067e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16077e4fd55aSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16087e4fd55aSmrg  { { case "(($ac_try" in
16097e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107e4fd55aSmrg  *) ac_try_echo=$ac_try;;
16117e4fd55aSmrgesac
16127e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16137e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
16147e4fd55aSmrg  (eval "$ac_try") 2>&5
16157e4fd55aSmrg  ac_status=$?
16167e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16177e4fd55aSmrg  test $ac_status = 0; }; }; then :
16187e4fd55aSmrg  ac_retval=0
16197e4fd55aSmrgelse
16207e4fd55aSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16217e4fd55aSmrg       $as_echo "$as_me: failed program was:" >&5
16227e4fd55aSmrgsed 's/^/| /' conftest.$ac_ext >&5
16237e4fd55aSmrg
16247e4fd55aSmrg       ac_retval=$ac_status
16257e4fd55aSmrgfi
16267e4fd55aSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16277e4fd55aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16287e4fd55aSmrg  as_fn_set_status $ac_retval
16297e4fd55aSmrg
16307e4fd55aSmrg} # ac_fn_c_try_run
16317e4fd55aSmrg
16327e4fd55aSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16337e4fd55aSmrg# -------------------------------------------------------
16347e4fd55aSmrg# Tests whether HEADER exists and can be compiled using the include files in
16357e4fd55aSmrg# INCLUDES, setting the cache variable VAR accordingly.
16367e4fd55aSmrgac_fn_c_check_header_compile ()
16377e4fd55aSmrg{
16387e4fd55aSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16397e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16407e4fd55aSmrg$as_echo_n "checking for $2... " >&6; }
16417e4fd55aSmrgif eval \${$3+:} false; then :
16427e4fd55aSmrg  $as_echo_n "(cached) " >&6
16437e4fd55aSmrgelse
16447e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457e4fd55aSmrg/* end confdefs.h.  */
16467e4fd55aSmrg$4
16477e4fd55aSmrg#include <$2>
16487e4fd55aSmrg_ACEOF
16497e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
16507e4fd55aSmrg  eval "$3=yes"
16517e4fd55aSmrgelse
16527e4fd55aSmrg  eval "$3=no"
16537e4fd55aSmrgfi
16547e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557e4fd55aSmrgfi
16567e4fd55aSmrgeval ac_res=\$$3
16577e4fd55aSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16587e4fd55aSmrg$as_echo "$ac_res" >&6; }
16597e4fd55aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16607e4fd55aSmrg
16617e4fd55aSmrg} # ac_fn_c_check_header_compile
16627e4fd55aSmrgcat >config.log <<_ACEOF
16637e4fd55aSmrgThis file contains any messages produced by compilers while
16647e4fd55aSmrgrunning configure, to aid debugging if configure makes a mistake.
16657e4fd55aSmrg
16667e4fd55aSmrgIt was created by xfindproxy $as_me 1.0.2, which was
16677e4fd55aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
16687e4fd55aSmrg
16697e4fd55aSmrg  $ $0 $@
16707e4fd55aSmrg
16717e4fd55aSmrg_ACEOF
16727e4fd55aSmrgexec 5>>config.log
16737e4fd55aSmrg{
16747e4fd55aSmrgcat <<_ASUNAME
16757e4fd55aSmrg## --------- ##
16767e4fd55aSmrg## Platform. ##
16777e4fd55aSmrg## --------- ##
16787e4fd55aSmrg
16797e4fd55aSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
16807e4fd55aSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
16817e4fd55aSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
16827e4fd55aSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
16837e4fd55aSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
16847e4fd55aSmrg
16857e4fd55aSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
16867e4fd55aSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
16877e4fd55aSmrg
16887e4fd55aSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
16897e4fd55aSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
16907e4fd55aSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
16917e4fd55aSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
16927e4fd55aSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
16937e4fd55aSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
16947e4fd55aSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
16957e4fd55aSmrg
16967e4fd55aSmrg_ASUNAME
16977e4fd55aSmrg
16987e4fd55aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997e4fd55aSmrgfor as_dir in $PATH
17007e4fd55aSmrgdo
17017e4fd55aSmrg  IFS=$as_save_IFS
1702b8f75c19Smrg  test -z "$as_dir" && as_dir=.
17037e4fd55aSmrg    $as_echo "PATH: $as_dir"
17047e4fd55aSmrg  done
17057e4fd55aSmrgIFS=$as_save_IFS
1706b8f75c19Smrg
1707b8f75c19Smrg} >&5
1708b8f75c19Smrg
1709b8f75c19Smrgcat >&5 <<_ACEOF
1710b8f75c19Smrg
1711b8f75c19Smrg
1712b8f75c19Smrg## ----------- ##
1713b8f75c19Smrg## Core tests. ##
1714b8f75c19Smrg## ----------- ##
1715b8f75c19Smrg
1716b8f75c19Smrg_ACEOF
1717b8f75c19Smrg
1718b8f75c19Smrg
1719b8f75c19Smrg# Keep a trace of the command line.
1720b8f75c19Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1721b8f75c19Smrg# Strip out --silent because we don't want to record it for future runs.
1722b8f75c19Smrg# Also quote any args containing shell meta-characters.
1723b8f75c19Smrg# Make two passes to allow for proper duplicate-argument suppression.
1724b8f75c19Smrgac_configure_args=
1725b8f75c19Smrgac_configure_args0=
1726b8f75c19Smrgac_configure_args1=
1727b8f75c19Smrgac_must_keep_next=false
1728b8f75c19Smrgfor ac_pass in 1 2
1729b8f75c19Smrgdo
1730b8f75c19Smrg  for ac_arg
1731b8f75c19Smrg  do
1732b8f75c19Smrg    case $ac_arg in
1733b8f75c19Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734b8f75c19Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735b8f75c19Smrg    | -silent | --silent | --silen | --sile | --sil)
1736b8f75c19Smrg      continue ;;
17377e4fd55aSmrg    *\'*)
17387e4fd55aSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1739b8f75c19Smrg    esac
1740b8f75c19Smrg    case $ac_pass in
17417e4fd55aSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1742b8f75c19Smrg    2)
17437e4fd55aSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1744b8f75c19Smrg      if test $ac_must_keep_next = true; then
1745b8f75c19Smrg	ac_must_keep_next=false # Got value, back to normal.
1746b8f75c19Smrg      else
1747b8f75c19Smrg	case $ac_arg in
1748b8f75c19Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1749b8f75c19Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750b8f75c19Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751b8f75c19Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1752b8f75c19Smrg	    case "$ac_configure_args0 " in
1753b8f75c19Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1754b8f75c19Smrg	    esac
1755b8f75c19Smrg	    ;;
1756b8f75c19Smrg	  -* ) ac_must_keep_next=true ;;
1757b8f75c19Smrg	esac
1758b8f75c19Smrg      fi
17597e4fd55aSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1760b8f75c19Smrg      ;;
1761b8f75c19Smrg    esac
1762b8f75c19Smrg  done
1763b8f75c19Smrgdone
17647e4fd55aSmrg{ ac_configure_args0=; unset ac_configure_args0;}
17657e4fd55aSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1766b8f75c19Smrg
1767b8f75c19Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1768b8f75c19Smrg# config.log.  We remove comments because anyway the quotes in there
1769b8f75c19Smrg# would cause problems or look ugly.
17707e4fd55aSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
17717e4fd55aSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772b8f75c19Smrgtrap 'exit_status=$?
1773b8f75c19Smrg  # Save into config.log some information that might help in debugging.
1774b8f75c19Smrg  {
1775b8f75c19Smrg    echo
1776b8f75c19Smrg
17777e4fd55aSmrg    $as_echo "## ---------------- ##
1778b8f75c19Smrg## Cache variables. ##
17797e4fd55aSmrg## ---------------- ##"
1780b8f75c19Smrg    echo
1781b8f75c19Smrg    # The following way of writing the cache mishandles newlines in values,
17827e4fd55aSmrg(
17837e4fd55aSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
17847e4fd55aSmrg    eval ac_val=\$$ac_var
17857e4fd55aSmrg    case $ac_val in #(
17867e4fd55aSmrg    *${as_nl}*)
17877e4fd55aSmrg      case $ac_var in #(
17887e4fd55aSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17897e4fd55aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17907e4fd55aSmrg      esac
17917e4fd55aSmrg      case $ac_var in #(
17927e4fd55aSmrg      _ | IFS | as_nl) ;; #(
17937e4fd55aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17947e4fd55aSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
17957e4fd55aSmrg      esac ;;
17967e4fd55aSmrg    esac
17977e4fd55aSmrg  done
1798b8f75c19Smrg  (set) 2>&1 |
17997e4fd55aSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
18007e4fd55aSmrg    *${as_nl}ac_space=\ *)
1801b8f75c19Smrg      sed -n \
18027e4fd55aSmrg	"s/'\''/'\''\\\\'\'''\''/g;
18037e4fd55aSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
18047e4fd55aSmrg      ;; #(
1805b8f75c19Smrg    *)
18067e4fd55aSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807b8f75c19Smrg      ;;
18087e4fd55aSmrg    esac |
18097e4fd55aSmrg    sort
18107e4fd55aSmrg)
1811b8f75c19Smrg    echo
1812b8f75c19Smrg
18137e4fd55aSmrg    $as_echo "## ----------------- ##
1814b8f75c19Smrg## Output variables. ##
18157e4fd55aSmrg## ----------------- ##"
1816b8f75c19Smrg    echo
1817b8f75c19Smrg    for ac_var in $ac_subst_vars
1818b8f75c19Smrg    do
18197e4fd55aSmrg      eval ac_val=\$$ac_var
18207e4fd55aSmrg      case $ac_val in
18217e4fd55aSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18227e4fd55aSmrg      esac
18237e4fd55aSmrg      $as_echo "$ac_var='\''$ac_val'\''"
1824b8f75c19Smrg    done | sort
1825b8f75c19Smrg    echo
1826b8f75c19Smrg
1827b8f75c19Smrg    if test -n "$ac_subst_files"; then
18287e4fd55aSmrg      $as_echo "## ------------------- ##
18297e4fd55aSmrg## File substitutions. ##
18307e4fd55aSmrg## ------------------- ##"
1831b8f75c19Smrg      echo
1832b8f75c19Smrg      for ac_var in $ac_subst_files
1833b8f75c19Smrg      do
18347e4fd55aSmrg	eval ac_val=\$$ac_var
18357e4fd55aSmrg	case $ac_val in
18367e4fd55aSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18377e4fd55aSmrg	esac
18387e4fd55aSmrg	$as_echo "$ac_var='\''$ac_val'\''"
1839b8f75c19Smrg      done | sort
1840b8f75c19Smrg      echo
1841b8f75c19Smrg    fi
1842b8f75c19Smrg
1843b8f75c19Smrg    if test -s confdefs.h; then
18447e4fd55aSmrg      $as_echo "## ----------- ##
1845b8f75c19Smrg## confdefs.h. ##
18467e4fd55aSmrg## ----------- ##"
1847b8f75c19Smrg      echo
18487e4fd55aSmrg      cat confdefs.h
1849b8f75c19Smrg      echo
1850b8f75c19Smrg    fi
1851b8f75c19Smrg    test "$ac_signal" != 0 &&
18527e4fd55aSmrg      $as_echo "$as_me: caught signal $ac_signal"
18537e4fd55aSmrg    $as_echo "$as_me: exit $exit_status"
1854b8f75c19Smrg  } >&5
18557e4fd55aSmrg  rm -f core *.core core.conftest.* &&
18567e4fd55aSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857b8f75c19Smrg    exit $exit_status
18587e4fd55aSmrg' 0
1859b8f75c19Smrgfor ac_signal in 1 2 13 15; do
18607e4fd55aSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1861b8f75c19Smrgdone
1862b8f75c19Smrgac_signal=0
1863b8f75c19Smrg
1864b8f75c19Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
18657e4fd55aSmrgrm -f -r conftest* confdefs.h
18667e4fd55aSmrg
18677e4fd55aSmrg$as_echo "/* confdefs.h */" > confdefs.h
1868b8f75c19Smrg
1869b8f75c19Smrg# Predefined preprocessor variables.
1870b8f75c19Smrg
1871b8f75c19Smrgcat >>confdefs.h <<_ACEOF
1872b8f75c19Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1873b8f75c19Smrg_ACEOF
1874b8f75c19Smrg
1875b8f75c19Smrgcat >>confdefs.h <<_ACEOF
1876b8f75c19Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877b8f75c19Smrg_ACEOF
1878b8f75c19Smrg
1879b8f75c19Smrgcat >>confdefs.h <<_ACEOF
1880b8f75c19Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881b8f75c19Smrg_ACEOF
1882b8f75c19Smrg
1883b8f75c19Smrgcat >>confdefs.h <<_ACEOF
1884b8f75c19Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1885b8f75c19Smrg_ACEOF
1886b8f75c19Smrg
1887b8f75c19Smrgcat >>confdefs.h <<_ACEOF
1888b8f75c19Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889b8f75c19Smrg_ACEOF
1890b8f75c19Smrg
18917e4fd55aSmrgcat >>confdefs.h <<_ACEOF
18927e4fd55aSmrg#define PACKAGE_URL "$PACKAGE_URL"
18937e4fd55aSmrg_ACEOF
18947e4fd55aSmrg
1895b8f75c19Smrg
1896b8f75c19Smrg# Let the site file select an alternate cache file if it wants to.
18977e4fd55aSmrg# Prefer an explicitly selected file to automatically selected ones.
18987e4fd55aSmrgac_site_file1=NONE
18997e4fd55aSmrgac_site_file2=NONE
19007e4fd55aSmrgif test -n "$CONFIG_SITE"; then
19017e4fd55aSmrg  # We do not want a PATH search for config.site.
19027e4fd55aSmrg  case $CONFIG_SITE in #((
19037e4fd55aSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
19047e4fd55aSmrg    */*) ac_site_file1=$CONFIG_SITE;;
19057e4fd55aSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
19067e4fd55aSmrg  esac
19077e4fd55aSmrgelif test "x$prefix" != xNONE; then
19087e4fd55aSmrg  ac_site_file1=$prefix/share/config.site
19097e4fd55aSmrg  ac_site_file2=$prefix/etc/config.site
19107e4fd55aSmrgelse
19117e4fd55aSmrg  ac_site_file1=$ac_default_prefix/share/config.site
19127e4fd55aSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
1913b8f75c19Smrgfi
19147e4fd55aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
19157e4fd55aSmrgdo
19167e4fd55aSmrg  test "x$ac_site_file" = xNONE && continue
19177e4fd55aSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
19187e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
19197e4fd55aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920b8f75c19Smrg    sed 's/^/| /' "$ac_site_file" >&5
19217e4fd55aSmrg    . "$ac_site_file" \
19227e4fd55aSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19237e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19247e4fd55aSmrgas_fn_error $? "failed to load site script $ac_site_file
19257e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
1926b8f75c19Smrg  fi
1927b8f75c19Smrgdone
1928b8f75c19Smrg
1929b8f75c19Smrgif test -r "$cache_file"; then
19307e4fd55aSmrg  # Some versions of bash will fail to source /dev/null (special files
19317e4fd55aSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
19327e4fd55aSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
19337e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
19347e4fd55aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1935b8f75c19Smrg    case $cache_file in
19367e4fd55aSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
19377e4fd55aSmrg      *)                      . "./$cache_file";;
1938b8f75c19Smrg    esac
1939b8f75c19Smrg  fi
1940b8f75c19Smrgelse
19417e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
19427e4fd55aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1943b8f75c19Smrg  >$cache_file
1944b8f75c19Smrgfi
1945b8f75c19Smrg
1946b8f75c19Smrg# Check that the precious variables saved in the cache have kept the same
1947b8f75c19Smrg# value.
1948b8f75c19Smrgac_cache_corrupted=false
19497e4fd55aSmrgfor ac_var in $ac_precious_vars; do
1950b8f75c19Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951b8f75c19Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
19527e4fd55aSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
19537e4fd55aSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
1954b8f75c19Smrg  case $ac_old_set,$ac_new_set in
1955b8f75c19Smrg    set,)
19567e4fd55aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
19577e4fd55aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958b8f75c19Smrg      ac_cache_corrupted=: ;;
1959b8f75c19Smrg    ,set)
19607e4fd55aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
19617e4fd55aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962b8f75c19Smrg      ac_cache_corrupted=: ;;
1963b8f75c19Smrg    ,);;
1964b8f75c19Smrg    *)
1965b8f75c19Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
19667e4fd55aSmrg	# differences in whitespace do not lead to failure.
19677e4fd55aSmrg	ac_old_val_w=`echo x $ac_old_val`
19687e4fd55aSmrg	ac_new_val_w=`echo x $ac_new_val`
19697e4fd55aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
19707e4fd55aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
19717e4fd55aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
19727e4fd55aSmrg	  ac_cache_corrupted=:
19737e4fd55aSmrg	else
19747e4fd55aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
19757e4fd55aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
19767e4fd55aSmrg	  eval $ac_var=\$ac_old_val
19777e4fd55aSmrg	fi
19787e4fd55aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
19797e4fd55aSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
19807e4fd55aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
19817e4fd55aSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1982b8f75c19Smrg      fi;;
1983b8f75c19Smrg  esac
1984b8f75c19Smrg  # Pass precious variables to config.status.
1985b8f75c19Smrg  if test "$ac_new_set" = set; then
1986b8f75c19Smrg    case $ac_new_val in
19877e4fd55aSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988b8f75c19Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
1989b8f75c19Smrg    esac
1990b8f75c19Smrg    case " $ac_configure_args " in
1991b8f75c19Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
19927e4fd55aSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1993b8f75c19Smrg    esac
1994b8f75c19Smrg  fi
1995b8f75c19Smrgdone
1996b8f75c19Smrgif $ac_cache_corrupted; then
19977e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19987e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19997e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
20007e4fd55aSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
20017e4fd55aSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2002b8f75c19Smrgfi
20037e4fd55aSmrg## -------------------- ##
20047e4fd55aSmrg## Main body of script. ##
20057e4fd55aSmrg## -------------------- ##
2006b8f75c19Smrg
2007b8f75c19Smrgac_ext=c
2008b8f75c19Smrgac_cpp='$CPP $CPPFLAGS'
2009b8f75c19Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010b8f75c19Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011b8f75c19Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2012b8f75c19Smrg
2013b8f75c19Smrg
2014b8f75c19Smrg
20157e4fd55aSmrgac_config_headers="$ac_config_headers config.h"
2016b8f75c19Smrg
2017b8f75c19Smrg
20187e4fd55aSmrg# Initialize Automake
20197e4fd55aSmrgam__api_version='1.11'
2020b8f75c19Smrg
2021b8f75c19Smrgac_aux_dir=
20227e4fd55aSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
20237e4fd55aSmrg  if test -f "$ac_dir/install-sh"; then
2024b8f75c19Smrg    ac_aux_dir=$ac_dir
2025b8f75c19Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2026b8f75c19Smrg    break
20277e4fd55aSmrg  elif test -f "$ac_dir/install.sh"; then
2028b8f75c19Smrg    ac_aux_dir=$ac_dir
2029b8f75c19Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2030b8f75c19Smrg    break
20317e4fd55aSmrg  elif test -f "$ac_dir/shtool"; then
2032b8f75c19Smrg    ac_aux_dir=$ac_dir
2033b8f75c19Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2034b8f75c19Smrg    break
2035b8f75c19Smrg  fi
2036b8f75c19Smrgdone
2037b8f75c19Smrgif test -z "$ac_aux_dir"; then
20387e4fd55aSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2039b8f75c19Smrgfi
20407e4fd55aSmrg
20417e4fd55aSmrg# These three variables are undocumented and unsupported,
20427e4fd55aSmrg# and are intended to be withdrawn in a future Autoconf release.
20437e4fd55aSmrg# They can cause serious problems if a builder's source tree is in a directory
20447e4fd55aSmrg# whose full name contains unusual characters.
20457e4fd55aSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
20467e4fd55aSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
20477e4fd55aSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
20487e4fd55aSmrg
2049b8f75c19Smrg
2050b8f75c19Smrg# Find a good install program.  We prefer a C program (faster),
2051b8f75c19Smrg# so one script is as good as another.  But avoid the broken or
2052b8f75c19Smrg# incompatible versions:
2053b8f75c19Smrg# SysV /etc/install, /usr/sbin/install
2054b8f75c19Smrg# SunOS /usr/etc/install
2055b8f75c19Smrg# IRIX /sbin/install
2056b8f75c19Smrg# AIX /bin/install
2057b8f75c19Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2058b8f75c19Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2059b8f75c19Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2060b8f75c19Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2061b8f75c19Smrg# OS/2's system install, which has a completely different semantic
2062b8f75c19Smrg# ./install, which can be erroneously created by make from ./install.sh.
20637e4fd55aSmrg# Reject install programs that cannot install multiple files.
20647e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
20657e4fd55aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2066b8f75c19Smrgif test -z "$INSTALL"; then
20677e4fd55aSmrgif ${ac_cv_path_install+:} false; then :
20687e4fd55aSmrg  $as_echo_n "(cached) " >&6
2069b8f75c19Smrgelse
2070b8f75c19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071b8f75c19Smrgfor as_dir in $PATH
2072b8f75c19Smrgdo
2073b8f75c19Smrg  IFS=$as_save_IFS
2074b8f75c19Smrg  test -z "$as_dir" && as_dir=.
20757e4fd55aSmrg    # Account for people who put trailing slashes in PATH elements.
20767e4fd55aSmrgcase $as_dir/ in #((
20777e4fd55aSmrg  ./ | .// | /[cC]/* | \
2078b8f75c19Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20797e4fd55aSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2080b8f75c19Smrg  /usr/ucb/* ) ;;
2081b8f75c19Smrg  *)
2082b8f75c19Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2083b8f75c19Smrg    # Don't use installbsd from OSF since it installs stuff as root
2084b8f75c19Smrg    # by default.
2085b8f75c19Smrg    for ac_prog in ginstall scoinst install; do
2086b8f75c19Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
20877e4fd55aSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2088b8f75c19Smrg	  if test $ac_prog = install &&
2089b8f75c19Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2090b8f75c19Smrg	    # AIX install.  It has an incompatible calling convention.
2091b8f75c19Smrg	    :
2092b8f75c19Smrg	  elif test $ac_prog = install &&
2093b8f75c19Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2094b8f75c19Smrg	    # program-specific install script used by HP pwplus--don't use.
2095b8f75c19Smrg	    :
2096b8f75c19Smrg	  else
20977e4fd55aSmrg	    rm -rf conftest.one conftest.two conftest.dir
20987e4fd55aSmrg	    echo one > conftest.one
20997e4fd55aSmrg	    echo two > conftest.two
21007e4fd55aSmrg	    mkdir conftest.dir
21017e4fd55aSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
21027e4fd55aSmrg	      test -s conftest.one && test -s conftest.two &&
21037e4fd55aSmrg	      test -s conftest.dir/conftest.one &&
21047e4fd55aSmrg	      test -s conftest.dir/conftest.two
21057e4fd55aSmrg	    then
21067e4fd55aSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21077e4fd55aSmrg	      break 3
21087e4fd55aSmrg	    fi
2109b8f75c19Smrg	  fi
2110b8f75c19Smrg	fi
2111b8f75c19Smrg      done
2112b8f75c19Smrg    done
2113b8f75c19Smrg    ;;
2114b8f75c19Smrgesac
2115b8f75c19Smrg
21167e4fd55aSmrg  done
21177e4fd55aSmrgIFS=$as_save_IFS
21187e4fd55aSmrg
21197e4fd55aSmrgrm -rf conftest.one conftest.two conftest.dir
2120b8f75c19Smrg
2121b8f75c19Smrgfi
2122b8f75c19Smrg  if test "${ac_cv_path_install+set}" = set; then
2123b8f75c19Smrg    INSTALL=$ac_cv_path_install
2124b8f75c19Smrg  else
21257e4fd55aSmrg    # As a last resort, use the slow shell script.  Don't cache a
21267e4fd55aSmrg    # value for INSTALL within a source directory, because that will
2127b8f75c19Smrg    # break other packages using the cache if that directory is
21287e4fd55aSmrg    # removed, or if the value is a relative name.
2129b8f75c19Smrg    INSTALL=$ac_install_sh
2130b8f75c19Smrg  fi
2131b8f75c19Smrgfi
21327e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
21337e4fd55aSmrg$as_echo "$INSTALL" >&6; }
2134b8f75c19Smrg
2135b8f75c19Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2136b8f75c19Smrg# It thinks the first close brace ends the variable substitution.
2137b8f75c19Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2138b8f75c19Smrg
2139b8f75c19Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2140b8f75c19Smrg
2141b8f75c19Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2142b8f75c19Smrg
21437e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
21447e4fd55aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2145b8f75c19Smrg# Just in case
2146b8f75c19Smrgsleep 1
2147b8f75c19Smrgecho timestamp > conftest.file
21487e4fd55aSmrg# Reject unsafe characters in $srcdir or the absolute working directory
21497e4fd55aSmrg# name.  Accept space and tab only in the latter.
21507e4fd55aSmrgam_lf='
21517e4fd55aSmrg'
21527e4fd55aSmrgcase `pwd` in
21537e4fd55aSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
21547e4fd55aSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
21557e4fd55aSmrgesac
21567e4fd55aSmrgcase $srcdir in
21577e4fd55aSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
21587e4fd55aSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
21597e4fd55aSmrgesac
21607e4fd55aSmrg
2161b8f75c19Smrg# Do `set' in a subshell so we don't clobber the current shell's
2162b8f75c19Smrg# arguments.  Must try -L first in case configure is actually a
2163b8f75c19Smrg# symlink; some systems play weird games with the mod time of symlinks
2164b8f75c19Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2165b8f75c19Smrg# directory).
2166b8f75c19Smrgif (
21677e4fd55aSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2168b8f75c19Smrg   if test "$*" = "X"; then
2169b8f75c19Smrg      # -L didn't work.
21707e4fd55aSmrg      set X `ls -t "$srcdir/configure" conftest.file`
2171b8f75c19Smrg   fi
2172b8f75c19Smrg   rm -f conftest.file
2173b8f75c19Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2174b8f75c19Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2175b8f75c19Smrg
2176b8f75c19Smrg      # If neither matched, then we have a broken ls.  This can happen
2177b8f75c19Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2178b8f75c19Smrg      # broken ls alias from the environment.  This has actually
2179b8f75c19Smrg      # happened.  Such a system could not be considered "sane".
21807e4fd55aSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
21817e4fd55aSmrgalias in your environment" "$LINENO" 5
2182b8f75c19Smrg   fi
2183b8f75c19Smrg
2184b8f75c19Smrg   test "$2" = conftest.file
2185b8f75c19Smrg   )
2186b8f75c19Smrgthen
2187b8f75c19Smrg   # Ok.
2188b8f75c19Smrg   :
2189b8f75c19Smrgelse
21907e4fd55aSmrg   as_fn_error $? "newly created file is older than distributed files!
21917e4fd55aSmrgCheck your system clock" "$LINENO" 5
2192b8f75c19Smrgfi
21937e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21947e4fd55aSmrg$as_echo "yes" >&6; }
2195b8f75c19Smrgtest "$program_prefix" != NONE &&
21967e4fd55aSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2197b8f75c19Smrg# Use a double $ so make ignores it.
2198b8f75c19Smrgtest "$program_suffix" != NONE &&
21997e4fd55aSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
22007e4fd55aSmrg# Double any \ or $.
2201b8f75c19Smrg# By default was `s,x,x', remove it if useless.
22027e4fd55aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
22037e4fd55aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2204b8f75c19Smrg
2205b8f75c19Smrg# expand $ac_aux_dir to an absolute path
2206b8f75c19Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2207b8f75c19Smrg
22087e4fd55aSmrgif test x"${MISSING+set}" != xset; then
22097e4fd55aSmrg  case $am_aux_dir in
22107e4fd55aSmrg  *\ * | *\	*)
22117e4fd55aSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
22127e4fd55aSmrg  *)
22137e4fd55aSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
22147e4fd55aSmrg  esac
22157e4fd55aSmrgfi
2216b8f75c19Smrg# Use eval to expand $SHELL
2217b8f75c19Smrgif eval "$MISSING --run true"; then
2218b8f75c19Smrg  am_missing_run="$MISSING --run "
2219b8f75c19Smrgelse
2220b8f75c19Smrg  am_missing_run=
22217e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
22227e4fd55aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
22237e4fd55aSmrgfi
22247e4fd55aSmrg
22257e4fd55aSmrgif test x"${install_sh}" != xset; then
22267e4fd55aSmrg  case $am_aux_dir in
22277e4fd55aSmrg  *\ * | *\	*)
22287e4fd55aSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
22297e4fd55aSmrg  *)
22307e4fd55aSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
22317e4fd55aSmrg  esac
22327e4fd55aSmrgfi
22337e4fd55aSmrg
22347e4fd55aSmrg# Installed binaries are usually stripped using `strip' when the user
22357e4fd55aSmrg# run `make install-strip'.  However `strip' might not be the right
22367e4fd55aSmrg# tool to use in cross-compilation environments, therefore Automake
22377e4fd55aSmrg# will honor the `STRIP' environment variable to overrule this program.
22387e4fd55aSmrgif test "$cross_compiling" != no; then
22397e4fd55aSmrg  if test -n "$ac_tool_prefix"; then
22407e4fd55aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
22417e4fd55aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
22427e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22437e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
22447e4fd55aSmrgif ${ac_cv_prog_STRIP+:} false; then :
22457e4fd55aSmrg  $as_echo_n "(cached) " >&6
22467e4fd55aSmrgelse
22477e4fd55aSmrg  if test -n "$STRIP"; then
22487e4fd55aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
22497e4fd55aSmrgelse
22507e4fd55aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22517e4fd55aSmrgfor as_dir in $PATH
22527e4fd55aSmrgdo
22537e4fd55aSmrg  IFS=$as_save_IFS
22547e4fd55aSmrg  test -z "$as_dir" && as_dir=.
22557e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
22567e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22577e4fd55aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
22587e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22597e4fd55aSmrg    break 2
22607e4fd55aSmrg  fi
22617e4fd55aSmrgdone
22627e4fd55aSmrg  done
22637e4fd55aSmrgIFS=$as_save_IFS
22647e4fd55aSmrg
22657e4fd55aSmrgfi
22667e4fd55aSmrgfi
22677e4fd55aSmrgSTRIP=$ac_cv_prog_STRIP
22687e4fd55aSmrgif test -n "$STRIP"; then
22697e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
22707e4fd55aSmrg$as_echo "$STRIP" >&6; }
22717e4fd55aSmrgelse
22727e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22737e4fd55aSmrg$as_echo "no" >&6; }
22747e4fd55aSmrgfi
22757e4fd55aSmrg
22767e4fd55aSmrg
22777e4fd55aSmrgfi
22787e4fd55aSmrgif test -z "$ac_cv_prog_STRIP"; then
22797e4fd55aSmrg  ac_ct_STRIP=$STRIP
22807e4fd55aSmrg  # Extract the first word of "strip", so it can be a program name with args.
22817e4fd55aSmrgset dummy strip; ac_word=$2
22827e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22837e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
22847e4fd55aSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
22857e4fd55aSmrg  $as_echo_n "(cached) " >&6
22867e4fd55aSmrgelse
22877e4fd55aSmrg  if test -n "$ac_ct_STRIP"; then
22887e4fd55aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
22897e4fd55aSmrgelse
22907e4fd55aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22917e4fd55aSmrgfor as_dir in $PATH
22927e4fd55aSmrgdo
22937e4fd55aSmrg  IFS=$as_save_IFS
22947e4fd55aSmrg  test -z "$as_dir" && as_dir=.
22957e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
22967e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22977e4fd55aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
22987e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22997e4fd55aSmrg    break 2
23007e4fd55aSmrg  fi
23017e4fd55aSmrgdone
23027e4fd55aSmrg  done
23037e4fd55aSmrgIFS=$as_save_IFS
23047e4fd55aSmrg
23057e4fd55aSmrgfi
23067e4fd55aSmrgfi
23077e4fd55aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
23087e4fd55aSmrgif test -n "$ac_ct_STRIP"; then
23097e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
23107e4fd55aSmrg$as_echo "$ac_ct_STRIP" >&6; }
23117e4fd55aSmrgelse
23127e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23137e4fd55aSmrg$as_echo "no" >&6; }
23147e4fd55aSmrgfi
23157e4fd55aSmrg
23167e4fd55aSmrg  if test "x$ac_ct_STRIP" = x; then
23177e4fd55aSmrg    STRIP=":"
23187e4fd55aSmrg  else
23197e4fd55aSmrg    case $cross_compiling:$ac_tool_warned in
23207e4fd55aSmrgyes:)
23217e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23227e4fd55aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23237e4fd55aSmrgac_tool_warned=yes ;;
23247e4fd55aSmrgesac
23257e4fd55aSmrg    STRIP=$ac_ct_STRIP
23267e4fd55aSmrg  fi
23277e4fd55aSmrgelse
23287e4fd55aSmrg  STRIP="$ac_cv_prog_STRIP"
23297e4fd55aSmrgfi
23307e4fd55aSmrg
23317e4fd55aSmrgfi
23327e4fd55aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
23337e4fd55aSmrg
23347e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
23357e4fd55aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
23367e4fd55aSmrgif test -z "$MKDIR_P"; then
23377e4fd55aSmrg  if ${ac_cv_path_mkdir+:} false; then :
23387e4fd55aSmrg  $as_echo_n "(cached) " >&6
23397e4fd55aSmrgelse
23407e4fd55aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23417e4fd55aSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
23427e4fd55aSmrgdo
23437e4fd55aSmrg  IFS=$as_save_IFS
23447e4fd55aSmrg  test -z "$as_dir" && as_dir=.
23457e4fd55aSmrg    for ac_prog in mkdir gmkdir; do
23467e4fd55aSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
23477e4fd55aSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
23487e4fd55aSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
23497e4fd55aSmrg	     'mkdir (GNU coreutils) '* | \
23507e4fd55aSmrg	     'mkdir (coreutils) '* | \
23517e4fd55aSmrg	     'mkdir (fileutils) '4.1*)
23527e4fd55aSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
23537e4fd55aSmrg	       break 3;;
23547e4fd55aSmrg	   esac
23557e4fd55aSmrg	 done
23567e4fd55aSmrg       done
23577e4fd55aSmrg  done
23587e4fd55aSmrgIFS=$as_save_IFS
23597e4fd55aSmrg
2360b8f75c19Smrgfi
2361b8f75c19Smrg
23627e4fd55aSmrg  test -d ./--version && rmdir ./--version
23637e4fd55aSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
23647e4fd55aSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
23657e4fd55aSmrg  else
23667e4fd55aSmrg    # As a last resort, use the slow shell script.  Don't cache a
23677e4fd55aSmrg    # value for MKDIR_P within a source directory, because that will
23687e4fd55aSmrg    # break other packages using the cache if that directory is
23697e4fd55aSmrg    # removed, or if the value is a relative name.
23707e4fd55aSmrg    MKDIR_P="$ac_install_sh -d"
23717e4fd55aSmrg  fi
23727e4fd55aSmrgfi
23737e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
23747e4fd55aSmrg$as_echo "$MKDIR_P" >&6; }
23757e4fd55aSmrg
23767e4fd55aSmrgmkdir_p="$MKDIR_P"
23777e4fd55aSmrgcase $mkdir_p in
23787e4fd55aSmrg  [\\/$]* | ?:[\\/]*) ;;
23797e4fd55aSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
23807e4fd55aSmrgesac
23817e4fd55aSmrg
2382b8f75c19Smrgfor ac_prog in gawk mawk nawk awk
2383b8f75c19Smrgdo
2384b8f75c19Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2385b8f75c19Smrgset dummy $ac_prog; ac_word=$2
23867e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23877e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
23887e4fd55aSmrgif ${ac_cv_prog_AWK+:} false; then :
23897e4fd55aSmrg  $as_echo_n "(cached) " >&6
2390b8f75c19Smrgelse
2391b8f75c19Smrg  if test -n "$AWK"; then
2392b8f75c19Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2393b8f75c19Smrgelse
2394b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395b8f75c19Smrgfor as_dir in $PATH
2396b8f75c19Smrgdo
2397b8f75c19Smrg  IFS=$as_save_IFS
2398b8f75c19Smrg  test -z "$as_dir" && as_dir=.
23997e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
24007e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401b8f75c19Smrg    ac_cv_prog_AWK="$ac_prog"
24027e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403b8f75c19Smrg    break 2
2404b8f75c19Smrg  fi
2405b8f75c19Smrgdone
24067e4fd55aSmrg  done
24077e4fd55aSmrgIFS=$as_save_IFS
2408b8f75c19Smrg
2409b8f75c19Smrgfi
2410b8f75c19Smrgfi
2411b8f75c19SmrgAWK=$ac_cv_prog_AWK
2412b8f75c19Smrgif test -n "$AWK"; then
24137e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24147e4fd55aSmrg$as_echo "$AWK" >&6; }
2415b8f75c19Smrgelse
24167e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24177e4fd55aSmrg$as_echo "no" >&6; }
2418b8f75c19Smrgfi
2419b8f75c19Smrg
24207e4fd55aSmrg
2421b8f75c19Smrg  test -n "$AWK" && break
2422b8f75c19Smrgdone
2423b8f75c19Smrg
24247e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24257e4fd55aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24267e4fd55aSmrgset x ${MAKE-make}
24277e4fd55aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24287e4fd55aSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24297e4fd55aSmrg  $as_echo_n "(cached) " >&6
2430b8f75c19Smrgelse
2431b8f75c19Smrg  cat >conftest.make <<\_ACEOF
24327e4fd55aSmrgSHELL = /bin/sh
2433b8f75c19Smrgall:
24347e4fd55aSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2435b8f75c19Smrg_ACEOF
24367e4fd55aSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24377e4fd55aSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
24387e4fd55aSmrg  *@@@%%%=?*=@@@%%%*)
24397e4fd55aSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
24407e4fd55aSmrg  *)
24417e4fd55aSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
24427e4fd55aSmrgesac
2443b8f75c19Smrgrm -f conftest.make
2444b8f75c19Smrgfi
24457e4fd55aSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
24467e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24477e4fd55aSmrg$as_echo "yes" >&6; }
2448b8f75c19Smrg  SET_MAKE=
2449b8f75c19Smrgelse
24507e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24517e4fd55aSmrg$as_echo "no" >&6; }
2452b8f75c19Smrg  SET_MAKE="MAKE=${MAKE-make}"
2453b8f75c19Smrgfi
2454b8f75c19Smrg
2455b8f75c19Smrgrm -rf .tst 2>/dev/null
2456b8f75c19Smrgmkdir .tst 2>/dev/null
2457b8f75c19Smrgif test -d .tst; then
2458b8f75c19Smrg  am__leading_dot=.
2459b8f75c19Smrgelse
2460b8f75c19Smrg  am__leading_dot=_
2461b8f75c19Smrgfi
2462b8f75c19Smrgrmdir .tst 2>/dev/null
2463b8f75c19Smrg
24647e4fd55aSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
24657e4fd55aSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
24667e4fd55aSmrg  # is not polluted with repeated "-I."
24677e4fd55aSmrg  am__isrc=' -I$(srcdir)'
24687e4fd55aSmrg  # test to see if srcdir already configured
24697e4fd55aSmrg  if test -f $srcdir/config.status; then
24707e4fd55aSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
24717e4fd55aSmrg  fi
2472b8f75c19Smrgfi
2473b8f75c19Smrg
2474b8f75c19Smrg# test whether we have cygpath
2475b8f75c19Smrgif test -z "$CYGPATH_W"; then
2476b8f75c19Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2477b8f75c19Smrg    CYGPATH_W='cygpath -w'
2478b8f75c19Smrg  else
2479b8f75c19Smrg    CYGPATH_W=echo
2480b8f75c19Smrg  fi
2481b8f75c19Smrgfi
2482b8f75c19Smrg
2483b8f75c19Smrg
2484b8f75c19Smrg# Define the identity of the package.
2485b8f75c19Smrg PACKAGE='xfindproxy'
24867e4fd55aSmrg VERSION='1.0.2'
2487b8f75c19Smrg
2488b8f75c19Smrg
2489b8f75c19Smrgcat >>confdefs.h <<_ACEOF
2490b8f75c19Smrg#define PACKAGE "$PACKAGE"
2491b8f75c19Smrg_ACEOF
2492b8f75c19Smrg
2493b8f75c19Smrg
2494b8f75c19Smrgcat >>confdefs.h <<_ACEOF
2495b8f75c19Smrg#define VERSION "$VERSION"
2496b8f75c19Smrg_ACEOF
2497b8f75c19Smrg
2498b8f75c19Smrg# Some tools Automake needs.
2499b8f75c19Smrg
2500b8f75c19SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2501b8f75c19Smrg
2502b8f75c19Smrg
2503b8f75c19SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2504b8f75c19Smrg
2505b8f75c19Smrg
2506b8f75c19SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2507b8f75c19Smrg
2508b8f75c19Smrg
2509b8f75c19SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2510b8f75c19Smrg
2511b8f75c19Smrg
2512b8f75c19SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2513b8f75c19Smrg
25147e4fd55aSmrg# We need awk for the "check" target.  The system "awk" is bad on
25157e4fd55aSmrg# some platforms.
25167e4fd55aSmrg# Always define AMTAR for backward compatibility.
2517b8f75c19Smrg
2518b8f75c19SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2519b8f75c19Smrg
25207e4fd55aSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2521b8f75c19Smrg
25227e4fd55aSmrg
25237e4fd55aSmrg
25247e4fd55aSmrg
25257e4fd55aSmrg
25267e4fd55aSmrg
25277e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25287e4fd55aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25297e4fd55aSmrg    # Check whether --enable-maintainer-mode was given.
25307e4fd55aSmrgif test "${enable_maintainer_mode+set}" = set; then :
25317e4fd55aSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2532b8f75c19Smrgelse
25337e4fd55aSmrg  USE_MAINTAINER_MODE=no
2534b8f75c19Smrgfi
25357e4fd55aSmrg
25367e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
25377e4fd55aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
25387e4fd55aSmrg   if test $USE_MAINTAINER_MODE = yes; then
25397e4fd55aSmrg  MAINTAINER_MODE_TRUE=
25407e4fd55aSmrg  MAINTAINER_MODE_FALSE='#'
2541b8f75c19Smrgelse
25427e4fd55aSmrg  MAINTAINER_MODE_TRUE='#'
25437e4fd55aSmrg  MAINTAINER_MODE_FALSE=
2544b8f75c19Smrgfi
2545b8f75c19Smrg
25467e4fd55aSmrg  MAINT=$MAINTAINER_MODE_TRUE
2547b8f75c19Smrg
2548b8f75c19Smrg
2549b8f75c19Smrg
25507e4fd55aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2551b8f75c19Smrg
2552b8f75c19Smrg
2553b8f75c19Smrg
2554b8f75c19Smrg
2555b8f75c19Smrg
2556b8f75c19Smrg
25577e4fd55aSmrg
25587e4fd55aSmrg
25597e4fd55aSmrg
25607e4fd55aSmrg
25617e4fd55aSmrg
25627e4fd55aSmrgDEPDIR="${am__leading_dot}deps"
25637e4fd55aSmrg
25647e4fd55aSmrgac_config_commands="$ac_config_commands depfiles"
25657e4fd55aSmrg
25667e4fd55aSmrg
25677e4fd55aSmrgam_make=${MAKE-make}
25687e4fd55aSmrgcat > confinc << 'END'
25697e4fd55aSmrgam__doit:
25707e4fd55aSmrg	@echo this is the am__doit target
25717e4fd55aSmrg.PHONY: am__doit
25727e4fd55aSmrgEND
25737e4fd55aSmrg# If we don't find an include directive, just comment out the code.
25747e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
25757e4fd55aSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
25767e4fd55aSmrgam__include="#"
25777e4fd55aSmrgam__quote=
25787e4fd55aSmrg_am_result=none
25797e4fd55aSmrg# First try GNU make style include.
25807e4fd55aSmrgecho "include confinc" > confmf
25817e4fd55aSmrg# Ignore all kinds of additional output from `make'.
25827e4fd55aSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
25837e4fd55aSmrg*the\ am__doit\ target*)
25847e4fd55aSmrg  am__include=include
25857e4fd55aSmrg  am__quote=
25867e4fd55aSmrg  _am_result=GNU
25877e4fd55aSmrg  ;;
25887e4fd55aSmrgesac
25897e4fd55aSmrg# Now try BSD make style include.
25907e4fd55aSmrgif test "$am__include" = "#"; then
25917e4fd55aSmrg   echo '.include "confinc"' > confmf
25927e4fd55aSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
25937e4fd55aSmrg   *the\ am__doit\ target*)
25947e4fd55aSmrg     am__include=.include
25957e4fd55aSmrg     am__quote="\""
25967e4fd55aSmrg     _am_result=BSD
25977e4fd55aSmrg     ;;
25987e4fd55aSmrg   esac
2599b8f75c19Smrgfi
2600b8f75c19Smrg
2601b8f75c19Smrg
26027e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26037e4fd55aSmrg$as_echo "$_am_result" >&6; }
26047e4fd55aSmrgrm -f confinc confmf
2605b8f75c19Smrg
26067e4fd55aSmrg# Check whether --enable-dependency-tracking was given.
26077e4fd55aSmrgif test "${enable_dependency_tracking+set}" = set; then :
26087e4fd55aSmrg  enableval=$enable_dependency_tracking;
26097e4fd55aSmrgfi
2610b8f75c19Smrg
26117e4fd55aSmrgif test "x$enable_dependency_tracking" != xno; then
26127e4fd55aSmrg  am_depcomp="$ac_aux_dir/depcomp"
26137e4fd55aSmrg  AMDEPBACKSLASH='\'
26147e4fd55aSmrgfi
26157e4fd55aSmrg if test "x$enable_dependency_tracking" != xno; then
26167e4fd55aSmrg  AMDEP_TRUE=
26177e4fd55aSmrg  AMDEP_FALSE='#'
26187e4fd55aSmrgelse
26197e4fd55aSmrg  AMDEP_TRUE='#'
26207e4fd55aSmrg  AMDEP_FALSE=
26217e4fd55aSmrgfi
2622b8f75c19Smrg
2623b8f75c19Smrg
2624b8f75c19Smrgac_ext=c
2625b8f75c19Smrgac_cpp='$CPP $CPPFLAGS'
2626b8f75c19Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627b8f75c19Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628b8f75c19Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2629b8f75c19Smrgif test -n "$ac_tool_prefix"; then
2630b8f75c19Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631b8f75c19Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
26327e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26337e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26347e4fd55aSmrgif ${ac_cv_prog_CC+:} false; then :
26357e4fd55aSmrg  $as_echo_n "(cached) " >&6
2636b8f75c19Smrgelse
2637b8f75c19Smrg  if test -n "$CC"; then
2638b8f75c19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2639b8f75c19Smrgelse
2640b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641b8f75c19Smrgfor as_dir in $PATH
2642b8f75c19Smrgdo
2643b8f75c19Smrg  IFS=$as_save_IFS
2644b8f75c19Smrg  test -z "$as_dir" && as_dir=.
26457e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
26467e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647b8f75c19Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
26487e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649b8f75c19Smrg    break 2
2650b8f75c19Smrg  fi
2651b8f75c19Smrgdone
26527e4fd55aSmrg  done
26537e4fd55aSmrgIFS=$as_save_IFS
2654b8f75c19Smrg
2655b8f75c19Smrgfi
2656b8f75c19Smrgfi
2657b8f75c19SmrgCC=$ac_cv_prog_CC
2658b8f75c19Smrgif test -n "$CC"; then
26597e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
26607e4fd55aSmrg$as_echo "$CC" >&6; }
2661b8f75c19Smrgelse
26627e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26637e4fd55aSmrg$as_echo "no" >&6; }
2664b8f75c19Smrgfi
2665b8f75c19Smrg
26667e4fd55aSmrg
2667b8f75c19Smrgfi
2668b8f75c19Smrgif test -z "$ac_cv_prog_CC"; then
2669b8f75c19Smrg  ac_ct_CC=$CC
2670b8f75c19Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2671b8f75c19Smrgset dummy gcc; ac_word=$2
26727e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26737e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26747e4fd55aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
26757e4fd55aSmrg  $as_echo_n "(cached) " >&6
2676b8f75c19Smrgelse
2677b8f75c19Smrg  if test -n "$ac_ct_CC"; then
2678b8f75c19Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679b8f75c19Smrgelse
2680b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681b8f75c19Smrgfor as_dir in $PATH
2682b8f75c19Smrgdo
2683b8f75c19Smrg  IFS=$as_save_IFS
2684b8f75c19Smrg  test -z "$as_dir" && as_dir=.
26857e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
26867e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687b8f75c19Smrg    ac_cv_prog_ac_ct_CC="gcc"
26887e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689b8f75c19Smrg    break 2
2690b8f75c19Smrg  fi
2691b8f75c19Smrgdone
26927e4fd55aSmrg  done
26937e4fd55aSmrgIFS=$as_save_IFS
2694b8f75c19Smrg
2695b8f75c19Smrgfi
2696b8f75c19Smrgfi
2697b8f75c19Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2698b8f75c19Smrgif test -n "$ac_ct_CC"; then
26997e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
27007e4fd55aSmrg$as_echo "$ac_ct_CC" >&6; }
2701b8f75c19Smrgelse
27027e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27037e4fd55aSmrg$as_echo "no" >&6; }
2704b8f75c19Smrgfi
2705b8f75c19Smrg
27067e4fd55aSmrg  if test "x$ac_ct_CC" = x; then
27077e4fd55aSmrg    CC=""
27087e4fd55aSmrg  else
27097e4fd55aSmrg    case $cross_compiling:$ac_tool_warned in
27107e4fd55aSmrgyes:)
27117e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27127e4fd55aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27137e4fd55aSmrgac_tool_warned=yes ;;
27147e4fd55aSmrgesac
27157e4fd55aSmrg    CC=$ac_ct_CC
27167e4fd55aSmrg  fi
2717b8f75c19Smrgelse
2718b8f75c19Smrg  CC="$ac_cv_prog_CC"
2719b8f75c19Smrgfi
2720b8f75c19Smrg
2721b8f75c19Smrgif test -z "$CC"; then
27227e4fd55aSmrg          if test -n "$ac_tool_prefix"; then
27237e4fd55aSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2724b8f75c19Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
27257e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27267e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27277e4fd55aSmrgif ${ac_cv_prog_CC+:} false; then :
27287e4fd55aSmrg  $as_echo_n "(cached) " >&6
2729b8f75c19Smrgelse
2730b8f75c19Smrg  if test -n "$CC"; then
2731b8f75c19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2732b8f75c19Smrgelse
2733b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734b8f75c19Smrgfor as_dir in $PATH
2735b8f75c19Smrgdo
2736b8f75c19Smrg  IFS=$as_save_IFS
2737b8f75c19Smrg  test -z "$as_dir" && as_dir=.
27387e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
27397e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740b8f75c19Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
27417e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742b8f75c19Smrg    break 2
2743b8f75c19Smrg  fi
2744b8f75c19Smrgdone
27457e4fd55aSmrg  done
27467e4fd55aSmrgIFS=$as_save_IFS
2747b8f75c19Smrg
2748b8f75c19Smrgfi
2749b8f75c19Smrgfi
2750b8f75c19SmrgCC=$ac_cv_prog_CC
2751b8f75c19Smrgif test -n "$CC"; then
27527e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27537e4fd55aSmrg$as_echo "$CC" >&6; }
2754b8f75c19Smrgelse
27557e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27567e4fd55aSmrg$as_echo "no" >&6; }
2757b8f75c19Smrgfi
2758b8f75c19Smrg
2759b8f75c19Smrg
27607e4fd55aSmrg  fi
2761b8f75c19Smrgfi
2762b8f75c19Smrgif test -z "$CC"; then
2763b8f75c19Smrg  # Extract the first word of "cc", so it can be a program name with args.
2764b8f75c19Smrgset dummy cc; ac_word=$2
27657e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27667e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27677e4fd55aSmrgif ${ac_cv_prog_CC+:} false; then :
27687e4fd55aSmrg  $as_echo_n "(cached) " >&6
2769b8f75c19Smrgelse
2770b8f75c19Smrg  if test -n "$CC"; then
2771b8f75c19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2772b8f75c19Smrgelse
2773b8f75c19Smrg  ac_prog_rejected=no
2774b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775b8f75c19Smrgfor as_dir in $PATH
2776b8f75c19Smrgdo
2777b8f75c19Smrg  IFS=$as_save_IFS
2778b8f75c19Smrg  test -z "$as_dir" && as_dir=.
27797e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
27807e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781b8f75c19Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2782b8f75c19Smrg       ac_prog_rejected=yes
2783b8f75c19Smrg       continue
2784b8f75c19Smrg     fi
2785b8f75c19Smrg    ac_cv_prog_CC="cc"
27867e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787b8f75c19Smrg    break 2
2788b8f75c19Smrg  fi
2789b8f75c19Smrgdone
27907e4fd55aSmrg  done
27917e4fd55aSmrgIFS=$as_save_IFS
2792b8f75c19Smrg
2793b8f75c19Smrgif test $ac_prog_rejected = yes; then
2794b8f75c19Smrg  # We found a bogon in the path, so make sure we never use it.
2795b8f75c19Smrg  set dummy $ac_cv_prog_CC
2796b8f75c19Smrg  shift
2797b8f75c19Smrg  if test $# != 0; then
2798b8f75c19Smrg    # We chose a different compiler from the bogus one.
2799b8f75c19Smrg    # However, it has the same basename, so the bogon will be chosen
2800b8f75c19Smrg    # first if we set CC to just the basename; use the full file name.
2801b8f75c19Smrg    shift
2802b8f75c19Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2803b8f75c19Smrg  fi
2804b8f75c19Smrgfi
2805b8f75c19Smrgfi
2806b8f75c19Smrgfi
2807b8f75c19SmrgCC=$ac_cv_prog_CC
2808b8f75c19Smrgif test -n "$CC"; then
28097e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28107e4fd55aSmrg$as_echo "$CC" >&6; }
2811b8f75c19Smrgelse
28127e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28137e4fd55aSmrg$as_echo "no" >&6; }
2814b8f75c19Smrgfi
2815b8f75c19Smrg
28167e4fd55aSmrg
2817b8f75c19Smrgfi
2818b8f75c19Smrgif test -z "$CC"; then
2819b8f75c19Smrg  if test -n "$ac_tool_prefix"; then
28207e4fd55aSmrg  for ac_prog in cl.exe
2821b8f75c19Smrg  do
2822b8f75c19Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2823b8f75c19Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
28247e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28257e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
28267e4fd55aSmrgif ${ac_cv_prog_CC+:} false; then :
28277e4fd55aSmrg  $as_echo_n "(cached) " >&6
2828b8f75c19Smrgelse
2829b8f75c19Smrg  if test -n "$CC"; then
2830b8f75c19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2831b8f75c19Smrgelse
2832b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833b8f75c19Smrgfor as_dir in $PATH
2834b8f75c19Smrgdo
2835b8f75c19Smrg  IFS=$as_save_IFS
2836b8f75c19Smrg  test -z "$as_dir" && as_dir=.
28377e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28387e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839b8f75c19Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28407e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841b8f75c19Smrg    break 2
2842b8f75c19Smrg  fi
2843b8f75c19Smrgdone
28447e4fd55aSmrg  done
28457e4fd55aSmrgIFS=$as_save_IFS
2846b8f75c19Smrg
2847b8f75c19Smrgfi
2848b8f75c19Smrgfi
2849b8f75c19SmrgCC=$ac_cv_prog_CC
2850b8f75c19Smrgif test -n "$CC"; then
28517e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28527e4fd55aSmrg$as_echo "$CC" >&6; }
2853b8f75c19Smrgelse
28547e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28557e4fd55aSmrg$as_echo "no" >&6; }
2856b8f75c19Smrgfi
2857b8f75c19Smrg
28587e4fd55aSmrg
2859b8f75c19Smrg    test -n "$CC" && break
2860b8f75c19Smrg  done
2861b8f75c19Smrgfi
2862b8f75c19Smrgif test -z "$CC"; then
2863b8f75c19Smrg  ac_ct_CC=$CC
28647e4fd55aSmrg  for ac_prog in cl.exe
2865b8f75c19Smrgdo
2866b8f75c19Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2867b8f75c19Smrgset dummy $ac_prog; ac_word=$2
28687e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28697e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
28707e4fd55aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28717e4fd55aSmrg  $as_echo_n "(cached) " >&6
2872b8f75c19Smrgelse
2873b8f75c19Smrg  if test -n "$ac_ct_CC"; then
2874b8f75c19Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875b8f75c19Smrgelse
2876b8f75c19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877b8f75c19Smrgfor as_dir in $PATH
2878b8f75c19Smrgdo
2879b8f75c19Smrg  IFS=$as_save_IFS
2880b8f75c19Smrg  test -z "$as_dir" && as_dir=.
28817e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
28827e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883b8f75c19Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
28847e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885b8f75c19Smrg    break 2
2886b8f75c19Smrg  fi
2887b8f75c19Smrgdone
28887e4fd55aSmrg  done
28897e4fd55aSmrgIFS=$as_save_IFS
2890b8f75c19Smrg
2891b8f75c19Smrgfi
2892b8f75c19Smrgfi
2893b8f75c19Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2894b8f75c19Smrgif test -n "$ac_ct_CC"; then
28957e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28967e4fd55aSmrg$as_echo "$ac_ct_CC" >&6; }
2897b8f75c19Smrgelse
28987e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28997e4fd55aSmrg$as_echo "no" >&6; }
2900b8f75c19Smrgfi
2901b8f75c19Smrg
29027e4fd55aSmrg
2903b8f75c19Smrg  test -n "$ac_ct_CC" && break
2904b8f75c19Smrgdone
2905b8f75c19Smrg
29067e4fd55aSmrg  if test "x$ac_ct_CC" = x; then
29077e4fd55aSmrg    CC=""
29087e4fd55aSmrg  else
29097e4fd55aSmrg    case $cross_compiling:$ac_tool_warned in
29107e4fd55aSmrgyes:)
29117e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29127e4fd55aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29137e4fd55aSmrgac_tool_warned=yes ;;
29147e4fd55aSmrgesac
29157e4fd55aSmrg    CC=$ac_ct_CC
29167e4fd55aSmrg  fi
2917b8f75c19Smrgfi
2918b8f75c19Smrg
2919b8f75c19Smrgfi
2920b8f75c19Smrg
2921b8f75c19Smrg
29227e4fd55aSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29237e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29247e4fd55aSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
29257e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
2926b8f75c19Smrg
2927b8f75c19Smrg# Provide some information about the compiler.
29287e4fd55aSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
29297e4fd55aSmrgset X $ac_compile
29307e4fd55aSmrgac_compiler=$2
29317e4fd55aSmrgfor ac_option in --version -v -V -qversion; do
29327e4fd55aSmrg  { { ac_try="$ac_compiler $ac_option >&5"
29337e4fd55aSmrgcase "(($ac_try" in
29347e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357e4fd55aSmrg  *) ac_try_echo=$ac_try;;
29367e4fd55aSmrgesac
29377e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29387e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
29397e4fd55aSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2940b8f75c19Smrg  ac_status=$?
29417e4fd55aSmrg  if test -s conftest.err; then
29427e4fd55aSmrg    sed '10a\
29437e4fd55aSmrg... rest of stderr output deleted ...
29447e4fd55aSmrg         10q' conftest.err >conftest.er1
29457e4fd55aSmrg    cat conftest.er1 >&5
29467e4fd55aSmrg  fi
29477e4fd55aSmrg  rm -f conftest.er1 conftest.err
29487e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29497e4fd55aSmrg  test $ac_status = 0; }
29507e4fd55aSmrgdone
2951b8f75c19Smrg
29527e4fd55aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953b8f75c19Smrg/* end confdefs.h.  */
2954b8f75c19Smrg
2955b8f75c19Smrgint
2956b8f75c19Smrgmain ()
2957b8f75c19Smrg{
2958b8f75c19Smrg
2959b8f75c19Smrg  ;
2960b8f75c19Smrg  return 0;
2961b8f75c19Smrg}
2962b8f75c19Smrg_ACEOF
2963b8f75c19Smrgac_clean_files_save=$ac_clean_files
29647e4fd55aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2965b8f75c19Smrg# Try to create an executable without -o first, disregard a.out.
2966b8f75c19Smrg# It will help us diagnose broken compilers, and finding out an intuition
2967b8f75c19Smrg# of exeext.
29687e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
29697e4fd55aSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
29707e4fd55aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
29717e4fd55aSmrg
29727e4fd55aSmrg# The possible output files:
29737e4fd55aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
29747e4fd55aSmrg
29757e4fd55aSmrgac_rmfiles=
29767e4fd55aSmrgfor ac_file in $ac_files
29777e4fd55aSmrgdo
29787e4fd55aSmrg  case $ac_file in
29797e4fd55aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29807e4fd55aSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
29817e4fd55aSmrg  esac
29827e4fd55aSmrgdone
29837e4fd55aSmrgrm -f $ac_rmfiles
29847e4fd55aSmrg
29857e4fd55aSmrgif { { ac_try="$ac_link_default"
29867e4fd55aSmrgcase "(($ac_try" in
29877e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887e4fd55aSmrg  *) ac_try_echo=$ac_try;;
29897e4fd55aSmrgesac
29907e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
29917e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
29927e4fd55aSmrg  (eval "$ac_link_default") 2>&5
2993b8f75c19Smrg  ac_status=$?
29947e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29957e4fd55aSmrg  test $ac_status = 0; }; then :
29967e4fd55aSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
29977e4fd55aSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
29987e4fd55aSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
29997e4fd55aSmrg# so that the user can short-circuit this test for compilers unknown to
30007e4fd55aSmrg# Autoconf.
30017e4fd55aSmrgfor ac_file in $ac_files ''
3002b8f75c19Smrgdo
3003b8f75c19Smrg  test -f "$ac_file" || continue
3004b8f75c19Smrg  case $ac_file in
30057e4fd55aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3006b8f75c19Smrg	;;
3007b8f75c19Smrg    [ab].out )
3008b8f75c19Smrg	# We found the default executable, but exeext='' is most
3009b8f75c19Smrg	# certainly right.
3010b8f75c19Smrg	break;;
3011b8f75c19Smrg    *.* )
30127e4fd55aSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
30137e4fd55aSmrg	then :; else
30147e4fd55aSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30157e4fd55aSmrg	fi
30167e4fd55aSmrg	# We set ac_cv_exeext here because the later test for it is not
30177e4fd55aSmrg	# safe: cross compilers may not add the suffix if given an `-o'
30187e4fd55aSmrg	# argument, so we may need to know it at that point already.
30197e4fd55aSmrg	# Even if this section looks crufty: it has the advantage of
30207e4fd55aSmrg	# actually working.
3021b8f75c19Smrg	break;;
3022b8f75c19Smrg    * )
3023b8f75c19Smrg	break;;
3024b8f75c19Smrg  esac
3025b8f75c19Smrgdone
30267e4fd55aSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
30277e4fd55aSmrg
3028b8f75c19Smrgelse
30297e4fd55aSmrg  ac_file=''
30307e4fd55aSmrgfi
30317e4fd55aSmrgif test -z "$ac_file"; then :
30327e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30337e4fd55aSmrg$as_echo "no" >&6; }
30347e4fd55aSmrg$as_echo "$as_me: failed program was:" >&5
3035b8f75c19Smrgsed 's/^/| /' conftest.$ac_ext >&5
3036b8f75c19Smrg
30377e4fd55aSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30387e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30397e4fd55aSmrgas_fn_error 77 "C compiler cannot create executables
30407e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
30417e4fd55aSmrgelse
30427e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30437e4fd55aSmrg$as_echo "yes" >&6; }
3044b8f75c19Smrgfi
30457e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
30467e4fd55aSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
30477e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
30487e4fd55aSmrg$as_echo "$ac_file" >&6; }
3049b8f75c19Smrgac_exeext=$ac_cv_exeext
3050b8f75c19Smrg
30517e4fd55aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3052b8f75c19Smrgac_clean_files=$ac_clean_files_save
30537e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
30547e4fd55aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
30557e4fd55aSmrgif { { ac_try="$ac_link"
30567e4fd55aSmrgcase "(($ac_try" in
30577e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587e4fd55aSmrg  *) ac_try_echo=$ac_try;;
30597e4fd55aSmrgesac
30607e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30617e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
30627e4fd55aSmrg  (eval "$ac_link") 2>&5
3063b8f75c19Smrg  ac_status=$?
30647e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30657e4fd55aSmrg  test $ac_status = 0; }; then :
3066b8f75c19Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3067b8f75c19Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3068b8f75c19Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3069b8f75c19Smrg# `rm'.
3070b8f75c19Smrgfor ac_file in conftest.exe conftest conftest.*; do
3071b8f75c19Smrg  test -f "$ac_file" || continue
3072b8f75c19Smrg  case $ac_file in
30737e4fd55aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3074b8f75c19Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075b8f75c19Smrg	  break;;
3076b8f75c19Smrg    * ) break;;
3077b8f75c19Smrg  esac
3078b8f75c19Smrgdone
3079b8f75c19Smrgelse
30807e4fd55aSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30817e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30827e4fd55aSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
30837e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3084b8f75c19Smrgfi
30857e4fd55aSmrgrm -f conftest conftest$ac_cv_exeext
30867e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
30877e4fd55aSmrg$as_echo "$ac_cv_exeext" >&6; }
3088b8f75c19Smrg
3089b8f75c19Smrgrm -f conftest.$ac_ext
3090b8f75c19SmrgEXEEXT=$ac_cv_exeext
3091b8f75c19Smrgac_exeext=$EXEEXT
30927e4fd55aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
30937e4fd55aSmrg/* end confdefs.h.  */
30947e4fd55aSmrg#include <stdio.h>
30957e4fd55aSmrgint
30967e4fd55aSmrgmain ()
30977e4fd55aSmrg{
30987e4fd55aSmrgFILE *f = fopen ("conftest.out", "w");
30997e4fd55aSmrg return ferror (f) || fclose (f) != 0;
31007e4fd55aSmrg
31017e4fd55aSmrg  ;
31027e4fd55aSmrg  return 0;
31037e4fd55aSmrg}
3104b8f75c19Smrg_ACEOF
31057e4fd55aSmrgac_clean_files="$ac_clean_files conftest.out"
31067e4fd55aSmrg# Check that the compiler produces executables we can run.  If not, either
31077e4fd55aSmrg# the compiler is broken, or we cross compile.
31087e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
31097e4fd55aSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
31107e4fd55aSmrgif test "$cross_compiling" != yes; then
31117e4fd55aSmrg  { { ac_try="$ac_link"
31127e4fd55aSmrgcase "(($ac_try" in
31137e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147e4fd55aSmrg  *) ac_try_echo=$ac_try;;
31157e4fd55aSmrgesac
31167e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31177e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
31187e4fd55aSmrg  (eval "$ac_link") 2>&5
31197e4fd55aSmrg  ac_status=$?
31207e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31217e4fd55aSmrg  test $ac_status = 0; }
31227e4fd55aSmrg  if { ac_try='./conftest$ac_cv_exeext'
31237e4fd55aSmrg  { { case "(($ac_try" in
31247e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31257e4fd55aSmrg  *) ac_try_echo=$ac_try;;
31267e4fd55aSmrgesac
31277e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31287e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
31297e4fd55aSmrg  (eval "$ac_try") 2>&5
31307e4fd55aSmrg  ac_status=$?
31317e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31327e4fd55aSmrg  test $ac_status = 0; }; }; then
31337e4fd55aSmrg    cross_compiling=no
31347e4fd55aSmrg  else
31357e4fd55aSmrg    if test "$cross_compiling" = maybe; then
31367e4fd55aSmrg	cross_compiling=yes
31377e4fd55aSmrg    else
31387e4fd55aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31397e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31407e4fd55aSmrgas_fn_error $? "cannot run C compiled programs.
31417e4fd55aSmrgIf you meant to cross compile, use \`--host'.
31427e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
31437e4fd55aSmrg    fi
31447e4fd55aSmrg  fi
31457e4fd55aSmrgfi
31467e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
31477e4fd55aSmrg$as_echo "$cross_compiling" >&6; }
31487e4fd55aSmrg
31497e4fd55aSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
31507e4fd55aSmrgac_clean_files=$ac_clean_files_save
31517e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
31527e4fd55aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
31537e4fd55aSmrgif ${ac_cv_objext+:} false; then :
31547e4fd55aSmrg  $as_echo_n "(cached) " >&6
31557e4fd55aSmrgelse
31567e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157b8f75c19Smrg/* end confdefs.h.  */
3158b8f75c19Smrg
3159b8f75c19Smrgint
3160b8f75c19Smrgmain ()
3161b8f75c19Smrg{
3162b8f75c19Smrg
3163b8f75c19Smrg  ;
3164b8f75c19Smrg  return 0;
3165b8f75c19Smrg}
3166b8f75c19Smrg_ACEOF
3167b8f75c19Smrgrm -f conftest.o conftest.obj
31687e4fd55aSmrgif { { ac_try="$ac_compile"
31697e4fd55aSmrgcase "(($ac_try" in
31707e4fd55aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717e4fd55aSmrg  *) ac_try_echo=$ac_try;;
31727e4fd55aSmrgesac
31737e4fd55aSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31747e4fd55aSmrg$as_echo "$ac_try_echo"; } >&5
31757e4fd55aSmrg  (eval "$ac_compile") 2>&5
3176b8f75c19Smrg  ac_status=$?
31777e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31787e4fd55aSmrg  test $ac_status = 0; }; then :
31797e4fd55aSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
31807e4fd55aSmrg  test -f "$ac_file" || continue;
3181b8f75c19Smrg  case $ac_file in
31827e4fd55aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3183b8f75c19Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3184b8f75c19Smrg       break;;
3185b8f75c19Smrg  esac
3186b8f75c19Smrgdone
3187b8f75c19Smrgelse
31887e4fd55aSmrg  $as_echo "$as_me: failed program was:" >&5
3189b8f75c19Smrgsed 's/^/| /' conftest.$ac_ext >&5
3190b8f75c19Smrg
31917e4fd55aSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31927e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31937e4fd55aSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
31947e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3195b8f75c19Smrgfi
3196b8f75c19Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3197b8f75c19Smrgfi
31987e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
31997e4fd55aSmrg$as_echo "$ac_cv_objext" >&6; }
3200b8f75c19SmrgOBJEXT=$ac_cv_objext
3201b8f75c19Smrgac_objext=$OBJEXT
32027e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
32037e4fd55aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
32047e4fd55aSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
32057e4fd55aSmrg  $as_echo_n "(cached) " >&6
3206b8f75c19Smrgelse
32077e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208b8f75c19Smrg/* end confdefs.h.  */
3209b8f75c19Smrg
3210b8f75c19Smrgint
3211b8f75c19Smrgmain ()
3212b8f75c19Smrg{
3213b8f75c19Smrg#ifndef __GNUC__
3214b8f75c19Smrg       choke me
3215b8f75c19Smrg#endif
3216b8f75c19Smrg
3217b8f75c19Smrg  ;
3218b8f75c19Smrg  return 0;
3219b8f75c19Smrg}
3220b8f75c19Smrg_ACEOF
32217e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
3222b8f75c19Smrg  ac_compiler_gnu=yes
3223b8f75c19Smrgelse
32247e4fd55aSmrg  ac_compiler_gnu=no
3225b8f75c19Smrgfi
32267e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227b8f75c19Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3228b8f75c19Smrg
3229b8f75c19Smrgfi
32307e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
32317e4fd55aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
32327e4fd55aSmrgif test $ac_compiler_gnu = yes; then
32337e4fd55aSmrg  GCC=yes
32347e4fd55aSmrgelse
32357e4fd55aSmrg  GCC=
32367e4fd55aSmrgfi
3237b8f75c19Smrgac_test_CFLAGS=${CFLAGS+set}
3238b8f75c19Smrgac_save_CFLAGS=$CFLAGS
32397e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
32407e4fd55aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
32417e4fd55aSmrgif ${ac_cv_prog_cc_g+:} false; then :
32427e4fd55aSmrg  $as_echo_n "(cached) " >&6
32437e4fd55aSmrgelse
32447e4fd55aSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
32457e4fd55aSmrg   ac_c_werror_flag=yes
32467e4fd55aSmrg   ac_cv_prog_cc_g=no
32477e4fd55aSmrg   CFLAGS="-g"
32487e4fd55aSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249b8f75c19Smrg/* end confdefs.h.  */
3250b8f75c19Smrg
3251b8f75c19Smrgint
3252b8f75c19Smrgmain ()
3253b8f75c19Smrg{
3254b8f75c19Smrg
3255b8f75c19Smrg  ;
3256b8f75c19Smrg  return 0;
3257b8f75c19Smrg}
3258b8f75c19Smrg_ACEOF
32597e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
3260b8f75c19Smrg  ac_cv_prog_cc_g=yes
3261b8f75c19Smrgelse
32627e4fd55aSmrg  CFLAGS=""
32637e4fd55aSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32647e4fd55aSmrg/* end confdefs.h.  */
32657e4fd55aSmrg
32667e4fd55aSmrgint
32677e4fd55aSmrgmain ()
32687e4fd55aSmrg{
32697e4fd55aSmrg
32707e4fd55aSmrg  ;
32717e4fd55aSmrg  return 0;
32727e4fd55aSmrg}
32737e4fd55aSmrg_ACEOF
32747e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
32757e4fd55aSmrg
32767e4fd55aSmrgelse
32777e4fd55aSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
32787e4fd55aSmrg	 CFLAGS="-g"
32797e4fd55aSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32807e4fd55aSmrg/* end confdefs.h.  */
32817e4fd55aSmrg
32827e4fd55aSmrgint
32837e4fd55aSmrgmain ()
32847e4fd55aSmrg{
3285b8f75c19Smrg
32867e4fd55aSmrg  ;
32877e4fd55aSmrg  return 0;
32887e4fd55aSmrg}
32897e4fd55aSmrg_ACEOF
32907e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
32917e4fd55aSmrg  ac_cv_prog_cc_g=yes
3292b8f75c19Smrgfi
32937e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294b8f75c19Smrgfi
32957e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32967e4fd55aSmrgfi
32977e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32987e4fd55aSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
32997e4fd55aSmrgfi
33007e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
33017e4fd55aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
33027e4fd55aSmrgif test "$ac_test_CFLAGS" = set; then
3303b8f75c19Smrg  CFLAGS=$ac_save_CFLAGS
3304b8f75c19Smrgelif test $ac_cv_prog_cc_g = yes; then
3305b8f75c19Smrg  if test "$GCC" = yes; then
3306b8f75c19Smrg    CFLAGS="-g -O2"
3307b8f75c19Smrg  else
3308b8f75c19Smrg    CFLAGS="-g"
3309b8f75c19Smrg  fi
3310b8f75c19Smrgelse
3311b8f75c19Smrg  if test "$GCC" = yes; then
3312b8f75c19Smrg    CFLAGS="-O2"
3313b8f75c19Smrg  else
3314b8f75c19Smrg    CFLAGS=
3315b8f75c19Smrg  fi
3316b8f75c19Smrgfi
33177e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
33187e4fd55aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
33197e4fd55aSmrgif ${ac_cv_prog_cc_c89+:} false; then :
33207e4fd55aSmrg  $as_echo_n "(cached) " >&6
3321b8f75c19Smrgelse
33227e4fd55aSmrg  ac_cv_prog_cc_c89=no
3323b8f75c19Smrgac_save_CC=$CC
33247e4fd55aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325b8f75c19Smrg/* end confdefs.h.  */
3326b8f75c19Smrg#include <stdarg.h>
3327b8f75c19Smrg#include <stdio.h>
3328b8f75c19Smrg#include <sys/types.h>
3329b8f75c19Smrg#include <sys/stat.h>
3330b8f75c19Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3331b8f75c19Smrgstruct buf { int x; };
3332b8f75c19SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3333b8f75c19Smrgstatic char *e (p, i)
3334b8f75c19Smrg     char **p;
3335b8f75c19Smrg     int i;
3336b8f75c19Smrg{
3337b8f75c19Smrg  return p[i];
3338b8f75c19Smrg}
3339b8f75c19Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3340b8f75c19Smrg{
3341b8f75c19Smrg  char *s;
3342b8f75c19Smrg  va_list v;
3343b8f75c19Smrg  va_start (v,p);
3344b8f75c19Smrg  s = g (p, va_arg (v,int));
3345b8f75c19Smrg  va_end (v);
3346b8f75c19Smrg  return s;
3347b8f75c19Smrg}
3348b8f75c19Smrg
3349b8f75c19Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3350b8f75c19Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3351b8f75c19Smrg   These don't provoke an error unfortunately, instead are silently treated
33527e4fd55aSmrg   as 'x'.  The following induces an error, until -std is added to get
3353b8f75c19Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3354b8f75c19Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
33557e4fd55aSmrg   that's true only with -std.  */
3356b8f75c19Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3357b8f75c19Smrg
33587e4fd55aSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
33597e4fd55aSmrg   inside strings and character constants.  */
33607e4fd55aSmrg#define FOO(x) 'x'
33617e4fd55aSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
33627e4fd55aSmrg
3363b8f75c19Smrgint test (int i, double x);
3364b8f75c19Smrgstruct s1 {int (*f) (int a);};
3365b8f75c19Smrgstruct s2 {int (*f) (double a);};
3366b8f75c19Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3367b8f75c19Smrgint argc;
3368b8f75c19Smrgchar **argv;
3369b8f75c19Smrgint
3370b8f75c19Smrgmain ()
3371b8f75c19Smrg{
3372b8f75c19Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3373b8f75c19Smrg  ;
3374b8f75c19Smrg  return 0;
3375b8f75c19Smrg}
3376b8f75c19Smrg_ACEOF
33777e4fd55aSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
33787e4fd55aSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3379b8f75c19Smrgdo
3380b8f75c19Smrg  CC="$ac_save_CC $ac_arg"
33817e4fd55aSmrg  if ac_fn_c_try_compile "$LINENO"; then :
33827e4fd55aSmrg  ac_cv_prog_cc_c89=$ac_arg
3383b8f75c19Smrgfi
33847e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext
33857e4fd55aSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3386b8f75c19Smrgdone
33877e4fd55aSmrgrm -f conftest.$ac_ext
3388b8f75c19SmrgCC=$ac_save_CC
3389b8f75c19Smrg
3390b8f75c19Smrgfi
33917e4fd55aSmrg# AC_CACHE_VAL
33927e4fd55aSmrgcase "x$ac_cv_prog_cc_c89" in
33937e4fd55aSmrg  x)
33947e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
33957e4fd55aSmrg$as_echo "none needed" >&6; } ;;
33967e4fd55aSmrg  xno)
33977e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
33987e4fd55aSmrg$as_echo "unsupported" >&6; } ;;
3399b8f75c19Smrg  *)
34007e4fd55aSmrg    CC="$CC $ac_cv_prog_cc_c89"
34017e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
34027e4fd55aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3403b8f75c19Smrgesac
34047e4fd55aSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3405b8f75c19Smrg
3406b8f75c19Smrgfi
3407b8f75c19Smrg
3408b8f75c19Smrgac_ext=c
3409b8f75c19Smrgac_cpp='$CPP $CPPFLAGS'
3410b8f75c19Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411b8f75c19Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412b8f75c19Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3413b8f75c19Smrg
3414b8f75c19Smrgdepcc="$CC"   am_compiler_list=
3415b8f75c19Smrg
34167e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
34177e4fd55aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34187e4fd55aSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
34197e4fd55aSmrg  $as_echo_n "(cached) " >&6
3420b8f75c19Smrgelse
3421b8f75c19Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3422b8f75c19Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3423b8f75c19Smrg  # making bogus files that we don't know about and never remove.  For
3424b8f75c19Smrg  # instance it was reported that on HP-UX the gcc test will end up
3425b8f75c19Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
3426b8f75c19Smrg  # in D'.
3427b8f75c19Smrg  mkdir conftest.dir
3428b8f75c19Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3429b8f75c19Smrg  # using a relative directory.
3430b8f75c19Smrg  cp "$am_depcomp" conftest.dir
3431b8f75c19Smrg  cd conftest.dir
3432b8f75c19Smrg  # We will build objects and dependencies in a subdirectory because
3433b8f75c19Smrg  # it helps to detect inapplicable dependency modes.  For instance
3434b8f75c19Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3435b8f75c19Smrg  # side effect of compilation, but ICC will put the dependencies in
3436b8f75c19Smrg  # the current directory while Tru64 will put them in the object
3437b8f75c19Smrg  # directory.
3438b8f75c19Smrg  mkdir sub
3439b8f75c19Smrg
3440b8f75c19Smrg  am_cv_CC_dependencies_compiler_type=none
3441b8f75c19Smrg  if test "$am_compiler_list" = ""; then
3442b8f75c19Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443b8f75c19Smrg  fi
34447e4fd55aSmrg  am__universal=false
34457e4fd55aSmrg  case " $depcc " in #(
34467e4fd55aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
34477e4fd55aSmrg     esac
34487e4fd55aSmrg
3449b8f75c19Smrg  for depmode in $am_compiler_list; do
3450b8f75c19Smrg    # Setup a source with many dependencies, because some compilers
3451b8f75c19Smrg    # like to wrap large dependency lists on column 80 (with \), and
3452b8f75c19Smrg    # we should not choose a depcomp mode which is confused by this.
3453b8f75c19Smrg    #
3454b8f75c19Smrg    # We need to recreate these files for each test, as the compiler may
3455b8f75c19Smrg    # overwrite some of them when testing with obscure command lines.
3456b8f75c19Smrg    # This happens at least with the AIX C compiler.
3457b8f75c19Smrg    : > sub/conftest.c
3458b8f75c19Smrg    for i in 1 2 3 4 5 6; do
3459b8f75c19Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
34607e4fd55aSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
34617e4fd55aSmrg      # Solaris 8's {/usr,}/bin/sh.
34627e4fd55aSmrg      touch sub/conftst$i.h
3463b8f75c19Smrg    done
3464b8f75c19Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3465b8f75c19Smrg
34667e4fd55aSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
34677e4fd55aSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
34687e4fd55aSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
34697e4fd55aSmrg    # versions had trouble with output in subdirs
34707e4fd55aSmrg    am__obj=sub/conftest.${OBJEXT-o}
34717e4fd55aSmrg    am__minus_obj="-o $am__obj"
3472b8f75c19Smrg    case $depmode in
34737e4fd55aSmrg    gcc)
34747e4fd55aSmrg      # This depmode causes a compiler race in universal mode.
34757e4fd55aSmrg      test "$am__universal" = false || continue
34767e4fd55aSmrg      ;;
3477b8f75c19Smrg    nosideeffect)
3478b8f75c19Smrg      # after this tag, mechanisms are not by side-effect, so they'll
3479b8f75c19Smrg      # only be used when explicitly requested
3480b8f75c19Smrg      if test "x$enable_dependency_tracking" = xyes; then
3481b8f75c19Smrg	continue
3482b8f75c19Smrg      else
3483b8f75c19Smrg	break
3484b8f75c19Smrg      fi
3485b8f75c19Smrg      ;;
34867e4fd55aSmrg    msvisualcpp | msvcmsys)
34877e4fd55aSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
34887e4fd55aSmrg      # not run yet.  These depmodes are late enough in the game, and
34897e4fd55aSmrg      # so weak that their functioning should not be impacted.
34907e4fd55aSmrg      am__obj=conftest.${OBJEXT-o}
34917e4fd55aSmrg      am__minus_obj=
34927e4fd55aSmrg      ;;
3493b8f75c19Smrg    none) break ;;
3494b8f75c19Smrg    esac
3495b8f75c19Smrg    if depmode=$depmode \
34967e4fd55aSmrg       source=sub/conftest.c object=$am__obj \
3497b8f75c19Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34987e4fd55aSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3499b8f75c19Smrg         >/dev/null 2>conftest.err &&
35007e4fd55aSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3501b8f75c19Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35027e4fd55aSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3503b8f75c19Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504b8f75c19Smrg      # icc doesn't choke on unknown options, it will just issue warnings
35057e4fd55aSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
35067e4fd55aSmrg      # that says an option was ignored or not supported.
35077e4fd55aSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35087e4fd55aSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35097e4fd55aSmrg      # The diagnosis changed in icc 8.0:
35107e4fd55aSmrg      #   icc: Command line remark: option '-MP' not supported
35117e4fd55aSmrg      if (grep 'ignoring option' conftest.err ||
35127e4fd55aSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513b8f75c19Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3514b8f75c19Smrg        break
3515b8f75c19Smrg      fi
3516b8f75c19Smrg    fi
3517b8f75c19Smrg  done
3518b8f75c19Smrg
3519b8f75c19Smrg  cd ..
3520b8f75c19Smrg  rm -rf conftest.dir
3521b8f75c19Smrgelse
3522b8f75c19Smrg  am_cv_CC_dependencies_compiler_type=none
3523b8f75c19Smrgfi
3524b8f75c19Smrg
3525b8f75c19Smrgfi
35267e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
35277e4fd55aSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3528b8f75c19SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529b8f75c19Smrg
35307e4fd55aSmrg if
3531b8f75c19Smrg  test "x$enable_dependency_tracking" != xno \
3532b8f75c19Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533b8f75c19Smrg  am__fastdepCC_TRUE=
3534b8f75c19Smrg  am__fastdepCC_FALSE='#'
3535b8f75c19Smrgelse
3536b8f75c19Smrg  am__fastdepCC_TRUE='#'
3537b8f75c19Smrg  am__fastdepCC_FALSE=
3538b8f75c19Smrgfi
3539b8f75c19Smrg
3540b8f75c19Smrg
35417e4fd55aSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
35427e4fd55aSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
35437e4fd55aSmrgif ${ac_cv_prog_cc_c99+:} false; then :
35447e4fd55aSmrg  $as_echo_n "(cached) " >&6
35457e4fd55aSmrgelse
35467e4fd55aSmrg  ac_cv_prog_cc_c99=no
35477e4fd55aSmrgac_save_CC=$CC
35487e4fd55aSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
35497e4fd55aSmrg/* end confdefs.h.  */
35507e4fd55aSmrg#include <stdarg.h>
35517e4fd55aSmrg#include <stdbool.h>
35527e4fd55aSmrg#include <stdlib.h>
35537e4fd55aSmrg#include <wchar.h>
35547e4fd55aSmrg#include <stdio.h>
35557e4fd55aSmrg
35567e4fd55aSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
35577e4fd55aSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
35587e4fd55aSmrg#define showlist(...) puts (#__VA_ARGS__)
35597e4fd55aSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
35607e4fd55aSmrgstatic void
35617e4fd55aSmrgtest_varargs_macros (void)
35627e4fd55aSmrg{
35637e4fd55aSmrg  int x = 1234;
35647e4fd55aSmrg  int y = 5678;
35657e4fd55aSmrg  debug ("Flag");
35667e4fd55aSmrg  debug ("X = %d\n", x);
35677e4fd55aSmrg  showlist (The first, second, and third items.);
35687e4fd55aSmrg  report (x>y, "x is %d but y is %d", x, y);
35697e4fd55aSmrg}
35707e4fd55aSmrg
35717e4fd55aSmrg// Check long long types.
35727e4fd55aSmrg#define BIG64 18446744073709551615ull
35737e4fd55aSmrg#define BIG32 4294967295ul
35747e4fd55aSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
35757e4fd55aSmrg#if !BIG_OK
35767e4fd55aSmrg  your preprocessor is broken;
35777e4fd55aSmrg#endif
35787e4fd55aSmrg#if BIG_OK
35797e4fd55aSmrg#else
35807e4fd55aSmrg  your preprocessor is broken;
35817e4fd55aSmrg#endif
35827e4fd55aSmrgstatic long long int bignum = -9223372036854775807LL;
35837e4fd55aSmrgstatic unsigned long long int ubignum = BIG64;
35847e4fd55aSmrg
35857e4fd55aSmrgstruct incomplete_array
35867e4fd55aSmrg{
35877e4fd55aSmrg  int datasize;
35887e4fd55aSmrg  double data[];
35897e4fd55aSmrg};
35907e4fd55aSmrg
35917e4fd55aSmrgstruct named_init {
35927e4fd55aSmrg  int number;
35937e4fd55aSmrg  const wchar_t *name;
35947e4fd55aSmrg  double average;
35957e4fd55aSmrg};
35967e4fd55aSmrg
35977e4fd55aSmrgtypedef const char *ccp;
35987e4fd55aSmrg
35997e4fd55aSmrgstatic inline int
36007e4fd55aSmrgtest_restrict (ccp restrict text)
36017e4fd55aSmrg{
36027e4fd55aSmrg  // See if C++-style comments work.
36037e4fd55aSmrg  // Iterate through items via the restricted pointer.
36047e4fd55aSmrg  // Also check for declarations in for loops.
36057e4fd55aSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
36067e4fd55aSmrg    continue;
36077e4fd55aSmrg  return 0;
36087e4fd55aSmrg}
36097e4fd55aSmrg
36107e4fd55aSmrg// Check varargs and va_copy.
36117e4fd55aSmrgstatic void
36127e4fd55aSmrgtest_varargs (const char *format, ...)
36137e4fd55aSmrg{
36147e4fd55aSmrg  va_list args;
36157e4fd55aSmrg  va_start (args, format);
36167e4fd55aSmrg  va_list args_copy;
36177e4fd55aSmrg  va_copy (args_copy, args);
36187e4fd55aSmrg
36197e4fd55aSmrg  const char *str;
36207e4fd55aSmrg  int number;
36217e4fd55aSmrg  float fnumber;
36227e4fd55aSmrg
36237e4fd55aSmrg  while (*format)
36247e4fd55aSmrg    {
36257e4fd55aSmrg      switch (*format++)
36267e4fd55aSmrg	{
36277e4fd55aSmrg	case 's': // string
36287e4fd55aSmrg	  str = va_arg (args_copy, const char *);
36297e4fd55aSmrg	  break;
36307e4fd55aSmrg	case 'd': // int
36317e4fd55aSmrg	  number = va_arg (args_copy, int);
36327e4fd55aSmrg	  break;
36337e4fd55aSmrg	case 'f': // float
36347e4fd55aSmrg	  fnumber = va_arg (args_copy, double);
36357e4fd55aSmrg	  break;
36367e4fd55aSmrg	default:
36377e4fd55aSmrg	  break;
36387e4fd55aSmrg	}
36397e4fd55aSmrg    }
36407e4fd55aSmrg  va_end (args_copy);
36417e4fd55aSmrg  va_end (args);
36427e4fd55aSmrg}
36437e4fd55aSmrg
36447e4fd55aSmrgint
36457e4fd55aSmrgmain ()
36467e4fd55aSmrg{
36477e4fd55aSmrg
36487e4fd55aSmrg  // Check bool.
36497e4fd55aSmrg  _Bool success = false;
36507e4fd55aSmrg
36517e4fd55aSmrg  // Check restrict.
36527e4fd55aSmrg  if (test_restrict ("String literal") == 0)
36537e4fd55aSmrg    success = true;
36547e4fd55aSmrg  char *restrict newvar = "Another string";
36557e4fd55aSmrg
36567e4fd55aSmrg  // Check varargs.
36577e4fd55aSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
36587e4fd55aSmrg  test_varargs_macros ();
36597e4fd55aSmrg
36607e4fd55aSmrg  // Check flexible array members.
36617e4fd55aSmrg  struct incomplete_array *ia =
36627e4fd55aSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
36637e4fd55aSmrg  ia->datasize = 10;
36647e4fd55aSmrg  for (int i = 0; i < ia->datasize; ++i)
36657e4fd55aSmrg    ia->data[i] = i * 1.234;
36667e4fd55aSmrg
36677e4fd55aSmrg  // Check named initializers.
36687e4fd55aSmrg  struct named_init ni = {
36697e4fd55aSmrg    .number = 34,
36707e4fd55aSmrg    .name = L"Test wide string",
36717e4fd55aSmrg    .average = 543.34343,
36727e4fd55aSmrg  };
36737e4fd55aSmrg
36747e4fd55aSmrg  ni.number = 58;
36757e4fd55aSmrg
36767e4fd55aSmrg  int dynamic_array[ni.number];
36777e4fd55aSmrg  dynamic_array[ni.number - 1] = 543;
36787e4fd55aSmrg
36797e4fd55aSmrg  // work around unused variable warnings
36807e4fd55aSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
36817e4fd55aSmrg	  || dynamic_array[ni.number - 1] != 543);
36827e4fd55aSmrg
36837e4fd55aSmrg  ;
36847e4fd55aSmrg  return 0;
36857e4fd55aSmrg}
36867e4fd55aSmrg_ACEOF
36877e4fd55aSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
36887e4fd55aSmrgdo
36897e4fd55aSmrg  CC="$ac_save_CC $ac_arg"
36907e4fd55aSmrg  if ac_fn_c_try_compile "$LINENO"; then :
36917e4fd55aSmrg  ac_cv_prog_cc_c99=$ac_arg
36927e4fd55aSmrgfi
36937e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext
36947e4fd55aSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
36957e4fd55aSmrgdone
36967e4fd55aSmrgrm -f conftest.$ac_ext
36977e4fd55aSmrgCC=$ac_save_CC
36987e4fd55aSmrg
36997e4fd55aSmrgfi
37007e4fd55aSmrg# AC_CACHE_VAL
37017e4fd55aSmrgcase "x$ac_cv_prog_cc_c99" in
37027e4fd55aSmrg  x)
37037e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
37047e4fd55aSmrg$as_echo "none needed" >&6; } ;;
37057e4fd55aSmrg  xno)
37067e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
37077e4fd55aSmrg$as_echo "unsupported" >&6; } ;;
37087e4fd55aSmrg  *)
37097e4fd55aSmrg    CC="$CC $ac_cv_prog_cc_c99"
37107e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
37117e4fd55aSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
37127e4fd55aSmrgesac
37137e4fd55aSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
37147e4fd55aSmrg
37157e4fd55aSmrgfi
37167e4fd55aSmrg
37177e4fd55aSmrg
37187e4fd55aSmrg
37197e4fd55aSmrgac_ext=c
37207e4fd55aSmrgac_cpp='$CPP $CPPFLAGS'
37217e4fd55aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37227e4fd55aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37237e4fd55aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37247e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
37257e4fd55aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
37267e4fd55aSmrg# On Suns, sometimes $CPP names a directory.
37277e4fd55aSmrgif test -n "$CPP" && test -d "$CPP"; then
37287e4fd55aSmrg  CPP=
37297e4fd55aSmrgfi
37307e4fd55aSmrgif test -z "$CPP"; then
37317e4fd55aSmrg  if ${ac_cv_prog_CPP+:} false; then :
37327e4fd55aSmrg  $as_echo_n "(cached) " >&6
37337e4fd55aSmrgelse
37347e4fd55aSmrg      # Double quotes because CPP needs to be expanded
37357e4fd55aSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
37367e4fd55aSmrg    do
37377e4fd55aSmrg      ac_preproc_ok=false
37387e4fd55aSmrgfor ac_c_preproc_warn_flag in '' yes
37397e4fd55aSmrgdo
37407e4fd55aSmrg  # Use a header file that comes with gcc, so configuring glibc
37417e4fd55aSmrg  # with a fresh cross-compiler works.
37427e4fd55aSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37437e4fd55aSmrg  # <limits.h> exists even on freestanding compilers.
37447e4fd55aSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
37457e4fd55aSmrg  # not just through cpp. "Syntax error" is here to catch this case.
37467e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37477e4fd55aSmrg/* end confdefs.h.  */
37487e4fd55aSmrg#ifdef __STDC__
37497e4fd55aSmrg# include <limits.h>
37507e4fd55aSmrg#else
37517e4fd55aSmrg# include <assert.h>
37527e4fd55aSmrg#endif
37537e4fd55aSmrg		     Syntax error
37547e4fd55aSmrg_ACEOF
37557e4fd55aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
37567e4fd55aSmrg
37577e4fd55aSmrgelse
37587e4fd55aSmrg  # Broken: fails on valid input.
37597e4fd55aSmrgcontinue
37607e4fd55aSmrgfi
37617e4fd55aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
37627e4fd55aSmrg
37637e4fd55aSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
37647e4fd55aSmrg  # can be detected and how.
37657e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37667e4fd55aSmrg/* end confdefs.h.  */
37677e4fd55aSmrg#include <ac_nonexistent.h>
37687e4fd55aSmrg_ACEOF
37697e4fd55aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
37707e4fd55aSmrg  # Broken: success on invalid input.
37717e4fd55aSmrgcontinue
3772b8f75c19Smrgelse
37737e4fd55aSmrg  # Passes both tests.
37747e4fd55aSmrgac_preproc_ok=:
37757e4fd55aSmrgbreak
37767e4fd55aSmrgfi
37777e4fd55aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
37787e4fd55aSmrg
37797e4fd55aSmrgdone
37807e4fd55aSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
37817e4fd55aSmrgrm -f conftest.i conftest.err conftest.$ac_ext
37827e4fd55aSmrgif $ac_preproc_ok; then :
37837e4fd55aSmrg  break
37847e4fd55aSmrgfi
37857e4fd55aSmrg
37867e4fd55aSmrg    done
37877e4fd55aSmrg    ac_cv_prog_CPP=$CPP
37887e4fd55aSmrg
37897e4fd55aSmrgfi
37907e4fd55aSmrg  CPP=$ac_cv_prog_CPP
37917e4fd55aSmrgelse
37927e4fd55aSmrg  ac_cv_prog_CPP=$CPP
37937e4fd55aSmrgfi
37947e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
37957e4fd55aSmrg$as_echo "$CPP" >&6; }
37967e4fd55aSmrgac_preproc_ok=false
37977e4fd55aSmrgfor ac_c_preproc_warn_flag in '' yes
37987e4fd55aSmrgdo
37997e4fd55aSmrg  # Use a header file that comes with gcc, so configuring glibc
38007e4fd55aSmrg  # with a fresh cross-compiler works.
38017e4fd55aSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38027e4fd55aSmrg  # <limits.h> exists even on freestanding compilers.
38037e4fd55aSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38047e4fd55aSmrg  # not just through cpp. "Syntax error" is here to catch this case.
38057e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38067e4fd55aSmrg/* end confdefs.h.  */
38077e4fd55aSmrg#ifdef __STDC__
38087e4fd55aSmrg# include <limits.h>
38097e4fd55aSmrg#else
38107e4fd55aSmrg# include <assert.h>
38117e4fd55aSmrg#endif
38127e4fd55aSmrg		     Syntax error
38137e4fd55aSmrg_ACEOF
38147e4fd55aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
38157e4fd55aSmrg
38167e4fd55aSmrgelse
38177e4fd55aSmrg  # Broken: fails on valid input.
38187e4fd55aSmrgcontinue
38197e4fd55aSmrgfi
38207e4fd55aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38217e4fd55aSmrg
38227e4fd55aSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
38237e4fd55aSmrg  # can be detected and how.
38247e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38257e4fd55aSmrg/* end confdefs.h.  */
38267e4fd55aSmrg#include <ac_nonexistent.h>
38277e4fd55aSmrg_ACEOF
38287e4fd55aSmrgif ac_fn_c_try_cpp "$LINENO"; then :
38297e4fd55aSmrg  # Broken: success on invalid input.
38307e4fd55aSmrgcontinue
38317e4fd55aSmrgelse
38327e4fd55aSmrg  # Passes both tests.
38337e4fd55aSmrgac_preproc_ok=:
38347e4fd55aSmrgbreak
38357e4fd55aSmrgfi
38367e4fd55aSmrgrm -f conftest.err conftest.i conftest.$ac_ext
38377e4fd55aSmrg
38387e4fd55aSmrgdone
38397e4fd55aSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38407e4fd55aSmrgrm -f conftest.i conftest.err conftest.$ac_ext
38417e4fd55aSmrgif $ac_preproc_ok; then :
38427e4fd55aSmrg
38437e4fd55aSmrgelse
38447e4fd55aSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38457e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38467e4fd55aSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
38477e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
38487e4fd55aSmrgfi
38497e4fd55aSmrg
38507e4fd55aSmrgac_ext=c
38517e4fd55aSmrgac_cpp='$CPP $CPPFLAGS'
38527e4fd55aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38537e4fd55aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38547e4fd55aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38557e4fd55aSmrg
38567e4fd55aSmrg
38577e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
38587e4fd55aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
38597e4fd55aSmrgif ${ac_cv_path_GREP+:} false; then :
38607e4fd55aSmrg  $as_echo_n "(cached) " >&6
38617e4fd55aSmrgelse
38627e4fd55aSmrg  if test -z "$GREP"; then
38637e4fd55aSmrg  ac_path_GREP_found=false
38647e4fd55aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3865b8f75c19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38667e4fd55aSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867b8f75c19Smrgdo
3868b8f75c19Smrg  IFS=$as_save_IFS
3869b8f75c19Smrg  test -z "$as_dir" && as_dir=.
38707e4fd55aSmrg    for ac_prog in grep ggrep; do
38717e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
38727e4fd55aSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
38737e4fd55aSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
38747e4fd55aSmrg# Check for GNU ac_path_GREP and select it if it is found.
38757e4fd55aSmrg  # Check for GNU $ac_path_GREP
38767e4fd55aSmrgcase `"$ac_path_GREP" --version 2>&1` in
38777e4fd55aSmrg*GNU*)
38787e4fd55aSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
38797e4fd55aSmrg*)
38807e4fd55aSmrg  ac_count=0
38817e4fd55aSmrg  $as_echo_n 0123456789 >"conftest.in"
38827e4fd55aSmrg  while :
38837e4fd55aSmrg  do
38847e4fd55aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
38857e4fd55aSmrg    mv "conftest.tmp" "conftest.in"
38867e4fd55aSmrg    cp "conftest.in" "conftest.nl"
38877e4fd55aSmrg    $as_echo 'GREP' >> "conftest.nl"
38887e4fd55aSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38897e4fd55aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
38907e4fd55aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
38917e4fd55aSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
38927e4fd55aSmrg      # Best one so far, save it but keep looking for a better one
38937e4fd55aSmrg      ac_cv_path_GREP="$ac_path_GREP"
38947e4fd55aSmrg      ac_path_GREP_max=$ac_count
38957e4fd55aSmrg    fi
38967e4fd55aSmrg    # 10*(2^10) chars as input seems more than enough
38977e4fd55aSmrg    test $ac_count -gt 10 && break
38987e4fd55aSmrg  done
38997e4fd55aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900b8f75c19Smrgesac
3901b8f75c19Smrg
39027e4fd55aSmrg      $ac_path_GREP_found && break 3
39037e4fd55aSmrg    done
39047e4fd55aSmrg  done
39057e4fd55aSmrg  done
39067e4fd55aSmrgIFS=$as_save_IFS
39077e4fd55aSmrg  if test -z "$ac_cv_path_GREP"; then
39087e4fd55aSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
39097e4fd55aSmrg  fi
39107e4fd55aSmrgelse
39117e4fd55aSmrg  ac_cv_path_GREP=$GREP
39127e4fd55aSmrgfi
3913b8f75c19Smrg
3914b8f75c19Smrgfi
39157e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
39167e4fd55aSmrg$as_echo "$ac_cv_path_GREP" >&6; }
39177e4fd55aSmrg GREP="$ac_cv_path_GREP"
39187e4fd55aSmrg
39197e4fd55aSmrg
39207e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
39217e4fd55aSmrg$as_echo_n "checking for egrep... " >&6; }
39227e4fd55aSmrgif ${ac_cv_path_EGREP+:} false; then :
39237e4fd55aSmrg  $as_echo_n "(cached) " >&6
39247e4fd55aSmrgelse
39257e4fd55aSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
39267e4fd55aSmrg   then ac_cv_path_EGREP="$GREP -E"
39277e4fd55aSmrg   else
39287e4fd55aSmrg     if test -z "$EGREP"; then
39297e4fd55aSmrg  ac_path_EGREP_found=false
39307e4fd55aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
39317e4fd55aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39327e4fd55aSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39337e4fd55aSmrgdo
39347e4fd55aSmrg  IFS=$as_save_IFS
39357e4fd55aSmrg  test -z "$as_dir" && as_dir=.
39367e4fd55aSmrg    for ac_prog in egrep; do
39377e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
39387e4fd55aSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
39397e4fd55aSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
39407e4fd55aSmrg# Check for GNU ac_path_EGREP and select it if it is found.
39417e4fd55aSmrg  # Check for GNU $ac_path_EGREP
39427e4fd55aSmrgcase `"$ac_path_EGREP" --version 2>&1` in
39437e4fd55aSmrg*GNU*)
39447e4fd55aSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
39457e4fd55aSmrg*)
39467e4fd55aSmrg  ac_count=0
39477e4fd55aSmrg  $as_echo_n 0123456789 >"conftest.in"
39487e4fd55aSmrg  while :
39497e4fd55aSmrg  do
39507e4fd55aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39517e4fd55aSmrg    mv "conftest.tmp" "conftest.in"
39527e4fd55aSmrg    cp "conftest.in" "conftest.nl"
39537e4fd55aSmrg    $as_echo 'EGREP' >> "conftest.nl"
39547e4fd55aSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39557e4fd55aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39567e4fd55aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
39577e4fd55aSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
39587e4fd55aSmrg      # Best one so far, save it but keep looking for a better one
39597e4fd55aSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
39607e4fd55aSmrg      ac_path_EGREP_max=$ac_count
39617e4fd55aSmrg    fi
39627e4fd55aSmrg    # 10*(2^10) chars as input seems more than enough
39637e4fd55aSmrg    test $ac_count -gt 10 && break
39647e4fd55aSmrg  done
39657e4fd55aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39667e4fd55aSmrgesac
39677e4fd55aSmrg
39687e4fd55aSmrg      $ac_path_EGREP_found && break 3
39697e4fd55aSmrg    done
39707e4fd55aSmrg  done
39717e4fd55aSmrg  done
39727e4fd55aSmrgIFS=$as_save_IFS
39737e4fd55aSmrg  if test -z "$ac_cv_path_EGREP"; then
39747e4fd55aSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3975b8f75c19Smrg  fi
39767e4fd55aSmrgelse
39777e4fd55aSmrg  ac_cv_path_EGREP=$EGREP
3978b8f75c19Smrgfi
3979b8f75c19Smrg
39807e4fd55aSmrg   fi
39817e4fd55aSmrgfi
39827e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
39837e4fd55aSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
39847e4fd55aSmrg EGREP="$ac_cv_path_EGREP"
3985b8f75c19Smrg
3986b8f75c19Smrg
39877e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
39887e4fd55aSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
39897e4fd55aSmrgif ${ac_cv_header_stdc+:} false; then :
39907e4fd55aSmrg  $as_echo_n "(cached) " >&6
39917e4fd55aSmrgelse
39927e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39937e4fd55aSmrg/* end confdefs.h.  */
39947e4fd55aSmrg#include <stdlib.h>
39957e4fd55aSmrg#include <stdarg.h>
39967e4fd55aSmrg#include <string.h>
39977e4fd55aSmrg#include <float.h>
39987e4fd55aSmrg
39997e4fd55aSmrgint
40007e4fd55aSmrgmain ()
40017e4fd55aSmrg{
40027e4fd55aSmrg
40037e4fd55aSmrg  ;
40047e4fd55aSmrg  return 0;
40057e4fd55aSmrg}
40067e4fd55aSmrg_ACEOF
40077e4fd55aSmrgif ac_fn_c_try_compile "$LINENO"; then :
40087e4fd55aSmrg  ac_cv_header_stdc=yes
40097e4fd55aSmrgelse
40107e4fd55aSmrg  ac_cv_header_stdc=no
40117e4fd55aSmrgfi
40127e4fd55aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40137e4fd55aSmrg
40147e4fd55aSmrgif test $ac_cv_header_stdc = yes; then
40157e4fd55aSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40167e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40177e4fd55aSmrg/* end confdefs.h.  */
40187e4fd55aSmrg#include <string.h>
40197e4fd55aSmrg
40207e4fd55aSmrg_ACEOF
40217e4fd55aSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40227e4fd55aSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
40237e4fd55aSmrg
40247e4fd55aSmrgelse
40257e4fd55aSmrg  ac_cv_header_stdc=no
40267e4fd55aSmrgfi
40277e4fd55aSmrgrm -f conftest*
40287e4fd55aSmrg
40297e4fd55aSmrgfi
40307e4fd55aSmrg
40317e4fd55aSmrgif test $ac_cv_header_stdc = yes; then
40327e4fd55aSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
40337e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40347e4fd55aSmrg/* end confdefs.h.  */
40357e4fd55aSmrg#include <stdlib.h>
40367e4fd55aSmrg
40377e4fd55aSmrg_ACEOF
40387e4fd55aSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40397e4fd55aSmrg  $EGREP "free" >/dev/null 2>&1; then :
40407e4fd55aSmrg
40417e4fd55aSmrgelse
40427e4fd55aSmrg  ac_cv_header_stdc=no
40437e4fd55aSmrgfi
40447e4fd55aSmrgrm -f conftest*
40457e4fd55aSmrg
40467e4fd55aSmrgfi
40477e4fd55aSmrg
40487e4fd55aSmrgif test $ac_cv_header_stdc = yes; then
40497e4fd55aSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
40507e4fd55aSmrg  if test "$cross_compiling" = yes; then :
40517e4fd55aSmrg  :
40527e4fd55aSmrgelse
40537e4fd55aSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40547e4fd55aSmrg/* end confdefs.h.  */
40557e4fd55aSmrg#include <ctype.h>
40567e4fd55aSmrg#include <stdlib.h>
40577e4fd55aSmrg#if ((' ' & 0x0FF) == 0x020)
40587e4fd55aSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
40597e4fd55aSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
40607e4fd55aSmrg#else
40617e4fd55aSmrg# define ISLOWER(c) \
40627e4fd55aSmrg		   (('a' <= (c) && (c) <= 'i') \
40637e4fd55aSmrg		     || ('j' <= (c) && (c) <= 'r') \
40647e4fd55aSmrg		     || ('s' <= (c) && (c) <= 'z'))
40657e4fd55aSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
40667e4fd55aSmrg#endif
40677e4fd55aSmrg
40687e4fd55aSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
40697e4fd55aSmrgint
40707e4fd55aSmrgmain ()
40717e4fd55aSmrg{
40727e4fd55aSmrg  int i;
40737e4fd55aSmrg  for (i = 0; i < 256; i++)
40747e4fd55aSmrg    if (XOR (islower (i), ISLOWER (i))
40757e4fd55aSmrg	|| toupper (i) != TOUPPER (i))
40767e4fd55aSmrg      return 2;
40777e4fd55aSmrg  return 0;
40787e4fd55aSmrg}
40797e4fd55aSmrg_ACEOF
40807e4fd55aSmrgif ac_fn_c_try_run "$LINENO"; then :
40817e4fd55aSmrg
40827e4fd55aSmrgelse
40837e4fd55aSmrg  ac_cv_header_stdc=no
40847e4fd55aSmrgfi
40857e4fd55aSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40867e4fd55aSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
40877e4fd55aSmrgfi
40887e4fd55aSmrg
40897e4fd55aSmrgfi
40907e4fd55aSmrgfi
40917e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
40927e4fd55aSmrg$as_echo "$ac_cv_header_stdc" >&6; }
40937e4fd55aSmrgif test $ac_cv_header_stdc = yes; then
40947e4fd55aSmrg
40957e4fd55aSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
40967e4fd55aSmrg
40977e4fd55aSmrgfi
40987e4fd55aSmrg
40997e4fd55aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
41007e4fd55aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
41017e4fd55aSmrg		  inttypes.h stdint.h unistd.h
41027e4fd55aSmrgdo :
41037e4fd55aSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41047e4fd55aSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
41057e4fd55aSmrg"
41067e4fd55aSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41077e4fd55aSmrg  cat >>confdefs.h <<_ACEOF
41087e4fd55aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41097e4fd55aSmrg_ACEOF
41107e4fd55aSmrg
41117e4fd55aSmrgfi
41127e4fd55aSmrg
41137e4fd55aSmrgdone
4114b8f75c19Smrg
4115b8f75c19Smrg
4116b8f75c19Smrg
4117b8f75c19Smrg
4118b8f75c19Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4119b8f75c19Smrg	if test -n "$ac_tool_prefix"; then
4120b8f75c19Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4121b8f75c19Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41227e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41237e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
41247e4fd55aSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
41257e4fd55aSmrg  $as_echo_n "(cached) " >&6
4126b8f75c19Smrgelse
4127b8f75c19Smrg  case $PKG_CONFIG in
4128b8f75c19Smrg  [\\/]* | ?:[\\/]*)
4129b8f75c19Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4130b8f75c19Smrg  ;;
4131b8f75c19Smrg  *)
4132b8f75c19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133b8f75c19Smrgfor as_dir in $PATH
4134b8f75c19Smrgdo
4135b8f75c19Smrg  IFS=$as_save_IFS
4136b8f75c19Smrg  test -z "$as_dir" && as_dir=.
41377e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
41387e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139b8f75c19Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41407e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141b8f75c19Smrg    break 2
4142b8f75c19Smrg  fi
4143b8f75c19Smrgdone
41447e4fd55aSmrg  done
41457e4fd55aSmrgIFS=$as_save_IFS
4146b8f75c19Smrg
4147b8f75c19Smrg  ;;
4148b8f75c19Smrgesac
4149b8f75c19Smrgfi
4150b8f75c19SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4151b8f75c19Smrgif test -n "$PKG_CONFIG"; then
41527e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
41537e4fd55aSmrg$as_echo "$PKG_CONFIG" >&6; }
4154b8f75c19Smrgelse
41557e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41567e4fd55aSmrg$as_echo "no" >&6; }
4157b8f75c19Smrgfi
4158b8f75c19Smrg
41597e4fd55aSmrg
4160b8f75c19Smrgfi
4161b8f75c19Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4162b8f75c19Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4163b8f75c19Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4164b8f75c19Smrgset dummy pkg-config; ac_word=$2
41657e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41667e4fd55aSmrg$as_echo_n "checking for $ac_word... " >&6; }
41677e4fd55aSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
41687e4fd55aSmrg  $as_echo_n "(cached) " >&6
4169b8f75c19Smrgelse
4170b8f75c19Smrg  case $ac_pt_PKG_CONFIG in
4171b8f75c19Smrg  [\\/]* | ?:[\\/]*)
4172b8f75c19Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4173b8f75c19Smrg  ;;
4174b8f75c19Smrg  *)
4175b8f75c19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176b8f75c19Smrgfor as_dir in $PATH
4177b8f75c19Smrgdo
4178b8f75c19Smrg  IFS=$as_save_IFS
4179b8f75c19Smrg  test -z "$as_dir" && as_dir=.
41807e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
41817e4fd55aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182b8f75c19Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41837e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184b8f75c19Smrg    break 2
4185b8f75c19Smrg  fi
4186b8f75c19Smrgdone
41877e4fd55aSmrg  done
41887e4fd55aSmrgIFS=$as_save_IFS
4189b8f75c19Smrg
4190b8f75c19Smrg  ;;
4191b8f75c19Smrgesac
4192b8f75c19Smrgfi
4193b8f75c19Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4194b8f75c19Smrgif test -n "$ac_pt_PKG_CONFIG"; then
41957e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
41967e4fd55aSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4197b8f75c19Smrgelse
41987e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41997e4fd55aSmrg$as_echo "no" >&6; }
4200b8f75c19Smrgfi
4201b8f75c19Smrg
42027e4fd55aSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
42037e4fd55aSmrg    PKG_CONFIG=""
42047e4fd55aSmrg  else
42057e4fd55aSmrg    case $cross_compiling:$ac_tool_warned in
42067e4fd55aSmrgyes:)
42077e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
42087e4fd55aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
42097e4fd55aSmrgac_tool_warned=yes ;;
42107e4fd55aSmrgesac
42117e4fd55aSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
42127e4fd55aSmrg  fi
4213b8f75c19Smrgelse
4214b8f75c19Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4215b8f75c19Smrgfi
4216b8f75c19Smrg
4217b8f75c19Smrgfi
4218b8f75c19Smrgif test -n "$PKG_CONFIG"; then
4219b8f75c19Smrg	_pkg_min_version=0.9.0
42207e4fd55aSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
42217e4fd55aSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4222b8f75c19Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42237e4fd55aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42247e4fd55aSmrg$as_echo "yes" >&6; }
4225b8f75c19Smrg	else
42267e4fd55aSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42277e4fd55aSmrg$as_echo "no" >&6; }
4228b8f75c19Smrg		PKG_CONFIG=""
4229b8f75c19Smrg	fi
4230b8f75c19Smrg
4231b8f75c19Smrgfi
42327e4fd55aSmrg# Make sure we can run config.sub.
42337e4fd55aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
42347e4fd55aSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4235b8f75c19Smrg
42367e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
42377e4fd55aSmrg$as_echo_n "checking build system type... " >&6; }
42387e4fd55aSmrgif ${ac_cv_build+:} false; then :
42397e4fd55aSmrg  $as_echo_n "(cached) " >&6
4240b8f75c19Smrgelse
42417e4fd55aSmrg  ac_build_alias=$build_alias
42427e4fd55aSmrgtest "x$ac_build_alias" = x &&
42437e4fd55aSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
42447e4fd55aSmrgtest "x$ac_build_alias" = x &&
42457e4fd55aSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
42467e4fd55aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
42477e4fd55aSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
42487e4fd55aSmrg
42497e4fd55aSmrgfi
42507e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
42517e4fd55aSmrg$as_echo "$ac_cv_build" >&6; }
42527e4fd55aSmrgcase $ac_cv_build in
42537e4fd55aSmrg*-*-*) ;;
42547e4fd55aSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
42557e4fd55aSmrgesac
42567e4fd55aSmrgbuild=$ac_cv_build
42577e4fd55aSmrgac_save_IFS=$IFS; IFS='-'
42587e4fd55aSmrgset x $ac_cv_build
42597e4fd55aSmrgshift
42607e4fd55aSmrgbuild_cpu=$1
42617e4fd55aSmrgbuild_vendor=$2
42627e4fd55aSmrgshift; shift
42637e4fd55aSmrg# Remember, the first character of IFS is used to create $*,
42647e4fd55aSmrg# except with old shells:
42657e4fd55aSmrgbuild_os=$*
42667e4fd55aSmrgIFS=$ac_save_IFS
42677e4fd55aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42687e4fd55aSmrg
42697e4fd55aSmrg
42707e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
42717e4fd55aSmrg$as_echo_n "checking host system type... " >&6; }
42727e4fd55aSmrgif ${ac_cv_host+:} false; then :
42737e4fd55aSmrg  $as_echo_n "(cached) " >&6
42747e4fd55aSmrgelse
42757e4fd55aSmrg  if test "x$host_alias" = x; then
42767e4fd55aSmrg  ac_cv_host=$ac_cv_build
42777e4fd55aSmrgelse
42787e4fd55aSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
42797e4fd55aSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
42807e4fd55aSmrgfi
42817e4fd55aSmrg
4282b8f75c19Smrgfi
42837e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
42847e4fd55aSmrg$as_echo "$ac_cv_host" >&6; }
42857e4fd55aSmrgcase $ac_cv_host in
42867e4fd55aSmrg*-*-*) ;;
42877e4fd55aSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
42887e4fd55aSmrgesac
42897e4fd55aSmrghost=$ac_cv_host
42907e4fd55aSmrgac_save_IFS=$IFS; IFS='-'
42917e4fd55aSmrgset x $ac_cv_host
42927e4fd55aSmrgshift
42937e4fd55aSmrghost_cpu=$1
42947e4fd55aSmrghost_vendor=$2
42957e4fd55aSmrgshift; shift
42967e4fd55aSmrg# Remember, the first character of IFS is used to create $*,
42977e4fd55aSmrg# except with old shells:
42987e4fd55aSmrghost_os=$*
42997e4fd55aSmrgIFS=$ac_save_IFS
43007e4fd55aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
43017e4fd55aSmrg
43027e4fd55aSmrg
43037e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
43047e4fd55aSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
43057e4fd55aSmrgif ${ac_cv_path_SED+:} false; then :
43067e4fd55aSmrg  $as_echo_n "(cached) " >&6
43077e4fd55aSmrgelse
43087e4fd55aSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
43097e4fd55aSmrg     for ac_i in 1 2 3 4 5 6 7; do
43107e4fd55aSmrg       ac_script="$ac_script$as_nl$ac_script"
43117e4fd55aSmrg     done
43127e4fd55aSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
43137e4fd55aSmrg     { ac_script=; unset ac_script;}
43147e4fd55aSmrg     if test -z "$SED"; then
43157e4fd55aSmrg  ac_path_SED_found=false
43167e4fd55aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
43177e4fd55aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43187e4fd55aSmrgfor as_dir in $PATH
43197e4fd55aSmrgdo
43207e4fd55aSmrg  IFS=$as_save_IFS
43217e4fd55aSmrg  test -z "$as_dir" && as_dir=.
43227e4fd55aSmrg    for ac_prog in sed gsed; do
43237e4fd55aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
43247e4fd55aSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
43257e4fd55aSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
43267e4fd55aSmrg# Check for GNU ac_path_SED and select it if it is found.
43277e4fd55aSmrg  # Check for GNU $ac_path_SED
43287e4fd55aSmrgcase `"$ac_path_SED" --version 2>&1` in
43297e4fd55aSmrg*GNU*)
43307e4fd55aSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
43317e4fd55aSmrg*)
43327e4fd55aSmrg  ac_count=0
43337e4fd55aSmrg  $as_echo_n 0123456789 >"conftest.in"
43347e4fd55aSmrg  while :
43357e4fd55aSmrg  do
43367e4fd55aSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
43377e4fd55aSmrg    mv "conftest.tmp" "conftest.in"
43387e4fd55aSmrg    cp "conftest.in" "conftest.nl"
43397e4fd55aSmrg    $as_echo '' >> "conftest.nl"
43407e4fd55aSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
43417e4fd55aSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43427e4fd55aSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
43437e4fd55aSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
43447e4fd55aSmrg      # Best one so far, save it but keep looking for a better one
43457e4fd55aSmrg      ac_cv_path_SED="$ac_path_SED"
43467e4fd55aSmrg      ac_path_SED_max=$ac_count
4347b8f75c19Smrg    fi
43487e4fd55aSmrg    # 10*(2^10) chars as input seems more than enough
43497e4fd55aSmrg    test $ac_count -gt 10 && break
43507e4fd55aSmrg  done
43517e4fd55aSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43527e4fd55aSmrgesac
43537e4fd55aSmrg
43547e4fd55aSmrg      $ac_path_SED_found && break 3
43557e4fd55aSmrg    done
43567e4fd55aSmrg  done
43577e4fd55aSmrg  done
43587e4fd55aSmrgIFS=$as_save_IFS
43597e4fd55aSmrg  if test -z "$ac_cv_path_SED"; then
43607e4fd55aSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
43617e4fd55aSmrg  fi
43627e4fd55aSmrgelse
43637e4fd55aSmrg  ac_cv_path_SED=$SED
43647e4fd55aSmrgfi
43657e4fd55aSmrg
43667e4fd55aSmrgfi
43677e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
43687e4fd55aSmrg$as_echo "$ac_cv_path_SED" >&6; }
43697e4fd55aSmrg SED="$ac_cv_path_SED"
43707e4fd55aSmrg  rm -f conftest.sed
43717e4fd55aSmrg
43727e4fd55aSmrg
43737e4fd55aSmrg
43747e4fd55aSmrg
43757e4fd55aSmrg
43767e4fd55aSmrgif  test "x$GCC" = xyes ; then
43777e4fd55aSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
43787e4fd55aSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
43797e4fd55aSmrg-Wbad-function-cast -Wformat=2"
43807e4fd55aSmrg    case `$CC -dumpversion` in
43817e4fd55aSmrg    3.4.* | 4.*)
43827e4fd55aSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
43837e4fd55aSmrg	;;
43847e4fd55aSmrg    esac
4385b8f75c19Smrgelse
43867e4fd55aSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
43877e4fd55aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
43887e4fd55aSmrg  SUNCC="yes"
4389b8f75c19Smrgelse
43907e4fd55aSmrg  SUNCC="no"
4391b8f75c19Smrgfi
43927e4fd55aSmrg
43937e4fd55aSmrg    if test "x$SUNCC" = "xyes"; then
43947e4fd55aSmrg	CWARNFLAGS="-v"
4395b8f75c19Smrg    fi
4396b8f75c19Smrgfi
4397b8f75c19Smrg
4398b8f75c19Smrg
4399b8f75c19Smrg
44007e4fd55aSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4401b8f75c19Smrg
44027e4fd55aSmrg
44037e4fd55aSmrg
44047e4fd55aSmrg# Check whether --enable-strict-compilation was given.
44057e4fd55aSmrgif test "${enable_strict_compilation+set}" = set; then :
44067e4fd55aSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4407b8f75c19Smrgelse
44087e4fd55aSmrg  STRICT_COMPILE=no
4409b8f75c19Smrgfi
4410b8f75c19Smrg
44117e4fd55aSmrgif test "x$STRICT_COMPILE" = "xyes"; then
44127e4fd55aSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
44137e4fd55aSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
44147e4fd55aSmrg  SUNCC="yes"
44157e4fd55aSmrgelse
44167e4fd55aSmrg  SUNCC="no"
44177e4fd55aSmrgfi
4418b8f75c19Smrg
44197e4fd55aSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
44207e4fd55aSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
44217e4fd55aSmrg  INTELCC="yes"
44227e4fd55aSmrgelse
44237e4fd55aSmrg  INTELCC="no"
44247e4fd55aSmrgfi
4425b8f75c19Smrg
44267e4fd55aSmrg	if test "x$GCC" = xyes ; then
44277e4fd55aSmrg		STRICT_CFLAGS="-pedantic -Werror"
44287e4fd55aSmrg	elif test "x$SUNCC" = "xyes"; then
44297e4fd55aSmrg		STRICT_CFLAGS="-errwarn"
44307e4fd55aSmrg    elif test "x$INTELCC" = "xyes"; then
44317e4fd55aSmrg		STRICT_CFLAGS="-Werror"
44327e4fd55aSmrg	fi
44337e4fd55aSmrgfi
44347e4fd55aSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4435b8f75c19Smrg
4436b8f75c19Smrg
4437b8f75c19Smrg
4438b8f75c19Smrg
44397e4fd55aSmrgcat >>confdefs.h <<_ACEOF
44407e4fd55aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
44417e4fd55aSmrg_ACEOF
4442b8f75c19Smrg
44437e4fd55aSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
44447e4fd55aSmrg	if test "x$PVM" = "x"; then
44457e4fd55aSmrg		PVM="0"
44467e4fd55aSmrg	fi
4447b8f75c19Smrg
44487e4fd55aSmrgcat >>confdefs.h <<_ACEOF
44497e4fd55aSmrg#define PACKAGE_VERSION_MINOR $PVM
44507e4fd55aSmrg_ACEOF
4451b8f75c19Smrg
44527e4fd55aSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
44537e4fd55aSmrg	if test "x$PVP" = "x"; then
44547e4fd55aSmrg		PVP="0"
44557e4fd55aSmrg	fi
4456b8f75c19Smrg
44577e4fd55aSmrgcat >>confdefs.h <<_ACEOF
44587e4fd55aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
44597e4fd55aSmrg_ACEOF
4460b8f75c19Smrg
4461b8f75c19Smrg
4462b8f75c19Smrg
44637e4fd55aSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
44647e4fd55aSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
44657e4fd55aSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
44667e4fd55aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4467b8f75c19Smrg
4468b8f75c19Smrg
4469b8f75c19Smrg
44707e4fd55aSmrg
44717e4fd55aSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
44727e4fd55aSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
44737e4fd55aSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
44747e4fd55aSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
44757e4fd55aSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
44767e4fd55aSmrg
4477b8f75c19Smrg
4478b8f75c19Smrg
4479b8f75c19Smrg
4480b8f75c19Smrg
4481b8f75c19Smrg
4482b8f75c19Smrgif test x$APP_MAN_SUFFIX = x    ; then
44837e4fd55aSmrg    APP_MAN_SUFFIX=1
4484b8f75c19Smrgfi
4485b8f75c19Smrgif test x$APP_MAN_DIR = x    ; then
44867e4fd55aSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4487b8f75c19Smrgfi
4488b8f75c19Smrg
4489b8f75c19Smrgif test x$LIB_MAN_SUFFIX = x    ; then
44907e4fd55aSmrg    LIB_MAN_SUFFIX=3
4491b8f75c19Smrgfi
4492b8f75c19Smrgif test x$LIB_MAN_DIR = x    ; then
44937e4fd55aSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4494b8f75c19Smrgfi
4495b8f75c19Smrg
4496b8f75c19Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4497b8f75c19Smrg    case $host_os in
4498b8f75c19Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4499b8f75c19Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4500b8f75c19Smrg    esac
4501b8f75c19Smrgfi
4502b8f75c19Smrgif test x$FILE_MAN_DIR = x    ; then
45037e4fd55aSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4504b8f75c19Smrgfi
4505b8f75c19Smrg
4506b8f75c19Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4507b8f75c19Smrg    case $host_os in
4508b8f75c19Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4509b8f75c19Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4510b8f75c19Smrg    esac
4511b8f75c19Smrgfi
4512b8f75c19Smrgif test x$MISC_MAN_DIR = x    ; then
45137e4fd55aSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4514b8f75c19Smrgfi
4515b8f75c19Smrg
4516b8f75c19Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4517b8f75c19Smrg    case $host_os in
4518b8f75c19Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4519b8f75c19Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4520b8f75c19Smrg    esac
4521b8f75c19Smrgfi
4522b8f75c19Smrgif test x$DRIVER_MAN_DIR = x    ; then
45237e4fd55aSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4524b8f75c19Smrgfi
4525b8f75c19Smrg
4526b8f75c19Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4527b8f75c19Smrg    case $host_os in
4528b8f75c19Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4529b8f75c19Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4530b8f75c19Smrg    esac
4531b8f75c19Smrgfi
4532b8f75c19Smrgif test x$ADMIN_MAN_DIR = x    ; then
4533b8f75c19Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4534b8f75c19Smrgfi
4535b8f75c19Smrg
4536b8f75c19Smrg
4537b8f75c19Smrg
4538b8f75c19Smrg
4539b8f75c19Smrg
4540b8f75c19Smrg
4541b8f75c19Smrg
4542b8f75c19Smrg
4543b8f75c19Smrg
4544b8f75c19Smrg
4545b8f75c19Smrg
4546b8f75c19Smrg
4547b8f75c19Smrg
4548b8f75c19Smrg
4549b8f75c19Smrg
45507e4fd55aSmrgXORG_MAN_PAGE="X Version 11"
45517e4fd55aSmrg
45527e4fd55aSmrgMAN_SUBSTS="\
45537e4fd55aSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
45547e4fd55aSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
45557e4fd55aSmrg	-e 's|__xservername__|Xorg|g' \
45567e4fd55aSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
45577e4fd55aSmrg	-e 's|__projectroot__|\$(prefix)|g' \
45587e4fd55aSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
45597e4fd55aSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
45607e4fd55aSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
45617e4fd55aSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
45627e4fd55aSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
45637e4fd55aSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
45647e4fd55aSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
45657e4fd55aSmrg
45667e4fd55aSmrg
45677e4fd55aSmrg
45687e4fd55aSmrg# Check whether --enable-silent-rules was given.
45697e4fd55aSmrgif test "${enable_silent_rules+set}" = set; then :
45707e4fd55aSmrg  enableval=$enable_silent_rules;
45717e4fd55aSmrgfi
45727e4fd55aSmrg
45737e4fd55aSmrgcase $enable_silent_rules in
45747e4fd55aSmrgyes) AM_DEFAULT_VERBOSITY=0;;
45757e4fd55aSmrgno)  AM_DEFAULT_VERBOSITY=1;;
45767e4fd55aSmrg*)   AM_DEFAULT_VERBOSITY=0;;
45777e4fd55aSmrgesac
45787e4fd55aSmrgAM_BACKSLASH='\'
4579b8f75c19Smrg
4580b8f75c19Smrg
45817e4fd55aSmrg
45827e4fd55aSmrg# Checks for pkg-config packages
45837e4fd55aSmrg
45847e4fd55aSmrgpkg_failed=no
45857e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFINDPROXY" >&5
45867e4fd55aSmrg$as_echo_n "checking for XFINDPROXY... " >&6; }
45877e4fd55aSmrg
45887e4fd55aSmrgif test -n "$XFINDPROXY_CFLAGS"; then
45897e4fd55aSmrg    pkg_cv_XFINDPROXY_CFLAGS="$XFINDPROXY_CFLAGS"
45907e4fd55aSmrg elif test -n "$PKG_CONFIG"; then
45917e4fd55aSmrg    if test -n "$PKG_CONFIG" && \
45927e4fd55aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 ice xt xproxymngproto\""; } >&5
45937e4fd55aSmrg  ($PKG_CONFIG --exists --print-errors "x11 ice xt xproxymngproto") 2>&5
45947e4fd55aSmrg  ac_status=$?
45957e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45967e4fd55aSmrg  test $ac_status = 0; }; then
45977e4fd55aSmrg  pkg_cv_XFINDPROXY_CFLAGS=`$PKG_CONFIG --cflags "x11 ice xt xproxymngproto" 2>/dev/null`
4598b8f75c19Smrgelse
45997e4fd55aSmrg  pkg_failed=yes
46007e4fd55aSmrgfi
46017e4fd55aSmrg else
46027e4fd55aSmrg    pkg_failed=untried
46037e4fd55aSmrgfi
46047e4fd55aSmrgif test -n "$XFINDPROXY_LIBS"; then
46057e4fd55aSmrg    pkg_cv_XFINDPROXY_LIBS="$XFINDPROXY_LIBS"
46067e4fd55aSmrg elif test -n "$PKG_CONFIG"; then
46077e4fd55aSmrg    if test -n "$PKG_CONFIG" && \
46087e4fd55aSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 ice xt xproxymngproto\""; } >&5
46097e4fd55aSmrg  ($PKG_CONFIG --exists --print-errors "x11 ice xt xproxymngproto") 2>&5
46107e4fd55aSmrg  ac_status=$?
46117e4fd55aSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46127e4fd55aSmrg  test $ac_status = 0; }; then
46137e4fd55aSmrg  pkg_cv_XFINDPROXY_LIBS=`$PKG_CONFIG --libs "x11 ice xt xproxymngproto" 2>/dev/null`
46147e4fd55aSmrgelse
46157e4fd55aSmrg  pkg_failed=yes
46167e4fd55aSmrgfi
46177e4fd55aSmrg else
46187e4fd55aSmrg    pkg_failed=untried
46197e4fd55aSmrgfi
46207e4fd55aSmrg
46217e4fd55aSmrg
46227e4fd55aSmrg
46237e4fd55aSmrgif test $pkg_failed = yes; then
4624b8f75c19Smrg
46257e4fd55aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46267e4fd55aSmrg        _pkg_short_errors_supported=yes
46277e4fd55aSmrgelse
46287e4fd55aSmrg        _pkg_short_errors_supported=no
46297e4fd55aSmrgfi
46307e4fd55aSmrg        if test $_pkg_short_errors_supported = yes; then
46317e4fd55aSmrg	        XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 ice xt xproxymngproto" 2>&1`
46327e4fd55aSmrg        else
46337e4fd55aSmrg	        XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 ice xt xproxymngproto" 2>&1`
46347e4fd55aSmrg        fi
46357e4fd55aSmrg	# Put the nasty error message in config.log where it belongs
46367e4fd55aSmrg	echo "$XFINDPROXY_PKG_ERRORS" >&5
46377e4fd55aSmrg
46387e4fd55aSmrg	as_fn_error $? "Package requirements (x11 ice xt xproxymngproto) were not met:
46397e4fd55aSmrg
46407e4fd55aSmrg$XFINDPROXY_PKG_ERRORS
46417e4fd55aSmrg
46427e4fd55aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
46437e4fd55aSmrginstalled software in a non-standard prefix.
46447e4fd55aSmrg
46457e4fd55aSmrgAlternatively, you may set the environment variables XFINDPROXY_CFLAGS
46467e4fd55aSmrgand XFINDPROXY_LIBS to avoid the need to call pkg-config.
46477e4fd55aSmrgSee the pkg-config man page for more details.
46487e4fd55aSmrg" "$LINENO" 5
46497e4fd55aSmrgelif test $pkg_failed = untried; then
46507e4fd55aSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46517e4fd55aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46527e4fd55aSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
46537e4fd55aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
46547e4fd55aSmrgpath to pkg-config.
46557e4fd55aSmrg
46567e4fd55aSmrgAlternatively, you may set the environment variables XFINDPROXY_CFLAGS
46577e4fd55aSmrgand XFINDPROXY_LIBS to avoid the need to call pkg-config.
46587e4fd55aSmrgSee the pkg-config man page for more details.
46597e4fd55aSmrg
46607e4fd55aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
46617e4fd55aSmrgSee \`config.log' for more details" "$LINENO" 5; }
46627e4fd55aSmrgelse
46637e4fd55aSmrg	XFINDPROXY_CFLAGS=$pkg_cv_XFINDPROXY_CFLAGS
46647e4fd55aSmrg	XFINDPROXY_LIBS=$pkg_cv_XFINDPROXY_LIBS
46657e4fd55aSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46667e4fd55aSmrg$as_echo "yes" >&6; }
46677e4fd55aSmrg	:
46687e4fd55aSmrgfi
46697e4fd55aSmrg
46707e4fd55aSmrgac_config_files="$ac_config_files Makefile"
4671b8f75c19Smrg
4672b8f75c19Smrgcat >confcache <<\_ACEOF
4673b8f75c19Smrg# This file is a shell script that caches the results of configure
4674b8f75c19Smrg# tests run on this system so they can be shared between configure
4675b8f75c19Smrg# scripts and configure runs, see configure's option --config-cache.
4676b8f75c19Smrg# It is not useful on other systems.  If it contains results you don't
4677b8f75c19Smrg# want to keep, you may remove or edit it.
4678b8f75c19Smrg#
4679b8f75c19Smrg# config.status only pays attention to the cache file if you give it
4680b8f75c19Smrg# the --recheck option to rerun configure.
4681b8f75c19Smrg#
4682b8f75c19Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
4683b8f75c19Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
4684b8f75c19Smrg# following values.
4685b8f75c19Smrg
4686b8f75c19Smrg_ACEOF
4687b8f75c19Smrg
4688b8f75c19Smrg# The following way of writing the cache mishandles newlines in values,
4689b8f75c19Smrg# but we know of no workaround that is simple, portable, and efficient.
46907e4fd55aSmrg# So, we kill variables containing newlines.
4691b8f75c19Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
4692b8f75c19Smrg# and sets the high bit in the cache file unless we assign to the vars.
46937e4fd55aSmrg(
46947e4fd55aSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46957e4fd55aSmrg    eval ac_val=\$$ac_var
46967e4fd55aSmrg    case $ac_val in #(
46977e4fd55aSmrg    *${as_nl}*)
46987e4fd55aSmrg      case $ac_var in #(
46997e4fd55aSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47007e4fd55aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
47017e4fd55aSmrg      esac
47027e4fd55aSmrg      case $ac_var in #(
47037e4fd55aSmrg      _ | IFS | as_nl) ;; #(
47047e4fd55aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
47057e4fd55aSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
47067e4fd55aSmrg      esac ;;
47077e4fd55aSmrg    esac
47087e4fd55aSmrg  done
47097e4fd55aSmrg
4710b8f75c19Smrg  (set) 2>&1 |
47117e4fd55aSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
47127e4fd55aSmrg    *${as_nl}ac_space=\ *)
47137e4fd55aSmrg      # `set' does not quote correctly, so add quotes: double-quote
47147e4fd55aSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
4715b8f75c19Smrg      sed -n \
4716b8f75c19Smrg	"s/'/'\\\\''/g;
4717b8f75c19Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47187e4fd55aSmrg      ;; #(
4719b8f75c19Smrg    *)
4720b8f75c19Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
47217e4fd55aSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4722b8f75c19Smrg      ;;
47237e4fd55aSmrg    esac |
47247e4fd55aSmrg    sort
47257e4fd55aSmrg) |
4726b8f75c19Smrg  sed '
47277e4fd55aSmrg     /^ac_cv_env_/b end
4728b8f75c19Smrg     t clear
47297e4fd55aSmrg     :clear
4730b8f75c19Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4731b8f75c19Smrg     t end
47327e4fd55aSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47337e4fd55aSmrg     :end' >>confcache
47347e4fd55aSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47357e4fd55aSmrg  if test -w "$cache_file"; then
47367e4fd55aSmrg    if test "x$cache_file" != "x/dev/null"; then
47377e4fd55aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47387e4fd55aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
47397e4fd55aSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
47407e4fd55aSmrg	cat confcache >"$cache_file"
47417e4fd55aSmrg      else
47427e4fd55aSmrg        case $cache_file in #(
47437e4fd55aSmrg        */* | ?:*)
47447e4fd55aSmrg	  mv -f confcache "$cache_file"$$ &&
47457e4fd55aSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
47467e4fd55aSmrg        *)
47477e4fd55aSmrg	  mv -f confcache "$cache_file" ;;
47487e4fd55aSmrg	esac
47497e4fd55aSmrg      fi
47507e4fd55aSmrg    fi
4751b8f75c19Smrg  else
47527e4fd55aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47537e4fd55aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4754b8f75c19Smrg  fi
4755b8f75c19Smrgfi
4756b8f75c19Smrgrm -f confcache
4757b8f75c19Smrg
4758b8f75c19Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
4759b8f75c19Smrg# Let make expand exec_prefix.
4760b8f75c19Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4761b8f75c19Smrg
4762b8f75c19SmrgDEFS=-DHAVE_CONFIG_H
4763b8f75c19Smrg
4764b8f75c19Smrgac_libobjs=
4765b8f75c19Smrgac_ltlibobjs=
47667e4fd55aSmrgU=
4767b8f75c19Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4768b8f75c19Smrg  # 1. Remove the extension, and $U if already installed.
47697e4fd55aSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47707e4fd55aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
47717e4fd55aSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
47727e4fd55aSmrg  #    will be set to the directory where LIBOBJS objects are built.
47737e4fd55aSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
47747e4fd55aSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4775b8f75c19Smrgdone
4776b8f75c19SmrgLIBOBJS=$ac_libobjs
4777b8f75c19Smrg
4778b8f75c19SmrgLTLIBOBJS=$ac_ltlibobjs
4779b8f75c19Smrg
4780b8f75c19Smrg
47817e4fd55aSmrg if test -n "$EXEEXT"; then
47827e4fd55aSmrg  am__EXEEXT_TRUE=
47837e4fd55aSmrg  am__EXEEXT_FALSE='#'
47847e4fd55aSmrgelse
47857e4fd55aSmrg  am__EXEEXT_TRUE='#'
47867e4fd55aSmrg  am__EXEEXT_FALSE=
47877e4fd55aSmrgfi
47887e4fd55aSmrg
4789b8f75c19Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
47907e4fd55aSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
47917e4fd55aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4792b8f75c19Smrgfi
4793b8f75c19Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
47947e4fd55aSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
47957e4fd55aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4796b8f75c19Smrgfi
4797b8f75c19Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
47987e4fd55aSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
47997e4fd55aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4800b8f75c19Smrgfi
4801b8f75c19Smrg
48027e4fd55aSmrg: "${CONFIG_STATUS=./config.status}"
48037e4fd55aSmrgac_write_fail=0
4804b8f75c19Smrgac_clean_files_save=$ac_clean_files
4805b8f75c19Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
48067e4fd55aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
48077e4fd55aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
48087e4fd55aSmrgas_write_fail=0
48097e4fd55aSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4810b8f75c19Smrg#! $SHELL
4811b8f75c19Smrg# Generated by $as_me.
4812b8f75c19Smrg# Run this file to recreate the current configuration.
4813b8f75c19Smrg# Compiler output produced by configure, useful for debugging
4814b8f75c19Smrg# configure, is in config.log if it exists.
4815b8f75c19Smrg
4816b8f75c19Smrgdebug=false
4817b8f75c19Smrgac_cs_recheck=false
4818b8f75c19Smrgac_cs_silent=false
4819b8f75c19Smrg
48207e4fd55aSmrgSHELL=\${CONFIG_SHELL-$SHELL}
48217e4fd55aSmrgexport SHELL
48227e4fd55aSmrg_ASEOF
48237e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
48247e4fd55aSmrg## -------------------- ##
48257e4fd55aSmrg## M4sh Initialization. ##
48267e4fd55aSmrg## -------------------- ##
48277e4fd55aSmrg
48287e4fd55aSmrg# Be more Bourne compatible
48297e4fd55aSmrgDUALCASE=1; export DUALCASE # for MKS sh
48307e4fd55aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4831b8f75c19Smrg  emulate sh
4832b8f75c19Smrg  NULLCMD=:
48337e4fd55aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4834b8f75c19Smrg  # is contrary to our usage.  Disable this feature.
4835b8f75c19Smrg  alias -g '${1+"$@"}'='"$@"'
48367e4fd55aSmrg  setopt NO_GLOB_SUBST
48377e4fd55aSmrgelse
48387e4fd55aSmrg  case `(set -o) 2>/dev/null` in #(
48397e4fd55aSmrg  *posix*) :
48407e4fd55aSmrg    set -o posix ;; #(
48417e4fd55aSmrg  *) :
48427e4fd55aSmrg     ;;
48437e4fd55aSmrgesac
4844b8f75c19Smrgfi
4845b8f75c19Smrg
48467e4fd55aSmrg
48477e4fd55aSmrgas_nl='
48487e4fd55aSmrg'
48497e4fd55aSmrgexport as_nl
48507e4fd55aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
48517e4fd55aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48527e4fd55aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48537e4fd55aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48547e4fd55aSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
48557e4fd55aSmrg# but without wasting forks for bash or zsh.
48567e4fd55aSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48577e4fd55aSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48587e4fd55aSmrg  as_echo='print -r --'
48597e4fd55aSmrg  as_echo_n='print -rn --'
48607e4fd55aSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48617e4fd55aSmrg  as_echo='printf %s\n'
48627e4fd55aSmrg  as_echo_n='printf %s'
4863b8f75c19Smrgelse
48647e4fd55aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
48657e4fd55aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48667e4fd55aSmrg    as_echo_n='/usr/ucb/echo -n'
48677e4fd55aSmrg  else
48687e4fd55aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48697e4fd55aSmrg    as_echo_n_body='eval
48707e4fd55aSmrg      arg=$1;
48717e4fd55aSmrg      case $arg in #(
48727e4fd55aSmrg      *"$as_nl"*)
48737e4fd55aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
48747e4fd55aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48757e4fd55aSmrg      esac;
48767e4fd55aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
48777e4fd55aSmrg    '
48787e4fd55aSmrg    export as_echo_n_body
48797e4fd55aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
48807e4fd55aSmrg  fi
48817e4fd55aSmrg  export as_echo_body
48827e4fd55aSmrg  as_echo='sh -c $as_echo_body as_echo'
48837e4fd55aSmrgfi
48847e4fd55aSmrg
48857e4fd55aSmrg# The user is always right.
48867e4fd55aSmrgif test "${PATH_SEPARATOR+set}" != set; then
48877e4fd55aSmrg  PATH_SEPARATOR=:
48887e4fd55aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48897e4fd55aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48907e4fd55aSmrg      PATH_SEPARATOR=';'
48917e4fd55aSmrg  }
4892b8f75c19Smrgfi
4893b8f75c19Smrg
4894b8f75c19Smrg
48957e4fd55aSmrg# IFS
48967e4fd55aSmrg# We need space, tab and new line, in precisely that order.  Quoting is
48977e4fd55aSmrg# there to prevent editors from complaining about space-tab.
48987e4fd55aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
48997e4fd55aSmrg# splitting by setting IFS to empty value.)
49007e4fd55aSmrgIFS=" ""	$as_nl"
49017e4fd55aSmrg
49027e4fd55aSmrg# Find who we are.  Look in the path if we contain no directory separator.
49037e4fd55aSmrgas_myself=
49047e4fd55aSmrgcase $0 in #((
49057e4fd55aSmrg  *[\\/]* ) as_myself=$0 ;;
49067e4fd55aSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49077e4fd55aSmrgfor as_dir in $PATH
49087e4fd55aSmrgdo
49097e4fd55aSmrg  IFS=$as_save_IFS
49107e4fd55aSmrg  test -z "$as_dir" && as_dir=.
49117e4fd55aSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49127e4fd55aSmrg  done
49137e4fd55aSmrgIFS=$as_save_IFS
49147e4fd55aSmrg
49157e4fd55aSmrg     ;;
49167e4fd55aSmrgesac
49177e4fd55aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
49187e4fd55aSmrg# in which case we are not to be found in the path.
49197e4fd55aSmrgif test "x$as_myself" = x; then
49207e4fd55aSmrg  as_myself=$0
49217e4fd55aSmrgfi
49227e4fd55aSmrgif test ! -f "$as_myself"; then
49237e4fd55aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49247e4fd55aSmrg  exit 1
49257e4fd55aSmrgfi
49267e4fd55aSmrg
49277e4fd55aSmrg# Unset variables that we do not need and which cause bugs (e.g. in
49287e4fd55aSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
49297e4fd55aSmrg# suppresses any "Segmentation fault" message there.  '((' could
49307e4fd55aSmrg# trigger a bug in pdksh 5.2.14.
49317e4fd55aSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
49327e4fd55aSmrgdo eval test x\${$as_var+set} = xset \
49337e4fd55aSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
49347e4fd55aSmrgdone
4935b8f75c19SmrgPS1='$ '
4936b8f75c19SmrgPS2='> '
4937b8f75c19SmrgPS4='+ '
4938b8f75c19Smrg
4939b8f75c19Smrg# NLS nuisances.
49407e4fd55aSmrgLC_ALL=C
49417e4fd55aSmrgexport LC_ALL
49427e4fd55aSmrgLANGUAGE=C
49437e4fd55aSmrgexport LANGUAGE
49447e4fd55aSmrg
49457e4fd55aSmrg# CDPATH.
49467e4fd55aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49477e4fd55aSmrg
49487e4fd55aSmrg
49497e4fd55aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
49507e4fd55aSmrg# ----------------------------------------
49517e4fd55aSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
49527e4fd55aSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
49537e4fd55aSmrg# script with STATUS, using 1 if that was 0.
49547e4fd55aSmrgas_fn_error ()
49557e4fd55aSmrg{
49567e4fd55aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
49577e4fd55aSmrg  if test "$4"; then
49587e4fd55aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
49597e4fd55aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4960b8f75c19Smrg  fi
49617e4fd55aSmrg  $as_echo "$as_me: error: $2" >&2
49627e4fd55aSmrg  as_fn_exit $as_status
49637e4fd55aSmrg} # as_fn_error
49647e4fd55aSmrg
49657e4fd55aSmrg
49667e4fd55aSmrg# as_fn_set_status STATUS
49677e4fd55aSmrg# -----------------------
49687e4fd55aSmrg# Set $? to STATUS, without forking.
49697e4fd55aSmrgas_fn_set_status ()
49707e4fd55aSmrg{
49717e4fd55aSmrg  return $1
49727e4fd55aSmrg} # as_fn_set_status
49737e4fd55aSmrg
49747e4fd55aSmrg# as_fn_exit STATUS
49757e4fd55aSmrg# -----------------
49767e4fd55aSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
49777e4fd55aSmrgas_fn_exit ()
49787e4fd55aSmrg{
49797e4fd55aSmrg  set +e
49807e4fd55aSmrg  as_fn_set_status $1
49817e4fd55aSmrg  exit $1
49827e4fd55aSmrg} # as_fn_exit
49837e4fd55aSmrg
49847e4fd55aSmrg# as_fn_unset VAR
49857e4fd55aSmrg# ---------------
49867e4fd55aSmrg# Portably unset VAR.
49877e4fd55aSmrgas_fn_unset ()
49887e4fd55aSmrg{
49897e4fd55aSmrg  { eval $1=; unset $1;}
49907e4fd55aSmrg}
49917e4fd55aSmrgas_unset=as_fn_unset
49927e4fd55aSmrg# as_fn_append VAR VALUE
49937e4fd55aSmrg# ----------------------
49947e4fd55aSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
49957e4fd55aSmrg# advantage of any shell optimizations that allow amortized linear growth over
49967e4fd55aSmrg# repeated appends, instead of the typical quadratic growth present in naive
49977e4fd55aSmrg# implementations.
49987e4fd55aSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
49997e4fd55aSmrg  eval 'as_fn_append ()
50007e4fd55aSmrg  {
50017e4fd55aSmrg    eval $1+=\$2
50027e4fd55aSmrg  }'
50037e4fd55aSmrgelse
50047e4fd55aSmrg  as_fn_append ()
50057e4fd55aSmrg  {
50067e4fd55aSmrg    eval $1=\$$1\$2
50077e4fd55aSmrg  }
50087e4fd55aSmrgfi # as_fn_append
50097e4fd55aSmrg
50107e4fd55aSmrg# as_fn_arith ARG...
50117e4fd55aSmrg# ------------------
50127e4fd55aSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
50137e4fd55aSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
50147e4fd55aSmrg# must be portable across $(()) and expr.
50157e4fd55aSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
50167e4fd55aSmrg  eval 'as_fn_arith ()
50177e4fd55aSmrg  {
50187e4fd55aSmrg    as_val=$(( $* ))
50197e4fd55aSmrg  }'
50207e4fd55aSmrgelse
50217e4fd55aSmrg  as_fn_arith ()
50227e4fd55aSmrg  {
50237e4fd55aSmrg    as_val=`expr "$@" || test $? -eq 1`
50247e4fd55aSmrg  }
50257e4fd55aSmrgfi # as_fn_arith
50267e4fd55aSmrg
5027b8f75c19Smrg
50287e4fd55aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
50297e4fd55aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5030b8f75c19Smrg  as_expr=expr
5031b8f75c19Smrgelse
5032b8f75c19Smrg  as_expr=false
5033b8f75c19Smrgfi
5034b8f75c19Smrg
50357e4fd55aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5036b8f75c19Smrg  as_basename=basename
5037b8f75c19Smrgelse
5038b8f75c19Smrg  as_basename=false
5039b8f75c19Smrgfi
5040b8f75c19Smrg
50417e4fd55aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50427e4fd55aSmrg  as_dirname=dirname
50437e4fd55aSmrgelse
50447e4fd55aSmrg  as_dirname=false
50457e4fd55aSmrgfi
5046b8f75c19Smrg
50477e4fd55aSmrgas_me=`$as_basename -- "$0" ||
5048b8f75c19Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5049b8f75c19Smrg	 X"$0" : 'X\(//\)$' \| \
50507e4fd55aSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50517e4fd55aSmrg$as_echo X/"$0" |
50527e4fd55aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
50537e4fd55aSmrg	    s//\1/
50547e4fd55aSmrg	    q
50557e4fd55aSmrg	  }
50567e4fd55aSmrg	  /^X\/\(\/\/\)$/{
50577e4fd55aSmrg	    s//\1/
50587e4fd55aSmrg	    q
50597e4fd55aSmrg	  }
50607e4fd55aSmrg	  /^X\/\(\/\).*/{
50617e4fd55aSmrg	    s//\1/
50627e4fd55aSmrg	    q
50637e4fd55aSmrg	  }
50647e4fd55aSmrg	  s/.*/./; q'`
5065b8f75c19Smrg
5066b8f75c19Smrg# Avoid depending upon Character Ranges.
5067b8f75c19Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5068b8f75c19Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5069b8f75c19Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5070b8f75c19Smrgas_cr_digits='0123456789'
5071b8f75c19Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5072b8f75c19Smrg
50737e4fd55aSmrgECHO_C= ECHO_N= ECHO_T=
50747e4fd55aSmrgcase `echo -n x` in #(((((
50757e4fd55aSmrg-n*)
50767e4fd55aSmrg  case `echo 'xy\c'` in
50777e4fd55aSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
50787e4fd55aSmrg  xy)  ECHO_C='\c';;
50797e4fd55aSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
50807e4fd55aSmrg       ECHO_T='	';;
50817e4fd55aSmrg  esac;;
50827e4fd55aSmrg*)
50837e4fd55aSmrg  ECHO_N='-n';;
5084b8f75c19Smrgesac
5085b8f75c19Smrg
50867e4fd55aSmrgrm -f conf$$ conf$$.exe conf$$.file
50877e4fd55aSmrgif test -d conf$$.dir; then
50887e4fd55aSmrg  rm -f conf$$.dir/conf$$.file
5089b8f75c19Smrgelse
50907e4fd55aSmrg  rm -f conf$$.dir
50917e4fd55aSmrg  mkdir conf$$.dir 2>/dev/null
5092b8f75c19Smrgfi
50937e4fd55aSmrgif (echo >conf$$.file) 2>/dev/null; then
50947e4fd55aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5095b8f75c19Smrg    as_ln_s='ln -s'
50967e4fd55aSmrg    # ... but there are two gotchas:
50977e4fd55aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50987e4fd55aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50997e4fd55aSmrg    # In both cases, we have to default to `cp -p'.
51007e4fd55aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51017e4fd55aSmrg      as_ln_s='cp -p'
51027e4fd55aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
51037e4fd55aSmrg    as_ln_s=ln
51047e4fd55aSmrg  else
51057e4fd55aSmrg    as_ln_s='cp -p'
5106b8f75c19Smrg  fi
5107b8f75c19Smrgelse
5108b8f75c19Smrg  as_ln_s='cp -p'
5109b8f75c19Smrgfi
51107e4fd55aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51117e4fd55aSmrgrmdir conf$$.dir 2>/dev/null
51127e4fd55aSmrg
51137e4fd55aSmrg
51147e4fd55aSmrg# as_fn_mkdir_p
51157e4fd55aSmrg# -------------
51167e4fd55aSmrg# Create "$as_dir" as a directory, including parents if necessary.
51177e4fd55aSmrgas_fn_mkdir_p ()
51187e4fd55aSmrg{
51197e4fd55aSmrg
51207e4fd55aSmrg  case $as_dir in #(
51217e4fd55aSmrg  -*) as_dir=./$as_dir;;
51227e4fd55aSmrg  esac
51237e4fd55aSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
51247e4fd55aSmrg    as_dirs=
51257e4fd55aSmrg    while :; do
51267e4fd55aSmrg      case $as_dir in #(
51277e4fd55aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
51287e4fd55aSmrg      *) as_qdir=$as_dir;;
51297e4fd55aSmrg      esac
51307e4fd55aSmrg      as_dirs="'$as_qdir' $as_dirs"
51317e4fd55aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
51327e4fd55aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51337e4fd55aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
51347e4fd55aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
51357e4fd55aSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51367e4fd55aSmrg$as_echo X"$as_dir" |
51377e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51387e4fd55aSmrg	    s//\1/
51397e4fd55aSmrg	    q
51407e4fd55aSmrg	  }
51417e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
51427e4fd55aSmrg	    s//\1/
51437e4fd55aSmrg	    q
51447e4fd55aSmrg	  }
51457e4fd55aSmrg	  /^X\(\/\/\)$/{
51467e4fd55aSmrg	    s//\1/
51477e4fd55aSmrg	    q
51487e4fd55aSmrg	  }
51497e4fd55aSmrg	  /^X\(\/\).*/{
51507e4fd55aSmrg	    s//\1/
51517e4fd55aSmrg	    q
51527e4fd55aSmrg	  }
51537e4fd55aSmrg	  s/.*/./; q'`
51547e4fd55aSmrg      test -d "$as_dir" && break
51557e4fd55aSmrg    done
51567e4fd55aSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
51577e4fd55aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
51587e4fd55aSmrg
5159b8f75c19Smrg
51607e4fd55aSmrg} # as_fn_mkdir_p
5161b8f75c19Smrgif mkdir -p . 2>/dev/null; then
51627e4fd55aSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5163b8f75c19Smrgelse
5164b8f75c19Smrg  test -d ./-p && rmdir ./-p
5165b8f75c19Smrg  as_mkdir_p=false
5166b8f75c19Smrgfi
5167b8f75c19Smrg
51687e4fd55aSmrgif test -x / >/dev/null 2>&1; then
51697e4fd55aSmrg  as_test_x='test -x'
51707e4fd55aSmrgelse
51717e4fd55aSmrg  if ls -dL / >/dev/null 2>&1; then
51727e4fd55aSmrg    as_ls_L_option=L
51737e4fd55aSmrg  else
51747e4fd55aSmrg    as_ls_L_option=
51757e4fd55aSmrg  fi
51767e4fd55aSmrg  as_test_x='
51777e4fd55aSmrg    eval sh -c '\''
51787e4fd55aSmrg      if test -d "$1"; then
51797e4fd55aSmrg	test -d "$1/.";
51807e4fd55aSmrg      else
51817e4fd55aSmrg	case $1 in #(
51827e4fd55aSmrg	-*)set "./$1";;
51837e4fd55aSmrg	esac;
51847e4fd55aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
51857e4fd55aSmrg	???[sx]*):;;*)false;;esac;fi
51867e4fd55aSmrg    '\'' sh
51877e4fd55aSmrg  '
51887e4fd55aSmrgfi
51897e4fd55aSmrgas_executable_p=$as_test_x
5190b8f75c19Smrg
5191b8f75c19Smrg# Sed expression to map a string onto a valid CPP name.
5192b8f75c19Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5193b8f75c19Smrg
5194b8f75c19Smrg# Sed expression to map a string onto a valid variable name.
5195b8f75c19Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5196b8f75c19Smrg
5197b8f75c19Smrg
5198b8f75c19Smrgexec 6>&1
51997e4fd55aSmrg## ----------------------------------- ##
52007e4fd55aSmrg## Main body of $CONFIG_STATUS script. ##
52017e4fd55aSmrg## ----------------------------------- ##
52027e4fd55aSmrg_ASEOF
52037e4fd55aSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
52047e4fd55aSmrg
52057e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52067e4fd55aSmrg# Save the log message, to keep $0 and so on meaningful, and to
5207b8f75c19Smrg# report actual input values of CONFIG_FILES etc. instead of their
52087e4fd55aSmrg# values after options handling.
52097e4fd55aSmrgac_log="
52107e4fd55aSmrgThis file was extended by xfindproxy $as_me 1.0.2, which was
52117e4fd55aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
5212b8f75c19Smrg
5213b8f75c19Smrg  CONFIG_FILES    = $CONFIG_FILES
5214b8f75c19Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5215b8f75c19Smrg  CONFIG_LINKS    = $CONFIG_LINKS
5216b8f75c19Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5217b8f75c19Smrg  $ $0 $@
5218b8f75c19Smrg
52197e4fd55aSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
52207e4fd55aSmrg"
52217e4fd55aSmrg
5222b8f75c19Smrg_ACEOF
5223b8f75c19Smrg
52247e4fd55aSmrgcase $ac_config_files in *"
52257e4fd55aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
52267e4fd55aSmrgesac
5227b8f75c19Smrg
52287e4fd55aSmrgcase $ac_config_headers in *"
52297e4fd55aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
52307e4fd55aSmrgesac
5231b8f75c19Smrg
5232b8f75c19Smrg
52337e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52347e4fd55aSmrg# Files that config.status was made for.
52357e4fd55aSmrgconfig_files="$ac_config_files"
52367e4fd55aSmrgconfig_headers="$ac_config_headers"
52377e4fd55aSmrgconfig_commands="$ac_config_commands"
5238b8f75c19Smrg
52397e4fd55aSmrg_ACEOF
5240b8f75c19Smrg
52417e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5242b8f75c19Smrgac_cs_usage="\
52437e4fd55aSmrg\`$as_me' instantiates files and other configuration actions
52447e4fd55aSmrgfrom templates according to the current configuration.  Unless the files
52457e4fd55aSmrgand actions are specified as TAGs, all are instantiated by default.
5246b8f75c19Smrg
52477e4fd55aSmrgUsage: $0 [OPTION]... [TAG]...
5248b8f75c19Smrg
5249b8f75c19Smrg  -h, --help       print this help, then exit
52507e4fd55aSmrg  -V, --version    print version number and configuration settings, then exit
52517e4fd55aSmrg      --config     print configuration, then exit
52527e4fd55aSmrg  -q, --quiet, --silent
52537e4fd55aSmrg                   do not print progress messages
5254b8f75c19Smrg  -d, --debug      don't remove temporary files
5255b8f75c19Smrg      --recheck    update $as_me by reconfiguring in the same conditions
52567e4fd55aSmrg      --file=FILE[:TEMPLATE]
52577e4fd55aSmrg                   instantiate the configuration file FILE
52587e4fd55aSmrg      --header=FILE[:TEMPLATE]
52597e4fd55aSmrg                   instantiate the configuration header FILE
5260b8f75c19Smrg
5261b8f75c19SmrgConfiguration files:
5262b8f75c19Smrg$config_files
5263b8f75c19Smrg
5264b8f75c19SmrgConfiguration headers:
5265b8f75c19Smrg$config_headers
5266b8f75c19Smrg
5267b8f75c19SmrgConfiguration commands:
5268b8f75c19Smrg$config_commands
5269b8f75c19Smrg
52707e4fd55aSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5271b8f75c19Smrg
52727e4fd55aSmrg_ACEOF
52737e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52747e4fd55aSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5275b8f75c19Smrgac_cs_version="\\
52767e4fd55aSmrgxfindproxy config.status 1.0.2
52777e4fd55aSmrgconfigured by $0, generated by GNU Autoconf 2.68,
52787e4fd55aSmrg  with options \\"\$ac_cs_config\\"
5279b8f75c19Smrg
52807e4fd55aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
5281b8f75c19SmrgThis config.status script is free software; the Free Software Foundation
5282b8f75c19Smrggives unlimited permission to copy, distribute and modify it."
52837e4fd55aSmrg
52847e4fd55aSmrgac_pwd='$ac_pwd'
52857e4fd55aSmrgsrcdir='$srcdir'
52867e4fd55aSmrgINSTALL='$INSTALL'
52877e4fd55aSmrgMKDIR_P='$MKDIR_P'
52887e4fd55aSmrgAWK='$AWK'
52897e4fd55aSmrgtest -n "\$AWK" || AWK=awk
5290b8f75c19Smrg_ACEOF
5291b8f75c19Smrg
52927e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52937e4fd55aSmrg# The default lists apply if the user does not specify any file.
5294b8f75c19Smrgac_need_defaults=:
5295b8f75c19Smrgwhile test $# != 0
5296b8f75c19Smrgdo
5297b8f75c19Smrg  case $1 in
52987e4fd55aSmrg  --*=?*)
52997e4fd55aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
53007e4fd55aSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53017e4fd55aSmrg    ac_shift=:
53027e4fd55aSmrg    ;;
53037e4fd55aSmrg  --*=)
53047e4fd55aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
53057e4fd55aSmrg    ac_optarg=
5306b8f75c19Smrg    ac_shift=:
5307b8f75c19Smrg    ;;
53087e4fd55aSmrg  *)
5309b8f75c19Smrg    ac_option=$1
5310b8f75c19Smrg    ac_optarg=$2
5311b8f75c19Smrg    ac_shift=shift
5312b8f75c19Smrg    ;;
5313b8f75c19Smrg  esac
5314b8f75c19Smrg
5315b8f75c19Smrg  case $ac_option in
5316b8f75c19Smrg  # Handling of the options.
5317b8f75c19Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5318b8f75c19Smrg    ac_cs_recheck=: ;;
53197e4fd55aSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53207e4fd55aSmrg    $as_echo "$ac_cs_version"; exit ;;
53217e4fd55aSmrg  --config | --confi | --conf | --con | --co | --c )
53227e4fd55aSmrg    $as_echo "$ac_cs_config"; exit ;;
53237e4fd55aSmrg  --debug | --debu | --deb | --de | --d | -d )
5324b8f75c19Smrg    debug=: ;;
5325b8f75c19Smrg  --file | --fil | --fi | --f )
5326b8f75c19Smrg    $ac_shift
53277e4fd55aSmrg    case $ac_optarg in
53287e4fd55aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
53297e4fd55aSmrg    '') as_fn_error $? "missing file argument" ;;
53307e4fd55aSmrg    esac
53317e4fd55aSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5332b8f75c19Smrg    ac_need_defaults=false;;
5333b8f75c19Smrg  --header | --heade | --head | --hea )
5334b8f75c19Smrg    $ac_shift
53357e4fd55aSmrg    case $ac_optarg in
53367e4fd55aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
53377e4fd55aSmrg    esac
53387e4fd55aSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5339b8f75c19Smrg    ac_need_defaults=false;;
53407e4fd55aSmrg  --he | --h)
53417e4fd55aSmrg    # Conflict between --help and --header
53427e4fd55aSmrg    as_fn_error $? "ambiguous option: \`$1'
53437e4fd55aSmrgTry \`$0 --help' for more information.";;
53447e4fd55aSmrg  --help | --hel | -h )
53457e4fd55aSmrg    $as_echo "$ac_cs_usage"; exit ;;
5346b8f75c19Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5347b8f75c19Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5348b8f75c19Smrg    ac_cs_silent=: ;;
5349b8f75c19Smrg
5350b8f75c19Smrg  # This is an error.
53517e4fd55aSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
53527e4fd55aSmrgTry \`$0 --help' for more information." ;;
5353b8f75c19Smrg
53547e4fd55aSmrg  *) as_fn_append ac_config_targets " $1"
53557e4fd55aSmrg     ac_need_defaults=false ;;
5356b8f75c19Smrg
5357b8f75c19Smrg  esac
5358b8f75c19Smrg  shift
5359b8f75c19Smrgdone
5360b8f75c19Smrg
5361b8f75c19Smrgac_configure_extra_args=
5362b8f75c19Smrg
5363b8f75c19Smrgif $ac_cs_silent; then
5364b8f75c19Smrg  exec 6>/dev/null
5365b8f75c19Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5366b8f75c19Smrgfi
5367b8f75c19Smrg
5368b8f75c19Smrg_ACEOF
53697e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5370b8f75c19Smrgif \$ac_cs_recheck; then
53717e4fd55aSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53727e4fd55aSmrg  shift
53737e4fd55aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
53747e4fd55aSmrg  CONFIG_SHELL='$SHELL'
53757e4fd55aSmrg  export CONFIG_SHELL
53767e4fd55aSmrg  exec "\$@"
5377b8f75c19Smrgfi
5378b8f75c19Smrg
5379b8f75c19Smrg_ACEOF
53807e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53817e4fd55aSmrgexec 5>>config.log
53827e4fd55aSmrg{
53837e4fd55aSmrg  echo
53847e4fd55aSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53857e4fd55aSmrg## Running $as_me. ##
53867e4fd55aSmrg_ASBOX
53877e4fd55aSmrg  $as_echo "$ac_log"
53887e4fd55aSmrg} >&5
5389b8f75c19Smrg
53907e4fd55aSmrg_ACEOF
53917e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5392b8f75c19Smrg#
53937e4fd55aSmrg# INIT-COMMANDS
5394b8f75c19Smrg#
5395b8f75c19SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5396b8f75c19Smrg
5397b8f75c19Smrg_ACEOF
5398b8f75c19Smrg
53997e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5400b8f75c19Smrg
54017e4fd55aSmrg# Handling of arguments.
5402b8f75c19Smrgfor ac_config_target in $ac_config_targets
5403b8f75c19Smrgdo
54047e4fd55aSmrg  case $ac_config_target in
54057e4fd55aSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
54067e4fd55aSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
54077e4fd55aSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54087e4fd55aSmrg
54097e4fd55aSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5410b8f75c19Smrg  esac
5411b8f75c19Smrgdone
5412b8f75c19Smrg
54137e4fd55aSmrg
5414b8f75c19Smrg# If the user did not use the arguments to specify the items to instantiate,
5415b8f75c19Smrg# then the envvar interface is used.  Set only those that are not.
5416b8f75c19Smrg# We use the long form for the default assignment because of an extremely
5417b8f75c19Smrg# bizarre bug on SunOS 4.1.3.
5418b8f75c19Smrgif $ac_need_defaults; then
5419b8f75c19Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5420b8f75c19Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5421b8f75c19Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5422b8f75c19Smrgfi
5423b8f75c19Smrg
5424b8f75c19Smrg# Have a temporary directory for convenience.  Make it in the build tree
54257e4fd55aSmrg# simply because there is no reason against having it here, and in addition,
5426b8f75c19Smrg# creating and moving files from /tmp can sometimes cause problems.
54277e4fd55aSmrg# Hook for its removal unless debugging.
54287e4fd55aSmrg# Note that there is a small window in which the directory will not be cleaned:
54297e4fd55aSmrg# after its creation but before its name has been assigned to `$tmp'.
5430b8f75c19Smrg$debug ||
5431b8f75c19Smrg{
54327e4fd55aSmrg  tmp= ac_tmp=
54337e4fd55aSmrg  trap 'exit_status=$?
54347e4fd55aSmrg  : "${ac_tmp:=$tmp}"
54357e4fd55aSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
54367e4fd55aSmrg' 0
54377e4fd55aSmrg  trap 'as_fn_exit 1' 1 2 13 15
5438b8f75c19Smrg}
5439b8f75c19Smrg# Create a (secure) tmp directory for tmp files.
5440b8f75c19Smrg
5441b8f75c19Smrg{
54427e4fd55aSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54437e4fd55aSmrg  test -d "$tmp"
5444b8f75c19Smrg}  ||
5445b8f75c19Smrg{
54467e4fd55aSmrg  tmp=./conf$$-$RANDOM
54477e4fd55aSmrg  (umask 077 && mkdir "$tmp")
54487e4fd55aSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
54497e4fd55aSmrgac_tmp=$tmp
54507e4fd55aSmrg
54517e4fd55aSmrg# Set up the scripts for CONFIG_FILES section.
54527e4fd55aSmrg# No need to generate them if there are no CONFIG_FILES.
54537e4fd55aSmrg# This happens for instance with `./config.status config.h'.
54547e4fd55aSmrgif test -n "$CONFIG_FILES"; then
54557e4fd55aSmrg
54567e4fd55aSmrg
54577e4fd55aSmrgac_cr=`echo X | tr X '\015'`
54587e4fd55aSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
54597e4fd55aSmrg# But we know of no other shell where ac_cr would be empty at this
54607e4fd55aSmrg# point, so we can use a bashism as a fallback.
54617e4fd55aSmrgif test "x$ac_cr" = x; then
54627e4fd55aSmrg  eval ac_cr=\$\'\\r\'
54637e4fd55aSmrgfi
54647e4fd55aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
54657e4fd55aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
54667e4fd55aSmrg  ac_cs_awk_cr='\\r'
54677e4fd55aSmrgelse
54687e4fd55aSmrg  ac_cs_awk_cr=$ac_cr
54697e4fd55aSmrgfi
54707e4fd55aSmrg
54717e4fd55aSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
54727e4fd55aSmrg_ACEOF
54737e4fd55aSmrg
54747e4fd55aSmrg
54757e4fd55aSmrg{
54767e4fd55aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
54777e4fd55aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
54787e4fd55aSmrg  echo "_ACEOF"
54797e4fd55aSmrg} >conf$$subs.sh ||
54807e4fd55aSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
54817e4fd55aSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
54827e4fd55aSmrgac_delim='%!_!# '
54837e4fd55aSmrgfor ac_last_try in false false false false false :; do
54847e4fd55aSmrg  . ./conf$$subs.sh ||
54857e4fd55aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
54867e4fd55aSmrg
54877e4fd55aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
54887e4fd55aSmrg  if test $ac_delim_n = $ac_delim_num; then
54897e4fd55aSmrg    break
54907e4fd55aSmrg  elif $ac_last_try; then
54917e4fd55aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
54927e4fd55aSmrg  else
54937e4fd55aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54947e4fd55aSmrg  fi
54957e4fd55aSmrgdone
54967e4fd55aSmrgrm -f conf$$subs.sh
54977e4fd55aSmrg
54987e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54997e4fd55aSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
55007e4fd55aSmrg_ACEOF
55017e4fd55aSmrgsed -n '
55027e4fd55aSmrgh
55037e4fd55aSmrgs/^/S["/; s/!.*/"]=/
55047e4fd55aSmrgp
55057e4fd55aSmrgg
55067e4fd55aSmrgs/^[^!]*!//
55077e4fd55aSmrg:repl
55087e4fd55aSmrgt repl
55097e4fd55aSmrgs/'"$ac_delim"'$//
55107e4fd55aSmrgt delim
55117e4fd55aSmrg:nl
55127e4fd55aSmrgh
55137e4fd55aSmrgs/\(.\{148\}\)..*/\1/
55147e4fd55aSmrgt more1
55157e4fd55aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
55167e4fd55aSmrgp
55177e4fd55aSmrgn
55187e4fd55aSmrgb repl
55197e4fd55aSmrg:more1
55207e4fd55aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
55217e4fd55aSmrgp
55227e4fd55aSmrgg
55237e4fd55aSmrgs/.\{148\}//
55247e4fd55aSmrgt nl
55257e4fd55aSmrg:delim
55267e4fd55aSmrgh
55277e4fd55aSmrgs/\(.\{148\}\)..*/\1/
55287e4fd55aSmrgt more2
55297e4fd55aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
55307e4fd55aSmrgp
55317e4fd55aSmrgb
55327e4fd55aSmrg:more2
55337e4fd55aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
55347e4fd55aSmrgp
55357e4fd55aSmrgg
55367e4fd55aSmrgs/.\{148\}//
55377e4fd55aSmrgt delim
55387e4fd55aSmrg' <conf$$subs.awk | sed '
55397e4fd55aSmrg/^[^""]/{
55407e4fd55aSmrg  N
55417e4fd55aSmrg  s/\n//
55427e4fd55aSmrg}
55437e4fd55aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
55447e4fd55aSmrgrm -f conf$$subs.awk
55457e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55467e4fd55aSmrg_ACAWK
55477e4fd55aSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
55487e4fd55aSmrg  for (key in S) S_is_set[key] = 1
55497e4fd55aSmrg  FS = ""
55507e4fd55aSmrg
55517e4fd55aSmrg}
5552b8f75c19Smrg{
55537e4fd55aSmrg  line = $ 0
55547e4fd55aSmrg  nfields = split(line, field, "@")
55557e4fd55aSmrg  substed = 0
55567e4fd55aSmrg  len = length(field[1])
55577e4fd55aSmrg  for (i = 2; i < nfields; i++) {
55587e4fd55aSmrg    key = field[i]
55597e4fd55aSmrg    keylen = length(key)
55607e4fd55aSmrg    if (S_is_set[key]) {
55617e4fd55aSmrg      value = S[key]
55627e4fd55aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
55637e4fd55aSmrg      len += length(value) + length(field[++i])
55647e4fd55aSmrg      substed = 1
55657e4fd55aSmrg    } else
55667e4fd55aSmrg      len += 1 + keylen
55677e4fd55aSmrg  }
55687e4fd55aSmrg
55697e4fd55aSmrg  print line
5570b8f75c19Smrg}
5571b8f75c19Smrg
55727e4fd55aSmrg_ACAWK
55737e4fd55aSmrg_ACEOF
55747e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
55757e4fd55aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
55767e4fd55aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
55777e4fd55aSmrgelse
55787e4fd55aSmrg  cat
55797e4fd55aSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
55807e4fd55aSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5581b8f75c19Smrg_ACEOF
5582b8f75c19Smrg
55837e4fd55aSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
55847e4fd55aSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
55857e4fd55aSmrg# trailing colons and then remove the whole line if VPATH becomes empty
55867e4fd55aSmrg# (actually we leave an empty line to preserve line numbers).
55877e4fd55aSmrgif test "x$srcdir" = x.; then
55887e4fd55aSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
55897e4fd55aSmrgh
55907e4fd55aSmrgs///
55917e4fd55aSmrgs/^/:/
55927e4fd55aSmrgs/[	 ]*$/:/
55937e4fd55aSmrgs/:\$(srcdir):/:/g
55947e4fd55aSmrgs/:\${srcdir}:/:/g
55957e4fd55aSmrgs/:@srcdir@:/:/g
55967e4fd55aSmrgs/^:*//
55977e4fd55aSmrgs/:*$//
55987e4fd55aSmrgx
55997e4fd55aSmrgs/\(=[	 ]*\).*/\1/
56007e4fd55aSmrgG
56017e4fd55aSmrgs/\n//
56027e4fd55aSmrgs/^[^=]*=[	 ]*$//
56037e4fd55aSmrg}'
56047e4fd55aSmrgfi
5605b8f75c19Smrg
56067e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56077e4fd55aSmrgfi # test -n "$CONFIG_FILES"
5608b8f75c19Smrg
56097e4fd55aSmrg# Set up the scripts for CONFIG_HEADERS section.
56107e4fd55aSmrg# No need to generate them if there are no CONFIG_HEADERS.
56117e4fd55aSmrg# This happens for instance with `./config.status Makefile'.
56127e4fd55aSmrgif test -n "$CONFIG_HEADERS"; then
56137e4fd55aSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
56147e4fd55aSmrgBEGIN {
5615b8f75c19Smrg_ACEOF
5616b8f75c19Smrg
56177e4fd55aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
56187e4fd55aSmrg# here-document in config.status, that substitutes the proper values into
56197e4fd55aSmrg# config.h.in to produce config.h.
56207e4fd55aSmrg
56217e4fd55aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
56227e4fd55aSmrg# handling of long lines.
56237e4fd55aSmrgac_delim='%!_!# '
56247e4fd55aSmrgfor ac_last_try in false false :; do
56257e4fd55aSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
56267e4fd55aSmrg  if test -z "$ac_tt"; then
56277e4fd55aSmrg    break
56287e4fd55aSmrg  elif $ac_last_try; then
56297e4fd55aSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
56307e4fd55aSmrg  else
56317e4fd55aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5632b8f75c19Smrg  fi
56337e4fd55aSmrgdone
5634b8f75c19Smrg
56357e4fd55aSmrg# For the awk script, D is an array of macro values keyed by name,
56367e4fd55aSmrg# likewise P contains macro parameters if any.  Preserve backslash
56377e4fd55aSmrg# newline sequences.
56387e4fd55aSmrg
56397e4fd55aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
56407e4fd55aSmrgsed -n '
56417e4fd55aSmrgs/.\{148\}/&'"$ac_delim"'/g
56427e4fd55aSmrgt rset
56437e4fd55aSmrg:rset
56447e4fd55aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
56457e4fd55aSmrgt def
56467e4fd55aSmrgd
56477e4fd55aSmrg:def
56487e4fd55aSmrgs/\\$//
56497e4fd55aSmrgt bsnl
56507e4fd55aSmrgs/["\\]/\\&/g
56517e4fd55aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
56527e4fd55aSmrgD["\1"]=" \3"/p
56537e4fd55aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
56547e4fd55aSmrgd
56557e4fd55aSmrg:bsnl
56567e4fd55aSmrgs/["\\]/\\&/g
56577e4fd55aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
56587e4fd55aSmrgD["\1"]=" \3\\\\\\n"\\/p
56597e4fd55aSmrgt cont
56607e4fd55aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
56617e4fd55aSmrgt cont
56627e4fd55aSmrgd
56637e4fd55aSmrg:cont
56647e4fd55aSmrgn
56657e4fd55aSmrgs/.\{148\}/&'"$ac_delim"'/g
56667e4fd55aSmrgt clear
56677e4fd55aSmrg:clear
56687e4fd55aSmrgs/\\$//
56697e4fd55aSmrgt bsnlc
56707e4fd55aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
56717e4fd55aSmrgd
56727e4fd55aSmrg:bsnlc
56737e4fd55aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
56747e4fd55aSmrgb cont
56757e4fd55aSmrg' <confdefs.h | sed '
56767e4fd55aSmrgs/'"$ac_delim"'/"\\\
56777e4fd55aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
56787e4fd55aSmrg
56797e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56807e4fd55aSmrg  for (key in D) D_is_set[key] = 1
56817e4fd55aSmrg  FS = ""
56827e4fd55aSmrg}
56837e4fd55aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
56847e4fd55aSmrg  line = \$ 0
56857e4fd55aSmrg  split(line, arg, " ")
56867e4fd55aSmrg  if (arg[1] == "#") {
56877e4fd55aSmrg    defundef = arg[2]
56887e4fd55aSmrg    mac1 = arg[3]
56897e4fd55aSmrg  } else {
56907e4fd55aSmrg    defundef = substr(arg[1], 2)
56917e4fd55aSmrg    mac1 = arg[2]
56927e4fd55aSmrg  }
56937e4fd55aSmrg  split(mac1, mac2, "(") #)
56947e4fd55aSmrg  macro = mac2[1]
56957e4fd55aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
56967e4fd55aSmrg  if (D_is_set[macro]) {
56977e4fd55aSmrg    # Preserve the white space surrounding the "#".
56987e4fd55aSmrg    print prefix "define", macro P[macro] D[macro]
56997e4fd55aSmrg    next
57007e4fd55aSmrg  } else {
57017e4fd55aSmrg    # Replace #undef with comments.  This is necessary, for example,
57027e4fd55aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
57037e4fd55aSmrg    # on some systems where configure will not decide to define it.
57047e4fd55aSmrg    if (defundef == "undef") {
57057e4fd55aSmrg      print "/*", prefix defundef, macro, "*/"
57067e4fd55aSmrg      next
57077e4fd55aSmrg    }
57087e4fd55aSmrg  }
57097e4fd55aSmrg}
57107e4fd55aSmrg{ print }
57117e4fd55aSmrg_ACAWK
5712b8f75c19Smrg_ACEOF
57137e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57147e4fd55aSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
57157e4fd55aSmrgfi # test -n "$CONFIG_HEADERS"
57167e4fd55aSmrg
57177e4fd55aSmrg
57187e4fd55aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
57197e4fd55aSmrgshift
57207e4fd55aSmrgfor ac_tag
57217e4fd55aSmrgdo
57227e4fd55aSmrg  case $ac_tag in
57237e4fd55aSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
57247e4fd55aSmrg  esac
57257e4fd55aSmrg  case $ac_mode$ac_tag in
57267e4fd55aSmrg  :[FHL]*:*);;
57277e4fd55aSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
57287e4fd55aSmrg  :[FH]-) ac_tag=-:-;;
57297e4fd55aSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57307e4fd55aSmrg  esac
57317e4fd55aSmrg  ac_save_IFS=$IFS
57327e4fd55aSmrg  IFS=:
57337e4fd55aSmrg  set x $ac_tag
57347e4fd55aSmrg  IFS=$ac_save_IFS
57357e4fd55aSmrg  shift
57367e4fd55aSmrg  ac_file=$1
57377e4fd55aSmrg  shift
57387e4fd55aSmrg
57397e4fd55aSmrg  case $ac_mode in
57407e4fd55aSmrg  :L) ac_source=$1;;
57417e4fd55aSmrg  :[FH])
57427e4fd55aSmrg    ac_file_inputs=
57437e4fd55aSmrg    for ac_f
57447e4fd55aSmrg    do
57457e4fd55aSmrg      case $ac_f in
57467e4fd55aSmrg      -) ac_f="$ac_tmp/stdin";;
57477e4fd55aSmrg      *) # Look for the file first in the build tree, then in the source tree
57487e4fd55aSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
57497e4fd55aSmrg	 # because $ac_f cannot contain `:'.
57507e4fd55aSmrg	 test -f "$ac_f" ||
57517e4fd55aSmrg	   case $ac_f in
57527e4fd55aSmrg	   [\\/$]*) false;;
57537e4fd55aSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57547e4fd55aSmrg	   esac ||
57557e4fd55aSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
57567e4fd55aSmrg      esac
57577e4fd55aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57587e4fd55aSmrg      as_fn_append ac_file_inputs " '$ac_f'"
57597e4fd55aSmrg    done
57607e4fd55aSmrg
57617e4fd55aSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
57627e4fd55aSmrg    # use $as_me), people would be surprised to read:
57637e4fd55aSmrg    #    /* config.h.  Generated by config.status.  */
57647e4fd55aSmrg    configure_input='Generated from '`
57657e4fd55aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
57667e4fd55aSmrg	`' by configure.'
57677e4fd55aSmrg    if test x"$ac_file" != x-; then
57687e4fd55aSmrg      configure_input="$ac_file.  $configure_input"
57697e4fd55aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
57707e4fd55aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
57717e4fd55aSmrg    fi
57727e4fd55aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
57737e4fd55aSmrg    case $configure_input in #(
57747e4fd55aSmrg    *\&* | *\|* | *\\* )
57757e4fd55aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
57767e4fd55aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
57777e4fd55aSmrg    *) ac_sed_conf_input=$configure_input;;
57787e4fd55aSmrg    esac
57797e4fd55aSmrg
57807e4fd55aSmrg    case $ac_tag in
57817e4fd55aSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
57827e4fd55aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
57837e4fd55aSmrg    esac
57847e4fd55aSmrg    ;;
5785b8f75c19Smrg  esac
5786b8f75c19Smrg
57877e4fd55aSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
5788b8f75c19Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5789b8f75c19Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
5790b8f75c19Smrg	 X"$ac_file" : 'X\(//\)$' \| \
57917e4fd55aSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57927e4fd55aSmrg$as_echo X"$ac_file" |
57937e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57947e4fd55aSmrg	    s//\1/
57957e4fd55aSmrg	    q
57967e4fd55aSmrg	  }
57977e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
57987e4fd55aSmrg	    s//\1/
57997e4fd55aSmrg	    q
58007e4fd55aSmrg	  }
58017e4fd55aSmrg	  /^X\(\/\/\)$/{
58027e4fd55aSmrg	    s//\1/
58037e4fd55aSmrg	    q
58047e4fd55aSmrg	  }
58057e4fd55aSmrg	  /^X\(\/\).*/{
58067e4fd55aSmrg	    s//\1/
58077e4fd55aSmrg	    q
58087e4fd55aSmrg	  }
58097e4fd55aSmrg	  s/.*/./; q'`
58107e4fd55aSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
5811b8f75c19Smrg  ac_builddir=.
5812b8f75c19Smrg
58137e4fd55aSmrgcase "$ac_dir" in
58147e4fd55aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
58157e4fd55aSmrg*)
58167e4fd55aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
58177e4fd55aSmrg  # A ".." for each directory in $ac_dir_suffix.
58187e4fd55aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
58197e4fd55aSmrg  case $ac_top_builddir_sub in
58207e4fd55aSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
58217e4fd55aSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
58227e4fd55aSmrg  esac ;;
58237e4fd55aSmrgesac
58247e4fd55aSmrgac_abs_top_builddir=$ac_pwd
58257e4fd55aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
58267e4fd55aSmrg# for backward compatibility:
58277e4fd55aSmrgac_top_builddir=$ac_top_build_prefix
5828b8f75c19Smrg
5829b8f75c19Smrgcase $srcdir in
58307e4fd55aSmrg  .)  # We are building in place.
5831b8f75c19Smrg    ac_srcdir=.
58327e4fd55aSmrg    ac_top_srcdir=$ac_top_builddir_sub
58337e4fd55aSmrg    ac_abs_top_srcdir=$ac_pwd ;;
58347e4fd55aSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
5835b8f75c19Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
58367e4fd55aSmrg    ac_top_srcdir=$srcdir
58377e4fd55aSmrg    ac_abs_top_srcdir=$srcdir ;;
58387e4fd55aSmrg  *) # Relative name.
58397e4fd55aSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
58407e4fd55aSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
58417e4fd55aSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5842b8f75c19Smrgesac
58437e4fd55aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5844b8f75c19Smrg
5845b8f75c19Smrg
58467e4fd55aSmrg  case $ac_mode in
58477e4fd55aSmrg  :F)
58487e4fd55aSmrg  #
58497e4fd55aSmrg  # CONFIG_FILE
58507e4fd55aSmrg  #
5851b8f75c19Smrg
5852b8f75c19Smrg  case $INSTALL in
5853b8f75c19Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
58547e4fd55aSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
58557e4fd55aSmrg  esac
58567e4fd55aSmrg  ac_MKDIR_P=$MKDIR_P
58577e4fd55aSmrg  case $MKDIR_P in
58587e4fd55aSmrg  [\\/$]* | ?:[\\/]* ) ;;
58597e4fd55aSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5860b8f75c19Smrg  esac
58617e4fd55aSmrg_ACEOF
5862b8f75c19Smrg
58637e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58647e4fd55aSmrg# If the template does not know about datarootdir, expand it.
58657e4fd55aSmrg# FIXME: This hack should be removed a few years after 2.60.
58667e4fd55aSmrgac_datarootdir_hack=; ac_datarootdir_seen=
58677e4fd55aSmrgac_sed_dataroot='
58687e4fd55aSmrg/datarootdir/ {
58697e4fd55aSmrg  p
58707e4fd55aSmrg  q
58717e4fd55aSmrg}
58727e4fd55aSmrg/@datadir@/p
58737e4fd55aSmrg/@docdir@/p
58747e4fd55aSmrg/@infodir@/p
58757e4fd55aSmrg/@localedir@/p
58767e4fd55aSmrg/@mandir@/p'
58777e4fd55aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
58787e4fd55aSmrg*datarootdir*) ac_datarootdir_seen=yes;;
58797e4fd55aSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
58807e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
58817e4fd55aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
58827e4fd55aSmrg_ACEOF
58837e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58847e4fd55aSmrg  ac_datarootdir_hack='
58857e4fd55aSmrg  s&@datadir@&$datadir&g
58867e4fd55aSmrg  s&@docdir@&$docdir&g
58877e4fd55aSmrg  s&@infodir@&$infodir&g
58887e4fd55aSmrg  s&@localedir@&$localedir&g
58897e4fd55aSmrg  s&@mandir@&$mandir&g
58907e4fd55aSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
58917e4fd55aSmrgesac
5892b8f75c19Smrg_ACEOF
58937e4fd55aSmrg
58947e4fd55aSmrg# Neutralize VPATH when `$srcdir' = `.'.
58957e4fd55aSmrg# Shell code in configure.ac might set extrasub.
58967e4fd55aSmrg# FIXME: do we really want to maintain this feature?
58977e4fd55aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58987e4fd55aSmrgac_sed_extra="$ac_vpsub
5899b8f75c19Smrg$extrasub
5900b8f75c19Smrg_ACEOF
59017e4fd55aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5902b8f75c19Smrg:t
5903b8f75c19Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
59047e4fd55aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
59057e4fd55aSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
59067e4fd55aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
59077e4fd55aSmrgs&@srcdir@&$ac_srcdir&;t t
59087e4fd55aSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
59097e4fd55aSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
59107e4fd55aSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
59117e4fd55aSmrgs&@builddir@&$ac_builddir&;t t
59127e4fd55aSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
59137e4fd55aSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
59147e4fd55aSmrgs&@INSTALL@&$ac_INSTALL&;t t
59157e4fd55aSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
59167e4fd55aSmrg$ac_datarootdir_hack
59177e4fd55aSmrg"
59187e4fd55aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
59197e4fd55aSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
59207e4fd55aSmrg
59217e4fd55aSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
59227e4fd55aSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
59237e4fd55aSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
59247e4fd55aSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
59257e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
59267e4fd55aSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
59277e4fd55aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
59287e4fd55aSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
59297e4fd55aSmrg
59307e4fd55aSmrg  rm -f "$ac_tmp/stdin"
5931b8f75c19Smrg  case $ac_file in
59327e4fd55aSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
59337e4fd55aSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
59347e4fd55aSmrg  esac \
59357e4fd55aSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
59367e4fd55aSmrg ;;
59377e4fd55aSmrg  :H)
59387e4fd55aSmrg  #
59397e4fd55aSmrg  # CONFIG_HEADER
59407e4fd55aSmrg  #
5941b8f75c19Smrg  if test x"$ac_file" != x-; then
59427e4fd55aSmrg    {
59437e4fd55aSmrg      $as_echo "/* $configure_input  */" \
59447e4fd55aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
59457e4fd55aSmrg    } >"$ac_tmp/config.h" \
59467e4fd55aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
59477e4fd55aSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
59487e4fd55aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
59497e4fd55aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
5950b8f75c19Smrg    else
59517e4fd55aSmrg      rm -f "$ac_file"
59527e4fd55aSmrg      mv "$ac_tmp/config.h" "$ac_file" \
59537e4fd55aSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5954b8f75c19Smrg    fi
5955b8f75c19Smrg  else
59567e4fd55aSmrg    $as_echo "/* $configure_input  */" \
59577e4fd55aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
59587e4fd55aSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
5959b8f75c19Smrg  fi
59607e4fd55aSmrg# Compute "$ac_file"'s index in $config_headers.
59617e4fd55aSmrg_am_arg="$ac_file"
5962b8f75c19Smrg_am_stamp_count=1
5963b8f75c19Smrgfor _am_header in $config_headers :; do
5964b8f75c19Smrg  case $_am_header in
59657e4fd55aSmrg    $_am_arg | $_am_arg:* )
5966b8f75c19Smrg      break ;;
5967b8f75c19Smrg    * )
5968b8f75c19Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5969b8f75c19Smrg  esac
5970b8f75c19Smrgdone
59717e4fd55aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
59727e4fd55aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59737e4fd55aSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
59747e4fd55aSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
59757e4fd55aSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
59767e4fd55aSmrg$as_echo X"$_am_arg" |
59777e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59787e4fd55aSmrg	    s//\1/
59797e4fd55aSmrg	    q
59807e4fd55aSmrg	  }
59817e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
59827e4fd55aSmrg	    s//\1/
59837e4fd55aSmrg	    q
59847e4fd55aSmrg	  }
59857e4fd55aSmrg	  /^X\(\/\/\)$/{
59867e4fd55aSmrg	    s//\1/
59877e4fd55aSmrg	    q
59887e4fd55aSmrg	  }
59897e4fd55aSmrg	  /^X\(\/\).*/{
59907e4fd55aSmrg	    s//\1/
59917e4fd55aSmrg	    q
59927e4fd55aSmrg	  }
59937e4fd55aSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
59947e4fd55aSmrg ;;
5995b8f75c19Smrg
59967e4fd55aSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
59977e4fd55aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
59987e4fd55aSmrg ;;
59997e4fd55aSmrg  esac
6000b8f75c19Smrg
6001b8f75c19Smrg
60027e4fd55aSmrg  case $ac_file$ac_mode in
60037e4fd55aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
60047e4fd55aSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
60057e4fd55aSmrg  # are listed without --file.  Let's play safe and only enable the eval
60067e4fd55aSmrg  # if we detect the quoting.
60077e4fd55aSmrg  case $CONFIG_FILES in
60087e4fd55aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
60097e4fd55aSmrg  *)   set x $CONFIG_FILES ;;
60107e4fd55aSmrg  esac
60117e4fd55aSmrg  shift
60127e4fd55aSmrg  for mf
60137e4fd55aSmrg  do
60147e4fd55aSmrg    # Strip MF so we end up with the name of the file.
60157e4fd55aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
60167e4fd55aSmrg    # Check whether this is an Automake generated Makefile or not.
60177e4fd55aSmrg    # We used to match only the files named `Makefile.in', but
60187e4fd55aSmrg    # some people rename them; so instead we look at the file content.
60197e4fd55aSmrg    # Grep'ing the first line is not enough: some people post-process
60207e4fd55aSmrg    # each Makefile.in and add a new line on top of each file to say so.
60217e4fd55aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
60227e4fd55aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
60237e4fd55aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
60247e4fd55aSmrg      dirpart=`$as_dirname -- "$mf" ||
6025b8f75c19Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6026b8f75c19Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
6027b8f75c19Smrg	 X"$mf" : 'X\(//\)$' \| \
60287e4fd55aSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
60297e4fd55aSmrg$as_echo X"$mf" |
60307e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60317e4fd55aSmrg	    s//\1/
60327e4fd55aSmrg	    q
60337e4fd55aSmrg	  }
60347e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
60357e4fd55aSmrg	    s//\1/
60367e4fd55aSmrg	    q
60377e4fd55aSmrg	  }
60387e4fd55aSmrg	  /^X\(\/\/\)$/{
60397e4fd55aSmrg	    s//\1/
60407e4fd55aSmrg	    q
60417e4fd55aSmrg	  }
60427e4fd55aSmrg	  /^X\(\/\).*/{
60437e4fd55aSmrg	    s//\1/
60447e4fd55aSmrg	    q
60457e4fd55aSmrg	  }
60467e4fd55aSmrg	  s/.*/./; q'`
60477e4fd55aSmrg    else
60487e4fd55aSmrg      continue
60497e4fd55aSmrg    fi
60507e4fd55aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
60517e4fd55aSmrg    # from the Makefile without running `make'.
60527e4fd55aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
60537e4fd55aSmrg    test -z "$DEPDIR" && continue
60547e4fd55aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
60557e4fd55aSmrg    test -z "am__include" && continue
60567e4fd55aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
60577e4fd55aSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
60587e4fd55aSmrg    U=`sed -n 's/^U = //p' < "$mf"`
60597e4fd55aSmrg    # Find all dependency output files, they are included files with
60607e4fd55aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
60617e4fd55aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
60627e4fd55aSmrg    # expansion.
60637e4fd55aSmrg    for file in `sed -n "
60647e4fd55aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
60657e4fd55aSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
60667e4fd55aSmrg      # Make sure the directory exists.
60677e4fd55aSmrg      test -f "$dirpart/$file" && continue
60687e4fd55aSmrg      fdir=`$as_dirname -- "$file" ||
6069b8f75c19Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6070b8f75c19Smrg	 X"$file" : 'X\(//\)[^/]' \| \
6071b8f75c19Smrg	 X"$file" : 'X\(//\)$' \| \
60727e4fd55aSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
60737e4fd55aSmrg$as_echo X"$file" |
60747e4fd55aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60757e4fd55aSmrg	    s//\1/
60767e4fd55aSmrg	    q
60777e4fd55aSmrg	  }
60787e4fd55aSmrg	  /^X\(\/\/\)[^/].*/{
60797e4fd55aSmrg	    s//\1/
60807e4fd55aSmrg	    q
60817e4fd55aSmrg	  }
60827e4fd55aSmrg	  /^X\(\/\/\)$/{
60837e4fd55aSmrg	    s//\1/
60847e4fd55aSmrg	    q
60857e4fd55aSmrg	  }
60867e4fd55aSmrg	  /^X\(\/\).*/{
60877e4fd55aSmrg	    s//\1/
60887e4fd55aSmrg	    q
60897e4fd55aSmrg	  }
60907e4fd55aSmrg	  s/.*/./; q'`
60917e4fd55aSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
60927e4fd55aSmrg      # echo "creating $dirpart/$file"
60937e4fd55aSmrg      echo '# dummy' > "$dirpart/$file"
6094b8f75c19Smrg    done
6095b8f75c19Smrg  done
60967e4fd55aSmrg}
6097b8f75c19Smrg ;;
60987e4fd55aSmrg
6099b8f75c19Smrg  esac
61007e4fd55aSmrgdone # for ac_tag
6101b8f75c19Smrg
6102b8f75c19Smrg
61037e4fd55aSmrgas_fn_exit 0
6104b8f75c19Smrg_ACEOF
6105b8f75c19Smrgac_clean_files=$ac_clean_files_save
6106b8f75c19Smrg
61077e4fd55aSmrgtest $ac_write_fail = 0 ||
61087e4fd55aSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
61097e4fd55aSmrg
6110b8f75c19Smrg
6111b8f75c19Smrg# configure is writing to config.log, and then calls config.status.
6112b8f75c19Smrg# config.status does its own redirection, appending to config.log.
6113b8f75c19Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
6114b8f75c19Smrg# by configure, so config.status won't be able to write to it; its
6115b8f75c19Smrg# output is simply discarded.  So we exec the FD to /dev/null,
6116b8f75c19Smrg# effectively closing config.log, so it can be properly (re)opened and
6117b8f75c19Smrg# appended to by config.status.  When coming back to configure, we
6118b8f75c19Smrg# need to make the FD available again.
6119b8f75c19Smrgif test "$no_create" != yes; then
6120b8f75c19Smrg  ac_cs_success=:
6121b8f75c19Smrg  ac_config_status_args=
6122b8f75c19Smrg  test "$silent" = yes &&
6123b8f75c19Smrg    ac_config_status_args="$ac_config_status_args --quiet"
6124b8f75c19Smrg  exec 5>/dev/null
6125b8f75c19Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6126b8f75c19Smrg  exec 5>>config.log
6127b8f75c19Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6128b8f75c19Smrg  # would make configure fail if this is the last instruction.
61297e4fd55aSmrg  $ac_cs_success || as_fn_exit 1
61307e4fd55aSmrgfi
61317e4fd55aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
61327e4fd55aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
61337e4fd55aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6134b8f75c19Smrgfi
6135b8f75c19Smrg
6136