configure revision a9a39c43
1129be1b7Smrg#! /bin/sh 2129be1b7Smrg# Guess values for system-dependent variables and create Makefiles. 3a9a39c43Smrg# Generated by GNU Autoconf 2.63 for xbitmaps 1.1.0. 4129be1b7Smrg# 5129be1b7Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6129be1b7Smrg# 7a9a39c43Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8a9a39c43Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9129be1b7Smrg# This configure script is free software; the Free Software Foundation 10129be1b7Smrg# gives unlimited permission to copy, distribute and modify it. 11129be1b7Smrg## --------------------- ## 12129be1b7Smrg## M4sh Initialization. ## 13129be1b7Smrg## --------------------- ## 14129be1b7Smrg 15a9a39c43Smrg# Be more Bourne compatible 16a9a39c43SmrgDUALCASE=1; export DUALCASE # for MKS sh 17129be1b7Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18129be1b7Smrg emulate sh 19129be1b7Smrg NULLCMD=: 20a9a39c43Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21129be1b7Smrg # is contrary to our usage. Disable this feature. 22129be1b7Smrg alias -g '${1+"$@"}'='"$@"' 23a9a39c43Smrg setopt NO_GLOB_SUBST 24a9a39c43Smrgelse 25a9a39c43Smrg case `(set -o) 2>/dev/null` in 26a9a39c43Smrg *posix*) set -o posix ;; 27a9a39c43Smrgesac 28a9a39c43Smrg 29a9a39c43Smrgfi 30a9a39c43Smrg 31a9a39c43Smrg 32a9a39c43Smrg 33a9a39c43Smrg 34a9a39c43Smrg# PATH needs CR 35a9a39c43Smrg# Avoid depending upon Character Ranges. 36a9a39c43Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 37a9a39c43Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38a9a39c43Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 39a9a39c43Smrgas_cr_digits='0123456789' 40a9a39c43Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 41a9a39c43Smrg 42a9a39c43Smrgas_nl=' 43a9a39c43Smrg' 44a9a39c43Smrgexport as_nl 45a9a39c43Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 46a9a39c43Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47a9a39c43Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48a9a39c43Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49a9a39c43Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50a9a39c43Smrg as_echo='printf %s\n' 51a9a39c43Smrg as_echo_n='printf %s' 52a9a39c43Smrgelse 53a9a39c43Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54a9a39c43Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55a9a39c43Smrg as_echo_n='/usr/ucb/echo -n' 56a9a39c43Smrg else 57a9a39c43Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58a9a39c43Smrg as_echo_n_body='eval 59a9a39c43Smrg arg=$1; 60a9a39c43Smrg case $arg in 61a9a39c43Smrg *"$as_nl"*) 62a9a39c43Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63a9a39c43Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64a9a39c43Smrg esac; 65a9a39c43Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66a9a39c43Smrg ' 67a9a39c43Smrg export as_echo_n_body 68a9a39c43Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 69a9a39c43Smrg fi 70a9a39c43Smrg export as_echo_body 71a9a39c43Smrg as_echo='sh -c $as_echo_body as_echo' 72a9a39c43Smrgfi 73a9a39c43Smrg 74a9a39c43Smrg# The user is always right. 75a9a39c43Smrgif test "${PATH_SEPARATOR+set}" != set; then 76a9a39c43Smrg PATH_SEPARATOR=: 77a9a39c43Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78a9a39c43Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79a9a39c43Smrg PATH_SEPARATOR=';' 80a9a39c43Smrg } 81129be1b7Smrgfi 82129be1b7Smrg 83129be1b7Smrg# Support unset when possible. 84129be1b7Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85129be1b7Smrg as_unset=unset 86129be1b7Smrgelse 87129be1b7Smrg as_unset=false 88129be1b7Smrgfi 89129be1b7Smrg 90129be1b7Smrg 91a9a39c43Smrg# IFS 92a9a39c43Smrg# We need space, tab and new line, in precisely that order. Quoting is 93a9a39c43Smrg# there to prevent editors from complaining about space-tab. 94a9a39c43Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95a9a39c43Smrg# splitting by setting IFS to empty value.) 96a9a39c43SmrgIFS=" "" $as_nl" 97a9a39c43Smrg 98a9a39c43Smrg# Find who we are. Look in the path if we contain no directory separator. 99a9a39c43Smrgcase $0 in 100a9a39c43Smrg *[\\/]* ) as_myself=$0 ;; 101a9a39c43Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102a9a39c43Smrgfor as_dir in $PATH 103a9a39c43Smrgdo 104a9a39c43Smrg IFS=$as_save_IFS 105a9a39c43Smrg test -z "$as_dir" && as_dir=. 106a9a39c43Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107a9a39c43Smrgdone 108a9a39c43SmrgIFS=$as_save_IFS 109a9a39c43Smrg 110a9a39c43Smrg ;; 111a9a39c43Smrgesac 112a9a39c43Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 113a9a39c43Smrg# in which case we are not to be found in the path. 114a9a39c43Smrgif test "x$as_myself" = x; then 115a9a39c43Smrg as_myself=$0 116a9a39c43Smrgfi 117a9a39c43Smrgif test ! -f "$as_myself"; then 118a9a39c43Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119a9a39c43Smrg { (exit 1); exit 1; } 120a9a39c43Smrgfi 121a9a39c43Smrg 122129be1b7Smrg# Work around bugs in pre-3.0 UWIN ksh. 123a9a39c43Smrgfor as_var in ENV MAIL MAILPATH 124a9a39c43Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125a9a39c43Smrgdone 126129be1b7SmrgPS1='$ ' 127129be1b7SmrgPS2='> ' 128129be1b7SmrgPS4='+ ' 129129be1b7Smrg 130129be1b7Smrg# NLS nuisances. 131a9a39c43SmrgLC_ALL=C 132a9a39c43Smrgexport LC_ALL 133a9a39c43SmrgLANGUAGE=C 134a9a39c43Smrgexport LANGUAGE 135129be1b7Smrg 136129be1b7Smrg# Required to use basename. 137a9a39c43Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 138a9a39c43Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 139129be1b7Smrg as_expr=expr 140129be1b7Smrgelse 141129be1b7Smrg as_expr=false 142129be1b7Smrgfi 143129be1b7Smrg 144a9a39c43Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145129be1b7Smrg as_basename=basename 146129be1b7Smrgelse 147129be1b7Smrg as_basename=false 148129be1b7Smrgfi 149129be1b7Smrg 150129be1b7Smrg 151129be1b7Smrg# Name of the executable. 152a9a39c43Smrgas_me=`$as_basename -- "$0" || 153129be1b7Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154129be1b7Smrg X"$0" : 'X\(//\)$' \| \ 155a9a39c43Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 156a9a39c43Smrg$as_echo X/"$0" | 157a9a39c43Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 158a9a39c43Smrg s//\1/ 159a9a39c43Smrg q 160a9a39c43Smrg } 161a9a39c43Smrg /^X\/\(\/\/\)$/{ 162a9a39c43Smrg s//\1/ 163a9a39c43Smrg q 164a9a39c43Smrg } 165a9a39c43Smrg /^X\/\(\/\).*/{ 166a9a39c43Smrg s//\1/ 167a9a39c43Smrg q 168a9a39c43Smrg } 169a9a39c43Smrg s/.*/./; q'` 170129be1b7Smrg 171a9a39c43Smrg# CDPATH. 172a9a39c43Smrg$as_unset CDPATH 173129be1b7Smrg 174129be1b7Smrg 175a9a39c43Smrgif test "x$CONFIG_SHELL" = x; then 176a9a39c43Smrg if (eval ":") 2>/dev/null; then 177a9a39c43Smrg as_have_required=yes 178a9a39c43Smrgelse 179a9a39c43Smrg as_have_required=no 180129be1b7Smrgfi 181129be1b7Smrg 182a9a39c43Smrg if test $as_have_required = yes && (eval ": 183a9a39c43Smrg(as_func_return () { 184a9a39c43Smrg (exit \$1) 185a9a39c43Smrg} 186a9a39c43Smrgas_func_success () { 187a9a39c43Smrg as_func_return 0 188a9a39c43Smrg} 189a9a39c43Smrgas_func_failure () { 190a9a39c43Smrg as_func_return 1 191a9a39c43Smrg} 192a9a39c43Smrgas_func_ret_success () { 193a9a39c43Smrg return 0 194a9a39c43Smrg} 195a9a39c43Smrgas_func_ret_failure () { 196a9a39c43Smrg return 1 197a9a39c43Smrg} 198129be1b7Smrg 199a9a39c43Smrgexitcode=0 200a9a39c43Smrgif as_func_success; then 201a9a39c43Smrg : 202a9a39c43Smrgelse 203a9a39c43Smrg exitcode=1 204a9a39c43Smrg echo as_func_success failed. 205a9a39c43Smrgfi 206129be1b7Smrg 207a9a39c43Smrgif as_func_failure; then 208a9a39c43Smrg exitcode=1 209a9a39c43Smrg echo as_func_failure succeeded. 210a9a39c43Smrgfi 211a9a39c43Smrg 212a9a39c43Smrgif as_func_ret_success; then 213a9a39c43Smrg : 214a9a39c43Smrgelse 215a9a39c43Smrg exitcode=1 216a9a39c43Smrg echo as_func_ret_success failed. 217a9a39c43Smrgfi 218a9a39c43Smrg 219a9a39c43Smrgif as_func_ret_failure; then 220a9a39c43Smrg exitcode=1 221a9a39c43Smrg echo as_func_ret_failure succeeded. 222a9a39c43Smrgfi 223a9a39c43Smrg 224a9a39c43Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225a9a39c43Smrg : 226a9a39c43Smrgelse 227a9a39c43Smrg exitcode=1 228a9a39c43Smrg echo positional parameters were not saved. 229a9a39c43Smrgfi 230a9a39c43Smrg 231a9a39c43Smrgtest \$exitcode = 0) || { (exit 1); exit 1; } 232a9a39c43Smrg 233a9a39c43Smrg( 234a9a39c43Smrg as_lineno_1=\$LINENO 235a9a39c43Smrg as_lineno_2=\$LINENO 236a9a39c43Smrg test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237a9a39c43Smrg test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238a9a39c43Smrg") 2> /dev/null; then 239a9a39c43Smrg : 240a9a39c43Smrgelse 241a9a39c43Smrg as_candidate_shells= 242129be1b7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243129be1b7Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244129be1b7Smrgdo 245129be1b7Smrg IFS=$as_save_IFS 246129be1b7Smrg test -z "$as_dir" && as_dir=. 247a9a39c43Smrg case $as_dir in 248129be1b7Smrg /*) 249a9a39c43Smrg for as_base in sh bash ksh sh5; do 250a9a39c43Smrg as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251a9a39c43Smrg done;; 252a9a39c43Smrg esac 253a9a39c43Smrgdone 254a9a39c43SmrgIFS=$as_save_IFS 255a9a39c43Smrg 256a9a39c43Smrg 257a9a39c43Smrg for as_shell in $as_candidate_shells $SHELL; do 258a9a39c43Smrg # Try only shells that exist, to save several forks. 259a9a39c43Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260a9a39c43Smrg { ("$as_shell") 2> /dev/null <<\_ASEOF 261a9a39c43Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262a9a39c43Smrg emulate sh 263a9a39c43Smrg NULLCMD=: 264a9a39c43Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265a9a39c43Smrg # is contrary to our usage. Disable this feature. 266a9a39c43Smrg alias -g '${1+"$@"}'='"$@"' 267a9a39c43Smrg setopt NO_GLOB_SUBST 268a9a39c43Smrgelse 269a9a39c43Smrg case `(set -o) 2>/dev/null` in 270a9a39c43Smrg *posix*) set -o posix ;; 271a9a39c43Smrgesac 272a9a39c43Smrg 273a9a39c43Smrgfi 274a9a39c43Smrg 275a9a39c43Smrg 276a9a39c43Smrg: 277a9a39c43Smrg_ASEOF 278a9a39c43Smrg}; then 279a9a39c43Smrg CONFIG_SHELL=$as_shell 280a9a39c43Smrg as_have_required=yes 281a9a39c43Smrg if { "$as_shell" 2> /dev/null <<\_ASEOF 282a9a39c43Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283a9a39c43Smrg emulate sh 284a9a39c43Smrg NULLCMD=: 285a9a39c43Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286a9a39c43Smrg # is contrary to our usage. Disable this feature. 287a9a39c43Smrg alias -g '${1+"$@"}'='"$@"' 288a9a39c43Smrg setopt NO_GLOB_SUBST 289a9a39c43Smrgelse 290a9a39c43Smrg case `(set -o) 2>/dev/null` in 291a9a39c43Smrg *posix*) set -o posix ;; 292a9a39c43Smrgesac 293a9a39c43Smrg 294a9a39c43Smrgfi 295a9a39c43Smrg 296a9a39c43Smrg 297a9a39c43Smrg: 298a9a39c43Smrg(as_func_return () { 299a9a39c43Smrg (exit $1) 300a9a39c43Smrg} 301a9a39c43Smrgas_func_success () { 302a9a39c43Smrg as_func_return 0 303a9a39c43Smrg} 304a9a39c43Smrgas_func_failure () { 305a9a39c43Smrg as_func_return 1 306a9a39c43Smrg} 307a9a39c43Smrgas_func_ret_success () { 308a9a39c43Smrg return 0 309a9a39c43Smrg} 310a9a39c43Smrgas_func_ret_failure () { 311a9a39c43Smrg return 1 312a9a39c43Smrg} 313a9a39c43Smrg 314a9a39c43Smrgexitcode=0 315a9a39c43Smrgif as_func_success; then 316a9a39c43Smrg : 317a9a39c43Smrgelse 318a9a39c43Smrg exitcode=1 319a9a39c43Smrg echo as_func_success failed. 320a9a39c43Smrgfi 321a9a39c43Smrg 322a9a39c43Smrgif as_func_failure; then 323a9a39c43Smrg exitcode=1 324a9a39c43Smrg echo as_func_failure succeeded. 325a9a39c43Smrgfi 326a9a39c43Smrg 327a9a39c43Smrgif as_func_ret_success; then 328a9a39c43Smrg : 329a9a39c43Smrgelse 330a9a39c43Smrg exitcode=1 331a9a39c43Smrg echo as_func_ret_success failed. 332a9a39c43Smrgfi 333a9a39c43Smrg 334a9a39c43Smrgif as_func_ret_failure; then 335a9a39c43Smrg exitcode=1 336a9a39c43Smrg echo as_func_ret_failure succeeded. 337a9a39c43Smrgfi 338a9a39c43Smrg 339a9a39c43Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then 340a9a39c43Smrg : 341a9a39c43Smrgelse 342a9a39c43Smrg exitcode=1 343a9a39c43Smrg echo positional parameters were not saved. 344a9a39c43Smrgfi 345a9a39c43Smrg 346a9a39c43Smrgtest $exitcode = 0) || { (exit 1); exit 1; } 347a9a39c43Smrg 348a9a39c43Smrg( 349129be1b7Smrg as_lineno_1=$LINENO 350129be1b7Smrg as_lineno_2=$LINENO 351129be1b7Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 352a9a39c43Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353a9a39c43Smrg 354a9a39c43Smrg_ASEOF 355a9a39c43Smrg}; then 356a9a39c43Smrg break 357a9a39c43Smrgfi 358a9a39c43Smrg 359a9a39c43Smrgfi 360a9a39c43Smrg 361a9a39c43Smrg done 362a9a39c43Smrg 363a9a39c43Smrg if test "x$CONFIG_SHELL" != x; then 364a9a39c43Smrg for as_var in BASH_ENV ENV 365a9a39c43Smrg do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366a9a39c43Smrg done 367a9a39c43Smrg export CONFIG_SHELL 368a9a39c43Smrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369a9a39c43Smrgfi 370a9a39c43Smrg 371a9a39c43Smrg 372a9a39c43Smrg if test $as_have_required = no; then 373a9a39c43Smrg echo This script requires a shell more modern than all the 374a9a39c43Smrg echo shells that I found on your system. Please install a 375a9a39c43Smrg echo modern shell, or manually run the script under such a 376a9a39c43Smrg echo shell if you do have one. 377a9a39c43Smrg { (exit 1); exit 1; } 378a9a39c43Smrgfi 379a9a39c43Smrg 380a9a39c43Smrg 381a9a39c43Smrgfi 382a9a39c43Smrg 383a9a39c43Smrgfi 384a9a39c43Smrg 385a9a39c43Smrg 386a9a39c43Smrg 387a9a39c43Smrg(eval "as_func_return () { 388a9a39c43Smrg (exit \$1) 389a9a39c43Smrg} 390a9a39c43Smrgas_func_success () { 391a9a39c43Smrg as_func_return 0 392a9a39c43Smrg} 393a9a39c43Smrgas_func_failure () { 394a9a39c43Smrg as_func_return 1 395a9a39c43Smrg} 396a9a39c43Smrgas_func_ret_success () { 397a9a39c43Smrg return 0 398a9a39c43Smrg} 399a9a39c43Smrgas_func_ret_failure () { 400a9a39c43Smrg return 1 401a9a39c43Smrg} 402a9a39c43Smrg 403a9a39c43Smrgexitcode=0 404a9a39c43Smrgif as_func_success; then 405a9a39c43Smrg : 406a9a39c43Smrgelse 407a9a39c43Smrg exitcode=1 408a9a39c43Smrg echo as_func_success failed. 409a9a39c43Smrgfi 410a9a39c43Smrg 411a9a39c43Smrgif as_func_failure; then 412a9a39c43Smrg exitcode=1 413a9a39c43Smrg echo as_func_failure succeeded. 414a9a39c43Smrgfi 415a9a39c43Smrg 416a9a39c43Smrgif as_func_ret_success; then 417a9a39c43Smrg : 418a9a39c43Smrgelse 419a9a39c43Smrg exitcode=1 420a9a39c43Smrg echo as_func_ret_success failed. 421a9a39c43Smrgfi 422a9a39c43Smrg 423a9a39c43Smrgif as_func_ret_failure; then 424a9a39c43Smrg exitcode=1 425a9a39c43Smrg echo as_func_ret_failure succeeded. 426a9a39c43Smrgfi 427a9a39c43Smrg 428a9a39c43Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429a9a39c43Smrg : 430a9a39c43Smrgelse 431a9a39c43Smrg exitcode=1 432a9a39c43Smrg echo positional parameters were not saved. 433a9a39c43Smrgfi 434a9a39c43Smrg 435a9a39c43Smrgtest \$exitcode = 0") || { 436a9a39c43Smrg echo No shell found that supports shell functions. 437a9a39c43Smrg echo Please tell bug-autoconf@gnu.org about your system, 438a9a39c43Smrg echo including any error possibly output before this message. 439a9a39c43Smrg echo This can help us improve future autoconf versions. 440a9a39c43Smrg echo Configuration will now proceed without shell functions. 441a9a39c43Smrg} 442a9a39c43Smrg 443a9a39c43Smrg 444a9a39c43Smrg 445a9a39c43Smrg as_lineno_1=$LINENO 446a9a39c43Smrg as_lineno_2=$LINENO 447a9a39c43Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 448a9a39c43Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449129be1b7Smrg 450129be1b7Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451129be1b7Smrg # uniformly replaced by the line number. The first 'sed' inserts a 452a9a39c43Smrg # line-number line after each line using $LINENO; the second 'sed' 453a9a39c43Smrg # does the real work. The second script uses 'N' to pair each 454a9a39c43Smrg # line-number line with the line containing $LINENO, and appends 455a9a39c43Smrg # trailing '-' during substitution so that $LINENO is not a special 456a9a39c43Smrg # case at line end. 457129be1b7Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458a9a39c43Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 459a9a39c43Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 460a9a39c43Smrg sed -n ' 461a9a39c43Smrg p 462a9a39c43Smrg /[$]LINENO/= 463a9a39c43Smrg ' <$as_myself | 464129be1b7Smrg sed ' 465a9a39c43Smrg s/[$]LINENO.*/&-/ 466a9a39c43Smrg t lineno 467a9a39c43Smrg b 468a9a39c43Smrg :lineno 469129be1b7Smrg N 470a9a39c43Smrg :loop 471a9a39c43Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472129be1b7Smrg t loop 473a9a39c43Smrg s/-\n.*// 474129be1b7Smrg ' >$as_me.lineno && 475a9a39c43Smrg chmod +x "$as_me.lineno" || 476a9a39c43Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477129be1b7Smrg { (exit 1); exit 1; }; } 478129be1b7Smrg 479129be1b7Smrg # Don't try to exec as it changes $[0], causing all sort of problems 480129be1b7Smrg # (the dirname of $[0] is not the place where we might find the 481a9a39c43Smrg # original and so on. Autoconf is especially sensitive to this). 482a9a39c43Smrg . "./$as_me.lineno" 483129be1b7Smrg # Exit status is that of the last command. 484129be1b7Smrg exit 485129be1b7Smrg} 486129be1b7Smrg 487129be1b7Smrg 488a9a39c43Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489a9a39c43Smrg as_dirname=dirname 490a9a39c43Smrgelse 491a9a39c43Smrg as_dirname=false 492a9a39c43Smrgfi 493129be1b7Smrg 494a9a39c43SmrgECHO_C= ECHO_N= ECHO_T= 495a9a39c43Smrgcase `echo -n x` in 496a9a39c43Smrg-n*) 497a9a39c43Smrg case `echo 'x\c'` in 498a9a39c43Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499a9a39c43Smrg *) ECHO_C='\c';; 500a9a39c43Smrg esac;; 501a9a39c43Smrg*) 502a9a39c43Smrg ECHO_N='-n';; 503a9a39c43Smrgesac 504a9a39c43Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 505a9a39c43Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 506129be1b7Smrg as_expr=expr 507129be1b7Smrgelse 508129be1b7Smrg as_expr=false 509129be1b7Smrgfi 510129be1b7Smrg 511129be1b7Smrgrm -f conf$$ conf$$.exe conf$$.file 512a9a39c43Smrgif test -d conf$$.dir; then 513a9a39c43Smrg rm -f conf$$.dir/conf$$.file 514a9a39c43Smrgelse 515a9a39c43Smrg rm -f conf$$.dir 516a9a39c43Smrg mkdir conf$$.dir 2>/dev/null 517a9a39c43Smrgfi 518a9a39c43Smrgif (echo >conf$$.file) 2>/dev/null; then 519a9a39c43Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 520129be1b7Smrg as_ln_s='ln -s' 521a9a39c43Smrg # ... but there are two gotchas: 522a9a39c43Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523a9a39c43Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524a9a39c43Smrg # In both cases, we have to default to `cp -p'. 525a9a39c43Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526a9a39c43Smrg as_ln_s='cp -p' 527a9a39c43Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 528a9a39c43Smrg as_ln_s=ln 529a9a39c43Smrg else 530a9a39c43Smrg as_ln_s='cp -p' 531129be1b7Smrg fi 532129be1b7Smrgelse 533129be1b7Smrg as_ln_s='cp -p' 534129be1b7Smrgfi 535a9a39c43Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536a9a39c43Smrgrmdir conf$$.dir 2>/dev/null 537129be1b7Smrg 538129be1b7Smrgif mkdir -p . 2>/dev/null; then 539129be1b7Smrg as_mkdir_p=: 540129be1b7Smrgelse 541129be1b7Smrg test -d ./-p && rmdir ./-p 542129be1b7Smrg as_mkdir_p=false 543129be1b7Smrgfi 544129be1b7Smrg 545a9a39c43Smrgif test -x / >/dev/null 2>&1; then 546a9a39c43Smrg as_test_x='test -x' 547a9a39c43Smrgelse 548a9a39c43Smrg if ls -dL / >/dev/null 2>&1; then 549a9a39c43Smrg as_ls_L_option=L 550a9a39c43Smrg else 551a9a39c43Smrg as_ls_L_option= 552a9a39c43Smrg fi 553a9a39c43Smrg as_test_x=' 554a9a39c43Smrg eval sh -c '\'' 555a9a39c43Smrg if test -d "$1"; then 556a9a39c43Smrg test -d "$1/."; 557a9a39c43Smrg else 558a9a39c43Smrg case $1 in 559a9a39c43Smrg -*)set "./$1";; 560a9a39c43Smrg esac; 561a9a39c43Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562a9a39c43Smrg ???[sx]*):;;*)false;;esac;fi 563a9a39c43Smrg '\'' sh 564a9a39c43Smrg ' 565a9a39c43Smrgfi 566a9a39c43Smrgas_executable_p=$as_test_x 567129be1b7Smrg 568129be1b7Smrg# Sed expression to map a string onto a valid CPP name. 569129be1b7Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570129be1b7Smrg 571129be1b7Smrg# Sed expression to map a string onto a valid variable name. 572129be1b7Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573129be1b7Smrg 574129be1b7Smrg 575129be1b7Smrg 576a9a39c43Smrgexec 7<&0 </dev/null 6>&1 577129be1b7Smrg 578129be1b7Smrg# Name of the host. 579129be1b7Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 580129be1b7Smrg# so uname gets run too. 581129be1b7Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 582129be1b7Smrg 583129be1b7Smrg# 584129be1b7Smrg# Initializations. 585129be1b7Smrg# 586129be1b7Smrgac_default_prefix=/usr/local 587a9a39c43Smrgac_clean_files= 588129be1b7Smrgac_config_libobj_dir=. 589a9a39c43SmrgLIBOBJS= 590129be1b7Smrgcross_compiling=no 591129be1b7Smrgsubdirs= 592129be1b7SmrgMFLAGS= 593129be1b7SmrgMAKEFLAGS= 594129be1b7SmrgSHELL=${CONFIG_SHELL-/bin/sh} 595129be1b7Smrg 596129be1b7Smrg# Identity of this package. 597129be1b7SmrgPACKAGE_NAME='xbitmaps' 598129be1b7SmrgPACKAGE_TARNAME='xbitmaps' 599a9a39c43SmrgPACKAGE_VERSION='1.1.0' 600a9a39c43SmrgPACKAGE_STRING='xbitmaps 1.1.0' 601129be1b7SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 602129be1b7Smrg 603a9a39c43Smrg# Factoring default headers for most tests. 604a9a39c43Smrgac_includes_default="\ 605a9a39c43Smrg#include <stdio.h> 606a9a39c43Smrg#ifdef HAVE_SYS_TYPES_H 607a9a39c43Smrg# include <sys/types.h> 608a9a39c43Smrg#endif 609a9a39c43Smrg#ifdef HAVE_SYS_STAT_H 610a9a39c43Smrg# include <sys/stat.h> 611a9a39c43Smrg#endif 612a9a39c43Smrg#ifdef STDC_HEADERS 613a9a39c43Smrg# include <stdlib.h> 614a9a39c43Smrg# include <stddef.h> 615a9a39c43Smrg#else 616a9a39c43Smrg# ifdef HAVE_STDLIB_H 617a9a39c43Smrg# include <stdlib.h> 618a9a39c43Smrg# endif 619a9a39c43Smrg#endif 620a9a39c43Smrg#ifdef HAVE_STRING_H 621a9a39c43Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622a9a39c43Smrg# include <memory.h> 623a9a39c43Smrg# endif 624a9a39c43Smrg# include <string.h> 625a9a39c43Smrg#endif 626a9a39c43Smrg#ifdef HAVE_STRINGS_H 627a9a39c43Smrg# include <strings.h> 628a9a39c43Smrg#endif 629a9a39c43Smrg#ifdef HAVE_INTTYPES_H 630a9a39c43Smrg# include <inttypes.h> 631a9a39c43Smrg#endif 632a9a39c43Smrg#ifdef HAVE_STDINT_H 633a9a39c43Smrg# include <stdint.h> 634a9a39c43Smrg#endif 635a9a39c43Smrg#ifdef HAVE_UNISTD_H 636a9a39c43Smrg# include <unistd.h> 637a9a39c43Smrg#endif" 638a9a39c43Smrg 639a9a39c43Smrgac_subst_vars='am__EXEEXT_FALSE 640a9a39c43Smrgam__EXEEXT_TRUE 641a9a39c43SmrgLTLIBOBJS 642a9a39c43SmrgLIBOBJS 643a9a39c43SmrgADMIN_MAN_DIR 644a9a39c43SmrgDRIVER_MAN_DIR 645a9a39c43SmrgMISC_MAN_DIR 646a9a39c43SmrgFILE_MAN_DIR 647a9a39c43SmrgLIB_MAN_DIR 648a9a39c43SmrgAPP_MAN_DIR 649a9a39c43SmrgADMIN_MAN_SUFFIX 650a9a39c43SmrgDRIVER_MAN_SUFFIX 651a9a39c43SmrgMISC_MAN_SUFFIX 652a9a39c43SmrgFILE_MAN_SUFFIX 653a9a39c43SmrgLIB_MAN_SUFFIX 654a9a39c43SmrgAPP_MAN_SUFFIX 655a9a39c43Smrghost_os 656a9a39c43Smrghost_vendor 657a9a39c43Smrghost_cpu 658a9a39c43Smrghost 659a9a39c43Smrgbuild_os 660a9a39c43Smrgbuild_vendor 661a9a39c43Smrgbuild_cpu 662a9a39c43Smrgbuild 663a9a39c43Smrgdistcleancheck_listfiles 664a9a39c43SmrgCHANGELOG_CMD 665a9a39c43SmrgAM_BACKSLASH 666a9a39c43SmrgAM_DEFAULT_VERBOSITY 667a9a39c43SmrgCWARNFLAGS 668a9a39c43SmrgEGREP 669a9a39c43SmrgGREP 670a9a39c43SmrgCPP 671a9a39c43Smrgam__fastdepCC_FALSE 672a9a39c43Smrgam__fastdepCC_TRUE 673a9a39c43SmrgCCDEPMODE 674a9a39c43SmrgAMDEPBACKSLASH 675a9a39c43SmrgAMDEP_FALSE 676a9a39c43SmrgAMDEP_TRUE 677a9a39c43Smrgam__quote 678a9a39c43Smrgam__include 679a9a39c43SmrgDEPDIR 680a9a39c43SmrgOBJEXT 681a9a39c43SmrgEXEEXT 682a9a39c43Smrgac_ct_CC 683a9a39c43SmrgCPPFLAGS 684a9a39c43SmrgLDFLAGS 685a9a39c43SmrgCFLAGS 686a9a39c43SmrgCC 687a9a39c43SmrgMAINT 688a9a39c43SmrgMAINTAINER_MODE_FALSE 689a9a39c43SmrgMAINTAINER_MODE_TRUE 690a9a39c43Smrgam__untar 691a9a39c43Smrgam__tar 692a9a39c43SmrgAMTAR 693a9a39c43Smrgam__leading_dot 694a9a39c43SmrgSET_MAKE 695a9a39c43SmrgAWK 696a9a39c43Smrgmkdir_p 697a9a39c43SmrgMKDIR_P 698a9a39c43SmrgINSTALL_STRIP_PROGRAM 699a9a39c43SmrgSTRIP 700a9a39c43Smrginstall_sh 701a9a39c43SmrgMAKEINFO 702a9a39c43SmrgAUTOHEADER 703a9a39c43SmrgAUTOMAKE 704a9a39c43SmrgAUTOCONF 705a9a39c43SmrgACLOCAL 706a9a39c43SmrgVERSION 707a9a39c43SmrgPACKAGE 708a9a39c43SmrgCYGPATH_W 709a9a39c43Smrgam__isrc 710a9a39c43SmrgINSTALL_DATA 711a9a39c43SmrgINSTALL_SCRIPT 712a9a39c43SmrgINSTALL_PROGRAM 713a9a39c43Smrgtarget_alias 714a9a39c43Smrghost_alias 715a9a39c43Smrgbuild_alias 716a9a39c43SmrgLIBS 717a9a39c43SmrgECHO_T 718a9a39c43SmrgECHO_N 719a9a39c43SmrgECHO_C 720a9a39c43SmrgDEFS 721a9a39c43Smrgmandir 722a9a39c43Smrglocaledir 723a9a39c43Smrglibdir 724a9a39c43Smrgpsdir 725a9a39c43Smrgpdfdir 726a9a39c43Smrgdvidir 727a9a39c43Smrghtmldir 728a9a39c43Smrginfodir 729a9a39c43Smrgdocdir 730a9a39c43Smrgoldincludedir 731a9a39c43Smrgincludedir 732a9a39c43Smrglocalstatedir 733a9a39c43Smrgsharedstatedir 734a9a39c43Smrgsysconfdir 735a9a39c43Smrgdatadir 736a9a39c43Smrgdatarootdir 737a9a39c43Smrglibexecdir 738a9a39c43Smrgsbindir 739a9a39c43Smrgbindir 740a9a39c43Smrgprogram_transform_name 741a9a39c43Smrgprefix 742a9a39c43Smrgexec_prefix 743a9a39c43SmrgPACKAGE_BUGREPORT 744a9a39c43SmrgPACKAGE_STRING 745a9a39c43SmrgPACKAGE_VERSION 746a9a39c43SmrgPACKAGE_TARNAME 747a9a39c43SmrgPACKAGE_NAME 748a9a39c43SmrgPATH_SEPARATOR 749a9a39c43SmrgSHELL' 750129be1b7Smrgac_subst_files='' 751a9a39c43Smrgac_user_opts=' 752a9a39c43Smrgenable_option_checking 753a9a39c43Smrgenable_maintainer_mode 754a9a39c43Smrgenable_dependency_tracking 755a9a39c43Smrgenable_silent_rules 756a9a39c43Smrgenable_strict_compilation 757a9a39c43Smrgwith_release_version 758a9a39c43Smrg' 759a9a39c43Smrg ac_precious_vars='build_alias 760a9a39c43Smrghost_alias 761a9a39c43Smrgtarget_alias 762a9a39c43SmrgCC 763a9a39c43SmrgCFLAGS 764a9a39c43SmrgLDFLAGS 765a9a39c43SmrgLIBS 766a9a39c43SmrgCPPFLAGS 767a9a39c43SmrgCPP' 768a9a39c43Smrg 769129be1b7Smrg 770129be1b7Smrg# Initialize some variables set by options. 771129be1b7Smrgac_init_help= 772129be1b7Smrgac_init_version=false 773a9a39c43Smrgac_unrecognized_opts= 774a9a39c43Smrgac_unrecognized_sep= 775129be1b7Smrg# The variables have the same names as the options, with 776129be1b7Smrg# dashes changed to underlines. 777129be1b7Smrgcache_file=/dev/null 778129be1b7Smrgexec_prefix=NONE 779129be1b7Smrgno_create= 780129be1b7Smrgno_recursion= 781129be1b7Smrgprefix=NONE 782129be1b7Smrgprogram_prefix=NONE 783129be1b7Smrgprogram_suffix=NONE 784129be1b7Smrgprogram_transform_name=s,x,x, 785129be1b7Smrgsilent= 786129be1b7Smrgsite= 787129be1b7Smrgsrcdir= 788129be1b7Smrgverbose= 789129be1b7Smrgx_includes=NONE 790129be1b7Smrgx_libraries=NONE 791129be1b7Smrg 792129be1b7Smrg# Installation directory options. 793129be1b7Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 794129be1b7Smrg# and all the variables that are supposed to be based on exec_prefix 795129be1b7Smrg# by default will actually change. 796129be1b7Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 797a9a39c43Smrg# (The list follows the same order as the GNU Coding Standards.) 798129be1b7Smrgbindir='${exec_prefix}/bin' 799129be1b7Smrgsbindir='${exec_prefix}/sbin' 800129be1b7Smrglibexecdir='${exec_prefix}/libexec' 801a9a39c43Smrgdatarootdir='${prefix}/share' 802a9a39c43Smrgdatadir='${datarootdir}' 803129be1b7Smrgsysconfdir='${prefix}/etc' 804129be1b7Smrgsharedstatedir='${prefix}/com' 805129be1b7Smrglocalstatedir='${prefix}/var' 806129be1b7Smrgincludedir='${prefix}/include' 807129be1b7Smrgoldincludedir='/usr/include' 808a9a39c43Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 809a9a39c43Smrginfodir='${datarootdir}/info' 810a9a39c43Smrghtmldir='${docdir}' 811a9a39c43Smrgdvidir='${docdir}' 812a9a39c43Smrgpdfdir='${docdir}' 813a9a39c43Smrgpsdir='${docdir}' 814a9a39c43Smrglibdir='${exec_prefix}/lib' 815a9a39c43Smrglocaledir='${datarootdir}/locale' 816a9a39c43Smrgmandir='${datarootdir}/man' 817129be1b7Smrg 818129be1b7Smrgac_prev= 819a9a39c43Smrgac_dashdash= 820129be1b7Smrgfor ac_option 821129be1b7Smrgdo 822129be1b7Smrg # If the previous option needs an argument, assign it. 823129be1b7Smrg if test -n "$ac_prev"; then 824a9a39c43Smrg eval $ac_prev=\$ac_option 825129be1b7Smrg ac_prev= 826129be1b7Smrg continue 827129be1b7Smrg fi 828129be1b7Smrg 829a9a39c43Smrg case $ac_option in 830a9a39c43Smrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 831a9a39c43Smrg *) ac_optarg=yes ;; 832a9a39c43Smrg esac 833129be1b7Smrg 834129be1b7Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 835129be1b7Smrg 836a9a39c43Smrg case $ac_dashdash$ac_option in 837a9a39c43Smrg --) 838a9a39c43Smrg ac_dashdash=yes ;; 839129be1b7Smrg 840129be1b7Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 841129be1b7Smrg ac_prev=bindir ;; 842129be1b7Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 843129be1b7Smrg bindir=$ac_optarg ;; 844129be1b7Smrg 845129be1b7Smrg -build | --build | --buil | --bui | --bu) 846129be1b7Smrg ac_prev=build_alias ;; 847129be1b7Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 848129be1b7Smrg build_alias=$ac_optarg ;; 849129be1b7Smrg 850129be1b7Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 851129be1b7Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 852129be1b7Smrg ac_prev=cache_file ;; 853129be1b7Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 854129be1b7Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 855129be1b7Smrg cache_file=$ac_optarg ;; 856129be1b7Smrg 857129be1b7Smrg --config-cache | -C) 858129be1b7Smrg cache_file=config.cache ;; 859129be1b7Smrg 860a9a39c43Smrg -datadir | --datadir | --datadi | --datad) 861129be1b7Smrg ac_prev=datadir ;; 862a9a39c43Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 863129be1b7Smrg datadir=$ac_optarg ;; 864129be1b7Smrg 865a9a39c43Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 866a9a39c43Smrg | --dataroo | --dataro | --datar) 867a9a39c43Smrg ac_prev=datarootdir ;; 868a9a39c43Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 869a9a39c43Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 870a9a39c43Smrg datarootdir=$ac_optarg ;; 871a9a39c43Smrg 872129be1b7Smrg -disable-* | --disable-*) 873a9a39c43Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 874129be1b7Smrg # Reject names that are not valid shell variable names. 875a9a39c43Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 876a9a39c43Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 877129be1b7Smrg { (exit 1); exit 1; }; } 878a9a39c43Smrg ac_useropt_orig=$ac_useropt 879a9a39c43Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 880a9a39c43Smrg case $ac_user_opts in 881a9a39c43Smrg *" 882a9a39c43Smrg"enable_$ac_useropt" 883a9a39c43Smrg"*) ;; 884a9a39c43Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 885a9a39c43Smrg ac_unrecognized_sep=', ';; 886a9a39c43Smrg esac 887a9a39c43Smrg eval enable_$ac_useropt=no ;; 888a9a39c43Smrg 889a9a39c43Smrg -docdir | --docdir | --docdi | --doc | --do) 890a9a39c43Smrg ac_prev=docdir ;; 891a9a39c43Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 892a9a39c43Smrg docdir=$ac_optarg ;; 893a9a39c43Smrg 894a9a39c43Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 895a9a39c43Smrg ac_prev=dvidir ;; 896a9a39c43Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 897a9a39c43Smrg dvidir=$ac_optarg ;; 898129be1b7Smrg 899129be1b7Smrg -enable-* | --enable-*) 900a9a39c43Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 901129be1b7Smrg # Reject names that are not valid shell variable names. 902a9a39c43Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903a9a39c43Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 904129be1b7Smrg { (exit 1); exit 1; }; } 905a9a39c43Smrg ac_useropt_orig=$ac_useropt 906a9a39c43Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907a9a39c43Smrg case $ac_user_opts in 908a9a39c43Smrg *" 909a9a39c43Smrg"enable_$ac_useropt" 910a9a39c43Smrg"*) ;; 911a9a39c43Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 912a9a39c43Smrg ac_unrecognized_sep=', ';; 913129be1b7Smrg esac 914a9a39c43Smrg eval enable_$ac_useropt=\$ac_optarg ;; 915129be1b7Smrg 916129be1b7Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 917129be1b7Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 918129be1b7Smrg | --exec | --exe | --ex) 919129be1b7Smrg ac_prev=exec_prefix ;; 920129be1b7Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 921129be1b7Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 922129be1b7Smrg | --exec=* | --exe=* | --ex=*) 923129be1b7Smrg exec_prefix=$ac_optarg ;; 924129be1b7Smrg 925129be1b7Smrg -gas | --gas | --ga | --g) 926129be1b7Smrg # Obsolete; use --with-gas. 927129be1b7Smrg with_gas=yes ;; 928129be1b7Smrg 929129be1b7Smrg -help | --help | --hel | --he | -h) 930129be1b7Smrg ac_init_help=long ;; 931129be1b7Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 932129be1b7Smrg ac_init_help=recursive ;; 933129be1b7Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 934129be1b7Smrg ac_init_help=short ;; 935129be1b7Smrg 936129be1b7Smrg -host | --host | --hos | --ho) 937129be1b7Smrg ac_prev=host_alias ;; 938129be1b7Smrg -host=* | --host=* | --hos=* | --ho=*) 939129be1b7Smrg host_alias=$ac_optarg ;; 940129be1b7Smrg 941a9a39c43Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 942a9a39c43Smrg ac_prev=htmldir ;; 943a9a39c43Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 944a9a39c43Smrg | --ht=*) 945a9a39c43Smrg htmldir=$ac_optarg ;; 946a9a39c43Smrg 947129be1b7Smrg -includedir | --includedir | --includedi | --included | --include \ 948129be1b7Smrg | --includ | --inclu | --incl | --inc) 949129be1b7Smrg ac_prev=includedir ;; 950129be1b7Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 951129be1b7Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 952129be1b7Smrg includedir=$ac_optarg ;; 953129be1b7Smrg 954129be1b7Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 955129be1b7Smrg ac_prev=infodir ;; 956129be1b7Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 957129be1b7Smrg infodir=$ac_optarg ;; 958129be1b7Smrg 959129be1b7Smrg -libdir | --libdir | --libdi | --libd) 960129be1b7Smrg ac_prev=libdir ;; 961129be1b7Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 962129be1b7Smrg libdir=$ac_optarg ;; 963129be1b7Smrg 964129be1b7Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 965129be1b7Smrg | --libexe | --libex | --libe) 966129be1b7Smrg ac_prev=libexecdir ;; 967129be1b7Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 968129be1b7Smrg | --libexe=* | --libex=* | --libe=*) 969129be1b7Smrg libexecdir=$ac_optarg ;; 970129be1b7Smrg 971a9a39c43Smrg -localedir | --localedir | --localedi | --localed | --locale) 972a9a39c43Smrg ac_prev=localedir ;; 973a9a39c43Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 974a9a39c43Smrg localedir=$ac_optarg ;; 975a9a39c43Smrg 976129be1b7Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 977a9a39c43Smrg | --localstate | --localstat | --localsta | --localst | --locals) 978129be1b7Smrg ac_prev=localstatedir ;; 979129be1b7Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 980a9a39c43Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 981129be1b7Smrg localstatedir=$ac_optarg ;; 982129be1b7Smrg 983129be1b7Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 984129be1b7Smrg ac_prev=mandir ;; 985129be1b7Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 986129be1b7Smrg mandir=$ac_optarg ;; 987129be1b7Smrg 988129be1b7Smrg -nfp | --nfp | --nf) 989129be1b7Smrg # Obsolete; use --without-fp. 990129be1b7Smrg with_fp=no ;; 991129be1b7Smrg 992129be1b7Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 993129be1b7Smrg | --no-cr | --no-c | -n) 994129be1b7Smrg no_create=yes ;; 995129be1b7Smrg 996129be1b7Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 997129be1b7Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 998129be1b7Smrg no_recursion=yes ;; 999129be1b7Smrg 1000129be1b7Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1001129be1b7Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1002129be1b7Smrg | --oldin | --oldi | --old | --ol | --o) 1003129be1b7Smrg ac_prev=oldincludedir ;; 1004129be1b7Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1005129be1b7Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1006129be1b7Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1007129be1b7Smrg oldincludedir=$ac_optarg ;; 1008129be1b7Smrg 1009129be1b7Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1010129be1b7Smrg ac_prev=prefix ;; 1011129be1b7Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1012129be1b7Smrg prefix=$ac_optarg ;; 1013129be1b7Smrg 1014129be1b7Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1015129be1b7Smrg | --program-pre | --program-pr | --program-p) 1016129be1b7Smrg ac_prev=program_prefix ;; 1017129be1b7Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1018129be1b7Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1019129be1b7Smrg program_prefix=$ac_optarg ;; 1020129be1b7Smrg 1021129be1b7Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1022129be1b7Smrg | --program-suf | --program-su | --program-s) 1023129be1b7Smrg ac_prev=program_suffix ;; 1024129be1b7Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1025129be1b7Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1026129be1b7Smrg program_suffix=$ac_optarg ;; 1027129be1b7Smrg 1028129be1b7Smrg -program-transform-name | --program-transform-name \ 1029129be1b7Smrg | --program-transform-nam | --program-transform-na \ 1030129be1b7Smrg | --program-transform-n | --program-transform- \ 1031129be1b7Smrg | --program-transform | --program-transfor \ 1032129be1b7Smrg | --program-transfo | --program-transf \ 1033129be1b7Smrg | --program-trans | --program-tran \ 1034129be1b7Smrg | --progr-tra | --program-tr | --program-t) 1035129be1b7Smrg ac_prev=program_transform_name ;; 1036129be1b7Smrg -program-transform-name=* | --program-transform-name=* \ 1037129be1b7Smrg | --program-transform-nam=* | --program-transform-na=* \ 1038129be1b7Smrg | --program-transform-n=* | --program-transform-=* \ 1039129be1b7Smrg | --program-transform=* | --program-transfor=* \ 1040129be1b7Smrg | --program-transfo=* | --program-transf=* \ 1041129be1b7Smrg | --program-trans=* | --program-tran=* \ 1042129be1b7Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1043129be1b7Smrg program_transform_name=$ac_optarg ;; 1044129be1b7Smrg 1045a9a39c43Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1046a9a39c43Smrg ac_prev=pdfdir ;; 1047a9a39c43Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1048a9a39c43Smrg pdfdir=$ac_optarg ;; 1049a9a39c43Smrg 1050a9a39c43Smrg -psdir | --psdir | --psdi | --psd | --ps) 1051a9a39c43Smrg ac_prev=psdir ;; 1052a9a39c43Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1053a9a39c43Smrg psdir=$ac_optarg ;; 1054a9a39c43Smrg 1055129be1b7Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056129be1b7Smrg | -silent | --silent | --silen | --sile | --sil) 1057129be1b7Smrg silent=yes ;; 1058129be1b7Smrg 1059129be1b7Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1060129be1b7Smrg ac_prev=sbindir ;; 1061129be1b7Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1062129be1b7Smrg | --sbi=* | --sb=*) 1063129be1b7Smrg sbindir=$ac_optarg ;; 1064129be1b7Smrg 1065129be1b7Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1066129be1b7Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1067129be1b7Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1068129be1b7Smrg | --sha | --sh) 1069129be1b7Smrg ac_prev=sharedstatedir ;; 1070129be1b7Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1071129be1b7Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1072129be1b7Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1073129be1b7Smrg | --sha=* | --sh=*) 1074129be1b7Smrg sharedstatedir=$ac_optarg ;; 1075129be1b7Smrg 1076129be1b7Smrg -site | --site | --sit) 1077129be1b7Smrg ac_prev=site ;; 1078129be1b7Smrg -site=* | --site=* | --sit=*) 1079129be1b7Smrg site=$ac_optarg ;; 1080129be1b7Smrg 1081129be1b7Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1082129be1b7Smrg ac_prev=srcdir ;; 1083129be1b7Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1084129be1b7Smrg srcdir=$ac_optarg ;; 1085129be1b7Smrg 1086129be1b7Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1087129be1b7Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1088129be1b7Smrg ac_prev=sysconfdir ;; 1089129be1b7Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1090129be1b7Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1091129be1b7Smrg sysconfdir=$ac_optarg ;; 1092129be1b7Smrg 1093129be1b7Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1094129be1b7Smrg ac_prev=target_alias ;; 1095129be1b7Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1096129be1b7Smrg target_alias=$ac_optarg ;; 1097129be1b7Smrg 1098129be1b7Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1099129be1b7Smrg verbose=yes ;; 1100129be1b7Smrg 1101129be1b7Smrg -version | --version | --versio | --versi | --vers | -V) 1102129be1b7Smrg ac_init_version=: ;; 1103129be1b7Smrg 1104129be1b7Smrg -with-* | --with-*) 1105a9a39c43Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1106129be1b7Smrg # Reject names that are not valid shell variable names. 1107a9a39c43Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108a9a39c43Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1109129be1b7Smrg { (exit 1); exit 1; }; } 1110a9a39c43Smrg ac_useropt_orig=$ac_useropt 1111a9a39c43Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112a9a39c43Smrg case $ac_user_opts in 1113a9a39c43Smrg *" 1114a9a39c43Smrg"with_$ac_useropt" 1115a9a39c43Smrg"*) ;; 1116a9a39c43Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117a9a39c43Smrg ac_unrecognized_sep=', ';; 1118129be1b7Smrg esac 1119a9a39c43Smrg eval with_$ac_useropt=\$ac_optarg ;; 1120129be1b7Smrg 1121129be1b7Smrg -without-* | --without-*) 1122a9a39c43Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123129be1b7Smrg # Reject names that are not valid shell variable names. 1124a9a39c43Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125a9a39c43Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1126129be1b7Smrg { (exit 1); exit 1; }; } 1127a9a39c43Smrg ac_useropt_orig=$ac_useropt 1128a9a39c43Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1129a9a39c43Smrg case $ac_user_opts in 1130a9a39c43Smrg *" 1131a9a39c43Smrg"with_$ac_useropt" 1132a9a39c43Smrg"*) ;; 1133a9a39c43Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1134a9a39c43Smrg ac_unrecognized_sep=', ';; 1135a9a39c43Smrg esac 1136a9a39c43Smrg eval with_$ac_useropt=no ;; 1137129be1b7Smrg 1138129be1b7Smrg --x) 1139129be1b7Smrg # Obsolete; use --with-x. 1140129be1b7Smrg with_x=yes ;; 1141129be1b7Smrg 1142129be1b7Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1143129be1b7Smrg | --x-incl | --x-inc | --x-in | --x-i) 1144129be1b7Smrg ac_prev=x_includes ;; 1145129be1b7Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1146129be1b7Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1147129be1b7Smrg x_includes=$ac_optarg ;; 1148129be1b7Smrg 1149129be1b7Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1150129be1b7Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1151129be1b7Smrg ac_prev=x_libraries ;; 1152129be1b7Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1153129be1b7Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1154129be1b7Smrg x_libraries=$ac_optarg ;; 1155129be1b7Smrg 1156a9a39c43Smrg -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1157129be1b7SmrgTry \`$0 --help' for more information." >&2 1158129be1b7Smrg { (exit 1); exit 1; }; } 1159129be1b7Smrg ;; 1160129be1b7Smrg 1161129be1b7Smrg *=*) 1162129be1b7Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1163129be1b7Smrg # Reject names that are not valid shell variable names. 1164129be1b7Smrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1165a9a39c43Smrg { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1166129be1b7Smrg { (exit 1); exit 1; }; } 1167a9a39c43Smrg eval $ac_envvar=\$ac_optarg 1168129be1b7Smrg export $ac_envvar ;; 1169129be1b7Smrg 1170129be1b7Smrg *) 1171129be1b7Smrg # FIXME: should be removed in autoconf 3.0. 1172a9a39c43Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1173129be1b7Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1174a9a39c43Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1175129be1b7Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1176129be1b7Smrg ;; 1177129be1b7Smrg 1178129be1b7Smrg esac 1179129be1b7Smrgdone 1180129be1b7Smrg 1181129be1b7Smrgif test -n "$ac_prev"; then 1182129be1b7Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1183a9a39c43Smrg { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1184129be1b7Smrg { (exit 1); exit 1; }; } 1185129be1b7Smrgfi 1186129be1b7Smrg 1187a9a39c43Smrgif test -n "$ac_unrecognized_opts"; then 1188a9a39c43Smrg case $enable_option_checking in 1189a9a39c43Smrg no) ;; 1190a9a39c43Smrg fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1191a9a39c43Smrg { (exit 1); exit 1; }; } ;; 1192a9a39c43Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1193129be1b7Smrg esac 1194a9a39c43Smrgfi 1195129be1b7Smrg 1196a9a39c43Smrg# Check all directory arguments for consistency. 1197a9a39c43Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1198a9a39c43Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1199a9a39c43Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1200a9a39c43Smrg libdir localedir mandir 1201129be1b7Smrgdo 1202a9a39c43Smrg eval ac_val=\$$ac_var 1203a9a39c43Smrg # Remove trailing slashes. 1204129be1b7Smrg case $ac_val in 1205a9a39c43Smrg */ ) 1206a9a39c43Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1207a9a39c43Smrg eval $ac_var=\$ac_val;; 1208a9a39c43Smrg esac 1209a9a39c43Smrg # Be sure to have absolute directory names. 1210a9a39c43Smrg case $ac_val in 1211a9a39c43Smrg [\\/$]* | ?:[\\/]* ) continue;; 1212a9a39c43Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1213129be1b7Smrg esac 1214a9a39c43Smrg { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1215a9a39c43Smrg { (exit 1); exit 1; }; } 1216129be1b7Smrgdone 1217129be1b7Smrg 1218129be1b7Smrg# There might be people who depend on the old broken behavior: `$host' 1219129be1b7Smrg# used to hold the argument of --host etc. 1220129be1b7Smrg# FIXME: To remove some day. 1221129be1b7Smrgbuild=$build_alias 1222129be1b7Smrghost=$host_alias 1223129be1b7Smrgtarget=$target_alias 1224129be1b7Smrg 1225129be1b7Smrg# FIXME: To remove some day. 1226129be1b7Smrgif test "x$host_alias" != x; then 1227129be1b7Smrg if test "x$build_alias" = x; then 1228129be1b7Smrg cross_compiling=maybe 1229a9a39c43Smrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1230129be1b7Smrg If a cross compiler is detected then cross compile mode will be used." >&2 1231129be1b7Smrg elif test "x$build_alias" != "x$host_alias"; then 1232129be1b7Smrg cross_compiling=yes 1233129be1b7Smrg fi 1234129be1b7Smrgfi 1235129be1b7Smrg 1236129be1b7Smrgac_tool_prefix= 1237129be1b7Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1238129be1b7Smrg 1239129be1b7Smrgtest "$silent" = yes && exec 6>/dev/null 1240129be1b7Smrg 1241129be1b7Smrg 1242a9a39c43Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1243a9a39c43Smrgac_ls_di=`ls -di .` && 1244a9a39c43Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1245a9a39c43Smrg { $as_echo "$as_me: error: working directory cannot be determined" >&2 1246a9a39c43Smrg { (exit 1); exit 1; }; } 1247a9a39c43Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1248a9a39c43Smrg { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1249a9a39c43Smrg { (exit 1); exit 1; }; } 1250a9a39c43Smrg 1251a9a39c43Smrg 1252129be1b7Smrg# Find the source files, if location was not specified. 1253129be1b7Smrgif test -z "$srcdir"; then 1254129be1b7Smrg ac_srcdir_defaulted=yes 1255a9a39c43Smrg # Try the directory containing this script, then the parent directory. 1256a9a39c43Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1257a9a39c43Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1258a9a39c43Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1259a9a39c43Smrg X"$as_myself" : 'X\(//\)$' \| \ 1260a9a39c43Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1261a9a39c43Smrg$as_echo X"$as_myself" | 1262a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1263a9a39c43Smrg s//\1/ 1264a9a39c43Smrg q 1265a9a39c43Smrg } 1266a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 1267a9a39c43Smrg s//\1/ 1268a9a39c43Smrg q 1269a9a39c43Smrg } 1270a9a39c43Smrg /^X\(\/\/\)$/{ 1271a9a39c43Smrg s//\1/ 1272a9a39c43Smrg q 1273a9a39c43Smrg } 1274a9a39c43Smrg /^X\(\/\).*/{ 1275a9a39c43Smrg s//\1/ 1276a9a39c43Smrg q 1277a9a39c43Smrg } 1278a9a39c43Smrg s/.*/./; q'` 1279129be1b7Smrg srcdir=$ac_confdir 1280a9a39c43Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1281129be1b7Smrg srcdir=.. 1282129be1b7Smrg fi 1283129be1b7Smrgelse 1284129be1b7Smrg ac_srcdir_defaulted=no 1285129be1b7Smrgfi 1286a9a39c43Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1287a9a39c43Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1288a9a39c43Smrg { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1289129be1b7Smrg { (exit 1); exit 1; }; } 1290129be1b7Smrgfi 1291a9a39c43Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1292a9a39c43Smrgac_abs_confdir=`( 1293a9a39c43Smrg cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1294129be1b7Smrg { (exit 1); exit 1; }; } 1295a9a39c43Smrg pwd)` 1296a9a39c43Smrg# When building in place, set srcdir=. 1297a9a39c43Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1298a9a39c43Smrg srcdir=. 1299a9a39c43Smrgfi 1300a9a39c43Smrg# Remove unnecessary trailing slashes from srcdir. 1301a9a39c43Smrg# Double slashes in file names in object file debugging info 1302a9a39c43Smrg# mess up M-x gdb in Emacs. 1303a9a39c43Smrgcase $srcdir in 1304a9a39c43Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1305a9a39c43Smrgesac 1306a9a39c43Smrgfor ac_var in $ac_precious_vars; do 1307a9a39c43Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1308a9a39c43Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1309a9a39c43Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1310a9a39c43Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1311a9a39c43Smrgdone 1312129be1b7Smrg 1313129be1b7Smrg# 1314129be1b7Smrg# Report the --help message. 1315129be1b7Smrg# 1316129be1b7Smrgif test "$ac_init_help" = "long"; then 1317129be1b7Smrg # Omit some internal or obsolete options to make the list less imposing. 1318129be1b7Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1319129be1b7Smrg cat <<_ACEOF 1320a9a39c43Smrg\`configure' configures xbitmaps 1.1.0 to adapt to many kinds of systems. 1321129be1b7Smrg 1322129be1b7SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1323129be1b7Smrg 1324129be1b7SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1325129be1b7SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1326129be1b7Smrg 1327129be1b7SmrgDefaults for the options are specified in brackets. 1328129be1b7Smrg 1329129be1b7SmrgConfiguration: 1330129be1b7Smrg -h, --help display this help and exit 1331129be1b7Smrg --help=short display options specific to this package 1332129be1b7Smrg --help=recursive display the short help of all the included packages 1333129be1b7Smrg -V, --version display version information and exit 1334129be1b7Smrg -q, --quiet, --silent do not print \`checking...' messages 1335129be1b7Smrg --cache-file=FILE cache test results in FILE [disabled] 1336129be1b7Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1337129be1b7Smrg -n, --no-create do not create output files 1338129be1b7Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1339129be1b7Smrg 1340129be1b7SmrgInstallation directories: 1341129be1b7Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1342a9a39c43Smrg [$ac_default_prefix] 1343129be1b7Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1344a9a39c43Smrg [PREFIX] 1345129be1b7Smrg 1346129be1b7SmrgBy default, \`make install' will install all the files in 1347129be1b7Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1348129be1b7Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1349129be1b7Smrgfor instance \`--prefix=\$HOME'. 1350129be1b7Smrg 1351129be1b7SmrgFor better control, use the options below. 1352129be1b7Smrg 1353129be1b7SmrgFine tuning of the installation directories: 1354a9a39c43Smrg --bindir=DIR user executables [EPREFIX/bin] 1355a9a39c43Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1356a9a39c43Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1357a9a39c43Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1358a9a39c43Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1359a9a39c43Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1360a9a39c43Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1361a9a39c43Smrg --includedir=DIR C header files [PREFIX/include] 1362a9a39c43Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363a9a39c43Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364a9a39c43Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365a9a39c43Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1366a9a39c43Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1367a9a39c43Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1368a9a39c43Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xbitmaps] 1369a9a39c43Smrg --htmldir=DIR html documentation [DOCDIR] 1370a9a39c43Smrg --dvidir=DIR dvi documentation [DOCDIR] 1371a9a39c43Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1372a9a39c43Smrg --psdir=DIR ps documentation [DOCDIR] 1373129be1b7Smrg_ACEOF 1374129be1b7Smrg 1375129be1b7Smrg cat <<\_ACEOF 1376129be1b7Smrg 1377129be1b7SmrgProgram names: 1378129be1b7Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1379129be1b7Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1380129be1b7Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1381a9a39c43Smrg 1382a9a39c43SmrgSystem types: 1383a9a39c43Smrg --build=BUILD configure for building on BUILD [guessed] 1384a9a39c43Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1385129be1b7Smrg_ACEOF 1386129be1b7Smrgfi 1387129be1b7Smrg 1388129be1b7Smrgif test -n "$ac_init_help"; then 1389129be1b7Smrg case $ac_init_help in 1390a9a39c43Smrg short | recursive ) echo "Configuration of xbitmaps 1.1.0:";; 1391129be1b7Smrg esac 1392129be1b7Smrg cat <<\_ACEOF 1393129be1b7Smrg 1394129be1b7SmrgOptional Features: 1395a9a39c43Smrg --disable-option-checking ignore unrecognized --enable/--with options 1396129be1b7Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1397129be1b7Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1398a9a39c43Smrg --enable-maintainer-mode enable make rules and dependencies not useful 1399a9a39c43Smrg (and sometimes confusing) to the casual installer 1400a9a39c43Smrg --disable-dependency-tracking speeds up one-time build 1401a9a39c43Smrg --enable-dependency-tracking do not reject slow dependency extractors 1402a9a39c43Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1403a9a39c43Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1404a9a39c43Smrg --enable-strict-compilation 1405a9a39c43Smrg Enable all warnings from compiler and make them 1406a9a39c43Smrg errors (default: disabled) 1407129be1b7Smrg 1408129be1b7SmrgOptional Packages: 1409129be1b7Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1410129be1b7Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1411129be1b7Smrg --with-release-version=STRING 1412129be1b7Smrg Use release version string in package name 1413129be1b7Smrg 1414a9a39c43SmrgSome influential environment variables: 1415a9a39c43Smrg CC C compiler command 1416a9a39c43Smrg CFLAGS C compiler flags 1417a9a39c43Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1418a9a39c43Smrg nonstandard directory <lib dir> 1419a9a39c43Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1420a9a39c43Smrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1421a9a39c43Smrg you have headers in a nonstandard directory <include dir> 1422a9a39c43Smrg CPP C preprocessor 1423a9a39c43Smrg 1424a9a39c43SmrgUse these variables to override the choices made by `configure' or to help 1425a9a39c43Smrgit to find libraries and programs with nonstandard names/locations. 1426a9a39c43Smrg 1427129be1b7SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1428129be1b7Smrg_ACEOF 1429a9a39c43Smrgac_status=$? 1430129be1b7Smrgfi 1431129be1b7Smrg 1432129be1b7Smrgif test "$ac_init_help" = "recursive"; then 1433129be1b7Smrg # If there are subdirs, report their specific --help. 1434129be1b7Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1435a9a39c43Smrg test -d "$ac_dir" || 1436a9a39c43Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1437a9a39c43Smrg continue 1438129be1b7Smrg ac_builddir=. 1439129be1b7Smrg 1440a9a39c43Smrgcase "$ac_dir" in 1441a9a39c43Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442a9a39c43Smrg*) 1443a9a39c43Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1444a9a39c43Smrg # A ".." for each directory in $ac_dir_suffix. 1445a9a39c43Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1446a9a39c43Smrg case $ac_top_builddir_sub in 1447a9a39c43Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1448a9a39c43Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1449a9a39c43Smrg esac ;; 1450a9a39c43Smrgesac 1451a9a39c43Smrgac_abs_top_builddir=$ac_pwd 1452a9a39c43Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1453a9a39c43Smrg# for backward compatibility: 1454a9a39c43Smrgac_top_builddir=$ac_top_build_prefix 1455129be1b7Smrg 1456129be1b7Smrgcase $srcdir in 1457a9a39c43Smrg .) # We are building in place. 1458129be1b7Smrg ac_srcdir=. 1459a9a39c43Smrg ac_top_srcdir=$ac_top_builddir_sub 1460a9a39c43Smrg ac_abs_top_srcdir=$ac_pwd ;; 1461a9a39c43Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1462129be1b7Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1463a9a39c43Smrg ac_top_srcdir=$srcdir 1464a9a39c43Smrg ac_abs_top_srcdir=$srcdir ;; 1465a9a39c43Smrg *) # Relative name. 1466a9a39c43Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1467a9a39c43Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1468a9a39c43Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1469129be1b7Smrgesac 1470a9a39c43Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1471a9a39c43Smrg 1472a9a39c43Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1473a9a39c43Smrg # Check for guested configure. 1474a9a39c43Smrg if test -f "$ac_srcdir/configure.gnu"; then 1475a9a39c43Smrg echo && 1476a9a39c43Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1477a9a39c43Smrg elif test -f "$ac_srcdir/configure"; then 1478a9a39c43Smrg echo && 1479a9a39c43Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1480129be1b7Smrg else 1481a9a39c43Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1482a9a39c43Smrg fi || ac_status=$? 1483a9a39c43Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1484129be1b7Smrg done 1485129be1b7Smrgfi 1486129be1b7Smrg 1487a9a39c43Smrgtest -n "$ac_init_help" && exit $ac_status 1488129be1b7Smrgif $ac_init_version; then 1489129be1b7Smrg cat <<\_ACEOF 1490a9a39c43Smrgxbitmaps configure 1.1.0 1491a9a39c43Smrggenerated by GNU Autoconf 2.63 1492129be1b7Smrg 1493a9a39c43SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1494a9a39c43Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1495129be1b7SmrgThis configure script is free software; the Free Software Foundation 1496129be1b7Smrggives unlimited permission to copy, distribute and modify it. 1497129be1b7Smrg_ACEOF 1498a9a39c43Smrg exit 1499129be1b7Smrgfi 1500a9a39c43Smrgcat >config.log <<_ACEOF 1501129be1b7SmrgThis file contains any messages produced by compilers while 1502129be1b7Smrgrunning configure, to aid debugging if configure makes a mistake. 1503129be1b7Smrg 1504a9a39c43SmrgIt was created by xbitmaps $as_me 1.1.0, which was 1505a9a39c43Smrggenerated by GNU Autoconf 2.63. Invocation command line was 1506129be1b7Smrg 1507129be1b7Smrg $ $0 $@ 1508129be1b7Smrg 1509129be1b7Smrg_ACEOF 1510a9a39c43Smrgexec 5>>config.log 1511129be1b7Smrg{ 1512129be1b7Smrgcat <<_ASUNAME 1513129be1b7Smrg## --------- ## 1514129be1b7Smrg## Platform. ## 1515129be1b7Smrg## --------- ## 1516129be1b7Smrg 1517129be1b7Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1518129be1b7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1519129be1b7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1520129be1b7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1521129be1b7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1522129be1b7Smrg 1523129be1b7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1524129be1b7Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1525129be1b7Smrg 1526129be1b7Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1527129be1b7Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1528129be1b7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1529a9a39c43Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1530129be1b7Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1531129be1b7Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1532129be1b7Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1533129be1b7Smrg 1534129be1b7Smrg_ASUNAME 1535129be1b7Smrg 1536129be1b7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1537129be1b7Smrgfor as_dir in $PATH 1538129be1b7Smrgdo 1539129be1b7Smrg IFS=$as_save_IFS 1540129be1b7Smrg test -z "$as_dir" && as_dir=. 1541a9a39c43Smrg $as_echo "PATH: $as_dir" 1542129be1b7Smrgdone 1543a9a39c43SmrgIFS=$as_save_IFS 1544129be1b7Smrg 1545129be1b7Smrg} >&5 1546129be1b7Smrg 1547129be1b7Smrgcat >&5 <<_ACEOF 1548129be1b7Smrg 1549129be1b7Smrg 1550129be1b7Smrg## ----------- ## 1551129be1b7Smrg## Core tests. ## 1552129be1b7Smrg## ----------- ## 1553129be1b7Smrg 1554129be1b7Smrg_ACEOF 1555129be1b7Smrg 1556129be1b7Smrg 1557129be1b7Smrg# Keep a trace of the command line. 1558129be1b7Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1559129be1b7Smrg# Strip out --silent because we don't want to record it for future runs. 1560129be1b7Smrg# Also quote any args containing shell meta-characters. 1561129be1b7Smrg# Make two passes to allow for proper duplicate-argument suppression. 1562129be1b7Smrgac_configure_args= 1563129be1b7Smrgac_configure_args0= 1564129be1b7Smrgac_configure_args1= 1565129be1b7Smrgac_must_keep_next=false 1566129be1b7Smrgfor ac_pass in 1 2 1567129be1b7Smrgdo 1568129be1b7Smrg for ac_arg 1569129be1b7Smrg do 1570129be1b7Smrg case $ac_arg in 1571129be1b7Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1572129be1b7Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1573129be1b7Smrg | -silent | --silent | --silen | --sile | --sil) 1574129be1b7Smrg continue ;; 1575a9a39c43Smrg *\'*) 1576a9a39c43Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1577129be1b7Smrg esac 1578129be1b7Smrg case $ac_pass in 1579129be1b7Smrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1580129be1b7Smrg 2) 1581129be1b7Smrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1582129be1b7Smrg if test $ac_must_keep_next = true; then 1583129be1b7Smrg ac_must_keep_next=false # Got value, back to normal. 1584129be1b7Smrg else 1585129be1b7Smrg case $ac_arg in 1586129be1b7Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1587129be1b7Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1588129be1b7Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1589129be1b7Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1590129be1b7Smrg case "$ac_configure_args0 " in 1591129be1b7Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1592129be1b7Smrg esac 1593129be1b7Smrg ;; 1594129be1b7Smrg -* ) ac_must_keep_next=true ;; 1595129be1b7Smrg esac 1596129be1b7Smrg fi 1597a9a39c43Smrg ac_configure_args="$ac_configure_args '$ac_arg'" 1598129be1b7Smrg ;; 1599129be1b7Smrg esac 1600129be1b7Smrg done 1601129be1b7Smrgdone 1602129be1b7Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1603129be1b7Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1604129be1b7Smrg 1605129be1b7Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1606129be1b7Smrg# config.log. We remove comments because anyway the quotes in there 1607129be1b7Smrg# would cause problems or look ugly. 1608a9a39c43Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1609a9a39c43Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1610129be1b7Smrgtrap 'exit_status=$? 1611129be1b7Smrg # Save into config.log some information that might help in debugging. 1612129be1b7Smrg { 1613129be1b7Smrg echo 1614129be1b7Smrg 1615129be1b7Smrg cat <<\_ASBOX 1616129be1b7Smrg## ---------------- ## 1617129be1b7Smrg## Cache variables. ## 1618129be1b7Smrg## ---------------- ## 1619129be1b7Smrg_ASBOX 1620129be1b7Smrg echo 1621129be1b7Smrg # The following way of writing the cache mishandles newlines in values, 1622a9a39c43Smrg( 1623a9a39c43Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1624a9a39c43Smrg eval ac_val=\$$ac_var 1625a9a39c43Smrg case $ac_val in #( 1626a9a39c43Smrg *${as_nl}*) 1627a9a39c43Smrg case $ac_var in #( 1628a9a39c43Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1629a9a39c43Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1630a9a39c43Smrg esac 1631a9a39c43Smrg case $ac_var in #( 1632a9a39c43Smrg _ | IFS | as_nl) ;; #( 1633a9a39c43Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1634a9a39c43Smrg *) $as_unset $ac_var ;; 1635a9a39c43Smrg esac ;; 1636a9a39c43Smrg esac 1637a9a39c43Smrg done 1638129be1b7Smrg (set) 2>&1 | 1639a9a39c43Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1640a9a39c43Smrg *${as_nl}ac_space=\ *) 1641129be1b7Smrg sed -n \ 1642a9a39c43Smrg "s/'\''/'\''\\\\'\'''\''/g; 1643a9a39c43Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1644a9a39c43Smrg ;; #( 1645129be1b7Smrg *) 1646a9a39c43Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1647129be1b7Smrg ;; 1648a9a39c43Smrg esac | 1649a9a39c43Smrg sort 1650a9a39c43Smrg) 1651129be1b7Smrg echo 1652129be1b7Smrg 1653129be1b7Smrg cat <<\_ASBOX 1654129be1b7Smrg## ----------------- ## 1655129be1b7Smrg## Output variables. ## 1656129be1b7Smrg## ----------------- ## 1657129be1b7Smrg_ASBOX 1658129be1b7Smrg echo 1659129be1b7Smrg for ac_var in $ac_subst_vars 1660129be1b7Smrg do 1661a9a39c43Smrg eval ac_val=\$$ac_var 1662a9a39c43Smrg case $ac_val in 1663a9a39c43Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1664a9a39c43Smrg esac 1665a9a39c43Smrg $as_echo "$ac_var='\''$ac_val'\''" 1666129be1b7Smrg done | sort 1667129be1b7Smrg echo 1668129be1b7Smrg 1669129be1b7Smrg if test -n "$ac_subst_files"; then 1670129be1b7Smrg cat <<\_ASBOX 1671a9a39c43Smrg## ------------------- ## 1672a9a39c43Smrg## File substitutions. ## 1673a9a39c43Smrg## ------------------- ## 1674129be1b7Smrg_ASBOX 1675129be1b7Smrg echo 1676129be1b7Smrg for ac_var in $ac_subst_files 1677129be1b7Smrg do 1678a9a39c43Smrg eval ac_val=\$$ac_var 1679a9a39c43Smrg case $ac_val in 1680a9a39c43Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1681a9a39c43Smrg esac 1682a9a39c43Smrg $as_echo "$ac_var='\''$ac_val'\''" 1683129be1b7Smrg done | sort 1684129be1b7Smrg echo 1685129be1b7Smrg fi 1686129be1b7Smrg 1687129be1b7Smrg if test -s confdefs.h; then 1688129be1b7Smrg cat <<\_ASBOX 1689129be1b7Smrg## ----------- ## 1690129be1b7Smrg## confdefs.h. ## 1691129be1b7Smrg## ----------- ## 1692129be1b7Smrg_ASBOX 1693129be1b7Smrg echo 1694a9a39c43Smrg cat confdefs.h 1695129be1b7Smrg echo 1696129be1b7Smrg fi 1697129be1b7Smrg test "$ac_signal" != 0 && 1698a9a39c43Smrg $as_echo "$as_me: caught signal $ac_signal" 1699a9a39c43Smrg $as_echo "$as_me: exit $exit_status" 1700129be1b7Smrg } >&5 1701a9a39c43Smrg rm -f core *.core core.conftest.* && 1702a9a39c43Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1703129be1b7Smrg exit $exit_status 1704a9a39c43Smrg' 0 1705129be1b7Smrgfor ac_signal in 1 2 13 15; do 1706129be1b7Smrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1707129be1b7Smrgdone 1708129be1b7Smrgac_signal=0 1709129be1b7Smrg 1710129be1b7Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1711a9a39c43Smrgrm -f -r conftest* confdefs.h 1712129be1b7Smrg 1713129be1b7Smrg# Predefined preprocessor variables. 1714129be1b7Smrg 1715129be1b7Smrgcat >>confdefs.h <<_ACEOF 1716129be1b7Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 1717129be1b7Smrg_ACEOF 1718129be1b7Smrg 1719129be1b7Smrg 1720129be1b7Smrgcat >>confdefs.h <<_ACEOF 1721129be1b7Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1722129be1b7Smrg_ACEOF 1723129be1b7Smrg 1724129be1b7Smrg 1725129be1b7Smrgcat >>confdefs.h <<_ACEOF 1726129be1b7Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1727129be1b7Smrg_ACEOF 1728129be1b7Smrg 1729129be1b7Smrg 1730129be1b7Smrgcat >>confdefs.h <<_ACEOF 1731129be1b7Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 1732129be1b7Smrg_ACEOF 1733129be1b7Smrg 1734129be1b7Smrg 1735129be1b7Smrgcat >>confdefs.h <<_ACEOF 1736129be1b7Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1737129be1b7Smrg_ACEOF 1738129be1b7Smrg 1739129be1b7Smrg 1740129be1b7Smrg# Let the site file select an alternate cache file if it wants to. 1741a9a39c43Smrg# Prefer an explicitly selected file to automatically selected ones. 1742a9a39c43Smrgac_site_file1=NONE 1743a9a39c43Smrgac_site_file2=NONE 1744a9a39c43Smrgif test -n "$CONFIG_SITE"; then 1745a9a39c43Smrg ac_site_file1=$CONFIG_SITE 1746a9a39c43Smrgelif test "x$prefix" != xNONE; then 1747a9a39c43Smrg ac_site_file1=$prefix/share/config.site 1748a9a39c43Smrg ac_site_file2=$prefix/etc/config.site 1749a9a39c43Smrgelse 1750a9a39c43Smrg ac_site_file1=$ac_default_prefix/share/config.site 1751a9a39c43Smrg ac_site_file2=$ac_default_prefix/etc/config.site 1752129be1b7Smrgfi 1753a9a39c43Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1754a9a39c43Smrgdo 1755a9a39c43Smrg test "x$ac_site_file" = xNONE && continue 1756129be1b7Smrg if test -r "$ac_site_file"; then 1757a9a39c43Smrg { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1758a9a39c43Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1759129be1b7Smrg sed 's/^/| /' "$ac_site_file" >&5 1760129be1b7Smrg . "$ac_site_file" 1761129be1b7Smrg fi 1762129be1b7Smrgdone 1763129be1b7Smrg 1764129be1b7Smrgif test -r "$cache_file"; then 1765129be1b7Smrg # Some versions of bash will fail to source /dev/null (special 1766129be1b7Smrg # files actually), so we avoid doing that. 1767129be1b7Smrg if test -f "$cache_file"; then 1768a9a39c43Smrg { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1769a9a39c43Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 1770129be1b7Smrg case $cache_file in 1771a9a39c43Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1772a9a39c43Smrg *) . "./$cache_file";; 1773129be1b7Smrg esac 1774129be1b7Smrg fi 1775129be1b7Smrgelse 1776a9a39c43Smrg { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1777a9a39c43Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 1778129be1b7Smrg >$cache_file 1779129be1b7Smrgfi 1780129be1b7Smrg 1781129be1b7Smrg# Check that the precious variables saved in the cache have kept the same 1782129be1b7Smrg# value. 1783129be1b7Smrgac_cache_corrupted=false 1784a9a39c43Smrgfor ac_var in $ac_precious_vars; do 1785129be1b7Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 1786129be1b7Smrg eval ac_new_set=\$ac_env_${ac_var}_set 1787a9a39c43Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 1788a9a39c43Smrg eval ac_new_val=\$ac_env_${ac_var}_value 1789129be1b7Smrg case $ac_old_set,$ac_new_set in 1790129be1b7Smrg set,) 1791a9a39c43Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1792a9a39c43Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1793129be1b7Smrg ac_cache_corrupted=: ;; 1794129be1b7Smrg ,set) 1795a9a39c43Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1796a9a39c43Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1797129be1b7Smrg ac_cache_corrupted=: ;; 1798129be1b7Smrg ,);; 1799129be1b7Smrg *) 1800129be1b7Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1801a9a39c43Smrg # differences in whitespace do not lead to failure. 1802a9a39c43Smrg ac_old_val_w=`echo x $ac_old_val` 1803a9a39c43Smrg ac_new_val_w=`echo x $ac_new_val` 1804a9a39c43Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1805a9a39c43Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1806a9a39c43Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1807a9a39c43Smrg ac_cache_corrupted=: 1808a9a39c43Smrg else 1809a9a39c43Smrg { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1810a9a39c43Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1811a9a39c43Smrg eval $ac_var=\$ac_old_val 1812a9a39c43Smrg fi 1813a9a39c43Smrg { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1814a9a39c43Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1815a9a39c43Smrg { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1816a9a39c43Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1817129be1b7Smrg fi;; 1818129be1b7Smrg esac 1819129be1b7Smrg # Pass precious variables to config.status. 1820129be1b7Smrg if test "$ac_new_set" = set; then 1821129be1b7Smrg case $ac_new_val in 1822a9a39c43Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1823129be1b7Smrg *) ac_arg=$ac_var=$ac_new_val ;; 1824129be1b7Smrg esac 1825129be1b7Smrg case " $ac_configure_args " in 1826129be1b7Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1827129be1b7Smrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1828129be1b7Smrg esac 1829129be1b7Smrg fi 1830129be1b7Smrgdone 1831129be1b7Smrgif $ac_cache_corrupted; then 1832a9a39c43Smrg { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1833a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1834a9a39c43Smrg { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1835a9a39c43Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1836a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1837a9a39c43Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1838129be1b7Smrg { (exit 1); exit 1; }; } 1839129be1b7Smrgfi 1840129be1b7Smrg 1841129be1b7Smrg 1842129be1b7Smrg 1843129be1b7Smrg 1844129be1b7Smrg 1845129be1b7Smrg 1846129be1b7Smrg 1847129be1b7Smrg 1848129be1b7Smrg 1849129be1b7Smrg 1850129be1b7Smrg 1851129be1b7Smrg 1852129be1b7Smrg 1853129be1b7Smrg 1854129be1b7Smrg 1855129be1b7Smrg 1856129be1b7Smrg 1857129be1b7Smrg 1858129be1b7Smrg 1859129be1b7Smrg 1860129be1b7Smrg 1861129be1b7Smrg 1862129be1b7Smrg 1863129be1b7Smrg 1864129be1b7Smrg 1865a9a39c43Smrgac_ext=c 1866a9a39c43Smrgac_cpp='$CPP $CPPFLAGS' 1867a9a39c43Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1868a9a39c43Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1869a9a39c43Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 1870129be1b7Smrg 1871129be1b7Smrg 1872a9a39c43Smrgam__api_version='1.11' 1873129be1b7Smrg 1874129be1b7Smrgac_aux_dir= 1875a9a39c43Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1876a9a39c43Smrg if test -f "$ac_dir/install-sh"; then 1877129be1b7Smrg ac_aux_dir=$ac_dir 1878129be1b7Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 1879129be1b7Smrg break 1880a9a39c43Smrg elif test -f "$ac_dir/install.sh"; then 1881129be1b7Smrg ac_aux_dir=$ac_dir 1882129be1b7Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 1883129be1b7Smrg break 1884a9a39c43Smrg elif test -f "$ac_dir/shtool"; then 1885129be1b7Smrg ac_aux_dir=$ac_dir 1886129be1b7Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 1887129be1b7Smrg break 1888129be1b7Smrg fi 1889129be1b7Smrgdone 1890129be1b7Smrgif test -z "$ac_aux_dir"; then 1891a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1892a9a39c43Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1893129be1b7Smrg { (exit 1); exit 1; }; } 1894129be1b7Smrgfi 1895a9a39c43Smrg 1896a9a39c43Smrg# These three variables are undocumented and unsupported, 1897a9a39c43Smrg# and are intended to be withdrawn in a future Autoconf release. 1898a9a39c43Smrg# They can cause serious problems if a builder's source tree is in a directory 1899a9a39c43Smrg# whose full name contains unusual characters. 1900a9a39c43Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1901a9a39c43Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1902a9a39c43Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1903a9a39c43Smrg 1904129be1b7Smrg 1905129be1b7Smrg# Find a good install program. We prefer a C program (faster), 1906129be1b7Smrg# so one script is as good as another. But avoid the broken or 1907129be1b7Smrg# incompatible versions: 1908129be1b7Smrg# SysV /etc/install, /usr/sbin/install 1909129be1b7Smrg# SunOS /usr/etc/install 1910129be1b7Smrg# IRIX /sbin/install 1911129be1b7Smrg# AIX /bin/install 1912129be1b7Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 1913129be1b7Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1914129be1b7Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1915129be1b7Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1916129be1b7Smrg# OS/2's system install, which has a completely different semantic 1917129be1b7Smrg# ./install, which can be erroneously created by make from ./install.sh. 1918a9a39c43Smrg# Reject install programs that cannot install multiple files. 1919a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1920a9a39c43Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 1921129be1b7Smrgif test -z "$INSTALL"; then 1922129be1b7Smrgif test "${ac_cv_path_install+set}" = set; then 1923a9a39c43Smrg $as_echo_n "(cached) " >&6 1924129be1b7Smrgelse 1925129be1b7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1926129be1b7Smrgfor as_dir in $PATH 1927129be1b7Smrgdo 1928129be1b7Smrg IFS=$as_save_IFS 1929129be1b7Smrg test -z "$as_dir" && as_dir=. 1930129be1b7Smrg # Account for people who put trailing slashes in PATH elements. 1931129be1b7Smrgcase $as_dir/ in 1932129be1b7Smrg ./ | .// | /cC/* | \ 1933129be1b7Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1934129be1b7Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1935129be1b7Smrg /usr/ucb/* ) ;; 1936129be1b7Smrg *) 1937129be1b7Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 1938129be1b7Smrg # Don't use installbsd from OSF since it installs stuff as root 1939129be1b7Smrg # by default. 1940129be1b7Smrg for ac_prog in ginstall scoinst install; do 1941129be1b7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 1942a9a39c43Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1943129be1b7Smrg if test $ac_prog = install && 1944129be1b7Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1945129be1b7Smrg # AIX install. It has an incompatible calling convention. 1946129be1b7Smrg : 1947129be1b7Smrg elif test $ac_prog = install && 1948129be1b7Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1949129be1b7Smrg # program-specific install script used by HP pwplus--don't use. 1950129be1b7Smrg : 1951129be1b7Smrg else 1952a9a39c43Smrg rm -rf conftest.one conftest.two conftest.dir 1953a9a39c43Smrg echo one > conftest.one 1954a9a39c43Smrg echo two > conftest.two 1955a9a39c43Smrg mkdir conftest.dir 1956a9a39c43Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1957a9a39c43Smrg test -s conftest.one && test -s conftest.two && 1958a9a39c43Smrg test -s conftest.dir/conftest.one && 1959a9a39c43Smrg test -s conftest.dir/conftest.two 1960a9a39c43Smrg then 1961a9a39c43Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1962a9a39c43Smrg break 3 1963a9a39c43Smrg fi 1964129be1b7Smrg fi 1965129be1b7Smrg fi 1966129be1b7Smrg done 1967129be1b7Smrg done 1968129be1b7Smrg ;; 1969129be1b7Smrgesac 1970a9a39c43Smrg 1971129be1b7Smrgdone 1972a9a39c43SmrgIFS=$as_save_IFS 1973129be1b7Smrg 1974a9a39c43Smrgrm -rf conftest.one conftest.two conftest.dir 1975129be1b7Smrg 1976129be1b7Smrgfi 1977129be1b7Smrg if test "${ac_cv_path_install+set}" = set; then 1978129be1b7Smrg INSTALL=$ac_cv_path_install 1979129be1b7Smrg else 1980a9a39c43Smrg # As a last resort, use the slow shell script. Don't cache a 1981a9a39c43Smrg # value for INSTALL within a source directory, because that will 1982129be1b7Smrg # break other packages using the cache if that directory is 1983a9a39c43Smrg # removed, or if the value is a relative name. 1984129be1b7Smrg INSTALL=$ac_install_sh 1985129be1b7Smrg fi 1986129be1b7Smrgfi 1987a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 1988a9a39c43Smrg$as_echo "$INSTALL" >&6; } 1989129be1b7Smrg 1990129be1b7Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1991129be1b7Smrg# It thinks the first close brace ends the variable substitution. 1992129be1b7Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1993129be1b7Smrg 1994129be1b7Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1995129be1b7Smrg 1996129be1b7Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1997129be1b7Smrg 1998a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1999a9a39c43Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2000129be1b7Smrg# Just in case 2001129be1b7Smrgsleep 1 2002129be1b7Smrgecho timestamp > conftest.file 2003a9a39c43Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2004a9a39c43Smrg# name. Accept space and tab only in the latter. 2005a9a39c43Smrgam_lf=' 2006a9a39c43Smrg' 2007a9a39c43Smrgcase `pwd` in 2008a9a39c43Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2009a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2010a9a39c43Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2011a9a39c43Smrg { (exit 1); exit 1; }; };; 2012a9a39c43Smrgesac 2013a9a39c43Smrgcase $srcdir in 2014a9a39c43Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2015a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2016a9a39c43Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2017a9a39c43Smrg { (exit 1); exit 1; }; };; 2018a9a39c43Smrgesac 2019a9a39c43Smrg 2020129be1b7Smrg# Do `set' in a subshell so we don't clobber the current shell's 2021129be1b7Smrg# arguments. Must try -L first in case configure is actually a 2022129be1b7Smrg# symlink; some systems play weird games with the mod time of symlinks 2023129be1b7Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2024129be1b7Smrg# directory). 2025129be1b7Smrgif ( 2026a9a39c43Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2027129be1b7Smrg if test "$*" = "X"; then 2028129be1b7Smrg # -L didn't work. 2029a9a39c43Smrg set X `ls -t "$srcdir/configure" conftest.file` 2030129be1b7Smrg fi 2031129be1b7Smrg rm -f conftest.file 2032129be1b7Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 2033129be1b7Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 2034129be1b7Smrg 2035129be1b7Smrg # If neither matched, then we have a broken ls. This can happen 2036129be1b7Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2037129be1b7Smrg # broken ls alias from the environment. This has actually 2038129be1b7Smrg # happened. Such a system could not be considered "sane". 2039a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2040129be1b7Smrgalias in your environment" >&5 2041a9a39c43Smrg$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2042129be1b7Smrgalias in your environment" >&2;} 2043129be1b7Smrg { (exit 1); exit 1; }; } 2044129be1b7Smrg fi 2045129be1b7Smrg 2046129be1b7Smrg test "$2" = conftest.file 2047129be1b7Smrg ) 2048129be1b7Smrgthen 2049129be1b7Smrg # Ok. 2050129be1b7Smrg : 2051129be1b7Smrgelse 2052a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2053129be1b7SmrgCheck your system clock" >&5 2054a9a39c43Smrg$as_echo "$as_me: error: newly created file is older than distributed files! 2055129be1b7SmrgCheck your system clock" >&2;} 2056129be1b7Smrg { (exit 1); exit 1; }; } 2057129be1b7Smrgfi 2058a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 2059a9a39c43Smrg$as_echo "yes" >&6; } 2060129be1b7Smrgtest "$program_prefix" != NONE && 2061a9a39c43Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2062129be1b7Smrg# Use a double $ so make ignores it. 2063129be1b7Smrgtest "$program_suffix" != NONE && 2064a9a39c43Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2065a9a39c43Smrg# Double any \ or $. 2066129be1b7Smrg# By default was `s,x,x', remove it if useless. 2067a9a39c43Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2068a9a39c43Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2069129be1b7Smrg 2070129be1b7Smrg# expand $ac_aux_dir to an absolute path 2071129be1b7Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 2072129be1b7Smrg 2073a9a39c43Smrgif test x"${MISSING+set}" != xset; then 2074a9a39c43Smrg case $am_aux_dir in 2075a9a39c43Smrg *\ * | *\ *) 2076a9a39c43Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2077a9a39c43Smrg *) 2078a9a39c43Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2079a9a39c43Smrg esac 2080a9a39c43Smrgfi 2081129be1b7Smrg# Use eval to expand $SHELL 2082129be1b7Smrgif eval "$MISSING --run true"; then 2083129be1b7Smrg am_missing_run="$MISSING --run " 2084129be1b7Smrgelse 2085129be1b7Smrg am_missing_run= 2086a9a39c43Smrg { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2087a9a39c43Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2088a9a39c43Smrgfi 2089a9a39c43Smrg 2090a9a39c43Smrgif test x"${install_sh}" != xset; then 2091a9a39c43Smrg case $am_aux_dir in 2092a9a39c43Smrg *\ * | *\ *) 2093a9a39c43Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2094a9a39c43Smrg *) 2095a9a39c43Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2096a9a39c43Smrg esac 2097a9a39c43Smrgfi 2098a9a39c43Smrg 2099a9a39c43Smrg# Installed binaries are usually stripped using `strip' when the user 2100a9a39c43Smrg# run `make install-strip'. However `strip' might not be the right 2101a9a39c43Smrg# tool to use in cross-compilation environments, therefore Automake 2102a9a39c43Smrg# will honor the `STRIP' environment variable to overrule this program. 2103a9a39c43Smrgif test "$cross_compiling" != no; then 2104a9a39c43Smrg if test -n "$ac_tool_prefix"; then 2105a9a39c43Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2106a9a39c43Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2107a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2108a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2109a9a39c43Smrgif test "${ac_cv_prog_STRIP+set}" = set; then 2110a9a39c43Smrg $as_echo_n "(cached) " >&6 2111a9a39c43Smrgelse 2112a9a39c43Smrg if test -n "$STRIP"; then 2113a9a39c43Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2114a9a39c43Smrgelse 2115a9a39c43Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2116a9a39c43Smrgfor as_dir in $PATH 2117a9a39c43Smrgdo 2118a9a39c43Smrg IFS=$as_save_IFS 2119a9a39c43Smrg test -z "$as_dir" && as_dir=. 2120a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2121a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2122a9a39c43Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2123a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2124a9a39c43Smrg break 2 2125a9a39c43Smrg fi 2126a9a39c43Smrgdone 2127a9a39c43Smrgdone 2128a9a39c43SmrgIFS=$as_save_IFS 2129a9a39c43Smrg 2130a9a39c43Smrgfi 2131a9a39c43Smrgfi 2132a9a39c43SmrgSTRIP=$ac_cv_prog_STRIP 2133a9a39c43Smrgif test -n "$STRIP"; then 2134a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2135a9a39c43Smrg$as_echo "$STRIP" >&6; } 2136a9a39c43Smrgelse 2137a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2138a9a39c43Smrg$as_echo "no" >&6; } 2139a9a39c43Smrgfi 2140a9a39c43Smrg 2141a9a39c43Smrg 2142a9a39c43Smrgfi 2143a9a39c43Smrgif test -z "$ac_cv_prog_STRIP"; then 2144a9a39c43Smrg ac_ct_STRIP=$STRIP 2145a9a39c43Smrg # Extract the first word of "strip", so it can be a program name with args. 2146a9a39c43Smrgset dummy strip; ac_word=$2 2147a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2148a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2149a9a39c43Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2150a9a39c43Smrg $as_echo_n "(cached) " >&6 2151a9a39c43Smrgelse 2152a9a39c43Smrg if test -n "$ac_ct_STRIP"; then 2153a9a39c43Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2154a9a39c43Smrgelse 2155a9a39c43Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2156a9a39c43Smrgfor as_dir in $PATH 2157a9a39c43Smrgdo 2158a9a39c43Smrg IFS=$as_save_IFS 2159a9a39c43Smrg test -z "$as_dir" && as_dir=. 2160a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2161a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2162a9a39c43Smrg ac_cv_prog_ac_ct_STRIP="strip" 2163a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2164a9a39c43Smrg break 2 2165a9a39c43Smrg fi 2166a9a39c43Smrgdone 2167a9a39c43Smrgdone 2168a9a39c43SmrgIFS=$as_save_IFS 2169a9a39c43Smrg 2170a9a39c43Smrgfi 2171a9a39c43Smrgfi 2172a9a39c43Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2173a9a39c43Smrgif test -n "$ac_ct_STRIP"; then 2174a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2175a9a39c43Smrg$as_echo "$ac_ct_STRIP" >&6; } 2176a9a39c43Smrgelse 2177a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2178a9a39c43Smrg$as_echo "no" >&6; } 2179a9a39c43Smrgfi 2180a9a39c43Smrg 2181a9a39c43Smrg if test "x$ac_ct_STRIP" = x; then 2182a9a39c43Smrg STRIP=":" 2183a9a39c43Smrg else 2184a9a39c43Smrg case $cross_compiling:$ac_tool_warned in 2185a9a39c43Smrgyes:) 2186a9a39c43Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2187a9a39c43Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2188a9a39c43Smrgac_tool_warned=yes ;; 2189a9a39c43Smrgesac 2190a9a39c43Smrg STRIP=$ac_ct_STRIP 2191a9a39c43Smrg fi 2192a9a39c43Smrgelse 2193a9a39c43Smrg STRIP="$ac_cv_prog_STRIP" 2194a9a39c43Smrgfi 2195a9a39c43Smrg 2196a9a39c43Smrgfi 2197a9a39c43SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2198a9a39c43Smrg 2199a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2200a9a39c43Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2201a9a39c43Smrgif test -z "$MKDIR_P"; then 2202a9a39c43Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2203a9a39c43Smrg $as_echo_n "(cached) " >&6 2204a9a39c43Smrgelse 2205a9a39c43Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2206a9a39c43Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2207a9a39c43Smrgdo 2208a9a39c43Smrg IFS=$as_save_IFS 2209a9a39c43Smrg test -z "$as_dir" && as_dir=. 2210a9a39c43Smrg for ac_prog in mkdir gmkdir; do 2211a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2212a9a39c43Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2213a9a39c43Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2214a9a39c43Smrg 'mkdir (GNU coreutils) '* | \ 2215a9a39c43Smrg 'mkdir (coreutils) '* | \ 2216a9a39c43Smrg 'mkdir (fileutils) '4.1*) 2217a9a39c43Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2218a9a39c43Smrg break 3;; 2219a9a39c43Smrg esac 2220a9a39c43Smrg done 2221a9a39c43Smrg done 2222a9a39c43Smrgdone 2223a9a39c43SmrgIFS=$as_save_IFS 2224a9a39c43Smrg 2225a9a39c43Smrgfi 2226a9a39c43Smrg 2227a9a39c43Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2228a9a39c43Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2229a9a39c43Smrg else 2230a9a39c43Smrg # As a last resort, use the slow shell script. Don't cache a 2231a9a39c43Smrg # value for MKDIR_P within a source directory, because that will 2232a9a39c43Smrg # break other packages using the cache if that directory is 2233a9a39c43Smrg # removed, or if the value is a relative name. 2234a9a39c43Smrg test -d ./--version && rmdir ./--version 2235a9a39c43Smrg MKDIR_P="$ac_install_sh -d" 2236a9a39c43Smrg fi 2237129be1b7Smrgfi 2238a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2239a9a39c43Smrg$as_echo "$MKDIR_P" >&6; } 2240a9a39c43Smrg 2241a9a39c43Smrgmkdir_p="$MKDIR_P" 2242a9a39c43Smrgcase $mkdir_p in 2243a9a39c43Smrg [\\/$]* | ?:[\\/]*) ;; 2244a9a39c43Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2245a9a39c43Smrgesac 2246129be1b7Smrg 2247129be1b7Smrgfor ac_prog in gawk mawk nawk awk 2248129be1b7Smrgdo 2249129be1b7Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2250129be1b7Smrgset dummy $ac_prog; ac_word=$2 2251a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2252a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2253129be1b7Smrgif test "${ac_cv_prog_AWK+set}" = set; then 2254a9a39c43Smrg $as_echo_n "(cached) " >&6 2255129be1b7Smrgelse 2256129be1b7Smrg if test -n "$AWK"; then 2257129be1b7Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2258129be1b7Smrgelse 2259129be1b7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2260129be1b7Smrgfor as_dir in $PATH 2261129be1b7Smrgdo 2262129be1b7Smrg IFS=$as_save_IFS 2263129be1b7Smrg test -z "$as_dir" && as_dir=. 2264129be1b7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2265a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2266129be1b7Smrg ac_cv_prog_AWK="$ac_prog" 2267a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2268129be1b7Smrg break 2 2269129be1b7Smrg fi 2270129be1b7Smrgdone 2271129be1b7Smrgdone 2272a9a39c43SmrgIFS=$as_save_IFS 2273129be1b7Smrg 2274129be1b7Smrgfi 2275129be1b7Smrgfi 2276129be1b7SmrgAWK=$ac_cv_prog_AWK 2277129be1b7Smrgif test -n "$AWK"; then 2278a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2279a9a39c43Smrg$as_echo "$AWK" >&6; } 2280129be1b7Smrgelse 2281a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2282a9a39c43Smrg$as_echo "no" >&6; } 2283129be1b7Smrgfi 2284129be1b7Smrg 2285a9a39c43Smrg 2286129be1b7Smrg test -n "$AWK" && break 2287129be1b7Smrgdone 2288129be1b7Smrg 2289a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2290a9a39c43Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2291a9a39c43Smrgset x ${MAKE-make} 2292a9a39c43Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2293a9a39c43Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2294a9a39c43Smrg $as_echo_n "(cached) " >&6 2295129be1b7Smrgelse 2296129be1b7Smrg cat >conftest.make <<\_ACEOF 2297a9a39c43SmrgSHELL = /bin/sh 2298129be1b7Smrgall: 2299a9a39c43Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2300129be1b7Smrg_ACEOF 2301129be1b7Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2302a9a39c43Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2303a9a39c43Smrg *@@@%%%=?*=@@@%%%*) 2304a9a39c43Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2305a9a39c43Smrg *) 2306a9a39c43Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2307a9a39c43Smrgesac 2308129be1b7Smrgrm -f conftest.make 2309129be1b7Smrgfi 2310a9a39c43Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2311a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 2312a9a39c43Smrg$as_echo "yes" >&6; } 2313129be1b7Smrg SET_MAKE= 2314129be1b7Smrgelse 2315a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2316a9a39c43Smrg$as_echo "no" >&6; } 2317129be1b7Smrg SET_MAKE="MAKE=${MAKE-make}" 2318129be1b7Smrgfi 2319129be1b7Smrg 2320129be1b7Smrgrm -rf .tst 2>/dev/null 2321129be1b7Smrgmkdir .tst 2>/dev/null 2322129be1b7Smrgif test -d .tst; then 2323129be1b7Smrg am__leading_dot=. 2324129be1b7Smrgelse 2325129be1b7Smrg am__leading_dot=_ 2326129be1b7Smrgfi 2327129be1b7Smrgrmdir .tst 2>/dev/null 2328129be1b7Smrg 2329a9a39c43Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2330a9a39c43Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2331a9a39c43Smrg # is not polluted with repeated "-I." 2332a9a39c43Smrg am__isrc=' -I$(srcdir)' 2333a9a39c43Smrg # test to see if srcdir already configured 2334a9a39c43Smrg if test -f $srcdir/config.status; then 2335a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2336a9a39c43Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2337129be1b7Smrg { (exit 1); exit 1; }; } 2338a9a39c43Smrg fi 2339129be1b7Smrgfi 2340129be1b7Smrg 2341129be1b7Smrg# test whether we have cygpath 2342129be1b7Smrgif test -z "$CYGPATH_W"; then 2343129be1b7Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2344129be1b7Smrg CYGPATH_W='cygpath -w' 2345129be1b7Smrg else 2346129be1b7Smrg CYGPATH_W=echo 2347129be1b7Smrg fi 2348129be1b7Smrgfi 2349129be1b7Smrg 2350129be1b7Smrg 2351129be1b7Smrg# Define the identity of the package. 2352129be1b7Smrg PACKAGE='xbitmaps' 2353a9a39c43Smrg VERSION='1.1.0' 2354129be1b7Smrg 2355129be1b7Smrg 2356129be1b7Smrgcat >>confdefs.h <<_ACEOF 2357129be1b7Smrg#define PACKAGE "$PACKAGE" 2358129be1b7Smrg_ACEOF 2359129be1b7Smrg 2360129be1b7Smrg 2361129be1b7Smrgcat >>confdefs.h <<_ACEOF 2362129be1b7Smrg#define VERSION "$VERSION" 2363129be1b7Smrg_ACEOF 2364129be1b7Smrg 2365129be1b7Smrg# Some tools Automake needs. 2366129be1b7Smrg 2367129be1b7SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2368129be1b7Smrg 2369129be1b7Smrg 2370129be1b7SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2371129be1b7Smrg 2372129be1b7Smrg 2373129be1b7SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2374129be1b7Smrg 2375129be1b7Smrg 2376129be1b7SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2377129be1b7Smrg 2378129be1b7Smrg 2379129be1b7SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2380129be1b7Smrg 2381a9a39c43Smrg# We need awk for the "check" target. The system "awk" is bad on 2382a9a39c43Smrg# some platforms. 2383a9a39c43Smrg# Always define AMTAR for backward compatibility. 2384129be1b7Smrg 2385129be1b7SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2386129be1b7Smrg 2387a9a39c43Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2388129be1b7Smrg 2389a9a39c43Smrg 2390a9a39c43Smrg 2391a9a39c43Smrg 2392a9a39c43Smrg 2393a9a39c43Smrg 2394a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2395a9a39c43Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2396a9a39c43Smrg # Check whether --enable-maintainer-mode was given. 2397a9a39c43Smrgif test "${enable_maintainer_mode+set}" = set; then 2398a9a39c43Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2399129be1b7Smrgelse 2400a9a39c43Smrg USE_MAINTAINER_MODE=no 2401a9a39c43Smrgfi 2402a9a39c43Smrg 2403a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2404a9a39c43Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2405a9a39c43Smrg if test $USE_MAINTAINER_MODE = yes; then 2406a9a39c43Smrg MAINTAINER_MODE_TRUE= 2407a9a39c43Smrg MAINTAINER_MODE_FALSE='#' 2408a9a39c43Smrgelse 2409a9a39c43Smrg MAINTAINER_MODE_TRUE='#' 2410a9a39c43Smrg MAINTAINER_MODE_FALSE= 2411a9a39c43Smrgfi 2412a9a39c43Smrg 2413a9a39c43Smrg MAINT=$MAINTAINER_MODE_TRUE 2414a9a39c43Smrg 2415a9a39c43Smrg 2416a9a39c43Smrg 2417a9a39c43Smrgac_config_headers="$ac_config_headers config.h" 2418a9a39c43Smrg 2419a9a39c43Smrg 2420a9a39c43Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 2421a9a39c43Smrg 2422a9a39c43Smrg 2423a9a39c43Smrg 2424a9a39c43Smrg 2425a9a39c43Smrg 2426a9a39c43Smrg 2427a9a39c43Smrg 2428a9a39c43Smrg 2429a9a39c43Smrg 2430a9a39c43Smrg 2431a9a39c43Smrg 2432a9a39c43SmrgDEPDIR="${am__leading_dot}deps" 2433a9a39c43Smrg 2434a9a39c43Smrgac_config_commands="$ac_config_commands depfiles" 2435a9a39c43Smrg 2436a9a39c43Smrg 2437a9a39c43Smrgam_make=${MAKE-make} 2438a9a39c43Smrgcat > confinc << 'END' 2439a9a39c43Smrgam__doit: 2440a9a39c43Smrg @echo this is the am__doit target 2441a9a39c43Smrg.PHONY: am__doit 2442a9a39c43SmrgEND 2443a9a39c43Smrg# If we don't find an include directive, just comment out the code. 2444a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2445a9a39c43Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2446a9a39c43Smrgam__include="#" 2447a9a39c43Smrgam__quote= 2448a9a39c43Smrg_am_result=none 2449a9a39c43Smrg# First try GNU make style include. 2450a9a39c43Smrgecho "include confinc" > confmf 2451a9a39c43Smrg# Ignore all kinds of additional output from `make'. 2452a9a39c43Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2453a9a39c43Smrg*the\ am__doit\ target*) 2454a9a39c43Smrg am__include=include 2455a9a39c43Smrg am__quote= 2456a9a39c43Smrg _am_result=GNU 2457a9a39c43Smrg ;; 2458a9a39c43Smrgesac 2459a9a39c43Smrg# Now try BSD make style include. 2460a9a39c43Smrgif test "$am__include" = "#"; then 2461a9a39c43Smrg echo '.include "confinc"' > confmf 2462a9a39c43Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2463a9a39c43Smrg *the\ am__doit\ target*) 2464a9a39c43Smrg am__include=.include 2465a9a39c43Smrg am__quote="\"" 2466a9a39c43Smrg _am_result=BSD 2467a9a39c43Smrg ;; 2468a9a39c43Smrg esac 2469a9a39c43Smrgfi 2470a9a39c43Smrg 2471a9a39c43Smrg 2472a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2473a9a39c43Smrg$as_echo "$_am_result" >&6; } 2474a9a39c43Smrgrm -f confinc confmf 2475a9a39c43Smrg 2476a9a39c43Smrg# Check whether --enable-dependency-tracking was given. 2477a9a39c43Smrgif test "${enable_dependency_tracking+set}" = set; then 2478a9a39c43Smrg enableval=$enable_dependency_tracking; 2479a9a39c43Smrgfi 2480a9a39c43Smrg 2481a9a39c43Smrgif test "x$enable_dependency_tracking" != xno; then 2482a9a39c43Smrg am_depcomp="$ac_aux_dir/depcomp" 2483a9a39c43Smrg AMDEPBACKSLASH='\' 2484a9a39c43Smrgfi 2485a9a39c43Smrg if test "x$enable_dependency_tracking" != xno; then 2486a9a39c43Smrg AMDEP_TRUE= 2487a9a39c43Smrg AMDEP_FALSE='#' 2488a9a39c43Smrgelse 2489a9a39c43Smrg AMDEP_TRUE='#' 2490a9a39c43Smrg AMDEP_FALSE= 2491a9a39c43Smrgfi 2492a9a39c43Smrg 2493a9a39c43Smrg 2494a9a39c43Smrgac_ext=c 2495a9a39c43Smrgac_cpp='$CPP $CPPFLAGS' 2496a9a39c43Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2497a9a39c43Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2498a9a39c43Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2499a9a39c43Smrgif test -n "$ac_tool_prefix"; then 2500a9a39c43Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2501a9a39c43Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2502a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2503a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2504a9a39c43Smrgif test "${ac_cv_prog_CC+set}" = set; then 2505a9a39c43Smrg $as_echo_n "(cached) " >&6 2506a9a39c43Smrgelse 2507a9a39c43Smrg if test -n "$CC"; then 2508a9a39c43Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2509129be1b7Smrgelse 2510129be1b7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2511129be1b7Smrgfor as_dir in $PATH 2512129be1b7Smrgdo 2513129be1b7Smrg IFS=$as_save_IFS 2514129be1b7Smrg test -z "$as_dir" && as_dir=. 2515129be1b7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2516a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2517a9a39c43Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2518a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2519129be1b7Smrg break 2 2520129be1b7Smrg fi 2521129be1b7Smrgdone 2522129be1b7Smrgdone 2523a9a39c43SmrgIFS=$as_save_IFS 2524129be1b7Smrg 2525129be1b7Smrgfi 2526129be1b7Smrgfi 2527a9a39c43SmrgCC=$ac_cv_prog_CC 2528a9a39c43Smrgif test -n "$CC"; then 2529a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2530a9a39c43Smrg$as_echo "$CC" >&6; } 2531129be1b7Smrgelse 2532a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2533a9a39c43Smrg$as_echo "no" >&6; } 2534129be1b7Smrgfi 2535129be1b7Smrg 2536a9a39c43Smrg 2537129be1b7Smrgfi 2538a9a39c43Smrgif test -z "$ac_cv_prog_CC"; then 2539a9a39c43Smrg ac_ct_CC=$CC 2540a9a39c43Smrg # Extract the first word of "gcc", so it can be a program name with args. 2541a9a39c43Smrgset dummy gcc; ac_word=$2 2542a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2543a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2544a9a39c43Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2545a9a39c43Smrg $as_echo_n "(cached) " >&6 2546129be1b7Smrgelse 2547a9a39c43Smrg if test -n "$ac_ct_CC"; then 2548a9a39c43Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2549129be1b7Smrgelse 2550129be1b7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2551129be1b7Smrgfor as_dir in $PATH 2552129be1b7Smrgdo 2553129be1b7Smrg IFS=$as_save_IFS 2554129be1b7Smrg test -z "$as_dir" && as_dir=. 2555129be1b7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2556a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2557a9a39c43Smrg ac_cv_prog_ac_ct_CC="gcc" 2558a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2559129be1b7Smrg break 2 2560129be1b7Smrg fi 2561129be1b7Smrgdone 2562129be1b7Smrgdone 2563a9a39c43SmrgIFS=$as_save_IFS 2564129be1b7Smrg 2565129be1b7Smrgfi 2566129be1b7Smrgfi 2567a9a39c43Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2568a9a39c43Smrgif test -n "$ac_ct_CC"; then 2569a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2570a9a39c43Smrg$as_echo "$ac_ct_CC" >&6; } 2571129be1b7Smrgelse 2572a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2573a9a39c43Smrg$as_echo "no" >&6; } 2574129be1b7Smrgfi 2575129be1b7Smrg 2576a9a39c43Smrg if test "x$ac_ct_CC" = x; then 2577a9a39c43Smrg CC="" 2578a9a39c43Smrg else 2579a9a39c43Smrg case $cross_compiling:$ac_tool_warned in 2580a9a39c43Smrgyes:) 2581a9a39c43Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2582a9a39c43Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2583a9a39c43Smrgac_tool_warned=yes ;; 2584a9a39c43Smrgesac 2585a9a39c43Smrg CC=$ac_ct_CC 2586a9a39c43Smrg fi 2587129be1b7Smrgelse 2588a9a39c43Smrg CC="$ac_cv_prog_CC" 2589129be1b7Smrgfi 2590129be1b7Smrg 2591a9a39c43Smrgif test -z "$CC"; then 2592a9a39c43Smrg if test -n "$ac_tool_prefix"; then 2593a9a39c43Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2594a9a39c43Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2595a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2596a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2597a9a39c43Smrgif test "${ac_cv_prog_CC+set}" = set; then 2598a9a39c43Smrg $as_echo_n "(cached) " >&6 2599129be1b7Smrgelse 2600a9a39c43Smrg if test -n "$CC"; then 2601a9a39c43Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2602a9a39c43Smrgelse 2603a9a39c43Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2604a9a39c43Smrgfor as_dir in $PATH 2605a9a39c43Smrgdo 2606a9a39c43Smrg IFS=$as_save_IFS 2607a9a39c43Smrg test -z "$as_dir" && as_dir=. 2608a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2609a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2610a9a39c43Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2611a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2612a9a39c43Smrg break 2 2613a9a39c43Smrg fi 2614a9a39c43Smrgdone 2615a9a39c43Smrgdone 2616a9a39c43SmrgIFS=$as_save_IFS 2617a9a39c43Smrg 2618a9a39c43Smrgfi 2619a9a39c43Smrgfi 2620a9a39c43SmrgCC=$ac_cv_prog_CC 2621a9a39c43Smrgif test -n "$CC"; then 2622a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2623a9a39c43Smrg$as_echo "$CC" >&6; } 2624a9a39c43Smrgelse 2625a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2626a9a39c43Smrg$as_echo "no" >&6; } 2627a9a39c43Smrgfi 2628a9a39c43Smrg 2629a9a39c43Smrg 2630a9a39c43Smrg fi 2631a9a39c43Smrgfi 2632a9a39c43Smrgif test -z "$CC"; then 2633a9a39c43Smrg # Extract the first word of "cc", so it can be a program name with args. 2634a9a39c43Smrgset dummy cc; ac_word=$2 2635a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2636a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2637a9a39c43Smrgif test "${ac_cv_prog_CC+set}" = set; then 2638a9a39c43Smrg $as_echo_n "(cached) " >&6 2639a9a39c43Smrgelse 2640a9a39c43Smrg if test -n "$CC"; then 2641a9a39c43Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2642a9a39c43Smrgelse 2643a9a39c43Smrg ac_prog_rejected=no 2644a9a39c43Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645a9a39c43Smrgfor as_dir in $PATH 2646a9a39c43Smrgdo 2647a9a39c43Smrg IFS=$as_save_IFS 2648a9a39c43Smrg test -z "$as_dir" && as_dir=. 2649a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2650a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2651a9a39c43Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2652a9a39c43Smrg ac_prog_rejected=yes 2653a9a39c43Smrg continue 2654a9a39c43Smrg fi 2655a9a39c43Smrg ac_cv_prog_CC="cc" 2656a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2657a9a39c43Smrg break 2 2658a9a39c43Smrg fi 2659a9a39c43Smrgdone 2660a9a39c43Smrgdone 2661a9a39c43SmrgIFS=$as_save_IFS 2662a9a39c43Smrg 2663a9a39c43Smrgif test $ac_prog_rejected = yes; then 2664a9a39c43Smrg # We found a bogon in the path, so make sure we never use it. 2665a9a39c43Smrg set dummy $ac_cv_prog_CC 2666a9a39c43Smrg shift 2667a9a39c43Smrg if test $# != 0; then 2668a9a39c43Smrg # We chose a different compiler from the bogus one. 2669a9a39c43Smrg # However, it has the same basename, so the bogon will be chosen 2670a9a39c43Smrg # first if we set CC to just the basename; use the full file name. 2671a9a39c43Smrg shift 2672a9a39c43Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2673a9a39c43Smrg fi 2674a9a39c43Smrgfi 2675a9a39c43Smrgfi 2676a9a39c43Smrgfi 2677a9a39c43SmrgCC=$ac_cv_prog_CC 2678a9a39c43Smrgif test -n "$CC"; then 2679a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2680a9a39c43Smrg$as_echo "$CC" >&6; } 2681a9a39c43Smrgelse 2682a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2683a9a39c43Smrg$as_echo "no" >&6; } 2684a9a39c43Smrgfi 2685a9a39c43Smrg 2686a9a39c43Smrg 2687a9a39c43Smrgfi 2688a9a39c43Smrgif test -z "$CC"; then 2689a9a39c43Smrg if test -n "$ac_tool_prefix"; then 2690a9a39c43Smrg for ac_prog in cl.exe 2691a9a39c43Smrg do 2692a9a39c43Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2693a9a39c43Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2694a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2695a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2696a9a39c43Smrgif test "${ac_cv_prog_CC+set}" = set; then 2697a9a39c43Smrg $as_echo_n "(cached) " >&6 2698a9a39c43Smrgelse 2699a9a39c43Smrg if test -n "$CC"; then 2700a9a39c43Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2701a9a39c43Smrgelse 2702a9a39c43Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703a9a39c43Smrgfor as_dir in $PATH 2704a9a39c43Smrgdo 2705a9a39c43Smrg IFS=$as_save_IFS 2706a9a39c43Smrg test -z "$as_dir" && as_dir=. 2707a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2708a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2709a9a39c43Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2710a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2711a9a39c43Smrg break 2 2712a9a39c43Smrg fi 2713a9a39c43Smrgdone 2714a9a39c43Smrgdone 2715a9a39c43SmrgIFS=$as_save_IFS 2716a9a39c43Smrg 2717a9a39c43Smrgfi 2718a9a39c43Smrgfi 2719a9a39c43SmrgCC=$ac_cv_prog_CC 2720a9a39c43Smrgif test -n "$CC"; then 2721a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 2722a9a39c43Smrg$as_echo "$CC" >&6; } 2723a9a39c43Smrgelse 2724a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2725a9a39c43Smrg$as_echo "no" >&6; } 2726a9a39c43Smrgfi 2727a9a39c43Smrg 2728a9a39c43Smrg 2729a9a39c43Smrg test -n "$CC" && break 2730a9a39c43Smrg done 2731a9a39c43Smrgfi 2732a9a39c43Smrgif test -z "$CC"; then 2733a9a39c43Smrg ac_ct_CC=$CC 2734a9a39c43Smrg for ac_prog in cl.exe 2735a9a39c43Smrgdo 2736a9a39c43Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2737a9a39c43Smrgset dummy $ac_prog; ac_word=$2 2738a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2739a9a39c43Smrg$as_echo_n "checking for $ac_word... " >&6; } 2740a9a39c43Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2741a9a39c43Smrg $as_echo_n "(cached) " >&6 2742a9a39c43Smrgelse 2743a9a39c43Smrg if test -n "$ac_ct_CC"; then 2744a9a39c43Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2745a9a39c43Smrgelse 2746a9a39c43Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747a9a39c43Smrgfor as_dir in $PATH 2748a9a39c43Smrgdo 2749a9a39c43Smrg IFS=$as_save_IFS 2750a9a39c43Smrg test -z "$as_dir" && as_dir=. 2751a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2752a9a39c43Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2753a9a39c43Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2754a9a39c43Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2755a9a39c43Smrg break 2 2756a9a39c43Smrg fi 2757a9a39c43Smrgdone 2758a9a39c43Smrgdone 2759a9a39c43SmrgIFS=$as_save_IFS 2760a9a39c43Smrg 2761a9a39c43Smrgfi 2762a9a39c43Smrgfi 2763a9a39c43Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2764a9a39c43Smrgif test -n "$ac_ct_CC"; then 2765a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2766a9a39c43Smrg$as_echo "$ac_ct_CC" >&6; } 2767a9a39c43Smrgelse 2768a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 2769a9a39c43Smrg$as_echo "no" >&6; } 2770a9a39c43Smrgfi 2771a9a39c43Smrg 2772a9a39c43Smrg 2773a9a39c43Smrg test -n "$ac_ct_CC" && break 2774a9a39c43Smrgdone 2775a9a39c43Smrg 2776a9a39c43Smrg if test "x$ac_ct_CC" = x; then 2777a9a39c43Smrg CC="" 2778a9a39c43Smrg else 2779a9a39c43Smrg case $cross_compiling:$ac_tool_warned in 2780a9a39c43Smrgyes:) 2781a9a39c43Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2782a9a39c43Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2783a9a39c43Smrgac_tool_warned=yes ;; 2784a9a39c43Smrgesac 2785a9a39c43Smrg CC=$ac_ct_CC 2786a9a39c43Smrg fi 2787a9a39c43Smrgfi 2788a9a39c43Smrg 2789a9a39c43Smrgfi 2790a9a39c43Smrg 2791a9a39c43Smrg 2792a9a39c43Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2793a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2794a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2795a9a39c43SmrgSee \`config.log' for more details." >&5 2796a9a39c43Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2797a9a39c43SmrgSee \`config.log' for more details." >&2;} 2798a9a39c43Smrg { (exit 1); exit 1; }; }; } 2799a9a39c43Smrg 2800a9a39c43Smrg# Provide some information about the compiler. 2801a9a39c43Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2802a9a39c43Smrgset X $ac_compile 2803a9a39c43Smrgac_compiler=$2 2804a9a39c43Smrg{ (ac_try="$ac_compiler --version >&5" 2805a9a39c43Smrgcase "(($ac_try" in 2806a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807a9a39c43Smrg *) ac_try_echo=$ac_try;; 2808a9a39c43Smrgesac 2809a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2810a9a39c43Smrg$as_echo "$ac_try_echo") >&5 2811a9a39c43Smrg (eval "$ac_compiler --version >&5") 2>&5 2812a9a39c43Smrg ac_status=$? 2813a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2814a9a39c43Smrg (exit $ac_status); } 2815a9a39c43Smrg{ (ac_try="$ac_compiler -v >&5" 2816a9a39c43Smrgcase "(($ac_try" in 2817a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2818a9a39c43Smrg *) ac_try_echo=$ac_try;; 2819a9a39c43Smrgesac 2820a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2821a9a39c43Smrg$as_echo "$ac_try_echo") >&5 2822a9a39c43Smrg (eval "$ac_compiler -v >&5") 2>&5 2823a9a39c43Smrg ac_status=$? 2824a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825a9a39c43Smrg (exit $ac_status); } 2826a9a39c43Smrg{ (ac_try="$ac_compiler -V >&5" 2827a9a39c43Smrgcase "(($ac_try" in 2828a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2829a9a39c43Smrg *) ac_try_echo=$ac_try;; 2830a9a39c43Smrgesac 2831a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2832a9a39c43Smrg$as_echo "$ac_try_echo") >&5 2833a9a39c43Smrg (eval "$ac_compiler -V >&5") 2>&5 2834a9a39c43Smrg ac_status=$? 2835a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2836a9a39c43Smrg (exit $ac_status); } 2837a9a39c43Smrg 2838a9a39c43Smrgcat >conftest.$ac_ext <<_ACEOF 2839a9a39c43Smrg/* confdefs.h. */ 2840a9a39c43Smrg_ACEOF 2841a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 2842a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 2843a9a39c43Smrg/* end confdefs.h. */ 2844a9a39c43Smrg 2845a9a39c43Smrgint 2846a9a39c43Smrgmain () 2847a9a39c43Smrg{ 2848a9a39c43Smrg 2849a9a39c43Smrg ; 2850a9a39c43Smrg return 0; 2851a9a39c43Smrg} 2852a9a39c43Smrg_ACEOF 2853a9a39c43Smrgac_clean_files_save=$ac_clean_files 2854a9a39c43Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2855a9a39c43Smrg# Try to create an executable without -o first, disregard a.out. 2856a9a39c43Smrg# It will help us diagnose broken compilers, and finding out an intuition 2857a9a39c43Smrg# of exeext. 2858a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2859a9a39c43Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 2860a9a39c43Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2861a9a39c43Smrg 2862a9a39c43Smrg# The possible output files: 2863a9a39c43Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2864a9a39c43Smrg 2865a9a39c43Smrgac_rmfiles= 2866a9a39c43Smrgfor ac_file in $ac_files 2867a9a39c43Smrgdo 2868a9a39c43Smrg case $ac_file in 2869a9a39c43Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2870a9a39c43Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2871a9a39c43Smrg esac 2872a9a39c43Smrgdone 2873a9a39c43Smrgrm -f $ac_rmfiles 2874a9a39c43Smrg 2875a9a39c43Smrgif { (ac_try="$ac_link_default" 2876a9a39c43Smrgcase "(($ac_try" in 2877a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2878a9a39c43Smrg *) ac_try_echo=$ac_try;; 2879a9a39c43Smrgesac 2880a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2881a9a39c43Smrg$as_echo "$ac_try_echo") >&5 2882a9a39c43Smrg (eval "$ac_link_default") 2>&5 2883a9a39c43Smrg ac_status=$? 2884a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885a9a39c43Smrg (exit $ac_status); }; then 2886a9a39c43Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2887a9a39c43Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2888a9a39c43Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 2889a9a39c43Smrg# so that the user can short-circuit this test for compilers unknown to 2890a9a39c43Smrg# Autoconf. 2891a9a39c43Smrgfor ac_file in $ac_files '' 2892a9a39c43Smrgdo 2893a9a39c43Smrg test -f "$ac_file" || continue 2894a9a39c43Smrg case $ac_file in 2895a9a39c43Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2896a9a39c43Smrg ;; 2897a9a39c43Smrg [ab].out ) 2898a9a39c43Smrg # We found the default executable, but exeext='' is most 2899a9a39c43Smrg # certainly right. 2900a9a39c43Smrg break;; 2901a9a39c43Smrg *.* ) 2902a9a39c43Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2903a9a39c43Smrg then :; else 2904a9a39c43Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2905a9a39c43Smrg fi 2906a9a39c43Smrg # We set ac_cv_exeext here because the later test for it is not 2907a9a39c43Smrg # safe: cross compilers may not add the suffix if given an `-o' 2908a9a39c43Smrg # argument, so we may need to know it at that point already. 2909a9a39c43Smrg # Even if this section looks crufty: it has the advantage of 2910a9a39c43Smrg # actually working. 2911a9a39c43Smrg break;; 2912a9a39c43Smrg * ) 2913a9a39c43Smrg break;; 2914a9a39c43Smrg esac 2915a9a39c43Smrgdone 2916a9a39c43Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 2917a9a39c43Smrg 2918a9a39c43Smrgelse 2919a9a39c43Smrg ac_file='' 2920a9a39c43Smrgfi 2921a9a39c43Smrg 2922a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2923a9a39c43Smrg$as_echo "$ac_file" >&6; } 2924a9a39c43Smrgif test -z "$ac_file"; then 2925a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 2926a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 2927a9a39c43Smrg 2928a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2929a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2930a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2931a9a39c43SmrgSee \`config.log' for more details." >&5 2932a9a39c43Smrg$as_echo "$as_me: error: C compiler cannot create executables 2933a9a39c43SmrgSee \`config.log' for more details." >&2;} 2934a9a39c43Smrg { (exit 77); exit 77; }; }; } 2935a9a39c43Smrgfi 2936a9a39c43Smrg 2937a9a39c43Smrgac_exeext=$ac_cv_exeext 2938a9a39c43Smrg 2939a9a39c43Smrg# Check that the compiler produces executables we can run. If not, either 2940a9a39c43Smrg# the compiler is broken, or we cross compile. 2941a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2942a9a39c43Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 2943a9a39c43Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2944a9a39c43Smrg# If not cross compiling, check that we can run a simple program. 2945a9a39c43Smrgif test "$cross_compiling" != yes; then 2946a9a39c43Smrg if { ac_try='./$ac_file' 2947a9a39c43Smrg { (case "(($ac_try" in 2948a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2949a9a39c43Smrg *) ac_try_echo=$ac_try;; 2950a9a39c43Smrgesac 2951a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2952a9a39c43Smrg$as_echo "$ac_try_echo") >&5 2953a9a39c43Smrg (eval "$ac_try") 2>&5 2954a9a39c43Smrg ac_status=$? 2955a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956a9a39c43Smrg (exit $ac_status); }; }; then 2957a9a39c43Smrg cross_compiling=no 2958a9a39c43Smrg else 2959a9a39c43Smrg if test "$cross_compiling" = maybe; then 2960a9a39c43Smrg cross_compiling=yes 2961a9a39c43Smrg else 2962a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2963a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2964a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2965a9a39c43SmrgIf you meant to cross compile, use \`--host'. 2966a9a39c43SmrgSee \`config.log' for more details." >&5 2967a9a39c43Smrg$as_echo "$as_me: error: cannot run C compiled programs. 2968a9a39c43SmrgIf you meant to cross compile, use \`--host'. 2969a9a39c43SmrgSee \`config.log' for more details." >&2;} 2970a9a39c43Smrg { (exit 1); exit 1; }; }; } 2971a9a39c43Smrg fi 2972a9a39c43Smrg fi 2973a9a39c43Smrgfi 2974a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 2975a9a39c43Smrg$as_echo "yes" >&6; } 2976a9a39c43Smrg 2977a9a39c43Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2978a9a39c43Smrgac_clean_files=$ac_clean_files_save 2979a9a39c43Smrg# Check that the compiler produces executables we can run. If not, either 2980a9a39c43Smrg# the compiler is broken, or we cross compile. 2981a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2982a9a39c43Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 2983a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2984a9a39c43Smrg$as_echo "$cross_compiling" >&6; } 2985a9a39c43Smrg 2986a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2987a9a39c43Smrg$as_echo_n "checking for suffix of executables... " >&6; } 2988a9a39c43Smrgif { (ac_try="$ac_link" 2989a9a39c43Smrgcase "(($ac_try" in 2990a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2991a9a39c43Smrg *) ac_try_echo=$ac_try;; 2992a9a39c43Smrgesac 2993a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2994a9a39c43Smrg$as_echo "$ac_try_echo") >&5 2995a9a39c43Smrg (eval "$ac_link") 2>&5 2996a9a39c43Smrg ac_status=$? 2997a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998a9a39c43Smrg (exit $ac_status); }; then 2999a9a39c43Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3000a9a39c43Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3001a9a39c43Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3002a9a39c43Smrg# `rm'. 3003a9a39c43Smrgfor ac_file in conftest.exe conftest conftest.*; do 3004a9a39c43Smrg test -f "$ac_file" || continue 3005a9a39c43Smrg case $ac_file in 3006a9a39c43Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3007a9a39c43Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3008a9a39c43Smrg break;; 3009a9a39c43Smrg * ) break;; 3010a9a39c43Smrg esac 3011a9a39c43Smrgdone 3012a9a39c43Smrgelse 3013a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3014a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3015a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3016a9a39c43SmrgSee \`config.log' for more details." >&5 3017a9a39c43Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3018a9a39c43SmrgSee \`config.log' for more details." >&2;} 3019a9a39c43Smrg { (exit 1); exit 1; }; }; } 3020a9a39c43Smrgfi 3021a9a39c43Smrg 3022a9a39c43Smrgrm -f conftest$ac_cv_exeext 3023a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3024a9a39c43Smrg$as_echo "$ac_cv_exeext" >&6; } 3025a9a39c43Smrg 3026a9a39c43Smrgrm -f conftest.$ac_ext 3027a9a39c43SmrgEXEEXT=$ac_cv_exeext 3028a9a39c43Smrgac_exeext=$EXEEXT 3029a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3030a9a39c43Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3031a9a39c43Smrgif test "${ac_cv_objext+set}" = set; then 3032a9a39c43Smrg $as_echo_n "(cached) " >&6 3033a9a39c43Smrgelse 3034a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3035a9a39c43Smrg/* confdefs.h. */ 3036a9a39c43Smrg_ACEOF 3037a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3038a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3039a9a39c43Smrg/* end confdefs.h. */ 3040a9a39c43Smrg 3041a9a39c43Smrgint 3042a9a39c43Smrgmain () 3043a9a39c43Smrg{ 3044a9a39c43Smrg 3045a9a39c43Smrg ; 3046a9a39c43Smrg return 0; 3047a9a39c43Smrg} 3048a9a39c43Smrg_ACEOF 3049a9a39c43Smrgrm -f conftest.o conftest.obj 3050a9a39c43Smrgif { (ac_try="$ac_compile" 3051a9a39c43Smrgcase "(($ac_try" in 3052a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053a9a39c43Smrg *) ac_try_echo=$ac_try;; 3054a9a39c43Smrgesac 3055a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3056a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3057a9a39c43Smrg (eval "$ac_compile") 2>&5 3058a9a39c43Smrg ac_status=$? 3059a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060a9a39c43Smrg (exit $ac_status); }; then 3061a9a39c43Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3062a9a39c43Smrg test -f "$ac_file" || continue; 3063a9a39c43Smrg case $ac_file in 3064a9a39c43Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3065a9a39c43Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3066a9a39c43Smrg break;; 3067a9a39c43Smrg esac 3068a9a39c43Smrgdone 3069a9a39c43Smrgelse 3070a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3071a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3072a9a39c43Smrg 3073a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3074a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3075a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3076a9a39c43SmrgSee \`config.log' for more details." >&5 3077a9a39c43Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3078a9a39c43SmrgSee \`config.log' for more details." >&2;} 3079a9a39c43Smrg { (exit 1); exit 1; }; }; } 3080a9a39c43Smrgfi 3081a9a39c43Smrg 3082a9a39c43Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3083a9a39c43Smrgfi 3084a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3085a9a39c43Smrg$as_echo "$ac_cv_objext" >&6; } 3086a9a39c43SmrgOBJEXT=$ac_cv_objext 3087a9a39c43Smrgac_objext=$OBJEXT 3088a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3089a9a39c43Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3090a9a39c43Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 3091a9a39c43Smrg $as_echo_n "(cached) " >&6 3092a9a39c43Smrgelse 3093a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3094a9a39c43Smrg/* confdefs.h. */ 3095a9a39c43Smrg_ACEOF 3096a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3097a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3098a9a39c43Smrg/* end confdefs.h. */ 3099a9a39c43Smrg 3100a9a39c43Smrgint 3101a9a39c43Smrgmain () 3102a9a39c43Smrg{ 3103a9a39c43Smrg#ifndef __GNUC__ 3104a9a39c43Smrg choke me 3105a9a39c43Smrg#endif 3106a9a39c43Smrg 3107a9a39c43Smrg ; 3108a9a39c43Smrg return 0; 3109a9a39c43Smrg} 3110a9a39c43Smrg_ACEOF 3111a9a39c43Smrgrm -f conftest.$ac_objext 3112a9a39c43Smrgif { (ac_try="$ac_compile" 3113a9a39c43Smrgcase "(($ac_try" in 3114a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115a9a39c43Smrg *) ac_try_echo=$ac_try;; 3116a9a39c43Smrgesac 3117a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3118a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3119a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 3120a9a39c43Smrg ac_status=$? 3121a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3122a9a39c43Smrg rm -f conftest.er1 3123a9a39c43Smrg cat conftest.err >&5 3124a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125a9a39c43Smrg (exit $ac_status); } && { 3126a9a39c43Smrg test -z "$ac_c_werror_flag" || 3127a9a39c43Smrg test ! -s conftest.err 3128a9a39c43Smrg } && test -s conftest.$ac_objext; then 3129a9a39c43Smrg ac_compiler_gnu=yes 3130a9a39c43Smrgelse 3131a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3132a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3133a9a39c43Smrg 3134a9a39c43Smrg ac_compiler_gnu=no 3135a9a39c43Smrgfi 3136a9a39c43Smrg 3137a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3138a9a39c43Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3139a9a39c43Smrg 3140a9a39c43Smrgfi 3141a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3142a9a39c43Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3143a9a39c43Smrgif test $ac_compiler_gnu = yes; then 3144a9a39c43Smrg GCC=yes 3145a9a39c43Smrgelse 3146a9a39c43Smrg GCC= 3147a9a39c43Smrgfi 3148a9a39c43Smrgac_test_CFLAGS=${CFLAGS+set} 3149a9a39c43Smrgac_save_CFLAGS=$CFLAGS 3150a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3151a9a39c43Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3152a9a39c43Smrgif test "${ac_cv_prog_cc_g+set}" = set; then 3153a9a39c43Smrg $as_echo_n "(cached) " >&6 3154a9a39c43Smrgelse 3155a9a39c43Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3156a9a39c43Smrg ac_c_werror_flag=yes 3157a9a39c43Smrg ac_cv_prog_cc_g=no 3158a9a39c43Smrg CFLAGS="-g" 3159a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3160a9a39c43Smrg/* confdefs.h. */ 3161a9a39c43Smrg_ACEOF 3162a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3163a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3164a9a39c43Smrg/* end confdefs.h. */ 3165a9a39c43Smrg 3166a9a39c43Smrgint 3167a9a39c43Smrgmain () 3168a9a39c43Smrg{ 3169a9a39c43Smrg 3170a9a39c43Smrg ; 3171a9a39c43Smrg return 0; 3172a9a39c43Smrg} 3173a9a39c43Smrg_ACEOF 3174a9a39c43Smrgrm -f conftest.$ac_objext 3175a9a39c43Smrgif { (ac_try="$ac_compile" 3176a9a39c43Smrgcase "(($ac_try" in 3177a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178a9a39c43Smrg *) ac_try_echo=$ac_try;; 3179a9a39c43Smrgesac 3180a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3181a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3182a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 3183a9a39c43Smrg ac_status=$? 3184a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3185a9a39c43Smrg rm -f conftest.er1 3186a9a39c43Smrg cat conftest.err >&5 3187a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3188a9a39c43Smrg (exit $ac_status); } && { 3189a9a39c43Smrg test -z "$ac_c_werror_flag" || 3190a9a39c43Smrg test ! -s conftest.err 3191a9a39c43Smrg } && test -s conftest.$ac_objext; then 3192a9a39c43Smrg ac_cv_prog_cc_g=yes 3193a9a39c43Smrgelse 3194a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3195a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3196a9a39c43Smrg 3197a9a39c43Smrg CFLAGS="" 3198a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3199a9a39c43Smrg/* confdefs.h. */ 3200a9a39c43Smrg_ACEOF 3201a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3202a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3203a9a39c43Smrg/* end confdefs.h. */ 3204a9a39c43Smrg 3205a9a39c43Smrgint 3206a9a39c43Smrgmain () 3207a9a39c43Smrg{ 3208a9a39c43Smrg 3209a9a39c43Smrg ; 3210a9a39c43Smrg return 0; 3211a9a39c43Smrg} 3212a9a39c43Smrg_ACEOF 3213a9a39c43Smrgrm -f conftest.$ac_objext 3214a9a39c43Smrgif { (ac_try="$ac_compile" 3215a9a39c43Smrgcase "(($ac_try" in 3216a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217a9a39c43Smrg *) ac_try_echo=$ac_try;; 3218a9a39c43Smrgesac 3219a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3220a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3221a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 3222a9a39c43Smrg ac_status=$? 3223a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3224a9a39c43Smrg rm -f conftest.er1 3225a9a39c43Smrg cat conftest.err >&5 3226a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227a9a39c43Smrg (exit $ac_status); } && { 3228a9a39c43Smrg test -z "$ac_c_werror_flag" || 3229a9a39c43Smrg test ! -s conftest.err 3230a9a39c43Smrg } && test -s conftest.$ac_objext; then 3231a9a39c43Smrg : 3232a9a39c43Smrgelse 3233a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3234a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3235a9a39c43Smrg 3236a9a39c43Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3237a9a39c43Smrg CFLAGS="-g" 3238a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3239a9a39c43Smrg/* confdefs.h. */ 3240a9a39c43Smrg_ACEOF 3241a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3242a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3243a9a39c43Smrg/* end confdefs.h. */ 3244a9a39c43Smrg 3245a9a39c43Smrgint 3246a9a39c43Smrgmain () 3247a9a39c43Smrg{ 3248a9a39c43Smrg 3249a9a39c43Smrg ; 3250a9a39c43Smrg return 0; 3251a9a39c43Smrg} 3252a9a39c43Smrg_ACEOF 3253a9a39c43Smrgrm -f conftest.$ac_objext 3254a9a39c43Smrgif { (ac_try="$ac_compile" 3255a9a39c43Smrgcase "(($ac_try" in 3256a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257a9a39c43Smrg *) ac_try_echo=$ac_try;; 3258a9a39c43Smrgesac 3259a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3260a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3261a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 3262a9a39c43Smrg ac_status=$? 3263a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3264a9a39c43Smrg rm -f conftest.er1 3265a9a39c43Smrg cat conftest.err >&5 3266a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267a9a39c43Smrg (exit $ac_status); } && { 3268a9a39c43Smrg test -z "$ac_c_werror_flag" || 3269a9a39c43Smrg test ! -s conftest.err 3270a9a39c43Smrg } && test -s conftest.$ac_objext; then 3271a9a39c43Smrg ac_cv_prog_cc_g=yes 3272a9a39c43Smrgelse 3273a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3274a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3275a9a39c43Smrg 3276a9a39c43Smrg 3277a9a39c43Smrgfi 3278a9a39c43Smrg 3279a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3280a9a39c43Smrgfi 3281a9a39c43Smrg 3282a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3283a9a39c43Smrgfi 3284a9a39c43Smrg 3285a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3286a9a39c43Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3287a9a39c43Smrgfi 3288a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3289a9a39c43Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3290a9a39c43Smrgif test "$ac_test_CFLAGS" = set; then 3291a9a39c43Smrg CFLAGS=$ac_save_CFLAGS 3292a9a39c43Smrgelif test $ac_cv_prog_cc_g = yes; then 3293a9a39c43Smrg if test "$GCC" = yes; then 3294a9a39c43Smrg CFLAGS="-g -O2" 3295a9a39c43Smrg else 3296a9a39c43Smrg CFLAGS="-g" 3297a9a39c43Smrg fi 3298a9a39c43Smrgelse 3299a9a39c43Smrg if test "$GCC" = yes; then 3300a9a39c43Smrg CFLAGS="-O2" 3301a9a39c43Smrg else 3302a9a39c43Smrg CFLAGS= 3303a9a39c43Smrg fi 3304a9a39c43Smrgfi 3305a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3306a9a39c43Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3307a9a39c43Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then 3308a9a39c43Smrg $as_echo_n "(cached) " >&6 3309a9a39c43Smrgelse 3310a9a39c43Smrg ac_cv_prog_cc_c89=no 3311a9a39c43Smrgac_save_CC=$CC 3312a9a39c43Smrgcat >conftest.$ac_ext <<_ACEOF 3313a9a39c43Smrg/* confdefs.h. */ 3314a9a39c43Smrg_ACEOF 3315a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3316a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3317a9a39c43Smrg/* end confdefs.h. */ 3318a9a39c43Smrg#include <stdarg.h> 3319a9a39c43Smrg#include <stdio.h> 3320a9a39c43Smrg#include <sys/types.h> 3321a9a39c43Smrg#include <sys/stat.h> 3322a9a39c43Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3323a9a39c43Smrgstruct buf { int x; }; 3324a9a39c43SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3325a9a39c43Smrgstatic char *e (p, i) 3326a9a39c43Smrg char **p; 3327a9a39c43Smrg int i; 3328a9a39c43Smrg{ 3329a9a39c43Smrg return p[i]; 3330a9a39c43Smrg} 3331a9a39c43Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3332a9a39c43Smrg{ 3333a9a39c43Smrg char *s; 3334a9a39c43Smrg va_list v; 3335a9a39c43Smrg va_start (v,p); 3336a9a39c43Smrg s = g (p, va_arg (v,int)); 3337a9a39c43Smrg va_end (v); 3338a9a39c43Smrg return s; 3339a9a39c43Smrg} 3340a9a39c43Smrg 3341a9a39c43Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3342a9a39c43Smrg function prototypes and stuff, but not '\xHH' hex character constants. 3343a9a39c43Smrg These don't provoke an error unfortunately, instead are silently treated 3344a9a39c43Smrg as 'x'. The following induces an error, until -std is added to get 3345a9a39c43Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3346a9a39c43Smrg array size at least. It's necessary to write '\x00'==0 to get something 3347a9a39c43Smrg that's true only with -std. */ 3348a9a39c43Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3349a9a39c43Smrg 3350a9a39c43Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3351a9a39c43Smrg inside strings and character constants. */ 3352a9a39c43Smrg#define FOO(x) 'x' 3353a9a39c43Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3354a9a39c43Smrg 3355a9a39c43Smrgint test (int i, double x); 3356a9a39c43Smrgstruct s1 {int (*f) (int a);}; 3357a9a39c43Smrgstruct s2 {int (*f) (double a);}; 3358a9a39c43Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3359a9a39c43Smrgint argc; 3360a9a39c43Smrgchar **argv; 3361a9a39c43Smrgint 3362a9a39c43Smrgmain () 3363a9a39c43Smrg{ 3364a9a39c43Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3365a9a39c43Smrg ; 3366a9a39c43Smrg return 0; 3367a9a39c43Smrg} 3368a9a39c43Smrg_ACEOF 3369a9a39c43Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3370a9a39c43Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3371a9a39c43Smrgdo 3372a9a39c43Smrg CC="$ac_save_CC $ac_arg" 3373a9a39c43Smrg rm -f conftest.$ac_objext 3374a9a39c43Smrgif { (ac_try="$ac_compile" 3375a9a39c43Smrgcase "(($ac_try" in 3376a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3377a9a39c43Smrg *) ac_try_echo=$ac_try;; 3378a9a39c43Smrgesac 3379a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3380a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3381a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 3382a9a39c43Smrg ac_status=$? 3383a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3384a9a39c43Smrg rm -f conftest.er1 3385a9a39c43Smrg cat conftest.err >&5 3386a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387a9a39c43Smrg (exit $ac_status); } && { 3388a9a39c43Smrg test -z "$ac_c_werror_flag" || 3389a9a39c43Smrg test ! -s conftest.err 3390a9a39c43Smrg } && test -s conftest.$ac_objext; then 3391a9a39c43Smrg ac_cv_prog_cc_c89=$ac_arg 3392a9a39c43Smrgelse 3393a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3394a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3395a9a39c43Smrg 3396a9a39c43Smrg 3397a9a39c43Smrgfi 3398a9a39c43Smrg 3399a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext 3400a9a39c43Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3401a9a39c43Smrgdone 3402a9a39c43Smrgrm -f conftest.$ac_ext 3403a9a39c43SmrgCC=$ac_save_CC 3404a9a39c43Smrg 3405a9a39c43Smrgfi 3406a9a39c43Smrg# AC_CACHE_VAL 3407a9a39c43Smrgcase "x$ac_cv_prog_cc_c89" in 3408a9a39c43Smrg x) 3409a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 3410a9a39c43Smrg$as_echo "none needed" >&6; } ;; 3411a9a39c43Smrg xno) 3412a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3413a9a39c43Smrg$as_echo "unsupported" >&6; } ;; 3414a9a39c43Smrg *) 3415a9a39c43Smrg CC="$CC $ac_cv_prog_cc_c89" 3416a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3417a9a39c43Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3418a9a39c43Smrgesac 3419a9a39c43Smrg 3420a9a39c43Smrg 3421a9a39c43Smrgac_ext=c 3422a9a39c43Smrgac_cpp='$CPP $CPPFLAGS' 3423a9a39c43Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3424a9a39c43Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3425a9a39c43Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3426a9a39c43Smrg 3427a9a39c43Smrgdepcc="$CC" am_compiler_list= 3428a9a39c43Smrg 3429a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3430a9a39c43Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3431a9a39c43Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3432a9a39c43Smrg $as_echo_n "(cached) " >&6 3433a9a39c43Smrgelse 3434a9a39c43Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3435a9a39c43Smrg # We make a subdir and do the tests there. Otherwise we can end up 3436a9a39c43Smrg # making bogus files that we don't know about and never remove. For 3437a9a39c43Smrg # instance it was reported that on HP-UX the gcc test will end up 3438a9a39c43Smrg # making a dummy file named `D' -- because `-MD' means `put the output 3439a9a39c43Smrg # in D'. 3440a9a39c43Smrg mkdir conftest.dir 3441a9a39c43Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 3442a9a39c43Smrg # using a relative directory. 3443a9a39c43Smrg cp "$am_depcomp" conftest.dir 3444a9a39c43Smrg cd conftest.dir 3445a9a39c43Smrg # We will build objects and dependencies in a subdirectory because 3446a9a39c43Smrg # it helps to detect inapplicable dependency modes. For instance 3447a9a39c43Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 3448a9a39c43Smrg # side effect of compilation, but ICC will put the dependencies in 3449a9a39c43Smrg # the current directory while Tru64 will put them in the object 3450a9a39c43Smrg # directory. 3451a9a39c43Smrg mkdir sub 3452a9a39c43Smrg 3453a9a39c43Smrg am_cv_CC_dependencies_compiler_type=none 3454a9a39c43Smrg if test "$am_compiler_list" = ""; then 3455a9a39c43Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3456a9a39c43Smrg fi 3457a9a39c43Smrg am__universal=false 3458a9a39c43Smrg case " $depcc " in #( 3459a9a39c43Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3460a9a39c43Smrg esac 3461a9a39c43Smrg 3462a9a39c43Smrg for depmode in $am_compiler_list; do 3463a9a39c43Smrg # Setup a source with many dependencies, because some compilers 3464a9a39c43Smrg # like to wrap large dependency lists on column 80 (with \), and 3465a9a39c43Smrg # we should not choose a depcomp mode which is confused by this. 3466a9a39c43Smrg # 3467a9a39c43Smrg # We need to recreate these files for each test, as the compiler may 3468a9a39c43Smrg # overwrite some of them when testing with obscure command lines. 3469a9a39c43Smrg # This happens at least with the AIX C compiler. 3470a9a39c43Smrg : > sub/conftest.c 3471a9a39c43Smrg for i in 1 2 3 4 5 6; do 3472a9a39c43Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3473a9a39c43Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3474a9a39c43Smrg # Solaris 8's {/usr,}/bin/sh. 3475a9a39c43Smrg touch sub/conftst$i.h 3476a9a39c43Smrg done 3477a9a39c43Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3478a9a39c43Smrg 3479a9a39c43Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3480a9a39c43Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3481a9a39c43Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3482a9a39c43Smrg # versions had trouble with output in subdirs 3483a9a39c43Smrg am__obj=sub/conftest.${OBJEXT-o} 3484a9a39c43Smrg am__minus_obj="-o $am__obj" 3485a9a39c43Smrg case $depmode in 3486a9a39c43Smrg gcc) 3487a9a39c43Smrg # This depmode causes a compiler race in universal mode. 3488a9a39c43Smrg test "$am__universal" = false || continue 3489a9a39c43Smrg ;; 3490a9a39c43Smrg nosideeffect) 3491a9a39c43Smrg # after this tag, mechanisms are not by side-effect, so they'll 3492a9a39c43Smrg # only be used when explicitly requested 3493a9a39c43Smrg if test "x$enable_dependency_tracking" = xyes; then 3494a9a39c43Smrg continue 3495a9a39c43Smrg else 3496a9a39c43Smrg break 3497a9a39c43Smrg fi 3498a9a39c43Smrg ;; 3499a9a39c43Smrg msvisualcpp | msvcmsys) 3500a9a39c43Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3501a9a39c43Smrg # not run yet. These depmodes are late enough in the game, and 3502a9a39c43Smrg # so weak that their functioning should not be impacted. 3503a9a39c43Smrg am__obj=conftest.${OBJEXT-o} 3504a9a39c43Smrg am__minus_obj= 3505a9a39c43Smrg ;; 3506a9a39c43Smrg none) break ;; 3507a9a39c43Smrg esac 3508a9a39c43Smrg if depmode=$depmode \ 3509a9a39c43Smrg source=sub/conftest.c object=$am__obj \ 3510a9a39c43Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3511a9a39c43Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3512a9a39c43Smrg >/dev/null 2>conftest.err && 3513a9a39c43Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3514a9a39c43Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3515a9a39c43Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3516a9a39c43Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3517a9a39c43Smrg # icc doesn't choke on unknown options, it will just issue warnings 3518a9a39c43Smrg # or remarks (even with -Werror). So we grep stderr for any message 3519a9a39c43Smrg # that says an option was ignored or not supported. 3520a9a39c43Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3521a9a39c43Smrg # icc: Command line warning: ignoring option '-M'; no argument required 3522a9a39c43Smrg # The diagnosis changed in icc 8.0: 3523a9a39c43Smrg # icc: Command line remark: option '-MP' not supported 3524a9a39c43Smrg if (grep 'ignoring option' conftest.err || 3525a9a39c43Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3526a9a39c43Smrg am_cv_CC_dependencies_compiler_type=$depmode 3527a9a39c43Smrg break 3528a9a39c43Smrg fi 3529a9a39c43Smrg fi 3530a9a39c43Smrg done 3531a9a39c43Smrg 3532a9a39c43Smrg cd .. 3533a9a39c43Smrg rm -rf conftest.dir 3534a9a39c43Smrgelse 3535a9a39c43Smrg am_cv_CC_dependencies_compiler_type=none 3536a9a39c43Smrgfi 3537a9a39c43Smrg 3538a9a39c43Smrgfi 3539a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3540a9a39c43Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3541a9a39c43SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3542a9a39c43Smrg 3543a9a39c43Smrg if 3544a9a39c43Smrg test "x$enable_dependency_tracking" != xno \ 3545a9a39c43Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3546a9a39c43Smrg am__fastdepCC_TRUE= 3547a9a39c43Smrg am__fastdepCC_FALSE='#' 3548a9a39c43Smrgelse 3549a9a39c43Smrg am__fastdepCC_TRUE='#' 3550a9a39c43Smrg am__fastdepCC_FALSE= 3551a9a39c43Smrgfi 3552a9a39c43Smrg 3553a9a39c43Smrg 3554a9a39c43Smrg 3555a9a39c43Smrgac_ext=c 3556a9a39c43Smrgac_cpp='$CPP $CPPFLAGS' 3557a9a39c43Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558a9a39c43Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559a9a39c43Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3560a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3561a9a39c43Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3562a9a39c43Smrg# On Suns, sometimes $CPP names a directory. 3563a9a39c43Smrgif test -n "$CPP" && test -d "$CPP"; then 3564a9a39c43Smrg CPP= 3565a9a39c43Smrgfi 3566a9a39c43Smrgif test -z "$CPP"; then 3567a9a39c43Smrg if test "${ac_cv_prog_CPP+set}" = set; then 3568a9a39c43Smrg $as_echo_n "(cached) " >&6 3569a9a39c43Smrgelse 3570a9a39c43Smrg # Double quotes because CPP needs to be expanded 3571a9a39c43Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3572a9a39c43Smrg do 3573a9a39c43Smrg ac_preproc_ok=false 3574a9a39c43Smrgfor ac_c_preproc_warn_flag in '' yes 3575a9a39c43Smrgdo 3576a9a39c43Smrg # Use a header file that comes with gcc, so configuring glibc 3577a9a39c43Smrg # with a fresh cross-compiler works. 3578a9a39c43Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3579a9a39c43Smrg # <limits.h> exists even on freestanding compilers. 3580a9a39c43Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3581a9a39c43Smrg # not just through cpp. "Syntax error" is here to catch this case. 3582a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3583a9a39c43Smrg/* confdefs.h. */ 3584a9a39c43Smrg_ACEOF 3585a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3586a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3587a9a39c43Smrg/* end confdefs.h. */ 3588a9a39c43Smrg#ifdef __STDC__ 3589a9a39c43Smrg# include <limits.h> 3590a9a39c43Smrg#else 3591a9a39c43Smrg# include <assert.h> 3592a9a39c43Smrg#endif 3593a9a39c43Smrg Syntax error 3594a9a39c43Smrg_ACEOF 3595a9a39c43Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3596a9a39c43Smrgcase "(($ac_try" in 3597a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3598a9a39c43Smrg *) ac_try_echo=$ac_try;; 3599a9a39c43Smrgesac 3600a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3601a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3602a9a39c43Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3603a9a39c43Smrg ac_status=$? 3604a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3605a9a39c43Smrg rm -f conftest.er1 3606a9a39c43Smrg cat conftest.err >&5 3607a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608a9a39c43Smrg (exit $ac_status); } >/dev/null && { 3609a9a39c43Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3610a9a39c43Smrg test ! -s conftest.err 3611a9a39c43Smrg }; then 3612a9a39c43Smrg : 3613a9a39c43Smrgelse 3614a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3615a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3616a9a39c43Smrg 3617a9a39c43Smrg # Broken: fails on valid input. 3618a9a39c43Smrgcontinue 3619a9a39c43Smrgfi 3620a9a39c43Smrg 3621a9a39c43Smrgrm -f conftest.err conftest.$ac_ext 3622a9a39c43Smrg 3623a9a39c43Smrg # OK, works on sane cases. Now check whether nonexistent headers 3624a9a39c43Smrg # can be detected and how. 3625a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3626a9a39c43Smrg/* confdefs.h. */ 3627a9a39c43Smrg_ACEOF 3628a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3629a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3630a9a39c43Smrg/* end confdefs.h. */ 3631a9a39c43Smrg#include <ac_nonexistent.h> 3632a9a39c43Smrg_ACEOF 3633a9a39c43Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3634a9a39c43Smrgcase "(($ac_try" in 3635a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3636a9a39c43Smrg *) ac_try_echo=$ac_try;; 3637a9a39c43Smrgesac 3638a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3639a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3640a9a39c43Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3641a9a39c43Smrg ac_status=$? 3642a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3643a9a39c43Smrg rm -f conftest.er1 3644a9a39c43Smrg cat conftest.err >&5 3645a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646a9a39c43Smrg (exit $ac_status); } >/dev/null && { 3647a9a39c43Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3648a9a39c43Smrg test ! -s conftest.err 3649a9a39c43Smrg }; then 3650a9a39c43Smrg # Broken: success on invalid input. 3651a9a39c43Smrgcontinue 3652a9a39c43Smrgelse 3653a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3654a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3655a9a39c43Smrg 3656a9a39c43Smrg # Passes both tests. 3657a9a39c43Smrgac_preproc_ok=: 3658a9a39c43Smrgbreak 3659a9a39c43Smrgfi 3660a9a39c43Smrg 3661a9a39c43Smrgrm -f conftest.err conftest.$ac_ext 3662a9a39c43Smrg 3663a9a39c43Smrgdone 3664a9a39c43Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3665a9a39c43Smrgrm -f conftest.err conftest.$ac_ext 3666a9a39c43Smrgif $ac_preproc_ok; then 3667a9a39c43Smrg break 3668a9a39c43Smrgfi 3669a9a39c43Smrg 3670a9a39c43Smrg done 3671a9a39c43Smrg ac_cv_prog_CPP=$CPP 3672a9a39c43Smrg 3673a9a39c43Smrgfi 3674a9a39c43Smrg CPP=$ac_cv_prog_CPP 3675a9a39c43Smrgelse 3676a9a39c43Smrg ac_cv_prog_CPP=$CPP 3677a9a39c43Smrgfi 3678a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3679a9a39c43Smrg$as_echo "$CPP" >&6; } 3680a9a39c43Smrgac_preproc_ok=false 3681a9a39c43Smrgfor ac_c_preproc_warn_flag in '' yes 3682a9a39c43Smrgdo 3683a9a39c43Smrg # Use a header file that comes with gcc, so configuring glibc 3684a9a39c43Smrg # with a fresh cross-compiler works. 3685a9a39c43Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3686a9a39c43Smrg # <limits.h> exists even on freestanding compilers. 3687a9a39c43Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3688a9a39c43Smrg # not just through cpp. "Syntax error" is here to catch this case. 3689a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3690a9a39c43Smrg/* confdefs.h. */ 3691a9a39c43Smrg_ACEOF 3692a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3693a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3694a9a39c43Smrg/* end confdefs.h. */ 3695a9a39c43Smrg#ifdef __STDC__ 3696a9a39c43Smrg# include <limits.h> 3697a9a39c43Smrg#else 3698a9a39c43Smrg# include <assert.h> 3699a9a39c43Smrg#endif 3700a9a39c43Smrg Syntax error 3701a9a39c43Smrg_ACEOF 3702a9a39c43Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3703a9a39c43Smrgcase "(($ac_try" in 3704a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3705a9a39c43Smrg *) ac_try_echo=$ac_try;; 3706a9a39c43Smrgesac 3707a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3708a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3709a9a39c43Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3710a9a39c43Smrg ac_status=$? 3711a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3712a9a39c43Smrg rm -f conftest.er1 3713a9a39c43Smrg cat conftest.err >&5 3714a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715a9a39c43Smrg (exit $ac_status); } >/dev/null && { 3716a9a39c43Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3717a9a39c43Smrg test ! -s conftest.err 3718a9a39c43Smrg }; then 3719a9a39c43Smrg : 3720a9a39c43Smrgelse 3721a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3722a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3723a9a39c43Smrg 3724a9a39c43Smrg # Broken: fails on valid input. 3725a9a39c43Smrgcontinue 3726a9a39c43Smrgfi 3727a9a39c43Smrg 3728a9a39c43Smrgrm -f conftest.err conftest.$ac_ext 3729a9a39c43Smrg 3730a9a39c43Smrg # OK, works on sane cases. Now check whether nonexistent headers 3731a9a39c43Smrg # can be detected and how. 3732a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3733a9a39c43Smrg/* confdefs.h. */ 3734a9a39c43Smrg_ACEOF 3735a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3736a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3737a9a39c43Smrg/* end confdefs.h. */ 3738a9a39c43Smrg#include <ac_nonexistent.h> 3739a9a39c43Smrg_ACEOF 3740a9a39c43Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 3741a9a39c43Smrgcase "(($ac_try" in 3742a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3743a9a39c43Smrg *) ac_try_echo=$ac_try;; 3744a9a39c43Smrgesac 3745a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3746a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3747a9a39c43Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3748a9a39c43Smrg ac_status=$? 3749a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3750a9a39c43Smrg rm -f conftest.er1 3751a9a39c43Smrg cat conftest.err >&5 3752a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3753a9a39c43Smrg (exit $ac_status); } >/dev/null && { 3754a9a39c43Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3755a9a39c43Smrg test ! -s conftest.err 3756a9a39c43Smrg }; then 3757a9a39c43Smrg # Broken: success on invalid input. 3758a9a39c43Smrgcontinue 3759a9a39c43Smrgelse 3760a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3761a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3762a9a39c43Smrg 3763a9a39c43Smrg # Passes both tests. 3764a9a39c43Smrgac_preproc_ok=: 3765a9a39c43Smrgbreak 3766a9a39c43Smrgfi 3767a9a39c43Smrg 3768a9a39c43Smrgrm -f conftest.err conftest.$ac_ext 3769a9a39c43Smrg 3770a9a39c43Smrgdone 3771a9a39c43Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3772a9a39c43Smrgrm -f conftest.err conftest.$ac_ext 3773a9a39c43Smrgif $ac_preproc_ok; then 3774a9a39c43Smrg : 3775a9a39c43Smrgelse 3776a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3777a9a39c43Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3778a9a39c43Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3779a9a39c43SmrgSee \`config.log' for more details." >&5 3780a9a39c43Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3781a9a39c43SmrgSee \`config.log' for more details." >&2;} 3782a9a39c43Smrg { (exit 1); exit 1; }; }; } 3783a9a39c43Smrgfi 3784a9a39c43Smrg 3785a9a39c43Smrgac_ext=c 3786a9a39c43Smrgac_cpp='$CPP $CPPFLAGS' 3787a9a39c43Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3788a9a39c43Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3789a9a39c43Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3790a9a39c43Smrg 3791a9a39c43Smrg 3792a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3793a9a39c43Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3794a9a39c43Smrgif test "${ac_cv_path_GREP+set}" = set; then 3795a9a39c43Smrg $as_echo_n "(cached) " >&6 3796a9a39c43Smrgelse 3797a9a39c43Smrg if test -z "$GREP"; then 3798a9a39c43Smrg ac_path_GREP_found=false 3799a9a39c43Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3800a9a39c43Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3801a9a39c43Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3802a9a39c43Smrgdo 3803a9a39c43Smrg IFS=$as_save_IFS 3804a9a39c43Smrg test -z "$as_dir" && as_dir=. 3805a9a39c43Smrg for ac_prog in grep ggrep; do 3806a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3807a9a39c43Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3808a9a39c43Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3809a9a39c43Smrg# Check for GNU ac_path_GREP and select it if it is found. 3810a9a39c43Smrg # Check for GNU $ac_path_GREP 3811a9a39c43Smrgcase `"$ac_path_GREP" --version 2>&1` in 3812a9a39c43Smrg*GNU*) 3813a9a39c43Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3814a9a39c43Smrg*) 3815a9a39c43Smrg ac_count=0 3816a9a39c43Smrg $as_echo_n 0123456789 >"conftest.in" 3817a9a39c43Smrg while : 3818a9a39c43Smrg do 3819a9a39c43Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3820a9a39c43Smrg mv "conftest.tmp" "conftest.in" 3821a9a39c43Smrg cp "conftest.in" "conftest.nl" 3822a9a39c43Smrg $as_echo 'GREP' >> "conftest.nl" 3823a9a39c43Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3824a9a39c43Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3825a9a39c43Smrg ac_count=`expr $ac_count + 1` 3826a9a39c43Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 3827a9a39c43Smrg # Best one so far, save it but keep looking for a better one 3828a9a39c43Smrg ac_cv_path_GREP="$ac_path_GREP" 3829a9a39c43Smrg ac_path_GREP_max=$ac_count 3830a9a39c43Smrg fi 3831a9a39c43Smrg # 10*(2^10) chars as input seems more than enough 3832a9a39c43Smrg test $ac_count -gt 10 && break 3833a9a39c43Smrg done 3834a9a39c43Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3835a9a39c43Smrgesac 3836a9a39c43Smrg 3837a9a39c43Smrg $ac_path_GREP_found && break 3 3838a9a39c43Smrg done 3839a9a39c43Smrg done 3840a9a39c43Smrgdone 3841a9a39c43SmrgIFS=$as_save_IFS 3842a9a39c43Smrg if test -z "$ac_cv_path_GREP"; then 3843a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3844a9a39c43Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3845a9a39c43Smrg { (exit 1); exit 1; }; } 3846a9a39c43Smrg fi 3847a9a39c43Smrgelse 3848a9a39c43Smrg ac_cv_path_GREP=$GREP 3849a9a39c43Smrgfi 3850a9a39c43Smrg 3851a9a39c43Smrgfi 3852a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3853a9a39c43Smrg$as_echo "$ac_cv_path_GREP" >&6; } 3854a9a39c43Smrg GREP="$ac_cv_path_GREP" 3855a9a39c43Smrg 3856a9a39c43Smrg 3857a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3858a9a39c43Smrg$as_echo_n "checking for egrep... " >&6; } 3859a9a39c43Smrgif test "${ac_cv_path_EGREP+set}" = set; then 3860a9a39c43Smrg $as_echo_n "(cached) " >&6 3861a9a39c43Smrgelse 3862a9a39c43Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3863a9a39c43Smrg then ac_cv_path_EGREP="$GREP -E" 3864a9a39c43Smrg else 3865a9a39c43Smrg if test -z "$EGREP"; then 3866a9a39c43Smrg ac_path_EGREP_found=false 3867a9a39c43Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3868a9a39c43Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869a9a39c43Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3870a9a39c43Smrgdo 3871a9a39c43Smrg IFS=$as_save_IFS 3872a9a39c43Smrg test -z "$as_dir" && as_dir=. 3873a9a39c43Smrg for ac_prog in egrep; do 3874a9a39c43Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3875a9a39c43Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3876a9a39c43Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3877a9a39c43Smrg# Check for GNU ac_path_EGREP and select it if it is found. 3878a9a39c43Smrg # Check for GNU $ac_path_EGREP 3879a9a39c43Smrgcase `"$ac_path_EGREP" --version 2>&1` in 3880a9a39c43Smrg*GNU*) 3881a9a39c43Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3882a9a39c43Smrg*) 3883a9a39c43Smrg ac_count=0 3884a9a39c43Smrg $as_echo_n 0123456789 >"conftest.in" 3885a9a39c43Smrg while : 3886a9a39c43Smrg do 3887a9a39c43Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3888a9a39c43Smrg mv "conftest.tmp" "conftest.in" 3889a9a39c43Smrg cp "conftest.in" "conftest.nl" 3890a9a39c43Smrg $as_echo 'EGREP' >> "conftest.nl" 3891a9a39c43Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3892a9a39c43Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3893a9a39c43Smrg ac_count=`expr $ac_count + 1` 3894a9a39c43Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3895a9a39c43Smrg # Best one so far, save it but keep looking for a better one 3896a9a39c43Smrg ac_cv_path_EGREP="$ac_path_EGREP" 3897a9a39c43Smrg ac_path_EGREP_max=$ac_count 3898a9a39c43Smrg fi 3899a9a39c43Smrg # 10*(2^10) chars as input seems more than enough 3900a9a39c43Smrg test $ac_count -gt 10 && break 3901a9a39c43Smrg done 3902a9a39c43Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3903a9a39c43Smrgesac 3904a9a39c43Smrg 3905a9a39c43Smrg $ac_path_EGREP_found && break 3 3906a9a39c43Smrg done 3907a9a39c43Smrg done 3908a9a39c43Smrgdone 3909a9a39c43SmrgIFS=$as_save_IFS 3910a9a39c43Smrg if test -z "$ac_cv_path_EGREP"; then 3911a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3912a9a39c43Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3913a9a39c43Smrg { (exit 1); exit 1; }; } 3914a9a39c43Smrg fi 3915a9a39c43Smrgelse 3916a9a39c43Smrg ac_cv_path_EGREP=$EGREP 3917a9a39c43Smrgfi 3918a9a39c43Smrg 3919a9a39c43Smrg fi 3920a9a39c43Smrgfi 3921a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3922a9a39c43Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 3923a9a39c43Smrg EGREP="$ac_cv_path_EGREP" 3924a9a39c43Smrg 3925a9a39c43Smrg 3926a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3927a9a39c43Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 3928a9a39c43Smrgif test "${ac_cv_header_stdc+set}" = set; then 3929a9a39c43Smrg $as_echo_n "(cached) " >&6 3930a9a39c43Smrgelse 3931a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3932a9a39c43Smrg/* confdefs.h. */ 3933a9a39c43Smrg_ACEOF 3934a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3935a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3936a9a39c43Smrg/* end confdefs.h. */ 3937a9a39c43Smrg#include <stdlib.h> 3938a9a39c43Smrg#include <stdarg.h> 3939a9a39c43Smrg#include <string.h> 3940a9a39c43Smrg#include <float.h> 3941a9a39c43Smrg 3942a9a39c43Smrgint 3943a9a39c43Smrgmain () 3944a9a39c43Smrg{ 3945a9a39c43Smrg 3946a9a39c43Smrg ; 3947a9a39c43Smrg return 0; 3948a9a39c43Smrg} 3949a9a39c43Smrg_ACEOF 3950a9a39c43Smrgrm -f conftest.$ac_objext 3951a9a39c43Smrgif { (ac_try="$ac_compile" 3952a9a39c43Smrgcase "(($ac_try" in 3953a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954a9a39c43Smrg *) ac_try_echo=$ac_try;; 3955a9a39c43Smrgesac 3956a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3957a9a39c43Smrg$as_echo "$ac_try_echo") >&5 3958a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 3959a9a39c43Smrg ac_status=$? 3960a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 3961a9a39c43Smrg rm -f conftest.er1 3962a9a39c43Smrg cat conftest.err >&5 3963a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3964a9a39c43Smrg (exit $ac_status); } && { 3965a9a39c43Smrg test -z "$ac_c_werror_flag" || 3966a9a39c43Smrg test ! -s conftest.err 3967a9a39c43Smrg } && test -s conftest.$ac_objext; then 3968a9a39c43Smrg ac_cv_header_stdc=yes 3969a9a39c43Smrgelse 3970a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 3971a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 3972a9a39c43Smrg 3973a9a39c43Smrg ac_cv_header_stdc=no 3974a9a39c43Smrgfi 3975a9a39c43Smrg 3976a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3977a9a39c43Smrg 3978a9a39c43Smrgif test $ac_cv_header_stdc = yes; then 3979a9a39c43Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3980a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 3981a9a39c43Smrg/* confdefs.h. */ 3982a9a39c43Smrg_ACEOF 3983a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 3984a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 3985a9a39c43Smrg/* end confdefs.h. */ 3986a9a39c43Smrg#include <string.h> 3987a9a39c43Smrg 3988a9a39c43Smrg_ACEOF 3989a9a39c43Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3990a9a39c43Smrg $EGREP "memchr" >/dev/null 2>&1; then 3991a9a39c43Smrg : 3992a9a39c43Smrgelse 3993a9a39c43Smrg ac_cv_header_stdc=no 3994a9a39c43Smrgfi 3995a9a39c43Smrgrm -f conftest* 3996a9a39c43Smrg 3997a9a39c43Smrgfi 3998a9a39c43Smrg 3999a9a39c43Smrgif test $ac_cv_header_stdc = yes; then 4000a9a39c43Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4001a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 4002a9a39c43Smrg/* confdefs.h. */ 4003a9a39c43Smrg_ACEOF 4004a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4005a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4006a9a39c43Smrg/* end confdefs.h. */ 4007a9a39c43Smrg#include <stdlib.h> 4008a9a39c43Smrg 4009a9a39c43Smrg_ACEOF 4010a9a39c43Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4011a9a39c43Smrg $EGREP "free" >/dev/null 2>&1; then 4012a9a39c43Smrg : 4013a9a39c43Smrgelse 4014a9a39c43Smrg ac_cv_header_stdc=no 4015a9a39c43Smrgfi 4016a9a39c43Smrgrm -f conftest* 4017a9a39c43Smrg 4018a9a39c43Smrgfi 4019a9a39c43Smrg 4020a9a39c43Smrgif test $ac_cv_header_stdc = yes; then 4021a9a39c43Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4022a9a39c43Smrg if test "$cross_compiling" = yes; then 4023a9a39c43Smrg : 4024a9a39c43Smrgelse 4025a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 4026a9a39c43Smrg/* confdefs.h. */ 4027a9a39c43Smrg_ACEOF 4028a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4029a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4030a9a39c43Smrg/* end confdefs.h. */ 4031a9a39c43Smrg#include <ctype.h> 4032a9a39c43Smrg#include <stdlib.h> 4033a9a39c43Smrg#if ((' ' & 0x0FF) == 0x020) 4034a9a39c43Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4035a9a39c43Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4036a9a39c43Smrg#else 4037a9a39c43Smrg# define ISLOWER(c) \ 4038a9a39c43Smrg (('a' <= (c) && (c) <= 'i') \ 4039a9a39c43Smrg || ('j' <= (c) && (c) <= 'r') \ 4040a9a39c43Smrg || ('s' <= (c) && (c) <= 'z')) 4041a9a39c43Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4042a9a39c43Smrg#endif 4043a9a39c43Smrg 4044a9a39c43Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4045a9a39c43Smrgint 4046a9a39c43Smrgmain () 4047a9a39c43Smrg{ 4048a9a39c43Smrg int i; 4049a9a39c43Smrg for (i = 0; i < 256; i++) 4050a9a39c43Smrg if (XOR (islower (i), ISLOWER (i)) 4051a9a39c43Smrg || toupper (i) != TOUPPER (i)) 4052a9a39c43Smrg return 2; 4053a9a39c43Smrg return 0; 4054a9a39c43Smrg} 4055a9a39c43Smrg_ACEOF 4056a9a39c43Smrgrm -f conftest$ac_exeext 4057a9a39c43Smrgif { (ac_try="$ac_link" 4058a9a39c43Smrgcase "(($ac_try" in 4059a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4060a9a39c43Smrg *) ac_try_echo=$ac_try;; 4061a9a39c43Smrgesac 4062a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4063a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4064a9a39c43Smrg (eval "$ac_link") 2>&5 4065a9a39c43Smrg ac_status=$? 4066a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067a9a39c43Smrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4068a9a39c43Smrg { (case "(($ac_try" in 4069a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070a9a39c43Smrg *) ac_try_echo=$ac_try;; 4071a9a39c43Smrgesac 4072a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4073a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4074a9a39c43Smrg (eval "$ac_try") 2>&5 4075a9a39c43Smrg ac_status=$? 4076a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077a9a39c43Smrg (exit $ac_status); }; }; then 4078a9a39c43Smrg : 4079a9a39c43Smrgelse 4080a9a39c43Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 4081a9a39c43Smrg$as_echo "$as_me: failed program was:" >&5 4082a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 4083a9a39c43Smrg 4084a9a39c43Smrg( exit $ac_status ) 4085a9a39c43Smrgac_cv_header_stdc=no 4086a9a39c43Smrgfi 4087a9a39c43Smrgrm -rf conftest.dSYM 4088a9a39c43Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4089a9a39c43Smrgfi 4090a9a39c43Smrg 4091a9a39c43Smrg 4092a9a39c43Smrgfi 4093a9a39c43Smrgfi 4094a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4095a9a39c43Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4096a9a39c43Smrgif test $ac_cv_header_stdc = yes; then 4097a9a39c43Smrg 4098a9a39c43Smrgcat >>confdefs.h <<\_ACEOF 4099a9a39c43Smrg#define STDC_HEADERS 1 4100a9a39c43Smrg_ACEOF 4101a9a39c43Smrg 4102a9a39c43Smrgfi 4103a9a39c43Smrg 4104a9a39c43Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4105a9a39c43Smrg 4106a9a39c43Smrg 4107a9a39c43Smrg 4108a9a39c43Smrg 4109a9a39c43Smrg 4110a9a39c43Smrg 4111a9a39c43Smrg 4112a9a39c43Smrg 4113a9a39c43Smrg 4114a9a39c43Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4115a9a39c43Smrg inttypes.h stdint.h unistd.h 4116a9a39c43Smrgdo 4117a9a39c43Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4118a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4119a9a39c43Smrg$as_echo_n "checking for $ac_header... " >&6; } 4120a9a39c43Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4121a9a39c43Smrg $as_echo_n "(cached) " >&6 4122a9a39c43Smrgelse 4123a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 4124a9a39c43Smrg/* confdefs.h. */ 4125a9a39c43Smrg_ACEOF 4126a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4127a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4128a9a39c43Smrg/* end confdefs.h. */ 4129a9a39c43Smrg$ac_includes_default 4130a9a39c43Smrg 4131a9a39c43Smrg#include <$ac_header> 4132a9a39c43Smrg_ACEOF 4133a9a39c43Smrgrm -f conftest.$ac_objext 4134a9a39c43Smrgif { (ac_try="$ac_compile" 4135a9a39c43Smrgcase "(($ac_try" in 4136a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137a9a39c43Smrg *) ac_try_echo=$ac_try;; 4138a9a39c43Smrgesac 4139a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4140a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4141a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 4142a9a39c43Smrg ac_status=$? 4143a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 4144a9a39c43Smrg rm -f conftest.er1 4145a9a39c43Smrg cat conftest.err >&5 4146a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4147a9a39c43Smrg (exit $ac_status); } && { 4148a9a39c43Smrg test -z "$ac_c_werror_flag" || 4149a9a39c43Smrg test ! -s conftest.err 4150a9a39c43Smrg } && test -s conftest.$ac_objext; then 4151a9a39c43Smrg eval "$as_ac_Header=yes" 4152a9a39c43Smrgelse 4153a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 4154a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 4155a9a39c43Smrg 4156a9a39c43Smrg eval "$as_ac_Header=no" 4157a9a39c43Smrgfi 4158a9a39c43Smrg 4159a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4160a9a39c43Smrgfi 4161a9a39c43Smrgac_res=`eval 'as_val=${'$as_ac_Header'} 4162a9a39c43Smrg $as_echo "$as_val"'` 4163a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4164a9a39c43Smrg$as_echo "$ac_res" >&6; } 4165a9a39c43Smrgas_val=`eval 'as_val=${'$as_ac_Header'} 4166a9a39c43Smrg $as_echo "$as_val"'` 4167a9a39c43Smrg if test "x$as_val" = x""yes; then 4168a9a39c43Smrg cat >>confdefs.h <<_ACEOF 4169a9a39c43Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4170a9a39c43Smrg_ACEOF 4171a9a39c43Smrg 4172a9a39c43Smrgfi 4173a9a39c43Smrg 4174a9a39c43Smrgdone 4175a9a39c43Smrg 4176a9a39c43Smrg 4177a9a39c43Smrg { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4178a9a39c43Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4179a9a39c43Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then 4180a9a39c43Smrg $as_echo_n "(cached) " >&6 4181a9a39c43Smrgelse 4182a9a39c43Smrg ac_cv_prog_cc_c99=no 4183a9a39c43Smrgac_save_CC=$CC 4184a9a39c43Smrgcat >conftest.$ac_ext <<_ACEOF 4185a9a39c43Smrg/* confdefs.h. */ 4186a9a39c43Smrg_ACEOF 4187a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4188a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4189a9a39c43Smrg/* end confdefs.h. */ 4190a9a39c43Smrg#include <stdarg.h> 4191a9a39c43Smrg#include <stdbool.h> 4192a9a39c43Smrg#include <stdlib.h> 4193a9a39c43Smrg#include <wchar.h> 4194a9a39c43Smrg#include <stdio.h> 4195a9a39c43Smrg 4196a9a39c43Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 4197a9a39c43Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 4198a9a39c43Smrg#define showlist(...) puts (#__VA_ARGS__) 4199a9a39c43Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4200a9a39c43Smrgstatic void 4201a9a39c43Smrgtest_varargs_macros (void) 4202a9a39c43Smrg{ 4203a9a39c43Smrg int x = 1234; 4204a9a39c43Smrg int y = 5678; 4205a9a39c43Smrg debug ("Flag"); 4206a9a39c43Smrg debug ("X = %d\n", x); 4207a9a39c43Smrg showlist (The first, second, and third items.); 4208a9a39c43Smrg report (x>y, "x is %d but y is %d", x, y); 4209a9a39c43Smrg} 4210a9a39c43Smrg 4211a9a39c43Smrg// Check long long types. 4212a9a39c43Smrg#define BIG64 18446744073709551615ull 4213a9a39c43Smrg#define BIG32 4294967295ul 4214a9a39c43Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4215a9a39c43Smrg#if !BIG_OK 4216a9a39c43Smrg your preprocessor is broken; 4217a9a39c43Smrg#endif 4218a9a39c43Smrg#if BIG_OK 4219a9a39c43Smrg#else 4220a9a39c43Smrg your preprocessor is broken; 4221a9a39c43Smrg#endif 4222a9a39c43Smrgstatic long long int bignum = -9223372036854775807LL; 4223a9a39c43Smrgstatic unsigned long long int ubignum = BIG64; 4224a9a39c43Smrg 4225a9a39c43Smrgstruct incomplete_array 4226a9a39c43Smrg{ 4227a9a39c43Smrg int datasize; 4228a9a39c43Smrg double data[]; 4229a9a39c43Smrg}; 4230a9a39c43Smrg 4231a9a39c43Smrgstruct named_init { 4232a9a39c43Smrg int number; 4233a9a39c43Smrg const wchar_t *name; 4234a9a39c43Smrg double average; 4235a9a39c43Smrg}; 4236a9a39c43Smrg 4237a9a39c43Smrgtypedef const char *ccp; 4238a9a39c43Smrg 4239a9a39c43Smrgstatic inline int 4240a9a39c43Smrgtest_restrict (ccp restrict text) 4241a9a39c43Smrg{ 4242a9a39c43Smrg // See if C++-style comments work. 4243a9a39c43Smrg // Iterate through items via the restricted pointer. 4244a9a39c43Smrg // Also check for declarations in for loops. 4245a9a39c43Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4246a9a39c43Smrg continue; 4247a9a39c43Smrg return 0; 4248a9a39c43Smrg} 4249a9a39c43Smrg 4250a9a39c43Smrg// Check varargs and va_copy. 4251a9a39c43Smrgstatic void 4252a9a39c43Smrgtest_varargs (const char *format, ...) 4253a9a39c43Smrg{ 4254a9a39c43Smrg va_list args; 4255a9a39c43Smrg va_start (args, format); 4256a9a39c43Smrg va_list args_copy; 4257a9a39c43Smrg va_copy (args_copy, args); 4258a9a39c43Smrg 4259a9a39c43Smrg const char *str; 4260a9a39c43Smrg int number; 4261a9a39c43Smrg float fnumber; 4262a9a39c43Smrg 4263a9a39c43Smrg while (*format) 4264a9a39c43Smrg { 4265a9a39c43Smrg switch (*format++) 4266a9a39c43Smrg { 4267a9a39c43Smrg case 's': // string 4268a9a39c43Smrg str = va_arg (args_copy, const char *); 4269a9a39c43Smrg break; 4270a9a39c43Smrg case 'd': // int 4271a9a39c43Smrg number = va_arg (args_copy, int); 4272a9a39c43Smrg break; 4273a9a39c43Smrg case 'f': // float 4274a9a39c43Smrg fnumber = va_arg (args_copy, double); 4275a9a39c43Smrg break; 4276a9a39c43Smrg default: 4277a9a39c43Smrg break; 4278a9a39c43Smrg } 4279a9a39c43Smrg } 4280a9a39c43Smrg va_end (args_copy); 4281a9a39c43Smrg va_end (args); 4282a9a39c43Smrg} 4283a9a39c43Smrg 4284a9a39c43Smrgint 4285a9a39c43Smrgmain () 4286a9a39c43Smrg{ 4287a9a39c43Smrg 4288a9a39c43Smrg // Check bool. 4289a9a39c43Smrg _Bool success = false; 4290a9a39c43Smrg 4291a9a39c43Smrg // Check restrict. 4292a9a39c43Smrg if (test_restrict ("String literal") == 0) 4293a9a39c43Smrg success = true; 4294a9a39c43Smrg char *restrict newvar = "Another string"; 4295a9a39c43Smrg 4296a9a39c43Smrg // Check varargs. 4297a9a39c43Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 4298a9a39c43Smrg test_varargs_macros (); 4299a9a39c43Smrg 4300a9a39c43Smrg // Check flexible array members. 4301a9a39c43Smrg struct incomplete_array *ia = 4302a9a39c43Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4303a9a39c43Smrg ia->datasize = 10; 4304a9a39c43Smrg for (int i = 0; i < ia->datasize; ++i) 4305a9a39c43Smrg ia->data[i] = i * 1.234; 4306a9a39c43Smrg 4307a9a39c43Smrg // Check named initializers. 4308a9a39c43Smrg struct named_init ni = { 4309a9a39c43Smrg .number = 34, 4310a9a39c43Smrg .name = L"Test wide string", 4311a9a39c43Smrg .average = 543.34343, 4312a9a39c43Smrg }; 4313a9a39c43Smrg 4314a9a39c43Smrg ni.number = 58; 4315a9a39c43Smrg 4316a9a39c43Smrg int dynamic_array[ni.number]; 4317a9a39c43Smrg dynamic_array[ni.number - 1] = 543; 4318a9a39c43Smrg 4319a9a39c43Smrg // work around unused variable warnings 4320a9a39c43Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4321a9a39c43Smrg || dynamic_array[ni.number - 1] != 543); 4322a9a39c43Smrg 4323a9a39c43Smrg ; 4324a9a39c43Smrg return 0; 4325a9a39c43Smrg} 4326a9a39c43Smrg_ACEOF 4327a9a39c43Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4328a9a39c43Smrgdo 4329a9a39c43Smrg CC="$ac_save_CC $ac_arg" 4330a9a39c43Smrg rm -f conftest.$ac_objext 4331a9a39c43Smrgif { (ac_try="$ac_compile" 4332a9a39c43Smrgcase "(($ac_try" in 4333a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4334a9a39c43Smrg *) ac_try_echo=$ac_try;; 4335a9a39c43Smrgesac 4336a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4337a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4338a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 4339a9a39c43Smrg ac_status=$? 4340a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 4341a9a39c43Smrg rm -f conftest.er1 4342a9a39c43Smrg cat conftest.err >&5 4343a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4344a9a39c43Smrg (exit $ac_status); } && { 4345a9a39c43Smrg test -z "$ac_c_werror_flag" || 4346a9a39c43Smrg test ! -s conftest.err 4347a9a39c43Smrg } && test -s conftest.$ac_objext; then 4348a9a39c43Smrg ac_cv_prog_cc_c99=$ac_arg 4349a9a39c43Smrgelse 4350a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 4351a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 4352a9a39c43Smrg 4353129be1b7Smrg 4354a9a39c43Smrgfi 4355129be1b7Smrg 4356a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext 4357a9a39c43Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4358a9a39c43Smrgdone 4359a9a39c43Smrgrm -f conftest.$ac_ext 4360a9a39c43SmrgCC=$ac_save_CC 4361a9a39c43Smrg 4362a9a39c43Smrgfi 4363a9a39c43Smrg# AC_CACHE_VAL 4364a9a39c43Smrgcase "x$ac_cv_prog_cc_c99" in 4365a9a39c43Smrg x) 4366a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 4367a9a39c43Smrg$as_echo "none needed" >&6; } ;; 4368a9a39c43Smrg xno) 4369a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4370a9a39c43Smrg$as_echo "unsupported" >&6; } ;; 4371a9a39c43Smrg *) 4372a9a39c43Smrg CC="$CC $ac_cv_prog_cc_c99" 4373a9a39c43Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4374a9a39c43Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4375a9a39c43Smrgesac 4376a9a39c43Smrg 4377a9a39c43Smrg 4378a9a39c43Smrg 4379a9a39c43Smrg# Make sure we can run config.sub. 4380a9a39c43Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4381a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4382a9a39c43Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4383a9a39c43Smrg { (exit 1); exit 1; }; } 4384a9a39c43Smrg 4385a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4386a9a39c43Smrg$as_echo_n "checking build system type... " >&6; } 4387a9a39c43Smrgif test "${ac_cv_build+set}" = set; then 4388a9a39c43Smrg $as_echo_n "(cached) " >&6 4389129be1b7Smrgelse 4390a9a39c43Smrg ac_build_alias=$build_alias 4391a9a39c43Smrgtest "x$ac_build_alias" = x && 4392a9a39c43Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4393a9a39c43Smrgtest "x$ac_build_alias" = x && 4394a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4395a9a39c43Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4396a9a39c43Smrg { (exit 1); exit 1; }; } 4397a9a39c43Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4398a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4399a9a39c43Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4400a9a39c43Smrg { (exit 1); exit 1; }; } 4401a9a39c43Smrg 4402a9a39c43Smrgfi 4403a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4404a9a39c43Smrg$as_echo "$ac_cv_build" >&6; } 4405a9a39c43Smrgcase $ac_cv_build in 4406a9a39c43Smrg*-*-*) ;; 4407a9a39c43Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4408a9a39c43Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4409a9a39c43Smrg { (exit 1); exit 1; }; };; 4410a9a39c43Smrgesac 4411a9a39c43Smrgbuild=$ac_cv_build 4412a9a39c43Smrgac_save_IFS=$IFS; IFS='-' 4413a9a39c43Smrgset x $ac_cv_build 4414a9a39c43Smrgshift 4415a9a39c43Smrgbuild_cpu=$1 4416a9a39c43Smrgbuild_vendor=$2 4417a9a39c43Smrgshift; shift 4418a9a39c43Smrg# Remember, the first character of IFS is used to create $*, 4419a9a39c43Smrg# except with old shells: 4420a9a39c43Smrgbuild_os=$* 4421a9a39c43SmrgIFS=$ac_save_IFS 4422a9a39c43Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4423a9a39c43Smrg 4424a9a39c43Smrg 4425a9a39c43Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4426a9a39c43Smrg$as_echo_n "checking host system type... " >&6; } 4427a9a39c43Smrgif test "${ac_cv_host+set}" = set; then 4428a9a39c43Smrg $as_echo_n "(cached) " >&6 4429a9a39c43Smrgelse 4430a9a39c43Smrg if test "x$host_alias" = x; then 4431a9a39c43Smrg ac_cv_host=$ac_cv_build 4432a9a39c43Smrgelse 4433a9a39c43Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4434a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4435a9a39c43Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4436a9a39c43Smrg { (exit 1); exit 1; }; } 4437129be1b7Smrgfi 4438129be1b7Smrg 4439a9a39c43Smrgfi 4440a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4441a9a39c43Smrg$as_echo "$ac_cv_host" >&6; } 4442a9a39c43Smrgcase $ac_cv_host in 4443a9a39c43Smrg*-*-*) ;; 4444a9a39c43Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4445a9a39c43Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4446a9a39c43Smrg { (exit 1); exit 1; }; };; 4447a9a39c43Smrgesac 4448a9a39c43Smrghost=$ac_cv_host 4449a9a39c43Smrgac_save_IFS=$IFS; IFS='-' 4450a9a39c43Smrgset x $ac_cv_host 4451a9a39c43Smrgshift 4452a9a39c43Smrghost_cpu=$1 4453a9a39c43Smrghost_vendor=$2 4454a9a39c43Smrgshift; shift 4455a9a39c43Smrg# Remember, the first character of IFS is used to create $*, 4456a9a39c43Smrg# except with old shells: 4457a9a39c43Smrghost_os=$* 4458a9a39c43SmrgIFS=$ac_save_IFS 4459a9a39c43Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4460a9a39c43Smrg 4461a9a39c43Smrg 4462a9a39c43Smrg 4463a9a39c43Smrg 4464a9a39c43Smrg 4465a9a39c43Smrgif test "x$GCC" = xyes ; then 4466a9a39c43Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4467a9a39c43Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4468a9a39c43Smrg-Wbad-function-cast" 4469a9a39c43Smrg case `$CC -dumpversion` in 4470a9a39c43Smrg 3.4.* | 4.*) 4471a9a39c43Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4472a9a39c43Smrg ;; 4473a9a39c43Smrg esac 4474a9a39c43Smrgelse 4475a9a39c43Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4476a9a39c43Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4477a9a39c43Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4478a9a39c43Smrg $as_echo_n "(cached) " >&6 4479a9a39c43Smrgelse 4480a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 4481a9a39c43Smrg/* confdefs.h. */ 4482a9a39c43Smrg_ACEOF 4483a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4484a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4485a9a39c43Smrg/* end confdefs.h. */ 4486a9a39c43Smrg$ac_includes_default 4487a9a39c43Smrgint 4488a9a39c43Smrgmain () 4489a9a39c43Smrg{ 4490a9a39c43Smrg#ifndef __SUNPRO_C 4491a9a39c43Smrg (void) __SUNPRO_C; 4492a9a39c43Smrg#endif 4493a9a39c43Smrg 4494a9a39c43Smrg ; 4495a9a39c43Smrg return 0; 4496a9a39c43Smrg} 4497a9a39c43Smrg_ACEOF 4498a9a39c43Smrgrm -f conftest.$ac_objext 4499a9a39c43Smrgif { (ac_try="$ac_compile" 4500a9a39c43Smrgcase "(($ac_try" in 4501a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4502a9a39c43Smrg *) ac_try_echo=$ac_try;; 4503a9a39c43Smrgesac 4504a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4505a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4506a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 4507a9a39c43Smrg ac_status=$? 4508a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 4509a9a39c43Smrg rm -f conftest.er1 4510a9a39c43Smrg cat conftest.err >&5 4511a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512a9a39c43Smrg (exit $ac_status); } && { 4513a9a39c43Smrg test -z "$ac_c_werror_flag" || 4514a9a39c43Smrg test ! -s conftest.err 4515a9a39c43Smrg } && test -s conftest.$ac_objext; then 4516a9a39c43Smrg ac_cv_have_decl___SUNPRO_C=yes 4517a9a39c43Smrgelse 4518a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 4519a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 4520a9a39c43Smrg 4521a9a39c43Smrg ac_cv_have_decl___SUNPRO_C=no 4522a9a39c43Smrgfi 4523a9a39c43Smrg 4524a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4525a9a39c43Smrgfi 4526a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4527a9a39c43Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4528a9a39c43Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4529a9a39c43Smrg SUNCC="yes" 4530a9a39c43Smrgelse 4531a9a39c43Smrg SUNCC="no" 4532a9a39c43Smrgfi 4533a9a39c43Smrg 4534a9a39c43Smrg if test "x$SUNCC" = "xyes"; then 4535a9a39c43Smrg CWARNFLAGS="-v" 4536a9a39c43Smrg fi 4537a9a39c43Smrgfi 4538a9a39c43Smrg 4539a9a39c43Smrg# Check whether --enable-silent-rules was given. 4540a9a39c43Smrgif test "${enable_silent_rules+set}" = set; then 4541a9a39c43Smrg enableval=$enable_silent_rules; 4542a9a39c43Smrgfi 4543a9a39c43Smrg 4544a9a39c43Smrgcase $enable_silent_rules in 4545a9a39c43Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4546a9a39c43Smrgno) AM_DEFAULT_VERBOSITY=1;; 4547a9a39c43Smrg*) AM_DEFAULT_VERBOSITY=0;; 4548a9a39c43Smrgesac 4549a9a39c43SmrgAM_BACKSLASH='\' 4550a9a39c43Smrg 4551a9a39c43Smrg 4552a9a39c43Smrg 4553a9a39c43Smrg 4554a9a39c43Smrg 4555a9a39c43Smrg 4556a9a39c43Smrg 4557a9a39c43Smrg# Check whether --enable-strict-compilation was given. 4558a9a39c43Smrgif test "${enable_strict_compilation+set}" = set; then 4559a9a39c43Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4560a9a39c43Smrgelse 4561a9a39c43Smrg STRICT_COMPILE=no 4562a9a39c43Smrgfi 4563a9a39c43Smrg 4564a9a39c43Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4565a9a39c43Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4566a9a39c43Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4567a9a39c43Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4568a9a39c43Smrg $as_echo_n "(cached) " >&6 4569a9a39c43Smrgelse 4570a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 4571a9a39c43Smrg/* confdefs.h. */ 4572a9a39c43Smrg_ACEOF 4573a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4574a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4575a9a39c43Smrg/* end confdefs.h. */ 4576a9a39c43Smrg$ac_includes_default 4577a9a39c43Smrgint 4578a9a39c43Smrgmain () 4579a9a39c43Smrg{ 4580a9a39c43Smrg#ifndef __SUNPRO_C 4581a9a39c43Smrg (void) __SUNPRO_C; 4582a9a39c43Smrg#endif 4583129be1b7Smrg 4584a9a39c43Smrg ; 4585a9a39c43Smrg return 0; 4586a9a39c43Smrg} 4587a9a39c43Smrg_ACEOF 4588a9a39c43Smrgrm -f conftest.$ac_objext 4589a9a39c43Smrgif { (ac_try="$ac_compile" 4590a9a39c43Smrgcase "(($ac_try" in 4591a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592a9a39c43Smrg *) ac_try_echo=$ac_try;; 4593a9a39c43Smrgesac 4594a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4595a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4596a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 4597a9a39c43Smrg ac_status=$? 4598a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 4599a9a39c43Smrg rm -f conftest.er1 4600a9a39c43Smrg cat conftest.err >&5 4601a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4602a9a39c43Smrg (exit $ac_status); } && { 4603a9a39c43Smrg test -z "$ac_c_werror_flag" || 4604a9a39c43Smrg test ! -s conftest.err 4605a9a39c43Smrg } && test -s conftest.$ac_objext; then 4606a9a39c43Smrg ac_cv_have_decl___SUNPRO_C=yes 4607a9a39c43Smrgelse 4608a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 4609a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 4610a9a39c43Smrg 4611a9a39c43Smrg ac_cv_have_decl___SUNPRO_C=no 4612a9a39c43Smrgfi 4613a9a39c43Smrg 4614a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4615a9a39c43Smrgfi 4616a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4617a9a39c43Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4618a9a39c43Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4619a9a39c43Smrg SUNCC="yes" 4620a9a39c43Smrgelse 4621a9a39c43Smrg SUNCC="no" 4622a9a39c43Smrgfi 4623a9a39c43Smrg 4624a9a39c43Smrg { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4625a9a39c43Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4626a9a39c43Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4627a9a39c43Smrg $as_echo_n "(cached) " >&6 4628a9a39c43Smrgelse 4629a9a39c43Smrg cat >conftest.$ac_ext <<_ACEOF 4630a9a39c43Smrg/* confdefs.h. */ 4631a9a39c43Smrg_ACEOF 4632a9a39c43Smrgcat confdefs.h >>conftest.$ac_ext 4633a9a39c43Smrgcat >>conftest.$ac_ext <<_ACEOF 4634a9a39c43Smrg/* end confdefs.h. */ 4635a9a39c43Smrg$ac_includes_default 4636a9a39c43Smrgint 4637a9a39c43Smrgmain () 4638a9a39c43Smrg{ 4639a9a39c43Smrg#ifndef __INTEL_COMPILER 4640a9a39c43Smrg (void) __INTEL_COMPILER; 4641a9a39c43Smrg#endif 4642a9a39c43Smrg 4643a9a39c43Smrg ; 4644a9a39c43Smrg return 0; 4645a9a39c43Smrg} 4646a9a39c43Smrg_ACEOF 4647a9a39c43Smrgrm -f conftest.$ac_objext 4648a9a39c43Smrgif { (ac_try="$ac_compile" 4649a9a39c43Smrgcase "(($ac_try" in 4650a9a39c43Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4651a9a39c43Smrg *) ac_try_echo=$ac_try;; 4652a9a39c43Smrgesac 4653a9a39c43Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4654a9a39c43Smrg$as_echo "$ac_try_echo") >&5 4655a9a39c43Smrg (eval "$ac_compile") 2>conftest.er1 4656a9a39c43Smrg ac_status=$? 4657a9a39c43Smrg grep -v '^ *+' conftest.er1 >conftest.err 4658a9a39c43Smrg rm -f conftest.er1 4659a9a39c43Smrg cat conftest.err >&5 4660a9a39c43Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661a9a39c43Smrg (exit $ac_status); } && { 4662a9a39c43Smrg test -z "$ac_c_werror_flag" || 4663a9a39c43Smrg test ! -s conftest.err 4664a9a39c43Smrg } && test -s conftest.$ac_objext; then 4665a9a39c43Smrg ac_cv_have_decl___INTEL_COMPILER=yes 4666a9a39c43Smrgelse 4667a9a39c43Smrg $as_echo "$as_me: failed program was:" >&5 4668a9a39c43Smrgsed 's/^/| /' conftest.$ac_ext >&5 4669a9a39c43Smrg 4670a9a39c43Smrg ac_cv_have_decl___INTEL_COMPILER=no 4671a9a39c43Smrgfi 4672129be1b7Smrg 4673a9a39c43Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4674a9a39c43Smrgfi 4675a9a39c43Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4676a9a39c43Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4677a9a39c43Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4678a9a39c43Smrg INTELCC="yes" 4679a9a39c43Smrgelse 4680a9a39c43Smrg INTELCC="no" 4681a9a39c43Smrgfi 4682129be1b7Smrg 4683a9a39c43Smrg if test "x$GCC" = xyes ; then 4684a9a39c43Smrg STRICT_CFLAGS="-pedantic -Werror" 4685a9a39c43Smrg elif test "x$SUNCC" = "xyes"; then 4686a9a39c43Smrg STRICT_CFLAGS="-errwarn" 4687a9a39c43Smrg elif test "x$INTELCC" = "xyes"; then 4688a9a39c43Smrg STRICT_CFLAGS="-Werror" 4689a9a39c43Smrg fi 4690a9a39c43Smrgfi 4691a9a39c43SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4692129be1b7Smrg 4693129be1b7Smrg 4694129be1b7Smrg 4695129be1b7Smrg 4696a9a39c43Smrg# Check whether --with-release-version was given. 4697129be1b7Smrgif test "${with_release_version+set}" = set; then 4698a9a39c43Smrg withval=$with_release_version; RELEASE_VERSION="$withval" 4699129be1b7Smrgelse 4700129be1b7Smrg RELEASE_VERSION="" 4701a9a39c43Smrgfi 4702a9a39c43Smrg 4703129be1b7Smrg if test "x$RELEASE_VERSION" != "x"; then 4704129be1b7Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 4705129be1b7Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4706a9a39c43Smrg { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4707a9a39c43Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4708a9a39c43Smrg fi 4709a9a39c43Smrg 4710a9a39c43Smrgcat >>confdefs.h <<_ACEOF 4711a9a39c43Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4712a9a39c43Smrg_ACEOF 4713a9a39c43Smrg 4714a9a39c43Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4715a9a39c43Smrg if test "x$PVM" = "x"; then 4716a9a39c43Smrg PVM="0" 4717a9a39c43Smrg fi 4718a9a39c43Smrg 4719a9a39c43Smrgcat >>confdefs.h <<_ACEOF 4720a9a39c43Smrg#define PACKAGE_VERSION_MINOR $PVM 4721a9a39c43Smrg_ACEOF 4722a9a39c43Smrg 4723a9a39c43Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4724a9a39c43Smrg if test "x$PVP" = "x"; then 4725a9a39c43Smrg PVP="0" 4726129be1b7Smrg fi 4727129be1b7Smrg 4728a9a39c43Smrgcat >>confdefs.h <<_ACEOF 4729a9a39c43Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4730a9a39c43Smrg_ACEOF 4731a9a39c43Smrg 4732a9a39c43Smrg 4733a9a39c43Smrg 4734a9a39c43SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 4735a9a39c43Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 4736a9a39c43Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4737a9a39c43Smrg 4738a9a39c43Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 4739a9a39c43Smrg 4740a9a39c43Smrg 4741a9a39c43Smrg 4742a9a39c43Smrg 4743a9a39c43Smrg 4744a9a39c43Smrgif test x$APP_MAN_SUFFIX = x ; then 4745a9a39c43Smrg APP_MAN_SUFFIX=1 4746a9a39c43Smrgfi 4747a9a39c43Smrgif test x$APP_MAN_DIR = x ; then 4748a9a39c43Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4749a9a39c43Smrgfi 4750a9a39c43Smrg 4751a9a39c43Smrgif test x$LIB_MAN_SUFFIX = x ; then 4752a9a39c43Smrg LIB_MAN_SUFFIX=3 4753a9a39c43Smrgfi 4754a9a39c43Smrgif test x$LIB_MAN_DIR = x ; then 4755a9a39c43Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4756a9a39c43Smrgfi 4757a9a39c43Smrg 4758a9a39c43Smrgif test x$FILE_MAN_SUFFIX = x ; then 4759a9a39c43Smrg case $host_os in 4760a9a39c43Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4761a9a39c43Smrg *) FILE_MAN_SUFFIX=5 ;; 4762a9a39c43Smrg esac 4763a9a39c43Smrgfi 4764a9a39c43Smrgif test x$FILE_MAN_DIR = x ; then 4765a9a39c43Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4766a9a39c43Smrgfi 4767a9a39c43Smrg 4768a9a39c43Smrgif test x$MISC_MAN_SUFFIX = x ; then 4769a9a39c43Smrg case $host_os in 4770a9a39c43Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4771a9a39c43Smrg *) MISC_MAN_SUFFIX=7 ;; 4772a9a39c43Smrg esac 4773a9a39c43Smrgfi 4774a9a39c43Smrgif test x$MISC_MAN_DIR = x ; then 4775a9a39c43Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4776a9a39c43Smrgfi 4777a9a39c43Smrg 4778a9a39c43Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4779a9a39c43Smrg case $host_os in 4780a9a39c43Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4781a9a39c43Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4782a9a39c43Smrg esac 4783a9a39c43Smrgfi 4784a9a39c43Smrgif test x$DRIVER_MAN_DIR = x ; then 4785a9a39c43Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4786a9a39c43Smrgfi 4787a9a39c43Smrg 4788a9a39c43Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4789a9a39c43Smrg case $host_os in 4790a9a39c43Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4791a9a39c43Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4792a9a39c43Smrg esac 4793a9a39c43Smrgfi 4794a9a39c43Smrgif test x$ADMIN_MAN_DIR = x ; then 4795a9a39c43Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4796a9a39c43Smrgfi 4797a9a39c43Smrg 4798a9a39c43Smrg 4799a9a39c43Smrg 4800a9a39c43Smrg 4801a9a39c43Smrg 4802a9a39c43Smrg 4803a9a39c43Smrg 4804a9a39c43Smrg 4805a9a39c43Smrg 4806a9a39c43Smrg 4807a9a39c43Smrg 4808a9a39c43Smrg 4809a9a39c43Smrg 4810a9a39c43Smrg 4811a9a39c43Smrg 4812a9a39c43Smrg 4813a9a39c43Smrg 4814a9a39c43Smrgac_config_files="$ac_config_files Makefile xbitmaps.pc" 4815129be1b7Smrg 4816129be1b7Smrgcat >confcache <<\_ACEOF 4817129be1b7Smrg# This file is a shell script that caches the results of configure 4818129be1b7Smrg# tests run on this system so they can be shared between configure 4819129be1b7Smrg# scripts and configure runs, see configure's option --config-cache. 4820129be1b7Smrg# It is not useful on other systems. If it contains results you don't 4821129be1b7Smrg# want to keep, you may remove or edit it. 4822129be1b7Smrg# 4823129be1b7Smrg# config.status only pays attention to the cache file if you give it 4824129be1b7Smrg# the --recheck option to rerun configure. 4825129be1b7Smrg# 4826129be1b7Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 4827129be1b7Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 4828129be1b7Smrg# following values. 4829129be1b7Smrg 4830129be1b7Smrg_ACEOF 4831129be1b7Smrg 4832129be1b7Smrg# The following way of writing the cache mishandles newlines in values, 4833129be1b7Smrg# but we know of no workaround that is simple, portable, and efficient. 4834a9a39c43Smrg# So, we kill variables containing newlines. 4835129be1b7Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 4836129be1b7Smrg# and sets the high bit in the cache file unless we assign to the vars. 4837a9a39c43Smrg( 4838a9a39c43Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4839a9a39c43Smrg eval ac_val=\$$ac_var 4840a9a39c43Smrg case $ac_val in #( 4841a9a39c43Smrg *${as_nl}*) 4842a9a39c43Smrg case $ac_var in #( 4843a9a39c43Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 4844a9a39c43Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4845a9a39c43Smrg esac 4846a9a39c43Smrg case $ac_var in #( 4847a9a39c43Smrg _ | IFS | as_nl) ;; #( 4848a9a39c43Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4849a9a39c43Smrg *) $as_unset $ac_var ;; 4850a9a39c43Smrg esac ;; 4851a9a39c43Smrg esac 4852a9a39c43Smrg done 4853a9a39c43Smrg 4854129be1b7Smrg (set) 2>&1 | 4855a9a39c43Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 4856a9a39c43Smrg *${as_nl}ac_space=\ *) 4857129be1b7Smrg # `set' does not quote correctly, so add quotes (double-quote 4858129be1b7Smrg # substitution turns \\\\ into \\, and sed turns \\ into \). 4859129be1b7Smrg sed -n \ 4860129be1b7Smrg "s/'/'\\\\''/g; 4861129be1b7Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4862a9a39c43Smrg ;; #( 4863129be1b7Smrg *) 4864129be1b7Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 4865a9a39c43Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4866129be1b7Smrg ;; 4867a9a39c43Smrg esac | 4868a9a39c43Smrg sort 4869a9a39c43Smrg) | 4870129be1b7Smrg sed ' 4871a9a39c43Smrg /^ac_cv_env_/b end 4872129be1b7Smrg t clear 4873a9a39c43Smrg :clear 4874129be1b7Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4875129be1b7Smrg t end 4876a9a39c43Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4877a9a39c43Smrg :end' >>confcache 4878a9a39c43Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4879a9a39c43Smrg if test -w "$cache_file"; then 4880a9a39c43Smrg test "x$cache_file" != "x/dev/null" && 4881a9a39c43Smrg { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 4882a9a39c43Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 4883129be1b7Smrg cat confcache >$cache_file 4884129be1b7Smrg else 4885a9a39c43Smrg { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 4886a9a39c43Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4887129be1b7Smrg fi 4888129be1b7Smrgfi 4889129be1b7Smrgrm -f confcache 4890129be1b7Smrg 4891129be1b7Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 4892129be1b7Smrg# Let make expand exec_prefix. 4893129be1b7Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4894129be1b7Smrg 4895129be1b7SmrgDEFS=-DHAVE_CONFIG_H 4896129be1b7Smrg 4897129be1b7Smrgac_libobjs= 4898129be1b7Smrgac_ltlibobjs= 4899129be1b7Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4900129be1b7Smrg # 1. Remove the extension, and $U if already installed. 4901a9a39c43Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4902a9a39c43Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4903a9a39c43Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4904a9a39c43Smrg # will be set to the directory where LIBOBJS objects are built. 4905a9a39c43Smrg ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4906a9a39c43Smrg ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 4907129be1b7Smrgdone 4908129be1b7SmrgLIBOBJS=$ac_libobjs 4909129be1b7Smrg 4910129be1b7SmrgLTLIBOBJS=$ac_ltlibobjs 4911129be1b7Smrg 4912129be1b7Smrg 4913a9a39c43Smrg if test -n "$EXEEXT"; then 4914a9a39c43Smrg am__EXEEXT_TRUE= 4915a9a39c43Smrg am__EXEEXT_FALSE='#' 4916a9a39c43Smrgelse 4917a9a39c43Smrg am__EXEEXT_TRUE='#' 4918a9a39c43Smrg am__EXEEXT_FALSE= 4919a9a39c43Smrgfi 4920a9a39c43Smrg 4921129be1b7Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 4922a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 4923a9a39c43SmrgUsually this means the macro was only invoked conditionally." >&5 4924a9a39c43Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 4925a9a39c43SmrgUsually this means the macro was only invoked conditionally." >&2;} 4926a9a39c43Smrg { (exit 1); exit 1; }; } 4927a9a39c43Smrgfi 4928a9a39c43Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 4929a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 4930a9a39c43SmrgUsually this means the macro was only invoked conditionally." >&5 4931a9a39c43Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 4932a9a39c43SmrgUsually this means the macro was only invoked conditionally." >&2;} 4933a9a39c43Smrg { (exit 1); exit 1; }; } 4934a9a39c43Smrgfi 4935a9a39c43Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 4936a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 4937129be1b7SmrgUsually this means the macro was only invoked conditionally." >&5 4938a9a39c43Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 4939129be1b7SmrgUsually this means the macro was only invoked conditionally." >&2;} 4940129be1b7Smrg { (exit 1); exit 1; }; } 4941129be1b7Smrgfi 4942129be1b7Smrg 4943129be1b7Smrg: ${CONFIG_STATUS=./config.status} 4944a9a39c43Smrgac_write_fail=0 4945129be1b7Smrgac_clean_files_save=$ac_clean_files 4946129be1b7Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 4947a9a39c43Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4948a9a39c43Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4949a9a39c43Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4950129be1b7Smrg#! $SHELL 4951129be1b7Smrg# Generated by $as_me. 4952129be1b7Smrg# Run this file to recreate the current configuration. 4953129be1b7Smrg# Compiler output produced by configure, useful for debugging 4954129be1b7Smrg# configure, is in config.log if it exists. 4955129be1b7Smrg 4956129be1b7Smrgdebug=false 4957129be1b7Smrgac_cs_recheck=false 4958129be1b7Smrgac_cs_silent=false 4959129be1b7SmrgSHELL=\${CONFIG_SHELL-$SHELL} 4960129be1b7Smrg_ACEOF 4961129be1b7Smrg 4962a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4963129be1b7Smrg## --------------------- ## 4964129be1b7Smrg## M4sh Initialization. ## 4965129be1b7Smrg## --------------------- ## 4966129be1b7Smrg 4967a9a39c43Smrg# Be more Bourne compatible 4968a9a39c43SmrgDUALCASE=1; export DUALCASE # for MKS sh 4969129be1b7Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4970129be1b7Smrg emulate sh 4971129be1b7Smrg NULLCMD=: 4972a9a39c43Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4973129be1b7Smrg # is contrary to our usage. Disable this feature. 4974129be1b7Smrg alias -g '${1+"$@"}'='"$@"' 4975a9a39c43Smrg setopt NO_GLOB_SUBST 4976a9a39c43Smrgelse 4977a9a39c43Smrg case `(set -o) 2>/dev/null` in 4978a9a39c43Smrg *posix*) set -o posix ;; 4979a9a39c43Smrgesac 4980a9a39c43Smrg 4981a9a39c43Smrgfi 4982a9a39c43Smrg 4983a9a39c43Smrg 4984a9a39c43Smrg 4985a9a39c43Smrg 4986a9a39c43Smrg# PATH needs CR 4987a9a39c43Smrg# Avoid depending upon Character Ranges. 4988a9a39c43Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4989a9a39c43Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4990a9a39c43Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4991a9a39c43Smrgas_cr_digits='0123456789' 4992a9a39c43Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4993a9a39c43Smrg 4994a9a39c43Smrgas_nl=' 4995a9a39c43Smrg' 4996a9a39c43Smrgexport as_nl 4997a9a39c43Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4998a9a39c43Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4999a9a39c43Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5000a9a39c43Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5001a9a39c43Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5002a9a39c43Smrg as_echo='printf %s\n' 5003a9a39c43Smrg as_echo_n='printf %s' 5004a9a39c43Smrgelse 5005a9a39c43Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5006a9a39c43Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5007a9a39c43Smrg as_echo_n='/usr/ucb/echo -n' 5008a9a39c43Smrg else 5009a9a39c43Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5010a9a39c43Smrg as_echo_n_body='eval 5011a9a39c43Smrg arg=$1; 5012a9a39c43Smrg case $arg in 5013a9a39c43Smrg *"$as_nl"*) 5014a9a39c43Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5015a9a39c43Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5016a9a39c43Smrg esac; 5017a9a39c43Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5018a9a39c43Smrg ' 5019a9a39c43Smrg export as_echo_n_body 5020a9a39c43Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 5021a9a39c43Smrg fi 5022a9a39c43Smrg export as_echo_body 5023a9a39c43Smrg as_echo='sh -c $as_echo_body as_echo' 5024a9a39c43Smrgfi 5025a9a39c43Smrg 5026a9a39c43Smrg# The user is always right. 5027a9a39c43Smrgif test "${PATH_SEPARATOR+set}" != set; then 5028a9a39c43Smrg PATH_SEPARATOR=: 5029a9a39c43Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5030a9a39c43Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5031a9a39c43Smrg PATH_SEPARATOR=';' 5032a9a39c43Smrg } 5033129be1b7Smrgfi 5034129be1b7Smrg 5035129be1b7Smrg# Support unset when possible. 5036129be1b7Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5037129be1b7Smrg as_unset=unset 5038129be1b7Smrgelse 5039129be1b7Smrg as_unset=false 5040129be1b7Smrgfi 5041129be1b7Smrg 5042129be1b7Smrg 5043a9a39c43Smrg# IFS 5044a9a39c43Smrg# We need space, tab and new line, in precisely that order. Quoting is 5045a9a39c43Smrg# there to prevent editors from complaining about space-tab. 5046a9a39c43Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5047a9a39c43Smrg# splitting by setting IFS to empty value.) 5048a9a39c43SmrgIFS=" "" $as_nl" 5049a9a39c43Smrg 5050a9a39c43Smrg# Find who we are. Look in the path if we contain no directory separator. 5051a9a39c43Smrgcase $0 in 5052a9a39c43Smrg *[\\/]* ) as_myself=$0 ;; 5053a9a39c43Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5054a9a39c43Smrgfor as_dir in $PATH 5055a9a39c43Smrgdo 5056a9a39c43Smrg IFS=$as_save_IFS 5057a9a39c43Smrg test -z "$as_dir" && as_dir=. 5058a9a39c43Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5059a9a39c43Smrgdone 5060a9a39c43SmrgIFS=$as_save_IFS 5061a9a39c43Smrg 5062a9a39c43Smrg ;; 5063a9a39c43Smrgesac 5064a9a39c43Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5065a9a39c43Smrg# in which case we are not to be found in the path. 5066a9a39c43Smrgif test "x$as_myself" = x; then 5067a9a39c43Smrg as_myself=$0 5068a9a39c43Smrgfi 5069a9a39c43Smrgif test ! -f "$as_myself"; then 5070a9a39c43Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5071a9a39c43Smrg { (exit 1); exit 1; } 5072a9a39c43Smrgfi 5073a9a39c43Smrg 5074129be1b7Smrg# Work around bugs in pre-3.0 UWIN ksh. 5075a9a39c43Smrgfor as_var in ENV MAIL MAILPATH 5076a9a39c43Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5077a9a39c43Smrgdone 5078129be1b7SmrgPS1='$ ' 5079129be1b7SmrgPS2='> ' 5080129be1b7SmrgPS4='+ ' 5081129be1b7Smrg 5082129be1b7Smrg# NLS nuisances. 5083a9a39c43SmrgLC_ALL=C 5084a9a39c43Smrgexport LC_ALL 5085a9a39c43SmrgLANGUAGE=C 5086a9a39c43Smrgexport LANGUAGE 5087129be1b7Smrg 5088129be1b7Smrg# Required to use basename. 5089a9a39c43Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5090a9a39c43Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5091129be1b7Smrg as_expr=expr 5092129be1b7Smrgelse 5093129be1b7Smrg as_expr=false 5094129be1b7Smrgfi 5095129be1b7Smrg 5096a9a39c43Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5097129be1b7Smrg as_basename=basename 5098129be1b7Smrgelse 5099129be1b7Smrg as_basename=false 5100129be1b7Smrgfi 5101129be1b7Smrg 5102129be1b7Smrg 5103129be1b7Smrg# Name of the executable. 5104a9a39c43Smrgas_me=`$as_basename -- "$0" || 5105129be1b7Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5106129be1b7Smrg X"$0" : 'X\(//\)$' \| \ 5107a9a39c43Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5108a9a39c43Smrg$as_echo X/"$0" | 5109a9a39c43Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5110a9a39c43Smrg s//\1/ 5111a9a39c43Smrg q 5112a9a39c43Smrg } 5113a9a39c43Smrg /^X\/\(\/\/\)$/{ 5114a9a39c43Smrg s//\1/ 5115a9a39c43Smrg q 5116a9a39c43Smrg } 5117a9a39c43Smrg /^X\/\(\/\).*/{ 5118a9a39c43Smrg s//\1/ 5119a9a39c43Smrg q 5120a9a39c43Smrg } 5121a9a39c43Smrg s/.*/./; q'` 5122a9a39c43Smrg 5123a9a39c43Smrg# CDPATH. 5124a9a39c43Smrg$as_unset CDPATH 5125129be1b7Smrg 5126129be1b7Smrg 5127129be1b7Smrg 5128129be1b7Smrg as_lineno_1=$LINENO 5129129be1b7Smrg as_lineno_2=$LINENO 5130129be1b7Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 5131a9a39c43Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 5132129be1b7Smrg 5133129be1b7Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5134129be1b7Smrg # uniformly replaced by the line number. The first 'sed' inserts a 5135a9a39c43Smrg # line-number line after each line using $LINENO; the second 'sed' 5136a9a39c43Smrg # does the real work. The second script uses 'N' to pair each 5137a9a39c43Smrg # line-number line with the line containing $LINENO, and appends 5138a9a39c43Smrg # trailing '-' during substitution so that $LINENO is not a special 5139a9a39c43Smrg # case at line end. 5140129be1b7Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5141a9a39c43Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 5142a9a39c43Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 5143a9a39c43Smrg sed -n ' 5144a9a39c43Smrg p 5145a9a39c43Smrg /[$]LINENO/= 5146a9a39c43Smrg ' <$as_myself | 5147129be1b7Smrg sed ' 5148a9a39c43Smrg s/[$]LINENO.*/&-/ 5149a9a39c43Smrg t lineno 5150a9a39c43Smrg b 5151a9a39c43Smrg :lineno 5152129be1b7Smrg N 5153a9a39c43Smrg :loop 5154a9a39c43Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5155129be1b7Smrg t loop 5156a9a39c43Smrg s/-\n.*// 5157129be1b7Smrg ' >$as_me.lineno && 5158a9a39c43Smrg chmod +x "$as_me.lineno" || 5159a9a39c43Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 5160129be1b7Smrg { (exit 1); exit 1; }; } 5161129be1b7Smrg 5162129be1b7Smrg # Don't try to exec as it changes $[0], causing all sort of problems 5163129be1b7Smrg # (the dirname of $[0] is not the place where we might find the 5164a9a39c43Smrg # original and so on. Autoconf is especially sensitive to this). 5165a9a39c43Smrg . "./$as_me.lineno" 5166129be1b7Smrg # Exit status is that of the last command. 5167129be1b7Smrg exit 5168129be1b7Smrg} 5169129be1b7Smrg 5170129be1b7Smrg 5171a9a39c43Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5172a9a39c43Smrg as_dirname=dirname 5173a9a39c43Smrgelse 5174a9a39c43Smrg as_dirname=false 5175a9a39c43Smrgfi 5176129be1b7Smrg 5177a9a39c43SmrgECHO_C= ECHO_N= ECHO_T= 5178a9a39c43Smrgcase `echo -n x` in 5179a9a39c43Smrg-n*) 5180a9a39c43Smrg case `echo 'x\c'` in 5181a9a39c43Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5182a9a39c43Smrg *) ECHO_C='\c';; 5183a9a39c43Smrg esac;; 5184a9a39c43Smrg*) 5185a9a39c43Smrg ECHO_N='-n';; 5186a9a39c43Smrgesac 5187a9a39c43Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5188a9a39c43Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5189129be1b7Smrg as_expr=expr 5190129be1b7Smrgelse 5191129be1b7Smrg as_expr=false 5192129be1b7Smrgfi 5193129be1b7Smrg 5194129be1b7Smrgrm -f conf$$ conf$$.exe conf$$.file 5195a9a39c43Smrgif test -d conf$$.dir; then 5196a9a39c43Smrg rm -f conf$$.dir/conf$$.file 5197a9a39c43Smrgelse 5198a9a39c43Smrg rm -f conf$$.dir 5199a9a39c43Smrg mkdir conf$$.dir 2>/dev/null 5200a9a39c43Smrgfi 5201a9a39c43Smrgif (echo >conf$$.file) 2>/dev/null; then 5202a9a39c43Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5203129be1b7Smrg as_ln_s='ln -s' 5204a9a39c43Smrg # ... but there are two gotchas: 5205a9a39c43Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5206a9a39c43Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5207a9a39c43Smrg # In both cases, we have to default to `cp -p'. 5208a9a39c43Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5209a9a39c43Smrg as_ln_s='cp -p' 5210a9a39c43Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5211a9a39c43Smrg as_ln_s=ln 5212a9a39c43Smrg else 5213a9a39c43Smrg as_ln_s='cp -p' 5214129be1b7Smrg fi 5215129be1b7Smrgelse 5216129be1b7Smrg as_ln_s='cp -p' 5217129be1b7Smrgfi 5218a9a39c43Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5219a9a39c43Smrgrmdir conf$$.dir 2>/dev/null 5220129be1b7Smrg 5221129be1b7Smrgif mkdir -p . 2>/dev/null; then 5222129be1b7Smrg as_mkdir_p=: 5223129be1b7Smrgelse 5224129be1b7Smrg test -d ./-p && rmdir ./-p 5225129be1b7Smrg as_mkdir_p=false 5226129be1b7Smrgfi 5227129be1b7Smrg 5228a9a39c43Smrgif test -x / >/dev/null 2>&1; then 5229a9a39c43Smrg as_test_x='test -x' 5230a9a39c43Smrgelse 5231a9a39c43Smrg if ls -dL / >/dev/null 2>&1; then 5232a9a39c43Smrg as_ls_L_option=L 5233a9a39c43Smrg else 5234a9a39c43Smrg as_ls_L_option= 5235a9a39c43Smrg fi 5236a9a39c43Smrg as_test_x=' 5237a9a39c43Smrg eval sh -c '\'' 5238a9a39c43Smrg if test -d "$1"; then 5239a9a39c43Smrg test -d "$1/."; 5240a9a39c43Smrg else 5241a9a39c43Smrg case $1 in 5242a9a39c43Smrg -*)set "./$1";; 5243a9a39c43Smrg esac; 5244a9a39c43Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5245a9a39c43Smrg ???[sx]*):;;*)false;;esac;fi 5246a9a39c43Smrg '\'' sh 5247a9a39c43Smrg ' 5248a9a39c43Smrgfi 5249a9a39c43Smrgas_executable_p=$as_test_x 5250129be1b7Smrg 5251129be1b7Smrg# Sed expression to map a string onto a valid CPP name. 5252129be1b7Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5253129be1b7Smrg 5254129be1b7Smrg# Sed expression to map a string onto a valid variable name. 5255129be1b7Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5256129be1b7Smrg 5257129be1b7Smrg 5258129be1b7Smrgexec 6>&1 5259129be1b7Smrg 5260a9a39c43Smrg# Save the log message, to keep $[0] and so on meaningful, and to 5261129be1b7Smrg# report actual input values of CONFIG_FILES etc. instead of their 5262a9a39c43Smrg# values after options handling. 5263a9a39c43Smrgac_log=" 5264a9a39c43SmrgThis file was extended by xbitmaps $as_me 1.1.0, which was 5265a9a39c43Smrggenerated by GNU Autoconf 2.63. Invocation command line was 5266129be1b7Smrg 5267129be1b7Smrg CONFIG_FILES = $CONFIG_FILES 5268129be1b7Smrg CONFIG_HEADERS = $CONFIG_HEADERS 5269129be1b7Smrg CONFIG_LINKS = $CONFIG_LINKS 5270129be1b7Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5271129be1b7Smrg $ $0 $@ 5272129be1b7Smrg 5273a9a39c43Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5274a9a39c43Smrg" 5275a9a39c43Smrg 5276129be1b7Smrg_ACEOF 5277129be1b7Smrg 5278a9a39c43Smrgcase $ac_config_files in *" 5279a9a39c43Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5280a9a39c43Smrgesac 5281129be1b7Smrg 5282a9a39c43Smrgcase $ac_config_headers in *" 5283a9a39c43Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5284a9a39c43Smrgesac 5285129be1b7Smrg 5286129be1b7Smrg 5287a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5288a9a39c43Smrg# Files that config.status was made for. 5289a9a39c43Smrgconfig_files="$ac_config_files" 5290a9a39c43Smrgconfig_headers="$ac_config_headers" 5291a9a39c43Smrgconfig_commands="$ac_config_commands" 5292129be1b7Smrg 5293a9a39c43Smrg_ACEOF 5294129be1b7Smrg 5295a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5296129be1b7Smrgac_cs_usage="\ 5297129be1b7Smrg\`$as_me' instantiates files from templates according to the 5298129be1b7Smrgcurrent configuration. 5299129be1b7Smrg 5300a9a39c43SmrgUsage: $0 [OPTION]... [FILE]... 5301129be1b7Smrg 5302129be1b7Smrg -h, --help print this help, then exit 5303a9a39c43Smrg -V, --version print version number and configuration settings, then exit 5304a9a39c43Smrg -q, --quiet, --silent 5305a9a39c43Smrg do not print progress messages 5306129be1b7Smrg -d, --debug don't remove temporary files 5307129be1b7Smrg --recheck update $as_me by reconfiguring in the same conditions 5308a9a39c43Smrg --file=FILE[:TEMPLATE] 5309a9a39c43Smrg instantiate the configuration file FILE 5310a9a39c43Smrg --header=FILE[:TEMPLATE] 5311a9a39c43Smrg instantiate the configuration header FILE 5312129be1b7Smrg 5313129be1b7SmrgConfiguration files: 5314129be1b7Smrg$config_files 5315129be1b7Smrg 5316129be1b7SmrgConfiguration headers: 5317129be1b7Smrg$config_headers 5318129be1b7Smrg 5319a9a39c43SmrgConfiguration commands: 5320a9a39c43Smrg$config_commands 5321a9a39c43Smrg 5322129be1b7SmrgReport bugs to <bug-autoconf@gnu.org>." 5323129be1b7Smrg 5324a9a39c43Smrg_ACEOF 5325a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5326129be1b7Smrgac_cs_version="\\ 5327a9a39c43Smrgxbitmaps config.status 1.1.0 5328a9a39c43Smrgconfigured by $0, generated by GNU Autoconf 2.63, 5329a9a39c43Smrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5330129be1b7Smrg 5331a9a39c43SmrgCopyright (C) 2008 Free Software Foundation, Inc. 5332129be1b7SmrgThis config.status script is free software; the Free Software Foundation 5333129be1b7Smrggives unlimited permission to copy, distribute and modify it." 5334a9a39c43Smrg 5335a9a39c43Smrgac_pwd='$ac_pwd' 5336a9a39c43Smrgsrcdir='$srcdir' 5337a9a39c43SmrgINSTALL='$INSTALL' 5338a9a39c43SmrgMKDIR_P='$MKDIR_P' 5339a9a39c43SmrgAWK='$AWK' 5340a9a39c43Smrgtest -n "\$AWK" || AWK=awk 5341129be1b7Smrg_ACEOF 5342129be1b7Smrg 5343a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5344a9a39c43Smrg# The default lists apply if the user does not specify any file. 5345129be1b7Smrgac_need_defaults=: 5346129be1b7Smrgwhile test $# != 0 5347129be1b7Smrgdo 5348129be1b7Smrg case $1 in 5349129be1b7Smrg --*=*) 5350a9a39c43Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5351a9a39c43Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5352129be1b7Smrg ac_shift=: 5353129be1b7Smrg ;; 5354a9a39c43Smrg *) 5355129be1b7Smrg ac_option=$1 5356129be1b7Smrg ac_optarg=$2 5357129be1b7Smrg ac_shift=shift 5358129be1b7Smrg ;; 5359129be1b7Smrg esac 5360129be1b7Smrg 5361129be1b7Smrg case $ac_option in 5362129be1b7Smrg # Handling of the options. 5363129be1b7Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5364129be1b7Smrg ac_cs_recheck=: ;; 5365a9a39c43Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5366a9a39c43Smrg $as_echo "$ac_cs_version"; exit ;; 5367a9a39c43Smrg --debug | --debu | --deb | --de | --d | -d ) 5368129be1b7Smrg debug=: ;; 5369129be1b7Smrg --file | --fil | --fi | --f ) 5370129be1b7Smrg $ac_shift 5371a9a39c43Smrg case $ac_optarg in 5372a9a39c43Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5373a9a39c43Smrg esac 5374a9a39c43Smrg CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 5375129be1b7Smrg ac_need_defaults=false;; 5376129be1b7Smrg --header | --heade | --head | --hea ) 5377129be1b7Smrg $ac_shift 5378a9a39c43Smrg case $ac_optarg in 5379a9a39c43Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5380a9a39c43Smrg esac 5381a9a39c43Smrg CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 5382129be1b7Smrg ac_need_defaults=false;; 5383a9a39c43Smrg --he | --h) 5384a9a39c43Smrg # Conflict between --help and --header 5385a9a39c43Smrg { $as_echo "$as_me: error: ambiguous option: $1 5386a9a39c43SmrgTry \`$0 --help' for more information." >&2 5387a9a39c43Smrg { (exit 1); exit 1; }; };; 5388a9a39c43Smrg --help | --hel | -h ) 5389a9a39c43Smrg $as_echo "$ac_cs_usage"; exit ;; 5390129be1b7Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5391129be1b7Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 5392129be1b7Smrg ac_cs_silent=: ;; 5393129be1b7Smrg 5394129be1b7Smrg # This is an error. 5395a9a39c43Smrg -*) { $as_echo "$as_me: error: unrecognized option: $1 5396a9a39c43SmrgTry \`$0 --help' for more information." >&2 5397129be1b7Smrg { (exit 1); exit 1; }; } ;; 5398129be1b7Smrg 5399a9a39c43Smrg *) ac_config_targets="$ac_config_targets $1" 5400a9a39c43Smrg ac_need_defaults=false ;; 5401129be1b7Smrg 5402129be1b7Smrg esac 5403129be1b7Smrg shift 5404129be1b7Smrgdone 5405129be1b7Smrg 5406129be1b7Smrgac_configure_extra_args= 5407129be1b7Smrg 5408129be1b7Smrgif $ac_cs_silent; then 5409129be1b7Smrg exec 6>/dev/null 5410129be1b7Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 5411129be1b7Smrgfi 5412129be1b7Smrg 5413129be1b7Smrg_ACEOF 5414a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5415129be1b7Smrgif \$ac_cs_recheck; then 5416a9a39c43Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5417a9a39c43Smrg shift 5418a9a39c43Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5419a9a39c43Smrg CONFIG_SHELL='$SHELL' 5420a9a39c43Smrg export CONFIG_SHELL 5421a9a39c43Smrg exec "\$@" 5422129be1b7Smrgfi 5423129be1b7Smrg 5424129be1b7Smrg_ACEOF 5425a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5426a9a39c43Smrgexec 5>>config.log 5427a9a39c43Smrg{ 5428a9a39c43Smrg echo 5429a9a39c43Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5430a9a39c43Smrg## Running $as_me. ## 5431a9a39c43Smrg_ASBOX 5432a9a39c43Smrg $as_echo "$ac_log" 5433a9a39c43Smrg} >&5 5434129be1b7Smrg 5435a9a39c43Smrg_ACEOF 5436a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5437a9a39c43Smrg# 5438a9a39c43Smrg# INIT-COMMANDS 5439a9a39c43Smrg# 5440a9a39c43SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5441129be1b7Smrg 5442a9a39c43Smrg_ACEOF 5443129be1b7Smrg 5444a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5445129be1b7Smrg 5446a9a39c43Smrg# Handling of arguments. 5447129be1b7Smrgfor ac_config_target in $ac_config_targets 5448129be1b7Smrgdo 5449a9a39c43Smrg case $ac_config_target in 5450a9a39c43Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5451a9a39c43Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5452a9a39c43Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5453a9a39c43Smrg "xbitmaps.pc") CONFIG_FILES="$CONFIG_FILES xbitmaps.pc" ;; 5454a9a39c43Smrg 5455a9a39c43Smrg *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5456a9a39c43Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5457129be1b7Smrg { (exit 1); exit 1; }; };; 5458129be1b7Smrg esac 5459129be1b7Smrgdone 5460129be1b7Smrg 5461a9a39c43Smrg 5462129be1b7Smrg# If the user did not use the arguments to specify the items to instantiate, 5463129be1b7Smrg# then the envvar interface is used. Set only those that are not. 5464129be1b7Smrg# We use the long form for the default assignment because of an extremely 5465129be1b7Smrg# bizarre bug on SunOS 4.1.3. 5466129be1b7Smrgif $ac_need_defaults; then 5467129be1b7Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5468129be1b7Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5469a9a39c43Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5470129be1b7Smrgfi 5471129be1b7Smrg 5472129be1b7Smrg# Have a temporary directory for convenience. Make it in the build tree 5473a9a39c43Smrg# simply because there is no reason against having it here, and in addition, 5474129be1b7Smrg# creating and moving files from /tmp can sometimes cause problems. 5475a9a39c43Smrg# Hook for its removal unless debugging. 5476a9a39c43Smrg# Note that there is a small window in which the directory will not be cleaned: 5477a9a39c43Smrg# after its creation but before its name has been assigned to `$tmp'. 5478129be1b7Smrg$debug || 5479129be1b7Smrg{ 5480a9a39c43Smrg tmp= 5481a9a39c43Smrg trap 'exit_status=$? 5482a9a39c43Smrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5483a9a39c43Smrg' 0 5484129be1b7Smrg trap '{ (exit 1); exit 1; }' 1 2 13 15 5485129be1b7Smrg} 5486129be1b7Smrg# Create a (secure) tmp directory for tmp files. 5487129be1b7Smrg 5488129be1b7Smrg{ 5489a9a39c43Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5490129be1b7Smrg test -n "$tmp" && test -d "$tmp" 5491129be1b7Smrg} || 5492129be1b7Smrg{ 5493a9a39c43Smrg tmp=./conf$$-$RANDOM 5494a9a39c43Smrg (umask 077 && mkdir "$tmp") 5495129be1b7Smrg} || 5496129be1b7Smrg{ 5497a9a39c43Smrg $as_echo "$as_me: cannot create a temporary directory in ." >&2 5498129be1b7Smrg { (exit 1); exit 1; } 5499129be1b7Smrg} 5500129be1b7Smrg 5501a9a39c43Smrg# Set up the scripts for CONFIG_FILES section. 5502a9a39c43Smrg# No need to generate them if there are no CONFIG_FILES. 5503a9a39c43Smrg# This happens for instance with `./config.status config.h'. 5504a9a39c43Smrgif test -n "$CONFIG_FILES"; then 5505a9a39c43Smrg 5506a9a39c43Smrg 5507a9a39c43Smrgac_cr=' 5508a9a39c43Smrg' 5509a9a39c43Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5510a9a39c43Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5511a9a39c43Smrg ac_cs_awk_cr='\\r' 5512a9a39c43Smrgelse 5513a9a39c43Smrg ac_cs_awk_cr=$ac_cr 5514a9a39c43Smrgfi 5515a9a39c43Smrg 5516129be1b7Smrgecho 'BEGIN {' >"$tmp/subs1.awk" && 5517129be1b7Smrg_ACEOF 5518129be1b7Smrg 5519a9a39c43Smrg 5520a9a39c43Smrg{ 5521a9a39c43Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 5522a9a39c43Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5523a9a39c43Smrg echo "_ACEOF" 5524a9a39c43Smrg} >conf$$subs.sh || 5525a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5526a9a39c43Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5527a9a39c43Smrg { (exit 1); exit 1; }; } 5528a9a39c43Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 5529a9a39c43Smrgac_delim='%!_!# ' 5530a9a39c43Smrgfor ac_last_try in false false false false false :; do 5531a9a39c43Smrg . ./conf$$subs.sh || 5532a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5533a9a39c43Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5534129be1b7Smrg { (exit 1); exit 1; }; } 5535a9a39c43Smrg 5536a9a39c43Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5537a9a39c43Smrg if test $ac_delim_n = $ac_delim_num; then 5538a9a39c43Smrg break 5539a9a39c43Smrg elif $ac_last_try; then 5540a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5541a9a39c43Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5542a9a39c43Smrg { (exit 1); exit 1; }; } 5543a9a39c43Smrg else 5544129be1b7Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5545a9a39c43Smrg fi 5546a9a39c43Smrgdone 5547a9a39c43Smrgrm -f conf$$subs.sh 5548a9a39c43Smrg 5549a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5550a9a39c43Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 5551a9a39c43Smrg_ACEOF 5552a9a39c43Smrgsed -n ' 5553a9a39c43Smrgh 5554a9a39c43Smrgs/^/S["/; s/!.*/"]=/ 5555a9a39c43Smrgp 5556a9a39c43Smrgg 5557a9a39c43Smrgs/^[^!]*!// 5558a9a39c43Smrg:repl 5559a9a39c43Smrgt repl 5560a9a39c43Smrgs/'"$ac_delim"'$// 5561a9a39c43Smrgt delim 5562a9a39c43Smrg:nl 5563a9a39c43Smrgh 5564a9a39c43Smrgs/\(.\{148\}\).*/\1/ 5565a9a39c43Smrgt more1 5566a9a39c43Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5567a9a39c43Smrgp 5568a9a39c43Smrgn 5569a9a39c43Smrgb repl 5570a9a39c43Smrg:more1 5571a9a39c43Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5572a9a39c43Smrgp 5573a9a39c43Smrgg 5574a9a39c43Smrgs/.\{148\}// 5575a9a39c43Smrgt nl 5576a9a39c43Smrg:delim 5577a9a39c43Smrgh 5578a9a39c43Smrgs/\(.\{148\}\).*/\1/ 5579a9a39c43Smrgt more2 5580a9a39c43Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 5581a9a39c43Smrgp 5582a9a39c43Smrgb 5583a9a39c43Smrg:more2 5584a9a39c43Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5585a9a39c43Smrgp 5586a9a39c43Smrgg 5587a9a39c43Smrgs/.\{148\}// 5588a9a39c43Smrgt delim 5589a9a39c43Smrg' <conf$$subs.awk | sed ' 5590a9a39c43Smrg/^[^""]/{ 5591a9a39c43Smrg N 5592a9a39c43Smrg s/\n// 5593a9a39c43Smrg} 5594a9a39c43Smrg' >>$CONFIG_STATUS || ac_write_fail=1 5595a9a39c43Smrgrm -f conf$$subs.awk 5596a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5597a9a39c43Smrg_ACAWK 5598a9a39c43Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 5599a9a39c43Smrg for (key in S) S_is_set[key] = 1 5600a9a39c43Smrg FS = "" 5601a9a39c43Smrg 5602a9a39c43Smrg} 5603a9a39c43Smrg{ 5604a9a39c43Smrg line = $ 0 5605a9a39c43Smrg nfields = split(line, field, "@") 5606a9a39c43Smrg substed = 0 5607a9a39c43Smrg len = length(field[1]) 5608a9a39c43Smrg for (i = 2; i < nfields; i++) { 5609a9a39c43Smrg key = field[i] 5610a9a39c43Smrg keylen = length(key) 5611a9a39c43Smrg if (S_is_set[key]) { 5612a9a39c43Smrg value = S[key] 5613a9a39c43Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5614a9a39c43Smrg len += length(value) + length(field[++i]) 5615a9a39c43Smrg substed = 1 5616a9a39c43Smrg } else 5617a9a39c43Smrg len += 1 + keylen 5618a9a39c43Smrg } 5619a9a39c43Smrg 5620a9a39c43Smrg print line 5621a9a39c43Smrg} 5622a9a39c43Smrg 5623a9a39c43Smrg_ACAWK 5624a9a39c43Smrg_ACEOF 5625a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5626a9a39c43Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5627a9a39c43Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5628a9a39c43Smrgelse 5629a9a39c43Smrg cat 5630a9a39c43Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 5631a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 5632a9a39c43Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;} 5633a9a39c43Smrg { (exit 1); exit 1; }; } 5634a9a39c43Smrg_ACEOF 5635a9a39c43Smrg 5636a9a39c43Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 5637a9a39c43Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5638a9a39c43Smrg# trailing colons and then remove the whole line if VPATH becomes empty 5639a9a39c43Smrg# (actually we leave an empty line to preserve line numbers). 5640a9a39c43Smrgif test "x$srcdir" = x.; then 5641a9a39c43Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5642a9a39c43Smrgs/:*\$(srcdir):*/:/ 5643a9a39c43Smrgs/:*\${srcdir}:*/:/ 5644a9a39c43Smrgs/:*@srcdir@:*/:/ 5645a9a39c43Smrgs/^\([^=]*=[ ]*\):*/\1/ 5646a9a39c43Smrgs/:*$// 5647a9a39c43Smrgs/^[^=]*=[ ]*$// 5648a9a39c43Smrg}' 5649a9a39c43Smrgfi 5650a9a39c43Smrg 5651129be1b7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5652129be1b7Smrgfi # test -n "$CONFIG_FILES" 5653a9a39c43Smrg 5654a9a39c43Smrg# Set up the scripts for CONFIG_HEADERS section. 5655a9a39c43Smrg# No need to generate them if there are no CONFIG_HEADERS. 5656a9a39c43Smrg# This happens for instance with `./config.status Makefile'. 5657a9a39c43Smrgif test -n "$CONFIG_HEADERS"; then 5658a9a39c43Smrgcat >"$tmp/defines.awk" <<\_ACAWK || 5659129be1b7SmrgBEGIN { 5660a9a39c43Smrg_ACEOF 5661a9a39c43Smrg 5662a9a39c43Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 5663a9a39c43Smrg# here-document in config.status, that substitutes the proper values into 5664a9a39c43Smrg# config.h.in to produce config.h. 5665a9a39c43Smrg 5666a9a39c43Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 5667a9a39c43Smrg# handling of long lines. 5668a9a39c43Smrgac_delim='%!_!# ' 5669a9a39c43Smrgfor ac_last_try in false false :; do 5670a9a39c43Smrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5671a9a39c43Smrg if test -z "$ac_t"; then 5672a9a39c43Smrg break 5673a9a39c43Smrg elif $ac_last_try; then 5674a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 5675a9a39c43Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 5676a9a39c43Smrg { (exit 1); exit 1; }; } 5677a9a39c43Smrg else 5678a9a39c43Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5679a9a39c43Smrg fi 5680a9a39c43Smrgdone 5681a9a39c43Smrg 5682a9a39c43Smrg# For the awk script, D is an array of macro values keyed by name, 5683a9a39c43Smrg# likewise P contains macro parameters if any. Preserve backslash 5684a9a39c43Smrg# newline sequences. 5685a9a39c43Smrg 5686a9a39c43Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5687a9a39c43Smrgsed -n ' 5688a9a39c43Smrgs/.\{148\}/&'"$ac_delim"'/g 5689a9a39c43Smrgt rset 5690a9a39c43Smrg:rset 5691a9a39c43Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 5692a9a39c43Smrgt def 5693a9a39c43Smrgd 5694a9a39c43Smrg:def 5695a9a39c43Smrgs/\\$// 5696a9a39c43Smrgt bsnl 5697a9a39c43Smrgs/["\\]/\\&/g 5698a9a39c43Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5699a9a39c43SmrgD["\1"]=" \3"/p 5700a9a39c43Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5701a9a39c43Smrgd 5702a9a39c43Smrg:bsnl 5703a9a39c43Smrgs/["\\]/\\&/g 5704a9a39c43Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5705a9a39c43SmrgD["\1"]=" \3\\\\\\n"\\/p 5706a9a39c43Smrgt cont 5707a9a39c43Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5708a9a39c43Smrgt cont 5709a9a39c43Smrgd 5710a9a39c43Smrg:cont 5711a9a39c43Smrgn 5712a9a39c43Smrgs/.\{148\}/&'"$ac_delim"'/g 5713a9a39c43Smrgt clear 5714a9a39c43Smrg:clear 5715a9a39c43Smrgs/\\$// 5716a9a39c43Smrgt bsnlc 5717a9a39c43Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 5718a9a39c43Smrgd 5719a9a39c43Smrg:bsnlc 5720a9a39c43Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5721a9a39c43Smrgb cont 5722a9a39c43Smrg' <confdefs.h | sed ' 5723a9a39c43Smrgs/'"$ac_delim"'/"\\\ 5724a9a39c43Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 5725a9a39c43Smrg 5726a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5727a9a39c43Smrg for (key in D) D_is_set[key] = 1 5728a9a39c43Smrg FS = "" 5729a9a39c43Smrg} 5730a9a39c43Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5731a9a39c43Smrg line = \$ 0 5732a9a39c43Smrg split(line, arg, " ") 5733a9a39c43Smrg if (arg[1] == "#") { 5734a9a39c43Smrg defundef = arg[2] 5735a9a39c43Smrg mac1 = arg[3] 5736a9a39c43Smrg } else { 5737a9a39c43Smrg defundef = substr(arg[1], 2) 5738a9a39c43Smrg mac1 = arg[2] 5739a9a39c43Smrg } 5740a9a39c43Smrg split(mac1, mac2, "(") #) 5741a9a39c43Smrg macro = mac2[1] 5742a9a39c43Smrg prefix = substr(line, 1, index(line, defundef) - 1) 5743a9a39c43Smrg if (D_is_set[macro]) { 5744a9a39c43Smrg # Preserve the white space surrounding the "#". 5745a9a39c43Smrg print prefix "define", macro P[macro] D[macro] 5746a9a39c43Smrg next 5747a9a39c43Smrg } else { 5748a9a39c43Smrg # Replace #undef with comments. This is necessary, for example, 5749a9a39c43Smrg # in the case of _POSIX_SOURCE, which is predefined and required 5750a9a39c43Smrg # on some systems where configure will not decide to define it. 5751a9a39c43Smrg if (defundef == "undef") { 5752a9a39c43Smrg print "/*", prefix defundef, macro, "*/" 5753a9a39c43Smrg next 5754a9a39c43Smrg } 5755a9a39c43Smrg } 5756a9a39c43Smrg} 5757a9a39c43Smrg{ print } 5758a9a39c43Smrg_ACAWK 5759a9a39c43Smrg_ACEOF 5760a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5761a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 5762a9a39c43Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 5763a9a39c43Smrg { (exit 1); exit 1; }; } 5764a9a39c43Smrgfi # test -n "$CONFIG_HEADERS" 5765a9a39c43Smrg 5766a9a39c43Smrg 5767a9a39c43Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 5768a9a39c43Smrgshift 5769a9a39c43Smrgfor ac_tag 5770a9a39c43Smrgdo 5771a9a39c43Smrg case $ac_tag in 5772a9a39c43Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 5773a9a39c43Smrg esac 5774a9a39c43Smrg case $ac_mode$ac_tag in 5775a9a39c43Smrg :[FHL]*:*);; 5776a9a39c43Smrg :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 5777a9a39c43Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 5778a9a39c43Smrg { (exit 1); exit 1; }; };; 5779a9a39c43Smrg :[FH]-) ac_tag=-:-;; 5780a9a39c43Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5781a9a39c43Smrg esac 5782a9a39c43Smrg ac_save_IFS=$IFS 5783a9a39c43Smrg IFS=: 5784a9a39c43Smrg set x $ac_tag 5785a9a39c43Smrg IFS=$ac_save_IFS 5786a9a39c43Smrg shift 5787a9a39c43Smrg ac_file=$1 5788a9a39c43Smrg shift 5789a9a39c43Smrg 5790a9a39c43Smrg case $ac_mode in 5791a9a39c43Smrg :L) ac_source=$1;; 5792a9a39c43Smrg :[FH]) 5793a9a39c43Smrg ac_file_inputs= 5794a9a39c43Smrg for ac_f 5795a9a39c43Smrg do 5796a9a39c43Smrg case $ac_f in 5797a9a39c43Smrg -) ac_f="$tmp/stdin";; 5798a9a39c43Smrg *) # Look for the file first in the build tree, then in the source tree 5799a9a39c43Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 5800a9a39c43Smrg # because $ac_f cannot contain `:'. 5801a9a39c43Smrg test -f "$ac_f" || 5802a9a39c43Smrg case $ac_f in 5803a9a39c43Smrg [\\/$]*) false;; 5804a9a39c43Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5805a9a39c43Smrg esac || 5806a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 5807a9a39c43Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 5808a9a39c43Smrg { (exit 1); exit 1; }; };; 5809a9a39c43Smrg esac 5810a9a39c43Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5811a9a39c43Smrg ac_file_inputs="$ac_file_inputs '$ac_f'" 5812a9a39c43Smrg done 5813a9a39c43Smrg 5814a9a39c43Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 5815a9a39c43Smrg # use $as_me), people would be surprised to read: 5816a9a39c43Smrg # /* config.h. Generated by config.status. */ 5817a9a39c43Smrg configure_input='Generated from '` 5818a9a39c43Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5819a9a39c43Smrg `' by configure.' 5820a9a39c43Smrg if test x"$ac_file" != x-; then 5821a9a39c43Smrg configure_input="$ac_file. $configure_input" 5822a9a39c43Smrg { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 5823a9a39c43Smrg$as_echo "$as_me: creating $ac_file" >&6;} 5824a9a39c43Smrg fi 5825a9a39c43Smrg # Neutralize special characters interpreted by sed in replacement strings. 5826a9a39c43Smrg case $configure_input in #( 5827a9a39c43Smrg *\&* | *\|* | *\\* ) 5828a9a39c43Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 5829a9a39c43Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 5830a9a39c43Smrg *) ac_sed_conf_input=$configure_input;; 5831a9a39c43Smrg esac 5832a9a39c43Smrg 5833a9a39c43Smrg case $ac_tag in 5834a9a39c43Smrg *:-:* | *:-) cat >"$tmp/stdin" \ 5835a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 5836a9a39c43Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 5837a9a39c43Smrg { (exit 1); exit 1; }; } ;; 5838a9a39c43Smrg esac 5839129be1b7Smrg ;; 5840129be1b7Smrg esac 5841a9a39c43Smrg 5842129be1b7Smrg ac_dir=`$as_dirname -- "$ac_file" || 5843129be1b7Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5844129be1b7Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 5845a9a39c43Smrg X"$ac_file" : 'X\(//\)$' \| \ 5846a9a39c43Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5847a9a39c43Smrg$as_echo X"$ac_file" | 5848a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5849a9a39c43Smrg s//\1/ 5850a9a39c43Smrg q 5851a9a39c43Smrg } 5852a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 5853a9a39c43Smrg s//\1/ 5854a9a39c43Smrg q 5855a9a39c43Smrg } 5856a9a39c43Smrg /^X\(\/\/\)$/{ 5857a9a39c43Smrg s//\1/ 5858a9a39c43Smrg q 5859a9a39c43Smrg } 5860a9a39c43Smrg /^X\(\/\).*/{ 5861a9a39c43Smrg s//\1/ 5862a9a39c43Smrg q 5863a9a39c43Smrg } 5864a9a39c43Smrg s/.*/./; q'` 5865a9a39c43Smrg { as_dir="$ac_dir" 5866a9a39c43Smrg case $as_dir in #( 5867a9a39c43Smrg -*) as_dir=./$as_dir;; 5868a9a39c43Smrg esac 5869129be1b7Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 5870a9a39c43Smrg as_dirs= 5871a9a39c43Smrg while :; do 5872a9a39c43Smrg case $as_dir in #( 5873a9a39c43Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5874a9a39c43Smrg *) as_qdir=$as_dir;; 5875a9a39c43Smrg esac 5876a9a39c43Smrg as_dirs="'$as_qdir' $as_dirs" 5877129be1b7Smrg as_dir=`$as_dirname -- "$as_dir" || 5878129be1b7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5879129be1b7Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5880a9a39c43Smrg X"$as_dir" : 'X\(//\)$' \| \ 5881a9a39c43Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5882a9a39c43Smrg$as_echo X"$as_dir" | 5883a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5884a9a39c43Smrg s//\1/ 5885a9a39c43Smrg q 5886a9a39c43Smrg } 5887a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 5888a9a39c43Smrg s//\1/ 5889a9a39c43Smrg q 5890a9a39c43Smrg } 5891a9a39c43Smrg /^X\(\/\/\)$/{ 5892a9a39c43Smrg s//\1/ 5893a9a39c43Smrg q 5894a9a39c43Smrg } 5895a9a39c43Smrg /^X\(\/\).*/{ 5896a9a39c43Smrg s//\1/ 5897a9a39c43Smrg q 5898a9a39c43Smrg } 5899a9a39c43Smrg s/.*/./; q'` 5900129be1b7Smrg test -d "$as_dir" && break 5901a9a39c43Smrg done 5902a9a39c43Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5903a9a39c43Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 5904129be1b7Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 5905129be1b7Smrg { (exit 1); exit 1; }; }; } 5906129be1b7Smrg ac_builddir=. 5907a9a39c43Smrg 5908a9a39c43Smrgcase "$ac_dir" in 5909a9a39c43Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5910a9a39c43Smrg*) 5911a9a39c43Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5912a9a39c43Smrg # A ".." for each directory in $ac_dir_suffix. 5913a9a39c43Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5914a9a39c43Smrg case $ac_top_builddir_sub in 5915a9a39c43Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5916a9a39c43Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5917a9a39c43Smrg esac ;; 5918a9a39c43Smrgesac 5919a9a39c43Smrgac_abs_top_builddir=$ac_pwd 5920a9a39c43Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 5921a9a39c43Smrg# for backward compatibility: 5922129be1b7Smrgac_top_builddir=$ac_top_build_prefix 5923129be1b7Smrg 5924a9a39c43Smrgcase $srcdir in 5925129be1b7Smrg .) # We are building in place. 5926a9a39c43Smrg ac_srcdir=. 5927a9a39c43Smrg ac_top_srcdir=$ac_top_builddir_sub 5928a9a39c43Smrg ac_abs_top_srcdir=$ac_pwd ;; 5929129be1b7Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 5930a9a39c43Smrg ac_srcdir=$srcdir$ac_dir_suffix; 5931a9a39c43Smrg ac_top_srcdir=$srcdir 5932a9a39c43Smrg ac_abs_top_srcdir=$srcdir ;; 5933a9a39c43Smrg *) # Relative name. 5934a9a39c43Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5935a9a39c43Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 5936129be1b7Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5937a9a39c43Smrgesac 5938129be1b7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5939129be1b7Smrg 5940a9a39c43Smrg 5941a9a39c43Smrg case $ac_mode in 5942a9a39c43Smrg :F) 5943a9a39c43Smrg # 5944a9a39c43Smrg # CONFIG_FILE 5945129be1b7Smrg # 5946129be1b7Smrg 5947129be1b7Smrg case $INSTALL in 5948a9a39c43Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5949a9a39c43Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 5950a9a39c43Smrg esac 5951a9a39c43Smrg ac_MKDIR_P=$MKDIR_P 5952a9a39c43Smrg case $MKDIR_P in 5953a9a39c43Smrg [\\/$]* | ?:[\\/]* ) ;; 5954129be1b7Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 5955a9a39c43Smrg esac 5956129be1b7Smrg_ACEOF 5957a9a39c43Smrg 5958a9a39c43Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5959a9a39c43Smrg# If the template does not know about datarootdir, expand it. 5960a9a39c43Smrg# FIXME: This hack should be removed a few years after 2.60. 5961a9a39c43Smrgac_datarootdir_hack=; ac_datarootdir_seen= 5962a9a39c43Smrg 5963a9a39c43Smrgac_sed_dataroot=' 5964a9a39c43Smrg/datarootdir/ { 5965a9a39c43Smrg p 5966a9a39c43Smrg q 5967a9a39c43Smrg} 5968a9a39c43Smrg/@datadir@/p 5969a9a39c43Smrg/@docdir@/p 5970a9a39c43Smrg/@infodir@/p 5971a9a39c43Smrg/@localedir@/p 5972a9a39c43Smrg/@mandir@/p 5973a9a39c43Smrg' 5974a9a39c43Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5975a9a39c43Smrg*datarootdir*) ac_datarootdir_seen=yes;; 5976a9a39c43Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5977a9a39c43Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5978a9a39c43Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5979a9a39c43Smrg_ACEOF 5980a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5981a9a39c43Smrg ac_datarootdir_hack=' 5982a9a39c43Smrg s&@datadir@&$datadir&g 5983a9a39c43Smrg s&@docdir@&$docdir&g 5984a9a39c43Smrg s&@infodir@&$infodir&g 5985a9a39c43Smrg s&@localedir@&$localedir&g 5986a9a39c43Smrg s&@mandir@&$mandir&g 5987a9a39c43Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 5988129be1b7Smrgesac 5989a9a39c43Smrg_ACEOF 5990a9a39c43Smrg 5991a9a39c43Smrg# Neutralize VPATH when `$srcdir' = `.'. 5992a9a39c43Smrg# Shell code in configure.ac might set extrasub. 5993a9a39c43Smrg# FIXME: do we really want to maintain this feature? 5994a9a39c43Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5995129be1b7Smrgac_sed_extra="$ac_vpsub 5996129be1b7Smrg$extrasub 5997a9a39c43Smrg_ACEOF 5998129be1b7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5999129be1b7Smrg:t 6000a9a39c43Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6001a9a39c43Smrgs|@configure_input@|$ac_sed_conf_input|;t t 6002a9a39c43Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6003a9a39c43Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6004a9a39c43Smrgs&@srcdir@&$ac_srcdir&;t t 6005a9a39c43Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6006a9a39c43Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 6007a9a39c43Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6008a9a39c43Smrgs&@builddir@&$ac_builddir&;t t 6009a9a39c43Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 6010a9a39c43Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6011a9a39c43Smrgs&@INSTALL@&$ac_INSTALL&;t t 6012a9a39c43Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6013a9a39c43Smrg$ac_datarootdir_hack 6014a9a39c43Smrg" 6015a9a39c43Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6016a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6017a9a39c43Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6018129be1b7Smrg { (exit 1); exit 1; }; } 6019a9a39c43Smrg 6020a9a39c43Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6021a9a39c43Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6022a9a39c43Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6023a9a39c43Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6024a9a39c43Smrgwhich seems to be undefined. Please make sure it is defined." >&5 6025a9a39c43Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6026129be1b7Smrgwhich seems to be undefined. Please make sure it is defined." >&2;} 6027a9a39c43Smrg 6028129be1b7Smrg rm -f "$tmp/stdin" 6029a9a39c43Smrg case $ac_file in 6030a9a39c43Smrg -) cat "$tmp/out" && rm -f "$tmp/out";; 6031a9a39c43Smrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6032a9a39c43Smrg esac \ 6033a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6034129be1b7Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6035a9a39c43Smrg { (exit 1); exit 1; }; } 6036a9a39c43Smrg ;; 6037a9a39c43Smrg :H) 6038a9a39c43Smrg # 6039a9a39c43Smrg # CONFIG_HEADER 6040129be1b7Smrg # 6041a9a39c43Smrg if test x"$ac_file" != x-; then 6042a9a39c43Smrg { 6043a9a39c43Smrg $as_echo "/* $configure_input */" \ 6044a9a39c43Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6045a9a39c43Smrg } >"$tmp/config.h" \ 6046a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6047a9a39c43Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6048a9a39c43Smrg { (exit 1); exit 1; }; } 6049a9a39c43Smrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6050a9a39c43Smrg { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6051129be1b7Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6052a9a39c43Smrg else 6053a9a39c43Smrg rm -f "$ac_file" 6054a9a39c43Smrg mv "$tmp/config.h" "$ac_file" \ 6055a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 6056a9a39c43Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 6057129be1b7Smrg { (exit 1); exit 1; }; } 6058129be1b7Smrg fi 6059a9a39c43Smrg else 6060a9a39c43Smrg $as_echo "/* $configure_input */" \ 6061a9a39c43Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6062a9a39c43Smrg || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 6063a9a39c43Smrg$as_echo "$as_me: error: could not create -" >&2;} 6064129be1b7Smrg { (exit 1); exit 1; }; } 6065a9a39c43Smrg fi 6066a9a39c43Smrg# Compute "$ac_file"'s index in $config_headers. 6067129be1b7Smrg_am_arg="$ac_file" 6068129be1b7Smrg_am_stamp_count=1 6069129be1b7Smrgfor _am_header in $config_headers :; do 6070a9a39c43Smrg case $_am_header in 6071129be1b7Smrg $_am_arg | $_am_arg:* ) 6072129be1b7Smrg break ;; 6073129be1b7Smrg * ) 6074129be1b7Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6075129be1b7Smrg esac 6076a9a39c43Smrgdone 6077a9a39c43Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6078a9a39c43Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6079a9a39c43Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6080a9a39c43Smrg X"$_am_arg" : 'X\(//\)$' \| \ 6081a9a39c43Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6082a9a39c43Smrg$as_echo X"$_am_arg" | 6083a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6084a9a39c43Smrg s//\1/ 6085a9a39c43Smrg q 6086a9a39c43Smrg } 6087a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 6088a9a39c43Smrg s//\1/ 6089a9a39c43Smrg q 6090a9a39c43Smrg } 6091a9a39c43Smrg /^X\(\/\/\)$/{ 6092a9a39c43Smrg s//\1/ 6093a9a39c43Smrg q 6094a9a39c43Smrg } 6095a9a39c43Smrg /^X\(\/\).*/{ 6096a9a39c43Smrg s//\1/ 6097a9a39c43Smrg q 6098a9a39c43Smrg } 6099a9a39c43Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 6100a9a39c43Smrg ;; 6101a9a39c43Smrg 6102a9a39c43Smrg :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 6103a9a39c43Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6104a9a39c43Smrg ;; 6105a9a39c43Smrg esac 6106a9a39c43Smrg 6107a9a39c43Smrg 6108a9a39c43Smrg case $ac_file$ac_mode in 6109a9a39c43Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6110a9a39c43Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6111a9a39c43Smrg # are listed without --file. Let's play safe and only enable the eval 6112a9a39c43Smrg # if we detect the quoting. 6113a9a39c43Smrg case $CONFIG_FILES in 6114a9a39c43Smrg *\'*) eval set x "$CONFIG_FILES" ;; 6115a9a39c43Smrg *) set x $CONFIG_FILES ;; 6116a9a39c43Smrg esac 6117a9a39c43Smrg shift 6118a9a39c43Smrg for mf 6119a9a39c43Smrg do 6120a9a39c43Smrg # Strip MF so we end up with the name of the file. 6121a9a39c43Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6122a9a39c43Smrg # Check whether this is an Automake generated Makefile or not. 6123a9a39c43Smrg # We used to match only the files named `Makefile.in', but 6124a9a39c43Smrg # some people rename them; so instead we look at the file content. 6125a9a39c43Smrg # Grep'ing the first line is not enough: some people post-process 6126a9a39c43Smrg # each Makefile.in and add a new line on top of each file to say so. 6127a9a39c43Smrg # Grep'ing the whole file is not good either: AIX grep has a line 6128a9a39c43Smrg # limit of 2048, but all sed's we know have understand at least 4000. 6129a9a39c43Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6130a9a39c43Smrg dirpart=`$as_dirname -- "$mf" || 6131a9a39c43Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6132a9a39c43Smrg X"$mf" : 'X\(//\)[^/]' \| \ 6133a9a39c43Smrg X"$mf" : 'X\(//\)$' \| \ 6134a9a39c43Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6135a9a39c43Smrg$as_echo X"$mf" | 6136a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6137a9a39c43Smrg s//\1/ 6138a9a39c43Smrg q 6139a9a39c43Smrg } 6140a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 6141a9a39c43Smrg s//\1/ 6142a9a39c43Smrg q 6143a9a39c43Smrg } 6144a9a39c43Smrg /^X\(\/\/\)$/{ 6145a9a39c43Smrg s//\1/ 6146a9a39c43Smrg q 6147a9a39c43Smrg } 6148a9a39c43Smrg /^X\(\/\).*/{ 6149a9a39c43Smrg s//\1/ 6150a9a39c43Smrg q 6151a9a39c43Smrg } 6152a9a39c43Smrg s/.*/./; q'` 6153a9a39c43Smrg else 6154a9a39c43Smrg continue 6155a9a39c43Smrg fi 6156a9a39c43Smrg # Extract the definition of DEPDIR, am__include, and am__quote 6157a9a39c43Smrg # from the Makefile without running `make'. 6158a9a39c43Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6159a9a39c43Smrg test -z "$DEPDIR" && continue 6160a9a39c43Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6161a9a39c43Smrg test -z "am__include" && continue 6162a9a39c43Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6163a9a39c43Smrg # When using ansi2knr, U may be empty or an underscore; expand it 6164a9a39c43Smrg U=`sed -n 's/^U = //p' < "$mf"` 6165a9a39c43Smrg # Find all dependency output files, they are included files with 6166a9a39c43Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6167a9a39c43Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 6168a9a39c43Smrg # expansion. 6169a9a39c43Smrg for file in `sed -n " 6170a9a39c43Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6171a9a39c43Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6172a9a39c43Smrg # Make sure the directory exists. 6173a9a39c43Smrg test -f "$dirpart/$file" && continue 6174a9a39c43Smrg fdir=`$as_dirname -- "$file" || 6175a9a39c43Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6176a9a39c43Smrg X"$file" : 'X\(//\)[^/]' \| \ 6177a9a39c43Smrg X"$file" : 'X\(//\)$' \| \ 6178a9a39c43Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6179a9a39c43Smrg$as_echo X"$file" | 6180a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6181a9a39c43Smrg s//\1/ 6182a9a39c43Smrg q 6183a9a39c43Smrg } 6184a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 6185a9a39c43Smrg s//\1/ 6186a9a39c43Smrg q 6187a9a39c43Smrg } 6188a9a39c43Smrg /^X\(\/\/\)$/{ 6189a9a39c43Smrg s//\1/ 6190a9a39c43Smrg q 6191a9a39c43Smrg } 6192a9a39c43Smrg /^X\(\/\).*/{ 6193a9a39c43Smrg s//\1/ 6194a9a39c43Smrg q 6195a9a39c43Smrg } 6196a9a39c43Smrg s/.*/./; q'` 6197a9a39c43Smrg { as_dir=$dirpart/$fdir 6198a9a39c43Smrg case $as_dir in #( 6199a9a39c43Smrg -*) as_dir=./$as_dir;; 6200a9a39c43Smrg esac 6201a9a39c43Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6202a9a39c43Smrg as_dirs= 6203a9a39c43Smrg while :; do 6204a9a39c43Smrg case $as_dir in #( 6205a9a39c43Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6206a9a39c43Smrg *) as_qdir=$as_dir;; 6207a9a39c43Smrg esac 6208a9a39c43Smrg as_dirs="'$as_qdir' $as_dirs" 6209a9a39c43Smrg as_dir=`$as_dirname -- "$as_dir" || 6210a9a39c43Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6211a9a39c43Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 6212a9a39c43Smrg X"$as_dir" : 'X\(//\)$' \| \ 6213a9a39c43Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6214a9a39c43Smrg$as_echo X"$as_dir" | 6215a9a39c43Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6216a9a39c43Smrg s//\1/ 6217a9a39c43Smrg q 6218a9a39c43Smrg } 6219a9a39c43Smrg /^X\(\/\/\)[^/].*/{ 6220a9a39c43Smrg s//\1/ 6221a9a39c43Smrg q 6222a9a39c43Smrg } 6223a9a39c43Smrg /^X\(\/\/\)$/{ 6224a9a39c43Smrg s//\1/ 6225a9a39c43Smrg q 6226a9a39c43Smrg } 6227a9a39c43Smrg /^X\(\/\).*/{ 6228a9a39c43Smrg s//\1/ 6229a9a39c43Smrg q 6230a9a39c43Smrg } 6231a9a39c43Smrg s/.*/./; q'` 6232a9a39c43Smrg test -d "$as_dir" && break 6233a9a39c43Smrg done 6234a9a39c43Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 6235a9a39c43Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6236a9a39c43Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 6237a9a39c43Smrg { (exit 1); exit 1; }; }; } 6238a9a39c43Smrg # echo "creating $dirpart/$file" 6239a9a39c43Smrg echo '# dummy' > "$dirpart/$file" 6240a9a39c43Smrg done 6241a9a39c43Smrg done 6242a9a39c43Smrg} 6243a9a39c43Smrg ;; 6244a9a39c43Smrg 6245a9a39c43Smrg esac 6246129be1b7Smrgdone # for ac_tag 6247129be1b7Smrg 6248129be1b7Smrg 6249129be1b7Smrg{ (exit 0); exit 0; } 6250129be1b7Smrg_ACEOF 6251129be1b7Smrgchmod +x $CONFIG_STATUS 6252129be1b7Smrgac_clean_files=$ac_clean_files_save 6253a9a39c43Smrg 6254a9a39c43Smrgtest $ac_write_fail = 0 || 6255a9a39c43Smrg { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 6256a9a39c43Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 6257a9a39c43Smrg { (exit 1); exit 1; }; } 6258129be1b7Smrg 6259129be1b7Smrg 6260129be1b7Smrg# configure is writing to config.log, and then calls config.status. 6261129be1b7Smrg# config.status does its own redirection, appending to config.log. 6262129be1b7Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 6263129be1b7Smrg# by configure, so config.status won't be able to write to it; its 6264129be1b7Smrg# output is simply discarded. So we exec the FD to /dev/null, 6265129be1b7Smrg# effectively closing config.log, so it can be properly (re)opened and 6266129be1b7Smrg# appended to by config.status. When coming back to configure, we 6267129be1b7Smrg# need to make the FD available again. 6268129be1b7Smrgif test "$no_create" != yes; then 6269129be1b7Smrg ac_cs_success=: 6270129be1b7Smrg ac_config_status_args= 6271129be1b7Smrg test "$silent" = yes && 6272129be1b7Smrg ac_config_status_args="$ac_config_status_args --quiet" 6273129be1b7Smrg exec 5>/dev/null 6274129be1b7Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6275129be1b7Smrg exec 5>>config.log 6276129be1b7Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6277129be1b7Smrg # would make configure fail if this is the last instruction. 6278129be1b7Smrg $ac_cs_success || { (exit 1); exit 1; } 6279a9a39c43Smrgfi 6280a9a39c43Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6281a9a39c43Smrg { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6282a9a39c43Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6283129be1b7Smrgfi 6284 6285