configure revision 34345a63
1f46a6179Smrg#! /bin/sh 2f46a6179Smrg# Guess values for system-dependent variables and create Makefiles. 334345a63Smrg# Generated by GNU Autoconf 2.63 for xkbcomp 1.1.0. 4f46a6179Smrg# 5f46a6179Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6f46a6179Smrg# 7f46a6179Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 834345a63Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9f46a6179Smrg# This configure script is free software; the Free Software Foundation 10f46a6179Smrg# gives unlimited permission to copy, distribute and modify it. 11f46a6179Smrg## --------------------- ## 12f46a6179Smrg## M4sh Initialization. ## 13f46a6179Smrg## --------------------- ## 14f46a6179Smrg 15f46a6179Smrg# Be more Bourne compatible 16f46a6179SmrgDUALCASE=1; export DUALCASE # for MKS sh 17f46a6179Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18f46a6179Smrg emulate sh 19f46a6179Smrg NULLCMD=: 2034345a63Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21f46a6179Smrg # is contrary to our usage. Disable this feature. 22f46a6179Smrg alias -g '${1+"$@"}'='"$@"' 23f46a6179Smrg setopt NO_GLOB_SUBST 24f46a6179Smrgelse 25f46a6179Smrg case `(set -o) 2>/dev/null` in 26f46a6179Smrg *posix*) set -o posix ;; 27f46a6179Smrgesac 28f46a6179Smrg 29f46a6179Smrgfi 30f46a6179Smrg 31f46a6179Smrg 32f46a6179Smrg 33f46a6179Smrg 34f46a6179Smrg# PATH needs CR 35f46a6179Smrg# Avoid depending upon Character Ranges. 36f46a6179Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 37f46a6179Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38f46a6179Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 39f46a6179Smrgas_cr_digits='0123456789' 40f46a6179Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 41f46a6179Smrg 4234345a63Smrgas_nl=' 4334345a63Smrg' 4434345a63Smrgexport as_nl 4534345a63Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4634345a63Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4734345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4834345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4934345a63Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5034345a63Smrg as_echo='printf %s\n' 5134345a63Smrg as_echo_n='printf %s' 5234345a63Smrgelse 5334345a63Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5434345a63Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5534345a63Smrg as_echo_n='/usr/ucb/echo -n' 56f46a6179Smrg else 5734345a63Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5834345a63Smrg as_echo_n_body='eval 5934345a63Smrg arg=$1; 6034345a63Smrg case $arg in 6134345a63Smrg *"$as_nl"*) 6234345a63Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6334345a63Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6434345a63Smrg esac; 6534345a63Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6634345a63Smrg ' 6734345a63Smrg export as_echo_n_body 6834345a63Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 69f46a6179Smrg fi 7034345a63Smrg export as_echo_body 7134345a63Smrg as_echo='sh -c $as_echo_body as_echo' 7234345a63Smrgfi 7334345a63Smrg 7434345a63Smrg# The user is always right. 7534345a63Smrgif test "${PATH_SEPARATOR+set}" != set; then 7634345a63Smrg PATH_SEPARATOR=: 7734345a63Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7834345a63Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7934345a63Smrg PATH_SEPARATOR=';' 8034345a63Smrg } 81f46a6179Smrgfi 82f46a6179Smrg 83f46a6179Smrg# Support unset when possible. 84f46a6179Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85f46a6179Smrg as_unset=unset 86f46a6179Smrgelse 87f46a6179Smrg as_unset=false 88f46a6179Smrgfi 89f46a6179Smrg 90f46a6179Smrg 91f46a6179Smrg# IFS 92f46a6179Smrg# We need space, tab and new line, in precisely that order. Quoting is 93f46a6179Smrg# there to prevent editors from complaining about space-tab. 94f46a6179Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95f46a6179Smrg# splitting by setting IFS to empty value.) 96f46a6179SmrgIFS=" "" $as_nl" 97f46a6179Smrg 98f46a6179Smrg# Find who we are. Look in the path if we contain no directory separator. 99f46a6179Smrgcase $0 in 100f46a6179Smrg *[\\/]* ) as_myself=$0 ;; 101f46a6179Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102f46a6179Smrgfor as_dir in $PATH 103f46a6179Smrgdo 104f46a6179Smrg IFS=$as_save_IFS 105f46a6179Smrg test -z "$as_dir" && as_dir=. 106f46a6179Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107f46a6179Smrgdone 108f46a6179SmrgIFS=$as_save_IFS 109f46a6179Smrg 110f46a6179Smrg ;; 111f46a6179Smrgesac 112f46a6179Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 113f46a6179Smrg# in which case we are not to be found in the path. 114f46a6179Smrgif test "x$as_myself" = x; then 115f46a6179Smrg as_myself=$0 116f46a6179Smrgfi 117f46a6179Smrgif test ! -f "$as_myself"; then 11834345a63Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119f46a6179Smrg { (exit 1); exit 1; } 120f46a6179Smrgfi 121f46a6179Smrg 122f46a6179Smrg# Work around bugs in pre-3.0 UWIN ksh. 123f46a6179Smrgfor as_var in ENV MAIL MAILPATH 124f46a6179Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125f46a6179Smrgdone 126f46a6179SmrgPS1='$ ' 127f46a6179SmrgPS2='> ' 128f46a6179SmrgPS4='+ ' 129f46a6179Smrg 130f46a6179Smrg# NLS nuisances. 13134345a63SmrgLC_ALL=C 13234345a63Smrgexport LC_ALL 13334345a63SmrgLANGUAGE=C 13434345a63Smrgexport LANGUAGE 135f46a6179Smrg 136f46a6179Smrg# Required to use basename. 137f46a6179Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 138f46a6179Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 139f46a6179Smrg as_expr=expr 140f46a6179Smrgelse 141f46a6179Smrg as_expr=false 142f46a6179Smrgfi 143f46a6179Smrg 144f46a6179Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145f46a6179Smrg as_basename=basename 146f46a6179Smrgelse 147f46a6179Smrg as_basename=false 148f46a6179Smrgfi 149f46a6179Smrg 150f46a6179Smrg 151f46a6179Smrg# Name of the executable. 152f46a6179Smrgas_me=`$as_basename -- "$0" || 153f46a6179Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154f46a6179Smrg X"$0" : 'X\(//\)$' \| \ 155f46a6179Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 15634345a63Smrg$as_echo X/"$0" | 157f46a6179Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 158f46a6179Smrg s//\1/ 159f46a6179Smrg q 160f46a6179Smrg } 161f46a6179Smrg /^X\/\(\/\/\)$/{ 162f46a6179Smrg s//\1/ 163f46a6179Smrg q 164f46a6179Smrg } 165f46a6179Smrg /^X\/\(\/\).*/{ 166f46a6179Smrg s//\1/ 167f46a6179Smrg q 168f46a6179Smrg } 169f46a6179Smrg s/.*/./; q'` 170f46a6179Smrg 171f46a6179Smrg# CDPATH. 172f46a6179Smrg$as_unset CDPATH 173f46a6179Smrg 174f46a6179Smrg 175f46a6179Smrgif test "x$CONFIG_SHELL" = x; then 176f46a6179Smrg if (eval ":") 2>/dev/null; then 177f46a6179Smrg as_have_required=yes 178f46a6179Smrgelse 179f46a6179Smrg as_have_required=no 180f46a6179Smrgfi 181f46a6179Smrg 18234345a63Smrg if test $as_have_required = yes && (eval ": 183f46a6179Smrg(as_func_return () { 184f46a6179Smrg (exit \$1) 185f46a6179Smrg} 186f46a6179Smrgas_func_success () { 187f46a6179Smrg as_func_return 0 188f46a6179Smrg} 189f46a6179Smrgas_func_failure () { 190f46a6179Smrg as_func_return 1 191f46a6179Smrg} 192f46a6179Smrgas_func_ret_success () { 193f46a6179Smrg return 0 194f46a6179Smrg} 195f46a6179Smrgas_func_ret_failure () { 196f46a6179Smrg return 1 197f46a6179Smrg} 198f46a6179Smrg 199f46a6179Smrgexitcode=0 200f46a6179Smrgif as_func_success; then 201f46a6179Smrg : 202f46a6179Smrgelse 203f46a6179Smrg exitcode=1 204f46a6179Smrg echo as_func_success failed. 205f46a6179Smrgfi 206f46a6179Smrg 207f46a6179Smrgif as_func_failure; then 208f46a6179Smrg exitcode=1 209f46a6179Smrg echo as_func_failure succeeded. 210f46a6179Smrgfi 211f46a6179Smrg 212f46a6179Smrgif as_func_ret_success; then 213f46a6179Smrg : 214f46a6179Smrgelse 215f46a6179Smrg exitcode=1 216f46a6179Smrg echo as_func_ret_success failed. 217f46a6179Smrgfi 218f46a6179Smrg 219f46a6179Smrgif as_func_ret_failure; then 220f46a6179Smrg exitcode=1 221f46a6179Smrg echo as_func_ret_failure succeeded. 222f46a6179Smrgfi 223f46a6179Smrg 224f46a6179Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225f46a6179Smrg : 226f46a6179Smrgelse 227f46a6179Smrg exitcode=1 228f46a6179Smrg echo positional parameters were not saved. 229f46a6179Smrgfi 230f46a6179Smrg 231f46a6179Smrgtest \$exitcode = 0) || { (exit 1); exit 1; } 232f46a6179Smrg 233f46a6179Smrg( 234f46a6179Smrg as_lineno_1=\$LINENO 235f46a6179Smrg as_lineno_2=\$LINENO 236f46a6179Smrg test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237f46a6179Smrg test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238f46a6179Smrg") 2> /dev/null; then 239f46a6179Smrg : 240f46a6179Smrgelse 241f46a6179Smrg as_candidate_shells= 242f46a6179Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243f46a6179Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244f46a6179Smrgdo 245f46a6179Smrg IFS=$as_save_IFS 246f46a6179Smrg test -z "$as_dir" && as_dir=. 247f46a6179Smrg case $as_dir in 248f46a6179Smrg /*) 249f46a6179Smrg for as_base in sh bash ksh sh5; do 250f46a6179Smrg as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251f46a6179Smrg done;; 252f46a6179Smrg esac 253f46a6179Smrgdone 254f46a6179SmrgIFS=$as_save_IFS 255f46a6179Smrg 256f46a6179Smrg 257f46a6179Smrg for as_shell in $as_candidate_shells $SHELL; do 258f46a6179Smrg # Try only shells that exist, to save several forks. 259f46a6179Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260f46a6179Smrg { ("$as_shell") 2> /dev/null <<\_ASEOF 261f46a6179Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262f46a6179Smrg emulate sh 263f46a6179Smrg NULLCMD=: 26434345a63Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265f46a6179Smrg # is contrary to our usage. Disable this feature. 266f46a6179Smrg alias -g '${1+"$@"}'='"$@"' 267f46a6179Smrg setopt NO_GLOB_SUBST 268f46a6179Smrgelse 269f46a6179Smrg case `(set -o) 2>/dev/null` in 270f46a6179Smrg *posix*) set -o posix ;; 271f46a6179Smrgesac 272f46a6179Smrg 273f46a6179Smrgfi 274f46a6179Smrg 275f46a6179Smrg 276f46a6179Smrg: 277f46a6179Smrg_ASEOF 278f46a6179Smrg}; then 279f46a6179Smrg CONFIG_SHELL=$as_shell 280f46a6179Smrg as_have_required=yes 281f46a6179Smrg if { "$as_shell" 2> /dev/null <<\_ASEOF 282f46a6179Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283f46a6179Smrg emulate sh 284f46a6179Smrg NULLCMD=: 28534345a63Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286f46a6179Smrg # is contrary to our usage. Disable this feature. 287f46a6179Smrg alias -g '${1+"$@"}'='"$@"' 288f46a6179Smrg setopt NO_GLOB_SUBST 289f46a6179Smrgelse 290f46a6179Smrg case `(set -o) 2>/dev/null` in 291f46a6179Smrg *posix*) set -o posix ;; 292f46a6179Smrgesac 293f46a6179Smrg 294f46a6179Smrgfi 295f46a6179Smrg 296f46a6179Smrg 297f46a6179Smrg: 298f46a6179Smrg(as_func_return () { 299f46a6179Smrg (exit $1) 300f46a6179Smrg} 301f46a6179Smrgas_func_success () { 302f46a6179Smrg as_func_return 0 303f46a6179Smrg} 304f46a6179Smrgas_func_failure () { 305f46a6179Smrg as_func_return 1 306f46a6179Smrg} 307f46a6179Smrgas_func_ret_success () { 308f46a6179Smrg return 0 309f46a6179Smrg} 310f46a6179Smrgas_func_ret_failure () { 311f46a6179Smrg return 1 312f46a6179Smrg} 313f46a6179Smrg 314f46a6179Smrgexitcode=0 315f46a6179Smrgif as_func_success; then 316f46a6179Smrg : 317f46a6179Smrgelse 318f46a6179Smrg exitcode=1 319f46a6179Smrg echo as_func_success failed. 320f46a6179Smrgfi 321f46a6179Smrg 322f46a6179Smrgif as_func_failure; then 323f46a6179Smrg exitcode=1 324f46a6179Smrg echo as_func_failure succeeded. 325f46a6179Smrgfi 326f46a6179Smrg 327f46a6179Smrgif as_func_ret_success; then 328f46a6179Smrg : 329f46a6179Smrgelse 330f46a6179Smrg exitcode=1 331f46a6179Smrg echo as_func_ret_success failed. 332f46a6179Smrgfi 333f46a6179Smrg 334f46a6179Smrgif as_func_ret_failure; then 335f46a6179Smrg exitcode=1 336f46a6179Smrg echo as_func_ret_failure succeeded. 337f46a6179Smrgfi 338f46a6179Smrg 339f46a6179Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then 340f46a6179Smrg : 341f46a6179Smrgelse 342f46a6179Smrg exitcode=1 343f46a6179Smrg echo positional parameters were not saved. 344f46a6179Smrgfi 345f46a6179Smrg 346f46a6179Smrgtest $exitcode = 0) || { (exit 1); exit 1; } 347f46a6179Smrg 348f46a6179Smrg( 349f46a6179Smrg as_lineno_1=$LINENO 350f46a6179Smrg as_lineno_2=$LINENO 351f46a6179Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 352f46a6179Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353f46a6179Smrg 354f46a6179Smrg_ASEOF 355f46a6179Smrg}; then 356f46a6179Smrg break 357f46a6179Smrgfi 358f46a6179Smrg 359f46a6179Smrgfi 360f46a6179Smrg 361f46a6179Smrg done 362f46a6179Smrg 363f46a6179Smrg if test "x$CONFIG_SHELL" != x; then 364f46a6179Smrg for as_var in BASH_ENV ENV 36534345a63Smrg do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 36634345a63Smrg done 36734345a63Smrg export CONFIG_SHELL 36834345a63Smrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369f46a6179Smrgfi 370f46a6179Smrg 371f46a6179Smrg 372f46a6179Smrg if test $as_have_required = no; then 373f46a6179Smrg echo This script requires a shell more modern than all the 374f46a6179Smrg echo shells that I found on your system. Please install a 375f46a6179Smrg echo modern shell, or manually run the script under such a 376f46a6179Smrg echo shell if you do have one. 377f46a6179Smrg { (exit 1); exit 1; } 378f46a6179Smrgfi 379f46a6179Smrg 380f46a6179Smrg 381f46a6179Smrgfi 382f46a6179Smrg 383f46a6179Smrgfi 384f46a6179Smrg 385f46a6179Smrg 386f46a6179Smrg 387f46a6179Smrg(eval "as_func_return () { 388f46a6179Smrg (exit \$1) 389f46a6179Smrg} 390f46a6179Smrgas_func_success () { 391f46a6179Smrg as_func_return 0 392f46a6179Smrg} 393f46a6179Smrgas_func_failure () { 394f46a6179Smrg as_func_return 1 395f46a6179Smrg} 396f46a6179Smrgas_func_ret_success () { 397f46a6179Smrg return 0 398f46a6179Smrg} 399f46a6179Smrgas_func_ret_failure () { 400f46a6179Smrg return 1 401f46a6179Smrg} 402f46a6179Smrg 403f46a6179Smrgexitcode=0 404f46a6179Smrgif as_func_success; then 405f46a6179Smrg : 406f46a6179Smrgelse 407f46a6179Smrg exitcode=1 408f46a6179Smrg echo as_func_success failed. 409f46a6179Smrgfi 410f46a6179Smrg 411f46a6179Smrgif as_func_failure; then 412f46a6179Smrg exitcode=1 413f46a6179Smrg echo as_func_failure succeeded. 414f46a6179Smrgfi 415f46a6179Smrg 416f46a6179Smrgif as_func_ret_success; then 417f46a6179Smrg : 418f46a6179Smrgelse 419f46a6179Smrg exitcode=1 420f46a6179Smrg echo as_func_ret_success failed. 421f46a6179Smrgfi 422f46a6179Smrg 423f46a6179Smrgif as_func_ret_failure; then 424f46a6179Smrg exitcode=1 425f46a6179Smrg echo as_func_ret_failure succeeded. 426f46a6179Smrgfi 427f46a6179Smrg 428f46a6179Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429f46a6179Smrg : 430f46a6179Smrgelse 431f46a6179Smrg exitcode=1 432f46a6179Smrg echo positional parameters were not saved. 433f46a6179Smrgfi 434f46a6179Smrg 435f46a6179Smrgtest \$exitcode = 0") || { 436f46a6179Smrg echo No shell found that supports shell functions. 43734345a63Smrg echo Please tell bug-autoconf@gnu.org about your system, 43834345a63Smrg echo including any error possibly output before this message. 43934345a63Smrg echo This can help us improve future autoconf versions. 44034345a63Smrg echo Configuration will now proceed without shell functions. 441f46a6179Smrg} 442f46a6179Smrg 443f46a6179Smrg 444f46a6179Smrg 445f46a6179Smrg as_lineno_1=$LINENO 446f46a6179Smrg as_lineno_2=$LINENO 447f46a6179Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 448f46a6179Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449f46a6179Smrg 450f46a6179Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451f46a6179Smrg # uniformly replaced by the line number. The first 'sed' inserts a 452f46a6179Smrg # line-number line after each line using $LINENO; the second 'sed' 453f46a6179Smrg # does the real work. The second script uses 'N' to pair each 454f46a6179Smrg # line-number line with the line containing $LINENO, and appends 455f46a6179Smrg # trailing '-' during substitution so that $LINENO is not a special 456f46a6179Smrg # case at line end. 457f46a6179Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458f46a6179Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 459f46a6179Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 460f46a6179Smrg sed -n ' 461f46a6179Smrg p 462f46a6179Smrg /[$]LINENO/= 463f46a6179Smrg ' <$as_myself | 464f46a6179Smrg sed ' 465f46a6179Smrg s/[$]LINENO.*/&-/ 466f46a6179Smrg t lineno 467f46a6179Smrg b 468f46a6179Smrg :lineno 469f46a6179Smrg N 470f46a6179Smrg :loop 471f46a6179Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472f46a6179Smrg t loop 473f46a6179Smrg s/-\n.*// 474f46a6179Smrg ' >$as_me.lineno && 475f46a6179Smrg chmod +x "$as_me.lineno" || 47634345a63Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477f46a6179Smrg { (exit 1); exit 1; }; } 478f46a6179Smrg 479f46a6179Smrg # Don't try to exec as it changes $[0], causing all sort of problems 480f46a6179Smrg # (the dirname of $[0] is not the place where we might find the 481f46a6179Smrg # original and so on. Autoconf is especially sensitive to this). 482f46a6179Smrg . "./$as_me.lineno" 483f46a6179Smrg # Exit status is that of the last command. 484f46a6179Smrg exit 485f46a6179Smrg} 486f46a6179Smrg 487f46a6179Smrg 488f46a6179Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489f46a6179Smrg as_dirname=dirname 490f46a6179Smrgelse 491f46a6179Smrg as_dirname=false 492f46a6179Smrgfi 493f46a6179Smrg 494f46a6179SmrgECHO_C= ECHO_N= ECHO_T= 495f46a6179Smrgcase `echo -n x` in 496f46a6179Smrg-n*) 497f46a6179Smrg case `echo 'x\c'` in 498f46a6179Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499f46a6179Smrg *) ECHO_C='\c';; 500f46a6179Smrg esac;; 501f46a6179Smrg*) 502f46a6179Smrg ECHO_N='-n';; 503f46a6179Smrgesac 504f46a6179Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 505f46a6179Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 506f46a6179Smrg as_expr=expr 507f46a6179Smrgelse 508f46a6179Smrg as_expr=false 509f46a6179Smrgfi 510f46a6179Smrg 511f46a6179Smrgrm -f conf$$ conf$$.exe conf$$.file 512f46a6179Smrgif test -d conf$$.dir; then 513f46a6179Smrg rm -f conf$$.dir/conf$$.file 514f46a6179Smrgelse 515f46a6179Smrg rm -f conf$$.dir 51634345a63Smrg mkdir conf$$.dir 2>/dev/null 51734345a63Smrgfi 51834345a63Smrgif (echo >conf$$.file) 2>/dev/null; then 51934345a63Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 52034345a63Smrg as_ln_s='ln -s' 52134345a63Smrg # ... but there are two gotchas: 52234345a63Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52334345a63Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52434345a63Smrg # In both cases, we have to default to `cp -p'. 52534345a63Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52634345a63Smrg as_ln_s='cp -p' 52734345a63Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 52834345a63Smrg as_ln_s=ln 52934345a63Smrg else 530f46a6179Smrg as_ln_s='cp -p' 53134345a63Smrg fi 532f46a6179Smrgelse 533f46a6179Smrg as_ln_s='cp -p' 534f46a6179Smrgfi 535f46a6179Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536f46a6179Smrgrmdir conf$$.dir 2>/dev/null 537f46a6179Smrg 538f46a6179Smrgif mkdir -p . 2>/dev/null; then 539f46a6179Smrg as_mkdir_p=: 540f46a6179Smrgelse 541f46a6179Smrg test -d ./-p && rmdir ./-p 542f46a6179Smrg as_mkdir_p=false 543f46a6179Smrgfi 544f46a6179Smrg 545f46a6179Smrgif test -x / >/dev/null 2>&1; then 546f46a6179Smrg as_test_x='test -x' 547f46a6179Smrgelse 548f46a6179Smrg if ls -dL / >/dev/null 2>&1; then 549f46a6179Smrg as_ls_L_option=L 550f46a6179Smrg else 551f46a6179Smrg as_ls_L_option= 552f46a6179Smrg fi 553f46a6179Smrg as_test_x=' 554f46a6179Smrg eval sh -c '\'' 555f46a6179Smrg if test -d "$1"; then 55634345a63Smrg test -d "$1/."; 557f46a6179Smrg else 558f46a6179Smrg case $1 in 55934345a63Smrg -*)set "./$1";; 560f46a6179Smrg esac; 561f46a6179Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562f46a6179Smrg ???[sx]*):;;*)false;;esac;fi 563f46a6179Smrg '\'' sh 564f46a6179Smrg ' 565f46a6179Smrgfi 566f46a6179Smrgas_executable_p=$as_test_x 567f46a6179Smrg 568f46a6179Smrg# Sed expression to map a string onto a valid CPP name. 569f46a6179Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570f46a6179Smrg 571f46a6179Smrg# Sed expression to map a string onto a valid variable name. 572f46a6179Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573f46a6179Smrg 574f46a6179Smrg 575f46a6179Smrg 576f46a6179Smrgexec 7<&0 </dev/null 6>&1 577f46a6179Smrg 578f46a6179Smrg# Name of the host. 579f46a6179Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 580f46a6179Smrg# so uname gets run too. 581f46a6179Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 582f46a6179Smrg 583f46a6179Smrg# 584f46a6179Smrg# Initializations. 585f46a6179Smrg# 586f46a6179Smrgac_default_prefix=/usr/local 587f46a6179Smrgac_clean_files= 588f46a6179Smrgac_config_libobj_dir=. 589f46a6179SmrgLIBOBJS= 590f46a6179Smrgcross_compiling=no 591f46a6179Smrgsubdirs= 592f46a6179SmrgMFLAGS= 593f46a6179SmrgMAKEFLAGS= 594f46a6179SmrgSHELL=${CONFIG_SHELL-/bin/sh} 595f46a6179Smrg 596f46a6179Smrg# Identity of this package. 597f46a6179SmrgPACKAGE_NAME='xkbcomp' 598f46a6179SmrgPACKAGE_TARNAME='xkbcomp' 59934345a63SmrgPACKAGE_VERSION='1.1.0' 60034345a63SmrgPACKAGE_STRING='xkbcomp 1.1.0' 601f46a6179SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 602f46a6179Smrg 60334345a63Smrg# Factoring default headers for most tests. 60434345a63Smrgac_includes_default="\ 60534345a63Smrg#include <stdio.h> 60634345a63Smrg#ifdef HAVE_SYS_TYPES_H 60734345a63Smrg# include <sys/types.h> 60834345a63Smrg#endif 60934345a63Smrg#ifdef HAVE_SYS_STAT_H 61034345a63Smrg# include <sys/stat.h> 61134345a63Smrg#endif 61234345a63Smrg#ifdef STDC_HEADERS 61334345a63Smrg# include <stdlib.h> 61434345a63Smrg# include <stddef.h> 61534345a63Smrg#else 61634345a63Smrg# ifdef HAVE_STDLIB_H 61734345a63Smrg# include <stdlib.h> 61834345a63Smrg# endif 61934345a63Smrg#endif 62034345a63Smrg#ifdef HAVE_STRING_H 62134345a63Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 62234345a63Smrg# include <memory.h> 62334345a63Smrg# endif 62434345a63Smrg# include <string.h> 62534345a63Smrg#endif 62634345a63Smrg#ifdef HAVE_STRINGS_H 62734345a63Smrg# include <strings.h> 62834345a63Smrg#endif 62934345a63Smrg#ifdef HAVE_INTTYPES_H 63034345a63Smrg# include <inttypes.h> 63134345a63Smrg#endif 63234345a63Smrg#ifdef HAVE_STDINT_H 63334345a63Smrg# include <stdint.h> 63434345a63Smrg#endif 63534345a63Smrg#ifdef HAVE_UNISTD_H 63634345a63Smrg# include <unistd.h> 63734345a63Smrg#endif" 63834345a63Smrg 63934345a63Smrgac_subst_vars='am__EXEEXT_FALSE 64034345a63Smrgam__EXEEXT_TRUE 64134345a63SmrgLTLIBOBJS 642f46a6179SmrgLIBOBJS 64334345a63Smrgdistcleancheck_listfiles 64434345a63SmrgCHANGELOG_CMD 64534345a63SmrgADMIN_MAN_DIR 64634345a63SmrgDRIVER_MAN_DIR 64734345a63SmrgMISC_MAN_DIR 64834345a63SmrgFILE_MAN_DIR 64934345a63SmrgLIB_MAN_DIR 65034345a63SmrgAPP_MAN_DIR 65134345a63SmrgADMIN_MAN_SUFFIX 65234345a63SmrgDRIVER_MAN_SUFFIX 65334345a63SmrgMISC_MAN_SUFFIX 65434345a63SmrgFILE_MAN_SUFFIX 65534345a63SmrgLIB_MAN_SUFFIX 65634345a63SmrgAPP_MAN_SUFFIX 65734345a63Smrghost_os 65834345a63Smrghost_vendor 65934345a63Smrghost_cpu 66034345a63Smrghost 66134345a63Smrgbuild_os 66234345a63Smrgbuild_vendor 66334345a63Smrgbuild_cpu 66434345a63Smrgbuild 66534345a63SmrgXKBCONFIGROOT 66634345a63SmrgXKBCOMP_LIBS 66734345a63SmrgXKBCOMP_CFLAGS 66834345a63SmrgPKG_CONFIG 66934345a63SmrgCWARNFLAGS 67034345a63SmrgEGREP 67134345a63SmrgGREP 67234345a63SmrgCPP 67334345a63SmrgYFLAGS 67434345a63SmrgYACC 67534345a63Smrgam__fastdepCC_FALSE 67634345a63Smrgam__fastdepCC_TRUE 67734345a63SmrgCCDEPMODE 67834345a63SmrgAMDEPBACKSLASH 67934345a63SmrgAMDEP_FALSE 68034345a63SmrgAMDEP_TRUE 68134345a63Smrgam__quote 68234345a63Smrgam__include 68334345a63SmrgDEPDIR 68434345a63SmrgOBJEXT 68534345a63SmrgEXEEXT 68634345a63Smrgac_ct_CC 68734345a63SmrgCPPFLAGS 68834345a63SmrgLDFLAGS 68934345a63SmrgCFLAGS 69034345a63SmrgCC 69134345a63SmrgMAINT 69234345a63SmrgMAINTAINER_MODE_FALSE 69334345a63SmrgMAINTAINER_MODE_TRUE 69434345a63Smrgam__untar 69534345a63Smrgam__tar 69634345a63SmrgAMTAR 69734345a63Smrgam__leading_dot 69834345a63SmrgSET_MAKE 69934345a63SmrgAWK 70034345a63Smrgmkdir_p 70134345a63SmrgMKDIR_P 70234345a63SmrgINSTALL_STRIP_PROGRAM 70334345a63SmrgSTRIP 70434345a63Smrginstall_sh 70534345a63SmrgMAKEINFO 70634345a63SmrgAUTOHEADER 70734345a63SmrgAUTOMAKE 70834345a63SmrgAUTOCONF 70934345a63SmrgACLOCAL 71034345a63SmrgVERSION 71134345a63SmrgPACKAGE 71234345a63SmrgCYGPATH_W 71334345a63Smrgam__isrc 71434345a63SmrgINSTALL_DATA 71534345a63SmrgINSTALL_SCRIPT 71634345a63SmrgINSTALL_PROGRAM 71734345a63Smrgtarget_alias 71834345a63Smrghost_alias 71934345a63Smrgbuild_alias 72034345a63SmrgLIBS 72134345a63SmrgECHO_T 72234345a63SmrgECHO_N 72334345a63SmrgECHO_C 72434345a63SmrgDEFS 72534345a63Smrgmandir 72634345a63Smrglocaledir 72734345a63Smrglibdir 72834345a63Smrgpsdir 72934345a63Smrgpdfdir 73034345a63Smrgdvidir 73134345a63Smrghtmldir 73234345a63Smrginfodir 73334345a63Smrgdocdir 73434345a63Smrgoldincludedir 73534345a63Smrgincludedir 73634345a63Smrglocalstatedir 73734345a63Smrgsharedstatedir 73834345a63Smrgsysconfdir 73934345a63Smrgdatadir 74034345a63Smrgdatarootdir 74134345a63Smrglibexecdir 74234345a63Smrgsbindir 74334345a63Smrgbindir 74434345a63Smrgprogram_transform_name 74534345a63Smrgprefix 74634345a63Smrgexec_prefix 74734345a63SmrgPACKAGE_BUGREPORT 74834345a63SmrgPACKAGE_STRING 74934345a63SmrgPACKAGE_VERSION 75034345a63SmrgPACKAGE_TARNAME 75134345a63SmrgPACKAGE_NAME 75234345a63SmrgPATH_SEPARATOR 75334345a63SmrgSHELL' 754f46a6179Smrgac_subst_files='' 75534345a63Smrgac_user_opts=' 75634345a63Smrgenable_option_checking 75734345a63Smrgenable_maintainer_mode 75834345a63Smrgenable_dependency_tracking 75934345a63Smrgwith_xkb_config_root 76034345a63Smrgwith_release_version 76134345a63Smrg' 762f46a6179Smrg ac_precious_vars='build_alias 763f46a6179Smrghost_alias 764f46a6179Smrgtarget_alias 765f46a6179SmrgCC 766f46a6179SmrgCFLAGS 767f46a6179SmrgLDFLAGS 768f46a6179SmrgLIBS 769f46a6179SmrgCPPFLAGS 770f46a6179SmrgYACC 771f46a6179SmrgYFLAGS 77234345a63SmrgCPP 773f46a6179SmrgPKG_CONFIG 774f46a6179SmrgXKBCOMP_CFLAGS 775f46a6179SmrgXKBCOMP_LIBS' 776f46a6179Smrg 777f46a6179Smrg 778f46a6179Smrg# Initialize some variables set by options. 779f46a6179Smrgac_init_help= 780f46a6179Smrgac_init_version=false 78134345a63Smrgac_unrecognized_opts= 78234345a63Smrgac_unrecognized_sep= 783f46a6179Smrg# The variables have the same names as the options, with 784f46a6179Smrg# dashes changed to underlines. 785f46a6179Smrgcache_file=/dev/null 786f46a6179Smrgexec_prefix=NONE 787f46a6179Smrgno_create= 788f46a6179Smrgno_recursion= 789f46a6179Smrgprefix=NONE 790f46a6179Smrgprogram_prefix=NONE 791f46a6179Smrgprogram_suffix=NONE 792f46a6179Smrgprogram_transform_name=s,x,x, 793f46a6179Smrgsilent= 794f46a6179Smrgsite= 795f46a6179Smrgsrcdir= 796f46a6179Smrgverbose= 797f46a6179Smrgx_includes=NONE 798f46a6179Smrgx_libraries=NONE 799f46a6179Smrg 800f46a6179Smrg# Installation directory options. 801f46a6179Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 802f46a6179Smrg# and all the variables that are supposed to be based on exec_prefix 803f46a6179Smrg# by default will actually change. 804f46a6179Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 805f46a6179Smrg# (The list follows the same order as the GNU Coding Standards.) 806f46a6179Smrgbindir='${exec_prefix}/bin' 807f46a6179Smrgsbindir='${exec_prefix}/sbin' 808f46a6179Smrglibexecdir='${exec_prefix}/libexec' 809f46a6179Smrgdatarootdir='${prefix}/share' 810f46a6179Smrgdatadir='${datarootdir}' 811f46a6179Smrgsysconfdir='${prefix}/etc' 812f46a6179Smrgsharedstatedir='${prefix}/com' 813f46a6179Smrglocalstatedir='${prefix}/var' 814f46a6179Smrgincludedir='${prefix}/include' 815f46a6179Smrgoldincludedir='/usr/include' 816f46a6179Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 817f46a6179Smrginfodir='${datarootdir}/info' 818f46a6179Smrghtmldir='${docdir}' 819f46a6179Smrgdvidir='${docdir}' 820f46a6179Smrgpdfdir='${docdir}' 821f46a6179Smrgpsdir='${docdir}' 822f46a6179Smrglibdir='${exec_prefix}/lib' 823f46a6179Smrglocaledir='${datarootdir}/locale' 824f46a6179Smrgmandir='${datarootdir}/man' 825f46a6179Smrg 826f46a6179Smrgac_prev= 827f46a6179Smrgac_dashdash= 828f46a6179Smrgfor ac_option 829f46a6179Smrgdo 830f46a6179Smrg # If the previous option needs an argument, assign it. 831f46a6179Smrg if test -n "$ac_prev"; then 832f46a6179Smrg eval $ac_prev=\$ac_option 833f46a6179Smrg ac_prev= 834f46a6179Smrg continue 835f46a6179Smrg fi 836f46a6179Smrg 837f46a6179Smrg case $ac_option in 838f46a6179Smrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 839f46a6179Smrg *) ac_optarg=yes ;; 840f46a6179Smrg esac 841f46a6179Smrg 842f46a6179Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 843f46a6179Smrg 844f46a6179Smrg case $ac_dashdash$ac_option in 845f46a6179Smrg --) 846f46a6179Smrg ac_dashdash=yes ;; 847f46a6179Smrg 848f46a6179Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 849f46a6179Smrg ac_prev=bindir ;; 850f46a6179Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 851f46a6179Smrg bindir=$ac_optarg ;; 852f46a6179Smrg 853f46a6179Smrg -build | --build | --buil | --bui | --bu) 854f46a6179Smrg ac_prev=build_alias ;; 855f46a6179Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 856f46a6179Smrg build_alias=$ac_optarg ;; 857f46a6179Smrg 858f46a6179Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 859f46a6179Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 860f46a6179Smrg ac_prev=cache_file ;; 861f46a6179Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 862f46a6179Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 863f46a6179Smrg cache_file=$ac_optarg ;; 864f46a6179Smrg 865f46a6179Smrg --config-cache | -C) 866f46a6179Smrg cache_file=config.cache ;; 867f46a6179Smrg 868f46a6179Smrg -datadir | --datadir | --datadi | --datad) 869f46a6179Smrg ac_prev=datadir ;; 870f46a6179Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 871f46a6179Smrg datadir=$ac_optarg ;; 872f46a6179Smrg 873f46a6179Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 874f46a6179Smrg | --dataroo | --dataro | --datar) 875f46a6179Smrg ac_prev=datarootdir ;; 876f46a6179Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 877f46a6179Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 878f46a6179Smrg datarootdir=$ac_optarg ;; 879f46a6179Smrg 880f46a6179Smrg -disable-* | --disable-*) 88134345a63Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 882f46a6179Smrg # Reject names that are not valid shell variable names. 88334345a63Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 88434345a63Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 885f46a6179Smrg { (exit 1); exit 1; }; } 88634345a63Smrg ac_useropt_orig=$ac_useropt 88734345a63Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 88834345a63Smrg case $ac_user_opts in 88934345a63Smrg *" 89034345a63Smrg"enable_$ac_useropt" 89134345a63Smrg"*) ;; 89234345a63Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 89334345a63Smrg ac_unrecognized_sep=', ';; 89434345a63Smrg esac 89534345a63Smrg eval enable_$ac_useropt=no ;; 896f46a6179Smrg 897f46a6179Smrg -docdir | --docdir | --docdi | --doc | --do) 898f46a6179Smrg ac_prev=docdir ;; 899f46a6179Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 900f46a6179Smrg docdir=$ac_optarg ;; 901f46a6179Smrg 902f46a6179Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 903f46a6179Smrg ac_prev=dvidir ;; 904f46a6179Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 905f46a6179Smrg dvidir=$ac_optarg ;; 906f46a6179Smrg 907f46a6179Smrg -enable-* | --enable-*) 90834345a63Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 909f46a6179Smrg # Reject names that are not valid shell variable names. 91034345a63Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 91134345a63Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 912f46a6179Smrg { (exit 1); exit 1; }; } 91334345a63Smrg ac_useropt_orig=$ac_useropt 91434345a63Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 91534345a63Smrg case $ac_user_opts in 91634345a63Smrg *" 91734345a63Smrg"enable_$ac_useropt" 91834345a63Smrg"*) ;; 91934345a63Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 92034345a63Smrg ac_unrecognized_sep=', ';; 92134345a63Smrg esac 92234345a63Smrg eval enable_$ac_useropt=\$ac_optarg ;; 923f46a6179Smrg 924f46a6179Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 925f46a6179Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 926f46a6179Smrg | --exec | --exe | --ex) 927f46a6179Smrg ac_prev=exec_prefix ;; 928f46a6179Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 929f46a6179Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 930f46a6179Smrg | --exec=* | --exe=* | --ex=*) 931f46a6179Smrg exec_prefix=$ac_optarg ;; 932f46a6179Smrg 933f46a6179Smrg -gas | --gas | --ga | --g) 934f46a6179Smrg # Obsolete; use --with-gas. 935f46a6179Smrg with_gas=yes ;; 936f46a6179Smrg 937f46a6179Smrg -help | --help | --hel | --he | -h) 938f46a6179Smrg ac_init_help=long ;; 939f46a6179Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 940f46a6179Smrg ac_init_help=recursive ;; 941f46a6179Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 942f46a6179Smrg ac_init_help=short ;; 943f46a6179Smrg 944f46a6179Smrg -host | --host | --hos | --ho) 945f46a6179Smrg ac_prev=host_alias ;; 946f46a6179Smrg -host=* | --host=* | --hos=* | --ho=*) 947f46a6179Smrg host_alias=$ac_optarg ;; 948f46a6179Smrg 949f46a6179Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 950f46a6179Smrg ac_prev=htmldir ;; 951f46a6179Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 952f46a6179Smrg | --ht=*) 953f46a6179Smrg htmldir=$ac_optarg ;; 954f46a6179Smrg 955f46a6179Smrg -includedir | --includedir | --includedi | --included | --include \ 956f46a6179Smrg | --includ | --inclu | --incl | --inc) 957f46a6179Smrg ac_prev=includedir ;; 958f46a6179Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 959f46a6179Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 960f46a6179Smrg includedir=$ac_optarg ;; 961f46a6179Smrg 962f46a6179Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 963f46a6179Smrg ac_prev=infodir ;; 964f46a6179Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 965f46a6179Smrg infodir=$ac_optarg ;; 966f46a6179Smrg 967f46a6179Smrg -libdir | --libdir | --libdi | --libd) 968f46a6179Smrg ac_prev=libdir ;; 969f46a6179Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 970f46a6179Smrg libdir=$ac_optarg ;; 971f46a6179Smrg 972f46a6179Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 973f46a6179Smrg | --libexe | --libex | --libe) 974f46a6179Smrg ac_prev=libexecdir ;; 975f46a6179Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 976f46a6179Smrg | --libexe=* | --libex=* | --libe=*) 977f46a6179Smrg libexecdir=$ac_optarg ;; 978f46a6179Smrg 979f46a6179Smrg -localedir | --localedir | --localedi | --localed | --locale) 980f46a6179Smrg ac_prev=localedir ;; 981f46a6179Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 982f46a6179Smrg localedir=$ac_optarg ;; 983f46a6179Smrg 984f46a6179Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 985f46a6179Smrg | --localstate | --localstat | --localsta | --localst | --locals) 986f46a6179Smrg ac_prev=localstatedir ;; 987f46a6179Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 988f46a6179Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 989f46a6179Smrg localstatedir=$ac_optarg ;; 990f46a6179Smrg 991f46a6179Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 992f46a6179Smrg ac_prev=mandir ;; 993f46a6179Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 994f46a6179Smrg mandir=$ac_optarg ;; 995f46a6179Smrg 996f46a6179Smrg -nfp | --nfp | --nf) 997f46a6179Smrg # Obsolete; use --without-fp. 998f46a6179Smrg with_fp=no ;; 999f46a6179Smrg 1000f46a6179Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1001f46a6179Smrg | --no-cr | --no-c | -n) 1002f46a6179Smrg no_create=yes ;; 1003f46a6179Smrg 1004f46a6179Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1005f46a6179Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1006f46a6179Smrg no_recursion=yes ;; 1007f46a6179Smrg 1008f46a6179Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1009f46a6179Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1010f46a6179Smrg | --oldin | --oldi | --old | --ol | --o) 1011f46a6179Smrg ac_prev=oldincludedir ;; 1012f46a6179Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1013f46a6179Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1014f46a6179Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1015f46a6179Smrg oldincludedir=$ac_optarg ;; 1016f46a6179Smrg 1017f46a6179Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1018f46a6179Smrg ac_prev=prefix ;; 1019f46a6179Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1020f46a6179Smrg prefix=$ac_optarg ;; 1021f46a6179Smrg 1022f46a6179Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1023f46a6179Smrg | --program-pre | --program-pr | --program-p) 1024f46a6179Smrg ac_prev=program_prefix ;; 1025f46a6179Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1026f46a6179Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1027f46a6179Smrg program_prefix=$ac_optarg ;; 1028f46a6179Smrg 1029f46a6179Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1030f46a6179Smrg | --program-suf | --program-su | --program-s) 1031f46a6179Smrg ac_prev=program_suffix ;; 1032f46a6179Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1033f46a6179Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1034f46a6179Smrg program_suffix=$ac_optarg ;; 1035f46a6179Smrg 1036f46a6179Smrg -program-transform-name | --program-transform-name \ 1037f46a6179Smrg | --program-transform-nam | --program-transform-na \ 1038f46a6179Smrg | --program-transform-n | --program-transform- \ 1039f46a6179Smrg | --program-transform | --program-transfor \ 1040f46a6179Smrg | --program-transfo | --program-transf \ 1041f46a6179Smrg | --program-trans | --program-tran \ 1042f46a6179Smrg | --progr-tra | --program-tr | --program-t) 1043f46a6179Smrg ac_prev=program_transform_name ;; 1044f46a6179Smrg -program-transform-name=* | --program-transform-name=* \ 1045f46a6179Smrg | --program-transform-nam=* | --program-transform-na=* \ 1046f46a6179Smrg | --program-transform-n=* | --program-transform-=* \ 1047f46a6179Smrg | --program-transform=* | --program-transfor=* \ 1048f46a6179Smrg | --program-transfo=* | --program-transf=* \ 1049f46a6179Smrg | --program-trans=* | --program-tran=* \ 1050f46a6179Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1051f46a6179Smrg program_transform_name=$ac_optarg ;; 1052f46a6179Smrg 1053f46a6179Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1054f46a6179Smrg ac_prev=pdfdir ;; 1055f46a6179Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1056f46a6179Smrg pdfdir=$ac_optarg ;; 1057f46a6179Smrg 1058f46a6179Smrg -psdir | --psdir | --psdi | --psd | --ps) 1059f46a6179Smrg ac_prev=psdir ;; 1060f46a6179Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1061f46a6179Smrg psdir=$ac_optarg ;; 1062f46a6179Smrg 1063f46a6179Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1064f46a6179Smrg | -silent | --silent | --silen | --sile | --sil) 1065f46a6179Smrg silent=yes ;; 1066f46a6179Smrg 1067f46a6179Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1068f46a6179Smrg ac_prev=sbindir ;; 1069f46a6179Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1070f46a6179Smrg | --sbi=* | --sb=*) 1071f46a6179Smrg sbindir=$ac_optarg ;; 1072f46a6179Smrg 1073f46a6179Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1074f46a6179Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1075f46a6179Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1076f46a6179Smrg | --sha | --sh) 1077f46a6179Smrg ac_prev=sharedstatedir ;; 1078f46a6179Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1079f46a6179Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1080f46a6179Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1081f46a6179Smrg | --sha=* | --sh=*) 1082f46a6179Smrg sharedstatedir=$ac_optarg ;; 1083f46a6179Smrg 1084f46a6179Smrg -site | --site | --sit) 1085f46a6179Smrg ac_prev=site ;; 1086f46a6179Smrg -site=* | --site=* | --sit=*) 1087f46a6179Smrg site=$ac_optarg ;; 1088f46a6179Smrg 1089f46a6179Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1090f46a6179Smrg ac_prev=srcdir ;; 1091f46a6179Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1092f46a6179Smrg srcdir=$ac_optarg ;; 1093f46a6179Smrg 1094f46a6179Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1095f46a6179Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1096f46a6179Smrg ac_prev=sysconfdir ;; 1097f46a6179Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1098f46a6179Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1099f46a6179Smrg sysconfdir=$ac_optarg ;; 1100f46a6179Smrg 1101f46a6179Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1102f46a6179Smrg ac_prev=target_alias ;; 1103f46a6179Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1104f46a6179Smrg target_alias=$ac_optarg ;; 1105f46a6179Smrg 1106f46a6179Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1107f46a6179Smrg verbose=yes ;; 1108f46a6179Smrg 1109f46a6179Smrg -version | --version | --versio | --versi | --vers | -V) 1110f46a6179Smrg ac_init_version=: ;; 1111f46a6179Smrg 1112f46a6179Smrg -with-* | --with-*) 111334345a63Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1114f46a6179Smrg # Reject names that are not valid shell variable names. 111534345a63Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 111634345a63Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1117f46a6179Smrg { (exit 1); exit 1; }; } 111834345a63Smrg ac_useropt_orig=$ac_useropt 111934345a63Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 112034345a63Smrg case $ac_user_opts in 112134345a63Smrg *" 112234345a63Smrg"with_$ac_useropt" 112334345a63Smrg"*) ;; 112434345a63Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 112534345a63Smrg ac_unrecognized_sep=', ';; 112634345a63Smrg esac 112734345a63Smrg eval with_$ac_useropt=\$ac_optarg ;; 1128f46a6179Smrg 1129f46a6179Smrg -without-* | --without-*) 113034345a63Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131f46a6179Smrg # Reject names that are not valid shell variable names. 113234345a63Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 113334345a63Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1134f46a6179Smrg { (exit 1); exit 1; }; } 113534345a63Smrg ac_useropt_orig=$ac_useropt 113634345a63Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 113734345a63Smrg case $ac_user_opts in 113834345a63Smrg *" 113934345a63Smrg"with_$ac_useropt" 114034345a63Smrg"*) ;; 114134345a63Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 114234345a63Smrg ac_unrecognized_sep=', ';; 114334345a63Smrg esac 114434345a63Smrg eval with_$ac_useropt=no ;; 1145f46a6179Smrg 1146f46a6179Smrg --x) 1147f46a6179Smrg # Obsolete; use --with-x. 1148f46a6179Smrg with_x=yes ;; 1149f46a6179Smrg 1150f46a6179Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1151f46a6179Smrg | --x-incl | --x-inc | --x-in | --x-i) 1152f46a6179Smrg ac_prev=x_includes ;; 1153f46a6179Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1154f46a6179Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1155f46a6179Smrg x_includes=$ac_optarg ;; 1156f46a6179Smrg 1157f46a6179Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1158f46a6179Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1159f46a6179Smrg ac_prev=x_libraries ;; 1160f46a6179Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1161f46a6179Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1162f46a6179Smrg x_libraries=$ac_optarg ;; 1163f46a6179Smrg 116434345a63Smrg -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1165f46a6179SmrgTry \`$0 --help' for more information." >&2 1166f46a6179Smrg { (exit 1); exit 1; }; } 1167f46a6179Smrg ;; 1168f46a6179Smrg 1169f46a6179Smrg *=*) 1170f46a6179Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1171f46a6179Smrg # Reject names that are not valid shell variable names. 1172f46a6179Smrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 117334345a63Smrg { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1174f46a6179Smrg { (exit 1); exit 1; }; } 1175f46a6179Smrg eval $ac_envvar=\$ac_optarg 1176f46a6179Smrg export $ac_envvar ;; 1177f46a6179Smrg 1178f46a6179Smrg *) 1179f46a6179Smrg # FIXME: should be removed in autoconf 3.0. 118034345a63Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1181f46a6179Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 118234345a63Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1183f46a6179Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1184f46a6179Smrg ;; 1185f46a6179Smrg 1186f46a6179Smrg esac 1187f46a6179Smrgdone 1188f46a6179Smrg 1189f46a6179Smrgif test -n "$ac_prev"; then 1190f46a6179Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 119134345a63Smrg { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1192f46a6179Smrg { (exit 1); exit 1; }; } 1193f46a6179Smrgfi 1194f46a6179Smrg 119534345a63Smrgif test -n "$ac_unrecognized_opts"; then 119634345a63Smrg case $enable_option_checking in 119734345a63Smrg no) ;; 119834345a63Smrg fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 119934345a63Smrg { (exit 1); exit 1; }; } ;; 120034345a63Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 120134345a63Smrg esac 120234345a63Smrgfi 120334345a63Smrg 120434345a63Smrg# Check all directory arguments for consistency. 1205f46a6179Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1206f46a6179Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1207f46a6179Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1208f46a6179Smrg libdir localedir mandir 1209f46a6179Smrgdo 1210f46a6179Smrg eval ac_val=\$$ac_var 121134345a63Smrg # Remove trailing slashes. 121234345a63Smrg case $ac_val in 121334345a63Smrg */ ) 121434345a63Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 121534345a63Smrg eval $ac_var=\$ac_val;; 121634345a63Smrg esac 121734345a63Smrg # Be sure to have absolute directory names. 1218f46a6179Smrg case $ac_val in 1219f46a6179Smrg [\\/$]* | ?:[\\/]* ) continue;; 1220f46a6179Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1221f46a6179Smrg esac 122234345a63Smrg { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1223f46a6179Smrg { (exit 1); exit 1; }; } 1224f46a6179Smrgdone 1225f46a6179Smrg 1226f46a6179Smrg# There might be people who depend on the old broken behavior: `$host' 1227f46a6179Smrg# used to hold the argument of --host etc. 1228f46a6179Smrg# FIXME: To remove some day. 1229f46a6179Smrgbuild=$build_alias 1230f46a6179Smrghost=$host_alias 1231f46a6179Smrgtarget=$target_alias 1232f46a6179Smrg 1233f46a6179Smrg# FIXME: To remove some day. 1234f46a6179Smrgif test "x$host_alias" != x; then 1235f46a6179Smrg if test "x$build_alias" = x; then 1236f46a6179Smrg cross_compiling=maybe 123734345a63Smrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1238f46a6179Smrg If a cross compiler is detected then cross compile mode will be used." >&2 1239f46a6179Smrg elif test "x$build_alias" != "x$host_alias"; then 1240f46a6179Smrg cross_compiling=yes 1241f46a6179Smrg fi 1242f46a6179Smrgfi 1243f46a6179Smrg 1244f46a6179Smrgac_tool_prefix= 1245f46a6179Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1246f46a6179Smrg 1247f46a6179Smrgtest "$silent" = yes && exec 6>/dev/null 1248f46a6179Smrg 1249f46a6179Smrg 1250f46a6179Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1251f46a6179Smrgac_ls_di=`ls -di .` && 1252f46a6179Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 125334345a63Smrg { $as_echo "$as_me: error: working directory cannot be determined" >&2 1254f46a6179Smrg { (exit 1); exit 1; }; } 1255f46a6179Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 125634345a63Smrg { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1257f46a6179Smrg { (exit 1); exit 1; }; } 1258f46a6179Smrg 1259f46a6179Smrg 1260f46a6179Smrg# Find the source files, if location was not specified. 1261f46a6179Smrgif test -z "$srcdir"; then 1262f46a6179Smrg ac_srcdir_defaulted=yes 1263f46a6179Smrg # Try the directory containing this script, then the parent directory. 126434345a63Smrg ac_confdir=`$as_dirname -- "$as_myself" || 126534345a63Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126634345a63Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 126734345a63Smrg X"$as_myself" : 'X\(//\)$' \| \ 126834345a63Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 126934345a63Smrg$as_echo X"$as_myself" | 1270f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1271f46a6179Smrg s//\1/ 1272f46a6179Smrg q 1273f46a6179Smrg } 1274f46a6179Smrg /^X\(\/\/\)[^/].*/{ 1275f46a6179Smrg s//\1/ 1276f46a6179Smrg q 1277f46a6179Smrg } 1278f46a6179Smrg /^X\(\/\/\)$/{ 1279f46a6179Smrg s//\1/ 1280f46a6179Smrg q 1281f46a6179Smrg } 1282f46a6179Smrg /^X\(\/\).*/{ 1283f46a6179Smrg s//\1/ 1284f46a6179Smrg q 1285f46a6179Smrg } 1286f46a6179Smrg s/.*/./; q'` 1287f46a6179Smrg srcdir=$ac_confdir 1288f46a6179Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1289f46a6179Smrg srcdir=.. 1290f46a6179Smrg fi 1291f46a6179Smrgelse 1292f46a6179Smrg ac_srcdir_defaulted=no 1293f46a6179Smrgfi 1294f46a6179Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1295f46a6179Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 129634345a63Smrg { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1297f46a6179Smrg { (exit 1); exit 1; }; } 1298f46a6179Smrgfi 1299f46a6179Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1300f46a6179Smrgac_abs_confdir=`( 130134345a63Smrg cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1302f46a6179Smrg { (exit 1); exit 1; }; } 1303f46a6179Smrg pwd)` 1304f46a6179Smrg# When building in place, set srcdir=. 1305f46a6179Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1306f46a6179Smrg srcdir=. 1307f46a6179Smrgfi 1308f46a6179Smrg# Remove unnecessary trailing slashes from srcdir. 1309f46a6179Smrg# Double slashes in file names in object file debugging info 1310f46a6179Smrg# mess up M-x gdb in Emacs. 1311f46a6179Smrgcase $srcdir in 1312f46a6179Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313f46a6179Smrgesac 1314f46a6179Smrgfor ac_var in $ac_precious_vars; do 1315f46a6179Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316f46a6179Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1317f46a6179Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318f46a6179Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319f46a6179Smrgdone 1320f46a6179Smrg 1321f46a6179Smrg# 1322f46a6179Smrg# Report the --help message. 1323f46a6179Smrg# 1324f46a6179Smrgif test "$ac_init_help" = "long"; then 1325f46a6179Smrg # Omit some internal or obsolete options to make the list less imposing. 1326f46a6179Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1327f46a6179Smrg cat <<_ACEOF 132834345a63Smrg\`configure' configures xkbcomp 1.1.0 to adapt to many kinds of systems. 1329f46a6179Smrg 1330f46a6179SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1331f46a6179Smrg 1332f46a6179SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1333f46a6179SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1334f46a6179Smrg 1335f46a6179SmrgDefaults for the options are specified in brackets. 1336f46a6179Smrg 1337f46a6179SmrgConfiguration: 1338f46a6179Smrg -h, --help display this help and exit 1339f46a6179Smrg --help=short display options specific to this package 1340f46a6179Smrg --help=recursive display the short help of all the included packages 1341f46a6179Smrg -V, --version display version information and exit 1342f46a6179Smrg -q, --quiet, --silent do not print \`checking...' messages 1343f46a6179Smrg --cache-file=FILE cache test results in FILE [disabled] 1344f46a6179Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1345f46a6179Smrg -n, --no-create do not create output files 1346f46a6179Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347f46a6179Smrg 1348f46a6179SmrgInstallation directories: 1349f46a6179Smrg --prefix=PREFIX install architecture-independent files in PREFIX 135034345a63Smrg [$ac_default_prefix] 1351f46a6179Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 135234345a63Smrg [PREFIX] 1353f46a6179Smrg 1354f46a6179SmrgBy default, \`make install' will install all the files in 1355f46a6179Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356f46a6179Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357f46a6179Smrgfor instance \`--prefix=\$HOME'. 1358f46a6179Smrg 1359f46a6179SmrgFor better control, use the options below. 1360f46a6179Smrg 1361f46a6179SmrgFine tuning of the installation directories: 136234345a63Smrg --bindir=DIR user executables [EPREFIX/bin] 136334345a63Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 136434345a63Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 136534345a63Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 136634345a63Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 136734345a63Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 136834345a63Smrg --libdir=DIR object code libraries [EPREFIX/lib] 136934345a63Smrg --includedir=DIR C header files [PREFIX/include] 137034345a63Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 137134345a63Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 137234345a63Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 137334345a63Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 137434345a63Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 137534345a63Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 137634345a63Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp] 137734345a63Smrg --htmldir=DIR html documentation [DOCDIR] 137834345a63Smrg --dvidir=DIR dvi documentation [DOCDIR] 137934345a63Smrg --pdfdir=DIR pdf documentation [DOCDIR] 138034345a63Smrg --psdir=DIR ps documentation [DOCDIR] 1381f46a6179Smrg_ACEOF 1382f46a6179Smrg 1383f46a6179Smrg cat <<\_ACEOF 1384f46a6179Smrg 1385f46a6179SmrgProgram names: 1386f46a6179Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1387f46a6179Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1388f46a6179Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1389f46a6179Smrg 1390f46a6179SmrgSystem types: 1391f46a6179Smrg --build=BUILD configure for building on BUILD [guessed] 1392f46a6179Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1393f46a6179Smrg_ACEOF 1394f46a6179Smrgfi 1395f46a6179Smrg 1396f46a6179Smrgif test -n "$ac_init_help"; then 1397f46a6179Smrg case $ac_init_help in 139834345a63Smrg short | recursive ) echo "Configuration of xkbcomp 1.1.0:";; 1399f46a6179Smrg esac 1400f46a6179Smrg cat <<\_ACEOF 1401f46a6179Smrg 1402f46a6179SmrgOptional Features: 140334345a63Smrg --disable-option-checking ignore unrecognized --enable/--with options 1404f46a6179Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1405f46a6179Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1406f46a6179Smrg --enable-maintainer-mode enable make rules and dependencies not useful 1407f46a6179Smrg (and sometimes confusing) to the casual installer 1408f46a6179Smrg --disable-dependency-tracking speeds up one-time build 1409f46a6179Smrg --enable-dependency-tracking do not reject slow dependency extractors 1410f46a6179Smrg 1411f46a6179SmrgOptional Packages: 1412f46a6179Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1413f46a6179Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 141434345a63Smrg --with-xkb-config-root=<paths> 141534345a63Smrg Set default XKB config root (default: 141634345a63Smrg ${datadir}/X11/xkb) 1417f46a6179Smrg --with-release-version=STRING 1418f46a6179Smrg Use release version string in package name 1419f46a6179Smrg 1420f46a6179SmrgSome influential environment variables: 1421f46a6179Smrg CC C compiler command 1422f46a6179Smrg CFLAGS C compiler flags 1423f46a6179Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1424f46a6179Smrg nonstandard directory <lib dir> 1425f46a6179Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1426f46a6179Smrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1427f46a6179Smrg you have headers in a nonstandard directory <include dir> 1428f46a6179Smrg YACC The `Yet Another C Compiler' implementation to use. Defaults to 1429f46a6179Smrg the first program found out of: `bison -y', `byacc', `yacc'. 1430f46a6179Smrg YFLAGS The list of arguments that will be passed by default to $YACC. 1431f46a6179Smrg This script will default YFLAGS to the empty string to avoid a 1432f46a6179Smrg default value of `-d' given by some make applications. 143334345a63Smrg CPP C preprocessor 1434f46a6179Smrg PKG_CONFIG path to pkg-config utility 1435f46a6179Smrg XKBCOMP_CFLAGS 1436f46a6179Smrg C compiler flags for XKBCOMP, overriding pkg-config 1437f46a6179Smrg XKBCOMP_LIBS 1438f46a6179Smrg linker flags for XKBCOMP, overriding pkg-config 1439f46a6179Smrg 1440f46a6179SmrgUse these variables to override the choices made by `configure' or to help 1441f46a6179Smrgit to find libraries and programs with nonstandard names/locations. 1442f46a6179Smrg 1443f46a6179SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1444f46a6179Smrg_ACEOF 1445f46a6179Smrgac_status=$? 1446f46a6179Smrgfi 1447f46a6179Smrg 1448f46a6179Smrgif test "$ac_init_help" = "recursive"; then 1449f46a6179Smrg # If there are subdirs, report their specific --help. 1450f46a6179Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 145134345a63Smrg test -d "$ac_dir" || 145234345a63Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 145334345a63Smrg continue 1454f46a6179Smrg ac_builddir=. 1455f46a6179Smrg 1456f46a6179Smrgcase "$ac_dir" in 1457f46a6179Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458f46a6179Smrg*) 145934345a63Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1460f46a6179Smrg # A ".." for each directory in $ac_dir_suffix. 146134345a63Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1462f46a6179Smrg case $ac_top_builddir_sub in 1463f46a6179Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464f46a6179Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1465f46a6179Smrg esac ;; 1466f46a6179Smrgesac 1467f46a6179Smrgac_abs_top_builddir=$ac_pwd 1468f46a6179Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1469f46a6179Smrg# for backward compatibility: 1470f46a6179Smrgac_top_builddir=$ac_top_build_prefix 1471f46a6179Smrg 1472f46a6179Smrgcase $srcdir in 1473f46a6179Smrg .) # We are building in place. 1474f46a6179Smrg ac_srcdir=. 1475f46a6179Smrg ac_top_srcdir=$ac_top_builddir_sub 1476f46a6179Smrg ac_abs_top_srcdir=$ac_pwd ;; 1477f46a6179Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1478f46a6179Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1479f46a6179Smrg ac_top_srcdir=$srcdir 1480f46a6179Smrg ac_abs_top_srcdir=$srcdir ;; 1481f46a6179Smrg *) # Relative name. 1482f46a6179Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1483f46a6179Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1484f46a6179Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1485f46a6179Smrgesac 1486f46a6179Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1487f46a6179Smrg 1488f46a6179Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1489f46a6179Smrg # Check for guested configure. 1490f46a6179Smrg if test -f "$ac_srcdir/configure.gnu"; then 1491f46a6179Smrg echo && 1492f46a6179Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1493f46a6179Smrg elif test -f "$ac_srcdir/configure"; then 1494f46a6179Smrg echo && 1495f46a6179Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1496f46a6179Smrg else 149734345a63Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1498f46a6179Smrg fi || ac_status=$? 1499f46a6179Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1500f46a6179Smrg done 1501f46a6179Smrgfi 1502f46a6179Smrg 1503f46a6179Smrgtest -n "$ac_init_help" && exit $ac_status 1504f46a6179Smrgif $ac_init_version; then 1505f46a6179Smrg cat <<\_ACEOF 150634345a63Smrgxkbcomp configure 1.1.0 150734345a63Smrggenerated by GNU Autoconf 2.63 1508f46a6179Smrg 1509f46a6179SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 151034345a63Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1511f46a6179SmrgThis configure script is free software; the Free Software Foundation 1512f46a6179Smrggives unlimited permission to copy, distribute and modify it. 1513f46a6179Smrg_ACEOF 1514f46a6179Smrg exit 1515f46a6179Smrgfi 1516f46a6179Smrgcat >config.log <<_ACEOF 1517f46a6179SmrgThis file contains any messages produced by compilers while 1518f46a6179Smrgrunning configure, to aid debugging if configure makes a mistake. 1519f46a6179Smrg 152034345a63SmrgIt was created by xkbcomp $as_me 1.1.0, which was 152134345a63Smrggenerated by GNU Autoconf 2.63. Invocation command line was 1522f46a6179Smrg 1523f46a6179Smrg $ $0 $@ 1524f46a6179Smrg 1525f46a6179Smrg_ACEOF 1526f46a6179Smrgexec 5>>config.log 1527f46a6179Smrg{ 1528f46a6179Smrgcat <<_ASUNAME 1529f46a6179Smrg## --------- ## 1530f46a6179Smrg## Platform. ## 1531f46a6179Smrg## --------- ## 1532f46a6179Smrg 1533f46a6179Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1534f46a6179Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1535f46a6179Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1536f46a6179Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1537f46a6179Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1538f46a6179Smrg 1539f46a6179Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1540f46a6179Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1541f46a6179Smrg 1542f46a6179Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1543f46a6179Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1544f46a6179Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1545f46a6179Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1546f46a6179Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1547f46a6179Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1548f46a6179Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1549f46a6179Smrg 1550f46a6179Smrg_ASUNAME 1551f46a6179Smrg 1552f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1553f46a6179Smrgfor as_dir in $PATH 1554f46a6179Smrgdo 1555f46a6179Smrg IFS=$as_save_IFS 1556f46a6179Smrg test -z "$as_dir" && as_dir=. 155734345a63Smrg $as_echo "PATH: $as_dir" 1558f46a6179Smrgdone 1559f46a6179SmrgIFS=$as_save_IFS 1560f46a6179Smrg 1561f46a6179Smrg} >&5 1562f46a6179Smrg 1563f46a6179Smrgcat >&5 <<_ACEOF 1564f46a6179Smrg 1565f46a6179Smrg 1566f46a6179Smrg## ----------- ## 1567f46a6179Smrg## Core tests. ## 1568f46a6179Smrg## ----------- ## 1569f46a6179Smrg 1570f46a6179Smrg_ACEOF 1571f46a6179Smrg 1572f46a6179Smrg 1573f46a6179Smrg# Keep a trace of the command line. 1574f46a6179Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1575f46a6179Smrg# Strip out --silent because we don't want to record it for future runs. 1576f46a6179Smrg# Also quote any args containing shell meta-characters. 1577f46a6179Smrg# Make two passes to allow for proper duplicate-argument suppression. 1578f46a6179Smrgac_configure_args= 1579f46a6179Smrgac_configure_args0= 1580f46a6179Smrgac_configure_args1= 1581f46a6179Smrgac_must_keep_next=false 1582f46a6179Smrgfor ac_pass in 1 2 1583f46a6179Smrgdo 1584f46a6179Smrg for ac_arg 1585f46a6179Smrg do 1586f46a6179Smrg case $ac_arg in 1587f46a6179Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1588f46a6179Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1589f46a6179Smrg | -silent | --silent | --silen | --sile | --sil) 1590f46a6179Smrg continue ;; 1591f46a6179Smrg *\'*) 159234345a63Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1593f46a6179Smrg esac 1594f46a6179Smrg case $ac_pass in 1595f46a6179Smrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1596f46a6179Smrg 2) 1597f46a6179Smrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1598f46a6179Smrg if test $ac_must_keep_next = true; then 1599f46a6179Smrg ac_must_keep_next=false # Got value, back to normal. 1600f46a6179Smrg else 1601f46a6179Smrg case $ac_arg in 1602f46a6179Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1603f46a6179Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1604f46a6179Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1605f46a6179Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1606f46a6179Smrg case "$ac_configure_args0 " in 1607f46a6179Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1608f46a6179Smrg esac 1609f46a6179Smrg ;; 1610f46a6179Smrg -* ) ac_must_keep_next=true ;; 1611f46a6179Smrg esac 1612f46a6179Smrg fi 1613f46a6179Smrg ac_configure_args="$ac_configure_args '$ac_arg'" 1614f46a6179Smrg ;; 1615f46a6179Smrg esac 1616f46a6179Smrg done 1617f46a6179Smrgdone 1618f46a6179Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1619f46a6179Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1620f46a6179Smrg 1621f46a6179Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1622f46a6179Smrg# config.log. We remove comments because anyway the quotes in there 1623f46a6179Smrg# would cause problems or look ugly. 1624f46a6179Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1625f46a6179Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1626f46a6179Smrgtrap 'exit_status=$? 1627f46a6179Smrg # Save into config.log some information that might help in debugging. 1628f46a6179Smrg { 1629f46a6179Smrg echo 1630f46a6179Smrg 1631f46a6179Smrg cat <<\_ASBOX 1632f46a6179Smrg## ---------------- ## 1633f46a6179Smrg## Cache variables. ## 1634f46a6179Smrg## ---------------- ## 1635f46a6179Smrg_ASBOX 1636f46a6179Smrg echo 1637f46a6179Smrg # The following way of writing the cache mishandles newlines in values, 1638f46a6179Smrg( 1639f46a6179Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1640f46a6179Smrg eval ac_val=\$$ac_var 1641f46a6179Smrg case $ac_val in #( 1642f46a6179Smrg *${as_nl}*) 1643f46a6179Smrg case $ac_var in #( 164434345a63Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 164534345a63Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1646f46a6179Smrg esac 1647f46a6179Smrg case $ac_var in #( 1648f46a6179Smrg _ | IFS | as_nl) ;; #( 164934345a63Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1650f46a6179Smrg *) $as_unset $ac_var ;; 1651f46a6179Smrg esac ;; 1652f46a6179Smrg esac 1653f46a6179Smrg done 1654f46a6179Smrg (set) 2>&1 | 1655f46a6179Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1656f46a6179Smrg *${as_nl}ac_space=\ *) 1657f46a6179Smrg sed -n \ 1658f46a6179Smrg "s/'\''/'\''\\\\'\'''\''/g; 1659f46a6179Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1660f46a6179Smrg ;; #( 1661f46a6179Smrg *) 1662f46a6179Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1663f46a6179Smrg ;; 1664f46a6179Smrg esac | 1665f46a6179Smrg sort 1666f46a6179Smrg) 1667f46a6179Smrg echo 1668f46a6179Smrg 1669f46a6179Smrg cat <<\_ASBOX 1670f46a6179Smrg## ----------------- ## 1671f46a6179Smrg## Output variables. ## 1672f46a6179Smrg## ----------------- ## 1673f46a6179Smrg_ASBOX 1674f46a6179Smrg echo 1675f46a6179Smrg for ac_var in $ac_subst_vars 1676f46a6179Smrg do 1677f46a6179Smrg eval ac_val=\$$ac_var 1678f46a6179Smrg case $ac_val in 167934345a63Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1680f46a6179Smrg esac 168134345a63Smrg $as_echo "$ac_var='\''$ac_val'\''" 1682f46a6179Smrg done | sort 1683f46a6179Smrg echo 1684f46a6179Smrg 1685f46a6179Smrg if test -n "$ac_subst_files"; then 1686f46a6179Smrg cat <<\_ASBOX 1687f46a6179Smrg## ------------------- ## 1688f46a6179Smrg## File substitutions. ## 1689f46a6179Smrg## ------------------- ## 1690f46a6179Smrg_ASBOX 1691f46a6179Smrg echo 1692f46a6179Smrg for ac_var in $ac_subst_files 1693f46a6179Smrg do 1694f46a6179Smrg eval ac_val=\$$ac_var 1695f46a6179Smrg case $ac_val in 169634345a63Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1697f46a6179Smrg esac 169834345a63Smrg $as_echo "$ac_var='\''$ac_val'\''" 1699f46a6179Smrg done | sort 1700f46a6179Smrg echo 1701f46a6179Smrg fi 1702f46a6179Smrg 1703f46a6179Smrg if test -s confdefs.h; then 1704f46a6179Smrg cat <<\_ASBOX 1705f46a6179Smrg## ----------- ## 1706f46a6179Smrg## confdefs.h. ## 1707f46a6179Smrg## ----------- ## 1708f46a6179Smrg_ASBOX 1709f46a6179Smrg echo 1710f46a6179Smrg cat confdefs.h 1711f46a6179Smrg echo 1712f46a6179Smrg fi 1713f46a6179Smrg test "$ac_signal" != 0 && 171434345a63Smrg $as_echo "$as_me: caught signal $ac_signal" 171534345a63Smrg $as_echo "$as_me: exit $exit_status" 1716f46a6179Smrg } >&5 1717f46a6179Smrg rm -f core *.core core.conftest.* && 1718f46a6179Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1719f46a6179Smrg exit $exit_status 1720f46a6179Smrg' 0 1721f46a6179Smrgfor ac_signal in 1 2 13 15; do 1722f46a6179Smrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1723f46a6179Smrgdone 1724f46a6179Smrgac_signal=0 1725f46a6179Smrg 1726f46a6179Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1727f46a6179Smrgrm -f -r conftest* confdefs.h 1728f46a6179Smrg 1729f46a6179Smrg# Predefined preprocessor variables. 1730f46a6179Smrg 1731f46a6179Smrgcat >>confdefs.h <<_ACEOF 1732f46a6179Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 1733f46a6179Smrg_ACEOF 1734f46a6179Smrg 1735f46a6179Smrg 1736f46a6179Smrgcat >>confdefs.h <<_ACEOF 1737f46a6179Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1738f46a6179Smrg_ACEOF 1739f46a6179Smrg 1740f46a6179Smrg 1741f46a6179Smrgcat >>confdefs.h <<_ACEOF 1742f46a6179Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1743f46a6179Smrg_ACEOF 1744f46a6179Smrg 1745f46a6179Smrg 1746f46a6179Smrgcat >>confdefs.h <<_ACEOF 1747f46a6179Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 1748f46a6179Smrg_ACEOF 1749f46a6179Smrg 1750f46a6179Smrg 1751f46a6179Smrgcat >>confdefs.h <<_ACEOF 1752f46a6179Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1753f46a6179Smrg_ACEOF 1754f46a6179Smrg 1755f46a6179Smrg 1756f46a6179Smrg# Let the site file select an alternate cache file if it wants to. 175734345a63Smrg# Prefer an explicitly selected file to automatically selected ones. 175834345a63Smrgac_site_file1=NONE 175934345a63Smrgac_site_file2=NONE 1760f46a6179Smrgif test -n "$CONFIG_SITE"; then 176134345a63Smrg ac_site_file1=$CONFIG_SITE 1762f46a6179Smrgelif test "x$prefix" != xNONE; then 176334345a63Smrg ac_site_file1=$prefix/share/config.site 176434345a63Smrg ac_site_file2=$prefix/etc/config.site 1765f46a6179Smrgelse 176634345a63Smrg ac_site_file1=$ac_default_prefix/share/config.site 176734345a63Smrg ac_site_file2=$ac_default_prefix/etc/config.site 1768f46a6179Smrgfi 176934345a63Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1770f46a6179Smrgdo 177134345a63Smrg test "x$ac_site_file" = xNONE && continue 1772f46a6179Smrg if test -r "$ac_site_file"; then 177334345a63Smrg { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 177434345a63Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1775f46a6179Smrg sed 's/^/| /' "$ac_site_file" >&5 1776f46a6179Smrg . "$ac_site_file" 1777f46a6179Smrg fi 1778f46a6179Smrgdone 1779f46a6179Smrg 1780f46a6179Smrgif test -r "$cache_file"; then 1781f46a6179Smrg # Some versions of bash will fail to source /dev/null (special 1782f46a6179Smrg # files actually), so we avoid doing that. 1783f46a6179Smrg if test -f "$cache_file"; then 178434345a63Smrg { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 178534345a63Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 1786f46a6179Smrg case $cache_file in 1787f46a6179Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1788f46a6179Smrg *) . "./$cache_file";; 1789f46a6179Smrg esac 1790f46a6179Smrg fi 1791f46a6179Smrgelse 179234345a63Smrg { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 179334345a63Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 1794f46a6179Smrg >$cache_file 1795f46a6179Smrgfi 1796f46a6179Smrg 1797f46a6179Smrg# Check that the precious variables saved in the cache have kept the same 1798f46a6179Smrg# value. 1799f46a6179Smrgac_cache_corrupted=false 1800f46a6179Smrgfor ac_var in $ac_precious_vars; do 1801f46a6179Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 1802f46a6179Smrg eval ac_new_set=\$ac_env_${ac_var}_set 1803f46a6179Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 1804f46a6179Smrg eval ac_new_val=\$ac_env_${ac_var}_value 1805f46a6179Smrg case $ac_old_set,$ac_new_set in 1806f46a6179Smrg set,) 180734345a63Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 180834345a63Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1809f46a6179Smrg ac_cache_corrupted=: ;; 1810f46a6179Smrg ,set) 181134345a63Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 181234345a63Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1813f46a6179Smrg ac_cache_corrupted=: ;; 1814f46a6179Smrg ,);; 1815f46a6179Smrg *) 1816f46a6179Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 181734345a63Smrg # differences in whitespace do not lead to failure. 181834345a63Smrg ac_old_val_w=`echo x $ac_old_val` 181934345a63Smrg ac_new_val_w=`echo x $ac_new_val` 182034345a63Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 182134345a63Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 182234345a63Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 182334345a63Smrg ac_cache_corrupted=: 182434345a63Smrg else 182534345a63Smrg { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 182634345a63Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 182734345a63Smrg eval $ac_var=\$ac_old_val 182834345a63Smrg fi 182934345a63Smrg { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 183034345a63Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 183134345a63Smrg { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 183234345a63Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1833f46a6179Smrg fi;; 1834f46a6179Smrg esac 1835f46a6179Smrg # Pass precious variables to config.status. 1836f46a6179Smrg if test "$ac_new_set" = set; then 1837f46a6179Smrg case $ac_new_val in 183834345a63Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1839f46a6179Smrg *) ac_arg=$ac_var=$ac_new_val ;; 1840f46a6179Smrg esac 1841f46a6179Smrg case " $ac_configure_args " in 1842f46a6179Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1843f46a6179Smrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1844f46a6179Smrg esac 1845f46a6179Smrg fi 1846f46a6179Smrgdone 1847f46a6179Smrgif $ac_cache_corrupted; then 184834345a63Smrg { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 184934345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 185034345a63Smrg { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 185134345a63Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 185234345a63Smrg { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 185334345a63Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1854f46a6179Smrg { (exit 1); exit 1; }; } 1855f46a6179Smrgfi 1856f46a6179Smrg 1857f46a6179Smrg 1858f46a6179Smrg 1859f46a6179Smrg 1860f46a6179Smrg 1861f46a6179Smrg 1862f46a6179Smrg 1863f46a6179Smrg 1864f46a6179Smrg 1865f46a6179Smrg 1866f46a6179Smrg 1867f46a6179Smrg 1868f46a6179Smrg 1869f46a6179Smrg 1870f46a6179Smrg 1871f46a6179Smrg 1872f46a6179Smrg 1873f46a6179Smrg 1874f46a6179Smrg 1875f46a6179Smrg 1876f46a6179Smrg 1877f46a6179Smrg 1878f46a6179Smrg 1879f46a6179Smrg 1880f46a6179Smrg 1881f46a6179Smrgac_ext=c 1882f46a6179Smrgac_cpp='$CPP $CPPFLAGS' 1883f46a6179Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1884f46a6179Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1885f46a6179Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 1886f46a6179Smrg 1887f46a6179Smrg 188834345a63Smrgam__api_version='1.11' 1889f46a6179Smrg 1890f46a6179Smrgac_aux_dir= 1891f46a6179Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1892f46a6179Smrg if test -f "$ac_dir/install-sh"; then 1893f46a6179Smrg ac_aux_dir=$ac_dir 1894f46a6179Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 1895f46a6179Smrg break 1896f46a6179Smrg elif test -f "$ac_dir/install.sh"; then 1897f46a6179Smrg ac_aux_dir=$ac_dir 1898f46a6179Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 1899f46a6179Smrg break 1900f46a6179Smrg elif test -f "$ac_dir/shtool"; then 1901f46a6179Smrg ac_aux_dir=$ac_dir 1902f46a6179Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 1903f46a6179Smrg break 1904f46a6179Smrg fi 1905f46a6179Smrgdone 1906f46a6179Smrgif test -z "$ac_aux_dir"; then 190734345a63Smrg { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 190834345a63Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1909f46a6179Smrg { (exit 1); exit 1; }; } 1910f46a6179Smrgfi 1911f46a6179Smrg 1912f46a6179Smrg# These three variables are undocumented and unsupported, 1913f46a6179Smrg# and are intended to be withdrawn in a future Autoconf release. 1914f46a6179Smrg# They can cause serious problems if a builder's source tree is in a directory 1915f46a6179Smrg# whose full name contains unusual characters. 1916f46a6179Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1917f46a6179Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1918f46a6179Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1919f46a6179Smrg 1920f46a6179Smrg 1921f46a6179Smrg# Find a good install program. We prefer a C program (faster), 1922f46a6179Smrg# so one script is as good as another. But avoid the broken or 1923f46a6179Smrg# incompatible versions: 1924f46a6179Smrg# SysV /etc/install, /usr/sbin/install 1925f46a6179Smrg# SunOS /usr/etc/install 1926f46a6179Smrg# IRIX /sbin/install 1927f46a6179Smrg# AIX /bin/install 1928f46a6179Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 1929f46a6179Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1930f46a6179Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1931f46a6179Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1932f46a6179Smrg# OS/2's system install, which has a completely different semantic 1933f46a6179Smrg# ./install, which can be erroneously created by make from ./install.sh. 193434345a63Smrg# Reject install programs that cannot install multiple files. 193534345a63Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 193634345a63Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 1937f46a6179Smrgif test -z "$INSTALL"; then 1938f46a6179Smrgif test "${ac_cv_path_install+set}" = set; then 193934345a63Smrg $as_echo_n "(cached) " >&6 1940f46a6179Smrgelse 1941f46a6179Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1942f46a6179Smrgfor as_dir in $PATH 1943f46a6179Smrgdo 1944f46a6179Smrg IFS=$as_save_IFS 1945f46a6179Smrg test -z "$as_dir" && as_dir=. 1946f46a6179Smrg # Account for people who put trailing slashes in PATH elements. 1947f46a6179Smrgcase $as_dir/ in 1948f46a6179Smrg ./ | .// | /cC/* | \ 1949f46a6179Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1950f46a6179Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1951f46a6179Smrg /usr/ucb/* ) ;; 1952f46a6179Smrg *) 1953f46a6179Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 1954f46a6179Smrg # Don't use installbsd from OSF since it installs stuff as root 1955f46a6179Smrg # by default. 1956f46a6179Smrg for ac_prog in ginstall scoinst install; do 1957f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1958f46a6179Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1959f46a6179Smrg if test $ac_prog = install && 1960f46a6179Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1961f46a6179Smrg # AIX install. It has an incompatible calling convention. 1962f46a6179Smrg : 1963f46a6179Smrg elif test $ac_prog = install && 1964f46a6179Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1965f46a6179Smrg # program-specific install script used by HP pwplus--don't use. 1966f46a6179Smrg : 1967f46a6179Smrg else 196834345a63Smrg rm -rf conftest.one conftest.two conftest.dir 196934345a63Smrg echo one > conftest.one 197034345a63Smrg echo two > conftest.two 197134345a63Smrg mkdir conftest.dir 197234345a63Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 197334345a63Smrg test -s conftest.one && test -s conftest.two && 197434345a63Smrg test -s conftest.dir/conftest.one && 197534345a63Smrg test -s conftest.dir/conftest.two 197634345a63Smrg then 197734345a63Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 197834345a63Smrg break 3 197934345a63Smrg fi 1980f46a6179Smrg fi 1981f46a6179Smrg fi 1982f46a6179Smrg done 1983f46a6179Smrg done 1984f46a6179Smrg ;; 1985f46a6179Smrgesac 198634345a63Smrg 1987f46a6179Smrgdone 1988f46a6179SmrgIFS=$as_save_IFS 1989f46a6179Smrg 199034345a63Smrgrm -rf conftest.one conftest.two conftest.dir 1991f46a6179Smrg 1992f46a6179Smrgfi 1993f46a6179Smrg if test "${ac_cv_path_install+set}" = set; then 1994f46a6179Smrg INSTALL=$ac_cv_path_install 1995f46a6179Smrg else 1996f46a6179Smrg # As a last resort, use the slow shell script. Don't cache a 1997f46a6179Smrg # value for INSTALL within a source directory, because that will 1998f46a6179Smrg # break other packages using the cache if that directory is 1999f46a6179Smrg # removed, or if the value is a relative name. 2000f46a6179Smrg INSTALL=$ac_install_sh 2001f46a6179Smrg fi 2002f46a6179Smrgfi 200334345a63Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 200434345a63Smrg$as_echo "$INSTALL" >&6; } 2005f46a6179Smrg 2006f46a6179Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2007f46a6179Smrg# It thinks the first close brace ends the variable substitution. 2008f46a6179Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2009f46a6179Smrg 2010f46a6179Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2011f46a6179Smrg 2012f46a6179Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2013f46a6179Smrg 201434345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 201534345a63Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2016f46a6179Smrg# Just in case 2017f46a6179Smrgsleep 1 2018f46a6179Smrgecho timestamp > conftest.file 201934345a63Smrg# Reject unsafe characters in $srcdir or the absolute working directory 202034345a63Smrg# name. Accept space and tab only in the latter. 202134345a63Smrgam_lf=' 202234345a63Smrg' 202334345a63Smrgcase `pwd` in 202434345a63Smrg *[\\\"\#\$\&\'\`$am_lf]*) 202534345a63Smrg { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 202634345a63Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 202734345a63Smrg { (exit 1); exit 1; }; };; 202834345a63Smrgesac 202934345a63Smrgcase $srcdir in 203034345a63Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 203134345a63Smrg { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 203234345a63Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 203334345a63Smrg { (exit 1); exit 1; }; };; 203434345a63Smrgesac 203534345a63Smrg 2036f46a6179Smrg# Do `set' in a subshell so we don't clobber the current shell's 2037f46a6179Smrg# arguments. Must try -L first in case configure is actually a 2038f46a6179Smrg# symlink; some systems play weird games with the mod time of symlinks 2039f46a6179Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2040f46a6179Smrg# directory). 2041f46a6179Smrgif ( 204234345a63Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2043f46a6179Smrg if test "$*" = "X"; then 2044f46a6179Smrg # -L didn't work. 204534345a63Smrg set X `ls -t "$srcdir/configure" conftest.file` 2046f46a6179Smrg fi 2047f46a6179Smrg rm -f conftest.file 2048f46a6179Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 2049f46a6179Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 2050f46a6179Smrg 2051f46a6179Smrg # If neither matched, then we have a broken ls. This can happen 2052f46a6179Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2053f46a6179Smrg # broken ls alias from the environment. This has actually 2054f46a6179Smrg # happened. Such a system could not be considered "sane". 205534345a63Smrg { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2056f46a6179Smrgalias in your environment" >&5 205734345a63Smrg$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2058f46a6179Smrgalias in your environment" >&2;} 2059f46a6179Smrg { (exit 1); exit 1; }; } 2060f46a6179Smrg fi 2061f46a6179Smrg 2062f46a6179Smrg test "$2" = conftest.file 2063f46a6179Smrg ) 2064f46a6179Smrgthen 2065f46a6179Smrg # Ok. 2066f46a6179Smrg : 2067f46a6179Smrgelse 206834345a63Smrg { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2069f46a6179SmrgCheck your system clock" >&5 207034345a63Smrg$as_echo "$as_me: error: newly created file is older than distributed files! 2071f46a6179SmrgCheck your system clock" >&2;} 2072f46a6179Smrg { (exit 1); exit 1; }; } 2073f46a6179Smrgfi 207434345a63Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 207534345a63Smrg$as_echo "yes" >&6; } 2076f46a6179Smrgtest "$program_prefix" != NONE && 2077f46a6179Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2078f46a6179Smrg# Use a double $ so make ignores it. 2079f46a6179Smrgtest "$program_suffix" != NONE && 2080f46a6179Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 208134345a63Smrg# Double any \ or $. 2082f46a6179Smrg# By default was `s,x,x', remove it if useless. 208334345a63Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 208434345a63Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2085f46a6179Smrg 2086f46a6179Smrg# expand $ac_aux_dir to an absolute path 2087f46a6179Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 2088f46a6179Smrg 208934345a63Smrgif test x"${MISSING+set}" != xset; then 209034345a63Smrg case $am_aux_dir in 209134345a63Smrg *\ * | *\ *) 209234345a63Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 209334345a63Smrg *) 209434345a63Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 209534345a63Smrg esac 209634345a63Smrgfi 2097f46a6179Smrg# Use eval to expand $SHELL 2098f46a6179Smrgif eval "$MISSING --run true"; then 2099f46a6179Smrg am_missing_run="$MISSING --run " 2100f46a6179Smrgelse 2101f46a6179Smrg am_missing_run= 210234345a63Smrg { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 210334345a63Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 210434345a63Smrgfi 210534345a63Smrg 210634345a63Smrgif test x"${install_sh}" != xset; then 210734345a63Smrg case $am_aux_dir in 210834345a63Smrg *\ * | *\ *) 210934345a63Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 211034345a63Smrg *) 211134345a63Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 211234345a63Smrg esac 211334345a63Smrgfi 211434345a63Smrg 211534345a63Smrg# Installed binaries are usually stripped using `strip' when the user 211634345a63Smrg# run `make install-strip'. However `strip' might not be the right 211734345a63Smrg# tool to use in cross-compilation environments, therefore Automake 211834345a63Smrg# will honor the `STRIP' environment variable to overrule this program. 211934345a63Smrgif test "$cross_compiling" != no; then 212034345a63Smrg if test -n "$ac_tool_prefix"; then 212134345a63Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 212234345a63Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 212334345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 212434345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 212534345a63Smrgif test "${ac_cv_prog_STRIP+set}" = set; then 212634345a63Smrg $as_echo_n "(cached) " >&6 212734345a63Smrgelse 212834345a63Smrg if test -n "$STRIP"; then 212934345a63Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 213034345a63Smrgelse 213134345a63Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213234345a63Smrgfor as_dir in $PATH 213334345a63Smrgdo 213434345a63Smrg IFS=$as_save_IFS 213534345a63Smrg test -z "$as_dir" && as_dir=. 213634345a63Smrg for ac_exec_ext in '' $ac_executable_extensions; do 213734345a63Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 213834345a63Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 213934345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 214034345a63Smrg break 2 214134345a63Smrg fi 214234345a63Smrgdone 214334345a63Smrgdone 214434345a63SmrgIFS=$as_save_IFS 214534345a63Smrg 214634345a63Smrgfi 214734345a63Smrgfi 214834345a63SmrgSTRIP=$ac_cv_prog_STRIP 214934345a63Smrgif test -n "$STRIP"; then 215034345a63Smrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 215134345a63Smrg$as_echo "$STRIP" >&6; } 215234345a63Smrgelse 215334345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 215434345a63Smrg$as_echo "no" >&6; } 215534345a63Smrgfi 215634345a63Smrg 215734345a63Smrg 215834345a63Smrgfi 215934345a63Smrgif test -z "$ac_cv_prog_STRIP"; then 216034345a63Smrg ac_ct_STRIP=$STRIP 216134345a63Smrg # Extract the first word of "strip", so it can be a program name with args. 216234345a63Smrgset dummy strip; ac_word=$2 216334345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 216434345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 216534345a63Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 216634345a63Smrg $as_echo_n "(cached) " >&6 216734345a63Smrgelse 216834345a63Smrg if test -n "$ac_ct_STRIP"; then 216934345a63Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 217034345a63Smrgelse 217134345a63Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217234345a63Smrgfor as_dir in $PATH 217334345a63Smrgdo 217434345a63Smrg IFS=$as_save_IFS 217534345a63Smrg test -z "$as_dir" && as_dir=. 217634345a63Smrg for ac_exec_ext in '' $ac_executable_extensions; do 217734345a63Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 217834345a63Smrg ac_cv_prog_ac_ct_STRIP="strip" 217934345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 218034345a63Smrg break 2 218134345a63Smrg fi 218234345a63Smrgdone 218334345a63Smrgdone 218434345a63SmrgIFS=$as_save_IFS 218534345a63Smrg 218634345a63Smrgfi 218734345a63Smrgfi 218834345a63Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 218934345a63Smrgif test -n "$ac_ct_STRIP"; then 219034345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 219134345a63Smrg$as_echo "$ac_ct_STRIP" >&6; } 219234345a63Smrgelse 219334345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 219434345a63Smrg$as_echo "no" >&6; } 219534345a63Smrgfi 219634345a63Smrg 219734345a63Smrg if test "x$ac_ct_STRIP" = x; then 219834345a63Smrg STRIP=":" 219934345a63Smrg else 220034345a63Smrg case $cross_compiling:$ac_tool_warned in 220134345a63Smrgyes:) 220234345a63Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 220334345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 220434345a63Smrgac_tool_warned=yes ;; 220534345a63Smrgesac 220634345a63Smrg STRIP=$ac_ct_STRIP 220734345a63Smrg fi 220834345a63Smrgelse 220934345a63Smrg STRIP="$ac_cv_prog_STRIP" 221034345a63Smrgfi 221134345a63Smrg 2212f46a6179Smrgfi 221334345a63SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2214f46a6179Smrg 221534345a63Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 221634345a63Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2217f46a6179Smrgif test -z "$MKDIR_P"; then 2218f46a6179Smrg if test "${ac_cv_path_mkdir+set}" = set; then 221934345a63Smrg $as_echo_n "(cached) " >&6 2220f46a6179Smrgelse 2221f46a6179Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2222f46a6179Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2223f46a6179Smrgdo 2224f46a6179Smrg IFS=$as_save_IFS 2225f46a6179Smrg test -z "$as_dir" && as_dir=. 2226f46a6179Smrg for ac_prog in mkdir gmkdir; do 2227f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2228f46a6179Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2229f46a6179Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2230f46a6179Smrg 'mkdir (GNU coreutils) '* | \ 2231f46a6179Smrg 'mkdir (coreutils) '* | \ 2232f46a6179Smrg 'mkdir (fileutils) '4.1*) 2233f46a6179Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2234f46a6179Smrg break 3;; 2235f46a6179Smrg esac 2236f46a6179Smrg done 2237f46a6179Smrg done 2238f46a6179Smrgdone 2239f46a6179SmrgIFS=$as_save_IFS 2240f46a6179Smrg 2241f46a6179Smrgfi 2242f46a6179Smrg 2243f46a6179Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2244f46a6179Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2245f46a6179Smrg else 2246f46a6179Smrg # As a last resort, use the slow shell script. Don't cache a 2247f46a6179Smrg # value for MKDIR_P within a source directory, because that will 2248f46a6179Smrg # break other packages using the cache if that directory is 2249f46a6179Smrg # removed, or if the value is a relative name. 2250f46a6179Smrg test -d ./--version && rmdir ./--version 2251f46a6179Smrg MKDIR_P="$ac_install_sh -d" 2252f46a6179Smrg fi 2253f46a6179Smrgfi 225434345a63Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 225534345a63Smrg$as_echo "$MKDIR_P" >&6; } 2256f46a6179Smrg 2257f46a6179Smrgmkdir_p="$MKDIR_P" 2258f46a6179Smrgcase $mkdir_p in 2259f46a6179Smrg [\\/$]* | ?:[\\/]*) ;; 2260f46a6179Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2261f46a6179Smrgesac 2262f46a6179Smrg 2263f46a6179Smrgfor ac_prog in gawk mawk nawk awk 2264f46a6179Smrgdo 2265f46a6179Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2266f46a6179Smrgset dummy $ac_prog; ac_word=$2 226734345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 226834345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2269f46a6179Smrgif test "${ac_cv_prog_AWK+set}" = set; then 227034345a63Smrg $as_echo_n "(cached) " >&6 2271f46a6179Smrgelse 2272f46a6179Smrg if test -n "$AWK"; then 2273f46a6179Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2274f46a6179Smrgelse 2275f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2276f46a6179Smrgfor as_dir in $PATH 2277f46a6179Smrgdo 2278f46a6179Smrg IFS=$as_save_IFS 2279f46a6179Smrg test -z "$as_dir" && as_dir=. 2280f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2281f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2282f46a6179Smrg ac_cv_prog_AWK="$ac_prog" 228334345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2284f46a6179Smrg break 2 2285f46a6179Smrg fi 2286f46a6179Smrgdone 2287f46a6179Smrgdone 2288f46a6179SmrgIFS=$as_save_IFS 2289f46a6179Smrg 2290f46a6179Smrgfi 2291f46a6179Smrgfi 2292f46a6179SmrgAWK=$ac_cv_prog_AWK 2293f46a6179Smrgif test -n "$AWK"; then 229434345a63Smrg { $as_echo "$as_me:$LINENO: result: $AWK" >&5 229534345a63Smrg$as_echo "$AWK" >&6; } 2296f46a6179Smrgelse 229734345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 229834345a63Smrg$as_echo "no" >&6; } 2299f46a6179Smrgfi 2300f46a6179Smrg 2301f46a6179Smrg 2302f46a6179Smrg test -n "$AWK" && break 2303f46a6179Smrgdone 2304f46a6179Smrg 230534345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 230634345a63Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 230734345a63Smrgset x ${MAKE-make} 230834345a63Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2309f46a6179Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 231034345a63Smrg $as_echo_n "(cached) " >&6 2311f46a6179Smrgelse 2312f46a6179Smrg cat >conftest.make <<\_ACEOF 2313f46a6179SmrgSHELL = /bin/sh 2314f46a6179Smrgall: 2315f46a6179Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2316f46a6179Smrg_ACEOF 2317f46a6179Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2318f46a6179Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2319f46a6179Smrg *@@@%%%=?*=@@@%%%*) 2320f46a6179Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2321f46a6179Smrg *) 2322f46a6179Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2323f46a6179Smrgesac 2324f46a6179Smrgrm -f conftest.make 2325f46a6179Smrgfi 2326f46a6179Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 232734345a63Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 232834345a63Smrg$as_echo "yes" >&6; } 2329f46a6179Smrg SET_MAKE= 2330f46a6179Smrgelse 233134345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 233234345a63Smrg$as_echo "no" >&6; } 2333f46a6179Smrg SET_MAKE="MAKE=${MAKE-make}" 2334f46a6179Smrgfi 2335f46a6179Smrg 2336f46a6179Smrgrm -rf .tst 2>/dev/null 2337f46a6179Smrgmkdir .tst 2>/dev/null 2338f46a6179Smrgif test -d .tst; then 2339f46a6179Smrg am__leading_dot=. 2340f46a6179Smrgelse 2341f46a6179Smrg am__leading_dot=_ 2342f46a6179Smrgfi 2343f46a6179Smrgrmdir .tst 2>/dev/null 2344f46a6179Smrg 2345f46a6179Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2346f46a6179Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2347f46a6179Smrg # is not polluted with repeated "-I." 2348f46a6179Smrg am__isrc=' -I$(srcdir)' 2349f46a6179Smrg # test to see if srcdir already configured 2350f46a6179Smrg if test -f $srcdir/config.status; then 235134345a63Smrg { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 235234345a63Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2353f46a6179Smrg { (exit 1); exit 1; }; } 2354f46a6179Smrg fi 2355f46a6179Smrgfi 2356f46a6179Smrg 2357f46a6179Smrg# test whether we have cygpath 2358f46a6179Smrgif test -z "$CYGPATH_W"; then 2359f46a6179Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2360f46a6179Smrg CYGPATH_W='cygpath -w' 2361f46a6179Smrg else 2362f46a6179Smrg CYGPATH_W=echo 2363f46a6179Smrg fi 2364f46a6179Smrgfi 2365f46a6179Smrg 2366f46a6179Smrg 2367f46a6179Smrg# Define the identity of the package. 2368f46a6179Smrg PACKAGE='xkbcomp' 236934345a63Smrg VERSION='1.1.0' 2370f46a6179Smrg 2371f46a6179Smrg 2372f46a6179Smrgcat >>confdefs.h <<_ACEOF 2373f46a6179Smrg#define PACKAGE "$PACKAGE" 2374f46a6179Smrg_ACEOF 2375f46a6179Smrg 2376f46a6179Smrg 2377f46a6179Smrgcat >>confdefs.h <<_ACEOF 2378f46a6179Smrg#define VERSION "$VERSION" 2379f46a6179Smrg_ACEOF 2380f46a6179Smrg 2381f46a6179Smrg# Some tools Automake needs. 2382f46a6179Smrg 2383f46a6179SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2384f46a6179Smrg 2385f46a6179Smrg 2386f46a6179SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2387f46a6179Smrg 2388f46a6179Smrg 2389f46a6179SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2390f46a6179Smrg 2391f46a6179Smrg 2392f46a6179SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2393f46a6179Smrg 2394f46a6179Smrg 2395f46a6179SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2396f46a6179Smrg 2397f46a6179Smrg# We need awk for the "check" target. The system "awk" is bad on 2398f46a6179Smrg# some platforms. 2399f46a6179Smrg# Always define AMTAR for backward compatibility. 2400f46a6179Smrg 2401f46a6179SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2402f46a6179Smrg 2403f46a6179Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2404f46a6179Smrg 2405f46a6179Smrg 2406f46a6179Smrg 2407f46a6179Smrg 2408f46a6179Smrg 240934345a63Smrg 241034345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 241134345a63Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2412f46a6179Smrg # Check whether --enable-maintainer-mode was given. 2413f46a6179Smrgif test "${enable_maintainer_mode+set}" = set; then 2414f46a6179Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2415f46a6179Smrgelse 2416f46a6179Smrg USE_MAINTAINER_MODE=no 2417f46a6179Smrgfi 2418f46a6179Smrg 241934345a63Smrg { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 242034345a63Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2421f46a6179Smrg if test $USE_MAINTAINER_MODE = yes; then 2422f46a6179Smrg MAINTAINER_MODE_TRUE= 2423f46a6179Smrg MAINTAINER_MODE_FALSE='#' 2424f46a6179Smrgelse 2425f46a6179Smrg MAINTAINER_MODE_TRUE='#' 2426f46a6179Smrg MAINTAINER_MODE_FALSE= 2427f46a6179Smrgfi 2428f46a6179Smrg 2429f46a6179Smrg MAINT=$MAINTAINER_MODE_TRUE 2430f46a6179Smrg 2431f46a6179Smrg 2432f46a6179Smrg 243334345a63Smrg# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 243434345a63Smrg 243534345a63Smrg 243634345a63Smrg XORG_MACROS_needed_version=1.2 243734345a63Smrg XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 243834345a63Smrg XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 243934345a63Smrg { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 244034345a63Smrg$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; } 244134345a63Smrg XORG_MACROS_version=1.2.1 244234345a63Smrg XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 244334345a63Smrg XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 244434345a63Smrg if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 244534345a63Smrg { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 244634345a63Smrg$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 244734345a63Smrg { (exit 1); exit 1; }; } 244834345a63Smrg fi 244934345a63Smrg if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 245034345a63Smrg { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 245134345a63Smrg$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 245234345a63Smrg { (exit 1); exit 1; }; } 245334345a63Smrg fi 245434345a63Smrg { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 245534345a63Smrg$as_echo "yes, $XORG_MACROS_version" >&6; } 245634345a63Smrg 245734345a63Smrg 2458f46a6179Smrgac_config_headers="$ac_config_headers config.h" 2459f46a6179Smrg 2460f46a6179Smrg 2461f46a6179Smrgac_ext=c 2462f46a6179Smrgac_cpp='$CPP $CPPFLAGS' 2463f46a6179Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2464f46a6179Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2465f46a6179Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2466f46a6179Smrgif test -n "$ac_tool_prefix"; then 2467f46a6179Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2468f46a6179Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 246934345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 247034345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2471f46a6179Smrgif test "${ac_cv_prog_CC+set}" = set; then 247234345a63Smrg $as_echo_n "(cached) " >&6 2473f46a6179Smrgelse 2474f46a6179Smrg if test -n "$CC"; then 2475f46a6179Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2476f46a6179Smrgelse 2477f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2478f46a6179Smrgfor as_dir in $PATH 2479f46a6179Smrgdo 2480f46a6179Smrg IFS=$as_save_IFS 2481f46a6179Smrg test -z "$as_dir" && as_dir=. 2482f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2483f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2484f46a6179Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 248534345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2486f46a6179Smrg break 2 2487f46a6179Smrg fi 2488f46a6179Smrgdone 2489f46a6179Smrgdone 2490f46a6179SmrgIFS=$as_save_IFS 2491f46a6179Smrg 2492f46a6179Smrgfi 2493f46a6179Smrgfi 2494f46a6179SmrgCC=$ac_cv_prog_CC 2495f46a6179Smrgif test -n "$CC"; then 249634345a63Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 249734345a63Smrg$as_echo "$CC" >&6; } 2498f46a6179Smrgelse 249934345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 250034345a63Smrg$as_echo "no" >&6; } 2501f46a6179Smrgfi 2502f46a6179Smrg 2503f46a6179Smrg 2504f46a6179Smrgfi 2505f46a6179Smrgif test -z "$ac_cv_prog_CC"; then 2506f46a6179Smrg ac_ct_CC=$CC 2507f46a6179Smrg # Extract the first word of "gcc", so it can be a program name with args. 2508f46a6179Smrgset dummy gcc; ac_word=$2 250934345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 251034345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2511f46a6179Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 251234345a63Smrg $as_echo_n "(cached) " >&6 2513f46a6179Smrgelse 2514f46a6179Smrg if test -n "$ac_ct_CC"; then 2515f46a6179Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2516f46a6179Smrgelse 2517f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2518f46a6179Smrgfor as_dir in $PATH 2519f46a6179Smrgdo 2520f46a6179Smrg IFS=$as_save_IFS 2521f46a6179Smrg test -z "$as_dir" && as_dir=. 2522f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2523f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2524f46a6179Smrg ac_cv_prog_ac_ct_CC="gcc" 252534345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2526f46a6179Smrg break 2 2527f46a6179Smrg fi 2528f46a6179Smrgdone 2529f46a6179Smrgdone 2530f46a6179SmrgIFS=$as_save_IFS 2531f46a6179Smrg 2532f46a6179Smrgfi 2533f46a6179Smrgfi 2534f46a6179Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2535f46a6179Smrgif test -n "$ac_ct_CC"; then 253634345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 253734345a63Smrg$as_echo "$ac_ct_CC" >&6; } 2538f46a6179Smrgelse 253934345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 254034345a63Smrg$as_echo "no" >&6; } 2541f46a6179Smrgfi 2542f46a6179Smrg 2543f46a6179Smrg if test "x$ac_ct_CC" = x; then 2544f46a6179Smrg CC="" 2545f46a6179Smrg else 2546f46a6179Smrg case $cross_compiling:$ac_tool_warned in 2547f46a6179Smrgyes:) 254834345a63Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 254934345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2550f46a6179Smrgac_tool_warned=yes ;; 2551f46a6179Smrgesac 2552f46a6179Smrg CC=$ac_ct_CC 2553f46a6179Smrg fi 2554f46a6179Smrgelse 2555f46a6179Smrg CC="$ac_cv_prog_CC" 2556f46a6179Smrgfi 2557f46a6179Smrg 2558f46a6179Smrgif test -z "$CC"; then 2559f46a6179Smrg if test -n "$ac_tool_prefix"; then 2560f46a6179Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2561f46a6179Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 256234345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 256334345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2564f46a6179Smrgif test "${ac_cv_prog_CC+set}" = set; then 256534345a63Smrg $as_echo_n "(cached) " >&6 2566f46a6179Smrgelse 2567f46a6179Smrg if test -n "$CC"; then 2568f46a6179Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2569f46a6179Smrgelse 2570f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571f46a6179Smrgfor as_dir in $PATH 2572f46a6179Smrgdo 2573f46a6179Smrg IFS=$as_save_IFS 2574f46a6179Smrg test -z "$as_dir" && as_dir=. 2575f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2576f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577f46a6179Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 257834345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2579f46a6179Smrg break 2 2580f46a6179Smrg fi 2581f46a6179Smrgdone 2582f46a6179Smrgdone 2583f46a6179SmrgIFS=$as_save_IFS 2584f46a6179Smrg 2585f46a6179Smrgfi 2586f46a6179Smrgfi 2587f46a6179SmrgCC=$ac_cv_prog_CC 2588f46a6179Smrgif test -n "$CC"; then 258934345a63Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 259034345a63Smrg$as_echo "$CC" >&6; } 2591f46a6179Smrgelse 259234345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 259334345a63Smrg$as_echo "no" >&6; } 2594f46a6179Smrgfi 2595f46a6179Smrg 2596f46a6179Smrg 2597f46a6179Smrg fi 2598f46a6179Smrgfi 2599f46a6179Smrgif test -z "$CC"; then 2600f46a6179Smrg # Extract the first word of "cc", so it can be a program name with args. 2601f46a6179Smrgset dummy cc; ac_word=$2 260234345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 260334345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2604f46a6179Smrgif test "${ac_cv_prog_CC+set}" = set; then 260534345a63Smrg $as_echo_n "(cached) " >&6 2606f46a6179Smrgelse 2607f46a6179Smrg if test -n "$CC"; then 2608f46a6179Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2609f46a6179Smrgelse 2610f46a6179Smrg ac_prog_rejected=no 2611f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612f46a6179Smrgfor as_dir in $PATH 2613f46a6179Smrgdo 2614f46a6179Smrg IFS=$as_save_IFS 2615f46a6179Smrg test -z "$as_dir" && as_dir=. 2616f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2617f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2618f46a6179Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2619f46a6179Smrg ac_prog_rejected=yes 2620f46a6179Smrg continue 2621f46a6179Smrg fi 2622f46a6179Smrg ac_cv_prog_CC="cc" 262334345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2624f46a6179Smrg break 2 2625f46a6179Smrg fi 2626f46a6179Smrgdone 2627f46a6179Smrgdone 2628f46a6179SmrgIFS=$as_save_IFS 2629f46a6179Smrg 2630f46a6179Smrgif test $ac_prog_rejected = yes; then 2631f46a6179Smrg # We found a bogon in the path, so make sure we never use it. 2632f46a6179Smrg set dummy $ac_cv_prog_CC 2633f46a6179Smrg shift 2634f46a6179Smrg if test $# != 0; then 2635f46a6179Smrg # We chose a different compiler from the bogus one. 2636f46a6179Smrg # However, it has the same basename, so the bogon will be chosen 2637f46a6179Smrg # first if we set CC to just the basename; use the full file name. 2638f46a6179Smrg shift 2639f46a6179Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2640f46a6179Smrg fi 2641f46a6179Smrgfi 2642f46a6179Smrgfi 2643f46a6179Smrgfi 2644f46a6179SmrgCC=$ac_cv_prog_CC 2645f46a6179Smrgif test -n "$CC"; then 264634345a63Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 264734345a63Smrg$as_echo "$CC" >&6; } 2648f46a6179Smrgelse 264934345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 265034345a63Smrg$as_echo "no" >&6; } 2651f46a6179Smrgfi 2652f46a6179Smrg 2653f46a6179Smrg 2654f46a6179Smrgfi 2655f46a6179Smrgif test -z "$CC"; then 2656f46a6179Smrg if test -n "$ac_tool_prefix"; then 2657f46a6179Smrg for ac_prog in cl.exe 2658f46a6179Smrg do 2659f46a6179Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2660f46a6179Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 266134345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 266234345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2663f46a6179Smrgif test "${ac_cv_prog_CC+set}" = set; then 266434345a63Smrg $as_echo_n "(cached) " >&6 2665f46a6179Smrgelse 2666f46a6179Smrg if test -n "$CC"; then 2667f46a6179Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2668f46a6179Smrgelse 2669f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670f46a6179Smrgfor as_dir in $PATH 2671f46a6179Smrgdo 2672f46a6179Smrg IFS=$as_save_IFS 2673f46a6179Smrg test -z "$as_dir" && as_dir=. 2674f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2675f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2676f46a6179Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 267734345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2678f46a6179Smrg break 2 2679f46a6179Smrg fi 2680f46a6179Smrgdone 2681f46a6179Smrgdone 2682f46a6179SmrgIFS=$as_save_IFS 2683f46a6179Smrg 2684f46a6179Smrgfi 2685f46a6179Smrgfi 2686f46a6179SmrgCC=$ac_cv_prog_CC 2687f46a6179Smrgif test -n "$CC"; then 268834345a63Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 268934345a63Smrg$as_echo "$CC" >&6; } 2690f46a6179Smrgelse 269134345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 269234345a63Smrg$as_echo "no" >&6; } 2693f46a6179Smrgfi 2694f46a6179Smrg 2695f46a6179Smrg 2696f46a6179Smrg test -n "$CC" && break 2697f46a6179Smrg done 2698f46a6179Smrgfi 2699f46a6179Smrgif test -z "$CC"; then 2700f46a6179Smrg ac_ct_CC=$CC 2701f46a6179Smrg for ac_prog in cl.exe 2702f46a6179Smrgdo 2703f46a6179Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2704f46a6179Smrgset dummy $ac_prog; ac_word=$2 270534345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 270634345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 2707f46a6179Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 270834345a63Smrg $as_echo_n "(cached) " >&6 2709f46a6179Smrgelse 2710f46a6179Smrg if test -n "$ac_ct_CC"; then 2711f46a6179Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2712f46a6179Smrgelse 2713f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714f46a6179Smrgfor as_dir in $PATH 2715f46a6179Smrgdo 2716f46a6179Smrg IFS=$as_save_IFS 2717f46a6179Smrg test -z "$as_dir" && as_dir=. 2718f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2719f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2720f46a6179Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 272134345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2722f46a6179Smrg break 2 2723f46a6179Smrg fi 2724f46a6179Smrgdone 2725f46a6179Smrgdone 2726f46a6179SmrgIFS=$as_save_IFS 2727f46a6179Smrg 2728f46a6179Smrgfi 2729f46a6179Smrgfi 2730f46a6179Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2731f46a6179Smrgif test -n "$ac_ct_CC"; then 273234345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 273334345a63Smrg$as_echo "$ac_ct_CC" >&6; } 2734f46a6179Smrgelse 273534345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 273634345a63Smrg$as_echo "no" >&6; } 2737f46a6179Smrgfi 2738f46a6179Smrg 2739f46a6179Smrg 2740f46a6179Smrg test -n "$ac_ct_CC" && break 2741f46a6179Smrgdone 2742f46a6179Smrg 2743f46a6179Smrg if test "x$ac_ct_CC" = x; then 2744f46a6179Smrg CC="" 2745f46a6179Smrg else 2746f46a6179Smrg case $cross_compiling:$ac_tool_warned in 2747f46a6179Smrgyes:) 274834345a63Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 274934345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2750f46a6179Smrgac_tool_warned=yes ;; 2751f46a6179Smrgesac 2752f46a6179Smrg CC=$ac_ct_CC 2753f46a6179Smrg fi 2754f46a6179Smrgfi 2755f46a6179Smrg 2756f46a6179Smrgfi 2757f46a6179Smrg 2758f46a6179Smrg 275934345a63Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 276034345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 276134345a63Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2762f46a6179SmrgSee \`config.log' for more details." >&5 276334345a63Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2764f46a6179SmrgSee \`config.log' for more details." >&2;} 276534345a63Smrg { (exit 1); exit 1; }; }; } 2766f46a6179Smrg 2767f46a6179Smrg# Provide some information about the compiler. 276834345a63Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 276934345a63Smrgset X $ac_compile 277034345a63Smrgac_compiler=$2 2771f46a6179Smrg{ (ac_try="$ac_compiler --version >&5" 2772f46a6179Smrgcase "(($ac_try" in 2773f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2774f46a6179Smrg *) ac_try_echo=$ac_try;; 2775f46a6179Smrgesac 277634345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 277734345a63Smrg$as_echo "$ac_try_echo") >&5 2778f46a6179Smrg (eval "$ac_compiler --version >&5") 2>&5 2779f46a6179Smrg ac_status=$? 278034345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781f46a6179Smrg (exit $ac_status); } 2782f46a6179Smrg{ (ac_try="$ac_compiler -v >&5" 2783f46a6179Smrgcase "(($ac_try" in 2784f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2785f46a6179Smrg *) ac_try_echo=$ac_try;; 2786f46a6179Smrgesac 278734345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 278834345a63Smrg$as_echo "$ac_try_echo") >&5 2789f46a6179Smrg (eval "$ac_compiler -v >&5") 2>&5 2790f46a6179Smrg ac_status=$? 279134345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792f46a6179Smrg (exit $ac_status); } 2793f46a6179Smrg{ (ac_try="$ac_compiler -V >&5" 2794f46a6179Smrgcase "(($ac_try" in 2795f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2796f46a6179Smrg *) ac_try_echo=$ac_try;; 2797f46a6179Smrgesac 279834345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 279934345a63Smrg$as_echo "$ac_try_echo") >&5 2800f46a6179Smrg (eval "$ac_compiler -V >&5") 2>&5 2801f46a6179Smrg ac_status=$? 280234345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803f46a6179Smrg (exit $ac_status); } 2804f46a6179Smrg 2805f46a6179Smrgcat >conftest.$ac_ext <<_ACEOF 2806f46a6179Smrg/* confdefs.h. */ 2807f46a6179Smrg_ACEOF 2808f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 2809f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 2810f46a6179Smrg/* end confdefs.h. */ 2811f46a6179Smrg 2812f46a6179Smrgint 2813f46a6179Smrgmain () 2814f46a6179Smrg{ 2815f46a6179Smrg 2816f46a6179Smrg ; 2817f46a6179Smrg return 0; 2818f46a6179Smrg} 2819f46a6179Smrg_ACEOF 2820f46a6179Smrgac_clean_files_save=$ac_clean_files 282134345a63Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2822f46a6179Smrg# Try to create an executable without -o first, disregard a.out. 2823f46a6179Smrg# It will help us diagnose broken compilers, and finding out an intuition 2824f46a6179Smrg# of exeext. 282534345a63Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 282634345a63Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 282734345a63Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 282834345a63Smrg 282934345a63Smrg# The possible output files: 283034345a63Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 283134345a63Smrg 2832f46a6179Smrgac_rmfiles= 2833f46a6179Smrgfor ac_file in $ac_files 2834f46a6179Smrgdo 2835f46a6179Smrg case $ac_file in 283634345a63Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2837f46a6179Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2838f46a6179Smrg esac 2839f46a6179Smrgdone 2840f46a6179Smrgrm -f $ac_rmfiles 2841f46a6179Smrg 2842f46a6179Smrgif { (ac_try="$ac_link_default" 2843f46a6179Smrgcase "(($ac_try" in 2844f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2845f46a6179Smrg *) ac_try_echo=$ac_try;; 2846f46a6179Smrgesac 284734345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 284834345a63Smrg$as_echo "$ac_try_echo") >&5 2849f46a6179Smrg (eval "$ac_link_default") 2>&5 2850f46a6179Smrg ac_status=$? 285134345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852f46a6179Smrg (exit $ac_status); }; then 2853f46a6179Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2854f46a6179Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2855f46a6179Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 2856f46a6179Smrg# so that the user can short-circuit this test for compilers unknown to 2857f46a6179Smrg# Autoconf. 2858f46a6179Smrgfor ac_file in $ac_files '' 2859f46a6179Smrgdo 2860f46a6179Smrg test -f "$ac_file" || continue 2861f46a6179Smrg case $ac_file in 286234345a63Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2863f46a6179Smrg ;; 2864f46a6179Smrg [ab].out ) 2865f46a6179Smrg # We found the default executable, but exeext='' is most 2866f46a6179Smrg # certainly right. 2867f46a6179Smrg break;; 2868f46a6179Smrg *.* ) 2869f46a6179Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2870f46a6179Smrg then :; else 2871f46a6179Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2872f46a6179Smrg fi 2873f46a6179Smrg # We set ac_cv_exeext here because the later test for it is not 2874f46a6179Smrg # safe: cross compilers may not add the suffix if given an `-o' 2875f46a6179Smrg # argument, so we may need to know it at that point already. 2876f46a6179Smrg # Even if this section looks crufty: it has the advantage of 2877f46a6179Smrg # actually working. 2878f46a6179Smrg break;; 2879f46a6179Smrg * ) 2880f46a6179Smrg break;; 2881f46a6179Smrg esac 2882f46a6179Smrgdone 2883f46a6179Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 2884f46a6179Smrg 2885f46a6179Smrgelse 2886f46a6179Smrg ac_file='' 2887f46a6179Smrgfi 2888f46a6179Smrg 288934345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 289034345a63Smrg$as_echo "$ac_file" >&6; } 2891f46a6179Smrgif test -z "$ac_file"; then 289234345a63Smrg $as_echo "$as_me: failed program was:" >&5 2893f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 2894f46a6179Smrg 289534345a63Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 289634345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 289734345a63Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2898f46a6179SmrgSee \`config.log' for more details." >&5 289934345a63Smrg$as_echo "$as_me: error: C compiler cannot create executables 2900f46a6179SmrgSee \`config.log' for more details." >&2;} 290134345a63Smrg { (exit 77); exit 77; }; }; } 2902f46a6179Smrgfi 2903f46a6179Smrg 2904f46a6179Smrgac_exeext=$ac_cv_exeext 2905f46a6179Smrg 2906f46a6179Smrg# Check that the compiler produces executables we can run. If not, either 2907f46a6179Smrg# the compiler is broken, or we cross compile. 290834345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 290934345a63Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 2910f46a6179Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2911f46a6179Smrg# If not cross compiling, check that we can run a simple program. 2912f46a6179Smrgif test "$cross_compiling" != yes; then 2913f46a6179Smrg if { ac_try='./$ac_file' 2914f46a6179Smrg { (case "(($ac_try" in 2915f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2916f46a6179Smrg *) ac_try_echo=$ac_try;; 2917f46a6179Smrgesac 291834345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 291934345a63Smrg$as_echo "$ac_try_echo") >&5 2920f46a6179Smrg (eval "$ac_try") 2>&5 2921f46a6179Smrg ac_status=$? 292234345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923f46a6179Smrg (exit $ac_status); }; }; then 2924f46a6179Smrg cross_compiling=no 2925f46a6179Smrg else 2926f46a6179Smrg if test "$cross_compiling" = maybe; then 2927f46a6179Smrg cross_compiling=yes 2928f46a6179Smrg else 292934345a63Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 293034345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 293134345a63Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2932f46a6179SmrgIf you meant to cross compile, use \`--host'. 2933f46a6179SmrgSee \`config.log' for more details." >&5 293434345a63Smrg$as_echo "$as_me: error: cannot run C compiled programs. 2935f46a6179SmrgIf you meant to cross compile, use \`--host'. 2936f46a6179SmrgSee \`config.log' for more details." >&2;} 293734345a63Smrg { (exit 1); exit 1; }; }; } 2938f46a6179Smrg fi 2939f46a6179Smrg fi 2940f46a6179Smrgfi 294134345a63Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 294234345a63Smrg$as_echo "yes" >&6; } 2943f46a6179Smrg 294434345a63Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2945f46a6179Smrgac_clean_files=$ac_clean_files_save 2946f46a6179Smrg# Check that the compiler produces executables we can run. If not, either 2947f46a6179Smrg# the compiler is broken, or we cross compile. 294834345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 294934345a63Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 295034345a63Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 295134345a63Smrg$as_echo "$cross_compiling" >&6; } 2952f46a6179Smrg 295334345a63Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 295434345a63Smrg$as_echo_n "checking for suffix of executables... " >&6; } 2955f46a6179Smrgif { (ac_try="$ac_link" 2956f46a6179Smrgcase "(($ac_try" in 2957f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2958f46a6179Smrg *) ac_try_echo=$ac_try;; 2959f46a6179Smrgesac 296034345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 296134345a63Smrg$as_echo "$ac_try_echo") >&5 2962f46a6179Smrg (eval "$ac_link") 2>&5 2963f46a6179Smrg ac_status=$? 296434345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965f46a6179Smrg (exit $ac_status); }; then 2966f46a6179Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 2967f46a6179Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2968f46a6179Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 2969f46a6179Smrg# `rm'. 2970f46a6179Smrgfor ac_file in conftest.exe conftest conftest.*; do 2971f46a6179Smrg test -f "$ac_file" || continue 2972f46a6179Smrg case $ac_file in 297334345a63Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2974f46a6179Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2975f46a6179Smrg break;; 2976f46a6179Smrg * ) break;; 2977f46a6179Smrg esac 2978f46a6179Smrgdone 2979f46a6179Smrgelse 298034345a63Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 298134345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 298234345a63Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2983f46a6179SmrgSee \`config.log' for more details." >&5 298434345a63Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2985f46a6179SmrgSee \`config.log' for more details." >&2;} 298634345a63Smrg { (exit 1); exit 1; }; }; } 2987f46a6179Smrgfi 2988f46a6179Smrg 2989f46a6179Smrgrm -f conftest$ac_cv_exeext 299034345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 299134345a63Smrg$as_echo "$ac_cv_exeext" >&6; } 2992f46a6179Smrg 2993f46a6179Smrgrm -f conftest.$ac_ext 2994f46a6179SmrgEXEEXT=$ac_cv_exeext 2995f46a6179Smrgac_exeext=$EXEEXT 299634345a63Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 299734345a63Smrg$as_echo_n "checking for suffix of object files... " >&6; } 2998f46a6179Smrgif test "${ac_cv_objext+set}" = set; then 299934345a63Smrg $as_echo_n "(cached) " >&6 3000f46a6179Smrgelse 3001f46a6179Smrg cat >conftest.$ac_ext <<_ACEOF 3002f46a6179Smrg/* confdefs.h. */ 3003f46a6179Smrg_ACEOF 3004f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 3005f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 3006f46a6179Smrg/* end confdefs.h. */ 3007f46a6179Smrg 3008f46a6179Smrgint 3009f46a6179Smrgmain () 3010f46a6179Smrg{ 3011f46a6179Smrg 3012f46a6179Smrg ; 3013f46a6179Smrg return 0; 3014f46a6179Smrg} 3015f46a6179Smrg_ACEOF 3016f46a6179Smrgrm -f conftest.o conftest.obj 3017f46a6179Smrgif { (ac_try="$ac_compile" 3018f46a6179Smrgcase "(($ac_try" in 3019f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3020f46a6179Smrg *) ac_try_echo=$ac_try;; 3021f46a6179Smrgesac 302234345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 302334345a63Smrg$as_echo "$ac_try_echo") >&5 3024f46a6179Smrg (eval "$ac_compile") 2>&5 3025f46a6179Smrg ac_status=$? 302634345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027f46a6179Smrg (exit $ac_status); }; then 3028f46a6179Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3029f46a6179Smrg test -f "$ac_file" || continue; 3030f46a6179Smrg case $ac_file in 303134345a63Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3032f46a6179Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3033f46a6179Smrg break;; 3034f46a6179Smrg esac 3035f46a6179Smrgdone 3036f46a6179Smrgelse 303734345a63Smrg $as_echo "$as_me: failed program was:" >&5 3038f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 3039f46a6179Smrg 304034345a63Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 304134345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 304234345a63Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3043f46a6179SmrgSee \`config.log' for more details." >&5 304434345a63Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3045f46a6179SmrgSee \`config.log' for more details." >&2;} 304634345a63Smrg { (exit 1); exit 1; }; }; } 3047f46a6179Smrgfi 3048f46a6179Smrg 3049f46a6179Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3050f46a6179Smrgfi 305134345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 305234345a63Smrg$as_echo "$ac_cv_objext" >&6; } 3053f46a6179SmrgOBJEXT=$ac_cv_objext 3054f46a6179Smrgac_objext=$OBJEXT 305534345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 305634345a63Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3057f46a6179Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 305834345a63Smrg $as_echo_n "(cached) " >&6 3059f46a6179Smrgelse 3060f46a6179Smrg cat >conftest.$ac_ext <<_ACEOF 3061f46a6179Smrg/* confdefs.h. */ 3062f46a6179Smrg_ACEOF 3063f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 3064f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 3065f46a6179Smrg/* end confdefs.h. */ 3066f46a6179Smrg 3067f46a6179Smrgint 3068f46a6179Smrgmain () 3069f46a6179Smrg{ 3070f46a6179Smrg#ifndef __GNUC__ 3071f46a6179Smrg choke me 3072f46a6179Smrg#endif 3073f46a6179Smrg 3074f46a6179Smrg ; 3075f46a6179Smrg return 0; 3076f46a6179Smrg} 3077f46a6179Smrg_ACEOF 3078f46a6179Smrgrm -f conftest.$ac_objext 3079f46a6179Smrgif { (ac_try="$ac_compile" 3080f46a6179Smrgcase "(($ac_try" in 3081f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082f46a6179Smrg *) ac_try_echo=$ac_try;; 3083f46a6179Smrgesac 308434345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 308534345a63Smrg$as_echo "$ac_try_echo") >&5 3086f46a6179Smrg (eval "$ac_compile") 2>conftest.er1 3087f46a6179Smrg ac_status=$? 3088f46a6179Smrg grep -v '^ *+' conftest.er1 >conftest.err 3089f46a6179Smrg rm -f conftest.er1 3090f46a6179Smrg cat conftest.err >&5 309134345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092f46a6179Smrg (exit $ac_status); } && { 3093f46a6179Smrg test -z "$ac_c_werror_flag" || 3094f46a6179Smrg test ! -s conftest.err 3095f46a6179Smrg } && test -s conftest.$ac_objext; then 3096f46a6179Smrg ac_compiler_gnu=yes 3097f46a6179Smrgelse 309834345a63Smrg $as_echo "$as_me: failed program was:" >&5 3099f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 3100f46a6179Smrg 3101f46a6179Smrg ac_compiler_gnu=no 3102f46a6179Smrgfi 3103f46a6179Smrg 3104f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3105f46a6179Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3106f46a6179Smrg 3107f46a6179Smrgfi 310834345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 310934345a63Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 311034345a63Smrgif test $ac_compiler_gnu = yes; then 311134345a63Smrg GCC=yes 311234345a63Smrgelse 311334345a63Smrg GCC= 311434345a63Smrgfi 3115f46a6179Smrgac_test_CFLAGS=${CFLAGS+set} 3116f46a6179Smrgac_save_CFLAGS=$CFLAGS 311734345a63Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 311834345a63Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3119f46a6179Smrgif test "${ac_cv_prog_cc_g+set}" = set; then 312034345a63Smrg $as_echo_n "(cached) " >&6 3121f46a6179Smrgelse 3122f46a6179Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3123f46a6179Smrg ac_c_werror_flag=yes 3124f46a6179Smrg ac_cv_prog_cc_g=no 3125f46a6179Smrg CFLAGS="-g" 3126f46a6179Smrg cat >conftest.$ac_ext <<_ACEOF 3127f46a6179Smrg/* confdefs.h. */ 3128f46a6179Smrg_ACEOF 3129f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 3130f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 3131f46a6179Smrg/* end confdefs.h. */ 3132f46a6179Smrg 3133f46a6179Smrgint 3134f46a6179Smrgmain () 3135f46a6179Smrg{ 3136f46a6179Smrg 3137f46a6179Smrg ; 3138f46a6179Smrg return 0; 3139f46a6179Smrg} 3140f46a6179Smrg_ACEOF 3141f46a6179Smrgrm -f conftest.$ac_objext 3142f46a6179Smrgif { (ac_try="$ac_compile" 3143f46a6179Smrgcase "(($ac_try" in 3144f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145f46a6179Smrg *) ac_try_echo=$ac_try;; 3146f46a6179Smrgesac 314734345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 314834345a63Smrg$as_echo "$ac_try_echo") >&5 3149f46a6179Smrg (eval "$ac_compile") 2>conftest.er1 3150f46a6179Smrg ac_status=$? 3151f46a6179Smrg grep -v '^ *+' conftest.er1 >conftest.err 3152f46a6179Smrg rm -f conftest.er1 3153f46a6179Smrg cat conftest.err >&5 315434345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155f46a6179Smrg (exit $ac_status); } && { 3156f46a6179Smrg test -z "$ac_c_werror_flag" || 3157f46a6179Smrg test ! -s conftest.err 3158f46a6179Smrg } && test -s conftest.$ac_objext; then 3159f46a6179Smrg ac_cv_prog_cc_g=yes 3160f46a6179Smrgelse 316134345a63Smrg $as_echo "$as_me: failed program was:" >&5 3162f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 3163f46a6179Smrg 3164f46a6179Smrg CFLAGS="" 3165f46a6179Smrg cat >conftest.$ac_ext <<_ACEOF 3166f46a6179Smrg/* confdefs.h. */ 3167f46a6179Smrg_ACEOF 3168f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 3169f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 3170f46a6179Smrg/* end confdefs.h. */ 3171f46a6179Smrg 3172f46a6179Smrgint 3173f46a6179Smrgmain () 3174f46a6179Smrg{ 3175f46a6179Smrg 3176f46a6179Smrg ; 3177f46a6179Smrg return 0; 3178f46a6179Smrg} 3179f46a6179Smrg_ACEOF 3180f46a6179Smrgrm -f conftest.$ac_objext 3181f46a6179Smrgif { (ac_try="$ac_compile" 3182f46a6179Smrgcase "(($ac_try" in 3183f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184f46a6179Smrg *) ac_try_echo=$ac_try;; 3185f46a6179Smrgesac 318634345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 318734345a63Smrg$as_echo "$ac_try_echo") >&5 3188f46a6179Smrg (eval "$ac_compile") 2>conftest.er1 3189f46a6179Smrg ac_status=$? 3190f46a6179Smrg grep -v '^ *+' conftest.er1 >conftest.err 3191f46a6179Smrg rm -f conftest.er1 3192f46a6179Smrg cat conftest.err >&5 319334345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194f46a6179Smrg (exit $ac_status); } && { 3195f46a6179Smrg test -z "$ac_c_werror_flag" || 3196f46a6179Smrg test ! -s conftest.err 3197f46a6179Smrg } && test -s conftest.$ac_objext; then 3198f46a6179Smrg : 3199f46a6179Smrgelse 320034345a63Smrg $as_echo "$as_me: failed program was:" >&5 3201f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 3202f46a6179Smrg 3203f46a6179Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3204f46a6179Smrg CFLAGS="-g" 3205f46a6179Smrg cat >conftest.$ac_ext <<_ACEOF 3206f46a6179Smrg/* confdefs.h. */ 3207f46a6179Smrg_ACEOF 3208f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 3209f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 3210f46a6179Smrg/* end confdefs.h. */ 3211f46a6179Smrg 3212f46a6179Smrgint 3213f46a6179Smrgmain () 3214f46a6179Smrg{ 3215f46a6179Smrg 3216f46a6179Smrg ; 3217f46a6179Smrg return 0; 3218f46a6179Smrg} 3219f46a6179Smrg_ACEOF 3220f46a6179Smrgrm -f conftest.$ac_objext 3221f46a6179Smrgif { (ac_try="$ac_compile" 3222f46a6179Smrgcase "(($ac_try" in 3223f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224f46a6179Smrg *) ac_try_echo=$ac_try;; 3225f46a6179Smrgesac 322634345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 322734345a63Smrg$as_echo "$ac_try_echo") >&5 3228f46a6179Smrg (eval "$ac_compile") 2>conftest.er1 3229f46a6179Smrg ac_status=$? 3230f46a6179Smrg grep -v '^ *+' conftest.er1 >conftest.err 3231f46a6179Smrg rm -f conftest.er1 3232f46a6179Smrg cat conftest.err >&5 323334345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234f46a6179Smrg (exit $ac_status); } && { 3235f46a6179Smrg test -z "$ac_c_werror_flag" || 3236f46a6179Smrg test ! -s conftest.err 3237f46a6179Smrg } && test -s conftest.$ac_objext; then 3238f46a6179Smrg ac_cv_prog_cc_g=yes 3239f46a6179Smrgelse 324034345a63Smrg $as_echo "$as_me: failed program was:" >&5 3241f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 3242f46a6179Smrg 3243f46a6179Smrg 3244f46a6179Smrgfi 3245f46a6179Smrg 3246f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247f46a6179Smrgfi 3248f46a6179Smrg 3249f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3250f46a6179Smrgfi 3251f46a6179Smrg 3252f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3253f46a6179Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3254f46a6179Smrgfi 325534345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 325634345a63Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3257f46a6179Smrgif test "$ac_test_CFLAGS" = set; then 3258f46a6179Smrg CFLAGS=$ac_save_CFLAGS 3259f46a6179Smrgelif test $ac_cv_prog_cc_g = yes; then 3260f46a6179Smrg if test "$GCC" = yes; then 3261f46a6179Smrg CFLAGS="-g -O2" 3262f46a6179Smrg else 3263f46a6179Smrg CFLAGS="-g" 3264f46a6179Smrg fi 3265f46a6179Smrgelse 3266f46a6179Smrg if test "$GCC" = yes; then 3267f46a6179Smrg CFLAGS="-O2" 3268f46a6179Smrg else 3269f46a6179Smrg CFLAGS= 3270f46a6179Smrg fi 3271f46a6179Smrgfi 327234345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 327334345a63Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3274f46a6179Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then 327534345a63Smrg $as_echo_n "(cached) " >&6 3276f46a6179Smrgelse 3277f46a6179Smrg ac_cv_prog_cc_c89=no 3278f46a6179Smrgac_save_CC=$CC 3279f46a6179Smrgcat >conftest.$ac_ext <<_ACEOF 3280f46a6179Smrg/* confdefs.h. */ 3281f46a6179Smrg_ACEOF 3282f46a6179Smrgcat confdefs.h >>conftest.$ac_ext 3283f46a6179Smrgcat >>conftest.$ac_ext <<_ACEOF 3284f46a6179Smrg/* end confdefs.h. */ 3285f46a6179Smrg#include <stdarg.h> 3286f46a6179Smrg#include <stdio.h> 3287f46a6179Smrg#include <sys/types.h> 3288f46a6179Smrg#include <sys/stat.h> 3289f46a6179Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3290f46a6179Smrgstruct buf { int x; }; 3291f46a6179SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3292f46a6179Smrgstatic char *e (p, i) 3293f46a6179Smrg char **p; 3294f46a6179Smrg int i; 3295f46a6179Smrg{ 3296f46a6179Smrg return p[i]; 3297f46a6179Smrg} 3298f46a6179Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3299f46a6179Smrg{ 3300f46a6179Smrg char *s; 3301f46a6179Smrg va_list v; 3302f46a6179Smrg va_start (v,p); 3303f46a6179Smrg s = g (p, va_arg (v,int)); 3304f46a6179Smrg va_end (v); 3305f46a6179Smrg return s; 3306f46a6179Smrg} 3307f46a6179Smrg 3308f46a6179Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3309f46a6179Smrg function prototypes and stuff, but not '\xHH' hex character constants. 3310f46a6179Smrg These don't provoke an error unfortunately, instead are silently treated 3311f46a6179Smrg as 'x'. The following induces an error, until -std is added to get 3312f46a6179Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3313f46a6179Smrg array size at least. It's necessary to write '\x00'==0 to get something 3314f46a6179Smrg that's true only with -std. */ 3315f46a6179Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3316f46a6179Smrg 3317f46a6179Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3318f46a6179Smrg inside strings and character constants. */ 3319f46a6179Smrg#define FOO(x) 'x' 3320f46a6179Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3321f46a6179Smrg 3322f46a6179Smrgint test (int i, double x); 3323f46a6179Smrgstruct s1 {int (*f) (int a);}; 3324f46a6179Smrgstruct s2 {int (*f) (double a);}; 3325f46a6179Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3326f46a6179Smrgint argc; 3327f46a6179Smrgchar **argv; 3328f46a6179Smrgint 3329f46a6179Smrgmain () 3330f46a6179Smrg{ 3331f46a6179Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3332f46a6179Smrg ; 3333f46a6179Smrg return 0; 3334f46a6179Smrg} 3335f46a6179Smrg_ACEOF 3336f46a6179Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3337f46a6179Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3338f46a6179Smrgdo 3339f46a6179Smrg CC="$ac_save_CC $ac_arg" 3340f46a6179Smrg rm -f conftest.$ac_objext 3341f46a6179Smrgif { (ac_try="$ac_compile" 3342f46a6179Smrgcase "(($ac_try" in 3343f46a6179Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344f46a6179Smrg *) ac_try_echo=$ac_try;; 3345f46a6179Smrgesac 334634345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 334734345a63Smrg$as_echo "$ac_try_echo") >&5 3348f46a6179Smrg (eval "$ac_compile") 2>conftest.er1 3349f46a6179Smrg ac_status=$? 3350f46a6179Smrg grep -v '^ *+' conftest.er1 >conftest.err 3351f46a6179Smrg rm -f conftest.er1 3352f46a6179Smrg cat conftest.err >&5 335334345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3354f46a6179Smrg (exit $ac_status); } && { 3355f46a6179Smrg test -z "$ac_c_werror_flag" || 3356f46a6179Smrg test ! -s conftest.err 3357f46a6179Smrg } && test -s conftest.$ac_objext; then 3358f46a6179Smrg ac_cv_prog_cc_c89=$ac_arg 3359f46a6179Smrgelse 336034345a63Smrg $as_echo "$as_me: failed program was:" >&5 3361f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5 3362f46a6179Smrg 3363f46a6179Smrg 3364f46a6179Smrgfi 3365f46a6179Smrg 3366f46a6179Smrgrm -f core conftest.err conftest.$ac_objext 3367f46a6179Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3368f46a6179Smrgdone 3369f46a6179Smrgrm -f conftest.$ac_ext 3370f46a6179SmrgCC=$ac_save_CC 3371f46a6179Smrg 3372f46a6179Smrgfi 3373f46a6179Smrg# AC_CACHE_VAL 3374f46a6179Smrgcase "x$ac_cv_prog_cc_c89" in 3375f46a6179Smrg x) 337634345a63Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 337734345a63Smrg$as_echo "none needed" >&6; } ;; 3378f46a6179Smrg xno) 337934345a63Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 338034345a63Smrg$as_echo "unsupported" >&6; } ;; 3381f46a6179Smrg *) 3382f46a6179Smrg CC="$CC $ac_cv_prog_cc_c89" 338334345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 338434345a63Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3385f46a6179Smrgesac 3386f46a6179Smrg 3387f46a6179Smrg 3388f46a6179Smrgac_ext=c 3389f46a6179Smrgac_cpp='$CPP $CPPFLAGS' 3390f46a6179Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3391f46a6179Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3392f46a6179Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3393f46a6179SmrgDEPDIR="${am__leading_dot}deps" 3394f46a6179Smrg 3395f46a6179Smrgac_config_commands="$ac_config_commands depfiles" 3396f46a6179Smrg 3397f46a6179Smrg 3398f46a6179Smrgam_make=${MAKE-make} 3399f46a6179Smrgcat > confinc << 'END' 3400f46a6179Smrgam__doit: 340134345a63Smrg @echo this is the am__doit target 3402f46a6179Smrg.PHONY: am__doit 3403f46a6179SmrgEND 3404f46a6179Smrg# If we don't find an include directive, just comment out the code. 340534345a63Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 340634345a63Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 3407f46a6179Smrgam__include="#" 3408f46a6179Smrgam__quote= 3409f46a6179Smrg_am_result=none 3410f46a6179Smrg# First try GNU make style include. 3411f46a6179Smrgecho "include confinc" > confmf 341234345a63Smrg# Ignore all kinds of additional output from `make'. 341334345a63Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 341434345a63Smrg*the\ am__doit\ target*) 341534345a63Smrg am__include=include 341634345a63Smrg am__quote= 341734345a63Smrg _am_result=GNU 341834345a63Smrg ;; 341934345a63Smrgesac 3420f46a6179Smrg# Now try BSD make style include. 3421f46a6179Smrgif test "$am__include" = "#"; then 3422f46a6179Smrg echo '.include "confinc"' > confmf 342334345a63Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 342434345a63Smrg *the\ am__doit\ target*) 342534345a63Smrg am__include=.include 342634345a63Smrg am__quote="\"" 342734345a63Smrg _am_result=BSD 342834345a63Smrg ;; 342934345a63Smrg esac 3430f46a6179Smrgfi 3431f46a6179Smrg 3432f46a6179Smrg 343334345a63Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 343434345a63Smrg$as_echo "$_am_result" >&6; } 3435f46a6179Smrgrm -f confinc confmf 3436f46a6179Smrg 3437f46a6179Smrg# Check whether --enable-dependency-tracking was given. 3438f46a6179Smrgif test "${enable_dependency_tracking+set}" = set; then 3439f46a6179Smrg enableval=$enable_dependency_tracking; 3440f46a6179Smrgfi 3441f46a6179Smrg 3442f46a6179Smrgif test "x$enable_dependency_tracking" != xno; then 3443f46a6179Smrg am_depcomp="$ac_aux_dir/depcomp" 3444f46a6179Smrg AMDEPBACKSLASH='\' 3445f46a6179Smrgfi 3446f46a6179Smrg if test "x$enable_dependency_tracking" != xno; then 3447f46a6179Smrg AMDEP_TRUE= 3448f46a6179Smrg AMDEP_FALSE='#' 3449f46a6179Smrgelse 3450f46a6179Smrg AMDEP_TRUE='#' 3451f46a6179Smrg AMDEP_FALSE= 3452f46a6179Smrgfi 3453f46a6179Smrg 3454f46a6179Smrg 3455f46a6179Smrg 3456f46a6179Smrgdepcc="$CC" am_compiler_list= 3457f46a6179Smrg 345834345a63Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 345934345a63Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3460f46a6179Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 346134345a63Smrg $as_echo_n "(cached) " >&6 3462f46a6179Smrgelse 3463f46a6179Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3464f46a6179Smrg # We make a subdir and do the tests there. Otherwise we can end up 3465f46a6179Smrg # making bogus files that we don't know about and never remove. For 3466f46a6179Smrg # instance it was reported that on HP-UX the gcc test will end up 3467f46a6179Smrg # making a dummy file named `D' -- because `-MD' means `put the output 3468f46a6179Smrg # in D'. 3469f46a6179Smrg mkdir conftest.dir 3470f46a6179Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 3471f46a6179Smrg # using a relative directory. 3472f46a6179Smrg cp "$am_depcomp" conftest.dir 3473f46a6179Smrg cd conftest.dir 3474f46a6179Smrg # We will build objects and dependencies in a subdirectory because 3475f46a6179Smrg # it helps to detect inapplicable dependency modes. For instance 3476f46a6179Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 3477f46a6179Smrg # side effect of compilation, but ICC will put the dependencies in 3478f46a6179Smrg # the current directory while Tru64 will put them in the object 3479f46a6179Smrg # directory. 3480f46a6179Smrg mkdir sub 3481f46a6179Smrg 3482f46a6179Smrg am_cv_CC_dependencies_compiler_type=none 3483f46a6179Smrg if test "$am_compiler_list" = ""; then 3484f46a6179Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3485f46a6179Smrg fi 348634345a63Smrg am__universal=false 348734345a63Smrg case " $depcc " in #( 348834345a63Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 348934345a63Smrg esac 349034345a63Smrg 3491f46a6179Smrg for depmode in $am_compiler_list; do 3492f46a6179Smrg # Setup a source with many dependencies, because some compilers 3493f46a6179Smrg # like to wrap large dependency lists on column 80 (with \), and 3494f46a6179Smrg # we should not choose a depcomp mode which is confused by this. 3495f46a6179Smrg # 3496f46a6179Smrg # We need to recreate these files for each test, as the compiler may 3497f46a6179Smrg # overwrite some of them when testing with obscure command lines. 3498f46a6179Smrg # This happens at least with the AIX C compiler. 3499f46a6179Smrg : > sub/conftest.c 3500f46a6179Smrg for i in 1 2 3 4 5 6; do 3501f46a6179Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3502f46a6179Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3503f46a6179Smrg # Solaris 8's {/usr,}/bin/sh. 3504f46a6179Smrg touch sub/conftst$i.h 3505f46a6179Smrg done 3506f46a6179Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3507f46a6179Smrg 350834345a63Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 350934345a63Smrg # mode. It turns out that the SunPro C++ compiler does not properly 351034345a63Smrg # handle `-M -o', and we need to detect this. Also, some Intel 351134345a63Smrg # versions had trouble with output in subdirs 351234345a63Smrg am__obj=sub/conftest.${OBJEXT-o} 351334345a63Smrg am__minus_obj="-o $am__obj" 3514f46a6179Smrg case $depmode in 351534345a63Smrg gcc) 351634345a63Smrg # This depmode causes a compiler race in universal mode. 351734345a63Smrg test "$am__universal" = false || continue 351834345a63Smrg ;; 3519f46a6179Smrg nosideeffect) 3520f46a6179Smrg # after this tag, mechanisms are not by side-effect, so they'll 3521f46a6179Smrg # only be used when explicitly requested 3522f46a6179Smrg if test "x$enable_dependency_tracking" = xyes; then 3523f46a6179Smrg continue 3524f46a6179Smrg else 3525f46a6179Smrg break 3526f46a6179Smrg fi 3527f46a6179Smrg ;; 352834345a63Smrg msvisualcpp | msvcmsys) 352934345a63Smrg # This compiler won't grok `-c -o', but also, the minuso test has 353034345a63Smrg # not run yet. These depmodes are late enough in the game, and 353134345a63Smrg # so weak that their functioning should not be impacted. 353234345a63Smrg am__obj=conftest.${OBJEXT-o} 353334345a63Smrg am__minus_obj= 353434345a63Smrg ;; 3535f46a6179Smrg none) break ;; 3536f46a6179Smrg esac 3537f46a6179Smrg if depmode=$depmode \ 353834345a63Smrg source=sub/conftest.c object=$am__obj \ 3539f46a6179Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 354034345a63Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3541f46a6179Smrg >/dev/null 2>conftest.err && 3542f46a6179Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3543f46a6179Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 354434345a63Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3545f46a6179Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3546f46a6179Smrg # icc doesn't choke on unknown options, it will just issue warnings 3547f46a6179Smrg # or remarks (even with -Werror). So we grep stderr for any message 3548f46a6179Smrg # that says an option was ignored or not supported. 3549f46a6179Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3550f46a6179Smrg # icc: Command line warning: ignoring option '-M'; no argument required 3551f46a6179Smrg # The diagnosis changed in icc 8.0: 3552f46a6179Smrg # icc: Command line remark: option '-MP' not supported 3553f46a6179Smrg if (grep 'ignoring option' conftest.err || 3554f46a6179Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3555f46a6179Smrg am_cv_CC_dependencies_compiler_type=$depmode 3556f46a6179Smrg break 3557f46a6179Smrg fi 3558f46a6179Smrg fi 3559f46a6179Smrg done 3560f46a6179Smrg 3561f46a6179Smrg cd .. 3562f46a6179Smrg rm -rf conftest.dir 3563f46a6179Smrgelse 3564f46a6179Smrg am_cv_CC_dependencies_compiler_type=none 3565f46a6179Smrgfi 3566f46a6179Smrg 3567f46a6179Smrgfi 356834345a63Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 356934345a63Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3570f46a6179SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3571f46a6179Smrg 3572f46a6179Smrg if 3573f46a6179Smrg test "x$enable_dependency_tracking" != xno \ 3574f46a6179Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3575f46a6179Smrg am__fastdepCC_TRUE= 3576f46a6179Smrg am__fastdepCC_FALSE='#' 3577f46a6179Smrgelse 3578f46a6179Smrg am__fastdepCC_TRUE='#' 3579f46a6179Smrg am__fastdepCC_FALSE= 3580f46a6179Smrgfi 3581f46a6179Smrg 3582f46a6179Smrg 3583f46a6179Smrgfor ac_prog in 'bison -y' byacc 3584f46a6179Smrgdo 3585f46a6179Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3586f46a6179Smrgset dummy $ac_prog; ac_word=$2 358734345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 358834345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 3589f46a6179Smrgif test "${ac_cv_prog_YACC+set}" = set; then 359034345a63Smrg $as_echo_n "(cached) " >&6 3591f46a6179Smrgelse 3592f46a6179Smrg if test -n "$YACC"; then 3593f46a6179Smrg ac_cv_prog_YACC="$YACC" # Let the user override the test. 3594f46a6179Smrgelse 3595f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596f46a6179Smrgfor as_dir in $PATH 3597f46a6179Smrgdo 3598f46a6179Smrg IFS=$as_save_IFS 3599f46a6179Smrg test -z "$as_dir" && as_dir=. 3600f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3601f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3602f46a6179Smrg ac_cv_prog_YACC="$ac_prog" 360334345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3604f46a6179Smrg break 2 3605f46a6179Smrg fi 3606f46a6179Smrgdone 3607f46a6179Smrgdone 3608f46a6179SmrgIFS=$as_save_IFS 3609f46a6179Smrg 3610f46a6179Smrgfi 3611f46a6179Smrgfi 361234345a63SmrgYACC=$ac_cv_prog_YACC 361334345a63Smrgif test -n "$YACC"; then 361434345a63Smrg { $as_echo "$as_me:$LINENO: result: $YACC" >&5 361534345a63Smrg$as_echo "$YACC" >&6; } 361634345a63Smrgelse 361734345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 361834345a63Smrg$as_echo "no" >&6; } 361934345a63Smrgfi 362034345a63Smrg 362134345a63Smrg 362234345a63Smrg test -n "$YACC" && break 362334345a63Smrgdone 362434345a63Smrgtest -n "$YACC" || YACC="yacc" 362534345a63Smrg 362634345a63Smrg# Find a good install program. We prefer a C program (faster), 362734345a63Smrg# so one script is as good as another. But avoid the broken or 362834345a63Smrg# incompatible versions: 362934345a63Smrg# SysV /etc/install, /usr/sbin/install 363034345a63Smrg# SunOS /usr/etc/install 363134345a63Smrg# IRIX /sbin/install 363234345a63Smrg# AIX /bin/install 363334345a63Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 363434345a63Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 363534345a63Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 363634345a63Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 363734345a63Smrg# OS/2's system install, which has a completely different semantic 363834345a63Smrg# ./install, which can be erroneously created by make from ./install.sh. 363934345a63Smrg# Reject install programs that cannot install multiple files. 364034345a63Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 364134345a63Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 364234345a63Smrgif test -z "$INSTALL"; then 364334345a63Smrgif test "${ac_cv_path_install+set}" = set; then 364434345a63Smrg $as_echo_n "(cached) " >&6 364534345a63Smrgelse 364634345a63Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 364734345a63Smrgfor as_dir in $PATH 364834345a63Smrgdo 364934345a63Smrg IFS=$as_save_IFS 365034345a63Smrg test -z "$as_dir" && as_dir=. 365134345a63Smrg # Account for people who put trailing slashes in PATH elements. 365234345a63Smrgcase $as_dir/ in 365334345a63Smrg ./ | .// | /cC/* | \ 365434345a63Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 365534345a63Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 365634345a63Smrg /usr/ucb/* ) ;; 365734345a63Smrg *) 365834345a63Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 365934345a63Smrg # Don't use installbsd from OSF since it installs stuff as root 366034345a63Smrg # by default. 366134345a63Smrg for ac_prog in ginstall scoinst install; do 366234345a63Smrg for ac_exec_ext in '' $ac_executable_extensions; do 366334345a63Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 366434345a63Smrg if test $ac_prog = install && 366534345a63Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 366634345a63Smrg # AIX install. It has an incompatible calling convention. 366734345a63Smrg : 366834345a63Smrg elif test $ac_prog = install && 366934345a63Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 367034345a63Smrg # program-specific install script used by HP pwplus--don't use. 367134345a63Smrg : 367234345a63Smrg else 367334345a63Smrg rm -rf conftest.one conftest.two conftest.dir 367434345a63Smrg echo one > conftest.one 367534345a63Smrg echo two > conftest.two 367634345a63Smrg mkdir conftest.dir 367734345a63Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 367834345a63Smrg test -s conftest.one && test -s conftest.two && 367934345a63Smrg test -s conftest.dir/conftest.one && 368034345a63Smrg test -s conftest.dir/conftest.two 368134345a63Smrg then 368234345a63Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 368334345a63Smrg break 3 368434345a63Smrg fi 368534345a63Smrg fi 368634345a63Smrg fi 368734345a63Smrg done 368834345a63Smrg done 368934345a63Smrg ;; 369034345a63Smrgesac 369134345a63Smrg 369234345a63Smrgdone 369334345a63SmrgIFS=$as_save_IFS 369434345a63Smrg 369534345a63Smrgrm -rf conftest.one conftest.two conftest.dir 369634345a63Smrg 369734345a63Smrgfi 369834345a63Smrg if test "${ac_cv_path_install+set}" = set; then 369934345a63Smrg INSTALL=$ac_cv_path_install 370034345a63Smrg else 370134345a63Smrg # As a last resort, use the slow shell script. Don't cache a 370234345a63Smrg # value for INSTALL within a source directory, because that will 370334345a63Smrg # break other packages using the cache if that directory is 370434345a63Smrg # removed, or if the value is a relative name. 370534345a63Smrg INSTALL=$ac_install_sh 370634345a63Smrg fi 370734345a63Smrgfi 370834345a63Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 370934345a63Smrg$as_echo "$INSTALL" >&6; } 371034345a63Smrg 371134345a63Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 371234345a63Smrg# It thinks the first close brace ends the variable substitution. 371334345a63Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 371434345a63Smrg 371534345a63Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 371634345a63Smrg 371734345a63Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 371834345a63Smrg 371934345a63Smrg 372034345a63Smrg 372134345a63Smrgac_ext=c 372234345a63Smrgac_cpp='$CPP $CPPFLAGS' 372334345a63Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 372434345a63Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 372534345a63Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 372634345a63Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 372734345a63Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 372834345a63Smrg# On Suns, sometimes $CPP names a directory. 372934345a63Smrgif test -n "$CPP" && test -d "$CPP"; then 373034345a63Smrg CPP= 373134345a63Smrgfi 373234345a63Smrgif test -z "$CPP"; then 373334345a63Smrg if test "${ac_cv_prog_CPP+set}" = set; then 373434345a63Smrg $as_echo_n "(cached) " >&6 373534345a63Smrgelse 373634345a63Smrg # Double quotes because CPP needs to be expanded 373734345a63Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 373834345a63Smrg do 373934345a63Smrg ac_preproc_ok=false 374034345a63Smrgfor ac_c_preproc_warn_flag in '' yes 374134345a63Smrgdo 374234345a63Smrg # Use a header file that comes with gcc, so configuring glibc 374334345a63Smrg # with a fresh cross-compiler works. 374434345a63Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 374534345a63Smrg # <limits.h> exists even on freestanding compilers. 374634345a63Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 374734345a63Smrg # not just through cpp. "Syntax error" is here to catch this case. 374834345a63Smrg cat >conftest.$ac_ext <<_ACEOF 374934345a63Smrg/* confdefs.h. */ 375034345a63Smrg_ACEOF 375134345a63Smrgcat confdefs.h >>conftest.$ac_ext 375234345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 375334345a63Smrg/* end confdefs.h. */ 375434345a63Smrg#ifdef __STDC__ 375534345a63Smrg# include <limits.h> 375634345a63Smrg#else 375734345a63Smrg# include <assert.h> 375834345a63Smrg#endif 375934345a63Smrg Syntax error 376034345a63Smrg_ACEOF 376134345a63Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 376234345a63Smrgcase "(($ac_try" in 376334345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 376434345a63Smrg *) ac_try_echo=$ac_try;; 376534345a63Smrgesac 376634345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 376734345a63Smrg$as_echo "$ac_try_echo") >&5 376834345a63Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 376934345a63Smrg ac_status=$? 377034345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 377134345a63Smrg rm -f conftest.er1 377234345a63Smrg cat conftest.err >&5 377334345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 377434345a63Smrg (exit $ac_status); } >/dev/null && { 377534345a63Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 377634345a63Smrg test ! -s conftest.err 377734345a63Smrg }; then 377834345a63Smrg : 377934345a63Smrgelse 378034345a63Smrg $as_echo "$as_me: failed program was:" >&5 378134345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 378234345a63Smrg 378334345a63Smrg # Broken: fails on valid input. 378434345a63Smrgcontinue 378534345a63Smrgfi 378634345a63Smrg 378734345a63Smrgrm -f conftest.err conftest.$ac_ext 378834345a63Smrg 378934345a63Smrg # OK, works on sane cases. Now check whether nonexistent headers 379034345a63Smrg # can be detected and how. 379134345a63Smrg cat >conftest.$ac_ext <<_ACEOF 379234345a63Smrg/* confdefs.h. */ 379334345a63Smrg_ACEOF 379434345a63Smrgcat confdefs.h >>conftest.$ac_ext 379534345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 379634345a63Smrg/* end confdefs.h. */ 379734345a63Smrg#include <ac_nonexistent.h> 379834345a63Smrg_ACEOF 379934345a63Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 380034345a63Smrgcase "(($ac_try" in 380134345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 380234345a63Smrg *) ac_try_echo=$ac_try;; 380334345a63Smrgesac 380434345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 380534345a63Smrg$as_echo "$ac_try_echo") >&5 380634345a63Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 380734345a63Smrg ac_status=$? 380834345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 380934345a63Smrg rm -f conftest.er1 381034345a63Smrg cat conftest.err >&5 381134345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 381234345a63Smrg (exit $ac_status); } >/dev/null && { 381334345a63Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 381434345a63Smrg test ! -s conftest.err 381534345a63Smrg }; then 381634345a63Smrg # Broken: success on invalid input. 381734345a63Smrgcontinue 381834345a63Smrgelse 381934345a63Smrg $as_echo "$as_me: failed program was:" >&5 382034345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 382134345a63Smrg 382234345a63Smrg # Passes both tests. 382334345a63Smrgac_preproc_ok=: 382434345a63Smrgbreak 382534345a63Smrgfi 382634345a63Smrg 382734345a63Smrgrm -f conftest.err conftest.$ac_ext 382834345a63Smrg 382934345a63Smrgdone 383034345a63Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 383134345a63Smrgrm -f conftest.err conftest.$ac_ext 383234345a63Smrgif $ac_preproc_ok; then 383334345a63Smrg break 383434345a63Smrgfi 383534345a63Smrg 383634345a63Smrg done 383734345a63Smrg ac_cv_prog_CPP=$CPP 383834345a63Smrg 383934345a63Smrgfi 384034345a63Smrg CPP=$ac_cv_prog_CPP 384134345a63Smrgelse 384234345a63Smrg ac_cv_prog_CPP=$CPP 384334345a63Smrgfi 384434345a63Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 384534345a63Smrg$as_echo "$CPP" >&6; } 384634345a63Smrgac_preproc_ok=false 384734345a63Smrgfor ac_c_preproc_warn_flag in '' yes 384834345a63Smrgdo 384934345a63Smrg # Use a header file that comes with gcc, so configuring glibc 385034345a63Smrg # with a fresh cross-compiler works. 385134345a63Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 385234345a63Smrg # <limits.h> exists even on freestanding compilers. 385334345a63Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 385434345a63Smrg # not just through cpp. "Syntax error" is here to catch this case. 385534345a63Smrg cat >conftest.$ac_ext <<_ACEOF 385634345a63Smrg/* confdefs.h. */ 385734345a63Smrg_ACEOF 385834345a63Smrgcat confdefs.h >>conftest.$ac_ext 385934345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 386034345a63Smrg/* end confdefs.h. */ 386134345a63Smrg#ifdef __STDC__ 386234345a63Smrg# include <limits.h> 386334345a63Smrg#else 386434345a63Smrg# include <assert.h> 386534345a63Smrg#endif 386634345a63Smrg Syntax error 386734345a63Smrg_ACEOF 386834345a63Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 386934345a63Smrgcase "(($ac_try" in 387034345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 387134345a63Smrg *) ac_try_echo=$ac_try;; 387234345a63Smrgesac 387334345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 387434345a63Smrg$as_echo "$ac_try_echo") >&5 387534345a63Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 387634345a63Smrg ac_status=$? 387734345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 387834345a63Smrg rm -f conftest.er1 387934345a63Smrg cat conftest.err >&5 388034345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 388134345a63Smrg (exit $ac_status); } >/dev/null && { 388234345a63Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 388334345a63Smrg test ! -s conftest.err 388434345a63Smrg }; then 388534345a63Smrg : 388634345a63Smrgelse 388734345a63Smrg $as_echo "$as_me: failed program was:" >&5 388834345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 388934345a63Smrg 389034345a63Smrg # Broken: fails on valid input. 389134345a63Smrgcontinue 389234345a63Smrgfi 389334345a63Smrg 389434345a63Smrgrm -f conftest.err conftest.$ac_ext 389534345a63Smrg 389634345a63Smrg # OK, works on sane cases. Now check whether nonexistent headers 389734345a63Smrg # can be detected and how. 389834345a63Smrg cat >conftest.$ac_ext <<_ACEOF 389934345a63Smrg/* confdefs.h. */ 390034345a63Smrg_ACEOF 390134345a63Smrgcat confdefs.h >>conftest.$ac_ext 390234345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 390334345a63Smrg/* end confdefs.h. */ 390434345a63Smrg#include <ac_nonexistent.h> 390534345a63Smrg_ACEOF 390634345a63Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 390734345a63Smrgcase "(($ac_try" in 390834345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 390934345a63Smrg *) ac_try_echo=$ac_try;; 391034345a63Smrgesac 391134345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 391234345a63Smrg$as_echo "$ac_try_echo") >&5 391334345a63Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 391434345a63Smrg ac_status=$? 391534345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 391634345a63Smrg rm -f conftest.er1 391734345a63Smrg cat conftest.err >&5 391834345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 391934345a63Smrg (exit $ac_status); } >/dev/null && { 392034345a63Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 392134345a63Smrg test ! -s conftest.err 392234345a63Smrg }; then 392334345a63Smrg # Broken: success on invalid input. 392434345a63Smrgcontinue 392534345a63Smrgelse 392634345a63Smrg $as_echo "$as_me: failed program was:" >&5 392734345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 392834345a63Smrg 392934345a63Smrg # Passes both tests. 393034345a63Smrgac_preproc_ok=: 393134345a63Smrgbreak 393234345a63Smrgfi 393334345a63Smrg 393434345a63Smrgrm -f conftest.err conftest.$ac_ext 393534345a63Smrg 393634345a63Smrgdone 393734345a63Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 393834345a63Smrgrm -f conftest.err conftest.$ac_ext 393934345a63Smrgif $ac_preproc_ok; then 394034345a63Smrg : 394134345a63Smrgelse 394234345a63Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 394334345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 394434345a63Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 394534345a63SmrgSee \`config.log' for more details." >&5 394634345a63Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 394734345a63SmrgSee \`config.log' for more details." >&2;} 394834345a63Smrg { (exit 1); exit 1; }; }; } 394934345a63Smrgfi 395034345a63Smrg 395134345a63Smrgac_ext=c 395234345a63Smrgac_cpp='$CPP $CPPFLAGS' 395334345a63Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 395434345a63Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 395534345a63Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 395634345a63Smrg 395734345a63Smrg 395834345a63Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 395934345a63Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 396034345a63Smrgif test "${ac_cv_path_GREP+set}" = set; then 396134345a63Smrg $as_echo_n "(cached) " >&6 396234345a63Smrgelse 396334345a63Smrg if test -z "$GREP"; then 396434345a63Smrg ac_path_GREP_found=false 396534345a63Smrg # Loop through the user's path and test for each of PROGNAME-LIST 396634345a63Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 396734345a63Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 396834345a63Smrgdo 396934345a63Smrg IFS=$as_save_IFS 397034345a63Smrg test -z "$as_dir" && as_dir=. 397134345a63Smrg for ac_prog in grep ggrep; do 397234345a63Smrg for ac_exec_ext in '' $ac_executable_extensions; do 397334345a63Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 397434345a63Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 397534345a63Smrg# Check for GNU ac_path_GREP and select it if it is found. 397634345a63Smrg # Check for GNU $ac_path_GREP 397734345a63Smrgcase `"$ac_path_GREP" --version 2>&1` in 397834345a63Smrg*GNU*) 397934345a63Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 398034345a63Smrg*) 398134345a63Smrg ac_count=0 398234345a63Smrg $as_echo_n 0123456789 >"conftest.in" 398334345a63Smrg while : 398434345a63Smrg do 398534345a63Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 398634345a63Smrg mv "conftest.tmp" "conftest.in" 398734345a63Smrg cp "conftest.in" "conftest.nl" 398834345a63Smrg $as_echo 'GREP' >> "conftest.nl" 398934345a63Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 399034345a63Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 399134345a63Smrg ac_count=`expr $ac_count + 1` 399234345a63Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 399334345a63Smrg # Best one so far, save it but keep looking for a better one 399434345a63Smrg ac_cv_path_GREP="$ac_path_GREP" 399534345a63Smrg ac_path_GREP_max=$ac_count 399634345a63Smrg fi 399734345a63Smrg # 10*(2^10) chars as input seems more than enough 399834345a63Smrg test $ac_count -gt 10 && break 399934345a63Smrg done 400034345a63Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 400134345a63Smrgesac 400234345a63Smrg 400334345a63Smrg $ac_path_GREP_found && break 3 400434345a63Smrg done 400534345a63Smrg done 400634345a63Smrgdone 400734345a63SmrgIFS=$as_save_IFS 400834345a63Smrg if test -z "$ac_cv_path_GREP"; then 400934345a63Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 401034345a63Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 401134345a63Smrg { (exit 1); exit 1; }; } 401234345a63Smrg fi 401334345a63Smrgelse 401434345a63Smrg ac_cv_path_GREP=$GREP 401534345a63Smrgfi 401634345a63Smrg 401734345a63Smrgfi 401834345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 401934345a63Smrg$as_echo "$ac_cv_path_GREP" >&6; } 402034345a63Smrg GREP="$ac_cv_path_GREP" 402134345a63Smrg 402234345a63Smrg 402334345a63Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 402434345a63Smrg$as_echo_n "checking for egrep... " >&6; } 402534345a63Smrgif test "${ac_cv_path_EGREP+set}" = set; then 402634345a63Smrg $as_echo_n "(cached) " >&6 402734345a63Smrgelse 402834345a63Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 402934345a63Smrg then ac_cv_path_EGREP="$GREP -E" 403034345a63Smrg else 403134345a63Smrg if test -z "$EGREP"; then 403234345a63Smrg ac_path_EGREP_found=false 403334345a63Smrg # Loop through the user's path and test for each of PROGNAME-LIST 403434345a63Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 403534345a63Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 403634345a63Smrgdo 403734345a63Smrg IFS=$as_save_IFS 403834345a63Smrg test -z "$as_dir" && as_dir=. 403934345a63Smrg for ac_prog in egrep; do 404034345a63Smrg for ac_exec_ext in '' $ac_executable_extensions; do 404134345a63Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 404234345a63Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 404334345a63Smrg# Check for GNU ac_path_EGREP and select it if it is found. 404434345a63Smrg # Check for GNU $ac_path_EGREP 404534345a63Smrgcase `"$ac_path_EGREP" --version 2>&1` in 404634345a63Smrg*GNU*) 404734345a63Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 404834345a63Smrg*) 404934345a63Smrg ac_count=0 405034345a63Smrg $as_echo_n 0123456789 >"conftest.in" 405134345a63Smrg while : 405234345a63Smrg do 405334345a63Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 405434345a63Smrg mv "conftest.tmp" "conftest.in" 405534345a63Smrg cp "conftest.in" "conftest.nl" 405634345a63Smrg $as_echo 'EGREP' >> "conftest.nl" 405734345a63Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 405834345a63Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 405934345a63Smrg ac_count=`expr $ac_count + 1` 406034345a63Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 406134345a63Smrg # Best one so far, save it but keep looking for a better one 406234345a63Smrg ac_cv_path_EGREP="$ac_path_EGREP" 406334345a63Smrg ac_path_EGREP_max=$ac_count 406434345a63Smrg fi 406534345a63Smrg # 10*(2^10) chars as input seems more than enough 406634345a63Smrg test $ac_count -gt 10 && break 406734345a63Smrg done 406834345a63Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 406934345a63Smrgesac 407034345a63Smrg 407134345a63Smrg $ac_path_EGREP_found && break 3 407234345a63Smrg done 407334345a63Smrg done 407434345a63Smrgdone 407534345a63SmrgIFS=$as_save_IFS 407634345a63Smrg if test -z "$ac_cv_path_EGREP"; then 407734345a63Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 407834345a63Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 407934345a63Smrg { (exit 1); exit 1; }; } 408034345a63Smrg fi 408134345a63Smrgelse 408234345a63Smrg ac_cv_path_EGREP=$EGREP 408334345a63Smrgfi 408434345a63Smrg 408534345a63Smrg fi 408634345a63Smrgfi 408734345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 408834345a63Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 408934345a63Smrg EGREP="$ac_cv_path_EGREP" 409034345a63Smrg 409134345a63Smrg 409234345a63Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 409334345a63Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 409434345a63Smrgif test "${ac_cv_header_stdc+set}" = set; then 409534345a63Smrg $as_echo_n "(cached) " >&6 409634345a63Smrgelse 409734345a63Smrg cat >conftest.$ac_ext <<_ACEOF 409834345a63Smrg/* confdefs.h. */ 409934345a63Smrg_ACEOF 410034345a63Smrgcat confdefs.h >>conftest.$ac_ext 410134345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 410234345a63Smrg/* end confdefs.h. */ 410334345a63Smrg#include <stdlib.h> 410434345a63Smrg#include <stdarg.h> 410534345a63Smrg#include <string.h> 410634345a63Smrg#include <float.h> 410734345a63Smrg 410834345a63Smrgint 410934345a63Smrgmain () 411034345a63Smrg{ 411134345a63Smrg 411234345a63Smrg ; 411334345a63Smrg return 0; 411434345a63Smrg} 411534345a63Smrg_ACEOF 411634345a63Smrgrm -f conftest.$ac_objext 411734345a63Smrgif { (ac_try="$ac_compile" 411834345a63Smrgcase "(($ac_try" in 411934345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 412034345a63Smrg *) ac_try_echo=$ac_try;; 412134345a63Smrgesac 412234345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 412334345a63Smrg$as_echo "$ac_try_echo") >&5 412434345a63Smrg (eval "$ac_compile") 2>conftest.er1 412534345a63Smrg ac_status=$? 412634345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 412734345a63Smrg rm -f conftest.er1 412834345a63Smrg cat conftest.err >&5 412934345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 413034345a63Smrg (exit $ac_status); } && { 413134345a63Smrg test -z "$ac_c_werror_flag" || 413234345a63Smrg test ! -s conftest.err 413334345a63Smrg } && test -s conftest.$ac_objext; then 413434345a63Smrg ac_cv_header_stdc=yes 413534345a63Smrgelse 413634345a63Smrg $as_echo "$as_me: failed program was:" >&5 413734345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 413834345a63Smrg 413934345a63Smrg ac_cv_header_stdc=no 414034345a63Smrgfi 414134345a63Smrg 414234345a63Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 414334345a63Smrg 414434345a63Smrgif test $ac_cv_header_stdc = yes; then 414534345a63Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 414634345a63Smrg cat >conftest.$ac_ext <<_ACEOF 414734345a63Smrg/* confdefs.h. */ 414834345a63Smrg_ACEOF 414934345a63Smrgcat confdefs.h >>conftest.$ac_ext 415034345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 415134345a63Smrg/* end confdefs.h. */ 415234345a63Smrg#include <string.h> 415334345a63Smrg 415434345a63Smrg_ACEOF 415534345a63Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 415634345a63Smrg $EGREP "memchr" >/dev/null 2>&1; then 415734345a63Smrg : 415834345a63Smrgelse 415934345a63Smrg ac_cv_header_stdc=no 416034345a63Smrgfi 416134345a63Smrgrm -f conftest* 416234345a63Smrg 416334345a63Smrgfi 416434345a63Smrg 416534345a63Smrgif test $ac_cv_header_stdc = yes; then 416634345a63Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 416734345a63Smrg cat >conftest.$ac_ext <<_ACEOF 416834345a63Smrg/* confdefs.h. */ 416934345a63Smrg_ACEOF 417034345a63Smrgcat confdefs.h >>conftest.$ac_ext 417134345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 417234345a63Smrg/* end confdefs.h. */ 417334345a63Smrg#include <stdlib.h> 417434345a63Smrg 417534345a63Smrg_ACEOF 417634345a63Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 417734345a63Smrg $EGREP "free" >/dev/null 2>&1; then 417834345a63Smrg : 417934345a63Smrgelse 418034345a63Smrg ac_cv_header_stdc=no 418134345a63Smrgfi 418234345a63Smrgrm -f conftest* 418334345a63Smrg 418434345a63Smrgfi 418534345a63Smrg 418634345a63Smrgif test $ac_cv_header_stdc = yes; then 418734345a63Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 418834345a63Smrg if test "$cross_compiling" = yes; then 418934345a63Smrg : 419034345a63Smrgelse 419134345a63Smrg cat >conftest.$ac_ext <<_ACEOF 419234345a63Smrg/* confdefs.h. */ 419334345a63Smrg_ACEOF 419434345a63Smrgcat confdefs.h >>conftest.$ac_ext 419534345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 419634345a63Smrg/* end confdefs.h. */ 419734345a63Smrg#include <ctype.h> 419834345a63Smrg#include <stdlib.h> 419934345a63Smrg#if ((' ' & 0x0FF) == 0x020) 420034345a63Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 420134345a63Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 420234345a63Smrg#else 420334345a63Smrg# define ISLOWER(c) \ 420434345a63Smrg (('a' <= (c) && (c) <= 'i') \ 420534345a63Smrg || ('j' <= (c) && (c) <= 'r') \ 420634345a63Smrg || ('s' <= (c) && (c) <= 'z')) 420734345a63Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 420834345a63Smrg#endif 420934345a63Smrg 421034345a63Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 421134345a63Smrgint 421234345a63Smrgmain () 421334345a63Smrg{ 421434345a63Smrg int i; 421534345a63Smrg for (i = 0; i < 256; i++) 421634345a63Smrg if (XOR (islower (i), ISLOWER (i)) 421734345a63Smrg || toupper (i) != TOUPPER (i)) 421834345a63Smrg return 2; 421934345a63Smrg return 0; 422034345a63Smrg} 422134345a63Smrg_ACEOF 422234345a63Smrgrm -f conftest$ac_exeext 422334345a63Smrgif { (ac_try="$ac_link" 422434345a63Smrgcase "(($ac_try" in 422534345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 422634345a63Smrg *) ac_try_echo=$ac_try;; 422734345a63Smrgesac 422834345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 422934345a63Smrg$as_echo "$ac_try_echo") >&5 423034345a63Smrg (eval "$ac_link") 2>&5 423134345a63Smrg ac_status=$? 423234345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 423334345a63Smrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 423434345a63Smrg { (case "(($ac_try" in 423534345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 423634345a63Smrg *) ac_try_echo=$ac_try;; 423734345a63Smrgesac 423834345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 423934345a63Smrg$as_echo "$ac_try_echo") >&5 424034345a63Smrg (eval "$ac_try") 2>&5 424134345a63Smrg ac_status=$? 424234345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 424334345a63Smrg (exit $ac_status); }; }; then 424434345a63Smrg : 424534345a63Smrgelse 424634345a63Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 424734345a63Smrg$as_echo "$as_me: failed program was:" >&5 424834345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 424934345a63Smrg 425034345a63Smrg( exit $ac_status ) 425134345a63Smrgac_cv_header_stdc=no 425234345a63Smrgfi 425334345a63Smrgrm -rf conftest.dSYM 425434345a63Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 425534345a63Smrgfi 425634345a63Smrg 425734345a63Smrg 425834345a63Smrgfi 425934345a63Smrgfi 426034345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 426134345a63Smrg$as_echo "$ac_cv_header_stdc" >&6; } 426234345a63Smrgif test $ac_cv_header_stdc = yes; then 426334345a63Smrg 426434345a63Smrgcat >>confdefs.h <<\_ACEOF 426534345a63Smrg#define STDC_HEADERS 1 426634345a63Smrg_ACEOF 426734345a63Smrg 426834345a63Smrgfi 426934345a63Smrg 427034345a63Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 427134345a63Smrg 427234345a63Smrg 427334345a63Smrg 427434345a63Smrg 427534345a63Smrg 427634345a63Smrg 427734345a63Smrg 427834345a63Smrg 427934345a63Smrg 428034345a63Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 428134345a63Smrg inttypes.h stdint.h unistd.h 428234345a63Smrgdo 428334345a63Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 428434345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 428534345a63Smrg$as_echo_n "checking for $ac_header... " >&6; } 428634345a63Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 428734345a63Smrg $as_echo_n "(cached) " >&6 428834345a63Smrgelse 428934345a63Smrg cat >conftest.$ac_ext <<_ACEOF 429034345a63Smrg/* confdefs.h. */ 429134345a63Smrg_ACEOF 429234345a63Smrgcat confdefs.h >>conftest.$ac_ext 429334345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 429434345a63Smrg/* end confdefs.h. */ 429534345a63Smrg$ac_includes_default 429634345a63Smrg 429734345a63Smrg#include <$ac_header> 429834345a63Smrg_ACEOF 429934345a63Smrgrm -f conftest.$ac_objext 430034345a63Smrgif { (ac_try="$ac_compile" 430134345a63Smrgcase "(($ac_try" in 430234345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 430334345a63Smrg *) ac_try_echo=$ac_try;; 430434345a63Smrgesac 430534345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 430634345a63Smrg$as_echo "$ac_try_echo") >&5 430734345a63Smrg (eval "$ac_compile") 2>conftest.er1 430834345a63Smrg ac_status=$? 430934345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 431034345a63Smrg rm -f conftest.er1 431134345a63Smrg cat conftest.err >&5 431234345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 431334345a63Smrg (exit $ac_status); } && { 431434345a63Smrg test -z "$ac_c_werror_flag" || 431534345a63Smrg test ! -s conftest.err 431634345a63Smrg } && test -s conftest.$ac_objext; then 431734345a63Smrg eval "$as_ac_Header=yes" 431834345a63Smrgelse 431934345a63Smrg $as_echo "$as_me: failed program was:" >&5 432034345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 432134345a63Smrg 432234345a63Smrg eval "$as_ac_Header=no" 432334345a63Smrgfi 432434345a63Smrg 432534345a63Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 432634345a63Smrgfi 432734345a63Smrgac_res=`eval 'as_val=${'$as_ac_Header'} 432834345a63Smrg $as_echo "$as_val"'` 432934345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 433034345a63Smrg$as_echo "$ac_res" >&6; } 433134345a63Smrgas_val=`eval 'as_val=${'$as_ac_Header'} 433234345a63Smrg $as_echo "$as_val"'` 433334345a63Smrg if test "x$as_val" = x""yes; then 433434345a63Smrg cat >>confdefs.h <<_ACEOF 433534345a63Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 433634345a63Smrg_ACEOF 433734345a63Smrg 433834345a63Smrgfi 433934345a63Smrg 434034345a63Smrgdone 434134345a63Smrg 434234345a63Smrg 434334345a63Smrg 434434345a63Smrg 434534345a63Smrgif test "x$GCC" = xyes ; then 434634345a63Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 434734345a63Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 434834345a63Smrg-Wbad-function-cast" 434934345a63Smrg case `gcc -dumpversion` in 435034345a63Smrg 3.4.* | 4.*) 435134345a63Smrg CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 435234345a63Smrg ;; 435334345a63Smrg esac 435434345a63Smrgelse 435534345a63Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 435634345a63Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 435734345a63Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 435834345a63Smrg $as_echo_n "(cached) " >&6 435934345a63Smrgelse 436034345a63Smrg cat >conftest.$ac_ext <<_ACEOF 436134345a63Smrg/* confdefs.h. */ 436234345a63Smrg_ACEOF 436334345a63Smrgcat confdefs.h >>conftest.$ac_ext 436434345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 436534345a63Smrg/* end confdefs.h. */ 436634345a63Smrg$ac_includes_default 436734345a63Smrgint 436834345a63Smrgmain () 436934345a63Smrg{ 437034345a63Smrg#ifndef __SUNPRO_C 437134345a63Smrg (void) __SUNPRO_C; 437234345a63Smrg#endif 437334345a63Smrg 437434345a63Smrg ; 437534345a63Smrg return 0; 437634345a63Smrg} 437734345a63Smrg_ACEOF 437834345a63Smrgrm -f conftest.$ac_objext 437934345a63Smrgif { (ac_try="$ac_compile" 438034345a63Smrgcase "(($ac_try" in 438134345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 438234345a63Smrg *) ac_try_echo=$ac_try;; 438334345a63Smrgesac 438434345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 438534345a63Smrg$as_echo "$ac_try_echo") >&5 438634345a63Smrg (eval "$ac_compile") 2>conftest.er1 438734345a63Smrg ac_status=$? 438834345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 438934345a63Smrg rm -f conftest.er1 439034345a63Smrg cat conftest.err >&5 439134345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 439234345a63Smrg (exit $ac_status); } && { 439334345a63Smrg test -z "$ac_c_werror_flag" || 439434345a63Smrg test ! -s conftest.err 439534345a63Smrg } && test -s conftest.$ac_objext; then 439634345a63Smrg ac_cv_have_decl___SUNPRO_C=yes 439734345a63Smrgelse 439834345a63Smrg $as_echo "$as_me: failed program was:" >&5 439934345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 440034345a63Smrg 440134345a63Smrg ac_cv_have_decl___SUNPRO_C=no 440234345a63Smrgfi 440334345a63Smrg 440434345a63Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 440534345a63Smrgfi 440634345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 440734345a63Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 440834345a63Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 440934345a63Smrg SUNCC="yes" 4410f46a6179Smrgelse 441134345a63Smrg SUNCC="no" 4412f46a6179Smrgfi 4413f46a6179Smrg 441434345a63Smrg if test "x$SUNCC" = "xyes"; then 441534345a63Smrg CWARNFLAGS="-v" 441634345a63Smrg fi 441734345a63Smrgfi 4418f46a6179Smrg 4419f46a6179Smrg 442034345a63Smrg 442134345a63Smrg 442234345a63Smrg 442334345a63Smrgfor ac_func in strdup strcasecmp 4424f46a6179Smrgdo 442534345a63Smrgas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 442634345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 442734345a63Smrg$as_echo_n "checking for $ac_func... " >&6; } 442834345a63Smrgif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 442934345a63Smrg $as_echo_n "(cached) " >&6 443034345a63Smrgelse 443134345a63Smrg cat >conftest.$ac_ext <<_ACEOF 443234345a63Smrg/* confdefs.h. */ 443334345a63Smrg_ACEOF 443434345a63Smrgcat confdefs.h >>conftest.$ac_ext 443534345a63Smrgcat >>conftest.$ac_ext <<_ACEOF 443634345a63Smrg/* end confdefs.h. */ 443734345a63Smrg/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 443834345a63Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 443934345a63Smrg#define $ac_func innocuous_$ac_func 444034345a63Smrg 444134345a63Smrg/* System header to define __stub macros and hopefully few prototypes, 444234345a63Smrg which can conflict with char $ac_func (); below. 444334345a63Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 444434345a63Smrg <limits.h> exists even on freestanding compilers. */ 444534345a63Smrg 444634345a63Smrg#ifdef __STDC__ 444734345a63Smrg# include <limits.h> 444834345a63Smrg#else 444934345a63Smrg# include <assert.h> 445034345a63Smrg#endif 4451f46a6179Smrg 445234345a63Smrg#undef $ac_func 4453f46a6179Smrg 445434345a63Smrg/* Override any GCC internal prototype to avoid an error. 445534345a63Smrg Use char because int might match the return type of a GCC 445634345a63Smrg builtin and then its argument prototype would still apply. */ 445734345a63Smrg#ifdef __cplusplus 445834345a63Smrgextern "C" 445934345a63Smrg#endif 446034345a63Smrgchar $ac_func (); 446134345a63Smrg/* The GNU C library defines this for functions which it implements 446234345a63Smrg to always fail with ENOSYS. Some functions are actually named 446334345a63Smrg something starting with __ and the normal name is an alias. */ 446434345a63Smrg#if defined __stub_$ac_func || defined __stub___$ac_func 446534345a63Smrgchoke me 446634345a63Smrg#endif 4467f46a6179Smrg 446834345a63Smrgint 446934345a63Smrgmain () 447034345a63Smrg{ 447134345a63Smrgreturn $ac_func (); 447234345a63Smrg ; 447334345a63Smrg return 0; 447434345a63Smrg} 447534345a63Smrg_ACEOF 447634345a63Smrgrm -f conftest.$ac_objext conftest$ac_exeext 447734345a63Smrgif { (ac_try="$ac_link" 447834345a63Smrgcase "(($ac_try" in 447934345a63Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 448034345a63Smrg *) ac_try_echo=$ac_try;; 448134345a63Smrgesac 448234345a63Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 448334345a63Smrg$as_echo "$ac_try_echo") >&5 448434345a63Smrg (eval "$ac_link") 2>conftest.er1 448534345a63Smrg ac_status=$? 448634345a63Smrg grep -v '^ *+' conftest.er1 >conftest.err 448734345a63Smrg rm -f conftest.er1 448834345a63Smrg cat conftest.err >&5 448934345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 449034345a63Smrg (exit $ac_status); } && { 449134345a63Smrg test -z "$ac_c_werror_flag" || 449234345a63Smrg test ! -s conftest.err 449334345a63Smrg } && test -s conftest$ac_exeext && { 449434345a63Smrg test "$cross_compiling" = yes || 449534345a63Smrg $as_test_x conftest$ac_exeext 449634345a63Smrg }; then 449734345a63Smrg eval "$as_ac_var=yes" 449834345a63Smrgelse 449934345a63Smrg $as_echo "$as_me: failed program was:" >&5 450034345a63Smrgsed 's/^/| /' conftest.$ac_ext >&5 4501f46a6179Smrg 450234345a63Smrg eval "$as_ac_var=no" 450334345a63Smrgfi 4504f46a6179Smrg 450534345a63Smrgrm -rf conftest.dSYM 450634345a63Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 450734345a63Smrg conftest$ac_exeext conftest.$ac_ext 450834345a63Smrgfi 450934345a63Smrgac_res=`eval 'as_val=${'$as_ac_var'} 451034345a63Smrg $as_echo "$as_val"'` 451134345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 451234345a63Smrg$as_echo "$ac_res" >&6; } 451334345a63Smrgas_val=`eval 'as_val=${'$as_ac_var'} 451434345a63Smrg $as_echo "$as_val"'` 451534345a63Smrg if test "x$as_val" = x""yes; then 451634345a63Smrg cat >>confdefs.h <<_ACEOF 451734345a63Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 451834345a63Smrg_ACEOF 451934345a63Smrg 452034345a63Smrgfi 452134345a63Smrgdone 4522f46a6179Smrg 4523f46a6179Smrg 4524f46a6179Smrg# Checks for pkg-config packages 4525f46a6179Smrg 4526f46a6179Smrg 4527f46a6179Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4528f46a6179Smrg if test -n "$ac_tool_prefix"; then 4529f46a6179Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4530f46a6179Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 453134345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 453234345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 4533f46a6179Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then 453434345a63Smrg $as_echo_n "(cached) " >&6 4535f46a6179Smrgelse 4536f46a6179Smrg case $PKG_CONFIG in 4537f46a6179Smrg [\\/]* | ?:[\\/]*) 4538f46a6179Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4539f46a6179Smrg ;; 4540f46a6179Smrg *) 4541f46a6179Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4542f46a6179Smrgfor as_dir in $PATH 4543f46a6179Smrgdo 4544f46a6179Smrg IFS=$as_save_IFS 4545f46a6179Smrg test -z "$as_dir" && as_dir=. 4546f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4547f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4548f46a6179Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 454934345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4550f46a6179Smrg break 2 4551f46a6179Smrg fi 4552f46a6179Smrgdone 4553f46a6179Smrgdone 4554f46a6179SmrgIFS=$as_save_IFS 4555f46a6179Smrg 4556f46a6179Smrg ;; 4557f46a6179Smrgesac 4558f46a6179Smrgfi 4559f46a6179SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4560f46a6179Smrgif test -n "$PKG_CONFIG"; then 456134345a63Smrg { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 456234345a63Smrg$as_echo "$PKG_CONFIG" >&6; } 4563f46a6179Smrgelse 456434345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 456534345a63Smrg$as_echo "no" >&6; } 4566f46a6179Smrgfi 4567f46a6179Smrg 4568f46a6179Smrg 4569f46a6179Smrgfi 4570f46a6179Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4571f46a6179Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4572f46a6179Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4573f46a6179Smrgset dummy pkg-config; ac_word=$2 457434345a63Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 457534345a63Smrg$as_echo_n "checking for $ac_word... " >&6; } 4576f46a6179Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 457734345a63Smrg $as_echo_n "(cached) " >&6 4578f46a6179Smrgelse 4579f46a6179Smrg case $ac_pt_PKG_CONFIG in 4580f46a6179Smrg [\\/]* | ?:[\\/]*) 4581f46a6179Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4582f46a6179Smrg ;; 4583f46a6179Smrg *) 4584f46a6179Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4585f46a6179Smrgfor as_dir in $PATH 4586f46a6179Smrgdo 4587f46a6179Smrg IFS=$as_save_IFS 4588f46a6179Smrg test -z "$as_dir" && as_dir=. 4589f46a6179Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4590f46a6179Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4591f46a6179Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 459234345a63Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4593f46a6179Smrg break 2 4594f46a6179Smrg fi 4595f46a6179Smrgdone 4596f46a6179Smrgdone 4597f46a6179SmrgIFS=$as_save_IFS 4598f46a6179Smrg 4599f46a6179Smrg ;; 4600f46a6179Smrgesac 4601f46a6179Smrgfi 4602f46a6179Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4603f46a6179Smrgif test -n "$ac_pt_PKG_CONFIG"; then 460434345a63Smrg { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 460534345a63Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4606f46a6179Smrgelse 460734345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 460834345a63Smrg$as_echo "no" >&6; } 4609f46a6179Smrgfi 4610f46a6179Smrg 4611f46a6179Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4612f46a6179Smrg PKG_CONFIG="" 4613f46a6179Smrg else 4614f46a6179Smrg case $cross_compiling:$ac_tool_warned in 4615f46a6179Smrgyes:) 461634345a63Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 461734345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4618f46a6179Smrgac_tool_warned=yes ;; 4619f46a6179Smrgesac 4620f46a6179Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4621f46a6179Smrg fi 4622f46a6179Smrgelse 4623f46a6179Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4624f46a6179Smrgfi 4625f46a6179Smrg 4626f46a6179Smrgfi 4627f46a6179Smrgif test -n "$PKG_CONFIG"; then 4628f46a6179Smrg _pkg_min_version=0.9.0 462934345a63Smrg { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 463034345a63Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4631f46a6179Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 463234345a63Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 463334345a63Smrg$as_echo "yes" >&6; } 4634f46a6179Smrg else 463534345a63Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 463634345a63Smrg$as_echo "no" >&6; } 4637f46a6179Smrg PKG_CONFIG="" 4638f46a6179Smrg fi 4639f46a6179Smrg 4640f46a6179Smrgfi 4641f46a6179Smrg 4642f46a6179Smrgpkg_failed=no 464334345a63Smrg{ $as_echo "$as_me:$LINENO: checking for XKBCOMP" >&5 464434345a63Smrg$as_echo_n "checking for XKBCOMP... " >&6; } 464534345a63Smrg 464634345a63Smrgif test -n "$XKBCOMP_CFLAGS"; then 464734345a63Smrg pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS" 464834345a63Smrg elif test -n "$PKG_CONFIG"; then 464934345a63Smrg if test -n "$PKG_CONFIG" && \ 465034345a63Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile\"") >&5 4651f46a6179Smrg ($PKG_CONFIG --exists --print-errors "x11 xkbfile") 2>&5 4652f46a6179Smrg ac_status=$? 465334345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4654f46a6179Smrg (exit $ac_status); }; then 4655f46a6179Smrg pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "x11 xkbfile" 2>/dev/null` 4656f46a6179Smrgelse 4657f46a6179Smrg pkg_failed=yes 4658f46a6179Smrgfi 465934345a63Smrg else 466034345a63Smrg pkg_failed=untried 4661f46a6179Smrgfi 466234345a63Smrgif test -n "$XKBCOMP_LIBS"; then 466334345a63Smrg pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS" 466434345a63Smrg elif test -n "$PKG_CONFIG"; then 466534345a63Smrg if test -n "$PKG_CONFIG" && \ 466634345a63Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile\"") >&5 4667f46a6179Smrg ($PKG_CONFIG --exists --print-errors "x11 xkbfile") 2>&5 4668f46a6179Smrg ac_status=$? 466934345a63Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670f46a6179Smrg (exit $ac_status); }; then 4671f46a6179Smrg pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "x11 xkbfile" 2>/dev/null` 4672f46a6179Smrgelse 4673f46a6179Smrg pkg_failed=yes 4674f46a6179Smrgfi 467534345a63Smrg else 467634345a63Smrg pkg_failed=untried 4677f46a6179Smrgfi 4678f46a6179Smrg 4679f46a6179Smrg 4680f46a6179Smrg 4681f46a6179Smrgif test $pkg_failed = yes; then 4682f46a6179Smrg 4683f46a6179Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4684f46a6179Smrg _pkg_short_errors_supported=yes 4685f46a6179Smrgelse 4686f46a6179Smrg _pkg_short_errors_supported=no 4687f46a6179Smrgfi 4688f46a6179Smrg if test $_pkg_short_errors_supported = yes; then 468934345a63Smrg XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xkbfile" 2>&1` 4690f46a6179Smrg else 469134345a63Smrg XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xkbfile" 2>&1` 4692f46a6179Smrg fi 4693f46a6179Smrg # Put the nasty error message in config.log where it belongs 4694f46a6179Smrg echo "$XKBCOMP_PKG_ERRORS" >&5 4695f46a6179Smrg 469634345a63Smrg { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xkbfile) were not met: 4697f46a6179Smrg 4698f46a6179Smrg$XKBCOMP_PKG_ERRORS 4699f46a6179Smrg 4700f46a6179SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 4701f46a6179Smrginstalled software in a non-standard prefix. 4702f46a6179Smrg 4703f46a6179SmrgAlternatively, you may set the environment variables XKBCOMP_CFLAGS 4704f46a6179Smrgand XKBCOMP_LIBS to avoid the need to call pkg-config. 4705f46a6179SmrgSee the pkg-config man page for more details. 4706f46a6179Smrg" >&5 470734345a63Smrg$as_echo "$as_me: error: Package requirements (x11 xkbfile) were not met: 4708f46a6179Smrg 4709f46a6179Smrg$XKBCOMP_PKG_ERRORS 4710f46a6179Smrg 4711f46a6179SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 4712f46a6179Smrginstalled software in a non-standard prefix. 4713f46a6179Smrg 4714f46a6179SmrgAlternatively, you may set the environment variables XKBCOMP_CFLAGS 4715f46a6179Smrgand XKBCOMP_LIBS to avoid the need to call pkg-config. 4716f46a6179SmrgSee the pkg-config man page for more details. 4717f46a6179Smrg" >&2;} 4718f46a6179Smrg { (exit 1); exit 1; }; } 4719f46a6179Smrgelif test $pkg_failed = untried; then 472034345a63Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 472134345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 472234345a63Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 4723f46a6179Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 4724f46a6179Smrgpath to pkg-config. 4725f46a6179Smrg 4726f46a6179SmrgAlternatively, you may set the environment variables XKBCOMP_CFLAGS 4727f46a6179Smrgand XKBCOMP_LIBS to avoid the need to call pkg-config. 4728f46a6179SmrgSee the pkg-config man page for more details. 4729f46a6179Smrg 4730f46a6179SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 4731f46a6179SmrgSee \`config.log' for more details." >&5 473234345a63Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 4733f46a6179Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 4734f46a6179Smrgpath to pkg-config. 4735f46a6179Smrg 4736f46a6179SmrgAlternatively, you may set the environment variables XKBCOMP_CFLAGS 4737f46a6179Smrgand XKBCOMP_LIBS to avoid the need to call pkg-config. 4738f46a6179SmrgSee the pkg-config man page for more details. 4739f46a6179Smrg 4740f46a6179SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 4741f46a6179SmrgSee \`config.log' for more details." >&2;} 474234345a63Smrg { (exit 1); exit 1; }; }; } 4743f46a6179Smrgelse 4744f46a6179Smrg XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS 4745f46a6179Smrg XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS 474634345a63Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 474734345a63Smrg$as_echo "yes" >&6; } 4748f46a6179Smrg : 4749f46a6179Smrgfi 475034345a63SmrgXKBCOMP_CFLAGS="$CWARNFLAGS $XKBCOMP_CFLAGS" 475134345a63Smrg 475234345a63Smrg 475334345a63Smrg 475434345a63Smrg 475534345a63Smrg# Check whether --with-xkb_config_root was given. 475634345a63Smrgif test "${with_xkb_config_root+set}" = set; then 475734345a63Smrg withval=$with_xkb_config_root; XKBCONFIGROOT="$withval" 475834345a63Smrgelse 475934345a63Smrg XKBCONFIGROOT='${datadir}/X11/xkb' 476034345a63Smrgfi 4761f46a6179Smrg 4762f46a6179Smrg 4763f46a6179Smrg 4764f46a6179Smrg# Make sure we can run config.sub. 4765f46a6179Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 476634345a63Smrg { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 476734345a63Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4768f46a6179Smrg { (exit 1); exit 1; }; } 4769f46a6179Smrg 477034345a63Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5 477134345a63Smrg$as_echo_n "checking build system type... " >&6; } 4772f46a6179Smrgif test "${ac_cv_build+set}" = set; then 477334345a63Smrg $as_echo_n "(cached) " >&6 4774f46a6179Smrgelse 4775f46a6179Smrg ac_build_alias=$build_alias 4776f46a6179Smrgtest "x$ac_build_alias" = x && 4777f46a6179Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4778f46a6179Smrgtest "x$ac_build_alias" = x && 477934345a63Smrg { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 478034345a63Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4781f46a6179Smrg { (exit 1); exit 1; }; } 4782f46a6179Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 478334345a63Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 478434345a63Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4785f46a6179Smrg { (exit 1); exit 1; }; } 4786f46a6179Smrg 4787f46a6179Smrgfi 478834345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 478934345a63Smrg$as_echo "$ac_cv_build" >&6; } 4790f46a6179Smrgcase $ac_cv_build in 4791f46a6179Smrg*-*-*) ;; 479234345a63Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 479334345a63Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4794f46a6179Smrg { (exit 1); exit 1; }; };; 4795f46a6179Smrgesac 4796f46a6179Smrgbuild=$ac_cv_build 4797f46a6179Smrgac_save_IFS=$IFS; IFS='-' 4798f46a6179Smrgset x $ac_cv_build 4799f46a6179Smrgshift 4800f46a6179Smrgbuild_cpu=$1 4801f46a6179Smrgbuild_vendor=$2 4802f46a6179Smrgshift; shift 4803f46a6179Smrg# Remember, the first character of IFS is used to create $*, 4804f46a6179Smrg# except with old shells: 4805f46a6179Smrgbuild_os=$* 4806f46a6179SmrgIFS=$ac_save_IFS 4807f46a6179Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4808f46a6179Smrg 4809f46a6179Smrg 481034345a63Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5 481134345a63Smrg$as_echo_n "checking host system type... " >&6; } 4812f46a6179Smrgif test "${ac_cv_host+set}" = set; then 481334345a63Smrg $as_echo_n "(cached) " >&6 4814f46a6179Smrgelse 4815f46a6179Smrg if test "x$host_alias" = x; then 4816f46a6179Smrg ac_cv_host=$ac_cv_build 4817f46a6179Smrgelse 4818f46a6179Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 481934345a63Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 482034345a63Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4821f46a6179Smrg { (exit 1); exit 1; }; } 4822f46a6179Smrgfi 4823f46a6179Smrg 4824f46a6179Smrgfi 482534345a63Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 482634345a63Smrg$as_echo "$ac_cv_host" >&6; } 4827f46a6179Smrgcase $ac_cv_host in 4828f46a6179Smrg*-*-*) ;; 482934345a63Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 483034345a63Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4831f46a6179Smrg { (exit 1); exit 1; }; };; 4832f46a6179Smrgesac 4833f46a6179Smrghost=$ac_cv_host 4834f46a6179Smrgac_save_IFS=$IFS; IFS='-' 4835f46a6179Smrgset x $ac_cv_host 4836f46a6179Smrgshift 4837f46a6179Smrghost_cpu=$1 4838f46a6179Smrghost_vendor=$2 4839f46a6179Smrgshift; shift 4840f46a6179Smrg# Remember, the first character of IFS is used to create $*, 4841f46a6179Smrg# except with old shells: 4842f46a6179Smrghost_os=$* 4843f46a6179SmrgIFS=$ac_save_IFS 4844f46a6179Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4845f46a6179Smrg 4846f46a6179Smrg 4847f46a6179Smrg 4848f46a6179Smrg 4849f46a6179Smrg 4850f46a6179Smrgif test x$APP_MAN_SUFFIX = x ; then 4851f46a6179Smrg APP_MAN_SUFFIX=1 4852f46a6179Smrgfi 4853f46a6179Smrgif test x$APP_MAN_DIR = x ; then 4854f46a6179Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4855f46a6179Smrgfi 4856f46a6179Smrg 4857f46a6179Smrgif test x$LIB_MAN_SUFFIX = x ; then 4858f46a6179Smrg LIB_MAN_SUFFIX=3 4859f46a6179Smrgfi 4860f46a6179Smrgif test x$LIB_MAN_DIR = x ; then 4861f46a6179Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4862f46a6179Smrgfi 4863f46a6179Smrg 4864f46a6179Smrgif test x$FILE_MAN_SUFFIX = x ; then 4865f46a6179Smrg case $host_os in 4866f46a6179Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4867f46a6179Smrg *) FILE_MAN_SUFFIX=5 ;; 4868f46a6179Smrg esac 4869f46a6179Smrgfi 4870f46a6179Smrgif test x$FILE_MAN_DIR = x ; then 4871f46a6179Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4872f46a6179Smrgfi 4873f46a6179Smrg 4874f46a6179Smrgif test x$MISC_MAN_SUFFIX = x ; then 4875f46a6179Smrg case $host_os in 4876f46a6179Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4877f46a6179Smrg *) MISC_MAN_SUFFIX=7 ;; 4878f46a6179Smrg esac 4879f46a6179Smrgfi 4880f46a6179Smrgif test x$MISC_MAN_DIR = x ; then 4881f46a6179Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4882f46a6179Smrgfi 4883f46a6179Smrg 4884f46a6179Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4885f46a6179Smrg case $host_os in 4886f46a6179Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4887f46a6179Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4888f46a6179Smrg esac 4889f46a6179Smrgfi 4890f46a6179Smrgif test x$DRIVER_MAN_DIR = x ; then 4891f46a6179Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4892f46a6179Smrgfi 4893f46a6179Smrg 4894f46a6179Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4895f46a6179Smrg case $host_os in 4896f46a6179Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4897f46a6179Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4898f46a6179Smrg esac 4899f46a6179Smrgfi 4900f46a6179Smrgif test x$ADMIN_MAN_DIR = x ; then 4901f46a6179Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4902f46a6179Smrgfi 4903f46a6179Smrg 4904f46a6179Smrg 4905f46a6179Smrg 4906f46a6179Smrg 4907f46a6179Smrg 4908f46a6179Smrg 4909f46a6179Smrg 4910f46a6179Smrg 4911f46a6179Smrg 4912f46a6179Smrg 4913f46a6179Smrg 4914f46a6179Smrg 4915f46a6179Smrg 4916f46a6179Smrg 4917f46a6179Smrg 4918f46a6179Smrg 4919f46a6179Smrg 4920f46a6179Smrg# Check whether --with-release-version was given. 4921f46a6179Smrgif test "${with_release_version+set}" = set; then 4922f46a6179Smrg withval=$with_release_version; RELEASE_VERSION="$withval" 4923f46a6179Smrgelse 4924f46a6179Smrg RELEASE_VERSION="" 4925f46a6179Smrgfi 4926f46a6179Smrg 4927f46a6179Smrg if test "x$RELEASE_VERSION" != "x"; then 4928f46a6179Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 4929f46a6179Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 493034345a63Smrg { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 493134345a63Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4932f46a6179Smrg fi 4933f46a6179Smrg 4934f46a6179Smrgcat >>confdefs.h <<_ACEOF 4935f46a6179Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4936f46a6179Smrg_ACEOF 4937f46a6179Smrg 493834345a63Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4939f46a6179Smrg if test "x$PVM" = "x"; then 4940f46a6179Smrg PVM="0" 4941f46a6179Smrg fi 4942f46a6179Smrg 4943f46a6179Smrgcat >>confdefs.h <<_ACEOF 4944f46a6179Smrg#define PACKAGE_VERSION_MINOR $PVM 4945f46a6179Smrg_ACEOF 4946f46a6179Smrg 494734345a63Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4948f46a6179Smrg if test "x$PVP" = "x"; then 4949f46a6179Smrg PVP="0" 4950f46a6179Smrg fi 4951f46a6179Smrg 4952f46a6179Smrgcat >>confdefs.h <<_ACEOF 4953f46a6179Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4954f46a6179Smrg_ACEOF 4955f46a6179Smrg 4956f46a6179Smrg 4957f46a6179Smrg 495834345a63SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 495934345a63Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 496034345a63Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 496134345a63Smrg 496234345a63Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 496334345a63Smrg 496434345a63Smrg 496534345a63Smrg 4966f46a6179Smrgac_config_files="$ac_config_files Makefile" 4967f46a6179Smrg 4968f46a6179Smrgcat >confcache <<\_ACEOF 4969f46a6179Smrg# This file is a shell script that caches the results of configure 4970f46a6179Smrg# tests run on this system so they can be shared between configure 4971f46a6179Smrg# scripts and configure runs, see configure's option --config-cache. 4972f46a6179Smrg# It is not useful on other systems. If it contains results you don't 4973f46a6179Smrg# want to keep, you may remove or edit it. 4974f46a6179Smrg# 4975f46a6179Smrg# config.status only pays attention to the cache file if you give it 4976f46a6179Smrg# the --recheck option to rerun configure. 4977f46a6179Smrg# 4978f46a6179Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 4979f46a6179Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 4980f46a6179Smrg# following values. 4981f46a6179Smrg 4982f46a6179Smrg_ACEOF 4983f46a6179Smrg 4984f46a6179Smrg# The following way of writing the cache mishandles newlines in values, 4985f46a6179Smrg# but we know of no workaround that is simple, portable, and efficient. 4986f46a6179Smrg# So, we kill variables containing newlines. 4987f46a6179Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 4988f46a6179Smrg# and sets the high bit in the cache file unless we assign to the vars. 4989f46a6179Smrg( 4990f46a6179Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4991f46a6179Smrg eval ac_val=\$$ac_var 4992f46a6179Smrg case $ac_val in #( 4993f46a6179Smrg *${as_nl}*) 4994f46a6179Smrg case $ac_var in #( 499534345a63Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 499634345a63Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4997f46a6179Smrg esac 4998f46a6179Smrg case $ac_var in #( 4999f46a6179Smrg _ | IFS | as_nl) ;; #( 500034345a63Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5001f46a6179Smrg *) $as_unset $ac_var ;; 5002f46a6179Smrg esac ;; 5003f46a6179Smrg esac 5004f46a6179Smrg done 5005f46a6179Smrg 5006f46a6179Smrg (set) 2>&1 | 5007f46a6179Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 5008f46a6179Smrg *${as_nl}ac_space=\ *) 5009f46a6179Smrg # `set' does not quote correctly, so add quotes (double-quote 5010f46a6179Smrg # substitution turns \\\\ into \\, and sed turns \\ into \). 5011f46a6179Smrg sed -n \ 5012f46a6179Smrg "s/'/'\\\\''/g; 5013f46a6179Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5014f46a6179Smrg ;; #( 5015f46a6179Smrg *) 5016f46a6179Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 5017f46a6179Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5018f46a6179Smrg ;; 5019f46a6179Smrg esac | 5020f46a6179Smrg sort 5021f46a6179Smrg) | 5022f46a6179Smrg sed ' 5023f46a6179Smrg /^ac_cv_env_/b end 5024f46a6179Smrg t clear 5025f46a6179Smrg :clear 5026f46a6179Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5027f46a6179Smrg t end 5028f46a6179Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5029f46a6179Smrg :end' >>confcache 5030f46a6179Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5031f46a6179Smrg if test -w "$cache_file"; then 5032f46a6179Smrg test "x$cache_file" != "x/dev/null" && 503334345a63Smrg { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 503434345a63Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 5035f46a6179Smrg cat confcache >$cache_file 5036f46a6179Smrg else 503734345a63Smrg { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 503834345a63Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5039f46a6179Smrg fi 5040f46a6179Smrgfi 5041f46a6179Smrgrm -f confcache 5042f46a6179Smrg 5043f46a6179Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 5044f46a6179Smrg# Let make expand exec_prefix. 5045f46a6179Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5046f46a6179Smrg 5047f46a6179SmrgDEFS=-DHAVE_CONFIG_H 5048f46a6179Smrg 5049f46a6179Smrgac_libobjs= 5050f46a6179Smrgac_ltlibobjs= 5051f46a6179Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5052f46a6179Smrg # 1. Remove the extension, and $U if already installed. 5053f46a6179Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 505434345a63Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5055f46a6179Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5056f46a6179Smrg # will be set to the directory where LIBOBJS objects are built. 5057f46a6179Smrg ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5058f46a6179Smrg ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 5059f46a6179Smrgdone 5060f46a6179SmrgLIBOBJS=$ac_libobjs 5061f46a6179Smrg 5062f46a6179SmrgLTLIBOBJS=$ac_ltlibobjs 5063f46a6179Smrg 5064f46a6179Smrg 506534345a63Smrg if test -n "$EXEEXT"; then 506634345a63Smrg am__EXEEXT_TRUE= 506734345a63Smrg am__EXEEXT_FALSE='#' 506834345a63Smrgelse 506934345a63Smrg am__EXEEXT_TRUE='#' 507034345a63Smrg am__EXEEXT_FALSE= 507134345a63Smrgfi 507234345a63Smrg 5073f46a6179Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 507434345a63Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 5075f46a6179SmrgUsually this means the macro was only invoked conditionally." >&5 507634345a63Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 5077f46a6179SmrgUsually this means the macro was only invoked conditionally." >&2;} 5078f46a6179Smrg { (exit 1); exit 1; }; } 5079f46a6179Smrgfi 5080f46a6179Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 508134345a63Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 5082f46a6179SmrgUsually this means the macro was only invoked conditionally." >&5 508334345a63Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 5084f46a6179SmrgUsually this means the macro was only invoked conditionally." >&2;} 5085f46a6179Smrg { (exit 1); exit 1; }; } 5086f46a6179Smrgfi 5087f46a6179Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 508834345a63Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 5089f46a6179SmrgUsually this means the macro was only invoked conditionally." >&5 509034345a63Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 5091f46a6179SmrgUsually this means the macro was only invoked conditionally." >&2;} 5092f46a6179Smrg { (exit 1); exit 1; }; } 5093f46a6179Smrgfi 5094f46a6179Smrg 5095f46a6179Smrg: ${CONFIG_STATUS=./config.status} 509634345a63Smrgac_write_fail=0 5097f46a6179Smrgac_clean_files_save=$ac_clean_files 5098f46a6179Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 509934345a63Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 510034345a63Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 510134345a63Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5102f46a6179Smrg#! $SHELL 5103f46a6179Smrg# Generated by $as_me. 5104f46a6179Smrg# Run this file to recreate the current configuration. 5105f46a6179Smrg# Compiler output produced by configure, useful for debugging 5106f46a6179Smrg# configure, is in config.log if it exists. 5107f46a6179Smrg 5108f46a6179Smrgdebug=false 5109f46a6179Smrgac_cs_recheck=false 5110f46a6179Smrgac_cs_silent=false 5111f46a6179SmrgSHELL=\${CONFIG_SHELL-$SHELL} 5112f46a6179Smrg_ACEOF 5113f46a6179Smrg 511434345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5115f46a6179Smrg## --------------------- ## 5116f46a6179Smrg## M4sh Initialization. ## 5117f46a6179Smrg## --------------------- ## 5118f46a6179Smrg 5119f46a6179Smrg# Be more Bourne compatible 5120f46a6179SmrgDUALCASE=1; export DUALCASE # for MKS sh 5121f46a6179Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5122f46a6179Smrg emulate sh 5123f46a6179Smrg NULLCMD=: 512434345a63Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5125f46a6179Smrg # is contrary to our usage. Disable this feature. 5126f46a6179Smrg alias -g '${1+"$@"}'='"$@"' 5127f46a6179Smrg setopt NO_GLOB_SUBST 5128f46a6179Smrgelse 5129f46a6179Smrg case `(set -o) 2>/dev/null` in 5130f46a6179Smrg *posix*) set -o posix ;; 5131f46a6179Smrgesac 5132f46a6179Smrg 5133f46a6179Smrgfi 5134f46a6179Smrg 5135f46a6179Smrg 5136f46a6179Smrg 5137f46a6179Smrg 5138f46a6179Smrg# PATH needs CR 5139f46a6179Smrg# Avoid depending upon Character Ranges. 5140f46a6179Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5141f46a6179Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5142f46a6179Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5143f46a6179Smrgas_cr_digits='0123456789' 5144f46a6179Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 5145f46a6179Smrg 514634345a63Smrgas_nl=' 514734345a63Smrg' 514834345a63Smrgexport as_nl 514934345a63Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 515034345a63Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 515134345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 515234345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 515334345a63Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 515434345a63Smrg as_echo='printf %s\n' 515534345a63Smrg as_echo_n='printf %s' 515634345a63Smrgelse 515734345a63Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 515834345a63Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 515934345a63Smrg as_echo_n='/usr/ucb/echo -n' 5160f46a6179Smrg else 516134345a63Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 516234345a63Smrg as_echo_n_body='eval 516334345a63Smrg arg=$1; 516434345a63Smrg case $arg in 516534345a63Smrg *"$as_nl"*) 516634345a63Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 516734345a63Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 516834345a63Smrg esac; 516934345a63Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 517034345a63Smrg ' 517134345a63Smrg export as_echo_n_body 517234345a63Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 5173f46a6179Smrg fi 517434345a63Smrg export as_echo_body 517534345a63Smrg as_echo='sh -c $as_echo_body as_echo' 517634345a63Smrgfi 517734345a63Smrg 517834345a63Smrg# The user is always right. 517934345a63Smrgif test "${PATH_SEPARATOR+set}" != set; then 518034345a63Smrg PATH_SEPARATOR=: 518134345a63Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 518234345a63Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 518334345a63Smrg PATH_SEPARATOR=';' 518434345a63Smrg } 5185f46a6179Smrgfi 5186f46a6179Smrg 5187f46a6179Smrg# Support unset when possible. 5188f46a6179Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5189f46a6179Smrg as_unset=unset 5190f46a6179Smrgelse 5191f46a6179Smrg as_unset=false 5192f46a6179Smrgfi 5193f46a6179Smrg 5194f46a6179Smrg 5195f46a6179Smrg# IFS 5196f46a6179Smrg# We need space, tab and new line, in precisely that order. Quoting is 5197f46a6179Smrg# there to prevent editors from complaining about space-tab. 5198f46a6179Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5199f46a6179Smrg# splitting by setting IFS to empty value.) 5200f46a6179SmrgIFS=" "" $as_nl" 5201f46a6179Smrg 5202f46a6179Smrg# Find who we are. Look in the path if we contain no directory separator. 5203f46a6179Smrgcase $0 in 5204f46a6179Smrg *[\\/]* ) as_myself=$0 ;; 5205f46a6179Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5206f46a6179Smrgfor as_dir in $PATH 5207f46a6179Smrgdo 5208f46a6179Smrg IFS=$as_save_IFS 5209f46a6179Smrg test -z "$as_dir" && as_dir=. 5210f46a6179Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5211f46a6179Smrgdone 5212f46a6179SmrgIFS=$as_save_IFS 5213f46a6179Smrg 5214f46a6179Smrg ;; 5215f46a6179Smrgesac 5216f46a6179Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5217f46a6179Smrg# in which case we are not to be found in the path. 5218f46a6179Smrgif test "x$as_myself" = x; then 5219f46a6179Smrg as_myself=$0 5220f46a6179Smrgfi 5221f46a6179Smrgif test ! -f "$as_myself"; then 522234345a63Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5223f46a6179Smrg { (exit 1); exit 1; } 5224f46a6179Smrgfi 5225f46a6179Smrg 5226f46a6179Smrg# Work around bugs in pre-3.0 UWIN ksh. 5227f46a6179Smrgfor as_var in ENV MAIL MAILPATH 5228f46a6179Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5229f46a6179Smrgdone 5230f46a6179SmrgPS1='$ ' 5231f46a6179SmrgPS2='> ' 5232f46a6179SmrgPS4='+ ' 5233f46a6179Smrg 5234f46a6179Smrg# NLS nuisances. 523534345a63SmrgLC_ALL=C 523634345a63Smrgexport LC_ALL 523734345a63SmrgLANGUAGE=C 523834345a63Smrgexport LANGUAGE 5239f46a6179Smrg 5240f46a6179Smrg# Required to use basename. 5241f46a6179Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5242f46a6179Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5243f46a6179Smrg as_expr=expr 5244f46a6179Smrgelse 5245f46a6179Smrg as_expr=false 5246f46a6179Smrgfi 5247f46a6179Smrg 5248f46a6179Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5249f46a6179Smrg as_basename=basename 5250f46a6179Smrgelse 5251f46a6179Smrg as_basename=false 5252f46a6179Smrgfi 5253f46a6179Smrg 5254f46a6179Smrg 5255f46a6179Smrg# Name of the executable. 5256f46a6179Smrgas_me=`$as_basename -- "$0" || 5257f46a6179Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5258f46a6179Smrg X"$0" : 'X\(//\)$' \| \ 5259f46a6179Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 526034345a63Smrg$as_echo X/"$0" | 5261f46a6179Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5262f46a6179Smrg s//\1/ 5263f46a6179Smrg q 5264f46a6179Smrg } 5265f46a6179Smrg /^X\/\(\/\/\)$/{ 5266f46a6179Smrg s//\1/ 5267f46a6179Smrg q 5268f46a6179Smrg } 5269f46a6179Smrg /^X\/\(\/\).*/{ 5270f46a6179Smrg s//\1/ 5271f46a6179Smrg q 5272f46a6179Smrg } 5273f46a6179Smrg s/.*/./; q'` 5274f46a6179Smrg 5275f46a6179Smrg# CDPATH. 5276f46a6179Smrg$as_unset CDPATH 5277f46a6179Smrg 5278f46a6179Smrg 5279f46a6179Smrg 5280f46a6179Smrg as_lineno_1=$LINENO 5281f46a6179Smrg as_lineno_2=$LINENO 5282f46a6179Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 5283f46a6179Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 5284f46a6179Smrg 5285f46a6179Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5286f46a6179Smrg # uniformly replaced by the line number. The first 'sed' inserts a 5287f46a6179Smrg # line-number line after each line using $LINENO; the second 'sed' 5288f46a6179Smrg # does the real work. The second script uses 'N' to pair each 5289f46a6179Smrg # line-number line with the line containing $LINENO, and appends 5290f46a6179Smrg # trailing '-' during substitution so that $LINENO is not a special 5291f46a6179Smrg # case at line end. 5292f46a6179Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5293f46a6179Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 5294f46a6179Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 5295f46a6179Smrg sed -n ' 5296f46a6179Smrg p 5297f46a6179Smrg /[$]LINENO/= 5298f46a6179Smrg ' <$as_myself | 5299f46a6179Smrg sed ' 5300f46a6179Smrg s/[$]LINENO.*/&-/ 5301f46a6179Smrg t lineno 5302f46a6179Smrg b 5303f46a6179Smrg :lineno 5304f46a6179Smrg N 5305f46a6179Smrg :loop 5306f46a6179Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5307f46a6179Smrg t loop 5308f46a6179Smrg s/-\n.*// 5309f46a6179Smrg ' >$as_me.lineno && 5310f46a6179Smrg chmod +x "$as_me.lineno" || 531134345a63Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 5312f46a6179Smrg { (exit 1); exit 1; }; } 5313f46a6179Smrg 5314f46a6179Smrg # Don't try to exec as it changes $[0], causing all sort of problems 5315f46a6179Smrg # (the dirname of $[0] is not the place where we might find the 5316f46a6179Smrg # original and so on. Autoconf is especially sensitive to this). 5317f46a6179Smrg . "./$as_me.lineno" 5318f46a6179Smrg # Exit status is that of the last command. 5319f46a6179Smrg exit 5320f46a6179Smrg} 5321f46a6179Smrg 5322f46a6179Smrg 5323f46a6179Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5324f46a6179Smrg as_dirname=dirname 5325f46a6179Smrgelse 5326f46a6179Smrg as_dirname=false 5327f46a6179Smrgfi 5328f46a6179Smrg 5329f46a6179SmrgECHO_C= ECHO_N= ECHO_T= 5330f46a6179Smrgcase `echo -n x` in 5331f46a6179Smrg-n*) 5332f46a6179Smrg case `echo 'x\c'` in 5333f46a6179Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5334f46a6179Smrg *) ECHO_C='\c';; 5335f46a6179Smrg esac;; 5336f46a6179Smrg*) 5337f46a6179Smrg ECHO_N='-n';; 5338f46a6179Smrgesac 5339f46a6179Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5340f46a6179Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5341f46a6179Smrg as_expr=expr 5342f46a6179Smrgelse 5343f46a6179Smrg as_expr=false 5344f46a6179Smrgfi 5345f46a6179Smrg 5346f46a6179Smrgrm -f conf$$ conf$$.exe conf$$.file 5347f46a6179Smrgif test -d conf$$.dir; then 5348f46a6179Smrg rm -f conf$$.dir/conf$$.file 5349f46a6179Smrgelse 5350f46a6179Smrg rm -f conf$$.dir 535134345a63Smrg mkdir conf$$.dir 2>/dev/null 535234345a63Smrgfi 535334345a63Smrgif (echo >conf$$.file) 2>/dev/null; then 535434345a63Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 535534345a63Smrg as_ln_s='ln -s' 535634345a63Smrg # ... but there are two gotchas: 535734345a63Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 535834345a63Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535934345a63Smrg # In both cases, we have to default to `cp -p'. 536034345a63Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536134345a63Smrg as_ln_s='cp -p' 536234345a63Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 536334345a63Smrg as_ln_s=ln 536434345a63Smrg else 5365f46a6179Smrg as_ln_s='cp -p' 536634345a63Smrg fi 5367f46a6179Smrgelse 5368f46a6179Smrg as_ln_s='cp -p' 5369f46a6179Smrgfi 5370f46a6179Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5371f46a6179Smrgrmdir conf$$.dir 2>/dev/null 5372f46a6179Smrg 5373f46a6179Smrgif mkdir -p . 2>/dev/null; then 5374f46a6179Smrg as_mkdir_p=: 5375f46a6179Smrgelse 5376f46a6179Smrg test -d ./-p && rmdir ./-p 5377f46a6179Smrg as_mkdir_p=false 5378f46a6179Smrgfi 5379f46a6179Smrg 5380f46a6179Smrgif test -x / >/dev/null 2>&1; then 5381f46a6179Smrg as_test_x='test -x' 5382f46a6179Smrgelse 5383f46a6179Smrg if ls -dL / >/dev/null 2>&1; then 5384f46a6179Smrg as_ls_L_option=L 5385f46a6179Smrg else 5386f46a6179Smrg as_ls_L_option= 5387f46a6179Smrg fi 5388f46a6179Smrg as_test_x=' 5389f46a6179Smrg eval sh -c '\'' 5390f46a6179Smrg if test -d "$1"; then 539134345a63Smrg test -d "$1/."; 5392f46a6179Smrg else 5393f46a6179Smrg case $1 in 539434345a63Smrg -*)set "./$1";; 5395f46a6179Smrg esac; 5396f46a6179Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5397f46a6179Smrg ???[sx]*):;;*)false;;esac;fi 5398f46a6179Smrg '\'' sh 5399f46a6179Smrg ' 5400f46a6179Smrgfi 5401f46a6179Smrgas_executable_p=$as_test_x 5402f46a6179Smrg 5403f46a6179Smrg# Sed expression to map a string onto a valid CPP name. 5404f46a6179Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5405f46a6179Smrg 5406f46a6179Smrg# Sed expression to map a string onto a valid variable name. 5407f46a6179Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5408f46a6179Smrg 5409f46a6179Smrg 5410f46a6179Smrgexec 6>&1 5411f46a6179Smrg 5412f46a6179Smrg# Save the log message, to keep $[0] and so on meaningful, and to 5413f46a6179Smrg# report actual input values of CONFIG_FILES etc. instead of their 5414f46a6179Smrg# values after options handling. 5415f46a6179Smrgac_log=" 541634345a63SmrgThis file was extended by xkbcomp $as_me 1.1.0, which was 541734345a63Smrggenerated by GNU Autoconf 2.63. Invocation command line was 5418f46a6179Smrg 5419f46a6179Smrg CONFIG_FILES = $CONFIG_FILES 5420f46a6179Smrg CONFIG_HEADERS = $CONFIG_HEADERS 5421f46a6179Smrg CONFIG_LINKS = $CONFIG_LINKS 5422f46a6179Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5423f46a6179Smrg $ $0 $@ 5424f46a6179Smrg 5425f46a6179Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5426f46a6179Smrg" 5427f46a6179Smrg 5428f46a6179Smrg_ACEOF 5429f46a6179Smrg 543034345a63Smrgcase $ac_config_files in *" 543134345a63Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 543234345a63Smrgesac 543334345a63Smrg 543434345a63Smrgcase $ac_config_headers in *" 543534345a63Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 543634345a63Smrgesac 543734345a63Smrg 543834345a63Smrg 543934345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5440f46a6179Smrg# Files that config.status was made for. 5441f46a6179Smrgconfig_files="$ac_config_files" 5442f46a6179Smrgconfig_headers="$ac_config_headers" 5443f46a6179Smrgconfig_commands="$ac_config_commands" 5444f46a6179Smrg 5445f46a6179Smrg_ACEOF 5446f46a6179Smrg 544734345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5448f46a6179Smrgac_cs_usage="\ 5449f46a6179Smrg\`$as_me' instantiates files from templates according to the 5450f46a6179Smrgcurrent configuration. 5451f46a6179Smrg 545234345a63SmrgUsage: $0 [OPTION]... [FILE]... 5453f46a6179Smrg 5454f46a6179Smrg -h, --help print this help, then exit 5455f46a6179Smrg -V, --version print version number and configuration settings, then exit 545634345a63Smrg -q, --quiet, --silent 545734345a63Smrg do not print progress messages 5458f46a6179Smrg -d, --debug don't remove temporary files 5459f46a6179Smrg --recheck update $as_me by reconfiguring in the same conditions 546034345a63Smrg --file=FILE[:TEMPLATE] 546134345a63Smrg instantiate the configuration file FILE 546234345a63Smrg --header=FILE[:TEMPLATE] 546334345a63Smrg instantiate the configuration header FILE 5464f46a6179Smrg 5465f46a6179SmrgConfiguration files: 5466f46a6179Smrg$config_files 5467f46a6179Smrg 5468f46a6179SmrgConfiguration headers: 5469f46a6179Smrg$config_headers 5470f46a6179Smrg 5471f46a6179SmrgConfiguration commands: 5472f46a6179Smrg$config_commands 5473f46a6179Smrg 5474f46a6179SmrgReport bugs to <bug-autoconf@gnu.org>." 5475f46a6179Smrg 5476f46a6179Smrg_ACEOF 547734345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5478f46a6179Smrgac_cs_version="\\ 547934345a63Smrgxkbcomp config.status 1.1.0 548034345a63Smrgconfigured by $0, generated by GNU Autoconf 2.63, 548134345a63Smrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5482f46a6179Smrg 548334345a63SmrgCopyright (C) 2008 Free Software Foundation, Inc. 5484f46a6179SmrgThis config.status script is free software; the Free Software Foundation 5485f46a6179Smrggives unlimited permission to copy, distribute and modify it." 5486f46a6179Smrg 5487f46a6179Smrgac_pwd='$ac_pwd' 5488f46a6179Smrgsrcdir='$srcdir' 5489f46a6179SmrgINSTALL='$INSTALL' 5490f46a6179SmrgMKDIR_P='$MKDIR_P' 549134345a63SmrgAWK='$AWK' 549234345a63Smrgtest -n "\$AWK" || AWK=awk 5493f46a6179Smrg_ACEOF 5494f46a6179Smrg 549534345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 549634345a63Smrg# The default lists apply if the user does not specify any file. 5497f46a6179Smrgac_need_defaults=: 5498f46a6179Smrgwhile test $# != 0 5499f46a6179Smrgdo 5500f46a6179Smrg case $1 in 5501f46a6179Smrg --*=*) 5502f46a6179Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5503f46a6179Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5504f46a6179Smrg ac_shift=: 5505f46a6179Smrg ;; 5506f46a6179Smrg *) 5507f46a6179Smrg ac_option=$1 5508f46a6179Smrg ac_optarg=$2 5509f46a6179Smrg ac_shift=shift 5510f46a6179Smrg ;; 5511f46a6179Smrg esac 5512f46a6179Smrg 5513f46a6179Smrg case $ac_option in 5514f46a6179Smrg # Handling of the options. 5515f46a6179Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5516f46a6179Smrg ac_cs_recheck=: ;; 5517f46a6179Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 551834345a63Smrg $as_echo "$ac_cs_version"; exit ;; 5519f46a6179Smrg --debug | --debu | --deb | --de | --d | -d ) 5520f46a6179Smrg debug=: ;; 5521f46a6179Smrg --file | --fil | --fi | --f ) 5522f46a6179Smrg $ac_shift 552334345a63Smrg case $ac_optarg in 552434345a63Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 552534345a63Smrg esac 552634345a63Smrg CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 5527f46a6179Smrg ac_need_defaults=false;; 5528f46a6179Smrg --header | --heade | --head | --hea ) 5529f46a6179Smrg $ac_shift 553034345a63Smrg case $ac_optarg in 553134345a63Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 553234345a63Smrg esac 553334345a63Smrg CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 5534f46a6179Smrg ac_need_defaults=false;; 5535f46a6179Smrg --he | --h) 5536f46a6179Smrg # Conflict between --help and --header 553734345a63Smrg { $as_echo "$as_me: error: ambiguous option: $1 5538f46a6179SmrgTry \`$0 --help' for more information." >&2 5539f46a6179Smrg { (exit 1); exit 1; }; };; 5540f46a6179Smrg --help | --hel | -h ) 554134345a63Smrg $as_echo "$ac_cs_usage"; exit ;; 5542f46a6179Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5543f46a6179Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 5544f46a6179Smrg ac_cs_silent=: ;; 5545f46a6179Smrg 5546f46a6179Smrg # This is an error. 554734345a63Smrg -*) { $as_echo "$as_me: error: unrecognized option: $1 5548f46a6179SmrgTry \`$0 --help' for more information." >&2 5549f46a6179Smrg { (exit 1); exit 1; }; } ;; 5550f46a6179Smrg 5551f46a6179Smrg *) ac_config_targets="$ac_config_targets $1" 5552f46a6179Smrg ac_need_defaults=false ;; 5553f46a6179Smrg 5554f46a6179Smrg esac 5555f46a6179Smrg shift 5556f46a6179Smrgdone 5557f46a6179Smrg 5558f46a6179Smrgac_configure_extra_args= 5559f46a6179Smrg 5560f46a6179Smrgif $ac_cs_silent; then 5561f46a6179Smrg exec 6>/dev/null 5562f46a6179Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 5563f46a6179Smrgfi 5564f46a6179Smrg 5565f46a6179Smrg_ACEOF 556634345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5567f46a6179Smrgif \$ac_cs_recheck; then 556834345a63Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 556934345a63Smrg shift 557034345a63Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 557134345a63Smrg CONFIG_SHELL='$SHELL' 5572f46a6179Smrg export CONFIG_SHELL 557334345a63Smrg exec "\$@" 5574f46a6179Smrgfi 5575f46a6179Smrg 5576f46a6179Smrg_ACEOF 557734345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5578f46a6179Smrgexec 5>>config.log 5579f46a6179Smrg{ 5580f46a6179Smrg echo 5581f46a6179Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5582f46a6179Smrg## Running $as_me. ## 5583f46a6179Smrg_ASBOX 558434345a63Smrg $as_echo "$ac_log" 5585f46a6179Smrg} >&5 5586f46a6179Smrg 5587f46a6179Smrg_ACEOF 558834345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5589f46a6179Smrg# 5590f46a6179Smrg# INIT-COMMANDS 5591f46a6179Smrg# 5592f46a6179SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5593f46a6179Smrg 5594f46a6179Smrg_ACEOF 5595f46a6179Smrg 559634345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5597f46a6179Smrg 5598f46a6179Smrg# Handling of arguments. 5599f46a6179Smrgfor ac_config_target in $ac_config_targets 5600f46a6179Smrgdo 5601f46a6179Smrg case $ac_config_target in 5602f46a6179Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5603f46a6179Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5604f46a6179Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5605f46a6179Smrg 560634345a63Smrg *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 560734345a63Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5608f46a6179Smrg { (exit 1); exit 1; }; };; 5609f46a6179Smrg esac 5610f46a6179Smrgdone 5611f46a6179Smrg 5612f46a6179Smrg 5613f46a6179Smrg# If the user did not use the arguments to specify the items to instantiate, 5614f46a6179Smrg# then the envvar interface is used. Set only those that are not. 5615f46a6179Smrg# We use the long form for the default assignment because of an extremely 5616f46a6179Smrg# bizarre bug on SunOS 4.1.3. 5617f46a6179Smrgif $ac_need_defaults; then 5618f46a6179Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5619f46a6179Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5620f46a6179Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5621f46a6179Smrgfi 5622f46a6179Smrg 5623f46a6179Smrg# Have a temporary directory for convenience. Make it in the build tree 5624f46a6179Smrg# simply because there is no reason against having it here, and in addition, 5625f46a6179Smrg# creating and moving files from /tmp can sometimes cause problems. 5626f46a6179Smrg# Hook for its removal unless debugging. 5627f46a6179Smrg# Note that there is a small window in which the directory will not be cleaned: 5628f46a6179Smrg# after its creation but before its name has been assigned to `$tmp'. 5629f46a6179Smrg$debug || 5630f46a6179Smrg{ 5631f46a6179Smrg tmp= 5632f46a6179Smrg trap 'exit_status=$? 5633f46a6179Smrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5634f46a6179Smrg' 0 5635f46a6179Smrg trap '{ (exit 1); exit 1; }' 1 2 13 15 5636f46a6179Smrg} 5637f46a6179Smrg# Create a (secure) tmp directory for tmp files. 5638f46a6179Smrg 5639f46a6179Smrg{ 5640f46a6179Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5641f46a6179Smrg test -n "$tmp" && test -d "$tmp" 5642f46a6179Smrg} || 5643f46a6179Smrg{ 5644f46a6179Smrg tmp=./conf$$-$RANDOM 5645f46a6179Smrg (umask 077 && mkdir "$tmp") 5646f46a6179Smrg} || 5647f46a6179Smrg{ 564834345a63Smrg $as_echo "$as_me: cannot create a temporary directory in ." >&2 5649f46a6179Smrg { (exit 1); exit 1; } 5650f46a6179Smrg} 5651f46a6179Smrg 565234345a63Smrg# Set up the scripts for CONFIG_FILES section. 565334345a63Smrg# No need to generate them if there are no CONFIG_FILES. 565434345a63Smrg# This happens for instance with `./config.status config.h'. 5655f46a6179Smrgif test -n "$CONFIG_FILES"; then 5656f46a6179Smrg 5657f46a6179Smrg 565834345a63Smrgac_cr=' 565934345a63Smrg' 566034345a63Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 566134345a63Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 566234345a63Smrg ac_cs_awk_cr='\\r' 566334345a63Smrgelse 5664f46a6179Smrg ac_cs_awk_cr=$ac_cr 5665f46a6179Smrgfi 566634345a63Smrg 5667f46a6179Smrgecho 'BEGIN {' >"$tmp/subs1.awk" && 5668f46a6179Smrg_ACEOF 5669f46a6179Smrg 567034345a63Smrg 567134345a63Smrg{ 567234345a63Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 567334345a63Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 567434345a63Smrg echo "_ACEOF" 567534345a63Smrg} >conf$$subs.sh || 567634345a63Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 567734345a63Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 567834345a63Smrg { (exit 1); exit 1; }; } 5679f46a6179Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 5680f46a6179Smrgac_delim='%!_!# ' 568134345a63Smrgfor ac_last_try in false false false false false :; do 568234345a63Smrg . ./conf$$subs.sh || 568334345a63Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 568434345a63Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5685f46a6179Smrg { (exit 1); exit 1; }; } 568634345a63Smrg 568734345a63Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5688f46a6179Smrg if test $ac_delim_n = $ac_delim_num; then 5689f46a6179Smrg break 569034345a63Smrg elif $ac_last_try; then 569134345a63Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5692f46a6179Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5693f46a6179Smrg { (exit 1); exit 1; }; } 5694f46a6179Smrg else 5695f46a6179Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5696f46a6179Smrg fi 569734345a63Smrgdone 5698f46a6179Smrgrm -f conf$$subs.sh 569934345a63Smrg 570034345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 570134345a63Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 570234345a63Smrg_ACEOF 570334345a63Smrgsed -n ' 570434345a63Smrgh 570534345a63Smrgs/^/S["/; s/!.*/"]=/ 570634345a63Smrgp 570734345a63Smrgg 570834345a63Smrgs/^[^!]*!// 570934345a63Smrg:repl 571034345a63Smrgt repl 571134345a63Smrgs/'"$ac_delim"'$// 571234345a63Smrgt delim 571334345a63Smrg:nl 571434345a63Smrgh 571534345a63Smrgs/\(.\{148\}\).*/\1/ 571634345a63Smrgt more1 571734345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 571834345a63Smrgp 571934345a63Smrgn 572034345a63Smrgb repl 572134345a63Smrg:more1 572234345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 572334345a63Smrgp 572434345a63Smrgg 572534345a63Smrgs/.\{148\}// 572634345a63Smrgt nl 572734345a63Smrg:delim 572834345a63Smrgh 572934345a63Smrgs/\(.\{148\}\).*/\1/ 573034345a63Smrgt more2 573134345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 573234345a63Smrgp 573334345a63Smrgb 573434345a63Smrg:more2 573534345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 573634345a63Smrgp 573734345a63Smrgg 573834345a63Smrgs/.\{148\}// 573934345a63Smrgt delim 574034345a63Smrg' <conf$$subs.awk | sed ' 574134345a63Smrg/^[^""]/{ 574234345a63Smrg N 574334345a63Smrg s/\n// 574434345a63Smrg} 574534345a63Smrg' >>$CONFIG_STATUS || ac_write_fail=1 574634345a63Smrgrm -f conf$$subs.awk 574734345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 574834345a63Smrg_ACAWK 574934345a63Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 575034345a63Smrg for (key in S) S_is_set[key] = 1 575134345a63Smrg FS = "" 575234345a63Smrg 575334345a63Smrg} 575434345a63Smrg{ 575534345a63Smrg line = $ 0 575634345a63Smrg nfields = split(line, field, "@") 575734345a63Smrg substed = 0 575834345a63Smrg len = length(field[1]) 575934345a63Smrg for (i = 2; i < nfields; i++) { 576034345a63Smrg key = field[i] 576134345a63Smrg keylen = length(key) 576234345a63Smrg if (S_is_set[key]) { 576334345a63Smrg value = S[key] 576434345a63Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 576534345a63Smrg len += length(value) + length(field[++i]) 576634345a63Smrg substed = 1 576734345a63Smrg } else 576834345a63Smrg len += 1 + keylen 576934345a63Smrg } 577034345a63Smrg 577134345a63Smrg print line 5772f46a6179Smrg} 577334345a63Smrg 5774f46a6179Smrg_ACAWK 577534345a63Smrg_ACEOF 577634345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 577734345a63Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 577834345a63Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 577934345a63Smrgelse 578034345a63Smrg cat 578134345a63Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 578234345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 578334345a63Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;} 5784f46a6179Smrg { (exit 1); exit 1; }; } 5785f46a6179Smrg_ACEOF 5786f46a6179Smrg 5787f46a6179Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 5788f46a6179Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5789f46a6179Smrg# trailing colons and then remove the whole line if VPATH becomes empty 5790f46a6179Smrg# (actually we leave an empty line to preserve line numbers). 5791f46a6179Smrgif test "x$srcdir" = x.; then 5792f46a6179Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5793f46a6179Smrgs/:*\$(srcdir):*/:/ 5794f46a6179Smrgs/:*\${srcdir}:*/:/ 5795f46a6179Smrgs/:*@srcdir@:*/:/ 5796f46a6179Smrgs/^\([^=]*=[ ]*\):*/\1/ 5797f46a6179Smrgs/:*$// 5798f46a6179Smrgs/^[^=]*=[ ]*$// 5799f46a6179Smrg}' 5800f46a6179Smrgfi 580134345a63Smrg 5802f46a6179Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5803f46a6179Smrgfi # test -n "$CONFIG_FILES" 580434345a63Smrg 580534345a63Smrg# Set up the scripts for CONFIG_HEADERS section. 580634345a63Smrg# No need to generate them if there are no CONFIG_HEADERS. 580734345a63Smrg# This happens for instance with `./config.status Makefile'. 580834345a63Smrgif test -n "$CONFIG_HEADERS"; then 580934345a63Smrgcat >"$tmp/defines.awk" <<\_ACAWK || 581034345a63SmrgBEGIN { 581134345a63Smrg_ACEOF 581234345a63Smrg 581334345a63Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 581434345a63Smrg# here-document in config.status, that substitutes the proper values into 581534345a63Smrg# config.h.in to produce config.h. 581634345a63Smrg 581734345a63Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 581834345a63Smrg# handling of long lines. 581934345a63Smrgac_delim='%!_!# ' 582034345a63Smrgfor ac_last_try in false false :; do 582134345a63Smrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 582234345a63Smrg if test -z "$ac_t"; then 582334345a63Smrg break 582434345a63Smrg elif $ac_last_try; then 582534345a63Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 582634345a63Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 582734345a63Smrg { (exit 1); exit 1; }; } 582834345a63Smrg else 582934345a63Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 583034345a63Smrg fi 583134345a63Smrgdone 583234345a63Smrg 583334345a63Smrg# For the awk script, D is an array of macro values keyed by name, 583434345a63Smrg# likewise P contains macro parameters if any. Preserve backslash 583534345a63Smrg# newline sequences. 583634345a63Smrg 583734345a63Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 583834345a63Smrgsed -n ' 583934345a63Smrgs/.\{148\}/&'"$ac_delim"'/g 584034345a63Smrgt rset 584134345a63Smrg:rset 584234345a63Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 584334345a63Smrgt def 584434345a63Smrgd 584534345a63Smrg:def 584634345a63Smrgs/\\$// 584734345a63Smrgt bsnl 584834345a63Smrgs/["\\]/\\&/g 584934345a63Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 585034345a63SmrgD["\1"]=" \3"/p 585134345a63Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 585234345a63Smrgd 585334345a63Smrg:bsnl 585434345a63Smrgs/["\\]/\\&/g 585534345a63Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 585634345a63SmrgD["\1"]=" \3\\\\\\n"\\/p 585734345a63Smrgt cont 585834345a63Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 585934345a63Smrgt cont 586034345a63Smrgd 586134345a63Smrg:cont 586234345a63Smrgn 586334345a63Smrgs/.\{148\}/&'"$ac_delim"'/g 586434345a63Smrgt clear 586534345a63Smrg:clear 586634345a63Smrgs/\\$// 586734345a63Smrgt bsnlc 586834345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 586934345a63Smrgd 587034345a63Smrg:bsnlc 587134345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 587234345a63Smrgb cont 587334345a63Smrg' <confdefs.h | sed ' 587434345a63Smrgs/'"$ac_delim"'/"\\\ 587534345a63Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 587634345a63Smrg 587734345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 587834345a63Smrg for (key in D) D_is_set[key] = 1 587934345a63Smrg FS = "" 588034345a63Smrg} 588134345a63Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 588234345a63Smrg line = \$ 0 588334345a63Smrg split(line, arg, " ") 588434345a63Smrg if (arg[1] == "#") { 588534345a63Smrg defundef = arg[2] 588634345a63Smrg mac1 = arg[3] 588734345a63Smrg } else { 588834345a63Smrg defundef = substr(arg[1], 2) 588934345a63Smrg mac1 = arg[2] 589034345a63Smrg } 589134345a63Smrg split(mac1, mac2, "(") #) 589234345a63Smrg macro = mac2[1] 589334345a63Smrg prefix = substr(line, 1, index(line, defundef) - 1) 589434345a63Smrg if (D_is_set[macro]) { 589534345a63Smrg # Preserve the white space surrounding the "#". 589634345a63Smrg print prefix "define", macro P[macro] D[macro] 589734345a63Smrg next 589834345a63Smrg } else { 589934345a63Smrg # Replace #undef with comments. This is necessary, for example, 590034345a63Smrg # in the case of _POSIX_SOURCE, which is predefined and required 590134345a63Smrg # on some systems where configure will not decide to define it. 590234345a63Smrg if (defundef == "undef") { 590334345a63Smrg print "/*", prefix defundef, macro, "*/" 590434345a63Smrg next 590534345a63Smrg } 590634345a63Smrg } 590734345a63Smrg} 590834345a63Smrg{ print } 590934345a63Smrg_ACAWK 591034345a63Smrg_ACEOF 591134345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 591234345a63Smrg { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 591334345a63Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 591434345a63Smrg { (exit 1); exit 1; }; } 591534345a63Smrgfi # test -n "$CONFIG_HEADERS" 5916f46a6179Smrg 591734345a63Smrg 591834345a63Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 591934345a63Smrgshift 5920f46a6179Smrgfor ac_tag 5921f46a6179Smrgdo 5922f46a6179Smrg case $ac_tag in 5923f46a6179Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 5924f46a6179Smrg esac 5925f46a6179Smrg case $ac_mode$ac_tag in 592634345a63Smrg :[FHL]*:*);; 592734345a63Smrg :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 5928f46a6179Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 5929f46a6179Smrg { (exit 1); exit 1; }; };; 5930f46a6179Smrg :[FH]-) ac_tag=-:-;; 5931f46a6179Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5932f46a6179Smrg esac 5933f46a6179Smrg ac_save_IFS=$IFS 5934f46a6179Smrg IFS=: 5935f46a6179Smrg set x $ac_tag 5936f46a6179Smrg IFS=$ac_save_IFS 5937f46a6179Smrg shift 5938f46a6179Smrg ac_file=$1 5939f46a6179Smrg shift 5940f46a6179Smrg 5941f46a6179Smrg case $ac_mode in 5942f46a6179Smrg :L) ac_source=$1;; 5943f46a6179Smrg :[FH]) 5944f46a6179Smrg ac_file_inputs= 5945f46a6179Smrg for ac_f 5946f46a6179Smrg do 5947f46a6179Smrg case $ac_f in 5948f46a6179Smrg -) ac_f="$tmp/stdin";; 5949f46a6179Smrg *) # Look for the file first in the build tree, then in the source tree 5950f46a6179Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 5951f46a6179Smrg # because $ac_f cannot contain `:'. 5952f46a6179Smrg test -f "$ac_f" || 5953f46a6179Smrg case $ac_f in 5954f46a6179Smrg [\\/$]*) false;; 5955f46a6179Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 595634345a63Smrg esac || 595734345a63Smrg { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 5958f46a6179Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 5959f46a6179Smrg { (exit 1); exit 1; }; };; 596034345a63Smrg esac 596134345a63Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5962f46a6179Smrg ac_file_inputs="$ac_file_inputs '$ac_f'" 5963f46a6179Smrg done 5964f46a6179Smrg 5965f46a6179Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 5966f46a6179Smrg # use $as_me), people would be surprised to read: 596734345a63Smrg # /* config.h. Generated by config.status. */ 596834345a63Smrg configure_input='Generated from '` 596934345a63Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5970f46a6179Smrg `' by configure.' 5971f46a6179Smrg if test x"$ac_file" != x-; then 597234345a63Smrg configure_input="$ac_file. $configure_input" 597334345a63Smrg { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 5974f46a6179Smrg$as_echo "$as_me: creating $ac_file" >&6;} 597534345a63Smrg fi 597634345a63Smrg # Neutralize special characters interpreted by sed in replacement strings. 597734345a63Smrg case $configure_input in #( 597834345a63Smrg *\&* | *\|* | *\\* ) 597934345a63Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 598034345a63Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 598134345a63Smrg *) ac_sed_conf_input=$configure_input;; 5982f46a6179Smrg esac 5983f46a6179Smrg 598434345a63Smrg case $ac_tag in 598534345a63Smrg *:-:* | *:-) cat >"$tmp/stdin" \ 598634345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 598734345a63Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 5988f46a6179Smrg { (exit 1); exit 1; }; } ;; 5989f46a6179Smrg esac 5990f46a6179Smrg ;; 5991f46a6179Smrg esac 5992f46a6179Smrg 5993f46a6179Smrg ac_dir=`$as_dirname -- "$ac_file" || 5994f46a6179Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5995f46a6179Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 5996f46a6179Smrg X"$ac_file" : 'X\(//\)$' \| \ 599734345a63Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5998f46a6179Smrg$as_echo X"$ac_file" | 5999f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6000f46a6179Smrg s//\1/ 6001f46a6179Smrg q 6002f46a6179Smrg } 6003f46a6179Smrg /^X\(\/\/\)[^/].*/{ 6004f46a6179Smrg s//\1/ 6005f46a6179Smrg q 6006f46a6179Smrg } 6007f46a6179Smrg /^X\(\/\/\)$/{ 6008f46a6179Smrg s//\1/ 6009f46a6179Smrg q 6010f46a6179Smrg } 6011f46a6179Smrg /^X\(\/\).*/{ 6012f46a6179Smrg s//\1/ 6013f46a6179Smrg q 6014f46a6179Smrg } 6015f46a6179Smrg s/.*/./; q'` 6016f46a6179Smrg { as_dir="$ac_dir" 6017f46a6179Smrg case $as_dir in #( 6018f46a6179Smrg -*) as_dir=./$as_dir;; 6019f46a6179Smrg esac 6020f46a6179Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6021f46a6179Smrg as_dirs= 6022f46a6179Smrg while :; do 602334345a63Smrg case $as_dir in #( 6024f46a6179Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6025f46a6179Smrg *) as_qdir=$as_dir;; 6026f46a6179Smrg esac 6027f46a6179Smrg as_dirs="'$as_qdir' $as_dirs" 6028f46a6179Smrg as_dir=`$as_dirname -- "$as_dir" || 6029f46a6179Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6030f46a6179Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 6031f46a6179Smrg X"$as_dir" : 'X\(//\)$' \| \ 603234345a63Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6033f46a6179Smrg$as_echo X"$as_dir" | 6034f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6035f46a6179Smrg s//\1/ 6036f46a6179Smrg q 6037f46a6179Smrg } 6038f46a6179Smrg /^X\(\/\/\)[^/].*/{ 6039f46a6179Smrg s//\1/ 6040f46a6179Smrg q 6041f46a6179Smrg } 6042f46a6179Smrg /^X\(\/\/\)$/{ 6043f46a6179Smrg s//\1/ 6044f46a6179Smrg q 6045f46a6179Smrg } 6046f46a6179Smrg /^X\(\/\).*/{ 6047f46a6179Smrg s//\1/ 6048f46a6179Smrg q 6049f46a6179Smrg } 6050f46a6179Smrg s/.*/./; q'` 6051f46a6179Smrg test -d "$as_dir" && break 6052f46a6179Smrg done 605334345a63Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 605434345a63Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6055f46a6179Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 6056f46a6179Smrg { (exit 1); exit 1; }; }; } 6057f46a6179Smrg ac_builddir=. 6058f46a6179Smrg 6059f46a6179Smrgcase "$ac_dir" in 6060f46a6179Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 606134345a63Smrg*) 6062f46a6179Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 606334345a63Smrg # A ".." for each directory in $ac_dir_suffix. 6064f46a6179Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6065f46a6179Smrg case $ac_top_builddir_sub in 6066f46a6179Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6067f46a6179Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6068f46a6179Smrg esac ;; 6069f46a6179Smrgesac 6070f46a6179Smrgac_abs_top_builddir=$ac_pwd 6071f46a6179Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 6072f46a6179Smrg# for backward compatibility: 6073f46a6179Smrgac_top_builddir=$ac_top_build_prefix 6074f46a6179Smrg 6075f46a6179Smrgcase $srcdir in 6076f46a6179Smrg .) # We are building in place. 6077f46a6179Smrg ac_srcdir=. 6078f46a6179Smrg ac_top_srcdir=$ac_top_builddir_sub 6079f46a6179Smrg ac_abs_top_srcdir=$ac_pwd ;; 6080f46a6179Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 6081f46a6179Smrg ac_srcdir=$srcdir$ac_dir_suffix; 6082f46a6179Smrg ac_top_srcdir=$srcdir 6083f46a6179Smrg ac_abs_top_srcdir=$srcdir ;; 6084f46a6179Smrg *) # Relative name. 6085f46a6179Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6086f46a6179Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 6087f46a6179Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6088f46a6179Smrgesac 6089f46a6179Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6090f46a6179Smrg 6091f46a6179Smrg 6092f46a6179Smrg case $ac_mode in 6093f46a6179Smrg :F) 6094f46a6179Smrg # 6095f46a6179Smrg # CONFIG_FILE 6096f46a6179Smrg # 6097f46a6179Smrg 6098f46a6179Smrg case $INSTALL in 6099f46a6179Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6100f46a6179Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6101f46a6179Smrg esac 6102f46a6179Smrg ac_MKDIR_P=$MKDIR_P 6103f46a6179Smrg case $MKDIR_P in 6104f46a6179Smrg [\\/$]* | ?:[\\/]* ) ;; 6105f46a6179Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6106f46a6179Smrg esac 6107f46a6179Smrg_ACEOF 610834345a63Smrg 6109f46a6179Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6110f46a6179Smrg# If the template does not know about datarootdir, expand it. 6111f46a6179Smrg# FIXME: This hack should be removed a few years after 2.60. 6112f46a6179Smrgac_datarootdir_hack=; ac_datarootdir_seen= 611334345a63Smrg 611434345a63Smrgac_sed_dataroot=' 6115f46a6179Smrg/datarootdir/ { 6116f46a6179Smrg p 6117f46a6179Smrg q 6118f46a6179Smrg} 6119f46a6179Smrg/@datadir@/p 6120f46a6179Smrg/@docdir@/p 6121f46a6179Smrg/@infodir@/p 6122f46a6179Smrg/@localedir@/p 612334345a63Smrg/@mandir@/p 612434345a63Smrg' 6125f46a6179Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6126f46a6179Smrg*datarootdir*) ac_datarootdir_seen=yes;; 612734345a63Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 612834345a63Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6129f46a6179Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 613034345a63Smrg_ACEOF 6131f46a6179Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6132f46a6179Smrg ac_datarootdir_hack=' 6133f46a6179Smrg s&@datadir@&$datadir&g 6134f46a6179Smrg s&@docdir@&$docdir&g 6135f46a6179Smrg s&@infodir@&$infodir&g 6136f46a6179Smrg s&@localedir@&$localedir&g 6137f46a6179Smrg s&@mandir@&$mandir&g 6138f46a6179Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 6139f46a6179Smrgesac 6140f46a6179Smrg_ACEOF 6141f46a6179Smrg 6142f46a6179Smrg# Neutralize VPATH when `$srcdir' = `.'. 6143f46a6179Smrg# Shell code in configure.ac might set extrasub. 614434345a63Smrg# FIXME: do we really want to maintain this feature? 614534345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6146f46a6179Smrgac_sed_extra="$ac_vpsub 6147f46a6179Smrg$extrasub 614834345a63Smrg_ACEOF 6149f46a6179Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6150f46a6179Smrg:t 615134345a63Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6152f46a6179Smrgs|@configure_input@|$ac_sed_conf_input|;t t 615334345a63Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6154f46a6179Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6155f46a6179Smrgs&@srcdir@&$ac_srcdir&;t t 6156f46a6179Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6157f46a6179Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 6158f46a6179Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6159f46a6179Smrgs&@builddir@&$ac_builddir&;t t 6160f46a6179Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 6161f46a6179Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6162f46a6179Smrgs&@INSTALL@&$ac_INSTALL&;t t 6163f46a6179Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 616434345a63Smrg$ac_datarootdir_hack 616534345a63Smrg" 616634345a63Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 616734345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 616834345a63Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6169f46a6179Smrg { (exit 1); exit 1; }; } 6170f46a6179Smrg 6171f46a6179Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6172f46a6179Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 617334345a63Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6174f46a6179Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 617534345a63Smrgwhich seems to be undefined. Please make sure it is defined." >&5 6176f46a6179Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6177f46a6179Smrgwhich seems to be undefined. Please make sure it is defined." >&2;} 6178f46a6179Smrg 6179f46a6179Smrg rm -f "$tmp/stdin" 618034345a63Smrg case $ac_file in 618134345a63Smrg -) cat "$tmp/out" && rm -f "$tmp/out";; 618234345a63Smrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 618334345a63Smrg esac \ 618434345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 618534345a63Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6186f46a6179Smrg { (exit 1); exit 1; }; } 6187f46a6179Smrg ;; 6188f46a6179Smrg :H) 6189f46a6179Smrg # 6190f46a6179Smrg # CONFIG_HEADER 6191f46a6179Smrg # 619234345a63Smrg if test x"$ac_file" != x-; then 619334345a63Smrg { 619434345a63Smrg $as_echo "/* $configure_input */" \ 619534345a63Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 619634345a63Smrg } >"$tmp/config.h" \ 619734345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 619834345a63Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 619934345a63Smrg { (exit 1); exit 1; }; } 620034345a63Smrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 620134345a63Smrg { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6202f46a6179Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 620334345a63Smrg else 620434345a63Smrg rm -f "$ac_file" 620534345a63Smrg mv "$tmp/config.h" "$ac_file" \ 620634345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 620734345a63Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6208f46a6179Smrg { (exit 1); exit 1; }; } 6209f46a6179Smrg fi 621034345a63Smrg else 621134345a63Smrg $as_echo "/* $configure_input */" \ 621234345a63Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 621334345a63Smrg || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 621434345a63Smrg$as_echo "$as_me: error: could not create -" >&2;} 6215f46a6179Smrg { (exit 1); exit 1; }; } 621634345a63Smrg fi 621734345a63Smrg# Compute "$ac_file"'s index in $config_headers. 6218f46a6179Smrg_am_arg="$ac_file" 6219f46a6179Smrg_am_stamp_count=1 6220f46a6179Smrgfor _am_header in $config_headers :; do 6221f46a6179Smrg case $_am_header in 6222f46a6179Smrg $_am_arg | $_am_arg:* ) 6223f46a6179Smrg break ;; 6224f46a6179Smrg * ) 6225f46a6179Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6226f46a6179Smrg esac 6227f46a6179Smrgdone 6228f46a6179Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6229f46a6179Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6230f46a6179Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6231f46a6179Smrg X"$_am_arg" : 'X\(//\)$' \| \ 623234345a63Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6233f46a6179Smrg$as_echo X"$_am_arg" | 6234f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6235f46a6179Smrg s//\1/ 6236f46a6179Smrg q 6237f46a6179Smrg } 6238f46a6179Smrg /^X\(\/\/\)[^/].*/{ 6239f46a6179Smrg s//\1/ 6240f46a6179Smrg q 6241f46a6179Smrg } 6242f46a6179Smrg /^X\(\/\/\)$/{ 6243f46a6179Smrg s//\1/ 6244f46a6179Smrg q 6245f46a6179Smrg } 6246f46a6179Smrg /^X\(\/\).*/{ 6247f46a6179Smrg s//\1/ 6248f46a6179Smrg q 6249f46a6179Smrg } 6250f46a6179Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 6251f46a6179Smrg ;; 625234345a63Smrg 625334345a63Smrg :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 6254f46a6179Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6255f46a6179Smrg ;; 6256f46a6179Smrg esac 6257f46a6179Smrg 6258f46a6179Smrg 625934345a63Smrg case $ac_file$ac_mode in 626034345a63Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 626134345a63Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 626234345a63Smrg # are listed without --file. Let's play safe and only enable the eval 626334345a63Smrg # if we detect the quoting. 626434345a63Smrg case $CONFIG_FILES in 626534345a63Smrg *\'*) eval set x "$CONFIG_FILES" ;; 626634345a63Smrg *) set x $CONFIG_FILES ;; 626734345a63Smrg esac 626834345a63Smrg shift 626934345a63Smrg for mf 627034345a63Smrg do 627134345a63Smrg # Strip MF so we end up with the name of the file. 627234345a63Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 627334345a63Smrg # Check whether this is an Automake generated Makefile or not. 627434345a63Smrg # We used to match only the files named `Makefile.in', but 627534345a63Smrg # some people rename them; so instead we look at the file content. 627634345a63Smrg # Grep'ing the first line is not enough: some people post-process 627734345a63Smrg # each Makefile.in and add a new line on top of each file to say so. 627834345a63Smrg # Grep'ing the whole file is not good either: AIX grep has a line 627934345a63Smrg # limit of 2048, but all sed's we know have understand at least 4000. 628034345a63Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6281f46a6179Smrg dirpart=`$as_dirname -- "$mf" || 6282f46a6179Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6283f46a6179Smrg X"$mf" : 'X\(//\)[^/]' \| \ 6284f46a6179Smrg X"$mf" : 'X\(//\)$' \| \ 628534345a63Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6286f46a6179Smrg$as_echo X"$mf" | 6287f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6288f46a6179Smrg s//\1/ 6289f46a6179Smrg q 6290f46a6179Smrg } 6291f46a6179Smrg /^X\(\/\/\)[^/].*/{ 6292f46a6179Smrg s//\1/ 6293f46a6179Smrg q 6294f46a6179Smrg } 6295f46a6179Smrg /^X\(\/\/\)$/{ 6296f46a6179Smrg s//\1/ 6297f46a6179Smrg q 6298f46a6179Smrg } 6299f46a6179Smrg /^X\(\/\).*/{ 6300f46a6179Smrg s//\1/ 6301f46a6179Smrg q 6302f46a6179Smrg } 630334345a63Smrg s/.*/./; q'` 630434345a63Smrg else 630534345a63Smrg continue 630634345a63Smrg fi 630734345a63Smrg # Extract the definition of DEPDIR, am__include, and am__quote 630834345a63Smrg # from the Makefile without running `make'. 630934345a63Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 631034345a63Smrg test -z "$DEPDIR" && continue 631134345a63Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 631234345a63Smrg test -z "am__include" && continue 631334345a63Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 631434345a63Smrg # When using ansi2knr, U may be empty or an underscore; expand it 631534345a63Smrg U=`sed -n 's/^U = //p' < "$mf"` 631634345a63Smrg # Find all dependency output files, they are included files with 631734345a63Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 631834345a63Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 631934345a63Smrg # expansion. 632034345a63Smrg for file in `sed -n " 632134345a63Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 632234345a63Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 632334345a63Smrg # Make sure the directory exists. 632434345a63Smrg test -f "$dirpart/$file" && continue 6325f46a6179Smrg fdir=`$as_dirname -- "$file" || 6326f46a6179Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6327f46a6179Smrg X"$file" : 'X\(//\)[^/]' \| \ 6328f46a6179Smrg X"$file" : 'X\(//\)$' \| \ 632934345a63Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6330f46a6179Smrg$as_echo X"$file" | 6331f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6332f46a6179Smrg s//\1/ 6333f46a6179Smrg q 6334f46a6179Smrg } 6335f46a6179Smrg /^X\(\/\/\)[^/].*/{ 6336f46a6179Smrg s//\1/ 6337f46a6179Smrg q 6338f46a6179Smrg } 6339f46a6179Smrg /^X\(\/\/\)$/{ 6340f46a6179Smrg s//\1/ 6341f46a6179Smrg q 6342f46a6179Smrg } 6343f46a6179Smrg /^X\(\/\).*/{ 6344f46a6179Smrg s//\1/ 6345f46a6179Smrg q 6346f46a6179Smrg } 634734345a63Smrg s/.*/./; q'` 6348f46a6179Smrg { as_dir=$dirpart/$fdir 6349f46a6179Smrg case $as_dir in #( 6350f46a6179Smrg -*) as_dir=./$as_dir;; 6351f46a6179Smrg esac 6352f46a6179Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6353f46a6179Smrg as_dirs= 6354f46a6179Smrg while :; do 635534345a63Smrg case $as_dir in #( 6356f46a6179Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6357f46a6179Smrg *) as_qdir=$as_dir;; 6358f46a6179Smrg esac 6359f46a6179Smrg as_dirs="'$as_qdir' $as_dirs" 6360f46a6179Smrg as_dir=`$as_dirname -- "$as_dir" || 6361f46a6179Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6362f46a6179Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 6363f46a6179Smrg X"$as_dir" : 'X\(//\)$' \| \ 636434345a63Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6365f46a6179Smrg$as_echo X"$as_dir" | 6366f46a6179Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6367f46a6179Smrg s//\1/ 6368f46a6179Smrg q 6369f46a6179Smrg } 6370f46a6179Smrg /^X\(\/\/\)[^/].*/{ 6371f46a6179Smrg s//\1/ 6372f46a6179Smrg q 6373f46a6179Smrg } 6374f46a6179Smrg /^X\(\/\/\)$/{ 6375f46a6179Smrg s//\1/ 6376f46a6179Smrg q 6377f46a6179Smrg } 6378f46a6179Smrg /^X\(\/\).*/{ 6379f46a6179Smrg s//\1/ 6380f46a6179Smrg q 6381f46a6179Smrg } 6382f46a6179Smrg s/.*/./; q'` 6383f46a6179Smrg test -d "$as_dir" && break 6384f46a6179Smrg done 638534345a63Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 638634345a63Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6387f46a6179Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 638834345a63Smrg { (exit 1); exit 1; }; }; } 638934345a63Smrg # echo "creating $dirpart/$file" 639034345a63Smrg echo '# dummy' > "$dirpart/$file" 6391f46a6179Smrg done 639234345a63Smrg done 6393f46a6179Smrg} 6394f46a6179Smrg ;; 6395f46a6179Smrg 6396f46a6179Smrg esac 6397f46a6179Smrgdone # for ac_tag 6398f46a6179Smrg 6399f46a6179Smrg 6400f46a6179Smrg{ (exit 0); exit 0; } 6401f46a6179Smrg_ACEOF 6402f46a6179Smrgchmod +x $CONFIG_STATUS 6403f46a6179Smrgac_clean_files=$ac_clean_files_save 640434345a63Smrg 640534345a63Smrgtest $ac_write_fail = 0 || 640634345a63Smrg { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 640734345a63Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 640834345a63Smrg { (exit 1); exit 1; }; } 6409f46a6179Smrg 6410f46a6179Smrg 6411f46a6179Smrg# configure is writing to config.log, and then calls config.status. 6412f46a6179Smrg# config.status does its own redirection, appending to config.log. 6413f46a6179Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 6414f46a6179Smrg# by configure, so config.status won't be able to write to it; its 6415f46a6179Smrg# output is simply discarded. So we exec the FD to /dev/null, 6416f46a6179Smrg# effectively closing config.log, so it can be properly (re)opened and 6417f46a6179Smrg# appended to by config.status. When coming back to configure, we 6418f46a6179Smrg# need to make the FD available again. 6419f46a6179Smrgif test "$no_create" != yes; then 6420f46a6179Smrg ac_cs_success=: 6421f46a6179Smrg ac_config_status_args= 6422f46a6179Smrg test "$silent" = yes && 6423f46a6179Smrg ac_config_status_args="$ac_config_status_args --quiet" 6424f46a6179Smrg exec 5>/dev/null 6425f46a6179Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6426f46a6179Smrg exec 5>>config.log 6427f46a6179Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6428f46a6179Smrg # would make configure fail if this is the last instruction. 6429f46a6179Smrg $ac_cs_success || { (exit 1); exit 1; } 643034345a63Smrgfi 643134345a63Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 643234345a63Smrg { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 643334345a63Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6434f46a6179Smrgfi 6435 6436