configure revision 7a2631fc
13e747e6dSmrg#! /bin/sh 23e747e6dSmrg# Guess values for system-dependent variables and create Makefiles. 37a2631fcSmrg# Generated by GNU Autoconf 2.68 for twm 1.0.5. 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' 5647a2631fcSmrgPACKAGE_VERSION='1.0.5' 5657a2631fcSmrgPACKAGE_STRING='twm 1.0.5' 5663e747e6dSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5677a2631fcSmrgPACKAGE_URL='' 5683e747e6dSmrg 5697a2631fcSmrg# Factoring default headers for most tests. 5707a2631fcSmrgac_includes_default="\ 5717a2631fcSmrg#include <stdio.h> 5727a2631fcSmrg#ifdef HAVE_SYS_TYPES_H 5737a2631fcSmrg# include <sys/types.h> 5747a2631fcSmrg#endif 5757a2631fcSmrg#ifdef HAVE_SYS_STAT_H 5767a2631fcSmrg# include <sys/stat.h> 5777a2631fcSmrg#endif 5787a2631fcSmrg#ifdef STDC_HEADERS 5797a2631fcSmrg# include <stdlib.h> 5807a2631fcSmrg# include <stddef.h> 5817a2631fcSmrg#else 5827a2631fcSmrg# ifdef HAVE_STDLIB_H 5837a2631fcSmrg# include <stdlib.h> 5847a2631fcSmrg# endif 5857a2631fcSmrg#endif 5867a2631fcSmrg#ifdef HAVE_STRING_H 5877a2631fcSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 5887a2631fcSmrg# include <memory.h> 5897a2631fcSmrg# endif 5907a2631fcSmrg# include <string.h> 5917a2631fcSmrg#endif 5927a2631fcSmrg#ifdef HAVE_STRINGS_H 5937a2631fcSmrg# include <strings.h> 5947a2631fcSmrg#endif 5957a2631fcSmrg#ifdef HAVE_INTTYPES_H 5967a2631fcSmrg# include <inttypes.h> 5977a2631fcSmrg#endif 5987a2631fcSmrg#ifdef HAVE_STDINT_H 5997a2631fcSmrg# include <stdint.h> 6007a2631fcSmrg#endif 6017a2631fcSmrg#ifdef HAVE_UNISTD_H 6027a2631fcSmrg# include <unistd.h> 6037a2631fcSmrg#endif" 6047a2631fcSmrg 6057a2631fcSmrgac_subst_vars='am__EXEEXT_FALSE 6067a2631fcSmrgam__EXEEXT_TRUE 6077a2631fcSmrgLTLIBOBJS 6083e747e6dSmrgLIBOBJS 6097a2631fcSmrgTWM_LIBS 6107a2631fcSmrgTWM_CFLAGS 6117a2631fcSmrgLEXLIB 6127a2631fcSmrgLEX_OUTPUT_ROOT 6137a2631fcSmrgLEX 6147a2631fcSmrgYACC_INST 6157a2631fcSmrgYFLAGS 6167a2631fcSmrgYACC 6177a2631fcSmrgAM_BACKSLASH 6187a2631fcSmrgAM_DEFAULT_VERBOSITY 6197a2631fcSmrgMAN_SUBSTS 6207a2631fcSmrgXORG_MAN_PAGE 6217a2631fcSmrgADMIN_MAN_DIR 6227a2631fcSmrgDRIVER_MAN_DIR 6237a2631fcSmrgMISC_MAN_DIR 6247a2631fcSmrgFILE_MAN_DIR 6257a2631fcSmrgLIB_MAN_DIR 6267a2631fcSmrgAPP_MAN_DIR 6277a2631fcSmrgADMIN_MAN_SUFFIX 6287a2631fcSmrgDRIVER_MAN_SUFFIX 6297a2631fcSmrgMISC_MAN_SUFFIX 6307a2631fcSmrgFILE_MAN_SUFFIX 6317a2631fcSmrgLIB_MAN_SUFFIX 6327a2631fcSmrgAPP_MAN_SUFFIX 6337a2631fcSmrgSED 6347a2631fcSmrghost_os 6357a2631fcSmrghost_vendor 6367a2631fcSmrghost_cpu 6377a2631fcSmrghost 6387a2631fcSmrgbuild_os 6397a2631fcSmrgbuild_vendor 6407a2631fcSmrgbuild_cpu 6417a2631fcSmrgbuild 6427a2631fcSmrgINSTALL_CMD 6437a2631fcSmrgPKG_CONFIG 6447a2631fcSmrgCHANGELOG_CMD 6457a2631fcSmrgCWARNFLAGS 6467a2631fcSmrgEGREP 6477a2631fcSmrgGREP 6487a2631fcSmrgCPP 6497a2631fcSmrgam__fastdepCC_FALSE 6507a2631fcSmrgam__fastdepCC_TRUE 6517a2631fcSmrgCCDEPMODE 6527a2631fcSmrgAMDEPBACKSLASH 6537a2631fcSmrgAMDEP_FALSE 6547a2631fcSmrgAMDEP_TRUE 6557a2631fcSmrgam__quote 6567a2631fcSmrgam__include 6577a2631fcSmrgDEPDIR 6587a2631fcSmrgOBJEXT 6597a2631fcSmrgEXEEXT 6607a2631fcSmrgac_ct_CC 6617a2631fcSmrgCPPFLAGS 6627a2631fcSmrgLDFLAGS 6637a2631fcSmrgCFLAGS 6647a2631fcSmrgCC 6657a2631fcSmrgMAINT 6667a2631fcSmrgMAINTAINER_MODE_FALSE 6677a2631fcSmrgMAINTAINER_MODE_TRUE 6687a2631fcSmrgam__untar 6697a2631fcSmrgam__tar 6707a2631fcSmrgAMTAR 6717a2631fcSmrgam__leading_dot 6727a2631fcSmrgSET_MAKE 6737a2631fcSmrgAWK 6747a2631fcSmrgmkdir_p 6757a2631fcSmrgMKDIR_P 6767a2631fcSmrgINSTALL_STRIP_PROGRAM 6777a2631fcSmrgSTRIP 6787a2631fcSmrginstall_sh 6797a2631fcSmrgMAKEINFO 6807a2631fcSmrgAUTOHEADER 6817a2631fcSmrgAUTOMAKE 6827a2631fcSmrgAUTOCONF 6837a2631fcSmrgACLOCAL 6847a2631fcSmrgVERSION 6857a2631fcSmrgPACKAGE 6867a2631fcSmrgCYGPATH_W 6877a2631fcSmrgam__isrc 6887a2631fcSmrgINSTALL_DATA 6897a2631fcSmrgINSTALL_SCRIPT 6907a2631fcSmrgINSTALL_PROGRAM 6917a2631fcSmrgtarget_alias 6927a2631fcSmrghost_alias 6937a2631fcSmrgbuild_alias 6947a2631fcSmrgLIBS 6957a2631fcSmrgECHO_T 6967a2631fcSmrgECHO_N 6977a2631fcSmrgECHO_C 6987a2631fcSmrgDEFS 6997a2631fcSmrgmandir 7007a2631fcSmrglocaledir 7017a2631fcSmrglibdir 7027a2631fcSmrgpsdir 7037a2631fcSmrgpdfdir 7047a2631fcSmrgdvidir 7057a2631fcSmrghtmldir 7067a2631fcSmrginfodir 7077a2631fcSmrgdocdir 7087a2631fcSmrgoldincludedir 7097a2631fcSmrgincludedir 7107a2631fcSmrglocalstatedir 7117a2631fcSmrgsharedstatedir 7127a2631fcSmrgsysconfdir 7137a2631fcSmrgdatadir 7147a2631fcSmrgdatarootdir 7157a2631fcSmrglibexecdir 7167a2631fcSmrgsbindir 7177a2631fcSmrgbindir 7187a2631fcSmrgprogram_transform_name 7197a2631fcSmrgprefix 7207a2631fcSmrgexec_prefix 7217a2631fcSmrgPACKAGE_URL 7227a2631fcSmrgPACKAGE_BUGREPORT 7237a2631fcSmrgPACKAGE_STRING 7247a2631fcSmrgPACKAGE_VERSION 7257a2631fcSmrgPACKAGE_TARNAME 7267a2631fcSmrgPACKAGE_NAME 7277a2631fcSmrgPATH_SEPARATOR 7287a2631fcSmrgSHELL' 7293e747e6dSmrgac_subst_files='' 7307a2631fcSmrgac_user_opts=' 7317a2631fcSmrgenable_option_checking 7327a2631fcSmrgenable_maintainer_mode 7337a2631fcSmrgenable_dependency_tracking 7347a2631fcSmrgenable_strict_compilation 7357a2631fcSmrgenable_silent_rules 7367a2631fcSmrg' 7373e747e6dSmrg ac_precious_vars='build_alias 7383e747e6dSmrghost_alias 7393e747e6dSmrgtarget_alias 7403e747e6dSmrgCC 7413e747e6dSmrgCFLAGS 7423e747e6dSmrgLDFLAGS 7433e747e6dSmrgLIBS 7443e747e6dSmrgCPPFLAGS 7457a2631fcSmrgCPP 7467a2631fcSmrgPKG_CONFIG 7473e747e6dSmrgYACC 7483e747e6dSmrgYFLAGS 7493e747e6dSmrgTWM_CFLAGS 7503e747e6dSmrgTWM_LIBS' 7513e747e6dSmrg 7523e747e6dSmrg 7533e747e6dSmrg# Initialize some variables set by options. 7543e747e6dSmrgac_init_help= 7553e747e6dSmrgac_init_version=false 7567a2631fcSmrgac_unrecognized_opts= 7577a2631fcSmrgac_unrecognized_sep= 7583e747e6dSmrg# The variables have the same names as the options, with 7593e747e6dSmrg# dashes changed to underlines. 7603e747e6dSmrgcache_file=/dev/null 7613e747e6dSmrgexec_prefix=NONE 7623e747e6dSmrgno_create= 7633e747e6dSmrgno_recursion= 7643e747e6dSmrgprefix=NONE 7653e747e6dSmrgprogram_prefix=NONE 7663e747e6dSmrgprogram_suffix=NONE 7673e747e6dSmrgprogram_transform_name=s,x,x, 7683e747e6dSmrgsilent= 7693e747e6dSmrgsite= 7703e747e6dSmrgsrcdir= 7713e747e6dSmrgverbose= 7723e747e6dSmrgx_includes=NONE 7733e747e6dSmrgx_libraries=NONE 7743e747e6dSmrg 7753e747e6dSmrg# Installation directory options. 7763e747e6dSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7773e747e6dSmrg# and all the variables that are supposed to be based on exec_prefix 7783e747e6dSmrg# by default will actually change. 7793e747e6dSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 7803e747e6dSmrg# (The list follows the same order as the GNU Coding Standards.) 7813e747e6dSmrgbindir='${exec_prefix}/bin' 7823e747e6dSmrgsbindir='${exec_prefix}/sbin' 7833e747e6dSmrglibexecdir='${exec_prefix}/libexec' 7843e747e6dSmrgdatarootdir='${prefix}/share' 7853e747e6dSmrgdatadir='${datarootdir}' 7863e747e6dSmrgsysconfdir='${prefix}/etc' 7873e747e6dSmrgsharedstatedir='${prefix}/com' 7883e747e6dSmrglocalstatedir='${prefix}/var' 7893e747e6dSmrgincludedir='${prefix}/include' 7903e747e6dSmrgoldincludedir='/usr/include' 7913e747e6dSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 7923e747e6dSmrginfodir='${datarootdir}/info' 7933e747e6dSmrghtmldir='${docdir}' 7943e747e6dSmrgdvidir='${docdir}' 7953e747e6dSmrgpdfdir='${docdir}' 7963e747e6dSmrgpsdir='${docdir}' 7973e747e6dSmrglibdir='${exec_prefix}/lib' 7983e747e6dSmrglocaledir='${datarootdir}/locale' 7993e747e6dSmrgmandir='${datarootdir}/man' 8003e747e6dSmrg 8013e747e6dSmrgac_prev= 8023e747e6dSmrgac_dashdash= 8033e747e6dSmrgfor ac_option 8043e747e6dSmrgdo 8053e747e6dSmrg # If the previous option needs an argument, assign it. 8063e747e6dSmrg if test -n "$ac_prev"; then 8073e747e6dSmrg eval $ac_prev=\$ac_option 8083e747e6dSmrg ac_prev= 8093e747e6dSmrg continue 8103e747e6dSmrg fi 8113e747e6dSmrg 8123e747e6dSmrg case $ac_option in 8137a2631fcSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8147a2631fcSmrg *=) ac_optarg= ;; 8157a2631fcSmrg *) ac_optarg=yes ;; 8163e747e6dSmrg esac 8173e747e6dSmrg 8183e747e6dSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 8193e747e6dSmrg 8203e747e6dSmrg case $ac_dashdash$ac_option in 8213e747e6dSmrg --) 8223e747e6dSmrg ac_dashdash=yes ;; 8233e747e6dSmrg 8243e747e6dSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8253e747e6dSmrg ac_prev=bindir ;; 8263e747e6dSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8273e747e6dSmrg bindir=$ac_optarg ;; 8283e747e6dSmrg 8293e747e6dSmrg -build | --build | --buil | --bui | --bu) 8303e747e6dSmrg ac_prev=build_alias ;; 8313e747e6dSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8323e747e6dSmrg build_alias=$ac_optarg ;; 8333e747e6dSmrg 8343e747e6dSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8353e747e6dSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8363e747e6dSmrg ac_prev=cache_file ;; 8373e747e6dSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8383e747e6dSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8393e747e6dSmrg cache_file=$ac_optarg ;; 8403e747e6dSmrg 8413e747e6dSmrg --config-cache | -C) 8423e747e6dSmrg cache_file=config.cache ;; 8433e747e6dSmrg 8443e747e6dSmrg -datadir | --datadir | --datadi | --datad) 8453e747e6dSmrg ac_prev=datadir ;; 8463e747e6dSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8473e747e6dSmrg datadir=$ac_optarg ;; 8483e747e6dSmrg 8493e747e6dSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 8503e747e6dSmrg | --dataroo | --dataro | --datar) 8513e747e6dSmrg ac_prev=datarootdir ;; 8523e747e6dSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 8533e747e6dSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 8543e747e6dSmrg datarootdir=$ac_optarg ;; 8553e747e6dSmrg 8563e747e6dSmrg -disable-* | --disable-*) 8577a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8583e747e6dSmrg # Reject names that are not valid shell variable names. 8597a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8607a2631fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 8617a2631fcSmrg ac_useropt_orig=$ac_useropt 8627a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8637a2631fcSmrg case $ac_user_opts in 8647a2631fcSmrg *" 8657a2631fcSmrg"enable_$ac_useropt" 8667a2631fcSmrg"*) ;; 8677a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 8687a2631fcSmrg ac_unrecognized_sep=', ';; 8697a2631fcSmrg esac 8707a2631fcSmrg eval enable_$ac_useropt=no ;; 8713e747e6dSmrg 8723e747e6dSmrg -docdir | --docdir | --docdi | --doc | --do) 8733e747e6dSmrg ac_prev=docdir ;; 8743e747e6dSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 8753e747e6dSmrg docdir=$ac_optarg ;; 8763e747e6dSmrg 8773e747e6dSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 8783e747e6dSmrg ac_prev=dvidir ;; 8793e747e6dSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 8803e747e6dSmrg dvidir=$ac_optarg ;; 8813e747e6dSmrg 8823e747e6dSmrg -enable-* | --enable-*) 8837a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8843e747e6dSmrg # Reject names that are not valid shell variable names. 8857a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 8867a2631fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 8877a2631fcSmrg ac_useropt_orig=$ac_useropt 8887a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 8897a2631fcSmrg case $ac_user_opts in 8907a2631fcSmrg *" 8917a2631fcSmrg"enable_$ac_useropt" 8927a2631fcSmrg"*) ;; 8937a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 8947a2631fcSmrg ac_unrecognized_sep=', ';; 8957a2631fcSmrg esac 8967a2631fcSmrg eval enable_$ac_useropt=\$ac_optarg ;; 8973e747e6dSmrg 8983e747e6dSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 8993e747e6dSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9003e747e6dSmrg | --exec | --exe | --ex) 9013e747e6dSmrg ac_prev=exec_prefix ;; 9023e747e6dSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9033e747e6dSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9043e747e6dSmrg | --exec=* | --exe=* | --ex=*) 9053e747e6dSmrg exec_prefix=$ac_optarg ;; 9063e747e6dSmrg 9073e747e6dSmrg -gas | --gas | --ga | --g) 9083e747e6dSmrg # Obsolete; use --with-gas. 9093e747e6dSmrg with_gas=yes ;; 9103e747e6dSmrg 9113e747e6dSmrg -help | --help | --hel | --he | -h) 9123e747e6dSmrg ac_init_help=long ;; 9133e747e6dSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9143e747e6dSmrg ac_init_help=recursive ;; 9153e747e6dSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9163e747e6dSmrg ac_init_help=short ;; 9173e747e6dSmrg 9183e747e6dSmrg -host | --host | --hos | --ho) 9193e747e6dSmrg ac_prev=host_alias ;; 9203e747e6dSmrg -host=* | --host=* | --hos=* | --ho=*) 9213e747e6dSmrg host_alias=$ac_optarg ;; 9223e747e6dSmrg 9233e747e6dSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 9243e747e6dSmrg ac_prev=htmldir ;; 9253e747e6dSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 9263e747e6dSmrg | --ht=*) 9273e747e6dSmrg htmldir=$ac_optarg ;; 9283e747e6dSmrg 9293e747e6dSmrg -includedir | --includedir | --includedi | --included | --include \ 9303e747e6dSmrg | --includ | --inclu | --incl | --inc) 9313e747e6dSmrg ac_prev=includedir ;; 9323e747e6dSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9333e747e6dSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9343e747e6dSmrg includedir=$ac_optarg ;; 9353e747e6dSmrg 9363e747e6dSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9373e747e6dSmrg ac_prev=infodir ;; 9383e747e6dSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9393e747e6dSmrg infodir=$ac_optarg ;; 9403e747e6dSmrg 9413e747e6dSmrg -libdir | --libdir | --libdi | --libd) 9423e747e6dSmrg ac_prev=libdir ;; 9433e747e6dSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9443e747e6dSmrg libdir=$ac_optarg ;; 9453e747e6dSmrg 9463e747e6dSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9473e747e6dSmrg | --libexe | --libex | --libe) 9483e747e6dSmrg ac_prev=libexecdir ;; 9493e747e6dSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9503e747e6dSmrg | --libexe=* | --libex=* | --libe=*) 9513e747e6dSmrg libexecdir=$ac_optarg ;; 9523e747e6dSmrg 9533e747e6dSmrg -localedir | --localedir | --localedi | --localed | --locale) 9543e747e6dSmrg ac_prev=localedir ;; 9553e747e6dSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 9563e747e6dSmrg localedir=$ac_optarg ;; 9573e747e6dSmrg 9583e747e6dSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 9593e747e6dSmrg | --localstate | --localstat | --localsta | --localst | --locals) 9603e747e6dSmrg ac_prev=localstatedir ;; 9613e747e6dSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 9623e747e6dSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9633e747e6dSmrg localstatedir=$ac_optarg ;; 9643e747e6dSmrg 9653e747e6dSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9663e747e6dSmrg ac_prev=mandir ;; 9673e747e6dSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9683e747e6dSmrg mandir=$ac_optarg ;; 9693e747e6dSmrg 9703e747e6dSmrg -nfp | --nfp | --nf) 9713e747e6dSmrg # Obsolete; use --without-fp. 9723e747e6dSmrg with_fp=no ;; 9733e747e6dSmrg 9743e747e6dSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9753e747e6dSmrg | --no-cr | --no-c | -n) 9763e747e6dSmrg no_create=yes ;; 9773e747e6dSmrg 9783e747e6dSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9793e747e6dSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9803e747e6dSmrg no_recursion=yes ;; 9813e747e6dSmrg 9823e747e6dSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9833e747e6dSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9843e747e6dSmrg | --oldin | --oldi | --old | --ol | --o) 9853e747e6dSmrg ac_prev=oldincludedir ;; 9863e747e6dSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9873e747e6dSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9883e747e6dSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9893e747e6dSmrg oldincludedir=$ac_optarg ;; 9903e747e6dSmrg 9913e747e6dSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9923e747e6dSmrg ac_prev=prefix ;; 9933e747e6dSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 9943e747e6dSmrg prefix=$ac_optarg ;; 9953e747e6dSmrg 9963e747e6dSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 9973e747e6dSmrg | --program-pre | --program-pr | --program-p) 9983e747e6dSmrg ac_prev=program_prefix ;; 9993e747e6dSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10003e747e6dSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10013e747e6dSmrg program_prefix=$ac_optarg ;; 10023e747e6dSmrg 10033e747e6dSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10043e747e6dSmrg | --program-suf | --program-su | --program-s) 10053e747e6dSmrg ac_prev=program_suffix ;; 10063e747e6dSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10073e747e6dSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10083e747e6dSmrg program_suffix=$ac_optarg ;; 10093e747e6dSmrg 10103e747e6dSmrg -program-transform-name | --program-transform-name \ 10113e747e6dSmrg | --program-transform-nam | --program-transform-na \ 10123e747e6dSmrg | --program-transform-n | --program-transform- \ 10133e747e6dSmrg | --program-transform | --program-transfor \ 10143e747e6dSmrg | --program-transfo | --program-transf \ 10153e747e6dSmrg | --program-trans | --program-tran \ 10163e747e6dSmrg | --progr-tra | --program-tr | --program-t) 10173e747e6dSmrg ac_prev=program_transform_name ;; 10183e747e6dSmrg -program-transform-name=* | --program-transform-name=* \ 10193e747e6dSmrg | --program-transform-nam=* | --program-transform-na=* \ 10203e747e6dSmrg | --program-transform-n=* | --program-transform-=* \ 10213e747e6dSmrg | --program-transform=* | --program-transfor=* \ 10223e747e6dSmrg | --program-transfo=* | --program-transf=* \ 10233e747e6dSmrg | --program-trans=* | --program-tran=* \ 10243e747e6dSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 10253e747e6dSmrg program_transform_name=$ac_optarg ;; 10263e747e6dSmrg 10273e747e6dSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 10283e747e6dSmrg ac_prev=pdfdir ;; 10293e747e6dSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 10303e747e6dSmrg pdfdir=$ac_optarg ;; 10313e747e6dSmrg 10323e747e6dSmrg -psdir | --psdir | --psdi | --psd | --ps) 10333e747e6dSmrg ac_prev=psdir ;; 10343e747e6dSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 10353e747e6dSmrg psdir=$ac_optarg ;; 10363e747e6dSmrg 10373e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10383e747e6dSmrg | -silent | --silent | --silen | --sile | --sil) 10393e747e6dSmrg silent=yes ;; 10403e747e6dSmrg 10413e747e6dSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10423e747e6dSmrg ac_prev=sbindir ;; 10433e747e6dSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10443e747e6dSmrg | --sbi=* | --sb=*) 10453e747e6dSmrg sbindir=$ac_optarg ;; 10463e747e6dSmrg 10473e747e6dSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10483e747e6dSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10493e747e6dSmrg | --sharedst | --shareds | --shared | --share | --shar \ 10503e747e6dSmrg | --sha | --sh) 10513e747e6dSmrg ac_prev=sharedstatedir ;; 10523e747e6dSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10533e747e6dSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10543e747e6dSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10553e747e6dSmrg | --sha=* | --sh=*) 10563e747e6dSmrg sharedstatedir=$ac_optarg ;; 10573e747e6dSmrg 10583e747e6dSmrg -site | --site | --sit) 10593e747e6dSmrg ac_prev=site ;; 10603e747e6dSmrg -site=* | --site=* | --sit=*) 10613e747e6dSmrg site=$ac_optarg ;; 10623e747e6dSmrg 10633e747e6dSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10643e747e6dSmrg ac_prev=srcdir ;; 10653e747e6dSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10663e747e6dSmrg srcdir=$ac_optarg ;; 10673e747e6dSmrg 10683e747e6dSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10693e747e6dSmrg | --syscon | --sysco | --sysc | --sys | --sy) 10703e747e6dSmrg ac_prev=sysconfdir ;; 10713e747e6dSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10723e747e6dSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10733e747e6dSmrg sysconfdir=$ac_optarg ;; 10743e747e6dSmrg 10753e747e6dSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 10763e747e6dSmrg ac_prev=target_alias ;; 10773e747e6dSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10783e747e6dSmrg target_alias=$ac_optarg ;; 10793e747e6dSmrg 10803e747e6dSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10813e747e6dSmrg verbose=yes ;; 10823e747e6dSmrg 10833e747e6dSmrg -version | --version | --versio | --versi | --vers | -V) 10843e747e6dSmrg ac_init_version=: ;; 10853e747e6dSmrg 10863e747e6dSmrg -with-* | --with-*) 10877a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10883e747e6dSmrg # Reject names that are not valid shell variable names. 10897a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 10907a2631fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 10917a2631fcSmrg ac_useropt_orig=$ac_useropt 10927a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 10937a2631fcSmrg case $ac_user_opts in 10947a2631fcSmrg *" 10957a2631fcSmrg"with_$ac_useropt" 10967a2631fcSmrg"*) ;; 10977a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 10987a2631fcSmrg ac_unrecognized_sep=', ';; 10997a2631fcSmrg esac 11007a2631fcSmrg eval with_$ac_useropt=\$ac_optarg ;; 11013e747e6dSmrg 11023e747e6dSmrg -without-* | --without-*) 11037a2631fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11043e747e6dSmrg # Reject names that are not valid shell variable names. 11057a2631fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11067a2631fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 11077a2631fcSmrg ac_useropt_orig=$ac_useropt 11087a2631fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11097a2631fcSmrg case $ac_user_opts in 11107a2631fcSmrg *" 11117a2631fcSmrg"with_$ac_useropt" 11127a2631fcSmrg"*) ;; 11137a2631fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11147a2631fcSmrg ac_unrecognized_sep=', ';; 11157a2631fcSmrg esac 11167a2631fcSmrg eval with_$ac_useropt=no ;; 11173e747e6dSmrg 11183e747e6dSmrg --x) 11193e747e6dSmrg # Obsolete; use --with-x. 11203e747e6dSmrg with_x=yes ;; 11213e747e6dSmrg 11223e747e6dSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11233e747e6dSmrg | --x-incl | --x-inc | --x-in | --x-i) 11243e747e6dSmrg ac_prev=x_includes ;; 11253e747e6dSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11263e747e6dSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11273e747e6dSmrg x_includes=$ac_optarg ;; 11283e747e6dSmrg 11293e747e6dSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11303e747e6dSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11313e747e6dSmrg ac_prev=x_libraries ;; 11323e747e6dSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11333e747e6dSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11343e747e6dSmrg x_libraries=$ac_optarg ;; 11353e747e6dSmrg 11367a2631fcSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 11377a2631fcSmrgTry \`$0 --help' for more information" 11383e747e6dSmrg ;; 11393e747e6dSmrg 11403e747e6dSmrg *=*) 11413e747e6dSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11423e747e6dSmrg # Reject names that are not valid shell variable names. 11437a2631fcSmrg case $ac_envvar in #( 11447a2631fcSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 11457a2631fcSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 11467a2631fcSmrg esac 11473e747e6dSmrg eval $ac_envvar=\$ac_optarg 11483e747e6dSmrg export $ac_envvar ;; 11493e747e6dSmrg 11503e747e6dSmrg *) 11513e747e6dSmrg # FIXME: should be removed in autoconf 3.0. 11527a2631fcSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11533e747e6dSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 11547a2631fcSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 11557a2631fcSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11563e747e6dSmrg ;; 11573e747e6dSmrg 11583e747e6dSmrg esac 11593e747e6dSmrgdone 11603e747e6dSmrg 11613e747e6dSmrgif test -n "$ac_prev"; then 11623e747e6dSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 11637a2631fcSmrg as_fn_error $? "missing argument to $ac_option" 11647a2631fcSmrgfi 11657a2631fcSmrg 11667a2631fcSmrgif test -n "$ac_unrecognized_opts"; then 11677a2631fcSmrg case $enable_option_checking in 11687a2631fcSmrg no) ;; 11697a2631fcSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 11707a2631fcSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11717a2631fcSmrg esac 11723e747e6dSmrgfi 11733e747e6dSmrg 11747a2631fcSmrg# Check all directory arguments for consistency. 11753e747e6dSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 11763e747e6dSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 11773e747e6dSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 11783e747e6dSmrg libdir localedir mandir 11793e747e6dSmrgdo 11803e747e6dSmrg eval ac_val=\$$ac_var 11817a2631fcSmrg # Remove trailing slashes. 11827a2631fcSmrg case $ac_val in 11837a2631fcSmrg */ ) 11847a2631fcSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 11857a2631fcSmrg eval $ac_var=\$ac_val;; 11867a2631fcSmrg esac 11877a2631fcSmrg # Be sure to have absolute directory names. 11883e747e6dSmrg case $ac_val in 11893e747e6dSmrg [\\/$]* | ?:[\\/]* ) continue;; 11903e747e6dSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11913e747e6dSmrg esac 11927a2631fcSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 11933e747e6dSmrgdone 11943e747e6dSmrg 11953e747e6dSmrg# There might be people who depend on the old broken behavior: `$host' 11963e747e6dSmrg# used to hold the argument of --host etc. 11973e747e6dSmrg# FIXME: To remove some day. 11983e747e6dSmrgbuild=$build_alias 11993e747e6dSmrghost=$host_alias 12003e747e6dSmrgtarget=$target_alias 12013e747e6dSmrg 12023e747e6dSmrg# FIXME: To remove some day. 12033e747e6dSmrgif test "x$host_alias" != x; then 12043e747e6dSmrg if test "x$build_alias" = x; then 12053e747e6dSmrg cross_compiling=maybe 12067a2631fcSmrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 12077a2631fcSmrg If a cross compiler is detected then cross compile mode will be used" >&2 12083e747e6dSmrg elif test "x$build_alias" != "x$host_alias"; then 12093e747e6dSmrg cross_compiling=yes 12103e747e6dSmrg fi 12113e747e6dSmrgfi 12123e747e6dSmrg 12133e747e6dSmrgac_tool_prefix= 12143e747e6dSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12153e747e6dSmrg 12163e747e6dSmrgtest "$silent" = yes && exec 6>/dev/null 12173e747e6dSmrg 12183e747e6dSmrg 12193e747e6dSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 12203e747e6dSmrgac_ls_di=`ls -di .` && 12213e747e6dSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12227a2631fcSmrg as_fn_error $? "working directory cannot be determined" 12233e747e6dSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12247a2631fcSmrg as_fn_error $? "pwd does not report name of working directory" 12253e747e6dSmrg 12263e747e6dSmrg 12273e747e6dSmrg# Find the source files, if location was not specified. 12283e747e6dSmrgif test -z "$srcdir"; then 12293e747e6dSmrg ac_srcdir_defaulted=yes 12303e747e6dSmrg # Try the directory containing this script, then the parent directory. 12317a2631fcSmrg ac_confdir=`$as_dirname -- "$as_myself" || 12327a2631fcSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12337a2631fcSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12347a2631fcSmrg X"$as_myself" : 'X\(//\)$' \| \ 12357a2631fcSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12367a2631fcSmrg$as_echo X"$as_myself" | 12373e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12383e747e6dSmrg s//\1/ 12393e747e6dSmrg q 12403e747e6dSmrg } 12413e747e6dSmrg /^X\(\/\/\)[^/].*/{ 12423e747e6dSmrg s//\1/ 12433e747e6dSmrg q 12443e747e6dSmrg } 12453e747e6dSmrg /^X\(\/\/\)$/{ 12463e747e6dSmrg s//\1/ 12473e747e6dSmrg q 12483e747e6dSmrg } 12493e747e6dSmrg /^X\(\/\).*/{ 12503e747e6dSmrg s//\1/ 12513e747e6dSmrg q 12523e747e6dSmrg } 12533e747e6dSmrg s/.*/./; q'` 12543e747e6dSmrg srcdir=$ac_confdir 12553e747e6dSmrg if test ! -r "$srcdir/$ac_unique_file"; then 12563e747e6dSmrg srcdir=.. 12573e747e6dSmrg fi 12583e747e6dSmrgelse 12593e747e6dSmrg ac_srcdir_defaulted=no 12603e747e6dSmrgfi 12613e747e6dSmrgif test ! -r "$srcdir/$ac_unique_file"; then 12623e747e6dSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 12637a2631fcSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12643e747e6dSmrgfi 12653e747e6dSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 12663e747e6dSmrgac_abs_confdir=`( 12677a2631fcSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 12683e747e6dSmrg pwd)` 12693e747e6dSmrg# When building in place, set srcdir=. 12703e747e6dSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 12713e747e6dSmrg srcdir=. 12723e747e6dSmrgfi 12733e747e6dSmrg# Remove unnecessary trailing slashes from srcdir. 12743e747e6dSmrg# Double slashes in file names in object file debugging info 12753e747e6dSmrg# mess up M-x gdb in Emacs. 12763e747e6dSmrgcase $srcdir in 12773e747e6dSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 12783e747e6dSmrgesac 12793e747e6dSmrgfor ac_var in $ac_precious_vars; do 12803e747e6dSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 12813e747e6dSmrg eval ac_env_${ac_var}_value=\$${ac_var} 12823e747e6dSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 12833e747e6dSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 12843e747e6dSmrgdone 12853e747e6dSmrg 12863e747e6dSmrg# 12873e747e6dSmrg# Report the --help message. 12883e747e6dSmrg# 12893e747e6dSmrgif test "$ac_init_help" = "long"; then 12903e747e6dSmrg # Omit some internal or obsolete options to make the list less imposing. 12913e747e6dSmrg # This message is too long to be a string in the A/UX 3.1 sh. 12923e747e6dSmrg cat <<_ACEOF 12937a2631fcSmrg\`configure' configures twm 1.0.5 to adapt to many kinds of systems. 12943e747e6dSmrg 12953e747e6dSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 12963e747e6dSmrg 12973e747e6dSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 12983e747e6dSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 12993e747e6dSmrg 13003e747e6dSmrgDefaults for the options are specified in brackets. 13013e747e6dSmrg 13023e747e6dSmrgConfiguration: 13033e747e6dSmrg -h, --help display this help and exit 13043e747e6dSmrg --help=short display options specific to this package 13053e747e6dSmrg --help=recursive display the short help of all the included packages 13063e747e6dSmrg -V, --version display version information and exit 13077a2631fcSmrg -q, --quiet, --silent do not print \`checking ...' messages 13083e747e6dSmrg --cache-file=FILE cache test results in FILE [disabled] 13093e747e6dSmrg -C, --config-cache alias for \`--cache-file=config.cache' 13103e747e6dSmrg -n, --no-create do not create output files 13113e747e6dSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13123e747e6dSmrg 13133e747e6dSmrgInstallation directories: 13143e747e6dSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13157a2631fcSmrg [$ac_default_prefix] 13163e747e6dSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13177a2631fcSmrg [PREFIX] 13183e747e6dSmrg 13193e747e6dSmrgBy default, \`make install' will install all the files in 13203e747e6dSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13213e747e6dSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13223e747e6dSmrgfor instance \`--prefix=\$HOME'. 13233e747e6dSmrg 13243e747e6dSmrgFor better control, use the options below. 13253e747e6dSmrg 13263e747e6dSmrgFine tuning of the installation directories: 13277a2631fcSmrg --bindir=DIR user executables [EPREFIX/bin] 13287a2631fcSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13297a2631fcSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 13307a2631fcSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13317a2631fcSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13327a2631fcSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13337a2631fcSmrg --libdir=DIR object code libraries [EPREFIX/lib] 13347a2631fcSmrg --includedir=DIR C header files [PREFIX/include] 13357a2631fcSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13367a2631fcSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13377a2631fcSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 13387a2631fcSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 13397a2631fcSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 13407a2631fcSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 13417a2631fcSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/twm] 13427a2631fcSmrg --htmldir=DIR html documentation [DOCDIR] 13437a2631fcSmrg --dvidir=DIR dvi documentation [DOCDIR] 13447a2631fcSmrg --pdfdir=DIR pdf documentation [DOCDIR] 13457a2631fcSmrg --psdir=DIR ps documentation [DOCDIR] 13463e747e6dSmrg_ACEOF 13473e747e6dSmrg 13483e747e6dSmrg cat <<\_ACEOF 13493e747e6dSmrg 13503e747e6dSmrgProgram names: 13513e747e6dSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 13523e747e6dSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 13533e747e6dSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13543e747e6dSmrg 13553e747e6dSmrgSystem types: 13563e747e6dSmrg --build=BUILD configure for building on BUILD [guessed] 13573e747e6dSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13583e747e6dSmrg_ACEOF 13593e747e6dSmrgfi 13603e747e6dSmrg 13613e747e6dSmrgif test -n "$ac_init_help"; then 13623e747e6dSmrg case $ac_init_help in 13637a2631fcSmrg short | recursive ) echo "Configuration of twm 1.0.5:";; 13643e747e6dSmrg esac 13653e747e6dSmrg cat <<\_ACEOF 13663e747e6dSmrg 13673e747e6dSmrgOptional Features: 13687a2631fcSmrg --disable-option-checking ignore unrecognized --enable/--with options 13693e747e6dSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13703e747e6dSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13713e747e6dSmrg --enable-maintainer-mode enable make rules and dependencies not useful 13723e747e6dSmrg (and sometimes confusing) to the casual installer 13733e747e6dSmrg --disable-dependency-tracking speeds up one-time build 13743e747e6dSmrg --enable-dependency-tracking do not reject slow dependency extractors 13757a2631fcSmrg --enable-strict-compilation 13767a2631fcSmrg Enable all warnings from compiler and make them 13777a2631fcSmrg errors (default: disabled) 13787a2631fcSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 13797a2631fcSmrg --disable-silent-rules verbose build output (undo: `make V=0') 13803e747e6dSmrg 13813e747e6dSmrgSome influential environment variables: 13823e747e6dSmrg CC C compiler command 13833e747e6dSmrg CFLAGS C compiler flags 13843e747e6dSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 13853e747e6dSmrg nonstandard directory <lib dir> 13863e747e6dSmrg LIBS libraries to pass to the linker, e.g. -l<library> 13877a2631fcSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 13883e747e6dSmrg you have headers in a nonstandard directory <include dir> 13897a2631fcSmrg CPP C preprocessor 13907a2631fcSmrg PKG_CONFIG path to pkg-config utility 13917a2631fcSmrg YACC The `Yet Another Compiler Compiler' implementation to use. 13927a2631fcSmrg Defaults to the first program found out of: `bison -y', `byacc', 13937a2631fcSmrg `yacc'. 13943e747e6dSmrg YFLAGS The list of arguments that will be passed by default to $YACC. 13953e747e6dSmrg This script will default YFLAGS to the empty string to avoid a 13963e747e6dSmrg default value of `-d' given by some make applications. 13973e747e6dSmrg TWM_CFLAGS C compiler flags for TWM, overriding pkg-config 13983e747e6dSmrg TWM_LIBS linker flags for TWM, overriding pkg-config 13993e747e6dSmrg 14003e747e6dSmrgUse these variables to override the choices made by `configure' or to help 14013e747e6dSmrgit to find libraries and programs with nonstandard names/locations. 14023e747e6dSmrg 14033e747e6dSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14043e747e6dSmrg_ACEOF 14053e747e6dSmrgac_status=$? 14063e747e6dSmrgfi 14073e747e6dSmrg 14083e747e6dSmrgif test "$ac_init_help" = "recursive"; then 14093e747e6dSmrg # If there are subdirs, report their specific --help. 14103e747e6dSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 14117a2631fcSmrg test -d "$ac_dir" || 14127a2631fcSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 14137a2631fcSmrg continue 14143e747e6dSmrg ac_builddir=. 14153e747e6dSmrg 14163e747e6dSmrgcase "$ac_dir" in 14173e747e6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14183e747e6dSmrg*) 14197a2631fcSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14203e747e6dSmrg # A ".." for each directory in $ac_dir_suffix. 14217a2631fcSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14223e747e6dSmrg case $ac_top_builddir_sub in 14233e747e6dSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14243e747e6dSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14253e747e6dSmrg esac ;; 14263e747e6dSmrgesac 14273e747e6dSmrgac_abs_top_builddir=$ac_pwd 14283e747e6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 14293e747e6dSmrg# for backward compatibility: 14303e747e6dSmrgac_top_builddir=$ac_top_build_prefix 14313e747e6dSmrg 14323e747e6dSmrgcase $srcdir in 14333e747e6dSmrg .) # We are building in place. 14343e747e6dSmrg ac_srcdir=. 14353e747e6dSmrg ac_top_srcdir=$ac_top_builddir_sub 14363e747e6dSmrg ac_abs_top_srcdir=$ac_pwd ;; 14373e747e6dSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 14383e747e6dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 14393e747e6dSmrg ac_top_srcdir=$srcdir 14403e747e6dSmrg ac_abs_top_srcdir=$srcdir ;; 14413e747e6dSmrg *) # Relative name. 14423e747e6dSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14433e747e6dSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 14443e747e6dSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14453e747e6dSmrgesac 14463e747e6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14473e747e6dSmrg 14483e747e6dSmrg cd "$ac_dir" || { ac_status=$?; continue; } 14493e747e6dSmrg # Check for guested configure. 14503e747e6dSmrg if test -f "$ac_srcdir/configure.gnu"; then 14513e747e6dSmrg echo && 14523e747e6dSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 14533e747e6dSmrg elif test -f "$ac_srcdir/configure"; then 14543e747e6dSmrg echo && 14553e747e6dSmrg $SHELL "$ac_srcdir/configure" --help=recursive 14563e747e6dSmrg else 14577a2631fcSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 14583e747e6dSmrg fi || ac_status=$? 14593e747e6dSmrg cd "$ac_pwd" || { ac_status=$?; break; } 14603e747e6dSmrg done 14613e747e6dSmrgfi 14623e747e6dSmrg 14633e747e6dSmrgtest -n "$ac_init_help" && exit $ac_status 14643e747e6dSmrgif $ac_init_version; then 14653e747e6dSmrg cat <<\_ACEOF 14667a2631fcSmrgtwm configure 1.0.5 14677a2631fcSmrggenerated by GNU Autoconf 2.68 14683e747e6dSmrg 14697a2631fcSmrgCopyright (C) 2010 Free Software Foundation, Inc. 14703e747e6dSmrgThis configure script is free software; the Free Software Foundation 14713e747e6dSmrggives unlimited permission to copy, distribute and modify it. 14723e747e6dSmrg_ACEOF 14737a2631fcSmrg exit 14747a2631fcSmrgfi 14757a2631fcSmrg 14767a2631fcSmrg## ------------------------ ## 14777a2631fcSmrg## Autoconf initialization. ## 14787a2631fcSmrg## ------------------------ ## 14797a2631fcSmrg 14807a2631fcSmrg# ac_fn_c_try_compile LINENO 14817a2631fcSmrg# -------------------------- 14827a2631fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 14837a2631fcSmrgac_fn_c_try_compile () 14847a2631fcSmrg{ 14857a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14867a2631fcSmrg rm -f conftest.$ac_objext 14877a2631fcSmrg if { { ac_try="$ac_compile" 14887a2631fcSmrgcase "(($ac_try" in 14897a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14907a2631fcSmrg *) ac_try_echo=$ac_try;; 14917a2631fcSmrgesac 14927a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14937a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 14947a2631fcSmrg (eval "$ac_compile") 2>conftest.err 14957a2631fcSmrg ac_status=$? 14967a2631fcSmrg if test -s conftest.err; then 14977a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 14987a2631fcSmrg cat conftest.er1 >&5 14997a2631fcSmrg mv -f conftest.er1 conftest.err 15007a2631fcSmrg fi 15017a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15027a2631fcSmrg test $ac_status = 0; } && { 15037a2631fcSmrg test -z "$ac_c_werror_flag" || 15047a2631fcSmrg test ! -s conftest.err 15057a2631fcSmrg } && test -s conftest.$ac_objext; then : 15067a2631fcSmrg ac_retval=0 15077a2631fcSmrgelse 15087a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 15097a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 15107a2631fcSmrg 15117a2631fcSmrg ac_retval=1 15127a2631fcSmrgfi 15137a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15147a2631fcSmrg as_fn_set_status $ac_retval 15157a2631fcSmrg 15167a2631fcSmrg} # ac_fn_c_try_compile 15177a2631fcSmrg 15187a2631fcSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 15197a2631fcSmrg# --------------------------------------------- 15207a2631fcSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 15217a2631fcSmrg# accordingly. 15227a2631fcSmrgac_fn_c_check_decl () 15237a2631fcSmrg{ 15247a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15257a2631fcSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 15267a2631fcSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 15277a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 15287a2631fcSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 15297a2631fcSmrgif eval \${$3+:} false; then : 15307a2631fcSmrg $as_echo_n "(cached) " >&6 15317a2631fcSmrgelse 15327a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337a2631fcSmrg/* end confdefs.h. */ 15347a2631fcSmrg$4 15357a2631fcSmrgint 15367a2631fcSmrgmain () 15377a2631fcSmrg{ 15387a2631fcSmrg#ifndef $as_decl_name 15397a2631fcSmrg#ifdef __cplusplus 15407a2631fcSmrg (void) $as_decl_use; 15417a2631fcSmrg#else 15427a2631fcSmrg (void) $as_decl_name; 15437a2631fcSmrg#endif 15447a2631fcSmrg#endif 15457a2631fcSmrg 15467a2631fcSmrg ; 15477a2631fcSmrg return 0; 15487a2631fcSmrg} 15497a2631fcSmrg_ACEOF 15507a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 15517a2631fcSmrg eval "$3=yes" 15527a2631fcSmrgelse 15537a2631fcSmrg eval "$3=no" 15547a2631fcSmrgfi 15557a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15567a2631fcSmrgfi 15577a2631fcSmrgeval ac_res=\$$3 15587a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15597a2631fcSmrg$as_echo "$ac_res" >&6; } 15607a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15617a2631fcSmrg 15627a2631fcSmrg} # ac_fn_c_check_decl 15637a2631fcSmrg 15647a2631fcSmrg# ac_fn_c_try_cpp LINENO 15657a2631fcSmrg# ---------------------- 15667a2631fcSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 15677a2631fcSmrgac_fn_c_try_cpp () 15687a2631fcSmrg{ 15697a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15707a2631fcSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 15717a2631fcSmrgcase "(($ac_try" in 15727a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15737a2631fcSmrg *) ac_try_echo=$ac_try;; 15747a2631fcSmrgesac 15757a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15767a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 15777a2631fcSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 15787a2631fcSmrg ac_status=$? 15797a2631fcSmrg if test -s conftest.err; then 15807a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 15817a2631fcSmrg cat conftest.er1 >&5 15827a2631fcSmrg mv -f conftest.er1 conftest.err 15837a2631fcSmrg fi 15847a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15857a2631fcSmrg test $ac_status = 0; } > conftest.i && { 15867a2631fcSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15877a2631fcSmrg test ! -s conftest.err 15887a2631fcSmrg }; then : 15897a2631fcSmrg ac_retval=0 15907a2631fcSmrgelse 15917a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 15927a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 15937a2631fcSmrg 15947a2631fcSmrg ac_retval=1 15957a2631fcSmrgfi 15967a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 15977a2631fcSmrg as_fn_set_status $ac_retval 15987a2631fcSmrg 15997a2631fcSmrg} # ac_fn_c_try_cpp 16007a2631fcSmrg 16017a2631fcSmrg# ac_fn_c_try_run LINENO 16027a2631fcSmrg# ---------------------- 16037a2631fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16047a2631fcSmrg# that executables *can* be run. 16057a2631fcSmrgac_fn_c_try_run () 16067a2631fcSmrg{ 16077a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16087a2631fcSmrg if { { ac_try="$ac_link" 16097a2631fcSmrgcase "(($ac_try" in 16107a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16117a2631fcSmrg *) ac_try_echo=$ac_try;; 16127a2631fcSmrgesac 16137a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16147a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 16157a2631fcSmrg (eval "$ac_link") 2>&5 16167a2631fcSmrg ac_status=$? 16177a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16187a2631fcSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 16197a2631fcSmrg { { case "(($ac_try" in 16207a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16217a2631fcSmrg *) ac_try_echo=$ac_try;; 16227a2631fcSmrgesac 16237a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16247a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 16257a2631fcSmrg (eval "$ac_try") 2>&5 16267a2631fcSmrg ac_status=$? 16277a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16287a2631fcSmrg test $ac_status = 0; }; }; then : 16297a2631fcSmrg ac_retval=0 16307a2631fcSmrgelse 16317a2631fcSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 16327a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 16337a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 16347a2631fcSmrg 16357a2631fcSmrg ac_retval=$ac_status 16367a2631fcSmrgfi 16377a2631fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 16387a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16397a2631fcSmrg as_fn_set_status $ac_retval 16407a2631fcSmrg 16417a2631fcSmrg} # ac_fn_c_try_run 16427a2631fcSmrg 16437a2631fcSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 16447a2631fcSmrg# ------------------------------------------------------- 16457a2631fcSmrg# Tests whether HEADER exists and can be compiled using the include files in 16467a2631fcSmrg# INCLUDES, setting the cache variable VAR accordingly. 16477a2631fcSmrgac_fn_c_check_header_compile () 16487a2631fcSmrg{ 16497a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16507a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 16517a2631fcSmrg$as_echo_n "checking for $2... " >&6; } 16527a2631fcSmrgif eval \${$3+:} false; then : 16537a2631fcSmrg $as_echo_n "(cached) " >&6 16547a2631fcSmrgelse 16557a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16567a2631fcSmrg/* end confdefs.h. */ 16577a2631fcSmrg$4 16587a2631fcSmrg#include <$2> 16597a2631fcSmrg_ACEOF 16607a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 16617a2631fcSmrg eval "$3=yes" 16627a2631fcSmrgelse 16637a2631fcSmrg eval "$3=no" 16647a2631fcSmrgfi 16657a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16667a2631fcSmrgfi 16677a2631fcSmrgeval ac_res=\$$3 16687a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16697a2631fcSmrg$as_echo "$ac_res" >&6; } 16707a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16717a2631fcSmrg 16727a2631fcSmrg} # ac_fn_c_check_header_compile 16737a2631fcSmrg 16747a2631fcSmrg# ac_fn_c_try_link LINENO 16757a2631fcSmrg# ----------------------- 16767a2631fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 16777a2631fcSmrgac_fn_c_try_link () 16787a2631fcSmrg{ 16797a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16807a2631fcSmrg rm -f conftest.$ac_objext conftest$ac_exeext 16817a2631fcSmrg if { { ac_try="$ac_link" 16827a2631fcSmrgcase "(($ac_try" in 16837a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16847a2631fcSmrg *) ac_try_echo=$ac_try;; 16857a2631fcSmrgesac 16867a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16877a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 16887a2631fcSmrg (eval "$ac_link") 2>conftest.err 16897a2631fcSmrg ac_status=$? 16907a2631fcSmrg if test -s conftest.err; then 16917a2631fcSmrg grep -v '^ *+' conftest.err >conftest.er1 16927a2631fcSmrg cat conftest.er1 >&5 16937a2631fcSmrg mv -f conftest.er1 conftest.err 16947a2631fcSmrg fi 16957a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16967a2631fcSmrg test $ac_status = 0; } && { 16977a2631fcSmrg test -z "$ac_c_werror_flag" || 16987a2631fcSmrg test ! -s conftest.err 16997a2631fcSmrg } && test -s conftest$ac_exeext && { 17007a2631fcSmrg test "$cross_compiling" = yes || 17017a2631fcSmrg $as_test_x conftest$ac_exeext 17027a2631fcSmrg }; then : 17037a2631fcSmrg ac_retval=0 17047a2631fcSmrgelse 17057a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 17067a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 17077a2631fcSmrg 17087a2631fcSmrg ac_retval=1 17097a2631fcSmrgfi 17107a2631fcSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 17117a2631fcSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 17127a2631fcSmrg # interfere with the next link command; also delete a directory that is 17137a2631fcSmrg # left behind by Apple's compiler. We do this before executing the actions. 17147a2631fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17157a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17167a2631fcSmrg as_fn_set_status $ac_retval 17177a2631fcSmrg 17187a2631fcSmrg} # ac_fn_c_try_link 17197a2631fcSmrg 17207a2631fcSmrg# ac_fn_c_check_func LINENO FUNC VAR 17217a2631fcSmrg# ---------------------------------- 17227a2631fcSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 17237a2631fcSmrgac_fn_c_check_func () 17247a2631fcSmrg{ 17257a2631fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17267a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17277a2631fcSmrg$as_echo_n "checking for $2... " >&6; } 17287a2631fcSmrgif eval \${$3+:} false; then : 17297a2631fcSmrg $as_echo_n "(cached) " >&6 17307a2631fcSmrgelse 17317a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17327a2631fcSmrg/* end confdefs.h. */ 17337a2631fcSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 17347a2631fcSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17357a2631fcSmrg#define $2 innocuous_$2 17367a2631fcSmrg 17377a2631fcSmrg/* System header to define __stub macros and hopefully few prototypes, 17387a2631fcSmrg which can conflict with char $2 (); below. 17397a2631fcSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17407a2631fcSmrg <limits.h> exists even on freestanding compilers. */ 17417a2631fcSmrg 17427a2631fcSmrg#ifdef __STDC__ 17437a2631fcSmrg# include <limits.h> 17447a2631fcSmrg#else 17457a2631fcSmrg# include <assert.h> 17467a2631fcSmrg#endif 17477a2631fcSmrg 17487a2631fcSmrg#undef $2 17497a2631fcSmrg 17507a2631fcSmrg/* Override any GCC internal prototype to avoid an error. 17517a2631fcSmrg Use char because int might match the return type of a GCC 17527a2631fcSmrg builtin and then its argument prototype would still apply. */ 17537a2631fcSmrg#ifdef __cplusplus 17547a2631fcSmrgextern "C" 17557a2631fcSmrg#endif 17567a2631fcSmrgchar $2 (); 17577a2631fcSmrg/* The GNU C library defines this for functions which it implements 17587a2631fcSmrg to always fail with ENOSYS. Some functions are actually named 17597a2631fcSmrg something starting with __ and the normal name is an alias. */ 17607a2631fcSmrg#if defined __stub_$2 || defined __stub___$2 17617a2631fcSmrgchoke me 17627a2631fcSmrg#endif 17637a2631fcSmrg 17647a2631fcSmrgint 17657a2631fcSmrgmain () 17667a2631fcSmrg{ 17677a2631fcSmrgreturn $2 (); 17687a2631fcSmrg ; 17697a2631fcSmrg return 0; 17707a2631fcSmrg} 17717a2631fcSmrg_ACEOF 17727a2631fcSmrgif ac_fn_c_try_link "$LINENO"; then : 17737a2631fcSmrg eval "$3=yes" 17747a2631fcSmrgelse 17757a2631fcSmrg eval "$3=no" 17763e747e6dSmrgfi 17777a2631fcSmrgrm -f core conftest.err conftest.$ac_objext \ 17787a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 17797a2631fcSmrgfi 17807a2631fcSmrgeval ac_res=\$$3 17817a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17827a2631fcSmrg$as_echo "$ac_res" >&6; } 17837a2631fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17847a2631fcSmrg 17857a2631fcSmrg} # ac_fn_c_check_func 17863e747e6dSmrgcat >config.log <<_ACEOF 17873e747e6dSmrgThis file contains any messages produced by compilers while 17883e747e6dSmrgrunning configure, to aid debugging if configure makes a mistake. 17893e747e6dSmrg 17907a2631fcSmrgIt was created by twm $as_me 1.0.5, which was 17917a2631fcSmrggenerated by GNU Autoconf 2.68. Invocation command line was 17923e747e6dSmrg 17933e747e6dSmrg $ $0 $@ 17943e747e6dSmrg 17953e747e6dSmrg_ACEOF 17963e747e6dSmrgexec 5>>config.log 17973e747e6dSmrg{ 17983e747e6dSmrgcat <<_ASUNAME 17993e747e6dSmrg## --------- ## 18003e747e6dSmrg## Platform. ## 18013e747e6dSmrg## --------- ## 18023e747e6dSmrg 18033e747e6dSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 18043e747e6dSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 18053e747e6dSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 18063e747e6dSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 18073e747e6dSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 18083e747e6dSmrg 18093e747e6dSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18103e747e6dSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18113e747e6dSmrg 18123e747e6dSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18133e747e6dSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18143e747e6dSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 18153e747e6dSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18163e747e6dSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18173e747e6dSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18183e747e6dSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18193e747e6dSmrg 18203e747e6dSmrg_ASUNAME 18213e747e6dSmrg 18223e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18233e747e6dSmrgfor as_dir in $PATH 18243e747e6dSmrgdo 18253e747e6dSmrg IFS=$as_save_IFS 18263e747e6dSmrg test -z "$as_dir" && as_dir=. 18277a2631fcSmrg $as_echo "PATH: $as_dir" 18287a2631fcSmrg done 18293e747e6dSmrgIFS=$as_save_IFS 18303e747e6dSmrg 18313e747e6dSmrg} >&5 18323e747e6dSmrg 18333e747e6dSmrgcat >&5 <<_ACEOF 18343e747e6dSmrg 18353e747e6dSmrg 18363e747e6dSmrg## ----------- ## 18373e747e6dSmrg## Core tests. ## 18383e747e6dSmrg## ----------- ## 18393e747e6dSmrg 18403e747e6dSmrg_ACEOF 18413e747e6dSmrg 18423e747e6dSmrg 18433e747e6dSmrg# Keep a trace of the command line. 18443e747e6dSmrg# Strip out --no-create and --no-recursion so they do not pile up. 18453e747e6dSmrg# Strip out --silent because we don't want to record it for future runs. 18463e747e6dSmrg# Also quote any args containing shell meta-characters. 18473e747e6dSmrg# Make two passes to allow for proper duplicate-argument suppression. 18483e747e6dSmrgac_configure_args= 18493e747e6dSmrgac_configure_args0= 18503e747e6dSmrgac_configure_args1= 18513e747e6dSmrgac_must_keep_next=false 18523e747e6dSmrgfor ac_pass in 1 2 18533e747e6dSmrgdo 18543e747e6dSmrg for ac_arg 18553e747e6dSmrg do 18563e747e6dSmrg case $ac_arg in 18573e747e6dSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18583e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18593e747e6dSmrg | -silent | --silent | --silen | --sile | --sil) 18603e747e6dSmrg continue ;; 18613e747e6dSmrg *\'*) 18627a2631fcSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18633e747e6dSmrg esac 18643e747e6dSmrg case $ac_pass in 18657a2631fcSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18663e747e6dSmrg 2) 18677a2631fcSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 18683e747e6dSmrg if test $ac_must_keep_next = true; then 18693e747e6dSmrg ac_must_keep_next=false # Got value, back to normal. 18703e747e6dSmrg else 18713e747e6dSmrg case $ac_arg in 18723e747e6dSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18733e747e6dSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18743e747e6dSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18753e747e6dSmrg | -with-* | --with-* | -without-* | --without-* | --x) 18763e747e6dSmrg case "$ac_configure_args0 " in 18773e747e6dSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18783e747e6dSmrg esac 18793e747e6dSmrg ;; 18803e747e6dSmrg -* ) ac_must_keep_next=true ;; 18813e747e6dSmrg esac 18823e747e6dSmrg fi 18837a2631fcSmrg as_fn_append ac_configure_args " '$ac_arg'" 18843e747e6dSmrg ;; 18853e747e6dSmrg esac 18863e747e6dSmrg done 18873e747e6dSmrgdone 18887a2631fcSmrg{ ac_configure_args0=; unset ac_configure_args0;} 18897a2631fcSmrg{ ac_configure_args1=; unset ac_configure_args1;} 18903e747e6dSmrg 18913e747e6dSmrg# When interrupted or exit'd, cleanup temporary files, and complete 18923e747e6dSmrg# config.log. We remove comments because anyway the quotes in there 18933e747e6dSmrg# would cause problems or look ugly. 18943e747e6dSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 18953e747e6dSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 18963e747e6dSmrgtrap 'exit_status=$? 18973e747e6dSmrg # Save into config.log some information that might help in debugging. 18983e747e6dSmrg { 18993e747e6dSmrg echo 19003e747e6dSmrg 19017a2631fcSmrg $as_echo "## ---------------- ## 19023e747e6dSmrg## Cache variables. ## 19037a2631fcSmrg## ---------------- ##" 19043e747e6dSmrg echo 19053e747e6dSmrg # The following way of writing the cache mishandles newlines in values, 19063e747e6dSmrg( 19073e747e6dSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 19083e747e6dSmrg eval ac_val=\$$ac_var 19093e747e6dSmrg case $ac_val in #( 19103e747e6dSmrg *${as_nl}*) 19113e747e6dSmrg case $ac_var in #( 19127a2631fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19137a2631fcSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19143e747e6dSmrg esac 19153e747e6dSmrg case $ac_var in #( 19163e747e6dSmrg _ | IFS | as_nl) ;; #( 19177a2631fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19187a2631fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 19193e747e6dSmrg esac ;; 19203e747e6dSmrg esac 19213e747e6dSmrg done 19223e747e6dSmrg (set) 2>&1 | 19233e747e6dSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 19243e747e6dSmrg *${as_nl}ac_space=\ *) 19253e747e6dSmrg sed -n \ 19263e747e6dSmrg "s/'\''/'\''\\\\'\'''\''/g; 19273e747e6dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 19283e747e6dSmrg ;; #( 19293e747e6dSmrg *) 19303e747e6dSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19313e747e6dSmrg ;; 19323e747e6dSmrg esac | 19333e747e6dSmrg sort 19343e747e6dSmrg) 19353e747e6dSmrg echo 19363e747e6dSmrg 19377a2631fcSmrg $as_echo "## ----------------- ## 19383e747e6dSmrg## Output variables. ## 19397a2631fcSmrg## ----------------- ##" 19403e747e6dSmrg echo 19413e747e6dSmrg for ac_var in $ac_subst_vars 19423e747e6dSmrg do 19433e747e6dSmrg eval ac_val=\$$ac_var 19443e747e6dSmrg case $ac_val in 19457a2631fcSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19463e747e6dSmrg esac 19477a2631fcSmrg $as_echo "$ac_var='\''$ac_val'\''" 19483e747e6dSmrg done | sort 19493e747e6dSmrg echo 19503e747e6dSmrg 19513e747e6dSmrg if test -n "$ac_subst_files"; then 19527a2631fcSmrg $as_echo "## ------------------- ## 19533e747e6dSmrg## File substitutions. ## 19547a2631fcSmrg## ------------------- ##" 19553e747e6dSmrg echo 19563e747e6dSmrg for ac_var in $ac_subst_files 19573e747e6dSmrg do 19583e747e6dSmrg eval ac_val=\$$ac_var 19593e747e6dSmrg case $ac_val in 19607a2631fcSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 19613e747e6dSmrg esac 19627a2631fcSmrg $as_echo "$ac_var='\''$ac_val'\''" 19633e747e6dSmrg done | sort 19643e747e6dSmrg echo 19653e747e6dSmrg fi 19663e747e6dSmrg 19673e747e6dSmrg if test -s confdefs.h; then 19687a2631fcSmrg $as_echo "## ----------- ## 19693e747e6dSmrg## confdefs.h. ## 19707a2631fcSmrg## ----------- ##" 19713e747e6dSmrg echo 19723e747e6dSmrg cat confdefs.h 19733e747e6dSmrg echo 19743e747e6dSmrg fi 19753e747e6dSmrg test "$ac_signal" != 0 && 19767a2631fcSmrg $as_echo "$as_me: caught signal $ac_signal" 19777a2631fcSmrg $as_echo "$as_me: exit $exit_status" 19783e747e6dSmrg } >&5 19793e747e6dSmrg rm -f core *.core core.conftest.* && 19803e747e6dSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19813e747e6dSmrg exit $exit_status 19823e747e6dSmrg' 0 19833e747e6dSmrgfor ac_signal in 1 2 13 15; do 19847a2631fcSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 19853e747e6dSmrgdone 19863e747e6dSmrgac_signal=0 19873e747e6dSmrg 19883e747e6dSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 19893e747e6dSmrgrm -f -r conftest* confdefs.h 19903e747e6dSmrg 19917a2631fcSmrg$as_echo "/* confdefs.h */" > confdefs.h 19927a2631fcSmrg 19933e747e6dSmrg# Predefined preprocessor variables. 19943e747e6dSmrg 19953e747e6dSmrgcat >>confdefs.h <<_ACEOF 19963e747e6dSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 19973e747e6dSmrg_ACEOF 19983e747e6dSmrg 19993e747e6dSmrgcat >>confdefs.h <<_ACEOF 20003e747e6dSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 20013e747e6dSmrg_ACEOF 20023e747e6dSmrg 20033e747e6dSmrgcat >>confdefs.h <<_ACEOF 20043e747e6dSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 20053e747e6dSmrg_ACEOF 20063e747e6dSmrg 20073e747e6dSmrgcat >>confdefs.h <<_ACEOF 20083e747e6dSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 20093e747e6dSmrg_ACEOF 20103e747e6dSmrg 20113e747e6dSmrgcat >>confdefs.h <<_ACEOF 20123e747e6dSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 20133e747e6dSmrg_ACEOF 20143e747e6dSmrg 20157a2631fcSmrgcat >>confdefs.h <<_ACEOF 20167a2631fcSmrg#define PACKAGE_URL "$PACKAGE_URL" 20177a2631fcSmrg_ACEOF 20187a2631fcSmrg 20193e747e6dSmrg 20203e747e6dSmrg# Let the site file select an alternate cache file if it wants to. 20217a2631fcSmrg# Prefer an explicitly selected file to automatically selected ones. 20227a2631fcSmrgac_site_file1=NONE 20237a2631fcSmrgac_site_file2=NONE 20243e747e6dSmrgif test -n "$CONFIG_SITE"; then 20257a2631fcSmrg # We do not want a PATH search for config.site. 20267a2631fcSmrg case $CONFIG_SITE in #(( 20277a2631fcSmrg -*) ac_site_file1=./$CONFIG_SITE;; 20287a2631fcSmrg */*) ac_site_file1=$CONFIG_SITE;; 20297a2631fcSmrg *) ac_site_file1=./$CONFIG_SITE;; 20307a2631fcSmrg esac 20313e747e6dSmrgelif test "x$prefix" != xNONE; then 20327a2631fcSmrg ac_site_file1=$prefix/share/config.site 20337a2631fcSmrg ac_site_file2=$prefix/etc/config.site 20343e747e6dSmrgelse 20357a2631fcSmrg ac_site_file1=$ac_default_prefix/share/config.site 20367a2631fcSmrg ac_site_file2=$ac_default_prefix/etc/config.site 20373e747e6dSmrgfi 20387a2631fcSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 20393e747e6dSmrgdo 20407a2631fcSmrg test "x$ac_site_file" = xNONE && continue 20417a2631fcSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 20427a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 20437a2631fcSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 20443e747e6dSmrg sed 's/^/| /' "$ac_site_file" >&5 20457a2631fcSmrg . "$ac_site_file" \ 20467a2631fcSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20477a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20487a2631fcSmrgas_fn_error $? "failed to load site script $ac_site_file 20497a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 20503e747e6dSmrg fi 20513e747e6dSmrgdone 20523e747e6dSmrg 20533e747e6dSmrgif test -r "$cache_file"; then 20547a2631fcSmrg # Some versions of bash will fail to source /dev/null (special files 20557a2631fcSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 20567a2631fcSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 20577a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 20587a2631fcSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20593e747e6dSmrg case $cache_file in 20603e747e6dSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 20613e747e6dSmrg *) . "./$cache_file";; 20623e747e6dSmrg esac 20633e747e6dSmrg fi 20643e747e6dSmrgelse 20657a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 20667a2631fcSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20673e747e6dSmrg >$cache_file 20683e747e6dSmrgfi 20693e747e6dSmrg 20703e747e6dSmrg# Check that the precious variables saved in the cache have kept the same 20713e747e6dSmrg# value. 20723e747e6dSmrgac_cache_corrupted=false 20733e747e6dSmrgfor ac_var in $ac_precious_vars; do 20743e747e6dSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20753e747e6dSmrg eval ac_new_set=\$ac_env_${ac_var}_set 20763e747e6dSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 20773e747e6dSmrg eval ac_new_val=\$ac_env_${ac_var}_value 20783e747e6dSmrg case $ac_old_set,$ac_new_set in 20793e747e6dSmrg set,) 20807a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 20817a2631fcSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20823e747e6dSmrg ac_cache_corrupted=: ;; 20833e747e6dSmrg ,set) 20847a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 20857a2631fcSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 20863e747e6dSmrg ac_cache_corrupted=: ;; 20873e747e6dSmrg ,);; 20883e747e6dSmrg *) 20893e747e6dSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 20907a2631fcSmrg # differences in whitespace do not lead to failure. 20917a2631fcSmrg ac_old_val_w=`echo x $ac_old_val` 20927a2631fcSmrg ac_new_val_w=`echo x $ac_new_val` 20937a2631fcSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 20947a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 20957a2631fcSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 20967a2631fcSmrg ac_cache_corrupted=: 20977a2631fcSmrg else 20987a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 20997a2631fcSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 21007a2631fcSmrg eval $ac_var=\$ac_old_val 21017a2631fcSmrg fi 21027a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 21037a2631fcSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 21047a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 21057a2631fcSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 21063e747e6dSmrg fi;; 21073e747e6dSmrg esac 21083e747e6dSmrg # Pass precious variables to config.status. 21093e747e6dSmrg if test "$ac_new_set" = set; then 21103e747e6dSmrg case $ac_new_val in 21117a2631fcSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 21123e747e6dSmrg *) ac_arg=$ac_var=$ac_new_val ;; 21133e747e6dSmrg esac 21143e747e6dSmrg case " $ac_configure_args " in 21153e747e6dSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 21167a2631fcSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 21173e747e6dSmrg esac 21183e747e6dSmrg fi 21193e747e6dSmrgdone 21203e747e6dSmrgif $ac_cache_corrupted; then 21217a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21227a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21237a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 21247a2631fcSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 21257a2631fcSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 21263e747e6dSmrgfi 21277a2631fcSmrg## -------------------- ## 21287a2631fcSmrg## Main body of script. ## 21297a2631fcSmrg## -------------------- ## 21303e747e6dSmrg 21313e747e6dSmrgac_ext=c 21323e747e6dSmrgac_cpp='$CPP $CPPFLAGS' 21333e747e6dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21343e747e6dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21353e747e6dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 21363e747e6dSmrg 21373e747e6dSmrg 21387a2631fcSmrgam__api_version='1.11' 21393e747e6dSmrg 21403e747e6dSmrgac_aux_dir= 21413e747e6dSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 21423e747e6dSmrg if test -f "$ac_dir/install-sh"; then 21433e747e6dSmrg ac_aux_dir=$ac_dir 21443e747e6dSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 21453e747e6dSmrg break 21463e747e6dSmrg elif test -f "$ac_dir/install.sh"; then 21473e747e6dSmrg ac_aux_dir=$ac_dir 21483e747e6dSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 21493e747e6dSmrg break 21503e747e6dSmrg elif test -f "$ac_dir/shtool"; then 21513e747e6dSmrg ac_aux_dir=$ac_dir 21523e747e6dSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 21533e747e6dSmrg break 21543e747e6dSmrg fi 21553e747e6dSmrgdone 21563e747e6dSmrgif test -z "$ac_aux_dir"; then 21577a2631fcSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21583e747e6dSmrgfi 21593e747e6dSmrg 21603e747e6dSmrg# These three variables are undocumented and unsupported, 21613e747e6dSmrg# and are intended to be withdrawn in a future Autoconf release. 21623e747e6dSmrg# They can cause serious problems if a builder's source tree is in a directory 21633e747e6dSmrg# whose full name contains unusual characters. 21643e747e6dSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 21653e747e6dSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 21663e747e6dSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 21673e747e6dSmrg 21683e747e6dSmrg 21693e747e6dSmrg# Find a good install program. We prefer a C program (faster), 21703e747e6dSmrg# so one script is as good as another. But avoid the broken or 21713e747e6dSmrg# incompatible versions: 21723e747e6dSmrg# SysV /etc/install, /usr/sbin/install 21733e747e6dSmrg# SunOS /usr/etc/install 21743e747e6dSmrg# IRIX /sbin/install 21753e747e6dSmrg# AIX /bin/install 21763e747e6dSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21773e747e6dSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21783e747e6dSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21793e747e6dSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21803e747e6dSmrg# OS/2's system install, which has a completely different semantic 21813e747e6dSmrg# ./install, which can be erroneously created by make from ./install.sh. 21827a2631fcSmrg# Reject install programs that cannot install multiple files. 21837a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 21847a2631fcSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 21853e747e6dSmrgif test -z "$INSTALL"; then 21867a2631fcSmrgif ${ac_cv_path_install+:} false; then : 21877a2631fcSmrg $as_echo_n "(cached) " >&6 21883e747e6dSmrgelse 21893e747e6dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21903e747e6dSmrgfor as_dir in $PATH 21913e747e6dSmrgdo 21923e747e6dSmrg IFS=$as_save_IFS 21933e747e6dSmrg test -z "$as_dir" && as_dir=. 21947a2631fcSmrg # Account for people who put trailing slashes in PATH elements. 21957a2631fcSmrgcase $as_dir/ in #(( 21967a2631fcSmrg ./ | .// | /[cC]/* | \ 21973e747e6dSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 21987a2631fcSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 21993e747e6dSmrg /usr/ucb/* ) ;; 22003e747e6dSmrg *) 22013e747e6dSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 22023e747e6dSmrg # Don't use installbsd from OSF since it installs stuff as root 22033e747e6dSmrg # by default. 22043e747e6dSmrg for ac_prog in ginstall scoinst install; do 22053e747e6dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 22063e747e6dSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 22073e747e6dSmrg if test $ac_prog = install && 22083e747e6dSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22093e747e6dSmrg # AIX install. It has an incompatible calling convention. 22103e747e6dSmrg : 22113e747e6dSmrg elif test $ac_prog = install && 22123e747e6dSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22133e747e6dSmrg # program-specific install script used by HP pwplus--don't use. 22143e747e6dSmrg : 22153e747e6dSmrg else 22167a2631fcSmrg rm -rf conftest.one conftest.two conftest.dir 22177a2631fcSmrg echo one > conftest.one 22187a2631fcSmrg echo two > conftest.two 22197a2631fcSmrg mkdir conftest.dir 22207a2631fcSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 22217a2631fcSmrg test -s conftest.one && test -s conftest.two && 22227a2631fcSmrg test -s conftest.dir/conftest.one && 22237a2631fcSmrg test -s conftest.dir/conftest.two 22247a2631fcSmrg then 22257a2631fcSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 22267a2631fcSmrg break 3 22277a2631fcSmrg fi 22283e747e6dSmrg fi 22293e747e6dSmrg fi 22303e747e6dSmrg done 22313e747e6dSmrg done 22323e747e6dSmrg ;; 22333e747e6dSmrgesac 22347a2631fcSmrg 22357a2631fcSmrg done 22363e747e6dSmrgIFS=$as_save_IFS 22373e747e6dSmrg 22387a2631fcSmrgrm -rf conftest.one conftest.two conftest.dir 22393e747e6dSmrg 22403e747e6dSmrgfi 22413e747e6dSmrg if test "${ac_cv_path_install+set}" = set; then 22423e747e6dSmrg INSTALL=$ac_cv_path_install 22433e747e6dSmrg else 22443e747e6dSmrg # As a last resort, use the slow shell script. Don't cache a 22453e747e6dSmrg # value for INSTALL within a source directory, because that will 22463e747e6dSmrg # break other packages using the cache if that directory is 22473e747e6dSmrg # removed, or if the value is a relative name. 22483e747e6dSmrg INSTALL=$ac_install_sh 22493e747e6dSmrg fi 22503e747e6dSmrgfi 22517a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 22527a2631fcSmrg$as_echo "$INSTALL" >&6; } 22533e747e6dSmrg 22543e747e6dSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22553e747e6dSmrg# It thinks the first close brace ends the variable substitution. 22563e747e6dSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22573e747e6dSmrg 22583e747e6dSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22593e747e6dSmrg 22603e747e6dSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22613e747e6dSmrg 22627a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 22637a2631fcSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 22643e747e6dSmrg# Just in case 22653e747e6dSmrgsleep 1 22663e747e6dSmrgecho timestamp > conftest.file 22677a2631fcSmrg# Reject unsafe characters in $srcdir or the absolute working directory 22687a2631fcSmrg# name. Accept space and tab only in the latter. 22697a2631fcSmrgam_lf=' 22707a2631fcSmrg' 22717a2631fcSmrgcase `pwd` in 22727a2631fcSmrg *[\\\"\#\$\&\'\`$am_lf]*) 22737a2631fcSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 22747a2631fcSmrgesac 22757a2631fcSmrgcase $srcdir in 22767a2631fcSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 22777a2631fcSmrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 22787a2631fcSmrgesac 22797a2631fcSmrg 22803e747e6dSmrg# Do `set' in a subshell so we don't clobber the current shell's 22813e747e6dSmrg# arguments. Must try -L first in case configure is actually a 22823e747e6dSmrg# symlink; some systems play weird games with the mod time of symlinks 22833e747e6dSmrg# (eg FreeBSD returns the mod time of the symlink's containing 22843e747e6dSmrg# directory). 22853e747e6dSmrgif ( 22867a2631fcSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 22873e747e6dSmrg if test "$*" = "X"; then 22883e747e6dSmrg # -L didn't work. 22897a2631fcSmrg set X `ls -t "$srcdir/configure" conftest.file` 22903e747e6dSmrg fi 22913e747e6dSmrg rm -f conftest.file 22923e747e6dSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 22933e747e6dSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 22943e747e6dSmrg 22953e747e6dSmrg # If neither matched, then we have a broken ls. This can happen 22963e747e6dSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 22973e747e6dSmrg # broken ls alias from the environment. This has actually 22983e747e6dSmrg # happened. Such a system could not be considered "sane". 22997a2631fcSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 23007a2631fcSmrgalias in your environment" "$LINENO" 5 23013e747e6dSmrg fi 23023e747e6dSmrg 23033e747e6dSmrg test "$2" = conftest.file 23043e747e6dSmrg ) 23053e747e6dSmrgthen 23063e747e6dSmrg # Ok. 23073e747e6dSmrg : 23083e747e6dSmrgelse 23097a2631fcSmrg as_fn_error $? "newly created file is older than distributed files! 23107a2631fcSmrgCheck your system clock" "$LINENO" 5 23113e747e6dSmrgfi 23127a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23137a2631fcSmrg$as_echo "yes" >&6; } 23143e747e6dSmrgtest "$program_prefix" != NONE && 23153e747e6dSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 23163e747e6dSmrg# Use a double $ so make ignores it. 23173e747e6dSmrgtest "$program_suffix" != NONE && 23183e747e6dSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 23197a2631fcSmrg# Double any \ or $. 23203e747e6dSmrg# By default was `s,x,x', remove it if useless. 23217a2631fcSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 23227a2631fcSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 23233e747e6dSmrg 23243e747e6dSmrg# expand $ac_aux_dir to an absolute path 23253e747e6dSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 23263e747e6dSmrg 23277a2631fcSmrgif test x"${MISSING+set}" != xset; then 23287a2631fcSmrg case $am_aux_dir in 23297a2631fcSmrg *\ * | *\ *) 23307a2631fcSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 23317a2631fcSmrg *) 23327a2631fcSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 23337a2631fcSmrg esac 23347a2631fcSmrgfi 23353e747e6dSmrg# Use eval to expand $SHELL 23363e747e6dSmrgif eval "$MISSING --run true"; then 23373e747e6dSmrg am_missing_run="$MISSING --run " 23383e747e6dSmrgelse 23393e747e6dSmrg am_missing_run= 23407a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 23417a2631fcSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 23427a2631fcSmrgfi 23437a2631fcSmrg 23447a2631fcSmrgif test x"${install_sh}" != xset; then 23457a2631fcSmrg case $am_aux_dir in 23467a2631fcSmrg *\ * | *\ *) 23477a2631fcSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 23487a2631fcSmrg *) 23497a2631fcSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 23507a2631fcSmrg esac 23517a2631fcSmrgfi 23527a2631fcSmrg 23537a2631fcSmrg# Installed binaries are usually stripped using `strip' when the user 23547a2631fcSmrg# run `make install-strip'. However `strip' might not be the right 23557a2631fcSmrg# tool to use in cross-compilation environments, therefore Automake 23567a2631fcSmrg# will honor the `STRIP' environment variable to overrule this program. 23577a2631fcSmrgif test "$cross_compiling" != no; then 23587a2631fcSmrg if test -n "$ac_tool_prefix"; then 23597a2631fcSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 23607a2631fcSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 23617a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23627a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 23637a2631fcSmrgif ${ac_cv_prog_STRIP+:} false; then : 23647a2631fcSmrg $as_echo_n "(cached) " >&6 23657a2631fcSmrgelse 23667a2631fcSmrg if test -n "$STRIP"; then 23677a2631fcSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 23687a2631fcSmrgelse 23697a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23707a2631fcSmrgfor as_dir in $PATH 23717a2631fcSmrgdo 23727a2631fcSmrg IFS=$as_save_IFS 23737a2631fcSmrg test -z "$as_dir" && as_dir=. 23747a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 23757a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23767a2631fcSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 23777a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23787a2631fcSmrg break 2 23797a2631fcSmrg fi 23807a2631fcSmrgdone 23817a2631fcSmrg done 23827a2631fcSmrgIFS=$as_save_IFS 23837a2631fcSmrg 23847a2631fcSmrgfi 23857a2631fcSmrgfi 23867a2631fcSmrgSTRIP=$ac_cv_prog_STRIP 23877a2631fcSmrgif test -n "$STRIP"; then 23887a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 23897a2631fcSmrg$as_echo "$STRIP" >&6; } 23907a2631fcSmrgelse 23917a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23927a2631fcSmrg$as_echo "no" >&6; } 23937a2631fcSmrgfi 23947a2631fcSmrg 23957a2631fcSmrg 23967a2631fcSmrgfi 23977a2631fcSmrgif test -z "$ac_cv_prog_STRIP"; then 23987a2631fcSmrg ac_ct_STRIP=$STRIP 23997a2631fcSmrg # Extract the first word of "strip", so it can be a program name with args. 24007a2631fcSmrgset dummy strip; ac_word=$2 24017a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24027a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 24037a2631fcSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 24047a2631fcSmrg $as_echo_n "(cached) " >&6 24057a2631fcSmrgelse 24067a2631fcSmrg if test -n "$ac_ct_STRIP"; then 24077a2631fcSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 24087a2631fcSmrgelse 24097a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24107a2631fcSmrgfor as_dir in $PATH 24117a2631fcSmrgdo 24127a2631fcSmrg IFS=$as_save_IFS 24137a2631fcSmrg test -z "$as_dir" && as_dir=. 24147a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24157a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24167a2631fcSmrg ac_cv_prog_ac_ct_STRIP="strip" 24177a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24187a2631fcSmrg break 2 24197a2631fcSmrg fi 24207a2631fcSmrgdone 24217a2631fcSmrg done 24227a2631fcSmrgIFS=$as_save_IFS 24237a2631fcSmrg 24247a2631fcSmrgfi 24257a2631fcSmrgfi 24267a2631fcSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 24277a2631fcSmrgif test -n "$ac_ct_STRIP"; then 24287a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 24297a2631fcSmrg$as_echo "$ac_ct_STRIP" >&6; } 24307a2631fcSmrgelse 24317a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24327a2631fcSmrg$as_echo "no" >&6; } 24337a2631fcSmrgfi 24347a2631fcSmrg 24357a2631fcSmrg if test "x$ac_ct_STRIP" = x; then 24367a2631fcSmrg STRIP=":" 24377a2631fcSmrg else 24387a2631fcSmrg case $cross_compiling:$ac_tool_warned in 24397a2631fcSmrgyes:) 24407a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24417a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24427a2631fcSmrgac_tool_warned=yes ;; 24437a2631fcSmrgesac 24447a2631fcSmrg STRIP=$ac_ct_STRIP 24457a2631fcSmrg fi 24467a2631fcSmrgelse 24477a2631fcSmrg STRIP="$ac_cv_prog_STRIP" 24487a2631fcSmrgfi 24497a2631fcSmrg 24503e747e6dSmrgfi 24517a2631fcSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 24523e747e6dSmrg 24537a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 24547a2631fcSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 24553e747e6dSmrgif test -z "$MKDIR_P"; then 24567a2631fcSmrg if ${ac_cv_path_mkdir+:} false; then : 24577a2631fcSmrg $as_echo_n "(cached) " >&6 24583e747e6dSmrgelse 24593e747e6dSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24603e747e6dSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 24613e747e6dSmrgdo 24623e747e6dSmrg IFS=$as_save_IFS 24633e747e6dSmrg test -z "$as_dir" && as_dir=. 24647a2631fcSmrg for ac_prog in mkdir gmkdir; do 24653e747e6dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 24663e747e6dSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 24673e747e6dSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 24683e747e6dSmrg 'mkdir (GNU coreutils) '* | \ 24693e747e6dSmrg 'mkdir (coreutils) '* | \ 24703e747e6dSmrg 'mkdir (fileutils) '4.1*) 24713e747e6dSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 24723e747e6dSmrg break 3;; 24733e747e6dSmrg esac 24743e747e6dSmrg done 24753e747e6dSmrg done 24767a2631fcSmrg done 24773e747e6dSmrgIFS=$as_save_IFS 24783e747e6dSmrg 24793e747e6dSmrgfi 24803e747e6dSmrg 24817a2631fcSmrg test -d ./--version && rmdir ./--version 24823e747e6dSmrg if test "${ac_cv_path_mkdir+set}" = set; then 24833e747e6dSmrg MKDIR_P="$ac_cv_path_mkdir -p" 24843e747e6dSmrg else 24853e747e6dSmrg # As a last resort, use the slow shell script. Don't cache a 24863e747e6dSmrg # value for MKDIR_P within a source directory, because that will 24873e747e6dSmrg # break other packages using the cache if that directory is 24883e747e6dSmrg # removed, or if the value is a relative name. 24893e747e6dSmrg MKDIR_P="$ac_install_sh -d" 24903e747e6dSmrg fi 24913e747e6dSmrgfi 24927a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 24937a2631fcSmrg$as_echo "$MKDIR_P" >&6; } 24943e747e6dSmrg 24953e747e6dSmrgmkdir_p="$MKDIR_P" 24963e747e6dSmrgcase $mkdir_p in 24973e747e6dSmrg [\\/$]* | ?:[\\/]*) ;; 24983e747e6dSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 24993e747e6dSmrgesac 25003e747e6dSmrg 25013e747e6dSmrgfor ac_prog in gawk mawk nawk awk 25023e747e6dSmrgdo 25033e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 25043e747e6dSmrgset dummy $ac_prog; ac_word=$2 25057a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25067a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 25077a2631fcSmrgif ${ac_cv_prog_AWK+:} false; then : 25087a2631fcSmrg $as_echo_n "(cached) " >&6 25093e747e6dSmrgelse 25103e747e6dSmrg if test -n "$AWK"; then 25113e747e6dSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 25123e747e6dSmrgelse 25133e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25143e747e6dSmrgfor as_dir in $PATH 25153e747e6dSmrgdo 25163e747e6dSmrg IFS=$as_save_IFS 25173e747e6dSmrg test -z "$as_dir" && as_dir=. 25187a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 25193e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25203e747e6dSmrg ac_cv_prog_AWK="$ac_prog" 25217a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25223e747e6dSmrg break 2 25233e747e6dSmrg fi 25243e747e6dSmrgdone 25257a2631fcSmrg done 25263e747e6dSmrgIFS=$as_save_IFS 25273e747e6dSmrg 25283e747e6dSmrgfi 25293e747e6dSmrgfi 25303e747e6dSmrgAWK=$ac_cv_prog_AWK 25313e747e6dSmrgif test -n "$AWK"; then 25327a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 25337a2631fcSmrg$as_echo "$AWK" >&6; } 25343e747e6dSmrgelse 25357a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25367a2631fcSmrg$as_echo "no" >&6; } 25373e747e6dSmrgfi 25383e747e6dSmrg 25393e747e6dSmrg 25403e747e6dSmrg test -n "$AWK" && break 25413e747e6dSmrgdone 25423e747e6dSmrg 25437a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 25447a2631fcSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 25457a2631fcSmrgset x ${MAKE-make} 25467a2631fcSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 25477a2631fcSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 25487a2631fcSmrg $as_echo_n "(cached) " >&6 25493e747e6dSmrgelse 25503e747e6dSmrg cat >conftest.make <<\_ACEOF 25513e747e6dSmrgSHELL = /bin/sh 25523e747e6dSmrgall: 25533e747e6dSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25543e747e6dSmrg_ACEOF 25557a2631fcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 25563e747e6dSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 25573e747e6dSmrg *@@@%%%=?*=@@@%%%*) 25583e747e6dSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 25593e747e6dSmrg *) 25603e747e6dSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 25613e747e6dSmrgesac 25623e747e6dSmrgrm -f conftest.make 25633e747e6dSmrgfi 25643e747e6dSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 25657a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25667a2631fcSmrg$as_echo "yes" >&6; } 25673e747e6dSmrg SET_MAKE= 25683e747e6dSmrgelse 25697a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25707a2631fcSmrg$as_echo "no" >&6; } 25713e747e6dSmrg SET_MAKE="MAKE=${MAKE-make}" 25723e747e6dSmrgfi 25733e747e6dSmrg 25743e747e6dSmrgrm -rf .tst 2>/dev/null 25753e747e6dSmrgmkdir .tst 2>/dev/null 25763e747e6dSmrgif test -d .tst; then 25773e747e6dSmrg am__leading_dot=. 25783e747e6dSmrgelse 25793e747e6dSmrg am__leading_dot=_ 25803e747e6dSmrgfi 25813e747e6dSmrgrmdir .tst 2>/dev/null 25823e747e6dSmrg 25833e747e6dSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 25843e747e6dSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 25853e747e6dSmrg # is not polluted with repeated "-I." 25863e747e6dSmrg am__isrc=' -I$(srcdir)' 25873e747e6dSmrg # test to see if srcdir already configured 25883e747e6dSmrg if test -f $srcdir/config.status; then 25897a2631fcSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 25903e747e6dSmrg fi 25913e747e6dSmrgfi 25923e747e6dSmrg 25933e747e6dSmrg# test whether we have cygpath 25943e747e6dSmrgif test -z "$CYGPATH_W"; then 25953e747e6dSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 25963e747e6dSmrg CYGPATH_W='cygpath -w' 25973e747e6dSmrg else 25983e747e6dSmrg CYGPATH_W=echo 25993e747e6dSmrg fi 26003e747e6dSmrgfi 26013e747e6dSmrg 26023e747e6dSmrg 26033e747e6dSmrg# Define the identity of the package. 26043e747e6dSmrg PACKAGE='twm' 26057a2631fcSmrg VERSION='1.0.5' 26063e747e6dSmrg 26073e747e6dSmrg 26083e747e6dSmrgcat >>confdefs.h <<_ACEOF 26093e747e6dSmrg#define PACKAGE "$PACKAGE" 26103e747e6dSmrg_ACEOF 26113e747e6dSmrg 26123e747e6dSmrg 26133e747e6dSmrgcat >>confdefs.h <<_ACEOF 26143e747e6dSmrg#define VERSION "$VERSION" 26153e747e6dSmrg_ACEOF 26163e747e6dSmrg 26173e747e6dSmrg# Some tools Automake needs. 26183e747e6dSmrg 26193e747e6dSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26203e747e6dSmrg 26213e747e6dSmrg 26223e747e6dSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26233e747e6dSmrg 26243e747e6dSmrg 26253e747e6dSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26263e747e6dSmrg 26273e747e6dSmrg 26283e747e6dSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26293e747e6dSmrg 26303e747e6dSmrg 26313e747e6dSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26323e747e6dSmrg 26337a2631fcSmrg# We need awk for the "check" target. The system "awk" is bad on 26347a2631fcSmrg# some platforms. 26357a2631fcSmrg# Always define AMTAR for backward compatibility. 26363e747e6dSmrg 26377a2631fcSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 26387a2631fcSmrg 26397a2631fcSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 26407a2631fcSmrg 26417a2631fcSmrg 26427a2631fcSmrg 26437a2631fcSmrg 26447a2631fcSmrg 26457a2631fcSmrg 26467a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 26477a2631fcSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 26487a2631fcSmrg # Check whether --enable-maintainer-mode was given. 26497a2631fcSmrgif test "${enable_maintainer_mode+set}" = set; then : 26507a2631fcSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 26513e747e6dSmrgelse 26527a2631fcSmrg USE_MAINTAINER_MODE=no 26537a2631fcSmrgfi 26547a2631fcSmrg 26557a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 26567a2631fcSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 26577a2631fcSmrg if test $USE_MAINTAINER_MODE = yes; then 26587a2631fcSmrg MAINTAINER_MODE_TRUE= 26597a2631fcSmrg MAINTAINER_MODE_FALSE='#' 26607a2631fcSmrgelse 26617a2631fcSmrg MAINTAINER_MODE_TRUE='#' 26627a2631fcSmrg MAINTAINER_MODE_FALSE= 26637a2631fcSmrgfi 26647a2631fcSmrg 26657a2631fcSmrg MAINT=$MAINTAINER_MODE_TRUE 26667a2631fcSmrg 26677a2631fcSmrg 26687a2631fcSmrg 26697a2631fcSmrgac_config_headers="$ac_config_headers config.h" 26707a2631fcSmrg 26717a2631fcSmrg 26727a2631fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 26737a2631fcSmrg 26747a2631fcSmrg 26757a2631fcSmrg 26767a2631fcSmrg 26777a2631fcSmrg 26787a2631fcSmrg 26797a2631fcSmrg 26807a2631fcSmrg 26817a2631fcSmrg 26827a2631fcSmrg 26837a2631fcSmrg 26847a2631fcSmrgDEPDIR="${am__leading_dot}deps" 26857a2631fcSmrg 26867a2631fcSmrgac_config_commands="$ac_config_commands depfiles" 26877a2631fcSmrg 26887a2631fcSmrg 26897a2631fcSmrgam_make=${MAKE-make} 26907a2631fcSmrgcat > confinc << 'END' 26917a2631fcSmrgam__doit: 26927a2631fcSmrg @echo this is the am__doit target 26937a2631fcSmrg.PHONY: am__doit 26947a2631fcSmrgEND 26957a2631fcSmrg# If we don't find an include directive, just comment out the code. 26967a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 26977a2631fcSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 26987a2631fcSmrgam__include="#" 26997a2631fcSmrgam__quote= 27007a2631fcSmrg_am_result=none 27017a2631fcSmrg# First try GNU make style include. 27027a2631fcSmrgecho "include confinc" > confmf 27037a2631fcSmrg# Ignore all kinds of additional output from `make'. 27047a2631fcSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 27057a2631fcSmrg*the\ am__doit\ target*) 27067a2631fcSmrg am__include=include 27077a2631fcSmrg am__quote= 27087a2631fcSmrg _am_result=GNU 27097a2631fcSmrg ;; 27107a2631fcSmrgesac 27117a2631fcSmrg# Now try BSD make style include. 27127a2631fcSmrgif test "$am__include" = "#"; then 27137a2631fcSmrg echo '.include "confinc"' > confmf 27147a2631fcSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 27157a2631fcSmrg *the\ am__doit\ target*) 27167a2631fcSmrg am__include=.include 27177a2631fcSmrg am__quote="\"" 27187a2631fcSmrg _am_result=BSD 27197a2631fcSmrg ;; 27207a2631fcSmrg esac 27217a2631fcSmrgfi 27227a2631fcSmrg 27237a2631fcSmrg 27247a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 27257a2631fcSmrg$as_echo "$_am_result" >&6; } 27267a2631fcSmrgrm -f confinc confmf 27277a2631fcSmrg 27287a2631fcSmrg# Check whether --enable-dependency-tracking was given. 27297a2631fcSmrgif test "${enable_dependency_tracking+set}" = set; then : 27307a2631fcSmrg enableval=$enable_dependency_tracking; 27317a2631fcSmrgfi 27327a2631fcSmrg 27337a2631fcSmrgif test "x$enable_dependency_tracking" != xno; then 27347a2631fcSmrg am_depcomp="$ac_aux_dir/depcomp" 27357a2631fcSmrg AMDEPBACKSLASH='\' 27367a2631fcSmrgfi 27377a2631fcSmrg if test "x$enable_dependency_tracking" != xno; then 27387a2631fcSmrg AMDEP_TRUE= 27397a2631fcSmrg AMDEP_FALSE='#' 27407a2631fcSmrgelse 27417a2631fcSmrg AMDEP_TRUE='#' 27427a2631fcSmrg AMDEP_FALSE= 27437a2631fcSmrgfi 27447a2631fcSmrg 27457a2631fcSmrg 27467a2631fcSmrgac_ext=c 27477a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 27487a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27497a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27507a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 27517a2631fcSmrgif test -n "$ac_tool_prefix"; then 27527a2631fcSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 27537a2631fcSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 27547a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27557a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 27567a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 27577a2631fcSmrg $as_echo_n "(cached) " >&6 27587a2631fcSmrgelse 27597a2631fcSmrg if test -n "$CC"; then 27607a2631fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 27613e747e6dSmrgelse 27623e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27633e747e6dSmrgfor as_dir in $PATH 27643e747e6dSmrgdo 27653e747e6dSmrg IFS=$as_save_IFS 27663e747e6dSmrg test -z "$as_dir" && as_dir=. 27677a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 27683e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27697a2631fcSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 27707a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27713e747e6dSmrg break 2 27723e747e6dSmrg fi 27733e747e6dSmrgdone 27747a2631fcSmrg done 27753e747e6dSmrgIFS=$as_save_IFS 27763e747e6dSmrg 27773e747e6dSmrgfi 27783e747e6dSmrgfi 27797a2631fcSmrgCC=$ac_cv_prog_CC 27807a2631fcSmrgif test -n "$CC"; then 27817a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27827a2631fcSmrg$as_echo "$CC" >&6; } 27833e747e6dSmrgelse 27847a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27857a2631fcSmrg$as_echo "no" >&6; } 27863e747e6dSmrgfi 27873e747e6dSmrg 27883e747e6dSmrg 27893e747e6dSmrgfi 27907a2631fcSmrgif test -z "$ac_cv_prog_CC"; then 27917a2631fcSmrg ac_ct_CC=$CC 27927a2631fcSmrg # Extract the first word of "gcc", so it can be a program name with args. 27937a2631fcSmrgset dummy gcc; ac_word=$2 27947a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27957a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 27967a2631fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 27977a2631fcSmrg $as_echo_n "(cached) " >&6 27983e747e6dSmrgelse 27997a2631fcSmrg if test -n "$ac_ct_CC"; then 28007a2631fcSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28013e747e6dSmrgelse 28023e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28033e747e6dSmrgfor as_dir in $PATH 28043e747e6dSmrgdo 28053e747e6dSmrg IFS=$as_save_IFS 28063e747e6dSmrg test -z "$as_dir" && as_dir=. 28077a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28083e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28097a2631fcSmrg ac_cv_prog_ac_ct_CC="gcc" 28107a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28113e747e6dSmrg break 2 28123e747e6dSmrg fi 28133e747e6dSmrgdone 28147a2631fcSmrg done 28153e747e6dSmrgIFS=$as_save_IFS 28163e747e6dSmrg 28173e747e6dSmrgfi 28183e747e6dSmrgfi 28197a2631fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28207a2631fcSmrgif test -n "$ac_ct_CC"; then 28217a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28227a2631fcSmrg$as_echo "$ac_ct_CC" >&6; } 28233e747e6dSmrgelse 28247a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28257a2631fcSmrg$as_echo "no" >&6; } 28263e747e6dSmrgfi 28273e747e6dSmrg 28287a2631fcSmrg if test "x$ac_ct_CC" = x; then 28297a2631fcSmrg CC="" 28303e747e6dSmrg else 28313e747e6dSmrg case $cross_compiling:$ac_tool_warned in 28323e747e6dSmrgyes:) 28337a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28347a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28353e747e6dSmrgac_tool_warned=yes ;; 28363e747e6dSmrgesac 28377a2631fcSmrg CC=$ac_ct_CC 28383e747e6dSmrg fi 28393e747e6dSmrgelse 28407a2631fcSmrg CC="$ac_cv_prog_CC" 28413e747e6dSmrgfi 28423e747e6dSmrg 28437a2631fcSmrgif test -z "$CC"; then 28447a2631fcSmrg if test -n "$ac_tool_prefix"; then 28457a2631fcSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 28467a2631fcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 28477a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28487a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 28497a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 28507a2631fcSmrg $as_echo_n "(cached) " >&6 28513e747e6dSmrgelse 28527a2631fcSmrg if test -n "$CC"; then 28537a2631fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 28547a2631fcSmrgelse 28557a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28567a2631fcSmrgfor as_dir in $PATH 28577a2631fcSmrgdo 28587a2631fcSmrg IFS=$as_save_IFS 28597a2631fcSmrg test -z "$as_dir" && as_dir=. 28607a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 28617a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28627a2631fcSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 28637a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28647a2631fcSmrg break 2 28657a2631fcSmrg fi 28667a2631fcSmrgdone 28677a2631fcSmrg done 28687a2631fcSmrgIFS=$as_save_IFS 28693e747e6dSmrg 28707a2631fcSmrgfi 28717a2631fcSmrgfi 28727a2631fcSmrgCC=$ac_cv_prog_CC 28737a2631fcSmrgif test -n "$CC"; then 28747a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28757a2631fcSmrg$as_echo "$CC" >&6; } 28763e747e6dSmrgelse 28777a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28787a2631fcSmrg$as_echo "no" >&6; } 28793e747e6dSmrgfi 28803e747e6dSmrg 28813e747e6dSmrg 28827a2631fcSmrg fi 28837a2631fcSmrgfi 28847a2631fcSmrgif test -z "$CC"; then 28857a2631fcSmrg # Extract the first word of "cc", so it can be a program name with args. 28867a2631fcSmrgset dummy cc; ac_word=$2 28877a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28887a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 28897a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 28907a2631fcSmrg $as_echo_n "(cached) " >&6 28917a2631fcSmrgelse 28927a2631fcSmrg if test -n "$CC"; then 28937a2631fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 28947a2631fcSmrgelse 28957a2631fcSmrg ac_prog_rejected=no 28967a2631fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28977a2631fcSmrgfor as_dir in $PATH 28987a2631fcSmrgdo 28997a2631fcSmrg IFS=$as_save_IFS 29007a2631fcSmrg test -z "$as_dir" && as_dir=. 29017a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29027a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29037a2631fcSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 29047a2631fcSmrg ac_prog_rejected=yes 29057a2631fcSmrg continue 29067a2631fcSmrg fi 29077a2631fcSmrg ac_cv_prog_CC="cc" 29087a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29097a2631fcSmrg break 2 29107a2631fcSmrg fi 29117a2631fcSmrgdone 29127a2631fcSmrg done 29137a2631fcSmrgIFS=$as_save_IFS 29143e747e6dSmrg 29157a2631fcSmrgif test $ac_prog_rejected = yes; then 29167a2631fcSmrg # We found a bogon in the path, so make sure we never use it. 29177a2631fcSmrg set dummy $ac_cv_prog_CC 29187a2631fcSmrg shift 29197a2631fcSmrg if test $# != 0; then 29207a2631fcSmrg # We chose a different compiler from the bogus one. 29217a2631fcSmrg # However, it has the same basename, so the bogon will be chosen 29227a2631fcSmrg # first if we set CC to just the basename; use the full file name. 29237a2631fcSmrg shift 29247a2631fcSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 29257a2631fcSmrg fi 29267a2631fcSmrgfi 29277a2631fcSmrgfi 29287a2631fcSmrgfi 29297a2631fcSmrgCC=$ac_cv_prog_CC 29307a2631fcSmrgif test -n "$CC"; then 29317a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29327a2631fcSmrg$as_echo "$CC" >&6; } 29337a2631fcSmrgelse 29347a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29357a2631fcSmrg$as_echo "no" >&6; } 29367a2631fcSmrgfi 29373e747e6dSmrg 29383e747e6dSmrg 29397a2631fcSmrgfi 29407a2631fcSmrgif test -z "$CC"; then 29417a2631fcSmrg if test -n "$ac_tool_prefix"; then 29427a2631fcSmrg for ac_prog in cl.exe 29437a2631fcSmrg do 29447a2631fcSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29457a2631fcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 29467a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29477a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 29487a2631fcSmrgif ${ac_cv_prog_CC+:} false; then : 29497a2631fcSmrg $as_echo_n "(cached) " >&6 29503e747e6dSmrgelse 29513e747e6dSmrg if test -n "$CC"; then 29523e747e6dSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 29533e747e6dSmrgelse 29543e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29553e747e6dSmrgfor as_dir in $PATH 29563e747e6dSmrgdo 29573e747e6dSmrg IFS=$as_save_IFS 29583e747e6dSmrg test -z "$as_dir" && as_dir=. 29597a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 29603e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29617a2631fcSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29627a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29633e747e6dSmrg break 2 29643e747e6dSmrg fi 29653e747e6dSmrgdone 29667a2631fcSmrg done 29673e747e6dSmrgIFS=$as_save_IFS 29683e747e6dSmrg 29693e747e6dSmrgfi 29703e747e6dSmrgfi 29713e747e6dSmrgCC=$ac_cv_prog_CC 29723e747e6dSmrgif test -n "$CC"; then 29737a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29747a2631fcSmrg$as_echo "$CC" >&6; } 29753e747e6dSmrgelse 29767a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29777a2631fcSmrg$as_echo "no" >&6; } 29783e747e6dSmrgfi 29793e747e6dSmrg 29803e747e6dSmrg 29817a2631fcSmrg test -n "$CC" && break 29827a2631fcSmrg done 29833e747e6dSmrgfi 29847a2631fcSmrgif test -z "$CC"; then 29853e747e6dSmrg ac_ct_CC=$CC 29867a2631fcSmrg for ac_prog in cl.exe 29877a2631fcSmrgdo 29887a2631fcSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 29897a2631fcSmrgset dummy $ac_prog; ac_word=$2 29907a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29917a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 29927a2631fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 29937a2631fcSmrg $as_echo_n "(cached) " >&6 29943e747e6dSmrgelse 29953e747e6dSmrg if test -n "$ac_ct_CC"; then 29963e747e6dSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29973e747e6dSmrgelse 29983e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29993e747e6dSmrgfor as_dir in $PATH 30003e747e6dSmrgdo 30013e747e6dSmrg IFS=$as_save_IFS 30023e747e6dSmrg test -z "$as_dir" && as_dir=. 30037a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 30043e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30057a2631fcSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 30067a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30073e747e6dSmrg break 2 30083e747e6dSmrg fi 30093e747e6dSmrgdone 30107a2631fcSmrg done 30117a2631fcSmrgIFS=$as_save_IFS 30127a2631fcSmrg 30137a2631fcSmrgfi 30147a2631fcSmrgfi 30157a2631fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30167a2631fcSmrgif test -n "$ac_ct_CC"; then 30177a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30187a2631fcSmrg$as_echo "$ac_ct_CC" >&6; } 30197a2631fcSmrgelse 30207a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30217a2631fcSmrg$as_echo "no" >&6; } 30227a2631fcSmrgfi 30237a2631fcSmrg 30247a2631fcSmrg 30257a2631fcSmrg test -n "$ac_ct_CC" && break 30267a2631fcSmrgdone 30277a2631fcSmrg 30287a2631fcSmrg if test "x$ac_ct_CC" = x; then 30297a2631fcSmrg CC="" 30307a2631fcSmrg else 30317a2631fcSmrg case $cross_compiling:$ac_tool_warned in 30327a2631fcSmrgyes:) 30337a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30347a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30357a2631fcSmrgac_tool_warned=yes ;; 30367a2631fcSmrgesac 30377a2631fcSmrg CC=$ac_ct_CC 30387a2631fcSmrg fi 30397a2631fcSmrgfi 30407a2631fcSmrg 30417a2631fcSmrgfi 30427a2631fcSmrg 30437a2631fcSmrg 30447a2631fcSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30457a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30467a2631fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 30477a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 30487a2631fcSmrg 30497a2631fcSmrg# Provide some information about the compiler. 30507a2631fcSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 30517a2631fcSmrgset X $ac_compile 30527a2631fcSmrgac_compiler=$2 30537a2631fcSmrgfor ac_option in --version -v -V -qversion; do 30547a2631fcSmrg { { ac_try="$ac_compiler $ac_option >&5" 30557a2631fcSmrgcase "(($ac_try" in 30567a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30577a2631fcSmrg *) ac_try_echo=$ac_try;; 30587a2631fcSmrgesac 30597a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30607a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 30617a2631fcSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30627a2631fcSmrg ac_status=$? 30637a2631fcSmrg if test -s conftest.err; then 30647a2631fcSmrg sed '10a\ 30657a2631fcSmrg... rest of stderr output deleted ... 30667a2631fcSmrg 10q' conftest.err >conftest.er1 30677a2631fcSmrg cat conftest.er1 >&5 30687a2631fcSmrg fi 30697a2631fcSmrg rm -f conftest.er1 conftest.err 30707a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30717a2631fcSmrg test $ac_status = 0; } 30727a2631fcSmrgdone 30737a2631fcSmrg 30747a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 30757a2631fcSmrg/* end confdefs.h. */ 30767a2631fcSmrg 30777a2631fcSmrgint 30787a2631fcSmrgmain () 30797a2631fcSmrg{ 30807a2631fcSmrg 30817a2631fcSmrg ; 30827a2631fcSmrg return 0; 30837a2631fcSmrg} 30847a2631fcSmrg_ACEOF 30857a2631fcSmrgac_clean_files_save=$ac_clean_files 30867a2631fcSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 30877a2631fcSmrg# Try to create an executable without -o first, disregard a.out. 30887a2631fcSmrg# It will help us diagnose broken compilers, and finding out an intuition 30897a2631fcSmrg# of exeext. 30907a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30917a2631fcSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 30927a2631fcSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 30937a2631fcSmrg 30947a2631fcSmrg# The possible output files: 30957a2631fcSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 30967a2631fcSmrg 30977a2631fcSmrgac_rmfiles= 30987a2631fcSmrgfor ac_file in $ac_files 30997a2631fcSmrgdo 31007a2631fcSmrg case $ac_file in 31017a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31027a2631fcSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 31037a2631fcSmrg esac 31047a2631fcSmrgdone 31057a2631fcSmrgrm -f $ac_rmfiles 31067a2631fcSmrg 31077a2631fcSmrgif { { ac_try="$ac_link_default" 31087a2631fcSmrgcase "(($ac_try" in 31097a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31107a2631fcSmrg *) ac_try_echo=$ac_try;; 31117a2631fcSmrgesac 31127a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31137a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 31147a2631fcSmrg (eval "$ac_link_default") 2>&5 31157a2631fcSmrg ac_status=$? 31167a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31177a2631fcSmrg test $ac_status = 0; }; then : 31187a2631fcSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 31197a2631fcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 31207a2631fcSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 31217a2631fcSmrg# so that the user can short-circuit this test for compilers unknown to 31227a2631fcSmrg# Autoconf. 31237a2631fcSmrgfor ac_file in $ac_files '' 31247a2631fcSmrgdo 31257a2631fcSmrg test -f "$ac_file" || continue 31267a2631fcSmrg case $ac_file in 31277a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 31287a2631fcSmrg ;; 31297a2631fcSmrg [ab].out ) 31307a2631fcSmrg # We found the default executable, but exeext='' is most 31317a2631fcSmrg # certainly right. 31327a2631fcSmrg break;; 31337a2631fcSmrg *.* ) 31347a2631fcSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 31357a2631fcSmrg then :; else 31367a2631fcSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31377a2631fcSmrg fi 31387a2631fcSmrg # We set ac_cv_exeext here because the later test for it is not 31397a2631fcSmrg # safe: cross compilers may not add the suffix if given an `-o' 31407a2631fcSmrg # argument, so we may need to know it at that point already. 31417a2631fcSmrg # Even if this section looks crufty: it has the advantage of 31427a2631fcSmrg # actually working. 31437a2631fcSmrg break;; 31447a2631fcSmrg * ) 31457a2631fcSmrg break;; 31467a2631fcSmrg esac 31473e747e6dSmrgdone 31487a2631fcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 31493e747e6dSmrg 31503e747e6dSmrgelse 31517a2631fcSmrg ac_file='' 31523e747e6dSmrgfi 31537a2631fcSmrgif test -z "$ac_file"; then : 31547a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31557a2631fcSmrg$as_echo "no" >&6; } 31567a2631fcSmrg$as_echo "$as_me: failed program was:" >&5 31577a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 31583e747e6dSmrg 31597a2631fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31607a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31617a2631fcSmrgas_fn_error 77 "C compiler cannot create executables 31627a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 31633e747e6dSmrgelse 31647a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31657a2631fcSmrg$as_echo "yes" >&6; } 31663e747e6dSmrgfi 31677a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 31687a2631fcSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 31697a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 31707a2631fcSmrg$as_echo "$ac_file" >&6; } 31717a2631fcSmrgac_exeext=$ac_cv_exeext 31723e747e6dSmrg 31737a2631fcSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 31747a2631fcSmrgac_clean_files=$ac_clean_files_save 31757a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 31767a2631fcSmrg$as_echo_n "checking for suffix of executables... " >&6; } 31777a2631fcSmrgif { { ac_try="$ac_link" 31787a2631fcSmrgcase "(($ac_try" in 31797a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31807a2631fcSmrg *) ac_try_echo=$ac_try;; 31817a2631fcSmrgesac 31827a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31837a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 31847a2631fcSmrg (eval "$ac_link") 2>&5 31857a2631fcSmrg ac_status=$? 31867a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31877a2631fcSmrg test $ac_status = 0; }; then : 31887a2631fcSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 31897a2631fcSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 31907a2631fcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 31917a2631fcSmrg# `rm'. 31927a2631fcSmrgfor ac_file in conftest.exe conftest conftest.*; do 31937a2631fcSmrg test -f "$ac_file" || continue 31947a2631fcSmrg case $ac_file in 31957a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 31967a2631fcSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 31977a2631fcSmrg break;; 31987a2631fcSmrg * ) break;; 31997a2631fcSmrg esac 32003e747e6dSmrgdone 32013e747e6dSmrgelse 32027a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32037a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32047a2631fcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 32057a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 32063e747e6dSmrgfi 32077a2631fcSmrgrm -f conftest conftest$ac_cv_exeext 32087a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 32097a2631fcSmrg$as_echo "$ac_cv_exeext" >&6; } 32103e747e6dSmrg 32117a2631fcSmrgrm -f conftest.$ac_ext 32127a2631fcSmrgEXEEXT=$ac_cv_exeext 32137a2631fcSmrgac_exeext=$EXEEXT 32147a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 32157a2631fcSmrg/* end confdefs.h. */ 32167a2631fcSmrg#include <stdio.h> 32177a2631fcSmrgint 32187a2631fcSmrgmain () 32197a2631fcSmrg{ 32207a2631fcSmrgFILE *f = fopen ("conftest.out", "w"); 32217a2631fcSmrg return ferror (f) || fclose (f) != 0; 32223e747e6dSmrg 32237a2631fcSmrg ; 32247a2631fcSmrg return 0; 32257a2631fcSmrg} 32267a2631fcSmrg_ACEOF 32277a2631fcSmrgac_clean_files="$ac_clean_files conftest.out" 32287a2631fcSmrg# Check that the compiler produces executables we can run. If not, either 32297a2631fcSmrg# the compiler is broken, or we cross compile. 32307a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 32317a2631fcSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 32327a2631fcSmrgif test "$cross_compiling" != yes; then 32337a2631fcSmrg { { ac_try="$ac_link" 32347a2631fcSmrgcase "(($ac_try" in 32357a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32367a2631fcSmrg *) ac_try_echo=$ac_try;; 32377a2631fcSmrgesac 32387a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32397a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 32407a2631fcSmrg (eval "$ac_link") 2>&5 32417a2631fcSmrg ac_status=$? 32427a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32437a2631fcSmrg test $ac_status = 0; } 32447a2631fcSmrg if { ac_try='./conftest$ac_cv_exeext' 32457a2631fcSmrg { { case "(($ac_try" in 32467a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32477a2631fcSmrg *) ac_try_echo=$ac_try;; 32487a2631fcSmrgesac 32497a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32507a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 32517a2631fcSmrg (eval "$ac_try") 2>&5 32527a2631fcSmrg ac_status=$? 32537a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32547a2631fcSmrg test $ac_status = 0; }; }; then 32557a2631fcSmrg cross_compiling=no 32567a2631fcSmrg else 32577a2631fcSmrg if test "$cross_compiling" = maybe; then 32587a2631fcSmrg cross_compiling=yes 32597a2631fcSmrg else 32607a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32617a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32627a2631fcSmrgas_fn_error $? "cannot run C compiled programs. 32637a2631fcSmrgIf you meant to cross compile, use \`--host'. 32647a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 32657a2631fcSmrg fi 32663e747e6dSmrg fi 32673e747e6dSmrgfi 32687a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 32697a2631fcSmrg$as_echo "$cross_compiling" >&6; } 32707a2631fcSmrg 32717a2631fcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 32727a2631fcSmrgac_clean_files=$ac_clean_files_save 32737a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 32747a2631fcSmrg$as_echo_n "checking for suffix of object files... " >&6; } 32757a2631fcSmrgif ${ac_cv_objext+:} false; then : 32767a2631fcSmrg $as_echo_n "(cached) " >&6 32773e747e6dSmrgelse 32787a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32797a2631fcSmrg/* end confdefs.h. */ 32807a2631fcSmrg 32817a2631fcSmrgint 32827a2631fcSmrgmain () 32837a2631fcSmrg{ 32847a2631fcSmrg 32857a2631fcSmrg ; 32867a2631fcSmrg return 0; 32877a2631fcSmrg} 32887a2631fcSmrg_ACEOF 32897a2631fcSmrgrm -f conftest.o conftest.obj 32907a2631fcSmrgif { { ac_try="$ac_compile" 32917a2631fcSmrgcase "(($ac_try" in 32927a2631fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32937a2631fcSmrg *) ac_try_echo=$ac_try;; 32947a2631fcSmrgesac 32957a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32967a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 32977a2631fcSmrg (eval "$ac_compile") 2>&5 32987a2631fcSmrg ac_status=$? 32997a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33007a2631fcSmrg test $ac_status = 0; }; then : 33017a2631fcSmrg for ac_file in conftest.o conftest.obj conftest.*; do 33027a2631fcSmrg test -f "$ac_file" || continue; 33037a2631fcSmrg case $ac_file in 33047a2631fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33057a2631fcSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33067a2631fcSmrg break;; 33077a2631fcSmrg esac 33083e747e6dSmrgdone 33097a2631fcSmrgelse 33107a2631fcSmrg $as_echo "$as_me: failed program was:" >&5 33117a2631fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 33123e747e6dSmrg 33137a2631fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33147a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33157a2631fcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 33167a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 33173e747e6dSmrgfi 33187a2631fcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 33193e747e6dSmrgfi 33207a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 33217a2631fcSmrg$as_echo "$ac_cv_objext" >&6; } 33227a2631fcSmrgOBJEXT=$ac_cv_objext 33237a2631fcSmrgac_objext=$OBJEXT 33247a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 33257a2631fcSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 33267a2631fcSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 33277a2631fcSmrg $as_echo_n "(cached) " >&6 33283e747e6dSmrgelse 33297a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33307a2631fcSmrg/* end confdefs.h. */ 33313e747e6dSmrg 33327a2631fcSmrgint 33337a2631fcSmrgmain () 33347a2631fcSmrg{ 33357a2631fcSmrg#ifndef __GNUC__ 33367a2631fcSmrg choke me 33377a2631fcSmrg#endif 33383e747e6dSmrg 33397a2631fcSmrg ; 33407a2631fcSmrg return 0; 33417a2631fcSmrg} 33427a2631fcSmrg_ACEOF 33437a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 33447a2631fcSmrg ac_compiler_gnu=yes 33453e747e6dSmrgelse 33467a2631fcSmrg ac_compiler_gnu=no 33473e747e6dSmrgfi 33487a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33497a2631fcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33507a2631fcSmrg 33513e747e6dSmrgfi 33527a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33537a2631fcSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 33547a2631fcSmrgif test $ac_compiler_gnu = yes; then 33557a2631fcSmrg GCC=yes 33563e747e6dSmrgelse 33577a2631fcSmrg GCC= 33583e747e6dSmrgfi 33597a2631fcSmrgac_test_CFLAGS=${CFLAGS+set} 33607a2631fcSmrgac_save_CFLAGS=$CFLAGS 33617a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33627a2631fcSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 33637a2631fcSmrgif ${ac_cv_prog_cc_g+:} false; then : 33647a2631fcSmrg $as_echo_n "(cached) " >&6 33657a2631fcSmrgelse 33667a2631fcSmrg ac_save_c_werror_flag=$ac_c_werror_flag 33677a2631fcSmrg ac_c_werror_flag=yes 33687a2631fcSmrg ac_cv_prog_cc_g=no 33697a2631fcSmrg CFLAGS="-g" 33707a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33717a2631fcSmrg/* end confdefs.h. */ 33723e747e6dSmrg 33737a2631fcSmrgint 33747a2631fcSmrgmain () 33757a2631fcSmrg{ 33763e747e6dSmrg 33777a2631fcSmrg ; 33787a2631fcSmrg return 0; 33797a2631fcSmrg} 33807a2631fcSmrg_ACEOF 33817a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 33827a2631fcSmrg ac_cv_prog_cc_g=yes 33833e747e6dSmrgelse 33847a2631fcSmrg CFLAGS="" 33857a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33867a2631fcSmrg/* end confdefs.h. */ 33877a2631fcSmrg 33887a2631fcSmrgint 33897a2631fcSmrgmain () 33907a2631fcSmrg{ 33917a2631fcSmrg 33927a2631fcSmrg ; 33937a2631fcSmrg return 0; 33947a2631fcSmrg} 33957a2631fcSmrg_ACEOF 33967a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 33977a2631fcSmrg 33983e747e6dSmrgelse 33997a2631fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34007a2631fcSmrg CFLAGS="-g" 34017a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34027a2631fcSmrg/* end confdefs.h. */ 34037a2631fcSmrg 34047a2631fcSmrgint 34057a2631fcSmrgmain () 34067a2631fcSmrg{ 34073e747e6dSmrg 34087a2631fcSmrg ; 34097a2631fcSmrg return 0; 34107a2631fcSmrg} 34117a2631fcSmrg_ACEOF 34127a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34137a2631fcSmrg ac_cv_prog_cc_g=yes 34143e747e6dSmrgfi 34157a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34163e747e6dSmrgfi 34177a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34183e747e6dSmrgfi 34197a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34207a2631fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 34217a2631fcSmrgfi 34227a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34237a2631fcSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 34247a2631fcSmrgif test "$ac_test_CFLAGS" = set; then 34257a2631fcSmrg CFLAGS=$ac_save_CFLAGS 34267a2631fcSmrgelif test $ac_cv_prog_cc_g = yes; then 34277a2631fcSmrg if test "$GCC" = yes; then 34287a2631fcSmrg CFLAGS="-g -O2" 34293e747e6dSmrg else 34307a2631fcSmrg CFLAGS="-g" 34317a2631fcSmrg fi 34327a2631fcSmrgelse 34337a2631fcSmrg if test "$GCC" = yes; then 34347a2631fcSmrg CFLAGS="-O2" 34357a2631fcSmrg else 34367a2631fcSmrg CFLAGS= 34373e747e6dSmrg fi 34383e747e6dSmrgfi 34397a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34407a2631fcSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34417a2631fcSmrgif ${ac_cv_prog_cc_c89+:} false; then : 34427a2631fcSmrg $as_echo_n "(cached) " >&6 34437a2631fcSmrgelse 34447a2631fcSmrg ac_cv_prog_cc_c89=no 34457a2631fcSmrgac_save_CC=$CC 34467a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34477a2631fcSmrg/* end confdefs.h. */ 34487a2631fcSmrg#include <stdarg.h> 34497a2631fcSmrg#include <stdio.h> 34507a2631fcSmrg#include <sys/types.h> 34517a2631fcSmrg#include <sys/stat.h> 34527a2631fcSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34537a2631fcSmrgstruct buf { int x; }; 34547a2631fcSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 34557a2631fcSmrgstatic char *e (p, i) 34567a2631fcSmrg char **p; 34577a2631fcSmrg int i; 34587a2631fcSmrg{ 34597a2631fcSmrg return p[i]; 34607a2631fcSmrg} 34617a2631fcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 34627a2631fcSmrg{ 34637a2631fcSmrg char *s; 34647a2631fcSmrg va_list v; 34657a2631fcSmrg va_start (v,p); 34667a2631fcSmrg s = g (p, va_arg (v,int)); 34677a2631fcSmrg va_end (v); 34687a2631fcSmrg return s; 34697a2631fcSmrg} 34703e747e6dSmrg 34717a2631fcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34727a2631fcSmrg function prototypes and stuff, but not '\xHH' hex character constants. 34737a2631fcSmrg These don't provoke an error unfortunately, instead are silently treated 34747a2631fcSmrg as 'x'. The following induces an error, until -std is added to get 34757a2631fcSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34767a2631fcSmrg array size at least. It's necessary to write '\x00'==0 to get something 34777a2631fcSmrg that's true only with -std. */ 34787a2631fcSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34793e747e6dSmrg 34807a2631fcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34817a2631fcSmrg inside strings and character constants. */ 34827a2631fcSmrg#define FOO(x) 'x' 34837a2631fcSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34843e747e6dSmrg 34857a2631fcSmrgint test (int i, double x); 34867a2631fcSmrgstruct s1 {int (*f) (int a);}; 34877a2631fcSmrgstruct s2 {int (*f) (double a);}; 34887a2631fcSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34897a2631fcSmrgint argc; 34907a2631fcSmrgchar **argv; 34913e747e6dSmrgint 34923e747e6dSmrgmain () 34933e747e6dSmrg{ 34947a2631fcSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34953e747e6dSmrg ; 34963e747e6dSmrg return 0; 34973e747e6dSmrg} 34983e747e6dSmrg_ACEOF 34997a2631fcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35007a2631fcSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35013e747e6dSmrgdo 35027a2631fcSmrg CC="$ac_save_CC $ac_arg" 35037a2631fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 35047a2631fcSmrg ac_cv_prog_cc_c89=$ac_arg 35057a2631fcSmrgfi 35067a2631fcSmrgrm -f core conftest.err conftest.$ac_objext 35077a2631fcSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35083e747e6dSmrgdone 35097a2631fcSmrgrm -f conftest.$ac_ext 35107a2631fcSmrgCC=$ac_save_CC 35113e747e6dSmrg 35127a2631fcSmrgfi 35137a2631fcSmrg# AC_CACHE_VAL 35147a2631fcSmrgcase "x$ac_cv_prog_cc_c89" in 35157a2631fcSmrg x) 35167a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35177a2631fcSmrg$as_echo "none needed" >&6; } ;; 35187a2631fcSmrg xno) 35197a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35207a2631fcSmrg$as_echo "unsupported" >&6; } ;; 35217a2631fcSmrg *) 35227a2631fcSmrg CC="$CC $ac_cv_prog_cc_c89" 35237a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35247a2631fcSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35253e747e6dSmrgesac 35267a2631fcSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35273e747e6dSmrg 35283e747e6dSmrgfi 35293e747e6dSmrg 35307a2631fcSmrgac_ext=c 35317a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 35327a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35337a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35347a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35357a2631fcSmrg 35367a2631fcSmrgdepcc="$CC" am_compiler_list= 35377a2631fcSmrg 35387a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 35397a2631fcSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 35407a2631fcSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 35417a2631fcSmrg $as_echo_n "(cached) " >&6 35427a2631fcSmrgelse 35437a2631fcSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 35447a2631fcSmrg # We make a subdir and do the tests there. Otherwise we can end up 35457a2631fcSmrg # making bogus files that we don't know about and never remove. For 35467a2631fcSmrg # instance it was reported that on HP-UX the gcc test will end up 35477a2631fcSmrg # making a dummy file named `D' -- because `-MD' means `put the output 35487a2631fcSmrg # in D'. 35497a2631fcSmrg mkdir conftest.dir 35507a2631fcSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 35517a2631fcSmrg # using a relative directory. 35527a2631fcSmrg cp "$am_depcomp" conftest.dir 35537a2631fcSmrg cd conftest.dir 35547a2631fcSmrg # We will build objects and dependencies in a subdirectory because 35557a2631fcSmrg # it helps to detect inapplicable dependency modes. For instance 35567a2631fcSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 35577a2631fcSmrg # side effect of compilation, but ICC will put the dependencies in 35587a2631fcSmrg # the current directory while Tru64 will put them in the object 35597a2631fcSmrg # directory. 35607a2631fcSmrg mkdir sub 35617a2631fcSmrg 35627a2631fcSmrg am_cv_CC_dependencies_compiler_type=none 35637a2631fcSmrg if test "$am_compiler_list" = ""; then 35647a2631fcSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 35657a2631fcSmrg fi 35667a2631fcSmrg am__universal=false 35677a2631fcSmrg case " $depcc " in #( 35687a2631fcSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 35697a2631fcSmrg esac 35707a2631fcSmrg 35717a2631fcSmrg for depmode in $am_compiler_list; do 35727a2631fcSmrg # Setup a source with many dependencies, because some compilers 35737a2631fcSmrg # like to wrap large dependency lists on column 80 (with \), and 35747a2631fcSmrg # we should not choose a depcomp mode which is confused by this. 35757a2631fcSmrg # 35767a2631fcSmrg # We need to recreate these files for each test, as the compiler may 35777a2631fcSmrg # overwrite some of them when testing with obscure command lines. 35787a2631fcSmrg # This happens at least with the AIX C compiler. 35797a2631fcSmrg : > sub/conftest.c 35807a2631fcSmrg for i in 1 2 3 4 5 6; do 35817a2631fcSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 35827a2631fcSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 35837a2631fcSmrg # Solaris 8's {/usr,}/bin/sh. 35847a2631fcSmrg touch sub/conftst$i.h 35857a2631fcSmrg done 35867a2631fcSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 35877a2631fcSmrg 35887a2631fcSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 35897a2631fcSmrg # mode. It turns out that the SunPro C++ compiler does not properly 35907a2631fcSmrg # handle `-M -o', and we need to detect this. Also, some Intel 35917a2631fcSmrg # versions had trouble with output in subdirs 35927a2631fcSmrg am__obj=sub/conftest.${OBJEXT-o} 35937a2631fcSmrg am__minus_obj="-o $am__obj" 35947a2631fcSmrg case $depmode in 35957a2631fcSmrg gcc) 35967a2631fcSmrg # This depmode causes a compiler race in universal mode. 35977a2631fcSmrg test "$am__universal" = false || continue 35987a2631fcSmrg ;; 35997a2631fcSmrg nosideeffect) 36007a2631fcSmrg # after this tag, mechanisms are not by side-effect, so they'll 36017a2631fcSmrg # only be used when explicitly requested 36027a2631fcSmrg if test "x$enable_dependency_tracking" = xyes; then 36037a2631fcSmrg continue 36047a2631fcSmrg else 36057a2631fcSmrg break 36067a2631fcSmrg fi 36077a2631fcSmrg ;; 36087a2631fcSmrg msvisualcpp | msvcmsys) 36097a2631fcSmrg # This compiler won't grok `-c -o', but also, the minuso test has 36107a2631fcSmrg # not run yet. These depmodes are late enough in the game, and 36117a2631fcSmrg # so weak that their functioning should not be impacted. 36127a2631fcSmrg am__obj=conftest.${OBJEXT-o} 36137a2631fcSmrg am__minus_obj= 36147a2631fcSmrg ;; 36157a2631fcSmrg none) break ;; 36167a2631fcSmrg esac 36177a2631fcSmrg if depmode=$depmode \ 36187a2631fcSmrg source=sub/conftest.c object=$am__obj \ 36197a2631fcSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 36207a2631fcSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 36217a2631fcSmrg >/dev/null 2>conftest.err && 36227a2631fcSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 36237a2631fcSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 36247a2631fcSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 36257a2631fcSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 36267a2631fcSmrg # icc doesn't choke on unknown options, it will just issue warnings 36277a2631fcSmrg # or remarks (even with -Werror). So we grep stderr for any message 36287a2631fcSmrg # that says an option was ignored or not supported. 36297a2631fcSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 36307a2631fcSmrg # icc: Command line warning: ignoring option '-M'; no argument required 36317a2631fcSmrg # The diagnosis changed in icc 8.0: 36327a2631fcSmrg # icc: Command line remark: option '-MP' not supported 36337a2631fcSmrg if (grep 'ignoring option' conftest.err || 36347a2631fcSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 36357a2631fcSmrg am_cv_CC_dependencies_compiler_type=$depmode 36367a2631fcSmrg break 36377a2631fcSmrg fi 36387a2631fcSmrg fi 36397a2631fcSmrg done 36403e747e6dSmrg 36417a2631fcSmrg cd .. 36427a2631fcSmrg rm -rf conftest.dir 36437a2631fcSmrgelse 36447a2631fcSmrg am_cv_CC_dependencies_compiler_type=none 36453e747e6dSmrgfi 36463e747e6dSmrg 36473e747e6dSmrgfi 36487a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 36497a2631fcSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 36507a2631fcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 36513e747e6dSmrg 36527a2631fcSmrg if 36537a2631fcSmrg test "x$enable_dependency_tracking" != xno \ 36547a2631fcSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 36557a2631fcSmrg am__fastdepCC_TRUE= 36567a2631fcSmrg am__fastdepCC_FALSE='#' 36573e747e6dSmrgelse 36587a2631fcSmrg am__fastdepCC_TRUE='#' 36597a2631fcSmrg am__fastdepCC_FALSE= 36603e747e6dSmrgfi 36613e747e6dSmrg 36623e747e6dSmrg 36637a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 36647a2631fcSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 36657a2631fcSmrgif ${ac_cv_prog_cc_c99+:} false; then : 36667a2631fcSmrg $as_echo_n "(cached) " >&6 36673e747e6dSmrgelse 36687a2631fcSmrg ac_cv_prog_cc_c99=no 36697a2631fcSmrgac_save_CC=$CC 36707a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 36713e747e6dSmrg/* end confdefs.h. */ 36727a2631fcSmrg#include <stdarg.h> 36737a2631fcSmrg#include <stdbool.h> 36747a2631fcSmrg#include <stdlib.h> 36757a2631fcSmrg#include <wchar.h> 36767a2631fcSmrg#include <stdio.h> 36777a2631fcSmrg 36787a2631fcSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 36797a2631fcSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 36807a2631fcSmrg#define showlist(...) puts (#__VA_ARGS__) 36817a2631fcSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 36827a2631fcSmrgstatic void 36837a2631fcSmrgtest_varargs_macros (void) 36847a2631fcSmrg{ 36857a2631fcSmrg int x = 1234; 36867a2631fcSmrg int y = 5678; 36877a2631fcSmrg debug ("Flag"); 36887a2631fcSmrg debug ("X = %d\n", x); 36897a2631fcSmrg showlist (The first, second, and third items.); 36907a2631fcSmrg report (x>y, "x is %d but y is %d", x, y); 36917a2631fcSmrg} 36927a2631fcSmrg 36937a2631fcSmrg// Check long long types. 36947a2631fcSmrg#define BIG64 18446744073709551615ull 36957a2631fcSmrg#define BIG32 4294967295ul 36967a2631fcSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 36977a2631fcSmrg#if !BIG_OK 36987a2631fcSmrg your preprocessor is broken; 36997a2631fcSmrg#endif 37007a2631fcSmrg#if BIG_OK 37017a2631fcSmrg#else 37027a2631fcSmrg your preprocessor is broken; 37037a2631fcSmrg#endif 37047a2631fcSmrgstatic long long int bignum = -9223372036854775807LL; 37057a2631fcSmrgstatic unsigned long long int ubignum = BIG64; 37067a2631fcSmrg 37077a2631fcSmrgstruct incomplete_array 37087a2631fcSmrg{ 37097a2631fcSmrg int datasize; 37107a2631fcSmrg double data[]; 37117a2631fcSmrg}; 37127a2631fcSmrg 37137a2631fcSmrgstruct named_init { 37147a2631fcSmrg int number; 37157a2631fcSmrg const wchar_t *name; 37167a2631fcSmrg double average; 37177a2631fcSmrg}; 37187a2631fcSmrg 37197a2631fcSmrgtypedef const char *ccp; 37207a2631fcSmrg 37217a2631fcSmrgstatic inline int 37227a2631fcSmrgtest_restrict (ccp restrict text) 37237a2631fcSmrg{ 37247a2631fcSmrg // See if C++-style comments work. 37257a2631fcSmrg // Iterate through items via the restricted pointer. 37267a2631fcSmrg // Also check for declarations in for loops. 37277a2631fcSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 37287a2631fcSmrg continue; 37297a2631fcSmrg return 0; 37307a2631fcSmrg} 37317a2631fcSmrg 37327a2631fcSmrg// Check varargs and va_copy. 37337a2631fcSmrgstatic void 37347a2631fcSmrgtest_varargs (const char *format, ...) 37357a2631fcSmrg{ 37367a2631fcSmrg va_list args; 37377a2631fcSmrg va_start (args, format); 37387a2631fcSmrg va_list args_copy; 37397a2631fcSmrg va_copy (args_copy, args); 37407a2631fcSmrg 37417a2631fcSmrg const char *str; 37427a2631fcSmrg int number; 37437a2631fcSmrg float fnumber; 37447a2631fcSmrg 37457a2631fcSmrg while (*format) 37467a2631fcSmrg { 37477a2631fcSmrg switch (*format++) 37487a2631fcSmrg { 37497a2631fcSmrg case 's': // string 37507a2631fcSmrg str = va_arg (args_copy, const char *); 37517a2631fcSmrg break; 37527a2631fcSmrg case 'd': // int 37537a2631fcSmrg number = va_arg (args_copy, int); 37547a2631fcSmrg break; 37557a2631fcSmrg case 'f': // float 37567a2631fcSmrg fnumber = va_arg (args_copy, double); 37577a2631fcSmrg break; 37587a2631fcSmrg default: 37597a2631fcSmrg break; 37607a2631fcSmrg } 37617a2631fcSmrg } 37627a2631fcSmrg va_end (args_copy); 37637a2631fcSmrg va_end (args); 37647a2631fcSmrg} 37653e747e6dSmrg 37663e747e6dSmrgint 37673e747e6dSmrgmain () 37683e747e6dSmrg{ 37693e747e6dSmrg 37707a2631fcSmrg // Check bool. 37717a2631fcSmrg _Bool success = false; 37727a2631fcSmrg 37737a2631fcSmrg // Check restrict. 37747a2631fcSmrg if (test_restrict ("String literal") == 0) 37757a2631fcSmrg success = true; 37767a2631fcSmrg char *restrict newvar = "Another string"; 37777a2631fcSmrg 37787a2631fcSmrg // Check varargs. 37797a2631fcSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 37807a2631fcSmrg test_varargs_macros (); 37817a2631fcSmrg 37827a2631fcSmrg // Check flexible array members. 37837a2631fcSmrg struct incomplete_array *ia = 37847a2631fcSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 37857a2631fcSmrg ia->datasize = 10; 37867a2631fcSmrg for (int i = 0; i < ia->datasize; ++i) 37877a2631fcSmrg ia->data[i] = i * 1.234; 37887a2631fcSmrg 37897a2631fcSmrg // Check named initializers. 37907a2631fcSmrg struct named_init ni = { 37917a2631fcSmrg .number = 34, 37927a2631fcSmrg .name = L"Test wide string", 37937a2631fcSmrg .average = 543.34343, 37947a2631fcSmrg }; 37957a2631fcSmrg 37967a2631fcSmrg ni.number = 58; 37977a2631fcSmrg 37987a2631fcSmrg int dynamic_array[ni.number]; 37997a2631fcSmrg dynamic_array[ni.number - 1] = 543; 38007a2631fcSmrg 38017a2631fcSmrg // work around unused variable warnings 38027a2631fcSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 38037a2631fcSmrg || dynamic_array[ni.number - 1] != 543); 38047a2631fcSmrg 38053e747e6dSmrg ; 38063e747e6dSmrg return 0; 38073e747e6dSmrg} 38083e747e6dSmrg_ACEOF 38097a2631fcSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 38107a2631fcSmrgdo 38117a2631fcSmrg CC="$ac_save_CC $ac_arg" 38127a2631fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 38137a2631fcSmrg ac_cv_prog_cc_c99=$ac_arg 38147a2631fcSmrgfi 38157a2631fcSmrgrm -f core conftest.err conftest.$ac_objext 38167a2631fcSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 38173e747e6dSmrgdone 38187a2631fcSmrgrm -f conftest.$ac_ext 38197a2631fcSmrgCC=$ac_save_CC 38203e747e6dSmrg 38213e747e6dSmrgfi 38227a2631fcSmrg# AC_CACHE_VAL 38237a2631fcSmrgcase "x$ac_cv_prog_cc_c99" in 38247a2631fcSmrg x) 38257a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 38267a2631fcSmrg$as_echo "none needed" >&6; } ;; 38277a2631fcSmrg xno) 38287a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 38297a2631fcSmrg$as_echo "unsupported" >&6; } ;; 38307a2631fcSmrg *) 38317a2631fcSmrg CC="$CC $ac_cv_prog_cc_c99" 38327a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 38337a2631fcSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 38347a2631fcSmrgesac 38357a2631fcSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 38363e747e6dSmrg 38373e747e6dSmrgfi 38387a2631fcSmrg 38397a2631fcSmrg 38407a2631fcSmrg 38417a2631fcSmrgac_ext=c 38427a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 38437a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 38447a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 38457a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 38467a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 38477a2631fcSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 38487a2631fcSmrg# On Suns, sometimes $CPP names a directory. 38497a2631fcSmrgif test -n "$CPP" && test -d "$CPP"; then 38507a2631fcSmrg CPP= 38517a2631fcSmrgfi 38527a2631fcSmrgif test -z "$CPP"; then 38537a2631fcSmrg if ${ac_cv_prog_CPP+:} false; then : 38547a2631fcSmrg $as_echo_n "(cached) " >&6 38553e747e6dSmrgelse 38567a2631fcSmrg # Double quotes because CPP needs to be expanded 38577a2631fcSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 38587a2631fcSmrg do 38597a2631fcSmrg ac_preproc_ok=false 38607a2631fcSmrgfor ac_c_preproc_warn_flag in '' yes 38617a2631fcSmrgdo 38627a2631fcSmrg # Use a header file that comes with gcc, so configuring glibc 38637a2631fcSmrg # with a fresh cross-compiler works. 38647a2631fcSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 38657a2631fcSmrg # <limits.h> exists even on freestanding compilers. 38667a2631fcSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 38677a2631fcSmrg # not just through cpp. "Syntax error" is here to catch this case. 38687a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38697a2631fcSmrg/* end confdefs.h. */ 38707a2631fcSmrg#ifdef __STDC__ 38717a2631fcSmrg# include <limits.h> 38727a2631fcSmrg#else 38737a2631fcSmrg# include <assert.h> 38747a2631fcSmrg#endif 38757a2631fcSmrg Syntax error 38763e747e6dSmrg_ACEOF 38777a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 38787a2631fcSmrg 38797a2631fcSmrgelse 38807a2631fcSmrg # Broken: fails on valid input. 38817a2631fcSmrgcontinue 38827a2631fcSmrgfi 38837a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 38847a2631fcSmrg 38857a2631fcSmrg # OK, works on sane cases. Now check whether nonexistent headers 38867a2631fcSmrg # can be detected and how. 38877a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38883e747e6dSmrg/* end confdefs.h. */ 38897a2631fcSmrg#include <ac_nonexistent.h> 38907a2631fcSmrg_ACEOF 38917a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 38927a2631fcSmrg # Broken: success on invalid input. 38937a2631fcSmrgcontinue 38947a2631fcSmrgelse 38957a2631fcSmrg # Passes both tests. 38967a2631fcSmrgac_preproc_ok=: 38977a2631fcSmrgbreak 38987a2631fcSmrgfi 38997a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39003e747e6dSmrg 39017a2631fcSmrgdone 39027a2631fcSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 39037a2631fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 39047a2631fcSmrgif $ac_preproc_ok; then : 39057a2631fcSmrg break 39067a2631fcSmrgfi 39077a2631fcSmrg 39087a2631fcSmrg done 39097a2631fcSmrg ac_cv_prog_CPP=$CPP 39107a2631fcSmrg 39117a2631fcSmrgfi 39127a2631fcSmrg CPP=$ac_cv_prog_CPP 39137a2631fcSmrgelse 39147a2631fcSmrg ac_cv_prog_CPP=$CPP 39157a2631fcSmrgfi 39167a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 39177a2631fcSmrg$as_echo "$CPP" >&6; } 39187a2631fcSmrgac_preproc_ok=false 39197a2631fcSmrgfor ac_c_preproc_warn_flag in '' yes 39207a2631fcSmrgdo 39217a2631fcSmrg # Use a header file that comes with gcc, so configuring glibc 39227a2631fcSmrg # with a fresh cross-compiler works. 39237a2631fcSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 39247a2631fcSmrg # <limits.h> exists even on freestanding compilers. 39257a2631fcSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 39267a2631fcSmrg # not just through cpp. "Syntax error" is here to catch this case. 39277a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39287a2631fcSmrg/* end confdefs.h. */ 39297a2631fcSmrg#ifdef __STDC__ 39307a2631fcSmrg# include <limits.h> 39317a2631fcSmrg#else 39327a2631fcSmrg# include <assert.h> 39333e747e6dSmrg#endif 39347a2631fcSmrg Syntax error 39357a2631fcSmrg_ACEOF 39367a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39373e747e6dSmrg 39387a2631fcSmrgelse 39397a2631fcSmrg # Broken: fails on valid input. 39407a2631fcSmrgcontinue 39417a2631fcSmrgfi 39427a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39437a2631fcSmrg 39447a2631fcSmrg # OK, works on sane cases. Now check whether nonexistent headers 39457a2631fcSmrg # can be detected and how. 39467a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39477a2631fcSmrg/* end confdefs.h. */ 39487a2631fcSmrg#include <ac_nonexistent.h> 39493e747e6dSmrg_ACEOF 39507a2631fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39517a2631fcSmrg # Broken: success on invalid input. 39527a2631fcSmrgcontinue 39537a2631fcSmrgelse 39547a2631fcSmrg # Passes both tests. 39557a2631fcSmrgac_preproc_ok=: 39567a2631fcSmrgbreak 39577a2631fcSmrgfi 39587a2631fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39597a2631fcSmrg 39607a2631fcSmrgdone 39617a2631fcSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 39627a2631fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 39637a2631fcSmrgif $ac_preproc_ok; then : 39647a2631fcSmrg 39657a2631fcSmrgelse 39667a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39677a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39687a2631fcSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 39697a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 39707a2631fcSmrgfi 39717a2631fcSmrg 39727a2631fcSmrgac_ext=c 39737a2631fcSmrgac_cpp='$CPP $CPPFLAGS' 39747a2631fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 39757a2631fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 39767a2631fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 39777a2631fcSmrg 39787a2631fcSmrg 39797a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 39807a2631fcSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 39817a2631fcSmrgif ${ac_cv_path_GREP+:} false; then : 39827a2631fcSmrg $as_echo_n "(cached) " >&6 39837a2631fcSmrgelse 39847a2631fcSmrg if test -z "$GREP"; then 39857a2631fcSmrg ac_path_GREP_found=false 39867a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 39877a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39887a2631fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 39897a2631fcSmrgdo 39907a2631fcSmrg IFS=$as_save_IFS 39917a2631fcSmrg test -z "$as_dir" && as_dir=. 39927a2631fcSmrg for ac_prog in grep ggrep; do 39937a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 39947a2631fcSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 39957a2631fcSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 39967a2631fcSmrg# Check for GNU ac_path_GREP and select it if it is found. 39977a2631fcSmrg # Check for GNU $ac_path_GREP 39987a2631fcSmrgcase `"$ac_path_GREP" --version 2>&1` in 39997a2631fcSmrg*GNU*) 40007a2631fcSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 40017a2631fcSmrg*) 40027a2631fcSmrg ac_count=0 40037a2631fcSmrg $as_echo_n 0123456789 >"conftest.in" 40047a2631fcSmrg while : 40057a2631fcSmrg do 40067a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40077a2631fcSmrg mv "conftest.tmp" "conftest.in" 40087a2631fcSmrg cp "conftest.in" "conftest.nl" 40097a2631fcSmrg $as_echo 'GREP' >> "conftest.nl" 40107a2631fcSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40117a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40127a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 40137a2631fcSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 40147a2631fcSmrg # Best one so far, save it but keep looking for a better one 40157a2631fcSmrg ac_cv_path_GREP="$ac_path_GREP" 40167a2631fcSmrg ac_path_GREP_max=$ac_count 40177a2631fcSmrg fi 40187a2631fcSmrg # 10*(2^10) chars as input seems more than enough 40197a2631fcSmrg test $ac_count -gt 10 && break 40207a2631fcSmrg done 40217a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40223e747e6dSmrgesac 40237a2631fcSmrg 40247a2631fcSmrg $ac_path_GREP_found && break 3 40257a2631fcSmrg done 40267a2631fcSmrg done 40277a2631fcSmrg done 40287a2631fcSmrgIFS=$as_save_IFS 40297a2631fcSmrg if test -z "$ac_cv_path_GREP"; then 40307a2631fcSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 40317a2631fcSmrg fi 40323e747e6dSmrgelse 40337a2631fcSmrg ac_cv_path_GREP=$GREP 40347a2631fcSmrgfi 40353e747e6dSmrg 40363e747e6dSmrgfi 40377a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 40387a2631fcSmrg$as_echo "$ac_cv_path_GREP" >&6; } 40397a2631fcSmrg GREP="$ac_cv_path_GREP" 40403e747e6dSmrg 40413e747e6dSmrg 40427a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 40437a2631fcSmrg$as_echo_n "checking for egrep... " >&6; } 40447a2631fcSmrgif ${ac_cv_path_EGREP+:} false; then : 40457a2631fcSmrg $as_echo_n "(cached) " >&6 40467a2631fcSmrgelse 40477a2631fcSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 40487a2631fcSmrg then ac_cv_path_EGREP="$GREP -E" 40497a2631fcSmrg else 40507a2631fcSmrg if test -z "$EGREP"; then 40517a2631fcSmrg ac_path_EGREP_found=false 40527a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40537a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40547a2631fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40557a2631fcSmrgdo 40567a2631fcSmrg IFS=$as_save_IFS 40577a2631fcSmrg test -z "$as_dir" && as_dir=. 40587a2631fcSmrg for ac_prog in egrep; do 40597a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 40607a2631fcSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 40617a2631fcSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 40627a2631fcSmrg# Check for GNU ac_path_EGREP and select it if it is found. 40637a2631fcSmrg # Check for GNU $ac_path_EGREP 40647a2631fcSmrgcase `"$ac_path_EGREP" --version 2>&1` in 40657a2631fcSmrg*GNU*) 40667a2631fcSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 40677a2631fcSmrg*) 40687a2631fcSmrg ac_count=0 40697a2631fcSmrg $as_echo_n 0123456789 >"conftest.in" 40707a2631fcSmrg while : 40717a2631fcSmrg do 40727a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40737a2631fcSmrg mv "conftest.tmp" "conftest.in" 40747a2631fcSmrg cp "conftest.in" "conftest.nl" 40757a2631fcSmrg $as_echo 'EGREP' >> "conftest.nl" 40767a2631fcSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40777a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 40787a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 40797a2631fcSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 40807a2631fcSmrg # Best one so far, save it but keep looking for a better one 40817a2631fcSmrg ac_cv_path_EGREP="$ac_path_EGREP" 40827a2631fcSmrg ac_path_EGREP_max=$ac_count 40837a2631fcSmrg fi 40847a2631fcSmrg # 10*(2^10) chars as input seems more than enough 40857a2631fcSmrg test $ac_count -gt 10 && break 40867a2631fcSmrg done 40877a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40887a2631fcSmrgesac 40897a2631fcSmrg 40907a2631fcSmrg $ac_path_EGREP_found && break 3 40917a2631fcSmrg done 40927a2631fcSmrg done 40937a2631fcSmrg done 40947a2631fcSmrgIFS=$as_save_IFS 40957a2631fcSmrg if test -z "$ac_cv_path_EGREP"; then 40967a2631fcSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 40977a2631fcSmrg fi 40987a2631fcSmrgelse 40997a2631fcSmrg ac_cv_path_EGREP=$EGREP 41007a2631fcSmrgfi 41017a2631fcSmrg 41027a2631fcSmrg fi 41033e747e6dSmrgfi 41047a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 41057a2631fcSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 41067a2631fcSmrg EGREP="$ac_cv_path_EGREP" 41077a2631fcSmrg 41087a2631fcSmrg 41097a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41107a2631fcSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 41117a2631fcSmrgif ${ac_cv_header_stdc+:} false; then : 41127a2631fcSmrg $as_echo_n "(cached) " >&6 41133e747e6dSmrgelse 41147a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41153e747e6dSmrg/* end confdefs.h. */ 41167a2631fcSmrg#include <stdlib.h> 41177a2631fcSmrg#include <stdarg.h> 41187a2631fcSmrg#include <string.h> 41197a2631fcSmrg#include <float.h> 41203e747e6dSmrg 41213e747e6dSmrgint 41223e747e6dSmrgmain () 41233e747e6dSmrg{ 41243e747e6dSmrg 41253e747e6dSmrg ; 41263e747e6dSmrg return 0; 41273e747e6dSmrg} 41283e747e6dSmrg_ACEOF 41297a2631fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 41307a2631fcSmrg ac_cv_header_stdc=yes 41313e747e6dSmrgelse 41327a2631fcSmrg ac_cv_header_stdc=no 41337a2631fcSmrgfi 41347a2631fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41357a2631fcSmrg 41367a2631fcSmrgif test $ac_cv_header_stdc = yes; then 41377a2631fcSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41387a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41397a2631fcSmrg/* end confdefs.h. */ 41407a2631fcSmrg#include <string.h> 41417a2631fcSmrg 41427a2631fcSmrg_ACEOF 41437a2631fcSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41447a2631fcSmrg $EGREP "memchr" >/dev/null 2>&1; then : 41457a2631fcSmrg 41467a2631fcSmrgelse 41477a2631fcSmrg ac_cv_header_stdc=no 41487a2631fcSmrgfi 41497a2631fcSmrgrm -f conftest* 41503e747e6dSmrg 41517a2631fcSmrgfi 41523e747e6dSmrg 41537a2631fcSmrgif test $ac_cv_header_stdc = yes; then 41547a2631fcSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41557a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41567a2631fcSmrg/* end confdefs.h. */ 41577a2631fcSmrg#include <stdlib.h> 41583e747e6dSmrg 41593e747e6dSmrg_ACEOF 41607a2631fcSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41617a2631fcSmrg $EGREP "free" >/dev/null 2>&1; then : 41627a2631fcSmrg 41633e747e6dSmrgelse 41647a2631fcSmrg ac_cv_header_stdc=no 41657a2631fcSmrgfi 41667a2631fcSmrgrm -f conftest* 41673e747e6dSmrg 41687a2631fcSmrgfi 41697a2631fcSmrg 41707a2631fcSmrgif test $ac_cv_header_stdc = yes; then 41717a2631fcSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41727a2631fcSmrg if test "$cross_compiling" = yes; then : 41737a2631fcSmrg : 41747a2631fcSmrgelse 41757a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41763e747e6dSmrg/* end confdefs.h. */ 41777a2631fcSmrg#include <ctype.h> 41787a2631fcSmrg#include <stdlib.h> 41797a2631fcSmrg#if ((' ' & 0x0FF) == 0x020) 41807a2631fcSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41817a2631fcSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41827a2631fcSmrg#else 41837a2631fcSmrg# define ISLOWER(c) \ 41847a2631fcSmrg (('a' <= (c) && (c) <= 'i') \ 41857a2631fcSmrg || ('j' <= (c) && (c) <= 'r') \ 41867a2631fcSmrg || ('s' <= (c) && (c) <= 'z')) 41877a2631fcSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41887a2631fcSmrg#endif 41893e747e6dSmrg 41907a2631fcSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41913e747e6dSmrgint 41923e747e6dSmrgmain () 41933e747e6dSmrg{ 41947a2631fcSmrg int i; 41957a2631fcSmrg for (i = 0; i < 256; i++) 41967a2631fcSmrg if (XOR (islower (i), ISLOWER (i)) 41977a2631fcSmrg || toupper (i) != TOUPPER (i)) 41987a2631fcSmrg return 2; 41993e747e6dSmrg return 0; 42003e747e6dSmrg} 42013e747e6dSmrg_ACEOF 42027a2631fcSmrgif ac_fn_c_try_run "$LINENO"; then : 42037a2631fcSmrg 42043e747e6dSmrgelse 42057a2631fcSmrg ac_cv_header_stdc=no 42067a2631fcSmrgfi 42077a2631fcSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42087a2631fcSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 42097a2631fcSmrgfi 42107a2631fcSmrg 42117a2631fcSmrgfi 42127a2631fcSmrgfi 42137a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 42147a2631fcSmrg$as_echo "$ac_cv_header_stdc" >&6; } 42157a2631fcSmrgif test $ac_cv_header_stdc = yes; then 42163e747e6dSmrg 42177a2631fcSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 42183e747e6dSmrg 42193e747e6dSmrgfi 42203e747e6dSmrg 42217a2631fcSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 42227a2631fcSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 42237a2631fcSmrg inttypes.h stdint.h unistd.h 42247a2631fcSmrgdo : 42257a2631fcSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 42267a2631fcSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 42277a2631fcSmrg" 42287a2631fcSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 42297a2631fcSmrg cat >>confdefs.h <<_ACEOF 42307a2631fcSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 42317a2631fcSmrg_ACEOF 42327a2631fcSmrg 42333e747e6dSmrgfi 42343e747e6dSmrg 42357a2631fcSmrgdone 42367a2631fcSmrg 42377a2631fcSmrg 42387a2631fcSmrg 42397a2631fcSmrg 42407a2631fcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 42417a2631fcSmrg if test -n "$ac_tool_prefix"; then 42427a2631fcSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 42437a2631fcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 42447a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42457a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 42467a2631fcSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 42477a2631fcSmrg $as_echo_n "(cached) " >&6 42487a2631fcSmrgelse 42497a2631fcSmrg case $PKG_CONFIG in 42507a2631fcSmrg [\\/]* | ?:[\\/]*) 42517a2631fcSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 42527a2631fcSmrg ;; 42537a2631fcSmrg *) 42547a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42557a2631fcSmrgfor as_dir in $PATH 42567a2631fcSmrgdo 42577a2631fcSmrg IFS=$as_save_IFS 42587a2631fcSmrg test -z "$as_dir" && as_dir=. 42597a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 42607a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 42617a2631fcSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 42627a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42637a2631fcSmrg break 2 42647a2631fcSmrg fi 42657a2631fcSmrgdone 42667a2631fcSmrg done 42677a2631fcSmrgIFS=$as_save_IFS 42687a2631fcSmrg 42697a2631fcSmrg ;; 42707a2631fcSmrgesac 42717a2631fcSmrgfi 42727a2631fcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 42737a2631fcSmrgif test -n "$PKG_CONFIG"; then 42747a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 42757a2631fcSmrg$as_echo "$PKG_CONFIG" >&6; } 42767a2631fcSmrgelse 42777a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42787a2631fcSmrg$as_echo "no" >&6; } 42793e747e6dSmrgfi 42803e747e6dSmrg 42817a2631fcSmrg 42823e747e6dSmrgfi 42837a2631fcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 42847a2631fcSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 42857a2631fcSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 42867a2631fcSmrgset dummy pkg-config; ac_word=$2 42877a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42887a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 42897a2631fcSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 42907a2631fcSmrg $as_echo_n "(cached) " >&6 42917a2631fcSmrgelse 42927a2631fcSmrg case $ac_pt_PKG_CONFIG in 42937a2631fcSmrg [\\/]* | ?:[\\/]*) 42947a2631fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 42957a2631fcSmrg ;; 42967a2631fcSmrg *) 42977a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42987a2631fcSmrgfor as_dir in $PATH 42997a2631fcSmrgdo 43007a2631fcSmrg IFS=$as_save_IFS 43017a2631fcSmrg test -z "$as_dir" && as_dir=. 43027a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 43037a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 43047a2631fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 43057a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43067a2631fcSmrg break 2 43073e747e6dSmrg fi 43087a2631fcSmrgdone 43097a2631fcSmrg done 43107a2631fcSmrgIFS=$as_save_IFS 43117a2631fcSmrg 43127a2631fcSmrg ;; 43137a2631fcSmrgesac 43147a2631fcSmrgfi 43157a2631fcSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 43167a2631fcSmrgif test -n "$ac_pt_PKG_CONFIG"; then 43177a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 43187a2631fcSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 43193e747e6dSmrgelse 43207a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43217a2631fcSmrg$as_echo "no" >&6; } 43227a2631fcSmrgfi 43237a2631fcSmrg 43247a2631fcSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 43257a2631fcSmrg PKG_CONFIG="" 43263e747e6dSmrg else 43277a2631fcSmrg case $cross_compiling:$ac_tool_warned in 43287a2631fcSmrgyes:) 43297a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43307a2631fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43317a2631fcSmrgac_tool_warned=yes ;; 43327a2631fcSmrgesac 43337a2631fcSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 43343e747e6dSmrg fi 43353e747e6dSmrgelse 43367a2631fcSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 43377a2631fcSmrgfi 43383e747e6dSmrg 43397a2631fcSmrgfi 43407a2631fcSmrgif test -n "$PKG_CONFIG"; then 43417a2631fcSmrg _pkg_min_version=0.9.0 43427a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 43437a2631fcSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 43447a2631fcSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 43457a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43467a2631fcSmrg$as_echo "yes" >&6; } 43477a2631fcSmrg else 43487a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43497a2631fcSmrg$as_echo "no" >&6; } 43507a2631fcSmrg PKG_CONFIG="" 43517a2631fcSmrg fi 43523e747e6dSmrg 43537a2631fcSmrgfi 43547a2631fcSmrg# Make sure we can run config.sub. 43557a2631fcSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 43567a2631fcSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 43573e747e6dSmrg 43587a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 43597a2631fcSmrg$as_echo_n "checking build system type... " >&6; } 43607a2631fcSmrgif ${ac_cv_build+:} false; then : 43617a2631fcSmrg $as_echo_n "(cached) " >&6 43627a2631fcSmrgelse 43637a2631fcSmrg ac_build_alias=$build_alias 43647a2631fcSmrgtest "x$ac_build_alias" = x && 43657a2631fcSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 43667a2631fcSmrgtest "x$ac_build_alias" = x && 43677a2631fcSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 43687a2631fcSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 43697a2631fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 43707a2631fcSmrg 43717a2631fcSmrgfi 43727a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 43737a2631fcSmrg$as_echo "$ac_cv_build" >&6; } 43747a2631fcSmrgcase $ac_cv_build in 43757a2631fcSmrg*-*-*) ;; 43767a2631fcSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 43773e747e6dSmrgesac 43787a2631fcSmrgbuild=$ac_cv_build 43797a2631fcSmrgac_save_IFS=$IFS; IFS='-' 43807a2631fcSmrgset x $ac_cv_build 43817a2631fcSmrgshift 43827a2631fcSmrgbuild_cpu=$1 43837a2631fcSmrgbuild_vendor=$2 43847a2631fcSmrgshift; shift 43857a2631fcSmrg# Remember, the first character of IFS is used to create $*, 43867a2631fcSmrg# except with old shells: 43877a2631fcSmrgbuild_os=$* 43887a2631fcSmrgIFS=$ac_save_IFS 43897a2631fcSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 43907a2631fcSmrg 43917a2631fcSmrg 43927a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 43937a2631fcSmrg$as_echo_n "checking host system type... " >&6; } 43947a2631fcSmrgif ${ac_cv_host+:} false; then : 43957a2631fcSmrg $as_echo_n "(cached) " >&6 43963e747e6dSmrgelse 43977a2631fcSmrg if test "x$host_alias" = x; then 43987a2631fcSmrg ac_cv_host=$ac_cv_build 43997a2631fcSmrgelse 44007a2631fcSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 44017a2631fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 44027a2631fcSmrgfi 44037a2631fcSmrg 44047a2631fcSmrgfi 44057a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 44067a2631fcSmrg$as_echo "$ac_cv_host" >&6; } 44077a2631fcSmrgcase $ac_cv_host in 44087a2631fcSmrg*-*-*) ;; 44097a2631fcSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 44107a2631fcSmrgesac 44117a2631fcSmrghost=$ac_cv_host 44127a2631fcSmrgac_save_IFS=$IFS; IFS='-' 44137a2631fcSmrgset x $ac_cv_host 44147a2631fcSmrgshift 44157a2631fcSmrghost_cpu=$1 44167a2631fcSmrghost_vendor=$2 44177a2631fcSmrgshift; shift 44187a2631fcSmrg# Remember, the first character of IFS is used to create $*, 44197a2631fcSmrg# except with old shells: 44207a2631fcSmrghost_os=$* 44217a2631fcSmrgIFS=$ac_save_IFS 44227a2631fcSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 44233e747e6dSmrg 44243e747e6dSmrg 44257a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 44267a2631fcSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 44277a2631fcSmrgif ${ac_cv_path_SED+:} false; then : 44287a2631fcSmrg $as_echo_n "(cached) " >&6 44297a2631fcSmrgelse 44307a2631fcSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 44317a2631fcSmrg for ac_i in 1 2 3 4 5 6 7; do 44327a2631fcSmrg ac_script="$ac_script$as_nl$ac_script" 44337a2631fcSmrg done 44347a2631fcSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 44357a2631fcSmrg { ac_script=; unset ac_script;} 44367a2631fcSmrg if test -z "$SED"; then 44377a2631fcSmrg ac_path_SED_found=false 44387a2631fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 44397a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44407a2631fcSmrgfor as_dir in $PATH 44417a2631fcSmrgdo 44427a2631fcSmrg IFS=$as_save_IFS 44437a2631fcSmrg test -z "$as_dir" && as_dir=. 44447a2631fcSmrg for ac_prog in sed gsed; do 44457a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 44467a2631fcSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 44477a2631fcSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 44487a2631fcSmrg# Check for GNU ac_path_SED and select it if it is found. 44497a2631fcSmrg # Check for GNU $ac_path_SED 44507a2631fcSmrgcase `"$ac_path_SED" --version 2>&1` in 44517a2631fcSmrg*GNU*) 44527a2631fcSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 44537a2631fcSmrg*) 44547a2631fcSmrg ac_count=0 44557a2631fcSmrg $as_echo_n 0123456789 >"conftest.in" 44567a2631fcSmrg while : 44577a2631fcSmrg do 44587a2631fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 44597a2631fcSmrg mv "conftest.tmp" "conftest.in" 44607a2631fcSmrg cp "conftest.in" "conftest.nl" 44617a2631fcSmrg $as_echo '' >> "conftest.nl" 44627a2631fcSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 44637a2631fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 44647a2631fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 44657a2631fcSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 44667a2631fcSmrg # Best one so far, save it but keep looking for a better one 44677a2631fcSmrg ac_cv_path_SED="$ac_path_SED" 44687a2631fcSmrg ac_path_SED_max=$ac_count 44697a2631fcSmrg fi 44707a2631fcSmrg # 10*(2^10) chars as input seems more than enough 44717a2631fcSmrg test $ac_count -gt 10 && break 44727a2631fcSmrg done 44737a2631fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 44747a2631fcSmrgesac 44753e747e6dSmrg 44767a2631fcSmrg $ac_path_SED_found && break 3 44777a2631fcSmrg done 44787a2631fcSmrg done 44797a2631fcSmrg done 44807a2631fcSmrgIFS=$as_save_IFS 44817a2631fcSmrg if test -z "$ac_cv_path_SED"; then 44827a2631fcSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 44837a2631fcSmrg fi 44847a2631fcSmrgelse 44857a2631fcSmrg ac_cv_path_SED=$SED 44867a2631fcSmrgfi 44873e747e6dSmrg 44883e747e6dSmrgfi 44897a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 44907a2631fcSmrg$as_echo "$ac_cv_path_SED" >&6; } 44917a2631fcSmrg SED="$ac_cv_path_SED" 44927a2631fcSmrg rm -f conftest.sed 44933e747e6dSmrg 44943e747e6dSmrg 44953e747e6dSmrg 44963e747e6dSmrg 44973e747e6dSmrg 44987a2631fcSmrgif test "x$GCC" = xyes ; then 44997a2631fcSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 45007a2631fcSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 45017a2631fcSmrg-Wbad-function-cast -Wformat=2" 45027a2631fcSmrg case `$CC -dumpversion` in 45037a2631fcSmrg 3.4.* | 4.*) 45047a2631fcSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 45057a2631fcSmrg ;; 45067a2631fcSmrg esac 45077a2631fcSmrgelse 45087a2631fcSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 45097a2631fcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 45107a2631fcSmrg SUNCC="yes" 45117a2631fcSmrgelse 45127a2631fcSmrg SUNCC="no" 45133e747e6dSmrgfi 45147a2631fcSmrg 45157a2631fcSmrg if test "x$SUNCC" = "xyes"; then 45167a2631fcSmrg CWARNFLAGS="-v" 45177a2631fcSmrg fi 45183e747e6dSmrgfi 45193e747e6dSmrg 45203e747e6dSmrg 45213e747e6dSmrg 45227a2631fcSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 45237a2631fcSmrg 45247a2631fcSmrg 45257a2631fcSmrg 45267a2631fcSmrg# Check whether --enable-strict-compilation was given. 45277a2631fcSmrgif test "${enable_strict_compilation+set}" = set; then : 45287a2631fcSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 45297a2631fcSmrgelse 45307a2631fcSmrg STRICT_COMPILE=no 45313e747e6dSmrgfi 45323e747e6dSmrg 45337a2631fcSmrgif test "x$STRICT_COMPILE" = "xyes"; then 45347a2631fcSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 45357a2631fcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 45367a2631fcSmrg SUNCC="yes" 45377a2631fcSmrgelse 45387a2631fcSmrg SUNCC="no" 45393e747e6dSmrgfi 45407a2631fcSmrg 45417a2631fcSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 45427a2631fcSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 45437a2631fcSmrg INTELCC="yes" 45443e747e6dSmrgelse 45457a2631fcSmrg INTELCC="no" 45463e747e6dSmrgfi 45473e747e6dSmrg 45487a2631fcSmrg if test "x$GCC" = xyes ; then 45497a2631fcSmrg STRICT_CFLAGS="-pedantic -Werror" 45507a2631fcSmrg elif test "x$SUNCC" = "xyes"; then 45517a2631fcSmrg STRICT_CFLAGS="-errwarn" 45527a2631fcSmrg elif test "x$INTELCC" = "xyes"; then 45537a2631fcSmrg STRICT_CFLAGS="-Werror" 45547a2631fcSmrg fi 45557a2631fcSmrgfi 45567a2631fcSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 45573e747e6dSmrg 45583e747e6dSmrg 45593e747e6dSmrg 45603e747e6dSmrg 45617a2631fcSmrgcat >>confdefs.h <<_ACEOF 45627a2631fcSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 45637a2631fcSmrg_ACEOF 45643e747e6dSmrg 45657a2631fcSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 45667a2631fcSmrg if test "x$PVM" = "x"; then 45677a2631fcSmrg PVM="0" 45687a2631fcSmrg fi 45697a2631fcSmrg 45707a2631fcSmrgcat >>confdefs.h <<_ACEOF 45717a2631fcSmrg#define PACKAGE_VERSION_MINOR $PVM 45727a2631fcSmrg_ACEOF 45737a2631fcSmrg 45747a2631fcSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 45757a2631fcSmrg if test "x$PVP" = "x"; then 45767a2631fcSmrg PVP="0" 45777a2631fcSmrg fi 45787a2631fcSmrg 45797a2631fcSmrgcat >>confdefs.h <<_ACEOF 45807a2631fcSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 45817a2631fcSmrg_ACEOF 45827a2631fcSmrg 45837a2631fcSmrg 45847a2631fcSmrg 45857a2631fcSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 45867a2631fcSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 45877a2631fcSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 45887a2631fcSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 45897a2631fcSmrg 45907a2631fcSmrg 45917a2631fcSmrg 45927a2631fcSmrg 45937a2631fcSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 45947a2631fcSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 45957a2631fcSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 45967a2631fcSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 45977a2631fcSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 45987a2631fcSmrg 45997a2631fcSmrg 46007a2631fcSmrg 46017a2631fcSmrg 46027a2631fcSmrg 46037a2631fcSmrg 46047a2631fcSmrgif test x$APP_MAN_SUFFIX = x ; then 46057a2631fcSmrg APP_MAN_SUFFIX=1 46067a2631fcSmrgfi 46077a2631fcSmrgif test x$APP_MAN_DIR = x ; then 46087a2631fcSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 46097a2631fcSmrgfi 46107a2631fcSmrg 46117a2631fcSmrgif test x$LIB_MAN_SUFFIX = x ; then 46127a2631fcSmrg LIB_MAN_SUFFIX=3 46137a2631fcSmrgfi 46147a2631fcSmrgif test x$LIB_MAN_DIR = x ; then 46157a2631fcSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 46167a2631fcSmrgfi 46177a2631fcSmrg 46187a2631fcSmrgif test x$FILE_MAN_SUFFIX = x ; then 46197a2631fcSmrg case $host_os in 46207a2631fcSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 46217a2631fcSmrg *) FILE_MAN_SUFFIX=5 ;; 46223e747e6dSmrg esac 46237a2631fcSmrgfi 46247a2631fcSmrgif test x$FILE_MAN_DIR = x ; then 46257a2631fcSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 46267a2631fcSmrgfi 46273e747e6dSmrg 46287a2631fcSmrgif test x$MISC_MAN_SUFFIX = x ; then 46297a2631fcSmrg case $host_os in 46307a2631fcSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 46317a2631fcSmrg *) MISC_MAN_SUFFIX=7 ;; 46327a2631fcSmrg esac 46337a2631fcSmrgfi 46347a2631fcSmrgif test x$MISC_MAN_DIR = x ; then 46357a2631fcSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 46363e747e6dSmrgfi 46373e747e6dSmrg 46387a2631fcSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 46397a2631fcSmrg case $host_os in 46407a2631fcSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 46417a2631fcSmrg *) DRIVER_MAN_SUFFIX=4 ;; 46427a2631fcSmrg esac 46437a2631fcSmrgfi 46447a2631fcSmrgif test x$DRIVER_MAN_DIR = x ; then 46457a2631fcSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 46463e747e6dSmrgfi 46473e747e6dSmrg 46487a2631fcSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 46497a2631fcSmrg case $host_os in 46507a2631fcSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 46517a2631fcSmrg *) ADMIN_MAN_SUFFIX=8 ;; 46527a2631fcSmrg esac 46537a2631fcSmrgfi 46547a2631fcSmrgif test x$ADMIN_MAN_DIR = x ; then 46557a2631fcSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 46563e747e6dSmrgfi 46573e747e6dSmrg 46583e747e6dSmrg 46593e747e6dSmrg 46603e747e6dSmrg 46617a2631fcSmrg 46627a2631fcSmrg 46637a2631fcSmrg 46647a2631fcSmrg 46657a2631fcSmrg 46667a2631fcSmrg 46677a2631fcSmrg 46687a2631fcSmrg 46697a2631fcSmrg 46707a2631fcSmrg 46717a2631fcSmrg 46727a2631fcSmrgXORG_MAN_PAGE="X Version 11" 46737a2631fcSmrg 46747a2631fcSmrgMAN_SUBSTS="\ 46757a2631fcSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 46767a2631fcSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 46777a2631fcSmrg -e 's|__xservername__|Xorg|g' \ 46787a2631fcSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 46797a2631fcSmrg -e 's|__projectroot__|\$(prefix)|g' \ 46807a2631fcSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 46817a2631fcSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 46827a2631fcSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 46837a2631fcSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 46847a2631fcSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 46857a2631fcSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 46867a2631fcSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 46877a2631fcSmrg 46887a2631fcSmrg 46897a2631fcSmrg 46907a2631fcSmrg# Check whether --enable-silent-rules was given. 46917a2631fcSmrgif test "${enable_silent_rules+set}" = set; then : 46927a2631fcSmrg enableval=$enable_silent_rules; 46933e747e6dSmrgfi 46943e747e6dSmrg 46957a2631fcSmrgcase $enable_silent_rules in 46967a2631fcSmrgyes) AM_DEFAULT_VERBOSITY=0;; 46977a2631fcSmrgno) AM_DEFAULT_VERBOSITY=1;; 46987a2631fcSmrg*) AM_DEFAULT_VERBOSITY=0;; 46997a2631fcSmrgesac 47007a2631fcSmrgAM_BACKSLASH='\' 47013e747e6dSmrg 47023e747e6dSmrg 47033e747e6dSmrg 47043e747e6dSmrgfor ac_prog in 'bison -y' byacc 47053e747e6dSmrgdo 47063e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 47073e747e6dSmrgset dummy $ac_prog; ac_word=$2 47087a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47097a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 47107a2631fcSmrgif ${ac_cv_prog_YACC+:} false; then : 47117a2631fcSmrg $as_echo_n "(cached) " >&6 47123e747e6dSmrgelse 47133e747e6dSmrg if test -n "$YACC"; then 47143e747e6dSmrg ac_cv_prog_YACC="$YACC" # Let the user override the test. 47153e747e6dSmrgelse 47163e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47173e747e6dSmrgfor as_dir in $PATH 47183e747e6dSmrgdo 47193e747e6dSmrg IFS=$as_save_IFS 47203e747e6dSmrg test -z "$as_dir" && as_dir=. 47217a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47223e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 47233e747e6dSmrg ac_cv_prog_YACC="$ac_prog" 47247a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47253e747e6dSmrg break 2 47263e747e6dSmrg fi 47273e747e6dSmrgdone 47287a2631fcSmrg done 47293e747e6dSmrgIFS=$as_save_IFS 47303e747e6dSmrg 47313e747e6dSmrgfi 47323e747e6dSmrgfi 47333e747e6dSmrgYACC=$ac_cv_prog_YACC 47343e747e6dSmrgif test -n "$YACC"; then 47357a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 47367a2631fcSmrg$as_echo "$YACC" >&6; } 47373e747e6dSmrgelse 47387a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47397a2631fcSmrg$as_echo "no" >&6; } 47403e747e6dSmrgfi 47413e747e6dSmrg 47423e747e6dSmrg 47433e747e6dSmrg test -n "$YACC" && break 47443e747e6dSmrgdone 47453e747e6dSmrgtest -n "$YACC" || YACC="yacc" 47463e747e6dSmrg 47477a2631fcSmrg# Extract the first word of "$YACC", so it can be a program name with args. 47487a2631fcSmrgset dummy $YACC; ac_word=$2 47497a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47507a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 47517a2631fcSmrgif ${ac_cv_path_YACC_INST+:} false; then : 47527a2631fcSmrg $as_echo_n "(cached) " >&6 47537a2631fcSmrgelse 47547a2631fcSmrg case $YACC_INST in 47557a2631fcSmrg [\\/]* | ?:[\\/]*) 47567a2631fcSmrg ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 47577a2631fcSmrg ;; 47587a2631fcSmrg *) 47597a2631fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47607a2631fcSmrgfor as_dir in $PATH 47617a2631fcSmrgdo 47627a2631fcSmrg IFS=$as_save_IFS 47637a2631fcSmrg test -z "$as_dir" && as_dir=. 47647a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 47657a2631fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 47667a2631fcSmrg ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext" 47677a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47687a2631fcSmrg break 2 47697a2631fcSmrg fi 47707a2631fcSmrgdone 47717a2631fcSmrg done 47727a2631fcSmrgIFS=$as_save_IFS 47737a2631fcSmrg 47747a2631fcSmrg ;; 47757a2631fcSmrgesac 47767a2631fcSmrgfi 47777a2631fcSmrgYACC_INST=$ac_cv_path_YACC_INST 47787a2631fcSmrgif test -n "$YACC_INST"; then 47797a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 47807a2631fcSmrg$as_echo "$YACC_INST" >&6; } 47817a2631fcSmrgelse 47827a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47837a2631fcSmrg$as_echo "no" >&6; } 47847a2631fcSmrgfi 47857a2631fcSmrg 47867a2631fcSmrg 47877a2631fcSmrgas_ac_File=`$as_echo "ac_cv_file_$srcdir/gram.c" | $as_tr_sh` 47887a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/gram.c" >&5 47897a2631fcSmrg$as_echo_n "checking for $srcdir/gram.c... " >&6; } 47907a2631fcSmrgif eval \${$as_ac_File+:} false; then : 47917a2631fcSmrg $as_echo_n "(cached) " >&6 47927a2631fcSmrgelse 47937a2631fcSmrg test "$cross_compiling" = yes && 47947a2631fcSmrg as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 47957a2631fcSmrgif test -r "$srcdir/gram.c"; then 47967a2631fcSmrg eval "$as_ac_File=yes" 47977a2631fcSmrgelse 47987a2631fcSmrg eval "$as_ac_File=no" 47997a2631fcSmrgfi 48007a2631fcSmrgfi 48017a2631fcSmrgeval ac_res=\$$as_ac_File 48027a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 48037a2631fcSmrg$as_echo "$ac_res" >&6; } 48047a2631fcSmrgif eval test \"x\$"$as_ac_File"\" = x"yes"; then : 48057a2631fcSmrg 48067a2631fcSmrgelse 48077a2631fcSmrg test -z "$YACC_INST" && as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5 48087a2631fcSmrgfi 48093e747e6dSmrg 48103e747e6dSmrgfor ac_prog in flex lex 48113e747e6dSmrgdo 48123e747e6dSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 48133e747e6dSmrgset dummy $ac_prog; ac_word=$2 48147a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48157a2631fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 48167a2631fcSmrgif ${ac_cv_prog_LEX+:} false; then : 48177a2631fcSmrg $as_echo_n "(cached) " >&6 48183e747e6dSmrgelse 48193e747e6dSmrg if test -n "$LEX"; then 48203e747e6dSmrg ac_cv_prog_LEX="$LEX" # Let the user override the test. 48213e747e6dSmrgelse 48223e747e6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48233e747e6dSmrgfor as_dir in $PATH 48243e747e6dSmrgdo 48253e747e6dSmrg IFS=$as_save_IFS 48263e747e6dSmrg test -z "$as_dir" && as_dir=. 48277a2631fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 48283e747e6dSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 48293e747e6dSmrg ac_cv_prog_LEX="$ac_prog" 48307a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48313e747e6dSmrg break 2 48323e747e6dSmrg fi 48333e747e6dSmrgdone 48347a2631fcSmrg done 48353e747e6dSmrgIFS=$as_save_IFS 48363e747e6dSmrg 48373e747e6dSmrgfi 48383e747e6dSmrgfi 48393e747e6dSmrgLEX=$ac_cv_prog_LEX 48403e747e6dSmrgif test -n "$LEX"; then 48417a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 48427a2631fcSmrg$as_echo "$LEX" >&6; } 48433e747e6dSmrgelse 48447a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48457a2631fcSmrg$as_echo "no" >&6; } 48463e747e6dSmrgfi 48473e747e6dSmrg 48483e747e6dSmrg 48493e747e6dSmrg test -n "$LEX" && break 48503e747e6dSmrgdone 48513e747e6dSmrgtest -n "$LEX" || LEX=":" 48523e747e6dSmrg 48533e747e6dSmrgif test "x$LEX" != "x:"; then 48543e747e6dSmrg cat >conftest.l <<_ACEOF 48553e747e6dSmrg%% 48563e747e6dSmrga { ECHO; } 48573e747e6dSmrgb { REJECT; } 48583e747e6dSmrgc { yymore (); } 48593e747e6dSmrgd { yyless (1); } 48603e747e6dSmrge { yyless (input () != 0); } 48613e747e6dSmrgf { unput (yytext[0]); } 48623e747e6dSmrg. { BEGIN INITIAL; } 48633e747e6dSmrg%% 48643e747e6dSmrg#ifdef YYTEXT_POINTER 48653e747e6dSmrgextern char *yytext; 48663e747e6dSmrg#endif 48673e747e6dSmrgint 48683e747e6dSmrgmain (void) 48693e747e6dSmrg{ 48703e747e6dSmrg return ! yylex () + ! yywrap (); 48713e747e6dSmrg} 48723e747e6dSmrg_ACEOF 48737a2631fcSmrg{ { ac_try="$LEX conftest.l" 48743e747e6dSmrgcase "(($ac_try" in 48753e747e6dSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48763e747e6dSmrg *) ac_try_echo=$ac_try;; 48773e747e6dSmrgesac 48787a2631fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 48797a2631fcSmrg$as_echo "$ac_try_echo"; } >&5 48803e747e6dSmrg (eval "$LEX conftest.l") 2>&5 48813e747e6dSmrg ac_status=$? 48827a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48837a2631fcSmrg test $ac_status = 0; } 48847a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 48857a2631fcSmrg$as_echo_n "checking lex output file root... " >&6; } 48867a2631fcSmrgif ${ac_cv_prog_lex_root+:} false; then : 48877a2631fcSmrg $as_echo_n "(cached) " >&6 48883e747e6dSmrgelse 48893e747e6dSmrg 48903e747e6dSmrgif test -f lex.yy.c; then 48913e747e6dSmrg ac_cv_prog_lex_root=lex.yy 48923e747e6dSmrgelif test -f lexyy.c; then 48933e747e6dSmrg ac_cv_prog_lex_root=lexyy 48943e747e6dSmrgelse 48957a2631fcSmrg as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 48963e747e6dSmrgfi 48973e747e6dSmrgfi 48987a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 48997a2631fcSmrg$as_echo "$ac_cv_prog_lex_root" >&6; } 49003e747e6dSmrgLEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 49013e747e6dSmrg 49023e747e6dSmrgif test -z "${LEXLIB+set}"; then 49037a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 49047a2631fcSmrg$as_echo_n "checking lex library... " >&6; } 49057a2631fcSmrgif ${ac_cv_lib_lex+:} false; then : 49067a2631fcSmrg $as_echo_n "(cached) " >&6 49073e747e6dSmrgelse 49083e747e6dSmrg 49093e747e6dSmrg ac_save_LIBS=$LIBS 49103e747e6dSmrg ac_cv_lib_lex='none needed' 49113e747e6dSmrg for ac_lib in '' -lfl -ll; do 49123e747e6dSmrg LIBS="$ac_lib $ac_save_LIBS" 49137a2631fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49147a2631fcSmrg/* end confdefs.h. */ 49153e747e6dSmrg`cat $LEX_OUTPUT_ROOT.c` 49163e747e6dSmrg_ACEOF 49177a2631fcSmrgif ac_fn_c_try_link "$LINENO"; then : 49183e747e6dSmrg ac_cv_lib_lex=$ac_lib 49193e747e6dSmrgfi 49207a2631fcSmrgrm -f core conftest.err conftest.$ac_objext \ 49217a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 49223e747e6dSmrg test "$ac_cv_lib_lex" != 'none needed' && break 49233e747e6dSmrg done 49243e747e6dSmrg LIBS=$ac_save_LIBS 49253e747e6dSmrg 49263e747e6dSmrgfi 49277a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 49287a2631fcSmrg$as_echo "$ac_cv_lib_lex" >&6; } 49293e747e6dSmrg test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 49303e747e6dSmrgfi 49313e747e6dSmrg 49323e747e6dSmrg 49337a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 49347a2631fcSmrg$as_echo_n "checking whether yytext is a pointer... " >&6; } 49357a2631fcSmrgif ${ac_cv_prog_lex_yytext_pointer+:} false; then : 49367a2631fcSmrg $as_echo_n "(cached) " >&6 49373e747e6dSmrgelse 49383e747e6dSmrg # POSIX says lex can declare yytext either as a pointer or an array; the 49393e747e6dSmrg# default is implementation-dependent. Figure out which it is, since 49403e747e6dSmrg# not all implementations provide the %pointer and %array declarations. 49413e747e6dSmrgac_cv_prog_lex_yytext_pointer=no 49423e747e6dSmrgac_save_LIBS=$LIBS 49433e747e6dSmrgLIBS="$LEXLIB $ac_save_LIBS" 49447a2631fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 49457a2631fcSmrg/* end confdefs.h. */ 49467a2631fcSmrg 49477a2631fcSmrg #define YYTEXT_POINTER 1 49483e747e6dSmrg`cat $LEX_OUTPUT_ROOT.c` 49493e747e6dSmrg_ACEOF 49507a2631fcSmrgif ac_fn_c_try_link "$LINENO"; then : 49513e747e6dSmrg ac_cv_prog_lex_yytext_pointer=yes 49523e747e6dSmrgfi 49537a2631fcSmrgrm -f core conftest.err conftest.$ac_objext \ 49547a2631fcSmrg conftest$ac_exeext conftest.$ac_ext 49553e747e6dSmrgLIBS=$ac_save_LIBS 49563e747e6dSmrg 49573e747e6dSmrgfi 49587a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 49597a2631fcSmrg$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 49607a2631fcSmrgif test $ac_cv_prog_lex_yytext_pointer = yes; then 49617a2631fcSmrg 49627a2631fcSmrg$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 49633e747e6dSmrg 49643e747e6dSmrgfi 49657a2631fcSmrgrm -f conftest.l $LEX_OUTPUT_ROOT.c 49663e747e6dSmrg 49673e747e6dSmrgfi 49687a2631fcSmrg 49697a2631fcSmrgfor ac_func in mkstemp 49707a2631fcSmrgdo : 49717a2631fcSmrg ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 49727a2631fcSmrgif test "x$ac_cv_func_mkstemp" = xyes; then : 49737a2631fcSmrg cat >>confdefs.h <<_ACEOF 49747a2631fcSmrg#define HAVE_MKSTEMP 1 49757a2631fcSmrg_ACEOF 49763e747e6dSmrg 49773e747e6dSmrgfi 49787a2631fcSmrgdone 49797a2631fcSmrg 49807a2631fcSmrg 49817a2631fcSmrg# Checks for pkg-config packages 49823e747e6dSmrg 49833e747e6dSmrgpkg_failed=no 49847a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5 49857a2631fcSmrg$as_echo_n "checking for TWM... " >&6; } 49863e747e6dSmrg 49873e747e6dSmrgif test -n "$TWM_CFLAGS"; then 49883e747e6dSmrg pkg_cv_TWM_CFLAGS="$TWM_CFLAGS" 49893e747e6dSmrg elif test -n "$PKG_CONFIG"; then 49903e747e6dSmrg if test -n "$PKG_CONFIG" && \ 49917a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm\""; } >&5 49923e747e6dSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm") 2>&5 49933e747e6dSmrg ac_status=$? 49947a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49957a2631fcSmrg test $ac_status = 0; }; then 49963e747e6dSmrg pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm" 2>/dev/null` 49973e747e6dSmrgelse 49983e747e6dSmrg pkg_failed=yes 49993e747e6dSmrgfi 50003e747e6dSmrg else 50013e747e6dSmrg pkg_failed=untried 50023e747e6dSmrgfi 50033e747e6dSmrgif test -n "$TWM_LIBS"; then 50043e747e6dSmrg pkg_cv_TWM_LIBS="$TWM_LIBS" 50053e747e6dSmrg elif test -n "$PKG_CONFIG"; then 50063e747e6dSmrg if test -n "$PKG_CONFIG" && \ 50077a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm\""; } >&5 50083e747e6dSmrg ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm") 2>&5 50093e747e6dSmrg ac_status=$? 50107a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 50117a2631fcSmrg test $ac_status = 0; }; then 50123e747e6dSmrg pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm" 2>/dev/null` 50133e747e6dSmrgelse 50143e747e6dSmrg pkg_failed=yes 50153e747e6dSmrgfi 50163e747e6dSmrg else 50173e747e6dSmrg pkg_failed=untried 50183e747e6dSmrgfi 50193e747e6dSmrg 50203e747e6dSmrg 50213e747e6dSmrg 50223e747e6dSmrgif test $pkg_failed = yes; then 50233e747e6dSmrg 50243e747e6dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 50253e747e6dSmrg _pkg_short_errors_supported=yes 50263e747e6dSmrgelse 50273e747e6dSmrg _pkg_short_errors_supported=no 50283e747e6dSmrgfi 50293e747e6dSmrg if test $_pkg_short_errors_supported = yes; then 50303e747e6dSmrg TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xt xmu ice sm" 2>&1` 50313e747e6dSmrg else 50323e747e6dSmrg TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xt xmu ice sm" 2>&1` 50333e747e6dSmrg fi 50343e747e6dSmrg # Put the nasty error message in config.log where it belongs 50353e747e6dSmrg echo "$TWM_PKG_ERRORS" >&5 50363e747e6dSmrg 50377a2631fcSmrg as_fn_error $? "Package requirements (x11 xext xt xmu ice sm) were not met: 50383e747e6dSmrg 50393e747e6dSmrg$TWM_PKG_ERRORS 50403e747e6dSmrg 50413e747e6dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 50423e747e6dSmrginstalled software in a non-standard prefix. 50433e747e6dSmrg 50443e747e6dSmrgAlternatively, you may set the environment variables TWM_CFLAGS 50453e747e6dSmrgand TWM_LIBS to avoid the need to call pkg-config. 50463e747e6dSmrgSee the pkg-config man page for more details. 50477a2631fcSmrg" "$LINENO" 5 50483e747e6dSmrgelif test $pkg_failed = untried; then 50497a2631fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50507a2631fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50517a2631fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 50523e747e6dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 50533e747e6dSmrgpath to pkg-config. 50543e747e6dSmrg 50553e747e6dSmrgAlternatively, you may set the environment variables TWM_CFLAGS 50563e747e6dSmrgand TWM_LIBS to avoid the need to call pkg-config. 50573e747e6dSmrgSee the pkg-config man page for more details. 50583e747e6dSmrg 50593e747e6dSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 50607a2631fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 50613e747e6dSmrgelse 50623e747e6dSmrg TWM_CFLAGS=$pkg_cv_TWM_CFLAGS 50633e747e6dSmrg TWM_LIBS=$pkg_cv_TWM_LIBS 50647a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50657a2631fcSmrg$as_echo "yes" >&6; } 50663e747e6dSmrg : 50673e747e6dSmrgfi 50683e747e6dSmrg 50693e747e6dSmrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 50703e747e6dSmrg 50713e747e6dSmrgcat >confcache <<\_ACEOF 50723e747e6dSmrg# This file is a shell script that caches the results of configure 50733e747e6dSmrg# tests run on this system so they can be shared between configure 50743e747e6dSmrg# scripts and configure runs, see configure's option --config-cache. 50753e747e6dSmrg# It is not useful on other systems. If it contains results you don't 50763e747e6dSmrg# want to keep, you may remove or edit it. 50773e747e6dSmrg# 50783e747e6dSmrg# config.status only pays attention to the cache file if you give it 50793e747e6dSmrg# the --recheck option to rerun configure. 50803e747e6dSmrg# 50813e747e6dSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 50823e747e6dSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 50833e747e6dSmrg# following values. 50843e747e6dSmrg 50853e747e6dSmrg_ACEOF 50863e747e6dSmrg 50873e747e6dSmrg# The following way of writing the cache mishandles newlines in values, 50883e747e6dSmrg# but we know of no workaround that is simple, portable, and efficient. 50893e747e6dSmrg# So, we kill variables containing newlines. 50903e747e6dSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 50913e747e6dSmrg# and sets the high bit in the cache file unless we assign to the vars. 50923e747e6dSmrg( 50933e747e6dSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 50943e747e6dSmrg eval ac_val=\$$ac_var 50953e747e6dSmrg case $ac_val in #( 50963e747e6dSmrg *${as_nl}*) 50973e747e6dSmrg case $ac_var in #( 50987a2631fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 50997a2631fcSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51003e747e6dSmrg esac 51013e747e6dSmrg case $ac_var in #( 51023e747e6dSmrg _ | IFS | as_nl) ;; #( 51037a2631fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51047a2631fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 51053e747e6dSmrg esac ;; 51063e747e6dSmrg esac 51073e747e6dSmrg done 51083e747e6dSmrg 51093e747e6dSmrg (set) 2>&1 | 51103e747e6dSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 51113e747e6dSmrg *${as_nl}ac_space=\ *) 51127a2631fcSmrg # `set' does not quote correctly, so add quotes: double-quote 51137a2631fcSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 51143e747e6dSmrg sed -n \ 51153e747e6dSmrg "s/'/'\\\\''/g; 51163e747e6dSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51173e747e6dSmrg ;; #( 51183e747e6dSmrg *) 51193e747e6dSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 51203e747e6dSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51213e747e6dSmrg ;; 51223e747e6dSmrg esac | 51233e747e6dSmrg sort 51243e747e6dSmrg) | 51253e747e6dSmrg sed ' 51263e747e6dSmrg /^ac_cv_env_/b end 51273e747e6dSmrg t clear 51283e747e6dSmrg :clear 51293e747e6dSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51303e747e6dSmrg t end 51313e747e6dSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51323e747e6dSmrg :end' >>confcache 51333e747e6dSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51343e747e6dSmrg if test -w "$cache_file"; then 51357a2631fcSmrg if test "x$cache_file" != "x/dev/null"; then 51367a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51377a2631fcSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 51387a2631fcSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 51397a2631fcSmrg cat confcache >"$cache_file" 51407a2631fcSmrg else 51417a2631fcSmrg case $cache_file in #( 51427a2631fcSmrg */* | ?:*) 51437a2631fcSmrg mv -f confcache "$cache_file"$$ && 51447a2631fcSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 51457a2631fcSmrg *) 51467a2631fcSmrg mv -f confcache "$cache_file" ;; 51477a2631fcSmrg esac 51487a2631fcSmrg fi 51497a2631fcSmrg fi 51503e747e6dSmrg else 51517a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51527a2631fcSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51533e747e6dSmrg fi 51543e747e6dSmrgfi 51553e747e6dSmrgrm -f confcache 51563e747e6dSmrg 51573e747e6dSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 51583e747e6dSmrg# Let make expand exec_prefix. 51593e747e6dSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51603e747e6dSmrg 51613e747e6dSmrgDEFS=-DHAVE_CONFIG_H 51623e747e6dSmrg 51633e747e6dSmrgac_libobjs= 51643e747e6dSmrgac_ltlibobjs= 51657a2631fcSmrgU= 51663e747e6dSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51673e747e6dSmrg # 1. Remove the extension, and $U if already installed. 51683e747e6dSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51697a2631fcSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51703e747e6dSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51713e747e6dSmrg # will be set to the directory where LIBOBJS objects are built. 51727a2631fcSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51737a2631fcSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51743e747e6dSmrgdone 51753e747e6dSmrgLIBOBJS=$ac_libobjs 51763e747e6dSmrg 51773e747e6dSmrgLTLIBOBJS=$ac_ltlibobjs 51783e747e6dSmrg 51793e747e6dSmrg 51807a2631fcSmrg if test -n "$EXEEXT"; then 51817a2631fcSmrg am__EXEEXT_TRUE= 51827a2631fcSmrg am__EXEEXT_FALSE='#' 51837a2631fcSmrgelse 51847a2631fcSmrg am__EXEEXT_TRUE='#' 51857a2631fcSmrg am__EXEEXT_FALSE= 51867a2631fcSmrgfi 51877a2631fcSmrg 51883e747e6dSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 51897a2631fcSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 51907a2631fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51913e747e6dSmrgfi 51923e747e6dSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 51937a2631fcSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 51947a2631fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51953e747e6dSmrgfi 51963e747e6dSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 51977a2631fcSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 51987a2631fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51993e747e6dSmrgfi 52003e747e6dSmrg 52017a2631fcSmrg: "${CONFIG_STATUS=./config.status}" 52027a2631fcSmrgac_write_fail=0 52033e747e6dSmrgac_clean_files_save=$ac_clean_files 52043e747e6dSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 52057a2631fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52067a2631fcSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52077a2631fcSmrgas_write_fail=0 52087a2631fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52093e747e6dSmrg#! $SHELL 52103e747e6dSmrg# Generated by $as_me. 52113e747e6dSmrg# Run this file to recreate the current configuration. 52123e747e6dSmrg# Compiler output produced by configure, useful for debugging 52133e747e6dSmrg# configure, is in config.log if it exists. 52143e747e6dSmrg 52153e747e6dSmrgdebug=false 52163e747e6dSmrgac_cs_recheck=false 52173e747e6dSmrgac_cs_silent=false 52183e747e6dSmrg 52197a2631fcSmrgSHELL=\${CONFIG_SHELL-$SHELL} 52207a2631fcSmrgexport SHELL 52217a2631fcSmrg_ASEOF 52227a2631fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52237a2631fcSmrg## -------------------- ## 52247a2631fcSmrg## M4sh Initialization. ## 52257a2631fcSmrg## -------------------- ## 52263e747e6dSmrg 52273e747e6dSmrg# Be more Bourne compatible 52283e747e6dSmrgDUALCASE=1; export DUALCASE # for MKS sh 52297a2631fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52303e747e6dSmrg emulate sh 52313e747e6dSmrg NULLCMD=: 52327a2631fcSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52333e747e6dSmrg # is contrary to our usage. Disable this feature. 52343e747e6dSmrg alias -g '${1+"$@"}'='"$@"' 52353e747e6dSmrg setopt NO_GLOB_SUBST 52363e747e6dSmrgelse 52377a2631fcSmrg case `(set -o) 2>/dev/null` in #( 52387a2631fcSmrg *posix*) : 52397a2631fcSmrg set -o posix ;; #( 52407a2631fcSmrg *) : 52417a2631fcSmrg ;; 52423e747e6dSmrgesac 52433e747e6dSmrgfi 52443e747e6dSmrg 52453e747e6dSmrg 52467a2631fcSmrgas_nl=' 52477a2631fcSmrg' 52487a2631fcSmrgexport as_nl 52497a2631fcSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 52507a2631fcSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52517a2631fcSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52527a2631fcSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52537a2631fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 52547a2631fcSmrg# but without wasting forks for bash or zsh. 52557a2631fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 52567a2631fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52577a2631fcSmrg as_echo='print -r --' 52587a2631fcSmrg as_echo_n='print -rn --' 52597a2631fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52607a2631fcSmrg as_echo='printf %s\n' 52617a2631fcSmrg as_echo_n='printf %s' 52627a2631fcSmrgelse 52637a2631fcSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52647a2631fcSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52657a2631fcSmrg as_echo_n='/usr/ucb/echo -n' 52663e747e6dSmrg else 52677a2631fcSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 52687a2631fcSmrg as_echo_n_body='eval 52697a2631fcSmrg arg=$1; 52707a2631fcSmrg case $arg in #( 52717a2631fcSmrg *"$as_nl"*) 52727a2631fcSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 52737a2631fcSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 52747a2631fcSmrg esac; 52757a2631fcSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 52767a2631fcSmrg ' 52777a2631fcSmrg export as_echo_n_body 52787a2631fcSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 52793e747e6dSmrg fi 52807a2631fcSmrg export as_echo_body 52817a2631fcSmrg as_echo='sh -c $as_echo_body as_echo' 52823e747e6dSmrgfi 52833e747e6dSmrg 52847a2631fcSmrg# The user is always right. 52857a2631fcSmrgif test "${PATH_SEPARATOR+set}" != set; then 52867a2631fcSmrg PATH_SEPARATOR=: 52877a2631fcSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 52887a2631fcSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 52897a2631fcSmrg PATH_SEPARATOR=';' 52907a2631fcSmrg } 52913e747e6dSmrgfi 52923e747e6dSmrg 52933e747e6dSmrg 52943e747e6dSmrg# IFS 52953e747e6dSmrg# We need space, tab and new line, in precisely that order. Quoting is 52963e747e6dSmrg# there to prevent editors from complaining about space-tab. 52973e747e6dSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 52983e747e6dSmrg# splitting by setting IFS to empty value.) 52993e747e6dSmrgIFS=" "" $as_nl" 53003e747e6dSmrg 53013e747e6dSmrg# Find who we are. Look in the path if we contain no directory separator. 53027a2631fcSmrgas_myself= 53037a2631fcSmrgcase $0 in #(( 53043e747e6dSmrg *[\\/]* ) as_myself=$0 ;; 53053e747e6dSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53063e747e6dSmrgfor as_dir in $PATH 53073e747e6dSmrgdo 53083e747e6dSmrg IFS=$as_save_IFS 53093e747e6dSmrg test -z "$as_dir" && as_dir=. 53107a2631fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53117a2631fcSmrg done 53123e747e6dSmrgIFS=$as_save_IFS 53133e747e6dSmrg 53143e747e6dSmrg ;; 53153e747e6dSmrgesac 53163e747e6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 53173e747e6dSmrg# in which case we are not to be found in the path. 53183e747e6dSmrgif test "x$as_myself" = x; then 53193e747e6dSmrg as_myself=$0 53203e747e6dSmrgfi 53213e747e6dSmrgif test ! -f "$as_myself"; then 53227a2631fcSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53237a2631fcSmrg exit 1 53243e747e6dSmrgfi 53253e747e6dSmrg 53267a2631fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 53277a2631fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53287a2631fcSmrg# suppresses any "Segmentation fault" message there. '((' could 53297a2631fcSmrg# trigger a bug in pdksh 5.2.14. 53307a2631fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 53317a2631fcSmrgdo eval test x\${$as_var+set} = xset \ 53327a2631fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53333e747e6dSmrgdone 53343e747e6dSmrgPS1='$ ' 53353e747e6dSmrgPS2='> ' 53363e747e6dSmrgPS4='+ ' 53373e747e6dSmrg 53383e747e6dSmrg# NLS nuisances. 53397a2631fcSmrgLC_ALL=C 53407a2631fcSmrgexport LC_ALL 53417a2631fcSmrgLANGUAGE=C 53427a2631fcSmrgexport LANGUAGE 53437a2631fcSmrg 53447a2631fcSmrg# CDPATH. 53457a2631fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53467a2631fcSmrg 53477a2631fcSmrg 53487a2631fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 53497a2631fcSmrg# ---------------------------------------- 53507a2631fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53517a2631fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53527a2631fcSmrg# script with STATUS, using 1 if that was 0. 53537a2631fcSmrgas_fn_error () 53547a2631fcSmrg{ 53557a2631fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 53567a2631fcSmrg if test "$4"; then 53577a2631fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53587a2631fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53593e747e6dSmrg fi 53607a2631fcSmrg $as_echo "$as_me: error: $2" >&2 53617a2631fcSmrg as_fn_exit $as_status 53627a2631fcSmrg} # as_fn_error 53637a2631fcSmrg 53647a2631fcSmrg 53657a2631fcSmrg# as_fn_set_status STATUS 53667a2631fcSmrg# ----------------------- 53677a2631fcSmrg# Set $? to STATUS, without forking. 53687a2631fcSmrgas_fn_set_status () 53697a2631fcSmrg{ 53707a2631fcSmrg return $1 53717a2631fcSmrg} # as_fn_set_status 53727a2631fcSmrg 53737a2631fcSmrg# as_fn_exit STATUS 53747a2631fcSmrg# ----------------- 53757a2631fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53767a2631fcSmrgas_fn_exit () 53777a2631fcSmrg{ 53787a2631fcSmrg set +e 53797a2631fcSmrg as_fn_set_status $1 53807a2631fcSmrg exit $1 53817a2631fcSmrg} # as_fn_exit 53827a2631fcSmrg 53837a2631fcSmrg# as_fn_unset VAR 53847a2631fcSmrg# --------------- 53857a2631fcSmrg# Portably unset VAR. 53867a2631fcSmrgas_fn_unset () 53877a2631fcSmrg{ 53887a2631fcSmrg { eval $1=; unset $1;} 53897a2631fcSmrg} 53907a2631fcSmrgas_unset=as_fn_unset 53917a2631fcSmrg# as_fn_append VAR VALUE 53927a2631fcSmrg# ---------------------- 53937a2631fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 53947a2631fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 53957a2631fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 53967a2631fcSmrg# implementations. 53977a2631fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 53987a2631fcSmrg eval 'as_fn_append () 53997a2631fcSmrg { 54007a2631fcSmrg eval $1+=\$2 54017a2631fcSmrg }' 54027a2631fcSmrgelse 54037a2631fcSmrg as_fn_append () 54047a2631fcSmrg { 54057a2631fcSmrg eval $1=\$$1\$2 54067a2631fcSmrg } 54077a2631fcSmrgfi # as_fn_append 54087a2631fcSmrg 54097a2631fcSmrg# as_fn_arith ARG... 54107a2631fcSmrg# ------------------ 54117a2631fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 54127a2631fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 54137a2631fcSmrg# must be portable across $(()) and expr. 54147a2631fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 54157a2631fcSmrg eval 'as_fn_arith () 54167a2631fcSmrg { 54177a2631fcSmrg as_val=$(( $* )) 54187a2631fcSmrg }' 54197a2631fcSmrgelse 54207a2631fcSmrg as_fn_arith () 54217a2631fcSmrg { 54227a2631fcSmrg as_val=`expr "$@" || test $? -eq 1` 54237a2631fcSmrg } 54247a2631fcSmrgfi # as_fn_arith 54257a2631fcSmrg 54263e747e6dSmrg 54273e747e6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 54283e747e6dSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 54293e747e6dSmrg as_expr=expr 54303e747e6dSmrgelse 54313e747e6dSmrg as_expr=false 54323e747e6dSmrgfi 54333e747e6dSmrg 54343e747e6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 54353e747e6dSmrg as_basename=basename 54363e747e6dSmrgelse 54373e747e6dSmrg as_basename=false 54383e747e6dSmrgfi 54393e747e6dSmrg 54407a2631fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 54417a2631fcSmrg as_dirname=dirname 54427a2631fcSmrgelse 54437a2631fcSmrg as_dirname=false 54447a2631fcSmrgfi 54453e747e6dSmrg 54463e747e6dSmrgas_me=`$as_basename -- "$0" || 54473e747e6dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 54483e747e6dSmrg X"$0" : 'X\(//\)$' \| \ 54493e747e6dSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 54507a2631fcSmrg$as_echo X/"$0" | 54513e747e6dSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 54523e747e6dSmrg s//\1/ 54533e747e6dSmrg q 54543e747e6dSmrg } 54553e747e6dSmrg /^X\/\(\/\/\)$/{ 54563e747e6dSmrg s//\1/ 54573e747e6dSmrg q 54583e747e6dSmrg } 54593e747e6dSmrg /^X\/\(\/\).*/{ 54603e747e6dSmrg s//\1/ 54613e747e6dSmrg q 54623e747e6dSmrg } 54633e747e6dSmrg s/.*/./; q'` 54643e747e6dSmrg 54657a2631fcSmrg# Avoid depending upon Character Ranges. 54667a2631fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 54677a2631fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 54687a2631fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 54697a2631fcSmrgas_cr_digits='0123456789' 54707a2631fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 54713e747e6dSmrg 54723e747e6dSmrgECHO_C= ECHO_N= ECHO_T= 54737a2631fcSmrgcase `echo -n x` in #((((( 54743e747e6dSmrg-n*) 54757a2631fcSmrg case `echo 'xy\c'` in 54763e747e6dSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 54777a2631fcSmrg xy) ECHO_C='\c';; 54787a2631fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 54797a2631fcSmrg ECHO_T=' ';; 54803e747e6dSmrg esac;; 54813e747e6dSmrg*) 54823e747e6dSmrg ECHO_N='-n';; 54833e747e6dSmrgesac 54843e747e6dSmrg 54853e747e6dSmrgrm -f conf$$ conf$$.exe conf$$.file 54863e747e6dSmrgif test -d conf$$.dir; then 54873e747e6dSmrg rm -f conf$$.dir/conf$$.file 54883e747e6dSmrgelse 54893e747e6dSmrg rm -f conf$$.dir 54907a2631fcSmrg mkdir conf$$.dir 2>/dev/null 54917a2631fcSmrgfi 54927a2631fcSmrgif (echo >conf$$.file) 2>/dev/null; then 54937a2631fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 54947a2631fcSmrg as_ln_s='ln -s' 54957a2631fcSmrg # ... but there are two gotchas: 54967a2631fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 54977a2631fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 54987a2631fcSmrg # In both cases, we have to default to `cp -p'. 54997a2631fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 55007a2631fcSmrg as_ln_s='cp -p' 55017a2631fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 55027a2631fcSmrg as_ln_s=ln 55037a2631fcSmrg else 55043e747e6dSmrg as_ln_s='cp -p' 55057a2631fcSmrg fi 55063e747e6dSmrgelse 55073e747e6dSmrg as_ln_s='cp -p' 55083e747e6dSmrgfi 55093e747e6dSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 55103e747e6dSmrgrmdir conf$$.dir 2>/dev/null 55113e747e6dSmrg 55127a2631fcSmrg 55137a2631fcSmrg# as_fn_mkdir_p 55147a2631fcSmrg# ------------- 55157a2631fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 55167a2631fcSmrgas_fn_mkdir_p () 55177a2631fcSmrg{ 55187a2631fcSmrg 55197a2631fcSmrg case $as_dir in #( 55207a2631fcSmrg -*) as_dir=./$as_dir;; 55217a2631fcSmrg esac 55227a2631fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 55237a2631fcSmrg as_dirs= 55247a2631fcSmrg while :; do 55257a2631fcSmrg case $as_dir in #( 55267a2631fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 55277a2631fcSmrg *) as_qdir=$as_dir;; 55287a2631fcSmrg esac 55297a2631fcSmrg as_dirs="'$as_qdir' $as_dirs" 55307a2631fcSmrg as_dir=`$as_dirname -- "$as_dir" || 55317a2631fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 55327a2631fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 55337a2631fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 55347a2631fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 55357a2631fcSmrg$as_echo X"$as_dir" | 55367a2631fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 55377a2631fcSmrg s//\1/ 55387a2631fcSmrg q 55397a2631fcSmrg } 55407a2631fcSmrg /^X\(\/\/\)[^/].*/{ 55417a2631fcSmrg s//\1/ 55427a2631fcSmrg q 55437a2631fcSmrg } 55447a2631fcSmrg /^X\(\/\/\)$/{ 55457a2631fcSmrg s//\1/ 55467a2631fcSmrg q 55477a2631fcSmrg } 55487a2631fcSmrg /^X\(\/\).*/{ 55497a2631fcSmrg s//\1/ 55507a2631fcSmrg q 55517a2631fcSmrg } 55527a2631fcSmrg s/.*/./; q'` 55537a2631fcSmrg test -d "$as_dir" && break 55547a2631fcSmrg done 55557a2631fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 55567a2631fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 55577a2631fcSmrg 55587a2631fcSmrg 55597a2631fcSmrg} # as_fn_mkdir_p 55603e747e6dSmrgif mkdir -p . 2>/dev/null; then 55617a2631fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 55623e747e6dSmrgelse 55633e747e6dSmrg test -d ./-p && rmdir ./-p 55643e747e6dSmrg as_mkdir_p=false 55653e747e6dSmrgfi 55663e747e6dSmrg 55673e747e6dSmrgif test -x / >/dev/null 2>&1; then 55683e747e6dSmrg as_test_x='test -x' 55693e747e6dSmrgelse 55703e747e6dSmrg if ls -dL / >/dev/null 2>&1; then 55713e747e6dSmrg as_ls_L_option=L 55723e747e6dSmrg else 55733e747e6dSmrg as_ls_L_option= 55743e747e6dSmrg fi 55753e747e6dSmrg as_test_x=' 55763e747e6dSmrg eval sh -c '\'' 55773e747e6dSmrg if test -d "$1"; then 55787a2631fcSmrg test -d "$1/."; 55793e747e6dSmrg else 55807a2631fcSmrg case $1 in #( 55817a2631fcSmrg -*)set "./$1";; 55823e747e6dSmrg esac; 55837a2631fcSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 55843e747e6dSmrg ???[sx]*):;;*)false;;esac;fi 55853e747e6dSmrg '\'' sh 55863e747e6dSmrg ' 55873e747e6dSmrgfi 55883e747e6dSmrgas_executable_p=$as_test_x 55893e747e6dSmrg 55903e747e6dSmrg# Sed expression to map a string onto a valid CPP name. 55913e747e6dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 55923e747e6dSmrg 55933e747e6dSmrg# Sed expression to map a string onto a valid variable name. 55943e747e6dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 55953e747e6dSmrg 55963e747e6dSmrg 55973e747e6dSmrgexec 6>&1 55987a2631fcSmrg## ----------------------------------- ## 55997a2631fcSmrg## Main body of $CONFIG_STATUS script. ## 56007a2631fcSmrg## ----------------------------------- ## 56017a2631fcSmrg_ASEOF 56027a2631fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 56033e747e6dSmrg 56047a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56057a2631fcSmrg# Save the log message, to keep $0 and so on meaningful, and to 56063e747e6dSmrg# report actual input values of CONFIG_FILES etc. instead of their 56073e747e6dSmrg# values after options handling. 56083e747e6dSmrgac_log=" 56097a2631fcSmrgThis file was extended by twm $as_me 1.0.5, which was 56107a2631fcSmrggenerated by GNU Autoconf 2.68. Invocation command line was 56113e747e6dSmrg 56123e747e6dSmrg CONFIG_FILES = $CONFIG_FILES 56133e747e6dSmrg CONFIG_HEADERS = $CONFIG_HEADERS 56143e747e6dSmrg CONFIG_LINKS = $CONFIG_LINKS 56153e747e6dSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 56163e747e6dSmrg $ $0 $@ 56173e747e6dSmrg 56183e747e6dSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 56193e747e6dSmrg" 56203e747e6dSmrg 56213e747e6dSmrg_ACEOF 56223e747e6dSmrg 56237a2631fcSmrgcase $ac_config_files in *" 56247a2631fcSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 56257a2631fcSmrgesac 56267a2631fcSmrg 56277a2631fcSmrgcase $ac_config_headers in *" 56287a2631fcSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 56297a2631fcSmrgesac 56307a2631fcSmrg 56317a2631fcSmrg 56327a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56333e747e6dSmrg# Files that config.status was made for. 56343e747e6dSmrgconfig_files="$ac_config_files" 56353e747e6dSmrgconfig_headers="$ac_config_headers" 56363e747e6dSmrgconfig_commands="$ac_config_commands" 56373e747e6dSmrg 56383e747e6dSmrg_ACEOF 56393e747e6dSmrg 56407a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56413e747e6dSmrgac_cs_usage="\ 56427a2631fcSmrg\`$as_me' instantiates files and other configuration actions 56437a2631fcSmrgfrom templates according to the current configuration. Unless the files 56447a2631fcSmrgand actions are specified as TAGs, all are instantiated by default. 56453e747e6dSmrg 56467a2631fcSmrgUsage: $0 [OPTION]... [TAG]... 56473e747e6dSmrg 56483e747e6dSmrg -h, --help print this help, then exit 56493e747e6dSmrg -V, --version print version number and configuration settings, then exit 56507a2631fcSmrg --config print configuration, then exit 56517a2631fcSmrg -q, --quiet, --silent 56527a2631fcSmrg do not print progress messages 56533e747e6dSmrg -d, --debug don't remove temporary files 56543e747e6dSmrg --recheck update $as_me by reconfiguring in the same conditions 56557a2631fcSmrg --file=FILE[:TEMPLATE] 56567a2631fcSmrg instantiate the configuration file FILE 56577a2631fcSmrg --header=FILE[:TEMPLATE] 56587a2631fcSmrg instantiate the configuration header FILE 56593e747e6dSmrg 56603e747e6dSmrgConfiguration files: 56613e747e6dSmrg$config_files 56623e747e6dSmrg 56633e747e6dSmrgConfiguration headers: 56643e747e6dSmrg$config_headers 56653e747e6dSmrg 56663e747e6dSmrgConfiguration commands: 56673e747e6dSmrg$config_commands 56683e747e6dSmrg 56697a2631fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 56703e747e6dSmrg 56713e747e6dSmrg_ACEOF 56727a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 56737a2631fcSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 56743e747e6dSmrgac_cs_version="\\ 56757a2631fcSmrgtwm config.status 1.0.5 56767a2631fcSmrgconfigured by $0, generated by GNU Autoconf 2.68, 56777a2631fcSmrg with options \\"\$ac_cs_config\\" 56783e747e6dSmrg 56797a2631fcSmrgCopyright (C) 2010 Free Software Foundation, Inc. 56803e747e6dSmrgThis config.status script is free software; the Free Software Foundation 56813e747e6dSmrggives unlimited permission to copy, distribute and modify it." 56823e747e6dSmrg 56833e747e6dSmrgac_pwd='$ac_pwd' 56843e747e6dSmrgsrcdir='$srcdir' 56853e747e6dSmrgINSTALL='$INSTALL' 56863e747e6dSmrgMKDIR_P='$MKDIR_P' 56877a2631fcSmrgAWK='$AWK' 56887a2631fcSmrgtest -n "\$AWK" || AWK=awk 56893e747e6dSmrg_ACEOF 56903e747e6dSmrg 56917a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 56927a2631fcSmrg# The default lists apply if the user does not specify any file. 56933e747e6dSmrgac_need_defaults=: 56943e747e6dSmrgwhile test $# != 0 56953e747e6dSmrgdo 56963e747e6dSmrg case $1 in 56977a2631fcSmrg --*=?*) 56983e747e6dSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 56993e747e6dSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 57003e747e6dSmrg ac_shift=: 57013e747e6dSmrg ;; 57027a2631fcSmrg --*=) 57037a2631fcSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 57047a2631fcSmrg ac_optarg= 57057a2631fcSmrg ac_shift=: 57067a2631fcSmrg ;; 57073e747e6dSmrg *) 57083e747e6dSmrg ac_option=$1 57093e747e6dSmrg ac_optarg=$2 57103e747e6dSmrg ac_shift=shift 57113e747e6dSmrg ;; 57123e747e6dSmrg esac 57133e747e6dSmrg 57143e747e6dSmrg case $ac_option in 57153e747e6dSmrg # Handling of the options. 57163e747e6dSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 57173e747e6dSmrg ac_cs_recheck=: ;; 57183e747e6dSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 57197a2631fcSmrg $as_echo "$ac_cs_version"; exit ;; 57207a2631fcSmrg --config | --confi | --conf | --con | --co | --c ) 57217a2631fcSmrg $as_echo "$ac_cs_config"; exit ;; 57223e747e6dSmrg --debug | --debu | --deb | --de | --d | -d ) 57233e747e6dSmrg debug=: ;; 57243e747e6dSmrg --file | --fil | --fi | --f ) 57253e747e6dSmrg $ac_shift 57267a2631fcSmrg case $ac_optarg in 57277a2631fcSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 57287a2631fcSmrg '') as_fn_error $? "missing file argument" ;; 57297a2631fcSmrg esac 57307a2631fcSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 57313e747e6dSmrg ac_need_defaults=false;; 57323e747e6dSmrg --header | --heade | --head | --hea ) 57333e747e6dSmrg $ac_shift 57347a2631fcSmrg case $ac_optarg in 57357a2631fcSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 57367a2631fcSmrg esac 57377a2631fcSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 57383e747e6dSmrg ac_need_defaults=false;; 57393e747e6dSmrg --he | --h) 57403e747e6dSmrg # Conflict between --help and --header 57417a2631fcSmrg as_fn_error $? "ambiguous option: \`$1' 57427a2631fcSmrgTry \`$0 --help' for more information.";; 57433e747e6dSmrg --help | --hel | -h ) 57447a2631fcSmrg $as_echo "$ac_cs_usage"; exit ;; 57453e747e6dSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 57463e747e6dSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 57473e747e6dSmrg ac_cs_silent=: ;; 57483e747e6dSmrg 57493e747e6dSmrg # This is an error. 57507a2631fcSmrg -*) as_fn_error $? "unrecognized option: \`$1' 57517a2631fcSmrgTry \`$0 --help' for more information." ;; 57523e747e6dSmrg 57537a2631fcSmrg *) as_fn_append ac_config_targets " $1" 57543e747e6dSmrg ac_need_defaults=false ;; 57553e747e6dSmrg 57563e747e6dSmrg esac 57573e747e6dSmrg shift 57583e747e6dSmrgdone 57593e747e6dSmrg 57603e747e6dSmrgac_configure_extra_args= 57613e747e6dSmrg 57623e747e6dSmrgif $ac_cs_silent; then 57633e747e6dSmrg exec 6>/dev/null 57643e747e6dSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 57653e747e6dSmrgfi 57663e747e6dSmrg 57673e747e6dSmrg_ACEOF 57687a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 57693e747e6dSmrgif \$ac_cs_recheck; then 57707a2631fcSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 57717a2631fcSmrg shift 57727a2631fcSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 57737a2631fcSmrg CONFIG_SHELL='$SHELL' 57743e747e6dSmrg export CONFIG_SHELL 57757a2631fcSmrg exec "\$@" 57763e747e6dSmrgfi 57773e747e6dSmrg 57783e747e6dSmrg_ACEOF 57797a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 57803e747e6dSmrgexec 5>>config.log 57813e747e6dSmrg{ 57823e747e6dSmrg echo 57833e747e6dSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 57843e747e6dSmrg## Running $as_me. ## 57853e747e6dSmrg_ASBOX 57867a2631fcSmrg $as_echo "$ac_log" 57873e747e6dSmrg} >&5 57883e747e6dSmrg 57893e747e6dSmrg_ACEOF 57907a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 57913e747e6dSmrg# 57923e747e6dSmrg# INIT-COMMANDS 57933e747e6dSmrg# 57943e747e6dSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 57953e747e6dSmrg 57963e747e6dSmrg_ACEOF 57973e747e6dSmrg 57987a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 57993e747e6dSmrg 58003e747e6dSmrg# Handling of arguments. 58013e747e6dSmrgfor ac_config_target in $ac_config_targets 58023e747e6dSmrgdo 58033e747e6dSmrg case $ac_config_target in 58043e747e6dSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 58053e747e6dSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 58063e747e6dSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 58073e747e6dSmrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 58083e747e6dSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 58093e747e6dSmrg 58107a2631fcSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 58113e747e6dSmrg esac 58123e747e6dSmrgdone 58133e747e6dSmrg 58143e747e6dSmrg 58153e747e6dSmrg# If the user did not use the arguments to specify the items to instantiate, 58163e747e6dSmrg# then the envvar interface is used. Set only those that are not. 58173e747e6dSmrg# We use the long form for the default assignment because of an extremely 58183e747e6dSmrg# bizarre bug on SunOS 4.1.3. 58193e747e6dSmrgif $ac_need_defaults; then 58203e747e6dSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 58213e747e6dSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 58223e747e6dSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 58233e747e6dSmrgfi 58243e747e6dSmrg 58253e747e6dSmrg# Have a temporary directory for convenience. Make it in the build tree 58263e747e6dSmrg# simply because there is no reason against having it here, and in addition, 58273e747e6dSmrg# creating and moving files from /tmp can sometimes cause problems. 58283e747e6dSmrg# Hook for its removal unless debugging. 58293e747e6dSmrg# Note that there is a small window in which the directory will not be cleaned: 58303e747e6dSmrg# after its creation but before its name has been assigned to `$tmp'. 58313e747e6dSmrg$debug || 58323e747e6dSmrg{ 58337a2631fcSmrg tmp= ac_tmp= 58343e747e6dSmrg trap 'exit_status=$? 58357a2631fcSmrg : "${ac_tmp:=$tmp}" 58367a2631fcSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 58373e747e6dSmrg' 0 58387a2631fcSmrg trap 'as_fn_exit 1' 1 2 13 15 58393e747e6dSmrg} 58403e747e6dSmrg# Create a (secure) tmp directory for tmp files. 58413e747e6dSmrg 58423e747e6dSmrg{ 58433e747e6dSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 58447a2631fcSmrg test -d "$tmp" 58453e747e6dSmrg} || 58463e747e6dSmrg{ 58473e747e6dSmrg tmp=./conf$$-$RANDOM 58483e747e6dSmrg (umask 077 && mkdir "$tmp") 58497a2631fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 58507a2631fcSmrgac_tmp=$tmp 58513e747e6dSmrg 58527a2631fcSmrg# Set up the scripts for CONFIG_FILES section. 58537a2631fcSmrg# No need to generate them if there are no CONFIG_FILES. 58547a2631fcSmrg# This happens for instance with `./config.status config.h'. 58553e747e6dSmrgif test -n "$CONFIG_FILES"; then 58563e747e6dSmrg 58573e747e6dSmrg 58587a2631fcSmrgac_cr=`echo X | tr X '\015'` 58597a2631fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 58607a2631fcSmrg# But we know of no other shell where ac_cr would be empty at this 58617a2631fcSmrg# point, so we can use a bashism as a fallback. 58627a2631fcSmrgif test "x$ac_cr" = x; then 58637a2631fcSmrg eval ac_cr=\$\'\\r\' 58647a2631fcSmrgfi 58657a2631fcSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 58667a2631fcSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 58677a2631fcSmrg ac_cs_awk_cr='\\r' 58687a2631fcSmrgelse 58697a2631fcSmrg ac_cs_awk_cr=$ac_cr 58703e747e6dSmrgfi 58713e747e6dSmrg 58727a2631fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 58733e747e6dSmrg_ACEOF 58743e747e6dSmrg 58753e747e6dSmrg 58767a2631fcSmrg{ 58777a2631fcSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 58787a2631fcSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 58797a2631fcSmrg echo "_ACEOF" 58807a2631fcSmrg} >conf$$subs.sh || 58817a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 58827a2631fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 58833e747e6dSmrgac_delim='%!_!# ' 58843e747e6dSmrgfor ac_last_try in false false false false false :; do 58857a2631fcSmrg . ./conf$$subs.sh || 58867a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 58873e747e6dSmrg 58887a2631fcSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 58897a2631fcSmrg if test $ac_delim_n = $ac_delim_num; then 58903e747e6dSmrg break 58913e747e6dSmrg elif $ac_last_try; then 58927a2631fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 58933e747e6dSmrg else 58943e747e6dSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 58953e747e6dSmrg fi 58963e747e6dSmrgdone 58977a2631fcSmrgrm -f conf$$subs.sh 58983e747e6dSmrg 58997a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59007a2631fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 59017a2631fcSmrg_ACEOF 59027a2631fcSmrgsed -n ' 59037a2631fcSmrgh 59047a2631fcSmrgs/^/S["/; s/!.*/"]=/ 59057a2631fcSmrgp 59067a2631fcSmrgg 59077a2631fcSmrgs/^[^!]*!// 59087a2631fcSmrg:repl 59097a2631fcSmrgt repl 59107a2631fcSmrgs/'"$ac_delim"'$// 59117a2631fcSmrgt delim 59127a2631fcSmrg:nl 59137a2631fcSmrgh 59147a2631fcSmrgs/\(.\{148\}\)..*/\1/ 59157a2631fcSmrgt more1 59167a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 59177a2631fcSmrgp 59187a2631fcSmrgn 59197a2631fcSmrgb repl 59207a2631fcSmrg:more1 59217a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 59227a2631fcSmrgp 59237a2631fcSmrgg 59247a2631fcSmrgs/.\{148\}// 59257a2631fcSmrgt nl 59267a2631fcSmrg:delim 59277a2631fcSmrgh 59287a2631fcSmrgs/\(.\{148\}\)..*/\1/ 59297a2631fcSmrgt more2 59307a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 59317a2631fcSmrgp 59327a2631fcSmrgb 59337a2631fcSmrg:more2 59347a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 59357a2631fcSmrgp 59367a2631fcSmrgg 59377a2631fcSmrgs/.\{148\}// 59387a2631fcSmrgt delim 59397a2631fcSmrg' <conf$$subs.awk | sed ' 59407a2631fcSmrg/^[^""]/{ 59417a2631fcSmrg N 59427a2631fcSmrg s/\n// 59437a2631fcSmrg} 59447a2631fcSmrg' >>$CONFIG_STATUS || ac_write_fail=1 59457a2631fcSmrgrm -f conf$$subs.awk 59467a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 59477a2631fcSmrg_ACAWK 59487a2631fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 59497a2631fcSmrg for (key in S) S_is_set[key] = 1 59507a2631fcSmrg FS = "" 59517a2631fcSmrg 59527a2631fcSmrg} 59537a2631fcSmrg{ 59547a2631fcSmrg line = $ 0 59557a2631fcSmrg nfields = split(line, field, "@") 59567a2631fcSmrg substed = 0 59577a2631fcSmrg len = length(field[1]) 59587a2631fcSmrg for (i = 2; i < nfields; i++) { 59597a2631fcSmrg key = field[i] 59607a2631fcSmrg keylen = length(key) 59617a2631fcSmrg if (S_is_set[key]) { 59627a2631fcSmrg value = S[key] 59637a2631fcSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 59647a2631fcSmrg len += length(value) + length(field[++i]) 59657a2631fcSmrg substed = 1 59667a2631fcSmrg } else 59677a2631fcSmrg len += 1 + keylen 59687a2631fcSmrg } 59697a2631fcSmrg 59707a2631fcSmrg print line 59717a2631fcSmrg} 59723e747e6dSmrg 59737a2631fcSmrg_ACAWK 59743e747e6dSmrg_ACEOF 59757a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 59767a2631fcSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 59777a2631fcSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 59787a2631fcSmrgelse 59797a2631fcSmrg cat 59807a2631fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 59817a2631fcSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 59823e747e6dSmrg_ACEOF 59833e747e6dSmrg 59847a2631fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 59857a2631fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 59863e747e6dSmrg# trailing colons and then remove the whole line if VPATH becomes empty 59873e747e6dSmrg# (actually we leave an empty line to preserve line numbers). 59883e747e6dSmrgif test "x$srcdir" = x.; then 59897a2631fcSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 59907a2631fcSmrgh 59917a2631fcSmrgs/// 59927a2631fcSmrgs/^/:/ 59937a2631fcSmrgs/[ ]*$/:/ 59947a2631fcSmrgs/:\$(srcdir):/:/g 59957a2631fcSmrgs/:\${srcdir}:/:/g 59967a2631fcSmrgs/:@srcdir@:/:/g 59977a2631fcSmrgs/^:*// 59983e747e6dSmrgs/:*$// 59997a2631fcSmrgx 60007a2631fcSmrgs/\(=[ ]*\).*/\1/ 60017a2631fcSmrgG 60027a2631fcSmrgs/\n// 60033e747e6dSmrgs/^[^=]*=[ ]*$// 60043e747e6dSmrg}' 60053e747e6dSmrgfi 60063e747e6dSmrg 60077a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 60083e747e6dSmrgfi # test -n "$CONFIG_FILES" 60093e747e6dSmrg 60107a2631fcSmrg# Set up the scripts for CONFIG_HEADERS section. 60117a2631fcSmrg# No need to generate them if there are no CONFIG_HEADERS. 60127a2631fcSmrg# This happens for instance with `./config.status Makefile'. 60137a2631fcSmrgif test -n "$CONFIG_HEADERS"; then 60147a2631fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 60157a2631fcSmrgBEGIN { 60167a2631fcSmrg_ACEOF 60177a2631fcSmrg 60187a2631fcSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 60197a2631fcSmrg# here-document in config.status, that substitutes the proper values into 60207a2631fcSmrg# config.h.in to produce config.h. 60217a2631fcSmrg 60227a2631fcSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 60237a2631fcSmrg# handling of long lines. 60247a2631fcSmrgac_delim='%!_!# ' 60257a2631fcSmrgfor ac_last_try in false false :; do 60267a2631fcSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 60277a2631fcSmrg if test -z "$ac_tt"; then 60287a2631fcSmrg break 60297a2631fcSmrg elif $ac_last_try; then 60307a2631fcSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 60317a2631fcSmrg else 60327a2631fcSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 60337a2631fcSmrg fi 60347a2631fcSmrgdone 60357a2631fcSmrg 60367a2631fcSmrg# For the awk script, D is an array of macro values keyed by name, 60377a2631fcSmrg# likewise P contains macro parameters if any. Preserve backslash 60387a2631fcSmrg# newline sequences. 60397a2631fcSmrg 60407a2631fcSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 60417a2631fcSmrgsed -n ' 60427a2631fcSmrgs/.\{148\}/&'"$ac_delim"'/g 60437a2631fcSmrgt rset 60447a2631fcSmrg:rset 60457a2631fcSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 60467a2631fcSmrgt def 60477a2631fcSmrgd 60487a2631fcSmrg:def 60497a2631fcSmrgs/\\$// 60507a2631fcSmrgt bsnl 60517a2631fcSmrgs/["\\]/\\&/g 60527a2631fcSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 60537a2631fcSmrgD["\1"]=" \3"/p 60547a2631fcSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 60557a2631fcSmrgd 60567a2631fcSmrg:bsnl 60577a2631fcSmrgs/["\\]/\\&/g 60587a2631fcSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 60597a2631fcSmrgD["\1"]=" \3\\\\\\n"\\/p 60607a2631fcSmrgt cont 60617a2631fcSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 60627a2631fcSmrgt cont 60637a2631fcSmrgd 60647a2631fcSmrg:cont 60657a2631fcSmrgn 60667a2631fcSmrgs/.\{148\}/&'"$ac_delim"'/g 60677a2631fcSmrgt clear 60687a2631fcSmrg:clear 60697a2631fcSmrgs/\\$// 60707a2631fcSmrgt bsnlc 60717a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 60727a2631fcSmrgd 60737a2631fcSmrg:bsnlc 60747a2631fcSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 60757a2631fcSmrgb cont 60767a2631fcSmrg' <confdefs.h | sed ' 60777a2631fcSmrgs/'"$ac_delim"'/"\\\ 60787a2631fcSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 60797a2631fcSmrg 60807a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 60817a2631fcSmrg for (key in D) D_is_set[key] = 1 60827a2631fcSmrg FS = "" 60837a2631fcSmrg} 60847a2631fcSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 60857a2631fcSmrg line = \$ 0 60867a2631fcSmrg split(line, arg, " ") 60877a2631fcSmrg if (arg[1] == "#") { 60887a2631fcSmrg defundef = arg[2] 60897a2631fcSmrg mac1 = arg[3] 60907a2631fcSmrg } else { 60917a2631fcSmrg defundef = substr(arg[1], 2) 60927a2631fcSmrg mac1 = arg[2] 60937a2631fcSmrg } 60947a2631fcSmrg split(mac1, mac2, "(") #) 60957a2631fcSmrg macro = mac2[1] 60967a2631fcSmrg prefix = substr(line, 1, index(line, defundef) - 1) 60977a2631fcSmrg if (D_is_set[macro]) { 60987a2631fcSmrg # Preserve the white space surrounding the "#". 60997a2631fcSmrg print prefix "define", macro P[macro] D[macro] 61007a2631fcSmrg next 61017a2631fcSmrg } else { 61027a2631fcSmrg # Replace #undef with comments. This is necessary, for example, 61037a2631fcSmrg # in the case of _POSIX_SOURCE, which is predefined and required 61047a2631fcSmrg # on some systems where configure will not decide to define it. 61057a2631fcSmrg if (defundef == "undef") { 61067a2631fcSmrg print "/*", prefix defundef, macro, "*/" 61077a2631fcSmrg next 61087a2631fcSmrg } 61097a2631fcSmrg } 61107a2631fcSmrg} 61117a2631fcSmrg{ print } 61127a2631fcSmrg_ACAWK 61137a2631fcSmrg_ACEOF 61147a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 61157a2631fcSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 61167a2631fcSmrgfi # test -n "$CONFIG_HEADERS" 61177a2631fcSmrg 61183e747e6dSmrg 61197a2631fcSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 61207a2631fcSmrgshift 61217a2631fcSmrgfor ac_tag 61223e747e6dSmrgdo 61233e747e6dSmrg case $ac_tag in 61243e747e6dSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 61253e747e6dSmrg esac 61263e747e6dSmrg case $ac_mode$ac_tag in 61273e747e6dSmrg :[FHL]*:*);; 61287a2631fcSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 61293e747e6dSmrg :[FH]-) ac_tag=-:-;; 61303e747e6dSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 61313e747e6dSmrg esac 61323e747e6dSmrg ac_save_IFS=$IFS 61333e747e6dSmrg IFS=: 61343e747e6dSmrg set x $ac_tag 61353e747e6dSmrg IFS=$ac_save_IFS 61363e747e6dSmrg shift 61373e747e6dSmrg ac_file=$1 61383e747e6dSmrg shift 61393e747e6dSmrg 61403e747e6dSmrg case $ac_mode in 61413e747e6dSmrg :L) ac_source=$1;; 61423e747e6dSmrg :[FH]) 61433e747e6dSmrg ac_file_inputs= 61443e747e6dSmrg for ac_f 61453e747e6dSmrg do 61463e747e6dSmrg case $ac_f in 61477a2631fcSmrg -) ac_f="$ac_tmp/stdin";; 61483e747e6dSmrg *) # Look for the file first in the build tree, then in the source tree 61493e747e6dSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 61503e747e6dSmrg # because $ac_f cannot contain `:'. 61513e747e6dSmrg test -f "$ac_f" || 61523e747e6dSmrg case $ac_f in 61533e747e6dSmrg [\\/$]*) false;; 61543e747e6dSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 61553e747e6dSmrg esac || 61567a2631fcSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 61573e747e6dSmrg esac 61587a2631fcSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 61597a2631fcSmrg as_fn_append ac_file_inputs " '$ac_f'" 61603e747e6dSmrg done 61613e747e6dSmrg 61623e747e6dSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 61633e747e6dSmrg # use $as_me), people would be surprised to read: 61643e747e6dSmrg # /* config.h. Generated by config.status. */ 61657a2631fcSmrg configure_input='Generated from '` 61667a2631fcSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 61677a2631fcSmrg `' by configure.' 61683e747e6dSmrg if test x"$ac_file" != x-; then 61693e747e6dSmrg configure_input="$ac_file. $configure_input" 61707a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 61717a2631fcSmrg$as_echo "$as_me: creating $ac_file" >&6;} 61723e747e6dSmrg fi 61737a2631fcSmrg # Neutralize special characters interpreted by sed in replacement strings. 61747a2631fcSmrg case $configure_input in #( 61757a2631fcSmrg *\&* | *\|* | *\\* ) 61767a2631fcSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 61777a2631fcSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 61787a2631fcSmrg *) ac_sed_conf_input=$configure_input;; 61797a2631fcSmrg esac 61803e747e6dSmrg 61813e747e6dSmrg case $ac_tag in 61827a2631fcSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 61837a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 61843e747e6dSmrg esac 61853e747e6dSmrg ;; 61863e747e6dSmrg esac 61873e747e6dSmrg 61883e747e6dSmrg ac_dir=`$as_dirname -- "$ac_file" || 61893e747e6dSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 61903e747e6dSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 61913e747e6dSmrg X"$ac_file" : 'X\(//\)$' \| \ 61923e747e6dSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 61937a2631fcSmrg$as_echo X"$ac_file" | 61943e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 61953e747e6dSmrg s//\1/ 61963e747e6dSmrg q 61973e747e6dSmrg } 61983e747e6dSmrg /^X\(\/\/\)[^/].*/{ 61993e747e6dSmrg s//\1/ 62003e747e6dSmrg q 62013e747e6dSmrg } 62023e747e6dSmrg /^X\(\/\/\)$/{ 62033e747e6dSmrg s//\1/ 62043e747e6dSmrg q 62053e747e6dSmrg } 62063e747e6dSmrg /^X\(\/\).*/{ 62073e747e6dSmrg s//\1/ 62083e747e6dSmrg q 62093e747e6dSmrg } 62103e747e6dSmrg s/.*/./; q'` 62117a2631fcSmrg as_dir="$ac_dir"; as_fn_mkdir_p 62123e747e6dSmrg ac_builddir=. 62133e747e6dSmrg 62143e747e6dSmrgcase "$ac_dir" in 62153e747e6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 62163e747e6dSmrg*) 62177a2631fcSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 62183e747e6dSmrg # A ".." for each directory in $ac_dir_suffix. 62197a2631fcSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 62203e747e6dSmrg case $ac_top_builddir_sub in 62213e747e6dSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 62223e747e6dSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 62233e747e6dSmrg esac ;; 62243e747e6dSmrgesac 62253e747e6dSmrgac_abs_top_builddir=$ac_pwd 62263e747e6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 62273e747e6dSmrg# for backward compatibility: 62283e747e6dSmrgac_top_builddir=$ac_top_build_prefix 62293e747e6dSmrg 62303e747e6dSmrgcase $srcdir in 62313e747e6dSmrg .) # We are building in place. 62323e747e6dSmrg ac_srcdir=. 62333e747e6dSmrg ac_top_srcdir=$ac_top_builddir_sub 62343e747e6dSmrg ac_abs_top_srcdir=$ac_pwd ;; 62353e747e6dSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 62363e747e6dSmrg ac_srcdir=$srcdir$ac_dir_suffix; 62373e747e6dSmrg ac_top_srcdir=$srcdir 62383e747e6dSmrg ac_abs_top_srcdir=$srcdir ;; 62393e747e6dSmrg *) # Relative name. 62403e747e6dSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 62413e747e6dSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 62423e747e6dSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 62433e747e6dSmrgesac 62443e747e6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 62453e747e6dSmrg 62463e747e6dSmrg 62473e747e6dSmrg case $ac_mode in 62483e747e6dSmrg :F) 62493e747e6dSmrg # 62503e747e6dSmrg # CONFIG_FILE 62513e747e6dSmrg # 62523e747e6dSmrg 62533e747e6dSmrg case $INSTALL in 62543e747e6dSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 62553e747e6dSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 62563e747e6dSmrg esac 62573e747e6dSmrg ac_MKDIR_P=$MKDIR_P 62583e747e6dSmrg case $MKDIR_P in 62593e747e6dSmrg [\\/$]* | ?:[\\/]* ) ;; 62603e747e6dSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 62613e747e6dSmrg esac 62623e747e6dSmrg_ACEOF 62633e747e6dSmrg 62647a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 62653e747e6dSmrg# If the template does not know about datarootdir, expand it. 62663e747e6dSmrg# FIXME: This hack should be removed a few years after 2.60. 62673e747e6dSmrgac_datarootdir_hack=; ac_datarootdir_seen= 62687a2631fcSmrgac_sed_dataroot=' 62697a2631fcSmrg/datarootdir/ { 62703e747e6dSmrg p 62713e747e6dSmrg q 62723e747e6dSmrg} 62733e747e6dSmrg/@datadir@/p 62743e747e6dSmrg/@docdir@/p 62753e747e6dSmrg/@infodir@/p 62763e747e6dSmrg/@localedir@/p 62777a2631fcSmrg/@mandir@/p' 62787a2631fcSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 62793e747e6dSmrg*datarootdir*) ac_datarootdir_seen=yes;; 62803e747e6dSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 62817a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 62827a2631fcSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 62833e747e6dSmrg_ACEOF 62847a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 62853e747e6dSmrg ac_datarootdir_hack=' 62863e747e6dSmrg s&@datadir@&$datadir&g 62873e747e6dSmrg s&@docdir@&$docdir&g 62883e747e6dSmrg s&@infodir@&$infodir&g 62893e747e6dSmrg s&@localedir@&$localedir&g 62903e747e6dSmrg s&@mandir@&$mandir&g 62917a2631fcSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 62923e747e6dSmrgesac 62933e747e6dSmrg_ACEOF 62943e747e6dSmrg 62953e747e6dSmrg# Neutralize VPATH when `$srcdir' = `.'. 62963e747e6dSmrg# Shell code in configure.ac might set extrasub. 62973e747e6dSmrg# FIXME: do we really want to maintain this feature? 62987a2631fcSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 62997a2631fcSmrgac_sed_extra="$ac_vpsub 63003e747e6dSmrg$extrasub 63013e747e6dSmrg_ACEOF 63027a2631fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 63033e747e6dSmrg:t 63043e747e6dSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 63057a2631fcSmrgs|@configure_input@|$ac_sed_conf_input|;t t 63063e747e6dSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 63077a2631fcSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 63083e747e6dSmrgs&@srcdir@&$ac_srcdir&;t t 63093e747e6dSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 63103e747e6dSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 63113e747e6dSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 63123e747e6dSmrgs&@builddir@&$ac_builddir&;t t 63133e747e6dSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 63143e747e6dSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 63153e747e6dSmrgs&@INSTALL@&$ac_INSTALL&;t t 63163e747e6dSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 63173e747e6dSmrg$ac_datarootdir_hack 63187a2631fcSmrg" 63197a2631fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 63207a2631fcSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63213e747e6dSmrg 63223e747e6dSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 63237a2631fcSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 63247a2631fcSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 63257a2631fcSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 63267a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 63277a2631fcSmrgwhich seems to be undefined. Please make sure it is defined" >&5 63287a2631fcSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 63297a2631fcSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 63307a2631fcSmrg 63317a2631fcSmrg rm -f "$ac_tmp/stdin" 63323e747e6dSmrg case $ac_file in 63337a2631fcSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 63347a2631fcSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 63357a2631fcSmrg esac \ 63367a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63373e747e6dSmrg ;; 63383e747e6dSmrg :H) 63393e747e6dSmrg # 63403e747e6dSmrg # CONFIG_HEADER 63413e747e6dSmrg # 63423e747e6dSmrg if test x"$ac_file" != x-; then 63437a2631fcSmrg { 63447a2631fcSmrg $as_echo "/* $configure_input */" \ 63457a2631fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 63467a2631fcSmrg } >"$ac_tmp/config.h" \ 63477a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63487a2631fcSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 63497a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 63507a2631fcSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 63513e747e6dSmrg else 63527a2631fcSmrg rm -f "$ac_file" 63537a2631fcSmrg mv "$ac_tmp/config.h" "$ac_file" \ 63547a2631fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 63553e747e6dSmrg fi 63563e747e6dSmrg else 63577a2631fcSmrg $as_echo "/* $configure_input */" \ 63587a2631fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 63597a2631fcSmrg || as_fn_error $? "could not create -" "$LINENO" 5 63603e747e6dSmrg fi 63617a2631fcSmrg# Compute "$ac_file"'s index in $config_headers. 63627a2631fcSmrg_am_arg="$ac_file" 63633e747e6dSmrg_am_stamp_count=1 63643e747e6dSmrgfor _am_header in $config_headers :; do 63653e747e6dSmrg case $_am_header in 63663e747e6dSmrg $_am_arg | $_am_arg:* ) 63673e747e6dSmrg break ;; 63683e747e6dSmrg * ) 63693e747e6dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 63703e747e6dSmrg esac 63713e747e6dSmrgdone 63723e747e6dSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 63733e747e6dSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 63743e747e6dSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 63753e747e6dSmrg X"$_am_arg" : 'X\(//\)$' \| \ 63763e747e6dSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 63777a2631fcSmrg$as_echo X"$_am_arg" | 63783e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 63793e747e6dSmrg s//\1/ 63803e747e6dSmrg q 63813e747e6dSmrg } 63823e747e6dSmrg /^X\(\/\/\)[^/].*/{ 63833e747e6dSmrg s//\1/ 63843e747e6dSmrg q 63853e747e6dSmrg } 63863e747e6dSmrg /^X\(\/\/\)$/{ 63873e747e6dSmrg s//\1/ 63883e747e6dSmrg q 63893e747e6dSmrg } 63903e747e6dSmrg /^X\(\/\).*/{ 63913e747e6dSmrg s//\1/ 63923e747e6dSmrg q 63933e747e6dSmrg } 63943e747e6dSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 63953e747e6dSmrg ;; 63963e747e6dSmrg 63977a2631fcSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 63987a2631fcSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 63993e747e6dSmrg ;; 64003e747e6dSmrg esac 64013e747e6dSmrg 64023e747e6dSmrg 64033e747e6dSmrg case $ac_file$ac_mode in 64047a2631fcSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 64057a2631fcSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 64067a2631fcSmrg # are listed without --file. Let's play safe and only enable the eval 64077a2631fcSmrg # if we detect the quoting. 64087a2631fcSmrg case $CONFIG_FILES in 64097a2631fcSmrg *\'*) eval set x "$CONFIG_FILES" ;; 64107a2631fcSmrg *) set x $CONFIG_FILES ;; 64117a2631fcSmrg esac 64127a2631fcSmrg shift 64137a2631fcSmrg for mf 64147a2631fcSmrg do 64157a2631fcSmrg # Strip MF so we end up with the name of the file. 64167a2631fcSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 64177a2631fcSmrg # Check whether this is an Automake generated Makefile or not. 64187a2631fcSmrg # We used to match only the files named `Makefile.in', but 64197a2631fcSmrg # some people rename them; so instead we look at the file content. 64207a2631fcSmrg # Grep'ing the first line is not enough: some people post-process 64217a2631fcSmrg # each Makefile.in and add a new line on top of each file to say so. 64227a2631fcSmrg # Grep'ing the whole file is not good either: AIX grep has a line 64237a2631fcSmrg # limit of 2048, but all sed's we know have understand at least 4000. 64247a2631fcSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 64257a2631fcSmrg dirpart=`$as_dirname -- "$mf" || 64263e747e6dSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64273e747e6dSmrg X"$mf" : 'X\(//\)[^/]' \| \ 64283e747e6dSmrg X"$mf" : 'X\(//\)$' \| \ 64293e747e6dSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 64307a2631fcSmrg$as_echo X"$mf" | 64313e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 64323e747e6dSmrg s//\1/ 64333e747e6dSmrg q 64343e747e6dSmrg } 64353e747e6dSmrg /^X\(\/\/\)[^/].*/{ 64363e747e6dSmrg s//\1/ 64373e747e6dSmrg q 64383e747e6dSmrg } 64393e747e6dSmrg /^X\(\/\/\)$/{ 64403e747e6dSmrg s//\1/ 64413e747e6dSmrg q 64423e747e6dSmrg } 64433e747e6dSmrg /^X\(\/\).*/{ 64443e747e6dSmrg s//\1/ 64453e747e6dSmrg q 64463e747e6dSmrg } 64473e747e6dSmrg s/.*/./; q'` 64487a2631fcSmrg else 64497a2631fcSmrg continue 64507a2631fcSmrg fi 64517a2631fcSmrg # Extract the definition of DEPDIR, am__include, and am__quote 64527a2631fcSmrg # from the Makefile without running `make'. 64537a2631fcSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 64547a2631fcSmrg test -z "$DEPDIR" && continue 64557a2631fcSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 64567a2631fcSmrg test -z "am__include" && continue 64577a2631fcSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 64587a2631fcSmrg # When using ansi2knr, U may be empty or an underscore; expand it 64597a2631fcSmrg U=`sed -n 's/^U = //p' < "$mf"` 64607a2631fcSmrg # Find all dependency output files, they are included files with 64617a2631fcSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 64627a2631fcSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 64637a2631fcSmrg # expansion. 64647a2631fcSmrg for file in `sed -n " 64657a2631fcSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 64667a2631fcSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 64677a2631fcSmrg # Make sure the directory exists. 64687a2631fcSmrg test -f "$dirpart/$file" && continue 64697a2631fcSmrg fdir=`$as_dirname -- "$file" || 64703e747e6dSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64713e747e6dSmrg X"$file" : 'X\(//\)[^/]' \| \ 64723e747e6dSmrg X"$file" : 'X\(//\)$' \| \ 64733e747e6dSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 64747a2631fcSmrg$as_echo X"$file" | 64753e747e6dSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 64763e747e6dSmrg s//\1/ 64773e747e6dSmrg q 64783e747e6dSmrg } 64793e747e6dSmrg /^X\(\/\/\)[^/].*/{ 64803e747e6dSmrg s//\1/ 64813e747e6dSmrg q 64823e747e6dSmrg } 64833e747e6dSmrg /^X\(\/\/\)$/{ 64843e747e6dSmrg s//\1/ 64853e747e6dSmrg q 64863e747e6dSmrg } 64873e747e6dSmrg /^X\(\/\).*/{ 64883e747e6dSmrg s//\1/ 64893e747e6dSmrg q 64903e747e6dSmrg } 64913e747e6dSmrg s/.*/./; q'` 64927a2631fcSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 64937a2631fcSmrg # echo "creating $dirpart/$file" 64947a2631fcSmrg echo '# dummy' > "$dirpart/$file" 64953e747e6dSmrg done 64963e747e6dSmrg done 64977a2631fcSmrg} 64983e747e6dSmrg ;; 64993e747e6dSmrg 65003e747e6dSmrg esac 65013e747e6dSmrgdone # for ac_tag 65023e747e6dSmrg 65033e747e6dSmrg 65047a2631fcSmrgas_fn_exit 0 65053e747e6dSmrg_ACEOF 65063e747e6dSmrgac_clean_files=$ac_clean_files_save 65073e747e6dSmrg 65087a2631fcSmrgtest $ac_write_fail = 0 || 65097a2631fcSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 65107a2631fcSmrg 65113e747e6dSmrg 65123e747e6dSmrg# configure is writing to config.log, and then calls config.status. 65133e747e6dSmrg# config.status does its own redirection, appending to config.log. 65143e747e6dSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 65153e747e6dSmrg# by configure, so config.status won't be able to write to it; its 65163e747e6dSmrg# output is simply discarded. So we exec the FD to /dev/null, 65173e747e6dSmrg# effectively closing config.log, so it can be properly (re)opened and 65183e747e6dSmrg# appended to by config.status. When coming back to configure, we 65193e747e6dSmrg# need to make the FD available again. 65203e747e6dSmrgif test "$no_create" != yes; then 65213e747e6dSmrg ac_cs_success=: 65223e747e6dSmrg ac_config_status_args= 65233e747e6dSmrg test "$silent" = yes && 65243e747e6dSmrg ac_config_status_args="$ac_config_status_args --quiet" 65253e747e6dSmrg exec 5>/dev/null 65263e747e6dSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 65273e747e6dSmrg exec 5>>config.log 65283e747e6dSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 65293e747e6dSmrg # would make configure fail if this is the last instruction. 65307a2631fcSmrg $ac_cs_success || as_fn_exit 1 65317a2631fcSmrgfi 65327a2631fcSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 65337a2631fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 65347a2631fcSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 65353e747e6dSmrgfi 65363e747e6dSmrg 6537