configure revision 63165362
10eb10989Smrg#! /bin/sh 20eb10989Smrg# Guess values for system-dependent variables and create Makefiles. 363165362Smrg# Generated by GNU Autoconf 2.63 for makedepend 1.0.2. 40eb10989Smrg# 50eb10989Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 60eb10989Smrg# 763165362Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 863165362Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 90eb10989Smrg# This configure script is free software; the Free Software Foundation 100eb10989Smrg# gives unlimited permission to copy, distribute and modify it. 110eb10989Smrg## --------------------- ## 120eb10989Smrg## M4sh Initialization. ## 130eb10989Smrg## --------------------- ## 140eb10989Smrg 1563165362Smrg# Be more Bourne compatible 1663165362SmrgDUALCASE=1; export DUALCASE # for MKS sh 170eb10989Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 180eb10989Smrg emulate sh 190eb10989Smrg NULLCMD=: 2063165362Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 210eb10989Smrg # is contrary to our usage. Disable this feature. 220eb10989Smrg alias -g '${1+"$@"}'='"$@"' 2363165362Smrg setopt NO_GLOB_SUBST 2463165362Smrgelse 2563165362Smrg case `(set -o) 2>/dev/null` in 2663165362Smrg *posix*) set -o posix ;; 2763165362Smrgesac 2863165362Smrg 2963165362Smrgfi 3063165362Smrg 3163165362Smrg 3263165362Smrg 3363165362Smrg 3463165362Smrg# PATH needs CR 3563165362Smrg# Avoid depending upon Character Ranges. 3663165362Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 3763165362Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3863165362Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 3963165362Smrgas_cr_digits='0123456789' 4063165362Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4163165362Smrg 4263165362Smrgas_nl=' 4363165362Smrg' 4463165362Smrgexport as_nl 4563165362Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4663165362Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4763165362Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4863165362Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4963165362Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5063165362Smrg as_echo='printf %s\n' 5163165362Smrg as_echo_n='printf %s' 5263165362Smrgelse 5363165362Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5463165362Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5563165362Smrg as_echo_n='/usr/ucb/echo -n' 5663165362Smrg else 5763165362Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5863165362Smrg as_echo_n_body='eval 5963165362Smrg arg=$1; 6063165362Smrg case $arg in 6163165362Smrg *"$as_nl"*) 6263165362Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6363165362Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6463165362Smrg esac; 6563165362Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6663165362Smrg ' 6763165362Smrg export as_echo_n_body 6863165362Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 6963165362Smrg fi 7063165362Smrg export as_echo_body 7163165362Smrg as_echo='sh -c $as_echo_body as_echo' 7263165362Smrgfi 7363165362Smrg 7463165362Smrg# The user is always right. 7563165362Smrgif test "${PATH_SEPARATOR+set}" != set; then 7663165362Smrg PATH_SEPARATOR=: 7763165362Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7863165362Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7963165362Smrg PATH_SEPARATOR=';' 8063165362Smrg } 810eb10989Smrgfi 820eb10989Smrg 830eb10989Smrg# Support unset when possible. 840eb10989Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 850eb10989Smrg as_unset=unset 860eb10989Smrgelse 870eb10989Smrg as_unset=false 880eb10989Smrgfi 890eb10989Smrg 900eb10989Smrg 9163165362Smrg# IFS 9263165362Smrg# We need space, tab and new line, in precisely that order. Quoting is 9363165362Smrg# there to prevent editors from complaining about space-tab. 9463165362Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9563165362Smrg# splitting by setting IFS to empty value.) 9663165362SmrgIFS=" "" $as_nl" 9763165362Smrg 9863165362Smrg# Find who we are. Look in the path if we contain no directory separator. 9963165362Smrgcase $0 in 10063165362Smrg *[\\/]* ) as_myself=$0 ;; 10163165362Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10263165362Smrgfor as_dir in $PATH 10363165362Smrgdo 10463165362Smrg IFS=$as_save_IFS 10563165362Smrg test -z "$as_dir" && as_dir=. 10663165362Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10763165362Smrgdone 10863165362SmrgIFS=$as_save_IFS 10963165362Smrg 11063165362Smrg ;; 11163165362Smrgesac 11263165362Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11363165362Smrg# in which case we are not to be found in the path. 11463165362Smrgif test "x$as_myself" = x; then 11563165362Smrg as_myself=$0 11663165362Smrgfi 11763165362Smrgif test ! -f "$as_myself"; then 11863165362Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11963165362Smrg { (exit 1); exit 1; } 12063165362Smrgfi 12163165362Smrg 1220eb10989Smrg# Work around bugs in pre-3.0 UWIN ksh. 12363165362Smrgfor as_var in ENV MAIL MAILPATH 12463165362Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12563165362Smrgdone 1260eb10989SmrgPS1='$ ' 1270eb10989SmrgPS2='> ' 1280eb10989SmrgPS4='+ ' 1290eb10989Smrg 1300eb10989Smrg# NLS nuisances. 13163165362SmrgLC_ALL=C 13263165362Smrgexport LC_ALL 13363165362SmrgLANGUAGE=C 13463165362Smrgexport LANGUAGE 1350eb10989Smrg 1360eb10989Smrg# Required to use basename. 13763165362Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 13863165362Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 1390eb10989Smrg as_expr=expr 1400eb10989Smrgelse 1410eb10989Smrg as_expr=false 1420eb10989Smrgfi 1430eb10989Smrg 14463165362Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 1450eb10989Smrg as_basename=basename 1460eb10989Smrgelse 1470eb10989Smrg as_basename=false 1480eb10989Smrgfi 1490eb10989Smrg 1500eb10989Smrg 1510eb10989Smrg# Name of the executable. 15263165362Smrgas_me=`$as_basename -- "$0" || 1530eb10989Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 1540eb10989Smrg X"$0" : 'X\(//\)$' \| \ 15563165362Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 15663165362Smrg$as_echo X/"$0" | 15763165362Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 15863165362Smrg s//\1/ 15963165362Smrg q 16063165362Smrg } 16163165362Smrg /^X\/\(\/\/\)$/{ 16263165362Smrg s//\1/ 16363165362Smrg q 16463165362Smrg } 16563165362Smrg /^X\/\(\/\).*/{ 16663165362Smrg s//\1/ 16763165362Smrg q 16863165362Smrg } 16963165362Smrg s/.*/./; q'` 1700eb10989Smrg 17163165362Smrg# CDPATH. 17263165362Smrg$as_unset CDPATH 1730eb10989Smrg 1740eb10989Smrg 17563165362Smrgif test "x$CONFIG_SHELL" = x; then 17663165362Smrg if (eval ":") 2>/dev/null; then 17763165362Smrg as_have_required=yes 17863165362Smrgelse 17963165362Smrg as_have_required=no 1800eb10989Smrgfi 1810eb10989Smrg 18263165362Smrg if test $as_have_required = yes && (eval ": 18363165362Smrg(as_func_return () { 18463165362Smrg (exit \$1) 18563165362Smrg} 18663165362Smrgas_func_success () { 18763165362Smrg as_func_return 0 18863165362Smrg} 18963165362Smrgas_func_failure () { 19063165362Smrg as_func_return 1 19163165362Smrg} 19263165362Smrgas_func_ret_success () { 19363165362Smrg return 0 19463165362Smrg} 19563165362Smrgas_func_ret_failure () { 19663165362Smrg return 1 19763165362Smrg} 1980eb10989Smrg 19963165362Smrgexitcode=0 20063165362Smrgif as_func_success; then 20163165362Smrg : 20263165362Smrgelse 20363165362Smrg exitcode=1 20463165362Smrg echo as_func_success failed. 20563165362Smrgfi 2060eb10989Smrg 20763165362Smrgif as_func_failure; then 20863165362Smrg exitcode=1 20963165362Smrg echo as_func_failure succeeded. 21063165362Smrgfi 21163165362Smrg 21263165362Smrgif as_func_ret_success; then 21363165362Smrg : 21463165362Smrgelse 21563165362Smrg exitcode=1 21663165362Smrg echo as_func_ret_success failed. 21763165362Smrgfi 21863165362Smrg 21963165362Smrgif as_func_ret_failure; then 22063165362Smrg exitcode=1 22163165362Smrg echo as_func_ret_failure succeeded. 22263165362Smrgfi 22363165362Smrg 22463165362Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 22563165362Smrg : 22663165362Smrgelse 22763165362Smrg exitcode=1 22863165362Smrg echo positional parameters were not saved. 22963165362Smrgfi 23063165362Smrg 23163165362Smrgtest \$exitcode = 0) || { (exit 1); exit 1; } 23263165362Smrg 23363165362Smrg( 23463165362Smrg as_lineno_1=\$LINENO 23563165362Smrg as_lineno_2=\$LINENO 23663165362Smrg test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 23763165362Smrg test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 23863165362Smrg") 2> /dev/null; then 23963165362Smrg : 24063165362Smrgelse 24163165362Smrg as_candidate_shells= 2420eb10989Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2430eb10989Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2440eb10989Smrgdo 2450eb10989Smrg IFS=$as_save_IFS 2460eb10989Smrg test -z "$as_dir" && as_dir=. 24763165362Smrg case $as_dir in 2480eb10989Smrg /*) 24963165362Smrg for as_base in sh bash ksh sh5; do 25063165362Smrg as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 25163165362Smrg done;; 25263165362Smrg esac 25363165362Smrgdone 25463165362SmrgIFS=$as_save_IFS 25563165362Smrg 25663165362Smrg 25763165362Smrg for as_shell in $as_candidate_shells $SHELL; do 25863165362Smrg # Try only shells that exist, to save several forks. 25963165362Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 26063165362Smrg { ("$as_shell") 2> /dev/null <<\_ASEOF 26163165362Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26263165362Smrg emulate sh 26363165362Smrg NULLCMD=: 26463165362Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26563165362Smrg # is contrary to our usage. Disable this feature. 26663165362Smrg alias -g '${1+"$@"}'='"$@"' 26763165362Smrg setopt NO_GLOB_SUBST 26863165362Smrgelse 26963165362Smrg case `(set -o) 2>/dev/null` in 27063165362Smrg *posix*) set -o posix ;; 27163165362Smrgesac 27263165362Smrg 27363165362Smrgfi 27463165362Smrg 27563165362Smrg 27663165362Smrg: 27763165362Smrg_ASEOF 27863165362Smrg}; then 27963165362Smrg CONFIG_SHELL=$as_shell 28063165362Smrg as_have_required=yes 28163165362Smrg if { "$as_shell" 2> /dev/null <<\_ASEOF 28263165362Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28363165362Smrg emulate sh 28463165362Smrg NULLCMD=: 28563165362Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28663165362Smrg # is contrary to our usage. Disable this feature. 28763165362Smrg alias -g '${1+"$@"}'='"$@"' 28863165362Smrg setopt NO_GLOB_SUBST 28963165362Smrgelse 29063165362Smrg case `(set -o) 2>/dev/null` in 29163165362Smrg *posix*) set -o posix ;; 29263165362Smrgesac 29363165362Smrg 29463165362Smrgfi 29563165362Smrg 29663165362Smrg 29763165362Smrg: 29863165362Smrg(as_func_return () { 29963165362Smrg (exit $1) 30063165362Smrg} 30163165362Smrgas_func_success () { 30263165362Smrg as_func_return 0 30363165362Smrg} 30463165362Smrgas_func_failure () { 30563165362Smrg as_func_return 1 30663165362Smrg} 30763165362Smrgas_func_ret_success () { 30863165362Smrg return 0 30963165362Smrg} 31063165362Smrgas_func_ret_failure () { 31163165362Smrg return 1 31263165362Smrg} 31363165362Smrg 31463165362Smrgexitcode=0 31563165362Smrgif as_func_success; then 31663165362Smrg : 31763165362Smrgelse 31863165362Smrg exitcode=1 31963165362Smrg echo as_func_success failed. 32063165362Smrgfi 32163165362Smrg 32263165362Smrgif as_func_failure; then 32363165362Smrg exitcode=1 32463165362Smrg echo as_func_failure succeeded. 32563165362Smrgfi 32663165362Smrg 32763165362Smrgif as_func_ret_success; then 32863165362Smrg : 32963165362Smrgelse 33063165362Smrg exitcode=1 33163165362Smrg echo as_func_ret_success failed. 33263165362Smrgfi 33363165362Smrg 33463165362Smrgif as_func_ret_failure; then 33563165362Smrg exitcode=1 33663165362Smrg echo as_func_ret_failure succeeded. 33763165362Smrgfi 33863165362Smrg 33963165362Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then 34063165362Smrg : 34163165362Smrgelse 34263165362Smrg exitcode=1 34363165362Smrg echo positional parameters were not saved. 34463165362Smrgfi 34563165362Smrg 34663165362Smrgtest $exitcode = 0) || { (exit 1); exit 1; } 34763165362Smrg 34863165362Smrg( 3490eb10989Smrg as_lineno_1=$LINENO 3500eb10989Smrg as_lineno_2=$LINENO 3510eb10989Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 35263165362Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 35363165362Smrg 35463165362Smrg_ASEOF 35563165362Smrg}; then 35663165362Smrg break 35763165362Smrgfi 35863165362Smrg 35963165362Smrgfi 36063165362Smrg 36163165362Smrg done 36263165362Smrg 36363165362Smrg if test "x$CONFIG_SHELL" != x; then 36463165362Smrg for as_var in BASH_ENV ENV 36563165362Smrg do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 36663165362Smrg done 36763165362Smrg export CONFIG_SHELL 36863165362Smrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 36963165362Smrgfi 37063165362Smrg 37163165362Smrg 37263165362Smrg if test $as_have_required = no; then 37363165362Smrg echo This script requires a shell more modern than all the 37463165362Smrg echo shells that I found on your system. Please install a 37563165362Smrg echo modern shell, or manually run the script under such a 37663165362Smrg echo shell if you do have one. 37763165362Smrg { (exit 1); exit 1; } 37863165362Smrgfi 37963165362Smrg 38063165362Smrg 38163165362Smrgfi 38263165362Smrg 38363165362Smrgfi 38463165362Smrg 38563165362Smrg 38663165362Smrg 38763165362Smrg(eval "as_func_return () { 38863165362Smrg (exit \$1) 38963165362Smrg} 39063165362Smrgas_func_success () { 39163165362Smrg as_func_return 0 39263165362Smrg} 39363165362Smrgas_func_failure () { 39463165362Smrg as_func_return 1 39563165362Smrg} 39663165362Smrgas_func_ret_success () { 39763165362Smrg return 0 39863165362Smrg} 39963165362Smrgas_func_ret_failure () { 40063165362Smrg return 1 40163165362Smrg} 40263165362Smrg 40363165362Smrgexitcode=0 40463165362Smrgif as_func_success; then 40563165362Smrg : 40663165362Smrgelse 40763165362Smrg exitcode=1 40863165362Smrg echo as_func_success failed. 40963165362Smrgfi 41063165362Smrg 41163165362Smrgif as_func_failure; then 41263165362Smrg exitcode=1 41363165362Smrg echo as_func_failure succeeded. 41463165362Smrgfi 41563165362Smrg 41663165362Smrgif as_func_ret_success; then 41763165362Smrg : 41863165362Smrgelse 41963165362Smrg exitcode=1 42063165362Smrg echo as_func_ret_success failed. 42163165362Smrgfi 42263165362Smrg 42363165362Smrgif as_func_ret_failure; then 42463165362Smrg exitcode=1 42563165362Smrg echo as_func_ret_failure succeeded. 42663165362Smrgfi 42763165362Smrg 42863165362Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 42963165362Smrg : 43063165362Smrgelse 43163165362Smrg exitcode=1 43263165362Smrg echo positional parameters were not saved. 43363165362Smrgfi 43463165362Smrg 43563165362Smrgtest \$exitcode = 0") || { 43663165362Smrg echo No shell found that supports shell functions. 43763165362Smrg echo Please tell bug-autoconf@gnu.org about your system, 43863165362Smrg echo including any error possibly output before this message. 43963165362Smrg echo This can help us improve future autoconf versions. 44063165362Smrg echo Configuration will now proceed without shell functions. 44163165362Smrg} 44263165362Smrg 44363165362Smrg 44463165362Smrg 44563165362Smrg as_lineno_1=$LINENO 44663165362Smrg as_lineno_2=$LINENO 44763165362Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 44863165362Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 4490eb10989Smrg 4500eb10989Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4510eb10989Smrg # uniformly replaced by the line number. The first 'sed' inserts a 45263165362Smrg # line-number line after each line using $LINENO; the second 'sed' 45363165362Smrg # does the real work. The second script uses 'N' to pair each 45463165362Smrg # line-number line with the line containing $LINENO, and appends 45563165362Smrg # trailing '-' during substitution so that $LINENO is not a special 45663165362Smrg # case at line end. 4570eb10989Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 45863165362Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 45963165362Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 46063165362Smrg sed -n ' 46163165362Smrg p 46263165362Smrg /[$]LINENO/= 46363165362Smrg ' <$as_myself | 4640eb10989Smrg sed ' 46563165362Smrg s/[$]LINENO.*/&-/ 46663165362Smrg t lineno 46763165362Smrg b 46863165362Smrg :lineno 4690eb10989Smrg N 47063165362Smrg :loop 47163165362Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4720eb10989Smrg t loop 47363165362Smrg s/-\n.*// 4740eb10989Smrg ' >$as_me.lineno && 47563165362Smrg chmod +x "$as_me.lineno" || 47663165362Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 4770eb10989Smrg { (exit 1); exit 1; }; } 4780eb10989Smrg 4790eb10989Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4800eb10989Smrg # (the dirname of $[0] is not the place where we might find the 48163165362Smrg # original and so on. Autoconf is especially sensitive to this). 48263165362Smrg . "./$as_me.lineno" 4830eb10989Smrg # Exit status is that of the last command. 4840eb10989Smrg exit 4850eb10989Smrg} 4860eb10989Smrg 4870eb10989Smrg 48863165362Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 48963165362Smrg as_dirname=dirname 49063165362Smrgelse 49163165362Smrg as_dirname=false 49263165362Smrgfi 4930eb10989Smrg 49463165362SmrgECHO_C= ECHO_N= ECHO_T= 49563165362Smrgcase `echo -n x` in 49663165362Smrg-n*) 49763165362Smrg case `echo 'x\c'` in 49863165362Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49963165362Smrg *) ECHO_C='\c';; 50063165362Smrg esac;; 50163165362Smrg*) 50263165362Smrg ECHO_N='-n';; 50363165362Smrgesac 50463165362Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 50563165362Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5060eb10989Smrg as_expr=expr 5070eb10989Smrgelse 5080eb10989Smrg as_expr=false 5090eb10989Smrgfi 5100eb10989Smrg 5110eb10989Smrgrm -f conf$$ conf$$.exe conf$$.file 51263165362Smrgif test -d conf$$.dir; then 51363165362Smrg rm -f conf$$.dir/conf$$.file 51463165362Smrgelse 51563165362Smrg rm -f conf$$.dir 51663165362Smrg mkdir conf$$.dir 2>/dev/null 51763165362Smrgfi 51863165362Smrgif (echo >conf$$.file) 2>/dev/null; then 51963165362Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5200eb10989Smrg as_ln_s='ln -s' 52163165362Smrg # ... but there are two gotchas: 52263165362Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52363165362Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52463165362Smrg # In both cases, we have to default to `cp -p'. 52563165362Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52663165362Smrg as_ln_s='cp -p' 52763165362Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 52863165362Smrg as_ln_s=ln 52963165362Smrg else 53063165362Smrg as_ln_s='cp -p' 5310eb10989Smrg fi 5320eb10989Smrgelse 5330eb10989Smrg as_ln_s='cp -p' 5340eb10989Smrgfi 53563165362Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53663165362Smrgrmdir conf$$.dir 2>/dev/null 5370eb10989Smrg 5380eb10989Smrgif mkdir -p . 2>/dev/null; then 5390eb10989Smrg as_mkdir_p=: 5400eb10989Smrgelse 5410eb10989Smrg test -d ./-p && rmdir ./-p 5420eb10989Smrg as_mkdir_p=false 5430eb10989Smrgfi 5440eb10989Smrg 54563165362Smrgif test -x / >/dev/null 2>&1; then 54663165362Smrg as_test_x='test -x' 54763165362Smrgelse 54863165362Smrg if ls -dL / >/dev/null 2>&1; then 54963165362Smrg as_ls_L_option=L 55063165362Smrg else 55163165362Smrg as_ls_L_option= 55263165362Smrg fi 55363165362Smrg as_test_x=' 55463165362Smrg eval sh -c '\'' 55563165362Smrg if test -d "$1"; then 55663165362Smrg test -d "$1/."; 55763165362Smrg else 55863165362Smrg case $1 in 55963165362Smrg -*)set "./$1";; 56063165362Smrg esac; 56163165362Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 56263165362Smrg ???[sx]*):;;*)false;;esac;fi 56363165362Smrg '\'' sh 56463165362Smrg ' 56563165362Smrgfi 56663165362Smrgas_executable_p=$as_test_x 5670eb10989Smrg 5680eb10989Smrg# Sed expression to map a string onto a valid CPP name. 5690eb10989Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5700eb10989Smrg 5710eb10989Smrg# Sed expression to map a string onto a valid variable name. 5720eb10989Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5730eb10989Smrg 5740eb10989Smrg 5750eb10989Smrg 57663165362Smrgexec 7<&0 </dev/null 6>&1 5770eb10989Smrg 5780eb10989Smrg# Name of the host. 5790eb10989Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 5800eb10989Smrg# so uname gets run too. 5810eb10989Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5820eb10989Smrg 5830eb10989Smrg# 5840eb10989Smrg# Initializations. 5850eb10989Smrg# 5860eb10989Smrgac_default_prefix=/usr/local 58763165362Smrgac_clean_files= 5880eb10989Smrgac_config_libobj_dir=. 58963165362SmrgLIBOBJS= 5900eb10989Smrgcross_compiling=no 5910eb10989Smrgsubdirs= 5920eb10989SmrgMFLAGS= 5930eb10989SmrgMAKEFLAGS= 5940eb10989SmrgSHELL=${CONFIG_SHELL-/bin/sh} 5950eb10989Smrg 5960eb10989Smrg# Identity of this package. 5970eb10989SmrgPACKAGE_NAME='makedepend' 5980eb10989SmrgPACKAGE_TARNAME='makedepend' 59963165362SmrgPACKAGE_VERSION='1.0.2' 60063165362SmrgPACKAGE_STRING='makedepend 1.0.2' 6010eb10989SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 6020eb10989Smrg 60363165362Smrg# Factoring default headers for most tests. 60463165362Smrgac_includes_default="\ 60563165362Smrg#include <stdio.h> 60663165362Smrg#ifdef HAVE_SYS_TYPES_H 60763165362Smrg# include <sys/types.h> 60863165362Smrg#endif 60963165362Smrg#ifdef HAVE_SYS_STAT_H 61063165362Smrg# include <sys/stat.h> 61163165362Smrg#endif 61263165362Smrg#ifdef STDC_HEADERS 61363165362Smrg# include <stdlib.h> 61463165362Smrg# include <stddef.h> 61563165362Smrg#else 61663165362Smrg# ifdef HAVE_STDLIB_H 61763165362Smrg# include <stdlib.h> 61863165362Smrg# endif 61963165362Smrg#endif 62063165362Smrg#ifdef HAVE_STRING_H 62163165362Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 62263165362Smrg# include <memory.h> 62363165362Smrg# endif 62463165362Smrg# include <string.h> 62563165362Smrg#endif 62663165362Smrg#ifdef HAVE_STRINGS_H 62763165362Smrg# include <strings.h> 62863165362Smrg#endif 62963165362Smrg#ifdef HAVE_INTTYPES_H 63063165362Smrg# include <inttypes.h> 63163165362Smrg#endif 63263165362Smrg#ifdef HAVE_STDINT_H 63363165362Smrg# include <stdint.h> 63463165362Smrg#endif 63563165362Smrg#ifdef HAVE_UNISTD_H 63663165362Smrg# include <unistd.h> 63763165362Smrg#endif" 63863165362Smrg 63963165362Smrgac_subst_vars='am__EXEEXT_FALSE 64063165362Smrgam__EXEEXT_TRUE 64163165362SmrgLTLIBOBJS 64263165362SmrgLIBOBJS 64363165362SmrgX_LIBS 64463165362SmrgX_CFLAGS 64563165362SmrgPKG_CONFIG 64663165362SmrgLINT_FALSE 64763165362SmrgLINT_TRUE 64863165362SmrgLINT_FLAGS 64963165362SmrgLINT 65063165362SmrgADMIN_MAN_DIR 65163165362SmrgDRIVER_MAN_DIR 65263165362SmrgMISC_MAN_DIR 65363165362SmrgFILE_MAN_DIR 65463165362SmrgLIB_MAN_DIR 65563165362SmrgAPP_MAN_DIR 65663165362SmrgADMIN_MAN_SUFFIX 65763165362SmrgDRIVER_MAN_SUFFIX 65863165362SmrgMISC_MAN_SUFFIX 65963165362SmrgFILE_MAN_SUFFIX 66063165362SmrgLIB_MAN_SUFFIX 66163165362SmrgAPP_MAN_SUFFIX 66263165362Smrghost_os 66363165362Smrghost_vendor 66463165362Smrghost_cpu 66563165362Smrghost 66663165362Smrgbuild_os 66763165362Smrgbuild_vendor 66863165362Smrgbuild_cpu 66963165362Smrgbuild 67063165362Smrgdistcleancheck_listfiles 67163165362SmrgCHANGELOG_CMD 67263165362SmrgAM_BACKSLASH 67363165362SmrgAM_DEFAULT_VERBOSITY 67463165362SmrgCWARNFLAGS 67563165362SmrgEGREP 67663165362SmrgGREP 67763165362SmrgCPP 67863165362Smrgam__fastdepCC_FALSE 67963165362Smrgam__fastdepCC_TRUE 68063165362SmrgCCDEPMODE 68163165362SmrgAMDEPBACKSLASH 68263165362SmrgAMDEP_FALSE 68363165362SmrgAMDEP_TRUE 68463165362Smrgam__quote 68563165362Smrgam__include 68663165362SmrgDEPDIR 68763165362SmrgOBJEXT 68863165362SmrgEXEEXT 68963165362Smrgac_ct_CC 69063165362SmrgCPPFLAGS 69163165362SmrgLDFLAGS 69263165362SmrgCFLAGS 69363165362SmrgCC 69463165362Smrgam__untar 69563165362Smrgam__tar 69663165362SmrgAMTAR 69763165362Smrgam__leading_dot 69863165362SmrgSET_MAKE 69963165362SmrgAWK 70063165362Smrgmkdir_p 70163165362SmrgMKDIR_P 70263165362SmrgINSTALL_STRIP_PROGRAM 70363165362SmrgSTRIP 70463165362Smrginstall_sh 70563165362SmrgMAKEINFO 70663165362SmrgAUTOHEADER 70763165362SmrgAUTOMAKE 70863165362SmrgAUTOCONF 70963165362SmrgACLOCAL 71063165362SmrgVERSION 71163165362SmrgPACKAGE 71263165362SmrgCYGPATH_W 71363165362Smrgam__isrc 71463165362SmrgINSTALL_DATA 71563165362SmrgINSTALL_SCRIPT 71663165362SmrgINSTALL_PROGRAM 71763165362Smrgtarget_alias 71863165362Smrghost_alias 71963165362Smrgbuild_alias 72063165362SmrgLIBS 72163165362SmrgECHO_T 72263165362SmrgECHO_N 72363165362SmrgECHO_C 72463165362SmrgDEFS 72563165362Smrgmandir 72663165362Smrglocaledir 72763165362Smrglibdir 72863165362Smrgpsdir 72963165362Smrgpdfdir 73063165362Smrgdvidir 73163165362Smrghtmldir 73263165362Smrginfodir 73363165362Smrgdocdir 73463165362Smrgoldincludedir 73563165362Smrgincludedir 73663165362Smrglocalstatedir 73763165362Smrgsharedstatedir 73863165362Smrgsysconfdir 73963165362Smrgdatadir 74063165362Smrgdatarootdir 74163165362Smrglibexecdir 74263165362Smrgsbindir 74363165362Smrgbindir 74463165362Smrgprogram_transform_name 74563165362Smrgprefix 74663165362Smrgexec_prefix 74763165362SmrgPACKAGE_BUGREPORT 74863165362SmrgPACKAGE_STRING 74963165362SmrgPACKAGE_VERSION 75063165362SmrgPACKAGE_TARNAME 75163165362SmrgPACKAGE_NAME 75263165362SmrgPATH_SEPARATOR 75363165362SmrgSHELL' 7540eb10989Smrgac_subst_files='' 75563165362Smrgac_user_opts=' 75663165362Smrgenable_option_checking 75763165362Smrgenable_dependency_tracking 75863165362Smrgenable_silent_rules 75963165362Smrgenable_strict_compilation 76063165362Smrgwith_release_version 76163165362Smrgwith_lint 76263165362Smrgenable_largefile 76363165362Smrg' 76463165362Smrg ac_precious_vars='build_alias 76563165362Smrghost_alias 76663165362Smrgtarget_alias 76763165362SmrgCC 76863165362SmrgCFLAGS 76963165362SmrgLDFLAGS 77063165362SmrgLIBS 77163165362SmrgCPPFLAGS 77263165362SmrgCPP 77363165362SmrgPKG_CONFIG 77463165362SmrgX_CFLAGS 77563165362SmrgX_LIBS' 77663165362Smrg 7770eb10989Smrg 7780eb10989Smrg# Initialize some variables set by options. 7790eb10989Smrgac_init_help= 7800eb10989Smrgac_init_version=false 78163165362Smrgac_unrecognized_opts= 78263165362Smrgac_unrecognized_sep= 7830eb10989Smrg# The variables have the same names as the options, with 7840eb10989Smrg# dashes changed to underlines. 7850eb10989Smrgcache_file=/dev/null 7860eb10989Smrgexec_prefix=NONE 7870eb10989Smrgno_create= 7880eb10989Smrgno_recursion= 7890eb10989Smrgprefix=NONE 7900eb10989Smrgprogram_prefix=NONE 7910eb10989Smrgprogram_suffix=NONE 7920eb10989Smrgprogram_transform_name=s,x,x, 7930eb10989Smrgsilent= 7940eb10989Smrgsite= 7950eb10989Smrgsrcdir= 7960eb10989Smrgverbose= 7970eb10989Smrgx_includes=NONE 7980eb10989Smrgx_libraries=NONE 7990eb10989Smrg 8000eb10989Smrg# Installation directory options. 8010eb10989Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 8020eb10989Smrg# and all the variables that are supposed to be based on exec_prefix 8030eb10989Smrg# by default will actually change. 8040eb10989Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 80563165362Smrg# (The list follows the same order as the GNU Coding Standards.) 8060eb10989Smrgbindir='${exec_prefix}/bin' 8070eb10989Smrgsbindir='${exec_prefix}/sbin' 8080eb10989Smrglibexecdir='${exec_prefix}/libexec' 80963165362Smrgdatarootdir='${prefix}/share' 81063165362Smrgdatadir='${datarootdir}' 8110eb10989Smrgsysconfdir='${prefix}/etc' 8120eb10989Smrgsharedstatedir='${prefix}/com' 8130eb10989Smrglocalstatedir='${prefix}/var' 8140eb10989Smrgincludedir='${prefix}/include' 8150eb10989Smrgoldincludedir='/usr/include' 81663165362Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 81763165362Smrginfodir='${datarootdir}/info' 81863165362Smrghtmldir='${docdir}' 81963165362Smrgdvidir='${docdir}' 82063165362Smrgpdfdir='${docdir}' 82163165362Smrgpsdir='${docdir}' 82263165362Smrglibdir='${exec_prefix}/lib' 82363165362Smrglocaledir='${datarootdir}/locale' 82463165362Smrgmandir='${datarootdir}/man' 8250eb10989Smrg 8260eb10989Smrgac_prev= 82763165362Smrgac_dashdash= 8280eb10989Smrgfor ac_option 8290eb10989Smrgdo 8300eb10989Smrg # If the previous option needs an argument, assign it. 8310eb10989Smrg if test -n "$ac_prev"; then 83263165362Smrg eval $ac_prev=\$ac_option 8330eb10989Smrg ac_prev= 8340eb10989Smrg continue 8350eb10989Smrg fi 8360eb10989Smrg 83763165362Smrg case $ac_option in 83863165362Smrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 83963165362Smrg *) ac_optarg=yes ;; 84063165362Smrg esac 8410eb10989Smrg 8420eb10989Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8430eb10989Smrg 84463165362Smrg case $ac_dashdash$ac_option in 84563165362Smrg --) 84663165362Smrg ac_dashdash=yes ;; 8470eb10989Smrg 8480eb10989Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8490eb10989Smrg ac_prev=bindir ;; 8500eb10989Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8510eb10989Smrg bindir=$ac_optarg ;; 8520eb10989Smrg 8530eb10989Smrg -build | --build | --buil | --bui | --bu) 8540eb10989Smrg ac_prev=build_alias ;; 8550eb10989Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8560eb10989Smrg build_alias=$ac_optarg ;; 8570eb10989Smrg 8580eb10989Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8590eb10989Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8600eb10989Smrg ac_prev=cache_file ;; 8610eb10989Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8620eb10989Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8630eb10989Smrg cache_file=$ac_optarg ;; 8640eb10989Smrg 8650eb10989Smrg --config-cache | -C) 8660eb10989Smrg cache_file=config.cache ;; 8670eb10989Smrg 86863165362Smrg -datadir | --datadir | --datadi | --datad) 8690eb10989Smrg ac_prev=datadir ;; 87063165362Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8710eb10989Smrg datadir=$ac_optarg ;; 8720eb10989Smrg 87363165362Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 87463165362Smrg | --dataroo | --dataro | --datar) 87563165362Smrg ac_prev=datarootdir ;; 87663165362Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 87763165362Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 87863165362Smrg datarootdir=$ac_optarg ;; 87963165362Smrg 8800eb10989Smrg -disable-* | --disable-*) 88163165362Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8820eb10989Smrg # Reject names that are not valid shell variable names. 88363165362Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 88463165362Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 8850eb10989Smrg { (exit 1); exit 1; }; } 88663165362Smrg ac_useropt_orig=$ac_useropt 88763165362Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 88863165362Smrg case $ac_user_opts in 88963165362Smrg *" 89063165362Smrg"enable_$ac_useropt" 89163165362Smrg"*) ;; 89263165362Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 89363165362Smrg ac_unrecognized_sep=', ';; 89463165362Smrg esac 89563165362Smrg eval enable_$ac_useropt=no ;; 89663165362Smrg 89763165362Smrg -docdir | --docdir | --docdi | --doc | --do) 89863165362Smrg ac_prev=docdir ;; 89963165362Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 90063165362Smrg docdir=$ac_optarg ;; 90163165362Smrg 90263165362Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 90363165362Smrg ac_prev=dvidir ;; 90463165362Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 90563165362Smrg dvidir=$ac_optarg ;; 9060eb10989Smrg 9070eb10989Smrg -enable-* | --enable-*) 90863165362Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 9090eb10989Smrg # Reject names that are not valid shell variable names. 91063165362Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 91163165362Smrg { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 9120eb10989Smrg { (exit 1); exit 1; }; } 91363165362Smrg ac_useropt_orig=$ac_useropt 91463165362Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 91563165362Smrg case $ac_user_opts in 91663165362Smrg *" 91763165362Smrg"enable_$ac_useropt" 91863165362Smrg"*) ;; 91963165362Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 92063165362Smrg ac_unrecognized_sep=', ';; 9210eb10989Smrg esac 92263165362Smrg eval enable_$ac_useropt=\$ac_optarg ;; 9230eb10989Smrg 9240eb10989Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9250eb10989Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9260eb10989Smrg | --exec | --exe | --ex) 9270eb10989Smrg ac_prev=exec_prefix ;; 9280eb10989Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9290eb10989Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9300eb10989Smrg | --exec=* | --exe=* | --ex=*) 9310eb10989Smrg exec_prefix=$ac_optarg ;; 9320eb10989Smrg 9330eb10989Smrg -gas | --gas | --ga | --g) 9340eb10989Smrg # Obsolete; use --with-gas. 9350eb10989Smrg with_gas=yes ;; 9360eb10989Smrg 9370eb10989Smrg -help | --help | --hel | --he | -h) 9380eb10989Smrg ac_init_help=long ;; 9390eb10989Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9400eb10989Smrg ac_init_help=recursive ;; 9410eb10989Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9420eb10989Smrg ac_init_help=short ;; 9430eb10989Smrg 9440eb10989Smrg -host | --host | --hos | --ho) 9450eb10989Smrg ac_prev=host_alias ;; 9460eb10989Smrg -host=* | --host=* | --hos=* | --ho=*) 9470eb10989Smrg host_alias=$ac_optarg ;; 9480eb10989Smrg 94963165362Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 95063165362Smrg ac_prev=htmldir ;; 95163165362Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 95263165362Smrg | --ht=*) 95363165362Smrg htmldir=$ac_optarg ;; 95463165362Smrg 9550eb10989Smrg -includedir | --includedir | --includedi | --included | --include \ 9560eb10989Smrg | --includ | --inclu | --incl | --inc) 9570eb10989Smrg ac_prev=includedir ;; 9580eb10989Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9590eb10989Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9600eb10989Smrg includedir=$ac_optarg ;; 9610eb10989Smrg 9620eb10989Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9630eb10989Smrg ac_prev=infodir ;; 9640eb10989Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9650eb10989Smrg infodir=$ac_optarg ;; 9660eb10989Smrg 9670eb10989Smrg -libdir | --libdir | --libdi | --libd) 9680eb10989Smrg ac_prev=libdir ;; 9690eb10989Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9700eb10989Smrg libdir=$ac_optarg ;; 9710eb10989Smrg 9720eb10989Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9730eb10989Smrg | --libexe | --libex | --libe) 9740eb10989Smrg ac_prev=libexecdir ;; 9750eb10989Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9760eb10989Smrg | --libexe=* | --libex=* | --libe=*) 9770eb10989Smrg libexecdir=$ac_optarg ;; 9780eb10989Smrg 97963165362Smrg -localedir | --localedir | --localedi | --localed | --locale) 98063165362Smrg ac_prev=localedir ;; 98163165362Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 98263165362Smrg localedir=$ac_optarg ;; 98363165362Smrg 9840eb10989Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 98563165362Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9860eb10989Smrg ac_prev=localstatedir ;; 9870eb10989Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 98863165362Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9890eb10989Smrg localstatedir=$ac_optarg ;; 9900eb10989Smrg 9910eb10989Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9920eb10989Smrg ac_prev=mandir ;; 9930eb10989Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9940eb10989Smrg mandir=$ac_optarg ;; 9950eb10989Smrg 9960eb10989Smrg -nfp | --nfp | --nf) 9970eb10989Smrg # Obsolete; use --without-fp. 9980eb10989Smrg with_fp=no ;; 9990eb10989Smrg 10000eb10989Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 10010eb10989Smrg | --no-cr | --no-c | -n) 10020eb10989Smrg no_create=yes ;; 10030eb10989Smrg 10040eb10989Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 10050eb10989Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 10060eb10989Smrg no_recursion=yes ;; 10070eb10989Smrg 10080eb10989Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 10090eb10989Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 10100eb10989Smrg | --oldin | --oldi | --old | --ol | --o) 10110eb10989Smrg ac_prev=oldincludedir ;; 10120eb10989Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 10130eb10989Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 10140eb10989Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 10150eb10989Smrg oldincludedir=$ac_optarg ;; 10160eb10989Smrg 10170eb10989Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 10180eb10989Smrg ac_prev=prefix ;; 10190eb10989Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10200eb10989Smrg prefix=$ac_optarg ;; 10210eb10989Smrg 10220eb10989Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10230eb10989Smrg | --program-pre | --program-pr | --program-p) 10240eb10989Smrg ac_prev=program_prefix ;; 10250eb10989Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10260eb10989Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10270eb10989Smrg program_prefix=$ac_optarg ;; 10280eb10989Smrg 10290eb10989Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10300eb10989Smrg | --program-suf | --program-su | --program-s) 10310eb10989Smrg ac_prev=program_suffix ;; 10320eb10989Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10330eb10989Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10340eb10989Smrg program_suffix=$ac_optarg ;; 10350eb10989Smrg 10360eb10989Smrg -program-transform-name | --program-transform-name \ 10370eb10989Smrg | --program-transform-nam | --program-transform-na \ 10380eb10989Smrg | --program-transform-n | --program-transform- \ 10390eb10989Smrg | --program-transform | --program-transfor \ 10400eb10989Smrg | --program-transfo | --program-transf \ 10410eb10989Smrg | --program-trans | --program-tran \ 10420eb10989Smrg | --progr-tra | --program-tr | --program-t) 10430eb10989Smrg ac_prev=program_transform_name ;; 10440eb10989Smrg -program-transform-name=* | --program-transform-name=* \ 10450eb10989Smrg | --program-transform-nam=* | --program-transform-na=* \ 10460eb10989Smrg | --program-transform-n=* | --program-transform-=* \ 10470eb10989Smrg | --program-transform=* | --program-transfor=* \ 10480eb10989Smrg | --program-transfo=* | --program-transf=* \ 10490eb10989Smrg | --program-trans=* | --program-tran=* \ 10500eb10989Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10510eb10989Smrg program_transform_name=$ac_optarg ;; 10520eb10989Smrg 105363165362Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 105463165362Smrg ac_prev=pdfdir ;; 105563165362Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 105663165362Smrg pdfdir=$ac_optarg ;; 105763165362Smrg 105863165362Smrg -psdir | --psdir | --psdi | --psd | --ps) 105963165362Smrg ac_prev=psdir ;; 106063165362Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 106163165362Smrg psdir=$ac_optarg ;; 106263165362Smrg 10630eb10989Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10640eb10989Smrg | -silent | --silent | --silen | --sile | --sil) 10650eb10989Smrg silent=yes ;; 10660eb10989Smrg 10670eb10989Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10680eb10989Smrg ac_prev=sbindir ;; 10690eb10989Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10700eb10989Smrg | --sbi=* | --sb=*) 10710eb10989Smrg sbindir=$ac_optarg ;; 10720eb10989Smrg 10730eb10989Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10740eb10989Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10750eb10989Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10760eb10989Smrg | --sha | --sh) 10770eb10989Smrg ac_prev=sharedstatedir ;; 10780eb10989Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10790eb10989Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10800eb10989Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10810eb10989Smrg | --sha=* | --sh=*) 10820eb10989Smrg sharedstatedir=$ac_optarg ;; 10830eb10989Smrg 10840eb10989Smrg -site | --site | --sit) 10850eb10989Smrg ac_prev=site ;; 10860eb10989Smrg -site=* | --site=* | --sit=*) 10870eb10989Smrg site=$ac_optarg ;; 10880eb10989Smrg 10890eb10989Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10900eb10989Smrg ac_prev=srcdir ;; 10910eb10989Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10920eb10989Smrg srcdir=$ac_optarg ;; 10930eb10989Smrg 10940eb10989Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10950eb10989Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10960eb10989Smrg ac_prev=sysconfdir ;; 10970eb10989Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10980eb10989Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10990eb10989Smrg sysconfdir=$ac_optarg ;; 11000eb10989Smrg 11010eb10989Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 11020eb10989Smrg ac_prev=target_alias ;; 11030eb10989Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 11040eb10989Smrg target_alias=$ac_optarg ;; 11050eb10989Smrg 11060eb10989Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 11070eb10989Smrg verbose=yes ;; 11080eb10989Smrg 11090eb10989Smrg -version | --version | --versio | --versi | --vers | -V) 11100eb10989Smrg ac_init_version=: ;; 11110eb10989Smrg 11120eb10989Smrg -with-* | --with-*) 111363165362Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 11140eb10989Smrg # Reject names that are not valid shell variable names. 111563165362Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 111663165362Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 11170eb10989Smrg { (exit 1); exit 1; }; } 111863165362Smrg ac_useropt_orig=$ac_useropt 111963165362Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 112063165362Smrg case $ac_user_opts in 112163165362Smrg *" 112263165362Smrg"with_$ac_useropt" 112363165362Smrg"*) ;; 112463165362Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 112563165362Smrg ac_unrecognized_sep=', ';; 11260eb10989Smrg esac 112763165362Smrg eval with_$ac_useropt=\$ac_optarg ;; 11280eb10989Smrg 11290eb10989Smrg -without-* | --without-*) 113063165362Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11310eb10989Smrg # Reject names that are not valid shell variable names. 113263165362Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 113363165362Smrg { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 11340eb10989Smrg { (exit 1); exit 1; }; } 113563165362Smrg ac_useropt_orig=$ac_useropt 113663165362Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 113763165362Smrg case $ac_user_opts in 113863165362Smrg *" 113963165362Smrg"with_$ac_useropt" 114063165362Smrg"*) ;; 114163165362Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 114263165362Smrg ac_unrecognized_sep=', ';; 114363165362Smrg esac 114463165362Smrg eval with_$ac_useropt=no ;; 11450eb10989Smrg 11460eb10989Smrg --x) 11470eb10989Smrg # Obsolete; use --with-x. 11480eb10989Smrg with_x=yes ;; 11490eb10989Smrg 11500eb10989Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11510eb10989Smrg | --x-incl | --x-inc | --x-in | --x-i) 11520eb10989Smrg ac_prev=x_includes ;; 11530eb10989Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11540eb10989Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11550eb10989Smrg x_includes=$ac_optarg ;; 11560eb10989Smrg 11570eb10989Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11580eb10989Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11590eb10989Smrg ac_prev=x_libraries ;; 11600eb10989Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11610eb10989Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11620eb10989Smrg x_libraries=$ac_optarg ;; 11630eb10989Smrg 116463165362Smrg -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 11650eb10989SmrgTry \`$0 --help' for more information." >&2 11660eb10989Smrg { (exit 1); exit 1; }; } 11670eb10989Smrg ;; 11680eb10989Smrg 11690eb10989Smrg *=*) 11700eb10989Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11710eb10989Smrg # Reject names that are not valid shell variable names. 11720eb10989Smrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 117363165362Smrg { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 11740eb10989Smrg { (exit 1); exit 1; }; } 117563165362Smrg eval $ac_envvar=\$ac_optarg 11760eb10989Smrg export $ac_envvar ;; 11770eb10989Smrg 11780eb10989Smrg *) 11790eb10989Smrg # FIXME: should be removed in autoconf 3.0. 118063165362Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11810eb10989Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 118263165362Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11830eb10989Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 11840eb10989Smrg ;; 11850eb10989Smrg 11860eb10989Smrg esac 11870eb10989Smrgdone 11880eb10989Smrg 11890eb10989Smrgif test -n "$ac_prev"; then 11900eb10989Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 119163165362Smrg { $as_echo "$as_me: error: missing argument to $ac_option" >&2 11920eb10989Smrg { (exit 1); exit 1; }; } 11930eb10989Smrgfi 11940eb10989Smrg 119563165362Smrgif test -n "$ac_unrecognized_opts"; then 119663165362Smrg case $enable_option_checking in 119763165362Smrg no) ;; 119863165362Smrg fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 119963165362Smrg { (exit 1); exit 1; }; } ;; 120063165362Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12010eb10989Smrg esac 120263165362Smrgfi 12030eb10989Smrg 120463165362Smrg# Check all directory arguments for consistency. 120563165362Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 120663165362Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 120763165362Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 120863165362Smrg libdir localedir mandir 12090eb10989Smrgdo 121063165362Smrg eval ac_val=\$$ac_var 121163165362Smrg # Remove trailing slashes. 12120eb10989Smrg case $ac_val in 121363165362Smrg */ ) 121463165362Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 121563165362Smrg eval $ac_var=\$ac_val;; 12160eb10989Smrg esac 121763165362Smrg # Be sure to have absolute directory names. 121863165362Smrg case $ac_val in 121963165362Smrg [\\/$]* | ?:[\\/]* ) continue;; 122063165362Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 122163165362Smrg esac 122263165362Smrg { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 122363165362Smrg { (exit 1); exit 1; }; } 12240eb10989Smrgdone 12250eb10989Smrg 12260eb10989Smrg# There might be people who depend on the old broken behavior: `$host' 12270eb10989Smrg# used to hold the argument of --host etc. 12280eb10989Smrg# FIXME: To remove some day. 12290eb10989Smrgbuild=$build_alias 12300eb10989Smrghost=$host_alias 12310eb10989Smrgtarget=$target_alias 12320eb10989Smrg 12330eb10989Smrg# FIXME: To remove some day. 12340eb10989Smrgif test "x$host_alias" != x; then 12350eb10989Smrg if test "x$build_alias" = x; then 12360eb10989Smrg cross_compiling=maybe 123763165362Smrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 12380eb10989Smrg If a cross compiler is detected then cross compile mode will be used." >&2 12390eb10989Smrg elif test "x$build_alias" != "x$host_alias"; then 12400eb10989Smrg cross_compiling=yes 12410eb10989Smrg fi 12420eb10989Smrgfi 12430eb10989Smrg 12440eb10989Smrgac_tool_prefix= 12450eb10989Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12460eb10989Smrg 12470eb10989Smrgtest "$silent" = yes && exec 6>/dev/null 12480eb10989Smrg 12490eb10989Smrg 125063165362Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 125163165362Smrgac_ls_di=`ls -di .` && 125263165362Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 125363165362Smrg { $as_echo "$as_me: error: working directory cannot be determined" >&2 125463165362Smrg { (exit 1); exit 1; }; } 125563165362Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 125663165362Smrg { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 125763165362Smrg { (exit 1); exit 1; }; } 125863165362Smrg 125963165362Smrg 126063165362Smrg# Find the source files, if location was not specified. 12610eb10989Smrgif test -z "$srcdir"; then 12620eb10989Smrg ac_srcdir_defaulted=yes 126363165362Smrg # Try the directory containing this script, then the parent directory. 126463165362Smrg ac_confdir=`$as_dirname -- "$as_myself" || 126563165362Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126663165362Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 126763165362Smrg X"$as_myself" : 'X\(//\)$' \| \ 126863165362Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 126963165362Smrg$as_echo X"$as_myself" | 127063165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 127163165362Smrg s//\1/ 127263165362Smrg q 127363165362Smrg } 127463165362Smrg /^X\(\/\/\)[^/].*/{ 127563165362Smrg s//\1/ 127663165362Smrg q 127763165362Smrg } 127863165362Smrg /^X\(\/\/\)$/{ 127963165362Smrg s//\1/ 128063165362Smrg q 128163165362Smrg } 128263165362Smrg /^X\(\/\).*/{ 128363165362Smrg s//\1/ 128463165362Smrg q 128563165362Smrg } 128663165362Smrg s/.*/./; q'` 12870eb10989Smrg srcdir=$ac_confdir 128863165362Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12890eb10989Smrg srcdir=.. 12900eb10989Smrg fi 12910eb10989Smrgelse 12920eb10989Smrg ac_srcdir_defaulted=no 12930eb10989Smrgfi 129463165362Smrgif test ! -r "$srcdir/$ac_unique_file"; then 129563165362Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 129663165362Smrg { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 12970eb10989Smrg { (exit 1); exit 1; }; } 12980eb10989Smrgfi 129963165362Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 130063165362Smrgac_abs_confdir=`( 130163165362Smrg cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 13020eb10989Smrg { (exit 1); exit 1; }; } 130363165362Smrg pwd)` 130463165362Smrg# When building in place, set srcdir=. 130563165362Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 130663165362Smrg srcdir=. 130763165362Smrgfi 130863165362Smrg# Remove unnecessary trailing slashes from srcdir. 130963165362Smrg# Double slashes in file names in object file debugging info 131063165362Smrg# mess up M-x gdb in Emacs. 131163165362Smrgcase $srcdir in 131263165362Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 131363165362Smrgesac 131463165362Smrgfor ac_var in $ac_precious_vars; do 131563165362Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 131663165362Smrg eval ac_env_${ac_var}_value=\$${ac_var} 131763165362Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 131863165362Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 131963165362Smrgdone 13200eb10989Smrg 13210eb10989Smrg# 13220eb10989Smrg# Report the --help message. 13230eb10989Smrg# 13240eb10989Smrgif test "$ac_init_help" = "long"; then 13250eb10989Smrg # Omit some internal or obsolete options to make the list less imposing. 13260eb10989Smrg # This message is too long to be a string in the A/UX 3.1 sh. 13270eb10989Smrg cat <<_ACEOF 132863165362Smrg\`configure' configures makedepend 1.0.2 to adapt to many kinds of systems. 13290eb10989Smrg 13300eb10989SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13310eb10989Smrg 13320eb10989SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13330eb10989SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13340eb10989Smrg 13350eb10989SmrgDefaults for the options are specified in brackets. 13360eb10989Smrg 13370eb10989SmrgConfiguration: 13380eb10989Smrg -h, --help display this help and exit 13390eb10989Smrg --help=short display options specific to this package 13400eb10989Smrg --help=recursive display the short help of all the included packages 13410eb10989Smrg -V, --version display version information and exit 13420eb10989Smrg -q, --quiet, --silent do not print \`checking...' messages 13430eb10989Smrg --cache-file=FILE cache test results in FILE [disabled] 13440eb10989Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13450eb10989Smrg -n, --no-create do not create output files 13460eb10989Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13470eb10989Smrg 13480eb10989SmrgInstallation directories: 13490eb10989Smrg --prefix=PREFIX install architecture-independent files in PREFIX 135063165362Smrg [$ac_default_prefix] 13510eb10989Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 135263165362Smrg [PREFIX] 13530eb10989Smrg 13540eb10989SmrgBy default, \`make install' will install all the files in 13550eb10989Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13560eb10989Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13570eb10989Smrgfor instance \`--prefix=\$HOME'. 13580eb10989Smrg 13590eb10989SmrgFor better control, use the options below. 13600eb10989Smrg 13610eb10989SmrgFine tuning of the installation directories: 136263165362Smrg --bindir=DIR user executables [EPREFIX/bin] 136363165362Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 136463165362Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 136563165362Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 136663165362Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 136763165362Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 136863165362Smrg --libdir=DIR object code libraries [EPREFIX/lib] 136963165362Smrg --includedir=DIR C header files [PREFIX/include] 137063165362Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 137163165362Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 137263165362Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 137363165362Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 137463165362Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 137563165362Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 137663165362Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend] 137763165362Smrg --htmldir=DIR html documentation [DOCDIR] 137863165362Smrg --dvidir=DIR dvi documentation [DOCDIR] 137963165362Smrg --pdfdir=DIR pdf documentation [DOCDIR] 138063165362Smrg --psdir=DIR ps documentation [DOCDIR] 13810eb10989Smrg_ACEOF 13820eb10989Smrg 13830eb10989Smrg cat <<\_ACEOF 13840eb10989Smrg 13850eb10989SmrgProgram names: 13860eb10989Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13870eb10989Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13880eb10989Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13890eb10989Smrg 13900eb10989SmrgSystem types: 13910eb10989Smrg --build=BUILD configure for building on BUILD [guessed] 13920eb10989Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13930eb10989Smrg_ACEOF 13940eb10989Smrgfi 13950eb10989Smrg 13960eb10989Smrgif test -n "$ac_init_help"; then 13970eb10989Smrg case $ac_init_help in 139863165362Smrg short | recursive ) echo "Configuration of makedepend 1.0.2:";; 13990eb10989Smrg esac 14000eb10989Smrg cat <<\_ACEOF 14010eb10989Smrg 14020eb10989SmrgOptional Features: 140363165362Smrg --disable-option-checking ignore unrecognized --enable/--with options 14040eb10989Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 14050eb10989Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14060eb10989Smrg --disable-dependency-tracking speeds up one-time build 14070eb10989Smrg --enable-dependency-tracking do not reject slow dependency extractors 140863165362Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 140963165362Smrg --disable-silent-rules verbose build output (undo: `make V=0') 141063165362Smrg --enable-strict-compilation 141163165362Smrg Enable all warnings from compiler and make them 141263165362Smrg errors (default: disabled) 14130eb10989Smrg --disable-largefile omit support for large files 14140eb10989Smrg 14150eb10989SmrgOptional Packages: 14160eb10989Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 14170eb10989Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 14180eb10989Smrg --with-release-version=STRING 14190eb10989Smrg Use release version string in package name 142063165362Smrg --with-lint Use a lint-style source code checker (default: 142163165362Smrg disabled) 14220eb10989Smrg 14230eb10989SmrgSome influential environment variables: 14240eb10989Smrg CC C compiler command 14250eb10989Smrg CFLAGS C compiler flags 14260eb10989Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14270eb10989Smrg nonstandard directory <lib dir> 142863165362Smrg LIBS libraries to pass to the linker, e.g. -l<library> 142963165362Smrg CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 143063165362Smrg you have headers in a nonstandard directory <include dir> 143163165362Smrg CPP C preprocessor 14320eb10989Smrg PKG_CONFIG path to pkg-config utility 14330eb10989Smrg X_CFLAGS C compiler flags for X, overriding pkg-config 14340eb10989Smrg X_LIBS linker flags for X, overriding pkg-config 14350eb10989Smrg 14360eb10989SmrgUse these variables to override the choices made by `configure' or to help 14370eb10989Smrgit to find libraries and programs with nonstandard names/locations. 14380eb10989Smrg 14390eb10989SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14400eb10989Smrg_ACEOF 144163165362Smrgac_status=$? 14420eb10989Smrgfi 14430eb10989Smrg 14440eb10989Smrgif test "$ac_init_help" = "recursive"; then 14450eb10989Smrg # If there are subdirs, report their specific --help. 14460eb10989Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 144763165362Smrg test -d "$ac_dir" || 144863165362Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 144963165362Smrg continue 14500eb10989Smrg ac_builddir=. 14510eb10989Smrg 145263165362Smrgcase "$ac_dir" in 145363165362Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 145463165362Smrg*) 145563165362Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 145663165362Smrg # A ".." for each directory in $ac_dir_suffix. 145763165362Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 145863165362Smrg case $ac_top_builddir_sub in 145963165362Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 146063165362Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 146163165362Smrg esac ;; 146263165362Smrgesac 146363165362Smrgac_abs_top_builddir=$ac_pwd 146463165362Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 146563165362Smrg# for backward compatibility: 146663165362Smrgac_top_builddir=$ac_top_build_prefix 14670eb10989Smrg 14680eb10989Smrgcase $srcdir in 146963165362Smrg .) # We are building in place. 14700eb10989Smrg ac_srcdir=. 147163165362Smrg ac_top_srcdir=$ac_top_builddir_sub 147263165362Smrg ac_abs_top_srcdir=$ac_pwd ;; 147363165362Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14740eb10989Smrg ac_srcdir=$srcdir$ac_dir_suffix; 147563165362Smrg ac_top_srcdir=$srcdir 147663165362Smrg ac_abs_top_srcdir=$srcdir ;; 147763165362Smrg *) # Relative name. 147863165362Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 147963165362Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 148063165362Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14810eb10989Smrgesac 148263165362Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 148363165362Smrg 148463165362Smrg cd "$ac_dir" || { ac_status=$?; continue; } 148563165362Smrg # Check for guested configure. 148663165362Smrg if test -f "$ac_srcdir/configure.gnu"; then 148763165362Smrg echo && 148863165362Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 148963165362Smrg elif test -f "$ac_srcdir/configure"; then 149063165362Smrg echo && 149163165362Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14920eb10989Smrg else 149363165362Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 149463165362Smrg fi || ac_status=$? 149563165362Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14960eb10989Smrg done 14970eb10989Smrgfi 14980eb10989Smrg 149963165362Smrgtest -n "$ac_init_help" && exit $ac_status 15000eb10989Smrgif $ac_init_version; then 15010eb10989Smrg cat <<\_ACEOF 150263165362Smrgmakedepend configure 1.0.2 150363165362Smrggenerated by GNU Autoconf 2.63 15040eb10989Smrg 150563165362SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 150663165362Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 15070eb10989SmrgThis configure script is free software; the Free Software Foundation 15080eb10989Smrggives unlimited permission to copy, distribute and modify it. 15090eb10989Smrg_ACEOF 151063165362Smrg exit 15110eb10989Smrgfi 151263165362Smrgcat >config.log <<_ACEOF 15130eb10989SmrgThis file contains any messages produced by compilers while 15140eb10989Smrgrunning configure, to aid debugging if configure makes a mistake. 15150eb10989Smrg 151663165362SmrgIt was created by makedepend $as_me 1.0.2, which was 151763165362Smrggenerated by GNU Autoconf 2.63. Invocation command line was 15180eb10989Smrg 15190eb10989Smrg $ $0 $@ 15200eb10989Smrg 15210eb10989Smrg_ACEOF 152263165362Smrgexec 5>>config.log 15230eb10989Smrg{ 15240eb10989Smrgcat <<_ASUNAME 15250eb10989Smrg## --------- ## 15260eb10989Smrg## Platform. ## 15270eb10989Smrg## --------- ## 15280eb10989Smrg 15290eb10989Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 15300eb10989Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 15310eb10989Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 15320eb10989Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 15330eb10989Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 15340eb10989Smrg 15350eb10989Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 15360eb10989Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 15370eb10989Smrg 15380eb10989Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 15390eb10989Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 15400eb10989Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 154163165362Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 15420eb10989Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 15430eb10989Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 15440eb10989Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 15450eb10989Smrg 15460eb10989Smrg_ASUNAME 15470eb10989Smrg 15480eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15490eb10989Smrgfor as_dir in $PATH 15500eb10989Smrgdo 15510eb10989Smrg IFS=$as_save_IFS 15520eb10989Smrg test -z "$as_dir" && as_dir=. 155363165362Smrg $as_echo "PATH: $as_dir" 15540eb10989Smrgdone 155563165362SmrgIFS=$as_save_IFS 15560eb10989Smrg 15570eb10989Smrg} >&5 15580eb10989Smrg 15590eb10989Smrgcat >&5 <<_ACEOF 15600eb10989Smrg 15610eb10989Smrg 15620eb10989Smrg## ----------- ## 15630eb10989Smrg## Core tests. ## 15640eb10989Smrg## ----------- ## 15650eb10989Smrg 15660eb10989Smrg_ACEOF 15670eb10989Smrg 15680eb10989Smrg 15690eb10989Smrg# Keep a trace of the command line. 15700eb10989Smrg# Strip out --no-create and --no-recursion so they do not pile up. 15710eb10989Smrg# Strip out --silent because we don't want to record it for future runs. 15720eb10989Smrg# Also quote any args containing shell meta-characters. 15730eb10989Smrg# Make two passes to allow for proper duplicate-argument suppression. 15740eb10989Smrgac_configure_args= 15750eb10989Smrgac_configure_args0= 15760eb10989Smrgac_configure_args1= 15770eb10989Smrgac_must_keep_next=false 15780eb10989Smrgfor ac_pass in 1 2 15790eb10989Smrgdo 15800eb10989Smrg for ac_arg 15810eb10989Smrg do 15820eb10989Smrg case $ac_arg in 15830eb10989Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 15840eb10989Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15850eb10989Smrg | -silent | --silent | --silen | --sile | --sil) 15860eb10989Smrg continue ;; 158763165362Smrg *\'*) 158863165362Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 15890eb10989Smrg esac 15900eb10989Smrg case $ac_pass in 15910eb10989Smrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 15920eb10989Smrg 2) 15930eb10989Smrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 15940eb10989Smrg if test $ac_must_keep_next = true; then 15950eb10989Smrg ac_must_keep_next=false # Got value, back to normal. 15960eb10989Smrg else 15970eb10989Smrg case $ac_arg in 15980eb10989Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 15990eb10989Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 16000eb10989Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 16010eb10989Smrg | -with-* | --with-* | -without-* | --without-* | --x) 16020eb10989Smrg case "$ac_configure_args0 " in 16030eb10989Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 16040eb10989Smrg esac 16050eb10989Smrg ;; 16060eb10989Smrg -* ) ac_must_keep_next=true ;; 16070eb10989Smrg esac 16080eb10989Smrg fi 160963165362Smrg ac_configure_args="$ac_configure_args '$ac_arg'" 16100eb10989Smrg ;; 16110eb10989Smrg esac 16120eb10989Smrg done 16130eb10989Smrgdone 16140eb10989Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 16150eb10989Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 16160eb10989Smrg 16170eb10989Smrg# When interrupted or exit'd, cleanup temporary files, and complete 16180eb10989Smrg# config.log. We remove comments because anyway the quotes in there 16190eb10989Smrg# would cause problems or look ugly. 162063165362Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 162163165362Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 16220eb10989Smrgtrap 'exit_status=$? 16230eb10989Smrg # Save into config.log some information that might help in debugging. 16240eb10989Smrg { 16250eb10989Smrg echo 16260eb10989Smrg 16270eb10989Smrg cat <<\_ASBOX 16280eb10989Smrg## ---------------- ## 16290eb10989Smrg## Cache variables. ## 16300eb10989Smrg## ---------------- ## 16310eb10989Smrg_ASBOX 16320eb10989Smrg echo 16330eb10989Smrg # The following way of writing the cache mishandles newlines in values, 163463165362Smrg( 163563165362Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 163663165362Smrg eval ac_val=\$$ac_var 163763165362Smrg case $ac_val in #( 163863165362Smrg *${as_nl}*) 163963165362Smrg case $ac_var in #( 164063165362Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 164163165362Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 164263165362Smrg esac 164363165362Smrg case $ac_var in #( 164463165362Smrg _ | IFS | as_nl) ;; #( 164563165362Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 164663165362Smrg *) $as_unset $ac_var ;; 164763165362Smrg esac ;; 164863165362Smrg esac 164963165362Smrg done 16500eb10989Smrg (set) 2>&1 | 165163165362Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 165263165362Smrg *${as_nl}ac_space=\ *) 16530eb10989Smrg sed -n \ 165463165362Smrg "s/'\''/'\''\\\\'\'''\''/g; 165563165362Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 165663165362Smrg ;; #( 16570eb10989Smrg *) 165863165362Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16590eb10989Smrg ;; 166063165362Smrg esac | 166163165362Smrg sort 166263165362Smrg) 16630eb10989Smrg echo 16640eb10989Smrg 16650eb10989Smrg cat <<\_ASBOX 16660eb10989Smrg## ----------------- ## 16670eb10989Smrg## Output variables. ## 16680eb10989Smrg## ----------------- ## 16690eb10989Smrg_ASBOX 16700eb10989Smrg echo 16710eb10989Smrg for ac_var in $ac_subst_vars 16720eb10989Smrg do 167363165362Smrg eval ac_val=\$$ac_var 167463165362Smrg case $ac_val in 167563165362Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 167663165362Smrg esac 167763165362Smrg $as_echo "$ac_var='\''$ac_val'\''" 16780eb10989Smrg done | sort 16790eb10989Smrg echo 16800eb10989Smrg 16810eb10989Smrg if test -n "$ac_subst_files"; then 16820eb10989Smrg cat <<\_ASBOX 168363165362Smrg## ------------------- ## 168463165362Smrg## File substitutions. ## 168563165362Smrg## ------------------- ## 16860eb10989Smrg_ASBOX 16870eb10989Smrg echo 16880eb10989Smrg for ac_var in $ac_subst_files 16890eb10989Smrg do 169063165362Smrg eval ac_val=\$$ac_var 169163165362Smrg case $ac_val in 169263165362Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 169363165362Smrg esac 169463165362Smrg $as_echo "$ac_var='\''$ac_val'\''" 16950eb10989Smrg done | sort 16960eb10989Smrg echo 16970eb10989Smrg fi 16980eb10989Smrg 16990eb10989Smrg if test -s confdefs.h; then 17000eb10989Smrg cat <<\_ASBOX 17010eb10989Smrg## ----------- ## 17020eb10989Smrg## confdefs.h. ## 17030eb10989Smrg## ----------- ## 17040eb10989Smrg_ASBOX 17050eb10989Smrg echo 170663165362Smrg cat confdefs.h 17070eb10989Smrg echo 17080eb10989Smrg fi 17090eb10989Smrg test "$ac_signal" != 0 && 171063165362Smrg $as_echo "$as_me: caught signal $ac_signal" 171163165362Smrg $as_echo "$as_me: exit $exit_status" 17120eb10989Smrg } >&5 171363165362Smrg rm -f core *.core core.conftest.* && 171463165362Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 17150eb10989Smrg exit $exit_status 171663165362Smrg' 0 17170eb10989Smrgfor ac_signal in 1 2 13 15; do 17180eb10989Smrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 17190eb10989Smrgdone 17200eb10989Smrgac_signal=0 17210eb10989Smrg 17220eb10989Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 172363165362Smrgrm -f -r conftest* confdefs.h 17240eb10989Smrg 17250eb10989Smrg# Predefined preprocessor variables. 17260eb10989Smrg 17270eb10989Smrgcat >>confdefs.h <<_ACEOF 17280eb10989Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 17290eb10989Smrg_ACEOF 17300eb10989Smrg 17310eb10989Smrg 17320eb10989Smrgcat >>confdefs.h <<_ACEOF 17330eb10989Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 17340eb10989Smrg_ACEOF 17350eb10989Smrg 17360eb10989Smrg 17370eb10989Smrgcat >>confdefs.h <<_ACEOF 17380eb10989Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 17390eb10989Smrg_ACEOF 17400eb10989Smrg 17410eb10989Smrg 17420eb10989Smrgcat >>confdefs.h <<_ACEOF 17430eb10989Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 17440eb10989Smrg_ACEOF 17450eb10989Smrg 17460eb10989Smrg 17470eb10989Smrgcat >>confdefs.h <<_ACEOF 17480eb10989Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 17490eb10989Smrg_ACEOF 17500eb10989Smrg 17510eb10989Smrg 17520eb10989Smrg# Let the site file select an alternate cache file if it wants to. 175363165362Smrg# Prefer an explicitly selected file to automatically selected ones. 175463165362Smrgac_site_file1=NONE 175563165362Smrgac_site_file2=NONE 175663165362Smrgif test -n "$CONFIG_SITE"; then 175763165362Smrg ac_site_file1=$CONFIG_SITE 175863165362Smrgelif test "x$prefix" != xNONE; then 175963165362Smrg ac_site_file1=$prefix/share/config.site 176063165362Smrg ac_site_file2=$prefix/etc/config.site 176163165362Smrgelse 176263165362Smrg ac_site_file1=$ac_default_prefix/share/config.site 176363165362Smrg ac_site_file2=$ac_default_prefix/etc/config.site 17640eb10989Smrgfi 176563165362Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 176663165362Smrgdo 176763165362Smrg test "x$ac_site_file" = xNONE && continue 17680eb10989Smrg if test -r "$ac_site_file"; then 176963165362Smrg { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 177063165362Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 17710eb10989Smrg sed 's/^/| /' "$ac_site_file" >&5 17720eb10989Smrg . "$ac_site_file" 17730eb10989Smrg fi 17740eb10989Smrgdone 17750eb10989Smrg 17760eb10989Smrgif test -r "$cache_file"; then 17770eb10989Smrg # Some versions of bash will fail to source /dev/null (special 17780eb10989Smrg # files actually), so we avoid doing that. 17790eb10989Smrg if test -f "$cache_file"; then 178063165362Smrg { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 178163165362Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 17820eb10989Smrg case $cache_file in 178363165362Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 178463165362Smrg *) . "./$cache_file";; 17850eb10989Smrg esac 17860eb10989Smrg fi 17870eb10989Smrgelse 178863165362Smrg { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 178963165362Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 17900eb10989Smrg >$cache_file 17910eb10989Smrgfi 17920eb10989Smrg 17930eb10989Smrg# Check that the precious variables saved in the cache have kept the same 17940eb10989Smrg# value. 17950eb10989Smrgac_cache_corrupted=false 179663165362Smrgfor ac_var in $ac_precious_vars; do 17970eb10989Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 17980eb10989Smrg eval ac_new_set=\$ac_env_${ac_var}_set 179963165362Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 180063165362Smrg eval ac_new_val=\$ac_env_${ac_var}_value 18010eb10989Smrg case $ac_old_set,$ac_new_set in 18020eb10989Smrg set,) 180363165362Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 180463165362Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 18050eb10989Smrg ac_cache_corrupted=: ;; 18060eb10989Smrg ,set) 180763165362Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 180863165362Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 18090eb10989Smrg ac_cache_corrupted=: ;; 18100eb10989Smrg ,);; 18110eb10989Smrg *) 18120eb10989Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 181363165362Smrg # differences in whitespace do not lead to failure. 181463165362Smrg ac_old_val_w=`echo x $ac_old_val` 181563165362Smrg ac_new_val_w=`echo x $ac_new_val` 181663165362Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 181763165362Smrg { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 181863165362Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 181963165362Smrg ac_cache_corrupted=: 182063165362Smrg else 182163165362Smrg { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 182263165362Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 182363165362Smrg eval $ac_var=\$ac_old_val 182463165362Smrg fi 182563165362Smrg { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 182663165362Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 182763165362Smrg { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 182863165362Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 18290eb10989Smrg fi;; 18300eb10989Smrg esac 18310eb10989Smrg # Pass precious variables to config.status. 18320eb10989Smrg if test "$ac_new_set" = set; then 18330eb10989Smrg case $ac_new_val in 183463165362Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 18350eb10989Smrg *) ac_arg=$ac_var=$ac_new_val ;; 18360eb10989Smrg esac 18370eb10989Smrg case " $ac_configure_args " in 18380eb10989Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 18390eb10989Smrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 18400eb10989Smrg esac 18410eb10989Smrg fi 18420eb10989Smrgdone 18430eb10989Smrgif $ac_cache_corrupted; then 184463165362Smrg { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 184563165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 184663165362Smrg { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 184763165362Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 184863165362Smrg { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 184963165362Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 18500eb10989Smrg { (exit 1); exit 1; }; } 18510eb10989Smrgfi 18520eb10989Smrg 18530eb10989Smrg 18540eb10989Smrg 18550eb10989Smrg 18560eb10989Smrg 18570eb10989Smrg 18580eb10989Smrg 18590eb10989Smrg 18600eb10989Smrg 18610eb10989Smrg 18620eb10989Smrg 18630eb10989Smrg 18640eb10989Smrg 18650eb10989Smrg 18660eb10989Smrg 18670eb10989Smrg 18680eb10989Smrg 18690eb10989Smrg 18700eb10989Smrg 18710eb10989Smrg 18720eb10989Smrg 18730eb10989Smrg 18740eb10989Smrg 18750eb10989Smrg 18760eb10989Smrg 187763165362Smrgac_ext=c 187863165362Smrgac_cpp='$CPP $CPPFLAGS' 187963165362Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 188063165362Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 188163165362Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 18820eb10989Smrg 18830eb10989Smrg 188463165362Smrgam__api_version='1.11' 18850eb10989Smrg 18860eb10989Smrgac_aux_dir= 188763165362Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 188863165362Smrg if test -f "$ac_dir/install-sh"; then 18890eb10989Smrg ac_aux_dir=$ac_dir 18900eb10989Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 18910eb10989Smrg break 189263165362Smrg elif test -f "$ac_dir/install.sh"; then 18930eb10989Smrg ac_aux_dir=$ac_dir 18940eb10989Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 18950eb10989Smrg break 189663165362Smrg elif test -f "$ac_dir/shtool"; then 18970eb10989Smrg ac_aux_dir=$ac_dir 18980eb10989Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 18990eb10989Smrg break 19000eb10989Smrg fi 19010eb10989Smrgdone 19020eb10989Smrgif test -z "$ac_aux_dir"; then 190363165362Smrg { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 190463165362Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 19050eb10989Smrg { (exit 1); exit 1; }; } 19060eb10989Smrgfi 190763165362Smrg 190863165362Smrg# These three variables are undocumented and unsupported, 190963165362Smrg# and are intended to be withdrawn in a future Autoconf release. 191063165362Smrg# They can cause serious problems if a builder's source tree is in a directory 191163165362Smrg# whose full name contains unusual characters. 191263165362Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 191363165362Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 191463165362Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 191563165362Smrg 19160eb10989Smrg 19170eb10989Smrg# Find a good install program. We prefer a C program (faster), 19180eb10989Smrg# so one script is as good as another. But avoid the broken or 19190eb10989Smrg# incompatible versions: 19200eb10989Smrg# SysV /etc/install, /usr/sbin/install 19210eb10989Smrg# SunOS /usr/etc/install 19220eb10989Smrg# IRIX /sbin/install 19230eb10989Smrg# AIX /bin/install 19240eb10989Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 19250eb10989Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19260eb10989Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19270eb10989Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19280eb10989Smrg# OS/2's system install, which has a completely different semantic 19290eb10989Smrg# ./install, which can be erroneously created by make from ./install.sh. 193063165362Smrg# Reject install programs that cannot install multiple files. 193163165362Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 193263165362Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 19330eb10989Smrgif test -z "$INSTALL"; then 19340eb10989Smrgif test "${ac_cv_path_install+set}" = set; then 193563165362Smrg $as_echo_n "(cached) " >&6 19360eb10989Smrgelse 19370eb10989Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19380eb10989Smrgfor as_dir in $PATH 19390eb10989Smrgdo 19400eb10989Smrg IFS=$as_save_IFS 19410eb10989Smrg test -z "$as_dir" && as_dir=. 19420eb10989Smrg # Account for people who put trailing slashes in PATH elements. 19430eb10989Smrgcase $as_dir/ in 19440eb10989Smrg ./ | .// | /cC/* | \ 19450eb10989Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19460eb10989Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19470eb10989Smrg /usr/ucb/* ) ;; 19480eb10989Smrg *) 19490eb10989Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 19500eb10989Smrg # Don't use installbsd from OSF since it installs stuff as root 19510eb10989Smrg # by default. 19520eb10989Smrg for ac_prog in ginstall scoinst install; do 19530eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 195463165362Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 19550eb10989Smrg if test $ac_prog = install && 19560eb10989Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19570eb10989Smrg # AIX install. It has an incompatible calling convention. 19580eb10989Smrg : 19590eb10989Smrg elif test $ac_prog = install && 19600eb10989Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19610eb10989Smrg # program-specific install script used by HP pwplus--don't use. 19620eb10989Smrg : 19630eb10989Smrg else 196463165362Smrg rm -rf conftest.one conftest.two conftest.dir 196563165362Smrg echo one > conftest.one 196663165362Smrg echo two > conftest.two 196763165362Smrg mkdir conftest.dir 196863165362Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 196963165362Smrg test -s conftest.one && test -s conftest.two && 197063165362Smrg test -s conftest.dir/conftest.one && 197163165362Smrg test -s conftest.dir/conftest.two 197263165362Smrg then 197363165362Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 197463165362Smrg break 3 197563165362Smrg fi 19760eb10989Smrg fi 19770eb10989Smrg fi 19780eb10989Smrg done 19790eb10989Smrg done 19800eb10989Smrg ;; 19810eb10989Smrgesac 198263165362Smrg 19830eb10989Smrgdone 198463165362SmrgIFS=$as_save_IFS 19850eb10989Smrg 198663165362Smrgrm -rf conftest.one conftest.two conftest.dir 19870eb10989Smrg 19880eb10989Smrgfi 19890eb10989Smrg if test "${ac_cv_path_install+set}" = set; then 19900eb10989Smrg INSTALL=$ac_cv_path_install 19910eb10989Smrg else 199263165362Smrg # As a last resort, use the slow shell script. Don't cache a 199363165362Smrg # value for INSTALL within a source directory, because that will 19940eb10989Smrg # break other packages using the cache if that directory is 199563165362Smrg # removed, or if the value is a relative name. 19960eb10989Smrg INSTALL=$ac_install_sh 19970eb10989Smrg fi 19980eb10989Smrgfi 199963165362Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 200063165362Smrg$as_echo "$INSTALL" >&6; } 20010eb10989Smrg 20020eb10989Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20030eb10989Smrg# It thinks the first close brace ends the variable substitution. 20040eb10989Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20050eb10989Smrg 20060eb10989Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20070eb10989Smrg 20080eb10989Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20090eb10989Smrg 201063165362Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 201163165362Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 20120eb10989Smrg# Just in case 20130eb10989Smrgsleep 1 20140eb10989Smrgecho timestamp > conftest.file 201563165362Smrg# Reject unsafe characters in $srcdir or the absolute working directory 201663165362Smrg# name. Accept space and tab only in the latter. 201763165362Smrgam_lf=' 201863165362Smrg' 201963165362Smrgcase `pwd` in 202063165362Smrg *[\\\"\#\$\&\'\`$am_lf]*) 202163165362Smrg { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 202263165362Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 202363165362Smrg { (exit 1); exit 1; }; };; 202463165362Smrgesac 202563165362Smrgcase $srcdir in 202663165362Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 202763165362Smrg { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 202863165362Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 202963165362Smrg { (exit 1); exit 1; }; };; 203063165362Smrgesac 203163165362Smrg 20320eb10989Smrg# Do `set' in a subshell so we don't clobber the current shell's 20330eb10989Smrg# arguments. Must try -L first in case configure is actually a 20340eb10989Smrg# symlink; some systems play weird games with the mod time of symlinks 20350eb10989Smrg# (eg FreeBSD returns the mod time of the symlink's containing 20360eb10989Smrg# directory). 20370eb10989Smrgif ( 203863165362Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 20390eb10989Smrg if test "$*" = "X"; then 20400eb10989Smrg # -L didn't work. 204163165362Smrg set X `ls -t "$srcdir/configure" conftest.file` 20420eb10989Smrg fi 20430eb10989Smrg rm -f conftest.file 20440eb10989Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 20450eb10989Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 20460eb10989Smrg 20470eb10989Smrg # If neither matched, then we have a broken ls. This can happen 20480eb10989Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 20490eb10989Smrg # broken ls alias from the environment. This has actually 20500eb10989Smrg # happened. Such a system could not be considered "sane". 205163165362Smrg { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 20520eb10989Smrgalias in your environment" >&5 205363165362Smrg$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 20540eb10989Smrgalias in your environment" >&2;} 20550eb10989Smrg { (exit 1); exit 1; }; } 20560eb10989Smrg fi 20570eb10989Smrg 20580eb10989Smrg test "$2" = conftest.file 20590eb10989Smrg ) 20600eb10989Smrgthen 20610eb10989Smrg # Ok. 20620eb10989Smrg : 20630eb10989Smrgelse 206463165362Smrg { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 20650eb10989SmrgCheck your system clock" >&5 206663165362Smrg$as_echo "$as_me: error: newly created file is older than distributed files! 20670eb10989SmrgCheck your system clock" >&2;} 20680eb10989Smrg { (exit 1); exit 1; }; } 20690eb10989Smrgfi 207063165362Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 207163165362Smrg$as_echo "yes" >&6; } 20720eb10989Smrgtest "$program_prefix" != NONE && 207363165362Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 20740eb10989Smrg# Use a double $ so make ignores it. 20750eb10989Smrgtest "$program_suffix" != NONE && 207663165362Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 207763165362Smrg# Double any \ or $. 20780eb10989Smrg# By default was `s,x,x', remove it if useless. 207963165362Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 208063165362Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 20810eb10989Smrg 20820eb10989Smrg# expand $ac_aux_dir to an absolute path 20830eb10989Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 20840eb10989Smrg 208563165362Smrgif test x"${MISSING+set}" != xset; then 208663165362Smrg case $am_aux_dir in 208763165362Smrg *\ * | *\ *) 208863165362Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 208963165362Smrg *) 209063165362Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 209163165362Smrg esac 209263165362Smrgfi 20930eb10989Smrg# Use eval to expand $SHELL 20940eb10989Smrgif eval "$MISSING --run true"; then 20950eb10989Smrg am_missing_run="$MISSING --run " 20960eb10989Smrgelse 20970eb10989Smrg am_missing_run= 209863165362Smrg { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 209963165362Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 210063165362Smrgfi 210163165362Smrg 210263165362Smrgif test x"${install_sh}" != xset; then 210363165362Smrg case $am_aux_dir in 210463165362Smrg *\ * | *\ *) 210563165362Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 210663165362Smrg *) 210763165362Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 210863165362Smrg esac 210963165362Smrgfi 211063165362Smrg 211163165362Smrg# Installed binaries are usually stripped using `strip' when the user 211263165362Smrg# run `make install-strip'. However `strip' might not be the right 211363165362Smrg# tool to use in cross-compilation environments, therefore Automake 211463165362Smrg# will honor the `STRIP' environment variable to overrule this program. 211563165362Smrgif test "$cross_compiling" != no; then 211663165362Smrg if test -n "$ac_tool_prefix"; then 211763165362Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 211863165362Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 211963165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 212063165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 212163165362Smrgif test "${ac_cv_prog_STRIP+set}" = set; then 212263165362Smrg $as_echo_n "(cached) " >&6 212363165362Smrgelse 212463165362Smrg if test -n "$STRIP"; then 212563165362Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 212663165362Smrgelse 212763165362Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212863165362Smrgfor as_dir in $PATH 212963165362Smrgdo 213063165362Smrg IFS=$as_save_IFS 213163165362Smrg test -z "$as_dir" && as_dir=. 213263165362Smrg for ac_exec_ext in '' $ac_executable_extensions; do 213363165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 213463165362Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 213563165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 213663165362Smrg break 2 213763165362Smrg fi 213863165362Smrgdone 213963165362Smrgdone 214063165362SmrgIFS=$as_save_IFS 214163165362Smrg 214263165362Smrgfi 214363165362Smrgfi 214463165362SmrgSTRIP=$ac_cv_prog_STRIP 214563165362Smrgif test -n "$STRIP"; then 214663165362Smrg { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 214763165362Smrg$as_echo "$STRIP" >&6; } 214863165362Smrgelse 214963165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 215063165362Smrg$as_echo "no" >&6; } 215163165362Smrgfi 215263165362Smrg 215363165362Smrg 215463165362Smrgfi 215563165362Smrgif test -z "$ac_cv_prog_STRIP"; then 215663165362Smrg ac_ct_STRIP=$STRIP 215763165362Smrg # Extract the first word of "strip", so it can be a program name with args. 215863165362Smrgset dummy strip; ac_word=$2 215963165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 216063165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 216163165362Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 216263165362Smrg $as_echo_n "(cached) " >&6 216363165362Smrgelse 216463165362Smrg if test -n "$ac_ct_STRIP"; then 216563165362Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 216663165362Smrgelse 216763165362Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 216863165362Smrgfor as_dir in $PATH 216963165362Smrgdo 217063165362Smrg IFS=$as_save_IFS 217163165362Smrg test -z "$as_dir" && as_dir=. 217263165362Smrg for ac_exec_ext in '' $ac_executable_extensions; do 217363165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 217463165362Smrg ac_cv_prog_ac_ct_STRIP="strip" 217563165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 217663165362Smrg break 2 217763165362Smrg fi 217863165362Smrgdone 217963165362Smrgdone 218063165362SmrgIFS=$as_save_IFS 218163165362Smrg 218263165362Smrgfi 218363165362Smrgfi 218463165362Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 218563165362Smrgif test -n "$ac_ct_STRIP"; then 218663165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 218763165362Smrg$as_echo "$ac_ct_STRIP" >&6; } 218863165362Smrgelse 218963165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 219063165362Smrg$as_echo "no" >&6; } 219163165362Smrgfi 219263165362Smrg 219363165362Smrg if test "x$ac_ct_STRIP" = x; then 219463165362Smrg STRIP=":" 219563165362Smrg else 219663165362Smrg case $cross_compiling:$ac_tool_warned in 219763165362Smrgyes:) 219863165362Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 219963165362Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 220063165362Smrgac_tool_warned=yes ;; 220163165362Smrgesac 220263165362Smrg STRIP=$ac_ct_STRIP 220363165362Smrg fi 220463165362Smrgelse 220563165362Smrg STRIP="$ac_cv_prog_STRIP" 220663165362Smrgfi 220763165362Smrg 220863165362Smrgfi 220963165362SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 221063165362Smrg 221163165362Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 221263165362Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 221363165362Smrgif test -z "$MKDIR_P"; then 221463165362Smrg if test "${ac_cv_path_mkdir+set}" = set; then 221563165362Smrg $as_echo_n "(cached) " >&6 221663165362Smrgelse 221763165362Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 221863165362Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 221963165362Smrgdo 222063165362Smrg IFS=$as_save_IFS 222163165362Smrg test -z "$as_dir" && as_dir=. 222263165362Smrg for ac_prog in mkdir gmkdir; do 222363165362Smrg for ac_exec_ext in '' $ac_executable_extensions; do 222463165362Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 222563165362Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 222663165362Smrg 'mkdir (GNU coreutils) '* | \ 222763165362Smrg 'mkdir (coreutils) '* | \ 222863165362Smrg 'mkdir (fileutils) '4.1*) 222963165362Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 223063165362Smrg break 3;; 223163165362Smrg esac 223263165362Smrg done 223363165362Smrg done 223463165362Smrgdone 223563165362SmrgIFS=$as_save_IFS 223663165362Smrg 223763165362Smrgfi 223863165362Smrg 223963165362Smrg if test "${ac_cv_path_mkdir+set}" = set; then 224063165362Smrg MKDIR_P="$ac_cv_path_mkdir -p" 22410eb10989Smrg else 224263165362Smrg # As a last resort, use the slow shell script. Don't cache a 224363165362Smrg # value for MKDIR_P within a source directory, because that will 224463165362Smrg # break other packages using the cache if that directory is 224563165362Smrg # removed, or if the value is a relative name. 224663165362Smrg test -d ./--version && rmdir ./--version 224763165362Smrg MKDIR_P="$ac_install_sh -d" 22480eb10989Smrg fi 22490eb10989Smrgfi 225063165362Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 225163165362Smrg$as_echo "$MKDIR_P" >&6; } 225263165362Smrg 225363165362Smrgmkdir_p="$MKDIR_P" 225463165362Smrgcase $mkdir_p in 225563165362Smrg [\\/$]* | ?:[\\/]*) ;; 225663165362Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 225763165362Smrgesac 22580eb10989Smrg 22590eb10989Smrgfor ac_prog in gawk mawk nawk awk 22600eb10989Smrgdo 22610eb10989Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 22620eb10989Smrgset dummy $ac_prog; ac_word=$2 226363165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 226463165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 22650eb10989Smrgif test "${ac_cv_prog_AWK+set}" = set; then 226663165362Smrg $as_echo_n "(cached) " >&6 22670eb10989Smrgelse 22680eb10989Smrg if test -n "$AWK"; then 22690eb10989Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 22700eb10989Smrgelse 22710eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22720eb10989Smrgfor as_dir in $PATH 22730eb10989Smrgdo 22740eb10989Smrg IFS=$as_save_IFS 22750eb10989Smrg test -z "$as_dir" && as_dir=. 22760eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 227763165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22780eb10989Smrg ac_cv_prog_AWK="$ac_prog" 227963165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22800eb10989Smrg break 2 22810eb10989Smrg fi 22820eb10989Smrgdone 22830eb10989Smrgdone 228463165362SmrgIFS=$as_save_IFS 22850eb10989Smrg 22860eb10989Smrgfi 22870eb10989Smrgfi 22880eb10989SmrgAWK=$ac_cv_prog_AWK 22890eb10989Smrgif test -n "$AWK"; then 229063165362Smrg { $as_echo "$as_me:$LINENO: result: $AWK" >&5 229163165362Smrg$as_echo "$AWK" >&6; } 22920eb10989Smrgelse 229363165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 229463165362Smrg$as_echo "no" >&6; } 22950eb10989Smrgfi 22960eb10989Smrg 229763165362Smrg 22980eb10989Smrg test -n "$AWK" && break 22990eb10989Smrgdone 23000eb10989Smrg 230163165362Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 230263165362Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 230363165362Smrgset x ${MAKE-make} 230463165362Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 230563165362Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 230663165362Smrg $as_echo_n "(cached) " >&6 23070eb10989Smrgelse 23080eb10989Smrg cat >conftest.make <<\_ACEOF 230963165362SmrgSHELL = /bin/sh 23100eb10989Smrgall: 231163165362Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 23120eb10989Smrg_ACEOF 23130eb10989Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 231463165362Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 231563165362Smrg *@@@%%%=?*=@@@%%%*) 231663165362Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 231763165362Smrg *) 231863165362Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 231963165362Smrgesac 23200eb10989Smrgrm -f conftest.make 23210eb10989Smrgfi 232263165362Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 232363165362Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 232463165362Smrg$as_echo "yes" >&6; } 23250eb10989Smrg SET_MAKE= 23260eb10989Smrgelse 232763165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 232863165362Smrg$as_echo "no" >&6; } 23290eb10989Smrg SET_MAKE="MAKE=${MAKE-make}" 23300eb10989Smrgfi 23310eb10989Smrg 23320eb10989Smrgrm -rf .tst 2>/dev/null 23330eb10989Smrgmkdir .tst 2>/dev/null 23340eb10989Smrgif test -d .tst; then 23350eb10989Smrg am__leading_dot=. 23360eb10989Smrgelse 23370eb10989Smrg am__leading_dot=_ 23380eb10989Smrgfi 23390eb10989Smrgrmdir .tst 2>/dev/null 23400eb10989Smrg 234163165362Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 234263165362Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 234363165362Smrg # is not polluted with repeated "-I." 234463165362Smrg am__isrc=' -I$(srcdir)' 234563165362Smrg # test to see if srcdir already configured 234663165362Smrg if test -f $srcdir/config.status; then 234763165362Smrg { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 234863165362Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 23490eb10989Smrg { (exit 1); exit 1; }; } 235063165362Smrg fi 23510eb10989Smrgfi 23520eb10989Smrg 23530eb10989Smrg# test whether we have cygpath 23540eb10989Smrgif test -z "$CYGPATH_W"; then 23550eb10989Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 23560eb10989Smrg CYGPATH_W='cygpath -w' 23570eb10989Smrg else 23580eb10989Smrg CYGPATH_W=echo 23590eb10989Smrg fi 23600eb10989Smrgfi 23610eb10989Smrg 23620eb10989Smrg 23630eb10989Smrg# Define the identity of the package. 23640eb10989Smrg PACKAGE='makedepend' 236563165362Smrg VERSION='1.0.2' 23660eb10989Smrg 23670eb10989Smrg 23680eb10989Smrgcat >>confdefs.h <<_ACEOF 23690eb10989Smrg#define PACKAGE "$PACKAGE" 23700eb10989Smrg_ACEOF 23710eb10989Smrg 23720eb10989Smrg 23730eb10989Smrgcat >>confdefs.h <<_ACEOF 23740eb10989Smrg#define VERSION "$VERSION" 23750eb10989Smrg_ACEOF 23760eb10989Smrg 23770eb10989Smrg# Some tools Automake needs. 23780eb10989Smrg 23790eb10989SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 23800eb10989Smrg 23810eb10989Smrg 23820eb10989SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 23830eb10989Smrg 23840eb10989Smrg 23850eb10989SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 23860eb10989Smrg 23870eb10989Smrg 23880eb10989SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 23890eb10989Smrg 23900eb10989Smrg 23910eb10989SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 23920eb10989Smrg 239363165362Smrg# We need awk for the "check" target. The system "awk" is bad on 239463165362Smrg# some platforms. 239563165362Smrg# Always define AMTAR for backward compatibility. 23960eb10989Smrg 239763165362SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 23980eb10989Smrg 239963165362Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 24000eb10989Smrg 24010eb10989Smrg 24020eb10989Smrg 24030eb10989Smrg 24040eb10989Smrg 240563165362Smrgac_config_headers="$ac_config_headers makedepend-config.h" 240663165362Smrg 240763165362Smrg 240863165362Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT 240963165362Smrg 241063165362Smrg 241163165362Smrg 24120eb10989Smrg 24130eb10989Smrg 24140eb10989Smrg 24150eb10989Smrg 24160eb10989Smrg 24170eb10989Smrg 24180eb10989Smrg 24190eb10989Smrg 24200eb10989Smrg 24210eb10989Smrgac_ext=c 24220eb10989Smrgac_cpp='$CPP $CPPFLAGS' 24230eb10989Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24240eb10989Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24250eb10989Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 24260eb10989Smrgif test -n "$ac_tool_prefix"; then 24270eb10989Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 24280eb10989Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 242963165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 243063165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 24310eb10989Smrgif test "${ac_cv_prog_CC+set}" = set; then 243263165362Smrg $as_echo_n "(cached) " >&6 24330eb10989Smrgelse 24340eb10989Smrg if test -n "$CC"; then 24350eb10989Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 24360eb10989Smrgelse 24370eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24380eb10989Smrgfor as_dir in $PATH 24390eb10989Smrgdo 24400eb10989Smrg IFS=$as_save_IFS 24410eb10989Smrg test -z "$as_dir" && as_dir=. 24420eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 244363165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24440eb10989Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 244563165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24460eb10989Smrg break 2 24470eb10989Smrg fi 24480eb10989Smrgdone 24490eb10989Smrgdone 245063165362SmrgIFS=$as_save_IFS 24510eb10989Smrg 24520eb10989Smrgfi 24530eb10989Smrgfi 24540eb10989SmrgCC=$ac_cv_prog_CC 24550eb10989Smrgif test -n "$CC"; then 245663165362Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 245763165362Smrg$as_echo "$CC" >&6; } 24580eb10989Smrgelse 245963165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 246063165362Smrg$as_echo "no" >&6; } 24610eb10989Smrgfi 24620eb10989Smrg 246363165362Smrg 24640eb10989Smrgfi 24650eb10989Smrgif test -z "$ac_cv_prog_CC"; then 24660eb10989Smrg ac_ct_CC=$CC 24670eb10989Smrg # Extract the first word of "gcc", so it can be a program name with args. 24680eb10989Smrgset dummy gcc; ac_word=$2 246963165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 247063165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 24710eb10989Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 247263165362Smrg $as_echo_n "(cached) " >&6 24730eb10989Smrgelse 24740eb10989Smrg if test -n "$ac_ct_CC"; then 24750eb10989Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 24760eb10989Smrgelse 24770eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24780eb10989Smrgfor as_dir in $PATH 24790eb10989Smrgdo 24800eb10989Smrg IFS=$as_save_IFS 24810eb10989Smrg test -z "$as_dir" && as_dir=. 24820eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 248363165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24840eb10989Smrg ac_cv_prog_ac_ct_CC="gcc" 248563165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24860eb10989Smrg break 2 24870eb10989Smrg fi 24880eb10989Smrgdone 24890eb10989Smrgdone 249063165362SmrgIFS=$as_save_IFS 24910eb10989Smrg 24920eb10989Smrgfi 24930eb10989Smrgfi 24940eb10989Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 24950eb10989Smrgif test -n "$ac_ct_CC"; then 249663165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 249763165362Smrg$as_echo "$ac_ct_CC" >&6; } 24980eb10989Smrgelse 249963165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 250063165362Smrg$as_echo "no" >&6; } 25010eb10989Smrgfi 25020eb10989Smrg 250363165362Smrg if test "x$ac_ct_CC" = x; then 250463165362Smrg CC="" 250563165362Smrg else 250663165362Smrg case $cross_compiling:$ac_tool_warned in 250763165362Smrgyes:) 250863165362Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 250963165362Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 251063165362Smrgac_tool_warned=yes ;; 251163165362Smrgesac 251263165362Smrg CC=$ac_ct_CC 251363165362Smrg fi 25140eb10989Smrgelse 25150eb10989Smrg CC="$ac_cv_prog_CC" 25160eb10989Smrgfi 25170eb10989Smrg 25180eb10989Smrgif test -z "$CC"; then 251963165362Smrg if test -n "$ac_tool_prefix"; then 252063165362Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 25210eb10989Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 252263165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 252363165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 25240eb10989Smrgif test "${ac_cv_prog_CC+set}" = set; then 252563165362Smrg $as_echo_n "(cached) " >&6 25260eb10989Smrgelse 25270eb10989Smrg if test -n "$CC"; then 25280eb10989Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 25290eb10989Smrgelse 25300eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25310eb10989Smrgfor as_dir in $PATH 25320eb10989Smrgdo 25330eb10989Smrg IFS=$as_save_IFS 25340eb10989Smrg test -z "$as_dir" && as_dir=. 25350eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 253663165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25370eb10989Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 253863165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25390eb10989Smrg break 2 25400eb10989Smrg fi 25410eb10989Smrgdone 25420eb10989Smrgdone 254363165362SmrgIFS=$as_save_IFS 25440eb10989Smrg 25450eb10989Smrgfi 25460eb10989Smrgfi 25470eb10989SmrgCC=$ac_cv_prog_CC 25480eb10989Smrgif test -n "$CC"; then 254963165362Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 255063165362Smrg$as_echo "$CC" >&6; } 25510eb10989Smrgelse 255263165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 255363165362Smrg$as_echo "no" >&6; } 25540eb10989Smrgfi 25550eb10989Smrg 25560eb10989Smrg 255763165362Smrg fi 25580eb10989Smrgfi 25590eb10989Smrgif test -z "$CC"; then 25600eb10989Smrg # Extract the first word of "cc", so it can be a program name with args. 25610eb10989Smrgset dummy cc; ac_word=$2 256263165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 256363165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 25640eb10989Smrgif test "${ac_cv_prog_CC+set}" = set; then 256563165362Smrg $as_echo_n "(cached) " >&6 25660eb10989Smrgelse 25670eb10989Smrg if test -n "$CC"; then 25680eb10989Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 25690eb10989Smrgelse 25700eb10989Smrg ac_prog_rejected=no 25710eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25720eb10989Smrgfor as_dir in $PATH 25730eb10989Smrgdo 25740eb10989Smrg IFS=$as_save_IFS 25750eb10989Smrg test -z "$as_dir" && as_dir=. 25760eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 257763165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25780eb10989Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 25790eb10989Smrg ac_prog_rejected=yes 25800eb10989Smrg continue 25810eb10989Smrg fi 25820eb10989Smrg ac_cv_prog_CC="cc" 258363165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25840eb10989Smrg break 2 25850eb10989Smrg fi 25860eb10989Smrgdone 25870eb10989Smrgdone 258863165362SmrgIFS=$as_save_IFS 25890eb10989Smrg 25900eb10989Smrgif test $ac_prog_rejected = yes; then 25910eb10989Smrg # We found a bogon in the path, so make sure we never use it. 25920eb10989Smrg set dummy $ac_cv_prog_CC 25930eb10989Smrg shift 25940eb10989Smrg if test $# != 0; then 25950eb10989Smrg # We chose a different compiler from the bogus one. 25960eb10989Smrg # However, it has the same basename, so the bogon will be chosen 25970eb10989Smrg # first if we set CC to just the basename; use the full file name. 25980eb10989Smrg shift 25990eb10989Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 26000eb10989Smrg fi 26010eb10989Smrgfi 26020eb10989Smrgfi 26030eb10989Smrgfi 26040eb10989SmrgCC=$ac_cv_prog_CC 26050eb10989Smrgif test -n "$CC"; then 260663165362Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 260763165362Smrg$as_echo "$CC" >&6; } 26080eb10989Smrgelse 260963165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 261063165362Smrg$as_echo "no" >&6; } 26110eb10989Smrgfi 26120eb10989Smrg 261363165362Smrg 26140eb10989Smrgfi 26150eb10989Smrgif test -z "$CC"; then 26160eb10989Smrg if test -n "$ac_tool_prefix"; then 261763165362Smrg for ac_prog in cl.exe 26180eb10989Smrg do 26190eb10989Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 26200eb10989Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 262163165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 262263165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 26230eb10989Smrgif test "${ac_cv_prog_CC+set}" = set; then 262463165362Smrg $as_echo_n "(cached) " >&6 26250eb10989Smrgelse 26260eb10989Smrg if test -n "$CC"; then 26270eb10989Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 26280eb10989Smrgelse 26290eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26300eb10989Smrgfor as_dir in $PATH 26310eb10989Smrgdo 26320eb10989Smrg IFS=$as_save_IFS 26330eb10989Smrg test -z "$as_dir" && as_dir=. 26340eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 263563165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26360eb10989Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 263763165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 26380eb10989Smrg break 2 26390eb10989Smrg fi 26400eb10989Smrgdone 26410eb10989Smrgdone 264263165362SmrgIFS=$as_save_IFS 26430eb10989Smrg 26440eb10989Smrgfi 26450eb10989Smrgfi 26460eb10989SmrgCC=$ac_cv_prog_CC 26470eb10989Smrgif test -n "$CC"; then 264863165362Smrg { $as_echo "$as_me:$LINENO: result: $CC" >&5 264963165362Smrg$as_echo "$CC" >&6; } 26500eb10989Smrgelse 265163165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 265263165362Smrg$as_echo "no" >&6; } 26530eb10989Smrgfi 26540eb10989Smrg 265563165362Smrg 26560eb10989Smrg test -n "$CC" && break 26570eb10989Smrg done 26580eb10989Smrgfi 26590eb10989Smrgif test -z "$CC"; then 26600eb10989Smrg ac_ct_CC=$CC 266163165362Smrg for ac_prog in cl.exe 26620eb10989Smrgdo 26630eb10989Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 26640eb10989Smrgset dummy $ac_prog; ac_word=$2 266563165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 266663165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 26670eb10989Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 266863165362Smrg $as_echo_n "(cached) " >&6 26690eb10989Smrgelse 26700eb10989Smrg if test -n "$ac_ct_CC"; then 26710eb10989Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 26720eb10989Smrgelse 26730eb10989Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26740eb10989Smrgfor as_dir in $PATH 26750eb10989Smrgdo 26760eb10989Smrg IFS=$as_save_IFS 26770eb10989Smrg test -z "$as_dir" && as_dir=. 26780eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 267963165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26800eb10989Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 268163165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 26820eb10989Smrg break 2 26830eb10989Smrg fi 26840eb10989Smrgdone 26850eb10989Smrgdone 268663165362SmrgIFS=$as_save_IFS 26870eb10989Smrg 26880eb10989Smrgfi 26890eb10989Smrgfi 26900eb10989Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 26910eb10989Smrgif test -n "$ac_ct_CC"; then 269263165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 269363165362Smrg$as_echo "$ac_ct_CC" >&6; } 26940eb10989Smrgelse 269563165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 269663165362Smrg$as_echo "no" >&6; } 26970eb10989Smrgfi 26980eb10989Smrg 269963165362Smrg 27000eb10989Smrg test -n "$ac_ct_CC" && break 27010eb10989Smrgdone 27020eb10989Smrg 270363165362Smrg if test "x$ac_ct_CC" = x; then 270463165362Smrg CC="" 270563165362Smrg else 270663165362Smrg case $cross_compiling:$ac_tool_warned in 270763165362Smrgyes:) 270863165362Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 270963165362Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 271063165362Smrgac_tool_warned=yes ;; 271163165362Smrgesac 271263165362Smrg CC=$ac_ct_CC 271363165362Smrg fi 27140eb10989Smrgfi 27150eb10989Smrg 27160eb10989Smrgfi 27170eb10989Smrg 27180eb10989Smrg 271963165362Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 272063165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 272163165362Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 27220eb10989SmrgSee \`config.log' for more details." >&5 272363165362Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 27240eb10989SmrgSee \`config.log' for more details." >&2;} 272563165362Smrg { (exit 1); exit 1; }; }; } 27260eb10989Smrg 27270eb10989Smrg# Provide some information about the compiler. 272863165362Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 272963165362Smrgset X $ac_compile 273063165362Smrgac_compiler=$2 273163165362Smrg{ (ac_try="$ac_compiler --version >&5" 273263165362Smrgcase "(($ac_try" in 273363165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 273463165362Smrg *) ac_try_echo=$ac_try;; 273563165362Smrgesac 273663165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 273763165362Smrg$as_echo "$ac_try_echo") >&5 273863165362Smrg (eval "$ac_compiler --version >&5") 2>&5 27390eb10989Smrg ac_status=$? 274063165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27410eb10989Smrg (exit $ac_status); } 274263165362Smrg{ (ac_try="$ac_compiler -v >&5" 274363165362Smrgcase "(($ac_try" in 274463165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 274563165362Smrg *) ac_try_echo=$ac_try;; 274663165362Smrgesac 274763165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 274863165362Smrg$as_echo "$ac_try_echo") >&5 274963165362Smrg (eval "$ac_compiler -v >&5") 2>&5 27500eb10989Smrg ac_status=$? 275163165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27520eb10989Smrg (exit $ac_status); } 275363165362Smrg{ (ac_try="$ac_compiler -V >&5" 275463165362Smrgcase "(($ac_try" in 275563165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 275663165362Smrg *) ac_try_echo=$ac_try;; 275763165362Smrgesac 275863165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 275963165362Smrg$as_echo "$ac_try_echo") >&5 276063165362Smrg (eval "$ac_compiler -V >&5") 2>&5 27610eb10989Smrg ac_status=$? 276263165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 27630eb10989Smrg (exit $ac_status); } 27640eb10989Smrg 27650eb10989Smrgcat >conftest.$ac_ext <<_ACEOF 27660eb10989Smrg/* confdefs.h. */ 27670eb10989Smrg_ACEOF 27680eb10989Smrgcat confdefs.h >>conftest.$ac_ext 27690eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 27700eb10989Smrg/* end confdefs.h. */ 27710eb10989Smrg 27720eb10989Smrgint 27730eb10989Smrgmain () 27740eb10989Smrg{ 27750eb10989Smrg 27760eb10989Smrg ; 27770eb10989Smrg return 0; 27780eb10989Smrg} 27790eb10989Smrg_ACEOF 27800eb10989Smrgac_clean_files_save=$ac_clean_files 278163165362Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 27820eb10989Smrg# Try to create an executable without -o first, disregard a.out. 27830eb10989Smrg# It will help us diagnose broken compilers, and finding out an intuition 27840eb10989Smrg# of exeext. 278563165362Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 278663165362Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 278763165362Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 278863165362Smrg 278963165362Smrg# The possible output files: 279063165362Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 279163165362Smrg 279263165362Smrgac_rmfiles= 279363165362Smrgfor ac_file in $ac_files 279463165362Smrgdo 279563165362Smrg case $ac_file in 279663165362Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 279763165362Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 279863165362Smrg esac 279963165362Smrgdone 280063165362Smrgrm -f $ac_rmfiles 280163165362Smrg 280263165362Smrgif { (ac_try="$ac_link_default" 280363165362Smrgcase "(($ac_try" in 280463165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 280563165362Smrg *) ac_try_echo=$ac_try;; 280663165362Smrgesac 280763165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 280863165362Smrg$as_echo "$ac_try_echo") >&5 280963165362Smrg (eval "$ac_link_default") 2>&5 28100eb10989Smrg ac_status=$? 281163165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28120eb10989Smrg (exit $ac_status); }; then 281363165362Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 281463165362Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 281563165362Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 281663165362Smrg# so that the user can short-circuit this test for compilers unknown to 281763165362Smrg# Autoconf. 281863165362Smrgfor ac_file in $ac_files '' 28190eb10989Smrgdo 28200eb10989Smrg test -f "$ac_file" || continue 28210eb10989Smrg case $ac_file in 282263165362Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28230eb10989Smrg ;; 28240eb10989Smrg [ab].out ) 28250eb10989Smrg # We found the default executable, but exeext='' is most 28260eb10989Smrg # certainly right. 28270eb10989Smrg break;; 28280eb10989Smrg *.* ) 282963165362Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 283063165362Smrg then :; else 283163165362Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 283263165362Smrg fi 283363165362Smrg # We set ac_cv_exeext here because the later test for it is not 283463165362Smrg # safe: cross compilers may not add the suffix if given an `-o' 283563165362Smrg # argument, so we may need to know it at that point already. 283663165362Smrg # Even if this section looks crufty: it has the advantage of 283763165362Smrg # actually working. 28380eb10989Smrg break;; 28390eb10989Smrg * ) 28400eb10989Smrg break;; 28410eb10989Smrg esac 28420eb10989Smrgdone 284363165362Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 284463165362Smrg 28450eb10989Smrgelse 284663165362Smrg ac_file='' 284763165362Smrgfi 284863165362Smrg 284963165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 285063165362Smrg$as_echo "$ac_file" >&6; } 285163165362Smrgif test -z "$ac_file"; then 285263165362Smrg $as_echo "$as_me: failed program was:" >&5 28530eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 28540eb10989Smrg 285563165362Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 285663165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 285763165362Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 28580eb10989SmrgSee \`config.log' for more details." >&5 285963165362Smrg$as_echo "$as_me: error: C compiler cannot create executables 28600eb10989SmrgSee \`config.log' for more details." >&2;} 286163165362Smrg { (exit 77); exit 77; }; }; } 28620eb10989Smrgfi 28630eb10989Smrg 28640eb10989Smrgac_exeext=$ac_cv_exeext 28650eb10989Smrg 286663165362Smrg# Check that the compiler produces executables we can run. If not, either 28670eb10989Smrg# the compiler is broken, or we cross compile. 286863165362Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 286963165362Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 28700eb10989Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 28710eb10989Smrg# If not cross compiling, check that we can run a simple program. 28720eb10989Smrgif test "$cross_compiling" != yes; then 28730eb10989Smrg if { ac_try='./$ac_file' 287463165362Smrg { (case "(($ac_try" in 287563165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 287663165362Smrg *) ac_try_echo=$ac_try;; 287763165362Smrgesac 287863165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 287963165362Smrg$as_echo "$ac_try_echo") >&5 288063165362Smrg (eval "$ac_try") 2>&5 28810eb10989Smrg ac_status=$? 288263165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 28830eb10989Smrg (exit $ac_status); }; }; then 28840eb10989Smrg cross_compiling=no 28850eb10989Smrg else 28860eb10989Smrg if test "$cross_compiling" = maybe; then 28870eb10989Smrg cross_compiling=yes 28880eb10989Smrg else 288963165362Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 289063165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 289163165362Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 28920eb10989SmrgIf you meant to cross compile, use \`--host'. 28930eb10989SmrgSee \`config.log' for more details." >&5 289463165362Smrg$as_echo "$as_me: error: cannot run C compiled programs. 28950eb10989SmrgIf you meant to cross compile, use \`--host'. 28960eb10989SmrgSee \`config.log' for more details." >&2;} 289763165362Smrg { (exit 1); exit 1; }; }; } 28980eb10989Smrg fi 28990eb10989Smrg fi 29000eb10989Smrgfi 290163165362Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5 290263165362Smrg$as_echo "yes" >&6; } 29030eb10989Smrg 290463165362Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29050eb10989Smrgac_clean_files=$ac_clean_files_save 290663165362Smrg# Check that the compiler produces executables we can run. If not, either 29070eb10989Smrg# the compiler is broken, or we cross compile. 290863165362Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 290963165362Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 291063165362Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 291163165362Smrg$as_echo "$cross_compiling" >&6; } 291263165362Smrg 291363165362Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 291463165362Smrg$as_echo_n "checking for suffix of executables... " >&6; } 291563165362Smrgif { (ac_try="$ac_link" 291663165362Smrgcase "(($ac_try" in 291763165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 291863165362Smrg *) ac_try_echo=$ac_try;; 291963165362Smrgesac 292063165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 292163165362Smrg$as_echo "$ac_try_echo") >&5 292263165362Smrg (eval "$ac_link") 2>&5 29230eb10989Smrg ac_status=$? 292463165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29250eb10989Smrg (exit $ac_status); }; then 29260eb10989Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 29270eb10989Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29280eb10989Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 29290eb10989Smrg# `rm'. 29300eb10989Smrgfor ac_file in conftest.exe conftest conftest.*; do 29310eb10989Smrg test -f "$ac_file" || continue 29320eb10989Smrg case $ac_file in 293363165362Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29340eb10989Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29350eb10989Smrg break;; 29360eb10989Smrg * ) break;; 29370eb10989Smrg esac 29380eb10989Smrgdone 29390eb10989Smrgelse 294063165362Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 294163165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 294263165362Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 29430eb10989SmrgSee \`config.log' for more details." >&5 294463165362Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 29450eb10989SmrgSee \`config.log' for more details." >&2;} 294663165362Smrg { (exit 1); exit 1; }; }; } 29470eb10989Smrgfi 29480eb10989Smrg 29490eb10989Smrgrm -f conftest$ac_cv_exeext 295063165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 295163165362Smrg$as_echo "$ac_cv_exeext" >&6; } 29520eb10989Smrg 29530eb10989Smrgrm -f conftest.$ac_ext 29540eb10989SmrgEXEEXT=$ac_cv_exeext 29550eb10989Smrgac_exeext=$EXEEXT 295663165362Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 295763165362Smrg$as_echo_n "checking for suffix of object files... " >&6; } 29580eb10989Smrgif test "${ac_cv_objext+set}" = set; then 295963165362Smrg $as_echo_n "(cached) " >&6 29600eb10989Smrgelse 29610eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 29620eb10989Smrg/* confdefs.h. */ 29630eb10989Smrg_ACEOF 29640eb10989Smrgcat confdefs.h >>conftest.$ac_ext 29650eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 29660eb10989Smrg/* end confdefs.h. */ 29670eb10989Smrg 29680eb10989Smrgint 29690eb10989Smrgmain () 29700eb10989Smrg{ 29710eb10989Smrg 29720eb10989Smrg ; 29730eb10989Smrg return 0; 29740eb10989Smrg} 29750eb10989Smrg_ACEOF 29760eb10989Smrgrm -f conftest.o conftest.obj 297763165362Smrgif { (ac_try="$ac_compile" 297863165362Smrgcase "(($ac_try" in 297963165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 298063165362Smrg *) ac_try_echo=$ac_try;; 298163165362Smrgesac 298263165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 298363165362Smrg$as_echo "$ac_try_echo") >&5 298463165362Smrg (eval "$ac_compile") 2>&5 29850eb10989Smrg ac_status=$? 298663165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 29870eb10989Smrg (exit $ac_status); }; then 298863165362Smrg for ac_file in conftest.o conftest.obj conftest.*; do 298963165362Smrg test -f "$ac_file" || continue; 29900eb10989Smrg case $ac_file in 299163165362Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29920eb10989Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29930eb10989Smrg break;; 29940eb10989Smrg esac 29950eb10989Smrgdone 29960eb10989Smrgelse 299763165362Smrg $as_echo "$as_me: failed program was:" >&5 29980eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 29990eb10989Smrg 300063165362Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 300163165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 300263165362Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 30030eb10989SmrgSee \`config.log' for more details." >&5 300463165362Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 30050eb10989SmrgSee \`config.log' for more details." >&2;} 300663165362Smrg { (exit 1); exit 1; }; }; } 30070eb10989Smrgfi 30080eb10989Smrg 30090eb10989Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 30100eb10989Smrgfi 301163165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 301263165362Smrg$as_echo "$ac_cv_objext" >&6; } 30130eb10989SmrgOBJEXT=$ac_cv_objext 30140eb10989Smrgac_objext=$OBJEXT 301563165362Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 301663165362Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 30170eb10989Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 301863165362Smrg $as_echo_n "(cached) " >&6 30190eb10989Smrgelse 30200eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 30210eb10989Smrg/* confdefs.h. */ 30220eb10989Smrg_ACEOF 30230eb10989Smrgcat confdefs.h >>conftest.$ac_ext 30240eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 30250eb10989Smrg/* end confdefs.h. */ 30260eb10989Smrg 30270eb10989Smrgint 30280eb10989Smrgmain () 30290eb10989Smrg{ 30300eb10989Smrg#ifndef __GNUC__ 30310eb10989Smrg choke me 30320eb10989Smrg#endif 30330eb10989Smrg 30340eb10989Smrg ; 30350eb10989Smrg return 0; 30360eb10989Smrg} 30370eb10989Smrg_ACEOF 30380eb10989Smrgrm -f conftest.$ac_objext 303963165362Smrgif { (ac_try="$ac_compile" 304063165362Smrgcase "(($ac_try" in 304163165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 304263165362Smrg *) ac_try_echo=$ac_try;; 304363165362Smrgesac 304463165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 304563165362Smrg$as_echo "$ac_try_echo") >&5 304663165362Smrg (eval "$ac_compile") 2>conftest.er1 30470eb10989Smrg ac_status=$? 30480eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 30490eb10989Smrg rm -f conftest.er1 30500eb10989Smrg cat conftest.err >&5 305163165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 305263165362Smrg (exit $ac_status); } && { 305363165362Smrg test -z "$ac_c_werror_flag" || 305463165362Smrg test ! -s conftest.err 305563165362Smrg } && test -s conftest.$ac_objext; then 30560eb10989Smrg ac_compiler_gnu=yes 30570eb10989Smrgelse 305863165362Smrg $as_echo "$as_me: failed program was:" >&5 30590eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 30600eb10989Smrg 306163165362Smrg ac_compiler_gnu=no 30620eb10989Smrgfi 306363165362Smrg 306463165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30650eb10989Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 30660eb10989Smrg 30670eb10989Smrgfi 306863165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 306963165362Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 307063165362Smrgif test $ac_compiler_gnu = yes; then 307163165362Smrg GCC=yes 307263165362Smrgelse 307363165362Smrg GCC= 307463165362Smrgfi 30750eb10989Smrgac_test_CFLAGS=${CFLAGS+set} 30760eb10989Smrgac_save_CFLAGS=$CFLAGS 307763165362Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 307863165362Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 30790eb10989Smrgif test "${ac_cv_prog_cc_g+set}" = set; then 308063165362Smrg $as_echo_n "(cached) " >&6 30810eb10989Smrgelse 308263165362Smrg ac_save_c_werror_flag=$ac_c_werror_flag 308363165362Smrg ac_c_werror_flag=yes 308463165362Smrg ac_cv_prog_cc_g=no 308563165362Smrg CFLAGS="-g" 308663165362Smrg cat >conftest.$ac_ext <<_ACEOF 30870eb10989Smrg/* confdefs.h. */ 30880eb10989Smrg_ACEOF 30890eb10989Smrgcat confdefs.h >>conftest.$ac_ext 30900eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 30910eb10989Smrg/* end confdefs.h. */ 30920eb10989Smrg 30930eb10989Smrgint 30940eb10989Smrgmain () 30950eb10989Smrg{ 30960eb10989Smrg 30970eb10989Smrg ; 30980eb10989Smrg return 0; 30990eb10989Smrg} 31000eb10989Smrg_ACEOF 31010eb10989Smrgrm -f conftest.$ac_objext 310263165362Smrgif { (ac_try="$ac_compile" 310363165362Smrgcase "(($ac_try" in 310463165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 310563165362Smrg *) ac_try_echo=$ac_try;; 310663165362Smrgesac 310763165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 310863165362Smrg$as_echo "$ac_try_echo") >&5 310963165362Smrg (eval "$ac_compile") 2>conftest.er1 31100eb10989Smrg ac_status=$? 31110eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 31120eb10989Smrg rm -f conftest.er1 31130eb10989Smrg cat conftest.err >&5 311463165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 311563165362Smrg (exit $ac_status); } && { 311663165362Smrg test -z "$ac_c_werror_flag" || 311763165362Smrg test ! -s conftest.err 311863165362Smrg } && test -s conftest.$ac_objext; then 311963165362Smrg ac_cv_prog_cc_g=yes 312063165362Smrgelse 312163165362Smrg $as_echo "$as_me: failed program was:" >&5 312263165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 312363165362Smrg 312463165362Smrg CFLAGS="" 312563165362Smrg cat >conftest.$ac_ext <<_ACEOF 312663165362Smrg/* confdefs.h. */ 312763165362Smrg_ACEOF 312863165362Smrgcat confdefs.h >>conftest.$ac_ext 312963165362Smrgcat >>conftest.$ac_ext <<_ACEOF 313063165362Smrg/* end confdefs.h. */ 313163165362Smrg 313263165362Smrgint 313363165362Smrgmain () 313463165362Smrg{ 313563165362Smrg 313663165362Smrg ; 313763165362Smrg return 0; 313863165362Smrg} 313963165362Smrg_ACEOF 314063165362Smrgrm -f conftest.$ac_objext 314163165362Smrgif { (ac_try="$ac_compile" 314263165362Smrgcase "(($ac_try" in 314363165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 314463165362Smrg *) ac_try_echo=$ac_try;; 314563165362Smrgesac 314663165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 314763165362Smrg$as_echo "$ac_try_echo") >&5 314863165362Smrg (eval "$ac_compile") 2>conftest.er1 31490eb10989Smrg ac_status=$? 315063165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 315163165362Smrg rm -f conftest.er1 315263165362Smrg cat conftest.err >&5 315363165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 315463165362Smrg (exit $ac_status); } && { 315563165362Smrg test -z "$ac_c_werror_flag" || 315663165362Smrg test ! -s conftest.err 315763165362Smrg } && test -s conftest.$ac_objext; then 315863165362Smrg : 315963165362Smrgelse 316063165362Smrg $as_echo "$as_me: failed program was:" >&5 316163165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 316263165362Smrg 316363165362Smrg ac_c_werror_flag=$ac_save_c_werror_flag 316463165362Smrg CFLAGS="-g" 316563165362Smrg cat >conftest.$ac_ext <<_ACEOF 316663165362Smrg/* confdefs.h. */ 316763165362Smrg_ACEOF 316863165362Smrgcat confdefs.h >>conftest.$ac_ext 316963165362Smrgcat >>conftest.$ac_ext <<_ACEOF 317063165362Smrg/* end confdefs.h. */ 317163165362Smrg 317263165362Smrgint 317363165362Smrgmain () 317463165362Smrg{ 317563165362Smrg 317663165362Smrg ; 317763165362Smrg return 0; 317863165362Smrg} 317963165362Smrg_ACEOF 318063165362Smrgrm -f conftest.$ac_objext 318163165362Smrgif { (ac_try="$ac_compile" 318263165362Smrgcase "(($ac_try" in 318363165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 318463165362Smrg *) ac_try_echo=$ac_try;; 318563165362Smrgesac 318663165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 318763165362Smrg$as_echo "$ac_try_echo") >&5 318863165362Smrg (eval "$ac_compile") 2>conftest.er1 31890eb10989Smrg ac_status=$? 319063165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 319163165362Smrg rm -f conftest.er1 319263165362Smrg cat conftest.err >&5 319363165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 319463165362Smrg (exit $ac_status); } && { 319563165362Smrg test -z "$ac_c_werror_flag" || 319663165362Smrg test ! -s conftest.err 319763165362Smrg } && test -s conftest.$ac_objext; then 31980eb10989Smrg ac_cv_prog_cc_g=yes 31990eb10989Smrgelse 320063165362Smrg $as_echo "$as_me: failed program was:" >&5 32010eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 32020eb10989Smrg 320363165362Smrg 32040eb10989Smrgfi 320563165362Smrg 320663165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 320763165362Smrgfi 320863165362Smrg 320963165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 321063165362Smrgfi 321163165362Smrg 321263165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 321363165362Smrg ac_c_werror_flag=$ac_save_c_werror_flag 32140eb10989Smrgfi 321563165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 321663165362Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 32170eb10989Smrgif test "$ac_test_CFLAGS" = set; then 32180eb10989Smrg CFLAGS=$ac_save_CFLAGS 32190eb10989Smrgelif test $ac_cv_prog_cc_g = yes; then 32200eb10989Smrg if test "$GCC" = yes; then 32210eb10989Smrg CFLAGS="-g -O2" 32220eb10989Smrg else 32230eb10989Smrg CFLAGS="-g" 32240eb10989Smrg fi 32250eb10989Smrgelse 32260eb10989Smrg if test "$GCC" = yes; then 32270eb10989Smrg CFLAGS="-O2" 32280eb10989Smrg else 32290eb10989Smrg CFLAGS= 32300eb10989Smrg fi 32310eb10989Smrgfi 323263165362Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 323363165362Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 323463165362Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then 323563165362Smrg $as_echo_n "(cached) " >&6 32360eb10989Smrgelse 323763165362Smrg ac_cv_prog_cc_c89=no 32380eb10989Smrgac_save_CC=$CC 32390eb10989Smrgcat >conftest.$ac_ext <<_ACEOF 32400eb10989Smrg/* confdefs.h. */ 32410eb10989Smrg_ACEOF 32420eb10989Smrgcat confdefs.h >>conftest.$ac_ext 32430eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 32440eb10989Smrg/* end confdefs.h. */ 32450eb10989Smrg#include <stdarg.h> 32460eb10989Smrg#include <stdio.h> 32470eb10989Smrg#include <sys/types.h> 32480eb10989Smrg#include <sys/stat.h> 32490eb10989Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 32500eb10989Smrgstruct buf { int x; }; 32510eb10989SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 32520eb10989Smrgstatic char *e (p, i) 32530eb10989Smrg char **p; 32540eb10989Smrg int i; 32550eb10989Smrg{ 32560eb10989Smrg return p[i]; 32570eb10989Smrg} 32580eb10989Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 32590eb10989Smrg{ 32600eb10989Smrg char *s; 32610eb10989Smrg va_list v; 32620eb10989Smrg va_start (v,p); 32630eb10989Smrg s = g (p, va_arg (v,int)); 32640eb10989Smrg va_end (v); 32650eb10989Smrg return s; 32660eb10989Smrg} 32670eb10989Smrg 32680eb10989Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 32690eb10989Smrg function prototypes and stuff, but not '\xHH' hex character constants. 32700eb10989Smrg These don't provoke an error unfortunately, instead are silently treated 327163165362Smrg as 'x'. The following induces an error, until -std is added to get 32720eb10989Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 32730eb10989Smrg array size at least. It's necessary to write '\x00'==0 to get something 327463165362Smrg that's true only with -std. */ 32750eb10989Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 32760eb10989Smrg 327763165362Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 327863165362Smrg inside strings and character constants. */ 327963165362Smrg#define FOO(x) 'x' 328063165362Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 328163165362Smrg 32820eb10989Smrgint test (int i, double x); 32830eb10989Smrgstruct s1 {int (*f) (int a);}; 32840eb10989Smrgstruct s2 {int (*f) (double a);}; 32850eb10989Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 32860eb10989Smrgint argc; 32870eb10989Smrgchar **argv; 32880eb10989Smrgint 32890eb10989Smrgmain () 32900eb10989Smrg{ 32910eb10989Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 32920eb10989Smrg ; 32930eb10989Smrg return 0; 32940eb10989Smrg} 32950eb10989Smrg_ACEOF 329663165362Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 329763165362Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 32980eb10989Smrgdo 32990eb10989Smrg CC="$ac_save_CC $ac_arg" 33000eb10989Smrg rm -f conftest.$ac_objext 330163165362Smrgif { (ac_try="$ac_compile" 330263165362Smrgcase "(($ac_try" in 330363165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 330463165362Smrg *) ac_try_echo=$ac_try;; 330563165362Smrgesac 330663165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 330763165362Smrg$as_echo "$ac_try_echo") >&5 330863165362Smrg (eval "$ac_compile") 2>conftest.er1 33090eb10989Smrg ac_status=$? 33100eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 33110eb10989Smrg rm -f conftest.er1 33120eb10989Smrg cat conftest.err >&5 331363165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 331463165362Smrg (exit $ac_status); } && { 331563165362Smrg test -z "$ac_c_werror_flag" || 331663165362Smrg test ! -s conftest.err 331763165362Smrg } && test -s conftest.$ac_objext; then 331863165362Smrg ac_cv_prog_cc_c89=$ac_arg 33190eb10989Smrgelse 332063165362Smrg $as_echo "$as_me: failed program was:" >&5 33210eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 33220eb10989Smrg 332363165362Smrg 33240eb10989Smrgfi 332563165362Smrg 332663165362Smrgrm -f core conftest.err conftest.$ac_objext 332763165362Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 33280eb10989Smrgdone 332963165362Smrgrm -f conftest.$ac_ext 33300eb10989SmrgCC=$ac_save_CC 33310eb10989Smrg 33320eb10989Smrgfi 333363165362Smrg# AC_CACHE_VAL 333463165362Smrgcase "x$ac_cv_prog_cc_c89" in 333563165362Smrg x) 333663165362Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 333763165362Smrg$as_echo "none needed" >&6; } ;; 333863165362Smrg xno) 333963165362Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 334063165362Smrg$as_echo "unsupported" >&6; } ;; 33410eb10989Smrg *) 334263165362Smrg CC="$CC $ac_cv_prog_cc_c89" 334363165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 334463165362Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 33450eb10989Smrgesac 33460eb10989Smrg 33470eb10989Smrg 33480eb10989Smrgac_ext=c 33490eb10989Smrgac_cpp='$CPP $CPPFLAGS' 33500eb10989Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33510eb10989Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33520eb10989Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 33530eb10989SmrgDEPDIR="${am__leading_dot}deps" 33540eb10989Smrg 335563165362Smrgac_config_commands="$ac_config_commands depfiles" 33560eb10989Smrg 33570eb10989Smrg 33580eb10989Smrgam_make=${MAKE-make} 33590eb10989Smrgcat > confinc << 'END' 33600eb10989Smrgam__doit: 336163165362Smrg @echo this is the am__doit target 33620eb10989Smrg.PHONY: am__doit 33630eb10989SmrgEND 33640eb10989Smrg# If we don't find an include directive, just comment out the code. 336563165362Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 336663165362Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 33670eb10989Smrgam__include="#" 33680eb10989Smrgam__quote= 33690eb10989Smrg_am_result=none 33700eb10989Smrg# First try GNU make style include. 33710eb10989Smrgecho "include confinc" > confmf 337263165362Smrg# Ignore all kinds of additional output from `make'. 337363165362Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 337463165362Smrg*the\ am__doit\ target*) 337563165362Smrg am__include=include 337663165362Smrg am__quote= 337763165362Smrg _am_result=GNU 337863165362Smrg ;; 337963165362Smrgesac 33800eb10989Smrg# Now try BSD make style include. 33810eb10989Smrgif test "$am__include" = "#"; then 33820eb10989Smrg echo '.include "confinc"' > confmf 338363165362Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 338463165362Smrg *the\ am__doit\ target*) 338563165362Smrg am__include=.include 338663165362Smrg am__quote="\"" 338763165362Smrg _am_result=BSD 338863165362Smrg ;; 338963165362Smrg esac 33900eb10989Smrgfi 33910eb10989Smrg 33920eb10989Smrg 339363165362Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 339463165362Smrg$as_echo "$_am_result" >&6; } 33950eb10989Smrgrm -f confinc confmf 33960eb10989Smrg 339763165362Smrg# Check whether --enable-dependency-tracking was given. 33980eb10989Smrgif test "${enable_dependency_tracking+set}" = set; then 339963165362Smrg enableval=$enable_dependency_tracking; 340063165362Smrgfi 34010eb10989Smrg 34020eb10989Smrgif test "x$enable_dependency_tracking" != xno; then 34030eb10989Smrg am_depcomp="$ac_aux_dir/depcomp" 34040eb10989Smrg AMDEPBACKSLASH='\' 34050eb10989Smrgfi 340663165362Smrg if test "x$enable_dependency_tracking" != xno; then 34070eb10989Smrg AMDEP_TRUE= 34080eb10989Smrg AMDEP_FALSE='#' 34090eb10989Smrgelse 34100eb10989Smrg AMDEP_TRUE='#' 34110eb10989Smrg AMDEP_FALSE= 34120eb10989Smrgfi 34130eb10989Smrg 34140eb10989Smrg 34150eb10989Smrg 34160eb10989Smrgdepcc="$CC" am_compiler_list= 34170eb10989Smrg 341863165362Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 341963165362Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 34200eb10989Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 342163165362Smrg $as_echo_n "(cached) " >&6 34220eb10989Smrgelse 34230eb10989Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 34240eb10989Smrg # We make a subdir and do the tests there. Otherwise we can end up 34250eb10989Smrg # making bogus files that we don't know about and never remove. For 34260eb10989Smrg # instance it was reported that on HP-UX the gcc test will end up 34270eb10989Smrg # making a dummy file named `D' -- because `-MD' means `put the output 34280eb10989Smrg # in D'. 34290eb10989Smrg mkdir conftest.dir 34300eb10989Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 34310eb10989Smrg # using a relative directory. 34320eb10989Smrg cp "$am_depcomp" conftest.dir 34330eb10989Smrg cd conftest.dir 34340eb10989Smrg # We will build objects and dependencies in a subdirectory because 34350eb10989Smrg # it helps to detect inapplicable dependency modes. For instance 34360eb10989Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 34370eb10989Smrg # side effect of compilation, but ICC will put the dependencies in 34380eb10989Smrg # the current directory while Tru64 will put them in the object 34390eb10989Smrg # directory. 34400eb10989Smrg mkdir sub 34410eb10989Smrg 34420eb10989Smrg am_cv_CC_dependencies_compiler_type=none 34430eb10989Smrg if test "$am_compiler_list" = ""; then 34440eb10989Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 34450eb10989Smrg fi 344663165362Smrg am__universal=false 344763165362Smrg case " $depcc " in #( 344863165362Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 344963165362Smrg esac 345063165362Smrg 34510eb10989Smrg for depmode in $am_compiler_list; do 34520eb10989Smrg # Setup a source with many dependencies, because some compilers 34530eb10989Smrg # like to wrap large dependency lists on column 80 (with \), and 34540eb10989Smrg # we should not choose a depcomp mode which is confused by this. 34550eb10989Smrg # 34560eb10989Smrg # We need to recreate these files for each test, as the compiler may 34570eb10989Smrg # overwrite some of them when testing with obscure command lines. 34580eb10989Smrg # This happens at least with the AIX C compiler. 34590eb10989Smrg : > sub/conftest.c 34600eb10989Smrg for i in 1 2 3 4 5 6; do 34610eb10989Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 34620eb10989Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 34630eb10989Smrg # Solaris 8's {/usr,}/bin/sh. 34640eb10989Smrg touch sub/conftst$i.h 34650eb10989Smrg done 34660eb10989Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 34670eb10989Smrg 346863165362Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 346963165362Smrg # mode. It turns out that the SunPro C++ compiler does not properly 347063165362Smrg # handle `-M -o', and we need to detect this. Also, some Intel 347163165362Smrg # versions had trouble with output in subdirs 347263165362Smrg am__obj=sub/conftest.${OBJEXT-o} 347363165362Smrg am__minus_obj="-o $am__obj" 34740eb10989Smrg case $depmode in 347563165362Smrg gcc) 347663165362Smrg # This depmode causes a compiler race in universal mode. 347763165362Smrg test "$am__universal" = false || continue 347863165362Smrg ;; 34790eb10989Smrg nosideeffect) 34800eb10989Smrg # after this tag, mechanisms are not by side-effect, so they'll 34810eb10989Smrg # only be used when explicitly requested 34820eb10989Smrg if test "x$enable_dependency_tracking" = xyes; then 34830eb10989Smrg continue 34840eb10989Smrg else 34850eb10989Smrg break 34860eb10989Smrg fi 34870eb10989Smrg ;; 348863165362Smrg msvisualcpp | msvcmsys) 348963165362Smrg # This compiler won't grok `-c -o', but also, the minuso test has 349063165362Smrg # not run yet. These depmodes are late enough in the game, and 349163165362Smrg # so weak that their functioning should not be impacted. 349263165362Smrg am__obj=conftest.${OBJEXT-o} 349363165362Smrg am__minus_obj= 349463165362Smrg ;; 34950eb10989Smrg none) break ;; 34960eb10989Smrg esac 34970eb10989Smrg if depmode=$depmode \ 349863165362Smrg source=sub/conftest.c object=$am__obj \ 34990eb10989Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 350063165362Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 35010eb10989Smrg >/dev/null 2>conftest.err && 350263165362Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 35030eb10989Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 350463165362Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 35050eb10989Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 35060eb10989Smrg # icc doesn't choke on unknown options, it will just issue warnings 35070eb10989Smrg # or remarks (even with -Werror). So we grep stderr for any message 35080eb10989Smrg # that says an option was ignored or not supported. 35090eb10989Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 35100eb10989Smrg # icc: Command line warning: ignoring option '-M'; no argument required 35110eb10989Smrg # The diagnosis changed in icc 8.0: 35120eb10989Smrg # icc: Command line remark: option '-MP' not supported 35130eb10989Smrg if (grep 'ignoring option' conftest.err || 35140eb10989Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 35150eb10989Smrg am_cv_CC_dependencies_compiler_type=$depmode 35160eb10989Smrg break 35170eb10989Smrg fi 35180eb10989Smrg fi 35190eb10989Smrg done 35200eb10989Smrg 35210eb10989Smrg cd .. 35220eb10989Smrg rm -rf conftest.dir 35230eb10989Smrgelse 35240eb10989Smrg am_cv_CC_dependencies_compiler_type=none 35250eb10989Smrgfi 35260eb10989Smrg 35270eb10989Smrgfi 352863165362Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 352963165362Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 35300eb10989SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 35310eb10989Smrg 353263165362Smrg if 35330eb10989Smrg test "x$enable_dependency_tracking" != xno \ 35340eb10989Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 35350eb10989Smrg am__fastdepCC_TRUE= 35360eb10989Smrg am__fastdepCC_FALSE='#' 35370eb10989Smrgelse 35380eb10989Smrg am__fastdepCC_TRUE='#' 35390eb10989Smrg am__fastdepCC_FALSE= 35400eb10989Smrgfi 35410eb10989Smrg 35420eb10989Smrg 35430eb10989Smrg 354463165362Smrgac_ext=c 354563165362Smrgac_cpp='$CPP $CPPFLAGS' 354663165362Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 354763165362Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 354863165362Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 354963165362Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 355063165362Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 355163165362Smrg# On Suns, sometimes $CPP names a directory. 355263165362Smrgif test -n "$CPP" && test -d "$CPP"; then 355363165362Smrg CPP= 355463165362Smrgfi 355563165362Smrgif test -z "$CPP"; then 355663165362Smrg if test "${ac_cv_prog_CPP+set}" = set; then 355763165362Smrg $as_echo_n "(cached) " >&6 35580eb10989Smrgelse 355963165362Smrg # Double quotes because CPP needs to be expanded 356063165362Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 356163165362Smrg do 356263165362Smrg ac_preproc_ok=false 356363165362Smrgfor ac_c_preproc_warn_flag in '' yes 356463165362Smrgdo 356563165362Smrg # Use a header file that comes with gcc, so configuring glibc 356663165362Smrg # with a fresh cross-compiler works. 356763165362Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 356863165362Smrg # <limits.h> exists even on freestanding compilers. 356963165362Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 357063165362Smrg # not just through cpp. "Syntax error" is here to catch this case. 35710eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 35720eb10989Smrg/* confdefs.h. */ 35730eb10989Smrg_ACEOF 35740eb10989Smrgcat confdefs.h >>conftest.$ac_ext 35750eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 35760eb10989Smrg/* end confdefs.h. */ 357763165362Smrg#ifdef __STDC__ 357863165362Smrg# include <limits.h> 35790eb10989Smrg#else 358063165362Smrg# include <assert.h> 35810eb10989Smrg#endif 358263165362Smrg Syntax error 358363165362Smrg_ACEOF 358463165362Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 358563165362Smrgcase "(($ac_try" in 358663165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 358763165362Smrg *) ac_try_echo=$ac_try;; 358863165362Smrgesac 358963165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 359063165362Smrg$as_echo "$ac_try_echo") >&5 359163165362Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 359263165362Smrg ac_status=$? 359363165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 359463165362Smrg rm -f conftest.er1 359563165362Smrg cat conftest.err >&5 359663165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 359763165362Smrg (exit $ac_status); } >/dev/null && { 359863165362Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 359963165362Smrg test ! -s conftest.err 360063165362Smrg }; then 360163165362Smrg : 360263165362Smrgelse 360363165362Smrg $as_echo "$as_me: failed program was:" >&5 360463165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 360563165362Smrg 360663165362Smrg # Broken: fails on valid input. 360763165362Smrgcontinue 360863165362Smrgfi 360963165362Smrg 361063165362Smrgrm -f conftest.err conftest.$ac_ext 361163165362Smrg 361263165362Smrg # OK, works on sane cases. Now check whether nonexistent headers 361363165362Smrg # can be detected and how. 361463165362Smrg cat >conftest.$ac_ext <<_ACEOF 361563165362Smrg/* confdefs.h. */ 361663165362Smrg_ACEOF 361763165362Smrgcat confdefs.h >>conftest.$ac_ext 361863165362Smrgcat >>conftest.$ac_ext <<_ACEOF 361963165362Smrg/* end confdefs.h. */ 362063165362Smrg#include <ac_nonexistent.h> 362163165362Smrg_ACEOF 362263165362Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 362363165362Smrgcase "(($ac_try" in 362463165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 362563165362Smrg *) ac_try_echo=$ac_try;; 362663165362Smrgesac 362763165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 362863165362Smrg$as_echo "$ac_try_echo") >&5 362963165362Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 363063165362Smrg ac_status=$? 363163165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 363263165362Smrg rm -f conftest.er1 363363165362Smrg cat conftest.err >&5 363463165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 363563165362Smrg (exit $ac_status); } >/dev/null && { 363663165362Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 363763165362Smrg test ! -s conftest.err 363863165362Smrg }; then 363963165362Smrg # Broken: success on invalid input. 364063165362Smrgcontinue 364163165362Smrgelse 364263165362Smrg $as_echo "$as_me: failed program was:" >&5 364363165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 364463165362Smrg 364563165362Smrg # Passes both tests. 364663165362Smrgac_preproc_ok=: 364763165362Smrgbreak 364863165362Smrgfi 364963165362Smrg 365063165362Smrgrm -f conftest.err conftest.$ac_ext 365163165362Smrg 365263165362Smrgdone 365363165362Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 365463165362Smrgrm -f conftest.err conftest.$ac_ext 365563165362Smrgif $ac_preproc_ok; then 365663165362Smrg break 365763165362Smrgfi 365863165362Smrg 365963165362Smrg done 366063165362Smrg ac_cv_prog_CPP=$CPP 366163165362Smrg 366263165362Smrgfi 366363165362Smrg CPP=$ac_cv_prog_CPP 366463165362Smrgelse 366563165362Smrg ac_cv_prog_CPP=$CPP 366663165362Smrgfi 366763165362Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 366863165362Smrg$as_echo "$CPP" >&6; } 366963165362Smrgac_preproc_ok=false 367063165362Smrgfor ac_c_preproc_warn_flag in '' yes 367163165362Smrgdo 367263165362Smrg # Use a header file that comes with gcc, so configuring glibc 367363165362Smrg # with a fresh cross-compiler works. 367463165362Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 367563165362Smrg # <limits.h> exists even on freestanding compilers. 367663165362Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 367763165362Smrg # not just through cpp. "Syntax error" is here to catch this case. 367863165362Smrg cat >conftest.$ac_ext <<_ACEOF 367963165362Smrg/* confdefs.h. */ 368063165362Smrg_ACEOF 368163165362Smrgcat confdefs.h >>conftest.$ac_ext 368263165362Smrgcat >>conftest.$ac_ext <<_ACEOF 368363165362Smrg/* end confdefs.h. */ 368463165362Smrg#ifdef __STDC__ 368563165362Smrg# include <limits.h> 368663165362Smrg#else 368763165362Smrg# include <assert.h> 368863165362Smrg#endif 368963165362Smrg Syntax error 369063165362Smrg_ACEOF 369163165362Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 369263165362Smrgcase "(($ac_try" in 369363165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 369463165362Smrg *) ac_try_echo=$ac_try;; 369563165362Smrgesac 369663165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 369763165362Smrg$as_echo "$ac_try_echo") >&5 369863165362Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 369963165362Smrg ac_status=$? 370063165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 370163165362Smrg rm -f conftest.er1 370263165362Smrg cat conftest.err >&5 370363165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 370463165362Smrg (exit $ac_status); } >/dev/null && { 370563165362Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 370663165362Smrg test ! -s conftest.err 370763165362Smrg }; then 370863165362Smrg : 370963165362Smrgelse 371063165362Smrg $as_echo "$as_me: failed program was:" >&5 371163165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 371263165362Smrg 371363165362Smrg # Broken: fails on valid input. 371463165362Smrgcontinue 371563165362Smrgfi 371663165362Smrg 371763165362Smrgrm -f conftest.err conftest.$ac_ext 371863165362Smrg 371963165362Smrg # OK, works on sane cases. Now check whether nonexistent headers 372063165362Smrg # can be detected and how. 372163165362Smrg cat >conftest.$ac_ext <<_ACEOF 372263165362Smrg/* confdefs.h. */ 372363165362Smrg_ACEOF 372463165362Smrgcat confdefs.h >>conftest.$ac_ext 372563165362Smrgcat >>conftest.$ac_ext <<_ACEOF 372663165362Smrg/* end confdefs.h. */ 372763165362Smrg#include <ac_nonexistent.h> 372863165362Smrg_ACEOF 372963165362Smrgif { (ac_try="$ac_cpp conftest.$ac_ext" 373063165362Smrgcase "(($ac_try" in 373163165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 373263165362Smrg *) ac_try_echo=$ac_try;; 373363165362Smrgesac 373463165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 373563165362Smrg$as_echo "$ac_try_echo") >&5 373663165362Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 373763165362Smrg ac_status=$? 373863165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 373963165362Smrg rm -f conftest.er1 374063165362Smrg cat conftest.err >&5 374163165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 374263165362Smrg (exit $ac_status); } >/dev/null && { 374363165362Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 374463165362Smrg test ! -s conftest.err 374563165362Smrg }; then 374663165362Smrg # Broken: success on invalid input. 374763165362Smrgcontinue 374863165362Smrgelse 374963165362Smrg $as_echo "$as_me: failed program was:" >&5 375063165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 375163165362Smrg 375263165362Smrg # Passes both tests. 375363165362Smrgac_preproc_ok=: 375463165362Smrgbreak 375563165362Smrgfi 375663165362Smrg 375763165362Smrgrm -f conftest.err conftest.$ac_ext 375863165362Smrg 375963165362Smrgdone 376063165362Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 376163165362Smrgrm -f conftest.err conftest.$ac_ext 376263165362Smrgif $ac_preproc_ok; then 376363165362Smrg : 376463165362Smrgelse 376563165362Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 376663165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 376763165362Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 376863165362SmrgSee \`config.log' for more details." >&5 376963165362Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 377063165362SmrgSee \`config.log' for more details." >&2;} 377163165362Smrg { (exit 1); exit 1; }; }; } 377263165362Smrgfi 377363165362Smrg 377463165362Smrgac_ext=c 377563165362Smrgac_cpp='$CPP $CPPFLAGS' 377663165362Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 377763165362Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 377863165362Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 377963165362Smrg 378063165362Smrg 378163165362Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 378263165362Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 378363165362Smrgif test "${ac_cv_path_GREP+set}" = set; then 378463165362Smrg $as_echo_n "(cached) " >&6 378563165362Smrgelse 378663165362Smrg if test -z "$GREP"; then 378763165362Smrg ac_path_GREP_found=false 378863165362Smrg # Loop through the user's path and test for each of PROGNAME-LIST 378963165362Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 379063165362Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 379163165362Smrgdo 379263165362Smrg IFS=$as_save_IFS 379363165362Smrg test -z "$as_dir" && as_dir=. 379463165362Smrg for ac_prog in grep ggrep; do 379563165362Smrg for ac_exec_ext in '' $ac_executable_extensions; do 379663165362Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 379763165362Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 379863165362Smrg# Check for GNU ac_path_GREP and select it if it is found. 379963165362Smrg # Check for GNU $ac_path_GREP 380063165362Smrgcase `"$ac_path_GREP" --version 2>&1` in 380163165362Smrg*GNU*) 380263165362Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 380363165362Smrg*) 380463165362Smrg ac_count=0 380563165362Smrg $as_echo_n 0123456789 >"conftest.in" 380663165362Smrg while : 380763165362Smrg do 380863165362Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 380963165362Smrg mv "conftest.tmp" "conftest.in" 381063165362Smrg cp "conftest.in" "conftest.nl" 381163165362Smrg $as_echo 'GREP' >> "conftest.nl" 381263165362Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 381363165362Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 381463165362Smrg ac_count=`expr $ac_count + 1` 381563165362Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 381663165362Smrg # Best one so far, save it but keep looking for a better one 381763165362Smrg ac_cv_path_GREP="$ac_path_GREP" 381863165362Smrg ac_path_GREP_max=$ac_count 381963165362Smrg fi 382063165362Smrg # 10*(2^10) chars as input seems more than enough 382163165362Smrg test $ac_count -gt 10 && break 382263165362Smrg done 382363165362Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 382463165362Smrgesac 382563165362Smrg 382663165362Smrg $ac_path_GREP_found && break 3 382763165362Smrg done 382863165362Smrg done 382963165362Smrgdone 383063165362SmrgIFS=$as_save_IFS 383163165362Smrg if test -z "$ac_cv_path_GREP"; then 383263165362Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 383363165362Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 383463165362Smrg { (exit 1); exit 1; }; } 383563165362Smrg fi 383663165362Smrgelse 383763165362Smrg ac_cv_path_GREP=$GREP 383863165362Smrgfi 383963165362Smrg 384063165362Smrgfi 384163165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 384263165362Smrg$as_echo "$ac_cv_path_GREP" >&6; } 384363165362Smrg GREP="$ac_cv_path_GREP" 384463165362Smrg 384563165362Smrg 384663165362Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 384763165362Smrg$as_echo_n "checking for egrep... " >&6; } 384863165362Smrgif test "${ac_cv_path_EGREP+set}" = set; then 384963165362Smrg $as_echo_n "(cached) " >&6 385063165362Smrgelse 385163165362Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 385263165362Smrg then ac_cv_path_EGREP="$GREP -E" 385363165362Smrg else 385463165362Smrg if test -z "$EGREP"; then 385563165362Smrg ac_path_EGREP_found=false 385663165362Smrg # Loop through the user's path and test for each of PROGNAME-LIST 385763165362Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 385863165362Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 385963165362Smrgdo 386063165362Smrg IFS=$as_save_IFS 386163165362Smrg test -z "$as_dir" && as_dir=. 386263165362Smrg for ac_prog in egrep; do 386363165362Smrg for ac_exec_ext in '' $ac_executable_extensions; do 386463165362Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 386563165362Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 386663165362Smrg# Check for GNU ac_path_EGREP and select it if it is found. 386763165362Smrg # Check for GNU $ac_path_EGREP 386863165362Smrgcase `"$ac_path_EGREP" --version 2>&1` in 386963165362Smrg*GNU*) 387063165362Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 387163165362Smrg*) 387263165362Smrg ac_count=0 387363165362Smrg $as_echo_n 0123456789 >"conftest.in" 387463165362Smrg while : 387563165362Smrg do 387663165362Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 387763165362Smrg mv "conftest.tmp" "conftest.in" 387863165362Smrg cp "conftest.in" "conftest.nl" 387963165362Smrg $as_echo 'EGREP' >> "conftest.nl" 388063165362Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 388163165362Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 388263165362Smrg ac_count=`expr $ac_count + 1` 388363165362Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 388463165362Smrg # Best one so far, save it but keep looking for a better one 388563165362Smrg ac_cv_path_EGREP="$ac_path_EGREP" 388663165362Smrg ac_path_EGREP_max=$ac_count 388763165362Smrg fi 388863165362Smrg # 10*(2^10) chars as input seems more than enough 388963165362Smrg test $ac_count -gt 10 && break 389063165362Smrg done 389163165362Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 389263165362Smrgesac 389363165362Smrg 389463165362Smrg $ac_path_EGREP_found && break 3 389563165362Smrg done 389663165362Smrg done 389763165362Smrgdone 389863165362SmrgIFS=$as_save_IFS 389963165362Smrg if test -z "$ac_cv_path_EGREP"; then 390063165362Smrg { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 390163165362Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 390263165362Smrg { (exit 1); exit 1; }; } 390363165362Smrg fi 390463165362Smrgelse 390563165362Smrg ac_cv_path_EGREP=$EGREP 390663165362Smrgfi 390763165362Smrg 390863165362Smrg fi 390963165362Smrgfi 391063165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 391163165362Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 391263165362Smrg EGREP="$ac_cv_path_EGREP" 391363165362Smrg 391463165362Smrg 391563165362Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 391663165362Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 391763165362Smrgif test "${ac_cv_header_stdc+set}" = set; then 391863165362Smrg $as_echo_n "(cached) " >&6 391963165362Smrgelse 392063165362Smrg cat >conftest.$ac_ext <<_ACEOF 392163165362Smrg/* confdefs.h. */ 392263165362Smrg_ACEOF 392363165362Smrgcat confdefs.h >>conftest.$ac_ext 392463165362Smrgcat >>conftest.$ac_ext <<_ACEOF 392563165362Smrg/* end confdefs.h. */ 392663165362Smrg#include <stdlib.h> 392763165362Smrg#include <stdarg.h> 392863165362Smrg#include <string.h> 392963165362Smrg#include <float.h> 393063165362Smrg 393163165362Smrgint 393263165362Smrgmain () 393363165362Smrg{ 393463165362Smrg 393563165362Smrg ; 393663165362Smrg return 0; 393763165362Smrg} 393863165362Smrg_ACEOF 393963165362Smrgrm -f conftest.$ac_objext 394063165362Smrgif { (ac_try="$ac_compile" 394163165362Smrgcase "(($ac_try" in 394263165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 394363165362Smrg *) ac_try_echo=$ac_try;; 394463165362Smrgesac 394563165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 394663165362Smrg$as_echo "$ac_try_echo") >&5 394763165362Smrg (eval "$ac_compile") 2>conftest.er1 394863165362Smrg ac_status=$? 394963165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 395063165362Smrg rm -f conftest.er1 395163165362Smrg cat conftest.err >&5 395263165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 395363165362Smrg (exit $ac_status); } && { 395463165362Smrg test -z "$ac_c_werror_flag" || 395563165362Smrg test ! -s conftest.err 395663165362Smrg } && test -s conftest.$ac_objext; then 395763165362Smrg ac_cv_header_stdc=yes 395863165362Smrgelse 395963165362Smrg $as_echo "$as_me: failed program was:" >&5 396063165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 396163165362Smrg 396263165362Smrg ac_cv_header_stdc=no 396363165362Smrgfi 396463165362Smrg 396563165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 396663165362Smrg 396763165362Smrgif test $ac_cv_header_stdc = yes; then 396863165362Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 396963165362Smrg cat >conftest.$ac_ext <<_ACEOF 397063165362Smrg/* confdefs.h. */ 397163165362Smrg_ACEOF 397263165362Smrgcat confdefs.h >>conftest.$ac_ext 397363165362Smrgcat >>conftest.$ac_ext <<_ACEOF 397463165362Smrg/* end confdefs.h. */ 397563165362Smrg#include <string.h> 397663165362Smrg 397763165362Smrg_ACEOF 397863165362Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 397963165362Smrg $EGREP "memchr" >/dev/null 2>&1; then 398063165362Smrg : 398163165362Smrgelse 398263165362Smrg ac_cv_header_stdc=no 398363165362Smrgfi 398463165362Smrgrm -f conftest* 398563165362Smrg 398663165362Smrgfi 398763165362Smrg 398863165362Smrgif test $ac_cv_header_stdc = yes; then 398963165362Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 399063165362Smrg cat >conftest.$ac_ext <<_ACEOF 399163165362Smrg/* confdefs.h. */ 399263165362Smrg_ACEOF 399363165362Smrgcat confdefs.h >>conftest.$ac_ext 399463165362Smrgcat >>conftest.$ac_ext <<_ACEOF 399563165362Smrg/* end confdefs.h. */ 399663165362Smrg#include <stdlib.h> 399763165362Smrg 399863165362Smrg_ACEOF 399963165362Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 400063165362Smrg $EGREP "free" >/dev/null 2>&1; then 400163165362Smrg : 400263165362Smrgelse 400363165362Smrg ac_cv_header_stdc=no 400463165362Smrgfi 400563165362Smrgrm -f conftest* 400663165362Smrg 400763165362Smrgfi 400863165362Smrg 400963165362Smrgif test $ac_cv_header_stdc = yes; then 401063165362Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 401163165362Smrg if test "$cross_compiling" = yes; then 401263165362Smrg : 401363165362Smrgelse 401463165362Smrg cat >conftest.$ac_ext <<_ACEOF 401563165362Smrg/* confdefs.h. */ 401663165362Smrg_ACEOF 401763165362Smrgcat confdefs.h >>conftest.$ac_ext 401863165362Smrgcat >>conftest.$ac_ext <<_ACEOF 401963165362Smrg/* end confdefs.h. */ 402063165362Smrg#include <ctype.h> 402163165362Smrg#include <stdlib.h> 402263165362Smrg#if ((' ' & 0x0FF) == 0x020) 402363165362Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 402463165362Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 402563165362Smrg#else 402663165362Smrg# define ISLOWER(c) \ 402763165362Smrg (('a' <= (c) && (c) <= 'i') \ 402863165362Smrg || ('j' <= (c) && (c) <= 'r') \ 402963165362Smrg || ('s' <= (c) && (c) <= 'z')) 403063165362Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 403163165362Smrg#endif 403263165362Smrg 403363165362Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 403463165362Smrgint 403563165362Smrgmain () 403663165362Smrg{ 403763165362Smrg int i; 403863165362Smrg for (i = 0; i < 256; i++) 403963165362Smrg if (XOR (islower (i), ISLOWER (i)) 404063165362Smrg || toupper (i) != TOUPPER (i)) 404163165362Smrg return 2; 404263165362Smrg return 0; 404363165362Smrg} 404463165362Smrg_ACEOF 404563165362Smrgrm -f conftest$ac_exeext 404663165362Smrgif { (ac_try="$ac_link" 404763165362Smrgcase "(($ac_try" in 404863165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 404963165362Smrg *) ac_try_echo=$ac_try;; 405063165362Smrgesac 405163165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 405263165362Smrg$as_echo "$ac_try_echo") >&5 405363165362Smrg (eval "$ac_link") 2>&5 405463165362Smrg ac_status=$? 405563165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 405663165362Smrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 405763165362Smrg { (case "(($ac_try" in 405863165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 405963165362Smrg *) ac_try_echo=$ac_try;; 406063165362Smrgesac 406163165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 406263165362Smrg$as_echo "$ac_try_echo") >&5 406363165362Smrg (eval "$ac_try") 2>&5 406463165362Smrg ac_status=$? 406563165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 406663165362Smrg (exit $ac_status); }; }; then 406763165362Smrg : 406863165362Smrgelse 406963165362Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 407063165362Smrg$as_echo "$as_me: failed program was:" >&5 407163165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 407263165362Smrg 407363165362Smrg( exit $ac_status ) 407463165362Smrgac_cv_header_stdc=no 407563165362Smrgfi 407663165362Smrgrm -rf conftest.dSYM 407763165362Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 407863165362Smrgfi 407963165362Smrg 408063165362Smrg 408163165362Smrgfi 408263165362Smrgfi 408363165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 408463165362Smrg$as_echo "$ac_cv_header_stdc" >&6; } 408563165362Smrgif test $ac_cv_header_stdc = yes; then 408663165362Smrg 408763165362Smrgcat >>confdefs.h <<\_ACEOF 408863165362Smrg#define STDC_HEADERS 1 408963165362Smrg_ACEOF 409063165362Smrg 409163165362Smrgfi 409263165362Smrg 409363165362Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 409463165362Smrg 409563165362Smrg 409663165362Smrg 409763165362Smrg 409863165362Smrg 409963165362Smrg 410063165362Smrg 410163165362Smrg 410263165362Smrg 410363165362Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 410463165362Smrg inttypes.h stdint.h unistd.h 410563165362Smrgdo 410663165362Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 410763165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 410863165362Smrg$as_echo_n "checking for $ac_header... " >&6; } 410963165362Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 411063165362Smrg $as_echo_n "(cached) " >&6 411163165362Smrgelse 411263165362Smrg cat >conftest.$ac_ext <<_ACEOF 411363165362Smrg/* confdefs.h. */ 411463165362Smrg_ACEOF 411563165362Smrgcat confdefs.h >>conftest.$ac_ext 411663165362Smrgcat >>conftest.$ac_ext <<_ACEOF 411763165362Smrg/* end confdefs.h. */ 411863165362Smrg$ac_includes_default 411963165362Smrg 412063165362Smrg#include <$ac_header> 412163165362Smrg_ACEOF 412263165362Smrgrm -f conftest.$ac_objext 412363165362Smrgif { (ac_try="$ac_compile" 412463165362Smrgcase "(($ac_try" in 412563165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 412663165362Smrg *) ac_try_echo=$ac_try;; 412763165362Smrgesac 412863165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 412963165362Smrg$as_echo "$ac_try_echo") >&5 413063165362Smrg (eval "$ac_compile") 2>conftest.er1 413163165362Smrg ac_status=$? 413263165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 413363165362Smrg rm -f conftest.er1 413463165362Smrg cat conftest.err >&5 413563165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 413663165362Smrg (exit $ac_status); } && { 413763165362Smrg test -z "$ac_c_werror_flag" || 413863165362Smrg test ! -s conftest.err 413963165362Smrg } && test -s conftest.$ac_objext; then 414063165362Smrg eval "$as_ac_Header=yes" 414163165362Smrgelse 414263165362Smrg $as_echo "$as_me: failed program was:" >&5 414363165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 414463165362Smrg 414563165362Smrg eval "$as_ac_Header=no" 414663165362Smrgfi 414763165362Smrg 414863165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 414963165362Smrgfi 415063165362Smrgac_res=`eval 'as_val=${'$as_ac_Header'} 415163165362Smrg $as_echo "$as_val"'` 415263165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 415363165362Smrg$as_echo "$ac_res" >&6; } 415463165362Smrgas_val=`eval 'as_val=${'$as_ac_Header'} 415563165362Smrg $as_echo "$as_val"'` 415663165362Smrg if test "x$as_val" = x""yes; then 415763165362Smrg cat >>confdefs.h <<_ACEOF 415863165362Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 415963165362Smrg_ACEOF 416063165362Smrg 416163165362Smrgfi 416263165362Smrg 416363165362Smrgdone 416463165362Smrg 416563165362Smrg 416663165362Smrg { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 416763165362Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 416863165362Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then 416963165362Smrg $as_echo_n "(cached) " >&6 417063165362Smrgelse 417163165362Smrg ac_cv_prog_cc_c99=no 417263165362Smrgac_save_CC=$CC 417363165362Smrgcat >conftest.$ac_ext <<_ACEOF 417463165362Smrg/* confdefs.h. */ 417563165362Smrg_ACEOF 417663165362Smrgcat confdefs.h >>conftest.$ac_ext 417763165362Smrgcat >>conftest.$ac_ext <<_ACEOF 417863165362Smrg/* end confdefs.h. */ 417963165362Smrg#include <stdarg.h> 418063165362Smrg#include <stdbool.h> 418163165362Smrg#include <stdlib.h> 418263165362Smrg#include <wchar.h> 418363165362Smrg#include <stdio.h> 418463165362Smrg 418563165362Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 418663165362Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 418763165362Smrg#define showlist(...) puts (#__VA_ARGS__) 418863165362Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 418963165362Smrgstatic void 419063165362Smrgtest_varargs_macros (void) 419163165362Smrg{ 419263165362Smrg int x = 1234; 419363165362Smrg int y = 5678; 419463165362Smrg debug ("Flag"); 419563165362Smrg debug ("X = %d\n", x); 419663165362Smrg showlist (The first, second, and third items.); 419763165362Smrg report (x>y, "x is %d but y is %d", x, y); 419863165362Smrg} 419963165362Smrg 420063165362Smrg// Check long long types. 420163165362Smrg#define BIG64 18446744073709551615ull 420263165362Smrg#define BIG32 4294967295ul 420363165362Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 420463165362Smrg#if !BIG_OK 420563165362Smrg your preprocessor is broken; 420663165362Smrg#endif 420763165362Smrg#if BIG_OK 420863165362Smrg#else 420963165362Smrg your preprocessor is broken; 421063165362Smrg#endif 421163165362Smrgstatic long long int bignum = -9223372036854775807LL; 421263165362Smrgstatic unsigned long long int ubignum = BIG64; 421363165362Smrg 421463165362Smrgstruct incomplete_array 421563165362Smrg{ 421663165362Smrg int datasize; 421763165362Smrg double data[]; 421863165362Smrg}; 421963165362Smrg 422063165362Smrgstruct named_init { 422163165362Smrg int number; 422263165362Smrg const wchar_t *name; 422363165362Smrg double average; 422463165362Smrg}; 422563165362Smrg 422663165362Smrgtypedef const char *ccp; 422763165362Smrg 422863165362Smrgstatic inline int 422963165362Smrgtest_restrict (ccp restrict text) 423063165362Smrg{ 423163165362Smrg // See if C++-style comments work. 423263165362Smrg // Iterate through items via the restricted pointer. 423363165362Smrg // Also check for declarations in for loops. 423463165362Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 423563165362Smrg continue; 423663165362Smrg return 0; 423763165362Smrg} 423863165362Smrg 423963165362Smrg// Check varargs and va_copy. 424063165362Smrgstatic void 424163165362Smrgtest_varargs (const char *format, ...) 424263165362Smrg{ 424363165362Smrg va_list args; 424463165362Smrg va_start (args, format); 424563165362Smrg va_list args_copy; 424663165362Smrg va_copy (args_copy, args); 424763165362Smrg 424863165362Smrg const char *str; 424963165362Smrg int number; 425063165362Smrg float fnumber; 425163165362Smrg 425263165362Smrg while (*format) 425363165362Smrg { 425463165362Smrg switch (*format++) 425563165362Smrg { 425663165362Smrg case 's': // string 425763165362Smrg str = va_arg (args_copy, const char *); 425863165362Smrg break; 425963165362Smrg case 'd': // int 426063165362Smrg number = va_arg (args_copy, int); 426163165362Smrg break; 426263165362Smrg case 'f': // float 426363165362Smrg fnumber = va_arg (args_copy, double); 426463165362Smrg break; 426563165362Smrg default: 426663165362Smrg break; 426763165362Smrg } 426863165362Smrg } 426963165362Smrg va_end (args_copy); 427063165362Smrg va_end (args); 427163165362Smrg} 427263165362Smrg 427363165362Smrgint 427463165362Smrgmain () 427563165362Smrg{ 427663165362Smrg 427763165362Smrg // Check bool. 427863165362Smrg _Bool success = false; 427963165362Smrg 428063165362Smrg // Check restrict. 428163165362Smrg if (test_restrict ("String literal") == 0) 428263165362Smrg success = true; 428363165362Smrg char *restrict newvar = "Another string"; 428463165362Smrg 428563165362Smrg // Check varargs. 428663165362Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 428763165362Smrg test_varargs_macros (); 428863165362Smrg 428963165362Smrg // Check flexible array members. 429063165362Smrg struct incomplete_array *ia = 429163165362Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 429263165362Smrg ia->datasize = 10; 429363165362Smrg for (int i = 0; i < ia->datasize; ++i) 429463165362Smrg ia->data[i] = i * 1.234; 429563165362Smrg 429663165362Smrg // Check named initializers. 429763165362Smrg struct named_init ni = { 429863165362Smrg .number = 34, 429963165362Smrg .name = L"Test wide string", 430063165362Smrg .average = 543.34343, 430163165362Smrg }; 430263165362Smrg 430363165362Smrg ni.number = 58; 430463165362Smrg 430563165362Smrg int dynamic_array[ni.number]; 430663165362Smrg dynamic_array[ni.number - 1] = 543; 430763165362Smrg 430863165362Smrg // work around unused variable warnings 430963165362Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 431063165362Smrg || dynamic_array[ni.number - 1] != 543); 431163165362Smrg 431263165362Smrg ; 431363165362Smrg return 0; 431463165362Smrg} 431563165362Smrg_ACEOF 431663165362Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 431763165362Smrgdo 431863165362Smrg CC="$ac_save_CC $ac_arg" 431963165362Smrg rm -f conftest.$ac_objext 432063165362Smrgif { (ac_try="$ac_compile" 432163165362Smrgcase "(($ac_try" in 432263165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 432363165362Smrg *) ac_try_echo=$ac_try;; 432463165362Smrgesac 432563165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 432663165362Smrg$as_echo "$ac_try_echo") >&5 432763165362Smrg (eval "$ac_compile") 2>conftest.er1 432863165362Smrg ac_status=$? 432963165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 433063165362Smrg rm -f conftest.er1 433163165362Smrg cat conftest.err >&5 433263165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 433363165362Smrg (exit $ac_status); } && { 433463165362Smrg test -z "$ac_c_werror_flag" || 433563165362Smrg test ! -s conftest.err 433663165362Smrg } && test -s conftest.$ac_objext; then 433763165362Smrg ac_cv_prog_cc_c99=$ac_arg 433863165362Smrgelse 433963165362Smrg $as_echo "$as_me: failed program was:" >&5 434063165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 434163165362Smrg 434263165362Smrg 434363165362Smrgfi 434463165362Smrg 434563165362Smrgrm -f core conftest.err conftest.$ac_objext 434663165362Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 434763165362Smrgdone 434863165362Smrgrm -f conftest.$ac_ext 434963165362SmrgCC=$ac_save_CC 435063165362Smrg 435163165362Smrgfi 435263165362Smrg# AC_CACHE_VAL 435363165362Smrgcase "x$ac_cv_prog_cc_c99" in 435463165362Smrg x) 435563165362Smrg { $as_echo "$as_me:$LINENO: result: none needed" >&5 435663165362Smrg$as_echo "none needed" >&6; } ;; 435763165362Smrg xno) 435863165362Smrg { $as_echo "$as_me:$LINENO: result: unsupported" >&5 435963165362Smrg$as_echo "unsupported" >&6; } ;; 436063165362Smrg *) 436163165362Smrg CC="$CC $ac_cv_prog_cc_c99" 436263165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 436363165362Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 436463165362Smrgesac 436563165362Smrg 436663165362Smrg 436763165362Smrg 436863165362Smrg# Make sure we can run config.sub. 436963165362Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 437063165362Smrg { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 437163165362Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 437263165362Smrg { (exit 1); exit 1; }; } 437363165362Smrg 437463165362Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5 437563165362Smrg$as_echo_n "checking build system type... " >&6; } 437663165362Smrgif test "${ac_cv_build+set}" = set; then 437763165362Smrg $as_echo_n "(cached) " >&6 437863165362Smrgelse 437963165362Smrg ac_build_alias=$build_alias 438063165362Smrgtest "x$ac_build_alias" = x && 438163165362Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 438263165362Smrgtest "x$ac_build_alias" = x && 438363165362Smrg { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 438463165362Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 438563165362Smrg { (exit 1); exit 1; }; } 438663165362Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 438763165362Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 438863165362Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 438963165362Smrg { (exit 1); exit 1; }; } 439063165362Smrg 439163165362Smrgfi 439263165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 439363165362Smrg$as_echo "$ac_cv_build" >&6; } 439463165362Smrgcase $ac_cv_build in 439563165362Smrg*-*-*) ;; 439663165362Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 439763165362Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;} 439863165362Smrg { (exit 1); exit 1; }; };; 439963165362Smrgesac 440063165362Smrgbuild=$ac_cv_build 440163165362Smrgac_save_IFS=$IFS; IFS='-' 440263165362Smrgset x $ac_cv_build 440363165362Smrgshift 440463165362Smrgbuild_cpu=$1 440563165362Smrgbuild_vendor=$2 440663165362Smrgshift; shift 440763165362Smrg# Remember, the first character of IFS is used to create $*, 440863165362Smrg# except with old shells: 440963165362Smrgbuild_os=$* 441063165362SmrgIFS=$ac_save_IFS 441163165362Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 441263165362Smrg 441363165362Smrg 441463165362Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5 441563165362Smrg$as_echo_n "checking host system type... " >&6; } 441663165362Smrgif test "${ac_cv_host+set}" = set; then 441763165362Smrg $as_echo_n "(cached) " >&6 441863165362Smrgelse 441963165362Smrg if test "x$host_alias" = x; then 442063165362Smrg ac_cv_host=$ac_cv_build 442163165362Smrgelse 442263165362Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 442363165362Smrg { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 442463165362Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 442563165362Smrg { (exit 1); exit 1; }; } 442663165362Smrgfi 442763165362Smrg 442863165362Smrgfi 442963165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 443063165362Smrg$as_echo "$ac_cv_host" >&6; } 443163165362Smrgcase $ac_cv_host in 443263165362Smrg*-*-*) ;; 443363165362Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 443463165362Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;} 443563165362Smrg { (exit 1); exit 1; }; };; 443663165362Smrgesac 443763165362Smrghost=$ac_cv_host 443863165362Smrgac_save_IFS=$IFS; IFS='-' 443963165362Smrgset x $ac_cv_host 444063165362Smrgshift 444163165362Smrghost_cpu=$1 444263165362Smrghost_vendor=$2 444363165362Smrgshift; shift 444463165362Smrg# Remember, the first character of IFS is used to create $*, 444563165362Smrg# except with old shells: 444663165362Smrghost_os=$* 444763165362SmrgIFS=$ac_save_IFS 444863165362Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 444963165362Smrg 445063165362Smrg 445163165362Smrg 445263165362Smrg 445363165362Smrg 445463165362Smrgif test "x$GCC" = xyes ; then 445563165362Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 445663165362Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 445763165362Smrg-Wbad-function-cast" 445863165362Smrg case `$CC -dumpversion` in 445963165362Smrg 3.4.* | 4.*) 446063165362Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 446163165362Smrg ;; 446263165362Smrg esac 446363165362Smrgelse 446463165362Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 446563165362Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 446663165362Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 446763165362Smrg $as_echo_n "(cached) " >&6 446863165362Smrgelse 446963165362Smrg cat >conftest.$ac_ext <<_ACEOF 447063165362Smrg/* confdefs.h. */ 447163165362Smrg_ACEOF 447263165362Smrgcat confdefs.h >>conftest.$ac_ext 447363165362Smrgcat >>conftest.$ac_ext <<_ACEOF 447463165362Smrg/* end confdefs.h. */ 447563165362Smrg$ac_includes_default 447663165362Smrgint 447763165362Smrgmain () 447863165362Smrg{ 447963165362Smrg#ifndef __SUNPRO_C 448063165362Smrg (void) __SUNPRO_C; 448163165362Smrg#endif 448263165362Smrg 448363165362Smrg ; 448463165362Smrg return 0; 448563165362Smrg} 448663165362Smrg_ACEOF 448763165362Smrgrm -f conftest.$ac_objext 448863165362Smrgif { (ac_try="$ac_compile" 448963165362Smrgcase "(($ac_try" in 449063165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 449163165362Smrg *) ac_try_echo=$ac_try;; 449263165362Smrgesac 449363165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 449463165362Smrg$as_echo "$ac_try_echo") >&5 449563165362Smrg (eval "$ac_compile") 2>conftest.er1 449663165362Smrg ac_status=$? 449763165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 449863165362Smrg rm -f conftest.er1 449963165362Smrg cat conftest.err >&5 450063165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 450163165362Smrg (exit $ac_status); } && { 450263165362Smrg test -z "$ac_c_werror_flag" || 450363165362Smrg test ! -s conftest.err 450463165362Smrg } && test -s conftest.$ac_objext; then 450563165362Smrg ac_cv_have_decl___SUNPRO_C=yes 450663165362Smrgelse 450763165362Smrg $as_echo "$as_me: failed program was:" >&5 450863165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 450963165362Smrg 451063165362Smrg ac_cv_have_decl___SUNPRO_C=no 451163165362Smrgfi 451263165362Smrg 451363165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 451463165362Smrgfi 451563165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 451663165362Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 451763165362Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 451863165362Smrg SUNCC="yes" 451963165362Smrgelse 452063165362Smrg SUNCC="no" 452163165362Smrgfi 452263165362Smrg 452363165362Smrg if test "x$SUNCC" = "xyes"; then 452463165362Smrg CWARNFLAGS="-v" 452563165362Smrg fi 452663165362Smrgfi 452763165362Smrg 452863165362Smrg# Check whether --enable-silent-rules was given. 452963165362Smrgif test "${enable_silent_rules+set}" = set; then 453063165362Smrg enableval=$enable_silent_rules; 453163165362Smrgfi 453263165362Smrg 453363165362Smrgcase $enable_silent_rules in 453463165362Smrgyes) AM_DEFAULT_VERBOSITY=0;; 453563165362Smrgno) AM_DEFAULT_VERBOSITY=1;; 453663165362Smrg*) AM_DEFAULT_VERBOSITY=0;; 453763165362Smrgesac 453863165362SmrgAM_BACKSLASH='\' 453963165362Smrg 454063165362Smrg 454163165362Smrg 454263165362Smrg 454363165362Smrg 454463165362Smrg 454563165362Smrg 454663165362Smrg# Check whether --enable-strict-compilation was given. 454763165362Smrgif test "${enable_strict_compilation+set}" = set; then 454863165362Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 454963165362Smrgelse 455063165362Smrg STRICT_COMPILE=no 455163165362Smrgfi 455263165362Smrg 455363165362Smrgif test "x$STRICT_COMPILE" = "xyes"; then 455463165362Smrg { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 455563165362Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 455663165362Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 455763165362Smrg $as_echo_n "(cached) " >&6 455863165362Smrgelse 455963165362Smrg cat >conftest.$ac_ext <<_ACEOF 456063165362Smrg/* confdefs.h. */ 456163165362Smrg_ACEOF 456263165362Smrgcat confdefs.h >>conftest.$ac_ext 456363165362Smrgcat >>conftest.$ac_ext <<_ACEOF 456463165362Smrg/* end confdefs.h. */ 456563165362Smrg$ac_includes_default 456663165362Smrgint 456763165362Smrgmain () 456863165362Smrg{ 456963165362Smrg#ifndef __SUNPRO_C 457063165362Smrg (void) __SUNPRO_C; 457163165362Smrg#endif 457263165362Smrg 457363165362Smrg ; 457463165362Smrg return 0; 457563165362Smrg} 457663165362Smrg_ACEOF 457763165362Smrgrm -f conftest.$ac_objext 457863165362Smrgif { (ac_try="$ac_compile" 457963165362Smrgcase "(($ac_try" in 458063165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 458163165362Smrg *) ac_try_echo=$ac_try;; 458263165362Smrgesac 458363165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 458463165362Smrg$as_echo "$ac_try_echo") >&5 458563165362Smrg (eval "$ac_compile") 2>conftest.er1 458663165362Smrg ac_status=$? 458763165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 458863165362Smrg rm -f conftest.er1 458963165362Smrg cat conftest.err >&5 459063165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 459163165362Smrg (exit $ac_status); } && { 459263165362Smrg test -z "$ac_c_werror_flag" || 459363165362Smrg test ! -s conftest.err 459463165362Smrg } && test -s conftest.$ac_objext; then 459563165362Smrg ac_cv_have_decl___SUNPRO_C=yes 459663165362Smrgelse 459763165362Smrg $as_echo "$as_me: failed program was:" >&5 459863165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 459963165362Smrg 460063165362Smrg ac_cv_have_decl___SUNPRO_C=no 460163165362Smrgfi 460263165362Smrg 460363165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 460463165362Smrgfi 460563165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 460663165362Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 460763165362Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 460863165362Smrg SUNCC="yes" 460963165362Smrgelse 461063165362Smrg SUNCC="no" 461163165362Smrgfi 461263165362Smrg 461363165362Smrg { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 461463165362Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 461563165362Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 461663165362Smrg $as_echo_n "(cached) " >&6 461763165362Smrgelse 461863165362Smrg cat >conftest.$ac_ext <<_ACEOF 461963165362Smrg/* confdefs.h. */ 462063165362Smrg_ACEOF 462163165362Smrgcat confdefs.h >>conftest.$ac_ext 462263165362Smrgcat >>conftest.$ac_ext <<_ACEOF 462363165362Smrg/* end confdefs.h. */ 462463165362Smrg$ac_includes_default 462563165362Smrgint 462663165362Smrgmain () 462763165362Smrg{ 462863165362Smrg#ifndef __INTEL_COMPILER 462963165362Smrg (void) __INTEL_COMPILER; 463063165362Smrg#endif 463163165362Smrg 463263165362Smrg ; 463363165362Smrg return 0; 463463165362Smrg} 463563165362Smrg_ACEOF 463663165362Smrgrm -f conftest.$ac_objext 463763165362Smrgif { (ac_try="$ac_compile" 463863165362Smrgcase "(($ac_try" in 463963165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 464063165362Smrg *) ac_try_echo=$ac_try;; 464163165362Smrgesac 464263165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 464363165362Smrg$as_echo "$ac_try_echo") >&5 464463165362Smrg (eval "$ac_compile") 2>conftest.er1 464563165362Smrg ac_status=$? 464663165362Smrg grep -v '^ *+' conftest.er1 >conftest.err 464763165362Smrg rm -f conftest.er1 464863165362Smrg cat conftest.err >&5 464963165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 465063165362Smrg (exit $ac_status); } && { 465163165362Smrg test -z "$ac_c_werror_flag" || 465263165362Smrg test ! -s conftest.err 465363165362Smrg } && test -s conftest.$ac_objext; then 465463165362Smrg ac_cv_have_decl___INTEL_COMPILER=yes 465563165362Smrgelse 465663165362Smrg $as_echo "$as_me: failed program was:" >&5 465763165362Smrgsed 's/^/| /' conftest.$ac_ext >&5 465863165362Smrg 465963165362Smrg ac_cv_have_decl___INTEL_COMPILER=no 466063165362Smrgfi 466163165362Smrg 466263165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 466363165362Smrgfi 466463165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 466563165362Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 466663165362Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 466763165362Smrg INTELCC="yes" 466863165362Smrgelse 466963165362Smrg INTELCC="no" 467063165362Smrgfi 467163165362Smrg 467263165362Smrg if test "x$GCC" = xyes ; then 467363165362Smrg STRICT_CFLAGS="-pedantic -Werror" 467463165362Smrg elif test "x$SUNCC" = "xyes"; then 467563165362Smrg STRICT_CFLAGS="-errwarn" 467663165362Smrg elif test "x$INTELCC" = "xyes"; then 467763165362Smrg STRICT_CFLAGS="-Werror" 467863165362Smrg fi 467963165362Smrgfi 468063165362SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 468163165362Smrg 468263165362Smrg 468363165362Smrg 468463165362Smrg 468563165362Smrg# Check whether --with-release-version was given. 468663165362Smrgif test "${with_release_version+set}" = set; then 468763165362Smrg withval=$with_release_version; RELEASE_VERSION="$withval" 468863165362Smrgelse 468963165362Smrg RELEASE_VERSION="" 469063165362Smrgfi 469163165362Smrg 469263165362Smrg if test "x$RELEASE_VERSION" != "x"; then 469363165362Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 469463165362Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 469563165362Smrg { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 469663165362Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 469763165362Smrg fi 469863165362Smrg 469963165362Smrgcat >>confdefs.h <<_ACEOF 470063165362Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 470163165362Smrg_ACEOF 470263165362Smrg 470363165362Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 470463165362Smrg if test "x$PVM" = "x"; then 470563165362Smrg PVM="0" 470663165362Smrg fi 470763165362Smrg 470863165362Smrgcat >>confdefs.h <<_ACEOF 470963165362Smrg#define PACKAGE_VERSION_MINOR $PVM 471063165362Smrg_ACEOF 471163165362Smrg 471263165362Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 471363165362Smrg if test "x$PVP" = "x"; then 471463165362Smrg PVP="0" 471563165362Smrg fi 471663165362Smrg 471763165362Smrgcat >>confdefs.h <<_ACEOF 471863165362Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 471963165362Smrg_ACEOF 472063165362Smrg 472163165362Smrg 472263165362Smrg 472363165362SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 472463165362Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 472563165362Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 472663165362Smrg 472763165362Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 472863165362Smrg 472963165362Smrg 473063165362Smrg 473163165362Smrg 473263165362Smrg 473363165362Smrgif test x$APP_MAN_SUFFIX = x ; then 473463165362Smrg APP_MAN_SUFFIX=1 473563165362Smrgfi 473663165362Smrgif test x$APP_MAN_DIR = x ; then 473763165362Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 473863165362Smrgfi 473963165362Smrg 474063165362Smrgif test x$LIB_MAN_SUFFIX = x ; then 474163165362Smrg LIB_MAN_SUFFIX=3 474263165362Smrgfi 474363165362Smrgif test x$LIB_MAN_DIR = x ; then 474463165362Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 474563165362Smrgfi 474663165362Smrg 474763165362Smrgif test x$FILE_MAN_SUFFIX = x ; then 474863165362Smrg case $host_os in 474963165362Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 475063165362Smrg *) FILE_MAN_SUFFIX=5 ;; 475163165362Smrg esac 475263165362Smrgfi 475363165362Smrgif test x$FILE_MAN_DIR = x ; then 475463165362Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 475563165362Smrgfi 475663165362Smrg 475763165362Smrgif test x$MISC_MAN_SUFFIX = x ; then 475863165362Smrg case $host_os in 475963165362Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 476063165362Smrg *) MISC_MAN_SUFFIX=7 ;; 476163165362Smrg esac 476263165362Smrgfi 476363165362Smrgif test x$MISC_MAN_DIR = x ; then 476463165362Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 476563165362Smrgfi 476663165362Smrg 476763165362Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 476863165362Smrg case $host_os in 476963165362Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 477063165362Smrg *) DRIVER_MAN_SUFFIX=4 ;; 477163165362Smrg esac 477263165362Smrgfi 477363165362Smrgif test x$DRIVER_MAN_DIR = x ; then 477463165362Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 477563165362Smrgfi 477663165362Smrg 477763165362Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 477863165362Smrg case $host_os in 477963165362Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 478063165362Smrg *) ADMIN_MAN_SUFFIX=8 ;; 478163165362Smrg esac 478263165362Smrgfi 478363165362Smrgif test x$ADMIN_MAN_DIR = x ; then 478463165362Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 478563165362Smrgfi 478663165362Smrg 478763165362Smrg 478863165362Smrg 478963165362Smrg 479063165362Smrg 479163165362Smrg 479263165362Smrg 479363165362Smrg 479463165362Smrg 479563165362Smrg 479663165362Smrg 479763165362Smrg 479863165362Smrg 479963165362Smrg 480063165362Smrg 480163165362Smrg 480263165362Smrg 480363165362Smrg 480463165362Smrg# Allow checking code with lint, sparse, etc. 480563165362Smrg 480663165362Smrg# Check whether --with-lint was given. 480763165362Smrgif test "${with_lint+set}" = set; then 480863165362Smrg withval=$with_lint; use_lint=$withval 480963165362Smrgelse 481063165362Smrg use_lint=no 481163165362Smrgfi 481263165362Smrg 481363165362Smrgif test "x$use_lint" = "xyes" ; then 481463165362Smrg LINT="lint" 481563165362Smrgelse 481663165362Smrg LINT="$use_lint" 481763165362Smrgfi 481863165362Smrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 481963165362Smrg case $LINT in 482063165362Smrg lint|*/lint) 482163165362Smrg case $host_os in 482263165362Smrg solaris*) 482363165362Smrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 482463165362Smrg ;; 482563165362Smrg esac 482663165362Smrg ;; 482763165362Smrg esac 482863165362Smrgfi 482963165362Smrg 483063165362Smrg 483163165362Smrg 483263165362Smrg if test x$LINT != xno; then 483363165362Smrg LINT_TRUE= 483463165362Smrg LINT_FALSE='#' 483563165362Smrgelse 483663165362Smrg LINT_TRUE='#' 483763165362Smrg LINT_FALSE= 483863165362Smrgfi 483963165362Smrg 484063165362Smrg 484163165362Smrg 484263165362Smrg 484363165362Smrg{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 484463165362Smrg$as_echo_n "checking return type of signal handlers... " >&6; } 484563165362Smrgif test "${ac_cv_type_signal+set}" = set; then 484663165362Smrg $as_echo_n "(cached) " >&6 484763165362Smrgelse 484863165362Smrg cat >conftest.$ac_ext <<_ACEOF 484963165362Smrg/* confdefs.h. */ 485063165362Smrg_ACEOF 485163165362Smrgcat confdefs.h >>conftest.$ac_ext 485263165362Smrgcat >>conftest.$ac_ext <<_ACEOF 485363165362Smrg/* end confdefs.h. */ 485463165362Smrg#include <sys/types.h> 485563165362Smrg#include <signal.h> 485663165362Smrg 485763165362Smrgint 485863165362Smrgmain () 485963165362Smrg{ 486063165362Smrgreturn *(signal (0, 0)) (0) == 1; 486163165362Smrg ; 48620eb10989Smrg return 0; 48630eb10989Smrg} 48640eb10989Smrg_ACEOF 48650eb10989Smrgrm -f conftest.$ac_objext 486663165362Smrgif { (ac_try="$ac_compile" 486763165362Smrgcase "(($ac_try" in 486863165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 486963165362Smrg *) ac_try_echo=$ac_try;; 487063165362Smrgesac 487163165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 487263165362Smrg$as_echo "$ac_try_echo") >&5 487363165362Smrg (eval "$ac_compile") 2>conftest.er1 48740eb10989Smrg ac_status=$? 48750eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 48760eb10989Smrg rm -f conftest.er1 48770eb10989Smrg cat conftest.err >&5 487863165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 487963165362Smrg (exit $ac_status); } && { 488063165362Smrg test -z "$ac_c_werror_flag" || 488163165362Smrg test ! -s conftest.err 488263165362Smrg } && test -s conftest.$ac_objext; then 488363165362Smrg ac_cv_type_signal=int 48840eb10989Smrgelse 488563165362Smrg $as_echo "$as_me: failed program was:" >&5 48860eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 48870eb10989Smrg 488863165362Smrg ac_cv_type_signal=void 48890eb10989Smrgfi 489063165362Smrg 489163165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48920eb10989Smrgfi 489363165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 489463165362Smrg$as_echo "$ac_cv_type_signal" >&6; } 48950eb10989Smrg 48960eb10989Smrgcat >>confdefs.h <<_ACEOF 48970eb10989Smrg#define RETSIGTYPE $ac_cv_type_signal 48980eb10989Smrg_ACEOF 48990eb10989Smrg 49000eb10989Smrg 49010eb10989Smrg 49020eb10989Smrg 49030eb10989Smrg 49040eb10989Smrgfor ac_func in rename fchmod 49050eb10989Smrgdo 490663165362Smrgas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 490763165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 490863165362Smrg$as_echo_n "checking for $ac_func... " >&6; } 490963165362Smrgif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 491063165362Smrg $as_echo_n "(cached) " >&6 49110eb10989Smrgelse 49120eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 49130eb10989Smrg/* confdefs.h. */ 49140eb10989Smrg_ACEOF 49150eb10989Smrgcat confdefs.h >>conftest.$ac_ext 49160eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 49170eb10989Smrg/* end confdefs.h. */ 49180eb10989Smrg/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 49190eb10989Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 49200eb10989Smrg#define $ac_func innocuous_$ac_func 49210eb10989Smrg 49220eb10989Smrg/* System header to define __stub macros and hopefully few prototypes, 49230eb10989Smrg which can conflict with char $ac_func (); below. 49240eb10989Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 49250eb10989Smrg <limits.h> exists even on freestanding compilers. */ 49260eb10989Smrg 49270eb10989Smrg#ifdef __STDC__ 49280eb10989Smrg# include <limits.h> 49290eb10989Smrg#else 49300eb10989Smrg# include <assert.h> 49310eb10989Smrg#endif 49320eb10989Smrg 49330eb10989Smrg#undef $ac_func 49340eb10989Smrg 493563165362Smrg/* Override any GCC internal prototype to avoid an error. 493663165362Smrg Use char because int might match the return type of a GCC 493763165362Smrg builtin and then its argument prototype would still apply. */ 49380eb10989Smrg#ifdef __cplusplus 49390eb10989Smrgextern "C" 49400eb10989Smrg#endif 49410eb10989Smrgchar $ac_func (); 49420eb10989Smrg/* The GNU C library defines this for functions which it implements 49430eb10989Smrg to always fail with ENOSYS. Some functions are actually named 49440eb10989Smrg something starting with __ and the normal name is an alias. */ 494563165362Smrg#if defined __stub_$ac_func || defined __stub___$ac_func 49460eb10989Smrgchoke me 49470eb10989Smrg#endif 49480eb10989Smrg 49490eb10989Smrgint 49500eb10989Smrgmain () 49510eb10989Smrg{ 495263165362Smrgreturn $ac_func (); 49530eb10989Smrg ; 49540eb10989Smrg return 0; 49550eb10989Smrg} 49560eb10989Smrg_ACEOF 49570eb10989Smrgrm -f conftest.$ac_objext conftest$ac_exeext 495863165362Smrgif { (ac_try="$ac_link" 495963165362Smrgcase "(($ac_try" in 496063165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 496163165362Smrg *) ac_try_echo=$ac_try;; 496263165362Smrgesac 496363165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 496463165362Smrg$as_echo "$ac_try_echo") >&5 496563165362Smrg (eval "$ac_link") 2>conftest.er1 49660eb10989Smrg ac_status=$? 49670eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 49680eb10989Smrg rm -f conftest.er1 49690eb10989Smrg cat conftest.err >&5 497063165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 497163165362Smrg (exit $ac_status); } && { 497263165362Smrg test -z "$ac_c_werror_flag" || 497363165362Smrg test ! -s conftest.err 497463165362Smrg } && test -s conftest$ac_exeext && { 497563165362Smrg test "$cross_compiling" = yes || 497663165362Smrg $as_test_x conftest$ac_exeext 497763165362Smrg }; then 49780eb10989Smrg eval "$as_ac_var=yes" 49790eb10989Smrgelse 498063165362Smrg $as_echo "$as_me: failed program was:" >&5 49810eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 49820eb10989Smrg 498363165362Smrg eval "$as_ac_var=no" 49840eb10989Smrgfi 498563165362Smrg 498663165362Smrgrm -rf conftest.dSYM 498763165362Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49880eb10989Smrg conftest$ac_exeext conftest.$ac_ext 49890eb10989Smrgfi 499063165362Smrgac_res=`eval 'as_val=${'$as_ac_var'} 499163165362Smrg $as_echo "$as_val"'` 499263165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 499363165362Smrg$as_echo "$ac_res" >&6; } 499463165362Smrgas_val=`eval 'as_val=${'$as_ac_var'} 499563165362Smrg $as_echo "$as_val"'` 499663165362Smrg if test "x$as_val" = x""yes; then 49970eb10989Smrg cat >>confdefs.h <<_ACEOF 499863165362Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 49990eb10989Smrg_ACEOF 50000eb10989Smrg 50010eb10989Smrgfi 50020eb10989Smrgdone 50030eb10989Smrg 50040eb10989Smrg 500563165362Smrg# Check whether --enable-largefile was given. 50060eb10989Smrgif test "${enable_largefile+set}" = set; then 500763165362Smrg enableval=$enable_largefile; 500863165362Smrgfi 50090eb10989Smrg 50100eb10989Smrgif test "$enable_largefile" != no; then 50110eb10989Smrg 501263165362Smrg { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 501363165362Smrg$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 50140eb10989Smrgif test "${ac_cv_sys_largefile_CC+set}" = set; then 501563165362Smrg $as_echo_n "(cached) " >&6 50160eb10989Smrgelse 50170eb10989Smrg ac_cv_sys_largefile_CC=no 50180eb10989Smrg if test "$GCC" != yes; then 50190eb10989Smrg ac_save_CC=$CC 50200eb10989Smrg while :; do 502163165362Smrg # IRIX 6.2 and later do not support large files by default, 502263165362Smrg # so use the C compiler's -n32 option if that helps. 50230eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 50240eb10989Smrg/* confdefs.h. */ 50250eb10989Smrg_ACEOF 50260eb10989Smrgcat confdefs.h >>conftest.$ac_ext 50270eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 50280eb10989Smrg/* end confdefs.h. */ 50290eb10989Smrg#include <sys/types.h> 50300eb10989Smrg /* Check that off_t can represent 2**63 - 1 correctly. 50310eb10989Smrg We can't simply define LARGE_OFF_T to be 9223372036854775807, 50320eb10989Smrg since some C++ compilers masquerading as C compilers 50330eb10989Smrg incorrectly reject 9223372036854775807. */ 50340eb10989Smrg#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 50350eb10989Smrg int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 50360eb10989Smrg && LARGE_OFF_T % 2147483647 == 1) 50370eb10989Smrg ? 1 : -1]; 50380eb10989Smrgint 50390eb10989Smrgmain () 50400eb10989Smrg{ 50410eb10989Smrg 50420eb10989Smrg ; 50430eb10989Smrg return 0; 50440eb10989Smrg} 50450eb10989Smrg_ACEOF 504663165362Smrg rm -f conftest.$ac_objext 504763165362Smrgif { (ac_try="$ac_compile" 504863165362Smrgcase "(($ac_try" in 504963165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 505063165362Smrg *) ac_try_echo=$ac_try;; 505163165362Smrgesac 505263165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 505363165362Smrg$as_echo "$ac_try_echo") >&5 505463165362Smrg (eval "$ac_compile") 2>conftest.er1 50550eb10989Smrg ac_status=$? 50560eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 50570eb10989Smrg rm -f conftest.er1 50580eb10989Smrg cat conftest.err >&5 505963165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 506063165362Smrg (exit $ac_status); } && { 506163165362Smrg test -z "$ac_c_werror_flag" || 506263165362Smrg test ! -s conftest.err 506363165362Smrg } && test -s conftest.$ac_objext; then 50640eb10989Smrg break 50650eb10989Smrgelse 506663165362Smrg $as_echo "$as_me: failed program was:" >&5 50670eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 50680eb10989Smrg 506963165362Smrg 50700eb10989Smrgfi 507163165362Smrg 507263165362Smrgrm -f core conftest.err conftest.$ac_objext 507363165362Smrg CC="$CC -n32" 507463165362Smrg rm -f conftest.$ac_objext 507563165362Smrgif { (ac_try="$ac_compile" 507663165362Smrgcase "(($ac_try" in 507763165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 507863165362Smrg *) ac_try_echo=$ac_try;; 507963165362Smrgesac 508063165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 508163165362Smrg$as_echo "$ac_try_echo") >&5 508263165362Smrg (eval "$ac_compile") 2>conftest.er1 50830eb10989Smrg ac_status=$? 50840eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 50850eb10989Smrg rm -f conftest.er1 50860eb10989Smrg cat conftest.err >&5 508763165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 508863165362Smrg (exit $ac_status); } && { 508963165362Smrg test -z "$ac_c_werror_flag" || 509063165362Smrg test ! -s conftest.err 509163165362Smrg } && test -s conftest.$ac_objext; then 50920eb10989Smrg ac_cv_sys_largefile_CC=' -n32'; break 50930eb10989Smrgelse 509463165362Smrg $as_echo "$as_me: failed program was:" >&5 50950eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 50960eb10989Smrg 509763165362Smrg 50980eb10989Smrgfi 509963165362Smrg 510063165362Smrgrm -f core conftest.err conftest.$ac_objext 51010eb10989Smrg break 51020eb10989Smrg done 51030eb10989Smrg CC=$ac_save_CC 51040eb10989Smrg rm -f conftest.$ac_ext 51050eb10989Smrg fi 51060eb10989Smrgfi 510763165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 510863165362Smrg$as_echo "$ac_cv_sys_largefile_CC" >&6; } 51090eb10989Smrg if test "$ac_cv_sys_largefile_CC" != no; then 51100eb10989Smrg CC=$CC$ac_cv_sys_largefile_CC 51110eb10989Smrg fi 51120eb10989Smrg 511363165362Smrg { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 511463165362Smrg$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 51150eb10989Smrgif test "${ac_cv_sys_file_offset_bits+set}" = set; then 511663165362Smrg $as_echo_n "(cached) " >&6 51170eb10989Smrgelse 51180eb10989Smrg while :; do 51190eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 51200eb10989Smrg/* confdefs.h. */ 51210eb10989Smrg_ACEOF 51220eb10989Smrgcat confdefs.h >>conftest.$ac_ext 51230eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 51240eb10989Smrg/* end confdefs.h. */ 51250eb10989Smrg#include <sys/types.h> 51260eb10989Smrg /* Check that off_t can represent 2**63 - 1 correctly. 51270eb10989Smrg We can't simply define LARGE_OFF_T to be 9223372036854775807, 51280eb10989Smrg since some C++ compilers masquerading as C compilers 51290eb10989Smrg incorrectly reject 9223372036854775807. */ 51300eb10989Smrg#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 51310eb10989Smrg int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 51320eb10989Smrg && LARGE_OFF_T % 2147483647 == 1) 51330eb10989Smrg ? 1 : -1]; 51340eb10989Smrgint 51350eb10989Smrgmain () 51360eb10989Smrg{ 51370eb10989Smrg 51380eb10989Smrg ; 51390eb10989Smrg return 0; 51400eb10989Smrg} 51410eb10989Smrg_ACEOF 51420eb10989Smrgrm -f conftest.$ac_objext 514363165362Smrgif { (ac_try="$ac_compile" 514463165362Smrgcase "(($ac_try" in 514563165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 514663165362Smrg *) ac_try_echo=$ac_try;; 514763165362Smrgesac 514863165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 514963165362Smrg$as_echo "$ac_try_echo") >&5 515063165362Smrg (eval "$ac_compile") 2>conftest.er1 51510eb10989Smrg ac_status=$? 51520eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 51530eb10989Smrg rm -f conftest.er1 51540eb10989Smrg cat conftest.err >&5 515563165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 515663165362Smrg (exit $ac_status); } && { 515763165362Smrg test -z "$ac_c_werror_flag" || 515863165362Smrg test ! -s conftest.err 515963165362Smrg } && test -s conftest.$ac_objext; then 516063165362Smrg ac_cv_sys_file_offset_bits=no; break 51610eb10989Smrgelse 516263165362Smrg $as_echo "$as_me: failed program was:" >&5 51630eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 51640eb10989Smrg 516563165362Smrg 51660eb10989Smrgfi 516763165362Smrg 516863165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51690eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 51700eb10989Smrg/* confdefs.h. */ 51710eb10989Smrg_ACEOF 51720eb10989Smrgcat confdefs.h >>conftest.$ac_ext 51730eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 51740eb10989Smrg/* end confdefs.h. */ 51750eb10989Smrg#define _FILE_OFFSET_BITS 64 51760eb10989Smrg#include <sys/types.h> 51770eb10989Smrg /* Check that off_t can represent 2**63 - 1 correctly. 51780eb10989Smrg We can't simply define LARGE_OFF_T to be 9223372036854775807, 51790eb10989Smrg since some C++ compilers masquerading as C compilers 51800eb10989Smrg incorrectly reject 9223372036854775807. */ 51810eb10989Smrg#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 51820eb10989Smrg int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 51830eb10989Smrg && LARGE_OFF_T % 2147483647 == 1) 51840eb10989Smrg ? 1 : -1]; 51850eb10989Smrgint 51860eb10989Smrgmain () 51870eb10989Smrg{ 51880eb10989Smrg 51890eb10989Smrg ; 51900eb10989Smrg return 0; 51910eb10989Smrg} 51920eb10989Smrg_ACEOF 51930eb10989Smrgrm -f conftest.$ac_objext 519463165362Smrgif { (ac_try="$ac_compile" 519563165362Smrgcase "(($ac_try" in 519663165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 519763165362Smrg *) ac_try_echo=$ac_try;; 519863165362Smrgesac 519963165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 520063165362Smrg$as_echo "$ac_try_echo") >&5 520163165362Smrg (eval "$ac_compile") 2>conftest.er1 52020eb10989Smrg ac_status=$? 52030eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 52040eb10989Smrg rm -f conftest.er1 52050eb10989Smrg cat conftest.err >&5 520663165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 520763165362Smrg (exit $ac_status); } && { 520863165362Smrg test -z "$ac_c_werror_flag" || 520963165362Smrg test ! -s conftest.err 521063165362Smrg } && test -s conftest.$ac_objext; then 52110eb10989Smrg ac_cv_sys_file_offset_bits=64; break 52120eb10989Smrgelse 521363165362Smrg $as_echo "$as_me: failed program was:" >&5 52140eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 52150eb10989Smrg 521663165362Smrg 52170eb10989Smrgfi 521863165362Smrg 521963165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 522063165362Smrg ac_cv_sys_file_offset_bits=unknown 52210eb10989Smrg break 52220eb10989Smrgdone 52230eb10989Smrgfi 522463165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 522563165362Smrg$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 522663165362Smrgcase $ac_cv_sys_file_offset_bits in #( 522763165362Smrg no | unknown) ;; 522863165362Smrg *) 52290eb10989Smrgcat >>confdefs.h <<_ACEOF 52300eb10989Smrg#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 52310eb10989Smrg_ACEOF 523263165362Smrg;; 523363165362Smrgesac 523463165362Smrgrm -rf conftest* 523563165362Smrg if test $ac_cv_sys_file_offset_bits = unknown; then 523663165362Smrg { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 523763165362Smrg$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 52380eb10989Smrgif test "${ac_cv_sys_large_files+set}" = set; then 523963165362Smrg $as_echo_n "(cached) " >&6 52400eb10989Smrgelse 52410eb10989Smrg while :; do 52420eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 52430eb10989Smrg/* confdefs.h. */ 52440eb10989Smrg_ACEOF 52450eb10989Smrgcat confdefs.h >>conftest.$ac_ext 52460eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 52470eb10989Smrg/* end confdefs.h. */ 52480eb10989Smrg#include <sys/types.h> 52490eb10989Smrg /* Check that off_t can represent 2**63 - 1 correctly. 52500eb10989Smrg We can't simply define LARGE_OFF_T to be 9223372036854775807, 52510eb10989Smrg since some C++ compilers masquerading as C compilers 52520eb10989Smrg incorrectly reject 9223372036854775807. */ 52530eb10989Smrg#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 52540eb10989Smrg int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 52550eb10989Smrg && LARGE_OFF_T % 2147483647 == 1) 52560eb10989Smrg ? 1 : -1]; 52570eb10989Smrgint 52580eb10989Smrgmain () 52590eb10989Smrg{ 52600eb10989Smrg 52610eb10989Smrg ; 52620eb10989Smrg return 0; 52630eb10989Smrg} 52640eb10989Smrg_ACEOF 52650eb10989Smrgrm -f conftest.$ac_objext 526663165362Smrgif { (ac_try="$ac_compile" 526763165362Smrgcase "(($ac_try" in 526863165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 526963165362Smrg *) ac_try_echo=$ac_try;; 527063165362Smrgesac 527163165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 527263165362Smrg$as_echo "$ac_try_echo") >&5 527363165362Smrg (eval "$ac_compile") 2>conftest.er1 52740eb10989Smrg ac_status=$? 52750eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 52760eb10989Smrg rm -f conftest.er1 52770eb10989Smrg cat conftest.err >&5 527863165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 527963165362Smrg (exit $ac_status); } && { 528063165362Smrg test -z "$ac_c_werror_flag" || 528163165362Smrg test ! -s conftest.err 528263165362Smrg } && test -s conftest.$ac_objext; then 528363165362Smrg ac_cv_sys_large_files=no; break 52840eb10989Smrgelse 528563165362Smrg $as_echo "$as_me: failed program was:" >&5 52860eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 52870eb10989Smrg 528863165362Smrg 52890eb10989Smrgfi 529063165362Smrg 529163165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52920eb10989Smrg cat >conftest.$ac_ext <<_ACEOF 52930eb10989Smrg/* confdefs.h. */ 52940eb10989Smrg_ACEOF 52950eb10989Smrgcat confdefs.h >>conftest.$ac_ext 52960eb10989Smrgcat >>conftest.$ac_ext <<_ACEOF 52970eb10989Smrg/* end confdefs.h. */ 52980eb10989Smrg#define _LARGE_FILES 1 52990eb10989Smrg#include <sys/types.h> 53000eb10989Smrg /* Check that off_t can represent 2**63 - 1 correctly. 53010eb10989Smrg We can't simply define LARGE_OFF_T to be 9223372036854775807, 53020eb10989Smrg since some C++ compilers masquerading as C compilers 53030eb10989Smrg incorrectly reject 9223372036854775807. */ 53040eb10989Smrg#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 53050eb10989Smrg int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 53060eb10989Smrg && LARGE_OFF_T % 2147483647 == 1) 53070eb10989Smrg ? 1 : -1]; 53080eb10989Smrgint 53090eb10989Smrgmain () 53100eb10989Smrg{ 53110eb10989Smrg 53120eb10989Smrg ; 53130eb10989Smrg return 0; 53140eb10989Smrg} 53150eb10989Smrg_ACEOF 53160eb10989Smrgrm -f conftest.$ac_objext 531763165362Smrgif { (ac_try="$ac_compile" 531863165362Smrgcase "(($ac_try" in 531963165362Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 532063165362Smrg *) ac_try_echo=$ac_try;; 532163165362Smrgesac 532263165362Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 532363165362Smrg$as_echo "$ac_try_echo") >&5 532463165362Smrg (eval "$ac_compile") 2>conftest.er1 53250eb10989Smrg ac_status=$? 53260eb10989Smrg grep -v '^ *+' conftest.er1 >conftest.err 53270eb10989Smrg rm -f conftest.er1 53280eb10989Smrg cat conftest.err >&5 532963165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 533063165362Smrg (exit $ac_status); } && { 533163165362Smrg test -z "$ac_c_werror_flag" || 533263165362Smrg test ! -s conftest.err 533363165362Smrg } && test -s conftest.$ac_objext; then 53340eb10989Smrg ac_cv_sys_large_files=1; break 53350eb10989Smrgelse 533663165362Smrg $as_echo "$as_me: failed program was:" >&5 53370eb10989Smrgsed 's/^/| /' conftest.$ac_ext >&5 53380eb10989Smrg 533963165362Smrg 53400eb10989Smrgfi 534163165362Smrg 534263165362Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 534363165362Smrg ac_cv_sys_large_files=unknown 53440eb10989Smrg break 53450eb10989Smrgdone 53460eb10989Smrgfi 534763165362Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 534863165362Smrg$as_echo "$ac_cv_sys_large_files" >&6; } 534963165362Smrgcase $ac_cv_sys_large_files in #( 535063165362Smrg no | unknown) ;; 535163165362Smrg *) 53520eb10989Smrgcat >>confdefs.h <<_ACEOF 53530eb10989Smrg#define _LARGE_FILES $ac_cv_sys_large_files 53540eb10989Smrg_ACEOF 535563165362Smrg;; 535663165362Smrgesac 535763165362Smrgrm -rf conftest* 535863165362Smrg fi 53590eb10989Smrgfi 53600eb10989Smrg 53610eb10989Smrg 53620eb10989Smrg 53630eb10989Smrg 53640eb10989Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 53650eb10989Smrg if test -n "$ac_tool_prefix"; then 53660eb10989Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 53670eb10989Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 536863165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 536963165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 53700eb10989Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then 537163165362Smrg $as_echo_n "(cached) " >&6 53720eb10989Smrgelse 53730eb10989Smrg case $PKG_CONFIG in 53740eb10989Smrg [\\/]* | ?:[\\/]*) 53750eb10989Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 53760eb10989Smrg ;; 53770eb10989Smrg *) 53780eb10989Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53790eb10989Smrgfor as_dir in $PATH 53800eb10989Smrgdo 53810eb10989Smrg IFS=$as_save_IFS 53820eb10989Smrg test -z "$as_dir" && as_dir=. 53830eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 538463165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 53850eb10989Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 538663165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 53870eb10989Smrg break 2 53880eb10989Smrg fi 53890eb10989Smrgdone 53900eb10989Smrgdone 539163165362SmrgIFS=$as_save_IFS 53920eb10989Smrg 53930eb10989Smrg ;; 53940eb10989Smrgesac 53950eb10989Smrgfi 53960eb10989SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 53970eb10989Smrgif test -n "$PKG_CONFIG"; then 539863165362Smrg { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 539963165362Smrg$as_echo "$PKG_CONFIG" >&6; } 54000eb10989Smrgelse 540163165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 540263165362Smrg$as_echo "no" >&6; } 54030eb10989Smrgfi 54040eb10989Smrg 540563165362Smrg 54060eb10989Smrgfi 54070eb10989Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 54080eb10989Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 54090eb10989Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 54100eb10989Smrgset dummy pkg-config; ac_word=$2 541163165362Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 541263165362Smrg$as_echo_n "checking for $ac_word... " >&6; } 54130eb10989Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 541463165362Smrg $as_echo_n "(cached) " >&6 54150eb10989Smrgelse 54160eb10989Smrg case $ac_pt_PKG_CONFIG in 54170eb10989Smrg [\\/]* | ?:[\\/]*) 54180eb10989Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 54190eb10989Smrg ;; 54200eb10989Smrg *) 54210eb10989Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 54220eb10989Smrgfor as_dir in $PATH 54230eb10989Smrgdo 54240eb10989Smrg IFS=$as_save_IFS 54250eb10989Smrg test -z "$as_dir" && as_dir=. 54260eb10989Smrg for ac_exec_ext in '' $ac_executable_extensions; do 542763165362Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 54280eb10989Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 542963165362Smrg $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 54300eb10989Smrg break 2 54310eb10989Smrg fi 54320eb10989Smrgdone 54330eb10989Smrgdone 543463165362SmrgIFS=$as_save_IFS 54350eb10989Smrg 543663165362Smrg ;; 543763165362Smrgesac 54380eb10989Smrgfi 543963165362Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 544063165362Smrgif test -n "$ac_pt_PKG_CONFIG"; then 544163165362Smrg { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 544263165362Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 544363165362Smrgelse 544463165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 544563165362Smrg$as_echo "no" >&6; } 54460eb10989Smrgfi 54470eb10989Smrg 544863165362Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 544963165362Smrg PKG_CONFIG="" 545063165362Smrg else 545163165362Smrg case $cross_compiling:$ac_tool_warned in 545263165362Smrgyes:) 545363165362Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 545463165362Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 545563165362Smrgac_tool_warned=yes ;; 545663165362Smrgesac 545763165362Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 545863165362Smrg fi 545963165362Smrgelse 546063165362Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 54610eb10989Smrgfi 54620eb10989Smrg 54630eb10989Smrgfi 546463165362Smrgif test -n "$PKG_CONFIG"; then 546563165362Smrg _pkg_min_version=0.9.0 546663165362Smrg { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 546763165362Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 546863165362Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 546963165362Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 547063165362Smrg$as_echo "yes" >&6; } 547163165362Smrg else 547263165362Smrg { $as_echo "$as_me:$LINENO: result: no" >&5 547363165362Smrg$as_echo "no" >&6; } 547463165362Smrg PKG_CONFIG="" 547563165362Smrg fi 54760eb10989Smrg 54770eb10989Smrgfi 54780eb10989Smrg 547963165362Smrgpkg_failed=no 548063165362Smrg{ $as_echo "$as_me:$LINENO: checking for X" >&5 548163165362Smrg$as_echo_n "checking for X... " >&6; } 548263165362Smrg 548363165362Smrgif test -n "$X_CFLAGS"; then 548463165362Smrg pkg_cv_X_CFLAGS="$X_CFLAGS" 548563165362Smrg elif test -n "$PKG_CONFIG"; then 548663165362Smrg if test -n "$PKG_CONFIG" && \ 548763165362Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5 548863165362Smrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 548963165362Smrg ac_status=$? 549063165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 549163165362Smrg (exit $ac_status); }; then 549263165362Smrg pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 549363165362Smrgelse 549463165362Smrg pkg_failed=yes 54950eb10989Smrgfi 549663165362Smrg else 549763165362Smrg pkg_failed=untried 54980eb10989Smrgfi 549963165362Smrgif test -n "$X_LIBS"; then 550063165362Smrg pkg_cv_X_LIBS="$X_LIBS" 550163165362Smrg elif test -n "$PKG_CONFIG"; then 550263165362Smrg if test -n "$PKG_CONFIG" && \ 550363165362Smrg { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5 550463165362Smrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 550563165362Smrg ac_status=$? 550663165362Smrg $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 550763165362Smrg (exit $ac_status); }; then 550863165362Smrg pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 550963165362Smrgelse 551063165362Smrg pkg_failed=yes 55110eb10989Smrgfi 551263165362Smrg else 551363165362Smrg pkg_failed=untried 55140eb10989Smrgfi 55150eb10989Smrg 55160eb10989Smrg 55170eb10989Smrg 551863165362Smrgif test $pkg_failed = yes; then 55190eb10989Smrg 552063165362Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 552163165362Smrg _pkg_short_errors_supported=yes 552263165362Smrgelse 552363165362Smrg _pkg_short_errors_supported=no 552463165362Smrgfi 552563165362Smrg if test $_pkg_short_errors_supported = yes; then 552663165362Smrg X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 552763165362Smrg else 552863165362Smrg X_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 552963165362Smrg fi 553063165362Smrg # Put the nasty error message in config.log where it belongs 553163165362Smrg echo "$X_PKG_ERRORS" >&5 55320eb10989Smrg 553363165362Smrg { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto) were not met: 55340eb10989Smrg 553563165362Smrg$X_PKG_ERRORS 55360eb10989Smrg 553763165362SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 553863165362Smrginstalled software in a non-standard prefix. 55390eb10989Smrg 554063165362SmrgAlternatively, you may set the environment variables X_CFLAGS 554163165362Smrgand X_LIBS to avoid the need to call pkg-config. 554263165362SmrgSee the pkg-config man page for more details. 554363165362Smrg" >&5 554463165362Smrg$as_echo "$as_me: error: Package requirements (xproto) were not met: 55450eb10989Smrg 554663165362Smrg$X_PKG_ERRORS 55470eb10989Smrg 554863165362SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 554963165362Smrginstalled software in a non-standard prefix. 55500eb10989Smrg 555163165362SmrgAlternatively, you may set the environment variables X_CFLAGS 555263165362Smrgand X_LIBS to avoid the need to call pkg-config. 555363165362SmrgSee the pkg-config man page for more details. 555463165362Smrg" >&2;} 555563165362Smrg { (exit 1); exit 1; }; } 555663165362Smrgelif test $pkg_failed = untried; then 555763165362Smrg { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 555863165362Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 555963165362Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 556063165362Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 556163165362Smrgpath to pkg-config. 55620eb10989Smrg 556363165362SmrgAlternatively, you may set the environment variables X_CFLAGS 556463165362Smrgand X_LIBS to avoid the need to call pkg-config. 556563165362SmrgSee the pkg-config man page for more details. 55660eb10989Smrg 556763165362SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 556863165362SmrgSee \`config.log' for more details." >&5 556963165362Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 557063165362Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 557163165362Smrgpath to pkg-config. 55720eb10989Smrg 557363165362SmrgAlternatively, you may set the environment variables X_CFLAGS 557463165362Smrgand X_LIBS to avoid the need to call pkg-config. 557563165362SmrgSee the pkg-config man page for more details. 55760eb10989Smrg 557763165362SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 557863165362SmrgSee \`config.log' for more details." >&2;} 557963165362Smrg { (exit 1); exit 1; }; }; } 55800eb10989Smrgelse 558163165362Smrg X_CFLAGS=$pkg_cv_X_CFLAGS 558263165362Smrg X_LIBS=$pkg_cv_X_LIBS 558363165362Smrg { $as_echo "$as_me:$LINENO: result: yes" >&5 558463165362Smrg$as_echo "yes" >&6; } 558563165362Smrg : 558663165362Smrgfi 55870eb10989Smrg 55880eb10989Smrg 558963165362Smrgac_config_files="$ac_config_files Makefile" 55900eb10989Smrg 55910eb10989Smrgcat >confcache <<\_ACEOF 55920eb10989Smrg# This file is a shell script that caches the results of configure 55930eb10989Smrg# tests run on this system so they can be shared between configure 55940eb10989Smrg# scripts and configure runs, see configure's option --config-cache. 55950eb10989Smrg# It is not useful on other systems. If it contains results you don't 55960eb10989Smrg# want to keep, you may remove or edit it. 55970eb10989Smrg# 55980eb10989Smrg# config.status only pays attention to the cache file if you give it 55990eb10989Smrg# the --recheck option to rerun configure. 56000eb10989Smrg# 56010eb10989Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 56020eb10989Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 56030eb10989Smrg# following values. 56040eb10989Smrg 56050eb10989Smrg_ACEOF 56060eb10989Smrg 56070eb10989Smrg# The following way of writing the cache mishandles newlines in values, 56080eb10989Smrg# but we know of no workaround that is simple, portable, and efficient. 560963165362Smrg# So, we kill variables containing newlines. 56100eb10989Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 56110eb10989Smrg# and sets the high bit in the cache file unless we assign to the vars. 561263165362Smrg( 561363165362Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 561463165362Smrg eval ac_val=\$$ac_var 561563165362Smrg case $ac_val in #( 561663165362Smrg *${as_nl}*) 561763165362Smrg case $ac_var in #( 561863165362Smrg *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 561963165362Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 562063165362Smrg esac 562163165362Smrg case $ac_var in #( 562263165362Smrg _ | IFS | as_nl) ;; #( 562363165362Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 562463165362Smrg *) $as_unset $ac_var ;; 562563165362Smrg esac ;; 562663165362Smrg esac 562763165362Smrg done 562863165362Smrg 56290eb10989Smrg (set) 2>&1 | 563063165362Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 563163165362Smrg *${as_nl}ac_space=\ *) 56320eb10989Smrg # `set' does not quote correctly, so add quotes (double-quote 56330eb10989Smrg # substitution turns \\\\ into \\, and sed turns \\ into \). 56340eb10989Smrg sed -n \ 56350eb10989Smrg "s/'/'\\\\''/g; 56360eb10989Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 563763165362Smrg ;; #( 56380eb10989Smrg *) 56390eb10989Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 564063165362Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 56410eb10989Smrg ;; 564263165362Smrg esac | 564363165362Smrg sort 564463165362Smrg) | 56450eb10989Smrg sed ' 564663165362Smrg /^ac_cv_env_/b end 56470eb10989Smrg t clear 564863165362Smrg :clear 56490eb10989Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 56500eb10989Smrg t end 565163165362Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 565263165362Smrg :end' >>confcache 565363165362Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 565463165362Smrg if test -w "$cache_file"; then 565563165362Smrg test "x$cache_file" != "x/dev/null" && 565663165362Smrg { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 565763165362Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 56580eb10989Smrg cat confcache >$cache_file 56590eb10989Smrg else 566063165362Smrg { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 566163165362Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 56620eb10989Smrg fi 56630eb10989Smrgfi 56640eb10989Smrgrm -f confcache 56650eb10989Smrg 56660eb10989Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 56670eb10989Smrg# Let make expand exec_prefix. 56680eb10989Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 56690eb10989Smrg 56700eb10989SmrgDEFS=-DHAVE_CONFIG_H 56710eb10989Smrg 56720eb10989Smrgac_libobjs= 56730eb10989Smrgac_ltlibobjs= 56740eb10989Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 56750eb10989Smrg # 1. Remove the extension, and $U if already installed. 567663165362Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 567763165362Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 567863165362Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 567963165362Smrg # will be set to the directory where LIBOBJS objects are built. 568063165362Smrg ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 568163165362Smrg ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 56820eb10989Smrgdone 56830eb10989SmrgLIBOBJS=$ac_libobjs 56840eb10989Smrg 56850eb10989SmrgLTLIBOBJS=$ac_ltlibobjs 56860eb10989Smrg 56870eb10989Smrg 568863165362Smrg if test -n "$EXEEXT"; then 568963165362Smrg am__EXEEXT_TRUE= 569063165362Smrg am__EXEEXT_FALSE='#' 569163165362Smrgelse 569263165362Smrg am__EXEEXT_TRUE='#' 569363165362Smrg am__EXEEXT_FALSE= 569463165362Smrgfi 569563165362Smrg 56960eb10989Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 569763165362Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 56980eb10989SmrgUsually this means the macro was only invoked conditionally." >&5 569963165362Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 57000eb10989SmrgUsually this means the macro was only invoked conditionally." >&2;} 57010eb10989Smrg { (exit 1); exit 1; }; } 57020eb10989Smrgfi 57030eb10989Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 570463165362Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 570563165362SmrgUsually this means the macro was only invoked conditionally." >&5 570663165362Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 570763165362SmrgUsually this means the macro was only invoked conditionally." >&2;} 570863165362Smrg { (exit 1); exit 1; }; } 570963165362Smrgfi 571063165362Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 571163165362Smrg { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 57120eb10989SmrgUsually this means the macro was only invoked conditionally." >&5 571363165362Smrg$as_echo "$as_me: error: conditional \"LINT\" was never defined. 57140eb10989SmrgUsually this means the macro was only invoked conditionally." >&2;} 57150eb10989Smrg { (exit 1); exit 1; }; } 57160eb10989Smrgfi 57170eb10989Smrg 57180eb10989Smrg: ${CONFIG_STATUS=./config.status} 571963165362Smrgac_write_fail=0 57200eb10989Smrgac_clean_files_save=$ac_clean_files 57210eb10989Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 572263165362Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 572363165362Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 572463165362Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 57250eb10989Smrg#! $SHELL 57260eb10989Smrg# Generated by $as_me. 57270eb10989Smrg# Run this file to recreate the current configuration. 57280eb10989Smrg# Compiler output produced by configure, useful for debugging 57290eb10989Smrg# configure, is in config.log if it exists. 57300eb10989Smrg 57310eb10989Smrgdebug=false 57320eb10989Smrgac_cs_recheck=false 57330eb10989Smrgac_cs_silent=false 57340eb10989SmrgSHELL=\${CONFIG_SHELL-$SHELL} 57350eb10989Smrg_ACEOF 57360eb10989Smrg 573763165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 57380eb10989Smrg## --------------------- ## 57390eb10989Smrg## M4sh Initialization. ## 57400eb10989Smrg## --------------------- ## 57410eb10989Smrg 574263165362Smrg# Be more Bourne compatible 574363165362SmrgDUALCASE=1; export DUALCASE # for MKS sh 57440eb10989Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 57450eb10989Smrg emulate sh 57460eb10989Smrg NULLCMD=: 574763165362Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 57480eb10989Smrg # is contrary to our usage. Disable this feature. 57490eb10989Smrg alias -g '${1+"$@"}'='"$@"' 575063165362Smrg setopt NO_GLOB_SUBST 575163165362Smrgelse 575263165362Smrg case `(set -o) 2>/dev/null` in 575363165362Smrg *posix*) set -o posix ;; 575463165362Smrgesac 575563165362Smrg 575663165362Smrgfi 575763165362Smrg 575863165362Smrg 575963165362Smrg 576063165362Smrg 576163165362Smrg# PATH needs CR 576263165362Smrg# Avoid depending upon Character Ranges. 576363165362Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 576463165362Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 576563165362Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 576663165362Smrgas_cr_digits='0123456789' 576763165362Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 576863165362Smrg 576963165362Smrgas_nl=' 577063165362Smrg' 577163165362Smrgexport as_nl 577263165362Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 577363165362Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 577463165362Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 577563165362Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 577663165362Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 577763165362Smrg as_echo='printf %s\n' 577863165362Smrg as_echo_n='printf %s' 577963165362Smrgelse 578063165362Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 578163165362Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 578263165362Smrg as_echo_n='/usr/ucb/echo -n' 578363165362Smrg else 578463165362Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 578563165362Smrg as_echo_n_body='eval 578663165362Smrg arg=$1; 578763165362Smrg case $arg in 578863165362Smrg *"$as_nl"*) 578963165362Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 579063165362Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 579163165362Smrg esac; 579263165362Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 579363165362Smrg ' 579463165362Smrg export as_echo_n_body 579563165362Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 579663165362Smrg fi 579763165362Smrg export as_echo_body 579863165362Smrg as_echo='sh -c $as_echo_body as_echo' 579963165362Smrgfi 580063165362Smrg 580163165362Smrg# The user is always right. 580263165362Smrgif test "${PATH_SEPARATOR+set}" != set; then 580363165362Smrg PATH_SEPARATOR=: 580463165362Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 580563165362Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 580663165362Smrg PATH_SEPARATOR=';' 580763165362Smrg } 58080eb10989Smrgfi 58090eb10989Smrg 58100eb10989Smrg# Support unset when possible. 58110eb10989Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 58120eb10989Smrg as_unset=unset 58130eb10989Smrgelse 58140eb10989Smrg as_unset=false 58150eb10989Smrgfi 58160eb10989Smrg 58170eb10989Smrg 581863165362Smrg# IFS 581963165362Smrg# We need space, tab and new line, in precisely that order. Quoting is 582063165362Smrg# there to prevent editors from complaining about space-tab. 582163165362Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 582263165362Smrg# splitting by setting IFS to empty value.) 582363165362SmrgIFS=" "" $as_nl" 582463165362Smrg 582563165362Smrg# Find who we are. Look in the path if we contain no directory separator. 582663165362Smrgcase $0 in 582763165362Smrg *[\\/]* ) as_myself=$0 ;; 582863165362Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 582963165362Smrgfor as_dir in $PATH 583063165362Smrgdo 583163165362Smrg IFS=$as_save_IFS 583263165362Smrg test -z "$as_dir" && as_dir=. 583363165362Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 583463165362Smrgdone 583563165362SmrgIFS=$as_save_IFS 583663165362Smrg 583763165362Smrg ;; 583863165362Smrgesac 583963165362Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 584063165362Smrg# in which case we are not to be found in the path. 584163165362Smrgif test "x$as_myself" = x; then 584263165362Smrg as_myself=$0 584363165362Smrgfi 584463165362Smrgif test ! -f "$as_myself"; then 584563165362Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 584663165362Smrg { (exit 1); exit 1; } 584763165362Smrgfi 584863165362Smrg 58490eb10989Smrg# Work around bugs in pre-3.0 UWIN ksh. 585063165362Smrgfor as_var in ENV MAIL MAILPATH 585163165362Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 585263165362Smrgdone 58530eb10989SmrgPS1='$ ' 58540eb10989SmrgPS2='> ' 58550eb10989SmrgPS4='+ ' 58560eb10989Smrg 58570eb10989Smrg# NLS nuisances. 585863165362SmrgLC_ALL=C 585963165362Smrgexport LC_ALL 586063165362SmrgLANGUAGE=C 586163165362Smrgexport LANGUAGE 58620eb10989Smrg 58630eb10989Smrg# Required to use basename. 586463165362Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 586563165362Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 58660eb10989Smrg as_expr=expr 58670eb10989Smrgelse 58680eb10989Smrg as_expr=false 58690eb10989Smrgfi 58700eb10989Smrg 587163165362Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 58720eb10989Smrg as_basename=basename 58730eb10989Smrgelse 58740eb10989Smrg as_basename=false 58750eb10989Smrgfi 58760eb10989Smrg 58770eb10989Smrg 58780eb10989Smrg# Name of the executable. 587963165362Smrgas_me=`$as_basename -- "$0" || 58800eb10989Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 58810eb10989Smrg X"$0" : 'X\(//\)$' \| \ 588263165362Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 588363165362Smrg$as_echo X/"$0" | 588463165362Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 588563165362Smrg s//\1/ 588663165362Smrg q 588763165362Smrg } 588863165362Smrg /^X\/\(\/\/\)$/{ 588963165362Smrg s//\1/ 589063165362Smrg q 589163165362Smrg } 589263165362Smrg /^X\/\(\/\).*/{ 589363165362Smrg s//\1/ 589463165362Smrg q 589563165362Smrg } 589663165362Smrg s/.*/./; q'` 58970eb10989Smrg 589863165362Smrg# CDPATH. 589963165362Smrg$as_unset CDPATH 59000eb10989Smrg 59010eb10989Smrg 59020eb10989Smrg 59030eb10989Smrg as_lineno_1=$LINENO 59040eb10989Smrg as_lineno_2=$LINENO 59050eb10989Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 590663165362Smrg test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 59070eb10989Smrg 59080eb10989Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 59090eb10989Smrg # uniformly replaced by the line number. The first 'sed' inserts a 591063165362Smrg # line-number line after each line using $LINENO; the second 'sed' 591163165362Smrg # does the real work. The second script uses 'N' to pair each 591263165362Smrg # line-number line with the line containing $LINENO, and appends 591363165362Smrg # trailing '-' during substitution so that $LINENO is not a special 591463165362Smrg # case at line end. 59150eb10989Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 591663165362Smrg # scripts with optimization help from Paolo Bonzini. Blame Lee 591763165362Smrg # E. McMahon (1931-1989) for sed's syntax. :-) 591863165362Smrg sed -n ' 591963165362Smrg p 592063165362Smrg /[$]LINENO/= 592163165362Smrg ' <$as_myself | 59220eb10989Smrg sed ' 592363165362Smrg s/[$]LINENO.*/&-/ 592463165362Smrg t lineno 592563165362Smrg b 592663165362Smrg :lineno 59270eb10989Smrg N 592863165362Smrg :loop 592963165362Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 59300eb10989Smrg t loop 593163165362Smrg s/-\n.*// 59320eb10989Smrg ' >$as_me.lineno && 593363165362Smrg chmod +x "$as_me.lineno" || 593463165362Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 59350eb10989Smrg { (exit 1); exit 1; }; } 59360eb10989Smrg 59370eb10989Smrg # Don't try to exec as it changes $[0], causing all sort of problems 59380eb10989Smrg # (the dirname of $[0] is not the place where we might find the 593963165362Smrg # original and so on. Autoconf is especially sensitive to this). 594063165362Smrg . "./$as_me.lineno" 59410eb10989Smrg # Exit status is that of the last command. 59420eb10989Smrg exit 59430eb10989Smrg} 59440eb10989Smrg 59450eb10989Smrg 594663165362Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 594763165362Smrg as_dirname=dirname 594863165362Smrgelse 594963165362Smrg as_dirname=false 595063165362Smrgfi 59510eb10989Smrg 595263165362SmrgECHO_C= ECHO_N= ECHO_T= 595363165362Smrgcase `echo -n x` in 595463165362Smrg-n*) 595563165362Smrg case `echo 'x\c'` in 595663165362Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 595763165362Smrg *) ECHO_C='\c';; 595863165362Smrg esac;; 595963165362Smrg*) 596063165362Smrg ECHO_N='-n';; 596163165362Smrgesac 596263165362Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 596363165362Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 59640eb10989Smrg as_expr=expr 59650eb10989Smrgelse 59660eb10989Smrg as_expr=false 59670eb10989Smrgfi 59680eb10989Smrg 59690eb10989Smrgrm -f conf$$ conf$$.exe conf$$.file 597063165362Smrgif test -d conf$$.dir; then 597163165362Smrg rm -f conf$$.dir/conf$$.file 597263165362Smrgelse 597363165362Smrg rm -f conf$$.dir 597463165362Smrg mkdir conf$$.dir 2>/dev/null 597563165362Smrgfi 597663165362Smrgif (echo >conf$$.file) 2>/dev/null; then 597763165362Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 59780eb10989Smrg as_ln_s='ln -s' 597963165362Smrg # ... but there are two gotchas: 598063165362Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 598163165362Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 598263165362Smrg # In both cases, we have to default to `cp -p'. 598363165362Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 598463165362Smrg as_ln_s='cp -p' 598563165362Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 598663165362Smrg as_ln_s=ln 598763165362Smrg else 598863165362Smrg as_ln_s='cp -p' 59890eb10989Smrg fi 59900eb10989Smrgelse 59910eb10989Smrg as_ln_s='cp -p' 59920eb10989Smrgfi 599363165362Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 599463165362Smrgrmdir conf$$.dir 2>/dev/null 59950eb10989Smrg 59960eb10989Smrgif mkdir -p . 2>/dev/null; then 59970eb10989Smrg as_mkdir_p=: 59980eb10989Smrgelse 59990eb10989Smrg test -d ./-p && rmdir ./-p 60000eb10989Smrg as_mkdir_p=false 60010eb10989Smrgfi 60020eb10989Smrg 600363165362Smrgif test -x / >/dev/null 2>&1; then 600463165362Smrg as_test_x='test -x' 600563165362Smrgelse 600663165362Smrg if ls -dL / >/dev/null 2>&1; then 600763165362Smrg as_ls_L_option=L 600863165362Smrg else 600963165362Smrg as_ls_L_option= 601063165362Smrg fi 601163165362Smrg as_test_x=' 601263165362Smrg eval sh -c '\'' 601363165362Smrg if test -d "$1"; then 601463165362Smrg test -d "$1/."; 601563165362Smrg else 601663165362Smrg case $1 in 601763165362Smrg -*)set "./$1";; 601863165362Smrg esac; 601963165362Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 602063165362Smrg ???[sx]*):;;*)false;;esac;fi 602163165362Smrg '\'' sh 602263165362Smrg ' 602363165362Smrgfi 602463165362Smrgas_executable_p=$as_test_x 60250eb10989Smrg 60260eb10989Smrg# Sed expression to map a string onto a valid CPP name. 60270eb10989Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 60280eb10989Smrg 60290eb10989Smrg# Sed expression to map a string onto a valid variable name. 60300eb10989Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 60310eb10989Smrg 60320eb10989Smrg 60330eb10989Smrgexec 6>&1 60340eb10989Smrg 603563165362Smrg# Save the log message, to keep $[0] and so on meaningful, and to 60360eb10989Smrg# report actual input values of CONFIG_FILES etc. instead of their 603763165362Smrg# values after options handling. 603863165362Smrgac_log=" 603963165362SmrgThis file was extended by makedepend $as_me 1.0.2, which was 604063165362Smrggenerated by GNU Autoconf 2.63. Invocation command line was 60410eb10989Smrg 60420eb10989Smrg CONFIG_FILES = $CONFIG_FILES 60430eb10989Smrg CONFIG_HEADERS = $CONFIG_HEADERS 60440eb10989Smrg CONFIG_LINKS = $CONFIG_LINKS 60450eb10989Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 60460eb10989Smrg $ $0 $@ 60470eb10989Smrg 604863165362Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 604963165362Smrg" 605063165362Smrg 60510eb10989Smrg_ACEOF 60520eb10989Smrg 605363165362Smrgcase $ac_config_files in *" 605463165362Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 605563165362Smrgesac 60560eb10989Smrg 605763165362Smrgcase $ac_config_headers in *" 605863165362Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 605963165362Smrgesac 60600eb10989Smrg 60610eb10989Smrg 606263165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 606363165362Smrg# Files that config.status was made for. 606463165362Smrgconfig_files="$ac_config_files" 606563165362Smrgconfig_headers="$ac_config_headers" 606663165362Smrgconfig_commands="$ac_config_commands" 60670eb10989Smrg 606863165362Smrg_ACEOF 60690eb10989Smrg 607063165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 60710eb10989Smrgac_cs_usage="\ 60720eb10989Smrg\`$as_me' instantiates files from templates according to the 60730eb10989Smrgcurrent configuration. 60740eb10989Smrg 607563165362SmrgUsage: $0 [OPTION]... [FILE]... 60760eb10989Smrg 60770eb10989Smrg -h, --help print this help, then exit 607863165362Smrg -V, --version print version number and configuration settings, then exit 607963165362Smrg -q, --quiet, --silent 608063165362Smrg do not print progress messages 60810eb10989Smrg -d, --debug don't remove temporary files 60820eb10989Smrg --recheck update $as_me by reconfiguring in the same conditions 608363165362Smrg --file=FILE[:TEMPLATE] 608463165362Smrg instantiate the configuration file FILE 608563165362Smrg --header=FILE[:TEMPLATE] 608663165362Smrg instantiate the configuration header FILE 60870eb10989Smrg 60880eb10989SmrgConfiguration files: 60890eb10989Smrg$config_files 60900eb10989Smrg 60910eb10989SmrgConfiguration headers: 60920eb10989Smrg$config_headers 60930eb10989Smrg 60940eb10989SmrgConfiguration commands: 60950eb10989Smrg$config_commands 60960eb10989Smrg 60970eb10989SmrgReport bugs to <bug-autoconf@gnu.org>." 60980eb10989Smrg 609963165362Smrg_ACEOF 610063165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61010eb10989Smrgac_cs_version="\\ 610263165362Smrgmakedepend config.status 1.0.2 610363165362Smrgconfigured by $0, generated by GNU Autoconf 2.63, 610463165362Smrg with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 61050eb10989Smrg 610663165362SmrgCopyright (C) 2008 Free Software Foundation, Inc. 61070eb10989SmrgThis config.status script is free software; the Free Software Foundation 61080eb10989Smrggives unlimited permission to copy, distribute and modify it." 610963165362Smrg 611063165362Smrgac_pwd='$ac_pwd' 611163165362Smrgsrcdir='$srcdir' 611263165362SmrgINSTALL='$INSTALL' 611363165362SmrgMKDIR_P='$MKDIR_P' 611463165362SmrgAWK='$AWK' 611563165362Smrgtest -n "\$AWK" || AWK=awk 61160eb10989Smrg_ACEOF 61170eb10989Smrg 611863165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 611963165362Smrg# The default lists apply if the user does not specify any file. 61200eb10989Smrgac_need_defaults=: 61210eb10989Smrgwhile test $# != 0 61220eb10989Smrgdo 61230eb10989Smrg case $1 in 61240eb10989Smrg --*=*) 612563165362Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 612663165362Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 61270eb10989Smrg ac_shift=: 61280eb10989Smrg ;; 612963165362Smrg *) 61300eb10989Smrg ac_option=$1 61310eb10989Smrg ac_optarg=$2 61320eb10989Smrg ac_shift=shift 61330eb10989Smrg ;; 61340eb10989Smrg esac 61350eb10989Smrg 61360eb10989Smrg case $ac_option in 61370eb10989Smrg # Handling of the options. 61380eb10989Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 61390eb10989Smrg ac_cs_recheck=: ;; 614063165362Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 614163165362Smrg $as_echo "$ac_cs_version"; exit ;; 614263165362Smrg --debug | --debu | --deb | --de | --d | -d ) 61430eb10989Smrg debug=: ;; 61440eb10989Smrg --file | --fil | --fi | --f ) 61450eb10989Smrg $ac_shift 614663165362Smrg case $ac_optarg in 614763165362Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 614863165362Smrg esac 614963165362Smrg CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 61500eb10989Smrg ac_need_defaults=false;; 61510eb10989Smrg --header | --heade | --head | --hea ) 61520eb10989Smrg $ac_shift 615363165362Smrg case $ac_optarg in 615463165362Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 615563165362Smrg esac 615663165362Smrg CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 61570eb10989Smrg ac_need_defaults=false;; 615863165362Smrg --he | --h) 615963165362Smrg # Conflict between --help and --header 616063165362Smrg { $as_echo "$as_me: error: ambiguous option: $1 616163165362SmrgTry \`$0 --help' for more information." >&2 616263165362Smrg { (exit 1); exit 1; }; };; 616363165362Smrg --help | --hel | -h ) 616463165362Smrg $as_echo "$ac_cs_usage"; exit ;; 61650eb10989Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 61660eb10989Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 61670eb10989Smrg ac_cs_silent=: ;; 61680eb10989Smrg 61690eb10989Smrg # This is an error. 617063165362Smrg -*) { $as_echo "$as_me: error: unrecognized option: $1 617163165362SmrgTry \`$0 --help' for more information." >&2 61720eb10989Smrg { (exit 1); exit 1; }; } ;; 61730eb10989Smrg 617463165362Smrg *) ac_config_targets="$ac_config_targets $1" 617563165362Smrg ac_need_defaults=false ;; 61760eb10989Smrg 61770eb10989Smrg esac 61780eb10989Smrg shift 61790eb10989Smrgdone 61800eb10989Smrg 61810eb10989Smrgac_configure_extra_args= 61820eb10989Smrg 61830eb10989Smrgif $ac_cs_silent; then 61840eb10989Smrg exec 6>/dev/null 61850eb10989Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 61860eb10989Smrgfi 61870eb10989Smrg 61880eb10989Smrg_ACEOF 618963165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 61900eb10989Smrgif \$ac_cs_recheck; then 619163165362Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 619263165362Smrg shift 619363165362Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 619463165362Smrg CONFIG_SHELL='$SHELL' 619563165362Smrg export CONFIG_SHELL 619663165362Smrg exec "\$@" 61970eb10989Smrgfi 61980eb10989Smrg 61990eb10989Smrg_ACEOF 620063165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 620163165362Smrgexec 5>>config.log 620263165362Smrg{ 620363165362Smrg echo 620463165362Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 620563165362Smrg## Running $as_me. ## 620663165362Smrg_ASBOX 620763165362Smrg $as_echo "$ac_log" 620863165362Smrg} >&5 62090eb10989Smrg 621063165362Smrg_ACEOF 621163165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 62120eb10989Smrg# 621363165362Smrg# INIT-COMMANDS 62140eb10989Smrg# 62150eb10989SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 62160eb10989Smrg 62170eb10989Smrg_ACEOF 62180eb10989Smrg 621963165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 62200eb10989Smrg 622163165362Smrg# Handling of arguments. 62220eb10989Smrgfor ac_config_target in $ac_config_targets 62230eb10989Smrgdo 622463165362Smrg case $ac_config_target in 622563165362Smrg "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;; 622663165362Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 622763165362Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 622863165362Smrg 622963165362Smrg *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 623063165362Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 62310eb10989Smrg { (exit 1); exit 1; }; };; 62320eb10989Smrg esac 62330eb10989Smrgdone 62340eb10989Smrg 623563165362Smrg 62360eb10989Smrg# If the user did not use the arguments to specify the items to instantiate, 62370eb10989Smrg# then the envvar interface is used. Set only those that are not. 62380eb10989Smrg# We use the long form for the default assignment because of an extremely 62390eb10989Smrg# bizarre bug on SunOS 4.1.3. 62400eb10989Smrgif $ac_need_defaults; then 62410eb10989Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 62420eb10989Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 62430eb10989Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 62440eb10989Smrgfi 62450eb10989Smrg 62460eb10989Smrg# Have a temporary directory for convenience. Make it in the build tree 624763165362Smrg# simply because there is no reason against having it here, and in addition, 62480eb10989Smrg# creating and moving files from /tmp can sometimes cause problems. 624963165362Smrg# Hook for its removal unless debugging. 625063165362Smrg# Note that there is a small window in which the directory will not be cleaned: 625163165362Smrg# after its creation but before its name has been assigned to `$tmp'. 62520eb10989Smrg$debug || 62530eb10989Smrg{ 625463165362Smrg tmp= 625563165362Smrg trap 'exit_status=$? 625663165362Smrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 625763165362Smrg' 0 62580eb10989Smrg trap '{ (exit 1); exit 1; }' 1 2 13 15 62590eb10989Smrg} 62600eb10989Smrg# Create a (secure) tmp directory for tmp files. 62610eb10989Smrg 62620eb10989Smrg{ 626363165362Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 62640eb10989Smrg test -n "$tmp" && test -d "$tmp" 62650eb10989Smrg} || 62660eb10989Smrg{ 626763165362Smrg tmp=./conf$$-$RANDOM 626863165362Smrg (umask 077 && mkdir "$tmp") 62690eb10989Smrg} || 62700eb10989Smrg{ 627163165362Smrg $as_echo "$as_me: cannot create a temporary directory in ." >&2 62720eb10989Smrg { (exit 1); exit 1; } 62730eb10989Smrg} 62740eb10989Smrg 627563165362Smrg# Set up the scripts for CONFIG_FILES section. 627663165362Smrg# No need to generate them if there are no CONFIG_FILES. 627763165362Smrg# This happens for instance with `./config.status config.h'. 627863165362Smrgif test -n "$CONFIG_FILES"; then 627963165362Smrg 628063165362Smrg 628163165362Smrgac_cr=' 628263165362Smrg' 628363165362Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 628463165362Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 628563165362Smrg ac_cs_awk_cr='\\r' 628663165362Smrgelse 628763165362Smrg ac_cs_awk_cr=$ac_cr 628863165362Smrgfi 628963165362Smrg 62900eb10989Smrgecho 'BEGIN {' >"$tmp/subs1.awk" && 62910eb10989Smrg_ACEOF 62920eb10989Smrg 629363165362Smrg 629463165362Smrg{ 629563165362Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 629663165362Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 629763165362Smrg echo "_ACEOF" 629863165362Smrg} >conf$$subs.sh || 629963165362Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 630063165362Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 630163165362Smrg { (exit 1); exit 1; }; } 630263165362Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 630363165362Smrgac_delim='%!_!# ' 630463165362Smrgfor ac_last_try in false false false false false :; do 630563165362Smrg . ./conf$$subs.sh || 630663165362Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 630763165362Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 63080eb10989Smrg { (exit 1); exit 1; }; } 630963165362Smrg 631063165362Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 631163165362Smrg if test $ac_delim_n = $ac_delim_num; then 631263165362Smrg break 631363165362Smrg elif $ac_last_try; then 631463165362Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 631563165362Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 631663165362Smrg { (exit 1); exit 1; }; } 631763165362Smrg else 631863165362Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 631963165362Smrg fi 632063165362Smrgdone 63210eb10989Smrgrm -f conf$$subs.sh 632263165362Smrg 632363165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 63240eb10989Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 632563165362Smrg_ACEOF 632663165362Smrgsed -n ' 632763165362Smrgh 632863165362Smrgs/^/S["/; s/!.*/"]=/ 632963165362Smrgp 633063165362Smrgg 633163165362Smrgs/^[^!]*!// 633263165362Smrg:repl 633363165362Smrgt repl 633463165362Smrgs/'"$ac_delim"'$// 633563165362Smrgt delim 633663165362Smrg:nl 633763165362Smrgh 633863165362Smrgs/\(.\{148\}\).*/\1/ 633963165362Smrgt more1 634063165362Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 634163165362Smrgp 634263165362Smrgn 634363165362Smrgb repl 634463165362Smrg:more1 634563165362Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 634663165362Smrgp 634763165362Smrgg 634863165362Smrgs/.\{148\}// 634963165362Smrgt nl 635063165362Smrg:delim 635163165362Smrgh 635263165362Smrgs/\(.\{148\}\).*/\1/ 635363165362Smrgt more2 635463165362Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 635563165362Smrgp 635663165362Smrgb 635763165362Smrg:more2 635863165362Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 635963165362Smrgp 636063165362Smrgg 636163165362Smrgs/.\{148\}// 636263165362Smrgt delim 636363165362Smrg' <conf$$subs.awk | sed ' 636463165362Smrg/^[^""]/{ 636563165362Smrg N 636663165362Smrg s/\n// 636763165362Smrg} 636863165362Smrg' >>$CONFIG_STATUS || ac_write_fail=1 636963165362Smrgrm -f conf$$subs.awk 637063165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 637163165362Smrg_ACAWK 637263165362Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 637363165362Smrg for (key in S) S_is_set[key] = 1 63740eb10989Smrg FS = "" 637563165362Smrg 637663165362Smrg} 637763165362Smrg{ 637863165362Smrg line = $ 0 637963165362Smrg nfields = split(line, field, "@") 638063165362Smrg substed = 0 638163165362Smrg len = length(field[1]) 638263165362Smrg for (i = 2; i < nfields; i++) { 638363165362Smrg key = field[i] 638463165362Smrg keylen = length(key) 638563165362Smrg if (S_is_set[key]) { 638663165362Smrg value = S[key] 638763165362Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 638863165362Smrg len += length(value) + length(field[++i]) 638963165362Smrg substed = 1 639063165362Smrg } else 639163165362Smrg len += 1 + keylen 639263165362Smrg } 639363165362Smrg 639463165362Smrg print line 639563165362Smrg} 639663165362Smrg 639763165362Smrg_ACAWK 639863165362Smrg_ACEOF 639963165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 640063165362Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 640163165362Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 640263165362Smrgelse 640363165362Smrg cat 640463165362Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 640563165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 640663165362Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;} 640763165362Smrg { (exit 1); exit 1; }; } 640863165362Smrg_ACEOF 640963165362Smrg 641063165362Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 641163165362Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 641263165362Smrg# trailing colons and then remove the whole line if VPATH becomes empty 641363165362Smrg# (actually we leave an empty line to preserve line numbers). 641463165362Smrgif test "x$srcdir" = x.; then 641563165362Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 641663165362Smrgs/:*\$(srcdir):*/:/ 641763165362Smrgs/:*\${srcdir}:*/:/ 641863165362Smrgs/:*@srcdir@:*/:/ 641963165362Smrgs/^\([^=]*=[ ]*\):*/\1/ 642063165362Smrgs/:*$// 642163165362Smrgs/^[^=]*=[ ]*$// 642263165362Smrg}' 642363165362Smrgfi 642463165362Smrg 64250eb10989Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 64260eb10989Smrgfi # test -n "$CONFIG_FILES" 642763165362Smrg 642863165362Smrg# Set up the scripts for CONFIG_HEADERS section. 642963165362Smrg# No need to generate them if there are no CONFIG_HEADERS. 643063165362Smrg# This happens for instance with `./config.status Makefile'. 643163165362Smrgif test -n "$CONFIG_HEADERS"; then 643263165362Smrgcat >"$tmp/defines.awk" <<\_ACAWK || 64330eb10989SmrgBEGIN { 643463165362Smrg_ACEOF 643563165362Smrg 643663165362Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 643763165362Smrg# here-document in config.status, that substitutes the proper values into 643863165362Smrg# config.h.in to produce config.h. 643963165362Smrg 644063165362Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 644163165362Smrg# handling of long lines. 644263165362Smrgac_delim='%!_!# ' 644363165362Smrgfor ac_last_try in false false :; do 644463165362Smrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 644563165362Smrg if test -z "$ac_t"; then 644663165362Smrg break 644763165362Smrg elif $ac_last_try; then 644863165362Smrg { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 644963165362Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 645063165362Smrg { (exit 1); exit 1; }; } 645163165362Smrg else 645263165362Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 645363165362Smrg fi 645463165362Smrgdone 645563165362Smrg 645663165362Smrg# For the awk script, D is an array of macro values keyed by name, 645763165362Smrg# likewise P contains macro parameters if any. Preserve backslash 645863165362Smrg# newline sequences. 645963165362Smrg 646063165362Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 646163165362Smrgsed -n ' 646263165362Smrgs/.\{148\}/&'"$ac_delim"'/g 646363165362Smrgt rset 646463165362Smrg:rset 646563165362Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 646663165362Smrgt def 646763165362Smrgd 646863165362Smrg:def 646963165362Smrgs/\\$// 647063165362Smrgt bsnl 647163165362Smrgs/["\\]/\\&/g 647263165362Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 647363165362SmrgD["\1"]=" \3"/p 647463165362Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 647563165362Smrgd 647663165362Smrg:bsnl 647763165362Smrgs/["\\]/\\&/g 647863165362Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 647963165362SmrgD["\1"]=" \3\\\\\\n"\\/p 648063165362Smrgt cont 648163165362Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 648263165362Smrgt cont 648363165362Smrgd 648463165362Smrg:cont 648563165362Smrgn 648663165362Smrgs/.\{148\}/&'"$ac_delim"'/g 648763165362Smrgt clear 648863165362Smrg:clear 648963165362Smrgs/\\$// 649063165362Smrgt bsnlc 649163165362Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 649263165362Smrgd 649363165362Smrg:bsnlc 649463165362Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 649563165362Smrgb cont 649663165362Smrg' <confdefs.h | sed ' 649763165362Smrgs/'"$ac_delim"'/"\\\ 649863165362Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 649963165362Smrg 650063165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 650163165362Smrg for (key in D) D_is_set[key] = 1 650263165362Smrg FS = "" 650363165362Smrg} 650463165362Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 650563165362Smrg line = \$ 0 650663165362Smrg split(line, arg, " ") 650763165362Smrg if (arg[1] == "#") { 650863165362Smrg defundef = arg[2] 650963165362Smrg mac1 = arg[3] 651063165362Smrg } else { 651163165362Smrg defundef = substr(arg[1], 2) 651263165362Smrg mac1 = arg[2] 651363165362Smrg } 651463165362Smrg split(mac1, mac2, "(") #) 651563165362Smrg macro = mac2[1] 651663165362Smrg prefix = substr(line, 1, index(line, defundef) - 1) 651763165362Smrg if (D_is_set[macro]) { 651863165362Smrg # Preserve the white space surrounding the "#". 651963165362Smrg print prefix "define", macro P[macro] D[macro] 652063165362Smrg next 652163165362Smrg } else { 652263165362Smrg # Replace #undef with comments. This is necessary, for example, 652363165362Smrg # in the case of _POSIX_SOURCE, which is predefined and required 652463165362Smrg # on some systems where configure will not decide to define it. 652563165362Smrg if (defundef == "undef") { 652663165362Smrg print "/*", prefix defundef, macro, "*/" 652763165362Smrg next 652863165362Smrg } 652963165362Smrg } 653063165362Smrg} 653163165362Smrg{ print } 653263165362Smrg_ACAWK 653363165362Smrg_ACEOF 653463165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 653563165362Smrg { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 653663165362Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 653763165362Smrg { (exit 1); exit 1; }; } 653863165362Smrgfi # test -n "$CONFIG_HEADERS" 653963165362Smrg 654063165362Smrg 654163165362Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 654263165362Smrgshift 654363165362Smrgfor ac_tag 654463165362Smrgdo 654563165362Smrg case $ac_tag in 654663165362Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 654763165362Smrg esac 654863165362Smrg case $ac_mode$ac_tag in 654963165362Smrg :[FHL]*:*);; 655063165362Smrg :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 655163165362Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 655263165362Smrg { (exit 1); exit 1; }; };; 655363165362Smrg :[FH]-) ac_tag=-:-;; 655463165362Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 655563165362Smrg esac 655663165362Smrg ac_save_IFS=$IFS 655763165362Smrg IFS=: 655863165362Smrg set x $ac_tag 655963165362Smrg IFS=$ac_save_IFS 656063165362Smrg shift 656163165362Smrg ac_file=$1 656263165362Smrg shift 656363165362Smrg 656463165362Smrg case $ac_mode in 656563165362Smrg :L) ac_source=$1;; 656663165362Smrg :[FH]) 656763165362Smrg ac_file_inputs= 656863165362Smrg for ac_f 656963165362Smrg do 657063165362Smrg case $ac_f in 657163165362Smrg -) ac_f="$tmp/stdin";; 657263165362Smrg *) # Look for the file first in the build tree, then in the source tree 657363165362Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 657463165362Smrg # because $ac_f cannot contain `:'. 657563165362Smrg test -f "$ac_f" || 657663165362Smrg case $ac_f in 657763165362Smrg [\\/$]*) false;; 657863165362Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 657963165362Smrg esac || 658063165362Smrg { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 658163165362Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 658263165362Smrg { (exit 1); exit 1; }; };; 658363165362Smrg esac 658463165362Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 658563165362Smrg ac_file_inputs="$ac_file_inputs '$ac_f'" 658663165362Smrg done 658763165362Smrg 658863165362Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 658963165362Smrg # use $as_me), people would be surprised to read: 659063165362Smrg # /* config.h. Generated by config.status. */ 659163165362Smrg configure_input='Generated from '` 659263165362Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 659363165362Smrg `' by configure.' 659463165362Smrg if test x"$ac_file" != x-; then 659563165362Smrg configure_input="$ac_file. $configure_input" 659663165362Smrg { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 659763165362Smrg$as_echo "$as_me: creating $ac_file" >&6;} 659863165362Smrg fi 659963165362Smrg # Neutralize special characters interpreted by sed in replacement strings. 660063165362Smrg case $configure_input in #( 660163165362Smrg *\&* | *\|* | *\\* ) 660263165362Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 660363165362Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 660463165362Smrg *) ac_sed_conf_input=$configure_input;; 660563165362Smrg esac 660663165362Smrg 660763165362Smrg case $ac_tag in 660863165362Smrg *:-:* | *:-) cat >"$tmp/stdin" \ 660963165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 661063165362Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 661163165362Smrg { (exit 1); exit 1; }; } ;; 661263165362Smrg esac 66130eb10989Smrg ;; 66140eb10989Smrg esac 661563165362Smrg 66160eb10989Smrg ac_dir=`$as_dirname -- "$ac_file" || 66170eb10989Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66180eb10989Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 661963165362Smrg X"$ac_file" : 'X\(//\)$' \| \ 662063165362Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 662163165362Smrg$as_echo X"$ac_file" | 662263165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 662363165362Smrg s//\1/ 662463165362Smrg q 662563165362Smrg } 662663165362Smrg /^X\(\/\/\)[^/].*/{ 662763165362Smrg s//\1/ 662863165362Smrg q 662963165362Smrg } 663063165362Smrg /^X\(\/\/\)$/{ 663163165362Smrg s//\1/ 663263165362Smrg q 663363165362Smrg } 663463165362Smrg /^X\(\/\).*/{ 663563165362Smrg s//\1/ 663663165362Smrg q 663763165362Smrg } 663863165362Smrg s/.*/./; q'` 663963165362Smrg { as_dir="$ac_dir" 664063165362Smrg case $as_dir in #( 664163165362Smrg -*) as_dir=./$as_dir;; 664263165362Smrg esac 66430eb10989Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 664463165362Smrg as_dirs= 664563165362Smrg while :; do 664663165362Smrg case $as_dir in #( 664763165362Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 664863165362Smrg *) as_qdir=$as_dir;; 664963165362Smrg esac 665063165362Smrg as_dirs="'$as_qdir' $as_dirs" 66510eb10989Smrg as_dir=`$as_dirname -- "$as_dir" || 66520eb10989Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66530eb10989Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 665463165362Smrg X"$as_dir" : 'X\(//\)$' \| \ 665563165362Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 665663165362Smrg$as_echo X"$as_dir" | 665763165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 665863165362Smrg s//\1/ 665963165362Smrg q 666063165362Smrg } 666163165362Smrg /^X\(\/\/\)[^/].*/{ 666263165362Smrg s//\1/ 666363165362Smrg q 666463165362Smrg } 666563165362Smrg /^X\(\/\/\)$/{ 666663165362Smrg s//\1/ 666763165362Smrg q 666863165362Smrg } 666963165362Smrg /^X\(\/\).*/{ 667063165362Smrg s//\1/ 667163165362Smrg q 667263165362Smrg } 667363165362Smrg s/.*/./; q'` 66740eb10989Smrg test -d "$as_dir" && break 667563165362Smrg done 667663165362Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 667763165362Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 66780eb10989Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 66790eb10989Smrg { (exit 1); exit 1; }; }; } 66800eb10989Smrg ac_builddir=. 668163165362Smrg 668263165362Smrgcase "$ac_dir" in 668363165362Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 668463165362Smrg*) 668563165362Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 668663165362Smrg # A ".." for each directory in $ac_dir_suffix. 668763165362Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 668863165362Smrg case $ac_top_builddir_sub in 668963165362Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 669063165362Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 669163165362Smrg esac ;; 669263165362Smrgesac 669363165362Smrgac_abs_top_builddir=$ac_pwd 669463165362Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 669563165362Smrg# for backward compatibility: 66960eb10989Smrgac_top_builddir=$ac_top_build_prefix 66970eb10989Smrg 669863165362Smrgcase $srcdir in 66990eb10989Smrg .) # We are building in place. 670063165362Smrg ac_srcdir=. 670163165362Smrg ac_top_srcdir=$ac_top_builddir_sub 670263165362Smrg ac_abs_top_srcdir=$ac_pwd ;; 67030eb10989Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 670463165362Smrg ac_srcdir=$srcdir$ac_dir_suffix; 670563165362Smrg ac_top_srcdir=$srcdir 670663165362Smrg ac_abs_top_srcdir=$srcdir ;; 670763165362Smrg *) # Relative name. 670863165362Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 670963165362Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 67100eb10989Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 671163165362Smrgesac 67120eb10989Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 67130eb10989Smrg 671463165362Smrg 671563165362Smrg case $ac_mode in 671663165362Smrg :F) 671763165362Smrg # 671863165362Smrg # CONFIG_FILE 67190eb10989Smrg # 67200eb10989Smrg 67210eb10989Smrg case $INSTALL in 672263165362Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 67230eb10989Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 672463165362Smrg esac 672563165362Smrg ac_MKDIR_P=$MKDIR_P 672663165362Smrg case $MKDIR_P in 672763165362Smrg [\\/$]* | ?:[\\/]* ) ;; 672863165362Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 672963165362Smrg esac 67300eb10989Smrg_ACEOF 673163165362Smrg 673263165362Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 673363165362Smrg# If the template does not know about datarootdir, expand it. 673463165362Smrg# FIXME: This hack should be removed a few years after 2.60. 673563165362Smrgac_datarootdir_hack=; ac_datarootdir_seen= 673663165362Smrg 673763165362Smrgac_sed_dataroot=' 673863165362Smrg/datarootdir/ { 673963165362Smrg p 674063165362Smrg q 674163165362Smrg} 674263165362Smrg/@datadir@/p 674363165362Smrg/@docdir@/p 674463165362Smrg/@infodir@/p 674563165362Smrg/@localedir@/p 674663165362Smrg/@mandir@/p 674763165362Smrg' 674863165362Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 674963165362Smrg*datarootdir*) ac_datarootdir_seen=yes;; 675063165362Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 675163165362Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 675263165362Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 675363165362Smrg_ACEOF 675463165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 675563165362Smrg ac_datarootdir_hack=' 675663165362Smrg s&@datadir@&$datadir&g 675763165362Smrg s&@docdir@&$docdir&g 675863165362Smrg s&@infodir@&$infodir&g 675963165362Smrg s&@localedir@&$localedir&g 676063165362Smrg s&@mandir@&$mandir&g 676163165362Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 67620eb10989Smrgesac 676363165362Smrg_ACEOF 676463165362Smrg 676563165362Smrg# Neutralize VPATH when `$srcdir' = `.'. 676663165362Smrg# Shell code in configure.ac might set extrasub. 676763165362Smrg# FIXME: do we really want to maintain this feature? 676863165362Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67690eb10989Smrgac_sed_extra="$ac_vpsub 67700eb10989Smrg$extrasub 677163165362Smrg_ACEOF 67720eb10989Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67730eb10989Smrg:t 677463165362Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 677563165362Smrgs|@configure_input@|$ac_sed_conf_input|;t t 677663165362Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 677763165362Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 677863165362Smrgs&@srcdir@&$ac_srcdir&;t t 677963165362Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 678063165362Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 678163165362Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 678263165362Smrgs&@builddir@&$ac_builddir&;t t 678363165362Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 678463165362Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 678563165362Smrgs&@INSTALL@&$ac_INSTALL&;t t 678663165362Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 678763165362Smrg$ac_datarootdir_hack 678863165362Smrg" 678963165362Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 679063165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 679163165362Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 67920eb10989Smrg { (exit 1); exit 1; }; } 679363165362Smrg 679463165362Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 679563165362Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 679663165362Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 679763165362Smrg { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 679863165362Smrgwhich seems to be undefined. Please make sure it is defined." >&5 679963165362Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68000eb10989Smrgwhich seems to be undefined. Please make sure it is defined." >&2;} 680163165362Smrg 68020eb10989Smrg rm -f "$tmp/stdin" 680363165362Smrg case $ac_file in 680463165362Smrg -) cat "$tmp/out" && rm -f "$tmp/out";; 680563165362Smrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 680663165362Smrg esac \ 680763165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 68080eb10989Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 680963165362Smrg { (exit 1); exit 1; }; } 681063165362Smrg ;; 681163165362Smrg :H) 681263165362Smrg # 681363165362Smrg # CONFIG_HEADER 68140eb10989Smrg # 681563165362Smrg if test x"$ac_file" != x-; then 681663165362Smrg { 681763165362Smrg $as_echo "/* $configure_input */" \ 681863165362Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 681963165362Smrg } >"$tmp/config.h" \ 682063165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 682163165362Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 682263165362Smrg { (exit 1); exit 1; }; } 682363165362Smrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 682463165362Smrg { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 68250eb10989Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 682663165362Smrg else 682763165362Smrg rm -f "$ac_file" 682863165362Smrg mv "$tmp/config.h" "$ac_file" \ 682963165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 683063165362Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;} 68310eb10989Smrg { (exit 1); exit 1; }; } 68320eb10989Smrg fi 683363165362Smrg else 683463165362Smrg $as_echo "/* $configure_input */" \ 683563165362Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 683663165362Smrg || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 683763165362Smrg$as_echo "$as_me: error: could not create -" >&2;} 68380eb10989Smrg { (exit 1); exit 1; }; } 683963165362Smrg fi 684063165362Smrg# Compute "$ac_file"'s index in $config_headers. 68410eb10989Smrg_am_arg="$ac_file" 68420eb10989Smrg_am_stamp_count=1 68430eb10989Smrgfor _am_header in $config_headers :; do 684463165362Smrg case $_am_header in 68450eb10989Smrg $_am_arg | $_am_arg:* ) 68460eb10989Smrg break ;; 68470eb10989Smrg * ) 68480eb10989Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 68490eb10989Smrg esac 685063165362Smrgdone 685163165362Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 685263165362Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 685363165362Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 685463165362Smrg X"$_am_arg" : 'X\(//\)$' \| \ 685563165362Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 685663165362Smrg$as_echo X"$_am_arg" | 685763165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 685863165362Smrg s//\1/ 685963165362Smrg q 686063165362Smrg } 686163165362Smrg /^X\(\/\/\)[^/].*/{ 686263165362Smrg s//\1/ 686363165362Smrg q 686463165362Smrg } 686563165362Smrg /^X\(\/\/\)$/{ 686663165362Smrg s//\1/ 686763165362Smrg q 686863165362Smrg } 686963165362Smrg /^X\(\/\).*/{ 687063165362Smrg s//\1/ 687163165362Smrg q 687263165362Smrg } 687363165362Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 68740eb10989Smrg ;; 687563165362Smrg 687663165362Smrg :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 687763165362Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 687863165362Smrg ;; 68790eb10989Smrg esac 68800eb10989Smrg 688163165362Smrg 688263165362Smrg case $ac_file$ac_mode in 688363165362Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 688463165362Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 688563165362Smrg # are listed without --file. Let's play safe and only enable the eval 688663165362Smrg # if we detect the quoting. 688763165362Smrg case $CONFIG_FILES in 688863165362Smrg *\'*) eval set x "$CONFIG_FILES" ;; 688963165362Smrg *) set x $CONFIG_FILES ;; 689063165362Smrg esac 689163165362Smrg shift 689263165362Smrg for mf 689363165362Smrg do 689463165362Smrg # Strip MF so we end up with the name of the file. 689563165362Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 689663165362Smrg # Check whether this is an Automake generated Makefile or not. 689763165362Smrg # We used to match only the files named `Makefile.in', but 689863165362Smrg # some people rename them; so instead we look at the file content. 689963165362Smrg # Grep'ing the first line is not enough: some people post-process 690063165362Smrg # each Makefile.in and add a new line on top of each file to say so. 690163165362Smrg # Grep'ing the whole file is not good either: AIX grep has a line 690263165362Smrg # limit of 2048, but all sed's we know have understand at least 4000. 690363165362Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 69040eb10989Smrg dirpart=`$as_dirname -- "$mf" || 69050eb10989Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69060eb10989Smrg X"$mf" : 'X\(//\)[^/]' \| \ 690763165362Smrg X"$mf" : 'X\(//\)$' \| \ 690863165362Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 690963165362Smrg$as_echo X"$mf" | 691063165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 691163165362Smrg s//\1/ 691263165362Smrg q 691363165362Smrg } 691463165362Smrg /^X\(\/\/\)[^/].*/{ 691563165362Smrg s//\1/ 691663165362Smrg q 691763165362Smrg } 691863165362Smrg /^X\(\/\/\)$/{ 691963165362Smrg s//\1/ 692063165362Smrg q 692163165362Smrg } 692263165362Smrg /^X\(\/\).*/{ 692363165362Smrg s//\1/ 692463165362Smrg q 692563165362Smrg } 692663165362Smrg s/.*/./; q'` 692763165362Smrg else 692863165362Smrg continue 692963165362Smrg fi 693063165362Smrg # Extract the definition of DEPDIR, am__include, and am__quote 693163165362Smrg # from the Makefile without running `make'. 693263165362Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 693363165362Smrg test -z "$DEPDIR" && continue 693463165362Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 693563165362Smrg test -z "am__include" && continue 693663165362Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 693763165362Smrg # When using ansi2knr, U may be empty or an underscore; expand it 693863165362Smrg U=`sed -n 's/^U = //p' < "$mf"` 693963165362Smrg # Find all dependency output files, they are included files with 694063165362Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 694163165362Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 694263165362Smrg # expansion. 694363165362Smrg for file in `sed -n " 694463165362Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 694563165362Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 694663165362Smrg # Make sure the directory exists. 694763165362Smrg test -f "$dirpart/$file" && continue 69480eb10989Smrg fdir=`$as_dirname -- "$file" || 69490eb10989Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69500eb10989Smrg X"$file" : 'X\(//\)[^/]' \| \ 695163165362Smrg X"$file" : 'X\(//\)$' \| \ 695263165362Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 695363165362Smrg$as_echo X"$file" | 695463165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 695563165362Smrg s//\1/ 695663165362Smrg q 695763165362Smrg } 695863165362Smrg /^X\(\/\/\)[^/].*/{ 695963165362Smrg s//\1/ 696063165362Smrg q 696163165362Smrg } 696263165362Smrg /^X\(\/\/\)$/{ 696363165362Smrg s//\1/ 696463165362Smrg q 696563165362Smrg } 696663165362Smrg /^X\(\/\).*/{ 696763165362Smrg s//\1/ 696863165362Smrg q 696963165362Smrg } 697063165362Smrg s/.*/./; q'` 697163165362Smrg { as_dir=$dirpart/$fdir 697263165362Smrg case $as_dir in #( 697363165362Smrg -*) as_dir=./$as_dir;; 697463165362Smrg esac 69750eb10989Smrg test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 697663165362Smrg as_dirs= 697763165362Smrg while :; do 697863165362Smrg case $as_dir in #( 697963165362Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 698063165362Smrg *) as_qdir=$as_dir;; 698163165362Smrg esac 698263165362Smrg as_dirs="'$as_qdir' $as_dirs" 69830eb10989Smrg as_dir=`$as_dirname -- "$as_dir" || 69840eb10989Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69850eb10989Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 698663165362Smrg X"$as_dir" : 'X\(//\)$' \| \ 698763165362Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 698863165362Smrg$as_echo X"$as_dir" | 698963165362Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 699063165362Smrg s//\1/ 699163165362Smrg q 699263165362Smrg } 699363165362Smrg /^X\(\/\/\)[^/].*/{ 699463165362Smrg s//\1/ 699563165362Smrg q 699663165362Smrg } 699763165362Smrg /^X\(\/\/\)$/{ 699863165362Smrg s//\1/ 699963165362Smrg q 700063165362Smrg } 700163165362Smrg /^X\(\/\).*/{ 700263165362Smrg s//\1/ 700363165362Smrg q 700463165362Smrg } 700563165362Smrg s/.*/./; q'` 70060eb10989Smrg test -d "$as_dir" && break 700763165362Smrg done 700863165362Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 700963165362Smrg } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 70100eb10989Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 701163165362Smrg { (exit 1); exit 1; }; }; } 701263165362Smrg # echo "creating $dirpart/$file" 701363165362Smrg echo '# dummy' > "$dirpart/$file" 70140eb10989Smrg done 701563165362Smrg done 70160eb10989Smrg} 701763165362Smrg ;; 70180eb10989Smrg 701963165362Smrg esac 70200eb10989Smrgdone # for ac_tag 70210eb10989Smrg 70220eb10989Smrg 70230eb10989Smrg{ (exit 0); exit 0; } 70240eb10989Smrg_ACEOF 70250eb10989Smrgchmod +x $CONFIG_STATUS 70260eb10989Smrgac_clean_files=$ac_clean_files_save 702763165362Smrg 702863165362Smrgtest $ac_write_fail = 0 || 702963165362Smrg { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 703063165362Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 703163165362Smrg { (exit 1); exit 1; }; } 70320eb10989Smrg 70330eb10989Smrg 70340eb10989Smrg# configure is writing to config.log, and then calls config.status. 70350eb10989Smrg# config.status does its own redirection, appending to config.log. 70360eb10989Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 70370eb10989Smrg# by configure, so config.status won't be able to write to it; its 70380eb10989Smrg# output is simply discarded. So we exec the FD to /dev/null, 70390eb10989Smrg# effectively closing config.log, so it can be properly (re)opened and 70400eb10989Smrg# appended to by config.status. When coming back to configure, we 70410eb10989Smrg# need to make the FD available again. 70420eb10989Smrgif test "$no_create" != yes; then 70430eb10989Smrg ac_cs_success=: 70440eb10989Smrg ac_config_status_args= 70450eb10989Smrg test "$silent" = yes && 70460eb10989Smrg ac_config_status_args="$ac_config_status_args --quiet" 70470eb10989Smrg exec 5>/dev/null 70480eb10989Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 70490eb10989Smrg exec 5>>config.log 70500eb10989Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 70510eb10989Smrg # would make configure fail if this is the last instruction. 70520eb10989Smrg $ac_cs_success || { (exit 1); exit 1; } 705363165362Smrgfi 705463165362Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 705563165362Smrg { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 705663165362Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 70570eb10989Smrgfi 7058 7059