configure revision 6f5dd5c2
1a0195d5fSmrg#! /bin/sh
2a0195d5fSmrg# Guess values for system-dependent variables and create Makefiles.
36f5dd5c2Smrg# Generated by GNU Autoconf 2.65 for xset 1.2.0.
4a0195d5fSmrg#
5a0195d5fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a0195d5fSmrg#
76f5dd5c2Smrg#
8a0195d5fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
96f5dd5c2Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
106f5dd5c2Smrg# Inc.
116f5dd5c2Smrg#
126f5dd5c2Smrg#
13a0195d5fSmrg# This configure script is free software; the Free Software Foundation
14a0195d5fSmrg# gives unlimited permission to copy, distribute and modify it.
156f5dd5c2Smrg## -------------------- ##
166f5dd5c2Smrg## M4sh Initialization. ##
176f5dd5c2Smrg## -------------------- ##
18a0195d5fSmrg
19a0195d5fSmrg# Be more Bourne compatible
20a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
216f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22a0195d5fSmrg  emulate sh
23a0195d5fSmrg  NULLCMD=:
246600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
26a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
27a0195d5fSmrg  setopt NO_GLOB_SUBST
28a0195d5fSmrgelse
296f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
306f5dd5c2Smrg  *posix*) :
316f5dd5c2Smrg    set -o posix ;; #(
326f5dd5c2Smrg  *) :
336f5dd5c2Smrg     ;;
34a0195d5fSmrgesac
35a0195d5fSmrgfi
36a0195d5fSmrg
37a0195d5fSmrg
386600fe5bSmrgas_nl='
396600fe5bSmrg'
406600fe5bSmrgexport as_nl
416600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
426600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
436600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
446600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
456f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
466f5dd5c2Smrg# but without wasting forks for bash or zsh.
476f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
486f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
496f5dd5c2Smrg  as_echo='print -r --'
506f5dd5c2Smrg  as_echo_n='print -rn --'
516f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
526600fe5bSmrg  as_echo='printf %s\n'
536600fe5bSmrg  as_echo_n='printf %s'
546600fe5bSmrgelse
556600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
566600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
576600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
58a0195d5fSmrg  else
596600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
606600fe5bSmrg    as_echo_n_body='eval
616600fe5bSmrg      arg=$1;
626f5dd5c2Smrg      case $arg in #(
636600fe5bSmrg      *"$as_nl"*)
646600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
656600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
666600fe5bSmrg      esac;
676600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
686600fe5bSmrg    '
696600fe5bSmrg    export as_echo_n_body
706600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71a0195d5fSmrg  fi
726600fe5bSmrg  export as_echo_body
736600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
746600fe5bSmrgfi
756600fe5bSmrg
766600fe5bSmrg# The user is always right.
776600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
786600fe5bSmrg  PATH_SEPARATOR=:
796600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
806600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
816600fe5bSmrg      PATH_SEPARATOR=';'
826600fe5bSmrg  }
83a0195d5fSmrgfi
84a0195d5fSmrg
85a0195d5fSmrg
86a0195d5fSmrg# IFS
87a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88a0195d5fSmrg# there to prevent editors from complaining about space-tab.
89a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90a0195d5fSmrg# splitting by setting IFS to empty value.)
91a0195d5fSmrgIFS=" ""	$as_nl"
92a0195d5fSmrg
93a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
946f5dd5c2Smrgcase $0 in #((
95a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
96a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97a0195d5fSmrgfor as_dir in $PATH
98a0195d5fSmrgdo
99a0195d5fSmrg  IFS=$as_save_IFS
100a0195d5fSmrg  test -z "$as_dir" && as_dir=.
1016f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1026f5dd5c2Smrg  done
103a0195d5fSmrgIFS=$as_save_IFS
104a0195d5fSmrg
105a0195d5fSmrg     ;;
106a0195d5fSmrgesac
107a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
108a0195d5fSmrg# in which case we are not to be found in the path.
109a0195d5fSmrgif test "x$as_myself" = x; then
110a0195d5fSmrg  as_myself=$0
111a0195d5fSmrgfi
112a0195d5fSmrgif test ! -f "$as_myself"; then
1136600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1146f5dd5c2Smrg  exit 1
115a0195d5fSmrgfi
116a0195d5fSmrg
1176f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1186f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1196f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
1206f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
1216f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1226f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
1236f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124a0195d5fSmrgdone
125a0195d5fSmrgPS1='$ '
126a0195d5fSmrgPS2='> '
127a0195d5fSmrgPS4='+ '
128a0195d5fSmrg
129a0195d5fSmrg# NLS nuisances.
1306600fe5bSmrgLC_ALL=C
1316600fe5bSmrgexport LC_ALL
1326600fe5bSmrgLANGUAGE=C
1336600fe5bSmrgexport LANGUAGE
134a0195d5fSmrg
1356f5dd5c2Smrg# CDPATH.
1366f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1376f5dd5c2Smrg
1386f5dd5c2Smrgif test "x$CONFIG_SHELL" = x; then
1396f5dd5c2Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1406f5dd5c2Smrg  emulate sh
1416f5dd5c2Smrg  NULLCMD=:
1426f5dd5c2Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1436f5dd5c2Smrg  # is contrary to our usage.  Disable this feature.
1446f5dd5c2Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1456f5dd5c2Smrg  setopt NO_GLOB_SUBST
1466f5dd5c2Smrgelse
1476f5dd5c2Smrg  case \`(set -o) 2>/dev/null\` in #(
1486f5dd5c2Smrg  *posix*) :
1496f5dd5c2Smrg    set -o posix ;; #(
1506f5dd5c2Smrg  *) :
1516f5dd5c2Smrg     ;;
1526f5dd5c2Smrgesac
1536f5dd5c2Smrgfi
1546f5dd5c2Smrg"
1556f5dd5c2Smrg  as_required="as_fn_return () { (exit \$1); }
1566f5dd5c2Smrgas_fn_success () { as_fn_return 0; }
1576f5dd5c2Smrgas_fn_failure () { as_fn_return 1; }
1586f5dd5c2Smrgas_fn_ret_success () { return 0; }
1596f5dd5c2Smrgas_fn_ret_failure () { return 1; }
1606f5dd5c2Smrg
1616f5dd5c2Smrgexitcode=0
1626f5dd5c2Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1636f5dd5c2Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1646f5dd5c2Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1656f5dd5c2Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1666f5dd5c2Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1676f5dd5c2Smrg
1686f5dd5c2Smrgelse
1696f5dd5c2Smrg  exitcode=1; echo positional parameters were not saved.
1706f5dd5c2Smrgfi
1716f5dd5c2Smrgtest x\$exitcode = x0 || exit 1"
1726f5dd5c2Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1736f5dd5c2Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1746f5dd5c2Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1756f5dd5c2Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1766f5dd5c2Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1776f5dd5c2Smrg  if (eval "$as_required") 2>/dev/null; then :
1786f5dd5c2Smrg  as_have_required=yes
1796f5dd5c2Smrgelse
1806f5dd5c2Smrg  as_have_required=no
1816f5dd5c2Smrgfi
1826f5dd5c2Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1836f5dd5c2Smrg
1846f5dd5c2Smrgelse
1856f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866f5dd5c2Smrgas_found=false
1876f5dd5c2Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1886f5dd5c2Smrgdo
1896f5dd5c2Smrg  IFS=$as_save_IFS
1906f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
1916f5dd5c2Smrg  as_found=:
1926f5dd5c2Smrg  case $as_dir in #(
1936f5dd5c2Smrg	 /*)
1946f5dd5c2Smrg	   for as_base in sh bash ksh sh5; do
1956f5dd5c2Smrg	     # Try only shells that exist, to save several forks.
1966f5dd5c2Smrg	     as_shell=$as_dir/$as_base
1976f5dd5c2Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1986f5dd5c2Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
1996f5dd5c2Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2006f5dd5c2Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2016f5dd5c2Smrg  break 2
2026f5dd5c2Smrgfi
2036f5dd5c2Smrgfi
2046f5dd5c2Smrg	   done;;
2056f5dd5c2Smrg       esac
2066f5dd5c2Smrg  as_found=false
2076f5dd5c2Smrgdone
2086f5dd5c2Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2096f5dd5c2Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2106f5dd5c2Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2116f5dd5c2Smrgfi; }
2126f5dd5c2SmrgIFS=$as_save_IFS
2136f5dd5c2Smrg
2146f5dd5c2Smrg
2156f5dd5c2Smrg      if test "x$CONFIG_SHELL" != x; then :
2166f5dd5c2Smrg  # We cannot yet assume a decent shell, so we have to provide a
2176f5dd5c2Smrg	# neutralization value for shells without unset; and this also
2186f5dd5c2Smrg	# works around shells that cannot unset nonexistent variables.
2196f5dd5c2Smrg	BASH_ENV=/dev/null
2206f5dd5c2Smrg	ENV=/dev/null
2216f5dd5c2Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2226f5dd5c2Smrg	export CONFIG_SHELL
2236f5dd5c2Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
2246f5dd5c2Smrgfi
2256f5dd5c2Smrg
2266f5dd5c2Smrg    if test x$as_have_required = xno; then :
2276f5dd5c2Smrg  $as_echo "$0: This script requires a shell more modern than all"
2286f5dd5c2Smrg  $as_echo "$0: the shells that I found on your system."
2296f5dd5c2Smrg  if test x${ZSH_VERSION+set} = xset ; then
2306f5dd5c2Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2316f5dd5c2Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2326f5dd5c2Smrg  else
2336f5dd5c2Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2346f5dd5c2Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2356f5dd5c2Smrg$0: about your system, including any error possibly output
2366f5dd5c2Smrg$0: before this message. Then install a modern shell, or
2376f5dd5c2Smrg$0: manually run the script under such a shell if you do
2386f5dd5c2Smrg$0: have one."
2396f5dd5c2Smrg  fi
2406f5dd5c2Smrg  exit 1
2416f5dd5c2Smrgfi
2426f5dd5c2Smrgfi
2436f5dd5c2Smrgfi
2446f5dd5c2SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2456f5dd5c2Smrgexport SHELL
2466f5dd5c2Smrg# Unset more variables known to interfere with behavior of common tools.
2476f5dd5c2SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2486f5dd5c2Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2496f5dd5c2Smrg
2506f5dd5c2Smrg## --------------------- ##
2516f5dd5c2Smrg## M4sh Shell Functions. ##
2526f5dd5c2Smrg## --------------------- ##
2536f5dd5c2Smrg# as_fn_unset VAR
2546f5dd5c2Smrg# ---------------
2556f5dd5c2Smrg# Portably unset VAR.
2566f5dd5c2Smrgas_fn_unset ()
2576f5dd5c2Smrg{
2586f5dd5c2Smrg  { eval $1=; unset $1;}
2596f5dd5c2Smrg}
2606f5dd5c2Smrgas_unset=as_fn_unset
2616f5dd5c2Smrg
2626f5dd5c2Smrg# as_fn_set_status STATUS
2636f5dd5c2Smrg# -----------------------
2646f5dd5c2Smrg# Set $? to STATUS, without forking.
2656f5dd5c2Smrgas_fn_set_status ()
2666f5dd5c2Smrg{
2676f5dd5c2Smrg  return $1
2686f5dd5c2Smrg} # as_fn_set_status
2696f5dd5c2Smrg
2706f5dd5c2Smrg# as_fn_exit STATUS
2716f5dd5c2Smrg# -----------------
2726f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2736f5dd5c2Smrgas_fn_exit ()
2746f5dd5c2Smrg{
2756f5dd5c2Smrg  set +e
2766f5dd5c2Smrg  as_fn_set_status $1
2776f5dd5c2Smrg  exit $1
2786f5dd5c2Smrg} # as_fn_exit
2796f5dd5c2Smrg
2806f5dd5c2Smrg# as_fn_mkdir_p
2816f5dd5c2Smrg# -------------
2826f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
2836f5dd5c2Smrgas_fn_mkdir_p ()
2846f5dd5c2Smrg{
2856f5dd5c2Smrg
2866f5dd5c2Smrg  case $as_dir in #(
2876f5dd5c2Smrg  -*) as_dir=./$as_dir;;
2886f5dd5c2Smrg  esac
2896f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2906f5dd5c2Smrg    as_dirs=
2916f5dd5c2Smrg    while :; do
2926f5dd5c2Smrg      case $as_dir in #(
2936f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2946f5dd5c2Smrg      *) as_qdir=$as_dir;;
2956f5dd5c2Smrg      esac
2966f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
2976f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
2986f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2996f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3006f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3016f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3026f5dd5c2Smrg$as_echo X"$as_dir" |
3036f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3046f5dd5c2Smrg	    s//\1/
3056f5dd5c2Smrg	    q
3066f5dd5c2Smrg	  }
3076f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
3086f5dd5c2Smrg	    s//\1/
3096f5dd5c2Smrg	    q
3106f5dd5c2Smrg	  }
3116f5dd5c2Smrg	  /^X\(\/\/\)$/{
3126f5dd5c2Smrg	    s//\1/
3136f5dd5c2Smrg	    q
3146f5dd5c2Smrg	  }
3156f5dd5c2Smrg	  /^X\(\/\).*/{
3166f5dd5c2Smrg	    s//\1/
3176f5dd5c2Smrg	    q
3186f5dd5c2Smrg	  }
3196f5dd5c2Smrg	  s/.*/./; q'`
3206f5dd5c2Smrg      test -d "$as_dir" && break
3216f5dd5c2Smrg    done
3226f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3236f5dd5c2Smrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3246f5dd5c2Smrg
3256f5dd5c2Smrg
3266f5dd5c2Smrg} # as_fn_mkdir_p
3276f5dd5c2Smrg# as_fn_append VAR VALUE
3286f5dd5c2Smrg# ----------------------
3296f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3306f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
3316f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
3326f5dd5c2Smrg# implementations.
3336f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3346f5dd5c2Smrg  eval 'as_fn_append ()
3356f5dd5c2Smrg  {
3366f5dd5c2Smrg    eval $1+=\$2
3376f5dd5c2Smrg  }'
3386f5dd5c2Smrgelse
3396f5dd5c2Smrg  as_fn_append ()
3406f5dd5c2Smrg  {
3416f5dd5c2Smrg    eval $1=\$$1\$2
3426f5dd5c2Smrg  }
3436f5dd5c2Smrgfi # as_fn_append
3446f5dd5c2Smrg
3456f5dd5c2Smrg# as_fn_arith ARG...
3466f5dd5c2Smrg# ------------------
3476f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3486f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3496f5dd5c2Smrg# must be portable across $(()) and expr.
3506f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3516f5dd5c2Smrg  eval 'as_fn_arith ()
3526f5dd5c2Smrg  {
3536f5dd5c2Smrg    as_val=$(( $* ))
3546f5dd5c2Smrg  }'
3556f5dd5c2Smrgelse
3566f5dd5c2Smrg  as_fn_arith ()
3576f5dd5c2Smrg  {
3586f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
3596f5dd5c2Smrg  }
3606f5dd5c2Smrgfi # as_fn_arith
3616f5dd5c2Smrg
3626f5dd5c2Smrg
3636f5dd5c2Smrg# as_fn_error ERROR [LINENO LOG_FD]
3646f5dd5c2Smrg# ---------------------------------
3656f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3666f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3676f5dd5c2Smrg# script with status $?, using 1 if that was 0.
3686f5dd5c2Smrgas_fn_error ()
3696f5dd5c2Smrg{
3706f5dd5c2Smrg  as_status=$?; test $as_status -eq 0 && as_status=1
3716f5dd5c2Smrg  if test "$3"; then
3726f5dd5c2Smrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3736f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3746f5dd5c2Smrg  fi
3756f5dd5c2Smrg  $as_echo "$as_me: error: $1" >&2
3766f5dd5c2Smrg  as_fn_exit $as_status
3776f5dd5c2Smrg} # as_fn_error
3786f5dd5c2Smrg
379a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
380a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381a0195d5fSmrg  as_expr=expr
382a0195d5fSmrgelse
383a0195d5fSmrg  as_expr=false
384a0195d5fSmrgfi
385a0195d5fSmrg
386a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387a0195d5fSmrg  as_basename=basename
388a0195d5fSmrgelse
389a0195d5fSmrg  as_basename=false
390a0195d5fSmrgfi
391a0195d5fSmrg
3926f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3936f5dd5c2Smrg  as_dirname=dirname
3946f5dd5c2Smrgelse
3956f5dd5c2Smrg  as_dirname=false
3966f5dd5c2Smrgfi
397a0195d5fSmrg
398a0195d5fSmrgas_me=`$as_basename -- "$0" ||
399a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
401a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4026600fe5bSmrg$as_echo X/"$0" |
403a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
404a0195d5fSmrg	    s//\1/
405a0195d5fSmrg	    q
406a0195d5fSmrg	  }
407a0195d5fSmrg	  /^X\/\(\/\/\)$/{
408a0195d5fSmrg	    s//\1/
409a0195d5fSmrg	    q
410a0195d5fSmrg	  }
411a0195d5fSmrg	  /^X\/\(\/\).*/{
412a0195d5fSmrg	    s//\1/
413a0195d5fSmrg	    q
414a0195d5fSmrg	  }
415a0195d5fSmrg	  s/.*/./; q'`
416a0195d5fSmrg
4176f5dd5c2Smrg# Avoid depending upon Character Ranges.
4186f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4196f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4206f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4216f5dd5c2Smrgas_cr_digits='0123456789'
4226f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
423a0195d5fSmrg
424a0195d5fSmrg
4256f5dd5c2Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4266f5dd5c2Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4276f5dd5c2Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4286f5dd5c2Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4296f5dd5c2Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4306f5dd5c2Smrg  sed -n '
4316f5dd5c2Smrg    p
4326f5dd5c2Smrg    /[$]LINENO/=
4336f5dd5c2Smrg  ' <$as_myself |
4346f5dd5c2Smrg    sed '
4356f5dd5c2Smrg      s/[$]LINENO.*/&-/
4366f5dd5c2Smrg      t lineno
4376f5dd5c2Smrg      b
4386f5dd5c2Smrg      :lineno
4396f5dd5c2Smrg      N
4406f5dd5c2Smrg      :loop
4416f5dd5c2Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4426f5dd5c2Smrg      t loop
4436f5dd5c2Smrg      s/-\n.*//
4446f5dd5c2Smrg    ' >$as_me.lineno &&
4456f5dd5c2Smrg  chmod +x "$as_me.lineno" ||
4466f5dd5c2Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447a0195d5fSmrg
4486f5dd5c2Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4496f5dd5c2Smrg  # (the dirname of $[0] is not the place where we might find the
4506f5dd5c2Smrg  # original and so on.  Autoconf is especially sensitive to this).
4516f5dd5c2Smrg  . "./$as_me.lineno"
4526f5dd5c2Smrg  # Exit status is that of the last command.
4536f5dd5c2Smrg  exit
454a0195d5fSmrg}
455a0195d5fSmrg
4566f5dd5c2SmrgECHO_C= ECHO_N= ECHO_T=
4576f5dd5c2Smrgcase `echo -n x` in #(((((
4586f5dd5c2Smrg-n*)
4596f5dd5c2Smrg  case `echo 'xy\c'` in
4606f5dd5c2Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4616f5dd5c2Smrg  xy)  ECHO_C='\c';;
4626f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4636f5dd5c2Smrg       ECHO_T='	';;
4646f5dd5c2Smrg  esac;;
4656f5dd5c2Smrg*)
4666f5dd5c2Smrg  ECHO_N='-n';;
4676f5dd5c2Smrgesac
468a0195d5fSmrg
4696f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.file
4706f5dd5c2Smrgif test -d conf$$.dir; then
4716f5dd5c2Smrg  rm -f conf$$.dir/conf$$.file
4726f5dd5c2Smrgelse
4736f5dd5c2Smrg  rm -f conf$$.dir
4746f5dd5c2Smrg  mkdir conf$$.dir 2>/dev/null
475a0195d5fSmrgfi
4766f5dd5c2Smrgif (echo >conf$$.file) 2>/dev/null; then
4776f5dd5c2Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4786f5dd5c2Smrg    as_ln_s='ln -s'
4796f5dd5c2Smrg    # ... but there are two gotchas:
4806f5dd5c2Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4816f5dd5c2Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4826f5dd5c2Smrg    # In both cases, we have to default to `cp -p'.
4836f5dd5c2Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4846f5dd5c2Smrg      as_ln_s='cp -p'
4856f5dd5c2Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4866f5dd5c2Smrg    as_ln_s=ln
4876f5dd5c2Smrg  else
4886f5dd5c2Smrg    as_ln_s='cp -p'
4896f5dd5c2Smrg  fi
490a0195d5fSmrgelse
4916f5dd5c2Smrg  as_ln_s='cp -p'
492a0195d5fSmrgfi
4936f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4946f5dd5c2Smrgrmdir conf$$.dir 2>/dev/null
495a0195d5fSmrg
4966f5dd5c2Smrgif mkdir -p . 2>/dev/null; then
4976f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
4986f5dd5c2Smrgelse
4996f5dd5c2Smrg  test -d ./-p && rmdir ./-p
5006f5dd5c2Smrg  as_mkdir_p=false
501a0195d5fSmrgfi
502a0195d5fSmrg
5036f5dd5c2Smrgif test -x / >/dev/null 2>&1; then
5046f5dd5c2Smrg  as_test_x='test -x'
505a0195d5fSmrgelse
5066f5dd5c2Smrg  if ls -dL / >/dev/null 2>&1; then
5076f5dd5c2Smrg    as_ls_L_option=L
5086f5dd5c2Smrg  else
5096f5dd5c2Smrg    as_ls_L_option=
5106f5dd5c2Smrg  fi
5116f5dd5c2Smrg  as_test_x='
5126f5dd5c2Smrg    eval sh -c '\''
5136f5dd5c2Smrg      if test -d "$1"; then
5146f5dd5c2Smrg	test -d "$1/.";
5156f5dd5c2Smrg      else
5166f5dd5c2Smrg	case $1 in #(
5176f5dd5c2Smrg	-*)set "./$1";;
5186f5dd5c2Smrg	esac;
5196f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5206f5dd5c2Smrg	???[sx]*):;;*)false;;esac;fi
5216f5dd5c2Smrg    '\'' sh
5226f5dd5c2Smrg  '
523a0195d5fSmrgfi
5246f5dd5c2Smrgas_executable_p=$as_test_x
525a0195d5fSmrg
5266f5dd5c2Smrg# Sed expression to map a string onto a valid CPP name.
5276f5dd5c2Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528a0195d5fSmrg
5296f5dd5c2Smrg# Sed expression to map a string onto a valid variable name.
5306f5dd5c2Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531a0195d5fSmrg
532a0195d5fSmrg
5336f5dd5c2Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5346f5dd5c2Smrgexec 6>&1
535a0195d5fSmrg
536a0195d5fSmrg# Name of the host.
537a0195d5fSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538a0195d5fSmrg# so uname gets run too.
539a0195d5fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540a0195d5fSmrg
541a0195d5fSmrg#
542a0195d5fSmrg# Initializations.
543a0195d5fSmrg#
544a0195d5fSmrgac_default_prefix=/usr/local
545a0195d5fSmrgac_clean_files=
546a0195d5fSmrgac_config_libobj_dir=.
547a0195d5fSmrgLIBOBJS=
548a0195d5fSmrgcross_compiling=no
549a0195d5fSmrgsubdirs=
550a0195d5fSmrgMFLAGS=
551a0195d5fSmrgMAKEFLAGS=
552a0195d5fSmrg
553a0195d5fSmrg# Identity of this package.
554a0195d5fSmrgPACKAGE_NAME='xset'
555a0195d5fSmrgPACKAGE_TARNAME='xset'
5566f5dd5c2SmrgPACKAGE_VERSION='1.2.0'
5576f5dd5c2SmrgPACKAGE_STRING='xset 1.2.0'
558a0195d5fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5596f5dd5c2SmrgPACKAGE_URL=''
560a0195d5fSmrg
5616600fe5bSmrg# Factoring default headers for most tests.
5626600fe5bSmrgac_includes_default="\
5636600fe5bSmrg#include <stdio.h>
5646600fe5bSmrg#ifdef HAVE_SYS_TYPES_H
5656600fe5bSmrg# include <sys/types.h>
5666600fe5bSmrg#endif
5676600fe5bSmrg#ifdef HAVE_SYS_STAT_H
5686600fe5bSmrg# include <sys/stat.h>
5696600fe5bSmrg#endif
5706600fe5bSmrg#ifdef STDC_HEADERS
5716600fe5bSmrg# include <stdlib.h>
5726600fe5bSmrg# include <stddef.h>
5736600fe5bSmrg#else
5746600fe5bSmrg# ifdef HAVE_STDLIB_H
5756600fe5bSmrg#  include <stdlib.h>
5766600fe5bSmrg# endif
5776600fe5bSmrg#endif
5786600fe5bSmrg#ifdef HAVE_STRING_H
5796600fe5bSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5806600fe5bSmrg#  include <memory.h>
5816600fe5bSmrg# endif
5826600fe5bSmrg# include <string.h>
5836600fe5bSmrg#endif
5846600fe5bSmrg#ifdef HAVE_STRINGS_H
5856600fe5bSmrg# include <strings.h>
5866600fe5bSmrg#endif
5876600fe5bSmrg#ifdef HAVE_INTTYPES_H
5886600fe5bSmrg# include <inttypes.h>
5896600fe5bSmrg#endif
5906600fe5bSmrg#ifdef HAVE_STDINT_H
5916600fe5bSmrg# include <stdint.h>
5926600fe5bSmrg#endif
5936600fe5bSmrg#ifdef HAVE_UNISTD_H
5946600fe5bSmrg# include <unistd.h>
5956600fe5bSmrg#endif"
5966600fe5bSmrg
5976600fe5bSmrgac_subst_vars='am__EXEEXT_FALSE
5986600fe5bSmrgam__EXEEXT_TRUE
5996600fe5bSmrgLTLIBOBJS
6006600fe5bSmrgLIBOBJS
6016600fe5bSmrgSET_FONTCACHE_LIBS
6026600fe5bSmrgSET_FONTCACHE_CFLAGS
6036600fe5bSmrgSET_XF86MISC_LIBS
6046600fe5bSmrgSET_XF86MISC_CFLAGS
6056600fe5bSmrgSET_XKB_LIBS
6066600fe5bSmrgSET_XKB_CFLAGS
6076600fe5bSmrgSET_XEXT_LIBS
6086600fe5bSmrgSET_XEXT_CFLAGS
6096600fe5bSmrgSET_X11_LIBS
6106600fe5bSmrgSET_X11_CFLAGS
6116600fe5bSmrgXSET_LIBS
6126600fe5bSmrgXSET_CFLAGS
6136f5dd5c2SmrgAM_BACKSLASH
6146f5dd5c2SmrgAM_DEFAULT_VERBOSITY
6156f5dd5c2SmrgMAN_SUBSTS
6166f5dd5c2SmrgXORG_MAN_PAGE
617a0195d5fSmrgADMIN_MAN_DIR
6186600fe5bSmrgDRIVER_MAN_DIR
6196600fe5bSmrgMISC_MAN_DIR
6206600fe5bSmrgFILE_MAN_DIR
6216600fe5bSmrgLIB_MAN_DIR
6226600fe5bSmrgAPP_MAN_DIR
6236600fe5bSmrgADMIN_MAN_SUFFIX
6246600fe5bSmrgDRIVER_MAN_SUFFIX
6256600fe5bSmrgMISC_MAN_SUFFIX
6266600fe5bSmrgFILE_MAN_SUFFIX
6276600fe5bSmrgLIB_MAN_SUFFIX
6286600fe5bSmrgAPP_MAN_SUFFIX
6296f5dd5c2SmrgSED
6306600fe5bSmrghost_os
6316600fe5bSmrghost_vendor
6326600fe5bSmrghost_cpu
6336600fe5bSmrghost
6346600fe5bSmrgbuild_os
6356600fe5bSmrgbuild_vendor
6366600fe5bSmrgbuild_cpu
6376600fe5bSmrgbuild
6386f5dd5c2SmrgINSTALL_CMD
6396f5dd5c2SmrgPKG_CONFIG
6406600fe5bSmrgCHANGELOG_CMD
6416600fe5bSmrgCWARNFLAGS
6426600fe5bSmrgEGREP
6436600fe5bSmrgGREP
6446600fe5bSmrgCPP
6456600fe5bSmrgam__fastdepCC_FALSE
6466600fe5bSmrgam__fastdepCC_TRUE
6476600fe5bSmrgCCDEPMODE
6486600fe5bSmrgAMDEPBACKSLASH
6496600fe5bSmrgAMDEP_FALSE
6506600fe5bSmrgAMDEP_TRUE
6516600fe5bSmrgam__quote
6526600fe5bSmrgam__include
6536600fe5bSmrgDEPDIR
6546600fe5bSmrgOBJEXT
6556600fe5bSmrgEXEEXT
6566600fe5bSmrgac_ct_CC
6576600fe5bSmrgCPPFLAGS
6586600fe5bSmrgLDFLAGS
6596600fe5bSmrgCFLAGS
6606600fe5bSmrgCC
6616600fe5bSmrgMAINT
6626600fe5bSmrgMAINTAINER_MODE_FALSE
6636600fe5bSmrgMAINTAINER_MODE_TRUE
6646600fe5bSmrgam__untar
6656600fe5bSmrgam__tar
6666600fe5bSmrgAMTAR
6676600fe5bSmrgam__leading_dot
6686600fe5bSmrgSET_MAKE
6696600fe5bSmrgAWK
6706600fe5bSmrgmkdir_p
6716600fe5bSmrgMKDIR_P
6726600fe5bSmrgINSTALL_STRIP_PROGRAM
6736600fe5bSmrgSTRIP
6746600fe5bSmrginstall_sh
6756600fe5bSmrgMAKEINFO
6766600fe5bSmrgAUTOHEADER
6776600fe5bSmrgAUTOMAKE
6786600fe5bSmrgAUTOCONF
6796600fe5bSmrgACLOCAL
6806600fe5bSmrgVERSION
6816600fe5bSmrgPACKAGE
6826600fe5bSmrgCYGPATH_W
6836600fe5bSmrgam__isrc
6846600fe5bSmrgINSTALL_DATA
6856600fe5bSmrgINSTALL_SCRIPT
6866600fe5bSmrgINSTALL_PROGRAM
6876600fe5bSmrgtarget_alias
6886600fe5bSmrghost_alias
6896600fe5bSmrgbuild_alias
6906600fe5bSmrgLIBS
6916600fe5bSmrgECHO_T
6926600fe5bSmrgECHO_N
6936600fe5bSmrgECHO_C
6946600fe5bSmrgDEFS
6956600fe5bSmrgmandir
6966600fe5bSmrglocaledir
6976600fe5bSmrglibdir
6986600fe5bSmrgpsdir
6996600fe5bSmrgpdfdir
7006600fe5bSmrgdvidir
7016600fe5bSmrghtmldir
7026600fe5bSmrginfodir
7036600fe5bSmrgdocdir
7046600fe5bSmrgoldincludedir
7056600fe5bSmrgincludedir
7066600fe5bSmrglocalstatedir
7076600fe5bSmrgsharedstatedir
7086600fe5bSmrgsysconfdir
7096600fe5bSmrgdatadir
7106600fe5bSmrgdatarootdir
7116600fe5bSmrglibexecdir
7126600fe5bSmrgsbindir
7136600fe5bSmrgbindir
7146600fe5bSmrgprogram_transform_name
7156600fe5bSmrgprefix
7166600fe5bSmrgexec_prefix
7176f5dd5c2SmrgPACKAGE_URL
7186600fe5bSmrgPACKAGE_BUGREPORT
7196600fe5bSmrgPACKAGE_STRING
7206600fe5bSmrgPACKAGE_VERSION
7216600fe5bSmrgPACKAGE_TARNAME
7226600fe5bSmrgPACKAGE_NAME
7236600fe5bSmrgPATH_SEPARATOR
7246600fe5bSmrgSHELL'
725a0195d5fSmrgac_subst_files=''
7266600fe5bSmrgac_user_opts='
7276600fe5bSmrgenable_option_checking
7286600fe5bSmrgenable_maintainer_mode
7296600fe5bSmrgenable_dependency_tracking
7306600fe5bSmrgenable_strict_compilation
7316f5dd5c2Smrgenable_silent_rules
7326f5dd5c2Smrgwith_xf86misc
7336f5dd5c2Smrgwith_fontcache
7346600fe5bSmrg'
735a0195d5fSmrg      ac_precious_vars='build_alias
736a0195d5fSmrghost_alias
737a0195d5fSmrgtarget_alias
738a0195d5fSmrgCC
739a0195d5fSmrgCFLAGS
740a0195d5fSmrgLDFLAGS
741a0195d5fSmrgLIBS
742a0195d5fSmrgCPPFLAGS
7436600fe5bSmrgCPP
744a0195d5fSmrgPKG_CONFIG
745a0195d5fSmrgXSET_CFLAGS
746a0195d5fSmrgXSET_LIBS
747a0195d5fSmrgSET_X11_CFLAGS
748a0195d5fSmrgSET_X11_LIBS
749a0195d5fSmrgSET_XEXT_CFLAGS
750a0195d5fSmrgSET_XEXT_LIBS
751a0195d5fSmrgSET_XKB_CFLAGS
752a0195d5fSmrgSET_XKB_LIBS
753a0195d5fSmrgSET_XF86MISC_CFLAGS
754a0195d5fSmrgSET_XF86MISC_LIBS
755a0195d5fSmrgSET_FONTCACHE_CFLAGS
7566f5dd5c2SmrgSET_FONTCACHE_LIBS'
757a0195d5fSmrg
758a0195d5fSmrg
759a0195d5fSmrg# Initialize some variables set by options.
760a0195d5fSmrgac_init_help=
761a0195d5fSmrgac_init_version=false
7626600fe5bSmrgac_unrecognized_opts=
7636600fe5bSmrgac_unrecognized_sep=
764a0195d5fSmrg# The variables have the same names as the options, with
765a0195d5fSmrg# dashes changed to underlines.
766a0195d5fSmrgcache_file=/dev/null
767a0195d5fSmrgexec_prefix=NONE
768a0195d5fSmrgno_create=
769a0195d5fSmrgno_recursion=
770a0195d5fSmrgprefix=NONE
771a0195d5fSmrgprogram_prefix=NONE
772a0195d5fSmrgprogram_suffix=NONE
773a0195d5fSmrgprogram_transform_name=s,x,x,
774a0195d5fSmrgsilent=
775a0195d5fSmrgsite=
776a0195d5fSmrgsrcdir=
777a0195d5fSmrgverbose=
778a0195d5fSmrgx_includes=NONE
779a0195d5fSmrgx_libraries=NONE
780a0195d5fSmrg
781a0195d5fSmrg# Installation directory options.
782a0195d5fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
783a0195d5fSmrg# and all the variables that are supposed to be based on exec_prefix
784a0195d5fSmrg# by default will actually change.
785a0195d5fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
786a0195d5fSmrg# (The list follows the same order as the GNU Coding Standards.)
787a0195d5fSmrgbindir='${exec_prefix}/bin'
788a0195d5fSmrgsbindir='${exec_prefix}/sbin'
789a0195d5fSmrglibexecdir='${exec_prefix}/libexec'
790a0195d5fSmrgdatarootdir='${prefix}/share'
791a0195d5fSmrgdatadir='${datarootdir}'
792a0195d5fSmrgsysconfdir='${prefix}/etc'
793a0195d5fSmrgsharedstatedir='${prefix}/com'
794a0195d5fSmrglocalstatedir='${prefix}/var'
795a0195d5fSmrgincludedir='${prefix}/include'
796a0195d5fSmrgoldincludedir='/usr/include'
797a0195d5fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798a0195d5fSmrginfodir='${datarootdir}/info'
799a0195d5fSmrghtmldir='${docdir}'
800a0195d5fSmrgdvidir='${docdir}'
801a0195d5fSmrgpdfdir='${docdir}'
802a0195d5fSmrgpsdir='${docdir}'
803a0195d5fSmrglibdir='${exec_prefix}/lib'
804a0195d5fSmrglocaledir='${datarootdir}/locale'
805a0195d5fSmrgmandir='${datarootdir}/man'
806a0195d5fSmrg
807a0195d5fSmrgac_prev=
808a0195d5fSmrgac_dashdash=
809a0195d5fSmrgfor ac_option
810a0195d5fSmrgdo
811a0195d5fSmrg  # If the previous option needs an argument, assign it.
812a0195d5fSmrg  if test -n "$ac_prev"; then
813a0195d5fSmrg    eval $ac_prev=\$ac_option
814a0195d5fSmrg    ac_prev=
815a0195d5fSmrg    continue
816a0195d5fSmrg  fi
817a0195d5fSmrg
818a0195d5fSmrg  case $ac_option in
819a0195d5fSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820a0195d5fSmrg  *)	ac_optarg=yes ;;
821a0195d5fSmrg  esac
822a0195d5fSmrg
823a0195d5fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
824a0195d5fSmrg
825a0195d5fSmrg  case $ac_dashdash$ac_option in
826a0195d5fSmrg  --)
827a0195d5fSmrg    ac_dashdash=yes ;;
828a0195d5fSmrg
829a0195d5fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
830a0195d5fSmrg    ac_prev=bindir ;;
831a0195d5fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832a0195d5fSmrg    bindir=$ac_optarg ;;
833a0195d5fSmrg
834a0195d5fSmrg  -build | --build | --buil | --bui | --bu)
835a0195d5fSmrg    ac_prev=build_alias ;;
836a0195d5fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837a0195d5fSmrg    build_alias=$ac_optarg ;;
838a0195d5fSmrg
839a0195d5fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
840a0195d5fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841a0195d5fSmrg    ac_prev=cache_file ;;
842a0195d5fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843a0195d5fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844a0195d5fSmrg    cache_file=$ac_optarg ;;
845a0195d5fSmrg
846a0195d5fSmrg  --config-cache | -C)
847a0195d5fSmrg    cache_file=config.cache ;;
848a0195d5fSmrg
849a0195d5fSmrg  -datadir | --datadir | --datadi | --datad)
850a0195d5fSmrg    ac_prev=datadir ;;
851a0195d5fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
852a0195d5fSmrg    datadir=$ac_optarg ;;
853a0195d5fSmrg
854a0195d5fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855a0195d5fSmrg  | --dataroo | --dataro | --datar)
856a0195d5fSmrg    ac_prev=datarootdir ;;
857a0195d5fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858a0195d5fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859a0195d5fSmrg    datarootdir=$ac_optarg ;;
860a0195d5fSmrg
861a0195d5fSmrg  -disable-* | --disable-*)
8626600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863a0195d5fSmrg    # Reject names that are not valid shell variable names.
8646600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8656f5dd5c2Smrg      as_fn_error "invalid feature name: $ac_useropt"
8666600fe5bSmrg    ac_useropt_orig=$ac_useropt
8676600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8686600fe5bSmrg    case $ac_user_opts in
8696600fe5bSmrg      *"
8706600fe5bSmrg"enable_$ac_useropt"
8716600fe5bSmrg"*) ;;
8726600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8736600fe5bSmrg	 ac_unrecognized_sep=', ';;
8746600fe5bSmrg    esac
8756600fe5bSmrg    eval enable_$ac_useropt=no ;;
876a0195d5fSmrg
877a0195d5fSmrg  -docdir | --docdir | --docdi | --doc | --do)
878a0195d5fSmrg    ac_prev=docdir ;;
879a0195d5fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880a0195d5fSmrg    docdir=$ac_optarg ;;
881a0195d5fSmrg
882a0195d5fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883a0195d5fSmrg    ac_prev=dvidir ;;
884a0195d5fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885a0195d5fSmrg    dvidir=$ac_optarg ;;
886a0195d5fSmrg
887a0195d5fSmrg  -enable-* | --enable-*)
8886600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889a0195d5fSmrg    # Reject names that are not valid shell variable names.
8906600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8916f5dd5c2Smrg      as_fn_error "invalid feature name: $ac_useropt"
8926600fe5bSmrg    ac_useropt_orig=$ac_useropt
8936600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8946600fe5bSmrg    case $ac_user_opts in
8956600fe5bSmrg      *"
8966600fe5bSmrg"enable_$ac_useropt"
8976600fe5bSmrg"*) ;;
8986600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8996600fe5bSmrg	 ac_unrecognized_sep=', ';;
9006600fe5bSmrg    esac
9016600fe5bSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
902a0195d5fSmrg
903a0195d5fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904a0195d5fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905a0195d5fSmrg  | --exec | --exe | --ex)
906a0195d5fSmrg    ac_prev=exec_prefix ;;
907a0195d5fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908a0195d5fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909a0195d5fSmrg  | --exec=* | --exe=* | --ex=*)
910a0195d5fSmrg    exec_prefix=$ac_optarg ;;
911a0195d5fSmrg
912a0195d5fSmrg  -gas | --gas | --ga | --g)
913a0195d5fSmrg    # Obsolete; use --with-gas.
914a0195d5fSmrg    with_gas=yes ;;
915a0195d5fSmrg
916a0195d5fSmrg  -help | --help | --hel | --he | -h)
917a0195d5fSmrg    ac_init_help=long ;;
918a0195d5fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919a0195d5fSmrg    ac_init_help=recursive ;;
920a0195d5fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921a0195d5fSmrg    ac_init_help=short ;;
922a0195d5fSmrg
923a0195d5fSmrg  -host | --host | --hos | --ho)
924a0195d5fSmrg    ac_prev=host_alias ;;
925a0195d5fSmrg  -host=* | --host=* | --hos=* | --ho=*)
926a0195d5fSmrg    host_alias=$ac_optarg ;;
927a0195d5fSmrg
928a0195d5fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929a0195d5fSmrg    ac_prev=htmldir ;;
930a0195d5fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931a0195d5fSmrg  | --ht=*)
932a0195d5fSmrg    htmldir=$ac_optarg ;;
933a0195d5fSmrg
934a0195d5fSmrg  -includedir | --includedir | --includedi | --included | --include \
935a0195d5fSmrg  | --includ | --inclu | --incl | --inc)
936a0195d5fSmrg    ac_prev=includedir ;;
937a0195d5fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938a0195d5fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
939a0195d5fSmrg    includedir=$ac_optarg ;;
940a0195d5fSmrg
941a0195d5fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
942a0195d5fSmrg    ac_prev=infodir ;;
943a0195d5fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944a0195d5fSmrg    infodir=$ac_optarg ;;
945a0195d5fSmrg
946a0195d5fSmrg  -libdir | --libdir | --libdi | --libd)
947a0195d5fSmrg    ac_prev=libdir ;;
948a0195d5fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
949a0195d5fSmrg    libdir=$ac_optarg ;;
950a0195d5fSmrg
951a0195d5fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952a0195d5fSmrg  | --libexe | --libex | --libe)
953a0195d5fSmrg    ac_prev=libexecdir ;;
954a0195d5fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955a0195d5fSmrg  | --libexe=* | --libex=* | --libe=*)
956a0195d5fSmrg    libexecdir=$ac_optarg ;;
957a0195d5fSmrg
958a0195d5fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
959a0195d5fSmrg    ac_prev=localedir ;;
960a0195d5fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961a0195d5fSmrg    localedir=$ac_optarg ;;
962a0195d5fSmrg
963a0195d5fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
964a0195d5fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
965a0195d5fSmrg    ac_prev=localstatedir ;;
966a0195d5fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967a0195d5fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968a0195d5fSmrg    localstatedir=$ac_optarg ;;
969a0195d5fSmrg
970a0195d5fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971a0195d5fSmrg    ac_prev=mandir ;;
972a0195d5fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973a0195d5fSmrg    mandir=$ac_optarg ;;
974a0195d5fSmrg
975a0195d5fSmrg  -nfp | --nfp | --nf)
976a0195d5fSmrg    # Obsolete; use --without-fp.
977a0195d5fSmrg    with_fp=no ;;
978a0195d5fSmrg
979a0195d5fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980a0195d5fSmrg  | --no-cr | --no-c | -n)
981a0195d5fSmrg    no_create=yes ;;
982a0195d5fSmrg
983a0195d5fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984a0195d5fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985a0195d5fSmrg    no_recursion=yes ;;
986a0195d5fSmrg
987a0195d5fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988a0195d5fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989a0195d5fSmrg  | --oldin | --oldi | --old | --ol | --o)
990a0195d5fSmrg    ac_prev=oldincludedir ;;
991a0195d5fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992a0195d5fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993a0195d5fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994a0195d5fSmrg    oldincludedir=$ac_optarg ;;
995a0195d5fSmrg
996a0195d5fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997a0195d5fSmrg    ac_prev=prefix ;;
998a0195d5fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999a0195d5fSmrg    prefix=$ac_optarg ;;
1000a0195d5fSmrg
1001a0195d5fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002a0195d5fSmrg  | --program-pre | --program-pr | --program-p)
1003a0195d5fSmrg    ac_prev=program_prefix ;;
1004a0195d5fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005a0195d5fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006a0195d5fSmrg    program_prefix=$ac_optarg ;;
1007a0195d5fSmrg
1008a0195d5fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009a0195d5fSmrg  | --program-suf | --program-su | --program-s)
1010a0195d5fSmrg    ac_prev=program_suffix ;;
1011a0195d5fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012a0195d5fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013a0195d5fSmrg    program_suffix=$ac_optarg ;;
1014a0195d5fSmrg
1015a0195d5fSmrg  -program-transform-name | --program-transform-name \
1016a0195d5fSmrg  | --program-transform-nam | --program-transform-na \
1017a0195d5fSmrg  | --program-transform-n | --program-transform- \
1018a0195d5fSmrg  | --program-transform | --program-transfor \
1019a0195d5fSmrg  | --program-transfo | --program-transf \
1020a0195d5fSmrg  | --program-trans | --program-tran \
1021a0195d5fSmrg  | --progr-tra | --program-tr | --program-t)
1022a0195d5fSmrg    ac_prev=program_transform_name ;;
1023a0195d5fSmrg  -program-transform-name=* | --program-transform-name=* \
1024a0195d5fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1025a0195d5fSmrg  | --program-transform-n=* | --program-transform-=* \
1026a0195d5fSmrg  | --program-transform=* | --program-transfor=* \
1027a0195d5fSmrg  | --program-transfo=* | --program-transf=* \
1028a0195d5fSmrg  | --program-trans=* | --program-tran=* \
1029a0195d5fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1030a0195d5fSmrg    program_transform_name=$ac_optarg ;;
1031a0195d5fSmrg
1032a0195d5fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033a0195d5fSmrg    ac_prev=pdfdir ;;
1034a0195d5fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035a0195d5fSmrg    pdfdir=$ac_optarg ;;
1036a0195d5fSmrg
1037a0195d5fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1038a0195d5fSmrg    ac_prev=psdir ;;
1039a0195d5fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040a0195d5fSmrg    psdir=$ac_optarg ;;
1041a0195d5fSmrg
1042a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil)
1044a0195d5fSmrg    silent=yes ;;
1045a0195d5fSmrg
1046a0195d5fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047a0195d5fSmrg    ac_prev=sbindir ;;
1048a0195d5fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049a0195d5fSmrg  | --sbi=* | --sb=*)
1050a0195d5fSmrg    sbindir=$ac_optarg ;;
1051a0195d5fSmrg
1052a0195d5fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053a0195d5fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054a0195d5fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1055a0195d5fSmrg  | --sha | --sh)
1056a0195d5fSmrg    ac_prev=sharedstatedir ;;
1057a0195d5fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058a0195d5fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059a0195d5fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060a0195d5fSmrg  | --sha=* | --sh=*)
1061a0195d5fSmrg    sharedstatedir=$ac_optarg ;;
1062a0195d5fSmrg
1063a0195d5fSmrg  -site | --site | --sit)
1064a0195d5fSmrg    ac_prev=site ;;
1065a0195d5fSmrg  -site=* | --site=* | --sit=*)
1066a0195d5fSmrg    site=$ac_optarg ;;
1067a0195d5fSmrg
1068a0195d5fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069a0195d5fSmrg    ac_prev=srcdir ;;
1070a0195d5fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071a0195d5fSmrg    srcdir=$ac_optarg ;;
1072a0195d5fSmrg
1073a0195d5fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074a0195d5fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1075a0195d5fSmrg    ac_prev=sysconfdir ;;
1076a0195d5fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077a0195d5fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078a0195d5fSmrg    sysconfdir=$ac_optarg ;;
1079a0195d5fSmrg
1080a0195d5fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1081a0195d5fSmrg    ac_prev=target_alias ;;
1082a0195d5fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083a0195d5fSmrg    target_alias=$ac_optarg ;;
1084a0195d5fSmrg
1085a0195d5fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086a0195d5fSmrg    verbose=yes ;;
1087a0195d5fSmrg
1088a0195d5fSmrg  -version | --version | --versio | --versi | --vers | -V)
1089a0195d5fSmrg    ac_init_version=: ;;
1090a0195d5fSmrg
1091a0195d5fSmrg  -with-* | --with-*)
10926600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093a0195d5fSmrg    # Reject names that are not valid shell variable names.
10946600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10956f5dd5c2Smrg      as_fn_error "invalid package name: $ac_useropt"
10966600fe5bSmrg    ac_useropt_orig=$ac_useropt
10976600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10986600fe5bSmrg    case $ac_user_opts in
10996600fe5bSmrg      *"
11006600fe5bSmrg"with_$ac_useropt"
11016600fe5bSmrg"*) ;;
11026600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11036600fe5bSmrg	 ac_unrecognized_sep=', ';;
11046600fe5bSmrg    esac
11056600fe5bSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1106a0195d5fSmrg
1107a0195d5fSmrg  -without-* | --without-*)
11086600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109a0195d5fSmrg    # Reject names that are not valid shell variable names.
11106600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11116f5dd5c2Smrg      as_fn_error "invalid package name: $ac_useropt"
11126600fe5bSmrg    ac_useropt_orig=$ac_useropt
11136600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11146600fe5bSmrg    case $ac_user_opts in
11156600fe5bSmrg      *"
11166600fe5bSmrg"with_$ac_useropt"
11176600fe5bSmrg"*) ;;
11186600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11196600fe5bSmrg	 ac_unrecognized_sep=', ';;
11206600fe5bSmrg    esac
11216600fe5bSmrg    eval with_$ac_useropt=no ;;
1122a0195d5fSmrg
1123a0195d5fSmrg  --x)
1124a0195d5fSmrg    # Obsolete; use --with-x.
1125a0195d5fSmrg    with_x=yes ;;
1126a0195d5fSmrg
1127a0195d5fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128a0195d5fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1129a0195d5fSmrg    ac_prev=x_includes ;;
1130a0195d5fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131a0195d5fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132a0195d5fSmrg    x_includes=$ac_optarg ;;
1133a0195d5fSmrg
1134a0195d5fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135a0195d5fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136a0195d5fSmrg    ac_prev=x_libraries ;;
1137a0195d5fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138a0195d5fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139a0195d5fSmrg    x_libraries=$ac_optarg ;;
1140a0195d5fSmrg
11416f5dd5c2Smrg  -*) as_fn_error "unrecognized option: \`$ac_option'
11426f5dd5c2SmrgTry \`$0 --help' for more information."
1143a0195d5fSmrg    ;;
1144a0195d5fSmrg
1145a0195d5fSmrg  *=*)
1146a0195d5fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147a0195d5fSmrg    # Reject names that are not valid shell variable names.
11486f5dd5c2Smrg    case $ac_envvar in #(
11496f5dd5c2Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11506f5dd5c2Smrg      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
11516f5dd5c2Smrg    esac
1152a0195d5fSmrg    eval $ac_envvar=\$ac_optarg
1153a0195d5fSmrg    export $ac_envvar ;;
1154a0195d5fSmrg
1155a0195d5fSmrg  *)
1156a0195d5fSmrg    # FIXME: should be removed in autoconf 3.0.
11576600fe5bSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158a0195d5fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11596600fe5bSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160a0195d5fSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161a0195d5fSmrg    ;;
1162a0195d5fSmrg
1163a0195d5fSmrg  esac
1164a0195d5fSmrgdone
1165a0195d5fSmrg
1166a0195d5fSmrgif test -n "$ac_prev"; then
1167a0195d5fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11686f5dd5c2Smrg  as_fn_error "missing argument to $ac_option"
1169a0195d5fSmrgfi
1170a0195d5fSmrg
11716600fe5bSmrgif test -n "$ac_unrecognized_opts"; then
11726600fe5bSmrg  case $enable_option_checking in
11736600fe5bSmrg    no) ;;
11746f5dd5c2Smrg    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
11756600fe5bSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11766600fe5bSmrg  esac
11776600fe5bSmrgfi
11786600fe5bSmrg
11796600fe5bSmrg# Check all directory arguments for consistency.
11806600fe5bSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11816600fe5bSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1182a0195d5fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183a0195d5fSmrg		libdir localedir mandir
1184a0195d5fSmrgdo
1185a0195d5fSmrg  eval ac_val=\$$ac_var
11866600fe5bSmrg  # Remove trailing slashes.
11876600fe5bSmrg  case $ac_val in
11886600fe5bSmrg    */ )
11896600fe5bSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11906600fe5bSmrg      eval $ac_var=\$ac_val;;
11916600fe5bSmrg  esac
11926600fe5bSmrg  # Be sure to have absolute directory names.
1193a0195d5fSmrg  case $ac_val in
1194a0195d5fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1195a0195d5fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196a0195d5fSmrg  esac
11976f5dd5c2Smrg  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1198a0195d5fSmrgdone
1199a0195d5fSmrg
1200a0195d5fSmrg# There might be people who depend on the old broken behavior: `$host'
1201a0195d5fSmrg# used to hold the argument of --host etc.
1202a0195d5fSmrg# FIXME: To remove some day.
1203a0195d5fSmrgbuild=$build_alias
1204a0195d5fSmrghost=$host_alias
1205a0195d5fSmrgtarget=$target_alias
1206a0195d5fSmrg
1207a0195d5fSmrg# FIXME: To remove some day.
1208a0195d5fSmrgif test "x$host_alias" != x; then
1209a0195d5fSmrg  if test "x$build_alias" = x; then
1210a0195d5fSmrg    cross_compiling=maybe
12116600fe5bSmrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1212a0195d5fSmrg    If a cross compiler is detected then cross compile mode will be used." >&2
1213a0195d5fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1214a0195d5fSmrg    cross_compiling=yes
1215a0195d5fSmrg  fi
1216a0195d5fSmrgfi
1217a0195d5fSmrg
1218a0195d5fSmrgac_tool_prefix=
1219a0195d5fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1220a0195d5fSmrg
1221a0195d5fSmrgtest "$silent" = yes && exec 6>/dev/null
1222a0195d5fSmrg
1223a0195d5fSmrg
1224a0195d5fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1225a0195d5fSmrgac_ls_di=`ls -di .` &&
1226a0195d5fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12276f5dd5c2Smrg  as_fn_error "working directory cannot be determined"
1228a0195d5fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12296f5dd5c2Smrg  as_fn_error "pwd does not report name of working directory"
1230a0195d5fSmrg
1231a0195d5fSmrg
1232a0195d5fSmrg# Find the source files, if location was not specified.
1233a0195d5fSmrgif test -z "$srcdir"; then
1234a0195d5fSmrg  ac_srcdir_defaulted=yes
1235a0195d5fSmrg  # Try the directory containing this script, then the parent directory.
12366600fe5bSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12376600fe5bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12386600fe5bSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12396600fe5bSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12406600fe5bSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12416600fe5bSmrg$as_echo X"$as_myself" |
1242a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243a0195d5fSmrg	    s//\1/
1244a0195d5fSmrg	    q
1245a0195d5fSmrg	  }
1246a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
1247a0195d5fSmrg	    s//\1/
1248a0195d5fSmrg	    q
1249a0195d5fSmrg	  }
1250a0195d5fSmrg	  /^X\(\/\/\)$/{
1251a0195d5fSmrg	    s//\1/
1252a0195d5fSmrg	    q
1253a0195d5fSmrg	  }
1254a0195d5fSmrg	  /^X\(\/\).*/{
1255a0195d5fSmrg	    s//\1/
1256a0195d5fSmrg	    q
1257a0195d5fSmrg	  }
1258a0195d5fSmrg	  s/.*/./; q'`
1259a0195d5fSmrg  srcdir=$ac_confdir
1260a0195d5fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1261a0195d5fSmrg    srcdir=..
1262a0195d5fSmrg  fi
1263a0195d5fSmrgelse
1264a0195d5fSmrg  ac_srcdir_defaulted=no
1265a0195d5fSmrgfi
1266a0195d5fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1267a0195d5fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12686f5dd5c2Smrg  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1269a0195d5fSmrgfi
1270a0195d5fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271a0195d5fSmrgac_abs_confdir=`(
12726f5dd5c2Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1273a0195d5fSmrg	pwd)`
1274a0195d5fSmrg# When building in place, set srcdir=.
1275a0195d5fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1276a0195d5fSmrg  srcdir=.
1277a0195d5fSmrgfi
1278a0195d5fSmrg# Remove unnecessary trailing slashes from srcdir.
1279a0195d5fSmrg# Double slashes in file names in object file debugging info
1280a0195d5fSmrg# mess up M-x gdb in Emacs.
1281a0195d5fSmrgcase $srcdir in
1282a0195d5fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283a0195d5fSmrgesac
1284a0195d5fSmrgfor ac_var in $ac_precious_vars; do
1285a0195d5fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286a0195d5fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1287a0195d5fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288a0195d5fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289a0195d5fSmrgdone
1290a0195d5fSmrg
1291a0195d5fSmrg#
1292a0195d5fSmrg# Report the --help message.
1293a0195d5fSmrg#
1294a0195d5fSmrgif test "$ac_init_help" = "long"; then
1295a0195d5fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1296a0195d5fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1297a0195d5fSmrg  cat <<_ACEOF
12986f5dd5c2Smrg\`configure' configures xset 1.2.0 to adapt to many kinds of systems.
1299a0195d5fSmrg
1300a0195d5fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1301a0195d5fSmrg
1302a0195d5fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1303a0195d5fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1304a0195d5fSmrg
1305a0195d5fSmrgDefaults for the options are specified in brackets.
1306a0195d5fSmrg
1307a0195d5fSmrgConfiguration:
1308a0195d5fSmrg  -h, --help              display this help and exit
1309a0195d5fSmrg      --help=short        display options specific to this package
1310a0195d5fSmrg      --help=recursive    display the short help of all the included packages
1311a0195d5fSmrg  -V, --version           display version information and exit
1312a0195d5fSmrg  -q, --quiet, --silent   do not print \`checking...' messages
1313a0195d5fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1314a0195d5fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1315a0195d5fSmrg  -n, --no-create         do not create output files
1316a0195d5fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317a0195d5fSmrg
1318a0195d5fSmrgInstallation directories:
1319a0195d5fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13206600fe5bSmrg                          [$ac_default_prefix]
1321a0195d5fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13226600fe5bSmrg                          [PREFIX]
1323a0195d5fSmrg
1324a0195d5fSmrgBy default, \`make install' will install all the files in
1325a0195d5fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326a0195d5fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327a0195d5fSmrgfor instance \`--prefix=\$HOME'.
1328a0195d5fSmrg
1329a0195d5fSmrgFor better control, use the options below.
1330a0195d5fSmrg
1331a0195d5fSmrgFine tuning of the installation directories:
13326600fe5bSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13336600fe5bSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13346600fe5bSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13356600fe5bSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13366600fe5bSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13376600fe5bSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13386600fe5bSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13396600fe5bSmrg  --includedir=DIR        C header files [PREFIX/include]
13406600fe5bSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13416600fe5bSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13426600fe5bSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13436600fe5bSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13446600fe5bSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13456600fe5bSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13466600fe5bSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
13476600fe5bSmrg  --htmldir=DIR           html documentation [DOCDIR]
13486600fe5bSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13496600fe5bSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13506600fe5bSmrg  --psdir=DIR             ps documentation [DOCDIR]
1351a0195d5fSmrg_ACEOF
1352a0195d5fSmrg
1353a0195d5fSmrg  cat <<\_ACEOF
1354a0195d5fSmrg
1355a0195d5fSmrgProgram names:
1356a0195d5fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357a0195d5fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358a0195d5fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359a0195d5fSmrg
1360a0195d5fSmrgSystem types:
1361a0195d5fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1362a0195d5fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363a0195d5fSmrg_ACEOF
1364a0195d5fSmrgfi
1365a0195d5fSmrg
1366a0195d5fSmrgif test -n "$ac_init_help"; then
1367a0195d5fSmrg  case $ac_init_help in
13686f5dd5c2Smrg     short | recursive ) echo "Configuration of xset 1.2.0:";;
1369a0195d5fSmrg   esac
1370a0195d5fSmrg  cat <<\_ACEOF
1371a0195d5fSmrg
1372a0195d5fSmrgOptional Features:
13736600fe5bSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1374a0195d5fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375a0195d5fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376a0195d5fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1377a0195d5fSmrg			  (and sometimes confusing) to the casual installer
1378a0195d5fSmrg  --disable-dependency-tracking  speeds up one-time build
1379a0195d5fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
13806600fe5bSmrg  --enable-strict-compilation
13816600fe5bSmrg                          Enable all warnings from compiler and make them
13826600fe5bSmrg                          errors (default: disabled)
13836f5dd5c2Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13846f5dd5c2Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1385a0195d5fSmrg
1386a0195d5fSmrgOptional Packages:
1387a0195d5fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388a0195d5fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
13896f5dd5c2Smrg  --without-xf86misc      Disable xf86misc support.
13906f5dd5c2Smrg  --without-fontcache     Disable fontcache support.
1391a0195d5fSmrg
1392a0195d5fSmrgSome influential environment variables:
1393a0195d5fSmrg  CC          C compiler command
1394a0195d5fSmrg  CFLAGS      C compiler flags
1395a0195d5fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1396a0195d5fSmrg              nonstandard directory <lib dir>
1397a0195d5fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
13986f5dd5c2Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1399a0195d5fSmrg              you have headers in a nonstandard directory <include dir>
14006600fe5bSmrg  CPP         C preprocessor
1401a0195d5fSmrg  PKG_CONFIG  path to pkg-config utility
1402a0195d5fSmrg  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1403a0195d5fSmrg  XSET_LIBS   linker flags for XSET, overriding pkg-config
1404a0195d5fSmrg  SET_X11_CFLAGS
1405a0195d5fSmrg              C compiler flags for SET_X11, overriding pkg-config
1406a0195d5fSmrg  SET_X11_LIBS
1407a0195d5fSmrg              linker flags for SET_X11, overriding pkg-config
1408a0195d5fSmrg  SET_XEXT_CFLAGS
1409a0195d5fSmrg              C compiler flags for SET_XEXT, overriding pkg-config
1410a0195d5fSmrg  SET_XEXT_LIBS
1411a0195d5fSmrg              linker flags for SET_XEXT, overriding pkg-config
1412a0195d5fSmrg  SET_XKB_CFLAGS
1413a0195d5fSmrg              C compiler flags for SET_XKB, overriding pkg-config
1414a0195d5fSmrg  SET_XKB_LIBS
1415a0195d5fSmrg              linker flags for SET_XKB, overriding pkg-config
1416a0195d5fSmrg  SET_XF86MISC_CFLAGS
1417a0195d5fSmrg              C compiler flags for SET_XF86MISC, overriding pkg-config
1418a0195d5fSmrg  SET_XF86MISC_LIBS
1419a0195d5fSmrg              linker flags for SET_XF86MISC, overriding pkg-config
1420a0195d5fSmrg  SET_FONTCACHE_CFLAGS
1421a0195d5fSmrg              C compiler flags for SET_FONTCACHE, overriding pkg-config
1422a0195d5fSmrg  SET_FONTCACHE_LIBS
1423a0195d5fSmrg              linker flags for SET_FONTCACHE, overriding pkg-config
1424a0195d5fSmrg
1425a0195d5fSmrgUse these variables to override the choices made by `configure' or to help
1426a0195d5fSmrgit to find libraries and programs with nonstandard names/locations.
1427a0195d5fSmrg
1428a0195d5fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1429a0195d5fSmrg_ACEOF
1430a0195d5fSmrgac_status=$?
1431a0195d5fSmrgfi
1432a0195d5fSmrg
1433a0195d5fSmrgif test "$ac_init_help" = "recursive"; then
1434a0195d5fSmrg  # If there are subdirs, report their specific --help.
1435a0195d5fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14366600fe5bSmrg    test -d "$ac_dir" ||
14376600fe5bSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14386600fe5bSmrg      continue
1439a0195d5fSmrg    ac_builddir=.
1440a0195d5fSmrg
1441a0195d5fSmrgcase "$ac_dir" in
1442a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443a0195d5fSmrg*)
14446600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
14466600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447a0195d5fSmrg  case $ac_top_builddir_sub in
1448a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450a0195d5fSmrg  esac ;;
1451a0195d5fSmrgesac
1452a0195d5fSmrgac_abs_top_builddir=$ac_pwd
1453a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1454a0195d5fSmrg# for backward compatibility:
1455a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
1456a0195d5fSmrg
1457a0195d5fSmrgcase $srcdir in
1458a0195d5fSmrg  .)  # We are building in place.
1459a0195d5fSmrg    ac_srcdir=.
1460a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
1461a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1462a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1463a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1464a0195d5fSmrg    ac_top_srcdir=$srcdir
1465a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
1466a0195d5fSmrg  *) # Relative name.
1467a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1469a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470a0195d5fSmrgesac
1471a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472a0195d5fSmrg
1473a0195d5fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1474a0195d5fSmrg    # Check for guested configure.
1475a0195d5fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1476a0195d5fSmrg      echo &&
1477a0195d5fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478a0195d5fSmrg    elif test -f "$ac_srcdir/configure"; then
1479a0195d5fSmrg      echo &&
1480a0195d5fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1481a0195d5fSmrg    else
14826600fe5bSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483a0195d5fSmrg    fi || ac_status=$?
1484a0195d5fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1485a0195d5fSmrg  done
1486a0195d5fSmrgfi
1487a0195d5fSmrg
1488a0195d5fSmrgtest -n "$ac_init_help" && exit $ac_status
1489a0195d5fSmrgif $ac_init_version; then
1490a0195d5fSmrg  cat <<\_ACEOF
14916f5dd5c2Smrgxset configure 1.2.0
14926f5dd5c2Smrggenerated by GNU Autoconf 2.65
1493a0195d5fSmrg
14946f5dd5c2SmrgCopyright (C) 2009 Free Software Foundation, Inc.
1495a0195d5fSmrgThis configure script is free software; the Free Software Foundation
1496a0195d5fSmrggives unlimited permission to copy, distribute and modify it.
1497a0195d5fSmrg_ACEOF
1498a0195d5fSmrg  exit
1499a0195d5fSmrgfi
1500a0195d5fSmrg
15016f5dd5c2Smrg## ------------------------ ##
15026f5dd5c2Smrg## Autoconf initialization. ##
15036f5dd5c2Smrg## ------------------------ ##
1504a0195d5fSmrg
15056f5dd5c2Smrg# ac_fn_c_try_compile LINENO
15066f5dd5c2Smrg# --------------------------
15076f5dd5c2Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15086f5dd5c2Smrgac_fn_c_try_compile ()
1509a0195d5fSmrg{
15106f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15116f5dd5c2Smrg  rm -f conftest.$ac_objext
15126f5dd5c2Smrg  if { { ac_try="$ac_compile"
15136f5dd5c2Smrgcase "(($ac_try" in
15146f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15166f5dd5c2Smrgesac
15176f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15186f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15196f5dd5c2Smrg  (eval "$ac_compile") 2>conftest.err
15206f5dd5c2Smrg  ac_status=$?
15216f5dd5c2Smrg  if test -s conftest.err; then
15226f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15236f5dd5c2Smrg    cat conftest.er1 >&5
15246f5dd5c2Smrg    mv -f conftest.er1 conftest.err
15256f5dd5c2Smrg  fi
15266f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15276f5dd5c2Smrg  test $ac_status = 0; } && {
15286f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
15296f5dd5c2Smrg	 test ! -s conftest.err
15306f5dd5c2Smrg       } && test -s conftest.$ac_objext; then :
15316f5dd5c2Smrg  ac_retval=0
15326f5dd5c2Smrgelse
15336f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
15346f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
1535a0195d5fSmrg
15366f5dd5c2Smrg	ac_retval=1
15376f5dd5c2Smrgfi
15386f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
15396f5dd5c2Smrg  as_fn_set_status $ac_retval
1540a0195d5fSmrg
15416f5dd5c2Smrg} # ac_fn_c_try_compile
15426f5dd5c2Smrg
15436f5dd5c2Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR
15446f5dd5c2Smrg# ------------------------------------
15456f5dd5c2Smrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
15466f5dd5c2Smrgac_fn_c_check_decl ()
15476f5dd5c2Smrg{
15486f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15496f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
15506f5dd5c2Smrg$as_echo_n "checking whether $2 is declared... " >&6; }
15516f5dd5c2Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
15526f5dd5c2Smrg  $as_echo_n "(cached) " >&6
15536f5dd5c2Smrgelse
15546f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556f5dd5c2Smrg/* end confdefs.h.  */
15566f5dd5c2Smrg$4
15576f5dd5c2Smrgint
15586f5dd5c2Smrgmain ()
15596f5dd5c2Smrg{
15606f5dd5c2Smrg#ifndef $2
15616f5dd5c2Smrg  (void) $2;
15626f5dd5c2Smrg#endif
15636f5dd5c2Smrg
15646f5dd5c2Smrg  ;
15656f5dd5c2Smrg  return 0;
15666f5dd5c2Smrg}
15676f5dd5c2Smrg_ACEOF
15686f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
15696f5dd5c2Smrg  eval "$3=yes"
15706f5dd5c2Smrgelse
15716f5dd5c2Smrg  eval "$3=no"
15726f5dd5c2Smrgfi
15736f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15746f5dd5c2Smrgfi
15756f5dd5c2Smrgeval ac_res=\$$3
15766f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15776f5dd5c2Smrg$as_echo "$ac_res" >&6; }
15786f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
15796f5dd5c2Smrg
15806f5dd5c2Smrg} # ac_fn_c_check_decl
15816f5dd5c2Smrg
15826f5dd5c2Smrg# ac_fn_c_try_cpp LINENO
15836f5dd5c2Smrg# ----------------------
15846f5dd5c2Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15856f5dd5c2Smrgac_fn_c_try_cpp ()
15866f5dd5c2Smrg{
15876f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15886f5dd5c2Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15896f5dd5c2Smrgcase "(($ac_try" in
15906f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15926f5dd5c2Smrgesac
15936f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15946f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15956f5dd5c2Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15966f5dd5c2Smrg  ac_status=$?
15976f5dd5c2Smrg  if test -s conftest.err; then
15986f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15996f5dd5c2Smrg    cat conftest.er1 >&5
16006f5dd5c2Smrg    mv -f conftest.er1 conftest.err
16016f5dd5c2Smrg  fi
16026f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16036f5dd5c2Smrg  test $ac_status = 0; } >/dev/null && {
16046f5dd5c2Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16056f5dd5c2Smrg	 test ! -s conftest.err
16066f5dd5c2Smrg       }; then :
16076f5dd5c2Smrg  ac_retval=0
16086f5dd5c2Smrgelse
16096f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
16106f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16116f5dd5c2Smrg
16126f5dd5c2Smrg    ac_retval=1
16136f5dd5c2Smrgfi
16146f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
16156f5dd5c2Smrg  as_fn_set_status $ac_retval
16166f5dd5c2Smrg
16176f5dd5c2Smrg} # ac_fn_c_try_cpp
16186f5dd5c2Smrg
16196f5dd5c2Smrg# ac_fn_c_try_run LINENO
16206f5dd5c2Smrg# ----------------------
16216f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16226f5dd5c2Smrg# that executables *can* be run.
16236f5dd5c2Smrgac_fn_c_try_run ()
16246f5dd5c2Smrg{
16256f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16266f5dd5c2Smrg  if { { ac_try="$ac_link"
16276f5dd5c2Smrgcase "(($ac_try" in
16286f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16306f5dd5c2Smrgesac
16316f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16326f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16336f5dd5c2Smrg  (eval "$ac_link") 2>&5
16346f5dd5c2Smrg  ac_status=$?
16356f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16366f5dd5c2Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16376f5dd5c2Smrg  { { case "(($ac_try" in
16386f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16406f5dd5c2Smrgesac
16416f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16426f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16436f5dd5c2Smrg  (eval "$ac_try") 2>&5
16446f5dd5c2Smrg  ac_status=$?
16456f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466f5dd5c2Smrg  test $ac_status = 0; }; }; then :
16476f5dd5c2Smrg  ac_retval=0
16486f5dd5c2Smrgelse
16496f5dd5c2Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16506f5dd5c2Smrg       $as_echo "$as_me: failed program was:" >&5
16516f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16526f5dd5c2Smrg
16536f5dd5c2Smrg       ac_retval=$ac_status
16546f5dd5c2Smrgfi
16556f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16566f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
16576f5dd5c2Smrg  as_fn_set_status $ac_retval
16586f5dd5c2Smrg
16596f5dd5c2Smrg} # ac_fn_c_try_run
16606f5dd5c2Smrg
16616f5dd5c2Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16626f5dd5c2Smrg# -------------------------------------------------------
16636f5dd5c2Smrg# Tests whether HEADER exists and can be compiled using the include files in
16646f5dd5c2Smrg# INCLUDES, setting the cache variable VAR accordingly.
16656f5dd5c2Smrgac_fn_c_check_header_compile ()
16666f5dd5c2Smrg{
16676f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16686f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16696f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
16706f5dd5c2Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
16716f5dd5c2Smrg  $as_echo_n "(cached) " >&6
16726f5dd5c2Smrgelse
16736f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746f5dd5c2Smrg/* end confdefs.h.  */
16756f5dd5c2Smrg$4
16766f5dd5c2Smrg#include <$2>
16776f5dd5c2Smrg_ACEOF
16786f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
16796f5dd5c2Smrg  eval "$3=yes"
16806f5dd5c2Smrgelse
16816f5dd5c2Smrg  eval "$3=no"
16826f5dd5c2Smrgfi
16836f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846f5dd5c2Smrgfi
16856f5dd5c2Smrgeval ac_res=\$$3
16866f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16876f5dd5c2Smrg$as_echo "$ac_res" >&6; }
16886f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
16896f5dd5c2Smrg
16906f5dd5c2Smrg} # ac_fn_c_check_header_compile
16916f5dd5c2Smrg
16926f5dd5c2Smrg# ac_fn_c_try_link LINENO
16936f5dd5c2Smrg# -----------------------
16946f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16956f5dd5c2Smrgac_fn_c_try_link ()
16966f5dd5c2Smrg{
16976f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16986f5dd5c2Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
16996f5dd5c2Smrg  if { { ac_try="$ac_link"
17006f5dd5c2Smrgcase "(($ac_try" in
17016f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17036f5dd5c2Smrgesac
17046f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17056f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17066f5dd5c2Smrg  (eval "$ac_link") 2>conftest.err
17076f5dd5c2Smrg  ac_status=$?
17086f5dd5c2Smrg  if test -s conftest.err; then
17096f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
17106f5dd5c2Smrg    cat conftest.er1 >&5
17116f5dd5c2Smrg    mv -f conftest.er1 conftest.err
17126f5dd5c2Smrg  fi
17136f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146f5dd5c2Smrg  test $ac_status = 0; } && {
17156f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
17166f5dd5c2Smrg	 test ! -s conftest.err
17176f5dd5c2Smrg       } && test -s conftest$ac_exeext && {
17186f5dd5c2Smrg	 test "$cross_compiling" = yes ||
17196f5dd5c2Smrg	 $as_test_x conftest$ac_exeext
17206f5dd5c2Smrg       }; then :
17216f5dd5c2Smrg  ac_retval=0
17226f5dd5c2Smrgelse
17236f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
17246f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
17256f5dd5c2Smrg
17266f5dd5c2Smrg	ac_retval=1
17276f5dd5c2Smrgfi
17286f5dd5c2Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17296f5dd5c2Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17306f5dd5c2Smrg  # interfere with the next link command; also delete a directory that is
17316f5dd5c2Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17326f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17336f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
17346f5dd5c2Smrg  as_fn_set_status $ac_retval
17356f5dd5c2Smrg
17366f5dd5c2Smrg} # ac_fn_c_try_link
17376f5dd5c2Smrg
17386f5dd5c2Smrg# ac_fn_c_check_func LINENO FUNC VAR
17396f5dd5c2Smrg# ----------------------------------
17406f5dd5c2Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17416f5dd5c2Smrgac_fn_c_check_func ()
17426f5dd5c2Smrg{
17436f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17446f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17456f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
17466f5dd5c2Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
17476f5dd5c2Smrg  $as_echo_n "(cached) " >&6
17486f5dd5c2Smrgelse
17496f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506f5dd5c2Smrg/* end confdefs.h.  */
17516f5dd5c2Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17526f5dd5c2Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17536f5dd5c2Smrg#define $2 innocuous_$2
17546f5dd5c2Smrg
17556f5dd5c2Smrg/* System header to define __stub macros and hopefully few prototypes,
17566f5dd5c2Smrg    which can conflict with char $2 (); below.
17576f5dd5c2Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586f5dd5c2Smrg    <limits.h> exists even on freestanding compilers.  */
17596f5dd5c2Smrg
17606f5dd5c2Smrg#ifdef __STDC__
17616f5dd5c2Smrg# include <limits.h>
17626f5dd5c2Smrg#else
17636f5dd5c2Smrg# include <assert.h>
17646f5dd5c2Smrg#endif
17656f5dd5c2Smrg
17666f5dd5c2Smrg#undef $2
17676f5dd5c2Smrg
17686f5dd5c2Smrg/* Override any GCC internal prototype to avoid an error.
17696f5dd5c2Smrg   Use char because int might match the return type of a GCC
17706f5dd5c2Smrg   builtin and then its argument prototype would still apply.  */
17716f5dd5c2Smrg#ifdef __cplusplus
17726f5dd5c2Smrgextern "C"
17736f5dd5c2Smrg#endif
17746f5dd5c2Smrgchar $2 ();
17756f5dd5c2Smrg/* The GNU C library defines this for functions which it implements
17766f5dd5c2Smrg    to always fail with ENOSYS.  Some functions are actually named
17776f5dd5c2Smrg    something starting with __ and the normal name is an alias.  */
17786f5dd5c2Smrg#if defined __stub_$2 || defined __stub___$2
17796f5dd5c2Smrgchoke me
17806f5dd5c2Smrg#endif
17816f5dd5c2Smrg
17826f5dd5c2Smrgint
17836f5dd5c2Smrgmain ()
17846f5dd5c2Smrg{
17856f5dd5c2Smrgreturn $2 ();
17866f5dd5c2Smrg  ;
17876f5dd5c2Smrg  return 0;
17886f5dd5c2Smrg}
17896f5dd5c2Smrg_ACEOF
17906f5dd5c2Smrgif ac_fn_c_try_link "$LINENO"; then :
17916f5dd5c2Smrg  eval "$3=yes"
17926f5dd5c2Smrgelse
17936f5dd5c2Smrg  eval "$3=no"
17946f5dd5c2Smrgfi
17956f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext \
17966f5dd5c2Smrg    conftest$ac_exeext conftest.$ac_ext
17976f5dd5c2Smrgfi
17986f5dd5c2Smrgeval ac_res=\$$3
17996f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18006f5dd5c2Smrg$as_echo "$ac_res" >&6; }
18016f5dd5c2Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
18026f5dd5c2Smrg
18036f5dd5c2Smrg} # ac_fn_c_check_func
18046f5dd5c2Smrgcat >config.log <<_ACEOF
18056f5dd5c2SmrgThis file contains any messages produced by compilers while
18066f5dd5c2Smrgrunning configure, to aid debugging if configure makes a mistake.
18076f5dd5c2Smrg
18086f5dd5c2SmrgIt was created by xset $as_me 1.2.0, which was
18096f5dd5c2Smrggenerated by GNU Autoconf 2.65.  Invocation command line was
18106f5dd5c2Smrg
18116f5dd5c2Smrg  $ $0 $@
18126f5dd5c2Smrg
18136f5dd5c2Smrg_ACEOF
18146f5dd5c2Smrgexec 5>>config.log
18156f5dd5c2Smrg{
18166f5dd5c2Smrgcat <<_ASUNAME
18176f5dd5c2Smrg## --------- ##
18186f5dd5c2Smrg## Platform. ##
18196f5dd5c2Smrg## --------- ##
18206f5dd5c2Smrg
18216f5dd5c2Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18226f5dd5c2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18236f5dd5c2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18246f5dd5c2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18256f5dd5c2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18266f5dd5c2Smrg
18276f5dd5c2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18286f5dd5c2Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18296f5dd5c2Smrg
18306f5dd5c2Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18316f5dd5c2Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18326f5dd5c2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18336f5dd5c2Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18346f5dd5c2Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18356f5dd5c2Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18366f5dd5c2Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18376f5dd5c2Smrg
18386f5dd5c2Smrg_ASUNAME
1839a0195d5fSmrg
1840a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841a0195d5fSmrgfor as_dir in $PATH
1842a0195d5fSmrgdo
1843a0195d5fSmrg  IFS=$as_save_IFS
1844a0195d5fSmrg  test -z "$as_dir" && as_dir=.
18456f5dd5c2Smrg    $as_echo "PATH: $as_dir"
18466f5dd5c2Smrg  done
1847a0195d5fSmrgIFS=$as_save_IFS
1848a0195d5fSmrg
1849a0195d5fSmrg} >&5
1850a0195d5fSmrg
1851a0195d5fSmrgcat >&5 <<_ACEOF
1852a0195d5fSmrg
1853a0195d5fSmrg
1854a0195d5fSmrg## ----------- ##
1855a0195d5fSmrg## Core tests. ##
1856a0195d5fSmrg## ----------- ##
1857a0195d5fSmrg
1858a0195d5fSmrg_ACEOF
1859a0195d5fSmrg
1860a0195d5fSmrg
1861a0195d5fSmrg# Keep a trace of the command line.
1862a0195d5fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1863a0195d5fSmrg# Strip out --silent because we don't want to record it for future runs.
1864a0195d5fSmrg# Also quote any args containing shell meta-characters.
1865a0195d5fSmrg# Make two passes to allow for proper duplicate-argument suppression.
1866a0195d5fSmrgac_configure_args=
1867a0195d5fSmrgac_configure_args0=
1868a0195d5fSmrgac_configure_args1=
1869a0195d5fSmrgac_must_keep_next=false
1870a0195d5fSmrgfor ac_pass in 1 2
1871a0195d5fSmrgdo
1872a0195d5fSmrg  for ac_arg
1873a0195d5fSmrg  do
1874a0195d5fSmrg    case $ac_arg in
1875a0195d5fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1876a0195d5fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1877a0195d5fSmrg    | -silent | --silent | --silen | --sile | --sil)
1878a0195d5fSmrg      continue ;;
1879a0195d5fSmrg    *\'*)
18806600fe5bSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881a0195d5fSmrg    esac
1882a0195d5fSmrg    case $ac_pass in
18836f5dd5c2Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884a0195d5fSmrg    2)
18856f5dd5c2Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1886a0195d5fSmrg      if test $ac_must_keep_next = true; then
1887a0195d5fSmrg	ac_must_keep_next=false # Got value, back to normal.
1888a0195d5fSmrg      else
1889a0195d5fSmrg	case $ac_arg in
1890a0195d5fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1891a0195d5fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1892a0195d5fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1893a0195d5fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1894a0195d5fSmrg	    case "$ac_configure_args0 " in
1895a0195d5fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1896a0195d5fSmrg	    esac
1897a0195d5fSmrg	    ;;
1898a0195d5fSmrg	  -* ) ac_must_keep_next=true ;;
1899a0195d5fSmrg	esac
1900a0195d5fSmrg      fi
19016f5dd5c2Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1902a0195d5fSmrg      ;;
1903a0195d5fSmrg    esac
1904a0195d5fSmrg  done
1905a0195d5fSmrgdone
19066f5dd5c2Smrg{ ac_configure_args0=; unset ac_configure_args0;}
19076f5dd5c2Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1908a0195d5fSmrg
1909a0195d5fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1910a0195d5fSmrg# config.log.  We remove comments because anyway the quotes in there
1911a0195d5fSmrg# would cause problems or look ugly.
1912a0195d5fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1913a0195d5fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1914a0195d5fSmrgtrap 'exit_status=$?
1915a0195d5fSmrg  # Save into config.log some information that might help in debugging.
1916a0195d5fSmrg  {
1917a0195d5fSmrg    echo
1918a0195d5fSmrg
1919a0195d5fSmrg    cat <<\_ASBOX
1920a0195d5fSmrg## ---------------- ##
1921a0195d5fSmrg## Cache variables. ##
1922a0195d5fSmrg## ---------------- ##
1923a0195d5fSmrg_ASBOX
1924a0195d5fSmrg    echo
1925a0195d5fSmrg    # The following way of writing the cache mishandles newlines in values,
1926a0195d5fSmrg(
1927a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928a0195d5fSmrg    eval ac_val=\$$ac_var
1929a0195d5fSmrg    case $ac_val in #(
1930a0195d5fSmrg    *${as_nl}*)
1931a0195d5fSmrg      case $ac_var in #(
19326f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19336600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934a0195d5fSmrg      esac
1935a0195d5fSmrg      case $ac_var in #(
1936a0195d5fSmrg      _ | IFS | as_nl) ;; #(
19376600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19386f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1939a0195d5fSmrg      esac ;;
1940a0195d5fSmrg    esac
1941a0195d5fSmrg  done
1942a0195d5fSmrg  (set) 2>&1 |
1943a0195d5fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944a0195d5fSmrg    *${as_nl}ac_space=\ *)
1945a0195d5fSmrg      sed -n \
1946a0195d5fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1947a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948a0195d5fSmrg      ;; #(
1949a0195d5fSmrg    *)
1950a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951a0195d5fSmrg      ;;
1952a0195d5fSmrg    esac |
1953a0195d5fSmrg    sort
1954a0195d5fSmrg)
1955a0195d5fSmrg    echo
1956a0195d5fSmrg
1957a0195d5fSmrg    cat <<\_ASBOX
1958a0195d5fSmrg## ----------------- ##
1959a0195d5fSmrg## Output variables. ##
1960a0195d5fSmrg## ----------------- ##
1961a0195d5fSmrg_ASBOX
1962a0195d5fSmrg    echo
1963a0195d5fSmrg    for ac_var in $ac_subst_vars
1964a0195d5fSmrg    do
1965a0195d5fSmrg      eval ac_val=\$$ac_var
1966a0195d5fSmrg      case $ac_val in
19676600fe5bSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968a0195d5fSmrg      esac
19696600fe5bSmrg      $as_echo "$ac_var='\''$ac_val'\''"
1970a0195d5fSmrg    done | sort
1971a0195d5fSmrg    echo
1972a0195d5fSmrg
1973a0195d5fSmrg    if test -n "$ac_subst_files"; then
1974a0195d5fSmrg      cat <<\_ASBOX
1975a0195d5fSmrg## ------------------- ##
1976a0195d5fSmrg## File substitutions. ##
1977a0195d5fSmrg## ------------------- ##
1978a0195d5fSmrg_ASBOX
1979a0195d5fSmrg      echo
1980a0195d5fSmrg      for ac_var in $ac_subst_files
1981a0195d5fSmrg      do
1982a0195d5fSmrg	eval ac_val=\$$ac_var
1983a0195d5fSmrg	case $ac_val in
19846600fe5bSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985a0195d5fSmrg	esac
19866600fe5bSmrg	$as_echo "$ac_var='\''$ac_val'\''"
1987a0195d5fSmrg      done | sort
1988a0195d5fSmrg      echo
1989a0195d5fSmrg    fi
1990a0195d5fSmrg
1991a0195d5fSmrg    if test -s confdefs.h; then
1992a0195d5fSmrg      cat <<\_ASBOX
1993a0195d5fSmrg## ----------- ##
1994a0195d5fSmrg## confdefs.h. ##
1995a0195d5fSmrg## ----------- ##
1996a0195d5fSmrg_ASBOX
1997a0195d5fSmrg      echo
1998a0195d5fSmrg      cat confdefs.h
1999a0195d5fSmrg      echo
2000a0195d5fSmrg    fi
2001a0195d5fSmrg    test "$ac_signal" != 0 &&
20026600fe5bSmrg      $as_echo "$as_me: caught signal $ac_signal"
20036600fe5bSmrg    $as_echo "$as_me: exit $exit_status"
2004a0195d5fSmrg  } >&5
2005a0195d5fSmrg  rm -f core *.core core.conftest.* &&
2006a0195d5fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2007a0195d5fSmrg    exit $exit_status
2008a0195d5fSmrg' 0
2009a0195d5fSmrgfor ac_signal in 1 2 13 15; do
20106f5dd5c2Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2011a0195d5fSmrgdone
2012a0195d5fSmrgac_signal=0
2013a0195d5fSmrg
2014a0195d5fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2015a0195d5fSmrgrm -f -r conftest* confdefs.h
2016a0195d5fSmrg
20176f5dd5c2Smrg$as_echo "/* confdefs.h */" > confdefs.h
20186f5dd5c2Smrg
2019a0195d5fSmrg# Predefined preprocessor variables.
2020a0195d5fSmrg
2021a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2022a0195d5fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2023a0195d5fSmrg_ACEOF
2024a0195d5fSmrg
2025a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2026a0195d5fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2027a0195d5fSmrg_ACEOF
2028a0195d5fSmrg
2029a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2030a0195d5fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2031a0195d5fSmrg_ACEOF
2032a0195d5fSmrg
2033a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2034a0195d5fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2035a0195d5fSmrg_ACEOF
2036a0195d5fSmrg
2037a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2038a0195d5fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2039a0195d5fSmrg_ACEOF
2040a0195d5fSmrg
20416f5dd5c2Smrgcat >>confdefs.h <<_ACEOF
20426f5dd5c2Smrg#define PACKAGE_URL "$PACKAGE_URL"
20436f5dd5c2Smrg_ACEOF
20446f5dd5c2Smrg
2045a0195d5fSmrg
2046a0195d5fSmrg# Let the site file select an alternate cache file if it wants to.
20476600fe5bSmrg# Prefer an explicitly selected file to automatically selected ones.
20486600fe5bSmrgac_site_file1=NONE
20496600fe5bSmrgac_site_file2=NONE
2050a0195d5fSmrgif test -n "$CONFIG_SITE"; then
20516600fe5bSmrg  ac_site_file1=$CONFIG_SITE
2052a0195d5fSmrgelif test "x$prefix" != xNONE; then
20536600fe5bSmrg  ac_site_file1=$prefix/share/config.site
20546600fe5bSmrg  ac_site_file2=$prefix/etc/config.site
2055a0195d5fSmrgelse
20566600fe5bSmrg  ac_site_file1=$ac_default_prefix/share/config.site
20576600fe5bSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2058a0195d5fSmrgfi
20596600fe5bSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2060a0195d5fSmrgdo
20616600fe5bSmrg  test "x$ac_site_file" = xNONE && continue
20626f5dd5c2Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
20636f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20646600fe5bSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2065a0195d5fSmrg    sed 's/^/| /' "$ac_site_file" >&5
2066a0195d5fSmrg    . "$ac_site_file"
2067a0195d5fSmrg  fi
2068a0195d5fSmrgdone
2069a0195d5fSmrg
2070a0195d5fSmrgif test -r "$cache_file"; then
20716f5dd5c2Smrg  # Some versions of bash will fail to source /dev/null (special files
20726f5dd5c2Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20736f5dd5c2Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20746f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20756600fe5bSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2076a0195d5fSmrg    case $cache_file in
2077a0195d5fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2078a0195d5fSmrg      *)                      . "./$cache_file";;
2079a0195d5fSmrg    esac
2080a0195d5fSmrg  fi
2081a0195d5fSmrgelse
20826f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
20836600fe5bSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2084a0195d5fSmrg  >$cache_file
2085a0195d5fSmrgfi
2086a0195d5fSmrg
2087a0195d5fSmrg# Check that the precious variables saved in the cache have kept the same
2088a0195d5fSmrg# value.
2089a0195d5fSmrgac_cache_corrupted=false
2090a0195d5fSmrgfor ac_var in $ac_precious_vars; do
2091a0195d5fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2092a0195d5fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2093a0195d5fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2094a0195d5fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2095a0195d5fSmrg  case $ac_old_set,$ac_new_set in
2096a0195d5fSmrg    set,)
20976f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20986600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2099a0195d5fSmrg      ac_cache_corrupted=: ;;
2100a0195d5fSmrg    ,set)
21016f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
21026600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2103a0195d5fSmrg      ac_cache_corrupted=: ;;
2104a0195d5fSmrg    ,);;
2105a0195d5fSmrg    *)
2106a0195d5fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
21076600fe5bSmrg	# differences in whitespace do not lead to failure.
21086600fe5bSmrg	ac_old_val_w=`echo x $ac_old_val`
21096600fe5bSmrg	ac_new_val_w=`echo x $ac_new_val`
21106600fe5bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
21116f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
21126600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
21136600fe5bSmrg	  ac_cache_corrupted=:
21146600fe5bSmrg	else
21156f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
21166600fe5bSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
21176600fe5bSmrg	  eval $ac_var=\$ac_old_val
21186600fe5bSmrg	fi
21196f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
21206600fe5bSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
21216f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
21226600fe5bSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2123a0195d5fSmrg      fi;;
2124a0195d5fSmrg  esac
2125a0195d5fSmrg  # Pass precious variables to config.status.
2126a0195d5fSmrg  if test "$ac_new_set" = set; then
2127a0195d5fSmrg    case $ac_new_val in
21286600fe5bSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2129a0195d5fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2130a0195d5fSmrg    esac
2131a0195d5fSmrg    case " $ac_configure_args " in
2132a0195d5fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
21336f5dd5c2Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2134a0195d5fSmrg    esac
2135a0195d5fSmrg  fi
2136a0195d5fSmrgdone
2137a0195d5fSmrgif $ac_cache_corrupted; then
21386f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21396600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21406f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
21416600fe5bSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
21426f5dd5c2Smrg  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2143a0195d5fSmrgfi
21446f5dd5c2Smrg## -------------------- ##
21456f5dd5c2Smrg## Main body of script. ##
21466f5dd5c2Smrg## -------------------- ##
2147a0195d5fSmrg
2148a0195d5fSmrgac_ext=c
2149a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
2150a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2153a0195d5fSmrg
2154a0195d5fSmrg
21556600fe5bSmrgam__api_version='1.11'
2156a0195d5fSmrg
2157a0195d5fSmrgac_aux_dir=
2158a0195d5fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21596f5dd5c2Smrg  for ac_t in install-sh install.sh shtool; do
21606f5dd5c2Smrg    if test -f "$ac_dir/$ac_t"; then
21616f5dd5c2Smrg      ac_aux_dir=$ac_dir
21626f5dd5c2Smrg      ac_install_sh="$ac_aux_dir/$ac_t -c"
21636f5dd5c2Smrg      break 2
21646f5dd5c2Smrg    fi
21656f5dd5c2Smrg  done
2166a0195d5fSmrgdone
2167a0195d5fSmrgif test -z "$ac_aux_dir"; then
21686f5dd5c2Smrg  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2169a0195d5fSmrgfi
2170a0195d5fSmrg
2171a0195d5fSmrg# These three variables are undocumented and unsupported,
2172a0195d5fSmrg# and are intended to be withdrawn in a future Autoconf release.
2173a0195d5fSmrg# They can cause serious problems if a builder's source tree is in a directory
2174a0195d5fSmrg# whose full name contains unusual characters.
2175a0195d5fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2176a0195d5fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2177a0195d5fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2178a0195d5fSmrg
2179a0195d5fSmrg
2180a0195d5fSmrg# Find a good install program.  We prefer a C program (faster),
2181a0195d5fSmrg# so one script is as good as another.  But avoid the broken or
2182a0195d5fSmrg# incompatible versions:
2183a0195d5fSmrg# SysV /etc/install, /usr/sbin/install
2184a0195d5fSmrg# SunOS /usr/etc/install
2185a0195d5fSmrg# IRIX /sbin/install
2186a0195d5fSmrg# AIX /bin/install
2187a0195d5fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2188a0195d5fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2189a0195d5fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2190a0195d5fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2191a0195d5fSmrg# OS/2's system install, which has a completely different semantic
2192a0195d5fSmrg# ./install, which can be erroneously created by make from ./install.sh.
21936600fe5bSmrg# Reject install programs that cannot install multiple files.
21946f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
21956600fe5bSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2196a0195d5fSmrgif test -z "$INSTALL"; then
21976f5dd5c2Smrgif test "${ac_cv_path_install+set}" = set; then :
21986600fe5bSmrg  $as_echo_n "(cached) " >&6
2199a0195d5fSmrgelse
2200a0195d5fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201a0195d5fSmrgfor as_dir in $PATH
2202a0195d5fSmrgdo
2203a0195d5fSmrg  IFS=$as_save_IFS
2204a0195d5fSmrg  test -z "$as_dir" && as_dir=.
22056f5dd5c2Smrg    # Account for people who put trailing slashes in PATH elements.
22066f5dd5c2Smrgcase $as_dir/ in #((
22076f5dd5c2Smrg  ./ | .// | /[cC]/* | \
2208a0195d5fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22096f5dd5c2Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2210a0195d5fSmrg  /usr/ucb/* ) ;;
2211a0195d5fSmrg  *)
2212a0195d5fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2213a0195d5fSmrg    # Don't use installbsd from OSF since it installs stuff as root
2214a0195d5fSmrg    # by default.
2215a0195d5fSmrg    for ac_prog in ginstall scoinst install; do
2216a0195d5fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2217a0195d5fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2218a0195d5fSmrg	  if test $ac_prog = install &&
2219a0195d5fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220a0195d5fSmrg	    # AIX install.  It has an incompatible calling convention.
2221a0195d5fSmrg	    :
2222a0195d5fSmrg	  elif test $ac_prog = install &&
2223a0195d5fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224a0195d5fSmrg	    # program-specific install script used by HP pwplus--don't use.
2225a0195d5fSmrg	    :
2226a0195d5fSmrg	  else
22276600fe5bSmrg	    rm -rf conftest.one conftest.two conftest.dir
22286600fe5bSmrg	    echo one > conftest.one
22296600fe5bSmrg	    echo two > conftest.two
22306600fe5bSmrg	    mkdir conftest.dir
22316600fe5bSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22326600fe5bSmrg	      test -s conftest.one && test -s conftest.two &&
22336600fe5bSmrg	      test -s conftest.dir/conftest.one &&
22346600fe5bSmrg	      test -s conftest.dir/conftest.two
22356600fe5bSmrg	    then
22366600fe5bSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22376600fe5bSmrg	      break 3
22386600fe5bSmrg	    fi
2239a0195d5fSmrg	  fi
2240a0195d5fSmrg	fi
2241a0195d5fSmrg      done
2242a0195d5fSmrg    done
2243a0195d5fSmrg    ;;
2244a0195d5fSmrgesac
22456600fe5bSmrg
22466f5dd5c2Smrg  done
2247a0195d5fSmrgIFS=$as_save_IFS
2248a0195d5fSmrg
22496600fe5bSmrgrm -rf conftest.one conftest.two conftest.dir
2250a0195d5fSmrg
2251a0195d5fSmrgfi
2252a0195d5fSmrg  if test "${ac_cv_path_install+set}" = set; then
2253a0195d5fSmrg    INSTALL=$ac_cv_path_install
2254a0195d5fSmrg  else
2255a0195d5fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2256a0195d5fSmrg    # value for INSTALL within a source directory, because that will
2257a0195d5fSmrg    # break other packages using the cache if that directory is
2258a0195d5fSmrg    # removed, or if the value is a relative name.
2259a0195d5fSmrg    INSTALL=$ac_install_sh
2260a0195d5fSmrg  fi
2261a0195d5fSmrgfi
22626f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22636600fe5bSmrg$as_echo "$INSTALL" >&6; }
2264a0195d5fSmrg
2265a0195d5fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2266a0195d5fSmrg# It thinks the first close brace ends the variable substitution.
2267a0195d5fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2268a0195d5fSmrg
2269a0195d5fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2270a0195d5fSmrg
2271a0195d5fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2272a0195d5fSmrg
22736f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
22746600fe5bSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2275a0195d5fSmrg# Just in case
2276a0195d5fSmrgsleep 1
2277a0195d5fSmrgecho timestamp > conftest.file
22786600fe5bSmrg# Reject unsafe characters in $srcdir or the absolute working directory
22796600fe5bSmrg# name.  Accept space and tab only in the latter.
22806600fe5bSmrgam_lf='
22816600fe5bSmrg'
22826600fe5bSmrgcase `pwd` in
22836600fe5bSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
22846f5dd5c2Smrg    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
22856600fe5bSmrgesac
22866600fe5bSmrgcase $srcdir in
22876600fe5bSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
22886f5dd5c2Smrg    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
22896600fe5bSmrgesac
22906600fe5bSmrg
2291a0195d5fSmrg# Do `set' in a subshell so we don't clobber the current shell's
2292a0195d5fSmrg# arguments.  Must try -L first in case configure is actually a
2293a0195d5fSmrg# symlink; some systems play weird games with the mod time of symlinks
2294a0195d5fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2295a0195d5fSmrg# directory).
2296a0195d5fSmrgif (
22976600fe5bSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2298a0195d5fSmrg   if test "$*" = "X"; then
2299a0195d5fSmrg      # -L didn't work.
23006600fe5bSmrg      set X `ls -t "$srcdir/configure" conftest.file`
2301a0195d5fSmrg   fi
2302a0195d5fSmrg   rm -f conftest.file
2303a0195d5fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2304a0195d5fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2305a0195d5fSmrg
2306a0195d5fSmrg      # If neither matched, then we have a broken ls.  This can happen
2307a0195d5fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2308a0195d5fSmrg      # broken ls alias from the environment.  This has actually
2309a0195d5fSmrg      # happened.  Such a system could not be considered "sane".
23106f5dd5c2Smrg      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
23116f5dd5c2Smrgalias in your environment" "$LINENO" 5
2312a0195d5fSmrg   fi
2313a0195d5fSmrg
2314a0195d5fSmrg   test "$2" = conftest.file
2315a0195d5fSmrg   )
2316a0195d5fSmrgthen
2317a0195d5fSmrg   # Ok.
2318a0195d5fSmrg   :
2319a0195d5fSmrgelse
23206f5dd5c2Smrg   as_fn_error "newly created file is older than distributed files!
23216f5dd5c2SmrgCheck your system clock" "$LINENO" 5
2322a0195d5fSmrgfi
23236f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23246600fe5bSmrg$as_echo "yes" >&6; }
2325a0195d5fSmrgtest "$program_prefix" != NONE &&
2326a0195d5fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2327a0195d5fSmrg# Use a double $ so make ignores it.
2328a0195d5fSmrgtest "$program_suffix" != NONE &&
2329a0195d5fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23306600fe5bSmrg# Double any \ or $.
2331a0195d5fSmrg# By default was `s,x,x', remove it if useless.
23326600fe5bSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23336600fe5bSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2334a0195d5fSmrg
2335a0195d5fSmrg# expand $ac_aux_dir to an absolute path
2336a0195d5fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2337a0195d5fSmrg
23386600fe5bSmrgif test x"${MISSING+set}" != xset; then
23396600fe5bSmrg  case $am_aux_dir in
23406600fe5bSmrg  *\ * | *\	*)
23416600fe5bSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23426600fe5bSmrg  *)
23436600fe5bSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23446600fe5bSmrg  esac
23456600fe5bSmrgfi
2346a0195d5fSmrg# Use eval to expand $SHELL
2347a0195d5fSmrgif eval "$MISSING --run true"; then
2348a0195d5fSmrg  am_missing_run="$MISSING --run "
2349a0195d5fSmrgelse
2350a0195d5fSmrg  am_missing_run=
23516f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
23526600fe5bSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23536600fe5bSmrgfi
23546600fe5bSmrg
23556600fe5bSmrgif test x"${install_sh}" != xset; then
23566600fe5bSmrg  case $am_aux_dir in
23576600fe5bSmrg  *\ * | *\	*)
23586600fe5bSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23596600fe5bSmrg  *)
23606600fe5bSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23616600fe5bSmrg  esac
23626600fe5bSmrgfi
23636600fe5bSmrg
23646600fe5bSmrg# Installed binaries are usually stripped using `strip' when the user
23656600fe5bSmrg# run `make install-strip'.  However `strip' might not be the right
23666600fe5bSmrg# tool to use in cross-compilation environments, therefore Automake
23676600fe5bSmrg# will honor the `STRIP' environment variable to overrule this program.
23686600fe5bSmrgif test "$cross_compiling" != no; then
23696600fe5bSmrg  if test -n "$ac_tool_prefix"; then
23706600fe5bSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23716600fe5bSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
23726f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23736600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
23746f5dd5c2Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
23756600fe5bSmrg  $as_echo_n "(cached) " >&6
23766600fe5bSmrgelse
23776600fe5bSmrg  if test -n "$STRIP"; then
23786600fe5bSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
23796600fe5bSmrgelse
23806600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23816600fe5bSmrgfor as_dir in $PATH
23826600fe5bSmrgdo
23836600fe5bSmrg  IFS=$as_save_IFS
23846600fe5bSmrg  test -z "$as_dir" && as_dir=.
23856f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
23866600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23876600fe5bSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23886f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23896600fe5bSmrg    break 2
23906600fe5bSmrg  fi
23916600fe5bSmrgdone
23926f5dd5c2Smrg  done
23936600fe5bSmrgIFS=$as_save_IFS
23946600fe5bSmrg
23956600fe5bSmrgfi
23966600fe5bSmrgfi
23976600fe5bSmrgSTRIP=$ac_cv_prog_STRIP
23986600fe5bSmrgif test -n "$STRIP"; then
23996f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24006600fe5bSmrg$as_echo "$STRIP" >&6; }
24016600fe5bSmrgelse
24026f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036600fe5bSmrg$as_echo "no" >&6; }
24046600fe5bSmrgfi
24056600fe5bSmrg
24066600fe5bSmrg
24076600fe5bSmrgfi
24086600fe5bSmrgif test -z "$ac_cv_prog_STRIP"; then
24096600fe5bSmrg  ac_ct_STRIP=$STRIP
24106600fe5bSmrg  # Extract the first word of "strip", so it can be a program name with args.
24116600fe5bSmrgset dummy strip; ac_word=$2
24126f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24136600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
24146f5dd5c2Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
24156600fe5bSmrg  $as_echo_n "(cached) " >&6
24166600fe5bSmrgelse
24176600fe5bSmrg  if test -n "$ac_ct_STRIP"; then
24186600fe5bSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24196600fe5bSmrgelse
24206600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24216600fe5bSmrgfor as_dir in $PATH
24226600fe5bSmrgdo
24236600fe5bSmrg  IFS=$as_save_IFS
24246600fe5bSmrg  test -z "$as_dir" && as_dir=.
24256f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24266600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24276600fe5bSmrg    ac_cv_prog_ac_ct_STRIP="strip"
24286f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24296600fe5bSmrg    break 2
24306600fe5bSmrg  fi
24316600fe5bSmrgdone
24326f5dd5c2Smrg  done
24336600fe5bSmrgIFS=$as_save_IFS
24346600fe5bSmrg
24356600fe5bSmrgfi
24366600fe5bSmrgfi
24376600fe5bSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24386600fe5bSmrgif test -n "$ac_ct_STRIP"; then
24396f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24406600fe5bSmrg$as_echo "$ac_ct_STRIP" >&6; }
24416600fe5bSmrgelse
24426f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24436600fe5bSmrg$as_echo "no" >&6; }
24446600fe5bSmrgfi
24456600fe5bSmrg
24466600fe5bSmrg  if test "x$ac_ct_STRIP" = x; then
24476600fe5bSmrg    STRIP=":"
24486600fe5bSmrg  else
24496600fe5bSmrg    case $cross_compiling:$ac_tool_warned in
24506600fe5bSmrgyes:)
24516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24526600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24536600fe5bSmrgac_tool_warned=yes ;;
24546600fe5bSmrgesac
24556600fe5bSmrg    STRIP=$ac_ct_STRIP
24566600fe5bSmrg  fi
24576600fe5bSmrgelse
24586600fe5bSmrg  STRIP="$ac_cv_prog_STRIP"
2459a0195d5fSmrgfi
2460a0195d5fSmrg
24616600fe5bSmrgfi
24626600fe5bSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24636600fe5bSmrg
24646f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
24656600fe5bSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2466a0195d5fSmrgif test -z "$MKDIR_P"; then
24676f5dd5c2Smrg  if test "${ac_cv_path_mkdir+set}" = set; then :
24686600fe5bSmrg  $as_echo_n "(cached) " >&6
2469a0195d5fSmrgelse
2470a0195d5fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471a0195d5fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2472a0195d5fSmrgdo
2473a0195d5fSmrg  IFS=$as_save_IFS
2474a0195d5fSmrg  test -z "$as_dir" && as_dir=.
24756f5dd5c2Smrg    for ac_prog in mkdir gmkdir; do
2476a0195d5fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2477a0195d5fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2478a0195d5fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2479a0195d5fSmrg	     'mkdir (GNU coreutils) '* | \
2480a0195d5fSmrg	     'mkdir (coreutils) '* | \
2481a0195d5fSmrg	     'mkdir (fileutils) '4.1*)
2482a0195d5fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2483a0195d5fSmrg	       break 3;;
2484a0195d5fSmrg	   esac
2485a0195d5fSmrg	 done
2486a0195d5fSmrg       done
24876f5dd5c2Smrg  done
2488a0195d5fSmrgIFS=$as_save_IFS
2489a0195d5fSmrg
2490a0195d5fSmrgfi
2491a0195d5fSmrg
24926f5dd5c2Smrg  test -d ./--version && rmdir ./--version
2493a0195d5fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2494a0195d5fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2495a0195d5fSmrg  else
2496a0195d5fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2497a0195d5fSmrg    # value for MKDIR_P within a source directory, because that will
2498a0195d5fSmrg    # break other packages using the cache if that directory is
2499a0195d5fSmrg    # removed, or if the value is a relative name.
2500a0195d5fSmrg    MKDIR_P="$ac_install_sh -d"
2501a0195d5fSmrg  fi
2502a0195d5fSmrgfi
25036f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
25046600fe5bSmrg$as_echo "$MKDIR_P" >&6; }
2505a0195d5fSmrg
2506a0195d5fSmrgmkdir_p="$MKDIR_P"
2507a0195d5fSmrgcase $mkdir_p in
2508a0195d5fSmrg  [\\/$]* | ?:[\\/]*) ;;
2509a0195d5fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2510a0195d5fSmrgesac
2511a0195d5fSmrg
2512a0195d5fSmrgfor ac_prog in gawk mawk nawk awk
2513a0195d5fSmrgdo
2514a0195d5fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2515a0195d5fSmrgset dummy $ac_prog; ac_word=$2
25166f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25176600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25186f5dd5c2Smrgif test "${ac_cv_prog_AWK+set}" = set; then :
25196600fe5bSmrg  $as_echo_n "(cached) " >&6
2520a0195d5fSmrgelse
2521a0195d5fSmrg  if test -n "$AWK"; then
2522a0195d5fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523a0195d5fSmrgelse
2524a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525a0195d5fSmrgfor as_dir in $PATH
2526a0195d5fSmrgdo
2527a0195d5fSmrg  IFS=$as_save_IFS
2528a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25296f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2530a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531a0195d5fSmrg    ac_cv_prog_AWK="$ac_prog"
25326f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533a0195d5fSmrg    break 2
2534a0195d5fSmrg  fi
2535a0195d5fSmrgdone
25366f5dd5c2Smrg  done
2537a0195d5fSmrgIFS=$as_save_IFS
2538a0195d5fSmrg
2539a0195d5fSmrgfi
2540a0195d5fSmrgfi
2541a0195d5fSmrgAWK=$ac_cv_prog_AWK
2542a0195d5fSmrgif test -n "$AWK"; then
25436f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25446600fe5bSmrg$as_echo "$AWK" >&6; }
2545a0195d5fSmrgelse
25466f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25476600fe5bSmrg$as_echo "no" >&6; }
2548a0195d5fSmrgfi
2549a0195d5fSmrg
2550a0195d5fSmrg
2551a0195d5fSmrg  test -n "$AWK" && break
2552a0195d5fSmrgdone
2553a0195d5fSmrg
25546f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25556600fe5bSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25566600fe5bSmrgset x ${MAKE-make}
25576600fe5bSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25586f5dd5c2Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
25596600fe5bSmrg  $as_echo_n "(cached) " >&6
2560a0195d5fSmrgelse
2561a0195d5fSmrg  cat >conftest.make <<\_ACEOF
2562a0195d5fSmrgSHELL = /bin/sh
2563a0195d5fSmrgall:
2564a0195d5fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2565a0195d5fSmrg_ACEOF
2566a0195d5fSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2567a0195d5fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2568a0195d5fSmrg  *@@@%%%=?*=@@@%%%*)
2569a0195d5fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2570a0195d5fSmrg  *)
2571a0195d5fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2572a0195d5fSmrgesac
2573a0195d5fSmrgrm -f conftest.make
2574a0195d5fSmrgfi
2575a0195d5fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25766f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25776600fe5bSmrg$as_echo "yes" >&6; }
2578a0195d5fSmrg  SET_MAKE=
2579a0195d5fSmrgelse
25806f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25816600fe5bSmrg$as_echo "no" >&6; }
2582a0195d5fSmrg  SET_MAKE="MAKE=${MAKE-make}"
2583a0195d5fSmrgfi
2584a0195d5fSmrg
2585a0195d5fSmrgrm -rf .tst 2>/dev/null
2586a0195d5fSmrgmkdir .tst 2>/dev/null
2587a0195d5fSmrgif test -d .tst; then
2588a0195d5fSmrg  am__leading_dot=.
2589a0195d5fSmrgelse
2590a0195d5fSmrg  am__leading_dot=_
2591a0195d5fSmrgfi
2592a0195d5fSmrgrmdir .tst 2>/dev/null
2593a0195d5fSmrg
2594a0195d5fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2595a0195d5fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2596a0195d5fSmrg  # is not polluted with repeated "-I."
2597a0195d5fSmrg  am__isrc=' -I$(srcdir)'
2598a0195d5fSmrg  # test to see if srcdir already configured
2599a0195d5fSmrg  if test -f $srcdir/config.status; then
26006f5dd5c2Smrg    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2601a0195d5fSmrg  fi
2602a0195d5fSmrgfi
2603a0195d5fSmrg
2604a0195d5fSmrg# test whether we have cygpath
2605a0195d5fSmrgif test -z "$CYGPATH_W"; then
2606a0195d5fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2607a0195d5fSmrg    CYGPATH_W='cygpath -w'
2608a0195d5fSmrg  else
2609a0195d5fSmrg    CYGPATH_W=echo
2610a0195d5fSmrg  fi
2611a0195d5fSmrgfi
2612a0195d5fSmrg
2613a0195d5fSmrg
2614a0195d5fSmrg# Define the identity of the package.
2615a0195d5fSmrg PACKAGE='xset'
26166f5dd5c2Smrg VERSION='1.2.0'
2617a0195d5fSmrg
2618a0195d5fSmrg
2619a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2620a0195d5fSmrg#define PACKAGE "$PACKAGE"
2621a0195d5fSmrg_ACEOF
2622a0195d5fSmrg
2623a0195d5fSmrg
2624a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2625a0195d5fSmrg#define VERSION "$VERSION"
2626a0195d5fSmrg_ACEOF
2627a0195d5fSmrg
2628a0195d5fSmrg# Some tools Automake needs.
2629a0195d5fSmrg
2630a0195d5fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2631a0195d5fSmrg
2632a0195d5fSmrg
2633a0195d5fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2634a0195d5fSmrg
2635a0195d5fSmrg
2636a0195d5fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2637a0195d5fSmrg
2638a0195d5fSmrg
2639a0195d5fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2640a0195d5fSmrg
2641a0195d5fSmrg
2642a0195d5fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2643a0195d5fSmrg
2644a0195d5fSmrg# We need awk for the "check" target.  The system "awk" is bad on
2645a0195d5fSmrg# some platforms.
2646a0195d5fSmrg# Always define AMTAR for backward compatibility.
2647a0195d5fSmrg
2648a0195d5fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2649a0195d5fSmrg
2650a0195d5fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2651a0195d5fSmrg
2652a0195d5fSmrg
2653a0195d5fSmrg
2654a0195d5fSmrg
2655a0195d5fSmrg
26566600fe5bSmrg
26576f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26586600fe5bSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2659a0195d5fSmrg    # Check whether --enable-maintainer-mode was given.
26606f5dd5c2Smrgif test "${enable_maintainer_mode+set}" = set; then :
2661a0195d5fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2662a0195d5fSmrgelse
2663a0195d5fSmrg  USE_MAINTAINER_MODE=no
2664a0195d5fSmrgfi
2665a0195d5fSmrg
26666f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
26676600fe5bSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2668a0195d5fSmrg   if test $USE_MAINTAINER_MODE = yes; then
2669a0195d5fSmrg  MAINTAINER_MODE_TRUE=
2670a0195d5fSmrg  MAINTAINER_MODE_FALSE='#'
2671a0195d5fSmrgelse
2672a0195d5fSmrg  MAINTAINER_MODE_TRUE='#'
2673a0195d5fSmrg  MAINTAINER_MODE_FALSE=
2674a0195d5fSmrgfi
2675a0195d5fSmrg
2676a0195d5fSmrg  MAINT=$MAINTAINER_MODE_TRUE
2677a0195d5fSmrg
2678a0195d5fSmrg
2679a0195d5fSmrg
26806600fe5bSmrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
26816600fe5bSmrg
26826600fe5bSmrg
26836600fe5bSmrg
26846600fe5bSmrg
26856600fe5bSmrg
26866600fe5bSmrg
26876600fe5bSmrg
26886600fe5bSmrg
26896600fe5bSmrg
26906600fe5bSmrg
26916600fe5bSmrg
26926f5dd5c2SmrgDEPDIR="${am__leading_dot}deps"
2693a0195d5fSmrg
26946f5dd5c2Smrgac_config_commands="$ac_config_commands depfiles"
2695a0195d5fSmrg
2696a0195d5fSmrg
26976f5dd5c2Smrgam_make=${MAKE-make}
26986f5dd5c2Smrgcat > confinc << 'END'
26996f5dd5c2Smrgam__doit:
27006f5dd5c2Smrg	@echo this is the am__doit target
27016f5dd5c2Smrg.PHONY: am__doit
27026f5dd5c2SmrgEND
27036f5dd5c2Smrg# If we don't find an include directive, just comment out the code.
27046f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
27056f5dd5c2Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
27066f5dd5c2Smrgam__include="#"
27076f5dd5c2Smrgam__quote=
27086f5dd5c2Smrg_am_result=none
27096f5dd5c2Smrg# First try GNU make style include.
27106f5dd5c2Smrgecho "include confinc" > confmf
27116f5dd5c2Smrg# Ignore all kinds of additional output from `make'.
27126f5dd5c2Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
27136f5dd5c2Smrg*the\ am__doit\ target*)
27146f5dd5c2Smrg  am__include=include
27156f5dd5c2Smrg  am__quote=
27166f5dd5c2Smrg  _am_result=GNU
27176f5dd5c2Smrg  ;;
27186f5dd5c2Smrgesac
27196f5dd5c2Smrg# Now try BSD make style include.
27206f5dd5c2Smrgif test "$am__include" = "#"; then
27216f5dd5c2Smrg   echo '.include "confinc"' > confmf
27226f5dd5c2Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27236f5dd5c2Smrg   *the\ am__doit\ target*)
27246f5dd5c2Smrg     am__include=.include
27256f5dd5c2Smrg     am__quote="\""
27266f5dd5c2Smrg     _am_result=BSD
27276f5dd5c2Smrg     ;;
27286f5dd5c2Smrg   esac
27296f5dd5c2Smrgfi
27306f5dd5c2Smrg
27316f5dd5c2Smrg
27326f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27336f5dd5c2Smrg$as_echo "$_am_result" >&6; }
27346f5dd5c2Smrgrm -f confinc confmf
27356f5dd5c2Smrg
27366f5dd5c2Smrg# Check whether --enable-dependency-tracking was given.
27376f5dd5c2Smrgif test "${enable_dependency_tracking+set}" = set; then :
27386f5dd5c2Smrg  enableval=$enable_dependency_tracking;
27396f5dd5c2Smrgfi
27406f5dd5c2Smrg
27416f5dd5c2Smrgif test "x$enable_dependency_tracking" != xno; then
27426f5dd5c2Smrg  am_depcomp="$ac_aux_dir/depcomp"
27436f5dd5c2Smrg  AMDEPBACKSLASH='\'
27446f5dd5c2Smrgfi
27456f5dd5c2Smrg if test "x$enable_dependency_tracking" != xno; then
27466f5dd5c2Smrg  AMDEP_TRUE=
27476f5dd5c2Smrg  AMDEP_FALSE='#'
27486f5dd5c2Smrgelse
27496f5dd5c2Smrg  AMDEP_TRUE='#'
27506f5dd5c2Smrg  AMDEP_FALSE=
27516f5dd5c2Smrgfi
27526f5dd5c2Smrg
27536f5dd5c2Smrg
27546f5dd5c2Smrgac_ext=c
27556f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
27566f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27576f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27586f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27596f5dd5c2Smrgif test -n "$ac_tool_prefix"; then
27606f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27616f5dd5c2Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27626f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27636f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
27646f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
27656f5dd5c2Smrg  $as_echo_n "(cached) " >&6
27666f5dd5c2Smrgelse
27676f5dd5c2Smrg  if test -n "$CC"; then
27686f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27696f5dd5c2Smrgelse
27706f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27716f5dd5c2Smrgfor as_dir in $PATH
27726f5dd5c2Smrgdo
27736f5dd5c2Smrg  IFS=$as_save_IFS
27746f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
27756f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27766f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27776f5dd5c2Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
27786f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27796f5dd5c2Smrg    break 2
27806f5dd5c2Smrg  fi
27816f5dd5c2Smrgdone
27826f5dd5c2Smrg  done
27836f5dd5c2SmrgIFS=$as_save_IFS
27846f5dd5c2Smrg
27856f5dd5c2Smrgfi
27866f5dd5c2Smrgfi
27876f5dd5c2SmrgCC=$ac_cv_prog_CC
27886f5dd5c2Smrgif test -n "$CC"; then
27896f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27906f5dd5c2Smrg$as_echo "$CC" >&6; }
27916f5dd5c2Smrgelse
27926f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27936f5dd5c2Smrg$as_echo "no" >&6; }
27946f5dd5c2Smrgfi
27956f5dd5c2Smrg
27966f5dd5c2Smrg
27976f5dd5c2Smrgfi
27986f5dd5c2Smrgif test -z "$ac_cv_prog_CC"; then
2799a0195d5fSmrg  ac_ct_CC=$CC
2800a0195d5fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2801a0195d5fSmrgset dummy gcc; ac_word=$2
28026f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28036600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28046f5dd5c2Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
28056600fe5bSmrg  $as_echo_n "(cached) " >&6
2806a0195d5fSmrgelse
2807a0195d5fSmrg  if test -n "$ac_ct_CC"; then
2808a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809a0195d5fSmrgelse
2810a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811a0195d5fSmrgfor as_dir in $PATH
2812a0195d5fSmrgdo
2813a0195d5fSmrg  IFS=$as_save_IFS
2814a0195d5fSmrg  test -z "$as_dir" && as_dir=.
28156f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2816a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817a0195d5fSmrg    ac_cv_prog_ac_ct_CC="gcc"
28186f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819a0195d5fSmrg    break 2
2820a0195d5fSmrg  fi
2821a0195d5fSmrgdone
28226f5dd5c2Smrg  done
2823a0195d5fSmrgIFS=$as_save_IFS
2824a0195d5fSmrg
2825a0195d5fSmrgfi
2826a0195d5fSmrgfi
2827a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2828a0195d5fSmrgif test -n "$ac_ct_CC"; then
28296f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28306600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
2831a0195d5fSmrgelse
28326f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28336600fe5bSmrg$as_echo "no" >&6; }
2834a0195d5fSmrgfi
2835a0195d5fSmrg
2836a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
2837a0195d5fSmrg    CC=""
2838a0195d5fSmrg  else
2839a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
2840a0195d5fSmrgyes:)
28416f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28426600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843a0195d5fSmrgac_tool_warned=yes ;;
2844a0195d5fSmrgesac
2845a0195d5fSmrg    CC=$ac_ct_CC
2846a0195d5fSmrg  fi
2847a0195d5fSmrgelse
2848a0195d5fSmrg  CC="$ac_cv_prog_CC"
2849a0195d5fSmrgfi
2850a0195d5fSmrg
2851a0195d5fSmrgif test -z "$CC"; then
2852a0195d5fSmrg          if test -n "$ac_tool_prefix"; then
2853a0195d5fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2854a0195d5fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28556f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28566600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28576f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
28586600fe5bSmrg  $as_echo_n "(cached) " >&6
2859a0195d5fSmrgelse
2860a0195d5fSmrg  if test -n "$CC"; then
2861a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2862a0195d5fSmrgelse
2863a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864a0195d5fSmrgfor as_dir in $PATH
2865a0195d5fSmrgdo
2866a0195d5fSmrg  IFS=$as_save_IFS
2867a0195d5fSmrg  test -z "$as_dir" && as_dir=.
28686f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2869a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870a0195d5fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
28716f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872a0195d5fSmrg    break 2
2873a0195d5fSmrg  fi
2874a0195d5fSmrgdone
28756f5dd5c2Smrg  done
2876a0195d5fSmrgIFS=$as_save_IFS
2877a0195d5fSmrg
2878a0195d5fSmrgfi
2879a0195d5fSmrgfi
2880a0195d5fSmrgCC=$ac_cv_prog_CC
2881a0195d5fSmrgif test -n "$CC"; then
28826f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28836600fe5bSmrg$as_echo "$CC" >&6; }
2884a0195d5fSmrgelse
28856f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28866600fe5bSmrg$as_echo "no" >&6; }
2887a0195d5fSmrgfi
2888a0195d5fSmrg
2889a0195d5fSmrg
2890a0195d5fSmrg  fi
2891a0195d5fSmrgfi
2892a0195d5fSmrgif test -z "$CC"; then
2893a0195d5fSmrg  # Extract the first word of "cc", so it can be a program name with args.
2894a0195d5fSmrgset dummy cc; ac_word=$2
28956f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28966600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28976f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
28986600fe5bSmrg  $as_echo_n "(cached) " >&6
2899a0195d5fSmrgelse
2900a0195d5fSmrg  if test -n "$CC"; then
2901a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2902a0195d5fSmrgelse
2903a0195d5fSmrg  ac_prog_rejected=no
2904a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905a0195d5fSmrgfor as_dir in $PATH
2906a0195d5fSmrgdo
2907a0195d5fSmrg  IFS=$as_save_IFS
2908a0195d5fSmrg  test -z "$as_dir" && as_dir=.
29096f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2910a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911a0195d5fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2912a0195d5fSmrg       ac_prog_rejected=yes
2913a0195d5fSmrg       continue
2914a0195d5fSmrg     fi
2915a0195d5fSmrg    ac_cv_prog_CC="cc"
29166f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917a0195d5fSmrg    break 2
2918a0195d5fSmrg  fi
2919a0195d5fSmrgdone
29206f5dd5c2Smrg  done
2921a0195d5fSmrgIFS=$as_save_IFS
2922a0195d5fSmrg
2923a0195d5fSmrgif test $ac_prog_rejected = yes; then
2924a0195d5fSmrg  # We found a bogon in the path, so make sure we never use it.
2925a0195d5fSmrg  set dummy $ac_cv_prog_CC
2926a0195d5fSmrg  shift
2927a0195d5fSmrg  if test $# != 0; then
2928a0195d5fSmrg    # We chose a different compiler from the bogus one.
2929a0195d5fSmrg    # However, it has the same basename, so the bogon will be chosen
2930a0195d5fSmrg    # first if we set CC to just the basename; use the full file name.
2931a0195d5fSmrg    shift
2932a0195d5fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2933a0195d5fSmrg  fi
2934a0195d5fSmrgfi
2935a0195d5fSmrgfi
2936a0195d5fSmrgfi
2937a0195d5fSmrgCC=$ac_cv_prog_CC
2938a0195d5fSmrgif test -n "$CC"; then
29396f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29406600fe5bSmrg$as_echo "$CC" >&6; }
2941a0195d5fSmrgelse
29426f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29436600fe5bSmrg$as_echo "no" >&6; }
2944a0195d5fSmrgfi
2945a0195d5fSmrg
2946a0195d5fSmrg
2947a0195d5fSmrgfi
2948a0195d5fSmrgif test -z "$CC"; then
2949a0195d5fSmrg  if test -n "$ac_tool_prefix"; then
2950a0195d5fSmrg  for ac_prog in cl.exe
2951a0195d5fSmrg  do
2952a0195d5fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2953a0195d5fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29546f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29556600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
29566f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
29576600fe5bSmrg  $as_echo_n "(cached) " >&6
2958a0195d5fSmrgelse
2959a0195d5fSmrg  if test -n "$CC"; then
2960a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2961a0195d5fSmrgelse
2962a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963a0195d5fSmrgfor as_dir in $PATH
2964a0195d5fSmrgdo
2965a0195d5fSmrg  IFS=$as_save_IFS
2966a0195d5fSmrg  test -z "$as_dir" && as_dir=.
29676f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2968a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969a0195d5fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29706f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971a0195d5fSmrg    break 2
2972a0195d5fSmrg  fi
2973a0195d5fSmrgdone
29746f5dd5c2Smrg  done
2975a0195d5fSmrgIFS=$as_save_IFS
2976a0195d5fSmrg
2977a0195d5fSmrgfi
2978a0195d5fSmrgfi
2979a0195d5fSmrgCC=$ac_cv_prog_CC
2980a0195d5fSmrgif test -n "$CC"; then
29816f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29826600fe5bSmrg$as_echo "$CC" >&6; }
2983a0195d5fSmrgelse
29846f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29856600fe5bSmrg$as_echo "no" >&6; }
2986a0195d5fSmrgfi
2987a0195d5fSmrg
2988a0195d5fSmrg
2989a0195d5fSmrg    test -n "$CC" && break
2990a0195d5fSmrg  done
2991a0195d5fSmrgfi
2992a0195d5fSmrgif test -z "$CC"; then
2993a0195d5fSmrg  ac_ct_CC=$CC
2994a0195d5fSmrg  for ac_prog in cl.exe
2995a0195d5fSmrgdo
2996a0195d5fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2997a0195d5fSmrgset dummy $ac_prog; ac_word=$2
29986f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29996600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
30006f5dd5c2Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
30016600fe5bSmrg  $as_echo_n "(cached) " >&6
3002a0195d5fSmrgelse
3003a0195d5fSmrg  if test -n "$ac_ct_CC"; then
3004a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005a0195d5fSmrgelse
3006a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007a0195d5fSmrgfor as_dir in $PATH
3008a0195d5fSmrgdo
3009a0195d5fSmrg  IFS=$as_save_IFS
3010a0195d5fSmrg  test -z "$as_dir" && as_dir=.
30116f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3012a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013a0195d5fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
30146f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015a0195d5fSmrg    break 2
3016a0195d5fSmrg  fi
3017a0195d5fSmrgdone
30186f5dd5c2Smrg  done
3019a0195d5fSmrgIFS=$as_save_IFS
3020a0195d5fSmrg
3021a0195d5fSmrgfi
3022a0195d5fSmrgfi
3023a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3024a0195d5fSmrgif test -n "$ac_ct_CC"; then
30256f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30266600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
3027a0195d5fSmrgelse
30286f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30296600fe5bSmrg$as_echo "no" >&6; }
3030a0195d5fSmrgfi
3031a0195d5fSmrg
3032a0195d5fSmrg
3033a0195d5fSmrg  test -n "$ac_ct_CC" && break
3034a0195d5fSmrgdone
3035a0195d5fSmrg
3036a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
3037a0195d5fSmrg    CC=""
3038a0195d5fSmrg  else
3039a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
3040a0195d5fSmrgyes:)
30416f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30426600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043a0195d5fSmrgac_tool_warned=yes ;;
3044a0195d5fSmrgesac
3045a0195d5fSmrg    CC=$ac_ct_CC
3046a0195d5fSmrg  fi
3047a0195d5fSmrgfi
3048a0195d5fSmrg
3049a0195d5fSmrgfi
3050a0195d5fSmrg
3051a0195d5fSmrg
30526f5dd5c2Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30536600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30546f5dd5c2Smrgas_fn_error "no acceptable C compiler found in \$PATH
30556f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
3056a0195d5fSmrg
3057a0195d5fSmrg# Provide some information about the compiler.
30586f5dd5c2Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30596600fe5bSmrgset X $ac_compile
30606600fe5bSmrgac_compiler=$2
30616f5dd5c2Smrgfor ac_option in --version -v -V -qversion; do
30626f5dd5c2Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3063a0195d5fSmrgcase "(($ac_try" in
3064a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3066a0195d5fSmrgesac
30676f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30686f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
30696f5dd5c2Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3070a0195d5fSmrg  ac_status=$?
30716f5dd5c2Smrg  if test -s conftest.err; then
30726f5dd5c2Smrg    sed '10a\
30736f5dd5c2Smrg... rest of stderr output deleted ...
30746f5dd5c2Smrg         10q' conftest.err >conftest.er1
30756f5dd5c2Smrg    cat conftest.er1 >&5
30766f5dd5c2Smrg  fi
30776f5dd5c2Smrg  rm -f conftest.er1 conftest.err
30786f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30796f5dd5c2Smrg  test $ac_status = 0; }
30806f5dd5c2Smrgdone
3081a0195d5fSmrg
30826f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083a0195d5fSmrg/* end confdefs.h.  */
3084a0195d5fSmrg
3085a0195d5fSmrgint
3086a0195d5fSmrgmain ()
3087a0195d5fSmrg{
3088a0195d5fSmrg
3089a0195d5fSmrg  ;
3090a0195d5fSmrg  return 0;
3091a0195d5fSmrg}
3092a0195d5fSmrg_ACEOF
3093a0195d5fSmrgac_clean_files_save=$ac_clean_files
30946600fe5bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3095a0195d5fSmrg# Try to create an executable without -o first, disregard a.out.
3096a0195d5fSmrg# It will help us diagnose broken compilers, and finding out an intuition
3097a0195d5fSmrg# of exeext.
30986f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30996f5dd5c2Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
31006600fe5bSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31016600fe5bSmrg
31026600fe5bSmrg# The possible output files:
31036600fe5bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31046600fe5bSmrg
3105a0195d5fSmrgac_rmfiles=
3106a0195d5fSmrgfor ac_file in $ac_files
3107a0195d5fSmrgdo
3108a0195d5fSmrg  case $ac_file in
31096600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3110a0195d5fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3111a0195d5fSmrg  esac
3112a0195d5fSmrgdone
3113a0195d5fSmrgrm -f $ac_rmfiles
3114a0195d5fSmrg
31156f5dd5c2Smrgif { { ac_try="$ac_link_default"
3116a0195d5fSmrgcase "(($ac_try" in
3117a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3119a0195d5fSmrgesac
31206f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31216f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3122a0195d5fSmrg  (eval "$ac_link_default") 2>&5
3123a0195d5fSmrg  ac_status=$?
31246f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31256f5dd5c2Smrg  test $ac_status = 0; }; then :
3126a0195d5fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3127a0195d5fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3128a0195d5fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3129a0195d5fSmrg# so that the user can short-circuit this test for compilers unknown to
3130a0195d5fSmrg# Autoconf.
3131a0195d5fSmrgfor ac_file in $ac_files ''
3132a0195d5fSmrgdo
3133a0195d5fSmrg  test -f "$ac_file" || continue
3134a0195d5fSmrg  case $ac_file in
31356600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3136a0195d5fSmrg	;;
3137a0195d5fSmrg    [ab].out )
3138a0195d5fSmrg	# We found the default executable, but exeext='' is most
3139a0195d5fSmrg	# certainly right.
3140a0195d5fSmrg	break;;
3141a0195d5fSmrg    *.* )
31426f5dd5c2Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3143a0195d5fSmrg	then :; else
3144a0195d5fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145a0195d5fSmrg	fi
3146a0195d5fSmrg	# We set ac_cv_exeext here because the later test for it is not
3147a0195d5fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3148a0195d5fSmrg	# argument, so we may need to know it at that point already.
3149a0195d5fSmrg	# Even if this section looks crufty: it has the advantage of
3150a0195d5fSmrg	# actually working.
3151a0195d5fSmrg	break;;
3152a0195d5fSmrg    * )
3153a0195d5fSmrg	break;;
3154a0195d5fSmrg  esac
3155a0195d5fSmrgdone
3156a0195d5fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3157a0195d5fSmrg
3158a0195d5fSmrgelse
3159a0195d5fSmrg  ac_file=''
3160a0195d5fSmrgfi
31616f5dd5c2Smrgif test -z "$ac_file"; then :
31626f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31636f5dd5c2Smrg$as_echo "no" >&6; }
31646f5dd5c2Smrg$as_echo "$as_me: failed program was:" >&5
3165a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3166a0195d5fSmrg
31676f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31686600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31696f5dd5c2Smrg{ as_fn_set_status 77
31706f5dd5c2Smrgas_fn_error "C compiler cannot create executables
31716f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }; }
31726f5dd5c2Smrgelse
31736f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31746f5dd5c2Smrg$as_echo "yes" >&6; }
3175a0195d5fSmrgfi
31766f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
31776f5dd5c2Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
31786f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
31796f5dd5c2Smrg$as_echo "$ac_file" >&6; }
3180a0195d5fSmrgac_exeext=$ac_cv_exeext
3181a0195d5fSmrg
31826600fe5bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3183a0195d5fSmrgac_clean_files=$ac_clean_files_save
31846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
31856600fe5bSmrg$as_echo_n "checking for suffix of executables... " >&6; }
31866f5dd5c2Smrgif { { ac_try="$ac_link"
3187a0195d5fSmrgcase "(($ac_try" in
3188a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3190a0195d5fSmrgesac
31916f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31926f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3193a0195d5fSmrg  (eval "$ac_link") 2>&5
3194a0195d5fSmrg  ac_status=$?
31956f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31966f5dd5c2Smrg  test $ac_status = 0; }; then :
3197a0195d5fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3198a0195d5fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3199a0195d5fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3200a0195d5fSmrg# `rm'.
3201a0195d5fSmrgfor ac_file in conftest.exe conftest conftest.*; do
3202a0195d5fSmrg  test -f "$ac_file" || continue
3203a0195d5fSmrg  case $ac_file in
32046600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205a0195d5fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206a0195d5fSmrg	  break;;
3207a0195d5fSmrg    * ) break;;
3208a0195d5fSmrg  esac
3209a0195d5fSmrgdone
3210a0195d5fSmrgelse
32116f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32126600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32136f5dd5c2Smrgas_fn_error "cannot compute suffix of executables: cannot compile and link
32146f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
3215a0195d5fSmrgfi
32166f5dd5c2Smrgrm -f conftest conftest$ac_cv_exeext
32176f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32186600fe5bSmrg$as_echo "$ac_cv_exeext" >&6; }
3219a0195d5fSmrg
3220a0195d5fSmrgrm -f conftest.$ac_ext
3221a0195d5fSmrgEXEEXT=$ac_cv_exeext
3222a0195d5fSmrgac_exeext=$EXEEXT
32236f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32246f5dd5c2Smrg/* end confdefs.h.  */
32256f5dd5c2Smrg#include <stdio.h>
32266f5dd5c2Smrgint
32276f5dd5c2Smrgmain ()
32286f5dd5c2Smrg{
32296f5dd5c2SmrgFILE *f = fopen ("conftest.out", "w");
32306f5dd5c2Smrg return ferror (f) || fclose (f) != 0;
32316f5dd5c2Smrg
32326f5dd5c2Smrg  ;
32336f5dd5c2Smrg  return 0;
32346f5dd5c2Smrg}
32356f5dd5c2Smrg_ACEOF
32366f5dd5c2Smrgac_clean_files="$ac_clean_files conftest.out"
32376f5dd5c2Smrg# Check that the compiler produces executables we can run.  If not, either
32386f5dd5c2Smrg# the compiler is broken, or we cross compile.
32396f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32406f5dd5c2Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32416f5dd5c2Smrgif test "$cross_compiling" != yes; then
32426f5dd5c2Smrg  { { ac_try="$ac_link"
32436f5dd5c2Smrgcase "(($ac_try" in
32446f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
32466f5dd5c2Smrgesac
32476f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32486f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
32496f5dd5c2Smrg  (eval "$ac_link") 2>&5
32506f5dd5c2Smrg  ac_status=$?
32516f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32526f5dd5c2Smrg  test $ac_status = 0; }
32536f5dd5c2Smrg  if { ac_try='./conftest$ac_cv_exeext'
32546f5dd5c2Smrg  { { case "(($ac_try" in
32556f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
32576f5dd5c2Smrgesac
32586f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32596f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
32606f5dd5c2Smrg  (eval "$ac_try") 2>&5
32616f5dd5c2Smrg  ac_status=$?
32626f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32636f5dd5c2Smrg  test $ac_status = 0; }; }; then
32646f5dd5c2Smrg    cross_compiling=no
32656f5dd5c2Smrg  else
32666f5dd5c2Smrg    if test "$cross_compiling" = maybe; then
32676f5dd5c2Smrg	cross_compiling=yes
32686f5dd5c2Smrg    else
32696f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32706f5dd5c2Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32716f5dd5c2Smrgas_fn_error "cannot run C compiled programs.
32726f5dd5c2SmrgIf you meant to cross compile, use \`--host'.
32736f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
32746f5dd5c2Smrg    fi
32756f5dd5c2Smrg  fi
32766f5dd5c2Smrgfi
32776f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
32786f5dd5c2Smrg$as_echo "$cross_compiling" >&6; }
32796f5dd5c2Smrg
32806f5dd5c2Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
32816f5dd5c2Smrgac_clean_files=$ac_clean_files_save
32826f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
32836600fe5bSmrg$as_echo_n "checking for suffix of object files... " >&6; }
32846f5dd5c2Smrgif test "${ac_cv_objext+set}" = set; then :
32856600fe5bSmrg  $as_echo_n "(cached) " >&6
3286a0195d5fSmrgelse
32876f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288a0195d5fSmrg/* end confdefs.h.  */
3289a0195d5fSmrg
3290a0195d5fSmrgint
3291a0195d5fSmrgmain ()
3292a0195d5fSmrg{
3293a0195d5fSmrg
3294a0195d5fSmrg  ;
3295a0195d5fSmrg  return 0;
3296a0195d5fSmrg}
3297a0195d5fSmrg_ACEOF
3298a0195d5fSmrgrm -f conftest.o conftest.obj
32996f5dd5c2Smrgif { { ac_try="$ac_compile"
3300a0195d5fSmrgcase "(($ac_try" in
3301a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3303a0195d5fSmrgesac
33046f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33056f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3306a0195d5fSmrg  (eval "$ac_compile") 2>&5
3307a0195d5fSmrg  ac_status=$?
33086f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33096f5dd5c2Smrg  test $ac_status = 0; }; then :
3310a0195d5fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3311a0195d5fSmrg  test -f "$ac_file" || continue;
3312a0195d5fSmrg  case $ac_file in
33136600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3314a0195d5fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315a0195d5fSmrg       break;;
3316a0195d5fSmrg  esac
3317a0195d5fSmrgdone
3318a0195d5fSmrgelse
33196600fe5bSmrg  $as_echo "$as_me: failed program was:" >&5
3320a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3321a0195d5fSmrg
33226f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33236600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33246f5dd5c2Smrgas_fn_error "cannot compute suffix of object files: cannot compile
33256f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
3326a0195d5fSmrgfi
3327a0195d5fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3328a0195d5fSmrgfi
33296f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33306600fe5bSmrg$as_echo "$ac_cv_objext" >&6; }
3331a0195d5fSmrgOBJEXT=$ac_cv_objext
3332a0195d5fSmrgac_objext=$OBJEXT
33336f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
33346600fe5bSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
33356f5dd5c2Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
33366600fe5bSmrg  $as_echo_n "(cached) " >&6
3337a0195d5fSmrgelse
33386f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339a0195d5fSmrg/* end confdefs.h.  */
3340a0195d5fSmrg
3341a0195d5fSmrgint
3342a0195d5fSmrgmain ()
3343a0195d5fSmrg{
3344a0195d5fSmrg#ifndef __GNUC__
3345a0195d5fSmrg       choke me
3346a0195d5fSmrg#endif
3347a0195d5fSmrg
3348a0195d5fSmrg  ;
3349a0195d5fSmrg  return 0;
3350a0195d5fSmrg}
3351a0195d5fSmrg_ACEOF
33526f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3353a0195d5fSmrg  ac_compiler_gnu=yes
3354a0195d5fSmrgelse
33556f5dd5c2Smrg  ac_compiler_gnu=no
3356a0195d5fSmrgfi
3357a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358a0195d5fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3359a0195d5fSmrg
3360a0195d5fSmrgfi
33616f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33626600fe5bSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
33636600fe5bSmrgif test $ac_compiler_gnu = yes; then
33646600fe5bSmrg  GCC=yes
33656600fe5bSmrgelse
33666600fe5bSmrg  GCC=
33676600fe5bSmrgfi
3368a0195d5fSmrgac_test_CFLAGS=${CFLAGS+set}
3369a0195d5fSmrgac_save_CFLAGS=$CFLAGS
33706f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
33716600fe5bSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
33726f5dd5c2Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
33736600fe5bSmrg  $as_echo_n "(cached) " >&6
3374a0195d5fSmrgelse
3375a0195d5fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3376a0195d5fSmrg   ac_c_werror_flag=yes
3377a0195d5fSmrg   ac_cv_prog_cc_g=no
3378a0195d5fSmrg   CFLAGS="-g"
33796f5dd5c2Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380a0195d5fSmrg/* end confdefs.h.  */
3381a0195d5fSmrg
3382a0195d5fSmrgint
3383a0195d5fSmrgmain ()
3384a0195d5fSmrg{
3385a0195d5fSmrg
3386a0195d5fSmrg  ;
3387a0195d5fSmrg  return 0;
3388a0195d5fSmrg}
3389a0195d5fSmrg_ACEOF
33906f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3391a0195d5fSmrg  ac_cv_prog_cc_g=yes
3392a0195d5fSmrgelse
33936f5dd5c2Smrg  CFLAGS=""
33946f5dd5c2Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395a0195d5fSmrg/* end confdefs.h.  */
3396a0195d5fSmrg
3397a0195d5fSmrgint
3398a0195d5fSmrgmain ()
3399a0195d5fSmrg{
3400a0195d5fSmrg
3401a0195d5fSmrg  ;
3402a0195d5fSmrg  return 0;
3403a0195d5fSmrg}
3404a0195d5fSmrg_ACEOF
34056f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3406a0195d5fSmrg
34076f5dd5c2Smrgelse
34086f5dd5c2Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3409a0195d5fSmrg	 CFLAGS="-g"
34106f5dd5c2Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411a0195d5fSmrg/* end confdefs.h.  */
3412a0195d5fSmrg
3413a0195d5fSmrgint
3414a0195d5fSmrgmain ()
3415a0195d5fSmrg{
3416a0195d5fSmrg
3417a0195d5fSmrg  ;
3418a0195d5fSmrg  return 0;
3419a0195d5fSmrg}
3420a0195d5fSmrg_ACEOF
34216f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3422a0195d5fSmrg  ac_cv_prog_cc_g=yes
3423a0195d5fSmrgfi
3424a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425a0195d5fSmrgfi
3426a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427a0195d5fSmrgfi
3428a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429a0195d5fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3430a0195d5fSmrgfi
34316f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34326600fe5bSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3433a0195d5fSmrgif test "$ac_test_CFLAGS" = set; then
3434a0195d5fSmrg  CFLAGS=$ac_save_CFLAGS
3435a0195d5fSmrgelif test $ac_cv_prog_cc_g = yes; then
3436a0195d5fSmrg  if test "$GCC" = yes; then
3437a0195d5fSmrg    CFLAGS="-g -O2"
3438a0195d5fSmrg  else
3439a0195d5fSmrg    CFLAGS="-g"
3440a0195d5fSmrg  fi
3441a0195d5fSmrgelse
3442a0195d5fSmrg  if test "$GCC" = yes; then
3443a0195d5fSmrg    CFLAGS="-O2"
3444a0195d5fSmrg  else
3445a0195d5fSmrg    CFLAGS=
3446a0195d5fSmrg  fi
3447a0195d5fSmrgfi
34486f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
34496600fe5bSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
34506f5dd5c2Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
34516600fe5bSmrg  $as_echo_n "(cached) " >&6
3452a0195d5fSmrgelse
3453a0195d5fSmrg  ac_cv_prog_cc_c89=no
3454a0195d5fSmrgac_save_CC=$CC
34556f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456a0195d5fSmrg/* end confdefs.h.  */
3457a0195d5fSmrg#include <stdarg.h>
3458a0195d5fSmrg#include <stdio.h>
3459a0195d5fSmrg#include <sys/types.h>
3460a0195d5fSmrg#include <sys/stat.h>
3461a0195d5fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3462a0195d5fSmrgstruct buf { int x; };
3463a0195d5fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3464a0195d5fSmrgstatic char *e (p, i)
3465a0195d5fSmrg     char **p;
3466a0195d5fSmrg     int i;
3467a0195d5fSmrg{
3468a0195d5fSmrg  return p[i];
3469a0195d5fSmrg}
3470a0195d5fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3471a0195d5fSmrg{
3472a0195d5fSmrg  char *s;
3473a0195d5fSmrg  va_list v;
3474a0195d5fSmrg  va_start (v,p);
3475a0195d5fSmrg  s = g (p, va_arg (v,int));
3476a0195d5fSmrg  va_end (v);
3477a0195d5fSmrg  return s;
3478a0195d5fSmrg}
3479a0195d5fSmrg
3480a0195d5fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3481a0195d5fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3482a0195d5fSmrg   These don't provoke an error unfortunately, instead are silently treated
3483a0195d5fSmrg   as 'x'.  The following induces an error, until -std is added to get
3484a0195d5fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3485a0195d5fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3486a0195d5fSmrg   that's true only with -std.  */
3487a0195d5fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488a0195d5fSmrg
3489a0195d5fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3490a0195d5fSmrg   inside strings and character constants.  */
3491a0195d5fSmrg#define FOO(x) 'x'
3492a0195d5fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3493a0195d5fSmrg
3494a0195d5fSmrgint test (int i, double x);
3495a0195d5fSmrgstruct s1 {int (*f) (int a);};
3496a0195d5fSmrgstruct s2 {int (*f) (double a);};
3497a0195d5fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3498a0195d5fSmrgint argc;
3499a0195d5fSmrgchar **argv;
3500a0195d5fSmrgint
3501a0195d5fSmrgmain ()
3502a0195d5fSmrg{
3503a0195d5fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3504a0195d5fSmrg  ;
3505a0195d5fSmrg  return 0;
3506a0195d5fSmrg}
3507a0195d5fSmrg_ACEOF
3508a0195d5fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3509a0195d5fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3510a0195d5fSmrgdo
3511a0195d5fSmrg  CC="$ac_save_CC $ac_arg"
35126f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3513a0195d5fSmrg  ac_cv_prog_cc_c89=$ac_arg
3514a0195d5fSmrgfi
3515a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext
3516a0195d5fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3517a0195d5fSmrgdone
3518a0195d5fSmrgrm -f conftest.$ac_ext
3519a0195d5fSmrgCC=$ac_save_CC
3520a0195d5fSmrg
3521a0195d5fSmrgfi
3522a0195d5fSmrg# AC_CACHE_VAL
3523a0195d5fSmrgcase "x$ac_cv_prog_cc_c89" in
3524a0195d5fSmrg  x)
35256f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35266600fe5bSmrg$as_echo "none needed" >&6; } ;;
3527a0195d5fSmrg  xno)
35286f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35296600fe5bSmrg$as_echo "unsupported" >&6; } ;;
3530a0195d5fSmrg  *)
3531a0195d5fSmrg    CC="$CC $ac_cv_prog_cc_c89"
35326f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35336600fe5bSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3534a0195d5fSmrgesac
35356f5dd5c2Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3536a0195d5fSmrg
35376f5dd5c2Smrgfi
3538a0195d5fSmrg
3539a0195d5fSmrgac_ext=c
3540a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
3541a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3544a0195d5fSmrg
3545a0195d5fSmrgdepcc="$CC"   am_compiler_list=
3546a0195d5fSmrg
35476f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
35486600fe5bSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
35496f5dd5c2Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
35506600fe5bSmrg  $as_echo_n "(cached) " >&6
3551a0195d5fSmrgelse
3552a0195d5fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3553a0195d5fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3554a0195d5fSmrg  # making bogus files that we don't know about and never remove.  For
3555a0195d5fSmrg  # instance it was reported that on HP-UX the gcc test will end up
3556a0195d5fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3557a0195d5fSmrg  # in D'.
3558a0195d5fSmrg  mkdir conftest.dir
3559a0195d5fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3560a0195d5fSmrg  # using a relative directory.
3561a0195d5fSmrg  cp "$am_depcomp" conftest.dir
3562a0195d5fSmrg  cd conftest.dir
3563a0195d5fSmrg  # We will build objects and dependencies in a subdirectory because
3564a0195d5fSmrg  # it helps to detect inapplicable dependency modes.  For instance
3565a0195d5fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3566a0195d5fSmrg  # side effect of compilation, but ICC will put the dependencies in
3567a0195d5fSmrg  # the current directory while Tru64 will put them in the object
3568a0195d5fSmrg  # directory.
3569a0195d5fSmrg  mkdir sub
3570a0195d5fSmrg
3571a0195d5fSmrg  am_cv_CC_dependencies_compiler_type=none
3572a0195d5fSmrg  if test "$am_compiler_list" = ""; then
3573a0195d5fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3574a0195d5fSmrg  fi
35756600fe5bSmrg  am__universal=false
35766600fe5bSmrg  case " $depcc " in #(
35776600fe5bSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
35786600fe5bSmrg     esac
35796600fe5bSmrg
3580a0195d5fSmrg  for depmode in $am_compiler_list; do
3581a0195d5fSmrg    # Setup a source with many dependencies, because some compilers
3582a0195d5fSmrg    # like to wrap large dependency lists on column 80 (with \), and
3583a0195d5fSmrg    # we should not choose a depcomp mode which is confused by this.
3584a0195d5fSmrg    #
3585a0195d5fSmrg    # We need to recreate these files for each test, as the compiler may
3586a0195d5fSmrg    # overwrite some of them when testing with obscure command lines.
3587a0195d5fSmrg    # This happens at least with the AIX C compiler.
3588a0195d5fSmrg    : > sub/conftest.c
3589a0195d5fSmrg    for i in 1 2 3 4 5 6; do
3590a0195d5fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3591a0195d5fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3592a0195d5fSmrg      # Solaris 8's {/usr,}/bin/sh.
3593a0195d5fSmrg      touch sub/conftst$i.h
3594a0195d5fSmrg    done
3595a0195d5fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3596a0195d5fSmrg
35976600fe5bSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
35986600fe5bSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
35996600fe5bSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
36006600fe5bSmrg    # versions had trouble with output in subdirs
36016600fe5bSmrg    am__obj=sub/conftest.${OBJEXT-o}
36026600fe5bSmrg    am__minus_obj="-o $am__obj"
3603a0195d5fSmrg    case $depmode in
36046600fe5bSmrg    gcc)
36056600fe5bSmrg      # This depmode causes a compiler race in universal mode.
36066600fe5bSmrg      test "$am__universal" = false || continue
36076600fe5bSmrg      ;;
3608a0195d5fSmrg    nosideeffect)
3609a0195d5fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3610a0195d5fSmrg      # only be used when explicitly requested
3611a0195d5fSmrg      if test "x$enable_dependency_tracking" = xyes; then
3612a0195d5fSmrg	continue
3613a0195d5fSmrg      else
3614a0195d5fSmrg	break
3615a0195d5fSmrg      fi
3616a0195d5fSmrg      ;;
36176600fe5bSmrg    msvisualcpp | msvcmsys)
36186600fe5bSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
36196600fe5bSmrg      # not run yet.  These depmodes are late enough in the game, and
36206600fe5bSmrg      # so weak that their functioning should not be impacted.
36216600fe5bSmrg      am__obj=conftest.${OBJEXT-o}
36226600fe5bSmrg      am__minus_obj=
36236600fe5bSmrg      ;;
3624a0195d5fSmrg    none) break ;;
3625a0195d5fSmrg    esac
3626a0195d5fSmrg    if depmode=$depmode \
36276600fe5bSmrg       source=sub/conftest.c object=$am__obj \
3628a0195d5fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
36296600fe5bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3630a0195d5fSmrg         >/dev/null 2>conftest.err &&
3631a0195d5fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3632a0195d5fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
36336600fe5bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3634a0195d5fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635a0195d5fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3636a0195d5fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3637a0195d5fSmrg      # that says an option was ignored or not supported.
3638a0195d5fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3639a0195d5fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3640a0195d5fSmrg      # The diagnosis changed in icc 8.0:
3641a0195d5fSmrg      #   icc: Command line remark: option '-MP' not supported
3642a0195d5fSmrg      if (grep 'ignoring option' conftest.err ||
3643a0195d5fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644a0195d5fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3645a0195d5fSmrg        break
3646a0195d5fSmrg      fi
3647a0195d5fSmrg    fi
3648a0195d5fSmrg  done
3649a0195d5fSmrg
3650a0195d5fSmrg  cd ..
3651a0195d5fSmrg  rm -rf conftest.dir
3652a0195d5fSmrgelse
3653a0195d5fSmrg  am_cv_CC_dependencies_compiler_type=none
3654a0195d5fSmrgfi
3655a0195d5fSmrg
3656a0195d5fSmrgfi
36576f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
36586600fe5bSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3659a0195d5fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3660a0195d5fSmrg
3661a0195d5fSmrg if
3662a0195d5fSmrg  test "x$enable_dependency_tracking" != xno \
3663a0195d5fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3664a0195d5fSmrg  am__fastdepCC_TRUE=
3665a0195d5fSmrg  am__fastdepCC_FALSE='#'
3666a0195d5fSmrgelse
3667a0195d5fSmrg  am__fastdepCC_TRUE='#'
3668a0195d5fSmrg  am__fastdepCC_FALSE=
3669a0195d5fSmrgfi
3670a0195d5fSmrg
3671a0195d5fSmrg
36726f5dd5c2Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
36736f5dd5c2Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
36746f5dd5c2Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
36756600fe5bSmrg  $as_echo_n "(cached) " >&6
3676a0195d5fSmrgelse
36776f5dd5c2Smrg  ac_cv_prog_cc_c99=no
36786f5dd5c2Smrgac_save_CC=$CC
36796f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36806f5dd5c2Smrg/* end confdefs.h.  */
36816f5dd5c2Smrg#include <stdarg.h>
36826f5dd5c2Smrg#include <stdbool.h>
36836f5dd5c2Smrg#include <stdlib.h>
36846f5dd5c2Smrg#include <wchar.h>
36856f5dd5c2Smrg#include <stdio.h>
36866600fe5bSmrg
36876f5dd5c2Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
36886f5dd5c2Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
36896f5dd5c2Smrg#define showlist(...) puts (#__VA_ARGS__)
36906f5dd5c2Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
36916f5dd5c2Smrgstatic void
36926f5dd5c2Smrgtest_varargs_macros (void)
36936f5dd5c2Smrg{
36946f5dd5c2Smrg  int x = 1234;
36956f5dd5c2Smrg  int y = 5678;
36966f5dd5c2Smrg  debug ("Flag");
36976f5dd5c2Smrg  debug ("X = %d\n", x);
36986f5dd5c2Smrg  showlist (The first, second, and third items.);
36996f5dd5c2Smrg  report (x>y, "x is %d but y is %d", x, y);
37006f5dd5c2Smrg}
3701a0195d5fSmrg
37026f5dd5c2Smrg// Check long long types.
37036f5dd5c2Smrg#define BIG64 18446744073709551615ull
37046f5dd5c2Smrg#define BIG32 4294967295ul
37056f5dd5c2Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
37066f5dd5c2Smrg#if !BIG_OK
37076f5dd5c2Smrg  your preprocessor is broken;
37086f5dd5c2Smrg#endif
37096f5dd5c2Smrg#if BIG_OK
37106f5dd5c2Smrg#else
37116f5dd5c2Smrg  your preprocessor is broken;
37126f5dd5c2Smrg#endif
37136f5dd5c2Smrgstatic long long int bignum = -9223372036854775807LL;
37146f5dd5c2Smrgstatic unsigned long long int ubignum = BIG64;
3715a0195d5fSmrg
37166f5dd5c2Smrgstruct incomplete_array
37176f5dd5c2Smrg{
37186f5dd5c2Smrg  int datasize;
37196f5dd5c2Smrg  double data[];
37206f5dd5c2Smrg};
3721a0195d5fSmrg
37226f5dd5c2Smrgstruct named_init {
37236f5dd5c2Smrg  int number;
37246f5dd5c2Smrg  const wchar_t *name;
37256f5dd5c2Smrg  double average;
37266f5dd5c2Smrg};
3727a0195d5fSmrg
37286f5dd5c2Smrgtypedef const char *ccp;
3729a0195d5fSmrg
37306f5dd5c2Smrgstatic inline int
37316f5dd5c2Smrgtest_restrict (ccp restrict text)
37326f5dd5c2Smrg{
37336f5dd5c2Smrg  // See if C++-style comments work.
37346f5dd5c2Smrg  // Iterate through items via the restricted pointer.
37356f5dd5c2Smrg  // Also check for declarations in for loops.
37366f5dd5c2Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
37376f5dd5c2Smrg    continue;
37386f5dd5c2Smrg  return 0;
37396f5dd5c2Smrg}
3740a0195d5fSmrg
37416f5dd5c2Smrg// Check varargs and va_copy.
37426f5dd5c2Smrgstatic void
37436f5dd5c2Smrgtest_varargs (const char *format, ...)
37446f5dd5c2Smrg{
37456f5dd5c2Smrg  va_list args;
37466f5dd5c2Smrg  va_start (args, format);
37476f5dd5c2Smrg  va_list args_copy;
37486f5dd5c2Smrg  va_copy (args_copy, args);
3749a0195d5fSmrg
37506f5dd5c2Smrg  const char *str;
37516f5dd5c2Smrg  int number;
37526f5dd5c2Smrg  float fnumber;
3753a0195d5fSmrg
37546f5dd5c2Smrg  while (*format)
37556f5dd5c2Smrg    {
37566f5dd5c2Smrg      switch (*format++)
37576f5dd5c2Smrg	{
37586f5dd5c2Smrg	case 's': // string
37596f5dd5c2Smrg	  str = va_arg (args_copy, const char *);
37606f5dd5c2Smrg	  break;
37616f5dd5c2Smrg	case 'd': // int
37626f5dd5c2Smrg	  number = va_arg (args_copy, int);
37636f5dd5c2Smrg	  break;
37646f5dd5c2Smrg	case 'f': // float
37656f5dd5c2Smrg	  fnumber = va_arg (args_copy, double);
37666f5dd5c2Smrg	  break;
37676f5dd5c2Smrg	default:
37686f5dd5c2Smrg	  break;
37696f5dd5c2Smrg	}
37706f5dd5c2Smrg    }
37716f5dd5c2Smrg  va_end (args_copy);
37726f5dd5c2Smrg  va_end (args);
37736f5dd5c2Smrg}
37746f5dd5c2Smrg
37756f5dd5c2Smrgint
37766f5dd5c2Smrgmain ()
37776f5dd5c2Smrg{
37786f5dd5c2Smrg
37796f5dd5c2Smrg  // Check bool.
37806f5dd5c2Smrg  _Bool success = false;
37816f5dd5c2Smrg
37826f5dd5c2Smrg  // Check restrict.
37836f5dd5c2Smrg  if (test_restrict ("String literal") == 0)
37846f5dd5c2Smrg    success = true;
37856f5dd5c2Smrg  char *restrict newvar = "Another string";
37866f5dd5c2Smrg
37876f5dd5c2Smrg  // Check varargs.
37886f5dd5c2Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
37896f5dd5c2Smrg  test_varargs_macros ();
37906f5dd5c2Smrg
37916f5dd5c2Smrg  // Check flexible array members.
37926f5dd5c2Smrg  struct incomplete_array *ia =
37936f5dd5c2Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
37946f5dd5c2Smrg  ia->datasize = 10;
37956f5dd5c2Smrg  for (int i = 0; i < ia->datasize; ++i)
37966f5dd5c2Smrg    ia->data[i] = i * 1.234;
37976f5dd5c2Smrg
37986f5dd5c2Smrg  // Check named initializers.
37996f5dd5c2Smrg  struct named_init ni = {
38006f5dd5c2Smrg    .number = 34,
38016f5dd5c2Smrg    .name = L"Test wide string",
38026f5dd5c2Smrg    .average = 543.34343,
38036f5dd5c2Smrg  };
38046f5dd5c2Smrg
38056f5dd5c2Smrg  ni.number = 58;
38066f5dd5c2Smrg
38076f5dd5c2Smrg  int dynamic_array[ni.number];
38086f5dd5c2Smrg  dynamic_array[ni.number - 1] = 543;
38096f5dd5c2Smrg
38106f5dd5c2Smrg  // work around unused variable warnings
38116f5dd5c2Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
38126f5dd5c2Smrg	  || dynamic_array[ni.number - 1] != 543);
38136f5dd5c2Smrg
38146f5dd5c2Smrg  ;
38156f5dd5c2Smrg  return 0;
38166f5dd5c2Smrg}
38176f5dd5c2Smrg_ACEOF
38186f5dd5c2Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
38196f5dd5c2Smrgdo
38206f5dd5c2Smrg  CC="$ac_save_CC $ac_arg"
38216f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
38226f5dd5c2Smrg  ac_cv_prog_cc_c99=$ac_arg
38236f5dd5c2Smrgfi
38246f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext
38256f5dd5c2Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
38266f5dd5c2Smrgdone
38276f5dd5c2Smrgrm -f conftest.$ac_ext
38286f5dd5c2SmrgCC=$ac_save_CC
38296f5dd5c2Smrg
38306f5dd5c2Smrgfi
38316f5dd5c2Smrg# AC_CACHE_VAL
38326f5dd5c2Smrgcase "x$ac_cv_prog_cc_c99" in
38336f5dd5c2Smrg  x)
38346f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38356f5dd5c2Smrg$as_echo "none needed" >&6; } ;;
38366f5dd5c2Smrg  xno)
38376f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38386f5dd5c2Smrg$as_echo "unsupported" >&6; } ;;
38396f5dd5c2Smrg  *)
38406f5dd5c2Smrg    CC="$CC $ac_cv_prog_cc_c99"
38416f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
38426f5dd5c2Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
38436f5dd5c2Smrgesac
38446f5dd5c2Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
38456f5dd5c2Smrg
38466f5dd5c2Smrgfi
38476f5dd5c2Smrg
38486f5dd5c2Smrg
38496f5dd5c2Smrg
38506f5dd5c2Smrgac_ext=c
38516f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
38526f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38536f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38546f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38556f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
38566f5dd5c2Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
38576f5dd5c2Smrg# On Suns, sometimes $CPP names a directory.
38586f5dd5c2Smrgif test -n "$CPP" && test -d "$CPP"; then
38596f5dd5c2Smrg  CPP=
38606f5dd5c2Smrgfi
38616f5dd5c2Smrgif test -z "$CPP"; then
38626f5dd5c2Smrg  if test "${ac_cv_prog_CPP+set}" = set; then :
38636f5dd5c2Smrg  $as_echo_n "(cached) " >&6
38646600fe5bSmrgelse
38656f5dd5c2Smrg      # Double quotes because CPP needs to be expanded
38666f5dd5c2Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
38676f5dd5c2Smrg    do
38686f5dd5c2Smrg      ac_preproc_ok=false
38696f5dd5c2Smrgfor ac_c_preproc_warn_flag in '' yes
38706f5dd5c2Smrgdo
38716f5dd5c2Smrg  # Use a header file that comes with gcc, so configuring glibc
38726f5dd5c2Smrg  # with a fresh cross-compiler works.
38736f5dd5c2Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746f5dd5c2Smrg  # <limits.h> exists even on freestanding compilers.
38756f5dd5c2Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38766f5dd5c2Smrg  # not just through cpp. "Syntax error" is here to catch this case.
38776f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786f5dd5c2Smrg/* end confdefs.h.  */
38796f5dd5c2Smrg#ifdef __STDC__
38806f5dd5c2Smrg# include <limits.h>
38816f5dd5c2Smrg#else
38826f5dd5c2Smrg# include <assert.h>
38836f5dd5c2Smrg#endif
38846f5dd5c2Smrg		     Syntax error
38856f5dd5c2Smrg_ACEOF
38866f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38876600fe5bSmrg
38886f5dd5c2Smrgelse
38896600fe5bSmrg  # Broken: fails on valid input.
38906600fe5bSmrgcontinue
38916600fe5bSmrgfi
38926600fe5bSmrgrm -f conftest.err conftest.$ac_ext
38936600fe5bSmrg
38946600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
38956600fe5bSmrg  # can be detected and how.
38966f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38976600fe5bSmrg/* end confdefs.h.  */
38986600fe5bSmrg#include <ac_nonexistent.h>
38996600fe5bSmrg_ACEOF
39006f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39016600fe5bSmrg  # Broken: success on invalid input.
39026600fe5bSmrgcontinue
39036600fe5bSmrgelse
39046600fe5bSmrg  # Passes both tests.
39056600fe5bSmrgac_preproc_ok=:
39066600fe5bSmrgbreak
39076600fe5bSmrgfi
39086600fe5bSmrgrm -f conftest.err conftest.$ac_ext
39096600fe5bSmrg
39106600fe5bSmrgdone
39116600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39126600fe5bSmrgrm -f conftest.err conftest.$ac_ext
39136f5dd5c2Smrgif $ac_preproc_ok; then :
39146600fe5bSmrg  break
39156600fe5bSmrgfi
39166600fe5bSmrg
39176600fe5bSmrg    done
39186600fe5bSmrg    ac_cv_prog_CPP=$CPP
39196600fe5bSmrg
39206600fe5bSmrgfi
39216600fe5bSmrg  CPP=$ac_cv_prog_CPP
39226600fe5bSmrgelse
39236600fe5bSmrg  ac_cv_prog_CPP=$CPP
39246600fe5bSmrgfi
39256f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
39266600fe5bSmrg$as_echo "$CPP" >&6; }
39276600fe5bSmrgac_preproc_ok=false
39286600fe5bSmrgfor ac_c_preproc_warn_flag in '' yes
39296600fe5bSmrgdo
39306600fe5bSmrg  # Use a header file that comes with gcc, so configuring glibc
39316600fe5bSmrg  # with a fresh cross-compiler works.
39326600fe5bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39336600fe5bSmrg  # <limits.h> exists even on freestanding compilers.
39346600fe5bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39356600fe5bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
39366f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39376600fe5bSmrg/* end confdefs.h.  */
39386600fe5bSmrg#ifdef __STDC__
39396600fe5bSmrg# include <limits.h>
39406600fe5bSmrg#else
39416600fe5bSmrg# include <assert.h>
39426600fe5bSmrg#endif
39436600fe5bSmrg		     Syntax error
39446600fe5bSmrg_ACEOF
39456f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39466600fe5bSmrg
39476f5dd5c2Smrgelse
39486600fe5bSmrg  # Broken: fails on valid input.
39496600fe5bSmrgcontinue
39506600fe5bSmrgfi
39516600fe5bSmrgrm -f conftest.err conftest.$ac_ext
39526600fe5bSmrg
39536600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
39546600fe5bSmrg  # can be detected and how.
39556f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39566600fe5bSmrg/* end confdefs.h.  */
39576600fe5bSmrg#include <ac_nonexistent.h>
39586600fe5bSmrg_ACEOF
39596f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39606600fe5bSmrg  # Broken: success on invalid input.
39616600fe5bSmrgcontinue
39626600fe5bSmrgelse
39636600fe5bSmrg  # Passes both tests.
39646600fe5bSmrgac_preproc_ok=:
39656600fe5bSmrgbreak
39666600fe5bSmrgfi
39676600fe5bSmrgrm -f conftest.err conftest.$ac_ext
39686600fe5bSmrg
39696600fe5bSmrgdone
39706600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39716600fe5bSmrgrm -f conftest.err conftest.$ac_ext
39726f5dd5c2Smrgif $ac_preproc_ok; then :
39736f5dd5c2Smrg
39746600fe5bSmrgelse
39756f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39766600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39776f5dd5c2Smrgas_fn_error "C preprocessor \"$CPP\" fails sanity check
39786f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
39796600fe5bSmrgfi
39806600fe5bSmrg
39816600fe5bSmrgac_ext=c
39826600fe5bSmrgac_cpp='$CPP $CPPFLAGS'
39836600fe5bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39846600fe5bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39856600fe5bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39866600fe5bSmrg
39876600fe5bSmrg
39886f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
39896600fe5bSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
39906f5dd5c2Smrgif test "${ac_cv_path_GREP+set}" = set; then :
39916600fe5bSmrg  $as_echo_n "(cached) " >&6
39926600fe5bSmrgelse
39936600fe5bSmrg  if test -z "$GREP"; then
39946600fe5bSmrg  ac_path_GREP_found=false
39956600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
39966600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39976600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39986600fe5bSmrgdo
39996600fe5bSmrg  IFS=$as_save_IFS
40006600fe5bSmrg  test -z "$as_dir" && as_dir=.
40016f5dd5c2Smrg    for ac_prog in grep ggrep; do
40026600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40036600fe5bSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40046600fe5bSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
40056600fe5bSmrg# Check for GNU ac_path_GREP and select it if it is found.
40066600fe5bSmrg  # Check for GNU $ac_path_GREP
40076600fe5bSmrgcase `"$ac_path_GREP" --version 2>&1` in
40086600fe5bSmrg*GNU*)
40096600fe5bSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
40106600fe5bSmrg*)
40116600fe5bSmrg  ac_count=0
40126600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
40136600fe5bSmrg  while :
40146600fe5bSmrg  do
40156600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40166600fe5bSmrg    mv "conftest.tmp" "conftest.in"
40176600fe5bSmrg    cp "conftest.in" "conftest.nl"
40186600fe5bSmrg    $as_echo 'GREP' >> "conftest.nl"
40196600fe5bSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40206600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40216f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40226600fe5bSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
40236600fe5bSmrg      # Best one so far, save it but keep looking for a better one
40246600fe5bSmrg      ac_cv_path_GREP="$ac_path_GREP"
40256600fe5bSmrg      ac_path_GREP_max=$ac_count
40266600fe5bSmrg    fi
40276600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
40286600fe5bSmrg    test $ac_count -gt 10 && break
40296600fe5bSmrg  done
40306600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40316600fe5bSmrgesac
40326600fe5bSmrg
40336600fe5bSmrg      $ac_path_GREP_found && break 3
40346600fe5bSmrg    done
40356600fe5bSmrg  done
40366f5dd5c2Smrg  done
40376600fe5bSmrgIFS=$as_save_IFS
40386600fe5bSmrg  if test -z "$ac_cv_path_GREP"; then
40396f5dd5c2Smrg    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40406600fe5bSmrg  fi
40416600fe5bSmrgelse
40426600fe5bSmrg  ac_cv_path_GREP=$GREP
40436600fe5bSmrgfi
40446600fe5bSmrg
40456600fe5bSmrgfi
40466f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
40476600fe5bSmrg$as_echo "$ac_cv_path_GREP" >&6; }
40486600fe5bSmrg GREP="$ac_cv_path_GREP"
40496600fe5bSmrg
40506600fe5bSmrg
40516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
40526600fe5bSmrg$as_echo_n "checking for egrep... " >&6; }
40536f5dd5c2Smrgif test "${ac_cv_path_EGREP+set}" = set; then :
40546600fe5bSmrg  $as_echo_n "(cached) " >&6
40556600fe5bSmrgelse
40566600fe5bSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40576600fe5bSmrg   then ac_cv_path_EGREP="$GREP -E"
40586600fe5bSmrg   else
40596600fe5bSmrg     if test -z "$EGREP"; then
40606600fe5bSmrg  ac_path_EGREP_found=false
40616600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40626600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40636600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40646600fe5bSmrgdo
40656600fe5bSmrg  IFS=$as_save_IFS
40666600fe5bSmrg  test -z "$as_dir" && as_dir=.
40676f5dd5c2Smrg    for ac_prog in egrep; do
40686600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40696600fe5bSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
40706600fe5bSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
40716600fe5bSmrg# Check for GNU ac_path_EGREP and select it if it is found.
40726600fe5bSmrg  # Check for GNU $ac_path_EGREP
40736600fe5bSmrgcase `"$ac_path_EGREP" --version 2>&1` in
40746600fe5bSmrg*GNU*)
40756600fe5bSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
40766600fe5bSmrg*)
40776600fe5bSmrg  ac_count=0
40786600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
40796600fe5bSmrg  while :
40806600fe5bSmrg  do
40816600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40826600fe5bSmrg    mv "conftest.tmp" "conftest.in"
40836600fe5bSmrg    cp "conftest.in" "conftest.nl"
40846600fe5bSmrg    $as_echo 'EGREP' >> "conftest.nl"
40856600fe5bSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40866600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40876f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40886600fe5bSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
40896600fe5bSmrg      # Best one so far, save it but keep looking for a better one
40906600fe5bSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
40916600fe5bSmrg      ac_path_EGREP_max=$ac_count
40926600fe5bSmrg    fi
40936600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
40946600fe5bSmrg    test $ac_count -gt 10 && break
40956600fe5bSmrg  done
40966600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40976600fe5bSmrgesac
40986600fe5bSmrg
40996600fe5bSmrg      $ac_path_EGREP_found && break 3
41006600fe5bSmrg    done
41016600fe5bSmrg  done
41026f5dd5c2Smrg  done
41036600fe5bSmrgIFS=$as_save_IFS
41046600fe5bSmrg  if test -z "$ac_cv_path_EGREP"; then
41056f5dd5c2Smrg    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41066600fe5bSmrg  fi
41076600fe5bSmrgelse
41086600fe5bSmrg  ac_cv_path_EGREP=$EGREP
41096600fe5bSmrgfi
41106600fe5bSmrg
41116600fe5bSmrg   fi
41126600fe5bSmrgfi
41136f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
41146600fe5bSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
41156600fe5bSmrg EGREP="$ac_cv_path_EGREP"
41166600fe5bSmrg
41176600fe5bSmrg
41186f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
41196600fe5bSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
41206f5dd5c2Smrgif test "${ac_cv_header_stdc+set}" = set; then :
41216600fe5bSmrg  $as_echo_n "(cached) " >&6
41226600fe5bSmrgelse
41236f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41246600fe5bSmrg/* end confdefs.h.  */
41256600fe5bSmrg#include <stdlib.h>
41266600fe5bSmrg#include <stdarg.h>
41276600fe5bSmrg#include <string.h>
41286600fe5bSmrg#include <float.h>
41296600fe5bSmrg
41306600fe5bSmrgint
41316600fe5bSmrgmain ()
41326600fe5bSmrg{
41336600fe5bSmrg
41346600fe5bSmrg  ;
41356600fe5bSmrg  return 0;
41366600fe5bSmrg}
41376600fe5bSmrg_ACEOF
41386f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
41396600fe5bSmrg  ac_cv_header_stdc=yes
41406600fe5bSmrgelse
41416f5dd5c2Smrg  ac_cv_header_stdc=no
41426600fe5bSmrgfi
41436600fe5bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41446600fe5bSmrg
41456600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41466600fe5bSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41476f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41486600fe5bSmrg/* end confdefs.h.  */
41496600fe5bSmrg#include <string.h>
41506600fe5bSmrg
41516600fe5bSmrg_ACEOF
41526600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41536f5dd5c2Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
41546f5dd5c2Smrg
41556600fe5bSmrgelse
41566600fe5bSmrg  ac_cv_header_stdc=no
41576600fe5bSmrgfi
41586600fe5bSmrgrm -f conftest*
41596600fe5bSmrg
41606600fe5bSmrgfi
41616600fe5bSmrg
41626600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41636600fe5bSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41646f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41656600fe5bSmrg/* end confdefs.h.  */
41666600fe5bSmrg#include <stdlib.h>
41676600fe5bSmrg
41686600fe5bSmrg_ACEOF
41696600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41706f5dd5c2Smrg  $EGREP "free" >/dev/null 2>&1; then :
41716f5dd5c2Smrg
41726600fe5bSmrgelse
41736600fe5bSmrg  ac_cv_header_stdc=no
41746600fe5bSmrgfi
41756600fe5bSmrgrm -f conftest*
41766600fe5bSmrg
41776600fe5bSmrgfi
41786600fe5bSmrg
41796600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41806600fe5bSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
41816f5dd5c2Smrg  if test "$cross_compiling" = yes; then :
41826600fe5bSmrg  :
41836600fe5bSmrgelse
41846f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41856600fe5bSmrg/* end confdefs.h.  */
41866600fe5bSmrg#include <ctype.h>
41876600fe5bSmrg#include <stdlib.h>
41886600fe5bSmrg#if ((' ' & 0x0FF) == 0x020)
41896600fe5bSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
41906600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
41916600fe5bSmrg#else
41926600fe5bSmrg# define ISLOWER(c) \
41936600fe5bSmrg		   (('a' <= (c) && (c) <= 'i') \
41946600fe5bSmrg		     || ('j' <= (c) && (c) <= 'r') \
41956600fe5bSmrg		     || ('s' <= (c) && (c) <= 'z'))
41966600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
41976600fe5bSmrg#endif
41986600fe5bSmrg
41996600fe5bSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42006600fe5bSmrgint
42016600fe5bSmrgmain ()
42026600fe5bSmrg{
42036600fe5bSmrg  int i;
42046600fe5bSmrg  for (i = 0; i < 256; i++)
42056600fe5bSmrg    if (XOR (islower (i), ISLOWER (i))
42066600fe5bSmrg	|| toupper (i) != TOUPPER (i))
42076600fe5bSmrg      return 2;
42086600fe5bSmrg  return 0;
42096600fe5bSmrg}
42106600fe5bSmrg_ACEOF
42116f5dd5c2Smrgif ac_fn_c_try_run "$LINENO"; then :
42126600fe5bSmrg
42136f5dd5c2Smrgelse
42146f5dd5c2Smrg  ac_cv_header_stdc=no
42156600fe5bSmrgfi
42166f5dd5c2Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42176f5dd5c2Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
42186600fe5bSmrgfi
42196600fe5bSmrg
42206600fe5bSmrgfi
42216600fe5bSmrgfi
42226f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
42236600fe5bSmrg$as_echo "$ac_cv_header_stdc" >&6; }
42246600fe5bSmrgif test $ac_cv_header_stdc = yes; then
42256600fe5bSmrg
42266f5dd5c2Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
42276600fe5bSmrg
42286600fe5bSmrgfi
42296600fe5bSmrg
42306600fe5bSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42316600fe5bSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42326600fe5bSmrg		  inttypes.h stdint.h unistd.h
42336f5dd5c2Smrgdo :
42346f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42356f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
42366f5dd5c2Smrg"
42376f5dd5c2Smrgeval as_val=\$$as_ac_Header
42386f5dd5c2Smrg   if test "x$as_val" = x""yes; then :
42396600fe5bSmrg  cat >>confdefs.h <<_ACEOF
42406600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42416600fe5bSmrg_ACEOF
42426600fe5bSmrg
42436600fe5bSmrgfi
42446600fe5bSmrg
42456600fe5bSmrgdone
42466600fe5bSmrg
42476600fe5bSmrg
42486f5dd5c2Smrg
42496f5dd5c2Smrg
42506f5dd5c2Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42516f5dd5c2Smrg	if test -n "$ac_tool_prefix"; then
42526f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42536f5dd5c2Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42546f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42556f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
42566f5dd5c2Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
42576600fe5bSmrg  $as_echo_n "(cached) " >&6
42586600fe5bSmrgelse
42596f5dd5c2Smrg  case $PKG_CONFIG in
42606f5dd5c2Smrg  [\\/]* | ?:[\\/]*)
42616f5dd5c2Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42626f5dd5c2Smrg  ;;
42636f5dd5c2Smrg  *)
42646f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42656f5dd5c2Smrgfor as_dir in $PATH
42666600fe5bSmrgdo
42676f5dd5c2Smrg  IFS=$as_save_IFS
42686f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
42696f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
42706f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42716f5dd5c2Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42726f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42736f5dd5c2Smrg    break 2
42746f5dd5c2Smrg  fi
42756f5dd5c2Smrgdone
42766f5dd5c2Smrg  done
42776f5dd5c2SmrgIFS=$as_save_IFS
42786f5dd5c2Smrg
42796f5dd5c2Smrg  ;;
42806600fe5bSmrgesac
42816f5dd5c2Smrgfi
42826f5dd5c2SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
42836f5dd5c2Smrgif test -n "$PKG_CONFIG"; then
42846f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
42856f5dd5c2Smrg$as_echo "$PKG_CONFIG" >&6; }
42866600fe5bSmrgelse
42876f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42886f5dd5c2Smrg$as_echo "no" >&6; }
42896600fe5bSmrgfi
42906600fe5bSmrg
42916600fe5bSmrg
42926600fe5bSmrgfi
42936f5dd5c2Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
42946f5dd5c2Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
42956f5dd5c2Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
42966f5dd5c2Smrgset dummy pkg-config; ac_word=$2
42976f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42986f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
42996f5dd5c2Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
43006f5dd5c2Smrg  $as_echo_n "(cached) " >&6
43016f5dd5c2Smrgelse
43026f5dd5c2Smrg  case $ac_pt_PKG_CONFIG in
43036f5dd5c2Smrg  [\\/]* | ?:[\\/]*)
43046f5dd5c2Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43056f5dd5c2Smrg  ;;
43066600fe5bSmrg  *)
43076f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43086f5dd5c2Smrgfor as_dir in $PATH
43096f5dd5c2Smrgdo
43106f5dd5c2Smrg  IFS=$as_save_IFS
43116f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
43126f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43136f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43146f5dd5c2Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43156f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43166f5dd5c2Smrg    break 2
43176f5dd5c2Smrg  fi
43186f5dd5c2Smrgdone
43196f5dd5c2Smrg  done
43206f5dd5c2SmrgIFS=$as_save_IFS
43216f5dd5c2Smrg
43226f5dd5c2Smrg  ;;
43236600fe5bSmrgesac
43246f5dd5c2Smrgfi
43256f5dd5c2Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43266f5dd5c2Smrgif test -n "$ac_pt_PKG_CONFIG"; then
43276f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
43286f5dd5c2Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
43296f5dd5c2Smrgelse
43306f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43316f5dd5c2Smrg$as_echo "no" >&6; }
43326f5dd5c2Smrgfi
43336600fe5bSmrg
43346f5dd5c2Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
43356f5dd5c2Smrg    PKG_CONFIG=""
43366f5dd5c2Smrg  else
43376f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
43386f5dd5c2Smrgyes:)
43396f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43406f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43416f5dd5c2Smrgac_tool_warned=yes ;;
43426f5dd5c2Smrgesac
43436f5dd5c2Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
43446f5dd5c2Smrg  fi
43456f5dd5c2Smrgelse
43466f5dd5c2Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43476f5dd5c2Smrgfi
43486600fe5bSmrg
43496f5dd5c2Smrgfi
43506f5dd5c2Smrgif test -n "$PKG_CONFIG"; then
43516f5dd5c2Smrg	_pkg_min_version=0.9.0
43526f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
43536f5dd5c2Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
43546f5dd5c2Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43556f5dd5c2Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43566f5dd5c2Smrg$as_echo "yes" >&6; }
43576f5dd5c2Smrg	else
43586f5dd5c2Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43596f5dd5c2Smrg$as_echo "no" >&6; }
43606f5dd5c2Smrg		PKG_CONFIG=""
43616f5dd5c2Smrg	fi
43626600fe5bSmrg
43636f5dd5c2Smrgfi
43646600fe5bSmrg# Make sure we can run config.sub.
43656600fe5bSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
43666f5dd5c2Smrg  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
43676600fe5bSmrg
43686f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
43696600fe5bSmrg$as_echo_n "checking build system type... " >&6; }
43706f5dd5c2Smrgif test "${ac_cv_build+set}" = set; then :
43716600fe5bSmrg  $as_echo_n "(cached) " >&6
43726600fe5bSmrgelse
43736600fe5bSmrg  ac_build_alias=$build_alias
43746600fe5bSmrgtest "x$ac_build_alias" = x &&
43756600fe5bSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
43766600fe5bSmrgtest "x$ac_build_alias" = x &&
43776f5dd5c2Smrg  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
43786600fe5bSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
43796f5dd5c2Smrg  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
43806600fe5bSmrg
43816600fe5bSmrgfi
43826f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
43836600fe5bSmrg$as_echo "$ac_cv_build" >&6; }
43846600fe5bSmrgcase $ac_cv_build in
43856600fe5bSmrg*-*-*) ;;
43866f5dd5c2Smrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
43876600fe5bSmrgesac
43886600fe5bSmrgbuild=$ac_cv_build
43896600fe5bSmrgac_save_IFS=$IFS; IFS='-'
43906600fe5bSmrgset x $ac_cv_build
43916600fe5bSmrgshift
43926600fe5bSmrgbuild_cpu=$1
43936600fe5bSmrgbuild_vendor=$2
43946600fe5bSmrgshift; shift
43956600fe5bSmrg# Remember, the first character of IFS is used to create $*,
43966600fe5bSmrg# except with old shells:
43976600fe5bSmrgbuild_os=$*
43986600fe5bSmrgIFS=$ac_save_IFS
43996600fe5bSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
44006600fe5bSmrg
44016600fe5bSmrg
44026f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
44036600fe5bSmrg$as_echo_n "checking host system type... " >&6; }
44046f5dd5c2Smrgif test "${ac_cv_host+set}" = set; then :
44056600fe5bSmrg  $as_echo_n "(cached) " >&6
44066600fe5bSmrgelse
44076600fe5bSmrg  if test "x$host_alias" = x; then
44086600fe5bSmrg  ac_cv_host=$ac_cv_build
44096600fe5bSmrgelse
44106600fe5bSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
44116f5dd5c2Smrg    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
44126600fe5bSmrgfi
44136600fe5bSmrg
44146600fe5bSmrgfi
44156f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
44166600fe5bSmrg$as_echo "$ac_cv_host" >&6; }
44176600fe5bSmrgcase $ac_cv_host in
44186600fe5bSmrg*-*-*) ;;
44196f5dd5c2Smrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
44206600fe5bSmrgesac
44216600fe5bSmrghost=$ac_cv_host
44226600fe5bSmrgac_save_IFS=$IFS; IFS='-'
44236600fe5bSmrgset x $ac_cv_host
44246600fe5bSmrgshift
44256600fe5bSmrghost_cpu=$1
44266600fe5bSmrghost_vendor=$2
44276600fe5bSmrgshift; shift
44286600fe5bSmrg# Remember, the first character of IFS is used to create $*,
44296600fe5bSmrg# except with old shells:
44306600fe5bSmrghost_os=$*
44316600fe5bSmrgIFS=$ac_save_IFS
44326600fe5bSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
44336600fe5bSmrg
44346600fe5bSmrg
44356f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44366f5dd5c2Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
44376f5dd5c2Smrgif test "${ac_cv_path_SED+set}" = set; then :
44386600fe5bSmrg  $as_echo_n "(cached) " >&6
44396600fe5bSmrgelse
44406f5dd5c2Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44416f5dd5c2Smrg     for ac_i in 1 2 3 4 5 6 7; do
44426f5dd5c2Smrg       ac_script="$ac_script$as_nl$ac_script"
44436f5dd5c2Smrg     done
44446f5dd5c2Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44456f5dd5c2Smrg     { ac_script=; unset ac_script;}
44466f5dd5c2Smrg     if test -z "$SED"; then
44476f5dd5c2Smrg  ac_path_SED_found=false
44486f5dd5c2Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
44496f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44506f5dd5c2Smrgfor as_dir in $PATH
44516f5dd5c2Smrgdo
44526f5dd5c2Smrg  IFS=$as_save_IFS
44536f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
44546f5dd5c2Smrg    for ac_prog in sed gsed; do
44556f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
44566f5dd5c2Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
44576f5dd5c2Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
44586f5dd5c2Smrg# Check for GNU ac_path_SED and select it if it is found.
44596f5dd5c2Smrg  # Check for GNU $ac_path_SED
44606f5dd5c2Smrgcase `"$ac_path_SED" --version 2>&1` in
44616f5dd5c2Smrg*GNU*)
44626f5dd5c2Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
44636f5dd5c2Smrg*)
44646f5dd5c2Smrg  ac_count=0
44656f5dd5c2Smrg  $as_echo_n 0123456789 >"conftest.in"
44666f5dd5c2Smrg  while :
44676f5dd5c2Smrg  do
44686f5dd5c2Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
44696f5dd5c2Smrg    mv "conftest.tmp" "conftest.in"
44706f5dd5c2Smrg    cp "conftest.in" "conftest.nl"
44716f5dd5c2Smrg    $as_echo '' >> "conftest.nl"
44726f5dd5c2Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
44736f5dd5c2Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
44746f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
44756f5dd5c2Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
44766f5dd5c2Smrg      # Best one so far, save it but keep looking for a better one
44776f5dd5c2Smrg      ac_cv_path_SED="$ac_path_SED"
44786f5dd5c2Smrg      ac_path_SED_max=$ac_count
44796f5dd5c2Smrg    fi
44806f5dd5c2Smrg    # 10*(2^10) chars as input seems more than enough
44816f5dd5c2Smrg    test $ac_count -gt 10 && break
44826f5dd5c2Smrg  done
44836f5dd5c2Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
44846600fe5bSmrgesac
44856600fe5bSmrg
44866f5dd5c2Smrg      $ac_path_SED_found && break 3
44876f5dd5c2Smrg    done
44886f5dd5c2Smrg  done
44896f5dd5c2Smrg  done
44906f5dd5c2SmrgIFS=$as_save_IFS
44916f5dd5c2Smrg  if test -z "$ac_cv_path_SED"; then
44926f5dd5c2Smrg    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
44936f5dd5c2Smrg  fi
44946f5dd5c2Smrgelse
44956f5dd5c2Smrg  ac_cv_path_SED=$SED
44966600fe5bSmrgfi
44976600fe5bSmrg
44986600fe5bSmrgfi
44996f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
45006f5dd5c2Smrg$as_echo "$ac_cv_path_SED" >&6; }
45016f5dd5c2Smrg SED="$ac_cv_path_SED"
45026f5dd5c2Smrg  rm -f conftest.sed
45036f5dd5c2Smrg
45046f5dd5c2Smrg
45056f5dd5c2Smrg
45066f5dd5c2Smrg
45076f5dd5c2Smrg
45086f5dd5c2Smrgif  test "x$GCC" = xyes ; then
45096f5dd5c2Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
45106f5dd5c2Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
45116f5dd5c2Smrg-Wbad-function-cast -Wformat=2"
45126f5dd5c2Smrg    case `$CC -dumpversion` in
45136f5dd5c2Smrg    3.4.* | 4.*)
45146f5dd5c2Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
45156f5dd5c2Smrg	;;
45166f5dd5c2Smrg    esac
45176f5dd5c2Smrgelse
45186f5dd5c2Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45196f5dd5c2Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
45206600fe5bSmrg  SUNCC="yes"
45216600fe5bSmrgelse
45226600fe5bSmrg  SUNCC="no"
45236600fe5bSmrgfi
45246600fe5bSmrg
45256600fe5bSmrg    if test "x$SUNCC" = "xyes"; then
45266600fe5bSmrg	CWARNFLAGS="-v"
45276600fe5bSmrg    fi
45286600fe5bSmrgfi
45296600fe5bSmrg
45306600fe5bSmrg
45316600fe5bSmrg
45326f5dd5c2Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
45336600fe5bSmrg
45346600fe5bSmrg
45356600fe5bSmrg
45366600fe5bSmrg# Check whether --enable-strict-compilation was given.
45376f5dd5c2Smrgif test "${enable_strict_compilation+set}" = set; then :
45386600fe5bSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
45396600fe5bSmrgelse
45406600fe5bSmrg  STRICT_COMPILE=no
45416600fe5bSmrgfi
45426600fe5bSmrg
45436600fe5bSmrgif test "x$STRICT_COMPILE" = "xyes"; then
45446f5dd5c2Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45456f5dd5c2Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
45466600fe5bSmrg  SUNCC="yes"
45476600fe5bSmrgelse
45486600fe5bSmrg  SUNCC="no"
45496600fe5bSmrgfi
45506600fe5bSmrg
45516f5dd5c2Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
45526f5dd5c2Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
45536600fe5bSmrg  INTELCC="yes"
45546600fe5bSmrgelse
45556600fe5bSmrg  INTELCC="no"
45566600fe5bSmrgfi
45576600fe5bSmrg
45586600fe5bSmrg	if test "x$GCC" = xyes ; then
45596600fe5bSmrg		STRICT_CFLAGS="-pedantic -Werror"
45606600fe5bSmrg	elif test "x$SUNCC" = "xyes"; then
45616600fe5bSmrg		STRICT_CFLAGS="-errwarn"
45626600fe5bSmrg    elif test "x$INTELCC" = "xyes"; then
45636600fe5bSmrg		STRICT_CFLAGS="-Werror"
45646600fe5bSmrg	fi
45656600fe5bSmrgfi
45666600fe5bSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
45676600fe5bSmrg
45686600fe5bSmrg
45696600fe5bSmrg
45706600fe5bSmrg
45716600fe5bSmrgcat >>confdefs.h <<_ACEOF
45726600fe5bSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
45736600fe5bSmrg_ACEOF
45746600fe5bSmrg
45756600fe5bSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
45766600fe5bSmrg	if test "x$PVM" = "x"; then
45776600fe5bSmrg		PVM="0"
45786600fe5bSmrg	fi
45796600fe5bSmrg
45806600fe5bSmrgcat >>confdefs.h <<_ACEOF
45816600fe5bSmrg#define PACKAGE_VERSION_MINOR $PVM
45826600fe5bSmrg_ACEOF
45836600fe5bSmrg
45846600fe5bSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
45856600fe5bSmrg	if test "x$PVP" = "x"; then
45866600fe5bSmrg		PVP="0"
45876600fe5bSmrg	fi
45886600fe5bSmrg
45896600fe5bSmrgcat >>confdefs.h <<_ACEOF
45906600fe5bSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
45916600fe5bSmrg_ACEOF
45926600fe5bSmrg
45936600fe5bSmrg
45946600fe5bSmrg
45956f5dd5c2SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
45966f5dd5c2Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
45976f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
45986600fe5bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
45996600fe5bSmrg
46006f5dd5c2Smrg
46016f5dd5c2Smrg
46026f5dd5c2Smrg
46036f5dd5c2Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
46046f5dd5c2SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
46056f5dd5c2Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
46066f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
46076f5dd5c2Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
46086f5dd5c2Smrg
46096600fe5bSmrg
46106600fe5bSmrg
46116600fe5bSmrg
46126600fe5bSmrg
46136600fe5bSmrg
46146600fe5bSmrgif test x$APP_MAN_SUFFIX = x    ; then
46156600fe5bSmrg    APP_MAN_SUFFIX=1
46166600fe5bSmrgfi
46176600fe5bSmrgif test x$APP_MAN_DIR = x    ; then
46186600fe5bSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
46196600fe5bSmrgfi
46206600fe5bSmrg
46216600fe5bSmrgif test x$LIB_MAN_SUFFIX = x    ; then
46226600fe5bSmrg    LIB_MAN_SUFFIX=3
46236600fe5bSmrgfi
46246600fe5bSmrgif test x$LIB_MAN_DIR = x    ; then
46256600fe5bSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
46266600fe5bSmrgfi
46276600fe5bSmrg
46286600fe5bSmrgif test x$FILE_MAN_SUFFIX = x    ; then
46296600fe5bSmrg    case $host_os in
46306600fe5bSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
46316600fe5bSmrg	*)		FILE_MAN_SUFFIX=5  ;;
46326600fe5bSmrg    esac
46336600fe5bSmrgfi
46346600fe5bSmrgif test x$FILE_MAN_DIR = x    ; then
46356600fe5bSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
46366600fe5bSmrgfi
46376600fe5bSmrg
46386600fe5bSmrgif test x$MISC_MAN_SUFFIX = x    ; then
46396600fe5bSmrg    case $host_os in
46406600fe5bSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
46416600fe5bSmrg	*)		MISC_MAN_SUFFIX=7  ;;
46426600fe5bSmrg    esac
46436600fe5bSmrgfi
46446600fe5bSmrgif test x$MISC_MAN_DIR = x    ; then
46456600fe5bSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
46466600fe5bSmrgfi
46476600fe5bSmrg
46486600fe5bSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
46496600fe5bSmrg    case $host_os in
46506600fe5bSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
46516600fe5bSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
46526600fe5bSmrg    esac
46536600fe5bSmrgfi
46546600fe5bSmrgif test x$DRIVER_MAN_DIR = x    ; then
46556600fe5bSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
46566600fe5bSmrgfi
46576600fe5bSmrg
46586600fe5bSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
46596600fe5bSmrg    case $host_os in
46606600fe5bSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
46616600fe5bSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
46626600fe5bSmrg    esac
46636600fe5bSmrgfi
46646600fe5bSmrgif test x$ADMIN_MAN_DIR = x    ; then
46656600fe5bSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
46666600fe5bSmrgfi
46676600fe5bSmrg
46686600fe5bSmrg
46696600fe5bSmrg
46706600fe5bSmrg
46716600fe5bSmrg
46726600fe5bSmrg
46736600fe5bSmrg
46746600fe5bSmrg
46756600fe5bSmrg
46766600fe5bSmrg
46776600fe5bSmrg
46786600fe5bSmrg
46796600fe5bSmrg
46806600fe5bSmrg
46816600fe5bSmrg
46826f5dd5c2SmrgXORG_MAN_PAGE="X Version 11"
46836600fe5bSmrg
46846f5dd5c2SmrgMAN_SUBSTS="\
46856f5dd5c2Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
46866f5dd5c2Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
46876f5dd5c2Smrg	-e 's|__xservername__|Xorg|g' \
46886f5dd5c2Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
46896f5dd5c2Smrg	-e 's|__projectroot__|\$(prefix)|g' \
46906f5dd5c2Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
46916f5dd5c2Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
46926f5dd5c2Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
46936f5dd5c2Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
46946f5dd5c2Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
46956f5dd5c2Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
46966600fe5bSmrg
4697a0195d5fSmrg
4698a0195d5fSmrg
46996f5dd5c2Smrg# Check whether --enable-silent-rules was given.
47006f5dd5c2Smrgif test "${enable_silent_rules+set}" = set; then :
47016f5dd5c2Smrg  enableval=$enable_silent_rules;
4702a0195d5fSmrgfi
4703a0195d5fSmrg
47046f5dd5c2Smrgcase $enable_silent_rules in
47056f5dd5c2Smrgyes) AM_DEFAULT_VERBOSITY=0;;
47066f5dd5c2Smrgno)  AM_DEFAULT_VERBOSITY=1;;
47076f5dd5c2Smrg*)   AM_DEFAULT_VERBOSITY=0;;
47086f5dd5c2Smrgesac
47096f5dd5c2SmrgAM_BACKSLASH='\'
4710a0195d5fSmrg
4711a0195d5fSmrg
47126f5dd5c2Smrgac_config_headers="$ac_config_headers config.h"
4713a0195d5fSmrg
4714a0195d5fSmrg
47156f5dd5c2Smrgac_ext=c
47166f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
47176f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47186f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47196f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
47206f5dd5c2Smrgif test -n "$ac_tool_prefix"; then
47216f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
47226f5dd5c2Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
47236f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47246600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
47256f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
47266600fe5bSmrg  $as_echo_n "(cached) " >&6
4727a0195d5fSmrgelse
47286f5dd5c2Smrg  if test -n "$CC"; then
47296f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
47306f5dd5c2Smrgelse
47316f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732a0195d5fSmrgfor as_dir in $PATH
4733a0195d5fSmrgdo
4734a0195d5fSmrg  IFS=$as_save_IFS
4735a0195d5fSmrg  test -z "$as_dir" && as_dir=.
47366f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4737a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47386f5dd5c2Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
47396f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740a0195d5fSmrg    break 2
4741a0195d5fSmrg  fi
4742a0195d5fSmrgdone
47436f5dd5c2Smrg  done
4744a0195d5fSmrgIFS=$as_save_IFS
4745a0195d5fSmrg
4746a0195d5fSmrgfi
47476f5dd5c2Smrgfi
47486f5dd5c2SmrgCC=$ac_cv_prog_CC
47496f5dd5c2Smrgif test -n "$CC"; then
47506f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
47516f5dd5c2Smrg$as_echo "$CC" >&6; }
4752a0195d5fSmrgelse
47536f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47546600fe5bSmrg$as_echo "no" >&6; }
4755a0195d5fSmrgfi
4756a0195d5fSmrg
4757a0195d5fSmrg
4758a0195d5fSmrgfi
47596f5dd5c2Smrgif test -z "$ac_cv_prog_CC"; then
47606f5dd5c2Smrg  ac_ct_CC=$CC
47616f5dd5c2Smrg  # Extract the first word of "gcc", so it can be a program name with args.
47626f5dd5c2Smrgset dummy gcc; ac_word=$2
47636f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47646f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
47656f5dd5c2Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
47666600fe5bSmrg  $as_echo_n "(cached) " >&6
4767a0195d5fSmrgelse
47686f5dd5c2Smrg  if test -n "$ac_ct_CC"; then
47696f5dd5c2Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
47706f5dd5c2Smrgelse
47716f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772a0195d5fSmrgfor as_dir in $PATH
4773a0195d5fSmrgdo
4774a0195d5fSmrg  IFS=$as_save_IFS
4775a0195d5fSmrg  test -z "$as_dir" && as_dir=.
47766f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4777a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47786f5dd5c2Smrg    ac_cv_prog_ac_ct_CC="gcc"
47796f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47806f5dd5c2Smrg    break 2
47816f5dd5c2Smrg  fi
47826f5dd5c2Smrgdone
47836f5dd5c2Smrg  done
47846f5dd5c2SmrgIFS=$as_save_IFS
47856f5dd5c2Smrg
47866f5dd5c2Smrgfi
47876f5dd5c2Smrgfi
47886f5dd5c2Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
47896f5dd5c2Smrgif test -n "$ac_ct_CC"; then
47906f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
47916f5dd5c2Smrg$as_echo "$ac_ct_CC" >&6; }
47926f5dd5c2Smrgelse
47936f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47946f5dd5c2Smrg$as_echo "no" >&6; }
47956f5dd5c2Smrgfi
47966f5dd5c2Smrg
47976f5dd5c2Smrg  if test "x$ac_ct_CC" = x; then
47986f5dd5c2Smrg    CC=""
47996f5dd5c2Smrg  else
48006f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
48016f5dd5c2Smrgyes:)
48026f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
48036f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48046f5dd5c2Smrgac_tool_warned=yes ;;
48056f5dd5c2Smrgesac
48066f5dd5c2Smrg    CC=$ac_ct_CC
48076f5dd5c2Smrg  fi
48086f5dd5c2Smrgelse
48096f5dd5c2Smrg  CC="$ac_cv_prog_CC"
48106f5dd5c2Smrgfi
48116f5dd5c2Smrg
48126f5dd5c2Smrgif test -z "$CC"; then
48136f5dd5c2Smrg          if test -n "$ac_tool_prefix"; then
48146f5dd5c2Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
48156f5dd5c2Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
48166f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48176f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
48186f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
48196f5dd5c2Smrg  $as_echo_n "(cached) " >&6
48206f5dd5c2Smrgelse
48216f5dd5c2Smrg  if test -n "$CC"; then
48226f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
48236f5dd5c2Smrgelse
48246f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48256f5dd5c2Smrgfor as_dir in $PATH
48266f5dd5c2Smrgdo
48276f5dd5c2Smrg  IFS=$as_save_IFS
48286f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
48296f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48306f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48316f5dd5c2Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
48326f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833a0195d5fSmrg    break 2
4834a0195d5fSmrg  fi
4835a0195d5fSmrgdone
48366f5dd5c2Smrg  done
48376f5dd5c2SmrgIFS=$as_save_IFS
48386f5dd5c2Smrg
48396f5dd5c2Smrgfi
48406f5dd5c2Smrgfi
48416f5dd5c2SmrgCC=$ac_cv_prog_CC
48426f5dd5c2Smrgif test -n "$CC"; then
48436f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
48446f5dd5c2Smrg$as_echo "$CC" >&6; }
48456f5dd5c2Smrgelse
48466f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48476f5dd5c2Smrg$as_echo "no" >&6; }
48486f5dd5c2Smrgfi
48496f5dd5c2Smrg
48506f5dd5c2Smrg
48516f5dd5c2Smrg  fi
48526f5dd5c2Smrgfi
48536f5dd5c2Smrgif test -z "$CC"; then
48546f5dd5c2Smrg  # Extract the first word of "cc", so it can be a program name with args.
48556f5dd5c2Smrgset dummy cc; ac_word=$2
48566f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48576f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
48586f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
48596f5dd5c2Smrg  $as_echo_n "(cached) " >&6
48606f5dd5c2Smrgelse
48616f5dd5c2Smrg  if test -n "$CC"; then
48626f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
48636f5dd5c2Smrgelse
48646f5dd5c2Smrg  ac_prog_rejected=no
48656f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48666f5dd5c2Smrgfor as_dir in $PATH
48676f5dd5c2Smrgdo
48686f5dd5c2Smrg  IFS=$as_save_IFS
48696f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
48706f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
48716f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48726f5dd5c2Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
48736f5dd5c2Smrg       ac_prog_rejected=yes
48746f5dd5c2Smrg       continue
48756f5dd5c2Smrg     fi
48766f5dd5c2Smrg    ac_cv_prog_CC="cc"
48776f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48786f5dd5c2Smrg    break 2
48796f5dd5c2Smrg  fi
4880a0195d5fSmrgdone
48816f5dd5c2Smrg  done
4882a0195d5fSmrgIFS=$as_save_IFS
4883a0195d5fSmrg
48846f5dd5c2Smrgif test $ac_prog_rejected = yes; then
48856f5dd5c2Smrg  # We found a bogon in the path, so make sure we never use it.
48866f5dd5c2Smrg  set dummy $ac_cv_prog_CC
48876f5dd5c2Smrg  shift
48886f5dd5c2Smrg  if test $# != 0; then
48896f5dd5c2Smrg    # We chose a different compiler from the bogus one.
48906f5dd5c2Smrg    # However, it has the same basename, so the bogon will be chosen
48916f5dd5c2Smrg    # first if we set CC to just the basename; use the full file name.
48926f5dd5c2Smrg    shift
48936f5dd5c2Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
48946f5dd5c2Smrg  fi
48956f5dd5c2Smrgfi
48966f5dd5c2Smrgfi
48976f5dd5c2Smrgfi
48986f5dd5c2SmrgCC=$ac_cv_prog_CC
48996f5dd5c2Smrgif test -n "$CC"; then
49006f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
49016f5dd5c2Smrg$as_echo "$CC" >&6; }
49026f5dd5c2Smrgelse
49036f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49046f5dd5c2Smrg$as_echo "no" >&6; }
49056f5dd5c2Smrgfi
49066f5dd5c2Smrg
49076f5dd5c2Smrg
49086f5dd5c2Smrgfi
49096f5dd5c2Smrgif test -z "$CC"; then
49106f5dd5c2Smrg  if test -n "$ac_tool_prefix"; then
49116f5dd5c2Smrg  for ac_prog in cl.exe
49126f5dd5c2Smrg  do
49136f5dd5c2Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
49146f5dd5c2Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
49156f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49166f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
49176f5dd5c2Smrgif test "${ac_cv_prog_CC+set}" = set; then :
49186f5dd5c2Smrg  $as_echo_n "(cached) " >&6
49196f5dd5c2Smrgelse
49206f5dd5c2Smrg  if test -n "$CC"; then
49216f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
49226f5dd5c2Smrgelse
49236f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49246f5dd5c2Smrgfor as_dir in $PATH
49256f5dd5c2Smrgdo
49266f5dd5c2Smrg  IFS=$as_save_IFS
49276f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
49286f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
49296f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49306f5dd5c2Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
49316f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49326f5dd5c2Smrg    break 2
49336f5dd5c2Smrg  fi
49346f5dd5c2Smrgdone
49356f5dd5c2Smrg  done
49366f5dd5c2SmrgIFS=$as_save_IFS
49376f5dd5c2Smrg
49386f5dd5c2Smrgfi
49396f5dd5c2Smrgfi
49406f5dd5c2SmrgCC=$ac_cv_prog_CC
49416f5dd5c2Smrgif test -n "$CC"; then
49426f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
49436f5dd5c2Smrg$as_echo "$CC" >&6; }
49446f5dd5c2Smrgelse
49456f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49466f5dd5c2Smrg$as_echo "no" >&6; }
49476f5dd5c2Smrgfi
49486f5dd5c2Smrg
49496f5dd5c2Smrg
49506f5dd5c2Smrg    test -n "$CC" && break
49516f5dd5c2Smrg  done
49526f5dd5c2Smrgfi
49536f5dd5c2Smrgif test -z "$CC"; then
49546f5dd5c2Smrg  ac_ct_CC=$CC
49556f5dd5c2Smrg  for ac_prog in cl.exe
49566f5dd5c2Smrgdo
49576f5dd5c2Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
49586f5dd5c2Smrgset dummy $ac_prog; ac_word=$2
49596f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49606f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
49616f5dd5c2Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
49626f5dd5c2Smrg  $as_echo_n "(cached) " >&6
49636f5dd5c2Smrgelse
49646f5dd5c2Smrg  if test -n "$ac_ct_CC"; then
49656f5dd5c2Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
49666f5dd5c2Smrgelse
49676f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49686f5dd5c2Smrgfor as_dir in $PATH
49696f5dd5c2Smrgdo
49706f5dd5c2Smrg  IFS=$as_save_IFS
49716f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
49726f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
49736f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49746f5dd5c2Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
49756f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49766f5dd5c2Smrg    break 2
49776f5dd5c2Smrg  fi
49786f5dd5c2Smrgdone
49796f5dd5c2Smrg  done
49806f5dd5c2SmrgIFS=$as_save_IFS
49816f5dd5c2Smrg
49826f5dd5c2Smrgfi
49836f5dd5c2Smrgfi
49846f5dd5c2Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
49856f5dd5c2Smrgif test -n "$ac_ct_CC"; then
49866f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
49876f5dd5c2Smrg$as_echo "$ac_ct_CC" >&6; }
49886f5dd5c2Smrgelse
49896f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49906f5dd5c2Smrg$as_echo "no" >&6; }
49916f5dd5c2Smrgfi
49926f5dd5c2Smrg
49936f5dd5c2Smrg
49946f5dd5c2Smrg  test -n "$ac_ct_CC" && break
49956f5dd5c2Smrgdone
49966f5dd5c2Smrg
49976f5dd5c2Smrg  if test "x$ac_ct_CC" = x; then
49986f5dd5c2Smrg    CC=""
49996f5dd5c2Smrg  else
50006f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
50016f5dd5c2Smrgyes:)
50026f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
50036f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
50046f5dd5c2Smrgac_tool_warned=yes ;;
5005a0195d5fSmrgesac
50066f5dd5c2Smrg    CC=$ac_ct_CC
50076f5dd5c2Smrg  fi
5008a0195d5fSmrgfi
50096f5dd5c2Smrg
50106f5dd5c2Smrgfi
50116f5dd5c2Smrg
50126f5dd5c2Smrg
50136f5dd5c2Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50146f5dd5c2Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50156f5dd5c2Smrgas_fn_error "no acceptable C compiler found in \$PATH
50166f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
50176f5dd5c2Smrg
50186f5dd5c2Smrg# Provide some information about the compiler.
50196f5dd5c2Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
50206f5dd5c2Smrgset X $ac_compile
50216f5dd5c2Smrgac_compiler=$2
50226f5dd5c2Smrgfor ac_option in --version -v -V -qversion; do
50236f5dd5c2Smrg  { { ac_try="$ac_compiler $ac_option >&5"
50246f5dd5c2Smrgcase "(($ac_try" in
50256f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50266f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
50276f5dd5c2Smrgesac
50286f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
50296f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
50306f5dd5c2Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
50316f5dd5c2Smrg  ac_status=$?
50326f5dd5c2Smrg  if test -s conftest.err; then
50336f5dd5c2Smrg    sed '10a\
50346f5dd5c2Smrg... rest of stderr output deleted ...
50356f5dd5c2Smrg         10q' conftest.err >conftest.er1
50366f5dd5c2Smrg    cat conftest.er1 >&5
50376f5dd5c2Smrg  fi
50386f5dd5c2Smrg  rm -f conftest.er1 conftest.err
50396f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50406f5dd5c2Smrg  test $ac_status = 0; }
50416f5dd5c2Smrgdone
50426f5dd5c2Smrg
50436f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
50446f5dd5c2Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
50456f5dd5c2Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
50466f5dd5c2Smrg  $as_echo_n "(cached) " >&6
50476f5dd5c2Smrgelse
50486f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50496f5dd5c2Smrg/* end confdefs.h.  */
50506f5dd5c2Smrg
50516f5dd5c2Smrgint
50526f5dd5c2Smrgmain ()
50536f5dd5c2Smrg{
50546f5dd5c2Smrg#ifndef __GNUC__
50556f5dd5c2Smrg       choke me
50566f5dd5c2Smrg#endif
50576f5dd5c2Smrg
50586f5dd5c2Smrg  ;
50596f5dd5c2Smrg  return 0;
50606f5dd5c2Smrg}
50616f5dd5c2Smrg_ACEOF
50626f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
50636f5dd5c2Smrg  ac_compiler_gnu=yes
50646f5dd5c2Smrgelse
50656f5dd5c2Smrg  ac_compiler_gnu=no
50666f5dd5c2Smrgfi
50676f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50686f5dd5c2Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
50696f5dd5c2Smrg
50706f5dd5c2Smrgfi
50716f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
50726f5dd5c2Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
50736f5dd5c2Smrgif test $ac_compiler_gnu = yes; then
50746f5dd5c2Smrg  GCC=yes
50756f5dd5c2Smrgelse
50766f5dd5c2Smrg  GCC=
50776f5dd5c2Smrgfi
50786f5dd5c2Smrgac_test_CFLAGS=${CFLAGS+set}
50796f5dd5c2Smrgac_save_CFLAGS=$CFLAGS
50806f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
50816f5dd5c2Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
50826f5dd5c2Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
50836f5dd5c2Smrg  $as_echo_n "(cached) " >&6
50846f5dd5c2Smrgelse
50856f5dd5c2Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
50866f5dd5c2Smrg   ac_c_werror_flag=yes
50876f5dd5c2Smrg   ac_cv_prog_cc_g=no
50886f5dd5c2Smrg   CFLAGS="-g"
50896f5dd5c2Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50906f5dd5c2Smrg/* end confdefs.h.  */
50916f5dd5c2Smrg
50926f5dd5c2Smrgint
50936f5dd5c2Smrgmain ()
50946f5dd5c2Smrg{
50956f5dd5c2Smrg
50966f5dd5c2Smrg  ;
50976f5dd5c2Smrg  return 0;
50986f5dd5c2Smrg}
50996f5dd5c2Smrg_ACEOF
51006f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
51016f5dd5c2Smrg  ac_cv_prog_cc_g=yes
51026f5dd5c2Smrgelse
51036f5dd5c2Smrg  CFLAGS=""
51046f5dd5c2Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51056f5dd5c2Smrg/* end confdefs.h.  */
51066f5dd5c2Smrg
51076f5dd5c2Smrgint
51086f5dd5c2Smrgmain ()
51096f5dd5c2Smrg{
51106f5dd5c2Smrg
51116f5dd5c2Smrg  ;
51126f5dd5c2Smrg  return 0;
51136f5dd5c2Smrg}
51146f5dd5c2Smrg_ACEOF
51156f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
51166f5dd5c2Smrg
51176f5dd5c2Smrgelse
51186f5dd5c2Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
51196f5dd5c2Smrg	 CFLAGS="-g"
51206f5dd5c2Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51216f5dd5c2Smrg/* end confdefs.h.  */
51226f5dd5c2Smrg
51236f5dd5c2Smrgint
51246f5dd5c2Smrgmain ()
51256f5dd5c2Smrg{
51266f5dd5c2Smrg
51276f5dd5c2Smrg  ;
51286f5dd5c2Smrg  return 0;
51296f5dd5c2Smrg}
51306f5dd5c2Smrg_ACEOF
51316f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
51326f5dd5c2Smrg  ac_cv_prog_cc_g=yes
51336f5dd5c2Smrgfi
51346f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51356f5dd5c2Smrgfi
51366f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51376f5dd5c2Smrgfi
51386f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51396f5dd5c2Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
51406f5dd5c2Smrgfi
51416f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
51426f5dd5c2Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
51436f5dd5c2Smrgif test "$ac_test_CFLAGS" = set; then
51446f5dd5c2Smrg  CFLAGS=$ac_save_CFLAGS
51456f5dd5c2Smrgelif test $ac_cv_prog_cc_g = yes; then
51466f5dd5c2Smrg  if test "$GCC" = yes; then
51476f5dd5c2Smrg    CFLAGS="-g -O2"
51486f5dd5c2Smrg  else
51496f5dd5c2Smrg    CFLAGS="-g"
51506f5dd5c2Smrg  fi
51516f5dd5c2Smrgelse
51526f5dd5c2Smrg  if test "$GCC" = yes; then
51536f5dd5c2Smrg    CFLAGS="-O2"
51546f5dd5c2Smrg  else
51556f5dd5c2Smrg    CFLAGS=
51566f5dd5c2Smrg  fi
51576f5dd5c2Smrgfi
51586f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
51596f5dd5c2Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
51606f5dd5c2Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
51616f5dd5c2Smrg  $as_echo_n "(cached) " >&6
51626f5dd5c2Smrgelse
51636f5dd5c2Smrg  ac_cv_prog_cc_c89=no
51646f5dd5c2Smrgac_save_CC=$CC
51656f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
51666f5dd5c2Smrg/* end confdefs.h.  */
51676f5dd5c2Smrg#include <stdarg.h>
51686f5dd5c2Smrg#include <stdio.h>
51696f5dd5c2Smrg#include <sys/types.h>
51706f5dd5c2Smrg#include <sys/stat.h>
51716f5dd5c2Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
51726f5dd5c2Smrgstruct buf { int x; };
51736f5dd5c2SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
51746f5dd5c2Smrgstatic char *e (p, i)
51756f5dd5c2Smrg     char **p;
51766f5dd5c2Smrg     int i;
51776f5dd5c2Smrg{
51786f5dd5c2Smrg  return p[i];
51796f5dd5c2Smrg}
51806f5dd5c2Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
51816f5dd5c2Smrg{
51826f5dd5c2Smrg  char *s;
51836f5dd5c2Smrg  va_list v;
51846f5dd5c2Smrg  va_start (v,p);
51856f5dd5c2Smrg  s = g (p, va_arg (v,int));
51866f5dd5c2Smrg  va_end (v);
51876f5dd5c2Smrg  return s;
51886f5dd5c2Smrg}
51896f5dd5c2Smrg
51906f5dd5c2Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
51916f5dd5c2Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
51926f5dd5c2Smrg   These don't provoke an error unfortunately, instead are silently treated
51936f5dd5c2Smrg   as 'x'.  The following induces an error, until -std is added to get
51946f5dd5c2Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
51956f5dd5c2Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
51966f5dd5c2Smrg   that's true only with -std.  */
51976f5dd5c2Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
51986f5dd5c2Smrg
51996f5dd5c2Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
52006f5dd5c2Smrg   inside strings and character constants.  */
52016f5dd5c2Smrg#define FOO(x) 'x'
52026f5dd5c2Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
52036f5dd5c2Smrg
52046f5dd5c2Smrgint test (int i, double x);
52056f5dd5c2Smrgstruct s1 {int (*f) (int a);};
52066f5dd5c2Smrgstruct s2 {int (*f) (double a);};
52076f5dd5c2Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
52086f5dd5c2Smrgint argc;
52096f5dd5c2Smrgchar **argv;
52106f5dd5c2Smrgint
52116f5dd5c2Smrgmain ()
52126f5dd5c2Smrg{
52136f5dd5c2Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
52146f5dd5c2Smrg  ;
52156f5dd5c2Smrg  return 0;
52166f5dd5c2Smrg}
52176f5dd5c2Smrg_ACEOF
52186f5dd5c2Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
52196f5dd5c2Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
52206f5dd5c2Smrgdo
52216f5dd5c2Smrg  CC="$ac_save_CC $ac_arg"
52226f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
52236f5dd5c2Smrg  ac_cv_prog_cc_c89=$ac_arg
52246f5dd5c2Smrgfi
52256f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext
52266f5dd5c2Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
52276f5dd5c2Smrgdone
52286f5dd5c2Smrgrm -f conftest.$ac_ext
52296f5dd5c2SmrgCC=$ac_save_CC
52306f5dd5c2Smrg
52316f5dd5c2Smrgfi
52326f5dd5c2Smrg# AC_CACHE_VAL
52336f5dd5c2Smrgcase "x$ac_cv_prog_cc_c89" in
52346f5dd5c2Smrg  x)
52356f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
52366f5dd5c2Smrg$as_echo "none needed" >&6; } ;;
52376f5dd5c2Smrg  xno)
52386f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
52396f5dd5c2Smrg$as_echo "unsupported" >&6; } ;;
52406f5dd5c2Smrg  *)
52416f5dd5c2Smrg    CC="$CC $ac_cv_prog_cc_c89"
52426f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
52436f5dd5c2Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
52446f5dd5c2Smrgesac
52456f5dd5c2Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
52466f5dd5c2Smrg
52476f5dd5c2Smrgfi
52486f5dd5c2Smrg
52496f5dd5c2Smrgac_ext=c
52506f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
52516f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52526f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52536f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
52546f5dd5c2Smrg
52556f5dd5c2Smrgdepcc="$CC"   am_compiler_list=
52566f5dd5c2Smrg
52576f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
52586f5dd5c2Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
52596f5dd5c2Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
52606f5dd5c2Smrg  $as_echo_n "(cached) " >&6
52616f5dd5c2Smrgelse
52626f5dd5c2Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
52636f5dd5c2Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
52646f5dd5c2Smrg  # making bogus files that we don't know about and never remove.  For
52656f5dd5c2Smrg  # instance it was reported that on HP-UX the gcc test will end up
52666f5dd5c2Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
52676f5dd5c2Smrg  # in D'.
52686f5dd5c2Smrg  mkdir conftest.dir
52696f5dd5c2Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
52706f5dd5c2Smrg  # using a relative directory.
52716f5dd5c2Smrg  cp "$am_depcomp" conftest.dir
52726f5dd5c2Smrg  cd conftest.dir
52736f5dd5c2Smrg  # We will build objects and dependencies in a subdirectory because
52746f5dd5c2Smrg  # it helps to detect inapplicable dependency modes.  For instance
52756f5dd5c2Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
52766f5dd5c2Smrg  # side effect of compilation, but ICC will put the dependencies in
52776f5dd5c2Smrg  # the current directory while Tru64 will put them in the object
52786f5dd5c2Smrg  # directory.
52796f5dd5c2Smrg  mkdir sub
52806f5dd5c2Smrg
52816f5dd5c2Smrg  am_cv_CC_dependencies_compiler_type=none
52826f5dd5c2Smrg  if test "$am_compiler_list" = ""; then
52836f5dd5c2Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
52846f5dd5c2Smrg  fi
52856f5dd5c2Smrg  am__universal=false
52866f5dd5c2Smrg  case " $depcc " in #(
52876f5dd5c2Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
52886f5dd5c2Smrg     esac
52896f5dd5c2Smrg
52906f5dd5c2Smrg  for depmode in $am_compiler_list; do
52916f5dd5c2Smrg    # Setup a source with many dependencies, because some compilers
52926f5dd5c2Smrg    # like to wrap large dependency lists on column 80 (with \), and
52936f5dd5c2Smrg    # we should not choose a depcomp mode which is confused by this.
52946f5dd5c2Smrg    #
52956f5dd5c2Smrg    # We need to recreate these files for each test, as the compiler may
52966f5dd5c2Smrg    # overwrite some of them when testing with obscure command lines.
52976f5dd5c2Smrg    # This happens at least with the AIX C compiler.
52986f5dd5c2Smrg    : > sub/conftest.c
52996f5dd5c2Smrg    for i in 1 2 3 4 5 6; do
53006f5dd5c2Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
53016f5dd5c2Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
53026f5dd5c2Smrg      # Solaris 8's {/usr,}/bin/sh.
53036f5dd5c2Smrg      touch sub/conftst$i.h
53046f5dd5c2Smrg    done
53056f5dd5c2Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
53066f5dd5c2Smrg
53076f5dd5c2Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
53086f5dd5c2Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
53096f5dd5c2Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
53106f5dd5c2Smrg    # versions had trouble with output in subdirs
53116f5dd5c2Smrg    am__obj=sub/conftest.${OBJEXT-o}
53126f5dd5c2Smrg    am__minus_obj="-o $am__obj"
53136f5dd5c2Smrg    case $depmode in
53146f5dd5c2Smrg    gcc)
53156f5dd5c2Smrg      # This depmode causes a compiler race in universal mode.
53166f5dd5c2Smrg      test "$am__universal" = false || continue
53176f5dd5c2Smrg      ;;
53186f5dd5c2Smrg    nosideeffect)
53196f5dd5c2Smrg      # after this tag, mechanisms are not by side-effect, so they'll
53206f5dd5c2Smrg      # only be used when explicitly requested
53216f5dd5c2Smrg      if test "x$enable_dependency_tracking" = xyes; then
53226f5dd5c2Smrg	continue
53236f5dd5c2Smrg      else
53246f5dd5c2Smrg	break
53256f5dd5c2Smrg      fi
53266f5dd5c2Smrg      ;;
53276f5dd5c2Smrg    msvisualcpp | msvcmsys)
53286f5dd5c2Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
53296f5dd5c2Smrg      # not run yet.  These depmodes are late enough in the game, and
53306f5dd5c2Smrg      # so weak that their functioning should not be impacted.
53316f5dd5c2Smrg      am__obj=conftest.${OBJEXT-o}
53326f5dd5c2Smrg      am__minus_obj=
53336f5dd5c2Smrg      ;;
53346f5dd5c2Smrg    none) break ;;
53356f5dd5c2Smrg    esac
53366f5dd5c2Smrg    if depmode=$depmode \
53376f5dd5c2Smrg       source=sub/conftest.c object=$am__obj \
53386f5dd5c2Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
53396f5dd5c2Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
53406f5dd5c2Smrg         >/dev/null 2>conftest.err &&
53416f5dd5c2Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
53426f5dd5c2Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
53436f5dd5c2Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
53446f5dd5c2Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
53456f5dd5c2Smrg      # icc doesn't choke on unknown options, it will just issue warnings
53466f5dd5c2Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
53476f5dd5c2Smrg      # that says an option was ignored or not supported.
53486f5dd5c2Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
53496f5dd5c2Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
53506f5dd5c2Smrg      # The diagnosis changed in icc 8.0:
53516f5dd5c2Smrg      #   icc: Command line remark: option '-MP' not supported
53526f5dd5c2Smrg      if (grep 'ignoring option' conftest.err ||
53536f5dd5c2Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
53546f5dd5c2Smrg        am_cv_CC_dependencies_compiler_type=$depmode
53556f5dd5c2Smrg        break
53566f5dd5c2Smrg      fi
53576f5dd5c2Smrg    fi
53586f5dd5c2Smrg  done
53596f5dd5c2Smrg
53606f5dd5c2Smrg  cd ..
53616f5dd5c2Smrg  rm -rf conftest.dir
5362a0195d5fSmrgelse
53636f5dd5c2Smrg  am_cv_CC_dependencies_compiler_type=none
5364a0195d5fSmrgfi
5365a0195d5fSmrg
5366a0195d5fSmrgfi
53676f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
53686f5dd5c2Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
53696f5dd5c2SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5370a0195d5fSmrg
53716f5dd5c2Smrg if
53726f5dd5c2Smrg  test "x$enable_dependency_tracking" != xno \
53736f5dd5c2Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
53746f5dd5c2Smrg  am__fastdepCC_TRUE=
53756f5dd5c2Smrg  am__fastdepCC_FALSE='#'
53766f5dd5c2Smrgelse
53776f5dd5c2Smrg  am__fastdepCC_TRUE='#'
53786f5dd5c2Smrg  am__fastdepCC_FALSE=
5379a0195d5fSmrgfi
53806f5dd5c2Smrg
53816f5dd5c2Smrg
53826f5dd5c2Smrg
53836f5dd5c2Smrg
53846f5dd5c2Smrg
53856f5dd5c2Smrg# Checks for system functions
53866f5dd5c2Smrgfor ac_func in usleep
53876f5dd5c2Smrgdo :
53886f5dd5c2Smrg  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
53896f5dd5c2Smrgif test "x$ac_cv_func_usleep" = x""yes; then :
53906f5dd5c2Smrg  cat >>confdefs.h <<_ACEOF
53916f5dd5c2Smrg#define HAVE_USLEEP 1
53926f5dd5c2Smrg_ACEOF
5393a0195d5fSmrg
5394a0195d5fSmrgfi
53956f5dd5c2Smrgdone
53966f5dd5c2Smrg
53976f5dd5c2Smrg
53986f5dd5c2Smrg# Checks for pkg-config packages
5399a0195d5fSmrg
5400a0195d5fSmrgpkg_failed=no
54016f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
54026600fe5bSmrg$as_echo_n "checking for XSET... " >&6; }
5403a0195d5fSmrg
5404a0195d5fSmrgif test -n "$XSET_CFLAGS"; then
5405a0195d5fSmrg    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
5406a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5407a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
54086f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu\""; } >&5
5409a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xmuu") 2>&5
5410a0195d5fSmrg  ac_status=$?
54116f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54126f5dd5c2Smrg  test $ac_status = 0; }; then
5413a0195d5fSmrg  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xmuu" 2>/dev/null`
5414a0195d5fSmrgelse
5415a0195d5fSmrg  pkg_failed=yes
5416a0195d5fSmrgfi
5417a0195d5fSmrg else
5418a0195d5fSmrg    pkg_failed=untried
5419a0195d5fSmrgfi
5420a0195d5fSmrgif test -n "$XSET_LIBS"; then
5421a0195d5fSmrg    pkg_cv_XSET_LIBS="$XSET_LIBS"
5422a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5423a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
54246f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu\""; } >&5
5425a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xmuu") 2>&5
5426a0195d5fSmrg  ac_status=$?
54276f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54286f5dd5c2Smrg  test $ac_status = 0; }; then
5429a0195d5fSmrg  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xmuu" 2>/dev/null`
5430a0195d5fSmrgelse
5431a0195d5fSmrg  pkg_failed=yes
5432a0195d5fSmrgfi
5433a0195d5fSmrg else
5434a0195d5fSmrg    pkg_failed=untried
5435a0195d5fSmrgfi
5436a0195d5fSmrg
5437a0195d5fSmrg
5438a0195d5fSmrg
5439a0195d5fSmrgif test $pkg_failed = yes; then
5440a0195d5fSmrg
5441a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5442a0195d5fSmrg        _pkg_short_errors_supported=yes
5443a0195d5fSmrgelse
5444a0195d5fSmrg        _pkg_short_errors_supported=no
5445a0195d5fSmrgfi
5446a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5447a0195d5fSmrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu" 2>&1`
5448a0195d5fSmrg        else
5449a0195d5fSmrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu" 2>&1`
5450a0195d5fSmrg        fi
5451a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5452a0195d5fSmrg	echo "$XSET_PKG_ERRORS" >&5
5453a0195d5fSmrg
54546f5dd5c2Smrg	as_fn_error "Package requirements (xmuu) were not met:
5455a0195d5fSmrg
5456a0195d5fSmrg$XSET_PKG_ERRORS
5457a0195d5fSmrg
5458a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5459a0195d5fSmrginstalled software in a non-standard prefix.
5460a0195d5fSmrg
5461a0195d5fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
5462a0195d5fSmrgand XSET_LIBS to avoid the need to call pkg-config.
5463a0195d5fSmrgSee the pkg-config man page for more details.
54646f5dd5c2Smrg" "$LINENO" 5
5465a0195d5fSmrgelif test $pkg_failed = untried; then
54666f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54676600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54686f5dd5c2Smrgas_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5469a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5470a0195d5fSmrgpath to pkg-config.
5471a0195d5fSmrg
5472a0195d5fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
5473a0195d5fSmrgand XSET_LIBS to avoid the need to call pkg-config.
5474a0195d5fSmrgSee the pkg-config man page for more details.
5475a0195d5fSmrg
5476a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
54776f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
5478a0195d5fSmrgelse
5479a0195d5fSmrg	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
5480a0195d5fSmrg	XSET_LIBS=$pkg_cv_XSET_LIBS
54816f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54826600fe5bSmrg$as_echo "yes" >&6; }
5483a0195d5fSmrg	:
5484a0195d5fSmrgfi
5485a0195d5fSmrg
5486a0195d5fSmrg# This is used below to allow <X11/Xlib.h> to be found
5487a0195d5fSmrg
5488a0195d5fSmrgpkg_failed=no
54896f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
54906600fe5bSmrg$as_echo_n "checking for SET_X11... " >&6; }
5491a0195d5fSmrg
5492a0195d5fSmrgif test -n "$SET_X11_CFLAGS"; then
5493a0195d5fSmrg    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
5494a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5495a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
54966f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5497a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5498a0195d5fSmrg  ac_status=$?
54996f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55006f5dd5c2Smrg  test $ac_status = 0; }; then
5501a0195d5fSmrg  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5502a0195d5fSmrgelse
5503a0195d5fSmrg  pkg_failed=yes
5504a0195d5fSmrgfi
5505a0195d5fSmrg else
5506a0195d5fSmrg    pkg_failed=untried
5507a0195d5fSmrgfi
5508a0195d5fSmrgif test -n "$SET_X11_LIBS"; then
5509a0195d5fSmrg    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
5510a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5511a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
55126f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5513a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5514a0195d5fSmrg  ac_status=$?
55156f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55166f5dd5c2Smrg  test $ac_status = 0; }; then
5517a0195d5fSmrg  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5518a0195d5fSmrgelse
5519a0195d5fSmrg  pkg_failed=yes
5520a0195d5fSmrgfi
5521a0195d5fSmrg else
5522a0195d5fSmrg    pkg_failed=untried
5523a0195d5fSmrgfi
5524a0195d5fSmrg
5525a0195d5fSmrg
5526a0195d5fSmrg
5527a0195d5fSmrgif test $pkg_failed = yes; then
5528a0195d5fSmrg
5529a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5530a0195d5fSmrg        _pkg_short_errors_supported=yes
5531a0195d5fSmrgelse
5532a0195d5fSmrg        _pkg_short_errors_supported=no
5533a0195d5fSmrgfi
5534a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5535a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5536a0195d5fSmrg        else
5537a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5538a0195d5fSmrg        fi
5539a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5540a0195d5fSmrg	echo "$SET_X11_PKG_ERRORS" >&5
5541a0195d5fSmrg
55426f5dd5c2Smrg	as_fn_error "Package requirements (x11) were not met:
5543a0195d5fSmrg
5544a0195d5fSmrg$SET_X11_PKG_ERRORS
5545a0195d5fSmrg
5546a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5547a0195d5fSmrginstalled software in a non-standard prefix.
5548a0195d5fSmrg
5549a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
5550a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
5551a0195d5fSmrgSee the pkg-config man page for more details.
55526f5dd5c2Smrg" "$LINENO" 5
5553a0195d5fSmrgelif test $pkg_failed = untried; then
55546f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
55556600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55566f5dd5c2Smrgas_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5557a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5558a0195d5fSmrgpath to pkg-config.
5559a0195d5fSmrg
5560a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
5561a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
5562a0195d5fSmrgSee the pkg-config man page for more details.
5563a0195d5fSmrg
5564a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
55656f5dd5c2SmrgSee \`config.log' for more details." "$LINENO" 5; }
5566a0195d5fSmrgelse
5567a0195d5fSmrg	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
5568a0195d5fSmrg	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
55696f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55706600fe5bSmrg$as_echo "yes" >&6; }
5571a0195d5fSmrg	:
5572a0195d5fSmrgfi
5573a0195d5fSmrg
5574a0195d5fSmrg
5575a0195d5fSmrgpkg_failed=no
55766f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
55776600fe5bSmrg$as_echo_n "checking for SET_XEXT... " >&6; }
5578a0195d5fSmrg
5579a0195d5fSmrgif test -n "$SET_XEXT_CFLAGS"; then
5580a0195d5fSmrg    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
5581a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5582a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
55836f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
5584a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5585a0195d5fSmrg  ac_status=$?
55866f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55876f5dd5c2Smrg  test $ac_status = 0; }; then
5588a0195d5fSmrg  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
5589a0195d5fSmrgelse
5590a0195d5fSmrg  pkg_failed=yes
5591a0195d5fSmrgfi
5592a0195d5fSmrg else
5593a0195d5fSmrg    pkg_failed=untried
5594a0195d5fSmrgfi
5595a0195d5fSmrgif test -n "$SET_XEXT_LIBS"; then
5596a0195d5fSmrg    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
5597a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5598a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
55996f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
5600a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5601a0195d5fSmrg  ac_status=$?
56026f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56036f5dd5c2Smrg  test $ac_status = 0; }; then
5604a0195d5fSmrg  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
5605a0195d5fSmrgelse
5606a0195d5fSmrg  pkg_failed=yes
5607a0195d5fSmrgfi
5608a0195d5fSmrg else
5609a0195d5fSmrg    pkg_failed=untried
5610a0195d5fSmrgfi
5611a0195d5fSmrg
5612a0195d5fSmrg
5613a0195d5fSmrg
5614a0195d5fSmrgif test $pkg_failed = yes; then
5615a0195d5fSmrg
5616a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5617a0195d5fSmrg        _pkg_short_errors_supported=yes
5618a0195d5fSmrgelse
5619a0195d5fSmrg        _pkg_short_errors_supported=no
5620a0195d5fSmrgfi
5621a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5622a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
5623a0195d5fSmrg        else
5624a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
5625a0195d5fSmrg        fi
5626a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5627a0195d5fSmrg	echo "$SET_XEXT_PKG_ERRORS" >&5
5628a0195d5fSmrg
56296f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56306600fe5bSmrg$as_echo "no" >&6; }
5631a0195d5fSmrg                echo "not found"
5632a0195d5fSmrgelif test $pkg_failed = untried; then
5633a0195d5fSmrg	echo "not found"
5634a0195d5fSmrgelse
5635a0195d5fSmrg	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
5636a0195d5fSmrg	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
56376f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56386600fe5bSmrg$as_echo "yes" >&6; }
5639a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
5640a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
56416f5dd5c2Smrg	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
56426f5dd5c2Smrgdo :
56436f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
56446f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
56456f5dd5c2Smrg"
56466f5dd5c2Smrgeval as_val=\$$as_ac_Header
56476f5dd5c2Smrg   if test "x$as_val" = x""yes; then :
5648a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
56496600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650a0195d5fSmrg_ACEOF
5651a0195d5fSmrg
5652a0195d5fSmrgfi
5653a0195d5fSmrg
5654a0195d5fSmrgdone
5655a0195d5fSmrg
5656a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
5657a0195d5fSmrgfi
5658a0195d5fSmrg
5659a0195d5fSmrg
5660a0195d5fSmrgpkg_failed=no
56616f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
56626600fe5bSmrg$as_echo_n "checking for SET_XKB... " >&6; }
5663a0195d5fSmrg
5664a0195d5fSmrgif test -n "$SET_XKB_CFLAGS"; then
5665a0195d5fSmrg    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
5666a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5667a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
56686f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5669a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5670a0195d5fSmrg  ac_status=$?
56716f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56726f5dd5c2Smrg  test $ac_status = 0; }; then
5673a0195d5fSmrg  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5674a0195d5fSmrgelse
5675a0195d5fSmrg  pkg_failed=yes
5676a0195d5fSmrgfi
5677a0195d5fSmrg else
5678a0195d5fSmrg    pkg_failed=untried
5679a0195d5fSmrgfi
5680a0195d5fSmrgif test -n "$SET_XKB_LIBS"; then
5681a0195d5fSmrg    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
5682a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5683a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
56846f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5685a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5686a0195d5fSmrg  ac_status=$?
56876f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56886f5dd5c2Smrg  test $ac_status = 0; }; then
5689a0195d5fSmrg  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5690a0195d5fSmrgelse
5691a0195d5fSmrg  pkg_failed=yes
5692a0195d5fSmrgfi
5693a0195d5fSmrg else
5694a0195d5fSmrg    pkg_failed=untried
5695a0195d5fSmrgfi
5696a0195d5fSmrg
5697a0195d5fSmrg
5698a0195d5fSmrg
5699a0195d5fSmrgif test $pkg_failed = yes; then
5700a0195d5fSmrg
5701a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5702a0195d5fSmrg        _pkg_short_errors_supported=yes
5703a0195d5fSmrgelse
5704a0195d5fSmrg        _pkg_short_errors_supported=no
5705a0195d5fSmrgfi
5706a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5707a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5708a0195d5fSmrg        else
5709a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5710a0195d5fSmrg        fi
5711a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5712a0195d5fSmrg	echo "$SET_XKB_PKG_ERRORS" >&5
5713a0195d5fSmrg
57146f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57156600fe5bSmrg$as_echo "no" >&6; }
5716a0195d5fSmrg                echo "not found"
5717a0195d5fSmrgelif test $pkg_failed = untried; then
5718a0195d5fSmrg	echo "not found"
5719a0195d5fSmrgelse
5720a0195d5fSmrg	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
5721a0195d5fSmrg	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
57226f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57236600fe5bSmrg$as_echo "yes" >&6; }
5724a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
5725a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
57266f5dd5c2Smrg	for ac_header in X11/XKBlib.h
57276f5dd5c2Smrgdo :
57286f5dd5c2Smrg  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
57296f5dd5c2Smrg"
57306f5dd5c2Smrgif test "x$ac_cv_header_X11_XKBlib_h" = x""yes; then :
5731a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
57326f5dd5c2Smrg#define HAVE_X11_XKBLIB_H 1
5733a0195d5fSmrg_ACEOF
5734a0195d5fSmrg
5735a0195d5fSmrgfi
5736a0195d5fSmrg
5737a0195d5fSmrgdone
5738a0195d5fSmrg
5739a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
5740a0195d5fSmrgfi
5741a0195d5fSmrg
5742a0195d5fSmrg
57436f5dd5c2Smrg# Check whether --with-xf86misc was given.
57446f5dd5c2Smrgif test "${with_xf86misc+set}" = set; then :
57456f5dd5c2Smrg  withval=$with_xf86misc; USE_XF86MISC="$withval"
57466f5dd5c2Smrgelse
57476f5dd5c2Smrg  USE_XF86MISC="yes"
57486f5dd5c2Smrgfi
57496f5dd5c2Smrg
57506f5dd5c2Smrgif test "x$USE_XF86MISC" != "xno" ; then
57516f5dd5c2Smrg
5752a0195d5fSmrgpkg_failed=no
57536f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
57546600fe5bSmrg$as_echo_n "checking for SET_XF86MISC... " >&6; }
5755a0195d5fSmrg
5756a0195d5fSmrgif test -n "$SET_XF86MISC_CFLAGS"; then
5757a0195d5fSmrg    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
5758a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5759a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
57606f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5761a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5762a0195d5fSmrg  ac_status=$?
57636f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57646f5dd5c2Smrg  test $ac_status = 0; }; then
5765a0195d5fSmrg  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
5766a0195d5fSmrgelse
5767a0195d5fSmrg  pkg_failed=yes
5768a0195d5fSmrgfi
5769a0195d5fSmrg else
5770a0195d5fSmrg    pkg_failed=untried
5771a0195d5fSmrgfi
5772a0195d5fSmrgif test -n "$SET_XF86MISC_LIBS"; then
5773a0195d5fSmrg    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
5774a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5775a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
57766f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5777a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5778a0195d5fSmrg  ac_status=$?
57796f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57806f5dd5c2Smrg  test $ac_status = 0; }; then
5781a0195d5fSmrg  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
5782a0195d5fSmrgelse
5783a0195d5fSmrg  pkg_failed=yes
5784a0195d5fSmrgfi
5785a0195d5fSmrg else
5786a0195d5fSmrg    pkg_failed=untried
5787a0195d5fSmrgfi
5788a0195d5fSmrg
5789a0195d5fSmrg
5790a0195d5fSmrg
5791a0195d5fSmrgif test $pkg_failed = yes; then
5792a0195d5fSmrg
5793a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5794a0195d5fSmrg        _pkg_short_errors_supported=yes
5795a0195d5fSmrgelse
5796a0195d5fSmrg        _pkg_short_errors_supported=no
5797a0195d5fSmrgfi
5798a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5799a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
5800a0195d5fSmrg        else
5801a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
5802a0195d5fSmrg        fi
5803a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5804a0195d5fSmrg	echo "$SET_XF86MISC_PKG_ERRORS" >&5
5805a0195d5fSmrg
58066f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58076600fe5bSmrg$as_echo "no" >&6; }
5808a0195d5fSmrg                echo "not found"
5809a0195d5fSmrgelif test $pkg_failed = untried; then
5810a0195d5fSmrg	echo "not found"
5811a0195d5fSmrgelse
5812a0195d5fSmrg	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
5813a0195d5fSmrg	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
58146f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58156600fe5bSmrg$as_echo "yes" >&6; }
5816a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
58176f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
58186f5dd5c2Smrg		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
58196f5dd5c2Smrgdo :
58206f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58216f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5822a0195d5fSmrg#include <X11/Xproto.h>
58236f5dd5c2Smrg"
58246f5dd5c2Smrgeval as_val=\$$as_ac_Header
58256f5dd5c2Smrg   if test "x$as_val" = x""yes; then :
5826a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
58276600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5828a0195d5fSmrg_ACEOF
5829a0195d5fSmrg
5830a0195d5fSmrgfi
5831a0195d5fSmrg
5832a0195d5fSmrgdone
5833a0195d5fSmrg
58346f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
58356f5dd5c2Smrgfi
58366f5dd5c2Smrgelse
58376f5dd5c2Smrg        echo "without xf86misc"
58386f5dd5c2Smrgfi
58396f5dd5c2Smrg
58406f5dd5c2Smrg
58416f5dd5c2Smrg# Check whether --with-fontcache was given.
58426f5dd5c2Smrgif test "${with_fontcache+set}" = set; then :
58436f5dd5c2Smrg  withval=$with_fontcache; USE_XFONTCACHE="$withval"
58446f5dd5c2Smrgelse
58456f5dd5c2Smrg  USE_XFONTCACHE="yes"
5846a0195d5fSmrgfi
5847a0195d5fSmrg
58486f5dd5c2Smrgif test "x$USE_XFONTCACHE" != "xno" ; then
5849a0195d5fSmrg
5850a0195d5fSmrgpkg_failed=no
58516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
58526600fe5bSmrg$as_echo_n "checking for SET_FONTCACHE... " >&6; }
5853a0195d5fSmrg
5854a0195d5fSmrgif test -n "$SET_FONTCACHE_CFLAGS"; then
5855a0195d5fSmrg    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
5856a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5857a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
58586f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
5859a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
5860a0195d5fSmrg  ac_status=$?
58616f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58626f5dd5c2Smrg  test $ac_status = 0; }; then
5863a0195d5fSmrg  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
5864a0195d5fSmrgelse
5865a0195d5fSmrg  pkg_failed=yes
5866a0195d5fSmrgfi
5867a0195d5fSmrg else
5868a0195d5fSmrg    pkg_failed=untried
5869a0195d5fSmrgfi
5870a0195d5fSmrgif test -n "$SET_FONTCACHE_LIBS"; then
5871a0195d5fSmrg    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
5872a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5873a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
58746f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
5875a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
5876a0195d5fSmrg  ac_status=$?
58776f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58786f5dd5c2Smrg  test $ac_status = 0; }; then
58796f5dd5c2Smrg  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
58806600fe5bSmrgelse
58816600fe5bSmrg  pkg_failed=yes
58826600fe5bSmrgfi
58836600fe5bSmrg else
58846600fe5bSmrg    pkg_failed=untried
58856600fe5bSmrgfi
5886a0195d5fSmrg
5887a0195d5fSmrg
5888a0195d5fSmrg
58896600fe5bSmrgif test $pkg_failed = yes; then
5890a0195d5fSmrg
58916600fe5bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58926600fe5bSmrg        _pkg_short_errors_supported=yes
58936600fe5bSmrgelse
58946600fe5bSmrg        _pkg_short_errors_supported=no
58956600fe5bSmrgfi
58966600fe5bSmrg        if test $_pkg_short_errors_supported = yes; then
58976f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfontcache" 2>&1`
58986600fe5bSmrg        else
58996f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfontcache" 2>&1`
59006600fe5bSmrg        fi
59016600fe5bSmrg	# Put the nasty error message in config.log where it belongs
59026f5dd5c2Smrg	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
5903a0195d5fSmrg
59046f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59056600fe5bSmrg$as_echo "no" >&6; }
59066600fe5bSmrg                echo "not found"
59076600fe5bSmrgelif test $pkg_failed = untried; then
59086600fe5bSmrg	echo "not found"
59096600fe5bSmrgelse
59106f5dd5c2Smrg	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
59116f5dd5c2Smrg	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
59126f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59136600fe5bSmrg$as_echo "yes" >&6; }
59146600fe5bSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
59156f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
59166f5dd5c2Smrg		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
59176f5dd5c2Smrgdo :
59186f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59196f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
59206f5dd5c2Smrg"
59216f5dd5c2Smrgeval as_val=\$$as_ac_Header
59226f5dd5c2Smrg   if test "x$as_val" = x""yes; then :
59236600fe5bSmrg  cat >>confdefs.h <<_ACEOF
59246600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5925a0195d5fSmrg_ACEOF
5926a0195d5fSmrg
59276600fe5bSmrgfi
5928a0195d5fSmrg
59296600fe5bSmrgdone
5930a0195d5fSmrg
59316f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
59326f5dd5c2Smrgfi
59336f5dd5c2Smrgelse
59346f5dd5c2Smrg	echo "without fontcache"
59356600fe5bSmrgfi
59366600fe5bSmrg
59376f5dd5c2SmrgXSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
59386f5dd5c2SmrgXSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
5939a0195d5fSmrg
5940a0195d5fSmrg
5941a0195d5fSmrg
5942a0195d5fSmrg
5943a0195d5fSmrgac_config_files="$ac_config_files Makefile"
5944a0195d5fSmrg
5945a0195d5fSmrgcat >confcache <<\_ACEOF
5946a0195d5fSmrg# This file is a shell script that caches the results of configure
5947a0195d5fSmrg# tests run on this system so they can be shared between configure
5948a0195d5fSmrg# scripts and configure runs, see configure's option --config-cache.
5949a0195d5fSmrg# It is not useful on other systems.  If it contains results you don't
5950a0195d5fSmrg# want to keep, you may remove or edit it.
5951a0195d5fSmrg#
5952a0195d5fSmrg# config.status only pays attention to the cache file if you give it
5953a0195d5fSmrg# the --recheck option to rerun configure.
5954a0195d5fSmrg#
5955a0195d5fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5956a0195d5fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5957a0195d5fSmrg# following values.
5958a0195d5fSmrg
5959a0195d5fSmrg_ACEOF
5960a0195d5fSmrg
5961a0195d5fSmrg# The following way of writing the cache mishandles newlines in values,
5962a0195d5fSmrg# but we know of no workaround that is simple, portable, and efficient.
5963a0195d5fSmrg# So, we kill variables containing newlines.
5964a0195d5fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5965a0195d5fSmrg# and sets the high bit in the cache file unless we assign to the vars.
5966a0195d5fSmrg(
5967a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5968a0195d5fSmrg    eval ac_val=\$$ac_var
5969a0195d5fSmrg    case $ac_val in #(
5970a0195d5fSmrg    *${as_nl}*)
5971a0195d5fSmrg      case $ac_var in #(
59726f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
59736600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5974a0195d5fSmrg      esac
5975a0195d5fSmrg      case $ac_var in #(
5976a0195d5fSmrg      _ | IFS | as_nl) ;; #(
59776600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
59786f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
5979a0195d5fSmrg      esac ;;
5980a0195d5fSmrg    esac
5981a0195d5fSmrg  done
5982a0195d5fSmrg
5983a0195d5fSmrg  (set) 2>&1 |
5984a0195d5fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5985a0195d5fSmrg    *${as_nl}ac_space=\ *)
59866f5dd5c2Smrg      # `set' does not quote correctly, so add quotes: double-quote
59876f5dd5c2Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5988a0195d5fSmrg      sed -n \
5989a0195d5fSmrg	"s/'/'\\\\''/g;
5990a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5991a0195d5fSmrg      ;; #(
5992a0195d5fSmrg    *)
5993a0195d5fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5994a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5995a0195d5fSmrg      ;;
5996a0195d5fSmrg    esac |
5997a0195d5fSmrg    sort
5998a0195d5fSmrg) |
5999a0195d5fSmrg  sed '
6000a0195d5fSmrg     /^ac_cv_env_/b end
6001a0195d5fSmrg     t clear
6002a0195d5fSmrg     :clear
6003a0195d5fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6004a0195d5fSmrg     t end
6005a0195d5fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6006a0195d5fSmrg     :end' >>confcache
6007a0195d5fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6008a0195d5fSmrg  if test -w "$cache_file"; then
6009a0195d5fSmrg    test "x$cache_file" != "x/dev/null" &&
60106f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
60116600fe5bSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
6012a0195d5fSmrg    cat confcache >$cache_file
6013a0195d5fSmrg  else
60146f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
60156600fe5bSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6016a0195d5fSmrg  fi
6017a0195d5fSmrgfi
6018a0195d5fSmrgrm -f confcache
6019a0195d5fSmrg
6020a0195d5fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
6021a0195d5fSmrg# Let make expand exec_prefix.
6022a0195d5fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6023a0195d5fSmrg
6024a0195d5fSmrgDEFS=-DHAVE_CONFIG_H
6025a0195d5fSmrg
6026a0195d5fSmrgac_libobjs=
6027a0195d5fSmrgac_ltlibobjs=
6028a0195d5fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6029a0195d5fSmrg  # 1. Remove the extension, and $U if already installed.
6030a0195d5fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
60316600fe5bSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6032a0195d5fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6033a0195d5fSmrg  #    will be set to the directory where LIBOBJS objects are built.
60346f5dd5c2Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
60356f5dd5c2Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6036a0195d5fSmrgdone
6037a0195d5fSmrgLIBOBJS=$ac_libobjs
6038a0195d5fSmrg
6039a0195d5fSmrgLTLIBOBJS=$ac_ltlibobjs
6040a0195d5fSmrg
6041a0195d5fSmrg
60426600fe5bSmrg if test -n "$EXEEXT"; then
60436600fe5bSmrg  am__EXEEXT_TRUE=
60446600fe5bSmrg  am__EXEEXT_FALSE='#'
60456600fe5bSmrgelse
60466600fe5bSmrg  am__EXEEXT_TRUE='#'
60476600fe5bSmrg  am__EXEEXT_FALSE=
60486600fe5bSmrgfi
60496600fe5bSmrg
6050a0195d5fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
60516f5dd5c2Smrg  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
60526f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
6053a0195d5fSmrgfi
6054a0195d5fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
60556f5dd5c2Smrg  as_fn_error "conditional \"AMDEP\" was never defined.
60566f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
60576f5dd5c2Smrgfi
60586f5dd5c2Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60596f5dd5c2Smrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
60606f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
6061a0195d5fSmrgfi
6062a0195d5fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60636f5dd5c2Smrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
60646f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
6065a0195d5fSmrgfi
6066a0195d5fSmrg
6067a0195d5fSmrg: ${CONFIG_STATUS=./config.status}
60686600fe5bSmrgac_write_fail=0
6069a0195d5fSmrgac_clean_files_save=$ac_clean_files
6070a0195d5fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
60716f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
60726600fe5bSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
60736f5dd5c2Smrgas_write_fail=0
60746f5dd5c2Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6075a0195d5fSmrg#! $SHELL
6076a0195d5fSmrg# Generated by $as_me.
6077a0195d5fSmrg# Run this file to recreate the current configuration.
6078a0195d5fSmrg# Compiler output produced by configure, useful for debugging
6079a0195d5fSmrg# configure, is in config.log if it exists.
6080a0195d5fSmrg
6081a0195d5fSmrgdebug=false
6082a0195d5fSmrgac_cs_recheck=false
6083a0195d5fSmrgac_cs_silent=false
6084a0195d5fSmrg
60856f5dd5c2SmrgSHELL=\${CONFIG_SHELL-$SHELL}
60866f5dd5c2Smrgexport SHELL
60876f5dd5c2Smrg_ASEOF
60886f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
60896f5dd5c2Smrg## -------------------- ##
60906f5dd5c2Smrg## M4sh Initialization. ##
60916f5dd5c2Smrg## -------------------- ##
6092a0195d5fSmrg
6093a0195d5fSmrg# Be more Bourne compatible
6094a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
60956f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6096a0195d5fSmrg  emulate sh
6097a0195d5fSmrg  NULLCMD=:
60986600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6099a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
6100a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
6101a0195d5fSmrg  setopt NO_GLOB_SUBST
6102a0195d5fSmrgelse
61036f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
61046f5dd5c2Smrg  *posix*) :
61056f5dd5c2Smrg    set -o posix ;; #(
61066f5dd5c2Smrg  *) :
61076f5dd5c2Smrg     ;;
6108a0195d5fSmrgesac
6109a0195d5fSmrgfi
6110a0195d5fSmrg
6111a0195d5fSmrg
61126600fe5bSmrgas_nl='
61136600fe5bSmrg'
61146600fe5bSmrgexport as_nl
61156600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
61166600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61176600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
61186600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
61196f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
61206f5dd5c2Smrg# but without wasting forks for bash or zsh.
61216f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
61226f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
61236f5dd5c2Smrg  as_echo='print -r --'
61246f5dd5c2Smrg  as_echo_n='print -rn --'
61256f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
61266600fe5bSmrg  as_echo='printf %s\n'
61276600fe5bSmrg  as_echo_n='printf %s'
61286600fe5bSmrgelse
61296600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
61306600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61316600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
6132a0195d5fSmrg  else
61336600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61346600fe5bSmrg    as_echo_n_body='eval
61356600fe5bSmrg      arg=$1;
61366f5dd5c2Smrg      case $arg in #(
61376600fe5bSmrg      *"$as_nl"*)
61386600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
61396600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61406600fe5bSmrg      esac;
61416600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
61426600fe5bSmrg    '
61436600fe5bSmrg    export as_echo_n_body
61446600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
6145a0195d5fSmrg  fi
61466600fe5bSmrg  export as_echo_body
61476600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
61486600fe5bSmrgfi
61496600fe5bSmrg
61506600fe5bSmrg# The user is always right.
61516600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
61526600fe5bSmrg  PATH_SEPARATOR=:
61536600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
61546600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
61556600fe5bSmrg      PATH_SEPARATOR=';'
61566600fe5bSmrg  }
6157a0195d5fSmrgfi
6158a0195d5fSmrg
6159a0195d5fSmrg
6160a0195d5fSmrg# IFS
6161a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
6162a0195d5fSmrg# there to prevent editors from complaining about space-tab.
6163a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6164a0195d5fSmrg# splitting by setting IFS to empty value.)
6165a0195d5fSmrgIFS=" ""	$as_nl"
6166a0195d5fSmrg
6167a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
61686f5dd5c2Smrgcase $0 in #((
6169a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
6170a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171a0195d5fSmrgfor as_dir in $PATH
6172a0195d5fSmrgdo
6173a0195d5fSmrg  IFS=$as_save_IFS
6174a0195d5fSmrg  test -z "$as_dir" && as_dir=.
61756f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
61766f5dd5c2Smrg  done
6177a0195d5fSmrgIFS=$as_save_IFS
6178a0195d5fSmrg
6179a0195d5fSmrg     ;;
6180a0195d5fSmrgesac
6181a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
6182a0195d5fSmrg# in which case we are not to be found in the path.
6183a0195d5fSmrgif test "x$as_myself" = x; then
6184a0195d5fSmrg  as_myself=$0
6185a0195d5fSmrgfi
6186a0195d5fSmrgif test ! -f "$as_myself"; then
61876600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
61886f5dd5c2Smrg  exit 1
6189a0195d5fSmrgfi
6190a0195d5fSmrg
61916f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
61926f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
61936f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
61946f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
61956f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
61966f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
61976f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6198a0195d5fSmrgdone
6199a0195d5fSmrgPS1='$ '
6200a0195d5fSmrgPS2='> '
6201a0195d5fSmrgPS4='+ '
6202a0195d5fSmrg
6203a0195d5fSmrg# NLS nuisances.
62046600fe5bSmrgLC_ALL=C
62056600fe5bSmrgexport LC_ALL
62066600fe5bSmrgLANGUAGE=C
62076600fe5bSmrgexport LANGUAGE
6208a0195d5fSmrg
62096f5dd5c2Smrg# CDPATH.
62106f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
62116f5dd5c2Smrg
62126f5dd5c2Smrg
62136f5dd5c2Smrg# as_fn_error ERROR [LINENO LOG_FD]
62146f5dd5c2Smrg# ---------------------------------
62156f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
62166f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
62176f5dd5c2Smrg# script with status $?, using 1 if that was 0.
62186f5dd5c2Smrgas_fn_error ()
62196f5dd5c2Smrg{
62206f5dd5c2Smrg  as_status=$?; test $as_status -eq 0 && as_status=1
62216f5dd5c2Smrg  if test "$3"; then
62226f5dd5c2Smrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
62236f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
62246f5dd5c2Smrg  fi
62256f5dd5c2Smrg  $as_echo "$as_me: error: $1" >&2
62266f5dd5c2Smrg  as_fn_exit $as_status
62276f5dd5c2Smrg} # as_fn_error
62286f5dd5c2Smrg
62296f5dd5c2Smrg
62306f5dd5c2Smrg# as_fn_set_status STATUS
62316f5dd5c2Smrg# -----------------------
62326f5dd5c2Smrg# Set $? to STATUS, without forking.
62336f5dd5c2Smrgas_fn_set_status ()
62346f5dd5c2Smrg{
62356f5dd5c2Smrg  return $1
62366f5dd5c2Smrg} # as_fn_set_status
62376f5dd5c2Smrg
62386f5dd5c2Smrg# as_fn_exit STATUS
62396f5dd5c2Smrg# -----------------
62406f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
62416f5dd5c2Smrgas_fn_exit ()
62426f5dd5c2Smrg{
62436f5dd5c2Smrg  set +e
62446f5dd5c2Smrg  as_fn_set_status $1
62456f5dd5c2Smrg  exit $1
62466f5dd5c2Smrg} # as_fn_exit
62476f5dd5c2Smrg
62486f5dd5c2Smrg# as_fn_unset VAR
62496f5dd5c2Smrg# ---------------
62506f5dd5c2Smrg# Portably unset VAR.
62516f5dd5c2Smrgas_fn_unset ()
62526f5dd5c2Smrg{
62536f5dd5c2Smrg  { eval $1=; unset $1;}
62546f5dd5c2Smrg}
62556f5dd5c2Smrgas_unset=as_fn_unset
62566f5dd5c2Smrg# as_fn_append VAR VALUE
62576f5dd5c2Smrg# ----------------------
62586f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
62596f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
62606f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
62616f5dd5c2Smrg# implementations.
62626f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
62636f5dd5c2Smrg  eval 'as_fn_append ()
62646f5dd5c2Smrg  {
62656f5dd5c2Smrg    eval $1+=\$2
62666f5dd5c2Smrg  }'
62676f5dd5c2Smrgelse
62686f5dd5c2Smrg  as_fn_append ()
62696f5dd5c2Smrg  {
62706f5dd5c2Smrg    eval $1=\$$1\$2
62716f5dd5c2Smrg  }
62726f5dd5c2Smrgfi # as_fn_append
62736f5dd5c2Smrg
62746f5dd5c2Smrg# as_fn_arith ARG...
62756f5dd5c2Smrg# ------------------
62766f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
62776f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
62786f5dd5c2Smrg# must be portable across $(()) and expr.
62796f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
62806f5dd5c2Smrg  eval 'as_fn_arith ()
62816f5dd5c2Smrg  {
62826f5dd5c2Smrg    as_val=$(( $* ))
62836f5dd5c2Smrg  }'
62846f5dd5c2Smrgelse
62856f5dd5c2Smrg  as_fn_arith ()
62866f5dd5c2Smrg  {
62876f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
62886f5dd5c2Smrg  }
62896f5dd5c2Smrgfi # as_fn_arith
62906f5dd5c2Smrg
62916f5dd5c2Smrg
6292a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
6293a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6294a0195d5fSmrg  as_expr=expr
6295a0195d5fSmrgelse
6296a0195d5fSmrg  as_expr=false
6297a0195d5fSmrgfi
6298a0195d5fSmrg
6299a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6300a0195d5fSmrg  as_basename=basename
6301a0195d5fSmrgelse
6302a0195d5fSmrg  as_basename=false
6303a0195d5fSmrgfi
6304a0195d5fSmrg
63056f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
63066f5dd5c2Smrg  as_dirname=dirname
63076f5dd5c2Smrgelse
63086f5dd5c2Smrg  as_dirname=false
63096f5dd5c2Smrgfi
6310a0195d5fSmrg
6311a0195d5fSmrgas_me=`$as_basename -- "$0" ||
6312a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6313a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
6314a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
63156600fe5bSmrg$as_echo X/"$0" |
6316a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
6317a0195d5fSmrg	    s//\1/
6318a0195d5fSmrg	    q
6319a0195d5fSmrg	  }
6320a0195d5fSmrg	  /^X\/\(\/\/\)$/{
6321a0195d5fSmrg	    s//\1/
6322a0195d5fSmrg	    q
6323a0195d5fSmrg	  }
6324a0195d5fSmrg	  /^X\/\(\/\).*/{
6325a0195d5fSmrg	    s//\1/
6326a0195d5fSmrg	    q
6327a0195d5fSmrg	  }
6328a0195d5fSmrg	  s/.*/./; q'`
6329a0195d5fSmrg
63306f5dd5c2Smrg# Avoid depending upon Character Ranges.
63316f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
63326f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
63336f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
63346f5dd5c2Smrgas_cr_digits='0123456789'
63356f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
6336a0195d5fSmrg
6337a0195d5fSmrgECHO_C= ECHO_N= ECHO_T=
63386f5dd5c2Smrgcase `echo -n x` in #(((((
6339a0195d5fSmrg-n*)
63406f5dd5c2Smrg  case `echo 'xy\c'` in
6341a0195d5fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
63426f5dd5c2Smrg  xy)  ECHO_C='\c';;
63436f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
63446f5dd5c2Smrg       ECHO_T='	';;
6345a0195d5fSmrg  esac;;
6346a0195d5fSmrg*)
6347a0195d5fSmrg  ECHO_N='-n';;
6348a0195d5fSmrgesac
6349a0195d5fSmrg
6350a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.file
6351a0195d5fSmrgif test -d conf$$.dir; then
6352a0195d5fSmrg  rm -f conf$$.dir/conf$$.file
6353a0195d5fSmrgelse
6354a0195d5fSmrg  rm -f conf$$.dir
63556600fe5bSmrg  mkdir conf$$.dir 2>/dev/null
63566600fe5bSmrgfi
63576600fe5bSmrgif (echo >conf$$.file) 2>/dev/null; then
63586600fe5bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
63596600fe5bSmrg    as_ln_s='ln -s'
63606600fe5bSmrg    # ... but there are two gotchas:
63616600fe5bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
63626600fe5bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
63636600fe5bSmrg    # In both cases, we have to default to `cp -p'.
63646600fe5bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
63656600fe5bSmrg      as_ln_s='cp -p'
63666600fe5bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
63676600fe5bSmrg    as_ln_s=ln
63686600fe5bSmrg  else
6369a0195d5fSmrg    as_ln_s='cp -p'
63706600fe5bSmrg  fi
6371a0195d5fSmrgelse
6372a0195d5fSmrg  as_ln_s='cp -p'
6373a0195d5fSmrgfi
6374a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6375a0195d5fSmrgrmdir conf$$.dir 2>/dev/null
6376a0195d5fSmrg
63776f5dd5c2Smrg
63786f5dd5c2Smrg# as_fn_mkdir_p
63796f5dd5c2Smrg# -------------
63806f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
63816f5dd5c2Smrgas_fn_mkdir_p ()
63826f5dd5c2Smrg{
63836f5dd5c2Smrg
63846f5dd5c2Smrg  case $as_dir in #(
63856f5dd5c2Smrg  -*) as_dir=./$as_dir;;
63866f5dd5c2Smrg  esac
63876f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
63886f5dd5c2Smrg    as_dirs=
63896f5dd5c2Smrg    while :; do
63906f5dd5c2Smrg      case $as_dir in #(
63916f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
63926f5dd5c2Smrg      *) as_qdir=$as_dir;;
63936f5dd5c2Smrg      esac
63946f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
63956f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
63966f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63976f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
63986f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
63996f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
64006f5dd5c2Smrg$as_echo X"$as_dir" |
64016f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
64026f5dd5c2Smrg	    s//\1/
64036f5dd5c2Smrg	    q
64046f5dd5c2Smrg	  }
64056f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
64066f5dd5c2Smrg	    s//\1/
64076f5dd5c2Smrg	    q
64086f5dd5c2Smrg	  }
64096f5dd5c2Smrg	  /^X\(\/\/\)$/{
64106f5dd5c2Smrg	    s//\1/
64116f5dd5c2Smrg	    q
64126f5dd5c2Smrg	  }
64136f5dd5c2Smrg	  /^X\(\/\).*/{
64146f5dd5c2Smrg	    s//\1/
64156f5dd5c2Smrg	    q
64166f5dd5c2Smrg	  }
64176f5dd5c2Smrg	  s/.*/./; q'`
64186f5dd5c2Smrg      test -d "$as_dir" && break
64196f5dd5c2Smrg    done
64206f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
64216f5dd5c2Smrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
64226f5dd5c2Smrg
64236f5dd5c2Smrg
64246f5dd5c2Smrg} # as_fn_mkdir_p
6425a0195d5fSmrgif mkdir -p . 2>/dev/null; then
64266f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
6427a0195d5fSmrgelse
6428a0195d5fSmrg  test -d ./-p && rmdir ./-p
6429a0195d5fSmrg  as_mkdir_p=false
6430a0195d5fSmrgfi
6431a0195d5fSmrg
6432a0195d5fSmrgif test -x / >/dev/null 2>&1; then
6433a0195d5fSmrg  as_test_x='test -x'
6434a0195d5fSmrgelse
6435a0195d5fSmrg  if ls -dL / >/dev/null 2>&1; then
6436a0195d5fSmrg    as_ls_L_option=L
6437a0195d5fSmrg  else
6438a0195d5fSmrg    as_ls_L_option=
6439a0195d5fSmrg  fi
6440a0195d5fSmrg  as_test_x='
6441a0195d5fSmrg    eval sh -c '\''
6442a0195d5fSmrg      if test -d "$1"; then
64436600fe5bSmrg	test -d "$1/.";
6444a0195d5fSmrg      else
64456f5dd5c2Smrg	case $1 in #(
64466600fe5bSmrg	-*)set "./$1";;
6447a0195d5fSmrg	esac;
64486f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6449a0195d5fSmrg	???[sx]*):;;*)false;;esac;fi
6450a0195d5fSmrg    '\'' sh
6451a0195d5fSmrg  '
6452a0195d5fSmrgfi
6453a0195d5fSmrgas_executable_p=$as_test_x
6454a0195d5fSmrg
6455a0195d5fSmrg# Sed expression to map a string onto a valid CPP name.
6456a0195d5fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6457a0195d5fSmrg
6458a0195d5fSmrg# Sed expression to map a string onto a valid variable name.
6459a0195d5fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6460a0195d5fSmrg
6461a0195d5fSmrg
6462a0195d5fSmrgexec 6>&1
64636f5dd5c2Smrg## ----------------------------------- ##
64646f5dd5c2Smrg## Main body of $CONFIG_STATUS script. ##
64656f5dd5c2Smrg## ----------------------------------- ##
64666f5dd5c2Smrg_ASEOF
64676f5dd5c2Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6468a0195d5fSmrg
64696f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64706f5dd5c2Smrg# Save the log message, to keep $0 and so on meaningful, and to
6471a0195d5fSmrg# report actual input values of CONFIG_FILES etc. instead of their
6472a0195d5fSmrg# values after options handling.
6473a0195d5fSmrgac_log="
64746f5dd5c2SmrgThis file was extended by xset $as_me 1.2.0, which was
64756f5dd5c2Smrggenerated by GNU Autoconf 2.65.  Invocation command line was
6476a0195d5fSmrg
6477a0195d5fSmrg  CONFIG_FILES    = $CONFIG_FILES
6478a0195d5fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
6479a0195d5fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
6480a0195d5fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
6481a0195d5fSmrg  $ $0 $@
6482a0195d5fSmrg
6483a0195d5fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
6484a0195d5fSmrg"
6485a0195d5fSmrg
6486a0195d5fSmrg_ACEOF
6487a0195d5fSmrg
64886600fe5bSmrgcase $ac_config_files in *"
64896600fe5bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
64906600fe5bSmrgesac
64916600fe5bSmrg
64926600fe5bSmrgcase $ac_config_headers in *"
64936600fe5bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
64946600fe5bSmrgesac
64956600fe5bSmrg
64966600fe5bSmrg
64976600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6498a0195d5fSmrg# Files that config.status was made for.
6499a0195d5fSmrgconfig_files="$ac_config_files"
6500a0195d5fSmrgconfig_headers="$ac_config_headers"
6501a0195d5fSmrgconfig_commands="$ac_config_commands"
6502a0195d5fSmrg
6503a0195d5fSmrg_ACEOF
6504a0195d5fSmrg
65056600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6506a0195d5fSmrgac_cs_usage="\
65076f5dd5c2Smrg\`$as_me' instantiates files and other configuration actions
65086f5dd5c2Smrgfrom templates according to the current configuration.  Unless the files
65096f5dd5c2Smrgand actions are specified as TAGs, all are instantiated by default.
6510a0195d5fSmrg
65116f5dd5c2SmrgUsage: $0 [OPTION]... [TAG]...
6512a0195d5fSmrg
6513a0195d5fSmrg  -h, --help       print this help, then exit
6514a0195d5fSmrg  -V, --version    print version number and configuration settings, then exit
65156f5dd5c2Smrg      --config     print configuration, then exit
65166600fe5bSmrg  -q, --quiet, --silent
65176600fe5bSmrg                   do not print progress messages
6518a0195d5fSmrg  -d, --debug      don't remove temporary files
6519a0195d5fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
65206600fe5bSmrg      --file=FILE[:TEMPLATE]
65216600fe5bSmrg                   instantiate the configuration file FILE
65226600fe5bSmrg      --header=FILE[:TEMPLATE]
65236600fe5bSmrg                   instantiate the configuration header FILE
6524a0195d5fSmrg
6525a0195d5fSmrgConfiguration files:
6526a0195d5fSmrg$config_files
6527a0195d5fSmrg
6528a0195d5fSmrgConfiguration headers:
6529a0195d5fSmrg$config_headers
6530a0195d5fSmrg
6531a0195d5fSmrgConfiguration commands:
6532a0195d5fSmrg$config_commands
6533a0195d5fSmrg
65346f5dd5c2SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
6535a0195d5fSmrg
6536a0195d5fSmrg_ACEOF
65376600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65386f5dd5c2Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6539a0195d5fSmrgac_cs_version="\\
65406f5dd5c2Smrgxset config.status 1.2.0
65416f5dd5c2Smrgconfigured by $0, generated by GNU Autoconf 2.65,
65426f5dd5c2Smrg  with options \\"\$ac_cs_config\\"
6543a0195d5fSmrg
65446f5dd5c2SmrgCopyright (C) 2009 Free Software Foundation, Inc.
6545a0195d5fSmrgThis config.status script is free software; the Free Software Foundation
6546a0195d5fSmrggives unlimited permission to copy, distribute and modify it."
6547a0195d5fSmrg
6548a0195d5fSmrgac_pwd='$ac_pwd'
6549a0195d5fSmrgsrcdir='$srcdir'
6550a0195d5fSmrgINSTALL='$INSTALL'
6551a0195d5fSmrgMKDIR_P='$MKDIR_P'
65526600fe5bSmrgAWK='$AWK'
65536600fe5bSmrgtest -n "\$AWK" || AWK=awk
6554a0195d5fSmrg_ACEOF
6555a0195d5fSmrg
65566600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65576600fe5bSmrg# The default lists apply if the user does not specify any file.
6558a0195d5fSmrgac_need_defaults=:
6559a0195d5fSmrgwhile test $# != 0
6560a0195d5fSmrgdo
6561a0195d5fSmrg  case $1 in
6562a0195d5fSmrg  --*=*)
6563a0195d5fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6564a0195d5fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6565a0195d5fSmrg    ac_shift=:
6566a0195d5fSmrg    ;;
6567a0195d5fSmrg  *)
6568a0195d5fSmrg    ac_option=$1
6569a0195d5fSmrg    ac_optarg=$2
6570a0195d5fSmrg    ac_shift=shift
6571a0195d5fSmrg    ;;
6572a0195d5fSmrg  esac
6573a0195d5fSmrg
6574a0195d5fSmrg  case $ac_option in
6575a0195d5fSmrg  # Handling of the options.
6576a0195d5fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6577a0195d5fSmrg    ac_cs_recheck=: ;;
6578a0195d5fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
65796600fe5bSmrg    $as_echo "$ac_cs_version"; exit ;;
65806f5dd5c2Smrg  --config | --confi | --conf | --con | --co | --c )
65816f5dd5c2Smrg    $as_echo "$ac_cs_config"; exit ;;
6582a0195d5fSmrg  --debug | --debu | --deb | --de | --d | -d )
6583a0195d5fSmrg    debug=: ;;
6584a0195d5fSmrg  --file | --fil | --fi | --f )
6585a0195d5fSmrg    $ac_shift
65866600fe5bSmrg    case $ac_optarg in
65876600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
65886600fe5bSmrg    esac
65896f5dd5c2Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
6590a0195d5fSmrg    ac_need_defaults=false;;
6591a0195d5fSmrg  --header | --heade | --head | --hea )
6592a0195d5fSmrg    $ac_shift
65936600fe5bSmrg    case $ac_optarg in
65946600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
65956600fe5bSmrg    esac
65966f5dd5c2Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6597a0195d5fSmrg    ac_need_defaults=false;;
6598a0195d5fSmrg  --he | --h)
6599a0195d5fSmrg    # Conflict between --help and --header
66006f5dd5c2Smrg    as_fn_error "ambiguous option: \`$1'
66016f5dd5c2SmrgTry \`$0 --help' for more information.";;
6602a0195d5fSmrg  --help | --hel | -h )
66036600fe5bSmrg    $as_echo "$ac_cs_usage"; exit ;;
6604a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6605a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6606a0195d5fSmrg    ac_cs_silent=: ;;
6607a0195d5fSmrg
6608a0195d5fSmrg  # This is an error.
66096f5dd5c2Smrg  -*) as_fn_error "unrecognized option: \`$1'
66106f5dd5c2SmrgTry \`$0 --help' for more information." ;;
6611a0195d5fSmrg
66126f5dd5c2Smrg  *) as_fn_append ac_config_targets " $1"
6613a0195d5fSmrg     ac_need_defaults=false ;;
6614a0195d5fSmrg
6615a0195d5fSmrg  esac
6616a0195d5fSmrg  shift
6617a0195d5fSmrgdone
6618a0195d5fSmrg
6619a0195d5fSmrgac_configure_extra_args=
6620a0195d5fSmrg
6621a0195d5fSmrgif $ac_cs_silent; then
6622a0195d5fSmrg  exec 6>/dev/null
6623a0195d5fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
6624a0195d5fSmrgfi
6625a0195d5fSmrg
6626a0195d5fSmrg_ACEOF
66276600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6628a0195d5fSmrgif \$ac_cs_recheck; then
66296600fe5bSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66306600fe5bSmrg  shift
66316600fe5bSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
66326600fe5bSmrg  CONFIG_SHELL='$SHELL'
6633a0195d5fSmrg  export CONFIG_SHELL
66346600fe5bSmrg  exec "\$@"
6635a0195d5fSmrgfi
6636a0195d5fSmrg
6637a0195d5fSmrg_ACEOF
66386600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6639a0195d5fSmrgexec 5>>config.log
6640a0195d5fSmrg{
6641a0195d5fSmrg  echo
6642a0195d5fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6643a0195d5fSmrg## Running $as_me. ##
6644a0195d5fSmrg_ASBOX
66456600fe5bSmrg  $as_echo "$ac_log"
6646a0195d5fSmrg} >&5
6647a0195d5fSmrg
6648a0195d5fSmrg_ACEOF
66496600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6650a0195d5fSmrg#
6651a0195d5fSmrg# INIT-COMMANDS
6652a0195d5fSmrg#
6653a0195d5fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6654a0195d5fSmrg
6655a0195d5fSmrg_ACEOF
6656a0195d5fSmrg
66576600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6658a0195d5fSmrg
6659a0195d5fSmrg# Handling of arguments.
6660a0195d5fSmrgfor ac_config_target in $ac_config_targets
6661a0195d5fSmrgdo
6662a0195d5fSmrg  case $ac_config_target in
6663a0195d5fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66646f5dd5c2Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6665a0195d5fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6666a0195d5fSmrg
66676f5dd5c2Smrg  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6668a0195d5fSmrg  esac
6669a0195d5fSmrgdone
6670a0195d5fSmrg
6671a0195d5fSmrg
6672a0195d5fSmrg# If the user did not use the arguments to specify the items to instantiate,
6673a0195d5fSmrg# then the envvar interface is used.  Set only those that are not.
6674a0195d5fSmrg# We use the long form for the default assignment because of an extremely
6675a0195d5fSmrg# bizarre bug on SunOS 4.1.3.
6676a0195d5fSmrgif $ac_need_defaults; then
6677a0195d5fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6678a0195d5fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6679a0195d5fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6680a0195d5fSmrgfi
6681a0195d5fSmrg
6682a0195d5fSmrg# Have a temporary directory for convenience.  Make it in the build tree
6683a0195d5fSmrg# simply because there is no reason against having it here, and in addition,
6684a0195d5fSmrg# creating and moving files from /tmp can sometimes cause problems.
6685a0195d5fSmrg# Hook for its removal unless debugging.
6686a0195d5fSmrg# Note that there is a small window in which the directory will not be cleaned:
6687a0195d5fSmrg# after its creation but before its name has been assigned to `$tmp'.
6688a0195d5fSmrg$debug ||
6689a0195d5fSmrg{
6690a0195d5fSmrg  tmp=
6691a0195d5fSmrg  trap 'exit_status=$?
6692a0195d5fSmrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6693a0195d5fSmrg' 0
66946f5dd5c2Smrg  trap 'as_fn_exit 1' 1 2 13 15
6695a0195d5fSmrg}
6696a0195d5fSmrg# Create a (secure) tmp directory for tmp files.
6697a0195d5fSmrg
6698a0195d5fSmrg{
6699a0195d5fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6700a0195d5fSmrg  test -n "$tmp" && test -d "$tmp"
6701a0195d5fSmrg}  ||
6702a0195d5fSmrg{
6703a0195d5fSmrg  tmp=./conf$$-$RANDOM
6704a0195d5fSmrg  (umask 077 && mkdir "$tmp")
67056f5dd5c2Smrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6706a0195d5fSmrg
67076600fe5bSmrg# Set up the scripts for CONFIG_FILES section.
67086600fe5bSmrg# No need to generate them if there are no CONFIG_FILES.
67096600fe5bSmrg# This happens for instance with `./config.status config.h'.
6710a0195d5fSmrgif test -n "$CONFIG_FILES"; then
6711a0195d5fSmrg
6712a0195d5fSmrg
67136f5dd5c2Smrgac_cr=`echo X | tr X '\015'`
67146f5dd5c2Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
67156f5dd5c2Smrg# But we know of no other shell where ac_cr would be empty at this
67166f5dd5c2Smrg# point, so we can use a bashism as a fallback.
67176f5dd5c2Smrgif test "x$ac_cr" = x; then
67186f5dd5c2Smrg  eval ac_cr=\$\'\\r\'
67196f5dd5c2Smrgfi
67206600fe5bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
67216600fe5bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
67226f5dd5c2Smrg  ac_cs_awk_cr='\r'
67236600fe5bSmrgelse
67246600fe5bSmrg  ac_cs_awk_cr=$ac_cr
6725a0195d5fSmrgfi
6726a0195d5fSmrg
67276600fe5bSmrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
6728a0195d5fSmrg_ACEOF
6729a0195d5fSmrg
6730a0195d5fSmrg
67316600fe5bSmrg{
67326600fe5bSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
67336600fe5bSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
67346600fe5bSmrg  echo "_ACEOF"
67356600fe5bSmrg} >conf$$subs.sh ||
67366f5dd5c2Smrg  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
67376600fe5bSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6738a0195d5fSmrgac_delim='%!_!# '
6739a0195d5fSmrgfor ac_last_try in false false false false false :; do
67406600fe5bSmrg  . ./conf$$subs.sh ||
67416f5dd5c2Smrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6742a0195d5fSmrg
67436600fe5bSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
67446600fe5bSmrg  if test $ac_delim_n = $ac_delim_num; then
6745a0195d5fSmrg    break
6746a0195d5fSmrg  elif $ac_last_try; then
67476f5dd5c2Smrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6748a0195d5fSmrg  else
6749a0195d5fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6750a0195d5fSmrg  fi
6751a0195d5fSmrgdone
67526600fe5bSmrgrm -f conf$$subs.sh
6753a0195d5fSmrg
67546600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
67556600fe5bSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
67566600fe5bSmrg_ACEOF
67576600fe5bSmrgsed -n '
67586600fe5bSmrgh
67596600fe5bSmrgs/^/S["/; s/!.*/"]=/
67606600fe5bSmrgp
67616600fe5bSmrgg
67626600fe5bSmrgs/^[^!]*!//
67636600fe5bSmrg:repl
67646600fe5bSmrgt repl
67656600fe5bSmrgs/'"$ac_delim"'$//
67666600fe5bSmrgt delim
67676600fe5bSmrg:nl
67686600fe5bSmrgh
67696f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
67706600fe5bSmrgt more1
67716600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
67726600fe5bSmrgp
67736600fe5bSmrgn
67746600fe5bSmrgb repl
67756600fe5bSmrg:more1
67766600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
67776600fe5bSmrgp
67786600fe5bSmrgg
67796600fe5bSmrgs/.\{148\}//
67806600fe5bSmrgt nl
67816600fe5bSmrg:delim
67826600fe5bSmrgh
67836f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
67846600fe5bSmrgt more2
67856600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
67866600fe5bSmrgp
67876600fe5bSmrgb
67886600fe5bSmrg:more2
67896600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
67906600fe5bSmrgp
67916600fe5bSmrgg
67926600fe5bSmrgs/.\{148\}//
67936600fe5bSmrgt delim
67946600fe5bSmrg' <conf$$subs.awk | sed '
67956600fe5bSmrg/^[^""]/{
67966600fe5bSmrg  N
67976600fe5bSmrg  s/\n//
67986600fe5bSmrg}
67996600fe5bSmrg' >>$CONFIG_STATUS || ac_write_fail=1
68006600fe5bSmrgrm -f conf$$subs.awk
68016600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68026600fe5bSmrg_ACAWK
68036600fe5bSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
68046600fe5bSmrg  for (key in S) S_is_set[key] = 1
68056600fe5bSmrg  FS = ""
68066600fe5bSmrg
68076600fe5bSmrg}
68086600fe5bSmrg{
68096600fe5bSmrg  line = $ 0
68106600fe5bSmrg  nfields = split(line, field, "@")
68116600fe5bSmrg  substed = 0
68126600fe5bSmrg  len = length(field[1])
68136600fe5bSmrg  for (i = 2; i < nfields; i++) {
68146600fe5bSmrg    key = field[i]
68156600fe5bSmrg    keylen = length(key)
68166600fe5bSmrg    if (S_is_set[key]) {
68176600fe5bSmrg      value = S[key]
68186600fe5bSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
68196600fe5bSmrg      len += length(value) + length(field[++i])
68206600fe5bSmrg      substed = 1
68216600fe5bSmrg    } else
68226600fe5bSmrg      len += 1 + keylen
68236600fe5bSmrg  }
68246600fe5bSmrg
68256600fe5bSmrg  print line
68266600fe5bSmrg}
6827a0195d5fSmrg
68286600fe5bSmrg_ACAWK
6829a0195d5fSmrg_ACEOF
68306600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68316600fe5bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
68326600fe5bSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
68336600fe5bSmrgelse
68346600fe5bSmrg  cat
68356600fe5bSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
68366f5dd5c2Smrg  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6837a0195d5fSmrg_ACEOF
6838a0195d5fSmrg
6839a0195d5fSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
6840a0195d5fSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6841a0195d5fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
6842a0195d5fSmrg# (actually we leave an empty line to preserve line numbers).
6843a0195d5fSmrgif test "x$srcdir" = x.; then
6844a0195d5fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6845a0195d5fSmrgs/:*\$(srcdir):*/:/
6846a0195d5fSmrgs/:*\${srcdir}:*/:/
6847a0195d5fSmrgs/:*@srcdir@:*/:/
6848a0195d5fSmrgs/^\([^=]*=[	 ]*\):*/\1/
6849a0195d5fSmrgs/:*$//
6850a0195d5fSmrgs/^[^=]*=[	 ]*$//
6851a0195d5fSmrg}'
6852a0195d5fSmrgfi
6853a0195d5fSmrg
68546600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6855a0195d5fSmrgfi # test -n "$CONFIG_FILES"
6856a0195d5fSmrg
68576600fe5bSmrg# Set up the scripts for CONFIG_HEADERS section.
68586600fe5bSmrg# No need to generate them if there are no CONFIG_HEADERS.
68596600fe5bSmrg# This happens for instance with `./config.status Makefile'.
68606600fe5bSmrgif test -n "$CONFIG_HEADERS"; then
68616600fe5bSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
68626600fe5bSmrgBEGIN {
68636600fe5bSmrg_ACEOF
68646600fe5bSmrg
68656600fe5bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
68666600fe5bSmrg# here-document in config.status, that substitutes the proper values into
68676600fe5bSmrg# config.h.in to produce config.h.
68686600fe5bSmrg
68696600fe5bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
68706600fe5bSmrg# handling of long lines.
68716600fe5bSmrgac_delim='%!_!# '
68726600fe5bSmrgfor ac_last_try in false false :; do
68736600fe5bSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
68746600fe5bSmrg  if test -z "$ac_t"; then
68756600fe5bSmrg    break
68766600fe5bSmrg  elif $ac_last_try; then
68776f5dd5c2Smrg    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
68786600fe5bSmrg  else
68796600fe5bSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
68806600fe5bSmrg  fi
68816600fe5bSmrgdone
68826600fe5bSmrg
68836600fe5bSmrg# For the awk script, D is an array of macro values keyed by name,
68846600fe5bSmrg# likewise P contains macro parameters if any.  Preserve backslash
68856600fe5bSmrg# newline sequences.
68866600fe5bSmrg
68876600fe5bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
68886600fe5bSmrgsed -n '
68896600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
68906600fe5bSmrgt rset
68916600fe5bSmrg:rset
68926600fe5bSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
68936600fe5bSmrgt def
68946600fe5bSmrgd
68956600fe5bSmrg:def
68966600fe5bSmrgs/\\$//
68976600fe5bSmrgt bsnl
68986600fe5bSmrgs/["\\]/\\&/g
68996600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
69006600fe5bSmrgD["\1"]=" \3"/p
69016600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
69026600fe5bSmrgd
69036600fe5bSmrg:bsnl
69046600fe5bSmrgs/["\\]/\\&/g
69056600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
69066600fe5bSmrgD["\1"]=" \3\\\\\\n"\\/p
69076600fe5bSmrgt cont
69086600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
69096600fe5bSmrgt cont
69106600fe5bSmrgd
69116600fe5bSmrg:cont
69126600fe5bSmrgn
69136600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
69146600fe5bSmrgt clear
69156600fe5bSmrg:clear
69166600fe5bSmrgs/\\$//
69176600fe5bSmrgt bsnlc
69186600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
69196600fe5bSmrgd
69206600fe5bSmrg:bsnlc
69216600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
69226600fe5bSmrgb cont
69236600fe5bSmrg' <confdefs.h | sed '
69246600fe5bSmrgs/'"$ac_delim"'/"\\\
69256600fe5bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
69266600fe5bSmrg
69276600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69286600fe5bSmrg  for (key in D) D_is_set[key] = 1
69296600fe5bSmrg  FS = ""
69306600fe5bSmrg}
69316600fe5bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
69326600fe5bSmrg  line = \$ 0
69336600fe5bSmrg  split(line, arg, " ")
69346600fe5bSmrg  if (arg[1] == "#") {
69356600fe5bSmrg    defundef = arg[2]
69366600fe5bSmrg    mac1 = arg[3]
69376600fe5bSmrg  } else {
69386600fe5bSmrg    defundef = substr(arg[1], 2)
69396600fe5bSmrg    mac1 = arg[2]
69406600fe5bSmrg  }
69416600fe5bSmrg  split(mac1, mac2, "(") #)
69426600fe5bSmrg  macro = mac2[1]
69436600fe5bSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
69446600fe5bSmrg  if (D_is_set[macro]) {
69456600fe5bSmrg    # Preserve the white space surrounding the "#".
69466600fe5bSmrg    print prefix "define", macro P[macro] D[macro]
69476600fe5bSmrg    next
69486600fe5bSmrg  } else {
69496600fe5bSmrg    # Replace #undef with comments.  This is necessary, for example,
69506600fe5bSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
69516600fe5bSmrg    # on some systems where configure will not decide to define it.
69526600fe5bSmrg    if (defundef == "undef") {
69536600fe5bSmrg      print "/*", prefix defundef, macro, "*/"
69546600fe5bSmrg      next
69556600fe5bSmrg    }
69566600fe5bSmrg  }
69576600fe5bSmrg}
69586600fe5bSmrg{ print }
69596600fe5bSmrg_ACAWK
69606600fe5bSmrg_ACEOF
69616600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69626f5dd5c2Smrg  as_fn_error "could not setup config headers machinery" "$LINENO" 5
69636600fe5bSmrgfi # test -n "$CONFIG_HEADERS"
69646600fe5bSmrg
6965a0195d5fSmrg
69666600fe5bSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
69676600fe5bSmrgshift
69686600fe5bSmrgfor ac_tag
6969a0195d5fSmrgdo
6970a0195d5fSmrg  case $ac_tag in
6971a0195d5fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6972a0195d5fSmrg  esac
6973a0195d5fSmrg  case $ac_mode$ac_tag in
6974a0195d5fSmrg  :[FHL]*:*);;
69756f5dd5c2Smrg  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6976a0195d5fSmrg  :[FH]-) ac_tag=-:-;;
6977a0195d5fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6978a0195d5fSmrg  esac
6979a0195d5fSmrg  ac_save_IFS=$IFS
6980a0195d5fSmrg  IFS=:
6981a0195d5fSmrg  set x $ac_tag
6982a0195d5fSmrg  IFS=$ac_save_IFS
6983a0195d5fSmrg  shift
6984a0195d5fSmrg  ac_file=$1
6985a0195d5fSmrg  shift
6986a0195d5fSmrg
6987a0195d5fSmrg  case $ac_mode in
6988a0195d5fSmrg  :L) ac_source=$1;;
6989a0195d5fSmrg  :[FH])
6990a0195d5fSmrg    ac_file_inputs=
6991a0195d5fSmrg    for ac_f
6992a0195d5fSmrg    do
6993a0195d5fSmrg      case $ac_f in
6994a0195d5fSmrg      -) ac_f="$tmp/stdin";;
6995a0195d5fSmrg      *) # Look for the file first in the build tree, then in the source tree
6996a0195d5fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6997a0195d5fSmrg	 # because $ac_f cannot contain `:'.
6998a0195d5fSmrg	 test -f "$ac_f" ||
6999a0195d5fSmrg	   case $ac_f in
7000a0195d5fSmrg	   [\\/$]*) false;;
7001a0195d5fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7002a0195d5fSmrg	   esac ||
70036f5dd5c2Smrg	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7004a0195d5fSmrg      esac
70056600fe5bSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
70066f5dd5c2Smrg      as_fn_append ac_file_inputs " '$ac_f'"
7007a0195d5fSmrg    done
7008a0195d5fSmrg
7009a0195d5fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
7010a0195d5fSmrg    # use $as_me), people would be surprised to read:
7011a0195d5fSmrg    #    /* config.h.  Generated by config.status.  */
70126600fe5bSmrg    configure_input='Generated from '`
70136600fe5bSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
70146600fe5bSmrg	`' by configure.'
7015a0195d5fSmrg    if test x"$ac_file" != x-; then
7016a0195d5fSmrg      configure_input="$ac_file.  $configure_input"
70176f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
70186600fe5bSmrg$as_echo "$as_me: creating $ac_file" >&6;}
7019a0195d5fSmrg    fi
70206600fe5bSmrg    # Neutralize special characters interpreted by sed in replacement strings.
70216600fe5bSmrg    case $configure_input in #(
70226600fe5bSmrg    *\&* | *\|* | *\\* )
70236600fe5bSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
70246600fe5bSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
70256600fe5bSmrg    *) ac_sed_conf_input=$configure_input;;
70266600fe5bSmrg    esac
7027a0195d5fSmrg
7028a0195d5fSmrg    case $ac_tag in
70296600fe5bSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
70306f5dd5c2Smrg      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7031a0195d5fSmrg    esac
7032a0195d5fSmrg    ;;
7033a0195d5fSmrg  esac
7034a0195d5fSmrg
7035a0195d5fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
7036a0195d5fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7037a0195d5fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
7038a0195d5fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
7039a0195d5fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
70406600fe5bSmrg$as_echo X"$ac_file" |
7041a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7042a0195d5fSmrg	    s//\1/
7043a0195d5fSmrg	    q
7044a0195d5fSmrg	  }
7045a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
7046a0195d5fSmrg	    s//\1/
7047a0195d5fSmrg	    q
7048a0195d5fSmrg	  }
7049a0195d5fSmrg	  /^X\(\/\/\)$/{
7050a0195d5fSmrg	    s//\1/
7051a0195d5fSmrg	    q
7052a0195d5fSmrg	  }
7053a0195d5fSmrg	  /^X\(\/\).*/{
7054a0195d5fSmrg	    s//\1/
7055a0195d5fSmrg	    q
7056a0195d5fSmrg	  }
7057a0195d5fSmrg	  s/.*/./; q'`
70586f5dd5c2Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
7059a0195d5fSmrg  ac_builddir=.
7060a0195d5fSmrg
7061a0195d5fSmrgcase "$ac_dir" in
7062a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7063a0195d5fSmrg*)
70646600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7065a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
70666600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7067a0195d5fSmrg  case $ac_top_builddir_sub in
7068a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7069a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7070a0195d5fSmrg  esac ;;
7071a0195d5fSmrgesac
7072a0195d5fSmrgac_abs_top_builddir=$ac_pwd
7073a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
7074a0195d5fSmrg# for backward compatibility:
7075a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
7076a0195d5fSmrg
7077a0195d5fSmrgcase $srcdir in
7078a0195d5fSmrg  .)  # We are building in place.
7079a0195d5fSmrg    ac_srcdir=.
7080a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
7081a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
7082a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
7083a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
7084a0195d5fSmrg    ac_top_srcdir=$srcdir
7085a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
7086a0195d5fSmrg  *) # Relative name.
7087a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7088a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
7089a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7090a0195d5fSmrgesac
7091a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7092a0195d5fSmrg
7093a0195d5fSmrg
7094a0195d5fSmrg  case $ac_mode in
7095a0195d5fSmrg  :F)
7096a0195d5fSmrg  #
7097a0195d5fSmrg  # CONFIG_FILE
7098a0195d5fSmrg  #
7099a0195d5fSmrg
7100a0195d5fSmrg  case $INSTALL in
7101a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7102a0195d5fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7103a0195d5fSmrg  esac
7104a0195d5fSmrg  ac_MKDIR_P=$MKDIR_P
7105a0195d5fSmrg  case $MKDIR_P in
7106a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ;;
7107a0195d5fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7108a0195d5fSmrg  esac
7109a0195d5fSmrg_ACEOF
7110a0195d5fSmrg
71116600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7112a0195d5fSmrg# If the template does not know about datarootdir, expand it.
7113a0195d5fSmrg# FIXME: This hack should be removed a few years after 2.60.
7114a0195d5fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
71156600fe5bSmrgac_sed_dataroot='
71166600fe5bSmrg/datarootdir/ {
7117a0195d5fSmrg  p
7118a0195d5fSmrg  q
7119a0195d5fSmrg}
7120a0195d5fSmrg/@datadir@/p
7121a0195d5fSmrg/@docdir@/p
7122a0195d5fSmrg/@infodir@/p
7123a0195d5fSmrg/@localedir@/p
71246f5dd5c2Smrg/@mandir@/p'
71256600fe5bSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7126a0195d5fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
7127a0195d5fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
71286f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
71296600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7130a0195d5fSmrg_ACEOF
71316600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7132a0195d5fSmrg  ac_datarootdir_hack='
7133a0195d5fSmrg  s&@datadir@&$datadir&g
7134a0195d5fSmrg  s&@docdir@&$docdir&g
7135a0195d5fSmrg  s&@infodir@&$infodir&g
7136a0195d5fSmrg  s&@localedir@&$localedir&g
7137a0195d5fSmrg  s&@mandir@&$mandir&g
71386f5dd5c2Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
7139a0195d5fSmrgesac
7140a0195d5fSmrg_ACEOF
7141a0195d5fSmrg
7142a0195d5fSmrg# Neutralize VPATH when `$srcdir' = `.'.
7143a0195d5fSmrg# Shell code in configure.ac might set extrasub.
7144a0195d5fSmrg# FIXME: do we really want to maintain this feature?
71456600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71466600fe5bSmrgac_sed_extra="$ac_vpsub
7147a0195d5fSmrg$extrasub
7148a0195d5fSmrg_ACEOF
71496600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7150a0195d5fSmrg:t
7151a0195d5fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
71526600fe5bSmrgs|@configure_input@|$ac_sed_conf_input|;t t
7153a0195d5fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
71546600fe5bSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
7155a0195d5fSmrgs&@srcdir@&$ac_srcdir&;t t
7156a0195d5fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
7157a0195d5fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
7158a0195d5fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7159a0195d5fSmrgs&@builddir@&$ac_builddir&;t t
7160a0195d5fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
7161a0195d5fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7162a0195d5fSmrgs&@INSTALL@&$ac_INSTALL&;t t
7163a0195d5fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
7164a0195d5fSmrg$ac_datarootdir_hack
71656600fe5bSmrg"
71666600fe5bSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
71676f5dd5c2Smrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
7168a0195d5fSmrg
7169a0195d5fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7170a0195d5fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7171a0195d5fSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
71726f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7173a0195d5fSmrgwhich seems to be undefined.  Please make sure it is defined." >&5
71746600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7175a0195d5fSmrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
7176a0195d5fSmrg
7177a0195d5fSmrg  rm -f "$tmp/stdin"
7178a0195d5fSmrg  case $ac_file in
71796600fe5bSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
71806600fe5bSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
71816600fe5bSmrg  esac \
71826f5dd5c2Smrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
7183a0195d5fSmrg ;;
7184a0195d5fSmrg  :H)
7185a0195d5fSmrg  #
7186a0195d5fSmrg  # CONFIG_HEADER
7187a0195d5fSmrg  #
7188a0195d5fSmrg  if test x"$ac_file" != x-; then
71896600fe5bSmrg    {
71906600fe5bSmrg      $as_echo "/* $configure_input  */" \
71916600fe5bSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
71926600fe5bSmrg    } >"$tmp/config.h" \
71936f5dd5c2Smrg      || as_fn_error "could not create $ac_file" "$LINENO" 5
71946600fe5bSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
71956f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
71966600fe5bSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
7197a0195d5fSmrg    else
71986600fe5bSmrg      rm -f "$ac_file"
71996600fe5bSmrg      mv "$tmp/config.h" "$ac_file" \
72006f5dd5c2Smrg	|| as_fn_error "could not create $ac_file" "$LINENO" 5
7201a0195d5fSmrg    fi
7202a0195d5fSmrg  else
72036600fe5bSmrg    $as_echo "/* $configure_input  */" \
72046600fe5bSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
72056f5dd5c2Smrg      || as_fn_error "could not create -" "$LINENO" 5
7206a0195d5fSmrg  fi
72076600fe5bSmrg# Compute "$ac_file"'s index in $config_headers.
72086600fe5bSmrg_am_arg="$ac_file"
7209a0195d5fSmrg_am_stamp_count=1
7210a0195d5fSmrgfor _am_header in $config_headers :; do
7211a0195d5fSmrg  case $_am_header in
7212a0195d5fSmrg    $_am_arg | $_am_arg:* )
7213a0195d5fSmrg      break ;;
7214a0195d5fSmrg    * )
7215a0195d5fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7216a0195d5fSmrg  esac
7217a0195d5fSmrgdone
7218a0195d5fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7219a0195d5fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7220a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
7221a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
7222a0195d5fSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
72236600fe5bSmrg$as_echo X"$_am_arg" |
7224a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7225a0195d5fSmrg	    s//\1/
7226a0195d5fSmrg	    q
7227a0195d5fSmrg	  }
7228a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
7229a0195d5fSmrg	    s//\1/
7230a0195d5fSmrg	    q
7231a0195d5fSmrg	  }
7232a0195d5fSmrg	  /^X\(\/\/\)$/{
7233a0195d5fSmrg	    s//\1/
7234a0195d5fSmrg	    q
7235a0195d5fSmrg	  }
7236a0195d5fSmrg	  /^X\(\/\).*/{
7237a0195d5fSmrg	    s//\1/
7238a0195d5fSmrg	    q
7239a0195d5fSmrg	  }
7240a0195d5fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
7241a0195d5fSmrg ;;
7242a0195d5fSmrg
72436f5dd5c2Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
72446600fe5bSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
7245a0195d5fSmrg ;;
7246a0195d5fSmrg  esac
7247a0195d5fSmrg
7248a0195d5fSmrg
7249a0195d5fSmrg  case $ac_file$ac_mode in
72506600fe5bSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
72516600fe5bSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
72526600fe5bSmrg  # are listed without --file.  Let's play safe and only enable the eval
72536600fe5bSmrg  # if we detect the quoting.
72546600fe5bSmrg  case $CONFIG_FILES in
72556600fe5bSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
72566600fe5bSmrg  *)   set x $CONFIG_FILES ;;
72576600fe5bSmrg  esac
72586600fe5bSmrg  shift
72596600fe5bSmrg  for mf
72606600fe5bSmrg  do
72616600fe5bSmrg    # Strip MF so we end up with the name of the file.
72626600fe5bSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
72636600fe5bSmrg    # Check whether this is an Automake generated Makefile or not.
72646600fe5bSmrg    # We used to match only the files named `Makefile.in', but
72656600fe5bSmrg    # some people rename them; so instead we look at the file content.
72666600fe5bSmrg    # Grep'ing the first line is not enough: some people post-process
72676600fe5bSmrg    # each Makefile.in and add a new line on top of each file to say so.
72686600fe5bSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
72696600fe5bSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
72706600fe5bSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
72716600fe5bSmrg      dirpart=`$as_dirname -- "$mf" ||
7272a0195d5fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7273a0195d5fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
7274a0195d5fSmrg	 X"$mf" : 'X\(//\)$' \| \
7275a0195d5fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
72766600fe5bSmrg$as_echo X"$mf" |
7277a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7278a0195d5fSmrg	    s//\1/
7279a0195d5fSmrg	    q
7280a0195d5fSmrg	  }
7281a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
7282a0195d5fSmrg	    s//\1/
7283a0195d5fSmrg	    q
7284a0195d5fSmrg	  }
7285a0195d5fSmrg	  /^X\(\/\/\)$/{
7286a0195d5fSmrg	    s//\1/
7287a0195d5fSmrg	    q
7288a0195d5fSmrg	  }
7289a0195d5fSmrg	  /^X\(\/\).*/{
7290a0195d5fSmrg	    s//\1/
7291a0195d5fSmrg	    q
7292a0195d5fSmrg	  }
7293a0195d5fSmrg	  s/.*/./; q'`
72946600fe5bSmrg    else
72956600fe5bSmrg      continue
72966600fe5bSmrg    fi
72976600fe5bSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
72986600fe5bSmrg    # from the Makefile without running `make'.
72996600fe5bSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
73006600fe5bSmrg    test -z "$DEPDIR" && continue
73016600fe5bSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
73026600fe5bSmrg    test -z "am__include" && continue
73036600fe5bSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
73046600fe5bSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
73056600fe5bSmrg    U=`sed -n 's/^U = //p' < "$mf"`
73066600fe5bSmrg    # Find all dependency output files, they are included files with
73076600fe5bSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
73086600fe5bSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
73096600fe5bSmrg    # expansion.
73106600fe5bSmrg    for file in `sed -n "
73116600fe5bSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73126600fe5bSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
73136600fe5bSmrg      # Make sure the directory exists.
73146600fe5bSmrg      test -f "$dirpart/$file" && continue
73156600fe5bSmrg      fdir=`$as_dirname -- "$file" ||
7316a0195d5fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7317a0195d5fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
7318a0195d5fSmrg	 X"$file" : 'X\(//\)$' \| \
7319a0195d5fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
73206600fe5bSmrg$as_echo X"$file" |
7321a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7322a0195d5fSmrg	    s//\1/
7323a0195d5fSmrg	    q
7324a0195d5fSmrg	  }
7325a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
7326a0195d5fSmrg	    s//\1/
7327a0195d5fSmrg	    q
7328a0195d5fSmrg	  }
7329a0195d5fSmrg	  /^X\(\/\/\)$/{
7330a0195d5fSmrg	    s//\1/
7331a0195d5fSmrg	    q
7332a0195d5fSmrg	  }
7333a0195d5fSmrg	  /^X\(\/\).*/{
7334a0195d5fSmrg	    s//\1/
7335a0195d5fSmrg	    q
7336a0195d5fSmrg	  }
7337a0195d5fSmrg	  s/.*/./; q'`
73386f5dd5c2Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
73396600fe5bSmrg      # echo "creating $dirpart/$file"
73406600fe5bSmrg      echo '# dummy' > "$dirpart/$file"
73416600fe5bSmrg    done
7342a0195d5fSmrg  done
73436600fe5bSmrg}
7344a0195d5fSmrg ;;
7345a0195d5fSmrg
7346a0195d5fSmrg  esac
7347a0195d5fSmrgdone # for ac_tag
7348a0195d5fSmrg
7349a0195d5fSmrg
73506f5dd5c2Smrgas_fn_exit 0
7351a0195d5fSmrg_ACEOF
7352a0195d5fSmrgac_clean_files=$ac_clean_files_save
7353a0195d5fSmrg
73546600fe5bSmrgtest $ac_write_fail = 0 ||
73556f5dd5c2Smrg  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
73566600fe5bSmrg
7357a0195d5fSmrg
7358a0195d5fSmrg# configure is writing to config.log, and then calls config.status.
7359a0195d5fSmrg# config.status does its own redirection, appending to config.log.
7360a0195d5fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
7361a0195d5fSmrg# by configure, so config.status won't be able to write to it; its
7362a0195d5fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
7363a0195d5fSmrg# effectively closing config.log, so it can be properly (re)opened and
7364a0195d5fSmrg# appended to by config.status.  When coming back to configure, we
7365a0195d5fSmrg# need to make the FD available again.
7366a0195d5fSmrgif test "$no_create" != yes; then
7367a0195d5fSmrg  ac_cs_success=:
7368a0195d5fSmrg  ac_config_status_args=
7369a0195d5fSmrg  test "$silent" = yes &&
7370a0195d5fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
7371a0195d5fSmrg  exec 5>/dev/null
7372a0195d5fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7373a0195d5fSmrg  exec 5>>config.log
7374a0195d5fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7375a0195d5fSmrg  # would make configure fail if this is the last instruction.
73766f5dd5c2Smrg  $ac_cs_success || as_fn_exit $?
7377a0195d5fSmrgfi
73786600fe5bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
73796f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
73806600fe5bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
73816600fe5bSmrgfi
7382a0195d5fSmrg
7383