configure revision d13010c3
18b22bf3fSmrg#! /bin/sh 28b22bf3fSmrg# Guess values for system-dependent variables and create Makefiles. 3d13010c3Smrg# Generated by GNU Autoconf 2.68 for xrdb 1.0.8. 48b22bf3fSmrg# 58b22bf3fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 68b22bf3fSmrg# 75bd32fd1Smrg# 88b22bf3fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 95bd32fd1Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 105bd32fd1Smrg# Foundation, Inc. 115bd32fd1Smrg# 125bd32fd1Smrg# 138b22bf3fSmrg# This configure script is free software; the Free Software Foundation 148b22bf3fSmrg# gives unlimited permission to copy, distribute and modify it. 155bd32fd1Smrg## -------------------- ## 165bd32fd1Smrg## M4sh Initialization. ## 175bd32fd1Smrg## -------------------- ## 188b22bf3fSmrg 198b22bf3fSmrg# Be more Bourne compatible 208b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh 215bd32fd1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 228b22bf3fSmrg emulate sh 238b22bf3fSmrg NULLCMD=: 2496a81b41Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 258b22bf3fSmrg # is contrary to our usage. Disable this feature. 268b22bf3fSmrg alias -g '${1+"$@"}'='"$@"' 278b22bf3fSmrg setopt NO_GLOB_SUBST 288b22bf3fSmrgelse 295bd32fd1Smrg case `(set -o) 2>/dev/null` in #( 305bd32fd1Smrg *posix*) : 315bd32fd1Smrg set -o posix ;; #( 325bd32fd1Smrg *) : 335bd32fd1Smrg ;; 348b22bf3fSmrgesac 358b22bf3fSmrgfi 368b22bf3fSmrg 378b22bf3fSmrg 3896a81b41Smrgas_nl=' 3996a81b41Smrg' 4096a81b41Smrgexport as_nl 4196a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 4296a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4396a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4496a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 455bd32fd1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 465bd32fd1Smrg# but without wasting forks for bash or zsh. 475bd32fd1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 485bd32fd1Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 495bd32fd1Smrg as_echo='print -r --' 505bd32fd1Smrg as_echo_n='print -rn --' 515bd32fd1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5296a81b41Smrg as_echo='printf %s\n' 5396a81b41Smrg as_echo_n='printf %s' 5496a81b41Smrgelse 5596a81b41Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5696a81b41Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5796a81b41Smrg as_echo_n='/usr/ucb/echo -n' 588b22bf3fSmrg else 5996a81b41Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6096a81b41Smrg as_echo_n_body='eval 6196a81b41Smrg arg=$1; 625bd32fd1Smrg case $arg in #( 6396a81b41Smrg *"$as_nl"*) 6496a81b41Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 6596a81b41Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6696a81b41Smrg esac; 6796a81b41Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6896a81b41Smrg ' 6996a81b41Smrg export as_echo_n_body 7096a81b41Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 718b22bf3fSmrg fi 7296a81b41Smrg export as_echo_body 7396a81b41Smrg as_echo='sh -c $as_echo_body as_echo' 7496a81b41Smrgfi 7596a81b41Smrg 7696a81b41Smrg# The user is always right. 7796a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then 7896a81b41Smrg PATH_SEPARATOR=: 7996a81b41Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8096a81b41Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8196a81b41Smrg PATH_SEPARATOR=';' 8296a81b41Smrg } 838b22bf3fSmrgfi 848b22bf3fSmrg 858b22bf3fSmrg 868b22bf3fSmrg# IFS 878b22bf3fSmrg# We need space, tab and new line, in precisely that order. Quoting is 888b22bf3fSmrg# there to prevent editors from complaining about space-tab. 898b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 908b22bf3fSmrg# splitting by setting IFS to empty value.) 918b22bf3fSmrgIFS=" "" $as_nl" 928b22bf3fSmrg 938b22bf3fSmrg# Find who we are. Look in the path if we contain no directory separator. 945bd32fd1Smrgas_myself= 955bd32fd1Smrgcase $0 in #(( 968b22bf3fSmrg *[\\/]* ) as_myself=$0 ;; 978b22bf3fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 988b22bf3fSmrgfor as_dir in $PATH 998b22bf3fSmrgdo 1008b22bf3fSmrg IFS=$as_save_IFS 1018b22bf3fSmrg test -z "$as_dir" && as_dir=. 1025bd32fd1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1035bd32fd1Smrg done 1048b22bf3fSmrgIFS=$as_save_IFS 1058b22bf3fSmrg 1068b22bf3fSmrg ;; 1078b22bf3fSmrgesac 1088b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1098b22bf3fSmrg# in which case we are not to be found in the path. 1108b22bf3fSmrgif test "x$as_myself" = x; then 1118b22bf3fSmrg as_myself=$0 1128b22bf3fSmrgfi 1138b22bf3fSmrgif test ! -f "$as_myself"; then 11496a81b41Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1155bd32fd1Smrg exit 1 1168b22bf3fSmrgfi 1178b22bf3fSmrg 1185bd32fd1Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1195bd32fd1Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1205bd32fd1Smrg# suppresses any "Segmentation fault" message there. '((' could 1215bd32fd1Smrg# trigger a bug in pdksh 5.2.14. 1225bd32fd1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1235bd32fd1Smrgdo eval test x\${$as_var+set} = xset \ 1245bd32fd1Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1258b22bf3fSmrgdone 1268b22bf3fSmrgPS1='$ ' 1278b22bf3fSmrgPS2='> ' 1288b22bf3fSmrgPS4='+ ' 1298b22bf3fSmrg 1308b22bf3fSmrg# NLS nuisances. 13196a81b41SmrgLC_ALL=C 13296a81b41Smrgexport LC_ALL 13396a81b41SmrgLANGUAGE=C 13496a81b41Smrgexport LANGUAGE 1358b22bf3fSmrg 1365bd32fd1Smrg# CDPATH. 1375bd32fd1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1385bd32fd1Smrg 1395bd32fd1Smrgif test "x$CONFIG_SHELL" = x; then 1405bd32fd1Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1415bd32fd1Smrg emulate sh 1425bd32fd1Smrg NULLCMD=: 1435bd32fd1Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1445bd32fd1Smrg # is contrary to our usage. Disable this feature. 1455bd32fd1Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1465bd32fd1Smrg setopt NO_GLOB_SUBST 1475bd32fd1Smrgelse 1485bd32fd1Smrg case \`(set -o) 2>/dev/null\` in #( 1495bd32fd1Smrg *posix*) : 1505bd32fd1Smrg set -o posix ;; #( 1515bd32fd1Smrg *) : 1525bd32fd1Smrg ;; 1535bd32fd1Smrgesac 1545bd32fd1Smrgfi 1555bd32fd1Smrg" 1565bd32fd1Smrg as_required="as_fn_return () { (exit \$1); } 1575bd32fd1Smrgas_fn_success () { as_fn_return 0; } 1585bd32fd1Smrgas_fn_failure () { as_fn_return 1; } 1595bd32fd1Smrgas_fn_ret_success () { return 0; } 1605bd32fd1Smrgas_fn_ret_failure () { return 1; } 1615bd32fd1Smrg 1625bd32fd1Smrgexitcode=0 1635bd32fd1Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1645bd32fd1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1655bd32fd1Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1665bd32fd1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1675bd32fd1Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1685bd32fd1Smrg 1695bd32fd1Smrgelse 1705bd32fd1Smrg exitcode=1; echo positional parameters were not saved. 1715bd32fd1Smrgfi 1725bd32fd1Smrgtest x\$exitcode = x0 || exit 1" 1735bd32fd1Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1745bd32fd1Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1755bd32fd1Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1765bd32fd1Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1775bd32fd1Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 1785bd32fd1Smrg if (eval "$as_required") 2>/dev/null; then : 1795bd32fd1Smrg as_have_required=yes 1805bd32fd1Smrgelse 1815bd32fd1Smrg as_have_required=no 1825bd32fd1Smrgfi 1835bd32fd1Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 1845bd32fd1Smrg 1855bd32fd1Smrgelse 1865bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1875bd32fd1Smrgas_found=false 1885bd32fd1Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1895bd32fd1Smrgdo 1905bd32fd1Smrg IFS=$as_save_IFS 1915bd32fd1Smrg test -z "$as_dir" && as_dir=. 1925bd32fd1Smrg as_found=: 1935bd32fd1Smrg case $as_dir in #( 1945bd32fd1Smrg /*) 1955bd32fd1Smrg for as_base in sh bash ksh sh5; do 1965bd32fd1Smrg # Try only shells that exist, to save several forks. 1975bd32fd1Smrg as_shell=$as_dir/$as_base 1985bd32fd1Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 1995bd32fd1Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2005bd32fd1Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2015bd32fd1Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2025bd32fd1Smrg break 2 2035bd32fd1Smrgfi 2045bd32fd1Smrgfi 2055bd32fd1Smrg done;; 2065bd32fd1Smrg esac 2075bd32fd1Smrg as_found=false 2085bd32fd1Smrgdone 2095bd32fd1Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2105bd32fd1Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2115bd32fd1Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2125bd32fd1Smrgfi; } 2135bd32fd1SmrgIFS=$as_save_IFS 2145bd32fd1Smrg 2155bd32fd1Smrg 2165bd32fd1Smrg if test "x$CONFIG_SHELL" != x; then : 2175bd32fd1Smrg # We cannot yet assume a decent shell, so we have to provide a 2185bd32fd1Smrg # neutralization value for shells without unset; and this also 2195bd32fd1Smrg # works around shells that cannot unset nonexistent variables. 2205bd32fd1Smrg # Preserve -v and -x to the replacement shell. 2215bd32fd1Smrg BASH_ENV=/dev/null 2225bd32fd1Smrg ENV=/dev/null 2235bd32fd1Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2245bd32fd1Smrg export CONFIG_SHELL 2255bd32fd1Smrg case $- in # (((( 2265bd32fd1Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2275bd32fd1Smrg *v* ) as_opts=-v ;; 2285bd32fd1Smrg *x* ) as_opts=-x ;; 2295bd32fd1Smrg * ) as_opts= ;; 2305bd32fd1Smrg esac 2315bd32fd1Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 2325bd32fd1Smrgfi 2335bd32fd1Smrg 2345bd32fd1Smrg if test x$as_have_required = xno; then : 2355bd32fd1Smrg $as_echo "$0: This script requires a shell more modern than all" 2365bd32fd1Smrg $as_echo "$0: the shells that I found on your system." 2375bd32fd1Smrg if test x${ZSH_VERSION+set} = xset ; then 2385bd32fd1Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2395bd32fd1Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2405bd32fd1Smrg else 2415bd32fd1Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2425bd32fd1Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2435bd32fd1Smrg$0: about your system, including any error possibly output 2445bd32fd1Smrg$0: before this message. Then install a modern shell, or 2455bd32fd1Smrg$0: manually run the script under such a shell if you do 2465bd32fd1Smrg$0: have one." 2475bd32fd1Smrg fi 2485bd32fd1Smrg exit 1 2495bd32fd1Smrgfi 2505bd32fd1Smrgfi 2515bd32fd1Smrgfi 2525bd32fd1SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2535bd32fd1Smrgexport SHELL 2545bd32fd1Smrg# Unset more variables known to interfere with behavior of common tools. 2555bd32fd1SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2565bd32fd1Smrgunset CLICOLOR_FORCE GREP_OPTIONS 2575bd32fd1Smrg 2585bd32fd1Smrg## --------------------- ## 2595bd32fd1Smrg## M4sh Shell Functions. ## 2605bd32fd1Smrg## --------------------- ## 2615bd32fd1Smrg# as_fn_unset VAR 2625bd32fd1Smrg# --------------- 2635bd32fd1Smrg# Portably unset VAR. 2645bd32fd1Smrgas_fn_unset () 2655bd32fd1Smrg{ 2665bd32fd1Smrg { eval $1=; unset $1;} 2675bd32fd1Smrg} 2685bd32fd1Smrgas_unset=as_fn_unset 2695bd32fd1Smrg 2705bd32fd1Smrg# as_fn_set_status STATUS 2715bd32fd1Smrg# ----------------------- 2725bd32fd1Smrg# Set $? to STATUS, without forking. 2735bd32fd1Smrgas_fn_set_status () 2745bd32fd1Smrg{ 2755bd32fd1Smrg return $1 2765bd32fd1Smrg} # as_fn_set_status 2775bd32fd1Smrg 2785bd32fd1Smrg# as_fn_exit STATUS 2795bd32fd1Smrg# ----------------- 2805bd32fd1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2815bd32fd1Smrgas_fn_exit () 2825bd32fd1Smrg{ 2835bd32fd1Smrg set +e 2845bd32fd1Smrg as_fn_set_status $1 2855bd32fd1Smrg exit $1 2865bd32fd1Smrg} # as_fn_exit 2875bd32fd1Smrg 2885bd32fd1Smrg# as_fn_mkdir_p 2895bd32fd1Smrg# ------------- 2905bd32fd1Smrg# Create "$as_dir" as a directory, including parents if necessary. 2915bd32fd1Smrgas_fn_mkdir_p () 2925bd32fd1Smrg{ 2935bd32fd1Smrg 2945bd32fd1Smrg case $as_dir in #( 2955bd32fd1Smrg -*) as_dir=./$as_dir;; 2965bd32fd1Smrg esac 2975bd32fd1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 2985bd32fd1Smrg as_dirs= 2995bd32fd1Smrg while :; do 3005bd32fd1Smrg case $as_dir in #( 3015bd32fd1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3025bd32fd1Smrg *) as_qdir=$as_dir;; 3035bd32fd1Smrg esac 3045bd32fd1Smrg as_dirs="'$as_qdir' $as_dirs" 3055bd32fd1Smrg as_dir=`$as_dirname -- "$as_dir" || 3065bd32fd1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3075bd32fd1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3085bd32fd1Smrg X"$as_dir" : 'X\(//\)$' \| \ 3095bd32fd1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3105bd32fd1Smrg$as_echo X"$as_dir" | 3115bd32fd1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3125bd32fd1Smrg s//\1/ 3135bd32fd1Smrg q 3145bd32fd1Smrg } 3155bd32fd1Smrg /^X\(\/\/\)[^/].*/{ 3165bd32fd1Smrg s//\1/ 3175bd32fd1Smrg q 3185bd32fd1Smrg } 3195bd32fd1Smrg /^X\(\/\/\)$/{ 3205bd32fd1Smrg s//\1/ 3215bd32fd1Smrg q 3225bd32fd1Smrg } 3235bd32fd1Smrg /^X\(\/\).*/{ 3245bd32fd1Smrg s//\1/ 3255bd32fd1Smrg q 3265bd32fd1Smrg } 3275bd32fd1Smrg s/.*/./; q'` 3285bd32fd1Smrg test -d "$as_dir" && break 3295bd32fd1Smrg done 3305bd32fd1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3315bd32fd1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3325bd32fd1Smrg 3335bd32fd1Smrg 3345bd32fd1Smrg} # as_fn_mkdir_p 3355bd32fd1Smrg# as_fn_append VAR VALUE 3365bd32fd1Smrg# ---------------------- 3375bd32fd1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3385bd32fd1Smrg# advantage of any shell optimizations that allow amortized linear growth over 3395bd32fd1Smrg# repeated appends, instead of the typical quadratic growth present in naive 3405bd32fd1Smrg# implementations. 3415bd32fd1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3425bd32fd1Smrg eval 'as_fn_append () 3435bd32fd1Smrg { 3445bd32fd1Smrg eval $1+=\$2 3455bd32fd1Smrg }' 3465bd32fd1Smrgelse 3475bd32fd1Smrg as_fn_append () 3485bd32fd1Smrg { 3495bd32fd1Smrg eval $1=\$$1\$2 3505bd32fd1Smrg } 3515bd32fd1Smrgfi # as_fn_append 3525bd32fd1Smrg 3535bd32fd1Smrg# as_fn_arith ARG... 3545bd32fd1Smrg# ------------------ 3555bd32fd1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3565bd32fd1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3575bd32fd1Smrg# must be portable across $(()) and expr. 3585bd32fd1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3595bd32fd1Smrg eval 'as_fn_arith () 3605bd32fd1Smrg { 3615bd32fd1Smrg as_val=$(( $* )) 3625bd32fd1Smrg }' 3635bd32fd1Smrgelse 3645bd32fd1Smrg as_fn_arith () 3655bd32fd1Smrg { 3665bd32fd1Smrg as_val=`expr "$@" || test $? -eq 1` 3675bd32fd1Smrg } 3685bd32fd1Smrgfi # as_fn_arith 3695bd32fd1Smrg 3705bd32fd1Smrg 3715bd32fd1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 3725bd32fd1Smrg# ---------------------------------------- 3735bd32fd1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3745bd32fd1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3755bd32fd1Smrg# script with STATUS, using 1 if that was 0. 3765bd32fd1Smrgas_fn_error () 3775bd32fd1Smrg{ 3785bd32fd1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 3795bd32fd1Smrg if test "$4"; then 3805bd32fd1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3815bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3825bd32fd1Smrg fi 3835bd32fd1Smrg $as_echo "$as_me: error: $2" >&2 3845bd32fd1Smrg as_fn_exit $as_status 3855bd32fd1Smrg} # as_fn_error 3865bd32fd1Smrg 3878b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 3888b22bf3fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3898b22bf3fSmrg as_expr=expr 3908b22bf3fSmrgelse 3918b22bf3fSmrg as_expr=false 3928b22bf3fSmrgfi 3938b22bf3fSmrg 3948b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3958b22bf3fSmrg as_basename=basename 3968b22bf3fSmrgelse 3978b22bf3fSmrg as_basename=false 3988b22bf3fSmrgfi 3998b22bf3fSmrg 4005bd32fd1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4015bd32fd1Smrg as_dirname=dirname 4025bd32fd1Smrgelse 4035bd32fd1Smrg as_dirname=false 4045bd32fd1Smrgfi 4058b22bf3fSmrg 4068b22bf3fSmrgas_me=`$as_basename -- "$0" || 4078b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4088b22bf3fSmrg X"$0" : 'X\(//\)$' \| \ 4098b22bf3fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 41096a81b41Smrg$as_echo X/"$0" | 4118b22bf3fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4128b22bf3fSmrg s//\1/ 4138b22bf3fSmrg q 4148b22bf3fSmrg } 4158b22bf3fSmrg /^X\/\(\/\/\)$/{ 4168b22bf3fSmrg s//\1/ 4178b22bf3fSmrg q 4188b22bf3fSmrg } 4198b22bf3fSmrg /^X\/\(\/\).*/{ 4208b22bf3fSmrg s//\1/ 4218b22bf3fSmrg q 4228b22bf3fSmrg } 4238b22bf3fSmrg s/.*/./; q'` 4248b22bf3fSmrg 4255bd32fd1Smrg# Avoid depending upon Character Ranges. 4265bd32fd1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4275bd32fd1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4285bd32fd1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4295bd32fd1Smrgas_cr_digits='0123456789' 4305bd32fd1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4318b22bf3fSmrg 4328b22bf3fSmrg 4335bd32fd1Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4345bd32fd1Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4355bd32fd1Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4365bd32fd1Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4375bd32fd1Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4385bd32fd1Smrg sed -n ' 4395bd32fd1Smrg p 4405bd32fd1Smrg /[$]LINENO/= 4415bd32fd1Smrg ' <$as_myself | 4425bd32fd1Smrg sed ' 4435bd32fd1Smrg s/[$]LINENO.*/&-/ 4445bd32fd1Smrg t lineno 4455bd32fd1Smrg b 4465bd32fd1Smrg :lineno 4475bd32fd1Smrg N 4485bd32fd1Smrg :loop 4495bd32fd1Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4505bd32fd1Smrg t loop 4515bd32fd1Smrg s/-\n.*// 4525bd32fd1Smrg ' >$as_me.lineno && 4535bd32fd1Smrg chmod +x "$as_me.lineno" || 4545bd32fd1Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4558b22bf3fSmrg 4565bd32fd1Smrg # Don't try to exec as it changes $[0], causing all sort of problems 4575bd32fd1Smrg # (the dirname of $[0] is not the place where we might find the 4585bd32fd1Smrg # original and so on. Autoconf is especially sensitive to this). 4595bd32fd1Smrg . "./$as_me.lineno" 4605bd32fd1Smrg # Exit status is that of the last command. 4615bd32fd1Smrg exit 4628b22bf3fSmrg} 4638b22bf3fSmrg 4645bd32fd1SmrgECHO_C= ECHO_N= ECHO_T= 4655bd32fd1Smrgcase `echo -n x` in #((((( 4665bd32fd1Smrg-n*) 4675bd32fd1Smrg case `echo 'xy\c'` in 4685bd32fd1Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4695bd32fd1Smrg xy) ECHO_C='\c';; 4705bd32fd1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4715bd32fd1Smrg ECHO_T=' ';; 4725bd32fd1Smrg esac;; 4735bd32fd1Smrg*) 4745bd32fd1Smrg ECHO_N='-n';; 4755bd32fd1Smrgesac 4768b22bf3fSmrg 4775bd32fd1Smrgrm -f conf$$ conf$$.exe conf$$.file 4785bd32fd1Smrgif test -d conf$$.dir; then 4795bd32fd1Smrg rm -f conf$$.dir/conf$$.file 4805bd32fd1Smrgelse 4815bd32fd1Smrg rm -f conf$$.dir 4825bd32fd1Smrg mkdir conf$$.dir 2>/dev/null 4838b22bf3fSmrgfi 4845bd32fd1Smrgif (echo >conf$$.file) 2>/dev/null; then 4855bd32fd1Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 4865bd32fd1Smrg as_ln_s='ln -s' 4875bd32fd1Smrg # ... but there are two gotchas: 4885bd32fd1Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4895bd32fd1Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4905bd32fd1Smrg # In both cases, we have to default to `cp -p'. 4915bd32fd1Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4925bd32fd1Smrg as_ln_s='cp -p' 4935bd32fd1Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 4945bd32fd1Smrg as_ln_s=ln 4955bd32fd1Smrg else 4965bd32fd1Smrg as_ln_s='cp -p' 4975bd32fd1Smrg fi 4988b22bf3fSmrgelse 4995bd32fd1Smrg as_ln_s='cp -p' 5008b22bf3fSmrgfi 5015bd32fd1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5025bd32fd1Smrgrmdir conf$$.dir 2>/dev/null 5038b22bf3fSmrg 5045bd32fd1Smrgif mkdir -p . 2>/dev/null; then 5055bd32fd1Smrg as_mkdir_p='mkdir -p "$as_dir"' 5065bd32fd1Smrgelse 5075bd32fd1Smrg test -d ./-p && rmdir ./-p 5085bd32fd1Smrg as_mkdir_p=false 5098b22bf3fSmrgfi 5108b22bf3fSmrg 5115bd32fd1Smrgif test -x / >/dev/null 2>&1; then 5125bd32fd1Smrg as_test_x='test -x' 5138b22bf3fSmrgelse 5145bd32fd1Smrg if ls -dL / >/dev/null 2>&1; then 5155bd32fd1Smrg as_ls_L_option=L 5165bd32fd1Smrg else 5175bd32fd1Smrg as_ls_L_option= 5185bd32fd1Smrg fi 5195bd32fd1Smrg as_test_x=' 5205bd32fd1Smrg eval sh -c '\'' 5215bd32fd1Smrg if test -d "$1"; then 5225bd32fd1Smrg test -d "$1/."; 5235bd32fd1Smrg else 5245bd32fd1Smrg case $1 in #( 5255bd32fd1Smrg -*)set "./$1";; 5265bd32fd1Smrg esac; 5275bd32fd1Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5285bd32fd1Smrg ???[sx]*):;;*)false;;esac;fi 5295bd32fd1Smrg '\'' sh 5305bd32fd1Smrg ' 5318b22bf3fSmrgfi 5325bd32fd1Smrgas_executable_p=$as_test_x 5338b22bf3fSmrg 5345bd32fd1Smrg# Sed expression to map a string onto a valid CPP name. 5355bd32fd1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5368b22bf3fSmrg 5375bd32fd1Smrg# Sed expression to map a string onto a valid variable name. 5385bd32fd1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5398b22bf3fSmrg 5408b22bf3fSmrg 5415bd32fd1Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5425bd32fd1Smrgexec 6>&1 5438b22bf3fSmrg 5448b22bf3fSmrg# Name of the host. 5455bd32fd1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5468b22bf3fSmrg# so uname gets run too. 5478b22bf3fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5488b22bf3fSmrg 5498b22bf3fSmrg# 5508b22bf3fSmrg# Initializations. 5518b22bf3fSmrg# 5528b22bf3fSmrgac_default_prefix=/usr/local 5538b22bf3fSmrgac_clean_files= 5548b22bf3fSmrgac_config_libobj_dir=. 5558b22bf3fSmrgLIBOBJS= 5568b22bf3fSmrgcross_compiling=no 5578b22bf3fSmrgsubdirs= 5588b22bf3fSmrgMFLAGS= 5598b22bf3fSmrgMAKEFLAGS= 5608b22bf3fSmrg 5618b22bf3fSmrg# Identity of this package. 5628b22bf3fSmrgPACKAGE_NAME='xrdb' 5638b22bf3fSmrgPACKAGE_TARNAME='xrdb' 564d13010c3SmrgPACKAGE_VERSION='1.0.8' 565d13010c3SmrgPACKAGE_STRING='xrdb 1.0.8' 5668b22bf3fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5675bd32fd1SmrgPACKAGE_URL='' 5688b22bf3fSmrg 5695bd32fd1Smrgac_unique_file="Makefile.am" 5708b22bf3fSmrg# Factoring default headers for most tests. 5718b22bf3fSmrgac_includes_default="\ 5728b22bf3fSmrg#include <stdio.h> 5738b22bf3fSmrg#ifdef HAVE_SYS_TYPES_H 5748b22bf3fSmrg# include <sys/types.h> 5758b22bf3fSmrg#endif 5768b22bf3fSmrg#ifdef HAVE_SYS_STAT_H 5778b22bf3fSmrg# include <sys/stat.h> 5788b22bf3fSmrg#endif 5798b22bf3fSmrg#ifdef STDC_HEADERS 5808b22bf3fSmrg# include <stdlib.h> 5818b22bf3fSmrg# include <stddef.h> 5828b22bf3fSmrg#else 5838b22bf3fSmrg# ifdef HAVE_STDLIB_H 5848b22bf3fSmrg# include <stdlib.h> 5858b22bf3fSmrg# endif 5868b22bf3fSmrg#endif 5878b22bf3fSmrg#ifdef HAVE_STRING_H 5888b22bf3fSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 5898b22bf3fSmrg# include <memory.h> 5908b22bf3fSmrg# endif 5918b22bf3fSmrg# include <string.h> 5928b22bf3fSmrg#endif 5938b22bf3fSmrg#ifdef HAVE_STRINGS_H 5948b22bf3fSmrg# include <strings.h> 5958b22bf3fSmrg#endif 5968b22bf3fSmrg#ifdef HAVE_INTTYPES_H 5978b22bf3fSmrg# include <inttypes.h> 5988b22bf3fSmrg#endif 5998b22bf3fSmrg#ifdef HAVE_STDINT_H 6008b22bf3fSmrg# include <stdint.h> 6018b22bf3fSmrg#endif 6028b22bf3fSmrg#ifdef HAVE_UNISTD_H 6038b22bf3fSmrg# include <unistd.h> 6048b22bf3fSmrg#endif" 6058b22bf3fSmrg 60696a81b41Smrgac_subst_vars='am__EXEEXT_FALSE 60796a81b41Smrgam__EXEEXT_TRUE 60896a81b41SmrgLTLIBOBJS 60996a81b41SmrgLIBOBJS 6108b22bf3fSmrgXRDB_LIBS 61196a81b41SmrgXRDB_CFLAGS 61296a81b41SmrgCPP_PATH 6135bd32fd1SmrgAM_BACKSLASH 6145bd32fd1SmrgAM_DEFAULT_VERBOSITY 6155bd32fd1SmrgMAN_SUBSTS 6165bd32fd1SmrgXORG_MAN_PAGE 6178b22bf3fSmrgADMIN_MAN_DIR 61896a81b41SmrgDRIVER_MAN_DIR 61996a81b41SmrgMISC_MAN_DIR 62096a81b41SmrgFILE_MAN_DIR 62196a81b41SmrgLIB_MAN_DIR 62296a81b41SmrgAPP_MAN_DIR 62396a81b41SmrgADMIN_MAN_SUFFIX 62496a81b41SmrgDRIVER_MAN_SUFFIX 62596a81b41SmrgMISC_MAN_SUFFIX 62696a81b41SmrgFILE_MAN_SUFFIX 62796a81b41SmrgLIB_MAN_SUFFIX 62896a81b41SmrgAPP_MAN_SUFFIX 6295bd32fd1SmrgSED 63096a81b41Smrghost_os 63196a81b41Smrghost_vendor 63296a81b41Smrghost_cpu 63396a81b41Smrghost 63496a81b41Smrgbuild_os 63596a81b41Smrgbuild_vendor 63696a81b41Smrgbuild_cpu 63796a81b41Smrgbuild 6385bd32fd1SmrgINSTALL_CMD 639d13010c3SmrgPKG_CONFIG_LIBDIR 640d13010c3SmrgPKG_CONFIG_PATH 6415bd32fd1SmrgPKG_CONFIG 64296a81b41SmrgCHANGELOG_CMD 64396a81b41SmrgCWARNFLAGS 644d13010c3SmrgMAINT 645d13010c3SmrgMAINTAINER_MODE_FALSE 646d13010c3SmrgMAINTAINER_MODE_TRUE 64796a81b41Smrgam__fastdepCC_FALSE 64896a81b41Smrgam__fastdepCC_TRUE 64996a81b41SmrgCCDEPMODE 65096a81b41SmrgAMDEPBACKSLASH 65196a81b41SmrgAMDEP_FALSE 65296a81b41SmrgAMDEP_TRUE 65396a81b41Smrgam__quote 65496a81b41Smrgam__include 65596a81b41SmrgDEPDIR 65696a81b41Smrgam__untar 65796a81b41Smrgam__tar 65896a81b41SmrgAMTAR 65996a81b41Smrgam__leading_dot 66096a81b41SmrgSET_MAKE 66196a81b41SmrgAWK 66296a81b41Smrgmkdir_p 66396a81b41SmrgMKDIR_P 66496a81b41SmrgINSTALL_STRIP_PROGRAM 66596a81b41SmrgSTRIP 66696a81b41Smrginstall_sh 66796a81b41SmrgMAKEINFO 66896a81b41SmrgAUTOHEADER 66996a81b41SmrgAUTOMAKE 67096a81b41SmrgAUTOCONF 67196a81b41SmrgACLOCAL 67296a81b41SmrgVERSION 67396a81b41SmrgPACKAGE 67496a81b41SmrgCYGPATH_W 67596a81b41Smrgam__isrc 67696a81b41SmrgINSTALL_DATA 67796a81b41SmrgINSTALL_SCRIPT 67896a81b41SmrgINSTALL_PROGRAM 679d13010c3SmrgEGREP 680d13010c3SmrgGREP 681d13010c3SmrgCPP 682d13010c3SmrgOBJEXT 683d13010c3SmrgEXEEXT 684d13010c3Smrgac_ct_CC 685d13010c3SmrgCPPFLAGS 686d13010c3SmrgLDFLAGS 687d13010c3SmrgCFLAGS 688d13010c3SmrgCC 68996a81b41Smrgtarget_alias 69096a81b41Smrghost_alias 69196a81b41Smrgbuild_alias 69296a81b41SmrgLIBS 69396a81b41SmrgECHO_T 69496a81b41SmrgECHO_N 69596a81b41SmrgECHO_C 69696a81b41SmrgDEFS 69796a81b41Smrgmandir 69896a81b41Smrglocaledir 69996a81b41Smrglibdir 70096a81b41Smrgpsdir 70196a81b41Smrgpdfdir 70296a81b41Smrgdvidir 70396a81b41Smrghtmldir 70496a81b41Smrginfodir 70596a81b41Smrgdocdir 70696a81b41Smrgoldincludedir 70796a81b41Smrgincludedir 70896a81b41Smrglocalstatedir 70996a81b41Smrgsharedstatedir 71096a81b41Smrgsysconfdir 71196a81b41Smrgdatadir 71296a81b41Smrgdatarootdir 71396a81b41Smrglibexecdir 71496a81b41Smrgsbindir 71596a81b41Smrgbindir 71696a81b41Smrgprogram_transform_name 71796a81b41Smrgprefix 71896a81b41Smrgexec_prefix 7195bd32fd1SmrgPACKAGE_URL 72096a81b41SmrgPACKAGE_BUGREPORT 72196a81b41SmrgPACKAGE_STRING 72296a81b41SmrgPACKAGE_VERSION 72396a81b41SmrgPACKAGE_TARNAME 72496a81b41SmrgPACKAGE_NAME 72596a81b41SmrgPATH_SEPARATOR 72696a81b41SmrgSHELL' 7278b22bf3fSmrgac_subst_files='' 72896a81b41Smrgac_user_opts=' 72996a81b41Smrgenable_option_checking 73096a81b41Smrgenable_dependency_tracking 731d13010c3Smrgenable_maintainer_mode 73296a81b41Smrgenable_strict_compilation 7335bd32fd1Smrgenable_silent_rules 73496a81b41Smrgwith_cpp 73596a81b41Smrg' 7368b22bf3fSmrg ac_precious_vars='build_alias 7378b22bf3fSmrghost_alias 7388b22bf3fSmrgtarget_alias 7398b22bf3fSmrgCC 7408b22bf3fSmrgCFLAGS 7418b22bf3fSmrgLDFLAGS 7428b22bf3fSmrgLIBS 7438b22bf3fSmrgCPPFLAGS 7448b22bf3fSmrgCPP 745d13010c3SmrgCPPFLAGS 7468b22bf3fSmrgPKG_CONFIG 747d13010c3SmrgPKG_CONFIG_PATH 748d13010c3SmrgPKG_CONFIG_LIBDIR 7498b22bf3fSmrgXRDB_CFLAGS 7508b22bf3fSmrgXRDB_LIBS' 7518b22bf3fSmrg 7528b22bf3fSmrg 7538b22bf3fSmrg# Initialize some variables set by options. 7548b22bf3fSmrgac_init_help= 7558b22bf3fSmrgac_init_version=false 75696a81b41Smrgac_unrecognized_opts= 75796a81b41Smrgac_unrecognized_sep= 7588b22bf3fSmrg# The variables have the same names as the options, with 7598b22bf3fSmrg# dashes changed to underlines. 7608b22bf3fSmrgcache_file=/dev/null 7618b22bf3fSmrgexec_prefix=NONE 7628b22bf3fSmrgno_create= 7638b22bf3fSmrgno_recursion= 7648b22bf3fSmrgprefix=NONE 7658b22bf3fSmrgprogram_prefix=NONE 7668b22bf3fSmrgprogram_suffix=NONE 7678b22bf3fSmrgprogram_transform_name=s,x,x, 7688b22bf3fSmrgsilent= 7698b22bf3fSmrgsite= 7708b22bf3fSmrgsrcdir= 7718b22bf3fSmrgverbose= 7728b22bf3fSmrgx_includes=NONE 7738b22bf3fSmrgx_libraries=NONE 7748b22bf3fSmrg 7758b22bf3fSmrg# Installation directory options. 7768b22bf3fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7778b22bf3fSmrg# and all the variables that are supposed to be based on exec_prefix 7788b22bf3fSmrg# by default will actually change. 7798b22bf3fSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 7808b22bf3fSmrg# (The list follows the same order as the GNU Coding Standards.) 7818b22bf3fSmrgbindir='${exec_prefix}/bin' 7828b22bf3fSmrgsbindir='${exec_prefix}/sbin' 7838b22bf3fSmrglibexecdir='${exec_prefix}/libexec' 7848b22bf3fSmrgdatarootdir='${prefix}/share' 7858b22bf3fSmrgdatadir='${datarootdir}' 7868b22bf3fSmrgsysconfdir='${prefix}/etc' 7878b22bf3fSmrgsharedstatedir='${prefix}/com' 7888b22bf3fSmrglocalstatedir='${prefix}/var' 7898b22bf3fSmrgincludedir='${prefix}/include' 7908b22bf3fSmrgoldincludedir='/usr/include' 7918b22bf3fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 7928b22bf3fSmrginfodir='${datarootdir}/info' 7938b22bf3fSmrghtmldir='${docdir}' 7948b22bf3fSmrgdvidir='${docdir}' 7958b22bf3fSmrgpdfdir='${docdir}' 7968b22bf3fSmrgpsdir='${docdir}' 7978b22bf3fSmrglibdir='${exec_prefix}/lib' 7988b22bf3fSmrglocaledir='${datarootdir}/locale' 7998b22bf3fSmrgmandir='${datarootdir}/man' 8008b22bf3fSmrg 8018b22bf3fSmrgac_prev= 8028b22bf3fSmrgac_dashdash= 8038b22bf3fSmrgfor ac_option 8048b22bf3fSmrgdo 8058b22bf3fSmrg # If the previous option needs an argument, assign it. 8068b22bf3fSmrg if test -n "$ac_prev"; then 8078b22bf3fSmrg eval $ac_prev=\$ac_option 8088b22bf3fSmrg ac_prev= 8098b22bf3fSmrg continue 8108b22bf3fSmrg fi 8118b22bf3fSmrg 8128b22bf3fSmrg case $ac_option in 8135bd32fd1Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8145bd32fd1Smrg *=) ac_optarg= ;; 8155bd32fd1Smrg *) ac_optarg=yes ;; 8168b22bf3fSmrg esac 8178b22bf3fSmrg 8188b22bf3fSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 8198b22bf3fSmrg 8208b22bf3fSmrg case $ac_dashdash$ac_option in 8218b22bf3fSmrg --) 8228b22bf3fSmrg ac_dashdash=yes ;; 8238b22bf3fSmrg 8248b22bf3fSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8258b22bf3fSmrg ac_prev=bindir ;; 8268b22bf3fSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8278b22bf3fSmrg bindir=$ac_optarg ;; 8288b22bf3fSmrg 8298b22bf3fSmrg -build | --build | --buil | --bui | --bu) 8308b22bf3fSmrg ac_prev=build_alias ;; 8318b22bf3fSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8328b22bf3fSmrg build_alias=$ac_optarg ;; 8338b22bf3fSmrg 8348b22bf3fSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8358b22bf3fSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8368b22bf3fSmrg ac_prev=cache_file ;; 8378b22bf3fSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8388b22bf3fSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8398b22bf3fSmrg cache_file=$ac_optarg ;; 8408b22bf3fSmrg 8418b22bf3fSmrg --config-cache | -C) 8428b22bf3fSmrg cache_file=config.cache ;; 8438b22bf3fSmrg 8448b22bf3fSmrg -datadir | --datadir | --datadi | --datad) 8458b22bf3fSmrg ac_prev=datadir ;; 8468b22bf3fSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8478b22bf3fSmrg datadir=$ac_optarg ;; 8488b22bf3fSmrg 8498b22bf3fSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8508b22bf3fSmrg | --dataroo | --dataro | --datar) 8518b22bf3fSmrg ac_prev=datarootdir ;; 8528b22bf3fSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8538b22bf3fSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8548b22bf3fSmrg datarootdir=$ac_optarg ;; 8558b22bf3fSmrg 8568b22bf3fSmrg -disable-* | --disable-*) 85796a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8588b22bf3fSmrg # Reject names that are not valid shell variable names. 85996a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8605bd32fd1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 86196a81b41Smrg ac_useropt_orig=$ac_useropt 86296a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 86396a81b41Smrg case $ac_user_opts in 86496a81b41Smrg *" 86596a81b41Smrg"enable_$ac_useropt" 86696a81b41Smrg"*) ;; 86796a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 86896a81b41Smrg ac_unrecognized_sep=', ';; 86996a81b41Smrg esac 87096a81b41Smrg eval enable_$ac_useropt=no ;; 8718b22bf3fSmrg 8728b22bf3fSmrg -docdir | --docdir | --docdi | --doc | --do) 8738b22bf3fSmrg ac_prev=docdir ;; 8748b22bf3fSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8758b22bf3fSmrg docdir=$ac_optarg ;; 8768b22bf3fSmrg 8778b22bf3fSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8788b22bf3fSmrg ac_prev=dvidir ;; 8798b22bf3fSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8808b22bf3fSmrg dvidir=$ac_optarg ;; 8818b22bf3fSmrg 8828b22bf3fSmrg -enable-* | --enable-*) 88396a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8848b22bf3fSmrg # Reject names that are not valid shell variable names. 88596a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8865bd32fd1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 88796a81b41Smrg ac_useropt_orig=$ac_useropt 88896a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 88996a81b41Smrg case $ac_user_opts in 89096a81b41Smrg *" 89196a81b41Smrg"enable_$ac_useropt" 89296a81b41Smrg"*) ;; 89396a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 89496a81b41Smrg ac_unrecognized_sep=', ';; 89596a81b41Smrg esac 89696a81b41Smrg eval enable_$ac_useropt=\$ac_optarg ;; 8978b22bf3fSmrg 8988b22bf3fSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 8998b22bf3fSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9008b22bf3fSmrg | --exec | --exe | --ex) 9018b22bf3fSmrg ac_prev=exec_prefix ;; 9028b22bf3fSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9038b22bf3fSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9048b22bf3fSmrg | --exec=* | --exe=* | --ex=*) 9058b22bf3fSmrg exec_prefix=$ac_optarg ;; 9068b22bf3fSmrg 9078b22bf3fSmrg -gas | --gas | --ga | --g) 9088b22bf3fSmrg # Obsolete; use --with-gas. 9098b22bf3fSmrg with_gas=yes ;; 9108b22bf3fSmrg 9118b22bf3fSmrg -help | --help | --hel | --he | -h) 9128b22bf3fSmrg ac_init_help=long ;; 9138b22bf3fSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9148b22bf3fSmrg ac_init_help=recursive ;; 9158b22bf3fSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9168b22bf3fSmrg ac_init_help=short ;; 9178b22bf3fSmrg 9188b22bf3fSmrg -host | --host | --hos | --ho) 9198b22bf3fSmrg ac_prev=host_alias ;; 9208b22bf3fSmrg -host=* | --host=* | --hos=* | --ho=*) 9218b22bf3fSmrg host_alias=$ac_optarg ;; 9228b22bf3fSmrg 9238b22bf3fSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9248b22bf3fSmrg ac_prev=htmldir ;; 9258b22bf3fSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9268b22bf3fSmrg | --ht=*) 9278b22bf3fSmrg htmldir=$ac_optarg ;; 9288b22bf3fSmrg 9298b22bf3fSmrg -includedir | --includedir | --includedi | --included | --include \ 9308b22bf3fSmrg | --includ | --inclu | --incl | --inc) 9318b22bf3fSmrg ac_prev=includedir ;; 9328b22bf3fSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9338b22bf3fSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9348b22bf3fSmrg includedir=$ac_optarg ;; 9358b22bf3fSmrg 9368b22bf3fSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9378b22bf3fSmrg ac_prev=infodir ;; 9388b22bf3fSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9398b22bf3fSmrg infodir=$ac_optarg ;; 9408b22bf3fSmrg 9418b22bf3fSmrg -libdir | --libdir | --libdi | --libd) 9428b22bf3fSmrg ac_prev=libdir ;; 9438b22bf3fSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9448b22bf3fSmrg libdir=$ac_optarg ;; 9458b22bf3fSmrg 9468b22bf3fSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9478b22bf3fSmrg | --libexe | --libex | --libe) 9488b22bf3fSmrg ac_prev=libexecdir ;; 9498b22bf3fSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9508b22bf3fSmrg | --libexe=* | --libex=* | --libe=*) 9518b22bf3fSmrg libexecdir=$ac_optarg ;; 9528b22bf3fSmrg 9538b22bf3fSmrg -localedir | --localedir | --localedi | --localed | --locale) 9548b22bf3fSmrg ac_prev=localedir ;; 9558b22bf3fSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9568b22bf3fSmrg localedir=$ac_optarg ;; 9578b22bf3fSmrg 9588b22bf3fSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9598b22bf3fSmrg | --localstate | --localstat | --localsta | --localst | --locals) 9608b22bf3fSmrg ac_prev=localstatedir ;; 9618b22bf3fSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9628b22bf3fSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9638b22bf3fSmrg localstatedir=$ac_optarg ;; 9648b22bf3fSmrg 9658b22bf3fSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9668b22bf3fSmrg ac_prev=mandir ;; 9678b22bf3fSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9688b22bf3fSmrg mandir=$ac_optarg ;; 9698b22bf3fSmrg 9708b22bf3fSmrg -nfp | --nfp | --nf) 9718b22bf3fSmrg # Obsolete; use --without-fp. 9728b22bf3fSmrg with_fp=no ;; 9738b22bf3fSmrg 9748b22bf3fSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9758b22bf3fSmrg | --no-cr | --no-c | -n) 9768b22bf3fSmrg no_create=yes ;; 9778b22bf3fSmrg 9788b22bf3fSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9798b22bf3fSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9808b22bf3fSmrg no_recursion=yes ;; 9818b22bf3fSmrg 9828b22bf3fSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9838b22bf3fSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9848b22bf3fSmrg | --oldin | --oldi | --old | --ol | --o) 9858b22bf3fSmrg ac_prev=oldincludedir ;; 9868b22bf3fSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9878b22bf3fSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9888b22bf3fSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9898b22bf3fSmrg oldincludedir=$ac_optarg ;; 9908b22bf3fSmrg 9918b22bf3fSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9928b22bf3fSmrg ac_prev=prefix ;; 9938b22bf3fSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 9948b22bf3fSmrg prefix=$ac_optarg ;; 9958b22bf3fSmrg 9968b22bf3fSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 9978b22bf3fSmrg | --program-pre | --program-pr | --program-p) 9988b22bf3fSmrg ac_prev=program_prefix ;; 9998b22bf3fSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10008b22bf3fSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10018b22bf3fSmrg program_prefix=$ac_optarg ;; 10028b22bf3fSmrg 10038b22bf3fSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10048b22bf3fSmrg | --program-suf | --program-su | --program-s) 10058b22bf3fSmrg ac_prev=program_suffix ;; 10068b22bf3fSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10078b22bf3fSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10088b22bf3fSmrg program_suffix=$ac_optarg ;; 10098b22bf3fSmrg 10108b22bf3fSmrg -program-transform-name | --program-transform-name \ 10118b22bf3fSmrg | --program-transform-nam | --program-transform-na \ 10128b22bf3fSmrg | --program-transform-n | --program-transform- \ 10138b22bf3fSmrg | --program-transform | --program-transfor \ 10148b22bf3fSmrg | --program-transfo | --program-transf \ 10158b22bf3fSmrg | --program-trans | --program-tran \ 10168b22bf3fSmrg | --progr-tra | --program-tr | --program-t) 10178b22bf3fSmrg ac_prev=program_transform_name ;; 10188b22bf3fSmrg -program-transform-name=* | --program-transform-name=* \ 10198b22bf3fSmrg | --program-transform-nam=* | --program-transform-na=* \ 10208b22bf3fSmrg | --program-transform-n=* | --program-transform-=* \ 10218b22bf3fSmrg | --program-transform=* | --program-transfor=* \ 10228b22bf3fSmrg | --program-transfo=* | --program-transf=* \ 10238b22bf3fSmrg | --program-trans=* | --program-tran=* \ 10248b22bf3fSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10258b22bf3fSmrg program_transform_name=$ac_optarg ;; 10268b22bf3fSmrg 10278b22bf3fSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10288b22bf3fSmrg ac_prev=pdfdir ;; 10298b22bf3fSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10308b22bf3fSmrg pdfdir=$ac_optarg ;; 10318b22bf3fSmrg 10328b22bf3fSmrg -psdir | --psdir | --psdi | --psd | --ps) 10338b22bf3fSmrg ac_prev=psdir ;; 10348b22bf3fSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10358b22bf3fSmrg psdir=$ac_optarg ;; 10368b22bf3fSmrg 10378b22bf3fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10388b22bf3fSmrg | -silent | --silent | --silen | --sile | --sil) 10398b22bf3fSmrg silent=yes ;; 10408b22bf3fSmrg 10418b22bf3fSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10428b22bf3fSmrg ac_prev=sbindir ;; 10438b22bf3fSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10448b22bf3fSmrg | --sbi=* | --sb=*) 10458b22bf3fSmrg sbindir=$ac_optarg ;; 10468b22bf3fSmrg 10478b22bf3fSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10488b22bf3fSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10498b22bf3fSmrg | --sharedst | --shareds | --shared | --share | --shar \ 10508b22bf3fSmrg | --sha | --sh) 10518b22bf3fSmrg ac_prev=sharedstatedir ;; 10528b22bf3fSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10538b22bf3fSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10548b22bf3fSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10558b22bf3fSmrg | --sha=* | --sh=*) 10568b22bf3fSmrg sharedstatedir=$ac_optarg ;; 10578b22bf3fSmrg 10588b22bf3fSmrg -site | --site | --sit) 10598b22bf3fSmrg ac_prev=site ;; 10608b22bf3fSmrg -site=* | --site=* | --sit=*) 10618b22bf3fSmrg site=$ac_optarg ;; 10628b22bf3fSmrg 10638b22bf3fSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10648b22bf3fSmrg ac_prev=srcdir ;; 10658b22bf3fSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10668b22bf3fSmrg srcdir=$ac_optarg ;; 10678b22bf3fSmrg 10688b22bf3fSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10698b22bf3fSmrg | --syscon | --sysco | --sysc | --sys | --sy) 10708b22bf3fSmrg ac_prev=sysconfdir ;; 10718b22bf3fSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10728b22bf3fSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10738b22bf3fSmrg sysconfdir=$ac_optarg ;; 10748b22bf3fSmrg 10758b22bf3fSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 10768b22bf3fSmrg ac_prev=target_alias ;; 10778b22bf3fSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10788b22bf3fSmrg target_alias=$ac_optarg ;; 10798b22bf3fSmrg 10808b22bf3fSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10818b22bf3fSmrg verbose=yes ;; 10828b22bf3fSmrg 10838b22bf3fSmrg -version | --version | --versio | --versi | --vers | -V) 10848b22bf3fSmrg ac_init_version=: ;; 10858b22bf3fSmrg 10868b22bf3fSmrg -with-* | --with-*) 108796a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10888b22bf3fSmrg # Reject names that are not valid shell variable names. 108996a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10905bd32fd1Smrg as_fn_error $? "invalid package name: $ac_useropt" 109196a81b41Smrg ac_useropt_orig=$ac_useropt 109296a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 109396a81b41Smrg case $ac_user_opts in 109496a81b41Smrg *" 109596a81b41Smrg"with_$ac_useropt" 109696a81b41Smrg"*) ;; 109796a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 109896a81b41Smrg ac_unrecognized_sep=', ';; 109996a81b41Smrg esac 110096a81b41Smrg eval with_$ac_useropt=\$ac_optarg ;; 11018b22bf3fSmrg 11028b22bf3fSmrg -without-* | --without-*) 110396a81b41Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11048b22bf3fSmrg # Reject names that are not valid shell variable names. 110596a81b41Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11065bd32fd1Smrg as_fn_error $? "invalid package name: $ac_useropt" 110796a81b41Smrg ac_useropt_orig=$ac_useropt 110896a81b41Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 110996a81b41Smrg case $ac_user_opts in 111096a81b41Smrg *" 111196a81b41Smrg"with_$ac_useropt" 111296a81b41Smrg"*) ;; 111396a81b41Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 111496a81b41Smrg ac_unrecognized_sep=', ';; 111596a81b41Smrg esac 111696a81b41Smrg eval with_$ac_useropt=no ;; 11178b22bf3fSmrg 11188b22bf3fSmrg --x) 11198b22bf3fSmrg # Obsolete; use --with-x. 11208b22bf3fSmrg with_x=yes ;; 11218b22bf3fSmrg 11228b22bf3fSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11238b22bf3fSmrg | --x-incl | --x-inc | --x-in | --x-i) 11248b22bf3fSmrg ac_prev=x_includes ;; 11258b22bf3fSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11268b22bf3fSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11278b22bf3fSmrg x_includes=$ac_optarg ;; 11288b22bf3fSmrg 11298b22bf3fSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11308b22bf3fSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11318b22bf3fSmrg ac_prev=x_libraries ;; 11328b22bf3fSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11338b22bf3fSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11348b22bf3fSmrg x_libraries=$ac_optarg ;; 11358b22bf3fSmrg 11365bd32fd1Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11375bd32fd1SmrgTry \`$0 --help' for more information" 11388b22bf3fSmrg ;; 11398b22bf3fSmrg 11408b22bf3fSmrg *=*) 11418b22bf3fSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11428b22bf3fSmrg # Reject names that are not valid shell variable names. 11435bd32fd1Smrg case $ac_envvar in #( 11445bd32fd1Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11455bd32fd1Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11465bd32fd1Smrg esac 11478b22bf3fSmrg eval $ac_envvar=\$ac_optarg 11488b22bf3fSmrg export $ac_envvar ;; 11498b22bf3fSmrg 11508b22bf3fSmrg *) 11518b22bf3fSmrg # FIXME: should be removed in autoconf 3.0. 115296a81b41Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11538b22bf3fSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 115496a81b41Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11555bd32fd1Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11568b22bf3fSmrg ;; 11578b22bf3fSmrg 11588b22bf3fSmrg esac 11598b22bf3fSmrgdone 11608b22bf3fSmrg 11618b22bf3fSmrgif test -n "$ac_prev"; then 11628b22bf3fSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11635bd32fd1Smrg as_fn_error $? "missing argument to $ac_option" 11648b22bf3fSmrgfi 11658b22bf3fSmrg 116696a81b41Smrgif test -n "$ac_unrecognized_opts"; then 116796a81b41Smrg case $enable_option_checking in 116896a81b41Smrg no) ;; 11695bd32fd1Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 117096a81b41Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 117196a81b41Smrg esac 117296a81b41Smrgfi 117396a81b41Smrg 117496a81b41Smrg# Check all directory arguments for consistency. 11758b22bf3fSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11768b22bf3fSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11778b22bf3fSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11788b22bf3fSmrg libdir localedir mandir 11798b22bf3fSmrgdo 11808b22bf3fSmrg eval ac_val=\$$ac_var 118196a81b41Smrg # Remove trailing slashes. 118296a81b41Smrg case $ac_val in 118396a81b41Smrg */ ) 118496a81b41Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 118596a81b41Smrg eval $ac_var=\$ac_val;; 118696a81b41Smrg esac 118796a81b41Smrg # Be sure to have absolute directory names. 11888b22bf3fSmrg case $ac_val in 11898b22bf3fSmrg [\\/$]* | ?:[\\/]* ) continue;; 11908b22bf3fSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11918b22bf3fSmrg esac 11925bd32fd1Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 11938b22bf3fSmrgdone 11948b22bf3fSmrg 11958b22bf3fSmrg# There might be people who depend on the old broken behavior: `$host' 11968b22bf3fSmrg# used to hold the argument of --host etc. 11978b22bf3fSmrg# FIXME: To remove some day. 11988b22bf3fSmrgbuild=$build_alias 11998b22bf3fSmrghost=$host_alias 12008b22bf3fSmrgtarget=$target_alias 12018b22bf3fSmrg 12028b22bf3fSmrg# FIXME: To remove some day. 12038b22bf3fSmrgif test "x$host_alias" != x; then 12048b22bf3fSmrg if test "x$build_alias" = x; then 12058b22bf3fSmrg cross_compiling=maybe 12065bd32fd1Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 12075bd32fd1Smrg If a cross compiler is detected then cross compile mode will be used" >&2 12088b22bf3fSmrg elif test "x$build_alias" != "x$host_alias"; then 12098b22bf3fSmrg cross_compiling=yes 12108b22bf3fSmrg fi 12118b22bf3fSmrgfi 12128b22bf3fSmrg 12138b22bf3fSmrgac_tool_prefix= 12148b22bf3fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12158b22bf3fSmrg 12168b22bf3fSmrgtest "$silent" = yes && exec 6>/dev/null 12178b22bf3fSmrg 12188b22bf3fSmrg 12198b22bf3fSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12208b22bf3fSmrgac_ls_di=`ls -di .` && 12218b22bf3fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12225bd32fd1Smrg as_fn_error $? "working directory cannot be determined" 12238b22bf3fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12245bd32fd1Smrg as_fn_error $? "pwd does not report name of working directory" 12258b22bf3fSmrg 12268b22bf3fSmrg 12278b22bf3fSmrg# Find the source files, if location was not specified. 12288b22bf3fSmrgif test -z "$srcdir"; then 12298b22bf3fSmrg ac_srcdir_defaulted=yes 12308b22bf3fSmrg # Try the directory containing this script, then the parent directory. 123196a81b41Smrg ac_confdir=`$as_dirname -- "$as_myself" || 123296a81b41Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 123396a81b41Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 123496a81b41Smrg X"$as_myself" : 'X\(//\)$' \| \ 123596a81b41Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 123696a81b41Smrg$as_echo X"$as_myself" | 12378b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12388b22bf3fSmrg s//\1/ 12398b22bf3fSmrg q 12408b22bf3fSmrg } 12418b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 12428b22bf3fSmrg s//\1/ 12438b22bf3fSmrg q 12448b22bf3fSmrg } 12458b22bf3fSmrg /^X\(\/\/\)$/{ 12468b22bf3fSmrg s//\1/ 12478b22bf3fSmrg q 12488b22bf3fSmrg } 12498b22bf3fSmrg /^X\(\/\).*/{ 12508b22bf3fSmrg s//\1/ 12518b22bf3fSmrg q 12528b22bf3fSmrg } 12538b22bf3fSmrg s/.*/./; q'` 12548b22bf3fSmrg srcdir=$ac_confdir 12558b22bf3fSmrg if test ! -r "$srcdir/$ac_unique_file"; then 12568b22bf3fSmrg srcdir=.. 12578b22bf3fSmrg fi 12588b22bf3fSmrgelse 12598b22bf3fSmrg ac_srcdir_defaulted=no 12608b22bf3fSmrgfi 12618b22bf3fSmrgif test ! -r "$srcdir/$ac_unique_file"; then 12628b22bf3fSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12635bd32fd1Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12648b22bf3fSmrgfi 12658b22bf3fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12668b22bf3fSmrgac_abs_confdir=`( 12675bd32fd1Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12688b22bf3fSmrg pwd)` 12698b22bf3fSmrg# When building in place, set srcdir=. 12708b22bf3fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12718b22bf3fSmrg srcdir=. 12728b22bf3fSmrgfi 12738b22bf3fSmrg# Remove unnecessary trailing slashes from srcdir. 12748b22bf3fSmrg# Double slashes in file names in object file debugging info 12758b22bf3fSmrg# mess up M-x gdb in Emacs. 12768b22bf3fSmrgcase $srcdir in 12778b22bf3fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12788b22bf3fSmrgesac 12798b22bf3fSmrgfor ac_var in $ac_precious_vars; do 12808b22bf3fSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12818b22bf3fSmrg eval ac_env_${ac_var}_value=\$${ac_var} 12828b22bf3fSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12838b22bf3fSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12848b22bf3fSmrgdone 12858b22bf3fSmrg 12868b22bf3fSmrg# 12878b22bf3fSmrg# Report the --help message. 12888b22bf3fSmrg# 12898b22bf3fSmrgif test "$ac_init_help" = "long"; then 12908b22bf3fSmrg # Omit some internal or obsolete options to make the list less imposing. 12918b22bf3fSmrg # This message is too long to be a string in the A/UX 3.1 sh. 12928b22bf3fSmrg cat <<_ACEOF 1293d13010c3Smrg\`configure' configures xrdb 1.0.8 to adapt to many kinds of systems. 12948b22bf3fSmrg 12958b22bf3fSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 12968b22bf3fSmrg 12978b22bf3fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 12988b22bf3fSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 12998b22bf3fSmrg 13008b22bf3fSmrgDefaults for the options are specified in brackets. 13018b22bf3fSmrg 13028b22bf3fSmrgConfiguration: 13038b22bf3fSmrg -h, --help display this help and exit 13048b22bf3fSmrg --help=short display options specific to this package 13058b22bf3fSmrg --help=recursive display the short help of all the included packages 13068b22bf3fSmrg -V, --version display version information and exit 13075bd32fd1Smrg -q, --quiet, --silent do not print \`checking ...' messages 13088b22bf3fSmrg --cache-file=FILE cache test results in FILE [disabled] 13098b22bf3fSmrg -C, --config-cache alias for \`--cache-file=config.cache' 13108b22bf3fSmrg -n, --no-create do not create output files 13118b22bf3fSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13128b22bf3fSmrg 13138b22bf3fSmrgInstallation directories: 13148b22bf3fSmrg --prefix=PREFIX install architecture-independent files in PREFIX 131596a81b41Smrg [$ac_default_prefix] 13168b22bf3fSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 131796a81b41Smrg [PREFIX] 13188b22bf3fSmrg 13198b22bf3fSmrgBy default, \`make install' will install all the files in 13208b22bf3fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13218b22bf3fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13228b22bf3fSmrgfor instance \`--prefix=\$HOME'. 13238b22bf3fSmrg 13248b22bf3fSmrgFor better control, use the options below. 13258b22bf3fSmrg 13268b22bf3fSmrgFine tuning of the installation directories: 132796a81b41Smrg --bindir=DIR user executables [EPREFIX/bin] 132896a81b41Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 132996a81b41Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 133096a81b41Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 133196a81b41Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 133296a81b41Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 133396a81b41Smrg --libdir=DIR object code libraries [EPREFIX/lib] 133496a81b41Smrg --includedir=DIR C header files [PREFIX/include] 133596a81b41Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 133696a81b41Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 133796a81b41Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 133896a81b41Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 133996a81b41Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 134096a81b41Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 134196a81b41Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xrdb] 134296a81b41Smrg --htmldir=DIR html documentation [DOCDIR] 134396a81b41Smrg --dvidir=DIR dvi documentation [DOCDIR] 134496a81b41Smrg --pdfdir=DIR pdf documentation [DOCDIR] 134596a81b41Smrg --psdir=DIR ps documentation [DOCDIR] 13468b22bf3fSmrg_ACEOF 13478b22bf3fSmrg 13488b22bf3fSmrg cat <<\_ACEOF 13498b22bf3fSmrg 13508b22bf3fSmrgProgram names: 13518b22bf3fSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 13528b22bf3fSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 13538b22bf3fSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13548b22bf3fSmrg 13558b22bf3fSmrgSystem types: 13568b22bf3fSmrg --build=BUILD configure for building on BUILD [guessed] 13578b22bf3fSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13588b22bf3fSmrg_ACEOF 13598b22bf3fSmrgfi 13608b22bf3fSmrg 13618b22bf3fSmrgif test -n "$ac_init_help"; then 13628b22bf3fSmrg case $ac_init_help in 1363d13010c3Smrg short | recursive ) echo "Configuration of xrdb 1.0.8:";; 13648b22bf3fSmrg esac 13658b22bf3fSmrg cat <<\_ACEOF 13668b22bf3fSmrg 13678b22bf3fSmrgOptional Features: 136896a81b41Smrg --disable-option-checking ignore unrecognized --enable/--with options 13698b22bf3fSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13708b22bf3fSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13718b22bf3fSmrg --disable-dependency-tracking speeds up one-time build 13728b22bf3fSmrg --enable-dependency-tracking do not reject slow dependency extractors 1373d13010c3Smrg --enable-maintainer-mode enable make rules and dependencies not useful 1374d13010c3Smrg (and sometimes confusing) to the casual installer 137596a81b41Smrg --enable-strict-compilation 137696a81b41Smrg Enable all warnings from compiler and make them 137796a81b41Smrg errors (default: disabled) 13785bd32fd1Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 13795bd32fd1Smrg --disable-silent-rules verbose build output (undo: `make V=0') 13808b22bf3fSmrg 13818b22bf3fSmrgOptional Packages: 13828b22bf3fSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 13838b22bf3fSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 138496a81b41Smrg --with-cpp=path comma-separated list of paths to cpp command for 138596a81b41Smrg xrdb to use at runtime 13868b22bf3fSmrg 13878b22bf3fSmrgSome influential environment variables: 13888b22bf3fSmrg CC C compiler command 13898b22bf3fSmrg CFLAGS C compiler flags 13908b22bf3fSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 13918b22bf3fSmrg nonstandard directory <lib dir> 13928b22bf3fSmrg LIBS libraries to pass to the linker, e.g. -l<library> 13935bd32fd1Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 13948b22bf3fSmrg you have headers in a nonstandard directory <include dir> 13958b22bf3fSmrg CPP C preprocessor 13968b22bf3fSmrg PKG_CONFIG path to pkg-config utility 1397d13010c3Smrg PKG_CONFIG_PATH 1398d13010c3Smrg directories to add to pkg-config's search path 1399d13010c3Smrg PKG_CONFIG_LIBDIR 1400d13010c3Smrg path overriding pkg-config's built-in search path 14018b22bf3fSmrg XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config 14028b22bf3fSmrg XRDB_LIBS linker flags for XRDB, overriding pkg-config 14038b22bf3fSmrg 14048b22bf3fSmrgUse these variables to override the choices made by `configure' or to help 14058b22bf3fSmrgit to find libraries and programs with nonstandard names/locations. 14068b22bf3fSmrg 14078b22bf3fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14088b22bf3fSmrg_ACEOF 14098b22bf3fSmrgac_status=$? 14108b22bf3fSmrgfi 14118b22bf3fSmrg 14128b22bf3fSmrgif test "$ac_init_help" = "recursive"; then 14138b22bf3fSmrg # If there are subdirs, report their specific --help. 14148b22bf3fSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 141596a81b41Smrg test -d "$ac_dir" || 141696a81b41Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 141796a81b41Smrg continue 14188b22bf3fSmrg ac_builddir=. 14198b22bf3fSmrg 14208b22bf3fSmrgcase "$ac_dir" in 14218b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14228b22bf3fSmrg*) 142396a81b41Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14248b22bf3fSmrg # A ".." for each directory in $ac_dir_suffix. 142596a81b41Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14268b22bf3fSmrg case $ac_top_builddir_sub in 14278b22bf3fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14288b22bf3fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14298b22bf3fSmrg esac ;; 14308b22bf3fSmrgesac 14318b22bf3fSmrgac_abs_top_builddir=$ac_pwd 14328b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14338b22bf3fSmrg# for backward compatibility: 14348b22bf3fSmrgac_top_builddir=$ac_top_build_prefix 14358b22bf3fSmrg 14368b22bf3fSmrgcase $srcdir in 14378b22bf3fSmrg .) # We are building in place. 14388b22bf3fSmrg ac_srcdir=. 14398b22bf3fSmrg ac_top_srcdir=$ac_top_builddir_sub 14408b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd ;; 14418b22bf3fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14428b22bf3fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14438b22bf3fSmrg ac_top_srcdir=$srcdir 14448b22bf3fSmrg ac_abs_top_srcdir=$srcdir ;; 14458b22bf3fSmrg *) # Relative name. 14468b22bf3fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14478b22bf3fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14488b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14498b22bf3fSmrgesac 14508b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14518b22bf3fSmrg 14528b22bf3fSmrg cd "$ac_dir" || { ac_status=$?; continue; } 14538b22bf3fSmrg # Check for guested configure. 14548b22bf3fSmrg if test -f "$ac_srcdir/configure.gnu"; then 14558b22bf3fSmrg echo && 14568b22bf3fSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14578b22bf3fSmrg elif test -f "$ac_srcdir/configure"; then 14588b22bf3fSmrg echo && 14598b22bf3fSmrg $SHELL "$ac_srcdir/configure" --help=recursive 14608b22bf3fSmrg else 146196a81b41Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14628b22bf3fSmrg fi || ac_status=$? 14638b22bf3fSmrg cd "$ac_pwd" || { ac_status=$?; break; } 14648b22bf3fSmrg done 14658b22bf3fSmrgfi 14668b22bf3fSmrg 14678b22bf3fSmrgtest -n "$ac_init_help" && exit $ac_status 14688b22bf3fSmrgif $ac_init_version; then 14698b22bf3fSmrg cat <<\_ACEOF 1470d13010c3Smrgxrdb configure 1.0.8 14715bd32fd1Smrggenerated by GNU Autoconf 2.68 14728b22bf3fSmrg 14735bd32fd1SmrgCopyright (C) 2010 Free Software Foundation, Inc. 14748b22bf3fSmrgThis configure script is free software; the Free Software Foundation 14758b22bf3fSmrggives unlimited permission to copy, distribute and modify it. 14768b22bf3fSmrg_ACEOF 14778b22bf3fSmrg exit 14788b22bf3fSmrgfi 14798b22bf3fSmrg 14805bd32fd1Smrg## ------------------------ ## 14815bd32fd1Smrg## Autoconf initialization. ## 14825bd32fd1Smrg## ------------------------ ## 14838b22bf3fSmrg 14845bd32fd1Smrg# ac_fn_c_try_compile LINENO 14855bd32fd1Smrg# -------------------------- 14865bd32fd1Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 14875bd32fd1Smrgac_fn_c_try_compile () 14888b22bf3fSmrg{ 14895bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14905bd32fd1Smrg rm -f conftest.$ac_objext 14915bd32fd1Smrg if { { ac_try="$ac_compile" 14925bd32fd1Smrgcase "(($ac_try" in 14935bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14945bd32fd1Smrg *) ac_try_echo=$ac_try;; 14955bd32fd1Smrgesac 14965bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14975bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 14985bd32fd1Smrg (eval "$ac_compile") 2>conftest.err 14995bd32fd1Smrg ac_status=$? 15005bd32fd1Smrg if test -s conftest.err; then 15015bd32fd1Smrg grep -v '^ *+' conftest.err >conftest.er1 15025bd32fd1Smrg cat conftest.er1 >&5 15035bd32fd1Smrg mv -f conftest.er1 conftest.err 15045bd32fd1Smrg fi 15055bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15065bd32fd1Smrg test $ac_status = 0; } && { 15075bd32fd1Smrg test -z "$ac_c_werror_flag" || 15085bd32fd1Smrg test ! -s conftest.err 15095bd32fd1Smrg } && test -s conftest.$ac_objext; then : 15105bd32fd1Smrg ac_retval=0 15115bd32fd1Smrgelse 15125bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 15135bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 15148b22bf3fSmrg 15155bd32fd1Smrg ac_retval=1 15165bd32fd1Smrgfi 15175bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15185bd32fd1Smrg as_fn_set_status $ac_retval 15198b22bf3fSmrg 15205bd32fd1Smrg} # ac_fn_c_try_compile 15218b22bf3fSmrg 15225bd32fd1Smrg# ac_fn_c_try_cpp LINENO 15235bd32fd1Smrg# ---------------------- 15245bd32fd1Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15255bd32fd1Smrgac_fn_c_try_cpp () 15265bd32fd1Smrg{ 15275bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15285bd32fd1Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15295bd32fd1Smrgcase "(($ac_try" in 15305bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15315bd32fd1Smrg *) ac_try_echo=$ac_try;; 15325bd32fd1Smrgesac 15335bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15345bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 15355bd32fd1Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15365bd32fd1Smrg ac_status=$? 15375bd32fd1Smrg if test -s conftest.err; then 15385bd32fd1Smrg grep -v '^ *+' conftest.err >conftest.er1 15395bd32fd1Smrg cat conftest.er1 >&5 15405bd32fd1Smrg mv -f conftest.er1 conftest.err 15415bd32fd1Smrg fi 15425bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15435bd32fd1Smrg test $ac_status = 0; } > conftest.i && { 15445bd32fd1Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15455bd32fd1Smrg test ! -s conftest.err 15465bd32fd1Smrg }; then : 15475bd32fd1Smrg ac_retval=0 15485bd32fd1Smrgelse 15495bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 15505bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 15515bd32fd1Smrg 15525bd32fd1Smrg ac_retval=1 15535bd32fd1Smrgfi 15545bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15555bd32fd1Smrg as_fn_set_status $ac_retval 15565bd32fd1Smrg 15575bd32fd1Smrg} # ac_fn_c_try_cpp 15585bd32fd1Smrg 1559d13010c3Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1560d13010c3Smrg# ------------------------------------------------------- 1561d13010c3Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1562d13010c3Smrg# the include files in INCLUDES and setting the cache variable VAR 1563d13010c3Smrg# accordingly. 1564d13010c3Smrgac_fn_c_check_header_mongrel () 1565d13010c3Smrg{ 1566d13010c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567d13010c3Smrg if eval \${$3+:} false; then : 1568d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1569d13010c3Smrg$as_echo_n "checking for $2... " >&6; } 1570d13010c3Smrgif eval \${$3+:} false; then : 1571d13010c3Smrg $as_echo_n "(cached) " >&6 1572d13010c3Smrgfi 1573d13010c3Smrgeval ac_res=\$$3 1574d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1575d13010c3Smrg$as_echo "$ac_res" >&6; } 1576d13010c3Smrgelse 1577d13010c3Smrg # Is the header compilable? 1578d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1579d13010c3Smrg$as_echo_n "checking $2 usability... " >&6; } 1580d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1581d13010c3Smrg/* end confdefs.h. */ 1582d13010c3Smrg$4 1583d13010c3Smrg#include <$2> 1584d13010c3Smrg_ACEOF 1585d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1586d13010c3Smrg ac_header_compiler=yes 1587d13010c3Smrgelse 1588d13010c3Smrg ac_header_compiler=no 1589d13010c3Smrgfi 1590d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1591d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1592d13010c3Smrg$as_echo "$ac_header_compiler" >&6; } 1593d13010c3Smrg 1594d13010c3Smrg# Is the header present? 1595d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1596d13010c3Smrg$as_echo_n "checking $2 presence... " >&6; } 1597d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1598d13010c3Smrg/* end confdefs.h. */ 1599d13010c3Smrg#include <$2> 1600d13010c3Smrg_ACEOF 1601d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 1602d13010c3Smrg ac_header_preproc=yes 1603d13010c3Smrgelse 1604d13010c3Smrg ac_header_preproc=no 1605d13010c3Smrgfi 1606d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 1607d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1608d13010c3Smrg$as_echo "$ac_header_preproc" >&6; } 1609d13010c3Smrg 1610d13010c3Smrg# So? What about this header? 1611d13010c3Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1612d13010c3Smrg yes:no: ) 1613d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1614d13010c3Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1615d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1616d13010c3Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1617d13010c3Smrg ;; 1618d13010c3Smrg no:yes:* ) 1619d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1620d13010c3Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1621d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1622d13010c3Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1623d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1624d13010c3Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1625d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1626d13010c3Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1627d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1628d13010c3Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1629d13010c3Smrg( $as_echo "## ---------------------------------------------------------------------- ## 1630d13010c3Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1631d13010c3Smrg## ---------------------------------------------------------------------- ##" 1632d13010c3Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 1633d13010c3Smrg ;; 1634d13010c3Smrgesac 1635d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1636d13010c3Smrg$as_echo_n "checking for $2... " >&6; } 1637d13010c3Smrgif eval \${$3+:} false; then : 1638d13010c3Smrg $as_echo_n "(cached) " >&6 1639d13010c3Smrgelse 1640d13010c3Smrg eval "$3=\$ac_header_compiler" 1641d13010c3Smrgfi 1642d13010c3Smrgeval ac_res=\$$3 1643d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1644d13010c3Smrg$as_echo "$ac_res" >&6; } 1645d13010c3Smrgfi 1646d13010c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647d13010c3Smrg 1648d13010c3Smrg} # ac_fn_c_check_header_mongrel 1649d13010c3Smrg 16505bd32fd1Smrg# ac_fn_c_try_run LINENO 16515bd32fd1Smrg# ---------------------- 16525bd32fd1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16535bd32fd1Smrg# that executables *can* be run. 16545bd32fd1Smrgac_fn_c_try_run () 16555bd32fd1Smrg{ 16565bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16575bd32fd1Smrg if { { ac_try="$ac_link" 16585bd32fd1Smrgcase "(($ac_try" in 16595bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16605bd32fd1Smrg *) ac_try_echo=$ac_try;; 16615bd32fd1Smrgesac 16625bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16635bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 16645bd32fd1Smrg (eval "$ac_link") 2>&5 16655bd32fd1Smrg ac_status=$? 16665bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16675bd32fd1Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16685bd32fd1Smrg { { case "(($ac_try" in 16695bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16705bd32fd1Smrg *) ac_try_echo=$ac_try;; 16715bd32fd1Smrgesac 16725bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16735bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 16745bd32fd1Smrg (eval "$ac_try") 2>&5 16755bd32fd1Smrg ac_status=$? 16765bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16775bd32fd1Smrg test $ac_status = 0; }; }; then : 16785bd32fd1Smrg ac_retval=0 16795bd32fd1Smrgelse 16805bd32fd1Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 16815bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 16825bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 16835bd32fd1Smrg 16845bd32fd1Smrg ac_retval=$ac_status 16855bd32fd1Smrgfi 16865bd32fd1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16875bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16885bd32fd1Smrg as_fn_set_status $ac_retval 16895bd32fd1Smrg 16905bd32fd1Smrg} # ac_fn_c_try_run 16915bd32fd1Smrg 16925bd32fd1Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16935bd32fd1Smrg# ------------------------------------------------------- 16945bd32fd1Smrg# Tests whether HEADER exists and can be compiled using the include files in 16955bd32fd1Smrg# INCLUDES, setting the cache variable VAR accordingly. 16965bd32fd1Smrgac_fn_c_check_header_compile () 16975bd32fd1Smrg{ 16985bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16995bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17005bd32fd1Smrg$as_echo_n "checking for $2... " >&6; } 17015bd32fd1Smrgif eval \${$3+:} false; then : 17025bd32fd1Smrg $as_echo_n "(cached) " >&6 17035bd32fd1Smrgelse 17045bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055bd32fd1Smrg/* end confdefs.h. */ 17065bd32fd1Smrg$4 17075bd32fd1Smrg#include <$2> 17085bd32fd1Smrg_ACEOF 17095bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then : 17105bd32fd1Smrg eval "$3=yes" 17115bd32fd1Smrgelse 17125bd32fd1Smrg eval "$3=no" 17135bd32fd1Smrgfi 17145bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17155bd32fd1Smrgfi 17165bd32fd1Smrgeval ac_res=\$$3 17175bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17185bd32fd1Smrg$as_echo "$ac_res" >&6; } 17195bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17205bd32fd1Smrg 17215bd32fd1Smrg} # ac_fn_c_check_header_compile 17225bd32fd1Smrg 1723d13010c3Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1724d13010c3Smrg# --------------------------------------------- 1725d13010c3Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1726d13010c3Smrg# accordingly. 1727d13010c3Smrgac_fn_c_check_decl () 1728d13010c3Smrg{ 1729d13010c3Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730d13010c3Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1731d13010c3Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1732d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1733d13010c3Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1734d13010c3Smrgif eval \${$3+:} false; then : 1735d13010c3Smrg $as_echo_n "(cached) " >&6 1736d13010c3Smrgelse 1737d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738d13010c3Smrg/* end confdefs.h. */ 1739d13010c3Smrg$4 1740d13010c3Smrgint 1741d13010c3Smrgmain () 1742d13010c3Smrg{ 1743d13010c3Smrg#ifndef $as_decl_name 1744d13010c3Smrg#ifdef __cplusplus 1745d13010c3Smrg (void) $as_decl_use; 1746d13010c3Smrg#else 1747d13010c3Smrg (void) $as_decl_name; 1748d13010c3Smrg#endif 1749d13010c3Smrg#endif 1750d13010c3Smrg 1751d13010c3Smrg ; 1752d13010c3Smrg return 0; 1753d13010c3Smrg} 1754d13010c3Smrg_ACEOF 1755d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 1756d13010c3Smrg eval "$3=yes" 1757d13010c3Smrgelse 1758d13010c3Smrg eval "$3=no" 1759d13010c3Smrgfi 1760d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1761d13010c3Smrgfi 1762d13010c3Smrgeval ac_res=\$$3 1763d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764d13010c3Smrg$as_echo "$ac_res" >&6; } 1765d13010c3Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766d13010c3Smrg 1767d13010c3Smrg} # ac_fn_c_check_decl 1768d13010c3Smrg 17695bd32fd1Smrg# ac_fn_c_try_link LINENO 17705bd32fd1Smrg# ----------------------- 17715bd32fd1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17725bd32fd1Smrgac_fn_c_try_link () 17735bd32fd1Smrg{ 17745bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17755bd32fd1Smrg rm -f conftest.$ac_objext conftest$ac_exeext 17765bd32fd1Smrg if { { ac_try="$ac_link" 17775bd32fd1Smrgcase "(($ac_try" in 17785bd32fd1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17795bd32fd1Smrg *) ac_try_echo=$ac_try;; 17805bd32fd1Smrgesac 17815bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17825bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5 17835bd32fd1Smrg (eval "$ac_link") 2>conftest.err 17845bd32fd1Smrg ac_status=$? 17855bd32fd1Smrg if test -s conftest.err; then 17865bd32fd1Smrg grep -v '^ *+' conftest.err >conftest.er1 17875bd32fd1Smrg cat conftest.er1 >&5 17885bd32fd1Smrg mv -f conftest.er1 conftest.err 17895bd32fd1Smrg fi 17905bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17915bd32fd1Smrg test $ac_status = 0; } && { 17925bd32fd1Smrg test -z "$ac_c_werror_flag" || 17935bd32fd1Smrg test ! -s conftest.err 17945bd32fd1Smrg } && test -s conftest$ac_exeext && { 17955bd32fd1Smrg test "$cross_compiling" = yes || 17965bd32fd1Smrg $as_test_x conftest$ac_exeext 17975bd32fd1Smrg }; then : 17985bd32fd1Smrg ac_retval=0 17995bd32fd1Smrgelse 18005bd32fd1Smrg $as_echo "$as_me: failed program was:" >&5 18015bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5 18025bd32fd1Smrg 18035bd32fd1Smrg ac_retval=1 18045bd32fd1Smrgfi 18055bd32fd1Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 18065bd32fd1Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 18075bd32fd1Smrg # interfere with the next link command; also delete a directory that is 18085bd32fd1Smrg # left behind by Apple's compiler. We do this before executing the actions. 18095bd32fd1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 18105bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18115bd32fd1Smrg as_fn_set_status $ac_retval 18125bd32fd1Smrg 18135bd32fd1Smrg} # ac_fn_c_try_link 18145bd32fd1Smrg 18155bd32fd1Smrg# ac_fn_c_check_func LINENO FUNC VAR 18165bd32fd1Smrg# ---------------------------------- 18175bd32fd1Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18185bd32fd1Smrgac_fn_c_check_func () 18195bd32fd1Smrg{ 18205bd32fd1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18215bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18225bd32fd1Smrg$as_echo_n "checking for $2... " >&6; } 18235bd32fd1Smrgif eval \${$3+:} false; then : 18245bd32fd1Smrg $as_echo_n "(cached) " >&6 18255bd32fd1Smrgelse 18265bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275bd32fd1Smrg/* end confdefs.h. */ 18285bd32fd1Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18295bd32fd1Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18305bd32fd1Smrg#define $2 innocuous_$2 18315bd32fd1Smrg 18325bd32fd1Smrg/* System header to define __stub macros and hopefully few prototypes, 18335bd32fd1Smrg which can conflict with char $2 (); below. 18345bd32fd1Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18355bd32fd1Smrg <limits.h> exists even on freestanding compilers. */ 18365bd32fd1Smrg 18375bd32fd1Smrg#ifdef __STDC__ 18385bd32fd1Smrg# include <limits.h> 18395bd32fd1Smrg#else 18405bd32fd1Smrg# include <assert.h> 18415bd32fd1Smrg#endif 18425bd32fd1Smrg 18435bd32fd1Smrg#undef $2 18445bd32fd1Smrg 18455bd32fd1Smrg/* Override any GCC internal prototype to avoid an error. 18465bd32fd1Smrg Use char because int might match the return type of a GCC 18475bd32fd1Smrg builtin and then its argument prototype would still apply. */ 18485bd32fd1Smrg#ifdef __cplusplus 18495bd32fd1Smrgextern "C" 18505bd32fd1Smrg#endif 18515bd32fd1Smrgchar $2 (); 18525bd32fd1Smrg/* The GNU C library defines this for functions which it implements 18535bd32fd1Smrg to always fail with ENOSYS. Some functions are actually named 18545bd32fd1Smrg something starting with __ and the normal name is an alias. */ 18555bd32fd1Smrg#if defined __stub_$2 || defined __stub___$2 18565bd32fd1Smrgchoke me 18575bd32fd1Smrg#endif 18585bd32fd1Smrg 18595bd32fd1Smrgint 18605bd32fd1Smrgmain () 18615bd32fd1Smrg{ 18625bd32fd1Smrgreturn $2 (); 18635bd32fd1Smrg ; 18645bd32fd1Smrg return 0; 18655bd32fd1Smrg} 18665bd32fd1Smrg_ACEOF 18675bd32fd1Smrgif ac_fn_c_try_link "$LINENO"; then : 18685bd32fd1Smrg eval "$3=yes" 18695bd32fd1Smrgelse 18705bd32fd1Smrg eval "$3=no" 18715bd32fd1Smrgfi 18725bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext \ 18735bd32fd1Smrg conftest$ac_exeext conftest.$ac_ext 18745bd32fd1Smrgfi 18755bd32fd1Smrgeval ac_res=\$$3 18765bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18775bd32fd1Smrg$as_echo "$ac_res" >&6; } 18785bd32fd1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18795bd32fd1Smrg 18805bd32fd1Smrg} # ac_fn_c_check_func 18815bd32fd1Smrgcat >config.log <<_ACEOF 18825bd32fd1SmrgThis file contains any messages produced by compilers while 18835bd32fd1Smrgrunning configure, to aid debugging if configure makes a mistake. 18845bd32fd1Smrg 1885d13010c3SmrgIt was created by xrdb $as_me 1.0.8, which was 18865bd32fd1Smrggenerated by GNU Autoconf 2.68. Invocation command line was 18875bd32fd1Smrg 18885bd32fd1Smrg $ $0 $@ 18895bd32fd1Smrg 18905bd32fd1Smrg_ACEOF 18915bd32fd1Smrgexec 5>>config.log 18925bd32fd1Smrg{ 18935bd32fd1Smrgcat <<_ASUNAME 18945bd32fd1Smrg## --------- ## 18955bd32fd1Smrg## Platform. ## 18965bd32fd1Smrg## --------- ## 18975bd32fd1Smrg 18985bd32fd1Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18995bd32fd1Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 19005bd32fd1Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 19015bd32fd1Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 19025bd32fd1Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 19035bd32fd1Smrg 19045bd32fd1Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 19055bd32fd1Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 19065bd32fd1Smrg 19075bd32fd1Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 19085bd32fd1Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 19095bd32fd1Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 19105bd32fd1Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 19115bd32fd1Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 19125bd32fd1Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 19135bd32fd1Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 19145bd32fd1Smrg 19155bd32fd1Smrg_ASUNAME 19165bd32fd1Smrg 19175bd32fd1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19185bd32fd1Smrgfor as_dir in $PATH 19198b22bf3fSmrgdo 19208b22bf3fSmrg IFS=$as_save_IFS 19218b22bf3fSmrg test -z "$as_dir" && as_dir=. 19225bd32fd1Smrg $as_echo "PATH: $as_dir" 19235bd32fd1Smrg done 19248b22bf3fSmrgIFS=$as_save_IFS 19258b22bf3fSmrg 19268b22bf3fSmrg} >&5 19278b22bf3fSmrg 19288b22bf3fSmrgcat >&5 <<_ACEOF 19298b22bf3fSmrg 19308b22bf3fSmrg 19318b22bf3fSmrg## ----------- ## 19328b22bf3fSmrg## Core tests. ## 19338b22bf3fSmrg## ----------- ## 19348b22bf3fSmrg 19358b22bf3fSmrg_ACEOF 19368b22bf3fSmrg 19378b22bf3fSmrg 19388b22bf3fSmrg# Keep a trace of the command line. 19398b22bf3fSmrg# Strip out --no-create and --no-recursion so they do not pile up. 19408b22bf3fSmrg# Strip out --silent because we don't want to record it for future runs. 19418b22bf3fSmrg# Also quote any args containing shell meta-characters. 19428b22bf3fSmrg# Make two passes to allow for proper duplicate-argument suppression. 19438b22bf3fSmrgac_configure_args= 19448b22bf3fSmrgac_configure_args0= 19458b22bf3fSmrgac_configure_args1= 19468b22bf3fSmrgac_must_keep_next=false 19478b22bf3fSmrgfor ac_pass in 1 2 19488b22bf3fSmrgdo 19498b22bf3fSmrg for ac_arg 19508b22bf3fSmrg do 19518b22bf3fSmrg case $ac_arg in 19528b22bf3fSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 19538b22bf3fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19548b22bf3fSmrg | -silent | --silent | --silen | --sile | --sil) 19558b22bf3fSmrg continue ;; 19568b22bf3fSmrg *\'*) 195796a81b41Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19588b22bf3fSmrg esac 19598b22bf3fSmrg case $ac_pass in 19605bd32fd1Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 19618b22bf3fSmrg 2) 19625bd32fd1Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 19638b22bf3fSmrg if test $ac_must_keep_next = true; then 19648b22bf3fSmrg ac_must_keep_next=false # Got value, back to normal. 19658b22bf3fSmrg else 19668b22bf3fSmrg case $ac_arg in 19678b22bf3fSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 19688b22bf3fSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 19698b22bf3fSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 19708b22bf3fSmrg | -with-* | --with-* | -without-* | --without-* | --x) 19718b22bf3fSmrg case "$ac_configure_args0 " in 19728b22bf3fSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 19738b22bf3fSmrg esac 19748b22bf3fSmrg ;; 19758b22bf3fSmrg -* ) ac_must_keep_next=true ;; 19768b22bf3fSmrg esac 19778b22bf3fSmrg fi 19785bd32fd1Smrg as_fn_append ac_configure_args " '$ac_arg'" 19798b22bf3fSmrg ;; 19808b22bf3fSmrg esac 19818b22bf3fSmrg done 19828b22bf3fSmrgdone 19835bd32fd1Smrg{ ac_configure_args0=; unset ac_configure_args0;} 19845bd32fd1Smrg{ ac_configure_args1=; unset ac_configure_args1;} 19858b22bf3fSmrg 19868b22bf3fSmrg# When interrupted or exit'd, cleanup temporary files, and complete 19878b22bf3fSmrg# config.log. We remove comments because anyway the quotes in there 19888b22bf3fSmrg# would cause problems or look ugly. 19898b22bf3fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 19908b22bf3fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19918b22bf3fSmrgtrap 'exit_status=$? 19928b22bf3fSmrg # Save into config.log some information that might help in debugging. 19938b22bf3fSmrg { 19948b22bf3fSmrg echo 19958b22bf3fSmrg 19965bd32fd1Smrg $as_echo "## ---------------- ## 19978b22bf3fSmrg## Cache variables. ## 19985bd32fd1Smrg## ---------------- ##" 19998b22bf3fSmrg echo 20008b22bf3fSmrg # The following way of writing the cache mishandles newlines in values, 20018b22bf3fSmrg( 20028b22bf3fSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 20038b22bf3fSmrg eval ac_val=\$$ac_var 20048b22bf3fSmrg case $ac_val in #( 20058b22bf3fSmrg *${as_nl}*) 20068b22bf3fSmrg case $ac_var in #( 20075bd32fd1Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 200896a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20098b22bf3fSmrg esac 20108b22bf3fSmrg case $ac_var in #( 20118b22bf3fSmrg _ | IFS | as_nl) ;; #( 201296a81b41Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20135bd32fd1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 20148b22bf3fSmrg esac ;; 20158b22bf3fSmrg esac 20168b22bf3fSmrg done 20178b22bf3fSmrg (set) 2>&1 | 20188b22bf3fSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 20198b22bf3fSmrg *${as_nl}ac_space=\ *) 20208b22bf3fSmrg sed -n \ 20218b22bf3fSmrg "s/'\''/'\''\\\\'\'''\''/g; 20228b22bf3fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 20238b22bf3fSmrg ;; #( 20248b22bf3fSmrg *) 20258b22bf3fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20268b22bf3fSmrg ;; 20278b22bf3fSmrg esac | 20288b22bf3fSmrg sort 20298b22bf3fSmrg) 20308b22bf3fSmrg echo 20318b22bf3fSmrg 20325bd32fd1Smrg $as_echo "## ----------------- ## 20338b22bf3fSmrg## Output variables. ## 20345bd32fd1Smrg## ----------------- ##" 20358b22bf3fSmrg echo 20368b22bf3fSmrg for ac_var in $ac_subst_vars 20378b22bf3fSmrg do 20388b22bf3fSmrg eval ac_val=\$$ac_var 20398b22bf3fSmrg case $ac_val in 204096a81b41Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 20418b22bf3fSmrg esac 204296a81b41Smrg $as_echo "$ac_var='\''$ac_val'\''" 20438b22bf3fSmrg done | sort 20448b22bf3fSmrg echo 20458b22bf3fSmrg 20468b22bf3fSmrg if test -n "$ac_subst_files"; then 20475bd32fd1Smrg $as_echo "## ------------------- ## 20488b22bf3fSmrg## File substitutions. ## 20495bd32fd1Smrg## ------------------- ##" 20508b22bf3fSmrg echo 20518b22bf3fSmrg for ac_var in $ac_subst_files 20528b22bf3fSmrg do 20538b22bf3fSmrg eval ac_val=\$$ac_var 20548b22bf3fSmrg case $ac_val in 205596a81b41Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 20568b22bf3fSmrg esac 205796a81b41Smrg $as_echo "$ac_var='\''$ac_val'\''" 20588b22bf3fSmrg done | sort 20598b22bf3fSmrg echo 20608b22bf3fSmrg fi 20618b22bf3fSmrg 20628b22bf3fSmrg if test -s confdefs.h; then 20635bd32fd1Smrg $as_echo "## ----------- ## 20648b22bf3fSmrg## confdefs.h. ## 20655bd32fd1Smrg## ----------- ##" 20668b22bf3fSmrg echo 20678b22bf3fSmrg cat confdefs.h 20688b22bf3fSmrg echo 20698b22bf3fSmrg fi 20708b22bf3fSmrg test "$ac_signal" != 0 && 207196a81b41Smrg $as_echo "$as_me: caught signal $ac_signal" 207296a81b41Smrg $as_echo "$as_me: exit $exit_status" 20738b22bf3fSmrg } >&5 20748b22bf3fSmrg rm -f core *.core core.conftest.* && 20758b22bf3fSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 20768b22bf3fSmrg exit $exit_status 20778b22bf3fSmrg' 0 20788b22bf3fSmrgfor ac_signal in 1 2 13 15; do 20795bd32fd1Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20808b22bf3fSmrgdone 20818b22bf3fSmrgac_signal=0 20828b22bf3fSmrg 20838b22bf3fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 20848b22bf3fSmrgrm -f -r conftest* confdefs.h 20858b22bf3fSmrg 20865bd32fd1Smrg$as_echo "/* confdefs.h */" > confdefs.h 20875bd32fd1Smrg 20888b22bf3fSmrg# Predefined preprocessor variables. 20898b22bf3fSmrg 20908b22bf3fSmrgcat >>confdefs.h <<_ACEOF 20918b22bf3fSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 20928b22bf3fSmrg_ACEOF 20938b22bf3fSmrg 20948b22bf3fSmrgcat >>confdefs.h <<_ACEOF 20958b22bf3fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 20968b22bf3fSmrg_ACEOF 20978b22bf3fSmrg 20988b22bf3fSmrgcat >>confdefs.h <<_ACEOF 20998b22bf3fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 21008b22bf3fSmrg_ACEOF 21018b22bf3fSmrg 21028b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21038b22bf3fSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 21048b22bf3fSmrg_ACEOF 21058b22bf3fSmrg 21068b22bf3fSmrgcat >>confdefs.h <<_ACEOF 21078b22bf3fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 21088b22bf3fSmrg_ACEOF 21098b22bf3fSmrg 21105bd32fd1Smrgcat >>confdefs.h <<_ACEOF 21115bd32fd1Smrg#define PACKAGE_URL "$PACKAGE_URL" 21125bd32fd1Smrg_ACEOF 21135bd32fd1Smrg 21148b22bf3fSmrg 21158b22bf3fSmrg# Let the site file select an alternate cache file if it wants to. 211696a81b41Smrg# Prefer an explicitly selected file to automatically selected ones. 211796a81b41Smrgac_site_file1=NONE 211896a81b41Smrgac_site_file2=NONE 21198b22bf3fSmrgif test -n "$CONFIG_SITE"; then 21205bd32fd1Smrg # We do not want a PATH search for config.site. 21215bd32fd1Smrg case $CONFIG_SITE in #(( 21225bd32fd1Smrg -*) ac_site_file1=./$CONFIG_SITE;; 21235bd32fd1Smrg */*) ac_site_file1=$CONFIG_SITE;; 21245bd32fd1Smrg *) ac_site_file1=./$CONFIG_SITE;; 21255bd32fd1Smrg esac 21268b22bf3fSmrgelif test "x$prefix" != xNONE; then 212796a81b41Smrg ac_site_file1=$prefix/share/config.site 212896a81b41Smrg ac_site_file2=$prefix/etc/config.site 21298b22bf3fSmrgelse 213096a81b41Smrg ac_site_file1=$ac_default_prefix/share/config.site 213196a81b41Smrg ac_site_file2=$ac_default_prefix/etc/config.site 21328b22bf3fSmrgfi 213396a81b41Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 21348b22bf3fSmrgdo 213596a81b41Smrg test "x$ac_site_file" = xNONE && continue 21365bd32fd1Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 21375bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 213896a81b41Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 21398b22bf3fSmrg sed 's/^/| /' "$ac_site_file" >&5 21405bd32fd1Smrg . "$ac_site_file" \ 21415bd32fd1Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21425bd32fd1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21435bd32fd1Smrgas_fn_error $? "failed to load site script $ac_site_file 21445bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; } 21458b22bf3fSmrg fi 21468b22bf3fSmrgdone 21478b22bf3fSmrg 21488b22bf3fSmrgif test -r "$cache_file"; then 21495bd32fd1Smrg # Some versions of bash will fail to source /dev/null (special files 21505bd32fd1Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 21515bd32fd1Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 21525bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 215396a81b41Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 21548b22bf3fSmrg case $cache_file in 21558b22bf3fSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 21568b22bf3fSmrg *) . "./$cache_file";; 21578b22bf3fSmrg esac 21588b22bf3fSmrg fi 21598b22bf3fSmrgelse 21605bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 216196a81b41Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 21628b22bf3fSmrg >$cache_file 21638b22bf3fSmrgfi 21648b22bf3fSmrg 21658b22bf3fSmrg# Check that the precious variables saved in the cache have kept the same 21668b22bf3fSmrg# value. 21678b22bf3fSmrgac_cache_corrupted=false 21688b22bf3fSmrgfor ac_var in $ac_precious_vars; do 21698b22bf3fSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 21708b22bf3fSmrg eval ac_new_set=\$ac_env_${ac_var}_set 21718b22bf3fSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 21728b22bf3fSmrg eval ac_new_val=\$ac_env_${ac_var}_value 21738b22bf3fSmrg case $ac_old_set,$ac_new_set in 21748b22bf3fSmrg set,) 21755bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 217696a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 21778b22bf3fSmrg ac_cache_corrupted=: ;; 21788b22bf3fSmrg ,set) 21795bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 218096a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 21818b22bf3fSmrg ac_cache_corrupted=: ;; 21828b22bf3fSmrg ,);; 21838b22bf3fSmrg *) 21848b22bf3fSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 218596a81b41Smrg # differences in whitespace do not lead to failure. 218696a81b41Smrg ac_old_val_w=`echo x $ac_old_val` 218796a81b41Smrg ac_new_val_w=`echo x $ac_new_val` 218896a81b41Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 21895bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 219096a81b41Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 219196a81b41Smrg ac_cache_corrupted=: 219296a81b41Smrg else 21935bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 219496a81b41Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 219596a81b41Smrg eval $ac_var=\$ac_old_val 219696a81b41Smrg fi 21975bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 219896a81b41Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 21995bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 220096a81b41Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 22018b22bf3fSmrg fi;; 22028b22bf3fSmrg esac 22038b22bf3fSmrg # Pass precious variables to config.status. 22048b22bf3fSmrg if test "$ac_new_set" = set; then 22058b22bf3fSmrg case $ac_new_val in 220696a81b41Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 22078b22bf3fSmrg *) ac_arg=$ac_var=$ac_new_val ;; 22088b22bf3fSmrg esac 22098b22bf3fSmrg case " $ac_configure_args " in 22108b22bf3fSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 22115bd32fd1Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 22128b22bf3fSmrg esac 22138b22bf3fSmrg fi 22148b22bf3fSmrgdone 22158b22bf3fSmrgif $ac_cache_corrupted; then 22165bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 221796a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22185bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 221996a81b41Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 22205bd32fd1Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 22218b22bf3fSmrgfi 22225bd32fd1Smrg## -------------------- ## 22235bd32fd1Smrg## Main body of script. ## 22245bd32fd1Smrg## -------------------- ## 22258b22bf3fSmrg 22268b22bf3fSmrgac_ext=c 22278b22bf3fSmrgac_cpp='$CPP $CPPFLAGS' 22288b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22298b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22308b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 22318b22bf3fSmrg 22328b22bf3fSmrg 22335bd32fd1Smrg 22345bd32fd1Smrgac_config_headers="$ac_config_headers config.h" 22355bd32fd1Smrg 2236d13010c3Smrgac_ext=c 2237d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 2238d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2239d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2240d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2241d13010c3Smrgif test -n "$ac_tool_prefix"; then 2242d13010c3Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2243d13010c3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2244d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2245d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2246d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 224796a81b41Smrg $as_echo_n "(cached) " >&6 22488b22bf3fSmrgelse 2249d13010c3Smrg if test -n "$CC"; then 2250d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2251d13010c3Smrgelse 2252d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22538b22bf3fSmrgfor as_dir in $PATH 22548b22bf3fSmrgdo 22558b22bf3fSmrg IFS=$as_save_IFS 22568b22bf3fSmrg test -z "$as_dir" && as_dir=. 2257d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2258d13010c3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2259d13010c3Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2260d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2261d13010c3Smrg break 2 2262d13010c3Smrg fi 2263d13010c3Smrgdone 22645bd32fd1Smrg done 22658b22bf3fSmrgIFS=$as_save_IFS 22668b22bf3fSmrg 22678b22bf3fSmrgfi 22688b22bf3fSmrgfi 2269d13010c3SmrgCC=$ac_cv_prog_CC 2270d13010c3Smrgif test -n "$CC"; then 2271d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2272d13010c3Smrg$as_echo "$CC" >&6; } 22738b22bf3fSmrgelse 2274d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2275d13010c3Smrg$as_echo "no" >&6; } 22768b22bf3fSmrgfi 22778b22bf3fSmrg 22788b22bf3fSmrg 227996a81b41Smrgfi 2280d13010c3Smrgif test -z "$ac_cv_prog_CC"; then 2281d13010c3Smrg ac_ct_CC=$CC 2282d13010c3Smrg # Extract the first word of "gcc", so it can be a program name with args. 2283d13010c3Smrgset dummy gcc; ac_word=$2 22845bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 228596a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 2286d13010c3Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 228796a81b41Smrg $as_echo_n "(cached) " >&6 228896a81b41Smrgelse 2289d13010c3Smrg if test -n "$ac_ct_CC"; then 2290d13010c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 229196a81b41Smrgelse 229296a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 229396a81b41Smrgfor as_dir in $PATH 229496a81b41Smrgdo 229596a81b41Smrg IFS=$as_save_IFS 229696a81b41Smrg test -z "$as_dir" && as_dir=. 22975bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 229896a81b41Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2299d13010c3Smrg ac_cv_prog_ac_ct_CC="gcc" 23005bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 230196a81b41Smrg break 2 230296a81b41Smrg fi 230396a81b41Smrgdone 23045bd32fd1Smrg done 230596a81b41SmrgIFS=$as_save_IFS 230696a81b41Smrg 230796a81b41Smrgfi 230896a81b41Smrgfi 2309d13010c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2310d13010c3Smrgif test -n "$ac_ct_CC"; then 2311d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2312d13010c3Smrg$as_echo "$ac_ct_CC" >&6; } 231396a81b41Smrgelse 23145bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 231596a81b41Smrg$as_echo "no" >&6; } 231696a81b41Smrgfi 231796a81b41Smrg 2318d13010c3Smrg if test "x$ac_ct_CC" = x; then 2319d13010c3Smrg CC="" 2320d13010c3Smrg else 2321d13010c3Smrg case $cross_compiling:$ac_tool_warned in 2322d13010c3Smrgyes:) 2323d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2324d13010c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2325d13010c3Smrgac_tool_warned=yes ;; 2326d13010c3Smrgesac 2327d13010c3Smrg CC=$ac_ct_CC 2328d13010c3Smrg fi 2329d13010c3Smrgelse 2330d13010c3Smrg CC="$ac_cv_prog_CC" 233196a81b41Smrgfi 2332d13010c3Smrg 2333d13010c3Smrgif test -z "$CC"; then 2334d13010c3Smrg if test -n "$ac_tool_prefix"; then 2335d13010c3Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2336d13010c3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 23375bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 233896a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 2339d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 234096a81b41Smrg $as_echo_n "(cached) " >&6 234196a81b41Smrgelse 2342d13010c3Smrg if test -n "$CC"; then 2343d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 234496a81b41Smrgelse 234596a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 234696a81b41Smrgfor as_dir in $PATH 234796a81b41Smrgdo 234896a81b41Smrg IFS=$as_save_IFS 234996a81b41Smrg test -z "$as_dir" && as_dir=. 23505bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 235196a81b41Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2352d13010c3Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 23535bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 235496a81b41Smrg break 2 235596a81b41Smrg fi 235696a81b41Smrgdone 23575bd32fd1Smrg done 235896a81b41SmrgIFS=$as_save_IFS 235996a81b41Smrg 236096a81b41Smrgfi 236196a81b41Smrgfi 2362d13010c3SmrgCC=$ac_cv_prog_CC 2363d13010c3Smrgif test -n "$CC"; then 2364d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2365d13010c3Smrg$as_echo "$CC" >&6; } 236696a81b41Smrgelse 23675bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 236896a81b41Smrg$as_echo "no" >&6; } 236996a81b41Smrgfi 237096a81b41Smrg 237196a81b41Smrg 2372d13010c3Smrg fi 237396a81b41Smrgfi 2374d13010c3Smrgif test -z "$CC"; then 2375d13010c3Smrg # Extract the first word of "cc", so it can be a program name with args. 2376d13010c3Smrgset dummy cc; ac_word=$2 2377d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2378d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2379d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 238096a81b41Smrg $as_echo_n "(cached) " >&6 238196a81b41Smrgelse 2382d13010c3Smrg if test -n "$CC"; then 2383d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2384d13010c3Smrgelse 2385d13010c3Smrg ac_prog_rejected=no 2386d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2387d13010c3Smrgfor as_dir in $PATH 23888b22bf3fSmrgdo 23898b22bf3fSmrg IFS=$as_save_IFS 23908b22bf3fSmrg test -z "$as_dir" && as_dir=. 2391d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2392d13010c3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2393d13010c3Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2394d13010c3Smrg ac_prog_rejected=yes 2395d13010c3Smrg continue 2396d13010c3Smrg fi 2397d13010c3Smrg ac_cv_prog_CC="cc" 2398d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2399d13010c3Smrg break 2 2400d13010c3Smrg fi 2401d13010c3Smrgdone 24025bd32fd1Smrg done 24038b22bf3fSmrgIFS=$as_save_IFS 24048b22bf3fSmrg 2405d13010c3Smrgif test $ac_prog_rejected = yes; then 2406d13010c3Smrg # We found a bogon in the path, so make sure we never use it. 2407d13010c3Smrg set dummy $ac_cv_prog_CC 2408d13010c3Smrg shift 2409d13010c3Smrg if test $# != 0; then 2410d13010c3Smrg # We chose a different compiler from the bogus one. 2411d13010c3Smrg # However, it has the same basename, so the bogon will be chosen 2412d13010c3Smrg # first if we set CC to just the basename; use the full file name. 2413d13010c3Smrg shift 2414d13010c3Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 24158b22bf3fSmrg fi 24168b22bf3fSmrgfi 2417d13010c3Smrgfi 2418d13010c3Smrgfi 2419d13010c3SmrgCC=$ac_cv_prog_CC 2420d13010c3Smrgif test -n "$CC"; then 2421d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2422d13010c3Smrg$as_echo "$CC" >&6; } 2423d13010c3Smrgelse 2424d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2425d13010c3Smrg$as_echo "no" >&6; } 2426d13010c3Smrgfi 24278b22bf3fSmrg 24288b22bf3fSmrg 2429d13010c3Smrgfi 2430d13010c3Smrgif test -z "$CC"; then 2431d13010c3Smrg if test -n "$ac_tool_prefix"; then 2432d13010c3Smrg for ac_prog in cl.exe 2433d13010c3Smrg do 2434d13010c3Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2435d13010c3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 24365bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 243796a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 2438d13010c3Smrgif ${ac_cv_prog_CC+:} false; then : 243996a81b41Smrg $as_echo_n "(cached) " >&6 24408b22bf3fSmrgelse 2441d13010c3Smrg if test -n "$CC"; then 2442d13010c3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 24438b22bf3fSmrgelse 24448b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24458b22bf3fSmrgfor as_dir in $PATH 24468b22bf3fSmrgdo 24478b22bf3fSmrg IFS=$as_save_IFS 24488b22bf3fSmrg test -z "$as_dir" && as_dir=. 24495bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 24508b22bf3fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2451d13010c3Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 24525bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24538b22bf3fSmrg break 2 24548b22bf3fSmrg fi 24558b22bf3fSmrgdone 24565bd32fd1Smrg done 24578b22bf3fSmrgIFS=$as_save_IFS 24588b22bf3fSmrg 24598b22bf3fSmrgfi 24608b22bf3fSmrgfi 2461d13010c3SmrgCC=$ac_cv_prog_CC 2462d13010c3Smrgif test -n "$CC"; then 2463d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2464d13010c3Smrg$as_echo "$CC" >&6; } 24658b22bf3fSmrgelse 24665bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 246796a81b41Smrg$as_echo "no" >&6; } 24688b22bf3fSmrgfi 24698b22bf3fSmrg 24708b22bf3fSmrg 2471d13010c3Smrg test -n "$CC" && break 2472d13010c3Smrg done 2473d13010c3Smrgfi 2474d13010c3Smrgif test -z "$CC"; then 2475d13010c3Smrg ac_ct_CC=$CC 2476d13010c3Smrg for ac_prog in cl.exe 2477d13010c3Smrgdo 2478d13010c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2479d13010c3Smrgset dummy $ac_prog; ac_word=$2 2480d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2481d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2482d13010c3Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 248396a81b41Smrg $as_echo_n "(cached) " >&6 24848b22bf3fSmrgelse 2485d13010c3Smrg if test -n "$ac_ct_CC"; then 2486d13010c3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2487d13010c3Smrgelse 2488d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489d13010c3Smrgfor as_dir in $PATH 2490d13010c3Smrgdo 2491d13010c3Smrg IFS=$as_save_IFS 2492d13010c3Smrg test -z "$as_dir" && as_dir=. 2493d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2494d13010c3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2495d13010c3Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2496d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2497d13010c3Smrg break 2 2498d13010c3Smrg fi 2499d13010c3Smrgdone 2500d13010c3Smrg done 2501d13010c3SmrgIFS=$as_save_IFS 2502d13010c3Smrg 25038b22bf3fSmrgfi 2504d13010c3Smrgfi 2505d13010c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2506d13010c3Smrgif test -n "$ac_ct_CC"; then 2507d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2508d13010c3Smrg$as_echo "$ac_ct_CC" >&6; } 25098b22bf3fSmrgelse 25105bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 251196a81b41Smrg$as_echo "no" >&6; } 25128b22bf3fSmrgfi 25138b22bf3fSmrg 25148b22bf3fSmrg 2515d13010c3Smrg test -n "$ac_ct_CC" && break 2516d13010c3Smrgdone 25178b22bf3fSmrg 2518d13010c3Smrg if test "x$ac_ct_CC" = x; then 2519d13010c3Smrg CC="" 25208b22bf3fSmrg else 2521d13010c3Smrg case $cross_compiling:$ac_tool_warned in 2522d13010c3Smrgyes:) 2523d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2524d13010c3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2525d13010c3Smrgac_tool_warned=yes ;; 2526d13010c3Smrgesac 2527d13010c3Smrg CC=$ac_ct_CC 25288b22bf3fSmrg fi 25298b22bf3fSmrgfi 25308b22bf3fSmrg 2531d13010c3Smrgfi 25328b22bf3fSmrg 25338b22bf3fSmrg 2534d13010c3Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2535d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2536d13010c3Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 2537d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 25388b22bf3fSmrg 2539d13010c3Smrg# Provide some information about the compiler. 2540d13010c3Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2541d13010c3Smrgset X $ac_compile 2542d13010c3Smrgac_compiler=$2 2543d13010c3Smrgfor ac_option in --version -v -V -qversion; do 2544d13010c3Smrg { { ac_try="$ac_compiler $ac_option >&5" 2545d13010c3Smrgcase "(($ac_try" in 2546d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2547d13010c3Smrg *) ac_try_echo=$ac_try;; 2548d13010c3Smrgesac 2549d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2550d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2551d13010c3Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2552d13010c3Smrg ac_status=$? 2553d13010c3Smrg if test -s conftest.err; then 2554d13010c3Smrg sed '10a\ 2555d13010c3Smrg... rest of stderr output deleted ... 2556d13010c3Smrg 10q' conftest.err >conftest.er1 2557d13010c3Smrg cat conftest.er1 >&5 2558d13010c3Smrg fi 2559d13010c3Smrg rm -f conftest.er1 conftest.err 2560d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2561d13010c3Smrg test $ac_status = 0; } 2562d13010c3Smrgdone 25638b22bf3fSmrg 2564d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2565d13010c3Smrg/* end confdefs.h. */ 25668b22bf3fSmrg 2567d13010c3Smrgint 2568d13010c3Smrgmain () 2569d13010c3Smrg{ 25708b22bf3fSmrg 2571d13010c3Smrg ; 2572d13010c3Smrg return 0; 2573d13010c3Smrg} 2574d13010c3Smrg_ACEOF 2575d13010c3Smrgac_clean_files_save=$ac_clean_files 2576d13010c3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2577d13010c3Smrg# Try to create an executable without -o first, disregard a.out. 2578d13010c3Smrg# It will help us diagnose broken compilers, and finding out an intuition 2579d13010c3Smrg# of exeext. 2580d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2581d13010c3Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 2582d13010c3Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 25838b22bf3fSmrg 2584d13010c3Smrg# The possible output files: 2585d13010c3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 25868b22bf3fSmrg 2587d13010c3Smrgac_rmfiles= 2588d13010c3Smrgfor ac_file in $ac_files 2589d13010c3Smrgdo 2590d13010c3Smrg case $ac_file in 2591d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2592d13010c3Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2593d13010c3Smrg esac 2594d13010c3Smrgdone 2595d13010c3Smrgrm -f $ac_rmfiles 25968b22bf3fSmrg 2597d13010c3Smrgif { { ac_try="$ac_link_default" 2598d13010c3Smrgcase "(($ac_try" in 2599d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2600d13010c3Smrg *) ac_try_echo=$ac_try;; 2601d13010c3Smrgesac 2602d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2603d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2604d13010c3Smrg (eval "$ac_link_default") 2>&5 2605d13010c3Smrg ac_status=$? 2606d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2607d13010c3Smrg test $ac_status = 0; }; then : 2608d13010c3Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2609d13010c3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2610d13010c3Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 2611d13010c3Smrg# so that the user can short-circuit this test for compilers unknown to 2612d13010c3Smrg# Autoconf. 2613d13010c3Smrgfor ac_file in $ac_files '' 2614d13010c3Smrgdo 2615d13010c3Smrg test -f "$ac_file" || continue 2616d13010c3Smrg case $ac_file in 2617d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2618d13010c3Smrg ;; 2619d13010c3Smrg [ab].out ) 2620d13010c3Smrg # We found the default executable, but exeext='' is most 2621d13010c3Smrg # certainly right. 2622d13010c3Smrg break;; 2623d13010c3Smrg *.* ) 2624d13010c3Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2625d13010c3Smrg then :; else 2626d13010c3Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2627d13010c3Smrg fi 2628d13010c3Smrg # We set ac_cv_exeext here because the later test for it is not 2629d13010c3Smrg # safe: cross compilers may not add the suffix if given an `-o' 2630d13010c3Smrg # argument, so we may need to know it at that point already. 2631d13010c3Smrg # Even if this section looks crufty: it has the advantage of 2632d13010c3Smrg # actually working. 2633d13010c3Smrg break;; 2634d13010c3Smrg * ) 2635d13010c3Smrg break;; 2636d13010c3Smrg esac 2637d13010c3Smrgdone 2638d13010c3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 2639d13010c3Smrg 2640d13010c3Smrgelse 2641d13010c3Smrg ac_file='' 2642d13010c3Smrgfi 2643d13010c3Smrgif test -z "$ac_file"; then : 2644d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2645d13010c3Smrg$as_echo "no" >&6; } 2646d13010c3Smrg$as_echo "$as_me: failed program was:" >&5 2647d13010c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 2648d13010c3Smrg 2649d13010c3Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2650d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2651d13010c3Smrgas_fn_error 77 "C compiler cannot create executables 2652d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2653d13010c3Smrgelse 2654d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2655d13010c3Smrg$as_echo "yes" >&6; } 2656d13010c3Smrgfi 2657d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2658d13010c3Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 2659d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2660d13010c3Smrg$as_echo "$ac_file" >&6; } 2661d13010c3Smrgac_exeext=$ac_cv_exeext 2662d13010c3Smrg 2663d13010c3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2664d13010c3Smrgac_clean_files=$ac_clean_files_save 2665d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2666d13010c3Smrg$as_echo_n "checking for suffix of executables... " >&6; } 2667d13010c3Smrgif { { ac_try="$ac_link" 2668d13010c3Smrgcase "(($ac_try" in 2669d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2670d13010c3Smrg *) ac_try_echo=$ac_try;; 2671d13010c3Smrgesac 2672d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2673d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2674d13010c3Smrg (eval "$ac_link") 2>&5 2675d13010c3Smrg ac_status=$? 2676d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2677d13010c3Smrg test $ac_status = 0; }; then : 2678d13010c3Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 2679d13010c3Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2680d13010c3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 2681d13010c3Smrg# `rm'. 2682d13010c3Smrgfor ac_file in conftest.exe conftest conftest.*; do 2683d13010c3Smrg test -f "$ac_file" || continue 2684d13010c3Smrg case $ac_file in 2685d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2686d13010c3Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2687d13010c3Smrg break;; 2688d13010c3Smrg * ) break;; 2689d13010c3Smrg esac 2690d13010c3Smrgdone 2691d13010c3Smrgelse 2692d13010c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2693d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2694d13010c3Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 2695d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2696d13010c3Smrgfi 2697d13010c3Smrgrm -f conftest conftest$ac_cv_exeext 2698d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2699d13010c3Smrg$as_echo "$ac_cv_exeext" >&6; } 2700d13010c3Smrg 2701d13010c3Smrgrm -f conftest.$ac_ext 2702d13010c3SmrgEXEEXT=$ac_cv_exeext 2703d13010c3Smrgac_exeext=$EXEEXT 2704d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2705d13010c3Smrg/* end confdefs.h. */ 2706d13010c3Smrg#include <stdio.h> 2707d13010c3Smrgint 2708d13010c3Smrgmain () 2709d13010c3Smrg{ 2710d13010c3SmrgFILE *f = fopen ("conftest.out", "w"); 2711d13010c3Smrg return ferror (f) || fclose (f) != 0; 2712d13010c3Smrg 2713d13010c3Smrg ; 2714d13010c3Smrg return 0; 2715d13010c3Smrg} 2716d13010c3Smrg_ACEOF 2717d13010c3Smrgac_clean_files="$ac_clean_files conftest.out" 2718d13010c3Smrg# Check that the compiler produces executables we can run. If not, either 2719d13010c3Smrg# the compiler is broken, or we cross compile. 2720d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2721d13010c3Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 2722d13010c3Smrgif test "$cross_compiling" != yes; then 2723d13010c3Smrg { { ac_try="$ac_link" 2724d13010c3Smrgcase "(($ac_try" in 2725d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2726d13010c3Smrg *) ac_try_echo=$ac_try;; 2727d13010c3Smrgesac 2728d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2729d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2730d13010c3Smrg (eval "$ac_link") 2>&5 2731d13010c3Smrg ac_status=$? 2732d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2733d13010c3Smrg test $ac_status = 0; } 2734d13010c3Smrg if { ac_try='./conftest$ac_cv_exeext' 2735d13010c3Smrg { { case "(($ac_try" in 2736d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2737d13010c3Smrg *) ac_try_echo=$ac_try;; 2738d13010c3Smrgesac 2739d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2740d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2741d13010c3Smrg (eval "$ac_try") 2>&5 2742d13010c3Smrg ac_status=$? 2743d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2744d13010c3Smrg test $ac_status = 0; }; }; then 2745d13010c3Smrg cross_compiling=no 2746d13010c3Smrg else 2747d13010c3Smrg if test "$cross_compiling" = maybe; then 2748d13010c3Smrg cross_compiling=yes 2749d13010c3Smrg else 2750d13010c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2751d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2752d13010c3Smrgas_fn_error $? "cannot run C compiled programs. 2753d13010c3SmrgIf you meant to cross compile, use \`--host'. 2754d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2755d13010c3Smrg fi 2756d13010c3Smrg fi 2757d13010c3Smrgfi 2758d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2759d13010c3Smrg$as_echo "$cross_compiling" >&6; } 2760d13010c3Smrg 2761d13010c3Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2762d13010c3Smrgac_clean_files=$ac_clean_files_save 2763d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2764d13010c3Smrg$as_echo_n "checking for suffix of object files... " >&6; } 2765d13010c3Smrgif ${ac_cv_objext+:} false; then : 2766d13010c3Smrg $as_echo_n "(cached) " >&6 2767d13010c3Smrgelse 2768d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2769d13010c3Smrg/* end confdefs.h. */ 2770d13010c3Smrg 2771d13010c3Smrgint 2772d13010c3Smrgmain () 2773d13010c3Smrg{ 2774d13010c3Smrg 2775d13010c3Smrg ; 2776d13010c3Smrg return 0; 2777d13010c3Smrg} 2778d13010c3Smrg_ACEOF 2779d13010c3Smrgrm -f conftest.o conftest.obj 2780d13010c3Smrgif { { ac_try="$ac_compile" 2781d13010c3Smrgcase "(($ac_try" in 2782d13010c3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2783d13010c3Smrg *) ac_try_echo=$ac_try;; 2784d13010c3Smrgesac 2785d13010c3Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2786d13010c3Smrg$as_echo "$ac_try_echo"; } >&5 2787d13010c3Smrg (eval "$ac_compile") 2>&5 2788d13010c3Smrg ac_status=$? 2789d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2790d13010c3Smrg test $ac_status = 0; }; then : 2791d13010c3Smrg for ac_file in conftest.o conftest.obj conftest.*; do 2792d13010c3Smrg test -f "$ac_file" || continue; 2793d13010c3Smrg case $ac_file in 2794d13010c3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2795d13010c3Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2796d13010c3Smrg break;; 2797d13010c3Smrg esac 2798d13010c3Smrgdone 2799d13010c3Smrgelse 2800d13010c3Smrg $as_echo "$as_me: failed program was:" >&5 2801d13010c3Smrgsed 's/^/| /' conftest.$ac_ext >&5 2802d13010c3Smrg 2803d13010c3Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2804d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2805d13010c3Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 2806d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 2807d13010c3Smrgfi 2808d13010c3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 2809d13010c3Smrgfi 2810d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2811d13010c3Smrg$as_echo "$ac_cv_objext" >&6; } 2812d13010c3SmrgOBJEXT=$ac_cv_objext 2813d13010c3Smrgac_objext=$OBJEXT 2814d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2815d13010c3Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2816d13010c3Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 2817d13010c3Smrg $as_echo_n "(cached) " >&6 2818d13010c3Smrgelse 2819d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2820d13010c3Smrg/* end confdefs.h. */ 2821d13010c3Smrg 2822d13010c3Smrgint 2823d13010c3Smrgmain () 2824d13010c3Smrg{ 2825d13010c3Smrg#ifndef __GNUC__ 2826d13010c3Smrg choke me 2827d13010c3Smrg#endif 2828d13010c3Smrg 2829d13010c3Smrg ; 2830d13010c3Smrg return 0; 2831d13010c3Smrg} 2832d13010c3Smrg_ACEOF 2833d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2834d13010c3Smrg ac_compiler_gnu=yes 2835d13010c3Smrgelse 2836d13010c3Smrg ac_compiler_gnu=no 2837d13010c3Smrgfi 2838d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2839d13010c3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 2840d13010c3Smrg 2841d13010c3Smrgfi 2842d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2843d13010c3Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2844d13010c3Smrgif test $ac_compiler_gnu = yes; then 2845d13010c3Smrg GCC=yes 2846d13010c3Smrgelse 2847d13010c3Smrg GCC= 2848d13010c3Smrgfi 2849d13010c3Smrgac_test_CFLAGS=${CFLAGS+set} 2850d13010c3Smrgac_save_CFLAGS=$CFLAGS 2851d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2852d13010c3Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 2853d13010c3Smrgif ${ac_cv_prog_cc_g+:} false; then : 2854d13010c3Smrg $as_echo_n "(cached) " >&6 2855d13010c3Smrgelse 2856d13010c3Smrg ac_save_c_werror_flag=$ac_c_werror_flag 2857d13010c3Smrg ac_c_werror_flag=yes 2858d13010c3Smrg ac_cv_prog_cc_g=no 2859d13010c3Smrg CFLAGS="-g" 2860d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861d13010c3Smrg/* end confdefs.h. */ 2862d13010c3Smrg 2863d13010c3Smrgint 2864d13010c3Smrgmain () 2865d13010c3Smrg{ 2866d13010c3Smrg 2867d13010c3Smrg ; 2868d13010c3Smrg return 0; 2869d13010c3Smrg} 2870d13010c3Smrg_ACEOF 2871d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2872d13010c3Smrg ac_cv_prog_cc_g=yes 2873d13010c3Smrgelse 2874d13010c3Smrg CFLAGS="" 2875d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2876d13010c3Smrg/* end confdefs.h. */ 2877d13010c3Smrg 2878d13010c3Smrgint 2879d13010c3Smrgmain () 2880d13010c3Smrg{ 2881d13010c3Smrg 2882d13010c3Smrg ; 2883d13010c3Smrg return 0; 2884d13010c3Smrg} 2885d13010c3Smrg_ACEOF 2886d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2887d13010c3Smrg 2888d13010c3Smrgelse 2889d13010c3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 2890d13010c3Smrg CFLAGS="-g" 2891d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2892d13010c3Smrg/* end confdefs.h. */ 2893d13010c3Smrg 2894d13010c3Smrgint 2895d13010c3Smrgmain () 2896d13010c3Smrg{ 2897d13010c3Smrg 2898d13010c3Smrg ; 2899d13010c3Smrg return 0; 2900d13010c3Smrg} 2901d13010c3Smrg_ACEOF 2902d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 2903d13010c3Smrg ac_cv_prog_cc_g=yes 2904d13010c3Smrgfi 2905d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2906d13010c3Smrgfi 2907d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2908d13010c3Smrgfi 2909d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2910d13010c3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 2911d13010c3Smrgfi 2912d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2913d13010c3Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 2914d13010c3Smrgif test "$ac_test_CFLAGS" = set; then 2915d13010c3Smrg CFLAGS=$ac_save_CFLAGS 2916d13010c3Smrgelif test $ac_cv_prog_cc_g = yes; then 2917d13010c3Smrg if test "$GCC" = yes; then 2918d13010c3Smrg CFLAGS="-g -O2" 2919d13010c3Smrg else 2920d13010c3Smrg CFLAGS="-g" 2921d13010c3Smrg fi 2922d13010c3Smrgelse 2923d13010c3Smrg if test "$GCC" = yes; then 2924d13010c3Smrg CFLAGS="-O2" 2925d13010c3Smrg else 2926d13010c3Smrg CFLAGS= 2927d13010c3Smrg fi 2928d13010c3Smrgfi 2929d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2930d13010c3Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2931d13010c3Smrgif ${ac_cv_prog_cc_c89+:} false; then : 2932d13010c3Smrg $as_echo_n "(cached) " >&6 2933d13010c3Smrgelse 2934d13010c3Smrg ac_cv_prog_cc_c89=no 2935d13010c3Smrgac_save_CC=$CC 2936d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2937d13010c3Smrg/* end confdefs.h. */ 2938d13010c3Smrg#include <stdarg.h> 2939d13010c3Smrg#include <stdio.h> 2940d13010c3Smrg#include <sys/types.h> 2941d13010c3Smrg#include <sys/stat.h> 2942d13010c3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2943d13010c3Smrgstruct buf { int x; }; 2944d13010c3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 2945d13010c3Smrgstatic char *e (p, i) 2946d13010c3Smrg char **p; 2947d13010c3Smrg int i; 2948d13010c3Smrg{ 2949d13010c3Smrg return p[i]; 2950d13010c3Smrg} 2951d13010c3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 2952d13010c3Smrg{ 2953d13010c3Smrg char *s; 2954d13010c3Smrg va_list v; 2955d13010c3Smrg va_start (v,p); 2956d13010c3Smrg s = g (p, va_arg (v,int)); 2957d13010c3Smrg va_end (v); 2958d13010c3Smrg return s; 2959d13010c3Smrg} 2960d13010c3Smrg 2961d13010c3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2962d13010c3Smrg function prototypes and stuff, but not '\xHH' hex character constants. 2963d13010c3Smrg These don't provoke an error unfortunately, instead are silently treated 2964d13010c3Smrg as 'x'. The following induces an error, until -std is added to get 2965d13010c3Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2966d13010c3Smrg array size at least. It's necessary to write '\x00'==0 to get something 2967d13010c3Smrg that's true only with -std. */ 2968d13010c3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2969d13010c3Smrg 2970d13010c3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2971d13010c3Smrg inside strings and character constants. */ 2972d13010c3Smrg#define FOO(x) 'x' 2973d13010c3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2974d13010c3Smrg 2975d13010c3Smrgint test (int i, double x); 2976d13010c3Smrgstruct s1 {int (*f) (int a);}; 2977d13010c3Smrgstruct s2 {int (*f) (double a);}; 2978d13010c3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2979d13010c3Smrgint argc; 2980d13010c3Smrgchar **argv; 2981d13010c3Smrgint 2982d13010c3Smrgmain () 2983d13010c3Smrg{ 2984d13010c3Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2985d13010c3Smrg ; 2986d13010c3Smrg return 0; 2987d13010c3Smrg} 2988d13010c3Smrg_ACEOF 2989d13010c3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2990d13010c3Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2991d13010c3Smrgdo 2992d13010c3Smrg CC="$ac_save_CC $ac_arg" 2993d13010c3Smrg if ac_fn_c_try_compile "$LINENO"; then : 2994d13010c3Smrg ac_cv_prog_cc_c89=$ac_arg 2995d13010c3Smrgfi 2996d13010c3Smrgrm -f core conftest.err conftest.$ac_objext 2997d13010c3Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 2998d13010c3Smrgdone 2999d13010c3Smrgrm -f conftest.$ac_ext 3000d13010c3SmrgCC=$ac_save_CC 3001d13010c3Smrg 3002d13010c3Smrgfi 3003d13010c3Smrg# AC_CACHE_VAL 3004d13010c3Smrgcase "x$ac_cv_prog_cc_c89" in 3005d13010c3Smrg x) 3006d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3007d13010c3Smrg$as_echo "none needed" >&6; } ;; 3008d13010c3Smrg xno) 3009d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3010d13010c3Smrg$as_echo "unsupported" >&6; } ;; 3011d13010c3Smrg *) 3012d13010c3Smrg CC="$CC $ac_cv_prog_cc_c89" 3013d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3014d13010c3Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3015d13010c3Smrgesac 3016d13010c3Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 30178b22bf3fSmrg 3018d13010c3Smrgfi 3019d13010c3Smrg 3020d13010c3Smrgac_ext=c 3021d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 3022d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3023d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3024d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3025d13010c3Smrg 3026d13010c3Smrg 3027d13010c3Smrgac_ext=c 3028d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 3029d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3030d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3031d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3032d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3033d13010c3Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3034d13010c3Smrg# On Suns, sometimes $CPP names a directory. 3035d13010c3Smrgif test -n "$CPP" && test -d "$CPP"; then 3036d13010c3Smrg CPP= 3037d13010c3Smrgfi 3038d13010c3Smrgif test -z "$CPP"; then 3039d13010c3Smrg if ${ac_cv_prog_CPP+:} false; then : 3040d13010c3Smrg $as_echo_n "(cached) " >&6 3041d13010c3Smrgelse 3042d13010c3Smrg # Double quotes because CPP needs to be expanded 3043d13010c3Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3044d13010c3Smrg do 3045d13010c3Smrg ac_preproc_ok=false 3046d13010c3Smrgfor ac_c_preproc_warn_flag in '' yes 3047d13010c3Smrgdo 3048d13010c3Smrg # Use a header file that comes with gcc, so configuring glibc 3049d13010c3Smrg # with a fresh cross-compiler works. 3050d13010c3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3051d13010c3Smrg # <limits.h> exists even on freestanding compilers. 3052d13010c3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3053d13010c3Smrg # not just through cpp. "Syntax error" is here to catch this case. 3054d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3055d13010c3Smrg/* end confdefs.h. */ 3056d13010c3Smrg#ifdef __STDC__ 3057d13010c3Smrg# include <limits.h> 3058d13010c3Smrg#else 3059d13010c3Smrg# include <assert.h> 3060d13010c3Smrg#endif 3061d13010c3Smrg Syntax error 3062d13010c3Smrg_ACEOF 3063d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3064d13010c3Smrg 3065d13010c3Smrgelse 3066d13010c3Smrg # Broken: fails on valid input. 3067d13010c3Smrgcontinue 3068d13010c3Smrgfi 3069d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3070d13010c3Smrg 3071d13010c3Smrg # OK, works on sane cases. Now check whether nonexistent headers 3072d13010c3Smrg # can be detected and how. 3073d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3074d13010c3Smrg/* end confdefs.h. */ 3075d13010c3Smrg#include <ac_nonexistent.h> 3076d13010c3Smrg_ACEOF 3077d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3078d13010c3Smrg # Broken: success on invalid input. 3079d13010c3Smrgcontinue 3080d13010c3Smrgelse 3081d13010c3Smrg # Passes both tests. 3082d13010c3Smrgac_preproc_ok=: 3083d13010c3Smrgbreak 3084d13010c3Smrgfi 3085d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3086d13010c3Smrg 3087d13010c3Smrgdone 3088d13010c3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3089d13010c3Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3090d13010c3Smrgif $ac_preproc_ok; then : 3091d13010c3Smrg break 3092d13010c3Smrgfi 3093d13010c3Smrg 3094d13010c3Smrg done 3095d13010c3Smrg ac_cv_prog_CPP=$CPP 3096d13010c3Smrg 3097d13010c3Smrgfi 3098d13010c3Smrg CPP=$ac_cv_prog_CPP 3099d13010c3Smrgelse 3100d13010c3Smrg ac_cv_prog_CPP=$CPP 3101d13010c3Smrgfi 3102d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3103d13010c3Smrg$as_echo "$CPP" >&6; } 3104d13010c3Smrgac_preproc_ok=false 3105d13010c3Smrgfor ac_c_preproc_warn_flag in '' yes 3106d13010c3Smrgdo 3107d13010c3Smrg # Use a header file that comes with gcc, so configuring glibc 3108d13010c3Smrg # with a fresh cross-compiler works. 3109d13010c3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3110d13010c3Smrg # <limits.h> exists even on freestanding compilers. 3111d13010c3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3112d13010c3Smrg # not just through cpp. "Syntax error" is here to catch this case. 3113d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114d13010c3Smrg/* end confdefs.h. */ 3115d13010c3Smrg#ifdef __STDC__ 3116d13010c3Smrg# include <limits.h> 3117d13010c3Smrg#else 3118d13010c3Smrg# include <assert.h> 3119d13010c3Smrg#endif 3120d13010c3Smrg Syntax error 3121d13010c3Smrg_ACEOF 3122d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3123d13010c3Smrg 3124d13010c3Smrgelse 3125d13010c3Smrg # Broken: fails on valid input. 3126d13010c3Smrgcontinue 3127d13010c3Smrgfi 3128d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3129d13010c3Smrg 3130d13010c3Smrg # OK, works on sane cases. Now check whether nonexistent headers 3131d13010c3Smrg # can be detected and how. 3132d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3133d13010c3Smrg/* end confdefs.h. */ 3134d13010c3Smrg#include <ac_nonexistent.h> 3135d13010c3Smrg_ACEOF 3136d13010c3Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3137d13010c3Smrg # Broken: success on invalid input. 3138d13010c3Smrgcontinue 3139d13010c3Smrgelse 3140d13010c3Smrg # Passes both tests. 3141d13010c3Smrgac_preproc_ok=: 3142d13010c3Smrgbreak 3143d13010c3Smrgfi 3144d13010c3Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3145d13010c3Smrg 3146d13010c3Smrgdone 3147d13010c3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3148d13010c3Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3149d13010c3Smrgif $ac_preproc_ok; then : 3150d13010c3Smrg 3151d13010c3Smrgelse 3152d13010c3Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3153d13010c3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3154d13010c3Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3155d13010c3SmrgSee \`config.log' for more details" "$LINENO" 5; } 3156d13010c3Smrgfi 3157d13010c3Smrg 3158d13010c3Smrgac_ext=c 3159d13010c3Smrgac_cpp='$CPP $CPPFLAGS' 3160d13010c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3161d13010c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3162d13010c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 31638b22bf3fSmrg 31648b22bf3fSmrg 3165d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3166d13010c3Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3167d13010c3Smrgif ${ac_cv_path_GREP+:} false; then : 3168d13010c3Smrg $as_echo_n "(cached) " >&6 3169d13010c3Smrgelse 3170d13010c3Smrg if test -z "$GREP"; then 3171d13010c3Smrg ac_path_GREP_found=false 3172d13010c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3173d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174d13010c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3175d13010c3Smrgdo 3176d13010c3Smrg IFS=$as_save_IFS 3177d13010c3Smrg test -z "$as_dir" && as_dir=. 3178d13010c3Smrg for ac_prog in grep ggrep; do 3179d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3180d13010c3Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3181d13010c3Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3182d13010c3Smrg# Check for GNU ac_path_GREP and select it if it is found. 3183d13010c3Smrg # Check for GNU $ac_path_GREP 3184d13010c3Smrgcase `"$ac_path_GREP" --version 2>&1` in 3185d13010c3Smrg*GNU*) 3186d13010c3Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3187d13010c3Smrg*) 3188d13010c3Smrg ac_count=0 3189d13010c3Smrg $as_echo_n 0123456789 >"conftest.in" 3190d13010c3Smrg while : 3191d13010c3Smrg do 3192d13010c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3193d13010c3Smrg mv "conftest.tmp" "conftest.in" 3194d13010c3Smrg cp "conftest.in" "conftest.nl" 3195d13010c3Smrg $as_echo 'GREP' >> "conftest.nl" 3196d13010c3Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3197d13010c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3198d13010c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3199d13010c3Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 3200d13010c3Smrg # Best one so far, save it but keep looking for a better one 3201d13010c3Smrg ac_cv_path_GREP="$ac_path_GREP" 3202d13010c3Smrg ac_path_GREP_max=$ac_count 3203d13010c3Smrg fi 3204d13010c3Smrg # 10*(2^10) chars as input seems more than enough 3205d13010c3Smrg test $ac_count -gt 10 && break 3206d13010c3Smrg done 3207d13010c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3208d13010c3Smrgesac 3209d13010c3Smrg 3210d13010c3Smrg $ac_path_GREP_found && break 3 3211d13010c3Smrg done 3212d13010c3Smrg done 3213d13010c3Smrg done 3214d13010c3SmrgIFS=$as_save_IFS 3215d13010c3Smrg if test -z "$ac_cv_path_GREP"; then 3216d13010c3Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3217d13010c3Smrg fi 3218d13010c3Smrgelse 3219d13010c3Smrg ac_cv_path_GREP=$GREP 3220d13010c3Smrgfi 32218b22bf3fSmrg 3222d13010c3Smrgfi 3223d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3224d13010c3Smrg$as_echo "$ac_cv_path_GREP" >&6; } 3225d13010c3Smrg GREP="$ac_cv_path_GREP" 32268b22bf3fSmrg 32278b22bf3fSmrg 3228d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3229d13010c3Smrg$as_echo_n "checking for egrep... " >&6; } 3230d13010c3Smrgif ${ac_cv_path_EGREP+:} false; then : 3231d13010c3Smrg $as_echo_n "(cached) " >&6 3232d13010c3Smrgelse 3233d13010c3Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3234d13010c3Smrg then ac_cv_path_EGREP="$GREP -E" 3235d13010c3Smrg else 3236d13010c3Smrg if test -z "$EGREP"; then 3237d13010c3Smrg ac_path_EGREP_found=false 3238d13010c3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3239d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3240d13010c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3241d13010c3Smrgdo 3242d13010c3Smrg IFS=$as_save_IFS 3243d13010c3Smrg test -z "$as_dir" && as_dir=. 3244d13010c3Smrg for ac_prog in egrep; do 3245d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3246d13010c3Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3247d13010c3Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3248d13010c3Smrg# Check for GNU ac_path_EGREP and select it if it is found. 3249d13010c3Smrg # Check for GNU $ac_path_EGREP 3250d13010c3Smrgcase `"$ac_path_EGREP" --version 2>&1` in 3251d13010c3Smrg*GNU*) 3252d13010c3Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3253d13010c3Smrg*) 3254d13010c3Smrg ac_count=0 3255d13010c3Smrg $as_echo_n 0123456789 >"conftest.in" 3256d13010c3Smrg while : 3257d13010c3Smrg do 3258d13010c3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3259d13010c3Smrg mv "conftest.tmp" "conftest.in" 3260d13010c3Smrg cp "conftest.in" "conftest.nl" 3261d13010c3Smrg $as_echo 'EGREP' >> "conftest.nl" 3262d13010c3Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3263d13010c3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3264d13010c3Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3265d13010c3Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3266d13010c3Smrg # Best one so far, save it but keep looking for a better one 3267d13010c3Smrg ac_cv_path_EGREP="$ac_path_EGREP" 3268d13010c3Smrg ac_path_EGREP_max=$ac_count 3269d13010c3Smrg fi 3270d13010c3Smrg # 10*(2^10) chars as input seems more than enough 3271d13010c3Smrg test $ac_count -gt 10 && break 3272d13010c3Smrg done 3273d13010c3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3274d13010c3Smrgesac 327596a81b41Smrg 3276d13010c3Smrg $ac_path_EGREP_found && break 3 3277d13010c3Smrg done 3278d13010c3Smrg done 3279d13010c3Smrg done 3280d13010c3SmrgIFS=$as_save_IFS 3281d13010c3Smrg if test -z "$ac_cv_path_EGREP"; then 3282d13010c3Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3283d13010c3Smrg fi 32848b22bf3fSmrgelse 3285d13010c3Smrg ac_cv_path_EGREP=$EGREP 32868b22bf3fSmrgfi 32878b22bf3fSmrg 3288d13010c3Smrg fi 32898b22bf3fSmrgfi 3290d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3291d13010c3Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 3292d13010c3Smrg EGREP="$ac_cv_path_EGREP" 329396a81b41Smrg 329496a81b41Smrg 3295d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3296d13010c3Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 3297d13010c3Smrgif ${ac_cv_header_stdc+:} false; then : 3298d13010c3Smrg $as_echo_n "(cached) " >&6 3299d13010c3Smrgelse 3300d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3301d13010c3Smrg/* end confdefs.h. */ 3302d13010c3Smrg#include <stdlib.h> 3303d13010c3Smrg#include <stdarg.h> 3304d13010c3Smrg#include <string.h> 3305d13010c3Smrg#include <float.h> 330696a81b41Smrg 3307d13010c3Smrgint 3308d13010c3Smrgmain () 3309d13010c3Smrg{ 331096a81b41Smrg 3311d13010c3Smrg ; 3312d13010c3Smrg return 0; 3313d13010c3Smrg} 3314d13010c3Smrg_ACEOF 3315d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 3316d13010c3Smrg ac_cv_header_stdc=yes 3317d13010c3Smrgelse 3318d13010c3Smrg ac_cv_header_stdc=no 3319d13010c3Smrgfi 3320d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 332196a81b41Smrg 3322d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3323d13010c3Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3324d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325d13010c3Smrg/* end confdefs.h. */ 3326d13010c3Smrg#include <string.h> 332796a81b41Smrg 3328d13010c3Smrg_ACEOF 3329d13010c3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3330d13010c3Smrg $EGREP "memchr" >/dev/null 2>&1; then : 333196a81b41Smrg 3332d13010c3Smrgelse 3333d13010c3Smrg ac_cv_header_stdc=no 3334d13010c3Smrgfi 3335d13010c3Smrgrm -f conftest* 33365bd32fd1Smrg 33375bd32fd1Smrgfi 33385bd32fd1Smrg 3339d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3340d13010c3Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3341d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3342d13010c3Smrg/* end confdefs.h. */ 3343d13010c3Smrg#include <stdlib.h> 33445bd32fd1Smrg 3345d13010c3Smrg_ACEOF 3346d13010c3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3347d13010c3Smrg $EGREP "free" >/dev/null 2>&1; then : 33485bd32fd1Smrg 3349d13010c3Smrgelse 3350d13010c3Smrg ac_cv_header_stdc=no 33515bd32fd1Smrgfi 3352d13010c3Smrgrm -f conftest* 33535bd32fd1Smrg 33545bd32fd1Smrgfi 3355d13010c3Smrg 3356d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3357d13010c3Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3358d13010c3Smrg if test "$cross_compiling" = yes; then : 3359d13010c3Smrg : 33605bd32fd1Smrgelse 3361d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362d13010c3Smrg/* end confdefs.h. */ 3363d13010c3Smrg#include <ctype.h> 3364d13010c3Smrg#include <stdlib.h> 3365d13010c3Smrg#if ((' ' & 0x0FF) == 0x020) 3366d13010c3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3367d13010c3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3368d13010c3Smrg#else 3369d13010c3Smrg# define ISLOWER(c) \ 3370d13010c3Smrg (('a' <= (c) && (c) <= 'i') \ 3371d13010c3Smrg || ('j' <= (c) && (c) <= 'r') \ 3372d13010c3Smrg || ('s' <= (c) && (c) <= 'z')) 3373d13010c3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3374d13010c3Smrg#endif 33755bd32fd1Smrg 3376d13010c3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3377d13010c3Smrgint 3378d13010c3Smrgmain () 3379d13010c3Smrg{ 3380d13010c3Smrg int i; 3381d13010c3Smrg for (i = 0; i < 256; i++) 3382d13010c3Smrg if (XOR (islower (i), ISLOWER (i)) 3383d13010c3Smrg || toupper (i) != TOUPPER (i)) 3384d13010c3Smrg return 2; 3385d13010c3Smrg return 0; 3386d13010c3Smrg} 3387d13010c3Smrg_ACEOF 3388d13010c3Smrgif ac_fn_c_try_run "$LINENO"; then : 33895bd32fd1Smrg 33905bd32fd1Smrgelse 3391d13010c3Smrg ac_cv_header_stdc=no 3392d13010c3Smrgfi 3393d13010c3Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3394d13010c3Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 3395d13010c3Smrgfi 33968b22bf3fSmrg 33978b22bf3fSmrgfi 33985bd32fd1Smrgfi 3399d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3400d13010c3Smrg$as_echo "$ac_cv_header_stdc" >&6; } 3401d13010c3Smrgif test $ac_cv_header_stdc = yes; then 3402d13010c3Smrg 3403d13010c3Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3404d13010c3Smrg 34058b22bf3fSmrgfi 34068b22bf3fSmrg 3407d13010c3Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3408d13010c3Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3409d13010c3Smrg inttypes.h stdint.h unistd.h 3410d13010c3Smrgdo : 3411d13010c3Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3412d13010c3Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3413d13010c3Smrg" 3414d13010c3Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3415d13010c3Smrg cat >>confdefs.h <<_ACEOF 3416d13010c3Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3417d13010c3Smrg_ACEOF 34188b22bf3fSmrg 34198b22bf3fSmrgfi 3420d13010c3Smrg 34218b22bf3fSmrgdone 34228b22bf3fSmrg 3423d13010c3Smrg 3424d13010c3Smrg 3425d13010c3Smrg ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3426d13010c3Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then : 3427d13010c3Smrg MINIX=yes 34288b22bf3fSmrgelse 3429d13010c3Smrg MINIX= 34308b22bf3fSmrgfi 34318b22bf3fSmrg 3432d13010c3Smrg 3433d13010c3Smrg if test "$MINIX" = yes; then 3434d13010c3Smrg 3435d13010c3Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3436d13010c3Smrg 3437d13010c3Smrg 3438d13010c3Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3439d13010c3Smrg 3440d13010c3Smrg 3441d13010c3Smrg$as_echo "#define _MINIX 1" >>confdefs.h 3442d13010c3Smrg 34438b22bf3fSmrg fi 34448b22bf3fSmrg 3445d13010c3Smrg 3446d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3447d13010c3Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3448d13010c3Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then : 344996a81b41Smrg $as_echo_n "(cached) " >&6 34508b22bf3fSmrgelse 3451d13010c3Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452d13010c3Smrg/* end confdefs.h. */ 34538b22bf3fSmrg 3454d13010c3Smrg# define __EXTENSIONS__ 1 3455d13010c3Smrg $ac_includes_default 3456d13010c3Smrgint 3457d13010c3Smrgmain () 3458d13010c3Smrg{ 3459d13010c3Smrg 3460d13010c3Smrg ; 3461d13010c3Smrg return 0; 3462d13010c3Smrg} 3463d13010c3Smrg_ACEOF 3464d13010c3Smrgif ac_fn_c_try_compile "$LINENO"; then : 3465d13010c3Smrg ac_cv_safe_to_define___extensions__=yes 34668b22bf3fSmrgelse 3467d13010c3Smrg ac_cv_safe_to_define___extensions__=no 34688b22bf3fSmrgfi 3469d13010c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470d13010c3Smrgfi 3471d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3472d13010c3Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3473d13010c3Smrg test $ac_cv_safe_to_define___extensions__ = yes && 3474d13010c3Smrg $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3475d13010c3Smrg 3476d13010c3Smrg $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3477d13010c3Smrg 3478d13010c3Smrg $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3479d13010c3Smrg 3480d13010c3Smrg $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3481d13010c3Smrg 3482d13010c3Smrg $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3483d13010c3Smrg 3484d13010c3Smrg 34858b22bf3fSmrg 3486d13010c3Smrg# Initialize Automake 3487d13010c3Smrgam__api_version='1.11' 34888b22bf3fSmrg 3489d13010c3Smrgac_aux_dir= 3490d13010c3Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3491d13010c3Smrg if test -f "$ac_dir/install-sh"; then 3492d13010c3Smrg ac_aux_dir=$ac_dir 3493d13010c3Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 3494d13010c3Smrg break 3495d13010c3Smrg elif test -f "$ac_dir/install.sh"; then 3496d13010c3Smrg ac_aux_dir=$ac_dir 3497d13010c3Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 3498d13010c3Smrg break 3499d13010c3Smrg elif test -f "$ac_dir/shtool"; then 3500d13010c3Smrg ac_aux_dir=$ac_dir 3501d13010c3Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 3502d13010c3Smrg break 35038b22bf3fSmrg fi 3504d13010c3Smrgdone 3505d13010c3Smrgif test -z "$ac_aux_dir"; then 3506d13010c3Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 35078b22bf3fSmrgfi 3508d13010c3Smrg 3509d13010c3Smrg# These three variables are undocumented and unsupported, 3510d13010c3Smrg# and are intended to be withdrawn in a future Autoconf release. 3511d13010c3Smrg# They can cause serious problems if a builder's source tree is in a directory 3512d13010c3Smrg# whose full name contains unusual characters. 3513d13010c3Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3514d13010c3Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3515d13010c3Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3516d13010c3Smrg 3517d13010c3Smrg 3518d13010c3Smrg# Find a good install program. We prefer a C program (faster), 3519d13010c3Smrg# so one script is as good as another. But avoid the broken or 3520d13010c3Smrg# incompatible versions: 3521d13010c3Smrg# SysV /etc/install, /usr/sbin/install 3522d13010c3Smrg# SunOS /usr/etc/install 3523d13010c3Smrg# IRIX /sbin/install 3524d13010c3Smrg# AIX /bin/install 3525d13010c3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 3526d13010c3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3527d13010c3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3528d13010c3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3529d13010c3Smrg# OS/2's system install, which has a completely different semantic 3530d13010c3Smrg# ./install, which can be erroneously created by make from ./install.sh. 3531d13010c3Smrg# Reject install programs that cannot install multiple files. 3532d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3533d13010c3Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 3534d13010c3Smrgif test -z "$INSTALL"; then 3535d13010c3Smrgif ${ac_cv_path_install+:} false; then : 353696a81b41Smrg $as_echo_n "(cached) " >&6 35378b22bf3fSmrgelse 3538d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35398b22bf3fSmrgfor as_dir in $PATH 35408b22bf3fSmrgdo 35418b22bf3fSmrg IFS=$as_save_IFS 35428b22bf3fSmrg test -z "$as_dir" && as_dir=. 3543d13010c3Smrg # Account for people who put trailing slashes in PATH elements. 3544d13010c3Smrgcase $as_dir/ in #(( 3545d13010c3Smrg ./ | .// | /[cC]/* | \ 3546d13010c3Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3547d13010c3Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3548d13010c3Smrg /usr/ucb/* ) ;; 3549d13010c3Smrg *) 3550d13010c3Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 3551d13010c3Smrg # Don't use installbsd from OSF since it installs stuff as root 3552d13010c3Smrg # by default. 3553d13010c3Smrg for ac_prog in ginstall scoinst install; do 3554d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3555d13010c3Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3556d13010c3Smrg if test $ac_prog = install && 3557d13010c3Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3558d13010c3Smrg # AIX install. It has an incompatible calling convention. 3559d13010c3Smrg : 3560d13010c3Smrg elif test $ac_prog = install && 3561d13010c3Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3562d13010c3Smrg # program-specific install script used by HP pwplus--don't use. 3563d13010c3Smrg : 3564d13010c3Smrg else 3565d13010c3Smrg rm -rf conftest.one conftest.two conftest.dir 3566d13010c3Smrg echo one > conftest.one 3567d13010c3Smrg echo two > conftest.two 3568d13010c3Smrg mkdir conftest.dir 3569d13010c3Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3570d13010c3Smrg test -s conftest.one && test -s conftest.two && 3571d13010c3Smrg test -s conftest.dir/conftest.one && 3572d13010c3Smrg test -s conftest.dir/conftest.two 3573d13010c3Smrg then 3574d13010c3Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3575d13010c3Smrg break 3 3576d13010c3Smrg fi 3577d13010c3Smrg fi 3578d13010c3Smrg fi 3579d13010c3Smrg done 3580d13010c3Smrg done 3581d13010c3Smrg ;; 3582d13010c3Smrgesac 3583d13010c3Smrg 35845bd32fd1Smrg done 35858b22bf3fSmrgIFS=$as_save_IFS 35868b22bf3fSmrg 3587d13010c3Smrgrm -rf conftest.one conftest.two conftest.dir 3588d13010c3Smrg 3589d13010c3Smrgfi 3590d13010c3Smrg if test "${ac_cv_path_install+set}" = set; then 3591d13010c3Smrg INSTALL=$ac_cv_path_install 3592d13010c3Smrg else 3593d13010c3Smrg # As a last resort, use the slow shell script. Don't cache a 3594d13010c3Smrg # value for INSTALL within a source directory, because that will 3595d13010c3Smrg # break other packages using the cache if that directory is 3596d13010c3Smrg # removed, or if the value is a relative name. 3597d13010c3Smrg INSTALL=$ac_install_sh 3598d13010c3Smrg fi 3599d13010c3Smrgfi 3600d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3601d13010c3Smrg$as_echo "$INSTALL" >&6; } 3602d13010c3Smrg 3603d13010c3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3604d13010c3Smrg# It thinks the first close brace ends the variable substitution. 3605d13010c3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3606d13010c3Smrg 3607d13010c3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3608d13010c3Smrg 3609d13010c3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3610d13010c3Smrg 3611d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3612d13010c3Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 3613d13010c3Smrg# Just in case 3614d13010c3Smrgsleep 1 3615d13010c3Smrgecho timestamp > conftest.file 3616d13010c3Smrg# Reject unsafe characters in $srcdir or the absolute working directory 3617d13010c3Smrg# name. Accept space and tab only in the latter. 3618d13010c3Smrgam_lf=' 3619d13010c3Smrg' 3620d13010c3Smrgcase `pwd` in 3621d13010c3Smrg *[\\\"\#\$\&\'\`$am_lf]*) 3622d13010c3Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3623d13010c3Smrgesac 3624d13010c3Smrgcase $srcdir in 3625d13010c3Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3626d13010c3Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3627d13010c3Smrgesac 3628d13010c3Smrg 3629d13010c3Smrg# Do `set' in a subshell so we don't clobber the current shell's 3630d13010c3Smrg# arguments. Must try -L first in case configure is actually a 3631d13010c3Smrg# symlink; some systems play weird games with the mod time of symlinks 3632d13010c3Smrg# (eg FreeBSD returns the mod time of the symlink's containing 3633d13010c3Smrg# directory). 3634d13010c3Smrgif ( 3635d13010c3Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3636d13010c3Smrg if test "$*" = "X"; then 3637d13010c3Smrg # -L didn't work. 3638d13010c3Smrg set X `ls -t "$srcdir/configure" conftest.file` 3639d13010c3Smrg fi 3640d13010c3Smrg rm -f conftest.file 3641d13010c3Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 3642d13010c3Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 3643d13010c3Smrg 3644d13010c3Smrg # If neither matched, then we have a broken ls. This can happen 3645d13010c3Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 3646d13010c3Smrg # broken ls alias from the environment. This has actually 3647d13010c3Smrg # happened. Such a system could not be considered "sane". 3648d13010c3Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3649d13010c3Smrgalias in your environment" "$LINENO" 5 3650d13010c3Smrg fi 3651d13010c3Smrg 3652d13010c3Smrg test "$2" = conftest.file 3653d13010c3Smrg ) 3654d13010c3Smrgthen 3655d13010c3Smrg # Ok. 3656d13010c3Smrg : 3657d13010c3Smrgelse 3658d13010c3Smrg as_fn_error $? "newly created file is older than distributed files! 3659d13010c3SmrgCheck your system clock" "$LINENO" 5 36608b22bf3fSmrgfi 3661d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3662d13010c3Smrg$as_echo "yes" >&6; } 3663d13010c3Smrgtest "$program_prefix" != NONE && 3664d13010c3Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 3665d13010c3Smrg# Use a double $ so make ignores it. 3666d13010c3Smrgtest "$program_suffix" != NONE && 3667d13010c3Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3668d13010c3Smrg# Double any \ or $. 3669d13010c3Smrg# By default was `s,x,x', remove it if useless. 3670d13010c3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3671d13010c3Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3672d13010c3Smrg 3673d13010c3Smrg# expand $ac_aux_dir to an absolute path 3674d13010c3Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 3675d13010c3Smrg 3676d13010c3Smrgif test x"${MISSING+set}" != xset; then 3677d13010c3Smrg case $am_aux_dir in 3678d13010c3Smrg *\ * | *\ *) 3679d13010c3Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3680d13010c3Smrg *) 3681d13010c3Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 3682d13010c3Smrg esac 36838b22bf3fSmrgfi 3684d13010c3Smrg# Use eval to expand $SHELL 3685d13010c3Smrgif eval "$MISSING --run true"; then 3686d13010c3Smrg am_missing_run="$MISSING --run " 36878b22bf3fSmrgelse 3688d13010c3Smrg am_missing_run= 3689d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3690d13010c3Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 36918b22bf3fSmrgfi 36928b22bf3fSmrg 3693d13010c3Smrgif test x"${install_sh}" != xset; then 3694d13010c3Smrg case $am_aux_dir in 3695d13010c3Smrg *\ * | *\ *) 3696d13010c3Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3697d13010c3Smrg *) 3698d13010c3Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 3699d13010c3Smrg esac 37008b22bf3fSmrgfi 3701d13010c3Smrg 3702d13010c3Smrg# Installed binaries are usually stripped using `strip' when the user 3703d13010c3Smrg# run `make install-strip'. However `strip' might not be the right 3704d13010c3Smrg# tool to use in cross-compilation environments, therefore Automake 3705d13010c3Smrg# will honor the `STRIP' environment variable to overrule this program. 3706d13010c3Smrgif test "$cross_compiling" != no; then 37078b22bf3fSmrg if test -n "$ac_tool_prefix"; then 3708d13010c3Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3709d13010c3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 37105bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 371196a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 3712d13010c3Smrgif ${ac_cv_prog_STRIP+:} false; then : 371396a81b41Smrg $as_echo_n "(cached) " >&6 37148b22bf3fSmrgelse 3715d13010c3Smrg if test -n "$STRIP"; then 3716d13010c3Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37178b22bf3fSmrgelse 37188b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37198b22bf3fSmrgfor as_dir in $PATH 37208b22bf3fSmrgdo 37218b22bf3fSmrg IFS=$as_save_IFS 37228b22bf3fSmrg test -z "$as_dir" && as_dir=. 37235bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 37248b22bf3fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3725d13010c3Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 37265bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37278b22bf3fSmrg break 2 37288b22bf3fSmrg fi 37298b22bf3fSmrgdone 37305bd32fd1Smrg done 37318b22bf3fSmrgIFS=$as_save_IFS 37328b22bf3fSmrg 37338b22bf3fSmrgfi 37348b22bf3fSmrgfi 3735d13010c3SmrgSTRIP=$ac_cv_prog_STRIP 3736d13010c3Smrgif test -n "$STRIP"; then 3737d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3738d13010c3Smrg$as_echo "$STRIP" >&6; } 37398b22bf3fSmrgelse 37405bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 374196a81b41Smrg$as_echo "no" >&6; } 37428b22bf3fSmrgfi 37438b22bf3fSmrg 37448b22bf3fSmrg 37458b22bf3fSmrgfi 3746d13010c3Smrgif test -z "$ac_cv_prog_STRIP"; then 3747d13010c3Smrg ac_ct_STRIP=$STRIP 3748d13010c3Smrg # Extract the first word of "strip", so it can be a program name with args. 3749d13010c3Smrgset dummy strip; ac_word=$2 37505bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 375196a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 3752d13010c3Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 375396a81b41Smrg $as_echo_n "(cached) " >&6 37548b22bf3fSmrgelse 3755d13010c3Smrg if test -n "$ac_ct_STRIP"; then 3756d13010c3Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37578b22bf3fSmrgelse 37588b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37598b22bf3fSmrgfor as_dir in $PATH 37608b22bf3fSmrgdo 37618b22bf3fSmrg IFS=$as_save_IFS 37628b22bf3fSmrg test -z "$as_dir" && as_dir=. 37635bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 37648b22bf3fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3765d13010c3Smrg ac_cv_prog_ac_ct_STRIP="strip" 37665bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37678b22bf3fSmrg break 2 37688b22bf3fSmrg fi 37698b22bf3fSmrgdone 37705bd32fd1Smrg done 37718b22bf3fSmrgIFS=$as_save_IFS 37728b22bf3fSmrg 37738b22bf3fSmrgfi 37748b22bf3fSmrgfi 3775d13010c3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3776d13010c3Smrgif test -n "$ac_ct_STRIP"; then 3777d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3778d13010c3Smrg$as_echo "$ac_ct_STRIP" >&6; } 37798b22bf3fSmrgelse 37805bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 378196a81b41Smrg$as_echo "no" >&6; } 37828b22bf3fSmrgfi 37838b22bf3fSmrg 3784d13010c3Smrg if test "x$ac_ct_STRIP" = x; then 3785d13010c3Smrg STRIP=":" 37868b22bf3fSmrg else 37878b22bf3fSmrg case $cross_compiling:$ac_tool_warned in 37888b22bf3fSmrgyes:) 37895bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 379096a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37918b22bf3fSmrgac_tool_warned=yes ;; 37928b22bf3fSmrgesac 3793d13010c3Smrg STRIP=$ac_ct_STRIP 37948b22bf3fSmrg fi 3795d13010c3Smrgelse 3796d13010c3Smrg STRIP="$ac_cv_prog_STRIP" 37978b22bf3fSmrgfi 37988b22bf3fSmrg 37998b22bf3fSmrgfi 3800d13010c3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 38018b22bf3fSmrg 3802d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3803d13010c3Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3804d13010c3Smrgif test -z "$MKDIR_P"; then 3805d13010c3Smrg if ${ac_cv_path_mkdir+:} false; then : 3806d13010c3Smrg $as_echo_n "(cached) " >&6 3807d13010c3Smrgelse 3808d13010c3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3809d13010c3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3810d13010c3Smrgdo 3811d13010c3Smrg IFS=$as_save_IFS 3812d13010c3Smrg test -z "$as_dir" && as_dir=. 3813d13010c3Smrg for ac_prog in mkdir gmkdir; do 3814d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3815d13010c3Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3816d13010c3Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3817d13010c3Smrg 'mkdir (GNU coreutils) '* | \ 3818d13010c3Smrg 'mkdir (coreutils) '* | \ 3819d13010c3Smrg 'mkdir (fileutils) '4.1*) 3820d13010c3Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3821d13010c3Smrg break 3;; 3822d13010c3Smrg esac 3823d13010c3Smrg done 3824d13010c3Smrg done 3825d13010c3Smrg done 3826d13010c3SmrgIFS=$as_save_IFS 38278b22bf3fSmrg 3828d13010c3Smrgfi 38298b22bf3fSmrg 3830d13010c3Smrg test -d ./--version && rmdir ./--version 3831d13010c3Smrg if test "${ac_cv_path_mkdir+set}" = set; then 3832d13010c3Smrg MKDIR_P="$ac_cv_path_mkdir -p" 3833d13010c3Smrg else 3834d13010c3Smrg # As a last resort, use the slow shell script. Don't cache a 3835d13010c3Smrg # value for MKDIR_P within a source directory, because that will 3836d13010c3Smrg # break other packages using the cache if that directory is 3837d13010c3Smrg # removed, or if the value is a relative name. 3838d13010c3Smrg MKDIR_P="$ac_install_sh -d" 38395bd32fd1Smrg fi 3840d13010c3Smrgfi 3841d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3842d13010c3Smrg$as_echo "$MKDIR_P" >&6; } 384396a81b41Smrg 3844d13010c3Smrgmkdir_p="$MKDIR_P" 3845d13010c3Smrgcase $mkdir_p in 3846d13010c3Smrg [\\/$]* | ?:[\\/]*) ;; 3847d13010c3Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3848d13010c3Smrgesac 384996a81b41Smrg 3850d13010c3Smrgfor ac_prog in gawk mawk nawk awk 38518b22bf3fSmrgdo 3852d13010c3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3853d13010c3Smrgset dummy $ac_prog; ac_word=$2 3854d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3855d13010c3Smrg$as_echo_n "checking for $ac_word... " >&6; } 3856d13010c3Smrgif ${ac_cv_prog_AWK+:} false; then : 3857d13010c3Smrg $as_echo_n "(cached) " >&6 3858d13010c3Smrgelse 3859d13010c3Smrg if test -n "$AWK"; then 3860d13010c3Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 3861d13010c3Smrgelse 3862d13010c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3863d13010c3Smrgfor as_dir in $PATH 38648b22bf3fSmrgdo 3865d13010c3Smrg IFS=$as_save_IFS 3866d13010c3Smrg test -z "$as_dir" && as_dir=. 3867d13010c3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3868d13010c3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3869d13010c3Smrg ac_cv_prog_AWK="$ac_prog" 3870d13010c3Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3871d13010c3Smrg break 2 3872d13010c3Smrg fi 38738b22bf3fSmrgdone 3874d13010c3Smrg done 3875d13010c3SmrgIFS=$as_save_IFS 38768b22bf3fSmrg 38778b22bf3fSmrgfi 3878d13010c3Smrgfi 3879d13010c3SmrgAWK=$ac_cv_prog_AWK 3880d13010c3Smrgif test -n "$AWK"; then 3881d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3882d13010c3Smrg$as_echo "$AWK" >&6; } 3883d13010c3Smrgelse 38845bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38855bd32fd1Smrg$as_echo "no" >&6; } 3886d13010c3Smrgfi 38878b22bf3fSmrg 3888d13010c3Smrg 3889d13010c3Smrg test -n "$AWK" && break 3890d13010c3Smrgdone 3891d13010c3Smrg 3892d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3893d13010c3Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3894d13010c3Smrgset x ${MAKE-make} 3895d13010c3Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3896d13010c3Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3897d13010c3Smrg $as_echo_n "(cached) " >&6 38985bd32fd1Smrgelse 3899d13010c3Smrg cat >conftest.make <<\_ACEOF 3900d13010c3SmrgSHELL = /bin/sh 3901d13010c3Smrgall: 3902d13010c3Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 3903d13010c3Smrg_ACEOF 3904d13010c3Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3905d13010c3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 3906d13010c3Smrg *@@@%%%=?*=@@@%%%*) 3907d13010c3Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 3908d13010c3Smrg *) 3909d13010c3Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 3910d13010c3Smrgesac 3911d13010c3Smrgrm -f conftest.make 3912d13010c3Smrgfi 3913d13010c3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 39145bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39155bd32fd1Smrg$as_echo "yes" >&6; } 3916d13010c3Smrg SET_MAKE= 3917d13010c3Smrgelse 3918d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3919d13010c3Smrg$as_echo "no" >&6; } 3920d13010c3Smrg SET_MAKE="MAKE=${MAKE-make}" 39218b22bf3fSmrgfi 39228b22bf3fSmrg 3923d13010c3Smrgrm -rf .tst 2>/dev/null 3924d13010c3Smrgmkdir .tst 2>/dev/null 3925d13010c3Smrgif test -d .tst; then 3926d13010c3Smrg am__leading_dot=. 39278b22bf3fSmrgelse 3928d13010c3Smrg am__leading_dot=_ 39298b22bf3fSmrgfi 3930d13010c3Smrgrmdir .tst 2>/dev/null 39315bd32fd1Smrg 3932d13010c3SmrgDEPDIR="${am__leading_dot}deps" 39335bd32fd1Smrg 3934d13010c3Smrgac_config_commands="$ac_config_commands depfiles" 39358b22bf3fSmrg 39368b22bf3fSmrg 3937d13010c3Smrgam_make=${MAKE-make} 3938d13010c3Smrgcat > confinc << 'END' 3939d13010c3Smrgam__doit: 3940d13010c3Smrg @echo this is the am__doit target 3941d13010c3Smrg.PHONY: am__doit 3942d13010c3SmrgEND 3943d13010c3Smrg# If we don't find an include directive, just comment out the code. 3944d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3945d13010c3Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 3946d13010c3Smrgam__include="#" 3947d13010c3Smrgam__quote= 3948d13010c3Smrg_am_result=none 3949d13010c3Smrg# First try GNU make style include. 3950d13010c3Smrgecho "include confinc" > confmf 3951d13010c3Smrg# Ignore all kinds of additional output from `make'. 3952d13010c3Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 3953d13010c3Smrg*the\ am__doit\ target*) 3954d13010c3Smrg am__include=include 3955d13010c3Smrg am__quote= 3956d13010c3Smrg _am_result=GNU 3957d13010c3Smrg ;; 39588b22bf3fSmrgesac 3959d13010c3Smrg# Now try BSD make style include. 3960d13010c3Smrgif test "$am__include" = "#"; then 3961d13010c3Smrg echo '.include "confinc"' > confmf 3962d13010c3Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 3963d13010c3Smrg *the\ am__doit\ target*) 3964d13010c3Smrg am__include=.include 3965d13010c3Smrg am__quote="\"" 3966d13010c3Smrg _am_result=BSD 3967d13010c3Smrg ;; 3968d13010c3Smrg esac 3969d13010c3Smrgfi 39708b22bf3fSmrg 3971d13010c3Smrg 3972d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3973d13010c3Smrg$as_echo "$_am_result" >&6; } 3974d13010c3Smrgrm -f confinc confmf 3975d13010c3Smrg 3976d13010c3Smrg# Check whether --enable-dependency-tracking was given. 3977d13010c3Smrgif test "${enable_dependency_tracking+set}" = set; then : 3978d13010c3Smrg enableval=$enable_dependency_tracking; 39798b22bf3fSmrgfi 3980d13010c3Smrg 3981d13010c3Smrgif test "x$enable_dependency_tracking" != xno; then 3982d13010c3Smrg am_depcomp="$ac_aux_dir/depcomp" 3983d13010c3Smrg AMDEPBACKSLASH='\' 39848b22bf3fSmrgfi 3985d13010c3Smrg if test "x$enable_dependency_tracking" != xno; then 3986d13010c3Smrg AMDEP_TRUE= 3987d13010c3Smrg AMDEP_FALSE='#' 39888b22bf3fSmrgelse 3989d13010c3Smrg AMDEP_TRUE='#' 3990d13010c3Smrg AMDEP_FALSE= 3991d13010c3Smrgfi 39928b22bf3fSmrg 39938b22bf3fSmrg 3994d13010c3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 3995d13010c3Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3996d13010c3Smrg # is not polluted with repeated "-I." 3997d13010c3Smrg am__isrc=' -I$(srcdir)' 3998d13010c3Smrg # test to see if srcdir already configured 3999d13010c3Smrg if test -f $srcdir/config.status; then 4000d13010c3Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4001d13010c3Smrg fi 40028b22bf3fSmrgfi 40038b22bf3fSmrg 4004d13010c3Smrg# test whether we have cygpath 4005d13010c3Smrgif test -z "$CYGPATH_W"; then 4006d13010c3Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 4007d13010c3Smrg CYGPATH_W='cygpath -w' 4008d13010c3Smrg else 4009d13010c3Smrg CYGPATH_W=echo 4010d13010c3Smrg fi 40118b22bf3fSmrgfi 40128b22bf3fSmrg 40138b22bf3fSmrg 4014d13010c3Smrg# Define the identity of the package. 4015d13010c3Smrg PACKAGE='xrdb' 4016d13010c3Smrg VERSION='1.0.8' 4017d13010c3Smrg 4018d13010c3Smrg 4019d13010c3Smrgcat >>confdefs.h <<_ACEOF 4020d13010c3Smrg#define PACKAGE "$PACKAGE" 40218b22bf3fSmrg_ACEOF 40228b22bf3fSmrg 40238b22bf3fSmrg 4024d13010c3Smrgcat >>confdefs.h <<_ACEOF 4025d13010c3Smrg#define VERSION "$VERSION" 40268b22bf3fSmrg_ACEOF 40278b22bf3fSmrg 4028d13010c3Smrg# Some tools Automake needs. 40298b22bf3fSmrg 4030d13010c3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 40318b22bf3fSmrg 40328b22bf3fSmrg 4033d13010c3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 40348b22bf3fSmrg 40358b22bf3fSmrg 4036d13010c3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4037d13010c3Smrg 4038d13010c3Smrg 4039d13010c3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4040d13010c3Smrg 4041d13010c3Smrg 4042d13010c3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4043d13010c3Smrg 4044d13010c3Smrg# We need awk for the "check" target. The system "awk" is bad on 4045d13010c3Smrg# some platforms. 4046d13010c3Smrg# Always define AMTAR for backward compatibility. 4047d13010c3Smrg 4048d13010c3SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 4049d13010c3Smrg 4050d13010c3Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 40518b22bf3fSmrg 40528b22bf3fSmrg 40538b22bf3fSmrg 40548b22bf3fSmrg 40558b22bf3fSmrgdepcc="$CC" am_compiler_list= 40568b22bf3fSmrg 40575bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 405896a81b41Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 40595bd32fd1Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 406096a81b41Smrg $as_echo_n "(cached) " >&6 40618b22bf3fSmrgelse 40628b22bf3fSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 40638b22bf3fSmrg # We make a subdir and do the tests there. Otherwise we can end up 40648b22bf3fSmrg # making bogus files that we don't know about and never remove. For 40658b22bf3fSmrg # instance it was reported that on HP-UX the gcc test will end up 40668b22bf3fSmrg # making a dummy file named `D' -- because `-MD' means `put the output 40678b22bf3fSmrg # in D'. 40688b22bf3fSmrg mkdir conftest.dir 40698b22bf3fSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 40708b22bf3fSmrg # using a relative directory. 40718b22bf3fSmrg cp "$am_depcomp" conftest.dir 40728b22bf3fSmrg cd conftest.dir 40738b22bf3fSmrg # We will build objects and dependencies in a subdirectory because 40748b22bf3fSmrg # it helps to detect inapplicable dependency modes. For instance 40758b22bf3fSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 40768b22bf3fSmrg # side effect of compilation, but ICC will put the dependencies in 40778b22bf3fSmrg # the current directory while Tru64 will put them in the object 40788b22bf3fSmrg # directory. 40798b22bf3fSmrg mkdir sub 40808b22bf3fSmrg 40818b22bf3fSmrg am_cv_CC_dependencies_compiler_type=none 40828b22bf3fSmrg if test "$am_compiler_list" = ""; then 40838b22bf3fSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 40848b22bf3fSmrg fi 408596a81b41Smrg am__universal=false 408696a81b41Smrg case " $depcc " in #( 408796a81b41Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 408896a81b41Smrg esac 408996a81b41Smrg 40908b22bf3fSmrg for depmode in $am_compiler_list; do 40918b22bf3fSmrg # Setup a source with many dependencies, because some compilers 40928b22bf3fSmrg # like to wrap large dependency lists on column 80 (with \), and 40938b22bf3fSmrg # we should not choose a depcomp mode which is confused by this. 40948b22bf3fSmrg # 40958b22bf3fSmrg # We need to recreate these files for each test, as the compiler may 40968b22bf3fSmrg # overwrite some of them when testing with obscure command lines. 40978b22bf3fSmrg # This happens at least with the AIX C compiler. 40988b22bf3fSmrg : > sub/conftest.c 40998b22bf3fSmrg for i in 1 2 3 4 5 6; do 41008b22bf3fSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 41018b22bf3fSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 41028b22bf3fSmrg # Solaris 8's {/usr,}/bin/sh. 41038b22bf3fSmrg touch sub/conftst$i.h 41048b22bf3fSmrg done 41058b22bf3fSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 41068b22bf3fSmrg 410796a81b41Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 410896a81b41Smrg # mode. It turns out that the SunPro C++ compiler does not properly 410996a81b41Smrg # handle `-M -o', and we need to detect this. Also, some Intel 411096a81b41Smrg # versions had trouble with output in subdirs 411196a81b41Smrg am__obj=sub/conftest.${OBJEXT-o} 411296a81b41Smrg am__minus_obj="-o $am__obj" 41138b22bf3fSmrg case $depmode in 411496a81b41Smrg gcc) 411596a81b41Smrg # This depmode causes a compiler race in universal mode. 411696a81b41Smrg test "$am__universal" = false || continue 411796a81b41Smrg ;; 41188b22bf3fSmrg nosideeffect) 41198b22bf3fSmrg # after this tag, mechanisms are not by side-effect, so they'll 41208b22bf3fSmrg # only be used when explicitly requested 41218b22bf3fSmrg if test "x$enable_dependency_tracking" = xyes; then 41228b22bf3fSmrg continue 41238b22bf3fSmrg else 41248b22bf3fSmrg break 41258b22bf3fSmrg fi 41268b22bf3fSmrg ;; 412796a81b41Smrg msvisualcpp | msvcmsys) 412896a81b41Smrg # This compiler won't grok `-c -o', but also, the minuso test has 412996a81b41Smrg # not run yet. These depmodes are late enough in the game, and 413096a81b41Smrg # so weak that their functioning should not be impacted. 413196a81b41Smrg am__obj=conftest.${OBJEXT-o} 413296a81b41Smrg am__minus_obj= 413396a81b41Smrg ;; 41348b22bf3fSmrg none) break ;; 41358b22bf3fSmrg esac 41368b22bf3fSmrg if depmode=$depmode \ 413796a81b41Smrg source=sub/conftest.c object=$am__obj \ 41388b22bf3fSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 413996a81b41Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 41408b22bf3fSmrg >/dev/null 2>conftest.err && 41418b22bf3fSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 41428b22bf3fSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 414396a81b41Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 41448b22bf3fSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 41458b22bf3fSmrg # icc doesn't choke on unknown options, it will just issue warnings 41468b22bf3fSmrg # or remarks (even with -Werror). So we grep stderr for any message 41478b22bf3fSmrg # that says an option was ignored or not supported. 41488b22bf3fSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 41498b22bf3fSmrg # icc: Command line warning: ignoring option '-M'; no argument required 41508b22bf3fSmrg # The diagnosis changed in icc 8.0: 41518b22bf3fSmrg # icc: Command line remark: option '-MP' not supported 41528b22bf3fSmrg if (grep 'ignoring option' conftest.err || 41538b22bf3fSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 41548b22bf3fSmrg am_cv_CC_dependencies_compiler_type=$depmode 41558b22bf3fSmrg break 4156d13010c3Smrg fi 4157d13010c3Smrg fi 4158d13010c3Smrg done 41598b22bf3fSmrg 4160d13010c3Smrg cd .. 4161d13010c3Smrg rm -rf conftest.dir 41628b22bf3fSmrgelse 4163d13010c3Smrg am_cv_CC_dependencies_compiler_type=none 41648b22bf3fSmrgfi 41658b22bf3fSmrg 41668b22bf3fSmrgfi 4167d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4168d13010c3Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4169d13010c3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 41708b22bf3fSmrg 4171d13010c3Smrg if 4172d13010c3Smrg test "x$enable_dependency_tracking" != xno \ 4173d13010c3Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4174d13010c3Smrg am__fastdepCC_TRUE= 4175d13010c3Smrg am__fastdepCC_FALSE='#' 41768b22bf3fSmrgelse 4177d13010c3Smrg am__fastdepCC_TRUE='#' 4178d13010c3Smrg am__fastdepCC_FALSE= 41798b22bf3fSmrgfi 41808b22bf3fSmrg 4181d13010c3Smrg 4182d13010c3Smrg 4183d13010c3Smrg 4184d13010c3Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4185d13010c3Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4186d13010c3Smrg # Check whether --enable-maintainer-mode was given. 4187d13010c3Smrgif test "${enable_maintainer_mode+set}" = set; then : 4188d13010c3Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 41895bd32fd1Smrgelse 4190d13010c3Smrg USE_MAINTAINER_MODE=no 41918b22bf3fSmrgfi 41928b22bf3fSmrg 4193d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4194d13010c3Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 4195d13010c3Smrg if test $USE_MAINTAINER_MODE = yes; then 4196d13010c3Smrg MAINTAINER_MODE_TRUE= 4197d13010c3Smrg MAINTAINER_MODE_FALSE='#' 41988b22bf3fSmrgelse 4199d13010c3Smrg MAINTAINER_MODE_TRUE='#' 4200d13010c3Smrg MAINTAINER_MODE_FALSE= 42018b22bf3fSmrgfi 42028b22bf3fSmrg 4203d13010c3Smrg MAINT=$MAINTAINER_MODE_TRUE 42045bd32fd1Smrg 42058b22bf3fSmrg 42068b22bf3fSmrg 4207d13010c3Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 42088b22bf3fSmrg 42098b22bf3fSmrg 42108b22bf3fSmrg 42118b22bf3fSmrg 42128b22bf3fSmrg 4213d13010c3Smrg 4214d13010c3Smrg 4215d13010c3Smrg 4216d13010c3Smrg 4217d13010c3Smrg 4218d13010c3Smrg 4219d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4220d13010c3Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4221d13010c3Smrgif ${ac_cv_prog_cc_c99+:} false; then : 422296a81b41Smrg $as_echo_n "(cached) " >&6 42238b22bf3fSmrgelse 4224d13010c3Smrg ac_cv_prog_cc_c99=no 4225d13010c3Smrgac_save_CC=$CC 4226d13010c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227d13010c3Smrg/* end confdefs.h. */ 4228d13010c3Smrg#include <stdarg.h> 4229d13010c3Smrg#include <stdbool.h> 4230d13010c3Smrg#include <stdlib.h> 4231d13010c3Smrg#include <wchar.h> 4232d13010c3Smrg#include <stdio.h> 4233d13010c3Smrg 4234d13010c3Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 4235d13010c3Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 4236d13010c3Smrg#define showlist(...) puts (#__VA_ARGS__) 4237d13010c3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4238d13010c3Smrgstatic void 4239d13010c3Smrgtest_varargs_macros (void) 4240d13010c3Smrg{ 4241d13010c3Smrg int x = 1234; 4242d13010c3Smrg int y = 5678; 4243d13010c3Smrg debug ("Flag"); 4244d13010c3Smrg debug ("X = %d\n", x); 4245d13010c3Smrg showlist (The first, second, and third items.); 4246d13010c3Smrg report (x>y, "x is %d but y is %d", x, y); 4247d13010c3Smrg} 4248d13010c3Smrg 4249d13010c3Smrg// Check long long types. 4250d13010c3Smrg#define BIG64 18446744073709551615ull 4251d13010c3Smrg#define BIG32 4294967295ul 4252d13010c3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4253d13010c3Smrg#if !BIG_OK 4254d13010c3Smrg your preprocessor is broken; 4255d13010c3Smrg#endif 4256d13010c3Smrg#if BIG_OK 4257d13010c3Smrg#else 4258d13010c3Smrg your preprocessor is broken; 4259d13010c3Smrg#endif 4260d13010c3Smrgstatic long long int bignum = -9223372036854775807LL; 4261d13010c3Smrgstatic unsigned long long int ubignum = BIG64; 42628b22bf3fSmrg 4263d13010c3Smrgstruct incomplete_array 4264d13010c3Smrg{ 4265d13010c3Smrg int datasize; 4266d13010c3Smrg double data[]; 4267d13010c3Smrg}; 42688b22bf3fSmrg 4269d13010c3Smrgstruct named_init { 4270d13010c3Smrg int number; 4271d13010c3Smrg const wchar_t *name; 4272d13010c3Smrg double average; 4273d13010c3Smrg}; 42748b22bf3fSmrg 4275d13010c3Smrgtypedef const char *ccp; 42768b22bf3fSmrg 4277d13010c3Smrgstatic inline int 4278d13010c3Smrgtest_restrict (ccp restrict text) 4279d13010c3Smrg{ 4280d13010c3Smrg // See if C++-style comments work. 4281d13010c3Smrg // Iterate through items via the restricted pointer. 4282d13010c3Smrg // Also check for declarations in for loops. 4283d13010c3Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4284d13010c3Smrg continue; 4285d13010c3Smrg return 0; 4286d13010c3Smrg} 42878b22bf3fSmrg 4288d13010c3Smrg// Check varargs and va_copy. 4289d13010c3Smrgstatic void 4290d13010c3Smrgtest_varargs (const char *format, ...) 42918b22bf3fSmrg{ 4292d13010c3Smrg va_list args; 4293d13010c3Smrg va_start (args, format); 4294d13010c3Smrg va_list args_copy; 4295d13010c3Smrg va_copy (args_copy, args); 42968b22bf3fSmrg 4297d13010c3Smrg const char *str; 4298d13010c3Smrg int number; 4299d13010c3Smrg float fnumber; 4300d13010c3Smrg 4301d13010c3Smrg while (*format) 4302d13010c3Smrg { 4303d13010c3Smrg switch (*format++) 4304d13010c3Smrg { 4305d13010c3Smrg case 's': // string 4306d13010c3Smrg str = va_arg (args_copy, const char *); 4307d13010c3Smrg break; 4308d13010c3Smrg case 'd': // int 4309d13010c3Smrg number = va_arg (args_copy, int); 4310d13010c3Smrg break; 4311d13010c3Smrg case 'f': // float 4312d13010c3Smrg fnumber = va_arg (args_copy, double); 4313d13010c3Smrg break; 4314d13010c3Smrg default: 4315d13010c3Smrg break; 4316d13010c3Smrg } 4317d13010c3Smrg } 4318d13010c3Smrg va_end (args_copy); 4319d13010c3Smrg va_end (args); 43208b22bf3fSmrg} 43218b22bf3fSmrg 4322d13010c3Smrgint 4323d13010c3Smrgmain () 4324d13010c3Smrg{ 43258b22bf3fSmrg 4326d13010c3Smrg // Check bool. 4327d13010c3Smrg _Bool success = false; 43285bd32fd1Smrg 4329d13010c3Smrg // Check restrict. 4330d13010c3Smrg if (test_restrict ("String literal") == 0) 4331d13010c3Smrg success = true; 4332d13010c3Smrg char *restrict newvar = "Another string"; 43338b22bf3fSmrg 4334d13010c3Smrg // Check varargs. 4335d13010c3Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 4336d13010c3Smrg test_varargs_macros (); 43378b22bf3fSmrg 4338d13010c3Smrg // Check flexible array members. 4339d13010c3Smrg struct incomplete_array *ia = 4340d13010c3Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4341d13010c3Smrg ia->datasize = 10; 4342d13010c3Smrg for (int i = 0; i < ia->datasize; ++i) 4343d13010c3Smrg ia->data[i] = i * 1.234; 43448b22bf3fSmrg 4345d13010c3Smrg // Check named initializers. 4346d13010c3Smrg struct named_init ni = { 4347d13010c3Smrg .number = 34, 4348d13010c3Smrg .name = L"Test wide string", 4349d13010c3Smrg .average = 543.34343, 4350d13010c3Smrg }; 43515bd32fd1Smrg 4352d13010c3Smrg ni.number = 58; 43538b22bf3fSmrg 4354d13010c3Smrg int dynamic_array[ni.number]; 4355d13010c3Smrg dynamic_array[ni.number - 1] = 543; 43568b22bf3fSmrg 4357d13010c3Smrg // work around unused variable warnings 4358d13010c3Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4359d13010c3Smrg || dynamic_array[ni.number - 1] != 543); 43608b22bf3fSmrg 4361d13010c3Smrg ; 43628b22bf3fSmrg return 0; 43638b22bf3fSmrg} 43648b22bf3fSmrg_ACEOF 4365d13010c3Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4366d13010c3Smrgdo 4367d13010c3Smrg CC="$ac_save_CC $ac_arg" 4368d13010c3Smrg if ac_fn_c_try_compile "$LINENO"; then : 4369d13010c3Smrg ac_cv_prog_cc_c99=$ac_arg 43708b22bf3fSmrgfi 4371d13010c3Smrgrm -f core conftest.err conftest.$ac_objext 4372d13010c3Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4373d13010c3Smrgdone 4374d13010c3Smrgrm -f conftest.$ac_ext 4375d13010c3SmrgCC=$ac_save_CC 43768b22bf3fSmrg 43778b22bf3fSmrgfi 4378d13010c3Smrg# AC_CACHE_VAL 4379d13010c3Smrgcase "x$ac_cv_prog_cc_c99" in 4380d13010c3Smrg x) 4381d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4382d13010c3Smrg$as_echo "none needed" >&6; } ;; 4383d13010c3Smrg xno) 4384d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4385d13010c3Smrg$as_echo "unsupported" >&6; } ;; 4386d13010c3Smrg *) 4387d13010c3Smrg CC="$CC $ac_cv_prog_cc_c99" 4388d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4389d13010c3Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4390d13010c3Smrgesac 4391d13010c3Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 43928b22bf3fSmrg 43938b22bf3fSmrgfi 43948b22bf3fSmrg 43958b22bf3fSmrg 43968b22bf3fSmrg 4397d13010c3Smrg 43988b22bf3fSmrg 43998b22bf3fSmrg 44005bd32fd1Smrg 44015bd32fd1Smrg 44025bd32fd1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 44035bd32fd1Smrg if test -n "$ac_tool_prefix"; then 44045bd32fd1Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 44055bd32fd1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 44065bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44075bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; } 44085bd32fd1Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 440996a81b41Smrg $as_echo_n "(cached) " >&6 44108b22bf3fSmrgelse 44115bd32fd1Smrg case $PKG_CONFIG in 44125bd32fd1Smrg [\\/]* | ?:[\\/]*) 44135bd32fd1Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 44145bd32fd1Smrg ;; 44155bd32fd1Smrg *) 44165bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44175bd32fd1Smrgfor as_dir in $PATH 441896a81b41Smrgdo 44195bd32fd1Smrg IFS=$as_save_IFS 44205bd32fd1Smrg test -z "$as_dir" && as_dir=. 44215bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 44225bd32fd1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 44235bd32fd1Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 44245bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44255bd32fd1Smrg break 2 44265bd32fd1Smrg fi 44275bd32fd1Smrgdone 44285bd32fd1Smrg done 44295bd32fd1SmrgIFS=$as_save_IFS 44305bd32fd1Smrg 44315bd32fd1Smrg ;; 44328b22bf3fSmrgesac 44335bd32fd1Smrgfi 44345bd32fd1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 44355bd32fd1Smrgif test -n "$PKG_CONFIG"; then 44365bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 44375bd32fd1Smrg$as_echo "$PKG_CONFIG" >&6; } 44388b22bf3fSmrgelse 44395bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44405bd32fd1Smrg$as_echo "no" >&6; } 44418b22bf3fSmrgfi 44428b22bf3fSmrg 44438b22bf3fSmrg 44448b22bf3fSmrgfi 44455bd32fd1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 44465bd32fd1Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 44475bd32fd1Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 44485bd32fd1Smrgset dummy pkg-config; ac_word=$2 44495bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44505bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; } 44515bd32fd1Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 44525bd32fd1Smrg $as_echo_n "(cached) " >&6 44535bd32fd1Smrgelse 44545bd32fd1Smrg case $ac_pt_PKG_CONFIG in 44555bd32fd1Smrg [\\/]* | ?:[\\/]*) 44565bd32fd1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 44575bd32fd1Smrg ;; 445896a81b41Smrg *) 44595bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44605bd32fd1Smrgfor as_dir in $PATH 44615bd32fd1Smrgdo 44625bd32fd1Smrg IFS=$as_save_IFS 44635bd32fd1Smrg test -z "$as_dir" && as_dir=. 44645bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 44655bd32fd1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 44665bd32fd1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 44675bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44685bd32fd1Smrg break 2 44695bd32fd1Smrg fi 44705bd32fd1Smrgdone 44715bd32fd1Smrg done 44725bd32fd1SmrgIFS=$as_save_IFS 44735bd32fd1Smrg 44745bd32fd1Smrg ;; 447596a81b41Smrgesac 44765bd32fd1Smrgfi 44775bd32fd1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 44785bd32fd1Smrgif test -n "$ac_pt_PKG_CONFIG"; then 44795bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 44805bd32fd1Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 44815bd32fd1Smrgelse 44825bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44835bd32fd1Smrg$as_echo "no" >&6; } 44845bd32fd1Smrgfi 44858b22bf3fSmrg 44865bd32fd1Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 44875bd32fd1Smrg PKG_CONFIG="" 44885bd32fd1Smrg else 44895bd32fd1Smrg case $cross_compiling:$ac_tool_warned in 44905bd32fd1Smrgyes:) 44915bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44925bd32fd1Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44935bd32fd1Smrgac_tool_warned=yes ;; 44945bd32fd1Smrgesac 44955bd32fd1Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 44965bd32fd1Smrg fi 44975bd32fd1Smrgelse 44985bd32fd1Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 44995bd32fd1Smrgfi 45008b22bf3fSmrg 45015bd32fd1Smrgfi 45025bd32fd1Smrgif test -n "$PKG_CONFIG"; then 45035bd32fd1Smrg _pkg_min_version=0.9.0 45045bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 45055bd32fd1Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 45065bd32fd1Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 45075bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45085bd32fd1Smrg$as_echo "yes" >&6; } 45095bd32fd1Smrg else 45105bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45115bd32fd1Smrg$as_echo "no" >&6; } 45125bd32fd1Smrg PKG_CONFIG="" 45135bd32fd1Smrg fi 45145bd32fd1Smrgfi 451596a81b41Smrg# Make sure we can run config.sub. 451696a81b41Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 45175bd32fd1Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 451896a81b41Smrg 45195bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 452096a81b41Smrg$as_echo_n "checking build system type... " >&6; } 45215bd32fd1Smrgif ${ac_cv_build+:} false; then : 452296a81b41Smrg $as_echo_n "(cached) " >&6 452396a81b41Smrgelse 452496a81b41Smrg ac_build_alias=$build_alias 452596a81b41Smrgtest "x$ac_build_alias" = x && 452696a81b41Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 452796a81b41Smrgtest "x$ac_build_alias" = x && 45285bd32fd1Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 452996a81b41Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 45305bd32fd1Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 453196a81b41Smrg 453296a81b41Smrgfi 45335bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 453496a81b41Smrg$as_echo "$ac_cv_build" >&6; } 453596a81b41Smrgcase $ac_cv_build in 453696a81b41Smrg*-*-*) ;; 45375bd32fd1Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 453896a81b41Smrgesac 453996a81b41Smrgbuild=$ac_cv_build 454096a81b41Smrgac_save_IFS=$IFS; IFS='-' 454196a81b41Smrgset x $ac_cv_build 454296a81b41Smrgshift 454396a81b41Smrgbuild_cpu=$1 454496a81b41Smrgbuild_vendor=$2 454596a81b41Smrgshift; shift 454696a81b41Smrg# Remember, the first character of IFS is used to create $*, 454796a81b41Smrg# except with old shells: 454896a81b41Smrgbuild_os=$* 454996a81b41SmrgIFS=$ac_save_IFS 455096a81b41Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 455196a81b41Smrg 455296a81b41Smrg 45535bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 455496a81b41Smrg$as_echo_n "checking host system type... " >&6; } 45555bd32fd1Smrgif ${ac_cv_host+:} false; then : 455696a81b41Smrg $as_echo_n "(cached) " >&6 455796a81b41Smrgelse 455896a81b41Smrg if test "x$host_alias" = x; then 455996a81b41Smrg ac_cv_host=$ac_cv_build 456096a81b41Smrgelse 456196a81b41Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 45625bd32fd1Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 456396a81b41Smrgfi 456496a81b41Smrg 456596a81b41Smrgfi 45665bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 456796a81b41Smrg$as_echo "$ac_cv_host" >&6; } 456896a81b41Smrgcase $ac_cv_host in 456996a81b41Smrg*-*-*) ;; 45705bd32fd1Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 457196a81b41Smrgesac 457296a81b41Smrghost=$ac_cv_host 457396a81b41Smrgac_save_IFS=$IFS; IFS='-' 457496a81b41Smrgset x $ac_cv_host 457596a81b41Smrgshift 457696a81b41Smrghost_cpu=$1 457796a81b41Smrghost_vendor=$2 457896a81b41Smrgshift; shift 457996a81b41Smrg# Remember, the first character of IFS is used to create $*, 458096a81b41Smrg# except with old shells: 458196a81b41Smrghost_os=$* 458296a81b41SmrgIFS=$ac_save_IFS 458396a81b41Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 458496a81b41Smrg 458596a81b41Smrg 45865bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 45875bd32fd1Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 45885bd32fd1Smrgif ${ac_cv_path_SED+:} false; then : 458996a81b41Smrg $as_echo_n "(cached) " >&6 459096a81b41Smrgelse 45915bd32fd1Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 45925bd32fd1Smrg for ac_i in 1 2 3 4 5 6 7; do 45935bd32fd1Smrg ac_script="$ac_script$as_nl$ac_script" 45945bd32fd1Smrg done 45955bd32fd1Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 45965bd32fd1Smrg { ac_script=; unset ac_script;} 45975bd32fd1Smrg if test -z "$SED"; then 45985bd32fd1Smrg ac_path_SED_found=false 45995bd32fd1Smrg # Loop through the user's path and test for each of PROGNAME-LIST 46005bd32fd1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46015bd32fd1Smrgfor as_dir in $PATH 46025bd32fd1Smrgdo 46035bd32fd1Smrg IFS=$as_save_IFS 46045bd32fd1Smrg test -z "$as_dir" && as_dir=. 46055bd32fd1Smrg for ac_prog in sed gsed; do 46065bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 46075bd32fd1Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 46085bd32fd1Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 46095bd32fd1Smrg# Check for GNU ac_path_SED and select it if it is found. 46105bd32fd1Smrg # Check for GNU $ac_path_SED 46115bd32fd1Smrgcase `"$ac_path_SED" --version 2>&1` in 46125bd32fd1Smrg*GNU*) 46135bd32fd1Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 46145bd32fd1Smrg*) 46155bd32fd1Smrg ac_count=0 46165bd32fd1Smrg $as_echo_n 0123456789 >"conftest.in" 46175bd32fd1Smrg while : 46185bd32fd1Smrg do 46195bd32fd1Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 46205bd32fd1Smrg mv "conftest.tmp" "conftest.in" 46215bd32fd1Smrg cp "conftest.in" "conftest.nl" 46225bd32fd1Smrg $as_echo '' >> "conftest.nl" 46235bd32fd1Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 46245bd32fd1Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 46255bd32fd1Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 46265bd32fd1Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 46275bd32fd1Smrg # Best one so far, save it but keep looking for a better one 46285bd32fd1Smrg ac_cv_path_SED="$ac_path_SED" 46295bd32fd1Smrg ac_path_SED_max=$ac_count 46305bd32fd1Smrg fi 46315bd32fd1Smrg # 10*(2^10) chars as input seems more than enough 46325bd32fd1Smrg test $ac_count -gt 10 && break 46335bd32fd1Smrg done 46345bd32fd1Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 463596a81b41Smrgesac 463696a81b41Smrg 46375bd32fd1Smrg $ac_path_SED_found && break 3 46385bd32fd1Smrg done 46395bd32fd1Smrg done 46405bd32fd1Smrg done 46415bd32fd1SmrgIFS=$as_save_IFS 46425bd32fd1Smrg if test -z "$ac_cv_path_SED"; then 46435bd32fd1Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 46445bd32fd1Smrg fi 464596a81b41Smrgelse 46465bd32fd1Smrg ac_cv_path_SED=$SED 464796a81b41Smrgfi 464896a81b41Smrg 464996a81b41Smrgfi 46505bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 46515bd32fd1Smrg$as_echo "$ac_cv_path_SED" >&6; } 46525bd32fd1Smrg SED="$ac_cv_path_SED" 46535bd32fd1Smrg rm -f conftest.sed 465496a81b41Smrg 465596a81b41Smrg 465696a81b41Smrg 465796a81b41Smrg 465896a81b41Smrg 46595bd32fd1Smrgif test "x$GCC" = xyes ; then 46605bd32fd1Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 46615bd32fd1Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 46625bd32fd1Smrg-Wbad-function-cast -Wformat=2" 46635bd32fd1Smrg case `$CC -dumpversion` in 46645bd32fd1Smrg 3.4.* | 4.*) 46655bd32fd1Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 46665bd32fd1Smrg ;; 46675bd32fd1Smrg esac 466896a81b41Smrgelse 46695bd32fd1Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 46705bd32fd1Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 467196a81b41Smrg SUNCC="yes" 467296a81b41Smrgelse 467396a81b41Smrg SUNCC="no" 467496a81b41Smrgfi 467596a81b41Smrg 46765bd32fd1Smrg if test "x$SUNCC" = "xyes"; then 46775bd32fd1Smrg CWARNFLAGS="-v" 46785bd32fd1Smrg fi 46795bd32fd1Smrgfi 46805bd32fd1Smrg 46815bd32fd1Smrg 46825bd32fd1Smrg 46835bd32fd1Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 46845bd32fd1Smrg 46855bd32fd1Smrg 468696a81b41Smrg 46875bd32fd1Smrg# Check whether --enable-strict-compilation was given. 46885bd32fd1Smrgif test "${enable_strict_compilation+set}" = set; then : 46895bd32fd1Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 46905bd32fd1Smrgelse 46915bd32fd1Smrg STRICT_COMPILE=no 469296a81b41Smrgfi 469396a81b41Smrg 46945bd32fd1Smrgif test "x$STRICT_COMPILE" = "xyes"; then 46955bd32fd1Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 46965bd32fd1Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 46975bd32fd1Smrg SUNCC="yes" 46985bd32fd1Smrgelse 46995bd32fd1Smrg SUNCC="no" 470096a81b41Smrgfi 47015bd32fd1Smrg 47025bd32fd1Smrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 47035bd32fd1Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 470496a81b41Smrg INTELCC="yes" 470596a81b41Smrgelse 470696a81b41Smrg INTELCC="no" 470796a81b41Smrgfi 470896a81b41Smrg 470996a81b41Smrg if test "x$GCC" = xyes ; then 471096a81b41Smrg STRICT_CFLAGS="-pedantic -Werror" 471196a81b41Smrg elif test "x$SUNCC" = "xyes"; then 471296a81b41Smrg STRICT_CFLAGS="-errwarn" 471396a81b41Smrg elif test "x$INTELCC" = "xyes"; then 471496a81b41Smrg STRICT_CFLAGS="-Werror" 471596a81b41Smrg fi 471696a81b41Smrgfi 471796a81b41SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 471896a81b41Smrg 471996a81b41Smrg 472096a81b41Smrg 472196a81b41Smrg 472296a81b41Smrgcat >>confdefs.h <<_ACEOF 472396a81b41Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 472496a81b41Smrg_ACEOF 472596a81b41Smrg 472696a81b41Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 472796a81b41Smrg if test "x$PVM" = "x"; then 472896a81b41Smrg PVM="0" 472996a81b41Smrg fi 473096a81b41Smrg 473196a81b41Smrgcat >>confdefs.h <<_ACEOF 473296a81b41Smrg#define PACKAGE_VERSION_MINOR $PVM 473396a81b41Smrg_ACEOF 473496a81b41Smrg 473596a81b41Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 473696a81b41Smrg if test "x$PVP" = "x"; then 473796a81b41Smrg PVP="0" 473896a81b41Smrg fi 473996a81b41Smrg 474096a81b41Smrgcat >>confdefs.h <<_ACEOF 474196a81b41Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 474296a81b41Smrg_ACEOF 474396a81b41Smrg 474496a81b41Smrg 474596a81b41Smrg 47465bd32fd1SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 47475bd32fd1Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 47485bd32fd1Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 474996a81b41Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 475096a81b41Smrg 47515bd32fd1Smrg 47525bd32fd1Smrg 47535bd32fd1Smrg 47545bd32fd1Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 47555bd32fd1SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 47565bd32fd1Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 47575bd32fd1Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 47585bd32fd1Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 47595bd32fd1Smrg 476096a81b41Smrg 476196a81b41Smrg 476296a81b41Smrg 476396a81b41Smrg 476496a81b41Smrg 476596a81b41Smrgif test x$APP_MAN_SUFFIX = x ; then 476696a81b41Smrg APP_MAN_SUFFIX=1 476796a81b41Smrgfi 476896a81b41Smrgif test x$APP_MAN_DIR = x ; then 476996a81b41Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 477096a81b41Smrgfi 477196a81b41Smrg 477296a81b41Smrgif test x$LIB_MAN_SUFFIX = x ; then 477396a81b41Smrg LIB_MAN_SUFFIX=3 477496a81b41Smrgfi 477596a81b41Smrgif test x$LIB_MAN_DIR = x ; then 477696a81b41Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 477796a81b41Smrgfi 477896a81b41Smrg 477996a81b41Smrgif test x$FILE_MAN_SUFFIX = x ; then 478096a81b41Smrg case $host_os in 478196a81b41Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 478296a81b41Smrg *) FILE_MAN_SUFFIX=5 ;; 478396a81b41Smrg esac 478496a81b41Smrgfi 478596a81b41Smrgif test x$FILE_MAN_DIR = x ; then 478696a81b41Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 478796a81b41Smrgfi 478896a81b41Smrg 478996a81b41Smrgif test x$MISC_MAN_SUFFIX = x ; then 479096a81b41Smrg case $host_os in 479196a81b41Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 479296a81b41Smrg *) MISC_MAN_SUFFIX=7 ;; 479396a81b41Smrg esac 479496a81b41Smrgfi 479596a81b41Smrgif test x$MISC_MAN_DIR = x ; then 479696a81b41Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 479796a81b41Smrgfi 479896a81b41Smrg 479996a81b41Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 480096a81b41Smrg case $host_os in 480196a81b41Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 480296a81b41Smrg *) DRIVER_MAN_SUFFIX=4 ;; 480396a81b41Smrg esac 480496a81b41Smrgfi 480596a81b41Smrgif test x$DRIVER_MAN_DIR = x ; then 480696a81b41Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 480796a81b41Smrgfi 480896a81b41Smrg 480996a81b41Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 481096a81b41Smrg case $host_os in 481196a81b41Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 481296a81b41Smrg *) ADMIN_MAN_SUFFIX=8 ;; 481396a81b41Smrg esac 481496a81b41Smrgfi 481596a81b41Smrgif test x$ADMIN_MAN_DIR = x ; then 481696a81b41Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 481796a81b41Smrgfi 481896a81b41Smrg 481996a81b41Smrg 482096a81b41Smrg 482196a81b41Smrg 482296a81b41Smrg 482396a81b41Smrg 482496a81b41Smrg 482596a81b41Smrg 482696a81b41Smrg 482796a81b41Smrg 482896a81b41Smrg 482996a81b41Smrg 483096a81b41Smrg 483196a81b41Smrg 483296a81b41Smrg 48335bd32fd1SmrgXORG_MAN_PAGE="X Version 11" 483496a81b41Smrg 48355bd32fd1SmrgMAN_SUBSTS="\ 48365bd32fd1Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 48375bd32fd1Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 48385bd32fd1Smrg -e 's|__xservername__|Xorg|g' \ 48395bd32fd1Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 48405bd32fd1Smrg -e 's|__projectroot__|\$(prefix)|g' \ 48415bd32fd1Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 48425bd32fd1Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 48435bd32fd1Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 48445bd32fd1Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 48455bd32fd1Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 48465bd32fd1Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 48475bd32fd1Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 484896a81b41Smrg 484996a81b41Smrg 485096a81b41Smrg 48515bd32fd1Smrg# Check whether --enable-silent-rules was given. 48525bd32fd1Smrgif test "${enable_silent_rules+set}" = set; then : 48535bd32fd1Smrg enableval=$enable_silent_rules; 48545bd32fd1Smrgfi 485596a81b41Smrg 48565bd32fd1Smrgcase $enable_silent_rules in 48575bd32fd1Smrgyes) AM_DEFAULT_VERBOSITY=0;; 48585bd32fd1Smrgno) AM_DEFAULT_VERBOSITY=1;; 48595bd32fd1Smrg*) AM_DEFAULT_VERBOSITY=0;; 486096a81b41Smrgesac 48615bd32fd1SmrgAM_BACKSLASH='\' 486296a81b41Smrg 486396a81b41Smrg 486496a81b41Smrg 4865d13010c3Smrgfor ac_func in mkstemp asprintf 4866d13010c3Smrgdo : 4867d13010c3Smrg as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4868d13010c3Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4869d13010c3Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4870d13010c3Smrg cat >>confdefs.h <<_ACEOF 4871d13010c3Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4872d13010c3Smrg_ACEOF 487396a81b41Smrg 487496a81b41Smrgfi 4875d13010c3Smrgdone 487696a81b41Smrg 487796a81b41Smrg 487896a81b41Smrg# Find MAXHOSTNAMELEN definition 487996a81b41Smrg# Common hidey holes: 488096a81b41Smrg# BSD & Linux - <sys/param.h> 488196a81b41Smrg# Solaris - <netdb.h> 488296a81b41Smrg 48835bd32fd1Smrgac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" 48845bd32fd1Smrgif test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes; then : 488596a81b41Smrg FOUND_MAXHOSTNAMELEN=yes 488696a81b41Smrgfi 488796a81b41Smrg 488896a81b41Smrg 488996a81b41Smrgif test x$FOUND_MAXHOSTNAMELEN != xyes ; then 48905bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 489196a81b41Smrg$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; } 489296a81b41Smrg 489396a81b41Smrg FOUND_MAXHOSTNAMELEN='not found' 489496a81b41Smrg 48955bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 489696a81b41Smrg/* end confdefs.h. */ 489796a81b41Smrg#include <sys/param.h> 489896a81b41Smrgint 489996a81b41Smrgmain () 490096a81b41Smrg{ 490196a81b41Smrgint h = MAXHOSTNAMELEN; 490296a81b41Smrg ; 490396a81b41Smrg return 0; 490496a81b41Smrg} 490596a81b41Smrg_ACEOF 49065bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then : 490796a81b41Smrg FOUND_MAXHOSTNAMELEN='sys/param.h' 490896a81b41Smrg 49095bd32fd1Smrg$as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h 491096a81b41Smrg 491196a81b41Smrgfi 491296a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 491396a81b41Smrg 49145bd32fd1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 491596a81b41Smrg/* end confdefs.h. */ 491696a81b41Smrg#include <netdb.h> 491796a81b41Smrgint 491896a81b41Smrgmain () 491996a81b41Smrg{ 492096a81b41Smrgint h = MAXHOSTNAMELEN; 492196a81b41Smrg ; 492296a81b41Smrg return 0; 492396a81b41Smrg} 492496a81b41Smrg_ACEOF 49255bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then : 492696a81b41Smrg FOUND_MAXHOSTNAMELEN='netdb.h' 492796a81b41Smrg 49285bd32fd1Smrg$as_echo "#define NEED_NETDB_H 1" >>confdefs.h 492996a81b41Smrg 493096a81b41Smrgfi 493196a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 493296a81b41Smrg 49335bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 493496a81b41Smrg$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; } 493596a81b41Smrgfi 493696a81b41Smrg 493796a81b41Smrg# xrdb needs to know where to find cpp at runtime - previously set as CppCmd 493896a81b41Smrg# in Imake config files for each OS 493996a81b41Smrg 494096a81b41Smrg# Check whether --with-cpp was given. 49415bd32fd1Smrgif test "${with_cpp+set}" = set; then : 49425bd32fd1Smrg withval=$with_cpp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5 494396a81b41Smrg$as_echo_n "checking for cpp... " >&6; } 494496a81b41Smrg CPP_PATH=$withval 49455bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5 494696a81b41Smrg$as_echo "--with-cpp specified $CPP_PATH" >&6; } 494796a81b41Smrgelse 494896a81b41Smrg # Extract the first word of "cpp", so it can be a program name with args. 49498b22bf3fSmrgset dummy cpp; ac_word=$2 49505bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 495196a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; } 49525bd32fd1Smrgif ${ac_cv_path_CPP_PATH+:} false; then : 495396a81b41Smrg $as_echo_n "(cached) " >&6 49548b22bf3fSmrgelse 49558b22bf3fSmrg case $CPP_PATH in 49568b22bf3fSmrg [\\/]* | ?:[\\/]*) 49578b22bf3fSmrg ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path. 49588b22bf3fSmrg ;; 49598b22bf3fSmrg *) 49608b22bf3fSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49618b22bf3fSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 49628b22bf3fSmrgfor as_dir in $as_dummy 49638b22bf3fSmrgdo 49648b22bf3fSmrg IFS=$as_save_IFS 49658b22bf3fSmrg test -z "$as_dir" && as_dir=. 49665bd32fd1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 49678b22bf3fSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 49688b22bf3fSmrg ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext" 49695bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49708b22bf3fSmrg break 2 49718b22bf3fSmrg fi 49728b22bf3fSmrgdone 49735bd32fd1Smrg done 49748b22bf3fSmrgIFS=$as_save_IFS 49758b22bf3fSmrg 49768b22bf3fSmrg test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp" 49778b22bf3fSmrg ;; 49788b22bf3fSmrgesac 49798b22bf3fSmrgfi 49808b22bf3fSmrgCPP_PATH=$ac_cv_path_CPP_PATH 49818b22bf3fSmrgif test -n "$CPP_PATH"; then 49825bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5 498396a81b41Smrg$as_echo "$CPP_PATH" >&6; } 49848b22bf3fSmrgelse 49855bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 498696a81b41Smrg$as_echo "no" >&6; } 49875bd32fd1Smrgfi 49885bd32fd1Smrg 49898b22bf3fSmrg 49908b22bf3fSmrgfi 49918b22bf3fSmrg 49925bd32fd1SmrgCPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'` 49935bd32fd1Smrg 49945bd32fd1Smrgcat >>confdefs.h <<_ACEOF 49955bd32fd1Smrg#define CPP "$CPP_PATH" 49965bd32fd1Smrg_ACEOF 49975bd32fd1Smrg 49985bd32fd1Smrg 49995bd32fd1Smrg# Checks for pkg-config packages 50005bd32fd1Smrg 500196a81b41Smrgpkg_failed=no 50025bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5 500396a81b41Smrg$as_echo_n "checking for XRDB... " >&6; } 500496a81b41Smrg 500596a81b41Smrgif test -n "$XRDB_CFLAGS"; then 500696a81b41Smrg pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS" 500796a81b41Smrg elif test -n "$PKG_CONFIG"; then 500896a81b41Smrg if test -n "$PKG_CONFIG" && \ 50095bd32fd1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11\""; } >&5 501096a81b41Smrg ($PKG_CONFIG --exists --print-errors "xmuu x11") 2>&5 501196a81b41Smrg ac_status=$? 50125bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 50135bd32fd1Smrg test $ac_status = 0; }; then 501496a81b41Smrg pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11" 2>/dev/null` 501596a81b41Smrgelse 501696a81b41Smrg pkg_failed=yes 50178b22bf3fSmrgfi 501896a81b41Smrg else 501996a81b41Smrg pkg_failed=untried 50208b22bf3fSmrgfi 502196a81b41Smrgif test -n "$XRDB_LIBS"; then 502296a81b41Smrg pkg_cv_XRDB_LIBS="$XRDB_LIBS" 502396a81b41Smrg elif test -n "$PKG_CONFIG"; then 502496a81b41Smrg if test -n "$PKG_CONFIG" && \ 50255bd32fd1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11\""; } >&5 502696a81b41Smrg ($PKG_CONFIG --exists --print-errors "xmuu x11") 2>&5 502796a81b41Smrg ac_status=$? 50285bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 50295bd32fd1Smrg test $ac_status = 0; }; then 503096a81b41Smrg pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11" 2>/dev/null` 503196a81b41Smrgelse 503296a81b41Smrg pkg_failed=yes 50338b22bf3fSmrgfi 503496a81b41Smrg else 503596a81b41Smrg pkg_failed=untried 50368b22bf3fSmrgfi 50378b22bf3fSmrg 50388b22bf3fSmrg 50398b22bf3fSmrg 504096a81b41Smrgif test $pkg_failed = yes; then 5041d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042d13010c3Smrg$as_echo "no" >&6; } 50438b22bf3fSmrg 504496a81b41Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 504596a81b41Smrg _pkg_short_errors_supported=yes 504696a81b41Smrgelse 504796a81b41Smrg _pkg_short_errors_supported=no 504896a81b41Smrgfi 504996a81b41Smrg if test $_pkg_short_errors_supported = yes; then 505096a81b41Smrg XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu x11" 2>&1` 505196a81b41Smrg else 505296a81b41Smrg XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu x11" 2>&1` 505396a81b41Smrg fi 505496a81b41Smrg # Put the nasty error message in config.log where it belongs 505596a81b41Smrg echo "$XRDB_PKG_ERRORS" >&5 50568b22bf3fSmrg 50575bd32fd1Smrg as_fn_error $? "Package requirements (xmuu x11) were not met: 50588b22bf3fSmrg 505996a81b41Smrg$XRDB_PKG_ERRORS 50608b22bf3fSmrg 506196a81b41SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 506296a81b41Smrginstalled software in a non-standard prefix. 50638b22bf3fSmrg 506496a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS 506596a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config. 5066d13010c3SmrgSee the pkg-config man page for more details." "$LINENO" 5 506796a81b41Smrgelif test $pkg_failed = untried; then 5068d13010c3Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069d13010c3Smrg$as_echo "no" >&6; } 50705bd32fd1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 507196a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50725bd32fd1Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 507396a81b41Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 507496a81b41Smrgpath to pkg-config. 50758b22bf3fSmrg 507696a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS 507796a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config. 507896a81b41SmrgSee the pkg-config man page for more details. 50798b22bf3fSmrg 508096a81b41SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 50815bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; } 50828b22bf3fSmrgelse 508396a81b41Smrg XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS 508496a81b41Smrg XRDB_LIBS=$pkg_cv_XRDB_LIBS 50855bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 508696a81b41Smrg$as_echo "yes" >&6; } 5087d13010c3Smrg 50888b22bf3fSmrgfi 50898b22bf3fSmrg 5090d13010c3Smrgac_config_files="$ac_config_files Makefile man/Makefile" 50918b22bf3fSmrg 50928b22bf3fSmrgcat >confcache <<\_ACEOF 50938b22bf3fSmrg# This file is a shell script that caches the results of configure 50948b22bf3fSmrg# tests run on this system so they can be shared between configure 50958b22bf3fSmrg# scripts and configure runs, see configure's option --config-cache. 50968b22bf3fSmrg# It is not useful on other systems. If it contains results you don't 50978b22bf3fSmrg# want to keep, you may remove or edit it. 50988b22bf3fSmrg# 50998b22bf3fSmrg# config.status only pays attention to the cache file if you give it 51008b22bf3fSmrg# the --recheck option to rerun configure. 51018b22bf3fSmrg# 51028b22bf3fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 51038b22bf3fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 51048b22bf3fSmrg# following values. 51058b22bf3fSmrg 51068b22bf3fSmrg_ACEOF 51078b22bf3fSmrg 51088b22bf3fSmrg# The following way of writing the cache mishandles newlines in values, 51098b22bf3fSmrg# but we know of no workaround that is simple, portable, and efficient. 51108b22bf3fSmrg# So, we kill variables containing newlines. 51118b22bf3fSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 51128b22bf3fSmrg# and sets the high bit in the cache file unless we assign to the vars. 51138b22bf3fSmrg( 51148b22bf3fSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51158b22bf3fSmrg eval ac_val=\$$ac_var 51168b22bf3fSmrg case $ac_val in #( 51178b22bf3fSmrg *${as_nl}*) 51188b22bf3fSmrg case $ac_var in #( 51195bd32fd1Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 512096a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51218b22bf3fSmrg esac 51228b22bf3fSmrg case $ac_var in #( 51238b22bf3fSmrg _ | IFS | as_nl) ;; #( 512496a81b41Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51255bd32fd1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 51268b22bf3fSmrg esac ;; 51278b22bf3fSmrg esac 51288b22bf3fSmrg done 51298b22bf3fSmrg 51308b22bf3fSmrg (set) 2>&1 | 51318b22bf3fSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 51328b22bf3fSmrg *${as_nl}ac_space=\ *) 51335bd32fd1Smrg # `set' does not quote correctly, so add quotes: double-quote 51345bd32fd1Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 51358b22bf3fSmrg sed -n \ 51368b22bf3fSmrg "s/'/'\\\\''/g; 51378b22bf3fSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51388b22bf3fSmrg ;; #( 51398b22bf3fSmrg *) 51408b22bf3fSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 51418b22bf3fSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51428b22bf3fSmrg ;; 51438b22bf3fSmrg esac | 51448b22bf3fSmrg sort 51458b22bf3fSmrg) | 51468b22bf3fSmrg sed ' 51478b22bf3fSmrg /^ac_cv_env_/b end 51488b22bf3fSmrg t clear 51498b22bf3fSmrg :clear 51508b22bf3fSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51518b22bf3fSmrg t end 51528b22bf3fSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51538b22bf3fSmrg :end' >>confcache 51548b22bf3fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51558b22bf3fSmrg if test -w "$cache_file"; then 51565bd32fd1Smrg if test "x$cache_file" != "x/dev/null"; then 51575bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 515896a81b41Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 51595bd32fd1Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 51605bd32fd1Smrg cat confcache >"$cache_file" 51615bd32fd1Smrg else 51625bd32fd1Smrg case $cache_file in #( 51635bd32fd1Smrg */* | ?:*) 51645bd32fd1Smrg mv -f confcache "$cache_file"$$ && 51655bd32fd1Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 51665bd32fd1Smrg *) 51675bd32fd1Smrg mv -f confcache "$cache_file" ;; 51685bd32fd1Smrg esac 51695bd32fd1Smrg fi 51705bd32fd1Smrg fi 51718b22bf3fSmrg else 51725bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 517396a81b41Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51748b22bf3fSmrg fi 51758b22bf3fSmrgfi 51768b22bf3fSmrgrm -f confcache 51778b22bf3fSmrg 51788b22bf3fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 51798b22bf3fSmrg# Let make expand exec_prefix. 51808b22bf3fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51818b22bf3fSmrg 51828b22bf3fSmrgDEFS=-DHAVE_CONFIG_H 51838b22bf3fSmrg 51848b22bf3fSmrgac_libobjs= 51858b22bf3fSmrgac_ltlibobjs= 51865bd32fd1SmrgU= 51878b22bf3fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51888b22bf3fSmrg # 1. Remove the extension, and $U if already installed. 51898b22bf3fSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 519096a81b41Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51918b22bf3fSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51928b22bf3fSmrg # will be set to the directory where LIBOBJS objects are built. 51935bd32fd1Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51945bd32fd1Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51958b22bf3fSmrgdone 51968b22bf3fSmrgLIBOBJS=$ac_libobjs 51978b22bf3fSmrg 51988b22bf3fSmrgLTLIBOBJS=$ac_ltlibobjs 51998b22bf3fSmrg 52008b22bf3fSmrg 5201d13010c3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5202d13010c3Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 5203d13010c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5204d13010c3Smrgfi 5205d13010c3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5206d13010c3Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5207d13010c3SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5208d13010c3Smrgfi 520996a81b41Smrg if test -n "$EXEEXT"; then 521096a81b41Smrg am__EXEEXT_TRUE= 521196a81b41Smrg am__EXEEXT_FALSE='#' 521296a81b41Smrgelse 521396a81b41Smrg am__EXEEXT_TRUE='#' 521496a81b41Smrg am__EXEEXT_FALSE= 521596a81b41Smrgfi 521696a81b41Smrg 52178b22bf3fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 52185bd32fd1Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 52195bd32fd1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 52208b22bf3fSmrgfi 52218b22bf3fSmrg 52225bd32fd1Smrg: "${CONFIG_STATUS=./config.status}" 522396a81b41Smrgac_write_fail=0 52248b22bf3fSmrgac_clean_files_save=$ac_clean_files 52258b22bf3fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 52265bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 522796a81b41Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52285bd32fd1Smrgas_write_fail=0 52295bd32fd1Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52308b22bf3fSmrg#! $SHELL 52318b22bf3fSmrg# Generated by $as_me. 52328b22bf3fSmrg# Run this file to recreate the current configuration. 52338b22bf3fSmrg# Compiler output produced by configure, useful for debugging 52348b22bf3fSmrg# configure, is in config.log if it exists. 52358b22bf3fSmrg 52368b22bf3fSmrgdebug=false 52378b22bf3fSmrgac_cs_recheck=false 52388b22bf3fSmrgac_cs_silent=false 52398b22bf3fSmrg 52405bd32fd1SmrgSHELL=\${CONFIG_SHELL-$SHELL} 52415bd32fd1Smrgexport SHELL 52425bd32fd1Smrg_ASEOF 52435bd32fd1Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52445bd32fd1Smrg## -------------------- ## 52455bd32fd1Smrg## M4sh Initialization. ## 52465bd32fd1Smrg## -------------------- ## 52478b22bf3fSmrg 52488b22bf3fSmrg# Be more Bourne compatible 52498b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh 52505bd32fd1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52518b22bf3fSmrg emulate sh 52528b22bf3fSmrg NULLCMD=: 525396a81b41Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52548b22bf3fSmrg # is contrary to our usage. Disable this feature. 52558b22bf3fSmrg alias -g '${1+"$@"}'='"$@"' 52568b22bf3fSmrg setopt NO_GLOB_SUBST 52578b22bf3fSmrgelse 52585bd32fd1Smrg case `(set -o) 2>/dev/null` in #( 52595bd32fd1Smrg *posix*) : 52605bd32fd1Smrg set -o posix ;; #( 52615bd32fd1Smrg *) : 52625bd32fd1Smrg ;; 52638b22bf3fSmrgesac 52648b22bf3fSmrgfi 52658b22bf3fSmrg 52668b22bf3fSmrg 526796a81b41Smrgas_nl=' 526896a81b41Smrg' 526996a81b41Smrgexport as_nl 527096a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 527196a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 527296a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 527396a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52745bd32fd1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 52755bd32fd1Smrg# but without wasting forks for bash or zsh. 52765bd32fd1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 52775bd32fd1Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52785bd32fd1Smrg as_echo='print -r --' 52795bd32fd1Smrg as_echo_n='print -rn --' 52805bd32fd1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 528196a81b41Smrg as_echo='printf %s\n' 528296a81b41Smrg as_echo_n='printf %s' 528396a81b41Smrgelse 528496a81b41Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 528596a81b41Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 528696a81b41Smrg as_echo_n='/usr/ucb/echo -n' 52878b22bf3fSmrg else 528896a81b41Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 528996a81b41Smrg as_echo_n_body='eval 529096a81b41Smrg arg=$1; 52915bd32fd1Smrg case $arg in #( 529296a81b41Smrg *"$as_nl"*) 529396a81b41Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 529496a81b41Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 529596a81b41Smrg esac; 529696a81b41Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 529796a81b41Smrg ' 529896a81b41Smrg export as_echo_n_body 529996a81b41Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 53008b22bf3fSmrg fi 530196a81b41Smrg export as_echo_body 530296a81b41Smrg as_echo='sh -c $as_echo_body as_echo' 530396a81b41Smrgfi 530496a81b41Smrg 530596a81b41Smrg# The user is always right. 530696a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then 530796a81b41Smrg PATH_SEPARATOR=: 530896a81b41Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 530996a81b41Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 531096a81b41Smrg PATH_SEPARATOR=';' 531196a81b41Smrg } 53128b22bf3fSmrgfi 53138b22bf3fSmrg 53148b22bf3fSmrg 53158b22bf3fSmrg# IFS 53168b22bf3fSmrg# We need space, tab and new line, in precisely that order. Quoting is 53178b22bf3fSmrg# there to prevent editors from complaining about space-tab. 53188b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 53198b22bf3fSmrg# splitting by setting IFS to empty value.) 53208b22bf3fSmrgIFS=" "" $as_nl" 53218b22bf3fSmrg 53228b22bf3fSmrg# Find who we are. Look in the path if we contain no directory separator. 53235bd32fd1Smrgas_myself= 53245bd32fd1Smrgcase $0 in #(( 53258b22bf3fSmrg *[\\/]* ) as_myself=$0 ;; 53268b22bf3fSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53278b22bf3fSmrgfor as_dir in $PATH 53288b22bf3fSmrgdo 53298b22bf3fSmrg IFS=$as_save_IFS 53308b22bf3fSmrg test -z "$as_dir" && as_dir=. 53315bd32fd1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53325bd32fd1Smrg done 53338b22bf3fSmrgIFS=$as_save_IFS 53348b22bf3fSmrg 53358b22bf3fSmrg ;; 53368b22bf3fSmrgesac 53378b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 53388b22bf3fSmrg# in which case we are not to be found in the path. 53398b22bf3fSmrgif test "x$as_myself" = x; then 53408b22bf3fSmrg as_myself=$0 53418b22bf3fSmrgfi 53428b22bf3fSmrgif test ! -f "$as_myself"; then 534396a81b41Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53445bd32fd1Smrg exit 1 53458b22bf3fSmrgfi 53468b22bf3fSmrg 53475bd32fd1Smrg# Unset variables that we do not need and which cause bugs (e.g. in 53485bd32fd1Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53495bd32fd1Smrg# suppresses any "Segmentation fault" message there. '((' could 53505bd32fd1Smrg# trigger a bug in pdksh 5.2.14. 53515bd32fd1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 53525bd32fd1Smrgdo eval test x\${$as_var+set} = xset \ 53535bd32fd1Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53548b22bf3fSmrgdone 53558b22bf3fSmrgPS1='$ ' 53568b22bf3fSmrgPS2='> ' 53578b22bf3fSmrgPS4='+ ' 53588b22bf3fSmrg 53598b22bf3fSmrg# NLS nuisances. 536096a81b41SmrgLC_ALL=C 536196a81b41Smrgexport LC_ALL 536296a81b41SmrgLANGUAGE=C 536396a81b41Smrgexport LANGUAGE 53648b22bf3fSmrg 53655bd32fd1Smrg# CDPATH. 53665bd32fd1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53675bd32fd1Smrg 53685bd32fd1Smrg 53695bd32fd1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 53705bd32fd1Smrg# ---------------------------------------- 53715bd32fd1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53725bd32fd1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53735bd32fd1Smrg# script with STATUS, using 1 if that was 0. 53745bd32fd1Smrgas_fn_error () 53755bd32fd1Smrg{ 53765bd32fd1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 53775bd32fd1Smrg if test "$4"; then 53785bd32fd1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53795bd32fd1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53805bd32fd1Smrg fi 53815bd32fd1Smrg $as_echo "$as_me: error: $2" >&2 53825bd32fd1Smrg as_fn_exit $as_status 53835bd32fd1Smrg} # as_fn_error 53845bd32fd1Smrg 53855bd32fd1Smrg 53865bd32fd1Smrg# as_fn_set_status STATUS 53875bd32fd1Smrg# ----------------------- 53885bd32fd1Smrg# Set $? to STATUS, without forking. 53895bd32fd1Smrgas_fn_set_status () 53905bd32fd1Smrg{ 53915bd32fd1Smrg return $1 53925bd32fd1Smrg} # as_fn_set_status 53935bd32fd1Smrg 53945bd32fd1Smrg# as_fn_exit STATUS 53955bd32fd1Smrg# ----------------- 53965bd32fd1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53975bd32fd1Smrgas_fn_exit () 53985bd32fd1Smrg{ 53995bd32fd1Smrg set +e 54005bd32fd1Smrg as_fn_set_status $1 54015bd32fd1Smrg exit $1 54025bd32fd1Smrg} # as_fn_exit 54035bd32fd1Smrg 54045bd32fd1Smrg# as_fn_unset VAR 54055bd32fd1Smrg# --------------- 54065bd32fd1Smrg# Portably unset VAR. 54075bd32fd1Smrgas_fn_unset () 54085bd32fd1Smrg{ 54095bd32fd1Smrg { eval $1=; unset $1;} 54105bd32fd1Smrg} 54115bd32fd1Smrgas_unset=as_fn_unset 54125bd32fd1Smrg# as_fn_append VAR VALUE 54135bd32fd1Smrg# ---------------------- 54145bd32fd1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 54155bd32fd1Smrg# advantage of any shell optimizations that allow amortized linear growth over 54165bd32fd1Smrg# repeated appends, instead of the typical quadratic growth present in naive 54175bd32fd1Smrg# implementations. 54185bd32fd1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 54195bd32fd1Smrg eval 'as_fn_append () 54205bd32fd1Smrg { 54215bd32fd1Smrg eval $1+=\$2 54225bd32fd1Smrg }' 54235bd32fd1Smrgelse 54245bd32fd1Smrg as_fn_append () 54255bd32fd1Smrg { 54265bd32fd1Smrg eval $1=\$$1\$2 54275bd32fd1Smrg } 54285bd32fd1Smrgfi # as_fn_append 54295bd32fd1Smrg 54305bd32fd1Smrg# as_fn_arith ARG... 54315bd32fd1Smrg# ------------------ 54325bd32fd1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 54335bd32fd1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 54345bd32fd1Smrg# must be portable across $(()) and expr. 54355bd32fd1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 54365bd32fd1Smrg eval 'as_fn_arith () 54375bd32fd1Smrg { 54385bd32fd1Smrg as_val=$(( $* )) 54395bd32fd1Smrg }' 54405bd32fd1Smrgelse 54415bd32fd1Smrg as_fn_arith () 54425bd32fd1Smrg { 54435bd32fd1Smrg as_val=`expr "$@" || test $? -eq 1` 54445bd32fd1Smrg } 54455bd32fd1Smrgfi # as_fn_arith 54465bd32fd1Smrg 54475bd32fd1Smrg 54488b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 54498b22bf3fSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 54508b22bf3fSmrg as_expr=expr 54518b22bf3fSmrgelse 54528b22bf3fSmrg as_expr=false 54538b22bf3fSmrgfi 54548b22bf3fSmrg 54558b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 54568b22bf3fSmrg as_basename=basename 54578b22bf3fSmrgelse 54588b22bf3fSmrg as_basename=false 54598b22bf3fSmrgfi 54608b22bf3fSmrg 54615bd32fd1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 54625bd32fd1Smrg as_dirname=dirname 54635bd32fd1Smrgelse 54645bd32fd1Smrg as_dirname=false 54655bd32fd1Smrgfi 54668b22bf3fSmrg 54678b22bf3fSmrgas_me=`$as_basename -- "$0" || 54688b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 54698b22bf3fSmrg X"$0" : 'X\(//\)$' \| \ 54708b22bf3fSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 547196a81b41Smrg$as_echo X/"$0" | 54728b22bf3fSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 54738b22bf3fSmrg s//\1/ 54748b22bf3fSmrg q 54758b22bf3fSmrg } 54768b22bf3fSmrg /^X\/\(\/\/\)$/{ 54778b22bf3fSmrg s//\1/ 54788b22bf3fSmrg q 54798b22bf3fSmrg } 54808b22bf3fSmrg /^X\/\(\/\).*/{ 54818b22bf3fSmrg s//\1/ 54828b22bf3fSmrg q 54838b22bf3fSmrg } 54848b22bf3fSmrg s/.*/./; q'` 54858b22bf3fSmrg 54865bd32fd1Smrg# Avoid depending upon Character Ranges. 54875bd32fd1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 54885bd32fd1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 54895bd32fd1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 54905bd32fd1Smrgas_cr_digits='0123456789' 54915bd32fd1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 54928b22bf3fSmrg 54938b22bf3fSmrgECHO_C= ECHO_N= ECHO_T= 54945bd32fd1Smrgcase `echo -n x` in #((((( 54958b22bf3fSmrg-n*) 54965bd32fd1Smrg case `echo 'xy\c'` in 54978b22bf3fSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 54985bd32fd1Smrg xy) ECHO_C='\c';; 54995bd32fd1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 55005bd32fd1Smrg ECHO_T=' ';; 55018b22bf3fSmrg esac;; 55028b22bf3fSmrg*) 55038b22bf3fSmrg ECHO_N='-n';; 55048b22bf3fSmrgesac 55058b22bf3fSmrg 55068b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.file 55078b22bf3fSmrgif test -d conf$$.dir; then 55088b22bf3fSmrg rm -f conf$$.dir/conf$$.file 55098b22bf3fSmrgelse 55108b22bf3fSmrg rm -f conf$$.dir 551196a81b41Smrg mkdir conf$$.dir 2>/dev/null 551296a81b41Smrgfi 551396a81b41Smrgif (echo >conf$$.file) 2>/dev/null; then 551496a81b41Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 551596a81b41Smrg as_ln_s='ln -s' 551696a81b41Smrg # ... but there are two gotchas: 551796a81b41Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 551896a81b41Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 551996a81b41Smrg # In both cases, we have to default to `cp -p'. 552096a81b41Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 552196a81b41Smrg as_ln_s='cp -p' 552296a81b41Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 552396a81b41Smrg as_ln_s=ln 552496a81b41Smrg else 55258b22bf3fSmrg as_ln_s='cp -p' 552696a81b41Smrg fi 55278b22bf3fSmrgelse 55288b22bf3fSmrg as_ln_s='cp -p' 55298b22bf3fSmrgfi 55308b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 55318b22bf3fSmrgrmdir conf$$.dir 2>/dev/null 55328b22bf3fSmrg 55335bd32fd1Smrg 55345bd32fd1Smrg# as_fn_mkdir_p 55355bd32fd1Smrg# ------------- 55365bd32fd1Smrg# Create "$as_dir" as a directory, including parents if necessary. 55375bd32fd1Smrgas_fn_mkdir_p () 55385bd32fd1Smrg{ 55395bd32fd1Smrg 55405bd32fd1Smrg case $as_dir in #( 55415bd32fd1Smrg -*) as_dir=./$as_dir;; 55425bd32fd1Smrg esac 55435bd32fd1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 55445bd32fd1Smrg as_dirs= 55455bd32fd1Smrg while :; do 55465bd32fd1Smrg case $as_dir in #( 55475bd32fd1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 55485bd32fd1Smrg *) as_qdir=$as_dir;; 55495bd32fd1Smrg esac 55505bd32fd1Smrg as_dirs="'$as_qdir' $as_dirs" 55515bd32fd1Smrg as_dir=`$as_dirname -- "$as_dir" || 55525bd32fd1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 55535bd32fd1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 55545bd32fd1Smrg X"$as_dir" : 'X\(//\)$' \| \ 55555bd32fd1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 55565bd32fd1Smrg$as_echo X"$as_dir" | 55575bd32fd1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 55585bd32fd1Smrg s//\1/ 55595bd32fd1Smrg q 55605bd32fd1Smrg } 55615bd32fd1Smrg /^X\(\/\/\)[^/].*/{ 55625bd32fd1Smrg s//\1/ 55635bd32fd1Smrg q 55645bd32fd1Smrg } 55655bd32fd1Smrg /^X\(\/\/\)$/{ 55665bd32fd1Smrg s//\1/ 55675bd32fd1Smrg q 55685bd32fd1Smrg } 55695bd32fd1Smrg /^X\(\/\).*/{ 55705bd32fd1Smrg s//\1/ 55715bd32fd1Smrg q 55725bd32fd1Smrg } 55735bd32fd1Smrg s/.*/./; q'` 55745bd32fd1Smrg test -d "$as_dir" && break 55755bd32fd1Smrg done 55765bd32fd1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 55775bd32fd1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 55785bd32fd1Smrg 55795bd32fd1Smrg 55805bd32fd1Smrg} # as_fn_mkdir_p 55818b22bf3fSmrgif mkdir -p . 2>/dev/null; then 55825bd32fd1Smrg as_mkdir_p='mkdir -p "$as_dir"' 55838b22bf3fSmrgelse 55848b22bf3fSmrg test -d ./-p && rmdir ./-p 55858b22bf3fSmrg as_mkdir_p=false 55868b22bf3fSmrgfi 55878b22bf3fSmrg 55888b22bf3fSmrgif test -x / >/dev/null 2>&1; then 55898b22bf3fSmrg as_test_x='test -x' 55908b22bf3fSmrgelse 55918b22bf3fSmrg if ls -dL / >/dev/null 2>&1; then 55928b22bf3fSmrg as_ls_L_option=L 55938b22bf3fSmrg else 55948b22bf3fSmrg as_ls_L_option= 55958b22bf3fSmrg fi 55968b22bf3fSmrg as_test_x=' 55978b22bf3fSmrg eval sh -c '\'' 55988b22bf3fSmrg if test -d "$1"; then 559996a81b41Smrg test -d "$1/."; 56008b22bf3fSmrg else 56015bd32fd1Smrg case $1 in #( 560296a81b41Smrg -*)set "./$1";; 56038b22bf3fSmrg esac; 56045bd32fd1Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 56058b22bf3fSmrg ???[sx]*):;;*)false;;esac;fi 56068b22bf3fSmrg '\'' sh 56078b22bf3fSmrg ' 56088b22bf3fSmrgfi 56098b22bf3fSmrgas_executable_p=$as_test_x 56108b22bf3fSmrg 56118b22bf3fSmrg# Sed expression to map a string onto a valid CPP name. 56128b22bf3fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 56138b22bf3fSmrg 56148b22bf3fSmrg# Sed expression to map a string onto a valid variable name. 56158b22bf3fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 56168b22bf3fSmrg 56178b22bf3fSmrg 56188b22bf3fSmrgexec 6>&1 56195bd32fd1Smrg## ----------------------------------- ## 56205bd32fd1Smrg## Main body of $CONFIG_STATUS script. ## 56215bd32fd1Smrg## ----------------------------------- ## 56225bd32fd1Smrg_ASEOF 56235bd32fd1Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 56248b22bf3fSmrg 56255bd32fd1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56265bd32fd1Smrg# Save the log message, to keep $0 and so on meaningful, and to 56278b22bf3fSmrg# report actual input values of CONFIG_FILES etc. instead of their 56288b22bf3fSmrg# values after options handling. 56298b22bf3fSmrgac_log=" 5630d13010c3SmrgThis file was extended by xrdb $as_me 1.0.8, which was 56315bd32fd1Smrggenerated by GNU Autoconf 2.68. Invocation command line was 56328b22bf3fSmrg 56338b22bf3fSmrg CONFIG_FILES = $CONFIG_FILES 56348b22bf3fSmrg CONFIG_HEADERS = $CONFIG_HEADERS 56358b22bf3fSmrg CONFIG_LINKS = $CONFIG_LINKS 56368b22bf3fSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 56378b22bf3fSmrg $ $0 $@ 56388b22bf3fSmrg 56398b22bf3fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 56408b22bf3fSmrg" 56418b22bf3fSmrg 56428b22bf3fSmrg_ACEOF 56438b22bf3fSmrg 564496a81b41Smrgcase $ac_config_files in *" 564596a81b41Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 564696a81b41Smrgesac 564796a81b41Smrg 564896a81b41Smrgcase $ac_config_headers in *" 564996a81b41Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 565096a81b41Smrgesac 565196a81b41Smrg 565296a81b41Smrg 565396a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56548b22bf3fSmrg# Files that config.status was made for. 56558b22bf3fSmrgconfig_files="$ac_config_files" 56568b22bf3fSmrgconfig_headers="$ac_config_headers" 56578b22bf3fSmrgconfig_commands="$ac_config_commands" 56588b22bf3fSmrg 56598b22bf3fSmrg_ACEOF 56608b22bf3fSmrg 566196a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56628b22bf3fSmrgac_cs_usage="\ 56635bd32fd1Smrg\`$as_me' instantiates files and other configuration actions 56645bd32fd1Smrgfrom templates according to the current configuration. Unless the files 56655bd32fd1Smrgand actions are specified as TAGs, all are instantiated by default. 56668b22bf3fSmrg 56675bd32fd1SmrgUsage: $0 [OPTION]... [TAG]... 56688b22bf3fSmrg 56698b22bf3fSmrg -h, --help print this help, then exit 56708b22bf3fSmrg -V, --version print version number and configuration settings, then exit 56715bd32fd1Smrg --config print configuration, then exit 567296a81b41Smrg -q, --quiet, --silent 567396a81b41Smrg do not print progress messages 56748b22bf3fSmrg -d, --debug don't remove temporary files 56758b22bf3fSmrg --recheck update $as_me by reconfiguring in the same conditions 567696a81b41Smrg --file=FILE[:TEMPLATE] 567796a81b41Smrg instantiate the configuration file FILE 567896a81b41Smrg --header=FILE[:TEMPLATE] 567996a81b41Smrg instantiate the configuration header FILE 56808b22bf3fSmrg 56818b22bf3fSmrgConfiguration files: 56828b22bf3fSmrg$config_files 56838b22bf3fSmrg 56848b22bf3fSmrgConfiguration headers: 56858b22bf3fSmrg$config_headers 56868b22bf3fSmrg 56878b22bf3fSmrgConfiguration commands: 56888b22bf3fSmrg$config_commands 56898b22bf3fSmrg 56905bd32fd1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 56918b22bf3fSmrg 56928b22bf3fSmrg_ACEOF 569396a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56945bd32fd1Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 56958b22bf3fSmrgac_cs_version="\\ 5696d13010c3Smrgxrdb config.status 1.0.8 56975bd32fd1Smrgconfigured by $0, generated by GNU Autoconf 2.68, 56985bd32fd1Smrg with options \\"\$ac_cs_config\\" 56998b22bf3fSmrg 57005bd32fd1SmrgCopyright (C) 2010 Free Software Foundation, Inc. 57018b22bf3fSmrgThis config.status script is free software; the Free Software Foundation 57028b22bf3fSmrggives unlimited permission to copy, distribute and modify it." 57038b22bf3fSmrg 57048b22bf3fSmrgac_pwd='$ac_pwd' 57058b22bf3fSmrgsrcdir='$srcdir' 57068b22bf3fSmrgINSTALL='$INSTALL' 57078b22bf3fSmrgMKDIR_P='$MKDIR_P' 570896a81b41SmrgAWK='$AWK' 570996a81b41Smrgtest -n "\$AWK" || AWK=awk 57108b22bf3fSmrg_ACEOF 57118b22bf3fSmrg 571296a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 571396a81b41Smrg# The default lists apply if the user does not specify any file. 57148b22bf3fSmrgac_need_defaults=: 57158b22bf3fSmrgwhile test $# != 0 57168b22bf3fSmrgdo 57178b22bf3fSmrg case $1 in 57185bd32fd1Smrg --*=?*) 57198b22bf3fSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 57208b22bf3fSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 57218b22bf3fSmrg ac_shift=: 57228b22bf3fSmrg ;; 57235bd32fd1Smrg --*=) 57245bd32fd1Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 57255bd32fd1Smrg ac_optarg= 57265bd32fd1Smrg ac_shift=: 57275bd32fd1Smrg ;; 57288b22bf3fSmrg *) 57298b22bf3fSmrg ac_option=$1 57308b22bf3fSmrg ac_optarg=$2 57318b22bf3fSmrg ac_shift=shift 57328b22bf3fSmrg ;; 57338b22bf3fSmrg esac 57348b22bf3fSmrg 57358b22bf3fSmrg case $ac_option in 57368b22bf3fSmrg # Handling of the options. 57378b22bf3fSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 57388b22bf3fSmrg ac_cs_recheck=: ;; 57398b22bf3fSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 574096a81b41Smrg $as_echo "$ac_cs_version"; exit ;; 57415bd32fd1Smrg --config | --confi | --conf | --con | --co | --c ) 57425bd32fd1Smrg $as_echo "$ac_cs_config"; exit ;; 57438b22bf3fSmrg --debug | --debu | --deb | --de | --d | -d ) 57448b22bf3fSmrg debug=: ;; 57458b22bf3fSmrg --file | --fil | --fi | --f ) 57468b22bf3fSmrg $ac_shift 574796a81b41Smrg case $ac_optarg in 574896a81b41Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 57495bd32fd1Smrg '') as_fn_error $? "missing file argument" ;; 575096a81b41Smrg esac 57515bd32fd1Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 57528b22bf3fSmrg ac_need_defaults=false;; 57538b22bf3fSmrg --header | --heade | --head | --hea ) 57548b22bf3fSmrg $ac_shift 575596a81b41Smrg case $ac_optarg in 575696a81b41Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 575796a81b41Smrg esac 57585bd32fd1Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 57598b22bf3fSmrg ac_need_defaults=false;; 57608b22bf3fSmrg --he | --h) 57618b22bf3fSmrg # Conflict between --help and --header 57625bd32fd1Smrg as_fn_error $? "ambiguous option: \`$1' 57635bd32fd1SmrgTry \`$0 --help' for more information.";; 57648b22bf3fSmrg --help | --hel | -h ) 576596a81b41Smrg $as_echo "$ac_cs_usage"; exit ;; 57668b22bf3fSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 57678b22bf3fSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 57688b22bf3fSmrg ac_cs_silent=: ;; 57698b22bf3fSmrg 57708b22bf3fSmrg # This is an error. 57715bd32fd1Smrg -*) as_fn_error $? "unrecognized option: \`$1' 57725bd32fd1SmrgTry \`$0 --help' for more information." ;; 57738b22bf3fSmrg 57745bd32fd1Smrg *) as_fn_append ac_config_targets " $1" 57758b22bf3fSmrg ac_need_defaults=false ;; 57768b22bf3fSmrg 57778b22bf3fSmrg esac 57788b22bf3fSmrg shift 57798b22bf3fSmrgdone 57808b22bf3fSmrg 57818b22bf3fSmrgac_configure_extra_args= 57828b22bf3fSmrg 57838b22bf3fSmrgif $ac_cs_silent; then 57848b22bf3fSmrg exec 6>/dev/null 57858b22bf3fSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 57868b22bf3fSmrgfi 57878b22bf3fSmrg 57888b22bf3fSmrg_ACEOF 578996a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 57908b22bf3fSmrgif \$ac_cs_recheck; then 579196a81b41Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 579296a81b41Smrg shift 579396a81b41Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 579496a81b41Smrg CONFIG_SHELL='$SHELL' 57958b22bf3fSmrg export CONFIG_SHELL 579696a81b41Smrg exec "\$@" 57978b22bf3fSmrgfi 57988b22bf3fSmrg 57998b22bf3fSmrg_ACEOF 580096a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 58018b22bf3fSmrgexec 5>>config.log 58028b22bf3fSmrg{ 58038b22bf3fSmrg echo 58048b22bf3fSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 58058b22bf3fSmrg## Running $as_me. ## 58068b22bf3fSmrg_ASBOX 580796a81b41Smrg $as_echo "$ac_log" 58088b22bf3fSmrg} >&5 58098b22bf3fSmrg 58108b22bf3fSmrg_ACEOF 581196a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 58128b22bf3fSmrg# 58138b22bf3fSmrg# INIT-COMMANDS 58148b22bf3fSmrg# 58158b22bf3fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 58168b22bf3fSmrg 58178b22bf3fSmrg_ACEOF 58188b22bf3fSmrg 581996a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 58208b22bf3fSmrg 58218b22bf3fSmrg# Handling of arguments. 58228b22bf3fSmrgfor ac_config_target in $ac_config_targets 58238b22bf3fSmrgdo 58248b22bf3fSmrg case $ac_config_target in 58258b22bf3fSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 58268b22bf3fSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 58278b22bf3fSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5828d13010c3Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 58298b22bf3fSmrg 58305bd32fd1Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 58318b22bf3fSmrg esac 58328b22bf3fSmrgdone 58338b22bf3fSmrg 58348b22bf3fSmrg 58358b22bf3fSmrg# If the user did not use the arguments to specify the items to instantiate, 58368b22bf3fSmrg# then the envvar interface is used. Set only those that are not. 58378b22bf3fSmrg# We use the long form for the default assignment because of an extremely 58388b22bf3fSmrg# bizarre bug on SunOS 4.1.3. 58398b22bf3fSmrgif $ac_need_defaults; then 58408b22bf3fSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 58418b22bf3fSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 58428b22bf3fSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 58438b22bf3fSmrgfi 58448b22bf3fSmrg 58458b22bf3fSmrg# Have a temporary directory for convenience. Make it in the build tree 58468b22bf3fSmrg# simply because there is no reason against having it here, and in addition, 58478b22bf3fSmrg# creating and moving files from /tmp can sometimes cause problems. 58488b22bf3fSmrg# Hook for its removal unless debugging. 58498b22bf3fSmrg# Note that there is a small window in which the directory will not be cleaned: 58508b22bf3fSmrg# after its creation but before its name has been assigned to `$tmp'. 58518b22bf3fSmrg$debug || 58528b22bf3fSmrg{ 58535bd32fd1Smrg tmp= ac_tmp= 58548b22bf3fSmrg trap 'exit_status=$? 58555bd32fd1Smrg : "${ac_tmp:=$tmp}" 58565bd32fd1Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 58578b22bf3fSmrg' 0 58585bd32fd1Smrg trap 'as_fn_exit 1' 1 2 13 15 58598b22bf3fSmrg} 58608b22bf3fSmrg# Create a (secure) tmp directory for tmp files. 58618b22bf3fSmrg 58628b22bf3fSmrg{ 58638b22bf3fSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 58645bd32fd1Smrg test -d "$tmp" 58658b22bf3fSmrg} || 58668b22bf3fSmrg{ 58678b22bf3fSmrg tmp=./conf$$-$RANDOM 58688b22bf3fSmrg (umask 077 && mkdir "$tmp") 58695bd32fd1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 58705bd32fd1Smrgac_tmp=$tmp 58718b22bf3fSmrg 587296a81b41Smrg# Set up the scripts for CONFIG_FILES section. 587396a81b41Smrg# No need to generate them if there are no CONFIG_FILES. 587496a81b41Smrg# This happens for instance with `./config.status config.h'. 58758b22bf3fSmrgif test -n "$CONFIG_FILES"; then 58768b22bf3fSmrg 58778b22bf3fSmrg 58785bd32fd1Smrgac_cr=`echo X | tr X '\015'` 58795bd32fd1Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 58805bd32fd1Smrg# But we know of no other shell where ac_cr would be empty at this 58815bd32fd1Smrg# point, so we can use a bashism as a fallback. 58825bd32fd1Smrgif test "x$ac_cr" = x; then 58835bd32fd1Smrg eval ac_cr=\$\'\\r\' 58845bd32fd1Smrgfi 588596a81b41Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 588696a81b41Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 588796a81b41Smrg ac_cs_awk_cr='\\r' 588896a81b41Smrgelse 588996a81b41Smrg ac_cs_awk_cr=$ac_cr 58908b22bf3fSmrgfi 58918b22bf3fSmrg 58925bd32fd1Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 58938b22bf3fSmrg_ACEOF 58948b22bf3fSmrg 58958b22bf3fSmrg 589696a81b41Smrg{ 589796a81b41Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 589896a81b41Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 589996a81b41Smrg echo "_ACEOF" 590096a81b41Smrg} >conf$$subs.sh || 59015bd32fd1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 59025bd32fd1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 59038b22bf3fSmrgac_delim='%!_!# ' 59048b22bf3fSmrgfor ac_last_try in false false false false false :; do 590596a81b41Smrg . ./conf$$subs.sh || 59065bd32fd1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 59078b22bf3fSmrg 590896a81b41Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 590996a81b41Smrg if test $ac_delim_n = $ac_delim_num; then 59108b22bf3fSmrg break 59118b22bf3fSmrg elif $ac_last_try; then 59125bd32fd1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 59138b22bf3fSmrg else 59148b22bf3fSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 59158b22bf3fSmrg fi 59168b22bf3fSmrgdone 591796a81b41Smrgrm -f conf$$subs.sh 59188b22bf3fSmrg 591996a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59205bd32fd1Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 592196a81b41Smrg_ACEOF 592296a81b41Smrgsed -n ' 592396a81b41Smrgh 592496a81b41Smrgs/^/S["/; s/!.*/"]=/ 592596a81b41Smrgp 592696a81b41Smrgg 592796a81b41Smrgs/^[^!]*!// 592896a81b41Smrg:repl 592996a81b41Smrgt repl 593096a81b41Smrgs/'"$ac_delim"'$// 593196a81b41Smrgt delim 593296a81b41Smrg:nl 593396a81b41Smrgh 59345bd32fd1Smrgs/\(.\{148\}\)..*/\1/ 593596a81b41Smrgt more1 593696a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 593796a81b41Smrgp 593896a81b41Smrgn 593996a81b41Smrgb repl 594096a81b41Smrg:more1 594196a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 594296a81b41Smrgp 594396a81b41Smrgg 594496a81b41Smrgs/.\{148\}// 594596a81b41Smrgt nl 594696a81b41Smrg:delim 594796a81b41Smrgh 59485bd32fd1Smrgs/\(.\{148\}\)..*/\1/ 594996a81b41Smrgt more2 595096a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 595196a81b41Smrgp 595296a81b41Smrgb 595396a81b41Smrg:more2 595496a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 595596a81b41Smrgp 595696a81b41Smrgg 595796a81b41Smrgs/.\{148\}// 595896a81b41Smrgt delim 595996a81b41Smrg' <conf$$subs.awk | sed ' 596096a81b41Smrg/^[^""]/{ 596196a81b41Smrg N 596296a81b41Smrg s/\n// 596396a81b41Smrg} 596496a81b41Smrg' >>$CONFIG_STATUS || ac_write_fail=1 596596a81b41Smrgrm -f conf$$subs.awk 596696a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 596796a81b41Smrg_ACAWK 59685bd32fd1Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 596996a81b41Smrg for (key in S) S_is_set[key] = 1 597096a81b41Smrg FS = "" 597196a81b41Smrg 597296a81b41Smrg} 597396a81b41Smrg{ 597496a81b41Smrg line = $ 0 597596a81b41Smrg nfields = split(line, field, "@") 597696a81b41Smrg substed = 0 597796a81b41Smrg len = length(field[1]) 597896a81b41Smrg for (i = 2; i < nfields; i++) { 597996a81b41Smrg key = field[i] 598096a81b41Smrg keylen = length(key) 598196a81b41Smrg if (S_is_set[key]) { 598296a81b41Smrg value = S[key] 598396a81b41Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 598496a81b41Smrg len += length(value) + length(field[++i]) 598596a81b41Smrg substed = 1 598696a81b41Smrg } else 598796a81b41Smrg len += 1 + keylen 598896a81b41Smrg } 598996a81b41Smrg 599096a81b41Smrg print line 599196a81b41Smrg} 59928b22bf3fSmrg 599396a81b41Smrg_ACAWK 59948b22bf3fSmrg_ACEOF 599596a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 599696a81b41Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 599796a81b41Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 599896a81b41Smrgelse 599996a81b41Smrg cat 60005bd32fd1Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 60015bd32fd1Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 60028b22bf3fSmrg_ACEOF 60038b22bf3fSmrg 60045bd32fd1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 60055bd32fd1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 60068b22bf3fSmrg# trailing colons and then remove the whole line if VPATH becomes empty 60078b22bf3fSmrg# (actually we leave an empty line to preserve line numbers). 60088b22bf3fSmrgif test "x$srcdir" = x.; then 60095bd32fd1Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 60105bd32fd1Smrgh 60115bd32fd1Smrgs/// 60125bd32fd1Smrgs/^/:/ 60135bd32fd1Smrgs/[ ]*$/:/ 60145bd32fd1Smrgs/:\$(srcdir):/:/g 60155bd32fd1Smrgs/:\${srcdir}:/:/g 60165bd32fd1Smrgs/:@srcdir@:/:/g 60175bd32fd1Smrgs/^:*// 60188b22bf3fSmrgs/:*$// 60195bd32fd1Smrgx 60205bd32fd1Smrgs/\(=[ ]*\).*/\1/ 60215bd32fd1SmrgG 60225bd32fd1Smrgs/\n// 60238b22bf3fSmrgs/^[^=]*=[ ]*$// 60248b22bf3fSmrg}' 60258b22bf3fSmrgfi 60268b22bf3fSmrg 602796a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 60288b22bf3fSmrgfi # test -n "$CONFIG_FILES" 60298b22bf3fSmrg 603096a81b41Smrg# Set up the scripts for CONFIG_HEADERS section. 603196a81b41Smrg# No need to generate them if there are no CONFIG_HEADERS. 603296a81b41Smrg# This happens for instance with `./config.status Makefile'. 603396a81b41Smrgif test -n "$CONFIG_HEADERS"; then 60345bd32fd1Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 603596a81b41SmrgBEGIN { 603696a81b41Smrg_ACEOF 603796a81b41Smrg 603896a81b41Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 603996a81b41Smrg# here-document in config.status, that substitutes the proper values into 604096a81b41Smrg# config.h.in to produce config.h. 604196a81b41Smrg 604296a81b41Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 604396a81b41Smrg# handling of long lines. 604496a81b41Smrgac_delim='%!_!# ' 604596a81b41Smrgfor ac_last_try in false false :; do 60465bd32fd1Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 60475bd32fd1Smrg if test -z "$ac_tt"; then 604896a81b41Smrg break 604996a81b41Smrg elif $ac_last_try; then 60505bd32fd1Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 605196a81b41Smrg else 605296a81b41Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 605396a81b41Smrg fi 605496a81b41Smrgdone 605596a81b41Smrg 605696a81b41Smrg# For the awk script, D is an array of macro values keyed by name, 605796a81b41Smrg# likewise P contains macro parameters if any. Preserve backslash 605896a81b41Smrg# newline sequences. 605996a81b41Smrg 606096a81b41Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 606196a81b41Smrgsed -n ' 606296a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g 606396a81b41Smrgt rset 606496a81b41Smrg:rset 606596a81b41Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 606696a81b41Smrgt def 606796a81b41Smrgd 606896a81b41Smrg:def 606996a81b41Smrgs/\\$// 607096a81b41Smrgt bsnl 607196a81b41Smrgs/["\\]/\\&/g 607296a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 607396a81b41SmrgD["\1"]=" \3"/p 607496a81b41Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 607596a81b41Smrgd 607696a81b41Smrg:bsnl 607796a81b41Smrgs/["\\]/\\&/g 607896a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 607996a81b41SmrgD["\1"]=" \3\\\\\\n"\\/p 608096a81b41Smrgt cont 608196a81b41Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 608296a81b41Smrgt cont 608396a81b41Smrgd 608496a81b41Smrg:cont 608596a81b41Smrgn 608696a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g 608796a81b41Smrgt clear 608896a81b41Smrg:clear 608996a81b41Smrgs/\\$// 609096a81b41Smrgt bsnlc 609196a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 609296a81b41Smrgd 609396a81b41Smrg:bsnlc 609496a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 609596a81b41Smrgb cont 609696a81b41Smrg' <confdefs.h | sed ' 609796a81b41Smrgs/'"$ac_delim"'/"\\\ 609896a81b41Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 609996a81b41Smrg 610096a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 610196a81b41Smrg for (key in D) D_is_set[key] = 1 610296a81b41Smrg FS = "" 610396a81b41Smrg} 610496a81b41Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 610596a81b41Smrg line = \$ 0 610696a81b41Smrg split(line, arg, " ") 610796a81b41Smrg if (arg[1] == "#") { 610896a81b41Smrg defundef = arg[2] 610996a81b41Smrg mac1 = arg[3] 611096a81b41Smrg } else { 611196a81b41Smrg defundef = substr(arg[1], 2) 611296a81b41Smrg mac1 = arg[2] 611396a81b41Smrg } 611496a81b41Smrg split(mac1, mac2, "(") #) 611596a81b41Smrg macro = mac2[1] 611696a81b41Smrg prefix = substr(line, 1, index(line, defundef) - 1) 611796a81b41Smrg if (D_is_set[macro]) { 611896a81b41Smrg # Preserve the white space surrounding the "#". 611996a81b41Smrg print prefix "define", macro P[macro] D[macro] 612096a81b41Smrg next 612196a81b41Smrg } else { 612296a81b41Smrg # Replace #undef with comments. This is necessary, for example, 612396a81b41Smrg # in the case of _POSIX_SOURCE, which is predefined and required 612496a81b41Smrg # on some systems where configure will not decide to define it. 612596a81b41Smrg if (defundef == "undef") { 612696a81b41Smrg print "/*", prefix defundef, macro, "*/" 612796a81b41Smrg next 612896a81b41Smrg } 612996a81b41Smrg } 613096a81b41Smrg} 613196a81b41Smrg{ print } 613296a81b41Smrg_ACAWK 613396a81b41Smrg_ACEOF 613496a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61355bd32fd1Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 613696a81b41Smrgfi # test -n "$CONFIG_HEADERS" 613796a81b41Smrg 61388b22bf3fSmrg 613996a81b41Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 614096a81b41Smrgshift 614196a81b41Smrgfor ac_tag 61428b22bf3fSmrgdo 61438b22bf3fSmrg case $ac_tag in 61448b22bf3fSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 61458b22bf3fSmrg esac 61468b22bf3fSmrg case $ac_mode$ac_tag in 61478b22bf3fSmrg :[FHL]*:*);; 61485bd32fd1Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 61498b22bf3fSmrg :[FH]-) ac_tag=-:-;; 61508b22bf3fSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 61518b22bf3fSmrg esac 61528b22bf3fSmrg ac_save_IFS=$IFS 61538b22bf3fSmrg IFS=: 61548b22bf3fSmrg set x $ac_tag 61558b22bf3fSmrg IFS=$ac_save_IFS 61568b22bf3fSmrg shift 61578b22bf3fSmrg ac_file=$1 61588b22bf3fSmrg shift 61598b22bf3fSmrg 61608b22bf3fSmrg case $ac_mode in 61618b22bf3fSmrg :L) ac_source=$1;; 61628b22bf3fSmrg :[FH]) 61638b22bf3fSmrg ac_file_inputs= 61648b22bf3fSmrg for ac_f 61658b22bf3fSmrg do 61668b22bf3fSmrg case $ac_f in 61675bd32fd1Smrg -) ac_f="$ac_tmp/stdin";; 61688b22bf3fSmrg *) # Look for the file first in the build tree, then in the source tree 61698b22bf3fSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 61708b22bf3fSmrg # because $ac_f cannot contain `:'. 61718b22bf3fSmrg test -f "$ac_f" || 61728b22bf3fSmrg case $ac_f in 61738b22bf3fSmrg [\\/$]*) false;; 61748b22bf3fSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 61758b22bf3fSmrg esac || 61765bd32fd1Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 61778b22bf3fSmrg esac 617896a81b41Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 61795bd32fd1Smrg as_fn_append ac_file_inputs " '$ac_f'" 61808b22bf3fSmrg done 61818b22bf3fSmrg 61828b22bf3fSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 61838b22bf3fSmrg # use $as_me), people would be surprised to read: 61848b22bf3fSmrg # /* config.h. Generated by config.status. */ 618596a81b41Smrg configure_input='Generated from '` 618696a81b41Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 618796a81b41Smrg `' by configure.' 61888b22bf3fSmrg if test x"$ac_file" != x-; then 61898b22bf3fSmrg configure_input="$ac_file. $configure_input" 61905bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 619196a81b41Smrg$as_echo "$as_me: creating $ac_file" >&6;} 61928b22bf3fSmrg fi 619396a81b41Smrg # Neutralize special characters interpreted by sed in replacement strings. 619496a81b41Smrg case $configure_input in #( 619596a81b41Smrg *\&* | *\|* | *\\* ) 619696a81b41Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 619796a81b41Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 619896a81b41Smrg *) ac_sed_conf_input=$configure_input;; 619996a81b41Smrg esac 62008b22bf3fSmrg 62018b22bf3fSmrg case $ac_tag in 62025bd32fd1Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 62035bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 62048b22bf3fSmrg esac 62058b22bf3fSmrg ;; 62068b22bf3fSmrg esac 62078b22bf3fSmrg 62088b22bf3fSmrg ac_dir=`$as_dirname -- "$ac_file" || 62098b22bf3fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 62108b22bf3fSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 62118b22bf3fSmrg X"$ac_file" : 'X\(//\)$' \| \ 62128b22bf3fSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 621396a81b41Smrg$as_echo X"$ac_file" | 62148b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 62158b22bf3fSmrg s//\1/ 62168b22bf3fSmrg q 62178b22bf3fSmrg } 62188b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 62198b22bf3fSmrg s//\1/ 62208b22bf3fSmrg q 62218b22bf3fSmrg } 62228b22bf3fSmrg /^X\(\/\/\)$/{ 62238b22bf3fSmrg s//\1/ 62248b22bf3fSmrg q 62258b22bf3fSmrg } 62268b22bf3fSmrg /^X\(\/\).*/{ 62278b22bf3fSmrg s//\1/ 62288b22bf3fSmrg q 62298b22bf3fSmrg } 62308b22bf3fSmrg s/.*/./; q'` 62315bd32fd1Smrg as_dir="$ac_dir"; as_fn_mkdir_p 62328b22bf3fSmrg ac_builddir=. 62338b22bf3fSmrg 62348b22bf3fSmrgcase "$ac_dir" in 62358b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 62368b22bf3fSmrg*) 623796a81b41Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 62388b22bf3fSmrg # A ".." for each directory in $ac_dir_suffix. 623996a81b41Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 62408b22bf3fSmrg case $ac_top_builddir_sub in 62418b22bf3fSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 62428b22bf3fSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 62438b22bf3fSmrg esac ;; 62448b22bf3fSmrgesac 62458b22bf3fSmrgac_abs_top_builddir=$ac_pwd 62468b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 62478b22bf3fSmrg# for backward compatibility: 62488b22bf3fSmrgac_top_builddir=$ac_top_build_prefix 62498b22bf3fSmrg 62508b22bf3fSmrgcase $srcdir in 62518b22bf3fSmrg .) # We are building in place. 62528b22bf3fSmrg ac_srcdir=. 62538b22bf3fSmrg ac_top_srcdir=$ac_top_builddir_sub 62548b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd ;; 62558b22bf3fSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 62568b22bf3fSmrg ac_srcdir=$srcdir$ac_dir_suffix; 62578b22bf3fSmrg ac_top_srcdir=$srcdir 62588b22bf3fSmrg ac_abs_top_srcdir=$srcdir ;; 62598b22bf3fSmrg *) # Relative name. 62608b22bf3fSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 62618b22bf3fSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 62628b22bf3fSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 62638b22bf3fSmrgesac 62648b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 62658b22bf3fSmrg 62668b22bf3fSmrg 62678b22bf3fSmrg case $ac_mode in 62688b22bf3fSmrg :F) 62698b22bf3fSmrg # 62708b22bf3fSmrg # CONFIG_FILE 62718b22bf3fSmrg # 62728b22bf3fSmrg 62738b22bf3fSmrg case $INSTALL in 62748b22bf3fSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 62758b22bf3fSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 62768b22bf3fSmrg esac 62778b22bf3fSmrg ac_MKDIR_P=$MKDIR_P 62788b22bf3fSmrg case $MKDIR_P in 62798b22bf3fSmrg [\\/$]* | ?:[\\/]* ) ;; 62808b22bf3fSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 62818b22bf3fSmrg esac 62828b22bf3fSmrg_ACEOF 62838b22bf3fSmrg 628496a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 62858b22bf3fSmrg# If the template does not know about datarootdir, expand it. 62868b22bf3fSmrg# FIXME: This hack should be removed a few years after 2.60. 62878b22bf3fSmrgac_datarootdir_hack=; ac_datarootdir_seen= 628896a81b41Smrgac_sed_dataroot=' 628996a81b41Smrg/datarootdir/ { 62908b22bf3fSmrg p 62918b22bf3fSmrg q 62928b22bf3fSmrg} 62938b22bf3fSmrg/@datadir@/p 62948b22bf3fSmrg/@docdir@/p 62958b22bf3fSmrg/@infodir@/p 62968b22bf3fSmrg/@localedir@/p 62975bd32fd1Smrg/@mandir@/p' 629896a81b41Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 62998b22bf3fSmrg*datarootdir*) ac_datarootdir_seen=yes;; 63008b22bf3fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 63015bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 630296a81b41Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 63038b22bf3fSmrg_ACEOF 630496a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 63058b22bf3fSmrg ac_datarootdir_hack=' 63068b22bf3fSmrg s&@datadir@&$datadir&g 63078b22bf3fSmrg s&@docdir@&$docdir&g 63088b22bf3fSmrg s&@infodir@&$infodir&g 63098b22bf3fSmrg s&@localedir@&$localedir&g 63108b22bf3fSmrg s&@mandir@&$mandir&g 63115bd32fd1Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 63128b22bf3fSmrgesac 63138b22bf3fSmrg_ACEOF 63148b22bf3fSmrg 63158b22bf3fSmrg# Neutralize VPATH when `$srcdir' = `.'. 63168b22bf3fSmrg# Shell code in configure.ac might set extrasub. 63178b22bf3fSmrg# FIXME: do we really want to maintain this feature? 631896a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 631996a81b41Smrgac_sed_extra="$ac_vpsub 63208b22bf3fSmrg$extrasub 63218b22bf3fSmrg_ACEOF 632296a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 63238b22bf3fSmrg:t 63248b22bf3fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 632596a81b41Smrgs|@configure_input@|$ac_sed_conf_input|;t t 63268b22bf3fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 632796a81b41Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 63288b22bf3fSmrgs&@srcdir@&$ac_srcdir&;t t 63298b22bf3fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 63308b22bf3fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 63318b22bf3fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 63328b22bf3fSmrgs&@builddir@&$ac_builddir&;t t 63338b22bf3fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 63348b22bf3fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 63358b22bf3fSmrgs&@INSTALL@&$ac_INSTALL&;t t 63368b22bf3fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 63378b22bf3fSmrg$ac_datarootdir_hack 633896a81b41Smrg" 63395bd32fd1Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 63405bd32fd1Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63418b22bf3fSmrg 63428b22bf3fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 63435bd32fd1Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 63445bd32fd1Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 63455bd32fd1Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 63465bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 63475bd32fd1Smrgwhich seems to be undefined. Please make sure it is defined" >&5 634896a81b41Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 63495bd32fd1Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 63508b22bf3fSmrg 63515bd32fd1Smrg rm -f "$ac_tmp/stdin" 63528b22bf3fSmrg case $ac_file in 63535bd32fd1Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 63545bd32fd1Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 635596a81b41Smrg esac \ 63565bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63578b22bf3fSmrg ;; 63588b22bf3fSmrg :H) 63598b22bf3fSmrg # 63608b22bf3fSmrg # CONFIG_HEADER 63618b22bf3fSmrg # 63628b22bf3fSmrg if test x"$ac_file" != x-; then 636396a81b41Smrg { 636496a81b41Smrg $as_echo "/* $configure_input */" \ 63655bd32fd1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 63665bd32fd1Smrg } >"$ac_tmp/config.h" \ 63675bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63685bd32fd1Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 63695bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 637096a81b41Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 63718b22bf3fSmrg else 637296a81b41Smrg rm -f "$ac_file" 63735bd32fd1Smrg mv "$ac_tmp/config.h" "$ac_file" \ 63745bd32fd1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63758b22bf3fSmrg fi 63768b22bf3fSmrg else 637796a81b41Smrg $as_echo "/* $configure_input */" \ 63785bd32fd1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 63795bd32fd1Smrg || as_fn_error $? "could not create -" "$LINENO" 5 63808b22bf3fSmrg fi 638196a81b41Smrg# Compute "$ac_file"'s index in $config_headers. 638296a81b41Smrg_am_arg="$ac_file" 63838b22bf3fSmrg_am_stamp_count=1 63848b22bf3fSmrgfor _am_header in $config_headers :; do 63858b22bf3fSmrg case $_am_header in 638696a81b41Smrg $_am_arg | $_am_arg:* ) 63878b22bf3fSmrg break ;; 63888b22bf3fSmrg * ) 63898b22bf3fSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 63908b22bf3fSmrg esac 63918b22bf3fSmrgdone 639296a81b41Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 639396a81b41Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 639496a81b41Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 639596a81b41Smrg X"$_am_arg" : 'X\(//\)$' \| \ 639696a81b41Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 639796a81b41Smrg$as_echo X"$_am_arg" | 63988b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 63998b22bf3fSmrg s//\1/ 64008b22bf3fSmrg q 64018b22bf3fSmrg } 64028b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 64038b22bf3fSmrg s//\1/ 64048b22bf3fSmrg q 64058b22bf3fSmrg } 64068b22bf3fSmrg /^X\(\/\/\)$/{ 64078b22bf3fSmrg s//\1/ 64088b22bf3fSmrg q 64098b22bf3fSmrg } 64108b22bf3fSmrg /^X\(\/\).*/{ 64118b22bf3fSmrg s//\1/ 64128b22bf3fSmrg q 64138b22bf3fSmrg } 64148b22bf3fSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 64158b22bf3fSmrg ;; 64168b22bf3fSmrg 64175bd32fd1Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 641896a81b41Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 64198b22bf3fSmrg ;; 64208b22bf3fSmrg esac 64218b22bf3fSmrg 64228b22bf3fSmrg 64238b22bf3fSmrg case $ac_file$ac_mode in 642496a81b41Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 642596a81b41Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 642696a81b41Smrg # are listed without --file. Let's play safe and only enable the eval 642796a81b41Smrg # if we detect the quoting. 642896a81b41Smrg case $CONFIG_FILES in 642996a81b41Smrg *\'*) eval set x "$CONFIG_FILES" ;; 643096a81b41Smrg *) set x $CONFIG_FILES ;; 643196a81b41Smrg esac 643296a81b41Smrg shift 643396a81b41Smrg for mf 643496a81b41Smrg do 643596a81b41Smrg # Strip MF so we end up with the name of the file. 643696a81b41Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 643796a81b41Smrg # Check whether this is an Automake generated Makefile or not. 643896a81b41Smrg # We used to match only the files named `Makefile.in', but 643996a81b41Smrg # some people rename them; so instead we look at the file content. 644096a81b41Smrg # Grep'ing the first line is not enough: some people post-process 644196a81b41Smrg # each Makefile.in and add a new line on top of each file to say so. 644296a81b41Smrg # Grep'ing the whole file is not good either: AIX grep has a line 644396a81b41Smrg # limit of 2048, but all sed's we know have understand at least 4000. 644496a81b41Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 644596a81b41Smrg dirpart=`$as_dirname -- "$mf" || 64468b22bf3fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64478b22bf3fSmrg X"$mf" : 'X\(//\)[^/]' \| \ 64488b22bf3fSmrg X"$mf" : 'X\(//\)$' \| \ 64498b22bf3fSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 645096a81b41Smrg$as_echo X"$mf" | 64518b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 64528b22bf3fSmrg s//\1/ 64538b22bf3fSmrg q 64548b22bf3fSmrg } 64558b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 64568b22bf3fSmrg s//\1/ 64578b22bf3fSmrg q 64588b22bf3fSmrg } 64598b22bf3fSmrg /^X\(\/\/\)$/{ 64608b22bf3fSmrg s//\1/ 64618b22bf3fSmrg q 64628b22bf3fSmrg } 64638b22bf3fSmrg /^X\(\/\).*/{ 64648b22bf3fSmrg s//\1/ 64658b22bf3fSmrg q 64668b22bf3fSmrg } 64678b22bf3fSmrg s/.*/./; q'` 646896a81b41Smrg else 646996a81b41Smrg continue 647096a81b41Smrg fi 647196a81b41Smrg # Extract the definition of DEPDIR, am__include, and am__quote 647296a81b41Smrg # from the Makefile without running `make'. 647396a81b41Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 647496a81b41Smrg test -z "$DEPDIR" && continue 647596a81b41Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 647696a81b41Smrg test -z "am__include" && continue 647796a81b41Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 647896a81b41Smrg # When using ansi2knr, U may be empty or an underscore; expand it 647996a81b41Smrg U=`sed -n 's/^U = //p' < "$mf"` 648096a81b41Smrg # Find all dependency output files, they are included files with 648196a81b41Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 648296a81b41Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 648396a81b41Smrg # expansion. 648496a81b41Smrg for file in `sed -n " 648596a81b41Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 648696a81b41Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 648796a81b41Smrg # Make sure the directory exists. 648896a81b41Smrg test -f "$dirpart/$file" && continue 648996a81b41Smrg fdir=`$as_dirname -- "$file" || 64908b22bf3fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64918b22bf3fSmrg X"$file" : 'X\(//\)[^/]' \| \ 64928b22bf3fSmrg X"$file" : 'X\(//\)$' \| \ 64938b22bf3fSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 649496a81b41Smrg$as_echo X"$file" | 64958b22bf3fSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 64968b22bf3fSmrg s//\1/ 64978b22bf3fSmrg q 64988b22bf3fSmrg } 64998b22bf3fSmrg /^X\(\/\/\)[^/].*/{ 65008b22bf3fSmrg s//\1/ 65018b22bf3fSmrg q 65028b22bf3fSmrg } 65038b22bf3fSmrg /^X\(\/\/\)$/{ 65048b22bf3fSmrg s//\1/ 65058b22bf3fSmrg q 65068b22bf3fSmrg } 65078b22bf3fSmrg /^X\(\/\).*/{ 65088b22bf3fSmrg s//\1/ 65098b22bf3fSmrg q 65108b22bf3fSmrg } 65118b22bf3fSmrg s/.*/./; q'` 65125bd32fd1Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 651396a81b41Smrg # echo "creating $dirpart/$file" 651496a81b41Smrg echo '# dummy' > "$dirpart/$file" 651596a81b41Smrg done 65168b22bf3fSmrg done 651796a81b41Smrg} 65188b22bf3fSmrg ;; 65198b22bf3fSmrg 65208b22bf3fSmrg esac 65218b22bf3fSmrgdone # for ac_tag 65228b22bf3fSmrg 65238b22bf3fSmrg 65245bd32fd1Smrgas_fn_exit 0 65258b22bf3fSmrg_ACEOF 65268b22bf3fSmrgac_clean_files=$ac_clean_files_save 65278b22bf3fSmrg 652896a81b41Smrgtest $ac_write_fail = 0 || 65295bd32fd1Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 653096a81b41Smrg 65318b22bf3fSmrg 65328b22bf3fSmrg# configure is writing to config.log, and then calls config.status. 65338b22bf3fSmrg# config.status does its own redirection, appending to config.log. 65348b22bf3fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 65358b22bf3fSmrg# by configure, so config.status won't be able to write to it; its 65368b22bf3fSmrg# output is simply discarded. So we exec the FD to /dev/null, 65378b22bf3fSmrg# effectively closing config.log, so it can be properly (re)opened and 65388b22bf3fSmrg# appended to by config.status. When coming back to configure, we 65398b22bf3fSmrg# need to make the FD available again. 65408b22bf3fSmrgif test "$no_create" != yes; then 65418b22bf3fSmrg ac_cs_success=: 65428b22bf3fSmrg ac_config_status_args= 65438b22bf3fSmrg test "$silent" = yes && 65448b22bf3fSmrg ac_config_status_args="$ac_config_status_args --quiet" 65458b22bf3fSmrg exec 5>/dev/null 65468b22bf3fSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 65478b22bf3fSmrg exec 5>>config.log 65488b22bf3fSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 65498b22bf3fSmrg # would make configure fail if this is the last instruction. 65505bd32fd1Smrg $ac_cs_success || as_fn_exit 1 65518b22bf3fSmrgfi 655296a81b41Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 65535bd32fd1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 655496a81b41Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 655596a81b41Smrgfi 65568b22bf3fSmrg 6557