configure revision 2d96a817
13e747e6dSmrg#! /bin/sh 23e747e6dSmrg# Guess values for system-dependent variables and create Makefiles. 32d96a817Smrg# Generated by GNU Autoconf 2.68 for twm 1.0.6. 43e747e6dSmrg# 53e747e6dSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 63e747e6dSmrg# 77a2631fcSmrg# 83e747e6dSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 97a2631fcSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 107a2631fcSmrg# Foundation, Inc. 117a2631fcSmrg# 127a2631fcSmrg# 133e747e6dSmrg# This configure script is free software; the Free Software Foundation 143e747e6dSmrg# gives unlimited permission to copy, distribute and modify it. 157a2631fcSmrg## -------------------- ## 167a2631fcSmrg## M4sh Initialization. ## 177a2631fcSmrg## -------------------- ## 183e747e6dSmrg 193e747e6dSmrg# Be more Bourne compatible 203e747e6dSmrgDUALCASE=1; export DUALCASE # for MKS sh 217a2631fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 223e747e6dSmrg emulate sh 233e747e6dSmrg NULLCMD=: 247a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 253e747e6dSmrg # is contrary to our usage. Disable this feature. 263e747e6dSmrg alias -g '${1+"$@"}'='"$@"' 273e747e6dSmrg setopt NO_GLOB_SUBST 283e747e6dSmrgelse 297a2631fcSmrg case `(set -o) 2>/dev/null` in #( 307a2631fcSmrg *posix*) : 317a2631fcSmrg set -o posix ;; #( 327a2631fcSmrg *) : 337a2631fcSmrg ;; 343e747e6dSmrgesac 353e747e6dSmrgfi 363e747e6dSmrg 373e747e6dSmrg 387a2631fcSmrgas_nl=' 397a2631fcSmrg' 407a2631fcSmrgexport as_nl 417a2631fcSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 427a2631fcSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 437a2631fcSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 447a2631fcSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 457a2631fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 467a2631fcSmrg# but without wasting forks for bash or zsh. 477a2631fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 487a2631fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 497a2631fcSmrg as_echo='print -r --' 507a2631fcSmrg as_echo_n='print -rn --' 517a2631fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 527a2631fcSmrg as_echo='printf %s\n' 537a2631fcSmrg as_echo_n='printf %s' 547a2631fcSmrgelse 557a2631fcSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 567a2631fcSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 577a2631fcSmrg as_echo_n='/usr/ucb/echo -n' 583e747e6dSmrg else 597a2631fcSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 607a2631fcSmrg as_echo_n_body='eval 617a2631fcSmrg arg=$1; 627a2631fcSmrg case $arg in #( 637a2631fcSmrg *"$as_nl"*) 647a2631fcSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 657a2631fcSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 667a2631fcSmrg esac; 677a2631fcSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 687a2631fcSmrg ' 697a2631fcSmrg export as_echo_n_body 707a2631fcSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 713e747e6dSmrg fi 727a2631fcSmrg export as_echo_body 737a2631fcSmrg as_echo='sh -c $as_echo_body as_echo' 743e747e6dSmrgfi 753e747e6dSmrg 767a2631fcSmrg# The user is always right. 777a2631fcSmrgif test "${PATH_SEPARATOR+set}" != set; then 787a2631fcSmrg PATH_SEPARATOR=: 797a2631fcSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 807a2631fcSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 817a2631fcSmrg PATH_SEPARATOR=';' 827a2631fcSmrg } 833e747e6dSmrgfi 843e747e6dSmrg 853e747e6dSmrg 863e747e6dSmrg# IFS 873e747e6dSmrg# We need space, tab and new line, in precisely that order. Quoting is 883e747e6dSmrg# there to prevent editors from complaining about space-tab. 893e747e6dSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 903e747e6dSmrg# splitting by setting IFS to empty value.) 913e747e6dSmrgIFS=" "" $as_nl" 923e747e6dSmrg 933e747e6dSmrg# Find who we are. Look in the path if we contain no directory separator. 947a2631fcSmrgas_myself= 957a2631fcSmrgcase $0 in #(( 963e747e6dSmrg *[\\/]* ) as_myself=$0 ;; 973e747e6dSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 983e747e6dSmrgfor as_dir in $PATH 993e747e6dSmrgdo 1003e747e6dSmrg IFS=$as_save_IFS 1013e747e6dSmrg test -z "$as_dir" && as_dir=. 1027a2631fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1037a2631fcSmrg done 1043e747e6dSmrgIFS=$as_save_IFS 1053e747e6dSmrg 1063e747e6dSmrg ;; 1073e747e6dSmrgesac 1083e747e6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1093e747e6dSmrg# in which case we are not to be found in the path. 1103e747e6dSmrgif test "x$as_myself" = x; then 1113e747e6dSmrg as_myself=$0 1123e747e6dSmrgfi 1133e747e6dSmrgif test ! -f "$as_myself"; then 1147a2631fcSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1157a2631fcSmrg exit 1 1163e747e6dSmrgfi 1173e747e6dSmrg 1187a2631fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 1197a2631fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1207a2631fcSmrg# suppresses any "Segmentation fault" message there. '((' could 1217a2631fcSmrg# trigger a bug in pdksh 5.2.14. 1227a2631fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1237a2631fcSmrgdo eval test x\${$as_var+set} = xset \ 1247a2631fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1253e747e6dSmrgdone 1263e747e6dSmrgPS1='$ ' 1273e747e6dSmrgPS2='> ' 1283e747e6dSmrgPS4='+ ' 1293e747e6dSmrg 1303e747e6dSmrg# NLS nuisances. 1317a2631fcSmrgLC_ALL=C 1327a2631fcSmrgexport LC_ALL 1337a2631fcSmrgLANGUAGE=C 1347a2631fcSmrgexport LANGUAGE 1357a2631fcSmrg 1367a2631fcSmrg# CDPATH. 1377a2631fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1387a2631fcSmrg 1397a2631fcSmrgif test "x$CONFIG_SHELL" = x; then 1407a2631fcSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1417a2631fcSmrg emulate sh 1427a2631fcSmrg NULLCMD=: 1437a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1447a2631fcSmrg # is contrary to our usage. Disable this feature. 1457a2631fcSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1467a2631fcSmrg setopt NO_GLOB_SUBST 1477a2631fcSmrgelse 1487a2631fcSmrg case \`(set -o) 2>/dev/null\` in #( 1497a2631fcSmrg *posix*) : 1507a2631fcSmrg set -o posix ;; #( 1517a2631fcSmrg *) : 1527a2631fcSmrg ;; 1537a2631fcSmrgesac 1547a2631fcSmrgfi 1557a2631fcSmrg" 1567a2631fcSmrg as_required="as_fn_return () { (exit \$1); } 1577a2631fcSmrgas_fn_success () { as_fn_return 0; } 1587a2631fcSmrgas_fn_failure () { as_fn_return 1; } 1597a2631fcSmrgas_fn_ret_success () { return 0; } 1607a2631fcSmrgas_fn_ret_failure () { return 1; } 1617a2631fcSmrg 1627a2631fcSmrgexitcode=0 1637a2631fcSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1647a2631fcSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1657a2631fcSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1667a2631fcSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1677a2631fcSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1687a2631fcSmrg 1697a2631fcSmrgelse 1707a2631fcSmrg exitcode=1; echo positional parameters were not saved. 1717a2631fcSmrgfi 1727a2631fcSmrgtest x\$exitcode = x0 || exit 1" 1737a2631fcSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1747a2631fcSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1757a2631fcSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 1767a2631fcSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 1777a2631fcSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 1787a2631fcSmrg if (eval "$as_required") 2>/dev/null; then : 1797a2631fcSmrg as_have_required=yes 1807a2631fcSmrgelse 1817a2631fcSmrg as_have_required=no 1827a2631fcSmrgfi 1837a2631fcSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 1847a2631fcSmrg 1857a2631fcSmrgelse 1867a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1877a2631fcSmrgas_found=false 1887a2631fcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1893e747e6dSmrgdo 1907a2631fcSmrg IFS=$as_save_IFS 1917a2631fcSmrg test -z "$as_dir" && as_dir=. 1927a2631fcSmrg as_found=: 1937a2631fcSmrg case $as_dir in #( 1947a2631fcSmrg /*) 1957a2631fcSmrg for as_base in sh bash ksh sh5; do 1967a2631fcSmrg # Try only shells that exist, to save several forks. 1977a2631fcSmrg as_shell=$as_dir/$as_base 1987a2631fcSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 1997a2631fcSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2007a2631fcSmrg CONFIG_SHELL=$as_shell as_have_required=yes 2017a2631fcSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2027a2631fcSmrg break 2 2037a2631fcSmrgfi 2047a2631fcSmrgfi 2057a2631fcSmrg done;; 2067a2631fcSmrg esac 2077a2631fcSmrg as_found=false 2087a2631fcSmrgdone 2097a2631fcSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2107a2631fcSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2117a2631fcSmrg CONFIG_SHELL=$SHELL as_have_required=yes 2127a2631fcSmrgfi; } 2137a2631fcSmrgIFS=$as_save_IFS 2147a2631fcSmrg 2157a2631fcSmrg 2167a2631fcSmrg if test "x$CONFIG_SHELL" != x; then : 2177a2631fcSmrg # We cannot yet assume a decent shell, so we have to provide a 2187a2631fcSmrg # neutralization value for shells without unset; and this also 2197a2631fcSmrg # works around shells that cannot unset nonexistent variables. 2207a2631fcSmrg # Preserve -v and -x to the replacement shell. 2217a2631fcSmrg BASH_ENV=/dev/null 2227a2631fcSmrg ENV=/dev/null 2237a2631fcSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2247a2631fcSmrg export CONFIG_SHELL 2257a2631fcSmrg case $- in # (((( 2267a2631fcSmrg *v*x* | *x*v* ) as_opts=-vx ;; 2277a2631fcSmrg *v* ) as_opts=-v ;; 2287a2631fcSmrg *x* ) as_opts=-x ;; 2297a2631fcSmrg * ) as_opts= ;; 2307a2631fcSmrg esac 2317a2631fcSmrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 2327a2631fcSmrgfi 2337a2631fcSmrg 2347a2631fcSmrg if test x$as_have_required = xno; then : 2357a2631fcSmrg $as_echo "$0: This script requires a shell more modern than all" 2367a2631fcSmrg $as_echo "$0: the shells that I found on your system." 2377a2631fcSmrg if test x${ZSH_VERSION+set} = xset ; then 2387a2631fcSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2397a2631fcSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2403e747e6dSmrg else 2417a2631fcSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2427a2631fcSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2437a2631fcSmrg$0: about your system, including any error possibly output 2447a2631fcSmrg$0: before this message. Then install a modern shell, or 2457a2631fcSmrg$0: manually run the script under such a shell if you do 2467a2631fcSmrg$0: have one." 2473e747e6dSmrg fi 2487a2631fcSmrg exit 1 2497a2631fcSmrgfi 2507a2631fcSmrgfi 2517a2631fcSmrgfi 2527a2631fcSmrgSHELL=${CONFIG_SHELL-/bin/sh} 2537a2631fcSmrgexport SHELL 2547a2631fcSmrg# Unset more variables known to interfere with behavior of common tools. 2557a2631fcSmrgCLICOLOR_FORCE= GREP_OPTIONS= 2567a2631fcSmrgunset CLICOLOR_FORCE GREP_OPTIONS 2577a2631fcSmrg 2587a2631fcSmrg## --------------------- ## 2597a2631fcSmrg## M4sh Shell Functions. ## 2607a2631fcSmrg## --------------------- ## 2617a2631fcSmrg# as_fn_unset VAR 2627a2631fcSmrg# --------------- 2637a2631fcSmrg# Portably unset VAR. 2647a2631fcSmrgas_fn_unset () 2657a2631fcSmrg{ 2667a2631fcSmrg { eval $1=; unset $1;} 2677a2631fcSmrg} 2687a2631fcSmrgas_unset=as_fn_unset 2697a2631fcSmrg 2707a2631fcSmrg# as_fn_set_status STATUS 2717a2631fcSmrg# ----------------------- 2727a2631fcSmrg# Set $? to STATUS, without forking. 2737a2631fcSmrgas_fn_set_status () 2747a2631fcSmrg{ 2757a2631fcSmrg return $1 2767a2631fcSmrg} # as_fn_set_status 2777a2631fcSmrg 2787a2631fcSmrg# as_fn_exit STATUS 2797a2631fcSmrg# ----------------- 2807a2631fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2817a2631fcSmrgas_fn_exit () 2827a2631fcSmrg{ 2837a2631fcSmrg set +e 2847a2631fcSmrg as_fn_set_status $1 2857a2631fcSmrg exit $1 2867a2631fcSmrg} # as_fn_exit 2877a2631fcSmrg 2887a2631fcSmrg# as_fn_mkdir_p 2897a2631fcSmrg# ------------- 2907a2631fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 2917a2631fcSmrgas_fn_mkdir_p () 2927a2631fcSmrg{ 2937a2631fcSmrg 2947a2631fcSmrg case $as_dir in #( 2957a2631fcSmrg -*) as_dir=./$as_dir;; 2967a2631fcSmrg esac 2977a2631fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 2987a2631fcSmrg as_dirs= 2997a2631fcSmrg while :; do 3007a2631fcSmrg case $as_dir in #( 3017a2631fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3027a2631fcSmrg *) as_qdir=$as_dir;; 3037a2631fcSmrg esac 3047a2631fcSmrg as_dirs="'$as_qdir' $as_dirs" 3057a2631fcSmrg as_dir=`$as_dirname -- "$as_dir" || 3067a2631fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3077a2631fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3087a2631fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 3097a2631fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3107a2631fcSmrg$as_echo X"$as_dir" | 3117a2631fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3127a2631fcSmrg s//\1/ 3137a2631fcSmrg q 3147a2631fcSmrg } 3157a2631fcSmrg /^X\(\/\/\)[^/].*/{ 3167a2631fcSmrg s//\1/ 3177a2631fcSmrg q 3187a2631fcSmrg } 3197a2631fcSmrg /^X\(\/\/\)$/{ 3207a2631fcSmrg s//\1/ 3217a2631fcSmrg q 3227a2631fcSmrg } 3237a2631fcSmrg /^X\(\/\).*/{ 3247a2631fcSmrg s//\1/ 3257a2631fcSmrg q 3267a2631fcSmrg } 3277a2631fcSmrg s/.*/./; q'` 3287a2631fcSmrg test -d "$as_dir" && break 3297a2631fcSmrg done 3307a2631fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3317a2631fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3327a2631fcSmrg 3337a2631fcSmrg 3347a2631fcSmrg} # as_fn_mkdir_p 3357a2631fcSmrg# as_fn_append VAR VALUE 3367a2631fcSmrg# ---------------------- 3377a2631fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3387a2631fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 3397a2631fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 3407a2631fcSmrg# implementations. 3417a2631fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3427a2631fcSmrg eval 'as_fn_append () 3437a2631fcSmrg { 3447a2631fcSmrg eval $1+=\$2 3457a2631fcSmrg }' 3467a2631fcSmrgelse 3477a2631fcSmrg as_fn_append () 3487a2631fcSmrg { 3497a2631fcSmrg eval $1=\$$1\$2 3507a2631fcSmrg } 3517a2631fcSmrgfi # as_fn_append 3527a2631fcSmrg 3537a2631fcSmrg# as_fn_arith ARG... 3547a2631fcSmrg# ------------------ 3557a2631fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3567a2631fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3577a2631fcSmrg# must be portable across $(()) and expr. 3587a2631fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3597a2631fcSmrg eval 'as_fn_arith () 3607a2631fcSmrg { 3617a2631fcSmrg as_val=$(( $* )) 3627a2631fcSmrg }' 3637a2631fcSmrgelse 3647a2631fcSmrg as_fn_arith () 3657a2631fcSmrg { 3667a2631fcSmrg as_val=`expr "$@" || test $? -eq 1` 3677a2631fcSmrg } 3687a2631fcSmrgfi # as_fn_arith 3697a2631fcSmrg 3707a2631fcSmrg 3717a2631fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 3727a2631fcSmrg# ---------------------------------------- 3737a2631fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3747a2631fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3757a2631fcSmrg# script with STATUS, using 1 if that was 0. 3767a2631fcSmrgas_fn_error () 3777a2631fcSmrg{ 3787a2631fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 3797a2631fcSmrg if test "$4"; then 3807a2631fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3817a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3827a2631fcSmrg fi 3837a2631fcSmrg $as_echo "$as_me: error: $2" >&2 3847a2631fcSmrg as_fn_exit $as_status 3857a2631fcSmrg} # as_fn_error 3863e747e6dSmrg 3873e747e6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 3883e747e6dSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3893e747e6dSmrg as_expr=expr 3903e747e6dSmrgelse 3913e747e6dSmrg as_expr=false 3923e747e6dSmrgfi 3933e747e6dSmrg 3943e747e6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3953e747e6dSmrg as_basename=basename 3963e747e6dSmrgelse 3973e747e6dSmrg as_basename=false 3983e747e6dSmrgfi 3993e747e6dSmrg 4007a2631fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4017a2631fcSmrg as_dirname=dirname 4027a2631fcSmrgelse 4037a2631fcSmrg as_dirname=false 4047a2631fcSmrgfi 4053e747e6dSmrg 4063e747e6dSmrgas_me=`$as_basename -- "$0" || 4073e747e6dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4083e747e6dSmrg X"$0" : 'X\(//\)$' \| \ 4093e747e6dSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4107a2631fcSmrg$as_echo X/"$0" | 4113e747e6dSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4123e747e6dSmrg s//\1/ 4133e747e6dSmrg q 4143e747e6dSmrg } 4153e747e6dSmrg /^X\/\(\/\/\)$/{ 4163e747e6dSmrg s//\1/ 4173e747e6dSmrg q 4183e747e6dSmrg } 4193e747e6dSmrg /^X\/\(\/\).*/{ 4203e747e6dSmrg s//\1/ 4213e747e6dSmrg q 4223e747e6dSmrg } 4233e747e6dSmrg s/.*/./; q'` 4243e747e6dSmrg 4257a2631fcSmrg# Avoid depending upon Character Ranges. 4267a2631fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4277a2631fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4287a2631fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4297a2631fcSmrgas_cr_digits='0123456789' 4307a2631fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4313e747e6dSmrg 4323e747e6dSmrg 4337a2631fcSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4347a2631fcSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4357a2631fcSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4367a2631fcSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4377a2631fcSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 4387a2631fcSmrg sed -n ' 4397a2631fcSmrg p 4407a2631fcSmrg /[$]LINENO/= 4417a2631fcSmrg ' <$as_myself | 4427a2631fcSmrg sed ' 4437a2631fcSmrg s/[$]LINENO.*/&-/ 4447a2631fcSmrg t lineno 4457a2631fcSmrg b 4467a2631fcSmrg :lineno 4477a2631fcSmrg N 4487a2631fcSmrg :loop 4497a2631fcSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4507a2631fcSmrg t loop 4517a2631fcSmrg s/-\n.*// 4527a2631fcSmrg ' >$as_me.lineno && 4537a2631fcSmrg chmod +x "$as_me.lineno" || 4547a2631fcSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4553e747e6dSmrg 4567a2631fcSmrg # Don't try to exec as it changes $[0], causing all sort of problems 4577a2631fcSmrg # (the dirname of $[0] is not the place where we might find the 4587a2631fcSmrg # original and so on. Autoconf is especially sensitive to this). 4597a2631fcSmrg . "./$as_me.lineno" 4607a2631fcSmrg # Exit status is that of the last command. 4617a2631fcSmrg exit 4623e747e6dSmrg} 4633e747e6dSmrg 4647a2631fcSmrgECHO_C= ECHO_N= ECHO_T= 4657a2631fcSmrgcase `echo -n x` in #((((( 4667a2631fcSmrg-n*) 4677a2631fcSmrg case `echo 'xy\c'` in 4687a2631fcSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4697a2631fcSmrg xy) ECHO_C='\c';; 4707a2631fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4717a2631fcSmrg ECHO_T=' ';; 4727a2631fcSmrg esac;; 4737a2631fcSmrg*) 4747a2631fcSmrg ECHO_N='-n';; 4757a2631fcSmrgesac 4763e747e6dSmrg 4777a2631fcSmrgrm -f conf$$ conf$$.exe conf$$.file 4787a2631fcSmrgif test -d conf$$.dir; then 4797a2631fcSmrg rm -f conf$$.dir/conf$$.file 4803e747e6dSmrgelse 4817a2631fcSmrg rm -f conf$$.dir 4827a2631fcSmrg mkdir conf$$.dir 2>/dev/null 4837a2631fcSmrgfi 4847a2631fcSmrgif (echo >conf$$.file) 2>/dev/null; then 4857a2631fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 4867a2631fcSmrg as_ln_s='ln -s' 4877a2631fcSmrg # ... but there are two gotchas: 4887a2631fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4897a2631fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4907a2631fcSmrg # In both cases, we have to default to `cp -p'. 4917a2631fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4927a2631fcSmrg as_ln_s='cp -p' 4937a2631fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 4947a2631fcSmrg as_ln_s=ln 4957a2631fcSmrg else 4967a2631fcSmrg as_ln_s='cp -p' 4977a2631fcSmrg fi 4983e747e6dSmrgelse 4997a2631fcSmrg as_ln_s='cp -p' 5003e747e6dSmrgfi 5017a2631fcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5027a2631fcSmrgrmdir conf$$.dir 2>/dev/null 5033e747e6dSmrg 5047a2631fcSmrgif mkdir -p . 2>/dev/null; then 5057a2631fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 5063e747e6dSmrgelse 5077a2631fcSmrg test -d ./-p && rmdir ./-p 5087a2631fcSmrg as_mkdir_p=false 5097a2631fcSmrgfi 5103e747e6dSmrg 5117a2631fcSmrgif test -x / >/dev/null 2>&1; then 5127a2631fcSmrg as_test_x='test -x' 5133e747e6dSmrgelse 5147a2631fcSmrg if ls -dL / >/dev/null 2>&1; then 5157a2631fcSmrg as_ls_L_option=L 5167a2631fcSmrg else 5177a2631fcSmrg as_ls_L_option= 5187a2631fcSmrg fi 5197a2631fcSmrg as_test_x=' 5207a2631fcSmrg eval sh -c '\'' 5217a2631fcSmrg if test -d "$1"; then 5227a2631fcSmrg test -d "$1/."; 5237a2631fcSmrg else 5247a2631fcSmrg case $1 in #( 5257a2631fcSmrg -*)set "./$1";; 5267a2631fcSmrg esac; 5277a2631fcSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5287a2631fcSmrg ???[sx]*):;;*)false;;esac;fi 5297a2631fcSmrg '\'' sh 5307a2631fcSmrg ' 5313e747e6dSmrgfi 5327a2631fcSmrgas_executable_p=$as_test_x 5333e747e6dSmrg 5347a2631fcSmrg# Sed expression to map a string onto a valid CPP name. 5357a2631fcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5363e747e6dSmrg 5377a2631fcSmrg# Sed expression to map a string onto a valid variable name. 5387a2631fcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5393e747e6dSmrg 5403e747e6dSmrg 5417a2631fcSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5427a2631fcSmrgexec 6>&1 5433e747e6dSmrg 5443e747e6dSmrg# Name of the host. 5457a2631fcSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5463e747e6dSmrg# so uname gets run too. 5473e747e6dSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5483e747e6dSmrg 5493e747e6dSmrg# 5503e747e6dSmrg# Initializations. 5513e747e6dSmrg# 5523e747e6dSmrgac_default_prefix=/usr/local 5533e747e6dSmrgac_clean_files= 5543e747e6dSmrgac_config_libobj_dir=. 5553e747e6dSmrgLIBOBJS= 5563e747e6dSmrgcross_compiling=no 5573e747e6dSmrgsubdirs= 5583e747e6dSmrgMFLAGS= 5593e747e6dSmrgMAKEFLAGS= 5603e747e6dSmrg 5613e747e6dSmrg# Identity of this package. 5623e747e6dSmrgPACKAGE_NAME='twm' 5633e747e6dSmrgPACKAGE_TARNAME='twm' 5642d96a817SmrgPACKAGE_VERSION='1.0.6' 5652d96a817SmrgPACKAGE_STRING='twm 1.0.6' 5663e747e6dSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5677a2631fcSmrgPACKAGE_URL='' 5683e747e6dSmrg 5692d96a817Smrgac_unique_file="Makefile.am" 5707a2631fcSmrg# Factoring default headers for most tests. 5717a2631fcSmrgac_includes_default="\ 5727a2631fcSmrg#include <stdio.h> 5737a2631fcSmrg#ifdef HAVE_SYS_TYPES_H 5747a2631fcSmrg# include <sys/types.h> 5757a2631fcSmrg#endif 5767a2631fcSmrg#ifdef HAVE_SYS_STAT_H 5777a2631fcSmrg# include <sys/stat.h> 5787a2631fcSmrg#endif 5797a2631fcSmrg#ifdef STDC_HEADERS 5807a2631fcSmrg# include <stdlib.h> 5817a2631fcSmrg# include <stddef.h> 5827a2631fcSmrg#else 5837a2631fcSmrg# ifdef HAVE_STDLIB_H 5847a2631fcSmrg# include <stdlib.h> 5857a2631fcSmrg# endif 5867a2631fcSmrg#endif 5877a2631fcSmrg#ifdef HAVE_STRING_H 5887a2631fcSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 5897a2631fcSmrg# include <memory.h> 5907a2631fcSmrg# endif 5917a2631fcSmrg# include <string.h> 5927a2631fcSmrg#endif 5937a2631fcSmrg#ifdef HAVE_STRINGS_H 5947a2631fcSmrg# include <strings.h> 5957a2631fcSmrg#endif 5967a2631fcSmrg#ifdef HAVE_INTTYPES_H 5977a2631fcSmrg# include <inttypes.h> 5987a2631fcSmrg#endif 5997a2631fcSmrg#ifdef HAVE_STDINT_H 6007a2631fcSmrg# include <stdint.h> 6017a2631fcSmrg#endif 6027a2631fcSmrg#ifdef HAVE_UNISTD_H 6037a2631fcSmrg# include <unistd.h> 6047a2631fcSmrg#endif" 6057a2631fcSmrg 6067a2631fcSmrgac_subst_vars='am__EXEEXT_FALSE 6077a2631fcSmrgam__EXEEXT_TRUE 6087a2631fcSmrgLTLIBOBJS 6093e747e6dSmrgLIBOBJS 6107a2631fcSmrgTWM_LIBS 6117a2631fcSmrgTWM_CFLAGS 6127a2631fcSmrgLEXLIB 6137a2631fcSmrgLEX_OUTPUT_ROOT 6147a2631fcSmrgLEX 6157a2631fcSmrgYACC_INST 6167a2631fcSmrgYFLAGS 6177a2631fcSmrgYACC 6187a2631fcSmrgAM_BACKSLASH 6197a2631fcSmrgAM_DEFAULT_VERBOSITY 6207a2631fcSmrgMAN_SUBSTS 6217a2631fcSmrgXORG_MAN_PAGE 6227a2631fcSmrgADMIN_MAN_DIR 6237a2631fcSmrgDRIVER_MAN_DIR 6247a2631fcSmrgMISC_MAN_DIR 6257a2631fcSmrgFILE_MAN_DIR 6267a2631fcSmrgLIB_MAN_DIR 6277a2631fcSmrgAPP_MAN_DIR 6287a2631fcSmrgADMIN_MAN_SUFFIX 6297a2631fcSmrgDRIVER_MAN_SUFFIX 6307a2631fcSmrgMISC_MAN_SUFFIX 6317a2631fcSmrgFILE_MAN_SUFFIX 6327a2631fcSmrgLIB_MAN_SUFFIX 6337a2631fcSmrgAPP_MAN_SUFFIX 6347a2631fcSmrgSED 6357a2631fcSmrghost_os 6367a2631fcSmrghost_vendor 6377a2631fcSmrghost_cpu 6387a2631fcSmrghost 6397a2631fcSmrgbuild_os 6407a2631fcSmrgbuild_vendor 6417a2631fcSmrgbuild_cpu 6427a2631fcSmrgbuild 6437a2631fcSmrgINSTALL_CMD 6447a2631fcSmrgPKG_CONFIG 6457a2631fcSmrgCHANGELOG_CMD 6467a2631fcSmrgCWARNFLAGS 6477a2631fcSmrgEGREP 6487a2631fcSmrgGREP 6497a2631fcSmrgCPP 6507a2631fcSmrgam__fastdepCC_FALSE 6517a2631fcSmrgam__fastdepCC_TRUE 6527a2631fcSmrgCCDEPMODE 6537a2631fcSmrgAMDEPBACKSLASH 6547a2631fcSmrgAMDEP_FALSE 6557a2631fcSmrgAMDEP_TRUE 6567a2631fcSmrgam__quote 6577a2631fcSmrgam__include 6587a2631fcSmrgDEPDIR 6597a2631fcSmrgOBJEXT 6607a2631fcSmrgEXEEXT 6617a2631fcSmrgac_ct_CC 6627a2631fcSmrgCPPFLAGS 6637a2631fcSmrgLDFLAGS 6647a2631fcSmrgCFLAGS 6657a2631fcSmrgCC 6667a2631fcSmrgMAINT 6677a2631fcSmrgMAINTAINER_MODE_FALSE 6687a2631fcSmrgMAINTAINER_MODE_TRUE 6697a2631fcSmrgam__untar 6707a2631fcSmrgam__tar 6717a2631fcSmrgAMTAR 6727a2631fcSmrgam__leading_dot 6737a2631fcSmrgSET_MAKE 6747a2631fcSmrgAWK 6757a2631fcSmrgmkdir_p 6767a2631fcSmrgMKDIR_P 6777a2631fcSmrgINSTALL_STRIP_PROGRAM 6787a2631fcSmrgSTRIP 6797a2631fcSmrginstall_sh 6807a2631fcSmrgMAKEINFO 6817a2631fcSmrgAUTOHEADER 6827a2631fcSmrgAUTOMAKE 6837a2631fcSmrgAUTOCONF 6847a2631fcSmrgACLOCAL 6857a2631fcSmrgVERSION 6867a2631fcSmrgPACKAGE 6877a2631fcSmrgCYGPATH_W 6887a2631fcSmrgam__isrc 6897a2631fcSmrgINSTALL_DATA 6907a2631fcSmrgINSTALL_SCRIPT 6917a2631fcSmrgINSTALL_PROGRAM 6927a2631fcSmrgtarget_alias 6937a2631fcSmrghost_alias 6947a2631fcSmrgbuild_alias 6957a2631fcSmrgLIBS 6967a2631fcSmrgECHO_T 6977a2631fcSmrgECHO_N 6987a2631fcSmrgECHO_C 6997a2631fcSmrgDEFS 7007a2631fcSmrgmandir 7017a2631fcSmrglocaledir 7027a2631fcSmrglibdir 7037a2631fcSmrgpsdir 7047a2631fcSmrgpdfdir 7057a2631fcSmrgdvidir 7067a2631fcSmrghtmldir 7077a2631fcSmrginfodir 7087a2631fcSmrgdocdir 7097a2631fcSmrgoldincludedir 7107a2631fcSmrgincludedir 7117a2631fcSmrglocalstatedir 7127a2631fcSmrgsharedstatedir 7137a2631fcSmrgsysconfdir 7147a2631fcSmrgdatadir 7157a2631fcSmrgdatarootdir 7167a2631fcSmrglibexecdir 7177a2631fcSmrgsbindir 7187a2631fcSmrgbindir 7197a2631fcSmrgprogram_transform_name 7207a2631fcSmrgprefix 7217a2631fcSmrgexec_prefix 7227a2631fcSmrgPACKAGE_URL 7237a2631fcSmrgPACKAGE_BUGREPORT 7247a2631fcSmrgPACKAGE_STRING 7257a2631fcSmrgPACKAGE_VERSION 7267a2631fcSmrgPACKAGE_TARNAME 7277a2631fcSmrgPACKAGE_NAME 7287a2631fcSmrgPATH_SEPARATOR 7297a2631fcSmrgSHELL' 7303e747e6dSmrgac_subst_files='' 7317a2631fcSmrgac_user_opts=' 7327a2631fcSmrgenable_option_checking 7337a2631fcSmrgenable_maintainer_mode 7347a2631fcSmrgenable_dependency_tracking 7357a2631fcSmrgenable_strict_compilation 7367a2631fcSmrgenable_silent_rules 7377a2631fcSmrg' 7383e747e6dSmrg ac_precious_vars='build_alias 7393e747e6dSmrghost_alias 7403e747e6dSmrgtarget_alias 7413e747e6dSmrgCC 7423e747e6dSmrgCFLAGS 7433e747e6dSmrgLDFLAGS 7443e747e6dSmrgLIBS 7453e747e6dSmrgCPPFLAGS 7467a2631fcSmrgCPP 7477a2631fcSmrgPKG_CONFIG 7483e747e6dSmrgYACC 7493e747e6dSmrgYFLAGS 7503e747e6dSmrgTWM_CFLAGS 7513e747e6dSmrgTWM_LIBS' 7523e747e6dSmrg 7533e747e6dSmrg 7543e747e6dSmrg# Initialize some variables set by options. 7553e747e6dSmrgac_init_help= 7563e747e6dSmrgac_init_version=false 7577a2631fcSmrgac_unrecognized_opts= 7587a2631fcSmrgac_unrecognized_sep= 7593e747e6dSmrg# The variables have the same names as the options, with 7603e747e6dSmrg# dashes changed to underlines. 7613e747e6dSmrgcache_file=/dev/null 7623e747e6dSmrgexec_prefix=NONE 7633e747e6dSmrgno_create= 7643e747e6dSmrgno_recursion= 7653e747e6dSmrgprefix=NONE 7663e747e6dSmrgprogram_prefix=NONE 7673e747e6dSmrgprogram_suffix=NONE 7683e747e6dSmrgprogram_transform_name=s,x,x, 7693e747e6dSmrgsilent= 7703e747e6dSmrgsite= 7713e747e6dSmrgsrcdir= 7723e747e6dSmrgverbose= 7733e747e6dSmrgx_includes=NONE 7743e747e6dSmrgx_libraries=NONE 7753e747e6dSmrg 7763e747e6dSmrg# Installation directory options. 7773e747e6dSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7783e747e6dSmrg# and all the variables that are supposed to be based on exec_prefix 7793e747e6dSmrg# by default will actually change. 7803e747e6dSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 7813e747e6dSmrg# (The list follows the same order as the GNU Coding Standards.) 7823e747e6dSmrgbindir='${exec_prefix}/bin' 7833e747e6dSmrgsbindir='${exec_prefix}/sbin' 7843e747e6dSmrglibexecdir='${exec_prefix}/libexec' 7853e747e6dSmrgdatarootdir='${prefix}/share' 7863e747e6dSmrgdatadir='${datarootdir}' 7873e747e6dSmrgsysconfdir='${prefix}/etc' 7883e747e6dSmrgsharedstatedir='${prefix}/com' 7893e747e6dSmrglocalstatedir='${prefix}/var' 7903e747e6dSmrgincludedir='${prefix}/include' 7913e747e6dSmrgoldincludedir='/usr/include' 7923e747e6dSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 7933e747e6dSmrginfodir='${datarootdir}/info' 7943e747e6dSmrghtmldir='${docdir}' 7953e747e6dSmrgdvidir='${docdir}' 7963e747e6dSmrgpdfdir='${docdir}' 7973e747e6dSmrgpsdir='${docdir}' 7983e747e6dSmrglibdir='${exec_prefix}/lib' 7993e747e6dSmrglocaledir='${datarootdir}/locale' 8003e747e6dSmrgmandir='${datarootdir}/man' 8013e747e6dSmrg 8023e747e6dSmrgac_prev= 8033e747e6dSmrgac_dashdash= 8043e747e6dSmrgfor ac_option 8053e747e6dSmrgdo 8063e747e6dSmrg # If the previous option needs an argument, assign it. 8073e747e6dSmrg if test -n "$ac_prev"; then 8083e747e6dSmrg eval $ac_prev=\$ac_option 8093e747e6dSmrg ac_prev= 8103e747e6dSmrg continue 8113e747e6dSmrg fi 8123e747e6dSmrg 8133e747e6dSmrg case $ac_option in 8147a2631fcSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8157a2631fcSmrg *=) ac_optarg= ;; 8167a2631fcSmrg *) ac_optarg=yes ;; 8173e747e6dSmrg esac 8183e747e6dSmrg 8193e747e6dSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 8203e747e6dSmrg 8213e747e6dSmrg case $ac_dashdash$ac_option in 8223e747e6dSmrg --) 8233e747e6dSmrg ac_dashdash=yes ;; 8243e747e6dSmrg 8253e747e6dSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8263e747e6dSmrg ac_prev=bindir ;; 8273e747e6dSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8283e747e6dSmrg bindir=$ac_optarg ;; 8293e747e6dSmrg 8303e747e6dSmrg -build | --build | --buil | --bui | --bu) 8313e747e6dSmrg ac_prev=build_alias ;; 8323e747e6dSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8333e747e6dSmrg build_alias=$ac_optarg ;; 8343e747e6dSmrg 8353e747e6dSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8363e747e6dSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8373e747e6dSmrg ac_prev=cache_file ;; 8383e747e6dSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8393e747e6dSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8403e747e6dSmrg cache_file=$ac_optarg ;; 8413e747e6dSmrg 8423e747e6dSmrg --config-cache | -C) 8433e747e6dSmrg cache_file=config.cache ;; 8443e747e6dSmrg 8453e747e6dSmrg -datadir | --datadir | --datadi | --datad) 8463e747e6dSmrg ac_prev=datadir ;; 8473e747e6dSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8483e747e6dSmrg datadir=$ac_optarg ;; 8493e747e6dSmrg 8503e747e6dSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8513e747e6dSmrg | --dataroo | --dataro | --datar) 8523e747e6dSmrg ac_prev=datarootdir ;; 8533e747e6dSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8543e747e6dSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8553e747e6dSmrg datarootdir=$ac_optarg ;; 8563e747e6dSmrg 8573e747e6dSmrg -disable-* | --disable-*) 8587a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8593e747e6dSmrg # Reject names that are not valid shell variable names. 8607a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8617a2631fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 8627a2631fcSmrg ac_useropt_orig=$ac_useropt 8637a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8647a2631fcSmrg case $ac_user_opts in 8657a2631fcSmrg *" 8667a2631fcSmrg"enable_$ac_useropt" 8677a2631fcSmrg"*) ;; 8687a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 8697a2631fcSmrg ac_unrecognized_sep=', ';; 8707a2631fcSmrg esac 8717a2631fcSmrg eval enable_$ac_useropt=no ;; 8723e747e6dSmrg 8733e747e6dSmrg -docdir | --docdir | --docdi | --doc | --do) 8743e747e6dSmrg ac_prev=docdir ;; 8753e747e6dSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8763e747e6dSmrg docdir=$ac_optarg ;; 8773e747e6dSmrg 8783e747e6dSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8793e747e6dSmrg ac_prev=dvidir ;; 8803e747e6dSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8813e747e6dSmrg dvidir=$ac_optarg ;; 8823e747e6dSmrg 8833e747e6dSmrg -enable-* | --enable-*) 8847a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8853e747e6dSmrg # Reject names that are not valid shell variable names. 8867a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8877a2631fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 8887a2631fcSmrg ac_useropt_orig=$ac_useropt 8897a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8907a2631fcSmrg case $ac_user_opts in 8917a2631fcSmrg *" 8927a2631fcSmrg"enable_$ac_useropt" 8937a2631fcSmrg"*) ;; 8947a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 8957a2631fcSmrg ac_unrecognized_sep=', ';; 8967a2631fcSmrg esac 8977a2631fcSmrg eval enable_$ac_useropt=\$ac_optarg ;; 8983e747e6dSmrg 8993e747e6dSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9003e747e6dSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9013e747e6dSmrg | --exec | --exe | --ex) 9023e747e6dSmrg ac_prev=exec_prefix ;; 9033e747e6dSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9043e747e6dSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9053e747e6dSmrg | --exec=* | --exe=* | --ex=*) 9063e747e6dSmrg exec_prefix=$ac_optarg ;; 9073e747e6dSmrg 9083e747e6dSmrg -gas | --gas | --ga | --g) 9093e747e6dSmrg # Obsolete; use --with-gas. 9103e747e6dSmrg with_gas=yes ;; 9113e747e6dSmrg 9123e747e6dSmrg -help | --help | --hel | --he | -h) 9133e747e6dSmrg ac_init_help=long ;; 9143e747e6dSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9153e747e6dSmrg ac_init_help=recursive ;; 9163e747e6dSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9173e747e6dSmrg ac_init_help=short ;; 9183e747e6dSmrg 9193e747e6dSmrg -host | --host | --hos | --ho) 9203e747e6dSmrg ac_prev=host_alias ;; 9213e747e6dSmrg -host=* | --host=* | --hos=* | --ho=*) 9223e747e6dSmrg host_alias=$ac_optarg ;; 9233e747e6dSmrg 9243e747e6dSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9253e747e6dSmrg ac_prev=htmldir ;; 9263e747e6dSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9273e747e6dSmrg | --ht=*) 9283e747e6dSmrg htmldir=$ac_optarg ;; 9293e747e6dSmrg 9303e747e6dSmrg -includedir | --includedir | --includedi | --included | --include \ 9313e747e6dSmrg | --includ | --inclu | --incl | --inc) 9323e747e6dSmrg ac_prev=includedir ;; 9333e747e6dSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9343e747e6dSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9353e747e6dSmrg includedir=$ac_optarg ;; 9363e747e6dSmrg 9373e747e6dSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9383e747e6dSmrg ac_prev=infodir ;; 9393e747e6dSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9403e747e6dSmrg infodir=$ac_optarg ;; 9413e747e6dSmrg 9423e747e6dSmrg -libdir | --libdir | --libdi | --libd) 9433e747e6dSmrg ac_prev=libdir ;; 9443e747e6dSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9453e747e6dSmrg libdir=$ac_optarg ;; 9463e747e6dSmrg 9473e747e6dSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9483e747e6dSmrg | --libexe | --libex | --libe) 9493e747e6dSmrg ac_prev=libexecdir ;; 9503e747e6dSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9513e747e6dSmrg | --libexe=* | --libex=* | --libe=*) 9523e747e6dSmrg libexecdir=$ac_optarg ;; 9533e747e6dSmrg 9543e747e6dSmrg -localedir | --localedir | --localedi | --localed | --locale) 9553e747e6dSmrg ac_prev=localedir ;; 9563e747e6dSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9573e747e6dSmrg localedir=$ac_optarg ;; 9583e747e6dSmrg 9593e747e6dSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9603e747e6dSmrg | --localstate | --localstat | --localsta | --localst | --locals) 9613e747e6dSmrg ac_prev=localstatedir ;; 9623e747e6dSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9633e747e6dSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9643e747e6dSmrg localstatedir=$ac_optarg ;; 9653e747e6dSmrg 9663e747e6dSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9673e747e6dSmrg ac_prev=mandir ;; 9683e747e6dSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9693e747e6dSmrg mandir=$ac_optarg ;; 9703e747e6dSmrg 9713e747e6dSmrg -nfp | --nfp | --nf) 9723e747e6dSmrg # Obsolete; use --without-fp. 9733e747e6dSmrg with_fp=no ;; 9743e747e6dSmrg 9753e747e6dSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9763e747e6dSmrg | --no-cr | --no-c | -n) 9773e747e6dSmrg no_create=yes ;; 9783e747e6dSmrg 9793e747e6dSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9803e747e6dSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9813e747e6dSmrg no_recursion=yes ;; 9823e747e6dSmrg 9833e747e6dSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9843e747e6dSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9853e747e6dSmrg | --oldin | --oldi | --old | --ol | --o) 9863e747e6dSmrg ac_prev=oldincludedir ;; 9873e747e6dSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9883e747e6dSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9893e747e6dSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9903e747e6dSmrg oldincludedir=$ac_optarg ;; 9913e747e6dSmrg 9923e747e6dSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9933e747e6dSmrg ac_prev=prefix ;; 9943e747e6dSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 9953e747e6dSmrg prefix=$ac_optarg ;; 9963e747e6dSmrg 9973e747e6dSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 9983e747e6dSmrg | --program-pre | --program-pr | --program-p) 9993e747e6dSmrg ac_prev=program_prefix ;; 10003e747e6dSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10013e747e6dSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10023e747e6dSmrg program_prefix=$ac_optarg ;; 10033e747e6dSmrg 10043e747e6dSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10053e747e6dSmrg | --program-suf | --program-su | --program-s) 10063e747e6dSmrg ac_prev=program_suffix ;; 10073e747e6dSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10083e747e6dSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10093e747e6dSmrg program_suffix=$ac_optarg ;; 10103e747e6dSmrg 10113e747e6dSmrg -program-transform-name | --program-transform-name \ 10123e747e6dSmrg | --program-transform-nam | --program-transform-na \ 10133e747e6dSmrg | --program-transform-n | --program-transform- \ 10143e747e6dSmrg | --program-transform | --program-transfor \ 10153e747e6dSmrg | --program-transfo | --program-transf \ 10163e747e6dSmrg | --program-trans | --program-tran \ 10173e747e6dSmrg | --progr-tra | --program-tr | --program-t) 10183e747e6dSmrg ac_prev=program_transform_name ;; 10193e747e6dSmrg -program-transform-name=* | --program-transform-name=* \ 10203e747e6dSmrg | --program-transform-nam=* | --program-transform-na=* \ 10213e747e6dSmrg | --program-transform-n=* | --program-transform-=* \ 10223e747e6dSmrg | --program-transform=* | --program-transfor=* \ 10233e747e6dSmrg | --program-transfo=* | --program-transf=* \ 10243e747e6dSmrg | --program-trans=* | --program-tran=* \ 10253e747e6dSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10263e747e6dSmrg program_transform_name=$ac_optarg ;; 10273e747e6dSmrg 10283e747e6dSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10293e747e6dSmrg ac_prev=pdfdir ;; 10303e747e6dSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10313e747e6dSmrg pdfdir=$ac_optarg ;; 10323e747e6dSmrg 10333e747e6dSmrg -psdir | --psdir | --psdi | --psd | --ps) 10343e747e6dSmrg ac_prev=psdir ;; 10353e747e6dSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10363e747e6dSmrg psdir=$ac_optarg ;; 10373e747e6dSmrg 10383e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10393e747e6dSmrg | -silent | --silent | --silen | --sile | --sil) 10403e747e6dSmrg silent=yes ;; 10413e747e6dSmrg 10423e747e6dSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10433e747e6dSmrg ac_prev=sbindir ;; 10443e747e6dSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10453e747e6dSmrg | --sbi=* | --sb=*) 10463e747e6dSmrg sbindir=$ac_optarg ;; 10473e747e6dSmrg 10483e747e6dSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10493e747e6dSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10503e747e6dSmrg | --sharedst | --shareds | --shared | --share | --shar \ 10513e747e6dSmrg | --sha | --sh) 10523e747e6dSmrg ac_prev=sharedstatedir ;; 10533e747e6dSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10543e747e6dSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10553e747e6dSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10563e747e6dSmrg | --sha=* | --sh=*) 10573e747e6dSmrg sharedstatedir=$ac_optarg ;; 10583e747e6dSmrg 10593e747e6dSmrg -site | --site | --sit) 10603e747e6dSmrg ac_prev=site ;; 10613e747e6dSmrg -site=* | --site=* | --sit=*) 10623e747e6dSmrg site=$ac_optarg ;; 10633e747e6dSmrg 10643e747e6dSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10653e747e6dSmrg ac_prev=srcdir ;; 10663e747e6dSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10673e747e6dSmrg srcdir=$ac_optarg ;; 10683e747e6dSmrg 10693e747e6dSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10703e747e6dSmrg | --syscon | --sysco | --sysc | --sys | --sy) 10713e747e6dSmrg ac_prev=sysconfdir ;; 10723e747e6dSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10733e747e6dSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10743e747e6dSmrg sysconfdir=$ac_optarg ;; 10753e747e6dSmrg 10763e747e6dSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 10773e747e6dSmrg ac_prev=target_alias ;; 10783e747e6dSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10793e747e6dSmrg target_alias=$ac_optarg ;; 10803e747e6dSmrg 10813e747e6dSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10823e747e6dSmrg verbose=yes ;; 10833e747e6dSmrg 10843e747e6dSmrg -version | --version | --versio | --versi | --vers | -V) 10853e747e6dSmrg ac_init_version=: ;; 10863e747e6dSmrg 10873e747e6dSmrg -with-* | --with-*) 10887a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10893e747e6dSmrg # Reject names that are not valid shell variable names. 10907a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10917a2631fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 10927a2631fcSmrg ac_useropt_orig=$ac_useropt 10937a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 10947a2631fcSmrg case $ac_user_opts in 10957a2631fcSmrg *" 10967a2631fcSmrg"with_$ac_useropt" 10977a2631fcSmrg"*) ;; 10987a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 10997a2631fcSmrg ac_unrecognized_sep=', ';; 11007a2631fcSmrg esac 11017a2631fcSmrg eval with_$ac_useropt=\$ac_optarg ;; 11023e747e6dSmrg 11033e747e6dSmrg -without-* | --without-*) 11047a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11053e747e6dSmrg # Reject names that are not valid shell variable names. 11067a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11077a2631fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 11087a2631fcSmrg ac_useropt_orig=$ac_useropt 11097a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11107a2631fcSmrg case $ac_user_opts in 11117a2631fcSmrg *" 11127a2631fcSmrg"with_$ac_useropt" 11137a2631fcSmrg"*) ;; 11147a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11157a2631fcSmrg ac_unrecognized_sep=', ';; 11167a2631fcSmrg esac 11177a2631fcSmrg eval with_$ac_useropt=no ;; 11183e747e6dSmrg 11193e747e6dSmrg --x) 11203e747e6dSmrg # Obsolete; use --with-x. 11213e747e6dSmrg with_x=yes ;; 11223e747e6dSmrg 11233e747e6dSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11243e747e6dSmrg | --x-incl | --x-inc | --x-in | --x-i) 11253e747e6dSmrg ac_prev=x_includes ;; 11263e747e6dSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11273e747e6dSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11283e747e6dSmrg x_includes=$ac_optarg ;; 11293e747e6dSmrg 11303e747e6dSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11313e747e6dSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11323e747e6dSmrg ac_prev=x_libraries ;; 11333e747e6dSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11343e747e6dSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11353e747e6dSmrg x_libraries=$ac_optarg ;; 11363e747e6dSmrg 11377a2631fcSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11387a2631fcSmrgTry \`$0 --help' for more information" 11393e747e6dSmrg ;; 11403e747e6dSmrg 11413e747e6dSmrg *=*) 11423e747e6dSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11433e747e6dSmrg # Reject names that are not valid shell variable names. 11447a2631fcSmrg case $ac_envvar in #( 11457a2631fcSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11467a2631fcSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11477a2631fcSmrg esac 11483e747e6dSmrg eval $ac_envvar=\$ac_optarg 11493e747e6dSmrg export $ac_envvar ;; 11503e747e6dSmrg 11513e747e6dSmrg *) 11523e747e6dSmrg # FIXME: should be removed in autoconf 3.0. 11537a2631fcSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11543e747e6dSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11557a2631fcSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11567a2631fcSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11573e747e6dSmrg ;; 11583e747e6dSmrg 11593e747e6dSmrg esac 11603e747e6dSmrgdone 11613e747e6dSmrg 11623e747e6dSmrgif test -n "$ac_prev"; then 11633e747e6dSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11647a2631fcSmrg as_fn_error $? "missing argument to $ac_option" 11657a2631fcSmrgfi 11667a2631fcSmrg 11677a2631fcSmrgif test -n "$ac_unrecognized_opts"; then 11687a2631fcSmrg case $enable_option_checking in 11697a2631fcSmrg no) ;; 11707a2631fcSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 11717a2631fcSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11727a2631fcSmrg esac 11733e747e6dSmrgfi 11743e747e6dSmrg 11757a2631fcSmrg# Check all directory arguments for consistency. 11763e747e6dSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11773e747e6dSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11783e747e6dSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11793e747e6dSmrg libdir localedir mandir 11803e747e6dSmrgdo 11813e747e6dSmrg eval ac_val=\$$ac_var 11827a2631fcSmrg # Remove trailing slashes. 11837a2631fcSmrg case $ac_val in 11847a2631fcSmrg */ ) 11857a2631fcSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 11867a2631fcSmrg eval $ac_var=\$ac_val;; 11877a2631fcSmrg esac 11887a2631fcSmrg # Be sure to have absolute directory names. 11893e747e6dSmrg case $ac_val in 11903e747e6dSmrg [\\/$]* | ?:[\\/]* ) continue;; 11913e747e6dSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11923e747e6dSmrg esac 11937a2631fcSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 11943e747e6dSmrgdone 11953e747e6dSmrg 11963e747e6dSmrg# There might be people who depend on the old broken behavior: `$host' 11973e747e6dSmrg# used to hold the argument of --host etc. 11983e747e6dSmrg# FIXME: To remove some day. 11993e747e6dSmrgbuild=$build_alias 12003e747e6dSmrghost=$host_alias 12013e747e6dSmrgtarget=$target_alias 12023e747e6dSmrg 12033e747e6dSmrg# FIXME: To remove some day. 12043e747e6dSmrgif test "x$host_alias" != x; then 12053e747e6dSmrg if test "x$build_alias" = x; then 12063e747e6dSmrg cross_compiling=maybe 12077a2631fcSmrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 12087a2631fcSmrg If a cross compiler is detected then cross compile mode will be used" >&2 12093e747e6dSmrg elif test "x$build_alias" != "x$host_alias"; then 12103e747e6dSmrg cross_compiling=yes 12113e747e6dSmrg fi 12123e747e6dSmrgfi 12133e747e6dSmrg 12143e747e6dSmrgac_tool_prefix= 12153e747e6dSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12163e747e6dSmrg 12173e747e6dSmrgtest "$silent" = yes && exec 6>/dev/null 12183e747e6dSmrg 12193e747e6dSmrg 12203e747e6dSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12213e747e6dSmrgac_ls_di=`ls -di .` && 12223e747e6dSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12237a2631fcSmrg as_fn_error $? "working directory cannot be determined" 12243e747e6dSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12257a2631fcSmrg as_fn_error $? "pwd does not report name of working directory" 12263e747e6dSmrg 12273e747e6dSmrg 12283e747e6dSmrg# Find the source files, if location was not specified. 12293e747e6dSmrgif test -z "$srcdir"; then 12303e747e6dSmrg ac_srcdir_defaulted=yes 12313e747e6dSmrg # Try the directory containing this script, then the parent directory. 12327a2631fcSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12337a2631fcSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12347a2631fcSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12357a2631fcSmrg X"$as_myself" : 'X\(//\)$' \| \ 12367a2631fcSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12377a2631fcSmrg$as_echo X"$as_myself" | 12383e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12393e747e6dSmrg s//\1/ 12403e747e6dSmrg q 12413e747e6dSmrg } 12423e747e6dSmrg /^X\(\/\/\)[^/].*/{ 12433e747e6dSmrg s//\1/ 12443e747e6dSmrg q 12453e747e6dSmrg } 12463e747e6dSmrg /^X\(\/\/\)$/{ 12473e747e6dSmrg s//\1/ 12483e747e6dSmrg q 12493e747e6dSmrg } 12503e747e6dSmrg /^X\(\/\).*/{ 12513e747e6dSmrg s//\1/ 12523e747e6dSmrg q 12533e747e6dSmrg } 12543e747e6dSmrg s/.*/./; q'` 12553e747e6dSmrg srcdir=$ac_confdir 12563e747e6dSmrg if test ! -r "$srcdir/$ac_unique_file"; then 12573e747e6dSmrg srcdir=.. 12583e747e6dSmrg fi 12593e747e6dSmrgelse 12603e747e6dSmrg ac_srcdir_defaulted=no 12613e747e6dSmrgfi 12623e747e6dSmrgif test ! -r "$srcdir/$ac_unique_file"; then 12633e747e6dSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12647a2631fcSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12653e747e6dSmrgfi 12663e747e6dSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12673e747e6dSmrgac_abs_confdir=`( 12687a2631fcSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12693e747e6dSmrg pwd)` 12703e747e6dSmrg# When building in place, set srcdir=. 12713e747e6dSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12723e747e6dSmrg srcdir=. 12733e747e6dSmrgfi 12743e747e6dSmrg# Remove unnecessary trailing slashes from srcdir. 12753e747e6dSmrg# Double slashes in file names in object file debugging info 12763e747e6dSmrg# mess up M-x gdb in Emacs. 12773e747e6dSmrgcase $srcdir in 12783e747e6dSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12793e747e6dSmrgesac 12803e747e6dSmrgfor ac_var in $ac_precious_vars; do 12813e747e6dSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12823e747e6dSmrg eval ac_env_${ac_var}_value=\$${ac_var} 12833e747e6dSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12843e747e6dSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12853e747e6dSmrgdone 12863e747e6dSmrg 12873e747e6dSmrg# 12883e747e6dSmrg# Report the --help message. 12893e747e6dSmrg# 12903e747e6dSmrgif test "$ac_init_help" = "long"; then 12913e747e6dSmrg # Omit some internal or obsolete options to make the list less imposing. 12923e747e6dSmrg # This message is too long to be a string in the A/UX 3.1 sh. 12933e747e6dSmrg cat <<_ACEOF 12942d96a817Smrg\`configure' configures twm 1.0.6 to adapt to many kinds of systems. 12953e747e6dSmrg 12963e747e6dSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 12973e747e6dSmrg 12983e747e6dSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 12993e747e6dSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13003e747e6dSmrg 13013e747e6dSmrgDefaults for the options are specified in brackets. 13023e747e6dSmrg 13033e747e6dSmrgConfiguration: 13043e747e6dSmrg -h, --help display this help and exit 13053e747e6dSmrg --help=short display options specific to this package 13063e747e6dSmrg --help=recursive display the short help of all the included packages 13073e747e6dSmrg -V, --version display version information and exit 13087a2631fcSmrg -q, --quiet, --silent do not print \`checking ...' messages 13093e747e6dSmrg --cache-file=FILE cache test results in FILE [disabled] 13103e747e6dSmrg -C, --config-cache alias for \`--cache-file=config.cache' 13113e747e6dSmrg -n, --no-create do not create output files 13123e747e6dSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13133e747e6dSmrg 13143e747e6dSmrgInstallation directories: 13153e747e6dSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13167a2631fcSmrg [$ac_default_prefix] 13173e747e6dSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13187a2631fcSmrg [PREFIX] 13193e747e6dSmrg 13203e747e6dSmrgBy default, \`make install' will install all the files in 13213e747e6dSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13223e747e6dSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13233e747e6dSmrgfor instance \`--prefix=\$HOME'. 13243e747e6dSmrg 13253e747e6dSmrgFor better control, use the options below. 13263e747e6dSmrg 13273e747e6dSmrgFine tuning of the installation directories: 13287a2631fcSmrg --bindir=DIR user executables [EPREFIX/bin] 13297a2631fcSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13307a2631fcSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13317a2631fcSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13327a2631fcSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13337a2631fcSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13347a2631fcSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13357a2631fcSmrg --includedir=DIR C header files [PREFIX/include] 13367a2631fcSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13377a2631fcSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13387a2631fcSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13397a2631fcSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13407a2631fcSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13417a2631fcSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13427a2631fcSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/twm] 13437a2631fcSmrg --htmldir=DIR html documentation [DOCDIR] 13447a2631fcSmrg --dvidir=DIR dvi documentation [DOCDIR] 13457a2631fcSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13467a2631fcSmrg --psdir=DIR ps documentation [DOCDIR] 13473e747e6dSmrg_ACEOF 13483e747e6dSmrg 13493e747e6dSmrg cat <<\_ACEOF 13503e747e6dSmrg 13513e747e6dSmrgProgram names: 13523e747e6dSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 13533e747e6dSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 13543e747e6dSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13553e747e6dSmrg 13563e747e6dSmrgSystem types: 13573e747e6dSmrg --build=BUILD configure for building on BUILD [guessed] 13583e747e6dSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13593e747e6dSmrg_ACEOF 13603e747e6dSmrgfi 13613e747e6dSmrg 13623e747e6dSmrgif test -n "$ac_init_help"; then 13633e747e6dSmrg case $ac_init_help in 13642d96a817Smrg short | recursive ) echo "Configuration of twm 1.0.6:";; 13653e747e6dSmrg esac 13663e747e6dSmrg cat <<\_ACEOF 13673e747e6dSmrg 13683e747e6dSmrgOptional Features: 13697a2631fcSmrg --disable-option-checking ignore unrecognized --enable/--with options 13703e747e6dSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13713e747e6dSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13723e747e6dSmrg --enable-maintainer-mode enable make rules and dependencies not useful 13733e747e6dSmrg (and sometimes confusing) to the casual installer 13743e747e6dSmrg --disable-dependency-tracking speeds up one-time build 13753e747e6dSmrg --enable-dependency-tracking do not reject slow dependency extractors 13767a2631fcSmrg --enable-strict-compilation 13777a2631fcSmrg Enable all warnings from compiler and make them 13787a2631fcSmrg errors (default: disabled) 13797a2631fcSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 13807a2631fcSmrg --disable-silent-rules verbose build output (undo: `make V=0') 13813e747e6dSmrg 13823e747e6dSmrgSome influential environment variables: 13833e747e6dSmrg CC C compiler command 13843e747e6dSmrg CFLAGS C compiler flags 13853e747e6dSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 13863e747e6dSmrg nonstandard directory <lib dir> 13873e747e6dSmrg LIBS libraries to pass to the linker, e.g. -l<library> 13887a2631fcSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 13893e747e6dSmrg you have headers in a nonstandard directory <include dir> 13907a2631fcSmrg CPP C preprocessor 13917a2631fcSmrg PKG_CONFIG path to pkg-config utility 13927a2631fcSmrg YACC The `Yet Another Compiler Compiler' implementation to use. 13937a2631fcSmrg Defaults to the first program found out of: `bison -y', `byacc', 13947a2631fcSmrg `yacc'. 13953e747e6dSmrg YFLAGS The list of arguments that will be passed by default to $YACC. 13963e747e6dSmrg This script will default YFLAGS to the empty string to avoid a 13973e747e6dSmrg default value of `-d' given by some make applications. 13983e747e6dSmrg TWM_CFLAGS C compiler flags for TWM, overriding pkg-config 13993e747e6dSmrg TWM_LIBS linker flags for TWM, overriding pkg-config 14003e747e6dSmrg 14013e747e6dSmrgUse these variables to override the choices made by `configure' or to help 14023e747e6dSmrgit to find libraries and programs with nonstandard names/locations. 14033e747e6dSmrg 14043e747e6dSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14053e747e6dSmrg_ACEOF 14063e747e6dSmrgac_status=$? 14073e747e6dSmrgfi 14083e747e6dSmrg 14093e747e6dSmrgif test "$ac_init_help" = "recursive"; then 14103e747e6dSmrg # If there are subdirs, report their specific --help. 14113e747e6dSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14127a2631fcSmrg test -d "$ac_dir" || 14137a2631fcSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14147a2631fcSmrg continue 14153e747e6dSmrg ac_builddir=. 14163e747e6dSmrg 14173e747e6dSmrgcase "$ac_dir" in 14183e747e6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14193e747e6dSmrg*) 14207a2631fcSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14213e747e6dSmrg # A ".." for each directory in $ac_dir_suffix. 14227a2631fcSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14233e747e6dSmrg case $ac_top_builddir_sub in 14243e747e6dSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14253e747e6dSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14263e747e6dSmrg esac ;; 14273e747e6dSmrgesac 14283e747e6dSmrgac_abs_top_builddir=$ac_pwd 14293e747e6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14303e747e6dSmrg# for backward compatibility: 14313e747e6dSmrgac_top_builddir=$ac_top_build_prefix 14323e747e6dSmrg 14333e747e6dSmrgcase $srcdir in 14343e747e6dSmrg .) # We are building in place. 14353e747e6dSmrg ac_srcdir=. 14363e747e6dSmrg ac_top_srcdir=$ac_top_builddir_sub 14373e747e6dSmrg ac_abs_top_srcdir=$ac_pwd ;; 14383e747e6dSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14393e747e6dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14403e747e6dSmrg ac_top_srcdir=$srcdir 14413e747e6dSmrg ac_abs_top_srcdir=$srcdir ;; 14423e747e6dSmrg *) # Relative name. 14433e747e6dSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14443e747e6dSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14453e747e6dSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14463e747e6dSmrgesac 14473e747e6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14483e747e6dSmrg 14493e747e6dSmrg cd "$ac_dir" || { ac_status=$?; continue; } 14503e747e6dSmrg # Check for guested configure. 14513e747e6dSmrg if test -f "$ac_srcdir/configure.gnu"; then 14523e747e6dSmrg echo && 14533e747e6dSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14543e747e6dSmrg elif test -f "$ac_srcdir/configure"; then 14553e747e6dSmrg echo && 14563e747e6dSmrg $SHELL "$ac_srcdir/configure" --help=recursive 14573e747e6dSmrg else 14587a2631fcSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14593e747e6dSmrg fi || ac_status=$? 14603e747e6dSmrg cd "$ac_pwd" || { ac_status=$?; break; } 14613e747e6dSmrg done 14623e747e6dSmrgfi 14633e747e6dSmrg 14643e747e6dSmrgtest -n "$ac_init_help" && exit $ac_status 14653e747e6dSmrgif $ac_init_version; then 14663e747e6dSmrg cat <<\_ACEOF 14672d96a817Smrgtwm configure 1.0.6 14687a2631fcSmrggenerated by GNU Autoconf 2.68 14693e747e6dSmrg 14707a2631fcSmrgCopyright (C) 2010 Free Software Foundation, Inc. 14713e747e6dSmrgThis configure script is free software; the Free Software Foundation 14723e747e6dSmrggives unlimited permission to copy, distribute and modify it. 14733e747e6dSmrg_ACEOF 14747a2631fcSmrg exit 14757a2631fcSmrgfi 14767a2631fcSmrg 14777a2631fcSmrg## ------------------------ ## 14787a2631fcSmrg## Autoconf initialization. ## 14797a2631fcSmrg## ------------------------ ## 14807a2631fcSmrg 14817a2631fcSmrg# ac_fn_c_try_compile LINENO 14827a2631fcSmrg# -------------------------- 14837a2631fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 14847a2631fcSmrgac_fn_c_try_compile () 14857a2631fcSmrg{ 14867a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14877a2631fcSmrg rm -f conftest.$ac_objext 14887a2631fcSmrg if { { ac_try="$ac_compile" 14897a2631fcSmrgcase "(($ac_try" in 14907a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14917a2631fcSmrg *) ac_try_echo=$ac_try;; 14927a2631fcSmrgesac 14937a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14947a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 14957a2631fcSmrg (eval "$ac_compile") 2>conftest.err 14967a2631fcSmrg ac_status=$? 14977a2631fcSmrg if test -s conftest.err; then 14987a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 14997a2631fcSmrg cat conftest.er1 >&5 15007a2631fcSmrg mv -f conftest.er1 conftest.err 15017a2631fcSmrg fi 15027a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15037a2631fcSmrg test $ac_status = 0; } && { 15047a2631fcSmrg test -z "$ac_c_werror_flag" || 15057a2631fcSmrg test ! -s conftest.err 15067a2631fcSmrg } && test -s conftest.$ac_objext; then : 15077a2631fcSmrg ac_retval=0 15087a2631fcSmrgelse 15097a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 15107a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 15117a2631fcSmrg 15127a2631fcSmrg ac_retval=1 15137a2631fcSmrgfi 15147a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15157a2631fcSmrg as_fn_set_status $ac_retval 15167a2631fcSmrg 15177a2631fcSmrg} # ac_fn_c_try_compile 15187a2631fcSmrg 15197a2631fcSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15207a2631fcSmrg# --------------------------------------------- 15217a2631fcSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15227a2631fcSmrg# accordingly. 15237a2631fcSmrgac_fn_c_check_decl () 15247a2631fcSmrg{ 15257a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15267a2631fcSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15277a2631fcSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15287a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15297a2631fcSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15307a2631fcSmrgif eval \${$3+:} false; then : 15317a2631fcSmrg $as_echo_n "(cached) " >&6 15327a2631fcSmrgelse 15337a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347a2631fcSmrg/* end confdefs.h. */ 15357a2631fcSmrg$4 15367a2631fcSmrgint 15377a2631fcSmrgmain () 15387a2631fcSmrg{ 15397a2631fcSmrg#ifndef $as_decl_name 15407a2631fcSmrg#ifdef __cplusplus 15417a2631fcSmrg (void) $as_decl_use; 15427a2631fcSmrg#else 15437a2631fcSmrg (void) $as_decl_name; 15447a2631fcSmrg#endif 15457a2631fcSmrg#endif 15467a2631fcSmrg 15477a2631fcSmrg ; 15487a2631fcSmrg return 0; 15497a2631fcSmrg} 15507a2631fcSmrg_ACEOF 15517a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 15527a2631fcSmrg eval "$3=yes" 15537a2631fcSmrgelse 15547a2631fcSmrg eval "$3=no" 15557a2631fcSmrgfi 15567a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577a2631fcSmrgfi 15587a2631fcSmrgeval ac_res=\$$3 15597a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15607a2631fcSmrg$as_echo "$ac_res" >&6; } 15617a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15627a2631fcSmrg 15637a2631fcSmrg} # ac_fn_c_check_decl 15647a2631fcSmrg 15657a2631fcSmrg# ac_fn_c_try_cpp LINENO 15667a2631fcSmrg# ---------------------- 15677a2631fcSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15687a2631fcSmrgac_fn_c_try_cpp () 15697a2631fcSmrg{ 15707a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15717a2631fcSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15727a2631fcSmrgcase "(($ac_try" in 15737a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15747a2631fcSmrg *) ac_try_echo=$ac_try;; 15757a2631fcSmrgesac 15767a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15777a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 15787a2631fcSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15797a2631fcSmrg ac_status=$? 15807a2631fcSmrg if test -s conftest.err; then 15817a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 15827a2631fcSmrg cat conftest.er1 >&5 15837a2631fcSmrg mv -f conftest.er1 conftest.err 15847a2631fcSmrg fi 15857a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15867a2631fcSmrg test $ac_status = 0; } > conftest.i && { 15877a2631fcSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15887a2631fcSmrg test ! -s conftest.err 15897a2631fcSmrg }; then : 15907a2631fcSmrg ac_retval=0 15917a2631fcSmrgelse 15927a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 15937a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 15947a2631fcSmrg 15957a2631fcSmrg ac_retval=1 15967a2631fcSmrgfi 15977a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15987a2631fcSmrg as_fn_set_status $ac_retval 15997a2631fcSmrg 16007a2631fcSmrg} # ac_fn_c_try_cpp 16017a2631fcSmrg 16027a2631fcSmrg# ac_fn_c_try_run LINENO 16037a2631fcSmrg# ---------------------- 16047a2631fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16057a2631fcSmrg# that executables *can* be run. 16067a2631fcSmrgac_fn_c_try_run () 16077a2631fcSmrg{ 16087a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16097a2631fcSmrg if { { ac_try="$ac_link" 16107a2631fcSmrgcase "(($ac_try" in 16117a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16127a2631fcSmrg *) ac_try_echo=$ac_try;; 16137a2631fcSmrgesac 16147a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16157a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 16167a2631fcSmrg (eval "$ac_link") 2>&5 16177a2631fcSmrg ac_status=$? 16187a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16197a2631fcSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16207a2631fcSmrg { { case "(($ac_try" in 16217a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16227a2631fcSmrg *) ac_try_echo=$ac_try;; 16237a2631fcSmrgesac 16247a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16257a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 16267a2631fcSmrg (eval "$ac_try") 2>&5 16277a2631fcSmrg ac_status=$? 16287a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16297a2631fcSmrg test $ac_status = 0; }; }; then : 16307a2631fcSmrg ac_retval=0 16317a2631fcSmrgelse 16327a2631fcSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 16337a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 16347a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 16357a2631fcSmrg 16367a2631fcSmrg ac_retval=$ac_status 16377a2631fcSmrgfi 16387a2631fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16397a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16407a2631fcSmrg as_fn_set_status $ac_retval 16417a2631fcSmrg 16427a2631fcSmrg} # ac_fn_c_try_run 16437a2631fcSmrg 16447a2631fcSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16457a2631fcSmrg# ------------------------------------------------------- 16467a2631fcSmrg# Tests whether HEADER exists and can be compiled using the include files in 16477a2631fcSmrg# INCLUDES, setting the cache variable VAR accordingly. 16487a2631fcSmrgac_fn_c_check_header_compile () 16497a2631fcSmrg{ 16507a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16517a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16527a2631fcSmrg$as_echo_n "checking for $2... " >&6; } 16537a2631fcSmrgif eval \${$3+:} false; then : 16547a2631fcSmrg $as_echo_n "(cached) " >&6 16557a2631fcSmrgelse 16567a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16577a2631fcSmrg/* end confdefs.h. */ 16587a2631fcSmrg$4 16597a2631fcSmrg#include <$2> 16607a2631fcSmrg_ACEOF 16617a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 16627a2631fcSmrg eval "$3=yes" 16637a2631fcSmrgelse 16647a2631fcSmrg eval "$3=no" 16657a2631fcSmrgfi 16667a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16677a2631fcSmrgfi 16687a2631fcSmrgeval ac_res=\$$3 16697a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16707a2631fcSmrg$as_echo "$ac_res" >&6; } 16717a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16727a2631fcSmrg 16737a2631fcSmrg} # ac_fn_c_check_header_compile 16747a2631fcSmrg 16757a2631fcSmrg# ac_fn_c_try_link LINENO 16767a2631fcSmrg# ----------------------- 16777a2631fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16787a2631fcSmrgac_fn_c_try_link () 16797a2631fcSmrg{ 16807a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16817a2631fcSmrg rm -f conftest.$ac_objext conftest$ac_exeext 16827a2631fcSmrg if { { ac_try="$ac_link" 16837a2631fcSmrgcase "(($ac_try" in 16847a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16857a2631fcSmrg *) ac_try_echo=$ac_try;; 16867a2631fcSmrgesac 16877a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16887a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 16897a2631fcSmrg (eval "$ac_link") 2>conftest.err 16907a2631fcSmrg ac_status=$? 16917a2631fcSmrg if test -s conftest.err; then 16927a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 16937a2631fcSmrg cat conftest.er1 >&5 16947a2631fcSmrg mv -f conftest.er1 conftest.err 16957a2631fcSmrg fi 16967a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16977a2631fcSmrg test $ac_status = 0; } && { 16987a2631fcSmrg test -z "$ac_c_werror_flag" || 16997a2631fcSmrg test ! -s conftest.err 17007a2631fcSmrg } && test -s conftest$ac_exeext && { 17017a2631fcSmrg test "$cross_compiling" = yes || 17027a2631fcSmrg $as_test_x conftest$ac_exeext 17037a2631fcSmrg }; then : 17047a2631fcSmrg ac_retval=0 17057a2631fcSmrgelse 17067a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 17077a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 17087a2631fcSmrg 17097a2631fcSmrg ac_retval=1 17107a2631fcSmrgfi 17117a2631fcSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17127a2631fcSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17137a2631fcSmrg # interfere with the next link command; also delete a directory that is 17147a2631fcSmrg # left behind by Apple's compiler. We do this before executing the actions. 17157a2631fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17167a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17177a2631fcSmrg as_fn_set_status $ac_retval 17187a2631fcSmrg 17197a2631fcSmrg} # ac_fn_c_try_link 17207a2631fcSmrg 17217a2631fcSmrg# ac_fn_c_check_func LINENO FUNC VAR 17227a2631fcSmrg# ---------------------------------- 17237a2631fcSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17247a2631fcSmrgac_fn_c_check_func () 17257a2631fcSmrg{ 17267a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17277a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17287a2631fcSmrg$as_echo_n "checking for $2... " >&6; } 17297a2631fcSmrgif eval \${$3+:} false; then : 17307a2631fcSmrg $as_echo_n "(cached) " >&6 17317a2631fcSmrgelse 17327a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337a2631fcSmrg/* end confdefs.h. */ 17347a2631fcSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17357a2631fcSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17367a2631fcSmrg#define $2 innocuous_$2 17377a2631fcSmrg 17387a2631fcSmrg/* System header to define __stub macros and hopefully few prototypes, 17397a2631fcSmrg which can conflict with char $2 (); below. 17407a2631fcSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17417a2631fcSmrg <limits.h> exists even on freestanding compilers. */ 17427a2631fcSmrg 17437a2631fcSmrg#ifdef __STDC__ 17447a2631fcSmrg# include <limits.h> 17457a2631fcSmrg#else 17467a2631fcSmrg# include <assert.h> 17477a2631fcSmrg#endif 17487a2631fcSmrg 17497a2631fcSmrg#undef $2 17507a2631fcSmrg 17517a2631fcSmrg/* Override any GCC internal prototype to avoid an error. 17527a2631fcSmrg Use char because int might match the return type of a GCC 17537a2631fcSmrg builtin and then its argument prototype would still apply. */ 17547a2631fcSmrg#ifdef __cplusplus 17557a2631fcSmrgextern "C" 17567a2631fcSmrg#endif 17577a2631fcSmrgchar $2 (); 17587a2631fcSmrg/* The GNU C library defines this for functions which it implements 17597a2631fcSmrg to always fail with ENOSYS. Some functions are actually named 17607a2631fcSmrg something starting with __ and the normal name is an alias. */ 17617a2631fcSmrg#if defined __stub_$2 || defined __stub___$2 17627a2631fcSmrgchoke me 17637a2631fcSmrg#endif 17647a2631fcSmrg 17657a2631fcSmrgint 17667a2631fcSmrgmain () 17677a2631fcSmrg{ 17687a2631fcSmrgreturn $2 (); 17697a2631fcSmrg ; 17707a2631fcSmrg return 0; 17717a2631fcSmrg} 17727a2631fcSmrg_ACEOF 17737a2631fcSmrgif ac_fn_c_try_link "$LINENO"; then : 17747a2631fcSmrg eval "$3=yes" 17757a2631fcSmrgelse 17767a2631fcSmrg eval "$3=no" 17773e747e6dSmrgfi 17787a2631fcSmrgrm -f core conftest.err conftest.$ac_objext \ 17797a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 17807a2631fcSmrgfi 17817a2631fcSmrgeval ac_res=\$$3 17827a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17837a2631fcSmrg$as_echo "$ac_res" >&6; } 17847a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17857a2631fcSmrg 17867a2631fcSmrg} # ac_fn_c_check_func 17873e747e6dSmrgcat >config.log <<_ACEOF 17883e747e6dSmrgThis file contains any messages produced by compilers while 17893e747e6dSmrgrunning configure, to aid debugging if configure makes a mistake. 17903e747e6dSmrg 17912d96a817SmrgIt was created by twm $as_me 1.0.6, which was 17927a2631fcSmrggenerated by GNU Autoconf 2.68. Invocation command line was 17933e747e6dSmrg 17943e747e6dSmrg $ $0 $@ 17953e747e6dSmrg 17963e747e6dSmrg_ACEOF 17973e747e6dSmrgexec 5>>config.log 17983e747e6dSmrg{ 17993e747e6dSmrgcat <<_ASUNAME 18003e747e6dSmrg## --------- ## 18013e747e6dSmrg## Platform. ## 18023e747e6dSmrg## --------- ## 18033e747e6dSmrg 18043e747e6dSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18053e747e6dSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18063e747e6dSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18073e747e6dSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18083e747e6dSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18093e747e6dSmrg 18103e747e6dSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18113e747e6dSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18123e747e6dSmrg 18133e747e6dSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18143e747e6dSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18153e747e6dSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18163e747e6dSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18173e747e6dSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18183e747e6dSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18193e747e6dSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18203e747e6dSmrg 18213e747e6dSmrg_ASUNAME 18223e747e6dSmrg 18233e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18243e747e6dSmrgfor as_dir in $PATH 18253e747e6dSmrgdo 18263e747e6dSmrg IFS=$as_save_IFS 18273e747e6dSmrg test -z "$as_dir" && as_dir=. 18287a2631fcSmrg $as_echo "PATH: $as_dir" 18297a2631fcSmrg done 18303e747e6dSmrgIFS=$as_save_IFS 18313e747e6dSmrg 18323e747e6dSmrg} >&5 18333e747e6dSmrg 18343e747e6dSmrgcat >&5 <<_ACEOF 18353e747e6dSmrg 18363e747e6dSmrg 18373e747e6dSmrg## ----------- ## 18383e747e6dSmrg## Core tests. ## 18393e747e6dSmrg## ----------- ## 18403e747e6dSmrg 18413e747e6dSmrg_ACEOF 18423e747e6dSmrg 18433e747e6dSmrg 18443e747e6dSmrg# Keep a trace of the command line. 18453e747e6dSmrg# Strip out --no-create and --no-recursion so they do not pile up. 18463e747e6dSmrg# Strip out --silent because we don't want to record it for future runs. 18473e747e6dSmrg# Also quote any args containing shell meta-characters. 18483e747e6dSmrg# Make two passes to allow for proper duplicate-argument suppression. 18493e747e6dSmrgac_configure_args= 18503e747e6dSmrgac_configure_args0= 18513e747e6dSmrgac_configure_args1= 18523e747e6dSmrgac_must_keep_next=false 18533e747e6dSmrgfor ac_pass in 1 2 18543e747e6dSmrgdo 18553e747e6dSmrg for ac_arg 18563e747e6dSmrg do 18573e747e6dSmrg case $ac_arg in 18583e747e6dSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18593e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18603e747e6dSmrg | -silent | --silent | --silen | --sile | --sil) 18613e747e6dSmrg continue ;; 18623e747e6dSmrg *\'*) 18637a2631fcSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18643e747e6dSmrg esac 18653e747e6dSmrg case $ac_pass in 18667a2631fcSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18673e747e6dSmrg 2) 18687a2631fcSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18693e747e6dSmrg if test $ac_must_keep_next = true; then 18703e747e6dSmrg ac_must_keep_next=false # Got value, back to normal. 18713e747e6dSmrg else 18723e747e6dSmrg case $ac_arg in 18733e747e6dSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18743e747e6dSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18753e747e6dSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18763e747e6dSmrg | -with-* | --with-* | -without-* | --without-* | --x) 18773e747e6dSmrg case "$ac_configure_args0 " in 18783e747e6dSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18793e747e6dSmrg esac 18803e747e6dSmrg ;; 18813e747e6dSmrg -* ) ac_must_keep_next=true ;; 18823e747e6dSmrg esac 18833e747e6dSmrg fi 18847a2631fcSmrg as_fn_append ac_configure_args " '$ac_arg'" 18853e747e6dSmrg ;; 18863e747e6dSmrg esac 18873e747e6dSmrg done 18883e747e6dSmrgdone 18897a2631fcSmrg{ ac_configure_args0=; unset ac_configure_args0;} 18907a2631fcSmrg{ ac_configure_args1=; unset ac_configure_args1;} 18913e747e6dSmrg 18923e747e6dSmrg# When interrupted or exit'd, cleanup temporary files, and complete 18933e747e6dSmrg# config.log. We remove comments because anyway the quotes in there 18943e747e6dSmrg# would cause problems or look ugly. 18953e747e6dSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 18963e747e6dSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18973e747e6dSmrgtrap 'exit_status=$? 18983e747e6dSmrg # Save into config.log some information that might help in debugging. 18993e747e6dSmrg { 19003e747e6dSmrg echo 19013e747e6dSmrg 19027a2631fcSmrg $as_echo "## ---------------- ## 19033e747e6dSmrg## Cache variables. ## 19047a2631fcSmrg## ---------------- ##" 19053e747e6dSmrg echo 19063e747e6dSmrg # The following way of writing the cache mishandles newlines in values, 19073e747e6dSmrg( 19083e747e6dSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19093e747e6dSmrg eval ac_val=\$$ac_var 19103e747e6dSmrg case $ac_val in #( 19113e747e6dSmrg *${as_nl}*) 19123e747e6dSmrg case $ac_var in #( 19137a2631fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19147a2631fcSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19153e747e6dSmrg esac 19163e747e6dSmrg case $ac_var in #( 19173e747e6dSmrg _ | IFS | as_nl) ;; #( 19187a2631fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19197a2631fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19203e747e6dSmrg esac ;; 19213e747e6dSmrg esac 19223e747e6dSmrg done 19233e747e6dSmrg (set) 2>&1 | 19243e747e6dSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19253e747e6dSmrg *${as_nl}ac_space=\ *) 19263e747e6dSmrg sed -n \ 19273e747e6dSmrg "s/'\''/'\''\\\\'\'''\''/g; 19283e747e6dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19293e747e6dSmrg ;; #( 19303e747e6dSmrg *) 19313e747e6dSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19323e747e6dSmrg ;; 19333e747e6dSmrg esac | 19343e747e6dSmrg sort 19353e747e6dSmrg) 19363e747e6dSmrg echo 19373e747e6dSmrg 19387a2631fcSmrg $as_echo "## ----------------- ## 19393e747e6dSmrg## Output variables. ## 19407a2631fcSmrg## ----------------- ##" 19413e747e6dSmrg echo 19423e747e6dSmrg for ac_var in $ac_subst_vars 19433e747e6dSmrg do 19443e747e6dSmrg eval ac_val=\$$ac_var 19453e747e6dSmrg case $ac_val in 19467a2631fcSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19473e747e6dSmrg esac 19487a2631fcSmrg $as_echo "$ac_var='\''$ac_val'\''" 19493e747e6dSmrg done | sort 19503e747e6dSmrg echo 19513e747e6dSmrg 19523e747e6dSmrg if test -n "$ac_subst_files"; then 19537a2631fcSmrg $as_echo "## ------------------- ## 19543e747e6dSmrg## File substitutions. ## 19557a2631fcSmrg## ------------------- ##" 19563e747e6dSmrg echo 19573e747e6dSmrg for ac_var in $ac_subst_files 19583e747e6dSmrg do 19593e747e6dSmrg eval ac_val=\$$ac_var 19603e747e6dSmrg case $ac_val in 19617a2631fcSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19623e747e6dSmrg esac 19637a2631fcSmrg $as_echo "$ac_var='\''$ac_val'\''" 19643e747e6dSmrg done | sort 19653e747e6dSmrg echo 19663e747e6dSmrg fi 19673e747e6dSmrg 19683e747e6dSmrg if test -s confdefs.h; then 19697a2631fcSmrg $as_echo "## ----------- ## 19703e747e6dSmrg## confdefs.h. ## 19717a2631fcSmrg## ----------- ##" 19723e747e6dSmrg echo 19733e747e6dSmrg cat confdefs.h 19743e747e6dSmrg echo 19753e747e6dSmrg fi 19763e747e6dSmrg test "$ac_signal" != 0 && 19777a2631fcSmrg $as_echo "$as_me: caught signal $ac_signal" 19787a2631fcSmrg $as_echo "$as_me: exit $exit_status" 19793e747e6dSmrg } >&5 19803e747e6dSmrg rm -f core *.core core.conftest.* && 19813e747e6dSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19823e747e6dSmrg exit $exit_status 19833e747e6dSmrg' 0 19843e747e6dSmrgfor ac_signal in 1 2 13 15; do 19857a2631fcSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 19863e747e6dSmrgdone 19873e747e6dSmrgac_signal=0 19883e747e6dSmrg 19893e747e6dSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 19903e747e6dSmrgrm -f -r conftest* confdefs.h 19913e747e6dSmrg 19927a2631fcSmrg$as_echo "/* confdefs.h */" > confdefs.h 19937a2631fcSmrg 19943e747e6dSmrg# Predefined preprocessor variables. 19953e747e6dSmrg 19963e747e6dSmrgcat >>confdefs.h <<_ACEOF 19973e747e6dSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 19983e747e6dSmrg_ACEOF 19993e747e6dSmrg 20003e747e6dSmrgcat >>confdefs.h <<_ACEOF 20013e747e6dSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 20023e747e6dSmrg_ACEOF 20033e747e6dSmrg 20043e747e6dSmrgcat >>confdefs.h <<_ACEOF 20053e747e6dSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 20063e747e6dSmrg_ACEOF 20073e747e6dSmrg 20083e747e6dSmrgcat >>confdefs.h <<_ACEOF 20093e747e6dSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 20103e747e6dSmrg_ACEOF 20113e747e6dSmrg 20123e747e6dSmrgcat >>confdefs.h <<_ACEOF 20133e747e6dSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 20143e747e6dSmrg_ACEOF 20153e747e6dSmrg 20167a2631fcSmrgcat >>confdefs.h <<_ACEOF 20177a2631fcSmrg#define PACKAGE_URL "$PACKAGE_URL" 20187a2631fcSmrg_ACEOF 20197a2631fcSmrg 20203e747e6dSmrg 20213e747e6dSmrg# Let the site file select an alternate cache file if it wants to. 20227a2631fcSmrg# Prefer an explicitly selected file to automatically selected ones. 20237a2631fcSmrgac_site_file1=NONE 20247a2631fcSmrgac_site_file2=NONE 20253e747e6dSmrgif test -n "$CONFIG_SITE"; then 20267a2631fcSmrg # We do not want a PATH search for config.site. 20277a2631fcSmrg case $CONFIG_SITE in #(( 20287a2631fcSmrg -*) ac_site_file1=./$CONFIG_SITE;; 20297a2631fcSmrg */*) ac_site_file1=$CONFIG_SITE;; 20307a2631fcSmrg *) ac_site_file1=./$CONFIG_SITE;; 20317a2631fcSmrg esac 20323e747e6dSmrgelif test "x$prefix" != xNONE; then 20337a2631fcSmrg ac_site_file1=$prefix/share/config.site 20347a2631fcSmrg ac_site_file2=$prefix/etc/config.site 20353e747e6dSmrgelse 20367a2631fcSmrg ac_site_file1=$ac_default_prefix/share/config.site 20377a2631fcSmrg ac_site_file2=$ac_default_prefix/etc/config.site 20383e747e6dSmrgfi 20397a2631fcSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 20403e747e6dSmrgdo 20417a2631fcSmrg test "x$ac_site_file" = xNONE && continue 20427a2631fcSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 20437a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20447a2631fcSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 20453e747e6dSmrg sed 's/^/| /' "$ac_site_file" >&5 20467a2631fcSmrg . "$ac_site_file" \ 20477a2631fcSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20487a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20497a2631fcSmrgas_fn_error $? "failed to load site script $ac_site_file 20507a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 20513e747e6dSmrg fi 20523e747e6dSmrgdone 20533e747e6dSmrg 20543e747e6dSmrgif test -r "$cache_file"; then 20557a2631fcSmrg # Some versions of bash will fail to source /dev/null (special files 20567a2631fcSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20577a2631fcSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20587a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20597a2631fcSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20603e747e6dSmrg case $cache_file in 20613e747e6dSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20623e747e6dSmrg *) . "./$cache_file";; 20633e747e6dSmrg esac 20643e747e6dSmrg fi 20653e747e6dSmrgelse 20667a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20677a2631fcSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20683e747e6dSmrg >$cache_file 20693e747e6dSmrgfi 20703e747e6dSmrg 20713e747e6dSmrg# Check that the precious variables saved in the cache have kept the same 20723e747e6dSmrg# value. 20733e747e6dSmrgac_cache_corrupted=false 20743e747e6dSmrgfor ac_var in $ac_precious_vars; do 20753e747e6dSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20763e747e6dSmrg eval ac_new_set=\$ac_env_${ac_var}_set 20773e747e6dSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 20783e747e6dSmrg eval ac_new_val=\$ac_env_${ac_var}_value 20793e747e6dSmrg case $ac_old_set,$ac_new_set in 20803e747e6dSmrg set,) 20817a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 20827a2631fcSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20833e747e6dSmrg ac_cache_corrupted=: ;; 20843e747e6dSmrg ,set) 20857a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 20867a2631fcSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 20873e747e6dSmrg ac_cache_corrupted=: ;; 20883e747e6dSmrg ,);; 20893e747e6dSmrg *) 20903e747e6dSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 20917a2631fcSmrg # differences in whitespace do not lead to failure. 20927a2631fcSmrg ac_old_val_w=`echo x $ac_old_val` 20937a2631fcSmrg ac_new_val_w=`echo x $ac_new_val` 20947a2631fcSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 20957a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 20967a2631fcSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 20977a2631fcSmrg ac_cache_corrupted=: 20987a2631fcSmrg else 20997a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 21007a2631fcSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 21017a2631fcSmrg eval $ac_var=\$ac_old_val 21027a2631fcSmrg fi 21037a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 21047a2631fcSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 21057a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 21067a2631fcSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 21073e747e6dSmrg fi;; 21083e747e6dSmrg esac 21093e747e6dSmrg # Pass precious variables to config.status. 21103e747e6dSmrg if test "$ac_new_set" = set; then 21113e747e6dSmrg case $ac_new_val in 21127a2631fcSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 21133e747e6dSmrg *) ac_arg=$ac_var=$ac_new_val ;; 21143e747e6dSmrg esac 21153e747e6dSmrg case " $ac_configure_args " in 21163e747e6dSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 21177a2631fcSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 21183e747e6dSmrg esac 21193e747e6dSmrg fi 21203e747e6dSmrgdone 21213e747e6dSmrgif $ac_cache_corrupted; then 21227a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21237a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21247a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 21257a2631fcSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 21267a2631fcSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 21273e747e6dSmrgfi 21287a2631fcSmrg## -------------------- ## 21297a2631fcSmrg## Main body of script. ## 21307a2631fcSmrg## -------------------- ## 21313e747e6dSmrg 21323e747e6dSmrgac_ext=c 21333e747e6dSmrgac_cpp='$CPP $CPPFLAGS' 21343e747e6dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21353e747e6dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21363e747e6dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 21373e747e6dSmrg 21383e747e6dSmrg 21392d96a817Smrg 21402d96a817Smrgac_config_headers="$ac_config_headers config.h" 21412d96a817Smrg 21422d96a817Smrg 21432d96a817Smrg# Initialize Automake 21447a2631fcSmrgam__api_version='1.11' 21453e747e6dSmrg 21463e747e6dSmrgac_aux_dir= 21473e747e6dSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 21483e747e6dSmrg if test -f "$ac_dir/install-sh"; then 21493e747e6dSmrg ac_aux_dir=$ac_dir 21503e747e6dSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 21513e747e6dSmrg break 21523e747e6dSmrg elif test -f "$ac_dir/install.sh"; then 21533e747e6dSmrg ac_aux_dir=$ac_dir 21543e747e6dSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 21553e747e6dSmrg break 21563e747e6dSmrg elif test -f "$ac_dir/shtool"; then 21573e747e6dSmrg ac_aux_dir=$ac_dir 21583e747e6dSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 21593e747e6dSmrg break 21603e747e6dSmrg fi 21613e747e6dSmrgdone 21623e747e6dSmrgif test -z "$ac_aux_dir"; then 21637a2631fcSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21643e747e6dSmrgfi 21653e747e6dSmrg 21663e747e6dSmrg# These three variables are undocumented and unsupported, 21673e747e6dSmrg# and are intended to be withdrawn in a future Autoconf release. 21683e747e6dSmrg# They can cause serious problems if a builder's source tree is in a directory 21693e747e6dSmrg# whose full name contains unusual characters. 21703e747e6dSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 21713e747e6dSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 21723e747e6dSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 21733e747e6dSmrg 21743e747e6dSmrg 21753e747e6dSmrg# Find a good install program. We prefer a C program (faster), 21763e747e6dSmrg# so one script is as good as another. But avoid the broken or 21773e747e6dSmrg# incompatible versions: 21783e747e6dSmrg# SysV /etc/install, /usr/sbin/install 21793e747e6dSmrg# SunOS /usr/etc/install 21803e747e6dSmrg# IRIX /sbin/install 21813e747e6dSmrg# AIX /bin/install 21823e747e6dSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21833e747e6dSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21843e747e6dSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21853e747e6dSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21863e747e6dSmrg# OS/2's system install, which has a completely different semantic 21873e747e6dSmrg# ./install, which can be erroneously created by make from ./install.sh. 21887a2631fcSmrg# Reject install programs that cannot install multiple files. 21897a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 21907a2631fcSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 21913e747e6dSmrgif test -z "$INSTALL"; then 21927a2631fcSmrgif ${ac_cv_path_install+:} false; then : 21937a2631fcSmrg $as_echo_n "(cached) " >&6 21943e747e6dSmrgelse 21953e747e6dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21963e747e6dSmrgfor as_dir in $PATH 21973e747e6dSmrgdo 21983e747e6dSmrg IFS=$as_save_IFS 21993e747e6dSmrg test -z "$as_dir" && as_dir=. 22007a2631fcSmrg # Account for people who put trailing slashes in PATH elements. 22017a2631fcSmrgcase $as_dir/ in #(( 22027a2631fcSmrg ./ | .// | /[cC]/* | \ 22033e747e6dSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 22047a2631fcSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 22053e747e6dSmrg /usr/ucb/* ) ;; 22063e747e6dSmrg *) 22073e747e6dSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 22083e747e6dSmrg # Don't use installbsd from OSF since it installs stuff as root 22093e747e6dSmrg # by default. 22103e747e6dSmrg for ac_prog in ginstall scoinst install; do 22113e747e6dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 22123e747e6dSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 22133e747e6dSmrg if test $ac_prog = install && 22143e747e6dSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22153e747e6dSmrg # AIX install. It has an incompatible calling convention. 22163e747e6dSmrg : 22173e747e6dSmrg elif test $ac_prog = install && 22183e747e6dSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22193e747e6dSmrg # program-specific install script used by HP pwplus--don't use. 22203e747e6dSmrg : 22213e747e6dSmrg else 22227a2631fcSmrg rm -rf conftest.one conftest.two conftest.dir 22237a2631fcSmrg echo one > conftest.one 22247a2631fcSmrg echo two > conftest.two 22257a2631fcSmrg mkdir conftest.dir 22267a2631fcSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 22277a2631fcSmrg test -s conftest.one && test -s conftest.two && 22287a2631fcSmrg test -s conftest.dir/conftest.one && 22297a2631fcSmrg test -s conftest.dir/conftest.two 22307a2631fcSmrg then 22317a2631fcSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 22327a2631fcSmrg break 3 22337a2631fcSmrg fi 22343e747e6dSmrg fi 22353e747e6dSmrg fi 22363e747e6dSmrg done 22373e747e6dSmrg done 22383e747e6dSmrg ;; 22393e747e6dSmrgesac 22407a2631fcSmrg 22417a2631fcSmrg done 22423e747e6dSmrgIFS=$as_save_IFS 22433e747e6dSmrg 22447a2631fcSmrgrm -rf conftest.one conftest.two conftest.dir 22453e747e6dSmrg 22463e747e6dSmrgfi 22473e747e6dSmrg if test "${ac_cv_path_install+set}" = set; then 22483e747e6dSmrg INSTALL=$ac_cv_path_install 22493e747e6dSmrg else 22503e747e6dSmrg # As a last resort, use the slow shell script. Don't cache a 22513e747e6dSmrg # value for INSTALL within a source directory, because that will 22523e747e6dSmrg # break other packages using the cache if that directory is 22533e747e6dSmrg # removed, or if the value is a relative name. 22543e747e6dSmrg INSTALL=$ac_install_sh 22553e747e6dSmrg fi 22563e747e6dSmrgfi 22577a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 22587a2631fcSmrg$as_echo "$INSTALL" >&6; } 22593e747e6dSmrg 22603e747e6dSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22613e747e6dSmrg# It thinks the first close brace ends the variable substitution. 22623e747e6dSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22633e747e6dSmrg 22643e747e6dSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22653e747e6dSmrg 22663e747e6dSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22673e747e6dSmrg 22687a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 22697a2631fcSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 22703e747e6dSmrg# Just in case 22713e747e6dSmrgsleep 1 22723e747e6dSmrgecho timestamp > conftest.file 22737a2631fcSmrg# Reject unsafe characters in $srcdir or the absolute working directory 22747a2631fcSmrg# name. Accept space and tab only in the latter. 22757a2631fcSmrgam_lf=' 22767a2631fcSmrg' 22777a2631fcSmrgcase `pwd` in 22787a2631fcSmrg *[\\\"\#\$\&\'\`$am_lf]*) 22797a2631fcSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 22807a2631fcSmrgesac 22817a2631fcSmrgcase $srcdir in 22827a2631fcSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 22837a2631fcSmrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 22847a2631fcSmrgesac 22857a2631fcSmrg 22863e747e6dSmrg# Do `set' in a subshell so we don't clobber the current shell's 22873e747e6dSmrg# arguments. Must try -L first in case configure is actually a 22883e747e6dSmrg# symlink; some systems play weird games with the mod time of symlinks 22893e747e6dSmrg# (eg FreeBSD returns the mod time of the symlink's containing 22903e747e6dSmrg# directory). 22913e747e6dSmrgif ( 22927a2631fcSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 22933e747e6dSmrg if test "$*" = "X"; then 22943e747e6dSmrg # -L didn't work. 22957a2631fcSmrg set X `ls -t "$srcdir/configure" conftest.file` 22963e747e6dSmrg fi 22973e747e6dSmrg rm -f conftest.file 22983e747e6dSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 22993e747e6dSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 23003e747e6dSmrg 23013e747e6dSmrg # If neither matched, then we have a broken ls. This can happen 23023e747e6dSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 23033e747e6dSmrg # broken ls alias from the environment. This has actually 23043e747e6dSmrg # happened. Such a system could not be considered "sane". 23057a2631fcSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 23067a2631fcSmrgalias in your environment" "$LINENO" 5 23073e747e6dSmrg fi 23083e747e6dSmrg 23093e747e6dSmrg test "$2" = conftest.file 23103e747e6dSmrg ) 23113e747e6dSmrgthen 23123e747e6dSmrg # Ok. 23133e747e6dSmrg : 23143e747e6dSmrgelse 23157a2631fcSmrg as_fn_error $? "newly created file is older than distributed files! 23167a2631fcSmrgCheck your system clock" "$LINENO" 5 23173e747e6dSmrgfi 23187a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23197a2631fcSmrg$as_echo "yes" >&6; } 23203e747e6dSmrgtest "$program_prefix" != NONE && 23213e747e6dSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 23223e747e6dSmrg# Use a double $ so make ignores it. 23233e747e6dSmrgtest "$program_suffix" != NONE && 23243e747e6dSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 23257a2631fcSmrg# Double any \ or $. 23263e747e6dSmrg# By default was `s,x,x', remove it if useless. 23277a2631fcSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 23287a2631fcSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 23293e747e6dSmrg 23303e747e6dSmrg# expand $ac_aux_dir to an absolute path 23313e747e6dSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 23323e747e6dSmrg 23337a2631fcSmrgif test x"${MISSING+set}" != xset; then 23347a2631fcSmrg case $am_aux_dir in 23357a2631fcSmrg *\ * | *\ *) 23367a2631fcSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 23377a2631fcSmrg *) 23387a2631fcSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 23397a2631fcSmrg esac 23407a2631fcSmrgfi 23413e747e6dSmrg# Use eval to expand $SHELL 23423e747e6dSmrgif eval "$MISSING --run true"; then 23433e747e6dSmrg am_missing_run="$MISSING --run " 23443e747e6dSmrgelse 23453e747e6dSmrg am_missing_run= 23467a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 23477a2631fcSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 23487a2631fcSmrgfi 23497a2631fcSmrg 23507a2631fcSmrgif test x"${install_sh}" != xset; then 23517a2631fcSmrg case $am_aux_dir in 23527a2631fcSmrg *\ * | *\ *) 23537a2631fcSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 23547a2631fcSmrg *) 23557a2631fcSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 23567a2631fcSmrg esac 23577a2631fcSmrgfi 23587a2631fcSmrg 23597a2631fcSmrg# Installed binaries are usually stripped using `strip' when the user 23607a2631fcSmrg# run `make install-strip'. However `strip' might not be the right 23617a2631fcSmrg# tool to use in cross-compilation environments, therefore Automake 23627a2631fcSmrg# will honor the `STRIP' environment variable to overrule this program. 23637a2631fcSmrgif test "$cross_compiling" != no; then 23647a2631fcSmrg if test -n "$ac_tool_prefix"; then 23657a2631fcSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 23667a2631fcSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 23677a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23687a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 23697a2631fcSmrgif ${ac_cv_prog_STRIP+:} false; then : 23707a2631fcSmrg $as_echo_n "(cached) " >&6 23717a2631fcSmrgelse 23727a2631fcSmrg if test -n "$STRIP"; then 23737a2631fcSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 23747a2631fcSmrgelse 23757a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23767a2631fcSmrgfor as_dir in $PATH 23777a2631fcSmrgdo 23787a2631fcSmrg IFS=$as_save_IFS 23797a2631fcSmrg test -z "$as_dir" && as_dir=. 23807a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 23817a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23827a2631fcSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 23837a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23847a2631fcSmrg break 2 23857a2631fcSmrg fi 23867a2631fcSmrgdone 23877a2631fcSmrg done 23887a2631fcSmrgIFS=$as_save_IFS 23897a2631fcSmrg 23907a2631fcSmrgfi 23917a2631fcSmrgfi 23927a2631fcSmrgSTRIP=$ac_cv_prog_STRIP 23937a2631fcSmrgif test -n "$STRIP"; then 23947a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 23957a2631fcSmrg$as_echo "$STRIP" >&6; } 23967a2631fcSmrgelse 23977a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23987a2631fcSmrg$as_echo "no" >&6; } 23997a2631fcSmrgfi 24007a2631fcSmrg 24017a2631fcSmrg 24027a2631fcSmrgfi 24037a2631fcSmrgif test -z "$ac_cv_prog_STRIP"; then 24047a2631fcSmrg ac_ct_STRIP=$STRIP 24057a2631fcSmrg # Extract the first word of "strip", so it can be a program name with args. 24067a2631fcSmrgset dummy strip; ac_word=$2 24077a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24087a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 24097a2631fcSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 24107a2631fcSmrg $as_echo_n "(cached) " >&6 24117a2631fcSmrgelse 24127a2631fcSmrg if test -n "$ac_ct_STRIP"; then 24137a2631fcSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 24147a2631fcSmrgelse 24157a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24167a2631fcSmrgfor as_dir in $PATH 24177a2631fcSmrgdo 24187a2631fcSmrg IFS=$as_save_IFS 24197a2631fcSmrg test -z "$as_dir" && as_dir=. 24207a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24217a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24227a2631fcSmrg ac_cv_prog_ac_ct_STRIP="strip" 24237a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24247a2631fcSmrg break 2 24257a2631fcSmrg fi 24267a2631fcSmrgdone 24277a2631fcSmrg done 24287a2631fcSmrgIFS=$as_save_IFS 24297a2631fcSmrg 24307a2631fcSmrgfi 24317a2631fcSmrgfi 24327a2631fcSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 24337a2631fcSmrgif test -n "$ac_ct_STRIP"; then 24347a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 24357a2631fcSmrg$as_echo "$ac_ct_STRIP" >&6; } 24367a2631fcSmrgelse 24377a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24387a2631fcSmrg$as_echo "no" >&6; } 24397a2631fcSmrgfi 24407a2631fcSmrg 24417a2631fcSmrg if test "x$ac_ct_STRIP" = x; then 24427a2631fcSmrg STRIP=":" 24437a2631fcSmrg else 24447a2631fcSmrg case $cross_compiling:$ac_tool_warned in 24457a2631fcSmrgyes:) 24467a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24477a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24487a2631fcSmrgac_tool_warned=yes ;; 24497a2631fcSmrgesac 24507a2631fcSmrg STRIP=$ac_ct_STRIP 24517a2631fcSmrg fi 24527a2631fcSmrgelse 24537a2631fcSmrg STRIP="$ac_cv_prog_STRIP" 24547a2631fcSmrgfi 24557a2631fcSmrg 24563e747e6dSmrgfi 24577a2631fcSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 24583e747e6dSmrg 24597a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 24607a2631fcSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 24613e747e6dSmrgif test -z "$MKDIR_P"; then 24627a2631fcSmrg if ${ac_cv_path_mkdir+:} false; then : 24637a2631fcSmrg $as_echo_n "(cached) " >&6 24643e747e6dSmrgelse 24653e747e6dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24663e747e6dSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 24673e747e6dSmrgdo 24683e747e6dSmrg IFS=$as_save_IFS 24693e747e6dSmrg test -z "$as_dir" && as_dir=. 24707a2631fcSmrg for ac_prog in mkdir gmkdir; do 24713e747e6dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24723e747e6dSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 24733e747e6dSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 24743e747e6dSmrg 'mkdir (GNU coreutils) '* | \ 24753e747e6dSmrg 'mkdir (coreutils) '* | \ 24763e747e6dSmrg 'mkdir (fileutils) '4.1*) 24773e747e6dSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 24783e747e6dSmrg break 3;; 24793e747e6dSmrg esac 24803e747e6dSmrg done 24813e747e6dSmrg done 24827a2631fcSmrg done 24833e747e6dSmrgIFS=$as_save_IFS 24843e747e6dSmrg 24853e747e6dSmrgfi 24863e747e6dSmrg 24877a2631fcSmrg test -d ./--version && rmdir ./--version 24883e747e6dSmrg if test "${ac_cv_path_mkdir+set}" = set; then 24893e747e6dSmrg MKDIR_P="$ac_cv_path_mkdir -p" 24903e747e6dSmrg else 24913e747e6dSmrg # As a last resort, use the slow shell script. Don't cache a 24923e747e6dSmrg # value for MKDIR_P within a source directory, because that will 24933e747e6dSmrg # break other packages using the cache if that directory is 24943e747e6dSmrg # removed, or if the value is a relative name. 24953e747e6dSmrg MKDIR_P="$ac_install_sh -d" 24963e747e6dSmrg fi 24973e747e6dSmrgfi 24987a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 24997a2631fcSmrg$as_echo "$MKDIR_P" >&6; } 25003e747e6dSmrg 25013e747e6dSmrgmkdir_p="$MKDIR_P" 25023e747e6dSmrgcase $mkdir_p in 25033e747e6dSmrg [\\/$]* | ?:[\\/]*) ;; 25043e747e6dSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 25053e747e6dSmrgesac 25063e747e6dSmrg 25073e747e6dSmrgfor ac_prog in gawk mawk nawk awk 25083e747e6dSmrgdo 25093e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 25103e747e6dSmrgset dummy $ac_prog; ac_word=$2 25117a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25127a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 25137a2631fcSmrgif ${ac_cv_prog_AWK+:} false; then : 25147a2631fcSmrg $as_echo_n "(cached) " >&6 25153e747e6dSmrgelse 25163e747e6dSmrg if test -n "$AWK"; then 25173e747e6dSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 25183e747e6dSmrgelse 25193e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25203e747e6dSmrgfor as_dir in $PATH 25213e747e6dSmrgdo 25223e747e6dSmrg IFS=$as_save_IFS 25233e747e6dSmrg test -z "$as_dir" && as_dir=. 25247a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25253e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25263e747e6dSmrg ac_cv_prog_AWK="$ac_prog" 25277a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25283e747e6dSmrg break 2 25293e747e6dSmrg fi 25303e747e6dSmrgdone 25317a2631fcSmrg done 25323e747e6dSmrgIFS=$as_save_IFS 25333e747e6dSmrg 25343e747e6dSmrgfi 25353e747e6dSmrgfi 25363e747e6dSmrgAWK=$ac_cv_prog_AWK 25373e747e6dSmrgif test -n "$AWK"; then 25387a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 25397a2631fcSmrg$as_echo "$AWK" >&6; } 25403e747e6dSmrgelse 25417a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25427a2631fcSmrg$as_echo "no" >&6; } 25433e747e6dSmrgfi 25443e747e6dSmrg 25453e747e6dSmrg 25463e747e6dSmrg test -n "$AWK" && break 25473e747e6dSmrgdone 25483e747e6dSmrg 25497a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 25507a2631fcSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 25517a2631fcSmrgset x ${MAKE-make} 25527a2631fcSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 25537a2631fcSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 25547a2631fcSmrg $as_echo_n "(cached) " >&6 25553e747e6dSmrgelse 25563e747e6dSmrg cat >conftest.make <<\_ACEOF 25573e747e6dSmrgSHELL = /bin/sh 25583e747e6dSmrgall: 25593e747e6dSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25603e747e6dSmrg_ACEOF 25617a2631fcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 25623e747e6dSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 25633e747e6dSmrg *@@@%%%=?*=@@@%%%*) 25643e747e6dSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 25653e747e6dSmrg *) 25663e747e6dSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 25673e747e6dSmrgesac 25683e747e6dSmrgrm -f conftest.make 25693e747e6dSmrgfi 25703e747e6dSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 25717a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25727a2631fcSmrg$as_echo "yes" >&6; } 25733e747e6dSmrg SET_MAKE= 25743e747e6dSmrgelse 25757a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25767a2631fcSmrg$as_echo "no" >&6; } 25773e747e6dSmrg SET_MAKE="MAKE=${MAKE-make}" 25783e747e6dSmrgfi 25793e747e6dSmrg 25803e747e6dSmrgrm -rf .tst 2>/dev/null 25813e747e6dSmrgmkdir .tst 2>/dev/null 25823e747e6dSmrgif test -d .tst; then 25833e747e6dSmrg am__leading_dot=. 25843e747e6dSmrgelse 25853e747e6dSmrg am__leading_dot=_ 25863e747e6dSmrgfi 25873e747e6dSmrgrmdir .tst 2>/dev/null 25883e747e6dSmrg 25893e747e6dSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 25903e747e6dSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 25913e747e6dSmrg # is not polluted with repeated "-I." 25923e747e6dSmrg am__isrc=' -I$(srcdir)' 25933e747e6dSmrg # test to see if srcdir already configured 25943e747e6dSmrg if test -f $srcdir/config.status; then 25957a2631fcSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 25963e747e6dSmrg fi 25973e747e6dSmrgfi 25983e747e6dSmrg 25993e747e6dSmrg# test whether we have cygpath 26003e747e6dSmrgif test -z "$CYGPATH_W"; then 26013e747e6dSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 26023e747e6dSmrg CYGPATH_W='cygpath -w' 26033e747e6dSmrg else 26043e747e6dSmrg CYGPATH_W=echo 26053e747e6dSmrg fi 26063e747e6dSmrgfi 26073e747e6dSmrg 26083e747e6dSmrg 26093e747e6dSmrg# Define the identity of the package. 26103e747e6dSmrg PACKAGE='twm' 26112d96a817Smrg VERSION='1.0.6' 26123e747e6dSmrg 26133e747e6dSmrg 26143e747e6dSmrgcat >>confdefs.h <<_ACEOF 26153e747e6dSmrg#define PACKAGE "$PACKAGE" 26163e747e6dSmrg_ACEOF 26173e747e6dSmrg 26183e747e6dSmrg 26193e747e6dSmrgcat >>confdefs.h <<_ACEOF 26203e747e6dSmrg#define VERSION "$VERSION" 26213e747e6dSmrg_ACEOF 26223e747e6dSmrg 26233e747e6dSmrg# Some tools Automake needs. 26243e747e6dSmrg 26253e747e6dSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26263e747e6dSmrg 26273e747e6dSmrg 26283e747e6dSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26293e747e6dSmrg 26303e747e6dSmrg 26313e747e6dSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26323e747e6dSmrg 26333e747e6dSmrg 26343e747e6dSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26353e747e6dSmrg 26363e747e6dSmrg 26373e747e6dSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26383e747e6dSmrg 26397a2631fcSmrg# We need awk for the "check" target. The system "awk" is bad on 26407a2631fcSmrg# some platforms. 26417a2631fcSmrg# Always define AMTAR for backward compatibility. 26423e747e6dSmrg 26437a2631fcSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 26447a2631fcSmrg 26457a2631fcSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 26467a2631fcSmrg 26477a2631fcSmrg 26487a2631fcSmrg 26497a2631fcSmrg 26507a2631fcSmrg 26517a2631fcSmrg 26527a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 26537a2631fcSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 26547a2631fcSmrg # Check whether --enable-maintainer-mode was given. 26557a2631fcSmrgif test "${enable_maintainer_mode+set}" = set; then : 26567a2631fcSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 26573e747e6dSmrgelse 26587a2631fcSmrg USE_MAINTAINER_MODE=no 26597a2631fcSmrgfi 26607a2631fcSmrg 26617a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 26627a2631fcSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 26637a2631fcSmrg if test $USE_MAINTAINER_MODE = yes; then 26647a2631fcSmrg MAINTAINER_MODE_TRUE= 26657a2631fcSmrg MAINTAINER_MODE_FALSE='#' 26667a2631fcSmrgelse 26677a2631fcSmrg MAINTAINER_MODE_TRUE='#' 26687a2631fcSmrg MAINTAINER_MODE_FALSE= 26697a2631fcSmrgfi 26707a2631fcSmrg 26717a2631fcSmrg MAINT=$MAINTAINER_MODE_TRUE 26727a2631fcSmrg 26737a2631fcSmrg 26747a2631fcSmrg 26757a2631fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 26767a2631fcSmrg 26777a2631fcSmrg 26787a2631fcSmrg 26797a2631fcSmrg 26807a2631fcSmrg 26817a2631fcSmrg 26827a2631fcSmrg 26837a2631fcSmrg 26847a2631fcSmrg 26857a2631fcSmrg 26867a2631fcSmrg 26877a2631fcSmrgDEPDIR="${am__leading_dot}deps" 26887a2631fcSmrg 26897a2631fcSmrgac_config_commands="$ac_config_commands depfiles" 26907a2631fcSmrg 26917a2631fcSmrg 26927a2631fcSmrgam_make=${MAKE-make} 26937a2631fcSmrgcat > confinc << 'END' 26947a2631fcSmrgam__doit: 26957a2631fcSmrg @echo this is the am__doit target 26967a2631fcSmrg.PHONY: am__doit 26977a2631fcSmrgEND 26987a2631fcSmrg# If we don't find an include directive, just comment out the code. 26997a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 27007a2631fcSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 27017a2631fcSmrgam__include="#" 27027a2631fcSmrgam__quote= 27037a2631fcSmrg_am_result=none 27047a2631fcSmrg# First try GNU make style include. 27057a2631fcSmrgecho "include confinc" > confmf 27067a2631fcSmrg# Ignore all kinds of additional output from `make'. 27077a2631fcSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 27087a2631fcSmrg*the\ am__doit\ target*) 27097a2631fcSmrg am__include=include 27107a2631fcSmrg am__quote= 27117a2631fcSmrg _am_result=GNU 27127a2631fcSmrg ;; 27137a2631fcSmrgesac 27147a2631fcSmrg# Now try BSD make style include. 27157a2631fcSmrgif test "$am__include" = "#"; then 27167a2631fcSmrg echo '.include "confinc"' > confmf 27177a2631fcSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 27187a2631fcSmrg *the\ am__doit\ target*) 27197a2631fcSmrg am__include=.include 27207a2631fcSmrg am__quote="\"" 27217a2631fcSmrg _am_result=BSD 27227a2631fcSmrg ;; 27237a2631fcSmrg esac 27247a2631fcSmrgfi 27257a2631fcSmrg 27267a2631fcSmrg 27277a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 27287a2631fcSmrg$as_echo "$_am_result" >&6; } 27297a2631fcSmrgrm -f confinc confmf 27307a2631fcSmrg 27317a2631fcSmrg# Check whether --enable-dependency-tracking was given. 27327a2631fcSmrgif test "${enable_dependency_tracking+set}" = set; then : 27337a2631fcSmrg enableval=$enable_dependency_tracking; 27347a2631fcSmrgfi 27357a2631fcSmrg 27367a2631fcSmrgif test "x$enable_dependency_tracking" != xno; then 27377a2631fcSmrg am_depcomp="$ac_aux_dir/depcomp" 27387a2631fcSmrg AMDEPBACKSLASH='\' 27397a2631fcSmrgfi 27407a2631fcSmrg if test "x$enable_dependency_tracking" != xno; then 27417a2631fcSmrg AMDEP_TRUE= 27427a2631fcSmrg AMDEP_FALSE='#' 27437a2631fcSmrgelse 27447a2631fcSmrg AMDEP_TRUE='#' 27457a2631fcSmrg AMDEP_FALSE= 27467a2631fcSmrgfi 27477a2631fcSmrg 27487a2631fcSmrg 27497a2631fcSmrgac_ext=c 27507a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 27517a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27527a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27537a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 27547a2631fcSmrgif test -n "$ac_tool_prefix"; then 27557a2631fcSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 27567a2631fcSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 27577a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27587a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 27597a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 27607a2631fcSmrg $as_echo_n "(cached) " >&6 27617a2631fcSmrgelse 27627a2631fcSmrg if test -n "$CC"; then 27637a2631fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 27643e747e6dSmrgelse 27653e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27663e747e6dSmrgfor as_dir in $PATH 27673e747e6dSmrgdo 27683e747e6dSmrg IFS=$as_save_IFS 27693e747e6dSmrg test -z "$as_dir" && as_dir=. 27707a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27713e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27727a2631fcSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 27737a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27743e747e6dSmrg break 2 27753e747e6dSmrg fi 27763e747e6dSmrgdone 27777a2631fcSmrg done 27783e747e6dSmrgIFS=$as_save_IFS 27793e747e6dSmrg 27803e747e6dSmrgfi 27813e747e6dSmrgfi 27827a2631fcSmrgCC=$ac_cv_prog_CC 27837a2631fcSmrgif test -n "$CC"; then 27847a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27857a2631fcSmrg$as_echo "$CC" >&6; } 27863e747e6dSmrgelse 27877a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27887a2631fcSmrg$as_echo "no" >&6; } 27893e747e6dSmrgfi 27903e747e6dSmrg 27913e747e6dSmrg 27923e747e6dSmrgfi 27937a2631fcSmrgif test -z "$ac_cv_prog_CC"; then 27947a2631fcSmrg ac_ct_CC=$CC 27957a2631fcSmrg # Extract the first word of "gcc", so it can be a program name with args. 27967a2631fcSmrgset dummy gcc; ac_word=$2 27977a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27987a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 27997a2631fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 28007a2631fcSmrg $as_echo_n "(cached) " >&6 28013e747e6dSmrgelse 28027a2631fcSmrg if test -n "$ac_ct_CC"; then 28037a2631fcSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28043e747e6dSmrgelse 28053e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28063e747e6dSmrgfor as_dir in $PATH 28073e747e6dSmrgdo 28083e747e6dSmrg IFS=$as_save_IFS 28093e747e6dSmrg test -z "$as_dir" && as_dir=. 28107a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28113e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28127a2631fcSmrg ac_cv_prog_ac_ct_CC="gcc" 28137a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28143e747e6dSmrg break 2 28153e747e6dSmrg fi 28163e747e6dSmrgdone 28177a2631fcSmrg done 28183e747e6dSmrgIFS=$as_save_IFS 28193e747e6dSmrg 28203e747e6dSmrgfi 28213e747e6dSmrgfi 28227a2631fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28237a2631fcSmrgif test -n "$ac_ct_CC"; then 28247a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28257a2631fcSmrg$as_echo "$ac_ct_CC" >&6; } 28263e747e6dSmrgelse 28277a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28287a2631fcSmrg$as_echo "no" >&6; } 28293e747e6dSmrgfi 28303e747e6dSmrg 28317a2631fcSmrg if test "x$ac_ct_CC" = x; then 28327a2631fcSmrg CC="" 28333e747e6dSmrg else 28343e747e6dSmrg case $cross_compiling:$ac_tool_warned in 28353e747e6dSmrgyes:) 28367a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28377a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28383e747e6dSmrgac_tool_warned=yes ;; 28393e747e6dSmrgesac 28407a2631fcSmrg CC=$ac_ct_CC 28413e747e6dSmrg fi 28423e747e6dSmrgelse 28437a2631fcSmrg CC="$ac_cv_prog_CC" 28443e747e6dSmrgfi 28453e747e6dSmrg 28467a2631fcSmrgif test -z "$CC"; then 28477a2631fcSmrg if test -n "$ac_tool_prefix"; then 28487a2631fcSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 28497a2631fcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 28507a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28517a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 28527a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 28537a2631fcSmrg $as_echo_n "(cached) " >&6 28543e747e6dSmrgelse 28557a2631fcSmrg if test -n "$CC"; then 28567a2631fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 28577a2631fcSmrgelse 28587a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28597a2631fcSmrgfor as_dir in $PATH 28607a2631fcSmrgdo 28617a2631fcSmrg IFS=$as_save_IFS 28627a2631fcSmrg test -z "$as_dir" && as_dir=. 28637a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28647a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28657a2631fcSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 28667a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28677a2631fcSmrg break 2 28687a2631fcSmrg fi 28697a2631fcSmrgdone 28707a2631fcSmrg done 28717a2631fcSmrgIFS=$as_save_IFS 28723e747e6dSmrg 28737a2631fcSmrgfi 28747a2631fcSmrgfi 28757a2631fcSmrgCC=$ac_cv_prog_CC 28767a2631fcSmrgif test -n "$CC"; then 28777a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28787a2631fcSmrg$as_echo "$CC" >&6; } 28793e747e6dSmrgelse 28807a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28817a2631fcSmrg$as_echo "no" >&6; } 28823e747e6dSmrgfi 28833e747e6dSmrg 28843e747e6dSmrg 28857a2631fcSmrg fi 28867a2631fcSmrgfi 28877a2631fcSmrgif test -z "$CC"; then 28887a2631fcSmrg # Extract the first word of "cc", so it can be a program name with args. 28897a2631fcSmrgset dummy cc; ac_word=$2 28907a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28917a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 28927a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 28937a2631fcSmrg $as_echo_n "(cached) " >&6 28947a2631fcSmrgelse 28957a2631fcSmrg if test -n "$CC"; then 28967a2631fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 28977a2631fcSmrgelse 28987a2631fcSmrg ac_prog_rejected=no 28997a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29007a2631fcSmrgfor as_dir in $PATH 29017a2631fcSmrgdo 29027a2631fcSmrg IFS=$as_save_IFS 29037a2631fcSmrg test -z "$as_dir" && as_dir=. 29047a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29057a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29067a2631fcSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 29077a2631fcSmrg ac_prog_rejected=yes 29087a2631fcSmrg continue 29097a2631fcSmrg fi 29107a2631fcSmrg ac_cv_prog_CC="cc" 29117a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29127a2631fcSmrg break 2 29137a2631fcSmrg fi 29147a2631fcSmrgdone 29157a2631fcSmrg done 29167a2631fcSmrgIFS=$as_save_IFS 29173e747e6dSmrg 29187a2631fcSmrgif test $ac_prog_rejected = yes; then 29197a2631fcSmrg # We found a bogon in the path, so make sure we never use it. 29207a2631fcSmrg set dummy $ac_cv_prog_CC 29217a2631fcSmrg shift 29227a2631fcSmrg if test $# != 0; then 29237a2631fcSmrg # We chose a different compiler from the bogus one. 29247a2631fcSmrg # However, it has the same basename, so the bogon will be chosen 29257a2631fcSmrg # first if we set CC to just the basename; use the full file name. 29267a2631fcSmrg shift 29277a2631fcSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 29287a2631fcSmrg fi 29297a2631fcSmrgfi 29307a2631fcSmrgfi 29317a2631fcSmrgfi 29327a2631fcSmrgCC=$ac_cv_prog_CC 29337a2631fcSmrgif test -n "$CC"; then 29347a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29357a2631fcSmrg$as_echo "$CC" >&6; } 29367a2631fcSmrgelse 29377a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29387a2631fcSmrg$as_echo "no" >&6; } 29397a2631fcSmrgfi 29403e747e6dSmrg 29413e747e6dSmrg 29427a2631fcSmrgfi 29437a2631fcSmrgif test -z "$CC"; then 29447a2631fcSmrg if test -n "$ac_tool_prefix"; then 29457a2631fcSmrg for ac_prog in cl.exe 29467a2631fcSmrg do 29477a2631fcSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29487a2631fcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 29497a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29507a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 29517a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 29527a2631fcSmrg $as_echo_n "(cached) " >&6 29533e747e6dSmrgelse 29543e747e6dSmrg if test -n "$CC"; then 29553e747e6dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 29563e747e6dSmrgelse 29573e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29583e747e6dSmrgfor as_dir in $PATH 29593e747e6dSmrgdo 29603e747e6dSmrg IFS=$as_save_IFS 29613e747e6dSmrg test -z "$as_dir" && as_dir=. 29627a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29633e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29647a2631fcSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29657a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29663e747e6dSmrg break 2 29673e747e6dSmrg fi 29683e747e6dSmrgdone 29697a2631fcSmrg done 29703e747e6dSmrgIFS=$as_save_IFS 29713e747e6dSmrg 29723e747e6dSmrgfi 29733e747e6dSmrgfi 29743e747e6dSmrgCC=$ac_cv_prog_CC 29753e747e6dSmrgif test -n "$CC"; then 29767a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29777a2631fcSmrg$as_echo "$CC" >&6; } 29783e747e6dSmrgelse 29797a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29807a2631fcSmrg$as_echo "no" >&6; } 29813e747e6dSmrgfi 29823e747e6dSmrg 29833e747e6dSmrg 29847a2631fcSmrg test -n "$CC" && break 29857a2631fcSmrg done 29863e747e6dSmrgfi 29877a2631fcSmrgif test -z "$CC"; then 29883e747e6dSmrg ac_ct_CC=$CC 29897a2631fcSmrg for ac_prog in cl.exe 29907a2631fcSmrgdo 29917a2631fcSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 29927a2631fcSmrgset dummy $ac_prog; ac_word=$2 29937a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29947a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 29957a2631fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 29967a2631fcSmrg $as_echo_n "(cached) " >&6 29973e747e6dSmrgelse 29983e747e6dSmrg if test -n "$ac_ct_CC"; then 29993e747e6dSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30003e747e6dSmrgelse 30013e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30023e747e6dSmrgfor as_dir in $PATH 30033e747e6dSmrgdo 30043e747e6dSmrg IFS=$as_save_IFS 30053e747e6dSmrg test -z "$as_dir" && as_dir=. 30067a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30073e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30087a2631fcSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 30097a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30103e747e6dSmrg break 2 30113e747e6dSmrg fi 30123e747e6dSmrgdone 30137a2631fcSmrg done 30147a2631fcSmrgIFS=$as_save_IFS 30157a2631fcSmrg 30167a2631fcSmrgfi 30177a2631fcSmrgfi 30187a2631fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30197a2631fcSmrgif test -n "$ac_ct_CC"; then 30207a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30217a2631fcSmrg$as_echo "$ac_ct_CC" >&6; } 30227a2631fcSmrgelse 30237a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30247a2631fcSmrg$as_echo "no" >&6; } 30257a2631fcSmrgfi 30267a2631fcSmrg 30277a2631fcSmrg 30287a2631fcSmrg test -n "$ac_ct_CC" && break 30297a2631fcSmrgdone 30307a2631fcSmrg 30317a2631fcSmrg if test "x$ac_ct_CC" = x; then 30327a2631fcSmrg CC="" 30337a2631fcSmrg else 30347a2631fcSmrg case $cross_compiling:$ac_tool_warned in 30357a2631fcSmrgyes:) 30367a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30377a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30387a2631fcSmrgac_tool_warned=yes ;; 30397a2631fcSmrgesac 30407a2631fcSmrg CC=$ac_ct_CC 30417a2631fcSmrg fi 30427a2631fcSmrgfi 30437a2631fcSmrg 30447a2631fcSmrgfi 30457a2631fcSmrg 30467a2631fcSmrg 30477a2631fcSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30487a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30497a2631fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 30507a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 30517a2631fcSmrg 30527a2631fcSmrg# Provide some information about the compiler. 30537a2631fcSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 30547a2631fcSmrgset X $ac_compile 30557a2631fcSmrgac_compiler=$2 30567a2631fcSmrgfor ac_option in --version -v -V -qversion; do 30577a2631fcSmrg { { ac_try="$ac_compiler $ac_option >&5" 30587a2631fcSmrgcase "(($ac_try" in 30597a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30607a2631fcSmrg *) ac_try_echo=$ac_try;; 30617a2631fcSmrgesac 30627a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30637a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 30647a2631fcSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30657a2631fcSmrg ac_status=$? 30667a2631fcSmrg if test -s conftest.err; then 30677a2631fcSmrg sed '10a\ 30687a2631fcSmrg... rest of stderr output deleted ... 30697a2631fcSmrg 10q' conftest.err >conftest.er1 30707a2631fcSmrg cat conftest.er1 >&5 30717a2631fcSmrg fi 30727a2631fcSmrg rm -f conftest.er1 conftest.err 30737a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30747a2631fcSmrg test $ac_status = 0; } 30757a2631fcSmrgdone 30767a2631fcSmrg 30777a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 30787a2631fcSmrg/* end confdefs.h. */ 30797a2631fcSmrg 30807a2631fcSmrgint 30817a2631fcSmrgmain () 30827a2631fcSmrg{ 30837a2631fcSmrg 30847a2631fcSmrg ; 30857a2631fcSmrg return 0; 30867a2631fcSmrg} 30877a2631fcSmrg_ACEOF 30887a2631fcSmrgac_clean_files_save=$ac_clean_files 30897a2631fcSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 30907a2631fcSmrg# Try to create an executable without -o first, disregard a.out. 30917a2631fcSmrg# It will help us diagnose broken compilers, and finding out an intuition 30927a2631fcSmrg# of exeext. 30937a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30947a2631fcSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 30957a2631fcSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 30967a2631fcSmrg 30977a2631fcSmrg# The possible output files: 30987a2631fcSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 30997a2631fcSmrg 31007a2631fcSmrgac_rmfiles= 31017a2631fcSmrgfor ac_file in $ac_files 31027a2631fcSmrgdo 31037a2631fcSmrg case $ac_file in 31047a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31057a2631fcSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 31067a2631fcSmrg esac 31077a2631fcSmrgdone 31087a2631fcSmrgrm -f $ac_rmfiles 31097a2631fcSmrg 31107a2631fcSmrgif { { ac_try="$ac_link_default" 31117a2631fcSmrgcase "(($ac_try" in 31127a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31137a2631fcSmrg *) ac_try_echo=$ac_try;; 31147a2631fcSmrgesac 31157a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31167a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 31177a2631fcSmrg (eval "$ac_link_default") 2>&5 31187a2631fcSmrg ac_status=$? 31197a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31207a2631fcSmrg test $ac_status = 0; }; then : 31217a2631fcSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 31227a2631fcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 31237a2631fcSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 31247a2631fcSmrg# so that the user can short-circuit this test for compilers unknown to 31257a2631fcSmrg# Autoconf. 31267a2631fcSmrgfor ac_file in $ac_files '' 31277a2631fcSmrgdo 31287a2631fcSmrg test -f "$ac_file" || continue 31297a2631fcSmrg case $ac_file in 31307a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 31317a2631fcSmrg ;; 31327a2631fcSmrg [ab].out ) 31337a2631fcSmrg # We found the default executable, but exeext='' is most 31347a2631fcSmrg # certainly right. 31357a2631fcSmrg break;; 31367a2631fcSmrg *.* ) 31377a2631fcSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 31387a2631fcSmrg then :; else 31397a2631fcSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31407a2631fcSmrg fi 31417a2631fcSmrg # We set ac_cv_exeext here because the later test for it is not 31427a2631fcSmrg # safe: cross compilers may not add the suffix if given an `-o' 31437a2631fcSmrg # argument, so we may need to know it at that point already. 31447a2631fcSmrg # Even if this section looks crufty: it has the advantage of 31457a2631fcSmrg # actually working. 31467a2631fcSmrg break;; 31477a2631fcSmrg * ) 31487a2631fcSmrg break;; 31497a2631fcSmrg esac 31503e747e6dSmrgdone 31517a2631fcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 31523e747e6dSmrg 31533e747e6dSmrgelse 31547a2631fcSmrg ac_file='' 31553e747e6dSmrgfi 31567a2631fcSmrgif test -z "$ac_file"; then : 31577a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31587a2631fcSmrg$as_echo "no" >&6; } 31597a2631fcSmrg$as_echo "$as_me: failed program was:" >&5 31607a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 31613e747e6dSmrg 31627a2631fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31637a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31647a2631fcSmrgas_fn_error 77 "C compiler cannot create executables 31657a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 31663e747e6dSmrgelse 31677a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31687a2631fcSmrg$as_echo "yes" >&6; } 31693e747e6dSmrgfi 31707a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 31717a2631fcSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 31727a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 31737a2631fcSmrg$as_echo "$ac_file" >&6; } 31747a2631fcSmrgac_exeext=$ac_cv_exeext 31753e747e6dSmrg 31767a2631fcSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 31777a2631fcSmrgac_clean_files=$ac_clean_files_save 31787a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 31797a2631fcSmrg$as_echo_n "checking for suffix of executables... " >&6; } 31807a2631fcSmrgif { { ac_try="$ac_link" 31817a2631fcSmrgcase "(($ac_try" in 31827a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31837a2631fcSmrg *) ac_try_echo=$ac_try;; 31847a2631fcSmrgesac 31857a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31867a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 31877a2631fcSmrg (eval "$ac_link") 2>&5 31887a2631fcSmrg ac_status=$? 31897a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31907a2631fcSmrg test $ac_status = 0; }; then : 31917a2631fcSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 31927a2631fcSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 31937a2631fcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 31947a2631fcSmrg# `rm'. 31957a2631fcSmrgfor ac_file in conftest.exe conftest conftest.*; do 31967a2631fcSmrg test -f "$ac_file" || continue 31977a2631fcSmrg case $ac_file in 31987a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31997a2631fcSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32007a2631fcSmrg break;; 32017a2631fcSmrg * ) break;; 32027a2631fcSmrg esac 32033e747e6dSmrgdone 32043e747e6dSmrgelse 32057a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32067a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32077a2631fcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 32087a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 32093e747e6dSmrgfi 32107a2631fcSmrgrm -f conftest conftest$ac_cv_exeext 32117a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 32127a2631fcSmrg$as_echo "$ac_cv_exeext" >&6; } 32133e747e6dSmrg 32147a2631fcSmrgrm -f conftest.$ac_ext 32157a2631fcSmrgEXEEXT=$ac_cv_exeext 32167a2631fcSmrgac_exeext=$EXEEXT 32177a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 32187a2631fcSmrg/* end confdefs.h. */ 32197a2631fcSmrg#include <stdio.h> 32207a2631fcSmrgint 32217a2631fcSmrgmain () 32227a2631fcSmrg{ 32237a2631fcSmrgFILE *f = fopen ("conftest.out", "w"); 32247a2631fcSmrg return ferror (f) || fclose (f) != 0; 32253e747e6dSmrg 32267a2631fcSmrg ; 32277a2631fcSmrg return 0; 32287a2631fcSmrg} 32297a2631fcSmrg_ACEOF 32307a2631fcSmrgac_clean_files="$ac_clean_files conftest.out" 32317a2631fcSmrg# Check that the compiler produces executables we can run. If not, either 32327a2631fcSmrg# the compiler is broken, or we cross compile. 32337a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32347a2631fcSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 32357a2631fcSmrgif test "$cross_compiling" != yes; then 32367a2631fcSmrg { { ac_try="$ac_link" 32377a2631fcSmrgcase "(($ac_try" in 32387a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32397a2631fcSmrg *) ac_try_echo=$ac_try;; 32407a2631fcSmrgesac 32417a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32427a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 32437a2631fcSmrg (eval "$ac_link") 2>&5 32447a2631fcSmrg ac_status=$? 32457a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32467a2631fcSmrg test $ac_status = 0; } 32477a2631fcSmrg if { ac_try='./conftest$ac_cv_exeext' 32487a2631fcSmrg { { case "(($ac_try" in 32497a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32507a2631fcSmrg *) ac_try_echo=$ac_try;; 32517a2631fcSmrgesac 32527a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32537a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 32547a2631fcSmrg (eval "$ac_try") 2>&5 32557a2631fcSmrg ac_status=$? 32567a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32577a2631fcSmrg test $ac_status = 0; }; }; then 32587a2631fcSmrg cross_compiling=no 32597a2631fcSmrg else 32607a2631fcSmrg if test "$cross_compiling" = maybe; then 32617a2631fcSmrg cross_compiling=yes 32627a2631fcSmrg else 32637a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32647a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32657a2631fcSmrgas_fn_error $? "cannot run C compiled programs. 32667a2631fcSmrgIf you meant to cross compile, use \`--host'. 32677a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 32687a2631fcSmrg fi 32693e747e6dSmrg fi 32703e747e6dSmrgfi 32717a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32727a2631fcSmrg$as_echo "$cross_compiling" >&6; } 32737a2631fcSmrg 32747a2631fcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 32757a2631fcSmrgac_clean_files=$ac_clean_files_save 32767a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32777a2631fcSmrg$as_echo_n "checking for suffix of object files... " >&6; } 32787a2631fcSmrgif ${ac_cv_objext+:} false; then : 32797a2631fcSmrg $as_echo_n "(cached) " >&6 32803e747e6dSmrgelse 32817a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32827a2631fcSmrg/* end confdefs.h. */ 32837a2631fcSmrg 32847a2631fcSmrgint 32857a2631fcSmrgmain () 32867a2631fcSmrg{ 32877a2631fcSmrg 32887a2631fcSmrg ; 32897a2631fcSmrg return 0; 32907a2631fcSmrg} 32917a2631fcSmrg_ACEOF 32927a2631fcSmrgrm -f conftest.o conftest.obj 32937a2631fcSmrgif { { ac_try="$ac_compile" 32947a2631fcSmrgcase "(($ac_try" in 32957a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32967a2631fcSmrg *) ac_try_echo=$ac_try;; 32977a2631fcSmrgesac 32987a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32997a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 33007a2631fcSmrg (eval "$ac_compile") 2>&5 33017a2631fcSmrg ac_status=$? 33027a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33037a2631fcSmrg test $ac_status = 0; }; then : 33047a2631fcSmrg for ac_file in conftest.o conftest.obj conftest.*; do 33057a2631fcSmrg test -f "$ac_file" || continue; 33067a2631fcSmrg case $ac_file in 33077a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33087a2631fcSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33097a2631fcSmrg break;; 33107a2631fcSmrg esac 33113e747e6dSmrgdone 33127a2631fcSmrgelse 33137a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 33147a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 33153e747e6dSmrg 33167a2631fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33177a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33187a2631fcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 33197a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 33203e747e6dSmrgfi 33217a2631fcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 33223e747e6dSmrgfi 33237a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 33247a2631fcSmrg$as_echo "$ac_cv_objext" >&6; } 33257a2631fcSmrgOBJEXT=$ac_cv_objext 33267a2631fcSmrgac_objext=$OBJEXT 33277a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 33287a2631fcSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 33297a2631fcSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 33307a2631fcSmrg $as_echo_n "(cached) " >&6 33313e747e6dSmrgelse 33327a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33337a2631fcSmrg/* end confdefs.h. */ 33343e747e6dSmrg 33357a2631fcSmrgint 33367a2631fcSmrgmain () 33377a2631fcSmrg{ 33387a2631fcSmrg#ifndef __GNUC__ 33397a2631fcSmrg choke me 33407a2631fcSmrg#endif 33413e747e6dSmrg 33427a2631fcSmrg ; 33437a2631fcSmrg return 0; 33447a2631fcSmrg} 33457a2631fcSmrg_ACEOF 33467a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 33477a2631fcSmrg ac_compiler_gnu=yes 33483e747e6dSmrgelse 33497a2631fcSmrg ac_compiler_gnu=no 33503e747e6dSmrgfi 33517a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33527a2631fcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33537a2631fcSmrg 33543e747e6dSmrgfi 33557a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33567a2631fcSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 33577a2631fcSmrgif test $ac_compiler_gnu = yes; then 33587a2631fcSmrg GCC=yes 33593e747e6dSmrgelse 33607a2631fcSmrg GCC= 33613e747e6dSmrgfi 33627a2631fcSmrgac_test_CFLAGS=${CFLAGS+set} 33637a2631fcSmrgac_save_CFLAGS=$CFLAGS 33647a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33657a2631fcSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 33667a2631fcSmrgif ${ac_cv_prog_cc_g+:} false; then : 33677a2631fcSmrg $as_echo_n "(cached) " >&6 33687a2631fcSmrgelse 33697a2631fcSmrg ac_save_c_werror_flag=$ac_c_werror_flag 33707a2631fcSmrg ac_c_werror_flag=yes 33717a2631fcSmrg ac_cv_prog_cc_g=no 33727a2631fcSmrg CFLAGS="-g" 33737a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33747a2631fcSmrg/* end confdefs.h. */ 33753e747e6dSmrg 33767a2631fcSmrgint 33777a2631fcSmrgmain () 33787a2631fcSmrg{ 33793e747e6dSmrg 33807a2631fcSmrg ; 33817a2631fcSmrg return 0; 33827a2631fcSmrg} 33837a2631fcSmrg_ACEOF 33847a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 33857a2631fcSmrg ac_cv_prog_cc_g=yes 33863e747e6dSmrgelse 33877a2631fcSmrg CFLAGS="" 33887a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33897a2631fcSmrg/* end confdefs.h. */ 33907a2631fcSmrg 33917a2631fcSmrgint 33927a2631fcSmrgmain () 33937a2631fcSmrg{ 33947a2631fcSmrg 33957a2631fcSmrg ; 33967a2631fcSmrg return 0; 33977a2631fcSmrg} 33987a2631fcSmrg_ACEOF 33997a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34007a2631fcSmrg 34013e747e6dSmrgelse 34027a2631fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34037a2631fcSmrg CFLAGS="-g" 34047a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34057a2631fcSmrg/* end confdefs.h. */ 34067a2631fcSmrg 34077a2631fcSmrgint 34087a2631fcSmrgmain () 34097a2631fcSmrg{ 34103e747e6dSmrg 34117a2631fcSmrg ; 34127a2631fcSmrg return 0; 34137a2631fcSmrg} 34147a2631fcSmrg_ACEOF 34157a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34167a2631fcSmrg ac_cv_prog_cc_g=yes 34173e747e6dSmrgfi 34187a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34193e747e6dSmrgfi 34207a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34213e747e6dSmrgfi 34227a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34237a2631fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34247a2631fcSmrgfi 34257a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34267a2631fcSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 34277a2631fcSmrgif test "$ac_test_CFLAGS" = set; then 34287a2631fcSmrg CFLAGS=$ac_save_CFLAGS 34297a2631fcSmrgelif test $ac_cv_prog_cc_g = yes; then 34307a2631fcSmrg if test "$GCC" = yes; then 34317a2631fcSmrg CFLAGS="-g -O2" 34323e747e6dSmrg else 34337a2631fcSmrg CFLAGS="-g" 34347a2631fcSmrg fi 34357a2631fcSmrgelse 34367a2631fcSmrg if test "$GCC" = yes; then 34377a2631fcSmrg CFLAGS="-O2" 34387a2631fcSmrg else 34397a2631fcSmrg CFLAGS= 34403e747e6dSmrg fi 34413e747e6dSmrgfi 34427a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34437a2631fcSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34447a2631fcSmrgif ${ac_cv_prog_cc_c89+:} false; then : 34457a2631fcSmrg $as_echo_n "(cached) " >&6 34467a2631fcSmrgelse 34477a2631fcSmrg ac_cv_prog_cc_c89=no 34487a2631fcSmrgac_save_CC=$CC 34497a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34507a2631fcSmrg/* end confdefs.h. */ 34517a2631fcSmrg#include <stdarg.h> 34527a2631fcSmrg#include <stdio.h> 34537a2631fcSmrg#include <sys/types.h> 34547a2631fcSmrg#include <sys/stat.h> 34557a2631fcSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34567a2631fcSmrgstruct buf { int x; }; 34577a2631fcSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 34587a2631fcSmrgstatic char *e (p, i) 34597a2631fcSmrg char **p; 34607a2631fcSmrg int i; 34617a2631fcSmrg{ 34627a2631fcSmrg return p[i]; 34637a2631fcSmrg} 34647a2631fcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 34657a2631fcSmrg{ 34667a2631fcSmrg char *s; 34677a2631fcSmrg va_list v; 34687a2631fcSmrg va_start (v,p); 34697a2631fcSmrg s = g (p, va_arg (v,int)); 34707a2631fcSmrg va_end (v); 34717a2631fcSmrg return s; 34727a2631fcSmrg} 34733e747e6dSmrg 34747a2631fcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34757a2631fcSmrg function prototypes and stuff, but not '\xHH' hex character constants. 34767a2631fcSmrg These don't provoke an error unfortunately, instead are silently treated 34777a2631fcSmrg as 'x'. The following induces an error, until -std is added to get 34787a2631fcSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34797a2631fcSmrg array size at least. It's necessary to write '\x00'==0 to get something 34807a2631fcSmrg that's true only with -std. */ 34817a2631fcSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34823e747e6dSmrg 34837a2631fcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34847a2631fcSmrg inside strings and character constants. */ 34857a2631fcSmrg#define FOO(x) 'x' 34867a2631fcSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34873e747e6dSmrg 34887a2631fcSmrgint test (int i, double x); 34897a2631fcSmrgstruct s1 {int (*f) (int a);}; 34907a2631fcSmrgstruct s2 {int (*f) (double a);}; 34917a2631fcSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34927a2631fcSmrgint argc; 34937a2631fcSmrgchar **argv; 34943e747e6dSmrgint 34953e747e6dSmrgmain () 34963e747e6dSmrg{ 34977a2631fcSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34983e747e6dSmrg ; 34993e747e6dSmrg return 0; 35003e747e6dSmrg} 35013e747e6dSmrg_ACEOF 35027a2631fcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35037a2631fcSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35043e747e6dSmrgdo 35057a2631fcSmrg CC="$ac_save_CC $ac_arg" 35067a2631fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 35077a2631fcSmrg ac_cv_prog_cc_c89=$ac_arg 35087a2631fcSmrgfi 35097a2631fcSmrgrm -f core conftest.err conftest.$ac_objext 35107a2631fcSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35113e747e6dSmrgdone 35127a2631fcSmrgrm -f conftest.$ac_ext 35137a2631fcSmrgCC=$ac_save_CC 35143e747e6dSmrg 35157a2631fcSmrgfi 35167a2631fcSmrg# AC_CACHE_VAL 35177a2631fcSmrgcase "x$ac_cv_prog_cc_c89" in 35187a2631fcSmrg x) 35197a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35207a2631fcSmrg$as_echo "none needed" >&6; } ;; 35217a2631fcSmrg xno) 35227a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35237a2631fcSmrg$as_echo "unsupported" >&6; } ;; 35247a2631fcSmrg *) 35257a2631fcSmrg CC="$CC $ac_cv_prog_cc_c89" 35267a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35277a2631fcSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35283e747e6dSmrgesac 35297a2631fcSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35303e747e6dSmrg 35313e747e6dSmrgfi 35323e747e6dSmrg 35337a2631fcSmrgac_ext=c 35347a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 35357a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35367a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35377a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35387a2631fcSmrg 35397a2631fcSmrgdepcc="$CC" am_compiler_list= 35407a2631fcSmrg 35417a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 35427a2631fcSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 35437a2631fcSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 35447a2631fcSmrg $as_echo_n "(cached) " >&6 35457a2631fcSmrgelse 35467a2631fcSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 35477a2631fcSmrg # We make a subdir and do the tests there. Otherwise we can end up 35487a2631fcSmrg # making bogus files that we don't know about and never remove. For 35497a2631fcSmrg # instance it was reported that on HP-UX the gcc test will end up 35507a2631fcSmrg # making a dummy file named `D' -- because `-MD' means `put the output 35517a2631fcSmrg # in D'. 35527a2631fcSmrg mkdir conftest.dir 35537a2631fcSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 35547a2631fcSmrg # using a relative directory. 35557a2631fcSmrg cp "$am_depcomp" conftest.dir 35567a2631fcSmrg cd conftest.dir 35577a2631fcSmrg # We will build objects and dependencies in a subdirectory because 35587a2631fcSmrg # it helps to detect inapplicable dependency modes. For instance 35597a2631fcSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 35607a2631fcSmrg # side effect of compilation, but ICC will put the dependencies in 35617a2631fcSmrg # the current directory while Tru64 will put them in the object 35627a2631fcSmrg # directory. 35637a2631fcSmrg mkdir sub 35647a2631fcSmrg 35657a2631fcSmrg am_cv_CC_dependencies_compiler_type=none 35667a2631fcSmrg if test "$am_compiler_list" = ""; then 35677a2631fcSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 35687a2631fcSmrg fi 35697a2631fcSmrg am__universal=false 35707a2631fcSmrg case " $depcc " in #( 35717a2631fcSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 35727a2631fcSmrg esac 35737a2631fcSmrg 35747a2631fcSmrg for depmode in $am_compiler_list; do 35757a2631fcSmrg # Setup a source with many dependencies, because some compilers 35767a2631fcSmrg # like to wrap large dependency lists on column 80 (with \), and 35777a2631fcSmrg # we should not choose a depcomp mode which is confused by this. 35787a2631fcSmrg # 35797a2631fcSmrg # We need to recreate these files for each test, as the compiler may 35807a2631fcSmrg # overwrite some of them when testing with obscure command lines. 35817a2631fcSmrg # This happens at least with the AIX C compiler. 35827a2631fcSmrg : > sub/conftest.c 35837a2631fcSmrg for i in 1 2 3 4 5 6; do 35847a2631fcSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 35857a2631fcSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 35867a2631fcSmrg # Solaris 8's {/usr,}/bin/sh. 35877a2631fcSmrg touch sub/conftst$i.h 35887a2631fcSmrg done 35897a2631fcSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 35907a2631fcSmrg 35917a2631fcSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 35927a2631fcSmrg # mode. It turns out that the SunPro C++ compiler does not properly 35937a2631fcSmrg # handle `-M -o', and we need to detect this. Also, some Intel 35947a2631fcSmrg # versions had trouble with output in subdirs 35957a2631fcSmrg am__obj=sub/conftest.${OBJEXT-o} 35967a2631fcSmrg am__minus_obj="-o $am__obj" 35977a2631fcSmrg case $depmode in 35987a2631fcSmrg gcc) 35997a2631fcSmrg # This depmode causes a compiler race in universal mode. 36007a2631fcSmrg test "$am__universal" = false || continue 36017a2631fcSmrg ;; 36027a2631fcSmrg nosideeffect) 36037a2631fcSmrg # after this tag, mechanisms are not by side-effect, so they'll 36047a2631fcSmrg # only be used when explicitly requested 36057a2631fcSmrg if test "x$enable_dependency_tracking" = xyes; then 36067a2631fcSmrg continue 36077a2631fcSmrg else 36087a2631fcSmrg break 36097a2631fcSmrg fi 36107a2631fcSmrg ;; 36117a2631fcSmrg msvisualcpp | msvcmsys) 36127a2631fcSmrg # This compiler won't grok `-c -o', but also, the minuso test has 36137a2631fcSmrg # not run yet. These depmodes are late enough in the game, and 36147a2631fcSmrg # so weak that their functioning should not be impacted. 36157a2631fcSmrg am__obj=conftest.${OBJEXT-o} 36167a2631fcSmrg am__minus_obj= 36177a2631fcSmrg ;; 36187a2631fcSmrg none) break ;; 36197a2631fcSmrg esac 36207a2631fcSmrg if depmode=$depmode \ 36217a2631fcSmrg source=sub/conftest.c object=$am__obj \ 36227a2631fcSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 36237a2631fcSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 36247a2631fcSmrg >/dev/null 2>conftest.err && 36257a2631fcSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 36267a2631fcSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 36277a2631fcSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 36287a2631fcSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 36297a2631fcSmrg # icc doesn't choke on unknown options, it will just issue warnings 36307a2631fcSmrg # or remarks (even with -Werror). So we grep stderr for any message 36317a2631fcSmrg # that says an option was ignored or not supported. 36327a2631fcSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 36337a2631fcSmrg # icc: Command line warning: ignoring option '-M'; no argument required 36347a2631fcSmrg # The diagnosis changed in icc 8.0: 36357a2631fcSmrg # icc: Command line remark: option '-MP' not supported 36367a2631fcSmrg if (grep 'ignoring option' conftest.err || 36377a2631fcSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 36387a2631fcSmrg am_cv_CC_dependencies_compiler_type=$depmode 36397a2631fcSmrg break 36407a2631fcSmrg fi 36417a2631fcSmrg fi 36427a2631fcSmrg done 36433e747e6dSmrg 36447a2631fcSmrg cd .. 36457a2631fcSmrg rm -rf conftest.dir 36467a2631fcSmrgelse 36477a2631fcSmrg am_cv_CC_dependencies_compiler_type=none 36483e747e6dSmrgfi 36493e747e6dSmrg 36503e747e6dSmrgfi 36517a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 36527a2631fcSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 36537a2631fcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 36543e747e6dSmrg 36557a2631fcSmrg if 36567a2631fcSmrg test "x$enable_dependency_tracking" != xno \ 36577a2631fcSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 36587a2631fcSmrg am__fastdepCC_TRUE= 36597a2631fcSmrg am__fastdepCC_FALSE='#' 36603e747e6dSmrgelse 36617a2631fcSmrg am__fastdepCC_TRUE='#' 36627a2631fcSmrg am__fastdepCC_FALSE= 36633e747e6dSmrgfi 36643e747e6dSmrg 36653e747e6dSmrg 36667a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 36677a2631fcSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 36687a2631fcSmrgif ${ac_cv_prog_cc_c99+:} false; then : 36697a2631fcSmrg $as_echo_n "(cached) " >&6 36703e747e6dSmrgelse 36717a2631fcSmrg ac_cv_prog_cc_c99=no 36727a2631fcSmrgac_save_CC=$CC 36737a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 36743e747e6dSmrg/* end confdefs.h. */ 36757a2631fcSmrg#include <stdarg.h> 36767a2631fcSmrg#include <stdbool.h> 36777a2631fcSmrg#include <stdlib.h> 36787a2631fcSmrg#include <wchar.h> 36797a2631fcSmrg#include <stdio.h> 36807a2631fcSmrg 36817a2631fcSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 36827a2631fcSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 36837a2631fcSmrg#define showlist(...) puts (#__VA_ARGS__) 36847a2631fcSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 36857a2631fcSmrgstatic void 36867a2631fcSmrgtest_varargs_macros (void) 36877a2631fcSmrg{ 36887a2631fcSmrg int x = 1234; 36897a2631fcSmrg int y = 5678; 36907a2631fcSmrg debug ("Flag"); 36917a2631fcSmrg debug ("X = %d\n", x); 36927a2631fcSmrg showlist (The first, second, and third items.); 36937a2631fcSmrg report (x>y, "x is %d but y is %d", x, y); 36947a2631fcSmrg} 36957a2631fcSmrg 36967a2631fcSmrg// Check long long types. 36977a2631fcSmrg#define BIG64 18446744073709551615ull 36987a2631fcSmrg#define BIG32 4294967295ul 36997a2631fcSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 37007a2631fcSmrg#if !BIG_OK 37017a2631fcSmrg your preprocessor is broken; 37027a2631fcSmrg#endif 37037a2631fcSmrg#if BIG_OK 37047a2631fcSmrg#else 37057a2631fcSmrg your preprocessor is broken; 37067a2631fcSmrg#endif 37077a2631fcSmrgstatic long long int bignum = -9223372036854775807LL; 37087a2631fcSmrgstatic unsigned long long int ubignum = BIG64; 37097a2631fcSmrg 37107a2631fcSmrgstruct incomplete_array 37117a2631fcSmrg{ 37127a2631fcSmrg int datasize; 37137a2631fcSmrg double data[]; 37147a2631fcSmrg}; 37157a2631fcSmrg 37167a2631fcSmrgstruct named_init { 37177a2631fcSmrg int number; 37187a2631fcSmrg const wchar_t *name; 37197a2631fcSmrg double average; 37207a2631fcSmrg}; 37217a2631fcSmrg 37227a2631fcSmrgtypedef const char *ccp; 37237a2631fcSmrg 37247a2631fcSmrgstatic inline int 37257a2631fcSmrgtest_restrict (ccp restrict text) 37267a2631fcSmrg{ 37277a2631fcSmrg // See if C++-style comments work. 37287a2631fcSmrg // Iterate through items via the restricted pointer. 37297a2631fcSmrg // Also check for declarations in for loops. 37307a2631fcSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 37317a2631fcSmrg continue; 37327a2631fcSmrg return 0; 37337a2631fcSmrg} 37347a2631fcSmrg 37357a2631fcSmrg// Check varargs and va_copy. 37367a2631fcSmrgstatic void 37377a2631fcSmrgtest_varargs (const char *format, ...) 37387a2631fcSmrg{ 37397a2631fcSmrg va_list args; 37407a2631fcSmrg va_start (args, format); 37417a2631fcSmrg va_list args_copy; 37427a2631fcSmrg va_copy (args_copy, args); 37437a2631fcSmrg 37447a2631fcSmrg const char *str; 37457a2631fcSmrg int number; 37467a2631fcSmrg float fnumber; 37477a2631fcSmrg 37487a2631fcSmrg while (*format) 37497a2631fcSmrg { 37507a2631fcSmrg switch (*format++) 37517a2631fcSmrg { 37527a2631fcSmrg case 's': // string 37537a2631fcSmrg str = va_arg (args_copy, const char *); 37547a2631fcSmrg break; 37557a2631fcSmrg case 'd': // int 37567a2631fcSmrg number = va_arg (args_copy, int); 37577a2631fcSmrg break; 37587a2631fcSmrg case 'f': // float 37597a2631fcSmrg fnumber = va_arg (args_copy, double); 37607a2631fcSmrg break; 37617a2631fcSmrg default: 37627a2631fcSmrg break; 37637a2631fcSmrg } 37647a2631fcSmrg } 37657a2631fcSmrg va_end (args_copy); 37667a2631fcSmrg va_end (args); 37677a2631fcSmrg} 37683e747e6dSmrg 37693e747e6dSmrgint 37703e747e6dSmrgmain () 37713e747e6dSmrg{ 37723e747e6dSmrg 37737a2631fcSmrg // Check bool. 37747a2631fcSmrg _Bool success = false; 37757a2631fcSmrg 37767a2631fcSmrg // Check restrict. 37777a2631fcSmrg if (test_restrict ("String literal") == 0) 37787a2631fcSmrg success = true; 37797a2631fcSmrg char *restrict newvar = "Another string"; 37807a2631fcSmrg 37817a2631fcSmrg // Check varargs. 37827a2631fcSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 37837a2631fcSmrg test_varargs_macros (); 37847a2631fcSmrg 37857a2631fcSmrg // Check flexible array members. 37867a2631fcSmrg struct incomplete_array *ia = 37877a2631fcSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 37887a2631fcSmrg ia->datasize = 10; 37897a2631fcSmrg for (int i = 0; i < ia->datasize; ++i) 37907a2631fcSmrg ia->data[i] = i * 1.234; 37917a2631fcSmrg 37927a2631fcSmrg // Check named initializers. 37937a2631fcSmrg struct named_init ni = { 37947a2631fcSmrg .number = 34, 37957a2631fcSmrg .name = L"Test wide string", 37967a2631fcSmrg .average = 543.34343, 37977a2631fcSmrg }; 37987a2631fcSmrg 37997a2631fcSmrg ni.number = 58; 38007a2631fcSmrg 38017a2631fcSmrg int dynamic_array[ni.number]; 38027a2631fcSmrg dynamic_array[ni.number - 1] = 543; 38037a2631fcSmrg 38047a2631fcSmrg // work around unused variable warnings 38057a2631fcSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 38067a2631fcSmrg || dynamic_array[ni.number - 1] != 543); 38077a2631fcSmrg 38083e747e6dSmrg ; 38093e747e6dSmrg return 0; 38103e747e6dSmrg} 38113e747e6dSmrg_ACEOF 38127a2631fcSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 38137a2631fcSmrgdo 38147a2631fcSmrg CC="$ac_save_CC $ac_arg" 38157a2631fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 38167a2631fcSmrg ac_cv_prog_cc_c99=$ac_arg 38177a2631fcSmrgfi 38187a2631fcSmrgrm -f core conftest.err conftest.$ac_objext 38197a2631fcSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 38203e747e6dSmrgdone 38217a2631fcSmrgrm -f conftest.$ac_ext 38227a2631fcSmrgCC=$ac_save_CC 38233e747e6dSmrg 38243e747e6dSmrgfi 38257a2631fcSmrg# AC_CACHE_VAL 38267a2631fcSmrgcase "x$ac_cv_prog_cc_c99" in 38277a2631fcSmrg x) 38287a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 38297a2631fcSmrg$as_echo "none needed" >&6; } ;; 38307a2631fcSmrg xno) 38317a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 38327a2631fcSmrg$as_echo "unsupported" >&6; } ;; 38337a2631fcSmrg *) 38347a2631fcSmrg CC="$CC $ac_cv_prog_cc_c99" 38357a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 38367a2631fcSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 38377a2631fcSmrgesac 38387a2631fcSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 38393e747e6dSmrg 38403e747e6dSmrgfi 38417a2631fcSmrg 38427a2631fcSmrg 38437a2631fcSmrg 38447a2631fcSmrgac_ext=c 38457a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 38467a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 38477a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 38487a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 38497a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 38507a2631fcSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 38517a2631fcSmrg# On Suns, sometimes $CPP names a directory. 38527a2631fcSmrgif test -n "$CPP" && test -d "$CPP"; then 38537a2631fcSmrg CPP= 38547a2631fcSmrgfi 38557a2631fcSmrgif test -z "$CPP"; then 38567a2631fcSmrg if ${ac_cv_prog_CPP+:} false; then : 38577a2631fcSmrg $as_echo_n "(cached) " >&6 38583e747e6dSmrgelse 38597a2631fcSmrg # Double quotes because CPP needs to be expanded 38607a2631fcSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 38617a2631fcSmrg do 38627a2631fcSmrg ac_preproc_ok=false 38637a2631fcSmrgfor ac_c_preproc_warn_flag in '' yes 38647a2631fcSmrgdo 38657a2631fcSmrg # Use a header file that comes with gcc, so configuring glibc 38667a2631fcSmrg # with a fresh cross-compiler works. 38677a2631fcSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 38687a2631fcSmrg # <limits.h> exists even on freestanding compilers. 38697a2631fcSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 38707a2631fcSmrg # not just through cpp. "Syntax error" is here to catch this case. 38717a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38727a2631fcSmrg/* end confdefs.h. */ 38737a2631fcSmrg#ifdef __STDC__ 38747a2631fcSmrg# include <limits.h> 38757a2631fcSmrg#else 38767a2631fcSmrg# include <assert.h> 38777a2631fcSmrg#endif 38787a2631fcSmrg Syntax error 38793e747e6dSmrg_ACEOF 38807a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 38817a2631fcSmrg 38827a2631fcSmrgelse 38837a2631fcSmrg # Broken: fails on valid input. 38847a2631fcSmrgcontinue 38857a2631fcSmrgfi 38867a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 38877a2631fcSmrg 38887a2631fcSmrg # OK, works on sane cases. Now check whether nonexistent headers 38897a2631fcSmrg # can be detected and how. 38907a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38913e747e6dSmrg/* end confdefs.h. */ 38927a2631fcSmrg#include <ac_nonexistent.h> 38937a2631fcSmrg_ACEOF 38947a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 38957a2631fcSmrg # Broken: success on invalid input. 38967a2631fcSmrgcontinue 38977a2631fcSmrgelse 38987a2631fcSmrg # Passes both tests. 38997a2631fcSmrgac_preproc_ok=: 39007a2631fcSmrgbreak 39017a2631fcSmrgfi 39027a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39033e747e6dSmrg 39047a2631fcSmrgdone 39057a2631fcSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 39067a2631fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 39077a2631fcSmrgif $ac_preproc_ok; then : 39087a2631fcSmrg break 39097a2631fcSmrgfi 39107a2631fcSmrg 39117a2631fcSmrg done 39127a2631fcSmrg ac_cv_prog_CPP=$CPP 39137a2631fcSmrg 39147a2631fcSmrgfi 39157a2631fcSmrg CPP=$ac_cv_prog_CPP 39167a2631fcSmrgelse 39177a2631fcSmrg ac_cv_prog_CPP=$CPP 39187a2631fcSmrgfi 39197a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 39207a2631fcSmrg$as_echo "$CPP" >&6; } 39217a2631fcSmrgac_preproc_ok=false 39227a2631fcSmrgfor ac_c_preproc_warn_flag in '' yes 39237a2631fcSmrgdo 39247a2631fcSmrg # Use a header file that comes with gcc, so configuring glibc 39257a2631fcSmrg # with a fresh cross-compiler works. 39267a2631fcSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 39277a2631fcSmrg # <limits.h> exists even on freestanding compilers. 39287a2631fcSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 39297a2631fcSmrg # not just through cpp. "Syntax error" is here to catch this case. 39307a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39317a2631fcSmrg/* end confdefs.h. */ 39327a2631fcSmrg#ifdef __STDC__ 39337a2631fcSmrg# include <limits.h> 39347a2631fcSmrg#else 39357a2631fcSmrg# include <assert.h> 39363e747e6dSmrg#endif 39377a2631fcSmrg Syntax error 39387a2631fcSmrg_ACEOF 39397a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39403e747e6dSmrg 39417a2631fcSmrgelse 39427a2631fcSmrg # Broken: fails on valid input. 39437a2631fcSmrgcontinue 39447a2631fcSmrgfi 39457a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39467a2631fcSmrg 39477a2631fcSmrg # OK, works on sane cases. Now check whether nonexistent headers 39487a2631fcSmrg # can be detected and how. 39497a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39507a2631fcSmrg/* end confdefs.h. */ 39517a2631fcSmrg#include <ac_nonexistent.h> 39523e747e6dSmrg_ACEOF 39537a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39547a2631fcSmrg # Broken: success on invalid input. 39557a2631fcSmrgcontinue 39567a2631fcSmrgelse 39577a2631fcSmrg # Passes both tests. 39587a2631fcSmrgac_preproc_ok=: 39597a2631fcSmrgbreak 39607a2631fcSmrgfi 39617a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39627a2631fcSmrg 39637a2631fcSmrgdone 39647a2631fcSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 39657a2631fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 39667a2631fcSmrgif $ac_preproc_ok; then : 39677a2631fcSmrg 39687a2631fcSmrgelse 39697a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39707a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39717a2631fcSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 39727a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 39737a2631fcSmrgfi 39747a2631fcSmrg 39757a2631fcSmrgac_ext=c 39767a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 39777a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 39787a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 39797a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 39807a2631fcSmrg 39817a2631fcSmrg 39827a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 39837a2631fcSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 39847a2631fcSmrgif ${ac_cv_path_GREP+:} false; then : 39857a2631fcSmrg $as_echo_n "(cached) " >&6 39867a2631fcSmrgelse 39877a2631fcSmrg if test -z "$GREP"; then 39887a2631fcSmrg ac_path_GREP_found=false 39897a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 39907a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39917a2631fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 39927a2631fcSmrgdo 39937a2631fcSmrg IFS=$as_save_IFS 39947a2631fcSmrg test -z "$as_dir" && as_dir=. 39957a2631fcSmrg for ac_prog in grep ggrep; do 39967a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 39977a2631fcSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 39987a2631fcSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 39997a2631fcSmrg# Check for GNU ac_path_GREP and select it if it is found. 40007a2631fcSmrg # Check for GNU $ac_path_GREP 40017a2631fcSmrgcase `"$ac_path_GREP" --version 2>&1` in 40027a2631fcSmrg*GNU*) 40037a2631fcSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 40047a2631fcSmrg*) 40057a2631fcSmrg ac_count=0 40067a2631fcSmrg $as_echo_n 0123456789 >"conftest.in" 40077a2631fcSmrg while : 40087a2631fcSmrg do 40097a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40107a2631fcSmrg mv "conftest.tmp" "conftest.in" 40117a2631fcSmrg cp "conftest.in" "conftest.nl" 40127a2631fcSmrg $as_echo 'GREP' >> "conftest.nl" 40137a2631fcSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40147a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40157a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 40167a2631fcSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 40177a2631fcSmrg # Best one so far, save it but keep looking for a better one 40187a2631fcSmrg ac_cv_path_GREP="$ac_path_GREP" 40197a2631fcSmrg ac_path_GREP_max=$ac_count 40207a2631fcSmrg fi 40217a2631fcSmrg # 10*(2^10) chars as input seems more than enough 40227a2631fcSmrg test $ac_count -gt 10 && break 40237a2631fcSmrg done 40247a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40253e747e6dSmrgesac 40267a2631fcSmrg 40277a2631fcSmrg $ac_path_GREP_found && break 3 40287a2631fcSmrg done 40297a2631fcSmrg done 40307a2631fcSmrg done 40317a2631fcSmrgIFS=$as_save_IFS 40327a2631fcSmrg if test -z "$ac_cv_path_GREP"; then 40337a2631fcSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 40347a2631fcSmrg fi 40353e747e6dSmrgelse 40367a2631fcSmrg ac_cv_path_GREP=$GREP 40377a2631fcSmrgfi 40383e747e6dSmrg 40393e747e6dSmrgfi 40407a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 40417a2631fcSmrg$as_echo "$ac_cv_path_GREP" >&6; } 40427a2631fcSmrg GREP="$ac_cv_path_GREP" 40433e747e6dSmrg 40443e747e6dSmrg 40457a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 40467a2631fcSmrg$as_echo_n "checking for egrep... " >&6; } 40477a2631fcSmrgif ${ac_cv_path_EGREP+:} false; then : 40487a2631fcSmrg $as_echo_n "(cached) " >&6 40497a2631fcSmrgelse 40507a2631fcSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 40517a2631fcSmrg then ac_cv_path_EGREP="$GREP -E" 40527a2631fcSmrg else 40537a2631fcSmrg if test -z "$EGREP"; then 40547a2631fcSmrg ac_path_EGREP_found=false 40557a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40567a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40577a2631fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40587a2631fcSmrgdo 40597a2631fcSmrg IFS=$as_save_IFS 40607a2631fcSmrg test -z "$as_dir" && as_dir=. 40617a2631fcSmrg for ac_prog in egrep; do 40627a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40637a2631fcSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 40647a2631fcSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 40657a2631fcSmrg# Check for GNU ac_path_EGREP and select it if it is found. 40667a2631fcSmrg # Check for GNU $ac_path_EGREP 40677a2631fcSmrgcase `"$ac_path_EGREP" --version 2>&1` in 40687a2631fcSmrg*GNU*) 40697a2631fcSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 40707a2631fcSmrg*) 40717a2631fcSmrg ac_count=0 40727a2631fcSmrg $as_echo_n 0123456789 >"conftest.in" 40737a2631fcSmrg while : 40747a2631fcSmrg do 40757a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40767a2631fcSmrg mv "conftest.tmp" "conftest.in" 40777a2631fcSmrg cp "conftest.in" "conftest.nl" 40787a2631fcSmrg $as_echo 'EGREP' >> "conftest.nl" 40797a2631fcSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40807a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40817a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 40827a2631fcSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 40837a2631fcSmrg # Best one so far, save it but keep looking for a better one 40847a2631fcSmrg ac_cv_path_EGREP="$ac_path_EGREP" 40857a2631fcSmrg ac_path_EGREP_max=$ac_count 40867a2631fcSmrg fi 40877a2631fcSmrg # 10*(2^10) chars as input seems more than enough 40887a2631fcSmrg test $ac_count -gt 10 && break 40897a2631fcSmrg done 40907a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40917a2631fcSmrgesac 40927a2631fcSmrg 40937a2631fcSmrg $ac_path_EGREP_found && break 3 40947a2631fcSmrg done 40957a2631fcSmrg done 40967a2631fcSmrg done 40977a2631fcSmrgIFS=$as_save_IFS 40987a2631fcSmrg if test -z "$ac_cv_path_EGREP"; then 40997a2631fcSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 41007a2631fcSmrg fi 41017a2631fcSmrgelse 41027a2631fcSmrg ac_cv_path_EGREP=$EGREP 41037a2631fcSmrgfi 41047a2631fcSmrg 41057a2631fcSmrg fi 41063e747e6dSmrgfi 41077a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 41087a2631fcSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 41097a2631fcSmrg EGREP="$ac_cv_path_EGREP" 41107a2631fcSmrg 41117a2631fcSmrg 41127a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41137a2631fcSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 41147a2631fcSmrgif ${ac_cv_header_stdc+:} false; then : 41157a2631fcSmrg $as_echo_n "(cached) " >&6 41163e747e6dSmrgelse 41177a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41183e747e6dSmrg/* end confdefs.h. */ 41197a2631fcSmrg#include <stdlib.h> 41207a2631fcSmrg#include <stdarg.h> 41217a2631fcSmrg#include <string.h> 41227a2631fcSmrg#include <float.h> 41233e747e6dSmrg 41243e747e6dSmrgint 41253e747e6dSmrgmain () 41263e747e6dSmrg{ 41273e747e6dSmrg 41283e747e6dSmrg ; 41293e747e6dSmrg return 0; 41303e747e6dSmrg} 41313e747e6dSmrg_ACEOF 41327a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 41337a2631fcSmrg ac_cv_header_stdc=yes 41343e747e6dSmrgelse 41357a2631fcSmrg ac_cv_header_stdc=no 41367a2631fcSmrgfi 41377a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41387a2631fcSmrg 41397a2631fcSmrgif test $ac_cv_header_stdc = yes; then 41407a2631fcSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41417a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41427a2631fcSmrg/* end confdefs.h. */ 41437a2631fcSmrg#include <string.h> 41447a2631fcSmrg 41457a2631fcSmrg_ACEOF 41467a2631fcSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41477a2631fcSmrg $EGREP "memchr" >/dev/null 2>&1; then : 41487a2631fcSmrg 41497a2631fcSmrgelse 41507a2631fcSmrg ac_cv_header_stdc=no 41517a2631fcSmrgfi 41527a2631fcSmrgrm -f conftest* 41533e747e6dSmrg 41547a2631fcSmrgfi 41553e747e6dSmrg 41567a2631fcSmrgif test $ac_cv_header_stdc = yes; then 41577a2631fcSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41587a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41597a2631fcSmrg/* end confdefs.h. */ 41607a2631fcSmrg#include <stdlib.h> 41613e747e6dSmrg 41623e747e6dSmrg_ACEOF 41637a2631fcSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41647a2631fcSmrg $EGREP "free" >/dev/null 2>&1; then : 41657a2631fcSmrg 41663e747e6dSmrgelse 41677a2631fcSmrg ac_cv_header_stdc=no 41687a2631fcSmrgfi 41697a2631fcSmrgrm -f conftest* 41703e747e6dSmrg 41717a2631fcSmrgfi 41727a2631fcSmrg 41737a2631fcSmrgif test $ac_cv_header_stdc = yes; then 41747a2631fcSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41757a2631fcSmrg if test "$cross_compiling" = yes; then : 41767a2631fcSmrg : 41777a2631fcSmrgelse 41787a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41793e747e6dSmrg/* end confdefs.h. */ 41807a2631fcSmrg#include <ctype.h> 41817a2631fcSmrg#include <stdlib.h> 41827a2631fcSmrg#if ((' ' & 0x0FF) == 0x020) 41837a2631fcSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41847a2631fcSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41857a2631fcSmrg#else 41867a2631fcSmrg# define ISLOWER(c) \ 41877a2631fcSmrg (('a' <= (c) && (c) <= 'i') \ 41887a2631fcSmrg || ('j' <= (c) && (c) <= 'r') \ 41897a2631fcSmrg || ('s' <= (c) && (c) <= 'z')) 41907a2631fcSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41917a2631fcSmrg#endif 41923e747e6dSmrg 41937a2631fcSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41943e747e6dSmrgint 41953e747e6dSmrgmain () 41963e747e6dSmrg{ 41977a2631fcSmrg int i; 41987a2631fcSmrg for (i = 0; i < 256; i++) 41997a2631fcSmrg if (XOR (islower (i), ISLOWER (i)) 42007a2631fcSmrg || toupper (i) != TOUPPER (i)) 42017a2631fcSmrg return 2; 42023e747e6dSmrg return 0; 42033e747e6dSmrg} 42043e747e6dSmrg_ACEOF 42057a2631fcSmrgif ac_fn_c_try_run "$LINENO"; then : 42067a2631fcSmrg 42073e747e6dSmrgelse 42087a2631fcSmrg ac_cv_header_stdc=no 42097a2631fcSmrgfi 42107a2631fcSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42117a2631fcSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 42127a2631fcSmrgfi 42137a2631fcSmrg 42147a2631fcSmrgfi 42157a2631fcSmrgfi 42167a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 42177a2631fcSmrg$as_echo "$ac_cv_header_stdc" >&6; } 42187a2631fcSmrgif test $ac_cv_header_stdc = yes; then 42193e747e6dSmrg 42207a2631fcSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 42213e747e6dSmrg 42223e747e6dSmrgfi 42233e747e6dSmrg 42247a2631fcSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 42257a2631fcSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 42267a2631fcSmrg inttypes.h stdint.h unistd.h 42277a2631fcSmrgdo : 42287a2631fcSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 42297a2631fcSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 42307a2631fcSmrg" 42317a2631fcSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 42327a2631fcSmrg cat >>confdefs.h <<_ACEOF 42337a2631fcSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 42347a2631fcSmrg_ACEOF 42357a2631fcSmrg 42363e747e6dSmrgfi 42373e747e6dSmrg 42387a2631fcSmrgdone 42397a2631fcSmrg 42407a2631fcSmrg 42417a2631fcSmrg 42427a2631fcSmrg 42437a2631fcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 42447a2631fcSmrg if test -n "$ac_tool_prefix"; then 42457a2631fcSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 42467a2631fcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 42477a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42487a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 42497a2631fcSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 42507a2631fcSmrg $as_echo_n "(cached) " >&6 42517a2631fcSmrgelse 42527a2631fcSmrg case $PKG_CONFIG in 42537a2631fcSmrg [\\/]* | ?:[\\/]*) 42547a2631fcSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 42557a2631fcSmrg ;; 42567a2631fcSmrg *) 42577a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42587a2631fcSmrgfor as_dir in $PATH 42597a2631fcSmrgdo 42607a2631fcSmrg IFS=$as_save_IFS 42617a2631fcSmrg test -z "$as_dir" && as_dir=. 42627a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42637a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 42647a2631fcSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 42657a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42667a2631fcSmrg break 2 42677a2631fcSmrg fi 42687a2631fcSmrgdone 42697a2631fcSmrg done 42707a2631fcSmrgIFS=$as_save_IFS 42717a2631fcSmrg 42727a2631fcSmrg ;; 42737a2631fcSmrgesac 42747a2631fcSmrgfi 42757a2631fcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 42767a2631fcSmrgif test -n "$PKG_CONFIG"; then 42777a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 42787a2631fcSmrg$as_echo "$PKG_CONFIG" >&6; } 42797a2631fcSmrgelse 42807a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42817a2631fcSmrg$as_echo "no" >&6; } 42823e747e6dSmrgfi 42833e747e6dSmrg 42847a2631fcSmrg 42853e747e6dSmrgfi 42867a2631fcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 42877a2631fcSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 42887a2631fcSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 42897a2631fcSmrgset dummy pkg-config; ac_word=$2 42907a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42917a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 42927a2631fcSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 42937a2631fcSmrg $as_echo_n "(cached) " >&6 42947a2631fcSmrgelse 42957a2631fcSmrg case $ac_pt_PKG_CONFIG in 42967a2631fcSmrg [\\/]* | ?:[\\/]*) 42977a2631fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 42987a2631fcSmrg ;; 42997a2631fcSmrg *) 43007a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43017a2631fcSmrgfor as_dir in $PATH 43027a2631fcSmrgdo 43037a2631fcSmrg IFS=$as_save_IFS 43047a2631fcSmrg test -z "$as_dir" && as_dir=. 43057a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 43067a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 43077a2631fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 43087a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43097a2631fcSmrg break 2 43103e747e6dSmrg fi 43117a2631fcSmrgdone 43127a2631fcSmrg done 43137a2631fcSmrgIFS=$as_save_IFS 43147a2631fcSmrg 43157a2631fcSmrg ;; 43167a2631fcSmrgesac 43177a2631fcSmrgfi 43187a2631fcSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 43197a2631fcSmrgif test -n "$ac_pt_PKG_CONFIG"; then 43207a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 43217a2631fcSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 43223e747e6dSmrgelse 43237a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43247a2631fcSmrg$as_echo "no" >&6; } 43257a2631fcSmrgfi 43267a2631fcSmrg 43277a2631fcSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 43287a2631fcSmrg PKG_CONFIG="" 43293e747e6dSmrg else 43307a2631fcSmrg case $cross_compiling:$ac_tool_warned in 43317a2631fcSmrgyes:) 43327a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43337a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43347a2631fcSmrgac_tool_warned=yes ;; 43357a2631fcSmrgesac 43367a2631fcSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 43373e747e6dSmrg fi 43383e747e6dSmrgelse 43397a2631fcSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 43407a2631fcSmrgfi 43413e747e6dSmrg 43427a2631fcSmrgfi 43437a2631fcSmrgif test -n "$PKG_CONFIG"; then 43447a2631fcSmrg _pkg_min_version=0.9.0 43457a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 43467a2631fcSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 43477a2631fcSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 43487a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43497a2631fcSmrg$as_echo "yes" >&6; } 43507a2631fcSmrg else 43517a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43527a2631fcSmrg$as_echo "no" >&6; } 43537a2631fcSmrg PKG_CONFIG="" 43547a2631fcSmrg fi 43553e747e6dSmrg 43567a2631fcSmrgfi 43577a2631fcSmrg# Make sure we can run config.sub. 43587a2631fcSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 43597a2631fcSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 43603e747e6dSmrg 43617a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 43627a2631fcSmrg$as_echo_n "checking build system type... " >&6; } 43637a2631fcSmrgif ${ac_cv_build+:} false; then : 43647a2631fcSmrg $as_echo_n "(cached) " >&6 43657a2631fcSmrgelse 43667a2631fcSmrg ac_build_alias=$build_alias 43677a2631fcSmrgtest "x$ac_build_alias" = x && 43687a2631fcSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 43697a2631fcSmrgtest "x$ac_build_alias" = x && 43707a2631fcSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 43717a2631fcSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 43727a2631fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 43737a2631fcSmrg 43747a2631fcSmrgfi 43757a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 43767a2631fcSmrg$as_echo "$ac_cv_build" >&6; } 43777a2631fcSmrgcase $ac_cv_build in 43787a2631fcSmrg*-*-*) ;; 43797a2631fcSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 43803e747e6dSmrgesac 43817a2631fcSmrgbuild=$ac_cv_build 43827a2631fcSmrgac_save_IFS=$IFS; IFS='-' 43837a2631fcSmrgset x $ac_cv_build 43847a2631fcSmrgshift 43857a2631fcSmrgbuild_cpu=$1 43867a2631fcSmrgbuild_vendor=$2 43877a2631fcSmrgshift; shift 43887a2631fcSmrg# Remember, the first character of IFS is used to create $*, 43897a2631fcSmrg# except with old shells: 43907a2631fcSmrgbuild_os=$* 43917a2631fcSmrgIFS=$ac_save_IFS 43927a2631fcSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 43937a2631fcSmrg 43947a2631fcSmrg 43957a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 43967a2631fcSmrg$as_echo_n "checking host system type... " >&6; } 43977a2631fcSmrgif ${ac_cv_host+:} false; then : 43987a2631fcSmrg $as_echo_n "(cached) " >&6 43993e747e6dSmrgelse 44007a2631fcSmrg if test "x$host_alias" = x; then 44017a2631fcSmrg ac_cv_host=$ac_cv_build 44027a2631fcSmrgelse 44037a2631fcSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 44047a2631fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 44057a2631fcSmrgfi 44067a2631fcSmrg 44077a2631fcSmrgfi 44087a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 44097a2631fcSmrg$as_echo "$ac_cv_host" >&6; } 44107a2631fcSmrgcase $ac_cv_host in 44117a2631fcSmrg*-*-*) ;; 44127a2631fcSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 44137a2631fcSmrgesac 44147a2631fcSmrghost=$ac_cv_host 44157a2631fcSmrgac_save_IFS=$IFS; IFS='-' 44167a2631fcSmrgset x $ac_cv_host 44177a2631fcSmrgshift 44187a2631fcSmrghost_cpu=$1 44197a2631fcSmrghost_vendor=$2 44207a2631fcSmrgshift; shift 44217a2631fcSmrg# Remember, the first character of IFS is used to create $*, 44227a2631fcSmrg# except with old shells: 44237a2631fcSmrghost_os=$* 44247a2631fcSmrgIFS=$ac_save_IFS 44257a2631fcSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 44263e747e6dSmrg 44273e747e6dSmrg 44287a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 44297a2631fcSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 44307a2631fcSmrgif ${ac_cv_path_SED+:} false; then : 44317a2631fcSmrg $as_echo_n "(cached) " >&6 44327a2631fcSmrgelse 44337a2631fcSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 44347a2631fcSmrg for ac_i in 1 2 3 4 5 6 7; do 44357a2631fcSmrg ac_script="$ac_script$as_nl$ac_script" 44367a2631fcSmrg done 44377a2631fcSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 44387a2631fcSmrg { ac_script=; unset ac_script;} 44397a2631fcSmrg if test -z "$SED"; then 44407a2631fcSmrg ac_path_SED_found=false 44417a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 44427a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44437a2631fcSmrgfor as_dir in $PATH 44447a2631fcSmrgdo 44457a2631fcSmrg IFS=$as_save_IFS 44467a2631fcSmrg test -z "$as_dir" && as_dir=. 44477a2631fcSmrg for ac_prog in sed gsed; do 44487a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 44497a2631fcSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 44507a2631fcSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 44517a2631fcSmrg# Check for GNU ac_path_SED and select it if it is found. 44527a2631fcSmrg # Check for GNU $ac_path_SED 44537a2631fcSmrgcase `"$ac_path_SED" --version 2>&1` in 44547a2631fcSmrg*GNU*) 44557a2631fcSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 44567a2631fcSmrg*) 44577a2631fcSmrg ac_count=0 44587a2631fcSmrg $as_echo_n 0123456789 >"conftest.in" 44597a2631fcSmrg while : 44607a2631fcSmrg do 44617a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 44627a2631fcSmrg mv "conftest.tmp" "conftest.in" 44637a2631fcSmrg cp "conftest.in" "conftest.nl" 44647a2631fcSmrg $as_echo '' >> "conftest.nl" 44657a2631fcSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 44667a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 44677a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 44687a2631fcSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 44697a2631fcSmrg # Best one so far, save it but keep looking for a better one 44707a2631fcSmrg ac_cv_path_SED="$ac_path_SED" 44717a2631fcSmrg ac_path_SED_max=$ac_count 44727a2631fcSmrg fi 44737a2631fcSmrg # 10*(2^10) chars as input seems more than enough 44747a2631fcSmrg test $ac_count -gt 10 && break 44757a2631fcSmrg done 44767a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 44777a2631fcSmrgesac 44783e747e6dSmrg 44797a2631fcSmrg $ac_path_SED_found && break 3 44807a2631fcSmrg done 44817a2631fcSmrg done 44827a2631fcSmrg done 44837a2631fcSmrgIFS=$as_save_IFS 44847a2631fcSmrg if test -z "$ac_cv_path_SED"; then 44857a2631fcSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 44867a2631fcSmrg fi 44877a2631fcSmrgelse 44887a2631fcSmrg ac_cv_path_SED=$SED 44897a2631fcSmrgfi 44903e747e6dSmrg 44913e747e6dSmrgfi 44927a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 44937a2631fcSmrg$as_echo "$ac_cv_path_SED" >&6; } 44947a2631fcSmrg SED="$ac_cv_path_SED" 44957a2631fcSmrg rm -f conftest.sed 44963e747e6dSmrg 44973e747e6dSmrg 44983e747e6dSmrg 44993e747e6dSmrg 45003e747e6dSmrg 45017a2631fcSmrgif test "x$GCC" = xyes ; then 45027a2631fcSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 45037a2631fcSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 45047a2631fcSmrg-Wbad-function-cast -Wformat=2" 45057a2631fcSmrg case `$CC -dumpversion` in 45067a2631fcSmrg 3.4.* | 4.*) 45077a2631fcSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 45087a2631fcSmrg ;; 45097a2631fcSmrg esac 45107a2631fcSmrgelse 45117a2631fcSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 45127a2631fcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 45137a2631fcSmrg SUNCC="yes" 45147a2631fcSmrgelse 45157a2631fcSmrg SUNCC="no" 45163e747e6dSmrgfi 45177a2631fcSmrg 45187a2631fcSmrg if test "x$SUNCC" = "xyes"; then 45197a2631fcSmrg CWARNFLAGS="-v" 45207a2631fcSmrg fi 45213e747e6dSmrgfi 45223e747e6dSmrg 45233e747e6dSmrg 45243e747e6dSmrg 45257a2631fcSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 45267a2631fcSmrg 45277a2631fcSmrg 45287a2631fcSmrg 45297a2631fcSmrg# Check whether --enable-strict-compilation was given. 45307a2631fcSmrgif test "${enable_strict_compilation+set}" = set; then : 45317a2631fcSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 45327a2631fcSmrgelse 45337a2631fcSmrg STRICT_COMPILE=no 45343e747e6dSmrgfi 45353e747e6dSmrg 45367a2631fcSmrgif test "x$STRICT_COMPILE" = "xyes"; then 45377a2631fcSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 45387a2631fcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 45397a2631fcSmrg SUNCC="yes" 45407a2631fcSmrgelse 45417a2631fcSmrg SUNCC="no" 45423e747e6dSmrgfi 45437a2631fcSmrg 45447a2631fcSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 45457a2631fcSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 45467a2631fcSmrg INTELCC="yes" 45473e747e6dSmrgelse 45487a2631fcSmrg INTELCC="no" 45493e747e6dSmrgfi 45503e747e6dSmrg 45517a2631fcSmrg if test "x$GCC" = xyes ; then 45527a2631fcSmrg STRICT_CFLAGS="-pedantic -Werror" 45537a2631fcSmrg elif test "x$SUNCC" = "xyes"; then 45547a2631fcSmrg STRICT_CFLAGS="-errwarn" 45557a2631fcSmrg elif test "x$INTELCC" = "xyes"; then 45567a2631fcSmrg STRICT_CFLAGS="-Werror" 45577a2631fcSmrg fi 45587a2631fcSmrgfi 45597a2631fcSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 45603e747e6dSmrg 45613e747e6dSmrg 45623e747e6dSmrg 45633e747e6dSmrg 45647a2631fcSmrgcat >>confdefs.h <<_ACEOF 45657a2631fcSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 45667a2631fcSmrg_ACEOF 45673e747e6dSmrg 45687a2631fcSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 45697a2631fcSmrg if test "x$PVM" = "x"; then 45707a2631fcSmrg PVM="0" 45717a2631fcSmrg fi 45727a2631fcSmrg 45737a2631fcSmrgcat >>confdefs.h <<_ACEOF 45747a2631fcSmrg#define PACKAGE_VERSION_MINOR $PVM 45757a2631fcSmrg_ACEOF 45767a2631fcSmrg 45777a2631fcSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 45787a2631fcSmrg if test "x$PVP" = "x"; then 45797a2631fcSmrg PVP="0" 45807a2631fcSmrg fi 45817a2631fcSmrg 45827a2631fcSmrgcat >>confdefs.h <<_ACEOF 45837a2631fcSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 45847a2631fcSmrg_ACEOF 45857a2631fcSmrg 45867a2631fcSmrg 45877a2631fcSmrg 45887a2631fcSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 45897a2631fcSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 45907a2631fcSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 45917a2631fcSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 45927a2631fcSmrg 45937a2631fcSmrg 45947a2631fcSmrg 45957a2631fcSmrg 45967a2631fcSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 45977a2631fcSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 45987a2631fcSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 45997a2631fcSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 46007a2631fcSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 46017a2631fcSmrg 46027a2631fcSmrg 46037a2631fcSmrg 46047a2631fcSmrg 46057a2631fcSmrg 46067a2631fcSmrg 46077a2631fcSmrgif test x$APP_MAN_SUFFIX = x ; then 46087a2631fcSmrg APP_MAN_SUFFIX=1 46097a2631fcSmrgfi 46107a2631fcSmrgif test x$APP_MAN_DIR = x ; then 46117a2631fcSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 46127a2631fcSmrgfi 46137a2631fcSmrg 46147a2631fcSmrgif test x$LIB_MAN_SUFFIX = x ; then 46157a2631fcSmrg LIB_MAN_SUFFIX=3 46167a2631fcSmrgfi 46177a2631fcSmrgif test x$LIB_MAN_DIR = x ; then 46187a2631fcSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 46197a2631fcSmrgfi 46207a2631fcSmrg 46217a2631fcSmrgif test x$FILE_MAN_SUFFIX = x ; then 46227a2631fcSmrg case $host_os in 46237a2631fcSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 46247a2631fcSmrg *) FILE_MAN_SUFFIX=5 ;; 46253e747e6dSmrg esac 46267a2631fcSmrgfi 46277a2631fcSmrgif test x$FILE_MAN_DIR = x ; then 46287a2631fcSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 46297a2631fcSmrgfi 46303e747e6dSmrg 46317a2631fcSmrgif test x$MISC_MAN_SUFFIX = x ; then 46327a2631fcSmrg case $host_os in 46337a2631fcSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 46347a2631fcSmrg *) MISC_MAN_SUFFIX=7 ;; 46357a2631fcSmrg esac 46367a2631fcSmrgfi 46377a2631fcSmrgif test x$MISC_MAN_DIR = x ; then 46387a2631fcSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 46393e747e6dSmrgfi 46403e747e6dSmrg 46417a2631fcSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 46427a2631fcSmrg case $host_os in 46437a2631fcSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 46447a2631fcSmrg *) DRIVER_MAN_SUFFIX=4 ;; 46457a2631fcSmrg esac 46467a2631fcSmrgfi 46477a2631fcSmrgif test x$DRIVER_MAN_DIR = x ; then 46487a2631fcSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 46493e747e6dSmrgfi 46503e747e6dSmrg 46517a2631fcSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 46527a2631fcSmrg case $host_os in 46537a2631fcSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 46547a2631fcSmrg *) ADMIN_MAN_SUFFIX=8 ;; 46557a2631fcSmrg esac 46567a2631fcSmrgfi 46577a2631fcSmrgif test x$ADMIN_MAN_DIR = x ; then 46587a2631fcSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 46593e747e6dSmrgfi 46603e747e6dSmrg 46613e747e6dSmrg 46623e747e6dSmrg 46633e747e6dSmrg 46647a2631fcSmrg 46657a2631fcSmrg 46667a2631fcSmrg 46677a2631fcSmrg 46687a2631fcSmrg 46697a2631fcSmrg 46707a2631fcSmrg 46717a2631fcSmrg 46727a2631fcSmrg 46737a2631fcSmrg 46747a2631fcSmrg 46757a2631fcSmrgXORG_MAN_PAGE="X Version 11" 46767a2631fcSmrg 46777a2631fcSmrgMAN_SUBSTS="\ 46787a2631fcSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 46797a2631fcSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 46807a2631fcSmrg -e 's|__xservername__|Xorg|g' \ 46817a2631fcSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 46827a2631fcSmrg -e 's|__projectroot__|\$(prefix)|g' \ 46837a2631fcSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 46847a2631fcSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 46857a2631fcSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 46867a2631fcSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 46877a2631fcSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 46887a2631fcSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 46897a2631fcSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 46907a2631fcSmrg 46917a2631fcSmrg 46927a2631fcSmrg 46937a2631fcSmrg# Check whether --enable-silent-rules was given. 46947a2631fcSmrgif test "${enable_silent_rules+set}" = set; then : 46957a2631fcSmrg enableval=$enable_silent_rules; 46963e747e6dSmrgfi 46973e747e6dSmrg 46987a2631fcSmrgcase $enable_silent_rules in 46997a2631fcSmrgyes) AM_DEFAULT_VERBOSITY=0;; 47007a2631fcSmrgno) AM_DEFAULT_VERBOSITY=1;; 47017a2631fcSmrg*) AM_DEFAULT_VERBOSITY=0;; 47027a2631fcSmrgesac 47037a2631fcSmrgAM_BACKSLASH='\' 47043e747e6dSmrg 47053e747e6dSmrg 47063e747e6dSmrg 47073e747e6dSmrgfor ac_prog in 'bison -y' byacc 47083e747e6dSmrgdo 47093e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 47103e747e6dSmrgset dummy $ac_prog; ac_word=$2 47117a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47127a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 47137a2631fcSmrgif ${ac_cv_prog_YACC+:} false; then : 47147a2631fcSmrg $as_echo_n "(cached) " >&6 47153e747e6dSmrgelse 47163e747e6dSmrg if test -n "$YACC"; then 47173e747e6dSmrg ac_cv_prog_YACC="$YACC" # Let the user override the test. 47183e747e6dSmrgelse 47193e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47203e747e6dSmrgfor as_dir in $PATH 47213e747e6dSmrgdo 47223e747e6dSmrg IFS=$as_save_IFS 47233e747e6dSmrg test -z "$as_dir" && as_dir=. 47247a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47253e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 47263e747e6dSmrg ac_cv_prog_YACC="$ac_prog" 47277a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47283e747e6dSmrg break 2 47293e747e6dSmrg fi 47303e747e6dSmrgdone 47317a2631fcSmrg done 47323e747e6dSmrgIFS=$as_save_IFS 47333e747e6dSmrg 47343e747e6dSmrgfi 47353e747e6dSmrgfi 47363e747e6dSmrgYACC=$ac_cv_prog_YACC 47373e747e6dSmrgif test -n "$YACC"; then 47387a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 47397a2631fcSmrg$as_echo "$YACC" >&6; } 47403e747e6dSmrgelse 47417a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47427a2631fcSmrg$as_echo "no" >&6; } 47433e747e6dSmrgfi 47443e747e6dSmrg 47453e747e6dSmrg 47463e747e6dSmrg test -n "$YACC" && break 47473e747e6dSmrgdone 47483e747e6dSmrgtest -n "$YACC" || YACC="yacc" 47493e747e6dSmrg 47507a2631fcSmrg# Extract the first word of "$YACC", so it can be a program name with args. 47517a2631fcSmrgset dummy $YACC; ac_word=$2 47527a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47537a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 47547a2631fcSmrgif ${ac_cv_path_YACC_INST+:} false; then : 47557a2631fcSmrg $as_echo_n "(cached) " >&6 47567a2631fcSmrgelse 47577a2631fcSmrg case $YACC_INST in 47587a2631fcSmrg [\\/]* | ?:[\\/]*) 47597a2631fcSmrg ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 47607a2631fcSmrg ;; 47617a2631fcSmrg *) 47627a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47637a2631fcSmrgfor as_dir in $PATH 47647a2631fcSmrgdo 47657a2631fcSmrg IFS=$as_save_IFS 47667a2631fcSmrg test -z "$as_dir" && as_dir=. 47677a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47687a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 47697a2631fcSmrg ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext" 47707a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47717a2631fcSmrg break 2 47727a2631fcSmrg fi 47737a2631fcSmrgdone 47747a2631fcSmrg done 47757a2631fcSmrgIFS=$as_save_IFS 47767a2631fcSmrg 47777a2631fcSmrg ;; 47787a2631fcSmrgesac 47797a2631fcSmrgfi 47807a2631fcSmrgYACC_INST=$ac_cv_path_YACC_INST 47817a2631fcSmrgif test -n "$YACC_INST"; then 47827a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 47837a2631fcSmrg$as_echo "$YACC_INST" >&6; } 47847a2631fcSmrgelse 47857a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47867a2631fcSmrg$as_echo "no" >&6; } 47877a2631fcSmrgfi 47887a2631fcSmrg 47897a2631fcSmrg 47902d96a817Smrgif test ! -f "$srcdir/gram.c"; then 47912d96a817Smrg if test -z "$YACC_INST"; then 47922d96a817Smrg as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5 47932d96a817Smrg fi 47947a2631fcSmrgfi 47953e747e6dSmrgfor ac_prog in flex lex 47963e747e6dSmrgdo 47973e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 47983e747e6dSmrgset dummy $ac_prog; ac_word=$2 47997a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48007a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 48017a2631fcSmrgif ${ac_cv_prog_LEX+:} false; then : 48027a2631fcSmrg $as_echo_n "(cached) " >&6 48033e747e6dSmrgelse 48043e747e6dSmrg if test -n "$LEX"; then 48053e747e6dSmrg ac_cv_prog_LEX="$LEX" # Let the user override the test. 48063e747e6dSmrgelse 48073e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48083e747e6dSmrgfor as_dir in $PATH 48093e747e6dSmrgdo 48103e747e6dSmrg IFS=$as_save_IFS 48113e747e6dSmrg test -z "$as_dir" && as_dir=. 48127a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 48133e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 48143e747e6dSmrg ac_cv_prog_LEX="$ac_prog" 48157a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48163e747e6dSmrg break 2 48173e747e6dSmrg fi 48183e747e6dSmrgdone 48197a2631fcSmrg done 48203e747e6dSmrgIFS=$as_save_IFS 48213e747e6dSmrg 48223e747e6dSmrgfi 48233e747e6dSmrgfi 48243e747e6dSmrgLEX=$ac_cv_prog_LEX 48253e747e6dSmrgif test -n "$LEX"; then 48267a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 48277a2631fcSmrg$as_echo "$LEX" >&6; } 48283e747e6dSmrgelse 48297a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48307a2631fcSmrg$as_echo "no" >&6; } 48313e747e6dSmrgfi 48323e747e6dSmrg 48333e747e6dSmrg 48343e747e6dSmrg test -n "$LEX" && break 48353e747e6dSmrgdone 48363e747e6dSmrgtest -n "$LEX" || LEX=":" 48373e747e6dSmrg 48383e747e6dSmrgif test "x$LEX" != "x:"; then 48393e747e6dSmrg cat >conftest.l <<_ACEOF 48403e747e6dSmrg%% 48413e747e6dSmrga { ECHO; } 48423e747e6dSmrgb { REJECT; } 48433e747e6dSmrgc { yymore (); } 48443e747e6dSmrgd { yyless (1); } 48453e747e6dSmrge { yyless (input () != 0); } 48463e747e6dSmrgf { unput (yytext[0]); } 48473e747e6dSmrg. { BEGIN INITIAL; } 48483e747e6dSmrg%% 48493e747e6dSmrg#ifdef YYTEXT_POINTER 48503e747e6dSmrgextern char *yytext; 48513e747e6dSmrg#endif 48523e747e6dSmrgint 48533e747e6dSmrgmain (void) 48543e747e6dSmrg{ 48553e747e6dSmrg return ! yylex () + ! yywrap (); 48563e747e6dSmrg} 48573e747e6dSmrg_ACEOF 48587a2631fcSmrg{ { ac_try="$LEX conftest.l" 48593e747e6dSmrgcase "(($ac_try" in 48603e747e6dSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48613e747e6dSmrg *) ac_try_echo=$ac_try;; 48623e747e6dSmrgesac 48637a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 48647a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 48653e747e6dSmrg (eval "$LEX conftest.l") 2>&5 48663e747e6dSmrg ac_status=$? 48677a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48687a2631fcSmrg test $ac_status = 0; } 48697a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 48707a2631fcSmrg$as_echo_n "checking lex output file root... " >&6; } 48717a2631fcSmrgif ${ac_cv_prog_lex_root+:} false; then : 48727a2631fcSmrg $as_echo_n "(cached) " >&6 48733e747e6dSmrgelse 48743e747e6dSmrg 48753e747e6dSmrgif test -f lex.yy.c; then 48763e747e6dSmrg ac_cv_prog_lex_root=lex.yy 48773e747e6dSmrgelif test -f lexyy.c; then 48783e747e6dSmrg ac_cv_prog_lex_root=lexyy 48793e747e6dSmrgelse 48807a2631fcSmrg as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 48813e747e6dSmrgfi 48823e747e6dSmrgfi 48837a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 48847a2631fcSmrg$as_echo "$ac_cv_prog_lex_root" >&6; } 48853e747e6dSmrgLEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 48863e747e6dSmrg 48873e747e6dSmrgif test -z "${LEXLIB+set}"; then 48887a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 48897a2631fcSmrg$as_echo_n "checking lex library... " >&6; } 48907a2631fcSmrgif ${ac_cv_lib_lex+:} false; then : 48917a2631fcSmrg $as_echo_n "(cached) " >&6 48923e747e6dSmrgelse 48933e747e6dSmrg 48943e747e6dSmrg ac_save_LIBS=$LIBS 48953e747e6dSmrg ac_cv_lib_lex='none needed' 48963e747e6dSmrg for ac_lib in '' -lfl -ll; do 48973e747e6dSmrg LIBS="$ac_lib $ac_save_LIBS" 48987a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48997a2631fcSmrg/* end confdefs.h. */ 49003e747e6dSmrg`cat $LEX_OUTPUT_ROOT.c` 49013e747e6dSmrg_ACEOF 49027a2631fcSmrgif ac_fn_c_try_link "$LINENO"; then : 49033e747e6dSmrg ac_cv_lib_lex=$ac_lib 49043e747e6dSmrgfi 49057a2631fcSmrgrm -f core conftest.err conftest.$ac_objext \ 49067a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 49073e747e6dSmrg test "$ac_cv_lib_lex" != 'none needed' && break 49083e747e6dSmrg done 49093e747e6dSmrg LIBS=$ac_save_LIBS 49103e747e6dSmrg 49113e747e6dSmrgfi 49127a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 49137a2631fcSmrg$as_echo "$ac_cv_lib_lex" >&6; } 49143e747e6dSmrg test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 49153e747e6dSmrgfi 49163e747e6dSmrg 49173e747e6dSmrg 49187a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 49197a2631fcSmrg$as_echo_n "checking whether yytext is a pointer... " >&6; } 49207a2631fcSmrgif ${ac_cv_prog_lex_yytext_pointer+:} false; then : 49217a2631fcSmrg $as_echo_n "(cached) " >&6 49223e747e6dSmrgelse 49233e747e6dSmrg # POSIX says lex can declare yytext either as a pointer or an array; the 49243e747e6dSmrg# default is implementation-dependent. Figure out which it is, since 49253e747e6dSmrg# not all implementations provide the %pointer and %array declarations. 49263e747e6dSmrgac_cv_prog_lex_yytext_pointer=no 49273e747e6dSmrgac_save_LIBS=$LIBS 49283e747e6dSmrgLIBS="$LEXLIB $ac_save_LIBS" 49297a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 49307a2631fcSmrg/* end confdefs.h. */ 49317a2631fcSmrg 49327a2631fcSmrg #define YYTEXT_POINTER 1 49333e747e6dSmrg`cat $LEX_OUTPUT_ROOT.c` 49343e747e6dSmrg_ACEOF 49357a2631fcSmrgif ac_fn_c_try_link "$LINENO"; then : 49363e747e6dSmrg ac_cv_prog_lex_yytext_pointer=yes 49373e747e6dSmrgfi 49387a2631fcSmrgrm -f core conftest.err conftest.$ac_objext \ 49397a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 49403e747e6dSmrgLIBS=$ac_save_LIBS 49413e747e6dSmrg 49423e747e6dSmrgfi 49437a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 49447a2631fcSmrg$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 49457a2631fcSmrgif test $ac_cv_prog_lex_yytext_pointer = yes; then 49467a2631fcSmrg 49477a2631fcSmrg$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 49483e747e6dSmrg 49493e747e6dSmrgfi 49507a2631fcSmrgrm -f conftest.l $LEX_OUTPUT_ROOT.c 49513e747e6dSmrg 49523e747e6dSmrgfi 49537a2631fcSmrg 49547a2631fcSmrgfor ac_func in mkstemp 49557a2631fcSmrgdo : 49567a2631fcSmrg ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 49577a2631fcSmrgif test "x$ac_cv_func_mkstemp" = xyes; then : 49587a2631fcSmrg cat >>confdefs.h <<_ACEOF 49597a2631fcSmrg#define HAVE_MKSTEMP 1 49607a2631fcSmrg_ACEOF 49613e747e6dSmrg 49623e747e6dSmrgfi 49637a2631fcSmrgdone 49647a2631fcSmrg 49657a2631fcSmrg 49667a2631fcSmrg# Checks for pkg-config packages 49673e747e6dSmrg 49683e747e6dSmrgpkg_failed=no 49697a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5 49707a2631fcSmrg$as_echo_n "checking for TWM... " >&6; } 49713e747e6dSmrg 49723e747e6dSmrgif test -n "$TWM_CFLAGS"; then 49733e747e6dSmrg pkg_cv_TWM_CFLAGS="$TWM_CFLAGS" 49743e747e6dSmrg elif test -n "$PKG_CONFIG"; then 49753e747e6dSmrg if test -n "$PKG_CONFIG" && \ 49767a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm\""; } >&5 49773e747e6dSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm") 2>&5 49783e747e6dSmrg ac_status=$? 49797a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49807a2631fcSmrg test $ac_status = 0; }; then 49813e747e6dSmrg pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm" 2>/dev/null` 49823e747e6dSmrgelse 49833e747e6dSmrg pkg_failed=yes 49843e747e6dSmrgfi 49853e747e6dSmrg else 49863e747e6dSmrg pkg_failed=untried 49873e747e6dSmrgfi 49883e747e6dSmrgif test -n "$TWM_LIBS"; then 49893e747e6dSmrg pkg_cv_TWM_LIBS="$TWM_LIBS" 49903e747e6dSmrg elif test -n "$PKG_CONFIG"; then 49913e747e6dSmrg if test -n "$PKG_CONFIG" && \ 49927a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm\""; } >&5 49933e747e6dSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm") 2>&5 49943e747e6dSmrg ac_status=$? 49957a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49967a2631fcSmrg test $ac_status = 0; }; then 49973e747e6dSmrg pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm" 2>/dev/null` 49983e747e6dSmrgelse 49993e747e6dSmrg pkg_failed=yes 50003e747e6dSmrgfi 50013e747e6dSmrg else 50023e747e6dSmrg pkg_failed=untried 50033e747e6dSmrgfi 50043e747e6dSmrg 50053e747e6dSmrg 50063e747e6dSmrg 50073e747e6dSmrgif test $pkg_failed = yes; then 50083e747e6dSmrg 50093e747e6dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 50103e747e6dSmrg _pkg_short_errors_supported=yes 50113e747e6dSmrgelse 50123e747e6dSmrg _pkg_short_errors_supported=no 50133e747e6dSmrgfi 50143e747e6dSmrg if test $_pkg_short_errors_supported = yes; then 50153e747e6dSmrg TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xt xmu ice sm" 2>&1` 50163e747e6dSmrg else 50173e747e6dSmrg TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xt xmu ice sm" 2>&1` 50183e747e6dSmrg fi 50193e747e6dSmrg # Put the nasty error message in config.log where it belongs 50203e747e6dSmrg echo "$TWM_PKG_ERRORS" >&5 50213e747e6dSmrg 50227a2631fcSmrg as_fn_error $? "Package requirements (x11 xext xt xmu ice sm) were not met: 50233e747e6dSmrg 50243e747e6dSmrg$TWM_PKG_ERRORS 50253e747e6dSmrg 50263e747e6dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 50273e747e6dSmrginstalled software in a non-standard prefix. 50283e747e6dSmrg 50293e747e6dSmrgAlternatively, you may set the environment variables TWM_CFLAGS 50303e747e6dSmrgand TWM_LIBS to avoid the need to call pkg-config. 50313e747e6dSmrgSee the pkg-config man page for more details. 50327a2631fcSmrg" "$LINENO" 5 50333e747e6dSmrgelif test $pkg_failed = untried; then 50347a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50357a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50367a2631fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 50373e747e6dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 50383e747e6dSmrgpath to pkg-config. 50393e747e6dSmrg 50403e747e6dSmrgAlternatively, you may set the environment variables TWM_CFLAGS 50413e747e6dSmrgand TWM_LIBS to avoid the need to call pkg-config. 50423e747e6dSmrgSee the pkg-config man page for more details. 50433e747e6dSmrg 50443e747e6dSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 50457a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 50463e747e6dSmrgelse 50473e747e6dSmrg TWM_CFLAGS=$pkg_cv_TWM_CFLAGS 50483e747e6dSmrg TWM_LIBS=$pkg_cv_TWM_LIBS 50497a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50507a2631fcSmrg$as_echo "yes" >&6; } 50513e747e6dSmrg : 50523e747e6dSmrgfi 50533e747e6dSmrg 50543e747e6dSmrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 50553e747e6dSmrg 50563e747e6dSmrgcat >confcache <<\_ACEOF 50573e747e6dSmrg# This file is a shell script that caches the results of configure 50583e747e6dSmrg# tests run on this system so they can be shared between configure 50593e747e6dSmrg# scripts and configure runs, see configure's option --config-cache. 50603e747e6dSmrg# It is not useful on other systems. If it contains results you don't 50613e747e6dSmrg# want to keep, you may remove or edit it. 50623e747e6dSmrg# 50633e747e6dSmrg# config.status only pays attention to the cache file if you give it 50643e747e6dSmrg# the --recheck option to rerun configure. 50653e747e6dSmrg# 50663e747e6dSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 50673e747e6dSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 50683e747e6dSmrg# following values. 50693e747e6dSmrg 50703e747e6dSmrg_ACEOF 50713e747e6dSmrg 50723e747e6dSmrg# The following way of writing the cache mishandles newlines in values, 50733e747e6dSmrg# but we know of no workaround that is simple, portable, and efficient. 50743e747e6dSmrg# So, we kill variables containing newlines. 50753e747e6dSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 50763e747e6dSmrg# and sets the high bit in the cache file unless we assign to the vars. 50773e747e6dSmrg( 50783e747e6dSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 50793e747e6dSmrg eval ac_val=\$$ac_var 50803e747e6dSmrg case $ac_val in #( 50813e747e6dSmrg *${as_nl}*) 50823e747e6dSmrg case $ac_var in #( 50837a2631fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 50847a2631fcSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 50853e747e6dSmrg esac 50863e747e6dSmrg case $ac_var in #( 50873e747e6dSmrg _ | IFS | as_nl) ;; #( 50887a2631fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 50897a2631fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 50903e747e6dSmrg esac ;; 50913e747e6dSmrg esac 50923e747e6dSmrg done 50933e747e6dSmrg 50943e747e6dSmrg (set) 2>&1 | 50953e747e6dSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 50963e747e6dSmrg *${as_nl}ac_space=\ *) 50977a2631fcSmrg # `set' does not quote correctly, so add quotes: double-quote 50987a2631fcSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 50993e747e6dSmrg sed -n \ 51003e747e6dSmrg "s/'/'\\\\''/g; 51013e747e6dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51023e747e6dSmrg ;; #( 51033e747e6dSmrg *) 51043e747e6dSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 51053e747e6dSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51063e747e6dSmrg ;; 51073e747e6dSmrg esac | 51083e747e6dSmrg sort 51093e747e6dSmrg) | 51103e747e6dSmrg sed ' 51113e747e6dSmrg /^ac_cv_env_/b end 51123e747e6dSmrg t clear 51133e747e6dSmrg :clear 51143e747e6dSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51153e747e6dSmrg t end 51163e747e6dSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51173e747e6dSmrg :end' >>confcache 51183e747e6dSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51193e747e6dSmrg if test -w "$cache_file"; then 51207a2631fcSmrg if test "x$cache_file" != "x/dev/null"; then 51217a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51227a2631fcSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 51237a2631fcSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 51247a2631fcSmrg cat confcache >"$cache_file" 51257a2631fcSmrg else 51267a2631fcSmrg case $cache_file in #( 51277a2631fcSmrg */* | ?:*) 51287a2631fcSmrg mv -f confcache "$cache_file"$$ && 51297a2631fcSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 51307a2631fcSmrg *) 51317a2631fcSmrg mv -f confcache "$cache_file" ;; 51327a2631fcSmrg esac 51337a2631fcSmrg fi 51347a2631fcSmrg fi 51353e747e6dSmrg else 51367a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51377a2631fcSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51383e747e6dSmrg fi 51393e747e6dSmrgfi 51403e747e6dSmrgrm -f confcache 51413e747e6dSmrg 51423e747e6dSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 51433e747e6dSmrg# Let make expand exec_prefix. 51443e747e6dSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51453e747e6dSmrg 51463e747e6dSmrgDEFS=-DHAVE_CONFIG_H 51473e747e6dSmrg 51483e747e6dSmrgac_libobjs= 51493e747e6dSmrgac_ltlibobjs= 51507a2631fcSmrgU= 51513e747e6dSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51523e747e6dSmrg # 1. Remove the extension, and $U if already installed. 51533e747e6dSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51547a2631fcSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51553e747e6dSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51563e747e6dSmrg # will be set to the directory where LIBOBJS objects are built. 51577a2631fcSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51587a2631fcSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51593e747e6dSmrgdone 51603e747e6dSmrgLIBOBJS=$ac_libobjs 51613e747e6dSmrg 51623e747e6dSmrgLTLIBOBJS=$ac_ltlibobjs 51633e747e6dSmrg 51643e747e6dSmrg 51657a2631fcSmrg if test -n "$EXEEXT"; then 51667a2631fcSmrg am__EXEEXT_TRUE= 51677a2631fcSmrg am__EXEEXT_FALSE='#' 51687a2631fcSmrgelse 51697a2631fcSmrg am__EXEEXT_TRUE='#' 51707a2631fcSmrg am__EXEEXT_FALSE= 51717a2631fcSmrgfi 51727a2631fcSmrg 51733e747e6dSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 51747a2631fcSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 51757a2631fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51763e747e6dSmrgfi 51773e747e6dSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 51787a2631fcSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 51797a2631fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51803e747e6dSmrgfi 51813e747e6dSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 51827a2631fcSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 51837a2631fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51843e747e6dSmrgfi 51853e747e6dSmrg 51867a2631fcSmrg: "${CONFIG_STATUS=./config.status}" 51877a2631fcSmrgac_write_fail=0 51883e747e6dSmrgac_clean_files_save=$ac_clean_files 51893e747e6dSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 51907a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 51917a2631fcSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 51927a2631fcSmrgas_write_fail=0 51937a2631fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 51943e747e6dSmrg#! $SHELL 51953e747e6dSmrg# Generated by $as_me. 51963e747e6dSmrg# Run this file to recreate the current configuration. 51973e747e6dSmrg# Compiler output produced by configure, useful for debugging 51983e747e6dSmrg# configure, is in config.log if it exists. 51993e747e6dSmrg 52003e747e6dSmrgdebug=false 52013e747e6dSmrgac_cs_recheck=false 52023e747e6dSmrgac_cs_silent=false 52033e747e6dSmrg 52047a2631fcSmrgSHELL=\${CONFIG_SHELL-$SHELL} 52057a2631fcSmrgexport SHELL 52067a2631fcSmrg_ASEOF 52077a2631fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52087a2631fcSmrg## -------------------- ## 52097a2631fcSmrg## M4sh Initialization. ## 52107a2631fcSmrg## -------------------- ## 52113e747e6dSmrg 52123e747e6dSmrg# Be more Bourne compatible 52133e747e6dSmrgDUALCASE=1; export DUALCASE # for MKS sh 52147a2631fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52153e747e6dSmrg emulate sh 52163e747e6dSmrg NULLCMD=: 52177a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52183e747e6dSmrg # is contrary to our usage. Disable this feature. 52193e747e6dSmrg alias -g '${1+"$@"}'='"$@"' 52203e747e6dSmrg setopt NO_GLOB_SUBST 52213e747e6dSmrgelse 52227a2631fcSmrg case `(set -o) 2>/dev/null` in #( 52237a2631fcSmrg *posix*) : 52247a2631fcSmrg set -o posix ;; #( 52257a2631fcSmrg *) : 52267a2631fcSmrg ;; 52273e747e6dSmrgesac 52283e747e6dSmrgfi 52293e747e6dSmrg 52303e747e6dSmrg 52317a2631fcSmrgas_nl=' 52327a2631fcSmrg' 52337a2631fcSmrgexport as_nl 52347a2631fcSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 52357a2631fcSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52367a2631fcSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52377a2631fcSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52387a2631fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 52397a2631fcSmrg# but without wasting forks for bash or zsh. 52407a2631fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 52417a2631fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52427a2631fcSmrg as_echo='print -r --' 52437a2631fcSmrg as_echo_n='print -rn --' 52447a2631fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52457a2631fcSmrg as_echo='printf %s\n' 52467a2631fcSmrg as_echo_n='printf %s' 52477a2631fcSmrgelse 52487a2631fcSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52497a2631fcSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52507a2631fcSmrg as_echo_n='/usr/ucb/echo -n' 52513e747e6dSmrg else 52527a2631fcSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 52537a2631fcSmrg as_echo_n_body='eval 52547a2631fcSmrg arg=$1; 52557a2631fcSmrg case $arg in #( 52567a2631fcSmrg *"$as_nl"*) 52577a2631fcSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 52587a2631fcSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 52597a2631fcSmrg esac; 52607a2631fcSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 52617a2631fcSmrg ' 52627a2631fcSmrg export as_echo_n_body 52637a2631fcSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 52643e747e6dSmrg fi 52657a2631fcSmrg export as_echo_body 52667a2631fcSmrg as_echo='sh -c $as_echo_body as_echo' 52673e747e6dSmrgfi 52683e747e6dSmrg 52697a2631fcSmrg# The user is always right. 52707a2631fcSmrgif test "${PATH_SEPARATOR+set}" != set; then 52717a2631fcSmrg PATH_SEPARATOR=: 52727a2631fcSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 52737a2631fcSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 52747a2631fcSmrg PATH_SEPARATOR=';' 52757a2631fcSmrg } 52763e747e6dSmrgfi 52773e747e6dSmrg 52783e747e6dSmrg 52793e747e6dSmrg# IFS 52803e747e6dSmrg# We need space, tab and new line, in precisely that order. Quoting is 52813e747e6dSmrg# there to prevent editors from complaining about space-tab. 52823e747e6dSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 52833e747e6dSmrg# splitting by setting IFS to empty value.) 52843e747e6dSmrgIFS=" "" $as_nl" 52853e747e6dSmrg 52863e747e6dSmrg# Find who we are. Look in the path if we contain no directory separator. 52877a2631fcSmrgas_myself= 52887a2631fcSmrgcase $0 in #(( 52893e747e6dSmrg *[\\/]* ) as_myself=$0 ;; 52903e747e6dSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52913e747e6dSmrgfor as_dir in $PATH 52923e747e6dSmrgdo 52933e747e6dSmrg IFS=$as_save_IFS 52943e747e6dSmrg test -z "$as_dir" && as_dir=. 52957a2631fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 52967a2631fcSmrg done 52973e747e6dSmrgIFS=$as_save_IFS 52983e747e6dSmrg 52993e747e6dSmrg ;; 53003e747e6dSmrgesac 53013e747e6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 53023e747e6dSmrg# in which case we are not to be found in the path. 53033e747e6dSmrgif test "x$as_myself" = x; then 53043e747e6dSmrg as_myself=$0 53053e747e6dSmrgfi 53063e747e6dSmrgif test ! -f "$as_myself"; then 53077a2631fcSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53087a2631fcSmrg exit 1 53093e747e6dSmrgfi 53103e747e6dSmrg 53117a2631fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 53127a2631fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53137a2631fcSmrg# suppresses any "Segmentation fault" message there. '((' could 53147a2631fcSmrg# trigger a bug in pdksh 5.2.14. 53157a2631fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 53167a2631fcSmrgdo eval test x\${$as_var+set} = xset \ 53177a2631fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53183e747e6dSmrgdone 53193e747e6dSmrgPS1='$ ' 53203e747e6dSmrgPS2='> ' 53213e747e6dSmrgPS4='+ ' 53223e747e6dSmrg 53233e747e6dSmrg# NLS nuisances. 53247a2631fcSmrgLC_ALL=C 53257a2631fcSmrgexport LC_ALL 53267a2631fcSmrgLANGUAGE=C 53277a2631fcSmrgexport LANGUAGE 53287a2631fcSmrg 53297a2631fcSmrg# CDPATH. 53307a2631fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53317a2631fcSmrg 53327a2631fcSmrg 53337a2631fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 53347a2631fcSmrg# ---------------------------------------- 53357a2631fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53367a2631fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53377a2631fcSmrg# script with STATUS, using 1 if that was 0. 53387a2631fcSmrgas_fn_error () 53397a2631fcSmrg{ 53407a2631fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 53417a2631fcSmrg if test "$4"; then 53427a2631fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53437a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53443e747e6dSmrg fi 53457a2631fcSmrg $as_echo "$as_me: error: $2" >&2 53467a2631fcSmrg as_fn_exit $as_status 53477a2631fcSmrg} # as_fn_error 53487a2631fcSmrg 53497a2631fcSmrg 53507a2631fcSmrg# as_fn_set_status STATUS 53517a2631fcSmrg# ----------------------- 53527a2631fcSmrg# Set $? to STATUS, without forking. 53537a2631fcSmrgas_fn_set_status () 53547a2631fcSmrg{ 53557a2631fcSmrg return $1 53567a2631fcSmrg} # as_fn_set_status 53577a2631fcSmrg 53587a2631fcSmrg# as_fn_exit STATUS 53597a2631fcSmrg# ----------------- 53607a2631fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53617a2631fcSmrgas_fn_exit () 53627a2631fcSmrg{ 53637a2631fcSmrg set +e 53647a2631fcSmrg as_fn_set_status $1 53657a2631fcSmrg exit $1 53667a2631fcSmrg} # as_fn_exit 53677a2631fcSmrg 53687a2631fcSmrg# as_fn_unset VAR 53697a2631fcSmrg# --------------- 53707a2631fcSmrg# Portably unset VAR. 53717a2631fcSmrgas_fn_unset () 53727a2631fcSmrg{ 53737a2631fcSmrg { eval $1=; unset $1;} 53747a2631fcSmrg} 53757a2631fcSmrgas_unset=as_fn_unset 53767a2631fcSmrg# as_fn_append VAR VALUE 53777a2631fcSmrg# ---------------------- 53787a2631fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 53797a2631fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 53807a2631fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 53817a2631fcSmrg# implementations. 53827a2631fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 53837a2631fcSmrg eval 'as_fn_append () 53847a2631fcSmrg { 53857a2631fcSmrg eval $1+=\$2 53867a2631fcSmrg }' 53877a2631fcSmrgelse 53887a2631fcSmrg as_fn_append () 53897a2631fcSmrg { 53907a2631fcSmrg eval $1=\$$1\$2 53917a2631fcSmrg } 53927a2631fcSmrgfi # as_fn_append 53937a2631fcSmrg 53947a2631fcSmrg# as_fn_arith ARG... 53957a2631fcSmrg# ------------------ 53967a2631fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 53977a2631fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 53987a2631fcSmrg# must be portable across $(()) and expr. 53997a2631fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 54007a2631fcSmrg eval 'as_fn_arith () 54017a2631fcSmrg { 54027a2631fcSmrg as_val=$(( $* )) 54037a2631fcSmrg }' 54047a2631fcSmrgelse 54057a2631fcSmrg as_fn_arith () 54067a2631fcSmrg { 54077a2631fcSmrg as_val=`expr "$@" || test $? -eq 1` 54087a2631fcSmrg } 54097a2631fcSmrgfi # as_fn_arith 54107a2631fcSmrg 54113e747e6dSmrg 54123e747e6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 54133e747e6dSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 54143e747e6dSmrg as_expr=expr 54153e747e6dSmrgelse 54163e747e6dSmrg as_expr=false 54173e747e6dSmrgfi 54183e747e6dSmrg 54193e747e6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 54203e747e6dSmrg as_basename=basename 54213e747e6dSmrgelse 54223e747e6dSmrg as_basename=false 54233e747e6dSmrgfi 54243e747e6dSmrg 54257a2631fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 54267a2631fcSmrg as_dirname=dirname 54277a2631fcSmrgelse 54287a2631fcSmrg as_dirname=false 54297a2631fcSmrgfi 54303e747e6dSmrg 54313e747e6dSmrgas_me=`$as_basename -- "$0" || 54323e747e6dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 54333e747e6dSmrg X"$0" : 'X\(//\)$' \| \ 54343e747e6dSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 54357a2631fcSmrg$as_echo X/"$0" | 54363e747e6dSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 54373e747e6dSmrg s//\1/ 54383e747e6dSmrg q 54393e747e6dSmrg } 54403e747e6dSmrg /^X\/\(\/\/\)$/{ 54413e747e6dSmrg s//\1/ 54423e747e6dSmrg q 54433e747e6dSmrg } 54443e747e6dSmrg /^X\/\(\/\).*/{ 54453e747e6dSmrg s//\1/ 54463e747e6dSmrg q 54473e747e6dSmrg } 54483e747e6dSmrg s/.*/./; q'` 54493e747e6dSmrg 54507a2631fcSmrg# Avoid depending upon Character Ranges. 54517a2631fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 54527a2631fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 54537a2631fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 54547a2631fcSmrgas_cr_digits='0123456789' 54557a2631fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 54563e747e6dSmrg 54573e747e6dSmrgECHO_C= ECHO_N= ECHO_T= 54587a2631fcSmrgcase `echo -n x` in #((((( 54593e747e6dSmrg-n*) 54607a2631fcSmrg case `echo 'xy\c'` in 54613e747e6dSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 54627a2631fcSmrg xy) ECHO_C='\c';; 54637a2631fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 54647a2631fcSmrg ECHO_T=' ';; 54653e747e6dSmrg esac;; 54663e747e6dSmrg*) 54673e747e6dSmrg ECHO_N='-n';; 54683e747e6dSmrgesac 54693e747e6dSmrg 54703e747e6dSmrgrm -f conf$$ conf$$.exe conf$$.file 54713e747e6dSmrgif test -d conf$$.dir; then 54723e747e6dSmrg rm -f conf$$.dir/conf$$.file 54733e747e6dSmrgelse 54743e747e6dSmrg rm -f conf$$.dir 54757a2631fcSmrg mkdir conf$$.dir 2>/dev/null 54767a2631fcSmrgfi 54777a2631fcSmrgif (echo >conf$$.file) 2>/dev/null; then 54787a2631fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 54797a2631fcSmrg as_ln_s='ln -s' 54807a2631fcSmrg # ... but there are two gotchas: 54817a2631fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 54827a2631fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 54837a2631fcSmrg # In both cases, we have to default to `cp -p'. 54847a2631fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 54857a2631fcSmrg as_ln_s='cp -p' 54867a2631fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 54877a2631fcSmrg as_ln_s=ln 54887a2631fcSmrg else 54893e747e6dSmrg as_ln_s='cp -p' 54907a2631fcSmrg fi 54913e747e6dSmrgelse 54923e747e6dSmrg as_ln_s='cp -p' 54933e747e6dSmrgfi 54943e747e6dSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 54953e747e6dSmrgrmdir conf$$.dir 2>/dev/null 54963e747e6dSmrg 54977a2631fcSmrg 54987a2631fcSmrg# as_fn_mkdir_p 54997a2631fcSmrg# ------------- 55007a2631fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 55017a2631fcSmrgas_fn_mkdir_p () 55027a2631fcSmrg{ 55037a2631fcSmrg 55047a2631fcSmrg case $as_dir in #( 55057a2631fcSmrg -*) as_dir=./$as_dir;; 55067a2631fcSmrg esac 55077a2631fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 55087a2631fcSmrg as_dirs= 55097a2631fcSmrg while :; do 55107a2631fcSmrg case $as_dir in #( 55117a2631fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 55127a2631fcSmrg *) as_qdir=$as_dir;; 55137a2631fcSmrg esac 55147a2631fcSmrg as_dirs="'$as_qdir' $as_dirs" 55157a2631fcSmrg as_dir=`$as_dirname -- "$as_dir" || 55167a2631fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 55177a2631fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 55187a2631fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 55197a2631fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 55207a2631fcSmrg$as_echo X"$as_dir" | 55217a2631fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 55227a2631fcSmrg s//\1/ 55237a2631fcSmrg q 55247a2631fcSmrg } 55257a2631fcSmrg /^X\(\/\/\)[^/].*/{ 55267a2631fcSmrg s//\1/ 55277a2631fcSmrg q 55287a2631fcSmrg } 55297a2631fcSmrg /^X\(\/\/\)$/{ 55307a2631fcSmrg s//\1/ 55317a2631fcSmrg q 55327a2631fcSmrg } 55337a2631fcSmrg /^X\(\/\).*/{ 55347a2631fcSmrg s//\1/ 55357a2631fcSmrg q 55367a2631fcSmrg } 55377a2631fcSmrg s/.*/./; q'` 55387a2631fcSmrg test -d "$as_dir" && break 55397a2631fcSmrg done 55407a2631fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 55417a2631fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 55427a2631fcSmrg 55437a2631fcSmrg 55447a2631fcSmrg} # as_fn_mkdir_p 55453e747e6dSmrgif mkdir -p . 2>/dev/null; then 55467a2631fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 55473e747e6dSmrgelse 55483e747e6dSmrg test -d ./-p && rmdir ./-p 55493e747e6dSmrg as_mkdir_p=false 55503e747e6dSmrgfi 55513e747e6dSmrg 55523e747e6dSmrgif test -x / >/dev/null 2>&1; then 55533e747e6dSmrg as_test_x='test -x' 55543e747e6dSmrgelse 55553e747e6dSmrg if ls -dL / >/dev/null 2>&1; then 55563e747e6dSmrg as_ls_L_option=L 55573e747e6dSmrg else 55583e747e6dSmrg as_ls_L_option= 55593e747e6dSmrg fi 55603e747e6dSmrg as_test_x=' 55613e747e6dSmrg eval sh -c '\'' 55623e747e6dSmrg if test -d "$1"; then 55637a2631fcSmrg test -d "$1/."; 55643e747e6dSmrg else 55657a2631fcSmrg case $1 in #( 55667a2631fcSmrg -*)set "./$1";; 55673e747e6dSmrg esac; 55687a2631fcSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 55693e747e6dSmrg ???[sx]*):;;*)false;;esac;fi 55703e747e6dSmrg '\'' sh 55713e747e6dSmrg ' 55723e747e6dSmrgfi 55733e747e6dSmrgas_executable_p=$as_test_x 55743e747e6dSmrg 55753e747e6dSmrg# Sed expression to map a string onto a valid CPP name. 55763e747e6dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 55773e747e6dSmrg 55783e747e6dSmrg# Sed expression to map a string onto a valid variable name. 55793e747e6dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 55803e747e6dSmrg 55813e747e6dSmrg 55823e747e6dSmrgexec 6>&1 55837a2631fcSmrg## ----------------------------------- ## 55847a2631fcSmrg## Main body of $CONFIG_STATUS script. ## 55857a2631fcSmrg## ----------------------------------- ## 55867a2631fcSmrg_ASEOF 55877a2631fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 55883e747e6dSmrg 55897a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 55907a2631fcSmrg# Save the log message, to keep $0 and so on meaningful, and to 55913e747e6dSmrg# report actual input values of CONFIG_FILES etc. instead of their 55923e747e6dSmrg# values after options handling. 55933e747e6dSmrgac_log=" 55942d96a817SmrgThis file was extended by twm $as_me 1.0.6, which was 55957a2631fcSmrggenerated by GNU Autoconf 2.68. Invocation command line was 55963e747e6dSmrg 55973e747e6dSmrg CONFIG_FILES = $CONFIG_FILES 55983e747e6dSmrg CONFIG_HEADERS = $CONFIG_HEADERS 55993e747e6dSmrg CONFIG_LINKS = $CONFIG_LINKS 56003e747e6dSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 56013e747e6dSmrg $ $0 $@ 56023e747e6dSmrg 56033e747e6dSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 56043e747e6dSmrg" 56053e747e6dSmrg 56063e747e6dSmrg_ACEOF 56073e747e6dSmrg 56087a2631fcSmrgcase $ac_config_files in *" 56097a2631fcSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 56107a2631fcSmrgesac 56117a2631fcSmrg 56127a2631fcSmrgcase $ac_config_headers in *" 56137a2631fcSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 56147a2631fcSmrgesac 56157a2631fcSmrg 56167a2631fcSmrg 56177a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56183e747e6dSmrg# Files that config.status was made for. 56193e747e6dSmrgconfig_files="$ac_config_files" 56203e747e6dSmrgconfig_headers="$ac_config_headers" 56213e747e6dSmrgconfig_commands="$ac_config_commands" 56223e747e6dSmrg 56233e747e6dSmrg_ACEOF 56243e747e6dSmrg 56257a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56263e747e6dSmrgac_cs_usage="\ 56277a2631fcSmrg\`$as_me' instantiates files and other configuration actions 56287a2631fcSmrgfrom templates according to the current configuration. Unless the files 56297a2631fcSmrgand actions are specified as TAGs, all are instantiated by default. 56303e747e6dSmrg 56317a2631fcSmrgUsage: $0 [OPTION]... [TAG]... 56323e747e6dSmrg 56333e747e6dSmrg -h, --help print this help, then exit 56343e747e6dSmrg -V, --version print version number and configuration settings, then exit 56357a2631fcSmrg --config print configuration, then exit 56367a2631fcSmrg -q, --quiet, --silent 56377a2631fcSmrg do not print progress messages 56383e747e6dSmrg -d, --debug don't remove temporary files 56393e747e6dSmrg --recheck update $as_me by reconfiguring in the same conditions 56407a2631fcSmrg --file=FILE[:TEMPLATE] 56417a2631fcSmrg instantiate the configuration file FILE 56427a2631fcSmrg --header=FILE[:TEMPLATE] 56437a2631fcSmrg instantiate the configuration header FILE 56443e747e6dSmrg 56453e747e6dSmrgConfiguration files: 56463e747e6dSmrg$config_files 56473e747e6dSmrg 56483e747e6dSmrgConfiguration headers: 56493e747e6dSmrg$config_headers 56503e747e6dSmrg 56513e747e6dSmrgConfiguration commands: 56523e747e6dSmrg$config_commands 56533e747e6dSmrg 56547a2631fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 56553e747e6dSmrg 56563e747e6dSmrg_ACEOF 56577a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56587a2631fcSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 56593e747e6dSmrgac_cs_version="\\ 56602d96a817Smrgtwm config.status 1.0.6 56617a2631fcSmrgconfigured by $0, generated by GNU Autoconf 2.68, 56627a2631fcSmrg with options \\"\$ac_cs_config\\" 56633e747e6dSmrg 56647a2631fcSmrgCopyright (C) 2010 Free Software Foundation, Inc. 56653e747e6dSmrgThis config.status script is free software; the Free Software Foundation 56663e747e6dSmrggives unlimited permission to copy, distribute and modify it." 56673e747e6dSmrg 56683e747e6dSmrgac_pwd='$ac_pwd' 56693e747e6dSmrgsrcdir='$srcdir' 56703e747e6dSmrgINSTALL='$INSTALL' 56713e747e6dSmrgMKDIR_P='$MKDIR_P' 56727a2631fcSmrgAWK='$AWK' 56737a2631fcSmrgtest -n "\$AWK" || AWK=awk 56743e747e6dSmrg_ACEOF 56753e747e6dSmrg 56767a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56777a2631fcSmrg# The default lists apply if the user does not specify any file. 56783e747e6dSmrgac_need_defaults=: 56793e747e6dSmrgwhile test $# != 0 56803e747e6dSmrgdo 56813e747e6dSmrg case $1 in 56827a2631fcSmrg --*=?*) 56833e747e6dSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 56843e747e6dSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 56853e747e6dSmrg ac_shift=: 56863e747e6dSmrg ;; 56877a2631fcSmrg --*=) 56887a2631fcSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 56897a2631fcSmrg ac_optarg= 56907a2631fcSmrg ac_shift=: 56917a2631fcSmrg ;; 56923e747e6dSmrg *) 56933e747e6dSmrg ac_option=$1 56943e747e6dSmrg ac_optarg=$2 56953e747e6dSmrg ac_shift=shift 56963e747e6dSmrg ;; 56973e747e6dSmrg esac 56983e747e6dSmrg 56993e747e6dSmrg case $ac_option in 57003e747e6dSmrg # Handling of the options. 57013e747e6dSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 57023e747e6dSmrg ac_cs_recheck=: ;; 57033e747e6dSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 57047a2631fcSmrg $as_echo "$ac_cs_version"; exit ;; 57057a2631fcSmrg --config | --confi | --conf | --con | --co | --c ) 57067a2631fcSmrg $as_echo "$ac_cs_config"; exit ;; 57073e747e6dSmrg --debug | --debu | --deb | --de | --d | -d ) 57083e747e6dSmrg debug=: ;; 57093e747e6dSmrg --file | --fil | --fi | --f ) 57103e747e6dSmrg $ac_shift 57117a2631fcSmrg case $ac_optarg in 57127a2631fcSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 57137a2631fcSmrg '') as_fn_error $? "missing file argument" ;; 57147a2631fcSmrg esac 57157a2631fcSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 57163e747e6dSmrg ac_need_defaults=false;; 57173e747e6dSmrg --header | --heade | --head | --hea ) 57183e747e6dSmrg $ac_shift 57197a2631fcSmrg case $ac_optarg in 57207a2631fcSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 57217a2631fcSmrg esac 57227a2631fcSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 57233e747e6dSmrg ac_need_defaults=false;; 57243e747e6dSmrg --he | --h) 57253e747e6dSmrg # Conflict between --help and --header 57267a2631fcSmrg as_fn_error $? "ambiguous option: \`$1' 57277a2631fcSmrgTry \`$0 --help' for more information.";; 57283e747e6dSmrg --help | --hel | -h ) 57297a2631fcSmrg $as_echo "$ac_cs_usage"; exit ;; 57303e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 57313e747e6dSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 57323e747e6dSmrg ac_cs_silent=: ;; 57333e747e6dSmrg 57343e747e6dSmrg # This is an error. 57357a2631fcSmrg -*) as_fn_error $? "unrecognized option: \`$1' 57367a2631fcSmrgTry \`$0 --help' for more information." ;; 57373e747e6dSmrg 57387a2631fcSmrg *) as_fn_append ac_config_targets " $1" 57393e747e6dSmrg ac_need_defaults=false ;; 57403e747e6dSmrg 57413e747e6dSmrg esac 57423e747e6dSmrg shift 57433e747e6dSmrgdone 57443e747e6dSmrg 57453e747e6dSmrgac_configure_extra_args= 57463e747e6dSmrg 57473e747e6dSmrgif $ac_cs_silent; then 57483e747e6dSmrg exec 6>/dev/null 57493e747e6dSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 57503e747e6dSmrgfi 57513e747e6dSmrg 57523e747e6dSmrg_ACEOF 57537a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 57543e747e6dSmrgif \$ac_cs_recheck; then 57557a2631fcSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 57567a2631fcSmrg shift 57577a2631fcSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 57587a2631fcSmrg CONFIG_SHELL='$SHELL' 57593e747e6dSmrg export CONFIG_SHELL 57607a2631fcSmrg exec "\$@" 57613e747e6dSmrgfi 57623e747e6dSmrg 57633e747e6dSmrg_ACEOF 57647a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 57653e747e6dSmrgexec 5>>config.log 57663e747e6dSmrg{ 57673e747e6dSmrg echo 57683e747e6dSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 57693e747e6dSmrg## Running $as_me. ## 57703e747e6dSmrg_ASBOX 57717a2631fcSmrg $as_echo "$ac_log" 57723e747e6dSmrg} >&5 57733e747e6dSmrg 57743e747e6dSmrg_ACEOF 57757a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 57763e747e6dSmrg# 57773e747e6dSmrg# INIT-COMMANDS 57783e747e6dSmrg# 57793e747e6dSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 57803e747e6dSmrg 57813e747e6dSmrg_ACEOF 57823e747e6dSmrg 57837a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 57843e747e6dSmrg 57853e747e6dSmrg# Handling of arguments. 57863e747e6dSmrgfor ac_config_target in $ac_config_targets 57873e747e6dSmrgdo 57883e747e6dSmrg case $ac_config_target in 57893e747e6dSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 57903e747e6dSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 57913e747e6dSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 57923e747e6dSmrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 57933e747e6dSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 57943e747e6dSmrg 57957a2631fcSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 57963e747e6dSmrg esac 57973e747e6dSmrgdone 57983e747e6dSmrg 57993e747e6dSmrg 58003e747e6dSmrg# If the user did not use the arguments to specify the items to instantiate, 58013e747e6dSmrg# then the envvar interface is used. Set only those that are not. 58023e747e6dSmrg# We use the long form for the default assignment because of an extremely 58033e747e6dSmrg# bizarre bug on SunOS 4.1.3. 58043e747e6dSmrgif $ac_need_defaults; then 58053e747e6dSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 58063e747e6dSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 58073e747e6dSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 58083e747e6dSmrgfi 58093e747e6dSmrg 58103e747e6dSmrg# Have a temporary directory for convenience. Make it in the build tree 58113e747e6dSmrg# simply because there is no reason against having it here, and in addition, 58123e747e6dSmrg# creating and moving files from /tmp can sometimes cause problems. 58133e747e6dSmrg# Hook for its removal unless debugging. 58143e747e6dSmrg# Note that there is a small window in which the directory will not be cleaned: 58153e747e6dSmrg# after its creation but before its name has been assigned to `$tmp'. 58163e747e6dSmrg$debug || 58173e747e6dSmrg{ 58187a2631fcSmrg tmp= ac_tmp= 58193e747e6dSmrg trap 'exit_status=$? 58207a2631fcSmrg : "${ac_tmp:=$tmp}" 58217a2631fcSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 58223e747e6dSmrg' 0 58237a2631fcSmrg trap 'as_fn_exit 1' 1 2 13 15 58243e747e6dSmrg} 58253e747e6dSmrg# Create a (secure) tmp directory for tmp files. 58263e747e6dSmrg 58273e747e6dSmrg{ 58283e747e6dSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 58297a2631fcSmrg test -d "$tmp" 58303e747e6dSmrg} || 58313e747e6dSmrg{ 58323e747e6dSmrg tmp=./conf$$-$RANDOM 58333e747e6dSmrg (umask 077 && mkdir "$tmp") 58347a2631fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 58357a2631fcSmrgac_tmp=$tmp 58363e747e6dSmrg 58377a2631fcSmrg# Set up the scripts for CONFIG_FILES section. 58387a2631fcSmrg# No need to generate them if there are no CONFIG_FILES. 58397a2631fcSmrg# This happens for instance with `./config.status config.h'. 58403e747e6dSmrgif test -n "$CONFIG_FILES"; then 58413e747e6dSmrg 58423e747e6dSmrg 58437a2631fcSmrgac_cr=`echo X | tr X '\015'` 58447a2631fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 58457a2631fcSmrg# But we know of no other shell where ac_cr would be empty at this 58467a2631fcSmrg# point, so we can use a bashism as a fallback. 58477a2631fcSmrgif test "x$ac_cr" = x; then 58487a2631fcSmrg eval ac_cr=\$\'\\r\' 58497a2631fcSmrgfi 58507a2631fcSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 58517a2631fcSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 58527a2631fcSmrg ac_cs_awk_cr='\\r' 58537a2631fcSmrgelse 58547a2631fcSmrg ac_cs_awk_cr=$ac_cr 58553e747e6dSmrgfi 58563e747e6dSmrg 58577a2631fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 58583e747e6dSmrg_ACEOF 58593e747e6dSmrg 58603e747e6dSmrg 58617a2631fcSmrg{ 58627a2631fcSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 58637a2631fcSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 58647a2631fcSmrg echo "_ACEOF" 58657a2631fcSmrg} >conf$$subs.sh || 58667a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 58677a2631fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 58683e747e6dSmrgac_delim='%!_!# ' 58693e747e6dSmrgfor ac_last_try in false false false false false :; do 58707a2631fcSmrg . ./conf$$subs.sh || 58717a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 58723e747e6dSmrg 58737a2631fcSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 58747a2631fcSmrg if test $ac_delim_n = $ac_delim_num; then 58753e747e6dSmrg break 58763e747e6dSmrg elif $ac_last_try; then 58777a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 58783e747e6dSmrg else 58793e747e6dSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 58803e747e6dSmrg fi 58813e747e6dSmrgdone 58827a2631fcSmrgrm -f conf$$subs.sh 58833e747e6dSmrg 58847a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 58857a2631fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 58867a2631fcSmrg_ACEOF 58877a2631fcSmrgsed -n ' 58887a2631fcSmrgh 58897a2631fcSmrgs/^/S["/; s/!.*/"]=/ 58907a2631fcSmrgp 58917a2631fcSmrgg 58927a2631fcSmrgs/^[^!]*!// 58937a2631fcSmrg:repl 58947a2631fcSmrgt repl 58957a2631fcSmrgs/'"$ac_delim"'$// 58967a2631fcSmrgt delim 58977a2631fcSmrg:nl 58987a2631fcSmrgh 58997a2631fcSmrgs/\(.\{148\}\)..*/\1/ 59007a2631fcSmrgt more1 59017a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 59027a2631fcSmrgp 59037a2631fcSmrgn 59047a2631fcSmrgb repl 59057a2631fcSmrg:more1 59067a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 59077a2631fcSmrgp 59087a2631fcSmrgg 59097a2631fcSmrgs/.\{148\}// 59107a2631fcSmrgt nl 59117a2631fcSmrg:delim 59127a2631fcSmrgh 59137a2631fcSmrgs/\(.\{148\}\)..*/\1/ 59147a2631fcSmrgt more2 59157a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 59167a2631fcSmrgp 59177a2631fcSmrgb 59187a2631fcSmrg:more2 59197a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 59207a2631fcSmrgp 59217a2631fcSmrgg 59227a2631fcSmrgs/.\{148\}// 59237a2631fcSmrgt delim 59247a2631fcSmrg' <conf$$subs.awk | sed ' 59257a2631fcSmrg/^[^""]/{ 59267a2631fcSmrg N 59277a2631fcSmrg s/\n// 59287a2631fcSmrg} 59297a2631fcSmrg' >>$CONFIG_STATUS || ac_write_fail=1 59307a2631fcSmrgrm -f conf$$subs.awk 59317a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59327a2631fcSmrg_ACAWK 59337a2631fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 59347a2631fcSmrg for (key in S) S_is_set[key] = 1 59357a2631fcSmrg FS = "" 59367a2631fcSmrg 59377a2631fcSmrg} 59387a2631fcSmrg{ 59397a2631fcSmrg line = $ 0 59407a2631fcSmrg nfields = split(line, field, "@") 59417a2631fcSmrg substed = 0 59427a2631fcSmrg len = length(field[1]) 59437a2631fcSmrg for (i = 2; i < nfields; i++) { 59447a2631fcSmrg key = field[i] 59457a2631fcSmrg keylen = length(key) 59467a2631fcSmrg if (S_is_set[key]) { 59477a2631fcSmrg value = S[key] 59487a2631fcSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 59497a2631fcSmrg len += length(value) + length(field[++i]) 59507a2631fcSmrg substed = 1 59517a2631fcSmrg } else 59527a2631fcSmrg len += 1 + keylen 59537a2631fcSmrg } 59547a2631fcSmrg 59557a2631fcSmrg print line 59567a2631fcSmrg} 59573e747e6dSmrg 59587a2631fcSmrg_ACAWK 59593e747e6dSmrg_ACEOF 59607a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59617a2631fcSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 59627a2631fcSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 59637a2631fcSmrgelse 59647a2631fcSmrg cat 59657a2631fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 59667a2631fcSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 59673e747e6dSmrg_ACEOF 59683e747e6dSmrg 59697a2631fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 59707a2631fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 59713e747e6dSmrg# trailing colons and then remove the whole line if VPATH becomes empty 59723e747e6dSmrg# (actually we leave an empty line to preserve line numbers). 59733e747e6dSmrgif test "x$srcdir" = x.; then 59747a2631fcSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 59757a2631fcSmrgh 59767a2631fcSmrgs/// 59777a2631fcSmrgs/^/:/ 59787a2631fcSmrgs/[ ]*$/:/ 59797a2631fcSmrgs/:\$(srcdir):/:/g 59807a2631fcSmrgs/:\${srcdir}:/:/g 59817a2631fcSmrgs/:@srcdir@:/:/g 59827a2631fcSmrgs/^:*// 59833e747e6dSmrgs/:*$// 59847a2631fcSmrgx 59857a2631fcSmrgs/\(=[ ]*\).*/\1/ 59867a2631fcSmrgG 59877a2631fcSmrgs/\n// 59883e747e6dSmrgs/^[^=]*=[ ]*$// 59893e747e6dSmrg}' 59903e747e6dSmrgfi 59913e747e6dSmrg 59927a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59933e747e6dSmrgfi # test -n "$CONFIG_FILES" 59943e747e6dSmrg 59957a2631fcSmrg# Set up the scripts for CONFIG_HEADERS section. 59967a2631fcSmrg# No need to generate them if there are no CONFIG_HEADERS. 59977a2631fcSmrg# This happens for instance with `./config.status Makefile'. 59987a2631fcSmrgif test -n "$CONFIG_HEADERS"; then 59997a2631fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 60007a2631fcSmrgBEGIN { 60017a2631fcSmrg_ACEOF 60027a2631fcSmrg 60037a2631fcSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 60047a2631fcSmrg# here-document in config.status, that substitutes the proper values into 60057a2631fcSmrg# config.h.in to produce config.h. 60067a2631fcSmrg 60077a2631fcSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 60087a2631fcSmrg# handling of long lines. 60097a2631fcSmrgac_delim='%!_!# ' 60107a2631fcSmrgfor ac_last_try in false false :; do 60117a2631fcSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 60127a2631fcSmrg if test -z "$ac_tt"; then 60137a2631fcSmrg break 60147a2631fcSmrg elif $ac_last_try; then 60157a2631fcSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 60167a2631fcSmrg else 60177a2631fcSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 60187a2631fcSmrg fi 60197a2631fcSmrgdone 60207a2631fcSmrg 60217a2631fcSmrg# For the awk script, D is an array of macro values keyed by name, 60227a2631fcSmrg# likewise P contains macro parameters if any. Preserve backslash 60237a2631fcSmrg# newline sequences. 60247a2631fcSmrg 60257a2631fcSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 60267a2631fcSmrgsed -n ' 60277a2631fcSmrgs/.\{148\}/&'"$ac_delim"'/g 60287a2631fcSmrgt rset 60297a2631fcSmrg:rset 60307a2631fcSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 60317a2631fcSmrgt def 60327a2631fcSmrgd 60337a2631fcSmrg:def 60347a2631fcSmrgs/\\$// 60357a2631fcSmrgt bsnl 60367a2631fcSmrgs/["\\]/\\&/g 60377a2631fcSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 60387a2631fcSmrgD["\1"]=" \3"/p 60397a2631fcSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 60407a2631fcSmrgd 60417a2631fcSmrg:bsnl 60427a2631fcSmrgs/["\\]/\\&/g 60437a2631fcSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 60447a2631fcSmrgD["\1"]=" \3\\\\\\n"\\/p 60457a2631fcSmrgt cont 60467a2631fcSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 60477a2631fcSmrgt cont 60487a2631fcSmrgd 60497a2631fcSmrg:cont 60507a2631fcSmrgn 60517a2631fcSmrgs/.\{148\}/&'"$ac_delim"'/g 60527a2631fcSmrgt clear 60537a2631fcSmrg:clear 60547a2631fcSmrgs/\\$// 60557a2631fcSmrgt bsnlc 60567a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 60577a2631fcSmrgd 60587a2631fcSmrg:bsnlc 60597a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 60607a2631fcSmrgb cont 60617a2631fcSmrg' <confdefs.h | sed ' 60627a2631fcSmrgs/'"$ac_delim"'/"\\\ 60637a2631fcSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 60647a2631fcSmrg 60657a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 60667a2631fcSmrg for (key in D) D_is_set[key] = 1 60677a2631fcSmrg FS = "" 60687a2631fcSmrg} 60697a2631fcSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 60707a2631fcSmrg line = \$ 0 60717a2631fcSmrg split(line, arg, " ") 60727a2631fcSmrg if (arg[1] == "#") { 60737a2631fcSmrg defundef = arg[2] 60747a2631fcSmrg mac1 = arg[3] 60757a2631fcSmrg } else { 60767a2631fcSmrg defundef = substr(arg[1], 2) 60777a2631fcSmrg mac1 = arg[2] 60787a2631fcSmrg } 60797a2631fcSmrg split(mac1, mac2, "(") #) 60807a2631fcSmrg macro = mac2[1] 60817a2631fcSmrg prefix = substr(line, 1, index(line, defundef) - 1) 60827a2631fcSmrg if (D_is_set[macro]) { 60837a2631fcSmrg # Preserve the white space surrounding the "#". 60847a2631fcSmrg print prefix "define", macro P[macro] D[macro] 60857a2631fcSmrg next 60867a2631fcSmrg } else { 60877a2631fcSmrg # Replace #undef with comments. This is necessary, for example, 60887a2631fcSmrg # in the case of _POSIX_SOURCE, which is predefined and required 60897a2631fcSmrg # on some systems where configure will not decide to define it. 60907a2631fcSmrg if (defundef == "undef") { 60917a2631fcSmrg print "/*", prefix defundef, macro, "*/" 60927a2631fcSmrg next 60937a2631fcSmrg } 60947a2631fcSmrg } 60957a2631fcSmrg} 60967a2631fcSmrg{ print } 60977a2631fcSmrg_ACAWK 60987a2631fcSmrg_ACEOF 60997a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61007a2631fcSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 61017a2631fcSmrgfi # test -n "$CONFIG_HEADERS" 61027a2631fcSmrg 61033e747e6dSmrg 61047a2631fcSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 61057a2631fcSmrgshift 61067a2631fcSmrgfor ac_tag 61073e747e6dSmrgdo 61083e747e6dSmrg case $ac_tag in 61093e747e6dSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 61103e747e6dSmrg esac 61113e747e6dSmrg case $ac_mode$ac_tag in 61123e747e6dSmrg :[FHL]*:*);; 61137a2631fcSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 61143e747e6dSmrg :[FH]-) ac_tag=-:-;; 61153e747e6dSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 61163e747e6dSmrg esac 61173e747e6dSmrg ac_save_IFS=$IFS 61183e747e6dSmrg IFS=: 61193e747e6dSmrg set x $ac_tag 61203e747e6dSmrg IFS=$ac_save_IFS 61213e747e6dSmrg shift 61223e747e6dSmrg ac_file=$1 61233e747e6dSmrg shift 61243e747e6dSmrg 61253e747e6dSmrg case $ac_mode in 61263e747e6dSmrg :L) ac_source=$1;; 61273e747e6dSmrg :[FH]) 61283e747e6dSmrg ac_file_inputs= 61293e747e6dSmrg for ac_f 61303e747e6dSmrg do 61313e747e6dSmrg case $ac_f in 61327a2631fcSmrg -) ac_f="$ac_tmp/stdin";; 61333e747e6dSmrg *) # Look for the file first in the build tree, then in the source tree 61343e747e6dSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 61353e747e6dSmrg # because $ac_f cannot contain `:'. 61363e747e6dSmrg test -f "$ac_f" || 61373e747e6dSmrg case $ac_f in 61383e747e6dSmrg [\\/$]*) false;; 61393e747e6dSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 61403e747e6dSmrg esac || 61417a2631fcSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 61423e747e6dSmrg esac 61437a2631fcSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 61447a2631fcSmrg as_fn_append ac_file_inputs " '$ac_f'" 61453e747e6dSmrg done 61463e747e6dSmrg 61473e747e6dSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 61483e747e6dSmrg # use $as_me), people would be surprised to read: 61493e747e6dSmrg # /* config.h. Generated by config.status. */ 61507a2631fcSmrg configure_input='Generated from '` 61517a2631fcSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 61527a2631fcSmrg `' by configure.' 61533e747e6dSmrg if test x"$ac_file" != x-; then 61543e747e6dSmrg configure_input="$ac_file. $configure_input" 61557a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 61567a2631fcSmrg$as_echo "$as_me: creating $ac_file" >&6;} 61573e747e6dSmrg fi 61587a2631fcSmrg # Neutralize special characters interpreted by sed in replacement strings. 61597a2631fcSmrg case $configure_input in #( 61607a2631fcSmrg *\&* | *\|* | *\\* ) 61617a2631fcSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 61627a2631fcSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 61637a2631fcSmrg *) ac_sed_conf_input=$configure_input;; 61647a2631fcSmrg esac 61653e747e6dSmrg 61663e747e6dSmrg case $ac_tag in 61677a2631fcSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 61687a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 61693e747e6dSmrg esac 61703e747e6dSmrg ;; 61713e747e6dSmrg esac 61723e747e6dSmrg 61733e747e6dSmrg ac_dir=`$as_dirname -- "$ac_file" || 61743e747e6dSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 61753e747e6dSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 61763e747e6dSmrg X"$ac_file" : 'X\(//\)$' \| \ 61773e747e6dSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 61787a2631fcSmrg$as_echo X"$ac_file" | 61793e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 61803e747e6dSmrg s//\1/ 61813e747e6dSmrg q 61823e747e6dSmrg } 61833e747e6dSmrg /^X\(\/\/\)[^/].*/{ 61843e747e6dSmrg s//\1/ 61853e747e6dSmrg q 61863e747e6dSmrg } 61873e747e6dSmrg /^X\(\/\/\)$/{ 61883e747e6dSmrg s//\1/ 61893e747e6dSmrg q 61903e747e6dSmrg } 61913e747e6dSmrg /^X\(\/\).*/{ 61923e747e6dSmrg s//\1/ 61933e747e6dSmrg q 61943e747e6dSmrg } 61953e747e6dSmrg s/.*/./; q'` 61967a2631fcSmrg as_dir="$ac_dir"; as_fn_mkdir_p 61973e747e6dSmrg ac_builddir=. 61983e747e6dSmrg 61993e747e6dSmrgcase "$ac_dir" in 62003e747e6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 62013e747e6dSmrg*) 62027a2631fcSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 62033e747e6dSmrg # A ".." for each directory in $ac_dir_suffix. 62047a2631fcSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 62053e747e6dSmrg case $ac_top_builddir_sub in 62063e747e6dSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 62073e747e6dSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 62083e747e6dSmrg esac ;; 62093e747e6dSmrgesac 62103e747e6dSmrgac_abs_top_builddir=$ac_pwd 62113e747e6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 62123e747e6dSmrg# for backward compatibility: 62133e747e6dSmrgac_top_builddir=$ac_top_build_prefix 62143e747e6dSmrg 62153e747e6dSmrgcase $srcdir in 62163e747e6dSmrg .) # We are building in place. 62173e747e6dSmrg ac_srcdir=. 62183e747e6dSmrg ac_top_srcdir=$ac_top_builddir_sub 62193e747e6dSmrg ac_abs_top_srcdir=$ac_pwd ;; 62203e747e6dSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 62213e747e6dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 62223e747e6dSmrg ac_top_srcdir=$srcdir 62233e747e6dSmrg ac_abs_top_srcdir=$srcdir ;; 62243e747e6dSmrg *) # Relative name. 62253e747e6dSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 62263e747e6dSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 62273e747e6dSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 62283e747e6dSmrgesac 62293e747e6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 62303e747e6dSmrg 62313e747e6dSmrg 62323e747e6dSmrg case $ac_mode in 62333e747e6dSmrg :F) 62343e747e6dSmrg # 62353e747e6dSmrg # CONFIG_FILE 62363e747e6dSmrg # 62373e747e6dSmrg 62383e747e6dSmrg case $INSTALL in 62393e747e6dSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 62403e747e6dSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 62413e747e6dSmrg esac 62423e747e6dSmrg ac_MKDIR_P=$MKDIR_P 62433e747e6dSmrg case $MKDIR_P in 62443e747e6dSmrg [\\/$]* | ?:[\\/]* ) ;; 62453e747e6dSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 62463e747e6dSmrg esac 62473e747e6dSmrg_ACEOF 62483e747e6dSmrg 62497a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 62503e747e6dSmrg# If the template does not know about datarootdir, expand it. 62513e747e6dSmrg# FIXME: This hack should be removed a few years after 2.60. 62523e747e6dSmrgac_datarootdir_hack=; ac_datarootdir_seen= 62537a2631fcSmrgac_sed_dataroot=' 62547a2631fcSmrg/datarootdir/ { 62553e747e6dSmrg p 62563e747e6dSmrg q 62573e747e6dSmrg} 62583e747e6dSmrg/@datadir@/p 62593e747e6dSmrg/@docdir@/p 62603e747e6dSmrg/@infodir@/p 62613e747e6dSmrg/@localedir@/p 62627a2631fcSmrg/@mandir@/p' 62637a2631fcSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 62643e747e6dSmrg*datarootdir*) ac_datarootdir_seen=yes;; 62653e747e6dSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 62667a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 62677a2631fcSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 62683e747e6dSmrg_ACEOF 62697a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 62703e747e6dSmrg ac_datarootdir_hack=' 62713e747e6dSmrg s&@datadir@&$datadir&g 62723e747e6dSmrg s&@docdir@&$docdir&g 62733e747e6dSmrg s&@infodir@&$infodir&g 62743e747e6dSmrg s&@localedir@&$localedir&g 62753e747e6dSmrg s&@mandir@&$mandir&g 62767a2631fcSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 62773e747e6dSmrgesac 62783e747e6dSmrg_ACEOF 62793e747e6dSmrg 62803e747e6dSmrg# Neutralize VPATH when `$srcdir' = `.'. 62813e747e6dSmrg# Shell code in configure.ac might set extrasub. 62823e747e6dSmrg# FIXME: do we really want to maintain this feature? 62837a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 62847a2631fcSmrgac_sed_extra="$ac_vpsub 62853e747e6dSmrg$extrasub 62863e747e6dSmrg_ACEOF 62877a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 62883e747e6dSmrg:t 62893e747e6dSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 62907a2631fcSmrgs|@configure_input@|$ac_sed_conf_input|;t t 62913e747e6dSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 62927a2631fcSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 62933e747e6dSmrgs&@srcdir@&$ac_srcdir&;t t 62943e747e6dSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 62953e747e6dSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 62963e747e6dSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 62973e747e6dSmrgs&@builddir@&$ac_builddir&;t t 62983e747e6dSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 62993e747e6dSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 63003e747e6dSmrgs&@INSTALL@&$ac_INSTALL&;t t 63013e747e6dSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 63023e747e6dSmrg$ac_datarootdir_hack 63037a2631fcSmrg" 63047a2631fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 63057a2631fcSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63063e747e6dSmrg 63073e747e6dSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 63087a2631fcSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 63097a2631fcSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 63107a2631fcSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 63117a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 63127a2631fcSmrgwhich seems to be undefined. Please make sure it is defined" >&5 63137a2631fcSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 63147a2631fcSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 63157a2631fcSmrg 63167a2631fcSmrg rm -f "$ac_tmp/stdin" 63173e747e6dSmrg case $ac_file in 63187a2631fcSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 63197a2631fcSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 63207a2631fcSmrg esac \ 63217a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63223e747e6dSmrg ;; 63233e747e6dSmrg :H) 63243e747e6dSmrg # 63253e747e6dSmrg # CONFIG_HEADER 63263e747e6dSmrg # 63273e747e6dSmrg if test x"$ac_file" != x-; then 63287a2631fcSmrg { 63297a2631fcSmrg $as_echo "/* $configure_input */" \ 63307a2631fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 63317a2631fcSmrg } >"$ac_tmp/config.h" \ 63327a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63337a2631fcSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 63347a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 63357a2631fcSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 63363e747e6dSmrg else 63377a2631fcSmrg rm -f "$ac_file" 63387a2631fcSmrg mv "$ac_tmp/config.h" "$ac_file" \ 63397a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63403e747e6dSmrg fi 63413e747e6dSmrg else 63427a2631fcSmrg $as_echo "/* $configure_input */" \ 63437a2631fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 63447a2631fcSmrg || as_fn_error $? "could not create -" "$LINENO" 5 63453e747e6dSmrg fi 63467a2631fcSmrg# Compute "$ac_file"'s index in $config_headers. 63477a2631fcSmrg_am_arg="$ac_file" 63483e747e6dSmrg_am_stamp_count=1 63493e747e6dSmrgfor _am_header in $config_headers :; do 63503e747e6dSmrg case $_am_header in 63513e747e6dSmrg $_am_arg | $_am_arg:* ) 63523e747e6dSmrg break ;; 63533e747e6dSmrg * ) 63543e747e6dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 63553e747e6dSmrg esac 63563e747e6dSmrgdone 63573e747e6dSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 63583e747e6dSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 63593e747e6dSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 63603e747e6dSmrg X"$_am_arg" : 'X\(//\)$' \| \ 63613e747e6dSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 63627a2631fcSmrg$as_echo X"$_am_arg" | 63633e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 63643e747e6dSmrg s//\1/ 63653e747e6dSmrg q 63663e747e6dSmrg } 63673e747e6dSmrg /^X\(\/\/\)[^/].*/{ 63683e747e6dSmrg s//\1/ 63693e747e6dSmrg q 63703e747e6dSmrg } 63713e747e6dSmrg /^X\(\/\/\)$/{ 63723e747e6dSmrg s//\1/ 63733e747e6dSmrg q 63743e747e6dSmrg } 63753e747e6dSmrg /^X\(\/\).*/{ 63763e747e6dSmrg s//\1/ 63773e747e6dSmrg q 63783e747e6dSmrg } 63793e747e6dSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 63803e747e6dSmrg ;; 63813e747e6dSmrg 63827a2631fcSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 63837a2631fcSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 63843e747e6dSmrg ;; 63853e747e6dSmrg esac 63863e747e6dSmrg 63873e747e6dSmrg 63883e747e6dSmrg case $ac_file$ac_mode in 63897a2631fcSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 63907a2631fcSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 63917a2631fcSmrg # are listed without --file. Let's play safe and only enable the eval 63927a2631fcSmrg # if we detect the quoting. 63937a2631fcSmrg case $CONFIG_FILES in 63947a2631fcSmrg *\'*) eval set x "$CONFIG_FILES" ;; 63957a2631fcSmrg *) set x $CONFIG_FILES ;; 63967a2631fcSmrg esac 63977a2631fcSmrg shift 63987a2631fcSmrg for mf 63997a2631fcSmrg do 64007a2631fcSmrg # Strip MF so we end up with the name of the file. 64017a2631fcSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 64027a2631fcSmrg # Check whether this is an Automake generated Makefile or not. 64037a2631fcSmrg # We used to match only the files named `Makefile.in', but 64047a2631fcSmrg # some people rename them; so instead we look at the file content. 64057a2631fcSmrg # Grep'ing the first line is not enough: some people post-process 64067a2631fcSmrg # each Makefile.in and add a new line on top of each file to say so. 64077a2631fcSmrg # Grep'ing the whole file is not good either: AIX grep has a line 64087a2631fcSmrg # limit of 2048, but all sed's we know have understand at least 4000. 64097a2631fcSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 64107a2631fcSmrg dirpart=`$as_dirname -- "$mf" || 64113e747e6dSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64123e747e6dSmrg X"$mf" : 'X\(//\)[^/]' \| \ 64133e747e6dSmrg X"$mf" : 'X\(//\)$' \| \ 64143e747e6dSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 64157a2631fcSmrg$as_echo X"$mf" | 64163e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 64173e747e6dSmrg s//\1/ 64183e747e6dSmrg q 64193e747e6dSmrg } 64203e747e6dSmrg /^X\(\/\/\)[^/].*/{ 64213e747e6dSmrg s//\1/ 64223e747e6dSmrg q 64233e747e6dSmrg } 64243e747e6dSmrg /^X\(\/\/\)$/{ 64253e747e6dSmrg s//\1/ 64263e747e6dSmrg q 64273e747e6dSmrg } 64283e747e6dSmrg /^X\(\/\).*/{ 64293e747e6dSmrg s//\1/ 64303e747e6dSmrg q 64313e747e6dSmrg } 64323e747e6dSmrg s/.*/./; q'` 64337a2631fcSmrg else 64347a2631fcSmrg continue 64357a2631fcSmrg fi 64367a2631fcSmrg # Extract the definition of DEPDIR, am__include, and am__quote 64377a2631fcSmrg # from the Makefile without running `make'. 64387a2631fcSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 64397a2631fcSmrg test -z "$DEPDIR" && continue 64407a2631fcSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 64417a2631fcSmrg test -z "am__include" && continue 64427a2631fcSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 64437a2631fcSmrg # When using ansi2knr, U may be empty or an underscore; expand it 64447a2631fcSmrg U=`sed -n 's/^U = //p' < "$mf"` 64457a2631fcSmrg # Find all dependency output files, they are included files with 64467a2631fcSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 64477a2631fcSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 64487a2631fcSmrg # expansion. 64497a2631fcSmrg for file in `sed -n " 64507a2631fcSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 64517a2631fcSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 64527a2631fcSmrg # Make sure the directory exists. 64537a2631fcSmrg test -f "$dirpart/$file" && continue 64547a2631fcSmrg fdir=`$as_dirname -- "$file" || 64553e747e6dSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64563e747e6dSmrg X"$file" : 'X\(//\)[^/]' \| \ 64573e747e6dSmrg X"$file" : 'X\(//\)$' \| \ 64583e747e6dSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 64597a2631fcSmrg$as_echo X"$file" | 64603e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 64613e747e6dSmrg s//\1/ 64623e747e6dSmrg q 64633e747e6dSmrg } 64643e747e6dSmrg /^X\(\/\/\)[^/].*/{ 64653e747e6dSmrg s//\1/ 64663e747e6dSmrg q 64673e747e6dSmrg } 64683e747e6dSmrg /^X\(\/\/\)$/{ 64693e747e6dSmrg s//\1/ 64703e747e6dSmrg q 64713e747e6dSmrg } 64723e747e6dSmrg /^X\(\/\).*/{ 64733e747e6dSmrg s//\1/ 64743e747e6dSmrg q 64753e747e6dSmrg } 64763e747e6dSmrg s/.*/./; q'` 64777a2631fcSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 64787a2631fcSmrg # echo "creating $dirpart/$file" 64797a2631fcSmrg echo '# dummy' > "$dirpart/$file" 64803e747e6dSmrg done 64813e747e6dSmrg done 64827a2631fcSmrg} 64833e747e6dSmrg ;; 64843e747e6dSmrg 64853e747e6dSmrg esac 64863e747e6dSmrgdone # for ac_tag 64873e747e6dSmrg 64883e747e6dSmrg 64897a2631fcSmrgas_fn_exit 0 64903e747e6dSmrg_ACEOF 64913e747e6dSmrgac_clean_files=$ac_clean_files_save 64923e747e6dSmrg 64937a2631fcSmrgtest $ac_write_fail = 0 || 64947a2631fcSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 64957a2631fcSmrg 64963e747e6dSmrg 64973e747e6dSmrg# configure is writing to config.log, and then calls config.status. 64983e747e6dSmrg# config.status does its own redirection, appending to config.log. 64993e747e6dSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 65003e747e6dSmrg# by configure, so config.status won't be able to write to it; its 65013e747e6dSmrg# output is simply discarded. So we exec the FD to /dev/null, 65023e747e6dSmrg# effectively closing config.log, so it can be properly (re)opened and 65033e747e6dSmrg# appended to by config.status. When coming back to configure, we 65043e747e6dSmrg# need to make the FD available again. 65053e747e6dSmrgif test "$no_create" != yes; then 65063e747e6dSmrg ac_cs_success=: 65073e747e6dSmrg ac_config_status_args= 65083e747e6dSmrg test "$silent" = yes && 65093e747e6dSmrg ac_config_status_args="$ac_config_status_args --quiet" 65103e747e6dSmrg exec 5>/dev/null 65113e747e6dSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 65123e747e6dSmrg exec 5>>config.log 65133e747e6dSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 65143e747e6dSmrg # would make configure fail if this is the last instruction. 65157a2631fcSmrg $ac_cs_success || as_fn_exit 1 65167a2631fcSmrgfi 65177a2631fcSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 65187a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 65197a2631fcSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 65203e747e6dSmrgfi 65213e747e6dSmrg 6522