configure revision c05e22d7
15dfecf96Smrg#! /bin/sh 25dfecf96Smrg# Guess values for system-dependent variables and create Makefiles. 3c05e22d7Smrg# Generated by GNU Autoconf 2.68 for xedit 1.2.0. 45dfecf96Smrg# 55dfecf96Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 65dfecf96Smrg# 7c05e22d7Smrg# 8f14f4646Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9c05e22d7Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10c05e22d7Smrg# Foundation, Inc. 11c05e22d7Smrg# 12c05e22d7Smrg# 135dfecf96Smrg# This configure script is free software; the Free Software Foundation 145dfecf96Smrg# gives unlimited permission to copy, distribute and modify it. 15c05e22d7Smrg## -------------------- ## 16c05e22d7Smrg## M4sh Initialization. ## 17c05e22d7Smrg## -------------------- ## 185dfecf96Smrg 19f14f4646Smrg# Be more Bourne compatible 20f14f4646SmrgDUALCASE=1; export DUALCASE # for MKS sh 21c05e22d7Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 225dfecf96Smrg emulate sh 235dfecf96Smrg NULLCMD=: 24f14f4646Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 255dfecf96Smrg # is contrary to our usage. Disable this feature. 265dfecf96Smrg alias -g '${1+"$@"}'='"$@"' 27f14f4646Smrg setopt NO_GLOB_SUBST 28f14f4646Smrgelse 29c05e22d7Smrg case `(set -o) 2>/dev/null` in #( 30c05e22d7Smrg *posix*) : 31c05e22d7Smrg set -o posix ;; #( 32c05e22d7Smrg *) : 33c05e22d7Smrg ;; 34f14f4646Smrgesac 35f14f4646Smrgfi 36f14f4646Smrg 37f14f4646Smrg 38f14f4646Smrgas_nl=' 39f14f4646Smrg' 40f14f4646Smrgexport as_nl 41f14f4646Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42f14f4646Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43f14f4646Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44f14f4646Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45c05e22d7Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46c05e22d7Smrg# but without wasting forks for bash or zsh. 47c05e22d7Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48c05e22d7Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49c05e22d7Smrg as_echo='print -r --' 50c05e22d7Smrg as_echo_n='print -rn --' 51c05e22d7Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52f14f4646Smrg as_echo='printf %s\n' 53f14f4646Smrg as_echo_n='printf %s' 54f14f4646Smrgelse 55f14f4646Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56f14f4646Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57f14f4646Smrg as_echo_n='/usr/ucb/echo -n' 58f14f4646Smrg else 59f14f4646Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60f14f4646Smrg as_echo_n_body='eval 61f14f4646Smrg arg=$1; 62c05e22d7Smrg case $arg in #( 63f14f4646Smrg *"$as_nl"*) 64f14f4646Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65f14f4646Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66f14f4646Smrg esac; 67f14f4646Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68f14f4646Smrg ' 69f14f4646Smrg export as_echo_n_body 70f14f4646Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71f14f4646Smrg fi 72f14f4646Smrg export as_echo_body 73f14f4646Smrg as_echo='sh -c $as_echo_body as_echo' 74f14f4646Smrgfi 75f14f4646Smrg 76f14f4646Smrg# The user is always right. 77f14f4646Smrgif test "${PATH_SEPARATOR+set}" != set; then 78f14f4646Smrg PATH_SEPARATOR=: 79f14f4646Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80f14f4646Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81f14f4646Smrg PATH_SEPARATOR=';' 82f14f4646Smrg } 835dfecf96Smrgfi 845dfecf96Smrg 855dfecf96Smrg 86f14f4646Smrg# IFS 87f14f4646Smrg# We need space, tab and new line, in precisely that order. Quoting is 88f14f4646Smrg# there to prevent editors from complaining about space-tab. 89f14f4646Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90f14f4646Smrg# splitting by setting IFS to empty value.) 91f14f4646SmrgIFS=" "" $as_nl" 92f14f4646Smrg 93f14f4646Smrg# Find who we are. Look in the path if we contain no directory separator. 94c05e22d7Smrgas_myself= 95c05e22d7Smrgcase $0 in #(( 96f14f4646Smrg *[\\/]* ) as_myself=$0 ;; 97f14f4646Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98f14f4646Smrgfor as_dir in $PATH 99f14f4646Smrgdo 100f14f4646Smrg IFS=$as_save_IFS 101f14f4646Smrg test -z "$as_dir" && as_dir=. 102c05e22d7Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103c05e22d7Smrg done 104f14f4646SmrgIFS=$as_save_IFS 105f14f4646Smrg 106f14f4646Smrg ;; 107f14f4646Smrgesac 108f14f4646Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109f14f4646Smrg# in which case we are not to be found in the path. 110f14f4646Smrgif test "x$as_myself" = x; then 111f14f4646Smrg as_myself=$0 112f14f4646Smrgfi 113f14f4646Smrgif test ! -f "$as_myself"; then 114f14f4646Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115c05e22d7Smrg exit 1 116f14f4646Smrgfi 117f14f4646Smrg 118c05e22d7Smrg# Unset variables that we do not need and which cause bugs (e.g. in 119c05e22d7Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120c05e22d7Smrg# suppresses any "Segmentation fault" message there. '((' could 121c05e22d7Smrg# trigger a bug in pdksh 5.2.14. 122c05e22d7Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123c05e22d7Smrgdo eval test x\${$as_var+set} = xset \ 124c05e22d7Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125f14f4646Smrgdone 1265dfecf96SmrgPS1='$ ' 1275dfecf96SmrgPS2='> ' 1285dfecf96SmrgPS4='+ ' 1295dfecf96Smrg 1305dfecf96Smrg# NLS nuisances. 131f14f4646SmrgLC_ALL=C 132f14f4646Smrgexport LC_ALL 133f14f4646SmrgLANGUAGE=C 134f14f4646Smrgexport LANGUAGE 1355dfecf96Smrg 136c05e22d7Smrg# CDPATH. 137c05e22d7Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138c05e22d7Smrg 139c05e22d7Smrgif test "x$CONFIG_SHELL" = x; then 140c05e22d7Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141c05e22d7Smrg emulate sh 142c05e22d7Smrg NULLCMD=: 143c05e22d7Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144c05e22d7Smrg # is contrary to our usage. Disable this feature. 145c05e22d7Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146c05e22d7Smrg setopt NO_GLOB_SUBST 147c05e22d7Smrgelse 148c05e22d7Smrg case \`(set -o) 2>/dev/null\` in #( 149c05e22d7Smrg *posix*) : 150c05e22d7Smrg set -o posix ;; #( 151c05e22d7Smrg *) : 152c05e22d7Smrg ;; 153c05e22d7Smrgesac 154c05e22d7Smrgfi 155c05e22d7Smrg" 156c05e22d7Smrg as_required="as_fn_return () { (exit \$1); } 157c05e22d7Smrgas_fn_success () { as_fn_return 0; } 158c05e22d7Smrgas_fn_failure () { as_fn_return 1; } 159c05e22d7Smrgas_fn_ret_success () { return 0; } 160c05e22d7Smrgas_fn_ret_failure () { return 1; } 161c05e22d7Smrg 162c05e22d7Smrgexitcode=0 163c05e22d7Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164c05e22d7Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165c05e22d7Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166c05e22d7Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167c05e22d7Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168c05e22d7Smrg 169c05e22d7Smrgelse 170c05e22d7Smrg exitcode=1; echo positional parameters were not saved. 171c05e22d7Smrgfi 172c05e22d7Smrgtest x\$exitcode = x0 || exit 1" 173c05e22d7Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174c05e22d7Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175c05e22d7Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176c05e22d7Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177c05e22d7Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 178c05e22d7Smrg if (eval "$as_required") 2>/dev/null; then : 179c05e22d7Smrg as_have_required=yes 180c05e22d7Smrgelse 181c05e22d7Smrg as_have_required=no 182c05e22d7Smrgfi 183c05e22d7Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184c05e22d7Smrg 185c05e22d7Smrgelse 186c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187c05e22d7Smrgas_found=false 188c05e22d7Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189c05e22d7Smrgdo 190c05e22d7Smrg IFS=$as_save_IFS 191c05e22d7Smrg test -z "$as_dir" && as_dir=. 192c05e22d7Smrg as_found=: 193c05e22d7Smrg case $as_dir in #( 194c05e22d7Smrg /*) 195c05e22d7Smrg for as_base in sh bash ksh sh5; do 196c05e22d7Smrg # Try only shells that exist, to save several forks. 197c05e22d7Smrg as_shell=$as_dir/$as_base 198c05e22d7Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199c05e22d7Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200c05e22d7Smrg CONFIG_SHELL=$as_shell as_have_required=yes 201c05e22d7Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202c05e22d7Smrg break 2 203c05e22d7Smrgfi 204c05e22d7Smrgfi 205c05e22d7Smrg done;; 206c05e22d7Smrg esac 207c05e22d7Smrg as_found=false 208c05e22d7Smrgdone 209c05e22d7Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210c05e22d7Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211c05e22d7Smrg CONFIG_SHELL=$SHELL as_have_required=yes 212c05e22d7Smrgfi; } 213c05e22d7SmrgIFS=$as_save_IFS 214c05e22d7Smrg 215c05e22d7Smrg 216c05e22d7Smrg if test "x$CONFIG_SHELL" != x; then : 217c05e22d7Smrg # We cannot yet assume a decent shell, so we have to provide a 218c05e22d7Smrg # neutralization value for shells without unset; and this also 219c05e22d7Smrg # works around shells that cannot unset nonexistent variables. 220c05e22d7Smrg # Preserve -v and -x to the replacement shell. 221c05e22d7Smrg BASH_ENV=/dev/null 222c05e22d7Smrg ENV=/dev/null 223c05e22d7Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224c05e22d7Smrg export CONFIG_SHELL 225c05e22d7Smrg case $- in # (((( 226c05e22d7Smrg *v*x* | *x*v* ) as_opts=-vx ;; 227c05e22d7Smrg *v* ) as_opts=-v ;; 228c05e22d7Smrg *x* ) as_opts=-x ;; 229c05e22d7Smrg * ) as_opts= ;; 230c05e22d7Smrg esac 231c05e22d7Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232c05e22d7Smrgfi 233c05e22d7Smrg 234c05e22d7Smrg if test x$as_have_required = xno; then : 235c05e22d7Smrg $as_echo "$0: This script requires a shell more modern than all" 236c05e22d7Smrg $as_echo "$0: the shells that I found on your system." 237c05e22d7Smrg if test x${ZSH_VERSION+set} = xset ; then 238c05e22d7Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239c05e22d7Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240c05e22d7Smrg else 241c05e22d7Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242c05e22d7Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243c05e22d7Smrg$0: about your system, including any error possibly output 244c05e22d7Smrg$0: before this message. Then install a modern shell, or 245c05e22d7Smrg$0: manually run the script under such a shell if you do 246c05e22d7Smrg$0: have one." 247c05e22d7Smrg fi 248c05e22d7Smrg exit 1 249c05e22d7Smrgfi 250c05e22d7Smrgfi 251c05e22d7Smrgfi 252c05e22d7SmrgSHELL=${CONFIG_SHELL-/bin/sh} 253c05e22d7Smrgexport SHELL 254c05e22d7Smrg# Unset more variables known to interfere with behavior of common tools. 255c05e22d7SmrgCLICOLOR_FORCE= GREP_OPTIONS= 256c05e22d7Smrgunset CLICOLOR_FORCE GREP_OPTIONS 257c05e22d7Smrg 258c05e22d7Smrg## --------------------- ## 259c05e22d7Smrg## M4sh Shell Functions. ## 260c05e22d7Smrg## --------------------- ## 261c05e22d7Smrg# as_fn_unset VAR 262c05e22d7Smrg# --------------- 263c05e22d7Smrg# Portably unset VAR. 264c05e22d7Smrgas_fn_unset () 265c05e22d7Smrg{ 266c05e22d7Smrg { eval $1=; unset $1;} 267c05e22d7Smrg} 268c05e22d7Smrgas_unset=as_fn_unset 269c05e22d7Smrg 270c05e22d7Smrg# as_fn_set_status STATUS 271c05e22d7Smrg# ----------------------- 272c05e22d7Smrg# Set $? to STATUS, without forking. 273c05e22d7Smrgas_fn_set_status () 274c05e22d7Smrg{ 275c05e22d7Smrg return $1 276c05e22d7Smrg} # as_fn_set_status 277c05e22d7Smrg 278c05e22d7Smrg# as_fn_exit STATUS 279c05e22d7Smrg# ----------------- 280c05e22d7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281c05e22d7Smrgas_fn_exit () 282c05e22d7Smrg{ 283c05e22d7Smrg set +e 284c05e22d7Smrg as_fn_set_status $1 285c05e22d7Smrg exit $1 286c05e22d7Smrg} # as_fn_exit 287c05e22d7Smrg 288c05e22d7Smrg# as_fn_mkdir_p 289c05e22d7Smrg# ------------- 290c05e22d7Smrg# Create "$as_dir" as a directory, including parents if necessary. 291c05e22d7Smrgas_fn_mkdir_p () 292c05e22d7Smrg{ 293c05e22d7Smrg 294c05e22d7Smrg case $as_dir in #( 295c05e22d7Smrg -*) as_dir=./$as_dir;; 296c05e22d7Smrg esac 297c05e22d7Smrg test -d "$as_dir" || eval $as_mkdir_p || { 298c05e22d7Smrg as_dirs= 299c05e22d7Smrg while :; do 300c05e22d7Smrg case $as_dir in #( 301c05e22d7Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302c05e22d7Smrg *) as_qdir=$as_dir;; 303c05e22d7Smrg esac 304c05e22d7Smrg as_dirs="'$as_qdir' $as_dirs" 305c05e22d7Smrg as_dir=`$as_dirname -- "$as_dir" || 306c05e22d7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307c05e22d7Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308c05e22d7Smrg X"$as_dir" : 'X\(//\)$' \| \ 309c05e22d7Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310c05e22d7Smrg$as_echo X"$as_dir" | 311c05e22d7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312c05e22d7Smrg s//\1/ 313c05e22d7Smrg q 314c05e22d7Smrg } 315c05e22d7Smrg /^X\(\/\/\)[^/].*/{ 316c05e22d7Smrg s//\1/ 317c05e22d7Smrg q 318c05e22d7Smrg } 319c05e22d7Smrg /^X\(\/\/\)$/{ 320c05e22d7Smrg s//\1/ 321c05e22d7Smrg q 322c05e22d7Smrg } 323c05e22d7Smrg /^X\(\/\).*/{ 324c05e22d7Smrg s//\1/ 325c05e22d7Smrg q 326c05e22d7Smrg } 327c05e22d7Smrg s/.*/./; q'` 328c05e22d7Smrg test -d "$as_dir" && break 329c05e22d7Smrg done 330c05e22d7Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 331c05e22d7Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332c05e22d7Smrg 333c05e22d7Smrg 334c05e22d7Smrg} # as_fn_mkdir_p 335c05e22d7Smrg# as_fn_append VAR VALUE 336c05e22d7Smrg# ---------------------- 337c05e22d7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338c05e22d7Smrg# advantage of any shell optimizations that allow amortized linear growth over 339c05e22d7Smrg# repeated appends, instead of the typical quadratic growth present in naive 340c05e22d7Smrg# implementations. 341c05e22d7Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342c05e22d7Smrg eval 'as_fn_append () 343c05e22d7Smrg { 344c05e22d7Smrg eval $1+=\$2 345c05e22d7Smrg }' 346c05e22d7Smrgelse 347c05e22d7Smrg as_fn_append () 348c05e22d7Smrg { 349c05e22d7Smrg eval $1=\$$1\$2 350c05e22d7Smrg } 351c05e22d7Smrgfi # as_fn_append 352c05e22d7Smrg 353c05e22d7Smrg# as_fn_arith ARG... 354c05e22d7Smrg# ------------------ 355c05e22d7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356c05e22d7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357c05e22d7Smrg# must be portable across $(()) and expr. 358c05e22d7Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359c05e22d7Smrg eval 'as_fn_arith () 360c05e22d7Smrg { 361c05e22d7Smrg as_val=$(( $* )) 362c05e22d7Smrg }' 363c05e22d7Smrgelse 364c05e22d7Smrg as_fn_arith () 365c05e22d7Smrg { 366c05e22d7Smrg as_val=`expr "$@" || test $? -eq 1` 367c05e22d7Smrg } 368c05e22d7Smrgfi # as_fn_arith 369c05e22d7Smrg 370c05e22d7Smrg 371c05e22d7Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 372c05e22d7Smrg# ---------------------------------------- 373c05e22d7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374c05e22d7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375c05e22d7Smrg# script with STATUS, using 1 if that was 0. 376c05e22d7Smrgas_fn_error () 377c05e22d7Smrg{ 378c05e22d7Smrg as_status=$1; test $as_status -eq 0 && as_status=1 379c05e22d7Smrg if test "$4"; then 380c05e22d7Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382c05e22d7Smrg fi 383c05e22d7Smrg $as_echo "$as_me: error: $2" >&2 384c05e22d7Smrg as_fn_exit $as_status 385c05e22d7Smrg} # as_fn_error 386c05e22d7Smrg 387f14f4646Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 388f14f4646Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3895dfecf96Smrg as_expr=expr 3905dfecf96Smrgelse 3915dfecf96Smrg as_expr=false 3925dfecf96Smrgfi 3935dfecf96Smrg 394f14f4646Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3955dfecf96Smrg as_basename=basename 3965dfecf96Smrgelse 3975dfecf96Smrg as_basename=false 3985dfecf96Smrgfi 3995dfecf96Smrg 400c05e22d7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401c05e22d7Smrg as_dirname=dirname 402c05e22d7Smrgelse 403c05e22d7Smrg as_dirname=false 404c05e22d7Smrgfi 4055dfecf96Smrg 406f14f4646Smrgas_me=`$as_basename -- "$0" || 4075dfecf96Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4085dfecf96Smrg X"$0" : 'X\(//\)$' \| \ 409f14f4646Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410f14f4646Smrg$as_echo X/"$0" | 411f14f4646Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412f14f4646Smrg s//\1/ 413f14f4646Smrg q 414f14f4646Smrg } 415f14f4646Smrg /^X\/\(\/\/\)$/{ 416f14f4646Smrg s//\1/ 417f14f4646Smrg q 418f14f4646Smrg } 419f14f4646Smrg /^X\/\(\/\).*/{ 420f14f4646Smrg s//\1/ 421f14f4646Smrg q 422f14f4646Smrg } 423f14f4646Smrg s/.*/./; q'` 4245dfecf96Smrg 425c05e22d7Smrg# Avoid depending upon Character Ranges. 426c05e22d7Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427c05e22d7Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428c05e22d7Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429c05e22d7Smrgas_cr_digits='0123456789' 430c05e22d7Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4315dfecf96Smrg 4325dfecf96Smrg 433c05e22d7Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434c05e22d7Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435c05e22d7Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436c05e22d7Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437c05e22d7Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438c05e22d7Smrg sed -n ' 439c05e22d7Smrg p 440c05e22d7Smrg /[$]LINENO/= 441c05e22d7Smrg ' <$as_myself | 442c05e22d7Smrg sed ' 443c05e22d7Smrg s/[$]LINENO.*/&-/ 444c05e22d7Smrg t lineno 445c05e22d7Smrg b 446c05e22d7Smrg :lineno 447c05e22d7Smrg N 448c05e22d7Smrg :loop 449c05e22d7Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450c05e22d7Smrg t loop 451c05e22d7Smrg s/-\n.*// 452c05e22d7Smrg ' >$as_me.lineno && 453c05e22d7Smrg chmod +x "$as_me.lineno" || 454c05e22d7Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4555dfecf96Smrg 456c05e22d7Smrg # Don't try to exec as it changes $[0], causing all sort of problems 457c05e22d7Smrg # (the dirname of $[0] is not the place where we might find the 458c05e22d7Smrg # original and so on. Autoconf is especially sensitive to this). 459c05e22d7Smrg . "./$as_me.lineno" 460c05e22d7Smrg # Exit status is that of the last command. 461c05e22d7Smrg exit 462f14f4646Smrg} 4635dfecf96Smrg 464c05e22d7SmrgECHO_C= ECHO_N= ECHO_T= 465c05e22d7Smrgcase `echo -n x` in #((((( 466c05e22d7Smrg-n*) 467c05e22d7Smrg case `echo 'xy\c'` in 468c05e22d7Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469c05e22d7Smrg xy) ECHO_C='\c';; 470c05e22d7Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471c05e22d7Smrg ECHO_T=' ';; 472c05e22d7Smrg esac;; 473c05e22d7Smrg*) 474c05e22d7Smrg ECHO_N='-n';; 475c05e22d7Smrgesac 4765dfecf96Smrg 477c05e22d7Smrgrm -f conf$$ conf$$.exe conf$$.file 478c05e22d7Smrgif test -d conf$$.dir; then 479c05e22d7Smrg rm -f conf$$.dir/conf$$.file 480c05e22d7Smrgelse 481c05e22d7Smrg rm -f conf$$.dir 482c05e22d7Smrg mkdir conf$$.dir 2>/dev/null 483f14f4646Smrgfi 484c05e22d7Smrgif (echo >conf$$.file) 2>/dev/null; then 485c05e22d7Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486c05e22d7Smrg as_ln_s='ln -s' 487c05e22d7Smrg # ... but there are two gotchas: 488c05e22d7Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489c05e22d7Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490c05e22d7Smrg # In both cases, we have to default to `cp -p'. 491c05e22d7Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492c05e22d7Smrg as_ln_s='cp -p' 493c05e22d7Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 494c05e22d7Smrg as_ln_s=ln 495c05e22d7Smrg else 496c05e22d7Smrg as_ln_s='cp -p' 497c05e22d7Smrg fi 498f14f4646Smrgelse 499c05e22d7Smrg as_ln_s='cp -p' 500f14f4646Smrgfi 501c05e22d7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502c05e22d7Smrgrmdir conf$$.dir 2>/dev/null 503f14f4646Smrg 504c05e22d7Smrgif mkdir -p . 2>/dev/null; then 505c05e22d7Smrg as_mkdir_p='mkdir -p "$as_dir"' 506c05e22d7Smrgelse 507c05e22d7Smrg test -d ./-p && rmdir ./-p 508c05e22d7Smrg as_mkdir_p=false 509f14f4646Smrgfi 510f14f4646Smrg 511c05e22d7Smrgif test -x / >/dev/null 2>&1; then 512c05e22d7Smrg as_test_x='test -x' 513f14f4646Smrgelse 514c05e22d7Smrg if ls -dL / >/dev/null 2>&1; then 515c05e22d7Smrg as_ls_L_option=L 516c05e22d7Smrg else 517c05e22d7Smrg as_ls_L_option= 518c05e22d7Smrg fi 519c05e22d7Smrg as_test_x=' 520c05e22d7Smrg eval sh -c '\'' 521c05e22d7Smrg if test -d "$1"; then 522c05e22d7Smrg test -d "$1/."; 523c05e22d7Smrg else 524c05e22d7Smrg case $1 in #( 525c05e22d7Smrg -*)set "./$1";; 526c05e22d7Smrg esac; 527c05e22d7Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528c05e22d7Smrg ???[sx]*):;;*)false;;esac;fi 529c05e22d7Smrg '\'' sh 530c05e22d7Smrg ' 531f14f4646Smrgfi 532c05e22d7Smrgas_executable_p=$as_test_x 533f14f4646Smrg 534c05e22d7Smrg# Sed expression to map a string onto a valid CPP name. 535c05e22d7Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536f14f4646Smrg 537c05e22d7Smrg# Sed expression to map a string onto a valid variable name. 538c05e22d7Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539f14f4646Smrg 540f14f4646Smrg 541c05e22d7Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542c05e22d7Smrgexec 6>&1 5435dfecf96Smrg 5445dfecf96Smrg# Name of the host. 545c05e22d7Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 5465dfecf96Smrg# so uname gets run too. 5475dfecf96Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 5485dfecf96Smrg 5495dfecf96Smrg# 5505dfecf96Smrg# Initializations. 5515dfecf96Smrg# 5525dfecf96Smrgac_default_prefix=/usr/local 553f14f4646Smrgac_clean_files= 5545dfecf96Smrgac_config_libobj_dir=. 555f14f4646SmrgLIBOBJS= 5565dfecf96Smrgcross_compiling=no 5575dfecf96Smrgsubdirs= 5585dfecf96SmrgMFLAGS= 5595dfecf96SmrgMAKEFLAGS= 5605dfecf96Smrg 5615dfecf96Smrg# Identity of this package. 5625dfecf96SmrgPACKAGE_NAME='xedit' 5635dfecf96SmrgPACKAGE_TARNAME='xedit' 564c05e22d7SmrgPACKAGE_VERSION='1.2.0' 565c05e22d7SmrgPACKAGE_STRING='xedit 1.2.0' 5665dfecf96SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567c05e22d7SmrgPACKAGE_URL='' 568c05e22d7Smrg 569c05e22d7Smrg# Factoring default headers for most tests. 570c05e22d7Smrgac_includes_default="\ 571c05e22d7Smrg#include <stdio.h> 572c05e22d7Smrg#ifdef HAVE_SYS_TYPES_H 573c05e22d7Smrg# include <sys/types.h> 574c05e22d7Smrg#endif 575c05e22d7Smrg#ifdef HAVE_SYS_STAT_H 576c05e22d7Smrg# include <sys/stat.h> 577c05e22d7Smrg#endif 578c05e22d7Smrg#ifdef STDC_HEADERS 579c05e22d7Smrg# include <stdlib.h> 580c05e22d7Smrg# include <stddef.h> 581c05e22d7Smrg#else 582c05e22d7Smrg# ifdef HAVE_STDLIB_H 583c05e22d7Smrg# include <stdlib.h> 584c05e22d7Smrg# endif 585c05e22d7Smrg#endif 586c05e22d7Smrg#ifdef HAVE_STRING_H 587c05e22d7Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588c05e22d7Smrg# include <memory.h> 589c05e22d7Smrg# endif 590c05e22d7Smrg# include <string.h> 591c05e22d7Smrg#endif 592c05e22d7Smrg#ifdef HAVE_STRINGS_H 593c05e22d7Smrg# include <strings.h> 594c05e22d7Smrg#endif 595c05e22d7Smrg#ifdef HAVE_INTTYPES_H 596c05e22d7Smrg# include <inttypes.h> 597c05e22d7Smrg#endif 598c05e22d7Smrg#ifdef HAVE_STDINT_H 599c05e22d7Smrg# include <stdint.h> 600c05e22d7Smrg#endif 601c05e22d7Smrg#ifdef HAVE_UNISTD_H 602c05e22d7Smrg# include <unistd.h> 603c05e22d7Smrg#endif" 6045dfecf96Smrg 605c05e22d7Smrgac_subst_vars='am__EXEEXT_FALSE 606c05e22d7Smrgam__EXEEXT_TRUE 607c05e22d7SmrgLTLIBOBJS 608f14f4646SmrgLIBOBJS 609c05e22d7Smrgappdefaultdir 610c05e22d7SmrgAPPDEFS_LIBS 611c05e22d7SmrgAPPDEFS_CFLAGS 612c05e22d7SmrgNEED_UNSETENV_FALSE 613c05e22d7SmrgNEED_UNSETENV_TRUE 614c05e22d7SmrgNEED_STRCASECMP_FALSE 615c05e22d7SmrgNEED_STRCASECMP_TRUE 616c05e22d7SmrgNEED_REALPATH_FALSE 617c05e22d7SmrgNEED_REALPATH_TRUE 618c05e22d7SmrgLISPDIR 619c05e22d7SmrgPKGDEPS_LIBS 620c05e22d7SmrgPKGDEPS_CFLAGS 621c05e22d7SmrgRANLIB 622c05e22d7SmrgAM_BACKSLASH 623c05e22d7SmrgAM_DEFAULT_VERBOSITY 624c05e22d7SmrgMAN_SUBSTS 625c05e22d7SmrgXORG_MAN_PAGE 626f14f4646SmrgADMIN_MAN_DIR 627f14f4646SmrgDRIVER_MAN_DIR 628f14f4646SmrgMISC_MAN_DIR 629f14f4646SmrgFILE_MAN_DIR 630f14f4646SmrgLIB_MAN_DIR 631f14f4646SmrgAPP_MAN_DIR 632f14f4646SmrgADMIN_MAN_SUFFIX 633f14f4646SmrgDRIVER_MAN_SUFFIX 634f14f4646SmrgMISC_MAN_SUFFIX 635f14f4646SmrgFILE_MAN_SUFFIX 636f14f4646SmrgLIB_MAN_SUFFIX 637f14f4646SmrgAPP_MAN_SUFFIX 638c05e22d7SmrgSED 639f14f4646Smrghost_os 640f14f4646Smrghost_vendor 641f14f4646Smrghost_cpu 642f14f4646Smrghost 643f14f4646Smrgbuild_os 644f14f4646Smrgbuild_vendor 645f14f4646Smrgbuild_cpu 646f14f4646Smrgbuild 647c05e22d7SmrgINSTALL_CMD 648f14f4646SmrgPKG_CONFIG 649c05e22d7SmrgCHANGELOG_CMD 650c05e22d7SmrgCWARNFLAGS 651c05e22d7SmrgEGREP 652c05e22d7SmrgGREP 653c05e22d7SmrgCPP 654f14f4646Smrgam__fastdepCC_FALSE 655f14f4646Smrgam__fastdepCC_TRUE 656f14f4646SmrgCCDEPMODE 657f14f4646SmrgAMDEPBACKSLASH 658f14f4646SmrgAMDEP_FALSE 659f14f4646SmrgAMDEP_TRUE 660f14f4646Smrgam__quote 661f14f4646Smrgam__include 662f14f4646SmrgDEPDIR 663f14f4646SmrgOBJEXT 664f14f4646SmrgEXEEXT 665f14f4646Smrgac_ct_CC 666f14f4646SmrgCPPFLAGS 667f14f4646SmrgLDFLAGS 668f14f4646SmrgCFLAGS 669f14f4646SmrgCC 670f14f4646SmrgMAINT 671f14f4646SmrgMAINTAINER_MODE_FALSE 672f14f4646SmrgMAINTAINER_MODE_TRUE 673f14f4646Smrgam__untar 674f14f4646Smrgam__tar 675f14f4646SmrgAMTAR 676f14f4646Smrgam__leading_dot 677f14f4646SmrgSET_MAKE 678f14f4646SmrgAWK 679f14f4646Smrgmkdir_p 680f14f4646SmrgMKDIR_P 681f14f4646SmrgINSTALL_STRIP_PROGRAM 682f14f4646SmrgSTRIP 683f14f4646Smrginstall_sh 684f14f4646SmrgMAKEINFO 685f14f4646SmrgAUTOHEADER 686f14f4646SmrgAUTOMAKE 687f14f4646SmrgAUTOCONF 688f14f4646SmrgACLOCAL 689f14f4646SmrgVERSION 690f14f4646SmrgPACKAGE 691f14f4646SmrgCYGPATH_W 692f14f4646Smrgam__isrc 693f14f4646SmrgINSTALL_DATA 694f14f4646SmrgINSTALL_SCRIPT 695f14f4646SmrgINSTALL_PROGRAM 696f14f4646Smrgtarget_alias 697f14f4646Smrghost_alias 698f14f4646Smrgbuild_alias 699f14f4646SmrgLIBS 700f14f4646SmrgECHO_T 701f14f4646SmrgECHO_N 702f14f4646SmrgECHO_C 703f14f4646SmrgDEFS 704f14f4646Smrgmandir 705f14f4646Smrglocaledir 706f14f4646Smrglibdir 707f14f4646Smrgpsdir 708f14f4646Smrgpdfdir 709f14f4646Smrgdvidir 710f14f4646Smrghtmldir 711f14f4646Smrginfodir 712f14f4646Smrgdocdir 713f14f4646Smrgoldincludedir 714f14f4646Smrgincludedir 715f14f4646Smrglocalstatedir 716f14f4646Smrgsharedstatedir 717f14f4646Smrgsysconfdir 718f14f4646Smrgdatadir 719f14f4646Smrgdatarootdir 720f14f4646Smrglibexecdir 721f14f4646Smrgsbindir 722f14f4646Smrgbindir 723f14f4646Smrgprogram_transform_name 724f14f4646Smrgprefix 725f14f4646Smrgexec_prefix 726c05e22d7SmrgPACKAGE_URL 727f14f4646SmrgPACKAGE_BUGREPORT 728f14f4646SmrgPACKAGE_STRING 729f14f4646SmrgPACKAGE_VERSION 730f14f4646SmrgPACKAGE_TARNAME 731f14f4646SmrgPACKAGE_NAME 732f14f4646SmrgPATH_SEPARATOR 733f14f4646SmrgSHELL' 7345dfecf96Smrgac_subst_files='' 735f14f4646Smrgac_user_opts=' 736f14f4646Smrgenable_option_checking 737f14f4646Smrgenable_maintainer_mode 738f14f4646Smrgenable_dependency_tracking 739c05e22d7Smrgenable_strict_compilation 740c05e22d7Smrgenable_silent_rules 741f14f4646Smrgwith_lispdir 742c05e22d7Smrgwith_appdefaultdir 743f14f4646Smrg' 744f14f4646Smrg ac_precious_vars='build_alias 745f14f4646Smrghost_alias 746f14f4646Smrgtarget_alias 747f14f4646SmrgCC 748f14f4646SmrgCFLAGS 749f14f4646SmrgLDFLAGS 750f14f4646SmrgLIBS 751f14f4646SmrgCPPFLAGS 752c05e22d7SmrgCPP 753f14f4646SmrgPKG_CONFIG 754f14f4646SmrgPKGDEPS_CFLAGS 755f14f4646SmrgPKGDEPS_LIBS 756f14f4646SmrgAPPDEFS_CFLAGS 757f14f4646SmrgAPPDEFS_LIBS' 758f14f4646Smrg 7595dfecf96Smrg 7605dfecf96Smrg# Initialize some variables set by options. 7615dfecf96Smrgac_init_help= 7625dfecf96Smrgac_init_version=false 763f14f4646Smrgac_unrecognized_opts= 764f14f4646Smrgac_unrecognized_sep= 7655dfecf96Smrg# The variables have the same names as the options, with 7665dfecf96Smrg# dashes changed to underlines. 7675dfecf96Smrgcache_file=/dev/null 7685dfecf96Smrgexec_prefix=NONE 7695dfecf96Smrgno_create= 7705dfecf96Smrgno_recursion= 7715dfecf96Smrgprefix=NONE 7725dfecf96Smrgprogram_prefix=NONE 7735dfecf96Smrgprogram_suffix=NONE 7745dfecf96Smrgprogram_transform_name=s,x,x, 7755dfecf96Smrgsilent= 7765dfecf96Smrgsite= 7775dfecf96Smrgsrcdir= 7785dfecf96Smrgverbose= 7795dfecf96Smrgx_includes=NONE 7805dfecf96Smrgx_libraries=NONE 7815dfecf96Smrg 7825dfecf96Smrg# Installation directory options. 7835dfecf96Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 7845dfecf96Smrg# and all the variables that are supposed to be based on exec_prefix 7855dfecf96Smrg# by default will actually change. 7865dfecf96Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 787f14f4646Smrg# (The list follows the same order as the GNU Coding Standards.) 7885dfecf96Smrgbindir='${exec_prefix}/bin' 7895dfecf96Smrgsbindir='${exec_prefix}/sbin' 7905dfecf96Smrglibexecdir='${exec_prefix}/libexec' 791f14f4646Smrgdatarootdir='${prefix}/share' 792f14f4646Smrgdatadir='${datarootdir}' 7935dfecf96Smrgsysconfdir='${prefix}/etc' 7945dfecf96Smrgsharedstatedir='${prefix}/com' 7955dfecf96Smrglocalstatedir='${prefix}/var' 7965dfecf96Smrgincludedir='${prefix}/include' 7975dfecf96Smrgoldincludedir='/usr/include' 798f14f4646Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 799f14f4646Smrginfodir='${datarootdir}/info' 800f14f4646Smrghtmldir='${docdir}' 801f14f4646Smrgdvidir='${docdir}' 802f14f4646Smrgpdfdir='${docdir}' 803f14f4646Smrgpsdir='${docdir}' 804f14f4646Smrglibdir='${exec_prefix}/lib' 805f14f4646Smrglocaledir='${datarootdir}/locale' 806f14f4646Smrgmandir='${datarootdir}/man' 8075dfecf96Smrg 8085dfecf96Smrgac_prev= 809f14f4646Smrgac_dashdash= 8105dfecf96Smrgfor ac_option 8115dfecf96Smrgdo 8125dfecf96Smrg # If the previous option needs an argument, assign it. 8135dfecf96Smrg if test -n "$ac_prev"; then 814f14f4646Smrg eval $ac_prev=\$ac_option 8155dfecf96Smrg ac_prev= 8165dfecf96Smrg continue 8175dfecf96Smrg fi 8185dfecf96Smrg 819f14f4646Smrg case $ac_option in 820c05e22d7Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 821c05e22d7Smrg *=) ac_optarg= ;; 822c05e22d7Smrg *) ac_optarg=yes ;; 823f14f4646Smrg esac 8245dfecf96Smrg 8255dfecf96Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 8265dfecf96Smrg 827f14f4646Smrg case $ac_dashdash$ac_option in 828f14f4646Smrg --) 829f14f4646Smrg ac_dashdash=yes ;; 8305dfecf96Smrg 8315dfecf96Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 8325dfecf96Smrg ac_prev=bindir ;; 8335dfecf96Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8345dfecf96Smrg bindir=$ac_optarg ;; 8355dfecf96Smrg 8365dfecf96Smrg -build | --build | --buil | --bui | --bu) 8375dfecf96Smrg ac_prev=build_alias ;; 8385dfecf96Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 8395dfecf96Smrg build_alias=$ac_optarg ;; 8405dfecf96Smrg 8415dfecf96Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 8425dfecf96Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 8435dfecf96Smrg ac_prev=cache_file ;; 8445dfecf96Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 8455dfecf96Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 8465dfecf96Smrg cache_file=$ac_optarg ;; 8475dfecf96Smrg 8485dfecf96Smrg --config-cache | -C) 8495dfecf96Smrg cache_file=config.cache ;; 8505dfecf96Smrg 851f14f4646Smrg -datadir | --datadir | --datadi | --datad) 8525dfecf96Smrg ac_prev=datadir ;; 853f14f4646Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 8545dfecf96Smrg datadir=$ac_optarg ;; 8555dfecf96Smrg 856f14f4646Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 857f14f4646Smrg | --dataroo | --dataro | --datar) 858f14f4646Smrg ac_prev=datarootdir ;; 859f14f4646Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 860f14f4646Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 861f14f4646Smrg datarootdir=$ac_optarg ;; 862f14f4646Smrg 8635dfecf96Smrg -disable-* | --disable-*) 864f14f4646Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 8655dfecf96Smrg # Reject names that are not valid shell variable names. 866f14f4646Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 867c05e22d7Smrg as_fn_error $? "invalid feature name: $ac_useropt" 868f14f4646Smrg ac_useropt_orig=$ac_useropt 869f14f4646Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 870f14f4646Smrg case $ac_user_opts in 871f14f4646Smrg *" 872f14f4646Smrg"enable_$ac_useropt" 873f14f4646Smrg"*) ;; 874f14f4646Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 875f14f4646Smrg ac_unrecognized_sep=', ';; 876f14f4646Smrg esac 877f14f4646Smrg eval enable_$ac_useropt=no ;; 878f14f4646Smrg 879f14f4646Smrg -docdir | --docdir | --docdi | --doc | --do) 880f14f4646Smrg ac_prev=docdir ;; 881f14f4646Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 882f14f4646Smrg docdir=$ac_optarg ;; 883f14f4646Smrg 884f14f4646Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 885f14f4646Smrg ac_prev=dvidir ;; 886f14f4646Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 887f14f4646Smrg dvidir=$ac_optarg ;; 8885dfecf96Smrg 8895dfecf96Smrg -enable-* | --enable-*) 890f14f4646Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 8915dfecf96Smrg # Reject names that are not valid shell variable names. 892f14f4646Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 893c05e22d7Smrg as_fn_error $? "invalid feature name: $ac_useropt" 894f14f4646Smrg ac_useropt_orig=$ac_useropt 895f14f4646Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 896f14f4646Smrg case $ac_user_opts in 897f14f4646Smrg *" 898f14f4646Smrg"enable_$ac_useropt" 899f14f4646Smrg"*) ;; 900f14f4646Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 901f14f4646Smrg ac_unrecognized_sep=', ';; 9025dfecf96Smrg esac 903f14f4646Smrg eval enable_$ac_useropt=\$ac_optarg ;; 9045dfecf96Smrg 9055dfecf96Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 9065dfecf96Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 9075dfecf96Smrg | --exec | --exe | --ex) 9085dfecf96Smrg ac_prev=exec_prefix ;; 9095dfecf96Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 9105dfecf96Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 9115dfecf96Smrg | --exec=* | --exe=* | --ex=*) 9125dfecf96Smrg exec_prefix=$ac_optarg ;; 9135dfecf96Smrg 9145dfecf96Smrg -gas | --gas | --ga | --g) 9155dfecf96Smrg # Obsolete; use --with-gas. 9165dfecf96Smrg with_gas=yes ;; 9175dfecf96Smrg 9185dfecf96Smrg -help | --help | --hel | --he | -h) 9195dfecf96Smrg ac_init_help=long ;; 9205dfecf96Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 9215dfecf96Smrg ac_init_help=recursive ;; 9225dfecf96Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 9235dfecf96Smrg ac_init_help=short ;; 9245dfecf96Smrg 9255dfecf96Smrg -host | --host | --hos | --ho) 9265dfecf96Smrg ac_prev=host_alias ;; 9275dfecf96Smrg -host=* | --host=* | --hos=* | --ho=*) 9285dfecf96Smrg host_alias=$ac_optarg ;; 9295dfecf96Smrg 930f14f4646Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 931f14f4646Smrg ac_prev=htmldir ;; 932f14f4646Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 933f14f4646Smrg | --ht=*) 934f14f4646Smrg htmldir=$ac_optarg ;; 935f14f4646Smrg 9365dfecf96Smrg -includedir | --includedir | --includedi | --included | --include \ 9375dfecf96Smrg | --includ | --inclu | --incl | --inc) 9385dfecf96Smrg ac_prev=includedir ;; 9395dfecf96Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 9405dfecf96Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 9415dfecf96Smrg includedir=$ac_optarg ;; 9425dfecf96Smrg 9435dfecf96Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 9445dfecf96Smrg ac_prev=infodir ;; 9455dfecf96Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 9465dfecf96Smrg infodir=$ac_optarg ;; 9475dfecf96Smrg 9485dfecf96Smrg -libdir | --libdir | --libdi | --libd) 9495dfecf96Smrg ac_prev=libdir ;; 9505dfecf96Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 9515dfecf96Smrg libdir=$ac_optarg ;; 9525dfecf96Smrg 9535dfecf96Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 9545dfecf96Smrg | --libexe | --libex | --libe) 9555dfecf96Smrg ac_prev=libexecdir ;; 9565dfecf96Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 9575dfecf96Smrg | --libexe=* | --libex=* | --libe=*) 9585dfecf96Smrg libexecdir=$ac_optarg ;; 9595dfecf96Smrg 960f14f4646Smrg -localedir | --localedir | --localedi | --localed | --locale) 961f14f4646Smrg ac_prev=localedir ;; 962f14f4646Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 963f14f4646Smrg localedir=$ac_optarg ;; 964f14f4646Smrg 9655dfecf96Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 966f14f4646Smrg | --localstate | --localstat | --localsta | --localst | --locals) 9675dfecf96Smrg ac_prev=localstatedir ;; 9685dfecf96Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 969f14f4646Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 9705dfecf96Smrg localstatedir=$ac_optarg ;; 9715dfecf96Smrg 9725dfecf96Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 9735dfecf96Smrg ac_prev=mandir ;; 9745dfecf96Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 9755dfecf96Smrg mandir=$ac_optarg ;; 9765dfecf96Smrg 9775dfecf96Smrg -nfp | --nfp | --nf) 9785dfecf96Smrg # Obsolete; use --without-fp. 9795dfecf96Smrg with_fp=no ;; 9805dfecf96Smrg 9815dfecf96Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 9825dfecf96Smrg | --no-cr | --no-c | -n) 9835dfecf96Smrg no_create=yes ;; 9845dfecf96Smrg 9855dfecf96Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 9865dfecf96Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 9875dfecf96Smrg no_recursion=yes ;; 9885dfecf96Smrg 9895dfecf96Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 9905dfecf96Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 9915dfecf96Smrg | --oldin | --oldi | --old | --ol | --o) 9925dfecf96Smrg ac_prev=oldincludedir ;; 9935dfecf96Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 9945dfecf96Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 9955dfecf96Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 9965dfecf96Smrg oldincludedir=$ac_optarg ;; 9975dfecf96Smrg 9985dfecf96Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 9995dfecf96Smrg ac_prev=prefix ;; 10005dfecf96Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 10015dfecf96Smrg prefix=$ac_optarg ;; 10025dfecf96Smrg 10035dfecf96Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 10045dfecf96Smrg | --program-pre | --program-pr | --program-p) 10055dfecf96Smrg ac_prev=program_prefix ;; 10065dfecf96Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 10075dfecf96Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 10085dfecf96Smrg program_prefix=$ac_optarg ;; 10095dfecf96Smrg 10105dfecf96Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 10115dfecf96Smrg | --program-suf | --program-su | --program-s) 10125dfecf96Smrg ac_prev=program_suffix ;; 10135dfecf96Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 10145dfecf96Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 10155dfecf96Smrg program_suffix=$ac_optarg ;; 10165dfecf96Smrg 10175dfecf96Smrg -program-transform-name | --program-transform-name \ 10185dfecf96Smrg | --program-transform-nam | --program-transform-na \ 10195dfecf96Smrg | --program-transform-n | --program-transform- \ 10205dfecf96Smrg | --program-transform | --program-transfor \ 10215dfecf96Smrg | --program-transfo | --program-transf \ 10225dfecf96Smrg | --program-trans | --program-tran \ 10235dfecf96Smrg | --progr-tra | --program-tr | --program-t) 10245dfecf96Smrg ac_prev=program_transform_name ;; 10255dfecf96Smrg -program-transform-name=* | --program-transform-name=* \ 10265dfecf96Smrg | --program-transform-nam=* | --program-transform-na=* \ 10275dfecf96Smrg | --program-transform-n=* | --program-transform-=* \ 10285dfecf96Smrg | --program-transform=* | --program-transfor=* \ 10295dfecf96Smrg | --program-transfo=* | --program-transf=* \ 10305dfecf96Smrg | --program-trans=* | --program-tran=* \ 10315dfecf96Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 10325dfecf96Smrg program_transform_name=$ac_optarg ;; 10335dfecf96Smrg 1034f14f4646Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1035f14f4646Smrg ac_prev=pdfdir ;; 1036f14f4646Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1037f14f4646Smrg pdfdir=$ac_optarg ;; 1038f14f4646Smrg 1039f14f4646Smrg -psdir | --psdir | --psdi | --psd | --ps) 1040f14f4646Smrg ac_prev=psdir ;; 1041f14f4646Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1042f14f4646Smrg psdir=$ac_optarg ;; 1043f14f4646Smrg 10445dfecf96Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10455dfecf96Smrg | -silent | --silent | --silen | --sile | --sil) 10465dfecf96Smrg silent=yes ;; 10475dfecf96Smrg 10485dfecf96Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 10495dfecf96Smrg ac_prev=sbindir ;; 10505dfecf96Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 10515dfecf96Smrg | --sbi=* | --sb=*) 10525dfecf96Smrg sbindir=$ac_optarg ;; 10535dfecf96Smrg 10545dfecf96Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 10555dfecf96Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 10565dfecf96Smrg | --sharedst | --shareds | --shared | --share | --shar \ 10575dfecf96Smrg | --sha | --sh) 10585dfecf96Smrg ac_prev=sharedstatedir ;; 10595dfecf96Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 10605dfecf96Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 10615dfecf96Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 10625dfecf96Smrg | --sha=* | --sh=*) 10635dfecf96Smrg sharedstatedir=$ac_optarg ;; 10645dfecf96Smrg 10655dfecf96Smrg -site | --site | --sit) 10665dfecf96Smrg ac_prev=site ;; 10675dfecf96Smrg -site=* | --site=* | --sit=*) 10685dfecf96Smrg site=$ac_optarg ;; 10695dfecf96Smrg 10705dfecf96Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 10715dfecf96Smrg ac_prev=srcdir ;; 10725dfecf96Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 10735dfecf96Smrg srcdir=$ac_optarg ;; 10745dfecf96Smrg 10755dfecf96Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 10765dfecf96Smrg | --syscon | --sysco | --sysc | --sys | --sy) 10775dfecf96Smrg ac_prev=sysconfdir ;; 10785dfecf96Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 10795dfecf96Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 10805dfecf96Smrg sysconfdir=$ac_optarg ;; 10815dfecf96Smrg 10825dfecf96Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 10835dfecf96Smrg ac_prev=target_alias ;; 10845dfecf96Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 10855dfecf96Smrg target_alias=$ac_optarg ;; 10865dfecf96Smrg 10875dfecf96Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 10885dfecf96Smrg verbose=yes ;; 10895dfecf96Smrg 10905dfecf96Smrg -version | --version | --versio | --versi | --vers | -V) 10915dfecf96Smrg ac_init_version=: ;; 10925dfecf96Smrg 10935dfecf96Smrg -with-* | --with-*) 1094f14f4646Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 10955dfecf96Smrg # Reject names that are not valid shell variable names. 1096f14f4646Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1097c05e22d7Smrg as_fn_error $? "invalid package name: $ac_useropt" 1098f14f4646Smrg ac_useropt_orig=$ac_useropt 1099f14f4646Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100f14f4646Smrg case $ac_user_opts in 1101f14f4646Smrg *" 1102f14f4646Smrg"with_$ac_useropt" 1103f14f4646Smrg"*) ;; 1104f14f4646Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1105f14f4646Smrg ac_unrecognized_sep=', ';; 11065dfecf96Smrg esac 1107f14f4646Smrg eval with_$ac_useropt=\$ac_optarg ;; 11085dfecf96Smrg 11095dfecf96Smrg -without-* | --without-*) 1110f14f4646Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 11115dfecf96Smrg # Reject names that are not valid shell variable names. 1112f14f4646Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113c05e22d7Smrg as_fn_error $? "invalid package name: $ac_useropt" 1114f14f4646Smrg ac_useropt_orig=$ac_useropt 1115f14f4646Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1116f14f4646Smrg case $ac_user_opts in 1117f14f4646Smrg *" 1118f14f4646Smrg"with_$ac_useropt" 1119f14f4646Smrg"*) ;; 1120f14f4646Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1121f14f4646Smrg ac_unrecognized_sep=', ';; 1122f14f4646Smrg esac 1123f14f4646Smrg eval with_$ac_useropt=no ;; 11245dfecf96Smrg 11255dfecf96Smrg --x) 11265dfecf96Smrg # Obsolete; use --with-x. 11275dfecf96Smrg with_x=yes ;; 11285dfecf96Smrg 11295dfecf96Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 11305dfecf96Smrg | --x-incl | --x-inc | --x-in | --x-i) 11315dfecf96Smrg ac_prev=x_includes ;; 11325dfecf96Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 11335dfecf96Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 11345dfecf96Smrg x_includes=$ac_optarg ;; 11355dfecf96Smrg 11365dfecf96Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 11375dfecf96Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 11385dfecf96Smrg ac_prev=x_libraries ;; 11395dfecf96Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 11405dfecf96Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 11415dfecf96Smrg x_libraries=$ac_optarg ;; 11425dfecf96Smrg 1143c05e22d7Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1144c05e22d7SmrgTry \`$0 --help' for more information" 11455dfecf96Smrg ;; 11465dfecf96Smrg 11475dfecf96Smrg *=*) 11485dfecf96Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 11495dfecf96Smrg # Reject names that are not valid shell variable names. 1150c05e22d7Smrg case $ac_envvar in #( 1151c05e22d7Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1152c05e22d7Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1153c05e22d7Smrg esac 1154f14f4646Smrg eval $ac_envvar=\$ac_optarg 11555dfecf96Smrg export $ac_envvar ;; 11565dfecf96Smrg 11575dfecf96Smrg *) 11585dfecf96Smrg # FIXME: should be removed in autoconf 3.0. 1159f14f4646Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 11605dfecf96Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1161f14f4646Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1162c05e22d7Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 11635dfecf96Smrg ;; 11645dfecf96Smrg 11655dfecf96Smrg esac 11665dfecf96Smrgdone 11675dfecf96Smrg 11685dfecf96Smrgif test -n "$ac_prev"; then 11695dfecf96Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1170c05e22d7Smrg as_fn_error $? "missing argument to $ac_option" 11715dfecf96Smrgfi 11725dfecf96Smrg 1173f14f4646Smrgif test -n "$ac_unrecognized_opts"; then 1174f14f4646Smrg case $enable_option_checking in 1175f14f4646Smrg no) ;; 1176c05e22d7Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1177f14f4646Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 11785dfecf96Smrg esac 1179f14f4646Smrgfi 11805dfecf96Smrg 1181f14f4646Smrg# Check all directory arguments for consistency. 1182f14f4646Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1183f14f4646Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1184f14f4646Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1185f14f4646Smrg libdir localedir mandir 11865dfecf96Smrgdo 1187f14f4646Smrg eval ac_val=\$$ac_var 1188f14f4646Smrg # Remove trailing slashes. 11895dfecf96Smrg case $ac_val in 1190f14f4646Smrg */ ) 1191f14f4646Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1192f14f4646Smrg eval $ac_var=\$ac_val;; 1193f14f4646Smrg esac 1194f14f4646Smrg # Be sure to have absolute directory names. 1195f14f4646Smrg case $ac_val in 1196f14f4646Smrg [\\/$]* | ?:[\\/]* ) continue;; 1197f14f4646Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 11985dfecf96Smrg esac 1199c05e22d7Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 12005dfecf96Smrgdone 12015dfecf96Smrg 12025dfecf96Smrg# There might be people who depend on the old broken behavior: `$host' 12035dfecf96Smrg# used to hold the argument of --host etc. 12045dfecf96Smrg# FIXME: To remove some day. 12055dfecf96Smrgbuild=$build_alias 12065dfecf96Smrghost=$host_alias 12075dfecf96Smrgtarget=$target_alias 12085dfecf96Smrg 12095dfecf96Smrg# FIXME: To remove some day. 12105dfecf96Smrgif test "x$host_alias" != x; then 12115dfecf96Smrg if test "x$build_alias" = x; then 12125dfecf96Smrg cross_compiling=maybe 1213c05e22d7Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1214c05e22d7Smrg If a cross compiler is detected then cross compile mode will be used" >&2 12155dfecf96Smrg elif test "x$build_alias" != "x$host_alias"; then 12165dfecf96Smrg cross_compiling=yes 12175dfecf96Smrg fi 12185dfecf96Smrgfi 12195dfecf96Smrg 12205dfecf96Smrgac_tool_prefix= 12215dfecf96Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 12225dfecf96Smrg 12235dfecf96Smrgtest "$silent" = yes && exec 6>/dev/null 12245dfecf96Smrg 12255dfecf96Smrg 1226f14f4646Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1227f14f4646Smrgac_ls_di=`ls -di .` && 1228f14f4646Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1229c05e22d7Smrg as_fn_error $? "working directory cannot be determined" 1230f14f4646Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1231c05e22d7Smrg as_fn_error $? "pwd does not report name of working directory" 1232f14f4646Smrg 1233f14f4646Smrg 12345dfecf96Smrg# Find the source files, if location was not specified. 12355dfecf96Smrgif test -z "$srcdir"; then 12365dfecf96Smrg ac_srcdir_defaulted=yes 1237f14f4646Smrg # Try the directory containing this script, then the parent directory. 1238f14f4646Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1239f14f4646Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1240f14f4646Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1241f14f4646Smrg X"$as_myself" : 'X\(//\)$' \| \ 1242f14f4646Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1243f14f4646Smrg$as_echo X"$as_myself" | 1244f14f4646Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1245f14f4646Smrg s//\1/ 1246f14f4646Smrg q 1247f14f4646Smrg } 1248f14f4646Smrg /^X\(\/\/\)[^/].*/{ 1249f14f4646Smrg s//\1/ 1250f14f4646Smrg q 1251f14f4646Smrg } 1252f14f4646Smrg /^X\(\/\/\)$/{ 1253f14f4646Smrg s//\1/ 1254f14f4646Smrg q 1255f14f4646Smrg } 1256f14f4646Smrg /^X\(\/\).*/{ 1257f14f4646Smrg s//\1/ 1258f14f4646Smrg q 1259f14f4646Smrg } 1260f14f4646Smrg s/.*/./; q'` 12615dfecf96Smrg srcdir=$ac_confdir 1262f14f4646Smrg if test ! -r "$srcdir/$ac_unique_file"; then 12635dfecf96Smrg srcdir=.. 12645dfecf96Smrg fi 12655dfecf96Smrgelse 12665dfecf96Smrg ac_srcdir_defaulted=no 12675dfecf96Smrgfi 1268f14f4646Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1269f14f4646Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1270c05e22d7Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 12715dfecf96Smrgfi 1272f14f4646Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1273f14f4646Smrgac_abs_confdir=`( 1274c05e22d7Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1275f14f4646Smrg pwd)` 1276f14f4646Smrg# When building in place, set srcdir=. 1277f14f4646Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1278f14f4646Smrg srcdir=. 1279f14f4646Smrgfi 1280f14f4646Smrg# Remove unnecessary trailing slashes from srcdir. 1281f14f4646Smrg# Double slashes in file names in object file debugging info 1282f14f4646Smrg# mess up M-x gdb in Emacs. 1283f14f4646Smrgcase $srcdir in 1284f14f4646Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1285f14f4646Smrgesac 1286f14f4646Smrgfor ac_var in $ac_precious_vars; do 1287f14f4646Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1288f14f4646Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1289f14f4646Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1290f14f4646Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1291f14f4646Smrgdone 12925dfecf96Smrg 12935dfecf96Smrg# 12945dfecf96Smrg# Report the --help message. 12955dfecf96Smrg# 12965dfecf96Smrgif test "$ac_init_help" = "long"; then 12975dfecf96Smrg # Omit some internal or obsolete options to make the list less imposing. 12985dfecf96Smrg # This message is too long to be a string in the A/UX 3.1 sh. 12995dfecf96Smrg cat <<_ACEOF 1300c05e22d7Smrg\`configure' configures xedit 1.2.0 to adapt to many kinds of systems. 13015dfecf96Smrg 13025dfecf96SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 13035dfecf96Smrg 13045dfecf96SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 13055dfecf96SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 13065dfecf96Smrg 13075dfecf96SmrgDefaults for the options are specified in brackets. 13085dfecf96Smrg 13095dfecf96SmrgConfiguration: 13105dfecf96Smrg -h, --help display this help and exit 13115dfecf96Smrg --help=short display options specific to this package 13125dfecf96Smrg --help=recursive display the short help of all the included packages 13135dfecf96Smrg -V, --version display version information and exit 1314c05e22d7Smrg -q, --quiet, --silent do not print \`checking ...' messages 13155dfecf96Smrg --cache-file=FILE cache test results in FILE [disabled] 13165dfecf96Smrg -C, --config-cache alias for \`--cache-file=config.cache' 13175dfecf96Smrg -n, --no-create do not create output files 13185dfecf96Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 13195dfecf96Smrg 13205dfecf96SmrgInstallation directories: 13215dfecf96Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1322f14f4646Smrg [$ac_default_prefix] 13235dfecf96Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1324f14f4646Smrg [PREFIX] 13255dfecf96Smrg 13265dfecf96SmrgBy default, \`make install' will install all the files in 13275dfecf96Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 13285dfecf96Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 13295dfecf96Smrgfor instance \`--prefix=\$HOME'. 13305dfecf96Smrg 13315dfecf96SmrgFor better control, use the options below. 13325dfecf96Smrg 13335dfecf96SmrgFine tuning of the installation directories: 1334f14f4646Smrg --bindir=DIR user executables [EPREFIX/bin] 1335f14f4646Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1336f14f4646Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1337f14f4646Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1338f14f4646Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1339f14f4646Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1340f14f4646Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1341f14f4646Smrg --includedir=DIR C header files [PREFIX/include] 1342f14f4646Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1343f14f4646Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1344f14f4646Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1345f14f4646Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1346f14f4646Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1347f14f4646Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1348f14f4646Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xedit] 1349f14f4646Smrg --htmldir=DIR html documentation [DOCDIR] 1350f14f4646Smrg --dvidir=DIR dvi documentation [DOCDIR] 1351f14f4646Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1352f14f4646Smrg --psdir=DIR ps documentation [DOCDIR] 13535dfecf96Smrg_ACEOF 13545dfecf96Smrg 13555dfecf96Smrg cat <<\_ACEOF 13565dfecf96Smrg 13575dfecf96SmrgProgram names: 13585dfecf96Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 13595dfecf96Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 13605dfecf96Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 13615dfecf96Smrg 13625dfecf96SmrgSystem types: 13635dfecf96Smrg --build=BUILD configure for building on BUILD [guessed] 13645dfecf96Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 13655dfecf96Smrg_ACEOF 13665dfecf96Smrgfi 13675dfecf96Smrg 13685dfecf96Smrgif test -n "$ac_init_help"; then 13695dfecf96Smrg case $ac_init_help in 1370c05e22d7Smrg short | recursive ) echo "Configuration of xedit 1.2.0:";; 13715dfecf96Smrg esac 13725dfecf96Smrg cat <<\_ACEOF 13735dfecf96Smrg 13745dfecf96SmrgOptional Features: 1375f14f4646Smrg --disable-option-checking ignore unrecognized --enable/--with options 13765dfecf96Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 13775dfecf96Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 13785dfecf96Smrg --enable-maintainer-mode enable make rules and dependencies not useful 13795dfecf96Smrg (and sometimes confusing) to the casual installer 13805dfecf96Smrg --disable-dependency-tracking speeds up one-time build 13815dfecf96Smrg --enable-dependency-tracking do not reject slow dependency extractors 1382c05e22d7Smrg --enable-strict-compilation 1383c05e22d7Smrg Enable all warnings from compiler and make them 1384c05e22d7Smrg errors (default: disabled) 1385c05e22d7Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1386c05e22d7Smrg --disable-silent-rules verbose build output (undo: `make V=0') 13875dfecf96Smrg 13885dfecf96SmrgOptional Packages: 13895dfecf96Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 13905dfecf96Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1391f14f4646Smrg --with-lispdir=PATH Directory to install lisp files (default: 1392f14f4646Smrg $libdir/X11/xedit/lisp) 1393c05e22d7Smrg --with-appdefaultdir=<pathname> 1394c05e22d7Smrg specify directory for app-defaults files (default is 1395c05e22d7Smrg autodetected) 13965dfecf96Smrg 13975dfecf96SmrgSome influential environment variables: 13985dfecf96Smrg CC C compiler command 13995dfecf96Smrg CFLAGS C compiler flags 14005dfecf96Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 14015dfecf96Smrg nonstandard directory <lib dir> 1402f14f4646Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1403c05e22d7Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404f14f4646Smrg you have headers in a nonstandard directory <include dir> 1405c05e22d7Smrg CPP C preprocessor 14065dfecf96Smrg PKG_CONFIG path to pkg-config utility 1407f14f4646Smrg PKGDEPS_CFLAGS 1408f14f4646Smrg C compiler flags for PKGDEPS, overriding pkg-config 1409f14f4646Smrg PKGDEPS_LIBS 1410f14f4646Smrg linker flags for PKGDEPS, overriding pkg-config 14115dfecf96Smrg APPDEFS_CFLAGS 14125dfecf96Smrg C compiler flags for APPDEFS, overriding pkg-config 14135dfecf96Smrg APPDEFS_LIBS 14145dfecf96Smrg linker flags for APPDEFS, overriding pkg-config 14155dfecf96Smrg 14165dfecf96SmrgUse these variables to override the choices made by `configure' or to help 14175dfecf96Smrgit to find libraries and programs with nonstandard names/locations. 14185dfecf96Smrg 14195dfecf96SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 14205dfecf96Smrg_ACEOF 1421f14f4646Smrgac_status=$? 14225dfecf96Smrgfi 14235dfecf96Smrg 14245dfecf96Smrgif test "$ac_init_help" = "recursive"; then 14255dfecf96Smrg # If there are subdirs, report their specific --help. 14265dfecf96Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1427f14f4646Smrg test -d "$ac_dir" || 1428f14f4646Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1429f14f4646Smrg continue 14305dfecf96Smrg ac_builddir=. 14315dfecf96Smrg 1432f14f4646Smrgcase "$ac_dir" in 1433f14f4646Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434f14f4646Smrg*) 1435f14f4646Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1436f14f4646Smrg # A ".." for each directory in $ac_dir_suffix. 1437f14f4646Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1438f14f4646Smrg case $ac_top_builddir_sub in 1439f14f4646Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1440f14f4646Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1441f14f4646Smrg esac ;; 1442f14f4646Smrgesac 1443f14f4646Smrgac_abs_top_builddir=$ac_pwd 1444f14f4646Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1445f14f4646Smrg# for backward compatibility: 1446f14f4646Smrgac_top_builddir=$ac_top_build_prefix 14475dfecf96Smrg 14485dfecf96Smrgcase $srcdir in 1449f14f4646Smrg .) # We are building in place. 14505dfecf96Smrg ac_srcdir=. 1451f14f4646Smrg ac_top_srcdir=$ac_top_builddir_sub 1452f14f4646Smrg ac_abs_top_srcdir=$ac_pwd ;; 1453f14f4646Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 14545dfecf96Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1455f14f4646Smrg ac_top_srcdir=$srcdir 1456f14f4646Smrg ac_abs_top_srcdir=$srcdir ;; 1457f14f4646Smrg *) # Relative name. 1458f14f4646Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1459f14f4646Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1460f14f4646Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14615dfecf96Smrgesac 1462f14f4646Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1463f14f4646Smrg 1464f14f4646Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1465f14f4646Smrg # Check for guested configure. 1466f14f4646Smrg if test -f "$ac_srcdir/configure.gnu"; then 1467f14f4646Smrg echo && 1468f14f4646Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1469f14f4646Smrg elif test -f "$ac_srcdir/configure"; then 1470f14f4646Smrg echo && 1471f14f4646Smrg $SHELL "$ac_srcdir/configure" --help=recursive 14725dfecf96Smrg else 1473f14f4646Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1474f14f4646Smrg fi || ac_status=$? 1475f14f4646Smrg cd "$ac_pwd" || { ac_status=$?; break; } 14765dfecf96Smrg done 14775dfecf96Smrgfi 14785dfecf96Smrg 1479f14f4646Smrgtest -n "$ac_init_help" && exit $ac_status 14805dfecf96Smrgif $ac_init_version; then 14815dfecf96Smrg cat <<\_ACEOF 1482c05e22d7Smrgxedit configure 1.2.0 1483c05e22d7Smrggenerated by GNU Autoconf 2.68 14845dfecf96Smrg 1485c05e22d7SmrgCopyright (C) 2010 Free Software Foundation, Inc. 14865dfecf96SmrgThis configure script is free software; the Free Software Foundation 14875dfecf96Smrggives unlimited permission to copy, distribute and modify it. 14885dfecf96Smrg_ACEOF 1489f14f4646Smrg exit 14905dfecf96Smrgfi 14915dfecf96Smrg 1492c05e22d7Smrg## ------------------------ ## 1493c05e22d7Smrg## Autoconf initialization. ## 1494c05e22d7Smrg## ------------------------ ## 14955dfecf96Smrg 1496c05e22d7Smrg# ac_fn_c_try_compile LINENO 1497c05e22d7Smrg# -------------------------- 1498c05e22d7Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1499c05e22d7Smrgac_fn_c_try_compile () 15005dfecf96Smrg{ 1501c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1502c05e22d7Smrg rm -f conftest.$ac_objext 1503c05e22d7Smrg if { { ac_try="$ac_compile" 1504c05e22d7Smrgcase "(($ac_try" in 1505c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1506c05e22d7Smrg *) ac_try_echo=$ac_try;; 1507c05e22d7Smrgesac 1508c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1509c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 1510c05e22d7Smrg (eval "$ac_compile") 2>conftest.err 1511c05e22d7Smrg ac_status=$? 1512c05e22d7Smrg if test -s conftest.err; then 1513c05e22d7Smrg grep -v '^ *+' conftest.err >conftest.er1 1514c05e22d7Smrg cat conftest.er1 >&5 1515c05e22d7Smrg mv -f conftest.er1 conftest.err 1516c05e22d7Smrg fi 1517c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1518c05e22d7Smrg test $ac_status = 0; } && { 1519c05e22d7Smrg test -z "$ac_c_werror_flag" || 1520c05e22d7Smrg test ! -s conftest.err 1521c05e22d7Smrg } && test -s conftest.$ac_objext; then : 1522c05e22d7Smrg ac_retval=0 1523c05e22d7Smrgelse 1524c05e22d7Smrg $as_echo "$as_me: failed program was:" >&5 1525c05e22d7Smrgsed 's/^/| /' conftest.$ac_ext >&5 1526c05e22d7Smrg 1527c05e22d7Smrg ac_retval=1 1528c05e22d7Smrgfi 1529c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1530c05e22d7Smrg as_fn_set_status $ac_retval 1531c05e22d7Smrg 1532c05e22d7Smrg} # ac_fn_c_try_compile 1533c05e22d7Smrg 1534c05e22d7Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1535c05e22d7Smrg# --------------------------------------------- 1536c05e22d7Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1537c05e22d7Smrg# accordingly. 1538c05e22d7Smrgac_fn_c_check_decl () 1539c05e22d7Smrg{ 1540c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1541c05e22d7Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1542c05e22d7Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1543c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1544c05e22d7Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1545c05e22d7Smrgif eval \${$3+:} false; then : 1546c05e22d7Smrg $as_echo_n "(cached) " >&6 1547c05e22d7Smrgelse 1548c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1549c05e22d7Smrg/* end confdefs.h. */ 1550c05e22d7Smrg$4 1551c05e22d7Smrgint 1552c05e22d7Smrgmain () 1553c05e22d7Smrg{ 1554c05e22d7Smrg#ifndef $as_decl_name 1555c05e22d7Smrg#ifdef __cplusplus 1556c05e22d7Smrg (void) $as_decl_use; 1557c05e22d7Smrg#else 1558c05e22d7Smrg (void) $as_decl_name; 1559c05e22d7Smrg#endif 1560c05e22d7Smrg#endif 1561c05e22d7Smrg 1562c05e22d7Smrg ; 1563c05e22d7Smrg return 0; 1564c05e22d7Smrg} 1565c05e22d7Smrg_ACEOF 1566c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 1567c05e22d7Smrg eval "$3=yes" 1568c05e22d7Smrgelse 1569c05e22d7Smrg eval "$3=no" 1570c05e22d7Smrgfi 1571c05e22d7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1572c05e22d7Smrgfi 1573c05e22d7Smrgeval ac_res=\$$3 1574c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1575c05e22d7Smrg$as_echo "$ac_res" >&6; } 1576c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577c05e22d7Smrg 1578c05e22d7Smrg} # ac_fn_c_check_decl 1579c05e22d7Smrg 1580c05e22d7Smrg# ac_fn_c_try_cpp LINENO 1581c05e22d7Smrg# ---------------------- 1582c05e22d7Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1583c05e22d7Smrgac_fn_c_try_cpp () 1584c05e22d7Smrg{ 1585c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586c05e22d7Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1587c05e22d7Smrgcase "(($ac_try" in 1588c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589c05e22d7Smrg *) ac_try_echo=$ac_try;; 1590c05e22d7Smrgesac 1591c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 1593c05e22d7Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1594c05e22d7Smrg ac_status=$? 1595c05e22d7Smrg if test -s conftest.err; then 1596c05e22d7Smrg grep -v '^ *+' conftest.err >conftest.er1 1597c05e22d7Smrg cat conftest.er1 >&5 1598c05e22d7Smrg mv -f conftest.er1 conftest.err 1599c05e22d7Smrg fi 1600c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601c05e22d7Smrg test $ac_status = 0; } > conftest.i && { 1602c05e22d7Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1603c05e22d7Smrg test ! -s conftest.err 1604c05e22d7Smrg }; then : 1605c05e22d7Smrg ac_retval=0 1606c05e22d7Smrgelse 1607c05e22d7Smrg $as_echo "$as_me: failed program was:" >&5 1608c05e22d7Smrgsed 's/^/| /' conftest.$ac_ext >&5 1609c05e22d7Smrg 1610c05e22d7Smrg ac_retval=1 1611c05e22d7Smrgfi 1612c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613c05e22d7Smrg as_fn_set_status $ac_retval 1614c05e22d7Smrg 1615c05e22d7Smrg} # ac_fn_c_try_cpp 1616c05e22d7Smrg 1617c05e22d7Smrg# ac_fn_c_try_run LINENO 1618c05e22d7Smrg# ---------------------- 1619c05e22d7Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1620c05e22d7Smrg# that executables *can* be run. 1621c05e22d7Smrgac_fn_c_try_run () 1622c05e22d7Smrg{ 1623c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624c05e22d7Smrg if { { ac_try="$ac_link" 1625c05e22d7Smrgcase "(($ac_try" in 1626c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627c05e22d7Smrg *) ac_try_echo=$ac_try;; 1628c05e22d7Smrgesac 1629c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 1631c05e22d7Smrg (eval "$ac_link") 2>&5 1632c05e22d7Smrg ac_status=$? 1633c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634c05e22d7Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1635c05e22d7Smrg { { case "(($ac_try" in 1636c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637c05e22d7Smrg *) ac_try_echo=$ac_try;; 1638c05e22d7Smrgesac 1639c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 1641c05e22d7Smrg (eval "$ac_try") 2>&5 1642c05e22d7Smrg ac_status=$? 1643c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644c05e22d7Smrg test $ac_status = 0; }; }; then : 1645c05e22d7Smrg ac_retval=0 1646c05e22d7Smrgelse 1647c05e22d7Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 1648c05e22d7Smrg $as_echo "$as_me: failed program was:" >&5 1649c05e22d7Smrgsed 's/^/| /' conftest.$ac_ext >&5 1650c05e22d7Smrg 1651c05e22d7Smrg ac_retval=$ac_status 1652c05e22d7Smrgfi 1653c05e22d7Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1654c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655c05e22d7Smrg as_fn_set_status $ac_retval 1656c05e22d7Smrg 1657c05e22d7Smrg} # ac_fn_c_try_run 1658c05e22d7Smrg 1659c05e22d7Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1660c05e22d7Smrg# ------------------------------------------------------- 1661c05e22d7Smrg# Tests whether HEADER exists and can be compiled using the include files in 1662c05e22d7Smrg# INCLUDES, setting the cache variable VAR accordingly. 1663c05e22d7Smrgac_fn_c_check_header_compile () 1664c05e22d7Smrg{ 1665c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667c05e22d7Smrg$as_echo_n "checking for $2... " >&6; } 1668c05e22d7Smrgif eval \${$3+:} false; then : 1669c05e22d7Smrg $as_echo_n "(cached) " >&6 1670c05e22d7Smrgelse 1671c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672c05e22d7Smrg/* end confdefs.h. */ 1673c05e22d7Smrg$4 1674c05e22d7Smrg#include <$2> 1675c05e22d7Smrg_ACEOF 1676c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 1677c05e22d7Smrg eval "$3=yes" 1678c05e22d7Smrgelse 1679c05e22d7Smrg eval "$3=no" 1680c05e22d7Smrgfi 1681c05e22d7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1682c05e22d7Smrgfi 1683c05e22d7Smrgeval ac_res=\$$3 1684c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1685c05e22d7Smrg$as_echo "$ac_res" >&6; } 1686c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687c05e22d7Smrg 1688c05e22d7Smrg} # ac_fn_c_check_header_compile 1689c05e22d7Smrg 1690c05e22d7Smrg# ac_fn_c_try_link LINENO 1691c05e22d7Smrg# ----------------------- 1692c05e22d7Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1693c05e22d7Smrgac_fn_c_try_link () 1694c05e22d7Smrg{ 1695c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696c05e22d7Smrg rm -f conftest.$ac_objext conftest$ac_exeext 1697c05e22d7Smrg if { { ac_try="$ac_link" 1698c05e22d7Smrgcase "(($ac_try" in 1699c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700c05e22d7Smrg *) ac_try_echo=$ac_try;; 1701c05e22d7Smrgesac 1702c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 1704c05e22d7Smrg (eval "$ac_link") 2>conftest.err 1705c05e22d7Smrg ac_status=$? 1706c05e22d7Smrg if test -s conftest.err; then 1707c05e22d7Smrg grep -v '^ *+' conftest.err >conftest.er1 1708c05e22d7Smrg cat conftest.er1 >&5 1709c05e22d7Smrg mv -f conftest.er1 conftest.err 1710c05e22d7Smrg fi 1711c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712c05e22d7Smrg test $ac_status = 0; } && { 1713c05e22d7Smrg test -z "$ac_c_werror_flag" || 1714c05e22d7Smrg test ! -s conftest.err 1715c05e22d7Smrg } && test -s conftest$ac_exeext && { 1716c05e22d7Smrg test "$cross_compiling" = yes || 1717c05e22d7Smrg $as_test_x conftest$ac_exeext 1718c05e22d7Smrg }; then : 1719c05e22d7Smrg ac_retval=0 1720c05e22d7Smrgelse 1721c05e22d7Smrg $as_echo "$as_me: failed program was:" >&5 1722c05e22d7Smrgsed 's/^/| /' conftest.$ac_ext >&5 1723c05e22d7Smrg 1724c05e22d7Smrg ac_retval=1 1725c05e22d7Smrgfi 1726c05e22d7Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1727c05e22d7Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1728c05e22d7Smrg # interfere with the next link command; also delete a directory that is 1729c05e22d7Smrg # left behind by Apple's compiler. We do this before executing the actions. 1730c05e22d7Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732c05e22d7Smrg as_fn_set_status $ac_retval 1733c05e22d7Smrg 1734c05e22d7Smrg} # ac_fn_c_try_link 1735c05e22d7Smrg 1736c05e22d7Smrg# ac_fn_c_check_func LINENO FUNC VAR 1737c05e22d7Smrg# ---------------------------------- 1738c05e22d7Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739c05e22d7Smrgac_fn_c_check_func () 1740c05e22d7Smrg{ 1741c05e22d7Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743c05e22d7Smrg$as_echo_n "checking for $2... " >&6; } 1744c05e22d7Smrgif eval \${$3+:} false; then : 1745c05e22d7Smrg $as_echo_n "(cached) " >&6 1746c05e22d7Smrgelse 1747c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748c05e22d7Smrg/* end confdefs.h. */ 1749c05e22d7Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1750c05e22d7Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1751c05e22d7Smrg#define $2 innocuous_$2 1752c05e22d7Smrg 1753c05e22d7Smrg/* System header to define __stub macros and hopefully few prototypes, 1754c05e22d7Smrg which can conflict with char $2 (); below. 1755c05e22d7Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1756c05e22d7Smrg <limits.h> exists even on freestanding compilers. */ 1757c05e22d7Smrg 1758c05e22d7Smrg#ifdef __STDC__ 1759c05e22d7Smrg# include <limits.h> 1760c05e22d7Smrg#else 1761c05e22d7Smrg# include <assert.h> 1762c05e22d7Smrg#endif 1763c05e22d7Smrg 1764c05e22d7Smrg#undef $2 1765c05e22d7Smrg 1766c05e22d7Smrg/* Override any GCC internal prototype to avoid an error. 1767c05e22d7Smrg Use char because int might match the return type of a GCC 1768c05e22d7Smrg builtin and then its argument prototype would still apply. */ 1769c05e22d7Smrg#ifdef __cplusplus 1770c05e22d7Smrgextern "C" 1771c05e22d7Smrg#endif 1772c05e22d7Smrgchar $2 (); 1773c05e22d7Smrg/* The GNU C library defines this for functions which it implements 1774c05e22d7Smrg to always fail with ENOSYS. Some functions are actually named 1775c05e22d7Smrg something starting with __ and the normal name is an alias. */ 1776c05e22d7Smrg#if defined __stub_$2 || defined __stub___$2 1777c05e22d7Smrgchoke me 1778c05e22d7Smrg#endif 1779c05e22d7Smrg 1780c05e22d7Smrgint 1781c05e22d7Smrgmain () 1782c05e22d7Smrg{ 1783c05e22d7Smrgreturn $2 (); 1784c05e22d7Smrg ; 1785c05e22d7Smrg return 0; 1786c05e22d7Smrg} 1787c05e22d7Smrg_ACEOF 1788c05e22d7Smrgif ac_fn_c_try_link "$LINENO"; then : 1789c05e22d7Smrg eval "$3=yes" 1790c05e22d7Smrgelse 1791c05e22d7Smrg eval "$3=no" 1792c05e22d7Smrgfi 1793c05e22d7Smrgrm -f core conftest.err conftest.$ac_objext \ 1794c05e22d7Smrg conftest$ac_exeext conftest.$ac_ext 1795c05e22d7Smrgfi 1796c05e22d7Smrgeval ac_res=\$$3 1797c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798c05e22d7Smrg$as_echo "$ac_res" >&6; } 1799c05e22d7Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800c05e22d7Smrg 1801c05e22d7Smrg} # ac_fn_c_check_func 1802c05e22d7Smrgcat >config.log <<_ACEOF 1803c05e22d7SmrgThis file contains any messages produced by compilers while 1804c05e22d7Smrgrunning configure, to aid debugging if configure makes a mistake. 1805c05e22d7Smrg 1806c05e22d7SmrgIt was created by xedit $as_me 1.2.0, which was 1807c05e22d7Smrggenerated by GNU Autoconf 2.68. Invocation command line was 1808c05e22d7Smrg 1809c05e22d7Smrg $ $0 $@ 1810c05e22d7Smrg 1811c05e22d7Smrg_ACEOF 1812c05e22d7Smrgexec 5>>config.log 1813c05e22d7Smrg{ 1814c05e22d7Smrgcat <<_ASUNAME 1815c05e22d7Smrg## --------- ## 1816c05e22d7Smrg## Platform. ## 1817c05e22d7Smrg## --------- ## 1818c05e22d7Smrg 1819c05e22d7Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1820c05e22d7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1821c05e22d7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1822c05e22d7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1823c05e22d7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1824c05e22d7Smrg 1825c05e22d7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 18265dfecf96Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 18275dfecf96Smrg 18285dfecf96Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 18295dfecf96Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 18305dfecf96Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1831f14f4646Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 18325dfecf96Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 18335dfecf96Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 18345dfecf96Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 18355dfecf96Smrg 18365dfecf96Smrg_ASUNAME 18375dfecf96Smrg 18385dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18395dfecf96Smrgfor as_dir in $PATH 18405dfecf96Smrgdo 18415dfecf96Smrg IFS=$as_save_IFS 18425dfecf96Smrg test -z "$as_dir" && as_dir=. 1843c05e22d7Smrg $as_echo "PATH: $as_dir" 1844c05e22d7Smrg done 1845f14f4646SmrgIFS=$as_save_IFS 18465dfecf96Smrg 18475dfecf96Smrg} >&5 18485dfecf96Smrg 18495dfecf96Smrgcat >&5 <<_ACEOF 18505dfecf96Smrg 18515dfecf96Smrg 18525dfecf96Smrg## ----------- ## 18535dfecf96Smrg## Core tests. ## 18545dfecf96Smrg## ----------- ## 18555dfecf96Smrg 18565dfecf96Smrg_ACEOF 18575dfecf96Smrg 18585dfecf96Smrg 18595dfecf96Smrg# Keep a trace of the command line. 18605dfecf96Smrg# Strip out --no-create and --no-recursion so they do not pile up. 18615dfecf96Smrg# Strip out --silent because we don't want to record it for future runs. 18625dfecf96Smrg# Also quote any args containing shell meta-characters. 18635dfecf96Smrg# Make two passes to allow for proper duplicate-argument suppression. 18645dfecf96Smrgac_configure_args= 18655dfecf96Smrgac_configure_args0= 18665dfecf96Smrgac_configure_args1= 18675dfecf96Smrgac_must_keep_next=false 18685dfecf96Smrgfor ac_pass in 1 2 18695dfecf96Smrgdo 18705dfecf96Smrg for ac_arg 18715dfecf96Smrg do 18725dfecf96Smrg case $ac_arg in 18735dfecf96Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 18745dfecf96Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18755dfecf96Smrg | -silent | --silent | --silen | --sile | --sil) 18765dfecf96Smrg continue ;; 1877f14f4646Smrg *\'*) 1878f14f4646Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18795dfecf96Smrg esac 18805dfecf96Smrg case $ac_pass in 1881c05e22d7Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 18825dfecf96Smrg 2) 1883c05e22d7Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 18845dfecf96Smrg if test $ac_must_keep_next = true; then 18855dfecf96Smrg ac_must_keep_next=false # Got value, back to normal. 18865dfecf96Smrg else 18875dfecf96Smrg case $ac_arg in 18885dfecf96Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 18895dfecf96Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 18905dfecf96Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 18915dfecf96Smrg | -with-* | --with-* | -without-* | --without-* | --x) 18925dfecf96Smrg case "$ac_configure_args0 " in 18935dfecf96Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 18945dfecf96Smrg esac 18955dfecf96Smrg ;; 18965dfecf96Smrg -* ) ac_must_keep_next=true ;; 18975dfecf96Smrg esac 18985dfecf96Smrg fi 1899c05e22d7Smrg as_fn_append ac_configure_args " '$ac_arg'" 19005dfecf96Smrg ;; 19015dfecf96Smrg esac 19025dfecf96Smrg done 19035dfecf96Smrgdone 1904c05e22d7Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1905c05e22d7Smrg{ ac_configure_args1=; unset ac_configure_args1;} 19065dfecf96Smrg 19075dfecf96Smrg# When interrupted or exit'd, cleanup temporary files, and complete 19085dfecf96Smrg# config.log. We remove comments because anyway the quotes in there 19095dfecf96Smrg# would cause problems or look ugly. 1910f14f4646Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1911f14f4646Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 19125dfecf96Smrgtrap 'exit_status=$? 19135dfecf96Smrg # Save into config.log some information that might help in debugging. 19145dfecf96Smrg { 19155dfecf96Smrg echo 19165dfecf96Smrg 1917c05e22d7Smrg $as_echo "## ---------------- ## 19185dfecf96Smrg## Cache variables. ## 1919c05e22d7Smrg## ---------------- ##" 19205dfecf96Smrg echo 19215dfecf96Smrg # The following way of writing the cache mishandles newlines in values, 1922f14f4646Smrg( 1923f14f4646Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1924f14f4646Smrg eval ac_val=\$$ac_var 1925f14f4646Smrg case $ac_val in #( 1926f14f4646Smrg *${as_nl}*) 1927f14f4646Smrg case $ac_var in #( 1928c05e22d7Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1929f14f4646Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1930f14f4646Smrg esac 1931f14f4646Smrg case $ac_var in #( 1932f14f4646Smrg _ | IFS | as_nl) ;; #( 1933f14f4646Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1934c05e22d7Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1935f14f4646Smrg esac ;; 1936f14f4646Smrg esac 1937f14f4646Smrg done 19385dfecf96Smrg (set) 2>&1 | 1939f14f4646Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1940f14f4646Smrg *${as_nl}ac_space=\ *) 19415dfecf96Smrg sed -n \ 1942f14f4646Smrg "s/'\''/'\''\\\\'\'''\''/g; 1943f14f4646Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1944f14f4646Smrg ;; #( 19455dfecf96Smrg *) 1946f14f4646Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19475dfecf96Smrg ;; 1948f14f4646Smrg esac | 1949f14f4646Smrg sort 1950f14f4646Smrg) 19515dfecf96Smrg echo 19525dfecf96Smrg 1953c05e22d7Smrg $as_echo "## ----------------- ## 19545dfecf96Smrg## Output variables. ## 1955c05e22d7Smrg## ----------------- ##" 19565dfecf96Smrg echo 19575dfecf96Smrg for ac_var in $ac_subst_vars 19585dfecf96Smrg do 1959f14f4646Smrg eval ac_val=\$$ac_var 1960f14f4646Smrg case $ac_val in 1961f14f4646Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1962f14f4646Smrg esac 1963f14f4646Smrg $as_echo "$ac_var='\''$ac_val'\''" 19645dfecf96Smrg done | sort 19655dfecf96Smrg echo 19665dfecf96Smrg 19675dfecf96Smrg if test -n "$ac_subst_files"; then 1968c05e22d7Smrg $as_echo "## ------------------- ## 1969f14f4646Smrg## File substitutions. ## 1970c05e22d7Smrg## ------------------- ##" 19715dfecf96Smrg echo 19725dfecf96Smrg for ac_var in $ac_subst_files 19735dfecf96Smrg do 1974f14f4646Smrg eval ac_val=\$$ac_var 1975f14f4646Smrg case $ac_val in 1976f14f4646Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1977f14f4646Smrg esac 1978f14f4646Smrg $as_echo "$ac_var='\''$ac_val'\''" 19795dfecf96Smrg done | sort 19805dfecf96Smrg echo 19815dfecf96Smrg fi 19825dfecf96Smrg 19835dfecf96Smrg if test -s confdefs.h; then 1984c05e22d7Smrg $as_echo "## ----------- ## 19855dfecf96Smrg## confdefs.h. ## 1986c05e22d7Smrg## ----------- ##" 19875dfecf96Smrg echo 1988f14f4646Smrg cat confdefs.h 19895dfecf96Smrg echo 19905dfecf96Smrg fi 19915dfecf96Smrg test "$ac_signal" != 0 && 1992f14f4646Smrg $as_echo "$as_me: caught signal $ac_signal" 1993f14f4646Smrg $as_echo "$as_me: exit $exit_status" 19945dfecf96Smrg } >&5 1995f14f4646Smrg rm -f core *.core core.conftest.* && 1996f14f4646Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 19975dfecf96Smrg exit $exit_status 1998f14f4646Smrg' 0 19995dfecf96Smrgfor ac_signal in 1 2 13 15; do 2000c05e22d7Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 20015dfecf96Smrgdone 20025dfecf96Smrgac_signal=0 20035dfecf96Smrg 20045dfecf96Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2005f14f4646Smrgrm -f -r conftest* confdefs.h 20065dfecf96Smrg 2007c05e22d7Smrg$as_echo "/* confdefs.h */" > confdefs.h 2008c05e22d7Smrg 20095dfecf96Smrg# Predefined preprocessor variables. 20105dfecf96Smrg 20115dfecf96Smrgcat >>confdefs.h <<_ACEOF 20125dfecf96Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 20135dfecf96Smrg_ACEOF 20145dfecf96Smrg 20155dfecf96Smrgcat >>confdefs.h <<_ACEOF 20165dfecf96Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 20175dfecf96Smrg_ACEOF 20185dfecf96Smrg 20195dfecf96Smrgcat >>confdefs.h <<_ACEOF 20205dfecf96Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 20215dfecf96Smrg_ACEOF 20225dfecf96Smrg 20235dfecf96Smrgcat >>confdefs.h <<_ACEOF 20245dfecf96Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 20255dfecf96Smrg_ACEOF 20265dfecf96Smrg 20275dfecf96Smrgcat >>confdefs.h <<_ACEOF 20285dfecf96Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 20295dfecf96Smrg_ACEOF 20305dfecf96Smrg 2031c05e22d7Smrgcat >>confdefs.h <<_ACEOF 2032c05e22d7Smrg#define PACKAGE_URL "$PACKAGE_URL" 2033c05e22d7Smrg_ACEOF 2034c05e22d7Smrg 20355dfecf96Smrg 20365dfecf96Smrg# Let the site file select an alternate cache file if it wants to. 2037f14f4646Smrg# Prefer an explicitly selected file to automatically selected ones. 2038f14f4646Smrgac_site_file1=NONE 2039f14f4646Smrgac_site_file2=NONE 2040f14f4646Smrgif test -n "$CONFIG_SITE"; then 2041c05e22d7Smrg # We do not want a PATH search for config.site. 2042c05e22d7Smrg case $CONFIG_SITE in #(( 2043c05e22d7Smrg -*) ac_site_file1=./$CONFIG_SITE;; 2044c05e22d7Smrg */*) ac_site_file1=$CONFIG_SITE;; 2045c05e22d7Smrg *) ac_site_file1=./$CONFIG_SITE;; 2046c05e22d7Smrg esac 2047f14f4646Smrgelif test "x$prefix" != xNONE; then 2048f14f4646Smrg ac_site_file1=$prefix/share/config.site 2049f14f4646Smrg ac_site_file2=$prefix/etc/config.site 2050f14f4646Smrgelse 2051f14f4646Smrg ac_site_file1=$ac_default_prefix/share/config.site 2052f14f4646Smrg ac_site_file2=$ac_default_prefix/etc/config.site 20535dfecf96Smrgfi 2054f14f4646Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2055f14f4646Smrgdo 2056f14f4646Smrg test "x$ac_site_file" = xNONE && continue 2057c05e22d7Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2058c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2059f14f4646Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 20605dfecf96Smrg sed 's/^/| /' "$ac_site_file" >&5 2061c05e22d7Smrg . "$ac_site_file" \ 2062c05e22d7Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2063c05e22d7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2064c05e22d7Smrgas_fn_error $? "failed to load site script $ac_site_file 2065c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 20665dfecf96Smrg fi 20675dfecf96Smrgdone 20685dfecf96Smrg 20695dfecf96Smrgif test -r "$cache_file"; then 2070c05e22d7Smrg # Some versions of bash will fail to source /dev/null (special files 2071c05e22d7Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2072c05e22d7Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2073c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2074f14f4646Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 20755dfecf96Smrg case $cache_file in 2076f14f4646Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2077f14f4646Smrg *) . "./$cache_file";; 20785dfecf96Smrg esac 20795dfecf96Smrg fi 20805dfecf96Smrgelse 2081c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2082f14f4646Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 20835dfecf96Smrg >$cache_file 20845dfecf96Smrgfi 20855dfecf96Smrg 20865dfecf96Smrg# Check that the precious variables saved in the cache have kept the same 20875dfecf96Smrg# value. 20885dfecf96Smrgac_cache_corrupted=false 2089f14f4646Smrgfor ac_var in $ac_precious_vars; do 20905dfecf96Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 20915dfecf96Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2092f14f4646Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2093f14f4646Smrg eval ac_new_val=\$ac_env_${ac_var}_value 20945dfecf96Smrg case $ac_old_set,$ac_new_set in 20955dfecf96Smrg set,) 2096c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2097f14f4646Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 20985dfecf96Smrg ac_cache_corrupted=: ;; 20995dfecf96Smrg ,set) 2100c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2101f14f4646Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 21025dfecf96Smrg ac_cache_corrupted=: ;; 21035dfecf96Smrg ,);; 21045dfecf96Smrg *) 21055dfecf96Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2106f14f4646Smrg # differences in whitespace do not lead to failure. 2107f14f4646Smrg ac_old_val_w=`echo x $ac_old_val` 2108f14f4646Smrg ac_new_val_w=`echo x $ac_new_val` 2109f14f4646Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2110c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2111f14f4646Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2112f14f4646Smrg ac_cache_corrupted=: 2113f14f4646Smrg else 2114c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2115f14f4646Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2116f14f4646Smrg eval $ac_var=\$ac_old_val 2117f14f4646Smrg fi 2118c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2119f14f4646Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2120c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2121f14f4646Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 21225dfecf96Smrg fi;; 21235dfecf96Smrg esac 21245dfecf96Smrg # Pass precious variables to config.status. 21255dfecf96Smrg if test "$ac_new_set" = set; then 21265dfecf96Smrg case $ac_new_val in 2127f14f4646Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 21285dfecf96Smrg *) ac_arg=$ac_var=$ac_new_val ;; 21295dfecf96Smrg esac 21305dfecf96Smrg case " $ac_configure_args " in 21315dfecf96Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2132c05e22d7Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 21335dfecf96Smrg esac 21345dfecf96Smrg fi 21355dfecf96Smrgdone 21365dfecf96Smrgif $ac_cache_corrupted; then 2137c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2138f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2139c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2140f14f4646Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2141c05e22d7Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 21425dfecf96Smrgfi 2143c05e22d7Smrg## -------------------- ## 2144c05e22d7Smrg## Main body of script. ## 2145c05e22d7Smrg## -------------------- ## 21465dfecf96Smrg 2147f14f4646Smrgac_ext=c 2148f14f4646Smrgac_cpp='$CPP $CPPFLAGS' 2149f14f4646Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2150f14f4646Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2151f14f4646Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 21525dfecf96Smrg 21535dfecf96Smrg 2154c05e22d7Smrgam__api_version='1.11' 21555dfecf96Smrg 21565dfecf96Smrgac_aux_dir= 2157f14f4646Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2158f14f4646Smrg if test -f "$ac_dir/install-sh"; then 21595dfecf96Smrg ac_aux_dir=$ac_dir 21605dfecf96Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 21615dfecf96Smrg break 2162f14f4646Smrg elif test -f "$ac_dir/install.sh"; then 21635dfecf96Smrg ac_aux_dir=$ac_dir 21645dfecf96Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 21655dfecf96Smrg break 2166f14f4646Smrg elif test -f "$ac_dir/shtool"; then 21675dfecf96Smrg ac_aux_dir=$ac_dir 21685dfecf96Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 21695dfecf96Smrg break 21705dfecf96Smrg fi 21715dfecf96Smrgdone 21725dfecf96Smrgif test -z "$ac_aux_dir"; then 2173c05e22d7Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 21745dfecf96Smrgfi 2175f14f4646Smrg 2176f14f4646Smrg# These three variables are undocumented and unsupported, 2177f14f4646Smrg# and are intended to be withdrawn in a future Autoconf release. 2178f14f4646Smrg# They can cause serious problems if a builder's source tree is in a directory 2179f14f4646Smrg# whose full name contains unusual characters. 2180f14f4646Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2181f14f4646Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2182f14f4646Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2183f14f4646Smrg 21845dfecf96Smrg 21855dfecf96Smrg# Find a good install program. We prefer a C program (faster), 21865dfecf96Smrg# so one script is as good as another. But avoid the broken or 21875dfecf96Smrg# incompatible versions: 21885dfecf96Smrg# SysV /etc/install, /usr/sbin/install 21895dfecf96Smrg# SunOS /usr/etc/install 21905dfecf96Smrg# IRIX /sbin/install 21915dfecf96Smrg# AIX /bin/install 21925dfecf96Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 21935dfecf96Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 21945dfecf96Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 21955dfecf96Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 21965dfecf96Smrg# OS/2's system install, which has a completely different semantic 21975dfecf96Smrg# ./install, which can be erroneously created by make from ./install.sh. 2198f14f4646Smrg# Reject install programs that cannot install multiple files. 2199c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2200f14f4646Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 22015dfecf96Smrgif test -z "$INSTALL"; then 2202c05e22d7Smrgif ${ac_cv_path_install+:} false; then : 2203f14f4646Smrg $as_echo_n "(cached) " >&6 22045dfecf96Smrgelse 22055dfecf96Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22065dfecf96Smrgfor as_dir in $PATH 22075dfecf96Smrgdo 22085dfecf96Smrg IFS=$as_save_IFS 22095dfecf96Smrg test -z "$as_dir" && as_dir=. 2210c05e22d7Smrg # Account for people who put trailing slashes in PATH elements. 2211c05e22d7Smrgcase $as_dir/ in #(( 2212c05e22d7Smrg ./ | .// | /[cC]/* | \ 22135dfecf96Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2214c05e22d7Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 22155dfecf96Smrg /usr/ucb/* ) ;; 22165dfecf96Smrg *) 22175dfecf96Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 22185dfecf96Smrg # Don't use installbsd from OSF since it installs stuff as root 22195dfecf96Smrg # by default. 22205dfecf96Smrg for ac_prog in ginstall scoinst install; do 22215dfecf96Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2222f14f4646Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 22235dfecf96Smrg if test $ac_prog = install && 22245dfecf96Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22255dfecf96Smrg # AIX install. It has an incompatible calling convention. 22265dfecf96Smrg : 22275dfecf96Smrg elif test $ac_prog = install && 22285dfecf96Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 22295dfecf96Smrg # program-specific install script used by HP pwplus--don't use. 22305dfecf96Smrg : 22315dfecf96Smrg else 2232f14f4646Smrg rm -rf conftest.one conftest.two conftest.dir 2233f14f4646Smrg echo one > conftest.one 2234f14f4646Smrg echo two > conftest.two 2235f14f4646Smrg mkdir conftest.dir 2236f14f4646Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2237f14f4646Smrg test -s conftest.one && test -s conftest.two && 2238f14f4646Smrg test -s conftest.dir/conftest.one && 2239f14f4646Smrg test -s conftest.dir/conftest.two 2240f14f4646Smrg then 2241f14f4646Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2242f14f4646Smrg break 3 2243f14f4646Smrg fi 22445dfecf96Smrg fi 22455dfecf96Smrg fi 22465dfecf96Smrg done 22475dfecf96Smrg done 22485dfecf96Smrg ;; 22495dfecf96Smrgesac 2250f14f4646Smrg 2251c05e22d7Smrg done 2252f14f4646SmrgIFS=$as_save_IFS 22535dfecf96Smrg 2254f14f4646Smrgrm -rf conftest.one conftest.two conftest.dir 22555dfecf96Smrg 22565dfecf96Smrgfi 22575dfecf96Smrg if test "${ac_cv_path_install+set}" = set; then 22585dfecf96Smrg INSTALL=$ac_cv_path_install 22595dfecf96Smrg else 2260f14f4646Smrg # As a last resort, use the slow shell script. Don't cache a 2261f14f4646Smrg # value for INSTALL within a source directory, because that will 22625dfecf96Smrg # break other packages using the cache if that directory is 2263f14f4646Smrg # removed, or if the value is a relative name. 22645dfecf96Smrg INSTALL=$ac_install_sh 22655dfecf96Smrg fi 22665dfecf96Smrgfi 2267c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2268f14f4646Smrg$as_echo "$INSTALL" >&6; } 22695dfecf96Smrg 22705dfecf96Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 22715dfecf96Smrg# It thinks the first close brace ends the variable substitution. 22725dfecf96Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 22735dfecf96Smrg 22745dfecf96Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 22755dfecf96Smrg 22765dfecf96Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 22775dfecf96Smrg 2278c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2279f14f4646Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 22805dfecf96Smrg# Just in case 22815dfecf96Smrgsleep 1 22825dfecf96Smrgecho timestamp > conftest.file 2283c05e22d7Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2284c05e22d7Smrg# name. Accept space and tab only in the latter. 2285c05e22d7Smrgam_lf=' 2286c05e22d7Smrg' 2287c05e22d7Smrgcase `pwd` in 2288c05e22d7Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2289c05e22d7Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2290c05e22d7Smrgesac 2291c05e22d7Smrgcase $srcdir in 2292c05e22d7Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2293c05e22d7Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2294c05e22d7Smrgesac 2295c05e22d7Smrg 22965dfecf96Smrg# Do `set' in a subshell so we don't clobber the current shell's 22975dfecf96Smrg# arguments. Must try -L first in case configure is actually a 22985dfecf96Smrg# symlink; some systems play weird games with the mod time of symlinks 22995dfecf96Smrg# (eg FreeBSD returns the mod time of the symlink's containing 23005dfecf96Smrg# directory). 23015dfecf96Smrgif ( 2302c05e22d7Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 23035dfecf96Smrg if test "$*" = "X"; then 23045dfecf96Smrg # -L didn't work. 2305c05e22d7Smrg set X `ls -t "$srcdir/configure" conftest.file` 23065dfecf96Smrg fi 23075dfecf96Smrg rm -f conftest.file 23085dfecf96Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 23095dfecf96Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 23105dfecf96Smrg 23115dfecf96Smrg # If neither matched, then we have a broken ls. This can happen 23125dfecf96Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 23135dfecf96Smrg # broken ls alias from the environment. This has actually 23145dfecf96Smrg # happened. Such a system could not be considered "sane". 2315c05e22d7Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2316c05e22d7Smrgalias in your environment" "$LINENO" 5 23175dfecf96Smrg fi 23185dfecf96Smrg 23195dfecf96Smrg test "$2" = conftest.file 23205dfecf96Smrg ) 23215dfecf96Smrgthen 23225dfecf96Smrg # Ok. 23235dfecf96Smrg : 23245dfecf96Smrgelse 2325c05e22d7Smrg as_fn_error $? "newly created file is older than distributed files! 2326c05e22d7SmrgCheck your system clock" "$LINENO" 5 23275dfecf96Smrgfi 2328c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2329f14f4646Smrg$as_echo "yes" >&6; } 23305dfecf96Smrgtest "$program_prefix" != NONE && 2331f14f4646Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 23325dfecf96Smrg# Use a double $ so make ignores it. 23335dfecf96Smrgtest "$program_suffix" != NONE && 2334f14f4646Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2335f14f4646Smrg# Double any \ or $. 23365dfecf96Smrg# By default was `s,x,x', remove it if useless. 2337f14f4646Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2338f14f4646Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 23395dfecf96Smrg 23405dfecf96Smrg# expand $ac_aux_dir to an absolute path 23415dfecf96Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 23425dfecf96Smrg 2343c05e22d7Smrgif test x"${MISSING+set}" != xset; then 2344c05e22d7Smrg case $am_aux_dir in 2345c05e22d7Smrg *\ * | *\ *) 2346c05e22d7Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2347c05e22d7Smrg *) 2348c05e22d7Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2349c05e22d7Smrg esac 2350c05e22d7Smrgfi 23515dfecf96Smrg# Use eval to expand $SHELL 23525dfecf96Smrgif eval "$MISSING --run true"; then 23535dfecf96Smrg am_missing_run="$MISSING --run " 23545dfecf96Smrgelse 23555dfecf96Smrg am_missing_run= 2356c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2357f14f4646Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2358f14f4646Smrgfi 2359f14f4646Smrg 2360c05e22d7Smrgif test x"${install_sh}" != xset; then 2361c05e22d7Smrg case $am_aux_dir in 2362c05e22d7Smrg *\ * | *\ *) 2363c05e22d7Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2364c05e22d7Smrg *) 2365c05e22d7Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2366c05e22d7Smrg esac 2367c05e22d7Smrgfi 2368c05e22d7Smrg 2369c05e22d7Smrg# Installed binaries are usually stripped using `strip' when the user 2370c05e22d7Smrg# run `make install-strip'. However `strip' might not be the right 2371c05e22d7Smrg# tool to use in cross-compilation environments, therefore Automake 2372c05e22d7Smrg# will honor the `STRIP' environment variable to overrule this program. 2373c05e22d7Smrgif test "$cross_compiling" != no; then 2374c05e22d7Smrg if test -n "$ac_tool_prefix"; then 2375c05e22d7Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2376c05e22d7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2377c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2378c05e22d7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2379c05e22d7Smrgif ${ac_cv_prog_STRIP+:} false; then : 2380f14f4646Smrg $as_echo_n "(cached) " >&6 2381f14f4646Smrgelse 2382c05e22d7Smrg if test -n "$STRIP"; then 2383c05e22d7Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2384c05e22d7Smrgelse 2385c05e22d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2386c05e22d7Smrgfor as_dir in $PATH 2387f14f4646Smrgdo 2388f14f4646Smrg IFS=$as_save_IFS 2389f14f4646Smrg test -z "$as_dir" && as_dir=. 2390c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2391c05e22d7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2392c05e22d7Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2393c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2394c05e22d7Smrg break 2 2395c05e22d7Smrg fi 2396f14f4646Smrgdone 2397c05e22d7Smrg done 2398f14f4646SmrgIFS=$as_save_IFS 2399f14f4646Smrg 2400f14f4646Smrgfi 2401c05e22d7Smrgfi 2402c05e22d7SmrgSTRIP=$ac_cv_prog_STRIP 2403c05e22d7Smrgif test -n "$STRIP"; then 2404c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2405c05e22d7Smrg$as_echo "$STRIP" >&6; } 2406c05e22d7Smrgelse 2407c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2408c05e22d7Smrg$as_echo "no" >&6; } 2409c05e22d7Smrgfi 2410c05e22d7Smrg 2411c05e22d7Smrg 2412c05e22d7Smrgfi 2413c05e22d7Smrgif test -z "$ac_cv_prog_STRIP"; then 2414c05e22d7Smrg ac_ct_STRIP=$STRIP 2415c05e22d7Smrg # Extract the first word of "strip", so it can be a program name with args. 2416c05e22d7Smrgset dummy strip; ac_word=$2 2417c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2418c05e22d7Smrg$as_echo_n "checking for $ac_word... " >&6; } 2419c05e22d7Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2420c05e22d7Smrg $as_echo_n "(cached) " >&6 2421c05e22d7Smrgelse 2422c05e22d7Smrg if test -n "$ac_ct_STRIP"; then 2423c05e22d7Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2424c05e22d7Smrgelse 2425c05e22d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426c05e22d7Smrgfor as_dir in $PATH 2427c05e22d7Smrgdo 2428c05e22d7Smrg IFS=$as_save_IFS 2429c05e22d7Smrg test -z "$as_dir" && as_dir=. 2430c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2431c05e22d7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2432c05e22d7Smrg ac_cv_prog_ac_ct_STRIP="strip" 2433c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2434c05e22d7Smrg break 2 2435c05e22d7Smrg fi 2436c05e22d7Smrgdone 2437c05e22d7Smrg done 2438c05e22d7SmrgIFS=$as_save_IFS 2439c05e22d7Smrg 2440c05e22d7Smrgfi 2441c05e22d7Smrgfi 2442c05e22d7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2443c05e22d7Smrgif test -n "$ac_ct_STRIP"; then 2444c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2445c05e22d7Smrg$as_echo "$ac_ct_STRIP" >&6; } 2446c05e22d7Smrgelse 2447c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2448c05e22d7Smrg$as_echo "no" >&6; } 2449c05e22d7Smrgfi 2450c05e22d7Smrg 2451c05e22d7Smrg if test "x$ac_ct_STRIP" = x; then 2452c05e22d7Smrg STRIP=":" 2453c05e22d7Smrg else 2454c05e22d7Smrg case $cross_compiling:$ac_tool_warned in 2455c05e22d7Smrgyes:) 2456c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2457c05e22d7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2458c05e22d7Smrgac_tool_warned=yes ;; 2459c05e22d7Smrgesac 2460c05e22d7Smrg STRIP=$ac_ct_STRIP 2461c05e22d7Smrg fi 2462c05e22d7Smrgelse 2463c05e22d7Smrg STRIP="$ac_cv_prog_STRIP" 2464c05e22d7Smrgfi 2465c05e22d7Smrg 2466c05e22d7Smrgfi 2467c05e22d7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2468c05e22d7Smrg 2469c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2470c05e22d7Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2471c05e22d7Smrgif test -z "$MKDIR_P"; then 2472c05e22d7Smrg if ${ac_cv_path_mkdir+:} false; then : 2473c05e22d7Smrg $as_echo_n "(cached) " >&6 2474c05e22d7Smrgelse 2475c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476c05e22d7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2477c05e22d7Smrgdo 2478c05e22d7Smrg IFS=$as_save_IFS 2479c05e22d7Smrg test -z "$as_dir" && as_dir=. 2480c05e22d7Smrg for ac_prog in mkdir gmkdir; do 2481c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2482c05e22d7Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2483c05e22d7Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2484c05e22d7Smrg 'mkdir (GNU coreutils) '* | \ 2485c05e22d7Smrg 'mkdir (coreutils) '* | \ 2486c05e22d7Smrg 'mkdir (fileutils) '4.1*) 2487c05e22d7Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2488c05e22d7Smrg break 3;; 2489c05e22d7Smrg esac 2490c05e22d7Smrg done 2491c05e22d7Smrg done 2492c05e22d7Smrg done 2493c05e22d7SmrgIFS=$as_save_IFS 2494c05e22d7Smrg 2495c05e22d7Smrgfi 2496c05e22d7Smrg 2497c05e22d7Smrg test -d ./--version && rmdir ./--version 2498c05e22d7Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2499f14f4646Smrg MKDIR_P="$ac_cv_path_mkdir -p" 25005dfecf96Smrg else 2501f14f4646Smrg # As a last resort, use the slow shell script. Don't cache a 2502f14f4646Smrg # value for MKDIR_P within a source directory, because that will 2503f14f4646Smrg # break other packages using the cache if that directory is 2504f14f4646Smrg # removed, or if the value is a relative name. 2505f14f4646Smrg MKDIR_P="$ac_install_sh -d" 25065dfecf96Smrg fi 25075dfecf96Smrgfi 2508c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2509f14f4646Smrg$as_echo "$MKDIR_P" >&6; } 2510f14f4646Smrg 2511f14f4646Smrgmkdir_p="$MKDIR_P" 2512f14f4646Smrgcase $mkdir_p in 2513f14f4646Smrg [\\/$]* | ?:[\\/]*) ;; 2514f14f4646Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2515f14f4646Smrgesac 25165dfecf96Smrg 25175dfecf96Smrgfor ac_prog in gawk mawk nawk awk 25185dfecf96Smrgdo 25195dfecf96Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 25205dfecf96Smrgset dummy $ac_prog; ac_word=$2 2521c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2522f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 2523c05e22d7Smrgif ${ac_cv_prog_AWK+:} false; then : 2524f14f4646Smrg $as_echo_n "(cached) " >&6 25255dfecf96Smrgelse 25265dfecf96Smrg if test -n "$AWK"; then 25275dfecf96Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 25285dfecf96Smrgelse 25295dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25305dfecf96Smrgfor as_dir in $PATH 25315dfecf96Smrgdo 25325dfecf96Smrg IFS=$as_save_IFS 25335dfecf96Smrg test -z "$as_dir" && as_dir=. 2534c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2535f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25365dfecf96Smrg ac_cv_prog_AWK="$ac_prog" 2537c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25385dfecf96Smrg break 2 25395dfecf96Smrg fi 25405dfecf96Smrgdone 2541c05e22d7Smrg done 2542f14f4646SmrgIFS=$as_save_IFS 25435dfecf96Smrg 25445dfecf96Smrgfi 25455dfecf96Smrgfi 25465dfecf96SmrgAWK=$ac_cv_prog_AWK 25475dfecf96Smrgif test -n "$AWK"; then 2548c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2549f14f4646Smrg$as_echo "$AWK" >&6; } 25505dfecf96Smrgelse 2551c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2552f14f4646Smrg$as_echo "no" >&6; } 25535dfecf96Smrgfi 25545dfecf96Smrg 2555f14f4646Smrg 25565dfecf96Smrg test -n "$AWK" && break 25575dfecf96Smrgdone 25585dfecf96Smrg 2559c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2560f14f4646Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2561f14f4646Smrgset x ${MAKE-make} 2562f14f4646Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2563c05e22d7Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2564f14f4646Smrg $as_echo_n "(cached) " >&6 25655dfecf96Smrgelse 25665dfecf96Smrg cat >conftest.make <<\_ACEOF 2567f14f4646SmrgSHELL = /bin/sh 25685dfecf96Smrgall: 2569f14f4646Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 25705dfecf96Smrg_ACEOF 2571c05e22d7Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2572f14f4646Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2573f14f4646Smrg *@@@%%%=?*=@@@%%%*) 2574f14f4646Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2575f14f4646Smrg *) 2576f14f4646Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2577f14f4646Smrgesac 25785dfecf96Smrgrm -f conftest.make 25795dfecf96Smrgfi 2580f14f4646Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2581c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2582f14f4646Smrg$as_echo "yes" >&6; } 25835dfecf96Smrg SET_MAKE= 25845dfecf96Smrgelse 2585c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2586f14f4646Smrg$as_echo "no" >&6; } 25875dfecf96Smrg SET_MAKE="MAKE=${MAKE-make}" 25885dfecf96Smrgfi 25895dfecf96Smrg 25905dfecf96Smrgrm -rf .tst 2>/dev/null 25915dfecf96Smrgmkdir .tst 2>/dev/null 25925dfecf96Smrgif test -d .tst; then 25935dfecf96Smrg am__leading_dot=. 25945dfecf96Smrgelse 25955dfecf96Smrg am__leading_dot=_ 25965dfecf96Smrgfi 25975dfecf96Smrgrmdir .tst 2>/dev/null 25985dfecf96Smrg 2599f14f4646Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2600f14f4646Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2601f14f4646Smrg # is not polluted with repeated "-I." 2602f14f4646Smrg am__isrc=' -I$(srcdir)' 2603f14f4646Smrg # test to see if srcdir already configured 2604f14f4646Smrg if test -f $srcdir/config.status; then 2605c05e22d7Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2606f14f4646Smrg fi 26075dfecf96Smrgfi 26085dfecf96Smrg 26095dfecf96Smrg# test whether we have cygpath 26105dfecf96Smrgif test -z "$CYGPATH_W"; then 26115dfecf96Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 26125dfecf96Smrg CYGPATH_W='cygpath -w' 26135dfecf96Smrg else 26145dfecf96Smrg CYGPATH_W=echo 26155dfecf96Smrg fi 26165dfecf96Smrgfi 26175dfecf96Smrg 26185dfecf96Smrg 26195dfecf96Smrg# Define the identity of the package. 26205dfecf96Smrg PACKAGE='xedit' 2621c05e22d7Smrg VERSION='1.2.0' 26225dfecf96Smrg 26235dfecf96Smrg 26245dfecf96Smrgcat >>confdefs.h <<_ACEOF 26255dfecf96Smrg#define PACKAGE "$PACKAGE" 26265dfecf96Smrg_ACEOF 26275dfecf96Smrg 26285dfecf96Smrg 26295dfecf96Smrgcat >>confdefs.h <<_ACEOF 26305dfecf96Smrg#define VERSION "$VERSION" 26315dfecf96Smrg_ACEOF 26325dfecf96Smrg 26335dfecf96Smrg# Some tools Automake needs. 26345dfecf96Smrg 26355dfecf96SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26365dfecf96Smrg 26375dfecf96Smrg 26385dfecf96SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26395dfecf96Smrg 26405dfecf96Smrg 26415dfecf96SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26425dfecf96Smrg 26435dfecf96Smrg 26445dfecf96SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26455dfecf96Smrg 26465dfecf96Smrg 26475dfecf96SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 26485dfecf96Smrg 26495dfecf96Smrg# We need awk for the "check" target. The system "awk" is bad on 26505dfecf96Smrg# some platforms. 26515dfecf96Smrg# Always define AMTAR for backward compatibility. 26525dfecf96Smrg 26535dfecf96SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 26545dfecf96Smrg 26555dfecf96Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 26565dfecf96Smrg 26575dfecf96Smrg 26585dfecf96Smrg 26595dfecf96Smrg 26605dfecf96Smrg 2661c05e22d7Smrg 2662c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2663f14f4646Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2664f14f4646Smrg # Check whether --enable-maintainer-mode was given. 2665c05e22d7Smrgif test "${enable_maintainer_mode+set}" = set; then : 2666f14f4646Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 26675dfecf96Smrgelse 26685dfecf96Smrg USE_MAINTAINER_MODE=no 2669f14f4646Smrgfi 26705dfecf96Smrg 2671c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2672f14f4646Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2673f14f4646Smrg if test $USE_MAINTAINER_MODE = yes; then 26745dfecf96Smrg MAINTAINER_MODE_TRUE= 26755dfecf96Smrg MAINTAINER_MODE_FALSE='#' 26765dfecf96Smrgelse 26775dfecf96Smrg MAINTAINER_MODE_TRUE='#' 26785dfecf96Smrg MAINTAINER_MODE_FALSE= 26795dfecf96Smrgfi 26805dfecf96Smrg 26815dfecf96Smrg MAINT=$MAINTAINER_MODE_TRUE 26825dfecf96Smrg 26835dfecf96Smrg 26845dfecf96Smrg 2685c05e22d7Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2686c05e22d7Smrg 2687c05e22d7Smrg 2688c05e22d7Smrg 2689c05e22d7Smrg 2690c05e22d7Smrg 2691c05e22d7Smrg 2692c05e22d7Smrg 2693c05e22d7Smrg 2694c05e22d7Smrg 2695c05e22d7Smrg 2696c05e22d7Smrg 2697c05e22d7SmrgDEPDIR="${am__leading_dot}deps" 2698c05e22d7Smrg 2699c05e22d7Smrgac_config_commands="$ac_config_commands depfiles" 2700c05e22d7Smrg 2701c05e22d7Smrg 2702c05e22d7Smrgam_make=${MAKE-make} 2703c05e22d7Smrgcat > confinc << 'END' 2704c05e22d7Smrgam__doit: 2705c05e22d7Smrg @echo this is the am__doit target 2706c05e22d7Smrg.PHONY: am__doit 2707c05e22d7SmrgEND 2708c05e22d7Smrg# If we don't find an include directive, just comment out the code. 2709c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2710c05e22d7Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2711c05e22d7Smrgam__include="#" 2712c05e22d7Smrgam__quote= 2713c05e22d7Smrg_am_result=none 2714c05e22d7Smrg# First try GNU make style include. 2715c05e22d7Smrgecho "include confinc" > confmf 2716c05e22d7Smrg# Ignore all kinds of additional output from `make'. 2717c05e22d7Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2718c05e22d7Smrg*the\ am__doit\ target*) 2719c05e22d7Smrg am__include=include 2720c05e22d7Smrg am__quote= 2721c05e22d7Smrg _am_result=GNU 2722c05e22d7Smrg ;; 2723c05e22d7Smrgesac 2724c05e22d7Smrg# Now try BSD make style include. 2725c05e22d7Smrgif test "$am__include" = "#"; then 2726c05e22d7Smrg echo '.include "confinc"' > confmf 2727c05e22d7Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2728c05e22d7Smrg *the\ am__doit\ target*) 2729c05e22d7Smrg am__include=.include 2730c05e22d7Smrg am__quote="\"" 2731c05e22d7Smrg _am_result=BSD 2732c05e22d7Smrg ;; 2733c05e22d7Smrg esac 2734c05e22d7Smrgfi 2735c05e22d7Smrg 2736c05e22d7Smrg 2737c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2738c05e22d7Smrg$as_echo "$_am_result" >&6; } 2739c05e22d7Smrgrm -f confinc confmf 2740c05e22d7Smrg 2741c05e22d7Smrg# Check whether --enable-dependency-tracking was given. 2742c05e22d7Smrgif test "${enable_dependency_tracking+set}" = set; then : 2743c05e22d7Smrg enableval=$enable_dependency_tracking; 2744c05e22d7Smrgfi 2745c05e22d7Smrg 2746c05e22d7Smrgif test "x$enable_dependency_tracking" != xno; then 2747c05e22d7Smrg am_depcomp="$ac_aux_dir/depcomp" 2748c05e22d7Smrg AMDEPBACKSLASH='\' 2749c05e22d7Smrgfi 2750c05e22d7Smrg if test "x$enable_dependency_tracking" != xno; then 2751c05e22d7Smrg AMDEP_TRUE= 2752c05e22d7Smrg AMDEP_FALSE='#' 2753c05e22d7Smrgelse 2754c05e22d7Smrg AMDEP_TRUE='#' 2755c05e22d7Smrg AMDEP_FALSE= 2756c05e22d7Smrgfi 27575dfecf96Smrg 27585dfecf96Smrg 27595dfecf96Smrgac_ext=c 27605dfecf96Smrgac_cpp='$CPP $CPPFLAGS' 27615dfecf96Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27625dfecf96Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27635dfecf96Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 27645dfecf96Smrgif test -n "$ac_tool_prefix"; then 27655dfecf96Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 27665dfecf96Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2767c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 2769c05e22d7Smrgif ${ac_cv_prog_CC+:} false; then : 2770f14f4646Smrg $as_echo_n "(cached) " >&6 27715dfecf96Smrgelse 27725dfecf96Smrg if test -n "$CC"; then 27735dfecf96Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 27745dfecf96Smrgelse 27755dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27765dfecf96Smrgfor as_dir in $PATH 27775dfecf96Smrgdo 27785dfecf96Smrg IFS=$as_save_IFS 27795dfecf96Smrg test -z "$as_dir" && as_dir=. 2780c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2781f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 27825dfecf96Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2783c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27845dfecf96Smrg break 2 27855dfecf96Smrg fi 27865dfecf96Smrgdone 2787c05e22d7Smrg done 2788f14f4646SmrgIFS=$as_save_IFS 27895dfecf96Smrg 27905dfecf96Smrgfi 27915dfecf96Smrgfi 27925dfecf96SmrgCC=$ac_cv_prog_CC 27935dfecf96Smrgif test -n "$CC"; then 2794c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2795f14f4646Smrg$as_echo "$CC" >&6; } 27965dfecf96Smrgelse 2797c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798f14f4646Smrg$as_echo "no" >&6; } 27995dfecf96Smrgfi 28005dfecf96Smrg 2801f14f4646Smrg 28025dfecf96Smrgfi 28035dfecf96Smrgif test -z "$ac_cv_prog_CC"; then 28045dfecf96Smrg ac_ct_CC=$CC 28055dfecf96Smrg # Extract the first word of "gcc", so it can be a program name with args. 28065dfecf96Smrgset dummy gcc; ac_word=$2 2807c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2808f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 2809c05e22d7Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2810f14f4646Smrg $as_echo_n "(cached) " >&6 28115dfecf96Smrgelse 28125dfecf96Smrg if test -n "$ac_ct_CC"; then 28135dfecf96Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28145dfecf96Smrgelse 28155dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28165dfecf96Smrgfor as_dir in $PATH 28175dfecf96Smrgdo 28185dfecf96Smrg IFS=$as_save_IFS 28195dfecf96Smrg test -z "$as_dir" && as_dir=. 2820c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2821f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28225dfecf96Smrg ac_cv_prog_ac_ct_CC="gcc" 2823c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28245dfecf96Smrg break 2 28255dfecf96Smrg fi 28265dfecf96Smrgdone 2827c05e22d7Smrg done 2828f14f4646SmrgIFS=$as_save_IFS 28295dfecf96Smrg 28305dfecf96Smrgfi 28315dfecf96Smrgfi 28325dfecf96Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 28335dfecf96Smrgif test -n "$ac_ct_CC"; then 2834c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2835f14f4646Smrg$as_echo "$ac_ct_CC" >&6; } 28365dfecf96Smrgelse 2837c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2838f14f4646Smrg$as_echo "no" >&6; } 28395dfecf96Smrgfi 28405dfecf96Smrg 2841f14f4646Smrg if test "x$ac_ct_CC" = x; then 2842f14f4646Smrg CC="" 2843f14f4646Smrg else 2844f14f4646Smrg case $cross_compiling:$ac_tool_warned in 2845f14f4646Smrgyes:) 2846c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2847f14f4646Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2848f14f4646Smrgac_tool_warned=yes ;; 2849f14f4646Smrgesac 2850f14f4646Smrg CC=$ac_ct_CC 2851f14f4646Smrg fi 28525dfecf96Smrgelse 28535dfecf96Smrg CC="$ac_cv_prog_CC" 28545dfecf96Smrgfi 28555dfecf96Smrg 28565dfecf96Smrgif test -z "$CC"; then 2857f14f4646Smrg if test -n "$ac_tool_prefix"; then 2858f14f4646Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 28595dfecf96Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2860c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2861f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 2862c05e22d7Smrgif ${ac_cv_prog_CC+:} false; then : 2863f14f4646Smrg $as_echo_n "(cached) " >&6 28645dfecf96Smrgelse 28655dfecf96Smrg if test -n "$CC"; then 28665dfecf96Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 28675dfecf96Smrgelse 28685dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28695dfecf96Smrgfor as_dir in $PATH 28705dfecf96Smrgdo 28715dfecf96Smrg IFS=$as_save_IFS 28725dfecf96Smrg test -z "$as_dir" && as_dir=. 2873c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2874f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28755dfecf96Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2876c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28775dfecf96Smrg break 2 28785dfecf96Smrg fi 28795dfecf96Smrgdone 2880c05e22d7Smrg done 2881f14f4646SmrgIFS=$as_save_IFS 28825dfecf96Smrg 28835dfecf96Smrgfi 28845dfecf96Smrgfi 28855dfecf96SmrgCC=$ac_cv_prog_CC 28865dfecf96Smrgif test -n "$CC"; then 2887c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2888f14f4646Smrg$as_echo "$CC" >&6; } 28895dfecf96Smrgelse 2890c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891f14f4646Smrg$as_echo "no" >&6; } 28925dfecf96Smrgfi 28935dfecf96Smrg 28945dfecf96Smrg 2895f14f4646Smrg fi 28965dfecf96Smrgfi 28975dfecf96Smrgif test -z "$CC"; then 28985dfecf96Smrg # Extract the first word of "cc", so it can be a program name with args. 28995dfecf96Smrgset dummy cc; ac_word=$2 2900c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 2902c05e22d7Smrgif ${ac_cv_prog_CC+:} false; then : 2903f14f4646Smrg $as_echo_n "(cached) " >&6 29045dfecf96Smrgelse 29055dfecf96Smrg if test -n "$CC"; then 29065dfecf96Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29075dfecf96Smrgelse 29085dfecf96Smrg ac_prog_rejected=no 29095dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29105dfecf96Smrgfor as_dir in $PATH 29115dfecf96Smrgdo 29125dfecf96Smrg IFS=$as_save_IFS 29135dfecf96Smrg test -z "$as_dir" && as_dir=. 2914c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2915f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29165dfecf96Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 29175dfecf96Smrg ac_prog_rejected=yes 29185dfecf96Smrg continue 29195dfecf96Smrg fi 29205dfecf96Smrg ac_cv_prog_CC="cc" 2921c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29225dfecf96Smrg break 2 29235dfecf96Smrg fi 29245dfecf96Smrgdone 2925c05e22d7Smrg done 2926f14f4646SmrgIFS=$as_save_IFS 29275dfecf96Smrg 29285dfecf96Smrgif test $ac_prog_rejected = yes; then 29295dfecf96Smrg # We found a bogon in the path, so make sure we never use it. 29305dfecf96Smrg set dummy $ac_cv_prog_CC 29315dfecf96Smrg shift 29325dfecf96Smrg if test $# != 0; then 29335dfecf96Smrg # We chose a different compiler from the bogus one. 29345dfecf96Smrg # However, it has the same basename, so the bogon will be chosen 29355dfecf96Smrg # first if we set CC to just the basename; use the full file name. 29365dfecf96Smrg shift 29375dfecf96Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 29385dfecf96Smrg fi 29395dfecf96Smrgfi 29405dfecf96Smrgfi 29415dfecf96Smrgfi 29425dfecf96SmrgCC=$ac_cv_prog_CC 29435dfecf96Smrgif test -n "$CC"; then 2944c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2945f14f4646Smrg$as_echo "$CC" >&6; } 29465dfecf96Smrgelse 2947c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948f14f4646Smrg$as_echo "no" >&6; } 29495dfecf96Smrgfi 29505dfecf96Smrg 2951f14f4646Smrg 29525dfecf96Smrgfi 29535dfecf96Smrgif test -z "$CC"; then 29545dfecf96Smrg if test -n "$ac_tool_prefix"; then 2955f14f4646Smrg for ac_prog in cl.exe 29565dfecf96Smrg do 29575dfecf96Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29585dfecf96Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2959c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2960f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 2961c05e22d7Smrgif ${ac_cv_prog_CC+:} false; then : 2962f14f4646Smrg $as_echo_n "(cached) " >&6 29635dfecf96Smrgelse 29645dfecf96Smrg if test -n "$CC"; then 29655dfecf96Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 29665dfecf96Smrgelse 29675dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29685dfecf96Smrgfor as_dir in $PATH 29695dfecf96Smrgdo 29705dfecf96Smrg IFS=$as_save_IFS 29715dfecf96Smrg test -z "$as_dir" && as_dir=. 2972c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2973f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29745dfecf96Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2975c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29765dfecf96Smrg break 2 29775dfecf96Smrg fi 29785dfecf96Smrgdone 2979c05e22d7Smrg done 2980f14f4646SmrgIFS=$as_save_IFS 29815dfecf96Smrg 29825dfecf96Smrgfi 29835dfecf96Smrgfi 29845dfecf96SmrgCC=$ac_cv_prog_CC 29855dfecf96Smrgif test -n "$CC"; then 2986c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2987f14f4646Smrg$as_echo "$CC" >&6; } 29885dfecf96Smrgelse 2989c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2990f14f4646Smrg$as_echo "no" >&6; } 29915dfecf96Smrgfi 29925dfecf96Smrg 2993f14f4646Smrg 29945dfecf96Smrg test -n "$CC" && break 29955dfecf96Smrg done 29965dfecf96Smrgfi 29975dfecf96Smrgif test -z "$CC"; then 29985dfecf96Smrg ac_ct_CC=$CC 2999f14f4646Smrg for ac_prog in cl.exe 30005dfecf96Smrgdo 30015dfecf96Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 30025dfecf96Smrgset dummy $ac_prog; ac_word=$2 3003c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 3005c05e22d7Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3006f14f4646Smrg $as_echo_n "(cached) " >&6 30075dfecf96Smrgelse 30085dfecf96Smrg if test -n "$ac_ct_CC"; then 30095dfecf96Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30105dfecf96Smrgelse 30115dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30125dfecf96Smrgfor as_dir in $PATH 30135dfecf96Smrgdo 30145dfecf96Smrg IFS=$as_save_IFS 30155dfecf96Smrg test -z "$as_dir" && as_dir=. 3016c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3017f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 30185dfecf96Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 3019c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30205dfecf96Smrg break 2 30215dfecf96Smrg fi 30225dfecf96Smrgdone 3023c05e22d7Smrg done 3024f14f4646SmrgIFS=$as_save_IFS 30255dfecf96Smrg 30265dfecf96Smrgfi 30275dfecf96Smrgfi 30285dfecf96Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 30295dfecf96Smrgif test -n "$ac_ct_CC"; then 3030c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3031f14f4646Smrg$as_echo "$ac_ct_CC" >&6; } 30325dfecf96Smrgelse 3033c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034f14f4646Smrg$as_echo "no" >&6; } 30355dfecf96Smrgfi 30365dfecf96Smrg 3037f14f4646Smrg 30385dfecf96Smrg test -n "$ac_ct_CC" && break 30395dfecf96Smrgdone 30405dfecf96Smrg 3041f14f4646Smrg if test "x$ac_ct_CC" = x; then 3042f14f4646Smrg CC="" 3043f14f4646Smrg else 3044f14f4646Smrg case $cross_compiling:$ac_tool_warned in 3045f14f4646Smrgyes:) 3046c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3047f14f4646Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3048f14f4646Smrgac_tool_warned=yes ;; 3049f14f4646Smrgesac 3050f14f4646Smrg CC=$ac_ct_CC 3051f14f4646Smrg fi 30525dfecf96Smrgfi 30535dfecf96Smrg 30545dfecf96Smrgfi 30555dfecf96Smrg 30565dfecf96Smrg 3057c05e22d7Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3058f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3059c05e22d7Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3060c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 30615dfecf96Smrg 30625dfecf96Smrg# Provide some information about the compiler. 3063c05e22d7Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3064f14f4646Smrgset X $ac_compile 3065f14f4646Smrgac_compiler=$2 3066c05e22d7Smrgfor ac_option in --version -v -V -qversion; do 3067c05e22d7Smrg { { ac_try="$ac_compiler $ac_option >&5" 3068f14f4646Smrgcase "(($ac_try" in 3069f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070f14f4646Smrg *) ac_try_echo=$ac_try;; 3071f14f4646Smrgesac 3072c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3073c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 3074c05e22d7Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30755dfecf96Smrg ac_status=$? 3076c05e22d7Smrg if test -s conftest.err; then 3077c05e22d7Smrg sed '10a\ 3078c05e22d7Smrg... rest of stderr output deleted ... 3079c05e22d7Smrg 10q' conftest.err >conftest.er1 3080c05e22d7Smrg cat conftest.er1 >&5 3081c05e22d7Smrg fi 3082c05e22d7Smrg rm -f conftest.er1 conftest.err 3083c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3084c05e22d7Smrg test $ac_status = 0; } 3085c05e22d7Smrgdone 3086c05e22d7Smrg 3087c05e22d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 30885dfecf96Smrg/* end confdefs.h. */ 30895dfecf96Smrg 30905dfecf96Smrgint 30915dfecf96Smrgmain () 30925dfecf96Smrg{ 30935dfecf96Smrg 30945dfecf96Smrg ; 30955dfecf96Smrg return 0; 30965dfecf96Smrg} 30975dfecf96Smrg_ACEOF 30985dfecf96Smrgac_clean_files_save=$ac_clean_files 3099f14f4646Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 31005dfecf96Smrg# Try to create an executable without -o first, disregard a.out. 31015dfecf96Smrg# It will help us diagnose broken compilers, and finding out an intuition 31025dfecf96Smrg# of exeext. 3103c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3104c05e22d7Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 3105f14f4646Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3106f14f4646Smrg 3107f14f4646Smrg# The possible output files: 3108f14f4646Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3109f14f4646Smrg 3110f14f4646Smrgac_rmfiles= 3111f14f4646Smrgfor ac_file in $ac_files 3112f14f4646Smrgdo 3113f14f4646Smrg case $ac_file in 3114f14f4646Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3115f14f4646Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3116f14f4646Smrg esac 3117f14f4646Smrgdone 3118f14f4646Smrgrm -f $ac_rmfiles 3119f14f4646Smrg 3120c05e22d7Smrgif { { ac_try="$ac_link_default" 3121f14f4646Smrgcase "(($ac_try" in 3122f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123f14f4646Smrg *) ac_try_echo=$ac_try;; 3124f14f4646Smrgesac 3125c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3126c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 3127f14f4646Smrg (eval "$ac_link_default") 2>&5 31285dfecf96Smrg ac_status=$? 3129c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3130c05e22d7Smrg test $ac_status = 0; }; then : 3131f14f4646Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3132f14f4646Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3133f14f4646Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3134f14f4646Smrg# so that the user can short-circuit this test for compilers unknown to 3135f14f4646Smrg# Autoconf. 3136f14f4646Smrgfor ac_file in $ac_files '' 31375dfecf96Smrgdo 31385dfecf96Smrg test -f "$ac_file" || continue 31395dfecf96Smrg case $ac_file in 3140f14f4646Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 31415dfecf96Smrg ;; 31425dfecf96Smrg [ab].out ) 31435dfecf96Smrg # We found the default executable, but exeext='' is most 31445dfecf96Smrg # certainly right. 31455dfecf96Smrg break;; 31465dfecf96Smrg *.* ) 3147c05e22d7Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3148f14f4646Smrg then :; else 3149f14f4646Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3150f14f4646Smrg fi 3151f14f4646Smrg # We set ac_cv_exeext here because the later test for it is not 3152f14f4646Smrg # safe: cross compilers may not add the suffix if given an `-o' 3153f14f4646Smrg # argument, so we may need to know it at that point already. 3154f14f4646Smrg # Even if this section looks crufty: it has the advantage of 3155f14f4646Smrg # actually working. 31565dfecf96Smrg break;; 31575dfecf96Smrg * ) 31585dfecf96Smrg break;; 31595dfecf96Smrg esac 31605dfecf96Smrgdone 3161f14f4646Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3162f14f4646Smrg 31635dfecf96Smrgelse 3164f14f4646Smrg ac_file='' 3165f14f4646Smrgfi 3166c05e22d7Smrgif test -z "$ac_file"; then : 3167c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168c05e22d7Smrg$as_echo "no" >&6; } 3169c05e22d7Smrg$as_echo "$as_me: failed program was:" >&5 31705dfecf96Smrgsed 's/^/| /' conftest.$ac_ext >&5 31715dfecf96Smrg 3172c05e22d7Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3173f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3174c05e22d7Smrgas_fn_error 77 "C compiler cannot create executables 3175c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 3176c05e22d7Smrgelse 3177c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3178c05e22d7Smrg$as_echo "yes" >&6; } 31795dfecf96Smrgfi 3180c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3181c05e22d7Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3182c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3183c05e22d7Smrg$as_echo "$ac_file" >&6; } 31845dfecf96Smrgac_exeext=$ac_cv_exeext 31855dfecf96Smrg 3186f14f4646Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 31875dfecf96Smrgac_clean_files=$ac_clean_files_save 3188c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3189f14f4646Smrg$as_echo_n "checking for suffix of executables... " >&6; } 3190c05e22d7Smrgif { { ac_try="$ac_link" 3191f14f4646Smrgcase "(($ac_try" in 3192f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193f14f4646Smrg *) ac_try_echo=$ac_try;; 3194f14f4646Smrgesac 3195c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3196c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 3197f14f4646Smrg (eval "$ac_link") 2>&5 31985dfecf96Smrg ac_status=$? 3199c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3200c05e22d7Smrg test $ac_status = 0; }; then : 32015dfecf96Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 32025dfecf96Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 32035dfecf96Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 32045dfecf96Smrg# `rm'. 32055dfecf96Smrgfor ac_file in conftest.exe conftest conftest.*; do 32065dfecf96Smrg test -f "$ac_file" || continue 32075dfecf96Smrg case $ac_file in 3208f14f4646Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 32095dfecf96Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 32105dfecf96Smrg break;; 32115dfecf96Smrg * ) break;; 32125dfecf96Smrg esac 32135dfecf96Smrgdone 32145dfecf96Smrgelse 3215c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3216f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3217c05e22d7Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3218c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 32195dfecf96Smrgfi 3220c05e22d7Smrgrm -f conftest conftest$ac_cv_exeext 3221c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3222f14f4646Smrg$as_echo "$ac_cv_exeext" >&6; } 32235dfecf96Smrg 32245dfecf96Smrgrm -f conftest.$ac_ext 32255dfecf96SmrgEXEEXT=$ac_cv_exeext 32265dfecf96Smrgac_exeext=$EXEEXT 3227c05e22d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3228c05e22d7Smrg/* end confdefs.h. */ 3229c05e22d7Smrg#include <stdio.h> 3230c05e22d7Smrgint 3231c05e22d7Smrgmain () 3232c05e22d7Smrg{ 3233c05e22d7SmrgFILE *f = fopen ("conftest.out", "w"); 3234c05e22d7Smrg return ferror (f) || fclose (f) != 0; 3235c05e22d7Smrg 3236c05e22d7Smrg ; 3237c05e22d7Smrg return 0; 3238c05e22d7Smrg} 3239c05e22d7Smrg_ACEOF 3240c05e22d7Smrgac_clean_files="$ac_clean_files conftest.out" 3241c05e22d7Smrg# Check that the compiler produces executables we can run. If not, either 3242c05e22d7Smrg# the compiler is broken, or we cross compile. 3243c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3244c05e22d7Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3245c05e22d7Smrgif test "$cross_compiling" != yes; then 3246c05e22d7Smrg { { ac_try="$ac_link" 3247c05e22d7Smrgcase "(($ac_try" in 3248c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249c05e22d7Smrg *) ac_try_echo=$ac_try;; 3250c05e22d7Smrgesac 3251c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3252c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 3253c05e22d7Smrg (eval "$ac_link") 2>&5 3254c05e22d7Smrg ac_status=$? 3255c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3256c05e22d7Smrg test $ac_status = 0; } 3257c05e22d7Smrg if { ac_try='./conftest$ac_cv_exeext' 3258c05e22d7Smrg { { case "(($ac_try" in 3259c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3260c05e22d7Smrg *) ac_try_echo=$ac_try;; 3261c05e22d7Smrgesac 3262c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3263c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 3264c05e22d7Smrg (eval "$ac_try") 2>&5 3265c05e22d7Smrg ac_status=$? 3266c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3267c05e22d7Smrg test $ac_status = 0; }; }; then 3268c05e22d7Smrg cross_compiling=no 3269c05e22d7Smrg else 3270c05e22d7Smrg if test "$cross_compiling" = maybe; then 3271c05e22d7Smrg cross_compiling=yes 3272c05e22d7Smrg else 3273c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3274c05e22d7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3275c05e22d7Smrgas_fn_error $? "cannot run C compiled programs. 3276c05e22d7SmrgIf you meant to cross compile, use \`--host'. 3277c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 3278c05e22d7Smrg fi 3279c05e22d7Smrg fi 3280c05e22d7Smrgfi 3281c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3282c05e22d7Smrg$as_echo "$cross_compiling" >&6; } 3283c05e22d7Smrg 3284c05e22d7Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3285c05e22d7Smrgac_clean_files=$ac_clean_files_save 3286c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3287f14f4646Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3288c05e22d7Smrgif ${ac_cv_objext+:} false; then : 3289f14f4646Smrg $as_echo_n "(cached) " >&6 32905dfecf96Smrgelse 3291c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32925dfecf96Smrg/* end confdefs.h. */ 32935dfecf96Smrg 32945dfecf96Smrgint 32955dfecf96Smrgmain () 32965dfecf96Smrg{ 32975dfecf96Smrg 32985dfecf96Smrg ; 32995dfecf96Smrg return 0; 33005dfecf96Smrg} 33015dfecf96Smrg_ACEOF 33025dfecf96Smrgrm -f conftest.o conftest.obj 3303c05e22d7Smrgif { { ac_try="$ac_compile" 3304f14f4646Smrgcase "(($ac_try" in 3305f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3306f14f4646Smrg *) ac_try_echo=$ac_try;; 3307f14f4646Smrgesac 3308c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3309c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 3310f14f4646Smrg (eval "$ac_compile") 2>&5 33115dfecf96Smrg ac_status=$? 3312c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3313c05e22d7Smrg test $ac_status = 0; }; then : 3314f14f4646Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3315f14f4646Smrg test -f "$ac_file" || continue; 33165dfecf96Smrg case $ac_file in 3317f14f4646Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33185dfecf96Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33195dfecf96Smrg break;; 33205dfecf96Smrg esac 33215dfecf96Smrgdone 33225dfecf96Smrgelse 3323f14f4646Smrg $as_echo "$as_me: failed program was:" >&5 33245dfecf96Smrgsed 's/^/| /' conftest.$ac_ext >&5 33255dfecf96Smrg 3326c05e22d7Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3327f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3328c05e22d7Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3329c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 33305dfecf96Smrgfi 33315dfecf96Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 33325dfecf96Smrgfi 3333c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3334f14f4646Smrg$as_echo "$ac_cv_objext" >&6; } 33355dfecf96SmrgOBJEXT=$ac_cv_objext 33365dfecf96Smrgac_objext=$OBJEXT 3337c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3338f14f4646Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3339c05e22d7Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3340f14f4646Smrg $as_echo_n "(cached) " >&6 33415dfecf96Smrgelse 3342c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33435dfecf96Smrg/* end confdefs.h. */ 33445dfecf96Smrg 33455dfecf96Smrgint 33465dfecf96Smrgmain () 33475dfecf96Smrg{ 33485dfecf96Smrg#ifndef __GNUC__ 33495dfecf96Smrg choke me 33505dfecf96Smrg#endif 33515dfecf96Smrg 33525dfecf96Smrg ; 33535dfecf96Smrg return 0; 33545dfecf96Smrg} 33555dfecf96Smrg_ACEOF 3356c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 33575dfecf96Smrg ac_compiler_gnu=yes 33585dfecf96Smrgelse 3359c05e22d7Smrg ac_compiler_gnu=no 33605dfecf96Smrgfi 3361f14f4646Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33625dfecf96Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33635dfecf96Smrg 33645dfecf96Smrgfi 3365c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3366f14f4646Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3367f14f4646Smrgif test $ac_compiler_gnu = yes; then 3368f14f4646Smrg GCC=yes 3369f14f4646Smrgelse 3370f14f4646Smrg GCC= 3371f14f4646Smrgfi 33725dfecf96Smrgac_test_CFLAGS=${CFLAGS+set} 33735dfecf96Smrgac_save_CFLAGS=$CFLAGS 3374c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3375f14f4646Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3376c05e22d7Smrgif ${ac_cv_prog_cc_g+:} false; then : 3377f14f4646Smrg $as_echo_n "(cached) " >&6 33785dfecf96Smrgelse 3379f14f4646Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3380f14f4646Smrg ac_c_werror_flag=yes 3381f14f4646Smrg ac_cv_prog_cc_g=no 3382f14f4646Smrg CFLAGS="-g" 3383c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33845dfecf96Smrg/* end confdefs.h. */ 33855dfecf96Smrg 33865dfecf96Smrgint 33875dfecf96Smrgmain () 33885dfecf96Smrg{ 33895dfecf96Smrg 33905dfecf96Smrg ; 33915dfecf96Smrg return 0; 33925dfecf96Smrg} 33935dfecf96Smrg_ACEOF 3394c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 3395f14f4646Smrg ac_cv_prog_cc_g=yes 3396f14f4646Smrgelse 3397c05e22d7Smrg CFLAGS="" 3398c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399f14f4646Smrg/* end confdefs.h. */ 3400f14f4646Smrg 3401f14f4646Smrgint 3402f14f4646Smrgmain () 3403f14f4646Smrg{ 3404f14f4646Smrg 3405f14f4646Smrg ; 3406f14f4646Smrg return 0; 3407f14f4646Smrg} 3408f14f4646Smrg_ACEOF 3409c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 3410f14f4646Smrg 3411c05e22d7Smrgelse 3412c05e22d7Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3413f14f4646Smrg CFLAGS="-g" 3414c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415f14f4646Smrg/* end confdefs.h. */ 3416f14f4646Smrg 3417f14f4646Smrgint 3418f14f4646Smrgmain () 3419f14f4646Smrg{ 3420f14f4646Smrg 3421f14f4646Smrg ; 3422f14f4646Smrg return 0; 3423f14f4646Smrg} 3424f14f4646Smrg_ACEOF 3425c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 34265dfecf96Smrg ac_cv_prog_cc_g=yes 34275dfecf96Smrgfi 3428f14f4646Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429f14f4646Smrgfi 3430f14f4646Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431f14f4646Smrgfi 3432f14f4646Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3433f14f4646Smrg ac_c_werror_flag=$ac_save_c_werror_flag 34345dfecf96Smrgfi 3435c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3436f14f4646Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 34375dfecf96Smrgif test "$ac_test_CFLAGS" = set; then 34385dfecf96Smrg CFLAGS=$ac_save_CFLAGS 34395dfecf96Smrgelif test $ac_cv_prog_cc_g = yes; then 34405dfecf96Smrg if test "$GCC" = yes; then 34415dfecf96Smrg CFLAGS="-g -O2" 34425dfecf96Smrg else 34435dfecf96Smrg CFLAGS="-g" 34445dfecf96Smrg fi 34455dfecf96Smrgelse 34465dfecf96Smrg if test "$GCC" = yes; then 34475dfecf96Smrg CFLAGS="-O2" 34485dfecf96Smrg else 34495dfecf96Smrg CFLAGS= 34505dfecf96Smrg fi 34515dfecf96Smrgfi 3452c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3453f14f4646Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3454c05e22d7Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3455f14f4646Smrg $as_echo_n "(cached) " >&6 34565dfecf96Smrgelse 3457f14f4646Smrg ac_cv_prog_cc_c89=no 34585dfecf96Smrgac_save_CC=$CC 3459c05e22d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 34605dfecf96Smrg/* end confdefs.h. */ 34615dfecf96Smrg#include <stdarg.h> 34625dfecf96Smrg#include <stdio.h> 34635dfecf96Smrg#include <sys/types.h> 34645dfecf96Smrg#include <sys/stat.h> 34655dfecf96Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34665dfecf96Smrgstruct buf { int x; }; 34675dfecf96SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 34685dfecf96Smrgstatic char *e (p, i) 34695dfecf96Smrg char **p; 34705dfecf96Smrg int i; 34715dfecf96Smrg{ 34725dfecf96Smrg return p[i]; 34735dfecf96Smrg} 34745dfecf96Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 34755dfecf96Smrg{ 34765dfecf96Smrg char *s; 34775dfecf96Smrg va_list v; 34785dfecf96Smrg va_start (v,p); 34795dfecf96Smrg s = g (p, va_arg (v,int)); 34805dfecf96Smrg va_end (v); 34815dfecf96Smrg return s; 34825dfecf96Smrg} 34835dfecf96Smrg 34845dfecf96Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34855dfecf96Smrg function prototypes and stuff, but not '\xHH' hex character constants. 34865dfecf96Smrg These don't provoke an error unfortunately, instead are silently treated 3487f14f4646Smrg as 'x'. The following induces an error, until -std is added to get 34885dfecf96Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34895dfecf96Smrg array size at least. It's necessary to write '\x00'==0 to get something 3490f14f4646Smrg that's true only with -std. */ 34915dfecf96Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34925dfecf96Smrg 3493f14f4646Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3494f14f4646Smrg inside strings and character constants. */ 3495f14f4646Smrg#define FOO(x) 'x' 3496f14f4646Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3497f14f4646Smrg 34985dfecf96Smrgint test (int i, double x); 34995dfecf96Smrgstruct s1 {int (*f) (int a);}; 35005dfecf96Smrgstruct s2 {int (*f) (double a);}; 35015dfecf96Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35025dfecf96Smrgint argc; 35035dfecf96Smrgchar **argv; 35045dfecf96Smrgint 35055dfecf96Smrgmain () 35065dfecf96Smrg{ 35075dfecf96Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35085dfecf96Smrg ; 35095dfecf96Smrg return 0; 35105dfecf96Smrg} 35115dfecf96Smrg_ACEOF 3512f14f4646Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3513f14f4646Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35145dfecf96Smrgdo 35155dfecf96Smrg CC="$ac_save_CC $ac_arg" 3516c05e22d7Smrg if ac_fn_c_try_compile "$LINENO"; then : 3517f14f4646Smrg ac_cv_prog_cc_c89=$ac_arg 35185dfecf96Smrgfi 3519f14f4646Smrgrm -f core conftest.err conftest.$ac_objext 3520f14f4646Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35215dfecf96Smrgdone 3522f14f4646Smrgrm -f conftest.$ac_ext 35235dfecf96SmrgCC=$ac_save_CC 35245dfecf96Smrg 35255dfecf96Smrgfi 3526f14f4646Smrg# AC_CACHE_VAL 3527f14f4646Smrgcase "x$ac_cv_prog_cc_c89" in 3528f14f4646Smrg x) 3529c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3530f14f4646Smrg$as_echo "none needed" >&6; } ;; 3531f14f4646Smrg xno) 3532c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3533f14f4646Smrg$as_echo "unsupported" >&6; } ;; 35345dfecf96Smrg *) 3535f14f4646Smrg CC="$CC $ac_cv_prog_cc_c89" 3536c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3537f14f4646Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35385dfecf96Smrgesac 3539c05e22d7Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35405dfecf96Smrg 3541c05e22d7Smrgfi 35425dfecf96Smrg 35435dfecf96Smrgac_ext=c 35445dfecf96Smrgac_cpp='$CPP $CPPFLAGS' 35455dfecf96Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35465dfecf96Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35475dfecf96Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35485dfecf96Smrg 35495dfecf96Smrgdepcc="$CC" am_compiler_list= 35505dfecf96Smrg 3551c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3552f14f4646Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3553c05e22d7Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3554f14f4646Smrg $as_echo_n "(cached) " >&6 35555dfecf96Smrgelse 35565dfecf96Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 35575dfecf96Smrg # We make a subdir and do the tests there. Otherwise we can end up 35585dfecf96Smrg # making bogus files that we don't know about and never remove. For 35595dfecf96Smrg # instance it was reported that on HP-UX the gcc test will end up 35605dfecf96Smrg # making a dummy file named `D' -- because `-MD' means `put the output 35615dfecf96Smrg # in D'. 35625dfecf96Smrg mkdir conftest.dir 35635dfecf96Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 35645dfecf96Smrg # using a relative directory. 35655dfecf96Smrg cp "$am_depcomp" conftest.dir 35665dfecf96Smrg cd conftest.dir 35675dfecf96Smrg # We will build objects and dependencies in a subdirectory because 35685dfecf96Smrg # it helps to detect inapplicable dependency modes. For instance 35695dfecf96Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 35705dfecf96Smrg # side effect of compilation, but ICC will put the dependencies in 35715dfecf96Smrg # the current directory while Tru64 will put them in the object 35725dfecf96Smrg # directory. 35735dfecf96Smrg mkdir sub 35745dfecf96Smrg 35755dfecf96Smrg am_cv_CC_dependencies_compiler_type=none 35765dfecf96Smrg if test "$am_compiler_list" = ""; then 35775dfecf96Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 35785dfecf96Smrg fi 3579c05e22d7Smrg am__universal=false 3580c05e22d7Smrg case " $depcc " in #( 3581c05e22d7Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3582c05e22d7Smrg esac 3583c05e22d7Smrg 35845dfecf96Smrg for depmode in $am_compiler_list; do 35855dfecf96Smrg # Setup a source with many dependencies, because some compilers 35865dfecf96Smrg # like to wrap large dependency lists on column 80 (with \), and 35875dfecf96Smrg # we should not choose a depcomp mode which is confused by this. 35885dfecf96Smrg # 35895dfecf96Smrg # We need to recreate these files for each test, as the compiler may 35905dfecf96Smrg # overwrite some of them when testing with obscure command lines. 35915dfecf96Smrg # This happens at least with the AIX C compiler. 35925dfecf96Smrg : > sub/conftest.c 35935dfecf96Smrg for i in 1 2 3 4 5 6; do 35945dfecf96Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 35955dfecf96Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 35965dfecf96Smrg # Solaris 8's {/usr,}/bin/sh. 35975dfecf96Smrg touch sub/conftst$i.h 35985dfecf96Smrg done 35995dfecf96Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 36005dfecf96Smrg 3601c05e22d7Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3602c05e22d7Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3603c05e22d7Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3604c05e22d7Smrg # versions had trouble with output in subdirs 3605c05e22d7Smrg am__obj=sub/conftest.${OBJEXT-o} 3606c05e22d7Smrg am__minus_obj="-o $am__obj" 36075dfecf96Smrg case $depmode in 3608c05e22d7Smrg gcc) 3609c05e22d7Smrg # This depmode causes a compiler race in universal mode. 3610c05e22d7Smrg test "$am__universal" = false || continue 3611c05e22d7Smrg ;; 36125dfecf96Smrg nosideeffect) 36135dfecf96Smrg # after this tag, mechanisms are not by side-effect, so they'll 36145dfecf96Smrg # only be used when explicitly requested 36155dfecf96Smrg if test "x$enable_dependency_tracking" = xyes; then 36165dfecf96Smrg continue 36175dfecf96Smrg else 36185dfecf96Smrg break 36195dfecf96Smrg fi 36205dfecf96Smrg ;; 3621c05e22d7Smrg msvisualcpp | msvcmsys) 3622c05e22d7Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3623c05e22d7Smrg # not run yet. These depmodes are late enough in the game, and 3624c05e22d7Smrg # so weak that their functioning should not be impacted. 3625c05e22d7Smrg am__obj=conftest.${OBJEXT-o} 3626c05e22d7Smrg am__minus_obj= 3627c05e22d7Smrg ;; 36285dfecf96Smrg none) break ;; 36295dfecf96Smrg esac 36305dfecf96Smrg if depmode=$depmode \ 3631c05e22d7Smrg source=sub/conftest.c object=$am__obj \ 36325dfecf96Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3633c05e22d7Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 36345dfecf96Smrg >/dev/null 2>conftest.err && 3635f14f4646Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 36365dfecf96Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3637c05e22d7Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 36385dfecf96Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 36395dfecf96Smrg # icc doesn't choke on unknown options, it will just issue warnings 36405dfecf96Smrg # or remarks (even with -Werror). So we grep stderr for any message 36415dfecf96Smrg # that says an option was ignored or not supported. 36425dfecf96Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 36435dfecf96Smrg # icc: Command line warning: ignoring option '-M'; no argument required 36445dfecf96Smrg # The diagnosis changed in icc 8.0: 36455dfecf96Smrg # icc: Command line remark: option '-MP' not supported 36465dfecf96Smrg if (grep 'ignoring option' conftest.err || 36475dfecf96Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 36485dfecf96Smrg am_cv_CC_dependencies_compiler_type=$depmode 36495dfecf96Smrg break 36505dfecf96Smrg fi 36515dfecf96Smrg fi 36525dfecf96Smrg done 36535dfecf96Smrg 36545dfecf96Smrg cd .. 36555dfecf96Smrg rm -rf conftest.dir 36565dfecf96Smrgelse 36575dfecf96Smrg am_cv_CC_dependencies_compiler_type=none 36585dfecf96Smrgfi 36595dfecf96Smrg 36605dfecf96Smrgfi 3661c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3662f14f4646Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 36635dfecf96SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 36645dfecf96Smrg 3665f14f4646Smrg if 36665dfecf96Smrg test "x$enable_dependency_tracking" != xno \ 36675dfecf96Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 36685dfecf96Smrg am__fastdepCC_TRUE= 36695dfecf96Smrg am__fastdepCC_FALSE='#' 36705dfecf96Smrgelse 36715dfecf96Smrg am__fastdepCC_TRUE='#' 36725dfecf96Smrg am__fastdepCC_FALSE= 36735dfecf96Smrgfi 36745dfecf96Smrg 36755dfecf96Smrg 3676c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3677c05e22d7Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3678c05e22d7Smrgif ${ac_cv_prog_cc_c99+:} false; then : 3679f14f4646Smrg $as_echo_n "(cached) " >&6 3680f14f4646Smrgelse 3681c05e22d7Smrg ac_cv_prog_cc_c99=no 3682c05e22d7Smrgac_save_CC=$CC 3683c05e22d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684f14f4646Smrg/* end confdefs.h. */ 3685c05e22d7Smrg#include <stdarg.h> 3686c05e22d7Smrg#include <stdbool.h> 3687c05e22d7Smrg#include <stdlib.h> 3688c05e22d7Smrg#include <wchar.h> 3689c05e22d7Smrg#include <stdio.h> 3690c05e22d7Smrg 3691c05e22d7Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3692c05e22d7Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3693c05e22d7Smrg#define showlist(...) puts (#__VA_ARGS__) 3694c05e22d7Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3695c05e22d7Smrgstatic void 3696c05e22d7Smrgtest_varargs_macros (void) 3697c05e22d7Smrg{ 3698c05e22d7Smrg int x = 1234; 3699c05e22d7Smrg int y = 5678; 3700c05e22d7Smrg debug ("Flag"); 3701c05e22d7Smrg debug ("X = %d\n", x); 3702c05e22d7Smrg showlist (The first, second, and third items.); 3703c05e22d7Smrg report (x>y, "x is %d but y is %d", x, y); 3704c05e22d7Smrg} 3705c05e22d7Smrg 3706c05e22d7Smrg// Check long long types. 3707c05e22d7Smrg#define BIG64 18446744073709551615ull 3708c05e22d7Smrg#define BIG32 4294967295ul 3709c05e22d7Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3710c05e22d7Smrg#if !BIG_OK 3711c05e22d7Smrg your preprocessor is broken; 3712c05e22d7Smrg#endif 3713c05e22d7Smrg#if BIG_OK 3714c05e22d7Smrg#else 3715c05e22d7Smrg your preprocessor is broken; 3716c05e22d7Smrg#endif 3717c05e22d7Smrgstatic long long int bignum = -9223372036854775807LL; 3718c05e22d7Smrgstatic unsigned long long int ubignum = BIG64; 3719c05e22d7Smrg 3720c05e22d7Smrgstruct incomplete_array 3721c05e22d7Smrg{ 3722c05e22d7Smrg int datasize; 3723c05e22d7Smrg double data[]; 3724c05e22d7Smrg}; 3725c05e22d7Smrg 3726c05e22d7Smrgstruct named_init { 3727c05e22d7Smrg int number; 3728c05e22d7Smrg const wchar_t *name; 3729c05e22d7Smrg double average; 3730c05e22d7Smrg}; 3731c05e22d7Smrg 3732c05e22d7Smrgtypedef const char *ccp; 3733c05e22d7Smrg 3734c05e22d7Smrgstatic inline int 3735c05e22d7Smrgtest_restrict (ccp restrict text) 3736c05e22d7Smrg{ 3737c05e22d7Smrg // See if C++-style comments work. 3738c05e22d7Smrg // Iterate through items via the restricted pointer. 3739c05e22d7Smrg // Also check for declarations in for loops. 3740c05e22d7Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3741c05e22d7Smrg continue; 3742c05e22d7Smrg return 0; 3743c05e22d7Smrg} 3744c05e22d7Smrg 3745c05e22d7Smrg// Check varargs and va_copy. 3746c05e22d7Smrgstatic void 3747c05e22d7Smrgtest_varargs (const char *format, ...) 3748c05e22d7Smrg{ 3749c05e22d7Smrg va_list args; 3750c05e22d7Smrg va_start (args, format); 3751c05e22d7Smrg va_list args_copy; 3752c05e22d7Smrg va_copy (args_copy, args); 3753c05e22d7Smrg 3754c05e22d7Smrg const char *str; 3755c05e22d7Smrg int number; 3756c05e22d7Smrg float fnumber; 3757c05e22d7Smrg 3758c05e22d7Smrg while (*format) 3759c05e22d7Smrg { 3760c05e22d7Smrg switch (*format++) 3761c05e22d7Smrg { 3762c05e22d7Smrg case 's': // string 3763c05e22d7Smrg str = va_arg (args_copy, const char *); 3764c05e22d7Smrg break; 3765c05e22d7Smrg case 'd': // int 3766c05e22d7Smrg number = va_arg (args_copy, int); 3767c05e22d7Smrg break; 3768c05e22d7Smrg case 'f': // float 3769c05e22d7Smrg fnumber = va_arg (args_copy, double); 3770c05e22d7Smrg break; 3771c05e22d7Smrg default: 3772c05e22d7Smrg break; 3773c05e22d7Smrg } 3774c05e22d7Smrg } 3775c05e22d7Smrg va_end (args_copy); 3776c05e22d7Smrg va_end (args); 3777c05e22d7Smrg} 3778f14f4646Smrg 3779f14f4646Smrgint 3780f14f4646Smrgmain () 3781f14f4646Smrg{ 3782f14f4646Smrg 3783c05e22d7Smrg // Check bool. 3784c05e22d7Smrg _Bool success = false; 3785c05e22d7Smrg 3786c05e22d7Smrg // Check restrict. 3787c05e22d7Smrg if (test_restrict ("String literal") == 0) 3788c05e22d7Smrg success = true; 3789c05e22d7Smrg char *restrict newvar = "Another string"; 3790c05e22d7Smrg 3791c05e22d7Smrg // Check varargs. 3792c05e22d7Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 3793c05e22d7Smrg test_varargs_macros (); 3794c05e22d7Smrg 3795c05e22d7Smrg // Check flexible array members. 3796c05e22d7Smrg struct incomplete_array *ia = 3797c05e22d7Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3798c05e22d7Smrg ia->datasize = 10; 3799c05e22d7Smrg for (int i = 0; i < ia->datasize; ++i) 3800c05e22d7Smrg ia->data[i] = i * 1.234; 3801c05e22d7Smrg 3802c05e22d7Smrg // Check named initializers. 3803c05e22d7Smrg struct named_init ni = { 3804c05e22d7Smrg .number = 34, 3805c05e22d7Smrg .name = L"Test wide string", 3806c05e22d7Smrg .average = 543.34343, 3807c05e22d7Smrg }; 3808c05e22d7Smrg 3809c05e22d7Smrg ni.number = 58; 3810c05e22d7Smrg 3811c05e22d7Smrg int dynamic_array[ni.number]; 3812c05e22d7Smrg dynamic_array[ni.number - 1] = 543; 3813c05e22d7Smrg 3814c05e22d7Smrg // work around unused variable warnings 3815c05e22d7Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3816c05e22d7Smrg || dynamic_array[ni.number - 1] != 543); 3817c05e22d7Smrg 3818f14f4646Smrg ; 3819f14f4646Smrg return 0; 3820f14f4646Smrg} 3821f14f4646Smrg_ACEOF 3822c05e22d7Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3823c05e22d7Smrgdo 3824c05e22d7Smrg CC="$ac_save_CC $ac_arg" 3825c05e22d7Smrg if ac_fn_c_try_compile "$LINENO"; then : 3826c05e22d7Smrg ac_cv_prog_cc_c99=$ac_arg 3827c05e22d7Smrgfi 3828c05e22d7Smrgrm -f core conftest.err conftest.$ac_objext 3829c05e22d7Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3830c05e22d7Smrgdone 3831c05e22d7Smrgrm -f conftest.$ac_ext 3832c05e22d7SmrgCC=$ac_save_CC 3833c05e22d7Smrg 3834c05e22d7Smrgfi 3835c05e22d7Smrg# AC_CACHE_VAL 3836c05e22d7Smrgcase "x$ac_cv_prog_cc_c99" in 3837c05e22d7Smrg x) 3838c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3839c05e22d7Smrg$as_echo "none needed" >&6; } ;; 3840c05e22d7Smrg xno) 3841c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3842c05e22d7Smrg$as_echo "unsupported" >&6; } ;; 3843c05e22d7Smrg *) 3844c05e22d7Smrg CC="$CC $ac_cv_prog_cc_c99" 3845c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3846c05e22d7Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3847c05e22d7Smrgesac 3848c05e22d7Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3849c05e22d7Smrg 3850c05e22d7Smrgfi 3851c05e22d7Smrg 3852c05e22d7Smrg 3853c05e22d7Smrg 3854c05e22d7Smrgac_ext=c 3855c05e22d7Smrgac_cpp='$CPP $CPPFLAGS' 3856c05e22d7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3857c05e22d7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3858c05e22d7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3859c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3860c05e22d7Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3861c05e22d7Smrg# On Suns, sometimes $CPP names a directory. 3862c05e22d7Smrgif test -n "$CPP" && test -d "$CPP"; then 3863c05e22d7Smrg CPP= 3864c05e22d7Smrgfi 3865c05e22d7Smrgif test -z "$CPP"; then 3866c05e22d7Smrg if ${ac_cv_prog_CPP+:} false; then : 3867c05e22d7Smrg $as_echo_n "(cached) " >&6 3868c05e22d7Smrgelse 3869c05e22d7Smrg # Double quotes because CPP needs to be expanded 3870c05e22d7Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3871c05e22d7Smrg do 3872c05e22d7Smrg ac_preproc_ok=false 3873c05e22d7Smrgfor ac_c_preproc_warn_flag in '' yes 3874c05e22d7Smrgdo 3875c05e22d7Smrg # Use a header file that comes with gcc, so configuring glibc 3876c05e22d7Smrg # with a fresh cross-compiler works. 3877c05e22d7Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3878c05e22d7Smrg # <limits.h> exists even on freestanding compilers. 3879c05e22d7Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3880c05e22d7Smrg # not just through cpp. "Syntax error" is here to catch this case. 3881c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3882c05e22d7Smrg/* end confdefs.h. */ 3883c05e22d7Smrg#ifdef __STDC__ 3884c05e22d7Smrg# include <limits.h> 3885c05e22d7Smrg#else 3886c05e22d7Smrg# include <assert.h> 3887c05e22d7Smrg#endif 3888c05e22d7Smrg Syntax error 3889c05e22d7Smrg_ACEOF 3890c05e22d7Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3891c05e22d7Smrg 3892c05e22d7Smrgelse 3893c05e22d7Smrg # Broken: fails on valid input. 3894c05e22d7Smrgcontinue 3895c05e22d7Smrgfi 3896c05e22d7Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3897c05e22d7Smrg 3898c05e22d7Smrg # OK, works on sane cases. Now check whether nonexistent headers 3899c05e22d7Smrg # can be detected and how. 3900c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3901c05e22d7Smrg/* end confdefs.h. */ 3902c05e22d7Smrg#include <ac_nonexistent.h> 3903c05e22d7Smrg_ACEOF 3904c05e22d7Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3905c05e22d7Smrg # Broken: success on invalid input. 3906c05e22d7Smrgcontinue 3907c05e22d7Smrgelse 3908c05e22d7Smrg # Passes both tests. 3909c05e22d7Smrgac_preproc_ok=: 3910c05e22d7Smrgbreak 3911c05e22d7Smrgfi 3912c05e22d7Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3913c05e22d7Smrg 3914c05e22d7Smrgdone 3915c05e22d7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3916c05e22d7Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3917c05e22d7Smrgif $ac_preproc_ok; then : 3918c05e22d7Smrg break 3919c05e22d7Smrgfi 3920c05e22d7Smrg 3921c05e22d7Smrg done 3922c05e22d7Smrg ac_cv_prog_CPP=$CPP 3923c05e22d7Smrg 3924c05e22d7Smrgfi 3925c05e22d7Smrg CPP=$ac_cv_prog_CPP 3926c05e22d7Smrgelse 3927c05e22d7Smrg ac_cv_prog_CPP=$CPP 3928c05e22d7Smrgfi 3929c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3930c05e22d7Smrg$as_echo "$CPP" >&6; } 3931c05e22d7Smrgac_preproc_ok=false 3932c05e22d7Smrgfor ac_c_preproc_warn_flag in '' yes 3933c05e22d7Smrgdo 3934c05e22d7Smrg # Use a header file that comes with gcc, so configuring glibc 3935c05e22d7Smrg # with a fresh cross-compiler works. 3936c05e22d7Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3937c05e22d7Smrg # <limits.h> exists even on freestanding compilers. 3938c05e22d7Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3939c05e22d7Smrg # not just through cpp. "Syntax error" is here to catch this case. 3940c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3941c05e22d7Smrg/* end confdefs.h. */ 3942c05e22d7Smrg#ifdef __STDC__ 3943c05e22d7Smrg# include <limits.h> 3944c05e22d7Smrg#else 3945c05e22d7Smrg# include <assert.h> 3946c05e22d7Smrg#endif 3947c05e22d7Smrg Syntax error 3948c05e22d7Smrg_ACEOF 3949c05e22d7Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3950c05e22d7Smrg 3951c05e22d7Smrgelse 3952c05e22d7Smrg # Broken: fails on valid input. 3953c05e22d7Smrgcontinue 3954c05e22d7Smrgfi 3955c05e22d7Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3956c05e22d7Smrg 3957c05e22d7Smrg # OK, works on sane cases. Now check whether nonexistent headers 3958c05e22d7Smrg # can be detected and how. 3959c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960c05e22d7Smrg/* end confdefs.h. */ 3961c05e22d7Smrg#include <ac_nonexistent.h> 3962c05e22d7Smrg_ACEOF 3963c05e22d7Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3964c05e22d7Smrg # Broken: success on invalid input. 3965c05e22d7Smrgcontinue 3966c05e22d7Smrgelse 3967c05e22d7Smrg # Passes both tests. 3968c05e22d7Smrgac_preproc_ok=: 3969c05e22d7Smrgbreak 3970c05e22d7Smrgfi 3971c05e22d7Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3972c05e22d7Smrg 3973c05e22d7Smrgdone 3974c05e22d7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3975c05e22d7Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3976c05e22d7Smrgif $ac_preproc_ok; then : 3977c05e22d7Smrg 3978c05e22d7Smrgelse 3979c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3980c05e22d7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3981c05e22d7Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3982c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 3983c05e22d7Smrgfi 3984c05e22d7Smrg 3985c05e22d7Smrgac_ext=c 3986c05e22d7Smrgac_cpp='$CPP $CPPFLAGS' 3987c05e22d7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3988c05e22d7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3989c05e22d7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3990c05e22d7Smrg 3991c05e22d7Smrg 3992c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3993c05e22d7Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3994c05e22d7Smrgif ${ac_cv_path_GREP+:} false; then : 3995c05e22d7Smrg $as_echo_n "(cached) " >&6 3996c05e22d7Smrgelse 3997c05e22d7Smrg if test -z "$GREP"; then 3998c05e22d7Smrg ac_path_GREP_found=false 3999c05e22d7Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4000c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001c05e22d7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4002c05e22d7Smrgdo 4003c05e22d7Smrg IFS=$as_save_IFS 4004c05e22d7Smrg test -z "$as_dir" && as_dir=. 4005c05e22d7Smrg for ac_prog in grep ggrep; do 4006c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4007c05e22d7Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4008c05e22d7Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4009c05e22d7Smrg# Check for GNU ac_path_GREP and select it if it is found. 4010c05e22d7Smrg # Check for GNU $ac_path_GREP 4011c05e22d7Smrgcase `"$ac_path_GREP" --version 2>&1` in 4012c05e22d7Smrg*GNU*) 4013c05e22d7Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4014c05e22d7Smrg*) 4015c05e22d7Smrg ac_count=0 4016c05e22d7Smrg $as_echo_n 0123456789 >"conftest.in" 4017c05e22d7Smrg while : 4018c05e22d7Smrg do 4019c05e22d7Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4020c05e22d7Smrg mv "conftest.tmp" "conftest.in" 4021c05e22d7Smrg cp "conftest.in" "conftest.nl" 4022c05e22d7Smrg $as_echo 'GREP' >> "conftest.nl" 4023c05e22d7Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4024c05e22d7Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4025c05e22d7Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4026c05e22d7Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4027c05e22d7Smrg # Best one so far, save it but keep looking for a better one 4028c05e22d7Smrg ac_cv_path_GREP="$ac_path_GREP" 4029c05e22d7Smrg ac_path_GREP_max=$ac_count 4030c05e22d7Smrg fi 4031c05e22d7Smrg # 10*(2^10) chars as input seems more than enough 4032c05e22d7Smrg test $ac_count -gt 10 && break 4033c05e22d7Smrg done 4034c05e22d7Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4035c05e22d7Smrgesac 4036c05e22d7Smrg 4037c05e22d7Smrg $ac_path_GREP_found && break 3 4038c05e22d7Smrg done 4039c05e22d7Smrg done 4040c05e22d7Smrg done 4041c05e22d7SmrgIFS=$as_save_IFS 4042c05e22d7Smrg if test -z "$ac_cv_path_GREP"; then 4043c05e22d7Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4044c05e22d7Smrg fi 4045c05e22d7Smrgelse 4046c05e22d7Smrg ac_cv_path_GREP=$GREP 4047c05e22d7Smrgfi 4048c05e22d7Smrg 4049c05e22d7Smrgfi 4050c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4051c05e22d7Smrg$as_echo "$ac_cv_path_GREP" >&6; } 4052c05e22d7Smrg GREP="$ac_cv_path_GREP" 4053c05e22d7Smrg 4054c05e22d7Smrg 4055c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4056c05e22d7Smrg$as_echo_n "checking for egrep... " >&6; } 4057c05e22d7Smrgif ${ac_cv_path_EGREP+:} false; then : 4058c05e22d7Smrg $as_echo_n "(cached) " >&6 4059c05e22d7Smrgelse 4060c05e22d7Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4061c05e22d7Smrg then ac_cv_path_EGREP="$GREP -E" 4062c05e22d7Smrg else 4063c05e22d7Smrg if test -z "$EGREP"; then 4064c05e22d7Smrg ac_path_EGREP_found=false 4065c05e22d7Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4066c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067c05e22d7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4068c05e22d7Smrgdo 4069c05e22d7Smrg IFS=$as_save_IFS 4070c05e22d7Smrg test -z "$as_dir" && as_dir=. 4071c05e22d7Smrg for ac_prog in egrep; do 4072c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4073c05e22d7Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4074c05e22d7Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4075c05e22d7Smrg# Check for GNU ac_path_EGREP and select it if it is found. 4076c05e22d7Smrg # Check for GNU $ac_path_EGREP 4077c05e22d7Smrgcase `"$ac_path_EGREP" --version 2>&1` in 4078c05e22d7Smrg*GNU*) 4079c05e22d7Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4080c05e22d7Smrg*) 4081c05e22d7Smrg ac_count=0 4082c05e22d7Smrg $as_echo_n 0123456789 >"conftest.in" 4083c05e22d7Smrg while : 4084c05e22d7Smrg do 4085c05e22d7Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4086c05e22d7Smrg mv "conftest.tmp" "conftest.in" 4087c05e22d7Smrg cp "conftest.in" "conftest.nl" 4088c05e22d7Smrg $as_echo 'EGREP' >> "conftest.nl" 4089c05e22d7Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4090c05e22d7Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4091c05e22d7Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4092c05e22d7Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4093c05e22d7Smrg # Best one so far, save it but keep looking for a better one 4094c05e22d7Smrg ac_cv_path_EGREP="$ac_path_EGREP" 4095c05e22d7Smrg ac_path_EGREP_max=$ac_count 4096c05e22d7Smrg fi 4097c05e22d7Smrg # 10*(2^10) chars as input seems more than enough 4098c05e22d7Smrg test $ac_count -gt 10 && break 4099c05e22d7Smrg done 4100c05e22d7Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4101c05e22d7Smrgesac 4102c05e22d7Smrg 4103c05e22d7Smrg $ac_path_EGREP_found && break 3 4104c05e22d7Smrg done 4105c05e22d7Smrg done 4106c05e22d7Smrg done 4107c05e22d7SmrgIFS=$as_save_IFS 4108c05e22d7Smrg if test -z "$ac_cv_path_EGREP"; then 4109c05e22d7Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4110c05e22d7Smrg fi 4111c05e22d7Smrgelse 4112c05e22d7Smrg ac_cv_path_EGREP=$EGREP 4113c05e22d7Smrgfi 4114c05e22d7Smrg 4115c05e22d7Smrg fi 4116c05e22d7Smrgfi 4117c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4118c05e22d7Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 4119c05e22d7Smrg EGREP="$ac_cv_path_EGREP" 4120c05e22d7Smrg 4121c05e22d7Smrg 4122c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4123c05e22d7Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 4124c05e22d7Smrgif ${ac_cv_header_stdc+:} false; then : 4125c05e22d7Smrg $as_echo_n "(cached) " >&6 4126c05e22d7Smrgelse 4127c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128c05e22d7Smrg/* end confdefs.h. */ 4129c05e22d7Smrg#include <stdlib.h> 4130c05e22d7Smrg#include <stdarg.h> 4131c05e22d7Smrg#include <string.h> 4132c05e22d7Smrg#include <float.h> 4133c05e22d7Smrg 4134c05e22d7Smrgint 4135c05e22d7Smrgmain () 4136c05e22d7Smrg{ 4137c05e22d7Smrg 4138c05e22d7Smrg ; 4139c05e22d7Smrg return 0; 4140c05e22d7Smrg} 4141c05e22d7Smrg_ACEOF 4142c05e22d7Smrgif ac_fn_c_try_compile "$LINENO"; then : 4143c05e22d7Smrg ac_cv_header_stdc=yes 4144c05e22d7Smrgelse 4145c05e22d7Smrg ac_cv_header_stdc=no 4146c05e22d7Smrgfi 4147c05e22d7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4148c05e22d7Smrg 4149c05e22d7Smrgif test $ac_cv_header_stdc = yes; then 4150c05e22d7Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4151c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152c05e22d7Smrg/* end confdefs.h. */ 4153c05e22d7Smrg#include <string.h> 4154c05e22d7Smrg 4155c05e22d7Smrg_ACEOF 4156c05e22d7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4157c05e22d7Smrg $EGREP "memchr" >/dev/null 2>&1; then : 4158c05e22d7Smrg 4159c05e22d7Smrgelse 4160c05e22d7Smrg ac_cv_header_stdc=no 4161c05e22d7Smrgfi 4162c05e22d7Smrgrm -f conftest* 4163c05e22d7Smrg 4164c05e22d7Smrgfi 4165c05e22d7Smrg 4166c05e22d7Smrgif test $ac_cv_header_stdc = yes; then 4167c05e22d7Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4168c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169c05e22d7Smrg/* end confdefs.h. */ 4170c05e22d7Smrg#include <stdlib.h> 4171c05e22d7Smrg 4172c05e22d7Smrg_ACEOF 4173c05e22d7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4174c05e22d7Smrg $EGREP "free" >/dev/null 2>&1; then : 4175c05e22d7Smrg 4176c05e22d7Smrgelse 4177c05e22d7Smrg ac_cv_header_stdc=no 4178c05e22d7Smrgfi 4179c05e22d7Smrgrm -f conftest* 4180c05e22d7Smrg 4181c05e22d7Smrgfi 4182c05e22d7Smrg 4183c05e22d7Smrgif test $ac_cv_header_stdc = yes; then 4184c05e22d7Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4185c05e22d7Smrg if test "$cross_compiling" = yes; then : 4186c05e22d7Smrg : 4187c05e22d7Smrgelse 4188c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189c05e22d7Smrg/* end confdefs.h. */ 4190c05e22d7Smrg#include <ctype.h> 4191c05e22d7Smrg#include <stdlib.h> 4192c05e22d7Smrg#if ((' ' & 0x0FF) == 0x020) 4193c05e22d7Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4194c05e22d7Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4195c05e22d7Smrg#else 4196c05e22d7Smrg# define ISLOWER(c) \ 4197c05e22d7Smrg (('a' <= (c) && (c) <= 'i') \ 4198c05e22d7Smrg || ('j' <= (c) && (c) <= 'r') \ 4199c05e22d7Smrg || ('s' <= (c) && (c) <= 'z')) 4200c05e22d7Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4201c05e22d7Smrg#endif 4202c05e22d7Smrg 4203c05e22d7Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4204c05e22d7Smrgint 4205c05e22d7Smrgmain () 4206c05e22d7Smrg{ 4207c05e22d7Smrg int i; 4208c05e22d7Smrg for (i = 0; i < 256; i++) 4209c05e22d7Smrg if (XOR (islower (i), ISLOWER (i)) 4210c05e22d7Smrg || toupper (i) != TOUPPER (i)) 4211c05e22d7Smrg return 2; 4212c05e22d7Smrg return 0; 4213c05e22d7Smrg} 4214c05e22d7Smrg_ACEOF 4215c05e22d7Smrgif ac_fn_c_try_run "$LINENO"; then : 4216c05e22d7Smrg 4217c05e22d7Smrgelse 4218c05e22d7Smrg ac_cv_header_stdc=no 4219c05e22d7Smrgfi 4220c05e22d7Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4221c05e22d7Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4222c05e22d7Smrgfi 4223c05e22d7Smrg 4224c05e22d7Smrgfi 4225c05e22d7Smrgfi 4226c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4227c05e22d7Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4228c05e22d7Smrgif test $ac_cv_header_stdc = yes; then 4229c05e22d7Smrg 4230c05e22d7Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4231c05e22d7Smrg 4232c05e22d7Smrgfi 4233c05e22d7Smrg 4234c05e22d7Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4235c05e22d7Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4236c05e22d7Smrg inttypes.h stdint.h unistd.h 4237c05e22d7Smrgdo : 4238c05e22d7Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4239c05e22d7Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4240c05e22d7Smrg" 4241c05e22d7Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4242c05e22d7Smrg cat >>confdefs.h <<_ACEOF 4243c05e22d7Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4244c05e22d7Smrg_ACEOF 4245c05e22d7Smrg 4246c05e22d7Smrgfi 4247c05e22d7Smrg 4248c05e22d7Smrgdone 4249c05e22d7Smrg 4250c05e22d7Smrg 4251c05e22d7Smrg 4252c05e22d7Smrg 4253c05e22d7Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4254c05e22d7Smrg if test -n "$ac_tool_prefix"; then 4255c05e22d7Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4256c05e22d7Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4257c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4258c05e22d7Smrg$as_echo_n "checking for $ac_word... " >&6; } 4259c05e22d7Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4260c05e22d7Smrg $as_echo_n "(cached) " >&6 4261c05e22d7Smrgelse 4262c05e22d7Smrg case $PKG_CONFIG in 4263c05e22d7Smrg [\\/]* | ?:[\\/]*) 4264c05e22d7Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4265c05e22d7Smrg ;; 4266c05e22d7Smrg *) 4267c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4268c05e22d7Smrgfor as_dir in $PATH 4269c05e22d7Smrgdo 4270c05e22d7Smrg IFS=$as_save_IFS 4271c05e22d7Smrg test -z "$as_dir" && as_dir=. 4272c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4273c05e22d7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4274c05e22d7Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4275c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4276c05e22d7Smrg break 2 4277c05e22d7Smrg fi 4278c05e22d7Smrgdone 4279c05e22d7Smrg done 4280c05e22d7SmrgIFS=$as_save_IFS 4281c05e22d7Smrg 4282c05e22d7Smrg ;; 4283c05e22d7Smrgesac 4284c05e22d7Smrgfi 4285c05e22d7SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4286c05e22d7Smrgif test -n "$PKG_CONFIG"; then 4287c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4288c05e22d7Smrg$as_echo "$PKG_CONFIG" >&6; } 4289c05e22d7Smrgelse 4290c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291c05e22d7Smrg$as_echo "no" >&6; } 4292c05e22d7Smrgfi 4293c05e22d7Smrg 4294c05e22d7Smrg 4295c05e22d7Smrgfi 4296c05e22d7Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4297c05e22d7Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4298c05e22d7Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4299c05e22d7Smrgset dummy pkg-config; ac_word=$2 4300c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4301c05e22d7Smrg$as_echo_n "checking for $ac_word... " >&6; } 4302c05e22d7Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4303c05e22d7Smrg $as_echo_n "(cached) " >&6 4304c05e22d7Smrgelse 4305c05e22d7Smrg case $ac_pt_PKG_CONFIG in 4306c05e22d7Smrg [\\/]* | ?:[\\/]*) 4307c05e22d7Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4308c05e22d7Smrg ;; 4309c05e22d7Smrg *) 4310c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311c05e22d7Smrgfor as_dir in $PATH 4312c05e22d7Smrgdo 4313c05e22d7Smrg IFS=$as_save_IFS 4314c05e22d7Smrg test -z "$as_dir" && as_dir=. 4315c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4316c05e22d7Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4317c05e22d7Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4318c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4319c05e22d7Smrg break 2 4320c05e22d7Smrg fi 4321c05e22d7Smrgdone 4322c05e22d7Smrg done 4323c05e22d7SmrgIFS=$as_save_IFS 4324c05e22d7Smrg 4325c05e22d7Smrg ;; 4326c05e22d7Smrgesac 4327c05e22d7Smrgfi 4328c05e22d7Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4329c05e22d7Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4330c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4331c05e22d7Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4332c05e22d7Smrgelse 4333c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4334c05e22d7Smrg$as_echo "no" >&6; } 4335c05e22d7Smrgfi 4336c05e22d7Smrg 4337c05e22d7Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4338c05e22d7Smrg PKG_CONFIG="" 4339c05e22d7Smrg else 4340c05e22d7Smrg case $cross_compiling:$ac_tool_warned in 4341c05e22d7Smrgyes:) 4342c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4343c05e22d7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4344c05e22d7Smrgac_tool_warned=yes ;; 4345c05e22d7Smrgesac 4346c05e22d7Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4347c05e22d7Smrg fi 4348c05e22d7Smrgelse 4349c05e22d7Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4350c05e22d7Smrgfi 4351c05e22d7Smrg 4352c05e22d7Smrgfi 4353c05e22d7Smrgif test -n "$PKG_CONFIG"; then 4354c05e22d7Smrg _pkg_min_version=0.9.0 4355c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4356c05e22d7Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4357c05e22d7Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4358c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4359c05e22d7Smrg$as_echo "yes" >&6; } 4360c05e22d7Smrg else 4361c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4362c05e22d7Smrg$as_echo "no" >&6; } 4363c05e22d7Smrg PKG_CONFIG="" 4364c05e22d7Smrg fi 4365c05e22d7Smrg 4366c05e22d7Smrgfi 4367c05e22d7Smrg# Make sure we can run config.sub. 4368c05e22d7Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4369c05e22d7Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4370c05e22d7Smrg 4371c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4372c05e22d7Smrg$as_echo_n "checking build system type... " >&6; } 4373c05e22d7Smrgif ${ac_cv_build+:} false; then : 4374c05e22d7Smrg $as_echo_n "(cached) " >&6 4375c05e22d7Smrgelse 4376c05e22d7Smrg ac_build_alias=$build_alias 4377c05e22d7Smrgtest "x$ac_build_alias" = x && 4378c05e22d7Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4379c05e22d7Smrgtest "x$ac_build_alias" = x && 4380c05e22d7Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4381c05e22d7Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4382c05e22d7Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4383c05e22d7Smrg 4384c05e22d7Smrgfi 4385c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4386c05e22d7Smrg$as_echo "$ac_cv_build" >&6; } 4387c05e22d7Smrgcase $ac_cv_build in 4388c05e22d7Smrg*-*-*) ;; 4389c05e22d7Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4390c05e22d7Smrgesac 4391c05e22d7Smrgbuild=$ac_cv_build 4392c05e22d7Smrgac_save_IFS=$IFS; IFS='-' 4393c05e22d7Smrgset x $ac_cv_build 4394c05e22d7Smrgshift 4395c05e22d7Smrgbuild_cpu=$1 4396c05e22d7Smrgbuild_vendor=$2 4397c05e22d7Smrgshift; shift 4398c05e22d7Smrg# Remember, the first character of IFS is used to create $*, 4399c05e22d7Smrg# except with old shells: 4400c05e22d7Smrgbuild_os=$* 4401c05e22d7SmrgIFS=$ac_save_IFS 4402c05e22d7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4403c05e22d7Smrg 4404c05e22d7Smrg 4405c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4406c05e22d7Smrg$as_echo_n "checking host system type... " >&6; } 4407c05e22d7Smrgif ${ac_cv_host+:} false; then : 4408c05e22d7Smrg $as_echo_n "(cached) " >&6 4409c05e22d7Smrgelse 4410c05e22d7Smrg if test "x$host_alias" = x; then 4411c05e22d7Smrg ac_cv_host=$ac_cv_build 4412c05e22d7Smrgelse 4413c05e22d7Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4414c05e22d7Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4415c05e22d7Smrgfi 4416c05e22d7Smrg 4417c05e22d7Smrgfi 4418c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4419c05e22d7Smrg$as_echo "$ac_cv_host" >&6; } 4420c05e22d7Smrgcase $ac_cv_host in 4421c05e22d7Smrg*-*-*) ;; 4422c05e22d7Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4423c05e22d7Smrgesac 4424c05e22d7Smrghost=$ac_cv_host 4425c05e22d7Smrgac_save_IFS=$IFS; IFS='-' 4426c05e22d7Smrgset x $ac_cv_host 4427c05e22d7Smrgshift 4428c05e22d7Smrghost_cpu=$1 4429c05e22d7Smrghost_vendor=$2 4430c05e22d7Smrgshift; shift 4431c05e22d7Smrg# Remember, the first character of IFS is used to create $*, 4432c05e22d7Smrg# except with old shells: 4433c05e22d7Smrghost_os=$* 4434c05e22d7SmrgIFS=$ac_save_IFS 4435c05e22d7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4436c05e22d7Smrg 4437c05e22d7Smrg 4438c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4439c05e22d7Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4440c05e22d7Smrgif ${ac_cv_path_SED+:} false; then : 4441c05e22d7Smrg $as_echo_n "(cached) " >&6 4442c05e22d7Smrgelse 4443c05e22d7Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4444c05e22d7Smrg for ac_i in 1 2 3 4 5 6 7; do 4445c05e22d7Smrg ac_script="$ac_script$as_nl$ac_script" 4446c05e22d7Smrg done 4447c05e22d7Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4448c05e22d7Smrg { ac_script=; unset ac_script;} 4449c05e22d7Smrg if test -z "$SED"; then 4450c05e22d7Smrg ac_path_SED_found=false 4451c05e22d7Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4452c05e22d7Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453c05e22d7Smrgfor as_dir in $PATH 4454c05e22d7Smrgdo 4455c05e22d7Smrg IFS=$as_save_IFS 4456c05e22d7Smrg test -z "$as_dir" && as_dir=. 4457c05e22d7Smrg for ac_prog in sed gsed; do 4458c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4459c05e22d7Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4460c05e22d7Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4461c05e22d7Smrg# Check for GNU ac_path_SED and select it if it is found. 4462c05e22d7Smrg # Check for GNU $ac_path_SED 4463c05e22d7Smrgcase `"$ac_path_SED" --version 2>&1` in 4464c05e22d7Smrg*GNU*) 4465c05e22d7Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4466c05e22d7Smrg*) 4467c05e22d7Smrg ac_count=0 4468c05e22d7Smrg $as_echo_n 0123456789 >"conftest.in" 4469c05e22d7Smrg while : 4470c05e22d7Smrg do 4471c05e22d7Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4472c05e22d7Smrg mv "conftest.tmp" "conftest.in" 4473c05e22d7Smrg cp "conftest.in" "conftest.nl" 4474c05e22d7Smrg $as_echo '' >> "conftest.nl" 4475c05e22d7Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4476c05e22d7Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4477c05e22d7Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4478c05e22d7Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4479c05e22d7Smrg # Best one so far, save it but keep looking for a better one 4480c05e22d7Smrg ac_cv_path_SED="$ac_path_SED" 4481c05e22d7Smrg ac_path_SED_max=$ac_count 4482c05e22d7Smrg fi 4483c05e22d7Smrg # 10*(2^10) chars as input seems more than enough 4484c05e22d7Smrg test $ac_count -gt 10 && break 4485c05e22d7Smrg done 4486c05e22d7Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4487c05e22d7Smrgesac 4488c05e22d7Smrg 4489c05e22d7Smrg $ac_path_SED_found && break 3 4490c05e22d7Smrg done 4491c05e22d7Smrg done 4492c05e22d7Smrg done 4493c05e22d7SmrgIFS=$as_save_IFS 4494c05e22d7Smrg if test -z "$ac_cv_path_SED"; then 4495c05e22d7Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4496c05e22d7Smrg fi 4497c05e22d7Smrgelse 4498c05e22d7Smrg ac_cv_path_SED=$SED 4499c05e22d7Smrgfi 4500c05e22d7Smrg 4501c05e22d7Smrgfi 4502c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4503c05e22d7Smrg$as_echo "$ac_cv_path_SED" >&6; } 4504c05e22d7Smrg SED="$ac_cv_path_SED" 4505c05e22d7Smrg rm -f conftest.sed 4506c05e22d7Smrg 4507c05e22d7Smrg 4508c05e22d7Smrg 4509c05e22d7Smrg 4510c05e22d7Smrg 4511c05e22d7Smrgif test "x$GCC" = xyes ; then 4512c05e22d7Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4513c05e22d7Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4514c05e22d7Smrg-Wbad-function-cast -Wformat=2" 4515c05e22d7Smrg case `$CC -dumpversion` in 4516c05e22d7Smrg 3.4.* | 4.*) 4517c05e22d7Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4518c05e22d7Smrg ;; 4519c05e22d7Smrg esac 4520c05e22d7Smrgelse 4521c05e22d7Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4522c05e22d7Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4523c05e22d7Smrg SUNCC="yes" 4524c05e22d7Smrgelse 4525c05e22d7Smrg SUNCC="no" 4526c05e22d7Smrgfi 4527c05e22d7Smrg 4528c05e22d7Smrg if test "x$SUNCC" = "xyes"; then 4529c05e22d7Smrg CWARNFLAGS="-v" 4530c05e22d7Smrg fi 4531c05e22d7Smrgfi 4532c05e22d7Smrg 4533c05e22d7Smrg 4534c05e22d7Smrg 4535c05e22d7Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4536c05e22d7Smrg 4537c05e22d7Smrg 4538c05e22d7Smrg 4539c05e22d7Smrg# Check whether --enable-strict-compilation was given. 4540c05e22d7Smrgif test "${enable_strict_compilation+set}" = set; then : 4541c05e22d7Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4542c05e22d7Smrgelse 4543c05e22d7Smrg STRICT_COMPILE=no 4544c05e22d7Smrgfi 4545c05e22d7Smrg 4546c05e22d7Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4547c05e22d7Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4548c05e22d7Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4549c05e22d7Smrg SUNCC="yes" 4550c05e22d7Smrgelse 4551c05e22d7Smrg SUNCC="no" 4552c05e22d7Smrgfi 4553c05e22d7Smrg 4554c05e22d7Smrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4555c05e22d7Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4556c05e22d7Smrg INTELCC="yes" 4557c05e22d7Smrgelse 4558c05e22d7Smrg INTELCC="no" 4559c05e22d7Smrgfi 4560c05e22d7Smrg 4561c05e22d7Smrg if test "x$GCC" = xyes ; then 4562c05e22d7Smrg STRICT_CFLAGS="-pedantic -Werror" 4563c05e22d7Smrg elif test "x$SUNCC" = "xyes"; then 4564c05e22d7Smrg STRICT_CFLAGS="-errwarn" 4565c05e22d7Smrg elif test "x$INTELCC" = "xyes"; then 4566c05e22d7Smrg STRICT_CFLAGS="-Werror" 4567c05e22d7Smrg fi 4568c05e22d7Smrgfi 4569c05e22d7SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4570c05e22d7Smrg 4571c05e22d7Smrg 4572c05e22d7Smrg 4573c05e22d7Smrg 4574c05e22d7Smrgcat >>confdefs.h <<_ACEOF 4575c05e22d7Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4576c05e22d7Smrg_ACEOF 4577c05e22d7Smrg 4578c05e22d7Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4579c05e22d7Smrg if test "x$PVM" = "x"; then 4580c05e22d7Smrg PVM="0" 4581c05e22d7Smrg fi 4582c05e22d7Smrg 4583c05e22d7Smrgcat >>confdefs.h <<_ACEOF 4584c05e22d7Smrg#define PACKAGE_VERSION_MINOR $PVM 4585c05e22d7Smrg_ACEOF 4586c05e22d7Smrg 4587c05e22d7Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4588c05e22d7Smrg if test "x$PVP" = "x"; then 4589c05e22d7Smrg PVP="0" 4590c05e22d7Smrg fi 4591c05e22d7Smrg 4592c05e22d7Smrgcat >>confdefs.h <<_ACEOF 4593c05e22d7Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4594c05e22d7Smrg_ACEOF 4595c05e22d7Smrg 4596c05e22d7Smrg 4597c05e22d7Smrg 4598c05e22d7SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4599c05e22d7Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4600c05e22d7Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4601c05e22d7Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4602c05e22d7Smrg 4603c05e22d7Smrg 4604c05e22d7Smrg 4605c05e22d7Smrg 4606c05e22d7Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4607c05e22d7SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4608c05e22d7Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4609c05e22d7Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4610c05e22d7Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4611c05e22d7Smrg 4612c05e22d7Smrg 4613c05e22d7Smrg 4614c05e22d7Smrg 4615c05e22d7Smrg 4616c05e22d7Smrg 4617c05e22d7Smrgif test x$APP_MAN_SUFFIX = x ; then 4618c05e22d7Smrg APP_MAN_SUFFIX=1 4619c05e22d7Smrgfi 4620c05e22d7Smrgif test x$APP_MAN_DIR = x ; then 4621c05e22d7Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4622c05e22d7Smrgfi 4623c05e22d7Smrg 4624c05e22d7Smrgif test x$LIB_MAN_SUFFIX = x ; then 4625c05e22d7Smrg LIB_MAN_SUFFIX=3 4626c05e22d7Smrgfi 4627c05e22d7Smrgif test x$LIB_MAN_DIR = x ; then 4628c05e22d7Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4629c05e22d7Smrgfi 4630c05e22d7Smrg 4631c05e22d7Smrgif test x$FILE_MAN_SUFFIX = x ; then 4632c05e22d7Smrg case $host_os in 4633c05e22d7Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4634c05e22d7Smrg *) FILE_MAN_SUFFIX=5 ;; 4635c05e22d7Smrg esac 4636c05e22d7Smrgfi 4637c05e22d7Smrgif test x$FILE_MAN_DIR = x ; then 4638c05e22d7Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4639c05e22d7Smrgfi 4640c05e22d7Smrg 4641c05e22d7Smrgif test x$MISC_MAN_SUFFIX = x ; then 4642c05e22d7Smrg case $host_os in 4643c05e22d7Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4644c05e22d7Smrg *) MISC_MAN_SUFFIX=7 ;; 4645c05e22d7Smrg esac 4646c05e22d7Smrgfi 4647c05e22d7Smrgif test x$MISC_MAN_DIR = x ; then 4648c05e22d7Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4649c05e22d7Smrgfi 4650c05e22d7Smrg 4651c05e22d7Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4652c05e22d7Smrg case $host_os in 4653c05e22d7Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4654c05e22d7Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4655c05e22d7Smrg esac 4656c05e22d7Smrgfi 4657c05e22d7Smrgif test x$DRIVER_MAN_DIR = x ; then 4658c05e22d7Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4659c05e22d7Smrgfi 4660c05e22d7Smrg 4661c05e22d7Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4662c05e22d7Smrg case $host_os in 4663c05e22d7Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4664c05e22d7Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4665c05e22d7Smrg esac 4666c05e22d7Smrgfi 4667c05e22d7Smrgif test x$ADMIN_MAN_DIR = x ; then 4668c05e22d7Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4669c05e22d7Smrgfi 4670c05e22d7Smrg 4671c05e22d7Smrg 4672c05e22d7Smrg 4673c05e22d7Smrg 4674c05e22d7Smrg 4675c05e22d7Smrg 4676c05e22d7Smrg 4677c05e22d7Smrg 4678c05e22d7Smrg 4679c05e22d7Smrg 4680c05e22d7Smrg 4681c05e22d7Smrg 4682c05e22d7Smrg 4683c05e22d7Smrg 4684c05e22d7Smrg 4685c05e22d7SmrgXORG_MAN_PAGE="X Version 11" 4686c05e22d7Smrg 4687c05e22d7SmrgMAN_SUBSTS="\ 4688c05e22d7Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4689c05e22d7Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4690c05e22d7Smrg -e 's|__xservername__|Xorg|g' \ 4691c05e22d7Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 4692c05e22d7Smrg -e 's|__projectroot__|\$(prefix)|g' \ 4693c05e22d7Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4694c05e22d7Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4695c05e22d7Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4696c05e22d7Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4697c05e22d7Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4698c05e22d7Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4699c05e22d7Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4700c05e22d7Smrg 4701c05e22d7Smrg 4702c05e22d7Smrg 4703c05e22d7Smrg# Check whether --enable-silent-rules was given. 4704c05e22d7Smrgif test "${enable_silent_rules+set}" = set; then : 4705c05e22d7Smrg enableval=$enable_silent_rules; 4706c05e22d7Smrgfi 4707c05e22d7Smrg 4708c05e22d7Smrgcase $enable_silent_rules in 4709c05e22d7Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4710c05e22d7Smrgno) AM_DEFAULT_VERBOSITY=1;; 4711c05e22d7Smrg*) AM_DEFAULT_VERBOSITY=0;; 4712c05e22d7Smrgesac 4713c05e22d7SmrgAM_BACKSLASH='\' 4714c05e22d7Smrg 4715c05e22d7Smrg 4716c05e22d7Smrg 4717c05e22d7Smrgac_config_headers="$ac_config_headers config.h" 4718c05e22d7Smrg 4719c05e22d7Smrg 4720c05e22d7Smrgif test "x$CC" != xcc; then 4721c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4722c05e22d7Smrg$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4723c05e22d7Smrgelse 4724c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4725c05e22d7Smrg$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4726c05e22d7Smrgfi 4727c05e22d7Smrgset dummy $CC; ac_cc=`$as_echo "$2" | 4728c05e22d7Smrg sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4729c05e22d7Smrgif eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4730c05e22d7Smrg $as_echo_n "(cached) " >&6 4731c05e22d7Smrgelse 4732c05e22d7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733c05e22d7Smrg/* end confdefs.h. */ 4734c05e22d7Smrg 4735c05e22d7Smrgint 4736c05e22d7Smrgmain () 4737c05e22d7Smrg{ 4738c05e22d7Smrg 4739c05e22d7Smrg ; 4740c05e22d7Smrg return 0; 4741c05e22d7Smrg} 4742c05e22d7Smrg_ACEOF 4743c05e22d7Smrg# Make sure it works both with $CC and with simple cc. 4744c05e22d7Smrg# We do the test twice because some compilers refuse to overwrite an 4745c05e22d7Smrg# existing .o file with -o, though they will create one. 4746c05e22d7Smrgac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4747c05e22d7Smrgrm -f conftest2.* 4748c05e22d7Smrgif { { case "(($ac_try" in 4749c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750c05e22d7Smrg *) ac_try_echo=$ac_try;; 4751c05e22d7Smrgesac 4752c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4753c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 4754c05e22d7Smrg (eval "$ac_try") 2>&5 4755c05e22d7Smrg ac_status=$? 4756c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4757c05e22d7Smrg test $ac_status = 0; } && 4758c05e22d7Smrg test -f conftest2.$ac_objext && { { case "(($ac_try" in 4759c05e22d7Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4760c05e22d7Smrg *) ac_try_echo=$ac_try;; 4761f14f4646Smrgesac 4762c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4763c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 4764f14f4646Smrg (eval "$ac_try") 2>&5 4765f14f4646Smrg ac_status=$? 4766c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4767c05e22d7Smrg test $ac_status = 0; }; 4768f14f4646Smrgthen 4769f14f4646Smrg eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4770f14f4646Smrg if test "x$CC" != xcc; then 4771f14f4646Smrg # Test first that cc exists at all. 4772f14f4646Smrg if { ac_try='cc -c conftest.$ac_ext >&5' 4773c05e22d7Smrg { { case "(($ac_try" in 4774f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4775f14f4646Smrg *) ac_try_echo=$ac_try;; 4776f14f4646Smrgesac 4777c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4778c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 4779f14f4646Smrg (eval "$ac_try") 2>&5 4780f14f4646Smrg ac_status=$? 4781c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4782c05e22d7Smrg test $ac_status = 0; }; }; then 4783f14f4646Smrg ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4784f14f4646Smrg rm -f conftest2.* 4785c05e22d7Smrg if { { case "(($ac_try" in 4786f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4787f14f4646Smrg *) ac_try_echo=$ac_try;; 4788f14f4646Smrgesac 4789c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4790c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 4791f14f4646Smrg (eval "$ac_try") 2>&5 4792f14f4646Smrg ac_status=$? 4793c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4794c05e22d7Smrg test $ac_status = 0; } && 4795c05e22d7Smrg test -f conftest2.$ac_objext && { { case "(($ac_try" in 4796f14f4646Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4797f14f4646Smrg *) ac_try_echo=$ac_try;; 4798f14f4646Smrgesac 4799c05e22d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4800c05e22d7Smrg$as_echo "$ac_try_echo"; } >&5 4801f14f4646Smrg (eval "$ac_try") 2>&5 4802f14f4646Smrg ac_status=$? 4803c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4804c05e22d7Smrg test $ac_status = 0; }; 4805f14f4646Smrg then 4806f14f4646Smrg # cc works too. 4807f14f4646Smrg : 4808f14f4646Smrg else 4809f14f4646Smrg # cc exists but doesn't like -o. 4810f14f4646Smrg eval ac_cv_prog_cc_${ac_cc}_c_o=no 4811f14f4646Smrg fi 4812f14f4646Smrg fi 4813f14f4646Smrg fi 4814f14f4646Smrgelse 4815f14f4646Smrg eval ac_cv_prog_cc_${ac_cc}_c_o=no 4816f14f4646Smrgfi 4817f14f4646Smrgrm -f core conftest* 4818f14f4646Smrg 4819f14f4646Smrgfi 4820f14f4646Smrgif eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4821c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4822f14f4646Smrg$as_echo "yes" >&6; } 4823f14f4646Smrgelse 4824c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825f14f4646Smrg$as_echo "no" >&6; } 4826f14f4646Smrg 4827c05e22d7Smrg$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 48285dfecf96Smrg 48295dfecf96Smrgfi 48305dfecf96Smrg 4831c05e22d7Smrg# FIXME: we rely on the cache variable name because 4832c05e22d7Smrg# there is no other way. 4833c05e22d7Smrgset dummy $CC 4834c05e22d7Smrgam_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4835c05e22d7Smrgeval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4836c05e22d7Smrgif test "$am_t" != yes; then 4837c05e22d7Smrg # Losing compiler, so override with the script. 4838c05e22d7Smrg # FIXME: It is wrong to rewrite CC. 4839c05e22d7Smrg # But if we don't then we get into trouble of one sort or another. 4840c05e22d7Smrg # A longer-term fix would be to have automake use am__CC in this case, 4841c05e22d7Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4842c05e22d7Smrg CC="$am_aux_dir/compile $CC" 4843c05e22d7Smrgfi 48445dfecf96Smrg 48455dfecf96Smrg 48465dfecf96Smrgif test -n "$ac_tool_prefix"; then 48475dfecf96Smrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 48485dfecf96Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 4849c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4850f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 4851c05e22d7Smrgif ${ac_cv_prog_RANLIB+:} false; then : 4852f14f4646Smrg $as_echo_n "(cached) " >&6 48535dfecf96Smrgelse 48545dfecf96Smrg if test -n "$RANLIB"; then 48555dfecf96Smrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 48565dfecf96Smrgelse 48575dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48585dfecf96Smrgfor as_dir in $PATH 48595dfecf96Smrgdo 48605dfecf96Smrg IFS=$as_save_IFS 48615dfecf96Smrg test -z "$as_dir" && as_dir=. 4862c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4863f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 48645dfecf96Smrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4865c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48665dfecf96Smrg break 2 48675dfecf96Smrg fi 48685dfecf96Smrgdone 4869c05e22d7Smrg done 4870f14f4646SmrgIFS=$as_save_IFS 48715dfecf96Smrg 48725dfecf96Smrgfi 48735dfecf96Smrgfi 48745dfecf96SmrgRANLIB=$ac_cv_prog_RANLIB 48755dfecf96Smrgif test -n "$RANLIB"; then 4876c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4877f14f4646Smrg$as_echo "$RANLIB" >&6; } 48785dfecf96Smrgelse 4879c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4880f14f4646Smrg$as_echo "no" >&6; } 48815dfecf96Smrgfi 48825dfecf96Smrg 4883f14f4646Smrg 48845dfecf96Smrgfi 48855dfecf96Smrgif test -z "$ac_cv_prog_RANLIB"; then 48865dfecf96Smrg ac_ct_RANLIB=$RANLIB 48875dfecf96Smrg # Extract the first word of "ranlib", so it can be a program name with args. 48885dfecf96Smrgset dummy ranlib; ac_word=$2 4889c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4890f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 4891c05e22d7Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4892f14f4646Smrg $as_echo_n "(cached) " >&6 48935dfecf96Smrgelse 48945dfecf96Smrg if test -n "$ac_ct_RANLIB"; then 48955dfecf96Smrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 48965dfecf96Smrgelse 48975dfecf96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48985dfecf96Smrgfor as_dir in $PATH 48995dfecf96Smrgdo 49005dfecf96Smrg IFS=$as_save_IFS 49015dfecf96Smrg test -z "$as_dir" && as_dir=. 4902c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4903f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 49045dfecf96Smrg ac_cv_prog_ac_ct_RANLIB="ranlib" 4905c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49065dfecf96Smrg break 2 49075dfecf96Smrg fi 49085dfecf96Smrgdone 4909c05e22d7Smrg done 4910f14f4646SmrgIFS=$as_save_IFS 49115dfecf96Smrg 49125dfecf96Smrgfi 49135dfecf96Smrgfi 49145dfecf96Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 49155dfecf96Smrgif test -n "$ac_ct_RANLIB"; then 4916c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4917f14f4646Smrg$as_echo "$ac_ct_RANLIB" >&6; } 49185dfecf96Smrgelse 4919c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4920f14f4646Smrg$as_echo "no" >&6; } 49215dfecf96Smrgfi 49225dfecf96Smrg 4923f14f4646Smrg if test "x$ac_ct_RANLIB" = x; then 4924f14f4646Smrg RANLIB=":" 4925f14f4646Smrg else 4926f14f4646Smrg case $cross_compiling:$ac_tool_warned in 4927f14f4646Smrgyes:) 4928c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4929f14f4646Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4930f14f4646Smrgac_tool_warned=yes ;; 4931f14f4646Smrgesac 4932f14f4646Smrg RANLIB=$ac_ct_RANLIB 4933f14f4646Smrg fi 49345dfecf96Smrgelse 49355dfecf96Smrg RANLIB="$ac_cv_prog_RANLIB" 49365dfecf96Smrgfi 49375dfecf96Smrg 49385dfecf96Smrg 49395dfecf96Smrg 49405dfecf96Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 49415dfecf96Smrg if test -n "$ac_tool_prefix"; then 49425dfecf96Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 49435dfecf96Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4944c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 4946c05e22d7Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4947f14f4646Smrg $as_echo_n "(cached) " >&6 49485dfecf96Smrgelse 49495dfecf96Smrg case $PKG_CONFIG in 49505dfecf96Smrg [\\/]* | ?:[\\/]*) 49515dfecf96Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 49525dfecf96Smrg ;; 49535dfecf96Smrg *) 49545dfecf96Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49555dfecf96Smrgfor as_dir in $PATH 49565dfecf96Smrgdo 49575dfecf96Smrg IFS=$as_save_IFS 49585dfecf96Smrg test -z "$as_dir" && as_dir=. 4959c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4960f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 49615dfecf96Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4962c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49635dfecf96Smrg break 2 49645dfecf96Smrg fi 49655dfecf96Smrgdone 4966c05e22d7Smrg done 4967f14f4646SmrgIFS=$as_save_IFS 49685dfecf96Smrg 49695dfecf96Smrg ;; 49705dfecf96Smrgesac 49715dfecf96Smrgfi 49725dfecf96SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 49735dfecf96Smrgif test -n "$PKG_CONFIG"; then 4974c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4975f14f4646Smrg$as_echo "$PKG_CONFIG" >&6; } 49765dfecf96Smrgelse 4977c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978f14f4646Smrg$as_echo "no" >&6; } 49795dfecf96Smrgfi 49805dfecf96Smrg 4981f14f4646Smrg 49825dfecf96Smrgfi 49835dfecf96Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 49845dfecf96Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 49855dfecf96Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 49865dfecf96Smrgset dummy pkg-config; ac_word=$2 4987c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4988f14f4646Smrg$as_echo_n "checking for $ac_word... " >&6; } 4989c05e22d7Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4990f14f4646Smrg $as_echo_n "(cached) " >&6 49915dfecf96Smrgelse 49925dfecf96Smrg case $ac_pt_PKG_CONFIG in 49935dfecf96Smrg [\\/]* | ?:[\\/]*) 49945dfecf96Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 49955dfecf96Smrg ;; 49965dfecf96Smrg *) 49975dfecf96Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49985dfecf96Smrgfor as_dir in $PATH 49995dfecf96Smrgdo 50005dfecf96Smrg IFS=$as_save_IFS 50015dfecf96Smrg test -z "$as_dir" && as_dir=. 5002c05e22d7Smrg for ac_exec_ext in '' $ac_executable_extensions; do 5003f14f4646Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 50045dfecf96Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5005c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50065dfecf96Smrg break 2 50075dfecf96Smrg fi 50085dfecf96Smrgdone 5009c05e22d7Smrg done 5010f14f4646SmrgIFS=$as_save_IFS 50115dfecf96Smrg 50125dfecf96Smrg ;; 50135dfecf96Smrgesac 50145dfecf96Smrgfi 50155dfecf96Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 50165dfecf96Smrgif test -n "$ac_pt_PKG_CONFIG"; then 5017c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5018f14f4646Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 50195dfecf96Smrgelse 5020c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5021f14f4646Smrg$as_echo "no" >&6; } 50225dfecf96Smrgfi 50235dfecf96Smrg 5024f14f4646Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 5025f14f4646Smrg PKG_CONFIG="" 5026f14f4646Smrg else 5027f14f4646Smrg case $cross_compiling:$ac_tool_warned in 5028f14f4646Smrgyes:) 5029c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5030f14f4646Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5031f14f4646Smrgac_tool_warned=yes ;; 5032f14f4646Smrgesac 5033f14f4646Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 5034f14f4646Smrg fi 50355dfecf96Smrgelse 50365dfecf96Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 50375dfecf96Smrgfi 50385dfecf96Smrg 50395dfecf96Smrgfi 50405dfecf96Smrgif test -n "$PKG_CONFIG"; then 50415dfecf96Smrg _pkg_min_version=0.9.0 5042c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5043f14f4646Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 50445dfecf96Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5045c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5046f14f4646Smrg$as_echo "yes" >&6; } 50475dfecf96Smrg else 5048c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5049f14f4646Smrg$as_echo "no" >&6; } 50505dfecf96Smrg PKG_CONFIG="" 50515dfecf96Smrg fi 50525dfecf96Smrg 50535dfecf96Smrgfi 50545dfecf96Smrg 50555dfecf96Smrg 50565dfecf96Smrgpkg_failed=no 5057c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5 5058f14f4646Smrg$as_echo_n "checking for PKGDEPS... " >&6; } 5059f14f4646Smrg 5060f14f4646Smrgif test -n "$PKGDEPS_CFLAGS"; then 5061f14f4646Smrg pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS" 5062f14f4646Smrg elif test -n "$PKG_CONFIG"; then 5063f14f4646Smrg if test -n "$PKG_CONFIG" && \ 5064c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 5065c05e22d7Smrg ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 50665dfecf96Smrg ac_status=$? 5067c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5068c05e22d7Smrg test $ac_status = 0; }; then 5069c05e22d7Smrg pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null` 50705dfecf96Smrgelse 50715dfecf96Smrg pkg_failed=yes 50725dfecf96Smrgfi 5073f14f4646Smrg else 5074f14f4646Smrg pkg_failed=untried 50755dfecf96Smrgfi 5076f14f4646Smrgif test -n "$PKGDEPS_LIBS"; then 5077f14f4646Smrg pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS" 5078f14f4646Smrg elif test -n "$PKG_CONFIG"; then 5079f14f4646Smrg if test -n "$PKG_CONFIG" && \ 5080c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 5081c05e22d7Smrg ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 50825dfecf96Smrg ac_status=$? 5083c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5084c05e22d7Smrg test $ac_status = 0; }; then 5085c05e22d7Smrg pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null` 50865dfecf96Smrgelse 50875dfecf96Smrg pkg_failed=yes 50885dfecf96Smrgfi 5089f14f4646Smrg else 5090f14f4646Smrg pkg_failed=untried 50915dfecf96Smrgfi 50925dfecf96Smrg 50935dfecf96Smrg 50945dfecf96Smrg 50955dfecf96Smrgif test $pkg_failed = yes; then 50965dfecf96Smrg 50975dfecf96Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 50985dfecf96Smrg _pkg_short_errors_supported=yes 50995dfecf96Smrgelse 51005dfecf96Smrg _pkg_short_errors_supported=no 51015dfecf96Smrgfi 51025dfecf96Smrg if test $_pkg_short_errors_supported = yes; then 5103c05e22d7Smrg PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1` 51045dfecf96Smrg else 5105c05e22d7Smrg PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1` 51065dfecf96Smrg fi 51075dfecf96Smrg # Put the nasty error message in config.log where it belongs 5108f14f4646Smrg echo "$PKGDEPS_PKG_ERRORS" >&5 51095dfecf96Smrg 5110c05e22d7Smrg as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met: 51115dfecf96Smrg 5112f14f4646Smrg$PKGDEPS_PKG_ERRORS 51135dfecf96Smrg 51145dfecf96SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 51155dfecf96Smrginstalled software in a non-standard prefix. 51165dfecf96Smrg 5117f14f4646SmrgAlternatively, you may set the environment variables PKGDEPS_CFLAGS 5118f14f4646Smrgand PKGDEPS_LIBS to avoid the need to call pkg-config. 51195dfecf96SmrgSee the pkg-config man page for more details. 5120c05e22d7Smrg" "$LINENO" 5 51215dfecf96Smrgelif test $pkg_failed = untried; then 5122c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5123f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5124c05e22d7Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 51255dfecf96Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 51265dfecf96Smrgpath to pkg-config. 51275dfecf96Smrg 5128f14f4646SmrgAlternatively, you may set the environment variables PKGDEPS_CFLAGS 5129f14f4646Smrgand PKGDEPS_LIBS to avoid the need to call pkg-config. 51305dfecf96SmrgSee the pkg-config man page for more details. 51315dfecf96Smrg 5132f14f4646SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5133c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 51345dfecf96Smrgelse 5135f14f4646Smrg PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS 5136f14f4646Smrg PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS 5137c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5138c05e22d7Smrg$as_echo "yes" >&6; } 5139c05e22d7Smrg : 5140c05e22d7Smrgfi 5141c05e22d7Smrg 5142c05e22d7Smrg 5143c05e22d7Smrg# Check whether --with-lispdir was given. 5144c05e22d7Smrgif test "${with_lispdir+set}" = set; then : 5145c05e22d7Smrg withval=$with_lispdir; lispdir="$withval" 5146f14f4646Smrgelse 5147c05e22d7Smrg lispdir=${libdir}/X11/xedit/lisp 5148c05e22d7Smrgfi 5149c05e22d7Smrg 5150c05e22d7SmrgLISPDIR=$lispdir 5151c05e22d7Smrg 5152f14f4646Smrg 5153c05e22d7Smrgac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 5154c05e22d7Smrgif test "x$ac_cv_func_realpath" = xyes; then : 5155c05e22d7Smrg 5156c05e22d7Smrgelse 5157c05e22d7Smrg have_realpath=yes 5158f14f4646Smrgfi 5159f14f4646Smrg 5160c05e22d7Smrg if test x$have_realpath = xyes; then 5161c05e22d7Smrg NEED_REALPATH_TRUE= 5162c05e22d7Smrg NEED_REALPATH_FALSE='#' 5163c05e22d7Smrgelse 5164c05e22d7Smrg NEED_REALPATH_TRUE='#' 5165c05e22d7Smrg NEED_REALPATH_FALSE= 5166f14f4646Smrgfi 5167c05e22d7Smrg 5168c05e22d7Smrgac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 5169c05e22d7Smrgif test "x$ac_cv_func_strcasecmp" = xyes; then : 5170c05e22d7Smrg 5171f14f4646Smrgelse 5172f14f4646Smrg have_strcasecmp=yes 5173f14f4646Smrgfi 5174f14f4646Smrg 5175f14f4646Smrg if test x$have_strcasecmp = xyes; then 5176f14f4646Smrg NEED_STRCASECMP_TRUE= 5177f14f4646Smrg NEED_STRCASECMP_FALSE='#' 5178f14f4646Smrgelse 5179f14f4646Smrg NEED_STRCASECMP_TRUE='#' 5180f14f4646Smrg NEED_STRCASECMP_FALSE= 5181f14f4646Smrgfi 5182f14f4646Smrg 5183c05e22d7Smrgac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 5184c05e22d7Smrgif test "x$ac_cv_func_unsetenv" = xyes; then : 5185f14f4646Smrg 5186f14f4646Smrgelse 5187f14f4646Smrg have_unsetenv=yes 5188f14f4646Smrgfi 5189f14f4646Smrg 5190f14f4646Smrg if test x$have_unsetenv = xyes; then 5191f14f4646Smrg NEED_UNSETENV_TRUE= 5192f14f4646Smrg NEED_UNSETENV_FALSE='#' 5193f14f4646Smrgelse 5194f14f4646Smrg NEED_UNSETENV_TRUE='#' 5195f14f4646Smrg NEED_UNSETENV_FALSE= 5196f14f4646Smrgfi 5197f14f4646Smrg 5198f14f4646Smrg 5199f14f4646Smrg 5200f14f4646Smrgpkg_failed=no 5201c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 5202f14f4646Smrg$as_echo_n "checking for APPDEFS... " >&6; } 5203f14f4646Smrg 5204f14f4646Smrgif test -n "$APPDEFS_CFLAGS"; then 5205f14f4646Smrg pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 5206f14f4646Smrg elif test -n "$PKG_CONFIG"; then 5207f14f4646Smrg if test -n "$PKG_CONFIG" && \ 5208c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 5209f14f4646Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 5210f14f4646Smrg ac_status=$? 5211c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5212c05e22d7Smrg test $ac_status = 0; }; then 5213f14f4646Smrg pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 5214f14f4646Smrgelse 5215f14f4646Smrg pkg_failed=yes 5216f14f4646Smrgfi 5217f14f4646Smrg else 5218f14f4646Smrg pkg_failed=untried 5219f14f4646Smrgfi 5220f14f4646Smrgif test -n "$APPDEFS_LIBS"; then 5221f14f4646Smrg pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 5222f14f4646Smrg elif test -n "$PKG_CONFIG"; then 5223f14f4646Smrg if test -n "$PKG_CONFIG" && \ 5224c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 5225f14f4646Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 5226f14f4646Smrg ac_status=$? 5227c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5228c05e22d7Smrg test $ac_status = 0; }; then 5229f14f4646Smrg pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 5230f14f4646Smrgelse 5231f14f4646Smrg pkg_failed=yes 5232f14f4646Smrgfi 5233f14f4646Smrg else 5234f14f4646Smrg pkg_failed=untried 5235f14f4646Smrgfi 5236f14f4646Smrg 5237f14f4646Smrg 5238f14f4646Smrg 5239f14f4646Smrgif test $pkg_failed = yes; then 5240f14f4646Smrg 5241f14f4646Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5242f14f4646Smrg _pkg_short_errors_supported=yes 5243f14f4646Smrgelse 5244f14f4646Smrg _pkg_short_errors_supported=no 5245f14f4646Smrgfi 5246f14f4646Smrg if test $_pkg_short_errors_supported = yes; then 5247f14f4646Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 5248f14f4646Smrg else 5249f14f4646Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 5250f14f4646Smrg fi 5251f14f4646Smrg # Put the nasty error message in config.log where it belongs 5252f14f4646Smrg echo "$APPDEFS_PKG_ERRORS" >&5 5253f14f4646Smrg 5254c05e22d7Smrg as_fn_error $? "Package requirements (xt) were not met: 5255f14f4646Smrg 5256f14f4646Smrg$APPDEFS_PKG_ERRORS 5257f14f4646Smrg 5258f14f4646SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5259f14f4646Smrginstalled software in a non-standard prefix. 5260f14f4646Smrg 5261f14f4646SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5262f14f4646Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5263f14f4646SmrgSee the pkg-config man page for more details. 5264c05e22d7Smrg" "$LINENO" 5 5265f14f4646Smrgelif test $pkg_failed = untried; then 5266c05e22d7Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5267f14f4646Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5268c05e22d7Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5269f14f4646Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5270f14f4646Smrgpath to pkg-config. 5271f14f4646Smrg 5272f14f4646SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5273f14f4646Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5274f14f4646SmrgSee the pkg-config man page for more details. 5275f14f4646Smrg 5276f14f4646SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5277c05e22d7SmrgSee \`config.log' for more details" "$LINENO" 5; } 5278c05e22d7Smrgelse 5279c05e22d7Smrg APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 5280c05e22d7Smrg APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 5281c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5282c05e22d7Smrg$as_echo "yes" >&6; } 5283c05e22d7Smrg : 5284c05e22d7Smrgfi 5285c05e22d7Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 5286f14f4646Smrg 5287c05e22d7Smrg# Check whether --with-appdefaultdir was given. 5288c05e22d7Smrgif test "${with_appdefaultdir+set}" = set; then : 5289c05e22d7Smrg withval=$with_appdefaultdir; appdefaultdir="$withval" 5290c05e22d7Smrgelse 5291c05e22d7Smrg appdefaultdir="${xt_appdefaultdir}" 5292c05e22d7Smrgfi 5293f14f4646Smrg 5294f14f4646Smrg 5295f14f4646Smrg 5296f14f4646Smrg 5297f14f4646Smrgac_config_files="$ac_config_files Makefile" 52985dfecf96Smrg 52995dfecf96Smrgcat >confcache <<\_ACEOF 53005dfecf96Smrg# This file is a shell script that caches the results of configure 53015dfecf96Smrg# tests run on this system so they can be shared between configure 53025dfecf96Smrg# scripts and configure runs, see configure's option --config-cache. 53035dfecf96Smrg# It is not useful on other systems. If it contains results you don't 53045dfecf96Smrg# want to keep, you may remove or edit it. 53055dfecf96Smrg# 53065dfecf96Smrg# config.status only pays attention to the cache file if you give it 53075dfecf96Smrg# the --recheck option to rerun configure. 53085dfecf96Smrg# 53095dfecf96Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 53105dfecf96Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 53115dfecf96Smrg# following values. 53125dfecf96Smrg 53135dfecf96Smrg_ACEOF 53145dfecf96Smrg 53155dfecf96Smrg# The following way of writing the cache mishandles newlines in values, 53165dfecf96Smrg# but we know of no workaround that is simple, portable, and efficient. 5317f14f4646Smrg# So, we kill variables containing newlines. 53185dfecf96Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 53195dfecf96Smrg# and sets the high bit in the cache file unless we assign to the vars. 5320f14f4646Smrg( 5321f14f4646Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5322f14f4646Smrg eval ac_val=\$$ac_var 5323f14f4646Smrg case $ac_val in #( 5324f14f4646Smrg *${as_nl}*) 5325f14f4646Smrg case $ac_var in #( 5326c05e22d7Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5327f14f4646Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5328f14f4646Smrg esac 5329f14f4646Smrg case $ac_var in #( 5330f14f4646Smrg _ | IFS | as_nl) ;; #( 5331f14f4646Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5332c05e22d7Smrg *) { eval $ac_var=; unset $ac_var;} ;; 5333f14f4646Smrg esac ;; 5334f14f4646Smrg esac 5335f14f4646Smrg done 5336f14f4646Smrg 53375dfecf96Smrg (set) 2>&1 | 5338f14f4646Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 5339f14f4646Smrg *${as_nl}ac_space=\ *) 5340c05e22d7Smrg # `set' does not quote correctly, so add quotes: double-quote 5341c05e22d7Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 53425dfecf96Smrg sed -n \ 53435dfecf96Smrg "s/'/'\\\\''/g; 53445dfecf96Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5345f14f4646Smrg ;; #( 53465dfecf96Smrg *) 53475dfecf96Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 5348f14f4646Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 53495dfecf96Smrg ;; 5350f14f4646Smrg esac | 5351f14f4646Smrg sort 5352f14f4646Smrg) | 53535dfecf96Smrg sed ' 5354f14f4646Smrg /^ac_cv_env_/b end 53555dfecf96Smrg t clear 5356f14f4646Smrg :clear 53575dfecf96Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 53585dfecf96Smrg t end 5359f14f4646Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5360f14f4646Smrg :end' >>confcache 5361f14f4646Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5362f14f4646Smrg if test -w "$cache_file"; then 5363c05e22d7Smrg if test "x$cache_file" != "x/dev/null"; then 5364c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5365f14f4646Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 5366c05e22d7Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 5367c05e22d7Smrg cat confcache >"$cache_file" 5368c05e22d7Smrg else 5369c05e22d7Smrg case $cache_file in #( 5370c05e22d7Smrg */* | ?:*) 5371c05e22d7Smrg mv -f confcache "$cache_file"$$ && 5372c05e22d7Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 5373c05e22d7Smrg *) 5374c05e22d7Smrg mv -f confcache "$cache_file" ;; 5375c05e22d7Smrg esac 5376c05e22d7Smrg fi 5377c05e22d7Smrg fi 53785dfecf96Smrg else 5379c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5380f14f4646Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 53815dfecf96Smrg fi 53825dfecf96Smrgfi 53835dfecf96Smrgrm -f confcache 53845dfecf96Smrg 53855dfecf96Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 53865dfecf96Smrg# Let make expand exec_prefix. 53875dfecf96Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 53885dfecf96Smrg 53895dfecf96SmrgDEFS=-DHAVE_CONFIG_H 53905dfecf96Smrg 53915dfecf96Smrgac_libobjs= 53925dfecf96Smrgac_ltlibobjs= 5393c05e22d7SmrgU= 53945dfecf96Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 53955dfecf96Smrg # 1. Remove the extension, and $U if already installed. 5396f14f4646Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5397f14f4646Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5398f14f4646Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5399f14f4646Smrg # will be set to the directory where LIBOBJS objects are built. 5400c05e22d7Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5401c05e22d7Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 54025dfecf96Smrgdone 54035dfecf96SmrgLIBOBJS=$ac_libobjs 54045dfecf96Smrg 54055dfecf96SmrgLTLIBOBJS=$ac_ltlibobjs 54065dfecf96Smrg 54075dfecf96Smrg 5408c05e22d7Smrg if test -n "$EXEEXT"; then 5409c05e22d7Smrg am__EXEEXT_TRUE= 5410c05e22d7Smrg am__EXEEXT_FALSE='#' 5411c05e22d7Smrgelse 5412c05e22d7Smrg am__EXEEXT_TRUE='#' 5413c05e22d7Smrg am__EXEEXT_FALSE= 5414c05e22d7Smrgfi 5415c05e22d7Smrg 54165dfecf96Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 5417c05e22d7Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 5418c05e22d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 54195dfecf96Smrgfi 54205dfecf96Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5421c05e22d7Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 5422c05e22d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 54235dfecf96Smrgfi 54245dfecf96Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5425c05e22d7Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5426c05e22d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5427f14f4646Smrgfi 5428f14f4646Smrgif test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then 5429c05e22d7Smrg as_fn_error $? "conditional \"NEED_REALPATH\" was never defined. 5430c05e22d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5431f14f4646Smrgfi 5432f14f4646Smrgif test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then 5433c05e22d7Smrg as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined. 5434c05e22d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5435f14f4646Smrgfi 5436f14f4646Smrgif test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then 5437c05e22d7Smrg as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined. 5438c05e22d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 54395dfecf96Smrgfi 54405dfecf96Smrg 5441c05e22d7Smrg: "${CONFIG_STATUS=./config.status}" 5442f14f4646Smrgac_write_fail=0 54435dfecf96Smrgac_clean_files_save=$ac_clean_files 54445dfecf96Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 5445c05e22d7Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5446f14f4646Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5447c05e22d7Smrgas_write_fail=0 5448c05e22d7Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 54495dfecf96Smrg#! $SHELL 54505dfecf96Smrg# Generated by $as_me. 54515dfecf96Smrg# Run this file to recreate the current configuration. 54525dfecf96Smrg# Compiler output produced by configure, useful for debugging 54535dfecf96Smrg# configure, is in config.log if it exists. 54545dfecf96Smrg 54555dfecf96Smrgdebug=false 54565dfecf96Smrgac_cs_recheck=false 54575dfecf96Smrgac_cs_silent=false 54585dfecf96Smrg 5459c05e22d7SmrgSHELL=\${CONFIG_SHELL-$SHELL} 5460c05e22d7Smrgexport SHELL 5461c05e22d7Smrg_ASEOF 5462c05e22d7Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5463c05e22d7Smrg## -------------------- ## 5464c05e22d7Smrg## M4sh Initialization. ## 5465c05e22d7Smrg## -------------------- ## 54665dfecf96Smrg 5467f14f4646Smrg# Be more Bourne compatible 5468f14f4646SmrgDUALCASE=1; export DUALCASE # for MKS sh 5469c05e22d7Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 54705dfecf96Smrg emulate sh 54715dfecf96Smrg NULLCMD=: 5472f14f4646Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 54735dfecf96Smrg # is contrary to our usage. Disable this feature. 54745dfecf96Smrg alias -g '${1+"$@"}'='"$@"' 5475f14f4646Smrg setopt NO_GLOB_SUBST 5476f14f4646Smrgelse 5477c05e22d7Smrg case `(set -o) 2>/dev/null` in #( 5478c05e22d7Smrg *posix*) : 5479c05e22d7Smrg set -o posix ;; #( 5480c05e22d7Smrg *) : 5481c05e22d7Smrg ;; 5482f14f4646Smrgesac 5483f14f4646Smrgfi 5484f14f4646Smrg 5485f14f4646Smrg 5486f14f4646Smrgas_nl=' 5487f14f4646Smrg' 5488f14f4646Smrgexport as_nl 5489f14f4646Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5490f14f4646Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5491f14f4646Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5492f14f4646Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5493c05e22d7Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 5494c05e22d7Smrg# but without wasting forks for bash or zsh. 5495c05e22d7Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 5496c05e22d7Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5497c05e22d7Smrg as_echo='print -r --' 5498c05e22d7Smrg as_echo_n='print -rn --' 5499c05e22d7Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5500f14f4646Smrg as_echo='printf %s\n' 5501f14f4646Smrg as_echo_n='printf %s' 5502f14f4646Smrgelse 5503f14f4646Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5504f14f4646Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5505f14f4646Smrg as_echo_n='/usr/ucb/echo -n' 5506f14f4646Smrg else 5507f14f4646Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5508f14f4646Smrg as_echo_n_body='eval 5509f14f4646Smrg arg=$1; 5510c05e22d7Smrg case $arg in #( 5511f14f4646Smrg *"$as_nl"*) 5512f14f4646Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5513f14f4646Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5514f14f4646Smrg esac; 5515f14f4646Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5516f14f4646Smrg ' 5517f14f4646Smrg export as_echo_n_body 5518f14f4646Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 5519f14f4646Smrg fi 5520f14f4646Smrg export as_echo_body 5521f14f4646Smrg as_echo='sh -c $as_echo_body as_echo' 5522f14f4646Smrgfi 5523f14f4646Smrg 5524f14f4646Smrg# The user is always right. 5525f14f4646Smrgif test "${PATH_SEPARATOR+set}" != set; then 5526f14f4646Smrg PATH_SEPARATOR=: 5527f14f4646Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5528f14f4646Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5529f14f4646Smrg PATH_SEPARATOR=';' 5530f14f4646Smrg } 55315dfecf96Smrgfi 55325dfecf96Smrg 55335dfecf96Smrg 5534f14f4646Smrg# IFS 5535f14f4646Smrg# We need space, tab and new line, in precisely that order. Quoting is 5536f14f4646Smrg# there to prevent editors from complaining about space-tab. 5537f14f4646Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5538f14f4646Smrg# splitting by setting IFS to empty value.) 5539f14f4646SmrgIFS=" "" $as_nl" 5540f14f4646Smrg 5541f14f4646Smrg# Find who we are. Look in the path if we contain no directory separator. 5542c05e22d7Smrgas_myself= 5543c05e22d7Smrgcase $0 in #(( 5544f14f4646Smrg *[\\/]* ) as_myself=$0 ;; 5545f14f4646Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5546f14f4646Smrgfor as_dir in $PATH 5547f14f4646Smrgdo 5548f14f4646Smrg IFS=$as_save_IFS 5549f14f4646Smrg test -z "$as_dir" && as_dir=. 5550c05e22d7Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5551c05e22d7Smrg done 5552f14f4646SmrgIFS=$as_save_IFS 5553f14f4646Smrg 5554f14f4646Smrg ;; 5555f14f4646Smrgesac 5556f14f4646Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5557f14f4646Smrg# in which case we are not to be found in the path. 5558f14f4646Smrgif test "x$as_myself" = x; then 5559f14f4646Smrg as_myself=$0 5560f14f4646Smrgfi 5561f14f4646Smrgif test ! -f "$as_myself"; then 5562f14f4646Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5563c05e22d7Smrg exit 1 5564f14f4646Smrgfi 5565f14f4646Smrg 5566c05e22d7Smrg# Unset variables that we do not need and which cause bugs (e.g. in 5567c05e22d7Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5568c05e22d7Smrg# suppresses any "Segmentation fault" message there. '((' could 5569c05e22d7Smrg# trigger a bug in pdksh 5.2.14. 5570c05e22d7Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 5571c05e22d7Smrgdo eval test x\${$as_var+set} = xset \ 5572c05e22d7Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5573f14f4646Smrgdone 55745dfecf96SmrgPS1='$ ' 55755dfecf96SmrgPS2='> ' 55765dfecf96SmrgPS4='+ ' 55775dfecf96Smrg 55785dfecf96Smrg# NLS nuisances. 5579f14f4646SmrgLC_ALL=C 5580f14f4646Smrgexport LC_ALL 5581f14f4646SmrgLANGUAGE=C 5582f14f4646Smrgexport LANGUAGE 55835dfecf96Smrg 5584c05e22d7Smrg# CDPATH. 5585c05e22d7Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5586c05e22d7Smrg 5587c05e22d7Smrg 5588c05e22d7Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 5589c05e22d7Smrg# ---------------------------------------- 5590c05e22d7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5591c05e22d7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5592c05e22d7Smrg# script with STATUS, using 1 if that was 0. 5593c05e22d7Smrgas_fn_error () 5594c05e22d7Smrg{ 5595c05e22d7Smrg as_status=$1; test $as_status -eq 0 && as_status=1 5596c05e22d7Smrg if test "$4"; then 5597c05e22d7Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5598c05e22d7Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5599c05e22d7Smrg fi 5600c05e22d7Smrg $as_echo "$as_me: error: $2" >&2 5601c05e22d7Smrg as_fn_exit $as_status 5602c05e22d7Smrg} # as_fn_error 5603c05e22d7Smrg 5604c05e22d7Smrg 5605c05e22d7Smrg# as_fn_set_status STATUS 5606c05e22d7Smrg# ----------------------- 5607c05e22d7Smrg# Set $? to STATUS, without forking. 5608c05e22d7Smrgas_fn_set_status () 5609c05e22d7Smrg{ 5610c05e22d7Smrg return $1 5611c05e22d7Smrg} # as_fn_set_status 5612c05e22d7Smrg 5613c05e22d7Smrg# as_fn_exit STATUS 5614c05e22d7Smrg# ----------------- 5615c05e22d7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5616c05e22d7Smrgas_fn_exit () 5617c05e22d7Smrg{ 5618c05e22d7Smrg set +e 5619c05e22d7Smrg as_fn_set_status $1 5620c05e22d7Smrg exit $1 5621c05e22d7Smrg} # as_fn_exit 5622c05e22d7Smrg 5623c05e22d7Smrg# as_fn_unset VAR 5624c05e22d7Smrg# --------------- 5625c05e22d7Smrg# Portably unset VAR. 5626c05e22d7Smrgas_fn_unset () 5627c05e22d7Smrg{ 5628c05e22d7Smrg { eval $1=; unset $1;} 5629c05e22d7Smrg} 5630c05e22d7Smrgas_unset=as_fn_unset 5631c05e22d7Smrg# as_fn_append VAR VALUE 5632c05e22d7Smrg# ---------------------- 5633c05e22d7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 5634c05e22d7Smrg# advantage of any shell optimizations that allow amortized linear growth over 5635c05e22d7Smrg# repeated appends, instead of the typical quadratic growth present in naive 5636c05e22d7Smrg# implementations. 5637c05e22d7Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5638c05e22d7Smrg eval 'as_fn_append () 5639c05e22d7Smrg { 5640c05e22d7Smrg eval $1+=\$2 5641c05e22d7Smrg }' 5642c05e22d7Smrgelse 5643c05e22d7Smrg as_fn_append () 5644c05e22d7Smrg { 5645c05e22d7Smrg eval $1=\$$1\$2 5646c05e22d7Smrg } 5647c05e22d7Smrgfi # as_fn_append 5648c05e22d7Smrg 5649c05e22d7Smrg# as_fn_arith ARG... 5650c05e22d7Smrg# ------------------ 5651c05e22d7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5652c05e22d7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5653c05e22d7Smrg# must be portable across $(()) and expr. 5654c05e22d7Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5655c05e22d7Smrg eval 'as_fn_arith () 5656c05e22d7Smrg { 5657c05e22d7Smrg as_val=$(( $* )) 5658c05e22d7Smrg }' 5659c05e22d7Smrgelse 5660c05e22d7Smrg as_fn_arith () 5661c05e22d7Smrg { 5662c05e22d7Smrg as_val=`expr "$@" || test $? -eq 1` 5663c05e22d7Smrg } 5664c05e22d7Smrgfi # as_fn_arith 5665c05e22d7Smrg 5666c05e22d7Smrg 5667f14f4646Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5668f14f4646Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 56695dfecf96Smrg as_expr=expr 56705dfecf96Smrgelse 56715dfecf96Smrg as_expr=false 56725dfecf96Smrgfi 56735dfecf96Smrg 5674f14f4646Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 56755dfecf96Smrg as_basename=basename 56765dfecf96Smrgelse 56775dfecf96Smrg as_basename=false 56785dfecf96Smrgfi 56795dfecf96Smrg 5680c05e22d7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5681c05e22d7Smrg as_dirname=dirname 5682c05e22d7Smrgelse 5683c05e22d7Smrg as_dirname=false 5684c05e22d7Smrgfi 56855dfecf96Smrg 5686f14f4646Smrgas_me=`$as_basename -- "$0" || 56875dfecf96Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 56885dfecf96Smrg X"$0" : 'X\(//\)$' \| \ 5689f14f4646Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5690f14f4646Smrg$as_echo X/"$0" | 5691f14f4646Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5692f14f4646Smrg s//\1/ 5693f14f4646Smrg q 5694f14f4646Smrg } 5695f14f4646Smrg /^X\/\(\/\/\)$/{ 5696f14f4646Smrg s//\1/ 5697f14f4646Smrg q 5698f14f4646Smrg } 5699f14f4646Smrg /^X\/\(\/\).*/{ 5700f14f4646Smrg s//\1/ 5701f14f4646Smrg q 5702f14f4646Smrg } 5703f14f4646Smrg s/.*/./; q'` 57045dfecf96Smrg 5705c05e22d7Smrg# Avoid depending upon Character Ranges. 5706c05e22d7Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5707c05e22d7Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5708c05e22d7Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5709c05e22d7Smrgas_cr_digits='0123456789' 5710c05e22d7Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 57115dfecf96Smrg 5712f14f4646SmrgECHO_C= ECHO_N= ECHO_T= 5713c05e22d7Smrgcase `echo -n x` in #((((( 5714f14f4646Smrg-n*) 5715c05e22d7Smrg case `echo 'xy\c'` in 5716f14f4646Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5717c05e22d7Smrg xy) ECHO_C='\c';; 5718c05e22d7Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5719c05e22d7Smrg ECHO_T=' ';; 5720f14f4646Smrg esac;; 5721f14f4646Smrg*) 5722f14f4646Smrg ECHO_N='-n';; 5723f14f4646Smrgesac 57245dfecf96Smrg 57255dfecf96Smrgrm -f conf$$ conf$$.exe conf$$.file 5726f14f4646Smrgif test -d conf$$.dir; then 5727f14f4646Smrg rm -f conf$$.dir/conf$$.file 5728f14f4646Smrgelse 5729f14f4646Smrg rm -f conf$$.dir 5730f14f4646Smrg mkdir conf$$.dir 2>/dev/null 5731f14f4646Smrgfi 5732f14f4646Smrgif (echo >conf$$.file) 2>/dev/null; then 5733f14f4646Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 57345dfecf96Smrg as_ln_s='ln -s' 5735f14f4646Smrg # ... but there are two gotchas: 5736f14f4646Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5737f14f4646Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5738f14f4646Smrg # In both cases, we have to default to `cp -p'. 5739f14f4646Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5740f14f4646Smrg as_ln_s='cp -p' 5741f14f4646Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5742f14f4646Smrg as_ln_s=ln 5743f14f4646Smrg else 5744f14f4646Smrg as_ln_s='cp -p' 57455dfecf96Smrg fi 57465dfecf96Smrgelse 57475dfecf96Smrg as_ln_s='cp -p' 57485dfecf96Smrgfi 5749f14f4646Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5750f14f4646Smrgrmdir conf$$.dir 2>/dev/null 57515dfecf96Smrg 5752c05e22d7Smrg 5753c05e22d7Smrg# as_fn_mkdir_p 5754c05e22d7Smrg# ------------- 5755c05e22d7Smrg# Create "$as_dir" as a directory, including parents if necessary. 5756c05e22d7Smrgas_fn_mkdir_p () 5757c05e22d7Smrg{ 5758c05e22d7Smrg 5759c05e22d7Smrg case $as_dir in #( 5760c05e22d7Smrg -*) as_dir=./$as_dir;; 5761c05e22d7Smrg esac 5762c05e22d7Smrg test -d "$as_dir" || eval $as_mkdir_p || { 5763c05e22d7Smrg as_dirs= 5764c05e22d7Smrg while :; do 5765c05e22d7Smrg case $as_dir in #( 5766c05e22d7Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5767c05e22d7Smrg *) as_qdir=$as_dir;; 5768c05e22d7Smrg esac 5769c05e22d7Smrg as_dirs="'$as_qdir' $as_dirs" 5770c05e22d7Smrg as_dir=`$as_dirname -- "$as_dir" || 5771c05e22d7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5772c05e22d7Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5773c05e22d7Smrg X"$as_dir" : 'X\(//\)$' \| \ 5774c05e22d7Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5775c05e22d7Smrg$as_echo X"$as_dir" | 5776c05e22d7Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5777c05e22d7Smrg s//\1/ 5778c05e22d7Smrg q 5779c05e22d7Smrg } 5780c05e22d7Smrg /^X\(\/\/\)[^/].*/{ 5781c05e22d7Smrg s//\1/ 5782c05e22d7Smrg q 5783c05e22d7Smrg } 5784c05e22d7Smrg /^X\(\/\/\)$/{ 5785c05e22d7Smrg s//\1/ 5786c05e22d7Smrg q 5787c05e22d7Smrg } 5788c05e22d7Smrg /^X\(\/\).*/{ 5789c05e22d7Smrg s//\1/ 5790c05e22d7Smrg q 5791c05e22d7Smrg } 5792c05e22d7Smrg s/.*/./; q'` 5793c05e22d7Smrg test -d "$as_dir" && break 5794c05e22d7Smrg done 5795c05e22d7Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5796c05e22d7Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5797c05e22d7Smrg 5798c05e22d7Smrg 5799c05e22d7Smrg} # as_fn_mkdir_p 58005dfecf96Smrgif mkdir -p . 2>/dev/null; then 5801c05e22d7Smrg as_mkdir_p='mkdir -p "$as_dir"' 58025dfecf96Smrgelse 58035dfecf96Smrg test -d ./-p && rmdir ./-p 58045dfecf96Smrg as_mkdir_p=false 58055dfecf96Smrgfi 58065dfecf96Smrg 5807f14f4646Smrgif test -x / >/dev/null 2>&1; then 5808f14f4646Smrg as_test_x='test -x' 5809f14f4646Smrgelse 5810f14f4646Smrg if ls -dL / >/dev/null 2>&1; then 5811f14f4646Smrg as_ls_L_option=L 5812f14f4646Smrg else 5813f14f4646Smrg as_ls_L_option= 5814f14f4646Smrg fi 5815f14f4646Smrg as_test_x=' 5816f14f4646Smrg eval sh -c '\'' 5817f14f4646Smrg if test -d "$1"; then 5818f14f4646Smrg test -d "$1/."; 5819f14f4646Smrg else 5820c05e22d7Smrg case $1 in #( 5821f14f4646Smrg -*)set "./$1";; 5822f14f4646Smrg esac; 5823c05e22d7Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5824f14f4646Smrg ???[sx]*):;;*)false;;esac;fi 5825f14f4646Smrg '\'' sh 5826f14f4646Smrg ' 5827f14f4646Smrgfi 5828f14f4646Smrgas_executable_p=$as_test_x 58295dfecf96Smrg 58305dfecf96Smrg# Sed expression to map a string onto a valid CPP name. 58315dfecf96Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 58325dfecf96Smrg 5833f14f4646Smrg# Sed expression to map a string onto a valid variable name. 5834f14f4646Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 58355dfecf96Smrg 58365dfecf96Smrg 58375dfecf96Smrgexec 6>&1 5838c05e22d7Smrg## ----------------------------------- ## 5839c05e22d7Smrg## Main body of $CONFIG_STATUS script. ## 5840c05e22d7Smrg## ----------------------------------- ## 5841c05e22d7Smrg_ASEOF 5842c05e22d7Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 58435dfecf96Smrg 5844c05e22d7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5845c05e22d7Smrg# Save the log message, to keep $0 and so on meaningful, and to 58465dfecf96Smrg# report actual input values of CONFIG_FILES etc. instead of their 5847f14f4646Smrg# values after options handling. 5848f14f4646Smrgac_log=" 5849c05e22d7SmrgThis file was extended by xedit $as_me 1.2.0, which was 5850c05e22d7Smrggenerated by GNU Autoconf 2.68. Invocation command line was 58515dfecf96Smrg 58525dfecf96Smrg CONFIG_FILES = $CONFIG_FILES 58535dfecf96Smrg CONFIG_HEADERS = $CONFIG_HEADERS 58545dfecf96Smrg CONFIG_LINKS = $CONFIG_LINKS 58555dfecf96Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 58565dfecf96Smrg $ $0 $@ 58575dfecf96Smrg 5858f14f4646Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5859f14f4646Smrg" 5860f14f4646Smrg 58615dfecf96Smrg_ACEOF 58625dfecf96Smrg 5863f14f4646Smrgcase $ac_config_files in *" 5864f14f4646Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5865f14f4646Smrgesac 58665dfecf96Smrg 5867f14f4646Smrgcase $ac_config_headers in *" 5868f14f4646Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5869f14f4646Smrgesac 58705dfecf96Smrg 58715dfecf96Smrg 5872f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5873f14f4646Smrg# Files that config.status was made for. 5874c05e22d7Smrgconfig_files="$ac_config_files" 5875c05e22d7Smrgconfig_headers="$ac_config_headers" 5876c05e22d7Smrgconfig_commands="$ac_config_commands" 58775dfecf96Smrg 5878f14f4646Smrg_ACEOF 58795dfecf96Smrg 5880f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 58815dfecf96Smrgac_cs_usage="\ 5882c05e22d7Smrg\`$as_me' instantiates files and other configuration actions 5883c05e22d7Smrgfrom templates according to the current configuration. Unless the files 5884c05e22d7Smrgand actions are specified as TAGs, all are instantiated by default. 58855dfecf96Smrg 5886c05e22d7SmrgUsage: $0 [OPTION]... [TAG]... 58875dfecf96Smrg 58885dfecf96Smrg -h, --help print this help, then exit 5889f14f4646Smrg -V, --version print version number and configuration settings, then exit 5890c05e22d7Smrg --config print configuration, then exit 5891f14f4646Smrg -q, --quiet, --silent 5892f14f4646Smrg do not print progress messages 58935dfecf96Smrg -d, --debug don't remove temporary files 58945dfecf96Smrg --recheck update $as_me by reconfiguring in the same conditions 5895f14f4646Smrg --file=FILE[:TEMPLATE] 5896f14f4646Smrg instantiate the configuration file FILE 5897f14f4646Smrg --header=FILE[:TEMPLATE] 5898f14f4646Smrg instantiate the configuration header FILE 58995dfecf96Smrg 59005dfecf96SmrgConfiguration files: 59015dfecf96Smrg$config_files 59025dfecf96Smrg 59035dfecf96SmrgConfiguration headers: 59045dfecf96Smrg$config_headers 59055dfecf96Smrg 59065dfecf96SmrgConfiguration commands: 59075dfecf96Smrg$config_commands 59085dfecf96Smrg 5909c05e22d7SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 59105dfecf96Smrg 5911f14f4646Smrg_ACEOF 5912f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5913c05e22d7Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 59145dfecf96Smrgac_cs_version="\\ 5915c05e22d7Smrgxedit config.status 1.2.0 5916c05e22d7Smrgconfigured by $0, generated by GNU Autoconf 2.68, 5917c05e22d7Smrg with options \\"\$ac_cs_config\\" 59185dfecf96Smrg 5919c05e22d7SmrgCopyright (C) 2010 Free Software Foundation, Inc. 59205dfecf96SmrgThis config.status script is free software; the Free Software Foundation 59215dfecf96Smrggives unlimited permission to copy, distribute and modify it." 5922f14f4646Smrg 5923f14f4646Smrgac_pwd='$ac_pwd' 5924f14f4646Smrgsrcdir='$srcdir' 5925f14f4646SmrgINSTALL='$INSTALL' 5926f14f4646SmrgMKDIR_P='$MKDIR_P' 5927f14f4646SmrgAWK='$AWK' 5928f14f4646Smrgtest -n "\$AWK" || AWK=awk 59295dfecf96Smrg_ACEOF 59305dfecf96Smrg 5931f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5932f14f4646Smrg# The default lists apply if the user does not specify any file. 59335dfecf96Smrgac_need_defaults=: 59345dfecf96Smrgwhile test $# != 0 59355dfecf96Smrgdo 59365dfecf96Smrg case $1 in 5937c05e22d7Smrg --*=?*) 5938f14f4646Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5939f14f4646Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 59405dfecf96Smrg ac_shift=: 59415dfecf96Smrg ;; 5942c05e22d7Smrg --*=) 5943c05e22d7Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5944c05e22d7Smrg ac_optarg= 5945c05e22d7Smrg ac_shift=: 5946c05e22d7Smrg ;; 5947f14f4646Smrg *) 59485dfecf96Smrg ac_option=$1 59495dfecf96Smrg ac_optarg=$2 59505dfecf96Smrg ac_shift=shift 59515dfecf96Smrg ;; 59525dfecf96Smrg esac 59535dfecf96Smrg 59545dfecf96Smrg case $ac_option in 59555dfecf96Smrg # Handling of the options. 59565dfecf96Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 59575dfecf96Smrg ac_cs_recheck=: ;; 5958f14f4646Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5959f14f4646Smrg $as_echo "$ac_cs_version"; exit ;; 5960c05e22d7Smrg --config | --confi | --conf | --con | --co | --c ) 5961c05e22d7Smrg $as_echo "$ac_cs_config"; exit ;; 5962f14f4646Smrg --debug | --debu | --deb | --de | --d | -d ) 59635dfecf96Smrg debug=: ;; 59645dfecf96Smrg --file | --fil | --fi | --f ) 59655dfecf96Smrg $ac_shift 5966f14f4646Smrg case $ac_optarg in 5967f14f4646Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5968c05e22d7Smrg '') as_fn_error $? "missing file argument" ;; 5969f14f4646Smrg esac 5970c05e22d7Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 59715dfecf96Smrg ac_need_defaults=false;; 59725dfecf96Smrg --header | --heade | --head | --hea ) 59735dfecf96Smrg $ac_shift 5974f14f4646Smrg case $ac_optarg in 5975f14f4646Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5976f14f4646Smrg esac 5977c05e22d7Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 59785dfecf96Smrg ac_need_defaults=false;; 5979f14f4646Smrg --he | --h) 5980f14f4646Smrg # Conflict between --help and --header 5981c05e22d7Smrg as_fn_error $? "ambiguous option: \`$1' 5982c05e22d7SmrgTry \`$0 --help' for more information.";; 5983f14f4646Smrg --help | --hel | -h ) 5984f14f4646Smrg $as_echo "$ac_cs_usage"; exit ;; 59855dfecf96Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 59865dfecf96Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 59875dfecf96Smrg ac_cs_silent=: ;; 59885dfecf96Smrg 59895dfecf96Smrg # This is an error. 5990c05e22d7Smrg -*) as_fn_error $? "unrecognized option: \`$1' 5991c05e22d7SmrgTry \`$0 --help' for more information." ;; 59925dfecf96Smrg 5993c05e22d7Smrg *) as_fn_append ac_config_targets " $1" 5994f14f4646Smrg ac_need_defaults=false ;; 59955dfecf96Smrg 59965dfecf96Smrg esac 59975dfecf96Smrg shift 59985dfecf96Smrgdone 59995dfecf96Smrg 60005dfecf96Smrgac_configure_extra_args= 60015dfecf96Smrg 60025dfecf96Smrgif $ac_cs_silent; then 60035dfecf96Smrg exec 6>/dev/null 60045dfecf96Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 60055dfecf96Smrgfi 60065dfecf96Smrg 60075dfecf96Smrg_ACEOF 6008f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 60095dfecf96Smrgif \$ac_cs_recheck; then 6010f14f4646Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6011f14f4646Smrg shift 6012f14f4646Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6013f14f4646Smrg CONFIG_SHELL='$SHELL' 6014f14f4646Smrg export CONFIG_SHELL 6015f14f4646Smrg exec "\$@" 60165dfecf96Smrgfi 60175dfecf96Smrg 60185dfecf96Smrg_ACEOF 6019f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6020f14f4646Smrgexec 5>>config.log 6021f14f4646Smrg{ 6022f14f4646Smrg echo 6023f14f4646Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6024f14f4646Smrg## Running $as_me. ## 6025f14f4646Smrg_ASBOX 6026f14f4646Smrg $as_echo "$ac_log" 6027f14f4646Smrg} >&5 60285dfecf96Smrg 6029f14f4646Smrg_ACEOF 6030f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 60315dfecf96Smrg# 6032f14f4646Smrg# INIT-COMMANDS 60335dfecf96Smrg# 60345dfecf96SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 60355dfecf96Smrg 60365dfecf96Smrg_ACEOF 60375dfecf96Smrg 6038f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 60395dfecf96Smrg 6040f14f4646Smrg# Handling of arguments. 60415dfecf96Smrgfor ac_config_target in $ac_config_targets 60425dfecf96Smrgdo 6043f14f4646Smrg case $ac_config_target in 6044f14f4646Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6045c05e22d7Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6046f14f4646Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6047f14f4646Smrg 6048c05e22d7Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 60495dfecf96Smrg esac 60505dfecf96Smrgdone 60515dfecf96Smrg 6052f14f4646Smrg 60535dfecf96Smrg# If the user did not use the arguments to specify the items to instantiate, 60545dfecf96Smrg# then the envvar interface is used. Set only those that are not. 60555dfecf96Smrg# We use the long form for the default assignment because of an extremely 60565dfecf96Smrg# bizarre bug on SunOS 4.1.3. 60575dfecf96Smrgif $ac_need_defaults; then 60585dfecf96Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 60595dfecf96Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 60605dfecf96Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 60615dfecf96Smrgfi 60625dfecf96Smrg 60635dfecf96Smrg# Have a temporary directory for convenience. Make it in the build tree 6064f14f4646Smrg# simply because there is no reason against having it here, and in addition, 60655dfecf96Smrg# creating and moving files from /tmp can sometimes cause problems. 6066f14f4646Smrg# Hook for its removal unless debugging. 6067f14f4646Smrg# Note that there is a small window in which the directory will not be cleaned: 6068f14f4646Smrg# after its creation but before its name has been assigned to `$tmp'. 60695dfecf96Smrg$debug || 60705dfecf96Smrg{ 6071c05e22d7Smrg tmp= ac_tmp= 6072f14f4646Smrg trap 'exit_status=$? 6073c05e22d7Smrg : "${ac_tmp:=$tmp}" 6074c05e22d7Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6075f14f4646Smrg' 0 6076c05e22d7Smrg trap 'as_fn_exit 1' 1 2 13 15 60775dfecf96Smrg} 60785dfecf96Smrg# Create a (secure) tmp directory for tmp files. 60795dfecf96Smrg 60805dfecf96Smrg{ 6081f14f4646Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6082c05e22d7Smrg test -d "$tmp" 60835dfecf96Smrg} || 60845dfecf96Smrg{ 6085f14f4646Smrg tmp=./conf$$-$RANDOM 6086f14f4646Smrg (umask 077 && mkdir "$tmp") 6087c05e22d7Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6088c05e22d7Smrgac_tmp=$tmp 60895dfecf96Smrg 6090f14f4646Smrg# Set up the scripts for CONFIG_FILES section. 6091f14f4646Smrg# No need to generate them if there are no CONFIG_FILES. 6092f14f4646Smrg# This happens for instance with `./config.status config.h'. 6093f14f4646Smrgif test -n "$CONFIG_FILES"; then 6094f14f4646Smrg 6095f14f4646Smrg 6096c05e22d7Smrgac_cr=`echo X | tr X '\015'` 6097c05e22d7Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 6098c05e22d7Smrg# But we know of no other shell where ac_cr would be empty at this 6099c05e22d7Smrg# point, so we can use a bashism as a fallback. 6100c05e22d7Smrgif test "x$ac_cr" = x; then 6101c05e22d7Smrg eval ac_cr=\$\'\\r\' 6102c05e22d7Smrgfi 6103f14f4646Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6104f14f4646Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6105f14f4646Smrg ac_cs_awk_cr='\\r' 6106f14f4646Smrgelse 6107f14f4646Smrg ac_cs_awk_cr=$ac_cr 6108f14f4646Smrgfi 6109f14f4646Smrg 6110c05e22d7Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 61115dfecf96Smrg_ACEOF 61125dfecf96Smrg 61135dfecf96Smrg 6114f14f4646Smrg{ 6115f14f4646Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 6116f14f4646Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6117f14f4646Smrg echo "_ACEOF" 6118f14f4646Smrg} >conf$$subs.sh || 6119c05e22d7Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6120c05e22d7Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6121f14f4646Smrgac_delim='%!_!# ' 6122f14f4646Smrgfor ac_last_try in false false false false false :; do 6123f14f4646Smrg . ./conf$$subs.sh || 6124c05e22d7Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6125f14f4646Smrg 6126f14f4646Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6127f14f4646Smrg if test $ac_delim_n = $ac_delim_num; then 6128f14f4646Smrg break 6129f14f4646Smrg elif $ac_last_try; then 6130c05e22d7Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6131f14f4646Smrg else 6132f14f4646Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6133f14f4646Smrg fi 6134f14f4646Smrgdone 6135f14f4646Smrgrm -f conf$$subs.sh 6136f14f4646Smrg 6137f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6138c05e22d7Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6139f14f4646Smrg_ACEOF 6140f14f4646Smrgsed -n ' 6141f14f4646Smrgh 6142f14f4646Smrgs/^/S["/; s/!.*/"]=/ 6143f14f4646Smrgp 6144f14f4646Smrgg 6145f14f4646Smrgs/^[^!]*!// 6146f14f4646Smrg:repl 6147f14f4646Smrgt repl 6148f14f4646Smrgs/'"$ac_delim"'$// 6149f14f4646Smrgt delim 6150f14f4646Smrg:nl 6151f14f4646Smrgh 6152c05e22d7Smrgs/\(.\{148\}\)..*/\1/ 6153f14f4646Smrgt more1 6154f14f4646Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6155f14f4646Smrgp 6156f14f4646Smrgn 6157f14f4646Smrgb repl 6158f14f4646Smrg:more1 6159f14f4646Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6160f14f4646Smrgp 6161f14f4646Smrgg 6162f14f4646Smrgs/.\{148\}// 6163f14f4646Smrgt nl 6164f14f4646Smrg:delim 6165f14f4646Smrgh 6166c05e22d7Smrgs/\(.\{148\}\)..*/\1/ 6167f14f4646Smrgt more2 6168f14f4646Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 6169f14f4646Smrgp 6170f14f4646Smrgb 6171f14f4646Smrg:more2 6172f14f4646Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6173f14f4646Smrgp 6174f14f4646Smrgg 6175f14f4646Smrgs/.\{148\}// 6176f14f4646Smrgt delim 6177f14f4646Smrg' <conf$$subs.awk | sed ' 6178f14f4646Smrg/^[^""]/{ 6179f14f4646Smrg N 6180f14f4646Smrg s/\n// 6181f14f4646Smrg} 6182f14f4646Smrg' >>$CONFIG_STATUS || ac_write_fail=1 6183f14f4646Smrgrm -f conf$$subs.awk 6184f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6185f14f4646Smrg_ACAWK 6186c05e22d7Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6187f14f4646Smrg for (key in S) S_is_set[key] = 1 6188f14f4646Smrg FS = "" 61895dfecf96Smrg 6190f14f4646Smrg} 6191f14f4646Smrg{ 6192f14f4646Smrg line = $ 0 6193f14f4646Smrg nfields = split(line, field, "@") 6194f14f4646Smrg substed = 0 6195f14f4646Smrg len = length(field[1]) 6196f14f4646Smrg for (i = 2; i < nfields; i++) { 6197f14f4646Smrg key = field[i] 6198f14f4646Smrg keylen = length(key) 6199f14f4646Smrg if (S_is_set[key]) { 6200f14f4646Smrg value = S[key] 6201f14f4646Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6202f14f4646Smrg len += length(value) + length(field[++i]) 6203f14f4646Smrg substed = 1 6204f14f4646Smrg } else 6205f14f4646Smrg len += 1 + keylen 6206f14f4646Smrg } 6207f14f4646Smrg 6208f14f4646Smrg print line 6209f14f4646Smrg} 62105dfecf96Smrg 6211f14f4646Smrg_ACAWK 6212f14f4646Smrg_ACEOF 6213f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6214f14f4646Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6215f14f4646Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6216f14f4646Smrgelse 6217f14f4646Smrg cat 6218c05e22d7Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6219c05e22d7Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 62205dfecf96Smrg_ACEOF 62215dfecf96Smrg 6222c05e22d7Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6223c05e22d7Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6224f14f4646Smrg# trailing colons and then remove the whole line if VPATH becomes empty 6225f14f4646Smrg# (actually we leave an empty line to preserve line numbers). 6226f14f4646Smrgif test "x$srcdir" = x.; then 6227c05e22d7Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6228c05e22d7Smrgh 6229c05e22d7Smrgs/// 6230c05e22d7Smrgs/^/:/ 6231c05e22d7Smrgs/[ ]*$/:/ 6232c05e22d7Smrgs/:\$(srcdir):/:/g 6233c05e22d7Smrgs/:\${srcdir}:/:/g 6234c05e22d7Smrgs/:@srcdir@:/:/g 6235c05e22d7Smrgs/^:*// 6236f14f4646Smrgs/:*$// 6237c05e22d7Smrgx 6238c05e22d7Smrgs/\(=[ ]*\).*/\1/ 6239c05e22d7SmrgG 6240c05e22d7Smrgs/\n// 6241f14f4646Smrgs/^[^=]*=[ ]*$// 6242f14f4646Smrg}' 6243f14f4646Smrgfi 6244f14f4646Smrg 6245f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 62465dfecf96Smrgfi # test -n "$CONFIG_FILES" 62475dfecf96Smrg 6248f14f4646Smrg# Set up the scripts for CONFIG_HEADERS section. 6249f14f4646Smrg# No need to generate them if there are no CONFIG_HEADERS. 6250f14f4646Smrg# This happens for instance with `./config.status Makefile'. 6251f14f4646Smrgif test -n "$CONFIG_HEADERS"; then 6252c05e22d7Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 6253f14f4646SmrgBEGIN { 62545dfecf96Smrg_ACEOF 6255f14f4646Smrg 6256f14f4646Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6257f14f4646Smrg# here-document in config.status, that substitutes the proper values into 6258f14f4646Smrg# config.h.in to produce config.h. 6259f14f4646Smrg 6260f14f4646Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 6261f14f4646Smrg# handling of long lines. 6262f14f4646Smrgac_delim='%!_!# ' 6263f14f4646Smrgfor ac_last_try in false false :; do 6264c05e22d7Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 6265c05e22d7Smrg if test -z "$ac_tt"; then 6266f14f4646Smrg break 6267f14f4646Smrg elif $ac_last_try; then 6268c05e22d7Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6269f14f4646Smrg else 6270f14f4646Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6271f14f4646Smrg fi 6272f14f4646Smrgdone 6273f14f4646Smrg 6274f14f4646Smrg# For the awk script, D is an array of macro values keyed by name, 6275f14f4646Smrg# likewise P contains macro parameters if any. Preserve backslash 6276f14f4646Smrg# newline sequences. 6277f14f4646Smrg 6278f14f4646Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6279f14f4646Smrgsed -n ' 6280f14f4646Smrgs/.\{148\}/&'"$ac_delim"'/g 6281f14f4646Smrgt rset 6282f14f4646Smrg:rset 6283f14f4646Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6284f14f4646Smrgt def 6285f14f4646Smrgd 6286f14f4646Smrg:def 6287f14f4646Smrgs/\\$// 6288f14f4646Smrgt bsnl 6289f14f4646Smrgs/["\\]/\\&/g 6290f14f4646Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6291f14f4646SmrgD["\1"]=" \3"/p 6292f14f4646Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6293f14f4646Smrgd 6294f14f4646Smrg:bsnl 6295f14f4646Smrgs/["\\]/\\&/g 6296f14f4646Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6297f14f4646SmrgD["\1"]=" \3\\\\\\n"\\/p 6298f14f4646Smrgt cont 6299f14f4646Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6300f14f4646Smrgt cont 6301f14f4646Smrgd 6302f14f4646Smrg:cont 6303f14f4646Smrgn 6304f14f4646Smrgs/.\{148\}/&'"$ac_delim"'/g 6305f14f4646Smrgt clear 6306f14f4646Smrg:clear 6307f14f4646Smrgs/\\$// 6308f14f4646Smrgt bsnlc 6309f14f4646Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6310f14f4646Smrgd 6311f14f4646Smrg:bsnlc 6312f14f4646Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6313f14f4646Smrgb cont 6314f14f4646Smrg' <confdefs.h | sed ' 6315f14f4646Smrgs/'"$ac_delim"'/"\\\ 6316f14f4646Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 6317f14f4646Smrg 6318f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6319f14f4646Smrg for (key in D) D_is_set[key] = 1 6320f14f4646Smrg FS = "" 6321f14f4646Smrg} 6322f14f4646Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6323f14f4646Smrg line = \$ 0 6324f14f4646Smrg split(line, arg, " ") 6325f14f4646Smrg if (arg[1] == "#") { 6326f14f4646Smrg defundef = arg[2] 6327f14f4646Smrg mac1 = arg[3] 6328f14f4646Smrg } else { 6329f14f4646Smrg defundef = substr(arg[1], 2) 6330f14f4646Smrg mac1 = arg[2] 6331f14f4646Smrg } 6332f14f4646Smrg split(mac1, mac2, "(") #) 6333f14f4646Smrg macro = mac2[1] 6334f14f4646Smrg prefix = substr(line, 1, index(line, defundef) - 1) 6335f14f4646Smrg if (D_is_set[macro]) { 6336f14f4646Smrg # Preserve the white space surrounding the "#". 6337f14f4646Smrg print prefix "define", macro P[macro] D[macro] 6338f14f4646Smrg next 6339f14f4646Smrg } else { 6340f14f4646Smrg # Replace #undef with comments. This is necessary, for example, 6341f14f4646Smrg # in the case of _POSIX_SOURCE, which is predefined and required 6342f14f4646Smrg # on some systems where configure will not decide to define it. 6343f14f4646Smrg if (defundef == "undef") { 6344f14f4646Smrg print "/*", prefix defundef, macro, "*/" 6345f14f4646Smrg next 6346f14f4646Smrg } 6347f14f4646Smrg } 6348f14f4646Smrg} 6349f14f4646Smrg{ print } 6350f14f4646Smrg_ACAWK 6351f14f4646Smrg_ACEOF 6352f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6353c05e22d7Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6354f14f4646Smrgfi # test -n "$CONFIG_HEADERS" 6355f14f4646Smrg 6356f14f4646Smrg 6357f14f4646Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6358f14f4646Smrgshift 6359f14f4646Smrgfor ac_tag 6360f14f4646Smrgdo 6361f14f4646Smrg case $ac_tag in 6362f14f4646Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 6363f14f4646Smrg esac 6364f14f4646Smrg case $ac_mode$ac_tag in 6365f14f4646Smrg :[FHL]*:*);; 6366c05e22d7Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6367f14f4646Smrg :[FH]-) ac_tag=-:-;; 6368f14f4646Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6369f14f4646Smrg esac 6370f14f4646Smrg ac_save_IFS=$IFS 6371f14f4646Smrg IFS=: 6372f14f4646Smrg set x $ac_tag 6373f14f4646Smrg IFS=$ac_save_IFS 6374f14f4646Smrg shift 6375f14f4646Smrg ac_file=$1 6376f14f4646Smrg shift 6377f14f4646Smrg 6378f14f4646Smrg case $ac_mode in 6379f14f4646Smrg :L) ac_source=$1;; 6380f14f4646Smrg :[FH]) 6381f14f4646Smrg ac_file_inputs= 6382f14f4646Smrg for ac_f 6383f14f4646Smrg do 6384f14f4646Smrg case $ac_f in 6385c05e22d7Smrg -) ac_f="$ac_tmp/stdin";; 6386f14f4646Smrg *) # Look for the file first in the build tree, then in the source tree 6387f14f4646Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 6388f14f4646Smrg # because $ac_f cannot contain `:'. 6389f14f4646Smrg test -f "$ac_f" || 6390f14f4646Smrg case $ac_f in 6391f14f4646Smrg [\\/$]*) false;; 6392f14f4646Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6393f14f4646Smrg esac || 6394c05e22d7Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6395f14f4646Smrg esac 6396f14f4646Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6397c05e22d7Smrg as_fn_append ac_file_inputs " '$ac_f'" 6398f14f4646Smrg done 6399f14f4646Smrg 6400f14f4646Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 6401f14f4646Smrg # use $as_me), people would be surprised to read: 6402f14f4646Smrg # /* config.h. Generated by config.status. */ 6403f14f4646Smrg configure_input='Generated from '` 6404f14f4646Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6405f14f4646Smrg `' by configure.' 6406f14f4646Smrg if test x"$ac_file" != x-; then 6407f14f4646Smrg configure_input="$ac_file. $configure_input" 6408c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6409f14f4646Smrg$as_echo "$as_me: creating $ac_file" >&6;} 6410f14f4646Smrg fi 6411f14f4646Smrg # Neutralize special characters interpreted by sed in replacement strings. 6412f14f4646Smrg case $configure_input in #( 6413f14f4646Smrg *\&* | *\|* | *\\* ) 6414f14f4646Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 6415f14f4646Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 6416f14f4646Smrg *) ac_sed_conf_input=$configure_input;; 6417f14f4646Smrg esac 6418f14f4646Smrg 6419f14f4646Smrg case $ac_tag in 6420c05e22d7Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6421c05e22d7Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6422f14f4646Smrg esac 6423f14f4646Smrg ;; 64245dfecf96Smrg esac 64255dfecf96Smrg 6426f14f4646Smrg ac_dir=`$as_dirname -- "$ac_file" || 64275dfecf96Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 64285dfecf96Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 64295dfecf96Smrg X"$ac_file" : 'X\(//\)$' \| \ 6430f14f4646Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6431f14f4646Smrg$as_echo X"$ac_file" | 6432f14f4646Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6433f14f4646Smrg s//\1/ 6434f14f4646Smrg q 6435f14f4646Smrg } 6436f14f4646Smrg /^X\(\/\/\)[^/].*/{ 6437f14f4646Smrg s//\1/ 6438f14f4646Smrg q 6439f14f4646Smrg } 6440f14f4646Smrg /^X\(\/\/\)$/{ 6441f14f4646Smrg s//\1/ 6442f14f4646Smrg q 6443f14f4646Smrg } 6444f14f4646Smrg /^X\(\/\).*/{ 6445f14f4646Smrg s//\1/ 6446f14f4646Smrg q 6447f14f4646Smrg } 6448f14f4646Smrg s/.*/./; q'` 6449c05e22d7Smrg as_dir="$ac_dir"; as_fn_mkdir_p 64505dfecf96Smrg ac_builddir=. 64515dfecf96Smrg 6452f14f4646Smrgcase "$ac_dir" in 6453f14f4646Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6454f14f4646Smrg*) 6455f14f4646Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6456f14f4646Smrg # A ".." for each directory in $ac_dir_suffix. 6457f14f4646Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6458f14f4646Smrg case $ac_top_builddir_sub in 6459f14f4646Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6460f14f4646Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6461f14f4646Smrg esac ;; 6462f14f4646Smrgesac 6463f14f4646Smrgac_abs_top_builddir=$ac_pwd 6464f14f4646Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 6465f14f4646Smrg# for backward compatibility: 6466f14f4646Smrgac_top_builddir=$ac_top_build_prefix 64675dfecf96Smrg 64685dfecf96Smrgcase $srcdir in 6469f14f4646Smrg .) # We are building in place. 64705dfecf96Smrg ac_srcdir=. 6471f14f4646Smrg ac_top_srcdir=$ac_top_builddir_sub 6472f14f4646Smrg ac_abs_top_srcdir=$ac_pwd ;; 6473f14f4646Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 64745dfecf96Smrg ac_srcdir=$srcdir$ac_dir_suffix; 6475f14f4646Smrg ac_top_srcdir=$srcdir 6476f14f4646Smrg ac_abs_top_srcdir=$srcdir ;; 6477f14f4646Smrg *) # Relative name. 6478f14f4646Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6479f14f4646Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 6480f14f4646Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 64815dfecf96Smrgesac 6482f14f4646Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 64835dfecf96Smrg 64845dfecf96Smrg 6485f14f4646Smrg case $ac_mode in 6486f14f4646Smrg :F) 6487f14f4646Smrg # 6488f14f4646Smrg # CONFIG_FILE 6489f14f4646Smrg # 64905dfecf96Smrg 64915dfecf96Smrg case $INSTALL in 64925dfecf96Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6493f14f4646Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 64945dfecf96Smrg esac 6495f14f4646Smrg ac_MKDIR_P=$MKDIR_P 6496f14f4646Smrg case $MKDIR_P in 6497f14f4646Smrg [\\/$]* | ?:[\\/]* ) ;; 6498f14f4646Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6499f14f4646Smrg esac 6500f14f4646Smrg_ACEOF 65015dfecf96Smrg 6502f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6503f14f4646Smrg# If the template does not know about datarootdir, expand it. 6504f14f4646Smrg# FIXME: This hack should be removed a few years after 2.60. 6505f14f4646Smrgac_datarootdir_hack=; ac_datarootdir_seen= 6506f14f4646Smrgac_sed_dataroot=' 6507f14f4646Smrg/datarootdir/ { 6508f14f4646Smrg p 6509f14f4646Smrg q 6510f14f4646Smrg} 6511f14f4646Smrg/@datadir@/p 6512f14f4646Smrg/@docdir@/p 6513f14f4646Smrg/@infodir@/p 6514f14f4646Smrg/@localedir@/p 6515c05e22d7Smrg/@mandir@/p' 6516f14f4646Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6517f14f4646Smrg*datarootdir*) ac_datarootdir_seen=yes;; 6518f14f4646Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6519c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6520f14f4646Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6521f14f4646Smrg_ACEOF 6522f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6523f14f4646Smrg ac_datarootdir_hack=' 6524f14f4646Smrg s&@datadir@&$datadir&g 6525f14f4646Smrg s&@docdir@&$docdir&g 6526f14f4646Smrg s&@infodir@&$infodir&g 6527f14f4646Smrg s&@localedir@&$localedir&g 6528f14f4646Smrg s&@mandir@&$mandir&g 6529c05e22d7Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 6530f14f4646Smrgesac 65315dfecf96Smrg_ACEOF 6532f14f4646Smrg 6533f14f4646Smrg# Neutralize VPATH when `$srcdir' = `.'. 6534f14f4646Smrg# Shell code in configure.ac might set extrasub. 6535f14f4646Smrg# FIXME: do we really want to maintain this feature? 6536f14f4646Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6537f14f4646Smrgac_sed_extra="$ac_vpsub 65385dfecf96Smrg$extrasub 65395dfecf96Smrg_ACEOF 6540f14f4646Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 65415dfecf96Smrg:t 65425dfecf96Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6543f14f4646Smrgs|@configure_input@|$ac_sed_conf_input|;t t 6544f14f4646Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6545f14f4646Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6546f14f4646Smrgs&@srcdir@&$ac_srcdir&;t t 6547f14f4646Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6548f14f4646Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 6549f14f4646Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6550f14f4646Smrgs&@builddir@&$ac_builddir&;t t 6551f14f4646Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 6552f14f4646Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6553f14f4646Smrgs&@INSTALL@&$ac_INSTALL&;t t 6554f14f4646Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6555f14f4646Smrg$ac_datarootdir_hack 6556f14f4646Smrg" 6557c05e22d7Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6558c05e22d7Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 65595dfecf96Smrg 6560f14f4646Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6561c05e22d7Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6562c05e22d7Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6563c05e22d7Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 6564c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6565c05e22d7Smrgwhich seems to be undefined. Please make sure it is defined" >&5 6566f14f4646Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6567c05e22d7Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 65685dfecf96Smrg 6569c05e22d7Smrg rm -f "$ac_tmp/stdin" 65705dfecf96Smrg case $ac_file in 6571c05e22d7Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6572c05e22d7Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6573f14f4646Smrg esac \ 6574c05e22d7Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6575f14f4646Smrg ;; 6576f14f4646Smrg :H) 6577f14f4646Smrg # 6578f14f4646Smrg # CONFIG_HEADER 6579f14f4646Smrg # 65805dfecf96Smrg if test x"$ac_file" != x-; then 6581f14f4646Smrg { 6582f14f4646Smrg $as_echo "/* $configure_input */" \ 6583c05e22d7Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6584c05e22d7Smrg } >"$ac_tmp/config.h" \ 6585c05e22d7Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6586c05e22d7Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6587c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6588f14f4646Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 65895dfecf96Smrg else 6590f14f4646Smrg rm -f "$ac_file" 6591c05e22d7Smrg mv "$ac_tmp/config.h" "$ac_file" \ 6592c05e22d7Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 65935dfecf96Smrg fi 65945dfecf96Smrg else 6595f14f4646Smrg $as_echo "/* $configure_input */" \ 6596c05e22d7Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6597c05e22d7Smrg || as_fn_error $? "could not create -" "$LINENO" 5 65985dfecf96Smrg fi 6599f14f4646Smrg# Compute "$ac_file"'s index in $config_headers. 6600f14f4646Smrg_am_arg="$ac_file" 66015dfecf96Smrg_am_stamp_count=1 66025dfecf96Smrgfor _am_header in $config_headers :; do 66035dfecf96Smrg case $_am_header in 6604f14f4646Smrg $_am_arg | $_am_arg:* ) 66055dfecf96Smrg break ;; 66065dfecf96Smrg * ) 66075dfecf96Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 66085dfecf96Smrg esac 66095dfecf96Smrgdone 6610f14f4646Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6611f14f4646Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6612f14f4646Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6613f14f4646Smrg X"$_am_arg" : 'X\(//\)$' \| \ 6614f14f4646Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6615f14f4646Smrg$as_echo X"$_am_arg" | 6616f14f4646Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6617f14f4646Smrg s//\1/ 6618f14f4646Smrg q 6619f14f4646Smrg } 6620f14f4646Smrg /^X\(\/\/\)[^/].*/{ 6621f14f4646Smrg s//\1/ 6622f14f4646Smrg q 6623f14f4646Smrg } 6624f14f4646Smrg /^X\(\/\/\)$/{ 6625f14f4646Smrg s//\1/ 6626f14f4646Smrg q 6627f14f4646Smrg } 6628f14f4646Smrg /^X\(\/\).*/{ 6629f14f4646Smrg s//\1/ 6630f14f4646Smrg q 6631f14f4646Smrg } 6632f14f4646Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 6633f14f4646Smrg ;; 66345dfecf96Smrg 6635c05e22d7Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6636f14f4646Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6637f14f4646Smrg ;; 6638f14f4646Smrg esac 66395dfecf96Smrg 66405dfecf96Smrg 6641f14f4646Smrg case $ac_file$ac_mode in 6642c05e22d7Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6643c05e22d7Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6644c05e22d7Smrg # are listed without --file. Let's play safe and only enable the eval 6645c05e22d7Smrg # if we detect the quoting. 6646c05e22d7Smrg case $CONFIG_FILES in 6647c05e22d7Smrg *\'*) eval set x "$CONFIG_FILES" ;; 6648c05e22d7Smrg *) set x $CONFIG_FILES ;; 6649c05e22d7Smrg esac 6650c05e22d7Smrg shift 6651c05e22d7Smrg for mf 6652c05e22d7Smrg do 6653c05e22d7Smrg # Strip MF so we end up with the name of the file. 6654c05e22d7Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6655c05e22d7Smrg # Check whether this is an Automake generated Makefile or not. 6656c05e22d7Smrg # We used to match only the files named `Makefile.in', but 6657c05e22d7Smrg # some people rename them; so instead we look at the file content. 6658c05e22d7Smrg # Grep'ing the first line is not enough: some people post-process 6659c05e22d7Smrg # each Makefile.in and add a new line on top of each file to say so. 6660c05e22d7Smrg # Grep'ing the whole file is not good either: AIX grep has a line 6661c05e22d7Smrg # limit of 2048, but all sed's we know have understand at least 4000. 6662c05e22d7Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6663c05e22d7Smrg dirpart=`$as_dirname -- "$mf" || 66645dfecf96Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66655dfecf96Smrg X"$mf" : 'X\(//\)[^/]' \| \ 66665dfecf96Smrg X"$mf" : 'X\(//\)$' \| \ 6667f14f4646Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6668f14f4646Smrg$as_echo X"$mf" | 6669f14f4646Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6670f14f4646Smrg s//\1/ 6671f14f4646Smrg q 6672f14f4646Smrg } 6673f14f4646Smrg /^X\(\/\/\)[^/].*/{ 6674f14f4646Smrg s//\1/ 6675f14f4646Smrg q 6676f14f4646Smrg } 6677f14f4646Smrg /^X\(\/\/\)$/{ 6678f14f4646Smrg s//\1/ 6679f14f4646Smrg q 6680f14f4646Smrg } 6681f14f4646Smrg /^X\(\/\).*/{ 6682f14f4646Smrg s//\1/ 6683f14f4646Smrg q 6684f14f4646Smrg } 6685f14f4646Smrg s/.*/./; q'` 6686c05e22d7Smrg else 6687c05e22d7Smrg continue 6688c05e22d7Smrg fi 6689c05e22d7Smrg # Extract the definition of DEPDIR, am__include, and am__quote 6690c05e22d7Smrg # from the Makefile without running `make'. 6691c05e22d7Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6692c05e22d7Smrg test -z "$DEPDIR" && continue 6693c05e22d7Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6694c05e22d7Smrg test -z "am__include" && continue 6695c05e22d7Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6696c05e22d7Smrg # When using ansi2knr, U may be empty or an underscore; expand it 6697c05e22d7Smrg U=`sed -n 's/^U = //p' < "$mf"` 6698c05e22d7Smrg # Find all dependency output files, they are included files with 6699c05e22d7Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6700c05e22d7Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 6701c05e22d7Smrg # expansion. 6702c05e22d7Smrg for file in `sed -n " 6703c05e22d7Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6704c05e22d7Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6705c05e22d7Smrg # Make sure the directory exists. 6706c05e22d7Smrg test -f "$dirpart/$file" && continue 6707c05e22d7Smrg fdir=`$as_dirname -- "$file" || 67085dfecf96Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67095dfecf96Smrg X"$file" : 'X\(//\)[^/]' \| \ 67105dfecf96Smrg X"$file" : 'X\(//\)$' \| \ 6711f14f4646Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6712f14f4646Smrg$as_echo X"$file" | 6713f14f4646Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6714f14f4646Smrg s//\1/ 6715f14f4646Smrg q 6716f14f4646Smrg } 6717f14f4646Smrg /^X\(\/\/\)[^/].*/{ 6718f14f4646Smrg s//\1/ 6719f14f4646Smrg q 6720f14f4646Smrg } 6721f14f4646Smrg /^X\(\/\/\)$/{ 6722f14f4646Smrg s//\1/ 6723f14f4646Smrg q 6724f14f4646Smrg } 6725f14f4646Smrg /^X\(\/\).*/{ 6726f14f4646Smrg s//\1/ 6727f14f4646Smrg q 6728f14f4646Smrg } 6729f14f4646Smrg s/.*/./; q'` 6730c05e22d7Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 6731c05e22d7Smrg # echo "creating $dirpart/$file" 6732c05e22d7Smrg echo '# dummy' > "$dirpart/$file" 67335dfecf96Smrg done 67345dfecf96Smrg done 6735c05e22d7Smrg} 67365dfecf96Smrg ;; 6737f14f4646Smrg 67385dfecf96Smrg esac 6739f14f4646Smrgdone # for ac_tag 67405dfecf96Smrg 67415dfecf96Smrg 6742c05e22d7Smrgas_fn_exit 0 67435dfecf96Smrg_ACEOF 67445dfecf96Smrgac_clean_files=$ac_clean_files_save 67455dfecf96Smrg 6746f14f4646Smrgtest $ac_write_fail = 0 || 6747c05e22d7Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6748f14f4646Smrg 67495dfecf96Smrg 67505dfecf96Smrg# configure is writing to config.log, and then calls config.status. 67515dfecf96Smrg# config.status does its own redirection, appending to config.log. 67525dfecf96Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 67535dfecf96Smrg# by configure, so config.status won't be able to write to it; its 67545dfecf96Smrg# output is simply discarded. So we exec the FD to /dev/null, 67555dfecf96Smrg# effectively closing config.log, so it can be properly (re)opened and 67565dfecf96Smrg# appended to by config.status. When coming back to configure, we 67575dfecf96Smrg# need to make the FD available again. 67585dfecf96Smrgif test "$no_create" != yes; then 67595dfecf96Smrg ac_cs_success=: 67605dfecf96Smrg ac_config_status_args= 67615dfecf96Smrg test "$silent" = yes && 67625dfecf96Smrg ac_config_status_args="$ac_config_status_args --quiet" 67635dfecf96Smrg exec 5>/dev/null 67645dfecf96Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 67655dfecf96Smrg exec 5>>config.log 67665dfecf96Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 67675dfecf96Smrg # would make configure fail if this is the last instruction. 6768c05e22d7Smrg $ac_cs_success || as_fn_exit 1 67695dfecf96Smrgfi 6770f14f4646Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6771c05e22d7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6772f14f4646Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6773f14f4646Smrgfi 67745dfecf96Smrg 6775