configure revision 45aa2fbf
1ffab5952Smrg#! /bin/sh 2ffab5952Smrg# Guess values for system-dependent variables and create Makefiles. 345aa2fbfSmrg# Generated by GNU Autoconf 2.69 for util-macros 1.19.3. 4ffab5952Smrg# 545aa2fbfSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/util/macros/issues>. 6ffab5952Smrg# 7ffab5952Smrg# 867e4e4deSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9ffab5952Smrg# 10ffab5952Smrg# 11ffab5952Smrg# This configure script is free software; the Free Software Foundation 12ffab5952Smrg# gives unlimited permission to copy, distribute and modify it. 13ffab5952Smrg## -------------------- ## 14ffab5952Smrg## M4sh Initialization. ## 15ffab5952Smrg## -------------------- ## 16ffab5952Smrg 17ffab5952Smrg# Be more Bourne compatible 18ffab5952SmrgDUALCASE=1; export DUALCASE # for MKS sh 19ffab5952Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20ffab5952Smrg emulate sh 21ffab5952Smrg NULLCMD=: 22ffab5952Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23ffab5952Smrg # is contrary to our usage. Disable this feature. 24ffab5952Smrg alias -g '${1+"$@"}'='"$@"' 25ffab5952Smrg setopt NO_GLOB_SUBST 26ffab5952Smrgelse 27ffab5952Smrg case `(set -o) 2>/dev/null` in #( 28ffab5952Smrg *posix*) : 29ffab5952Smrg set -o posix ;; #( 30ffab5952Smrg *) : 31ffab5952Smrg ;; 32ffab5952Smrgesac 33ffab5952Smrgfi 34ffab5952Smrg 35ffab5952Smrg 36ffab5952Smrgas_nl=' 37ffab5952Smrg' 38ffab5952Smrgexport as_nl 39ffab5952Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40ffab5952Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43ffab5952Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44ffab5952Smrg# but without wasting forks for bash or zsh. 45ffab5952Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46ffab5952Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47ffab5952Smrg as_echo='print -r --' 48ffab5952Smrg as_echo_n='print -rn --' 49ffab5952Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50ffab5952Smrg as_echo='printf %s\n' 51ffab5952Smrg as_echo_n='printf %s' 52ffab5952Smrgelse 53ffab5952Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54ffab5952Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55ffab5952Smrg as_echo_n='/usr/ucb/echo -n' 56ffab5952Smrg else 57ffab5952Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58ffab5952Smrg as_echo_n_body='eval 59ffab5952Smrg arg=$1; 60ffab5952Smrg case $arg in #( 61ffab5952Smrg *"$as_nl"*) 62ffab5952Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63ffab5952Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64ffab5952Smrg esac; 65ffab5952Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66ffab5952Smrg ' 67ffab5952Smrg export as_echo_n_body 68ffab5952Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 69ffab5952Smrg fi 70ffab5952Smrg export as_echo_body 71ffab5952Smrg as_echo='sh -c $as_echo_body as_echo' 72ffab5952Smrgfi 73ffab5952Smrg 74ffab5952Smrg# The user is always right. 75ffab5952Smrgif test "${PATH_SEPARATOR+set}" != set; then 76ffab5952Smrg PATH_SEPARATOR=: 77ffab5952Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78ffab5952Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79ffab5952Smrg PATH_SEPARATOR=';' 80ffab5952Smrg } 81ffab5952Smrgfi 82ffab5952Smrg 83ffab5952Smrg 84ffab5952Smrg# IFS 85ffab5952Smrg# We need space, tab and new line, in precisely that order. Quoting is 86ffab5952Smrg# there to prevent editors from complaining about space-tab. 87ffab5952Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88ffab5952Smrg# splitting by setting IFS to empty value.) 89ffab5952SmrgIFS=" "" $as_nl" 90ffab5952Smrg 91ffab5952Smrg# Find who we are. Look in the path if we contain no directory separator. 92ffab5952Smrgas_myself= 93ffab5952Smrgcase $0 in #(( 94ffab5952Smrg *[\\/]* ) as_myself=$0 ;; 95ffab5952Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96ffab5952Smrgfor as_dir in $PATH 97ffab5952Smrgdo 98ffab5952Smrg IFS=$as_save_IFS 99ffab5952Smrg test -z "$as_dir" && as_dir=. 100ffab5952Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101ffab5952Smrg done 102ffab5952SmrgIFS=$as_save_IFS 103ffab5952Smrg 104ffab5952Smrg ;; 105ffab5952Smrgesac 106ffab5952Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107ffab5952Smrg# in which case we are not to be found in the path. 108ffab5952Smrgif test "x$as_myself" = x; then 109ffab5952Smrg as_myself=$0 110ffab5952Smrgfi 111ffab5952Smrgif test ! -f "$as_myself"; then 112ffab5952Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113ffab5952Smrg exit 1 114ffab5952Smrgfi 115ffab5952Smrg 116ffab5952Smrg# Unset variables that we do not need and which cause bugs (e.g. in 117ffab5952Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118ffab5952Smrg# suppresses any "Segmentation fault" message there. '((' could 119ffab5952Smrg# trigger a bug in pdksh 5.2.14. 120ffab5952Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 121ffab5952Smrgdo eval test x\${$as_var+set} = xset \ 122ffab5952Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123ffab5952Smrgdone 124ffab5952SmrgPS1='$ ' 125ffab5952SmrgPS2='> ' 126ffab5952SmrgPS4='+ ' 127ffab5952Smrg 128ffab5952Smrg# NLS nuisances. 129ffab5952SmrgLC_ALL=C 130ffab5952Smrgexport LC_ALL 131ffab5952SmrgLANGUAGE=C 132ffab5952Smrgexport LANGUAGE 133ffab5952Smrg 134ffab5952Smrg# CDPATH. 135ffab5952Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136ffab5952Smrg 13767e4e4deSmrg# Use a proper internal environment variable to ensure we don't fall 13867e4e4deSmrg # into an infinite loop, continuously re-executing ourselves. 13967e4e4deSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14067e4e4deSmrg _as_can_reexec=no; export _as_can_reexec; 14167e4e4deSmrg # We cannot yet assume a decent shell, so we have to provide a 14267e4e4deSmrg# neutralization value for shells without unset; and this also 14367e4e4deSmrg# works around shells that cannot unset nonexistent variables. 14467e4e4deSmrg# Preserve -v and -x to the replacement shell. 14567e4e4deSmrgBASH_ENV=/dev/null 14667e4e4deSmrgENV=/dev/null 14767e4e4deSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14867e4e4deSmrgcase $- in # (((( 14967e4e4deSmrg *v*x* | *x*v* ) as_opts=-vx ;; 15067e4e4deSmrg *v* ) as_opts=-v ;; 15167e4e4deSmrg *x* ) as_opts=-x ;; 15267e4e4deSmrg * ) as_opts= ;; 15367e4e4deSmrgesac 15467e4e4deSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15567e4e4deSmrg# Admittedly, this is quite paranoid, since all the known shells bail 15667e4e4deSmrg# out after a failed `exec'. 15767e4e4deSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15867e4e4deSmrgas_fn_exit 255 15967e4e4deSmrg fi 16067e4e4deSmrg # We don't want this to propagate to other subprocesses. 16167e4e4deSmrg { _as_can_reexec=; unset _as_can_reexec;} 162ffab5952Smrgif test "x$CONFIG_SHELL" = x; then 163ffab5952Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164ffab5952Smrg emulate sh 165ffab5952Smrg NULLCMD=: 166ffab5952Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167ffab5952Smrg # is contrary to our usage. Disable this feature. 168ffab5952Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 169ffab5952Smrg setopt NO_GLOB_SUBST 170ffab5952Smrgelse 171ffab5952Smrg case \`(set -o) 2>/dev/null\` in #( 172ffab5952Smrg *posix*) : 173ffab5952Smrg set -o posix ;; #( 174ffab5952Smrg *) : 175ffab5952Smrg ;; 176ffab5952Smrgesac 177ffab5952Smrgfi 178ffab5952Smrg" 179ffab5952Smrg as_required="as_fn_return () { (exit \$1); } 180ffab5952Smrgas_fn_success () { as_fn_return 0; } 181ffab5952Smrgas_fn_failure () { as_fn_return 1; } 182ffab5952Smrgas_fn_ret_success () { return 0; } 183ffab5952Smrgas_fn_ret_failure () { return 1; } 184ffab5952Smrg 185ffab5952Smrgexitcode=0 186ffab5952Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187ffab5952Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188ffab5952Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189ffab5952Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190ffab5952Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191ffab5952Smrg 192ffab5952Smrgelse 193ffab5952Smrg exitcode=1; echo positional parameters were not saved. 194ffab5952Smrgfi 19567e4e4deSmrgtest x\$exitcode = x0 || exit 1 19667e4e4deSmrgtest -x / || exit 1" 197ffab5952Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198ffab5952Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199ffab5952Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200ffab5952Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 201ffab5952Smrg if (eval "$as_required") 2>/dev/null; then : 202ffab5952Smrg as_have_required=yes 203ffab5952Smrgelse 204ffab5952Smrg as_have_required=no 205ffab5952Smrgfi 206ffab5952Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 207ffab5952Smrg 208ffab5952Smrgelse 209ffab5952Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 210ffab5952Smrgas_found=false 211ffab5952Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 212ffab5952Smrgdo 213ffab5952Smrg IFS=$as_save_IFS 214ffab5952Smrg test -z "$as_dir" && as_dir=. 215ffab5952Smrg as_found=: 216ffab5952Smrg case $as_dir in #( 217ffab5952Smrg /*) 218ffab5952Smrg for as_base in sh bash ksh sh5; do 219ffab5952Smrg # Try only shells that exist, to save several forks. 220ffab5952Smrg as_shell=$as_dir/$as_base 221ffab5952Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222ffab5952Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 223ffab5952Smrg CONFIG_SHELL=$as_shell as_have_required=yes 224ffab5952Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 225ffab5952Smrg break 2 226ffab5952Smrgfi 227ffab5952Smrgfi 228ffab5952Smrg done;; 229ffab5952Smrg esac 230ffab5952Smrg as_found=false 231ffab5952Smrgdone 232ffab5952Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 233ffab5952Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 234ffab5952Smrg CONFIG_SHELL=$SHELL as_have_required=yes 235ffab5952Smrgfi; } 236ffab5952SmrgIFS=$as_save_IFS 237ffab5952Smrg 238ffab5952Smrg 239ffab5952Smrg if test "x$CONFIG_SHELL" != x; then : 24067e4e4deSmrg export CONFIG_SHELL 24167e4e4deSmrg # We cannot yet assume a decent shell, so we have to provide a 24267e4e4deSmrg# neutralization value for shells without unset; and this also 24367e4e4deSmrg# works around shells that cannot unset nonexistent variables. 24467e4e4deSmrg# Preserve -v and -x to the replacement shell. 24567e4e4deSmrgBASH_ENV=/dev/null 24667e4e4deSmrgENV=/dev/null 24767e4e4deSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24867e4e4deSmrgcase $- in # (((( 24967e4e4deSmrg *v*x* | *x*v* ) as_opts=-vx ;; 25067e4e4deSmrg *v* ) as_opts=-v ;; 25167e4e4deSmrg *x* ) as_opts=-x ;; 25267e4e4deSmrg * ) as_opts= ;; 25367e4e4deSmrgesac 25467e4e4deSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25567e4e4deSmrg# Admittedly, this is quite paranoid, since all the known shells bail 25667e4e4deSmrg# out after a failed `exec'. 25767e4e4deSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 25867e4e4deSmrgexit 255 259ffab5952Smrgfi 260ffab5952Smrg 261ffab5952Smrg if test x$as_have_required = xno; then : 262ffab5952Smrg $as_echo "$0: This script requires a shell more modern than all" 263ffab5952Smrg $as_echo "$0: the shells that I found on your system." 264ffab5952Smrg if test x${ZSH_VERSION+set} = xset ; then 265ffab5952Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266ffab5952Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 267ffab5952Smrg else 268ffab5952Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 26945aa2fbfSmrg$0: https://gitlab.freedesktop.org/xorg/util/macros/issues 270ffab5952Smrg$0: about your system, including any error possibly output 271ffab5952Smrg$0: before this message. Then install a modern shell, or 272ffab5952Smrg$0: manually run the script under such a shell if you do 273ffab5952Smrg$0: have one." 274ffab5952Smrg fi 275ffab5952Smrg exit 1 276ffab5952Smrgfi 277ffab5952Smrgfi 278ffab5952Smrgfi 279ffab5952SmrgSHELL=${CONFIG_SHELL-/bin/sh} 280ffab5952Smrgexport SHELL 281ffab5952Smrg# Unset more variables known to interfere with behavior of common tools. 282ffab5952SmrgCLICOLOR_FORCE= GREP_OPTIONS= 283ffab5952Smrgunset CLICOLOR_FORCE GREP_OPTIONS 284ffab5952Smrg 285ffab5952Smrg## --------------------- ## 286ffab5952Smrg## M4sh Shell Functions. ## 287ffab5952Smrg## --------------------- ## 288ffab5952Smrg# as_fn_unset VAR 289ffab5952Smrg# --------------- 290ffab5952Smrg# Portably unset VAR. 291ffab5952Smrgas_fn_unset () 292ffab5952Smrg{ 293ffab5952Smrg { eval $1=; unset $1;} 294ffab5952Smrg} 295ffab5952Smrgas_unset=as_fn_unset 296ffab5952Smrg 297ffab5952Smrg# as_fn_set_status STATUS 298ffab5952Smrg# ----------------------- 299ffab5952Smrg# Set $? to STATUS, without forking. 300ffab5952Smrgas_fn_set_status () 301ffab5952Smrg{ 302ffab5952Smrg return $1 303ffab5952Smrg} # as_fn_set_status 304ffab5952Smrg 305ffab5952Smrg# as_fn_exit STATUS 306ffab5952Smrg# ----------------- 307ffab5952Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308ffab5952Smrgas_fn_exit () 309ffab5952Smrg{ 310ffab5952Smrg set +e 311ffab5952Smrg as_fn_set_status $1 312ffab5952Smrg exit $1 313ffab5952Smrg} # as_fn_exit 314ffab5952Smrg 315ffab5952Smrg# as_fn_mkdir_p 316ffab5952Smrg# ------------- 317ffab5952Smrg# Create "$as_dir" as a directory, including parents if necessary. 318ffab5952Smrgas_fn_mkdir_p () 319ffab5952Smrg{ 320ffab5952Smrg 321ffab5952Smrg case $as_dir in #( 322ffab5952Smrg -*) as_dir=./$as_dir;; 323ffab5952Smrg esac 324ffab5952Smrg test -d "$as_dir" || eval $as_mkdir_p || { 325ffab5952Smrg as_dirs= 326ffab5952Smrg while :; do 327ffab5952Smrg case $as_dir in #( 328ffab5952Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329ffab5952Smrg *) as_qdir=$as_dir;; 330ffab5952Smrg esac 331ffab5952Smrg as_dirs="'$as_qdir' $as_dirs" 332ffab5952Smrg as_dir=`$as_dirname -- "$as_dir" || 333ffab5952Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334ffab5952Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 335ffab5952Smrg X"$as_dir" : 'X\(//\)$' \| \ 336ffab5952Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337ffab5952Smrg$as_echo X"$as_dir" | 338ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339ffab5952Smrg s//\1/ 340ffab5952Smrg q 341ffab5952Smrg } 342ffab5952Smrg /^X\(\/\/\)[^/].*/{ 343ffab5952Smrg s//\1/ 344ffab5952Smrg q 345ffab5952Smrg } 346ffab5952Smrg /^X\(\/\/\)$/{ 347ffab5952Smrg s//\1/ 348ffab5952Smrg q 349ffab5952Smrg } 350ffab5952Smrg /^X\(\/\).*/{ 351ffab5952Smrg s//\1/ 352ffab5952Smrg q 353ffab5952Smrg } 354ffab5952Smrg s/.*/./; q'` 355ffab5952Smrg test -d "$as_dir" && break 356ffab5952Smrg done 357ffab5952Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 358ffab5952Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359ffab5952Smrg 360ffab5952Smrg 361ffab5952Smrg} # as_fn_mkdir_p 36267e4e4deSmrg 36367e4e4deSmrg# as_fn_executable_p FILE 36467e4e4deSmrg# ----------------------- 36567e4e4deSmrg# Test if FILE is an executable regular file. 36667e4e4deSmrgas_fn_executable_p () 36767e4e4deSmrg{ 36867e4e4deSmrg test -f "$1" && test -x "$1" 36967e4e4deSmrg} # as_fn_executable_p 370ffab5952Smrg# as_fn_append VAR VALUE 371ffab5952Smrg# ---------------------- 372ffab5952Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 373ffab5952Smrg# advantage of any shell optimizations that allow amortized linear growth over 374ffab5952Smrg# repeated appends, instead of the typical quadratic growth present in naive 375ffab5952Smrg# implementations. 376ffab5952Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377ffab5952Smrg eval 'as_fn_append () 378ffab5952Smrg { 379ffab5952Smrg eval $1+=\$2 380ffab5952Smrg }' 381ffab5952Smrgelse 382ffab5952Smrg as_fn_append () 383ffab5952Smrg { 384ffab5952Smrg eval $1=\$$1\$2 385ffab5952Smrg } 386ffab5952Smrgfi # as_fn_append 387ffab5952Smrg 388ffab5952Smrg# as_fn_arith ARG... 389ffab5952Smrg# ------------------ 390ffab5952Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 391ffab5952Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 392ffab5952Smrg# must be portable across $(()) and expr. 393ffab5952Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394ffab5952Smrg eval 'as_fn_arith () 395ffab5952Smrg { 396ffab5952Smrg as_val=$(( $* )) 397ffab5952Smrg }' 398ffab5952Smrgelse 399ffab5952Smrg as_fn_arith () 400ffab5952Smrg { 401ffab5952Smrg as_val=`expr "$@" || test $? -eq 1` 402ffab5952Smrg } 403ffab5952Smrgfi # as_fn_arith 404ffab5952Smrg 405ffab5952Smrg 406ffab5952Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 407ffab5952Smrg# ---------------------------------------- 408ffab5952Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409ffab5952Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410ffab5952Smrg# script with STATUS, using 1 if that was 0. 411ffab5952Smrgas_fn_error () 412ffab5952Smrg{ 413ffab5952Smrg as_status=$1; test $as_status -eq 0 && as_status=1 414ffab5952Smrg if test "$4"; then 415ffab5952Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417ffab5952Smrg fi 418ffab5952Smrg $as_echo "$as_me: error: $2" >&2 419ffab5952Smrg as_fn_exit $as_status 420ffab5952Smrg} # as_fn_error 421ffab5952Smrg 422ffab5952Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 423ffab5952Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 424ffab5952Smrg as_expr=expr 425ffab5952Smrgelse 426ffab5952Smrg as_expr=false 427ffab5952Smrgfi 428ffab5952Smrg 429ffab5952Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430ffab5952Smrg as_basename=basename 431ffab5952Smrgelse 432ffab5952Smrg as_basename=false 433ffab5952Smrgfi 434ffab5952Smrg 435ffab5952Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436ffab5952Smrg as_dirname=dirname 437ffab5952Smrgelse 438ffab5952Smrg as_dirname=false 439ffab5952Smrgfi 440ffab5952Smrg 441ffab5952Smrgas_me=`$as_basename -- "$0" || 442ffab5952Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443ffab5952Smrg X"$0" : 'X\(//\)$' \| \ 444ffab5952Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 445ffab5952Smrg$as_echo X/"$0" | 446ffab5952Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 447ffab5952Smrg s//\1/ 448ffab5952Smrg q 449ffab5952Smrg } 450ffab5952Smrg /^X\/\(\/\/\)$/{ 451ffab5952Smrg s//\1/ 452ffab5952Smrg q 453ffab5952Smrg } 454ffab5952Smrg /^X\/\(\/\).*/{ 455ffab5952Smrg s//\1/ 456ffab5952Smrg q 457ffab5952Smrg } 458ffab5952Smrg s/.*/./; q'` 459ffab5952Smrg 460ffab5952Smrg# Avoid depending upon Character Ranges. 461ffab5952Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 462ffab5952Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463ffab5952Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 464ffab5952Smrgas_cr_digits='0123456789' 465ffab5952Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 466ffab5952Smrg 467ffab5952Smrg 468ffab5952Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 469ffab5952Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 470ffab5952Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471ffab5952Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472ffab5952Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473ffab5952Smrg sed -n ' 474ffab5952Smrg p 475ffab5952Smrg /[$]LINENO/= 476ffab5952Smrg ' <$as_myself | 477ffab5952Smrg sed ' 478ffab5952Smrg s/[$]LINENO.*/&-/ 479ffab5952Smrg t lineno 480ffab5952Smrg b 481ffab5952Smrg :lineno 482ffab5952Smrg N 483ffab5952Smrg :loop 484ffab5952Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485ffab5952Smrg t loop 486ffab5952Smrg s/-\n.*// 487ffab5952Smrg ' >$as_me.lineno && 488ffab5952Smrg chmod +x "$as_me.lineno" || 489ffab5952Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490ffab5952Smrg 49167e4e4deSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 49267e4e4deSmrg # already done that, so ensure we don't try to do so again and fall 49367e4e4deSmrg # in an infinite loop. This has already happened in practice. 49467e4e4deSmrg _as_can_reexec=no; export _as_can_reexec 495ffab5952Smrg # Don't try to exec as it changes $[0], causing all sort of problems 496ffab5952Smrg # (the dirname of $[0] is not the place where we might find the 497ffab5952Smrg # original and so on. Autoconf is especially sensitive to this). 498ffab5952Smrg . "./$as_me.lineno" 499ffab5952Smrg # Exit status is that of the last command. 500ffab5952Smrg exit 501ffab5952Smrg} 502ffab5952Smrg 503ffab5952SmrgECHO_C= ECHO_N= ECHO_T= 504ffab5952Smrgcase `echo -n x` in #((((( 505ffab5952Smrg-n*) 506ffab5952Smrg case `echo 'xy\c'` in 507ffab5952Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508ffab5952Smrg xy) ECHO_C='\c';; 509ffab5952Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510ffab5952Smrg ECHO_T=' ';; 511ffab5952Smrg esac;; 512ffab5952Smrg*) 513ffab5952Smrg ECHO_N='-n';; 514ffab5952Smrgesac 515ffab5952Smrg 516ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.file 517ffab5952Smrgif test -d conf$$.dir; then 518ffab5952Smrg rm -f conf$$.dir/conf$$.file 519ffab5952Smrgelse 520ffab5952Smrg rm -f conf$$.dir 521ffab5952Smrg mkdir conf$$.dir 2>/dev/null 522ffab5952Smrgfi 523ffab5952Smrgif (echo >conf$$.file) 2>/dev/null; then 524ffab5952Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 525ffab5952Smrg as_ln_s='ln -s' 526ffab5952Smrg # ... but there are two gotchas: 527ffab5952Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528ffab5952Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52967e4e4deSmrg # In both cases, we have to default to `cp -pR'. 530ffab5952Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53167e4e4deSmrg as_ln_s='cp -pR' 532ffab5952Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 533ffab5952Smrg as_ln_s=ln 534ffab5952Smrg else 53567e4e4deSmrg as_ln_s='cp -pR' 536ffab5952Smrg fi 537ffab5952Smrgelse 53867e4e4deSmrg as_ln_s='cp -pR' 539ffab5952Smrgfi 540ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541ffab5952Smrgrmdir conf$$.dir 2>/dev/null 542ffab5952Smrg 543ffab5952Smrgif mkdir -p . 2>/dev/null; then 544ffab5952Smrg as_mkdir_p='mkdir -p "$as_dir"' 545ffab5952Smrgelse 546ffab5952Smrg test -d ./-p && rmdir ./-p 547ffab5952Smrg as_mkdir_p=false 548ffab5952Smrgfi 549ffab5952Smrg 55067e4e4deSmrgas_test_x='test -x' 55167e4e4deSmrgas_executable_p=as_fn_executable_p 552ffab5952Smrg 553ffab5952Smrg# Sed expression to map a string onto a valid CPP name. 554ffab5952Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555ffab5952Smrg 556ffab5952Smrg# Sed expression to map a string onto a valid variable name. 557ffab5952Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558ffab5952Smrg 559ffab5952Smrg 560ffab5952Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 561ffab5952Smrgexec 6>&1 562ffab5952Smrg 563ffab5952Smrg# Name of the host. 564ffab5952Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565ffab5952Smrg# so uname gets run too. 566ffab5952Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567ffab5952Smrg 568ffab5952Smrg# 569ffab5952Smrg# Initializations. 570ffab5952Smrg# 571ffab5952Smrgac_default_prefix=/usr/local 572ffab5952Smrgac_clean_files= 573ffab5952Smrgac_config_libobj_dir=. 574ffab5952SmrgLIBOBJS= 575ffab5952Smrgcross_compiling=no 576ffab5952Smrgsubdirs= 577ffab5952SmrgMFLAGS= 578ffab5952SmrgMAKEFLAGS= 579ffab5952Smrg 580ffab5952Smrg# Identity of this package. 581ffab5952SmrgPACKAGE_NAME='util-macros' 582ffab5952SmrgPACKAGE_TARNAME='util-macros' 58345aa2fbfSmrgPACKAGE_VERSION='1.19.3' 58445aa2fbfSmrgPACKAGE_STRING='util-macros 1.19.3' 58545aa2fbfSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/macros/issues' 586ffab5952SmrgPACKAGE_URL='' 587ffab5952Smrg 588ffab5952Smrgac_unique_file="Makefile.am" 589ffab5952Smrgac_subst_vars='LTLIBOBJS 590ffab5952SmrgLIBOBJS 591ffab5952SmrgCHANGELOG_CMD 59267e4e4deSmrgAM_BACKSLASH 59367e4e4deSmrgAM_DEFAULT_VERBOSITY 59467e4e4deSmrgAM_DEFAULT_V 59567e4e4deSmrgAM_V 596ffab5952Smrgam__untar 597ffab5952Smrgam__tar 598ffab5952SmrgAMTAR 599ffab5952Smrgam__leading_dot 600ffab5952SmrgSET_MAKE 601ffab5952SmrgAWK 602ffab5952Smrgmkdir_p 603ffab5952SmrgMKDIR_P 604ffab5952SmrgINSTALL_STRIP_PROGRAM 605ffab5952SmrgSTRIP 606ffab5952Smrginstall_sh 607ffab5952SmrgMAKEINFO 608ffab5952SmrgAUTOHEADER 609ffab5952SmrgAUTOMAKE 610ffab5952SmrgAUTOCONF 611ffab5952SmrgACLOCAL 612ffab5952SmrgVERSION 613ffab5952SmrgPACKAGE 614ffab5952SmrgCYGPATH_W 615ffab5952Smrgam__isrc 616ffab5952SmrgINSTALL_DATA 617ffab5952SmrgINSTALL_SCRIPT 618ffab5952SmrgINSTALL_PROGRAM 619ffab5952Smrgtarget_alias 620ffab5952Smrghost_alias 621ffab5952Smrgbuild_alias 622ffab5952SmrgLIBS 623ffab5952SmrgECHO_T 624ffab5952SmrgECHO_N 625ffab5952SmrgECHO_C 626ffab5952SmrgDEFS 627ffab5952Smrgmandir 628ffab5952Smrglocaledir 629ffab5952Smrglibdir 630ffab5952Smrgpsdir 631ffab5952Smrgpdfdir 632ffab5952Smrgdvidir 633ffab5952Smrghtmldir 634ffab5952Smrginfodir 635ffab5952Smrgdocdir 636ffab5952Smrgoldincludedir 637ffab5952Smrgincludedir 63845aa2fbfSmrgrunstatedir 639ffab5952Smrglocalstatedir 640ffab5952Smrgsharedstatedir 641ffab5952Smrgsysconfdir 642ffab5952Smrgdatadir 643ffab5952Smrgdatarootdir 644ffab5952Smrglibexecdir 645ffab5952Smrgsbindir 646ffab5952Smrgbindir 647ffab5952Smrgprogram_transform_name 648ffab5952Smrgprefix 649ffab5952Smrgexec_prefix 650ffab5952SmrgPACKAGE_URL 651ffab5952SmrgPACKAGE_BUGREPORT 652ffab5952SmrgPACKAGE_STRING 653ffab5952SmrgPACKAGE_VERSION 654ffab5952SmrgPACKAGE_TARNAME 655ffab5952SmrgPACKAGE_NAME 656ffab5952SmrgPATH_SEPARATOR 657ffab5952SmrgSHELL' 658ffab5952Smrgac_subst_files='' 659ffab5952Smrgac_user_opts=' 660ffab5952Smrgenable_option_checking 66167e4e4deSmrgenable_silent_rules 662ffab5952Smrg' 663ffab5952Smrg ac_precious_vars='build_alias 664ffab5952Smrghost_alias 665ffab5952Smrgtarget_alias' 666ffab5952Smrg 667ffab5952Smrg 668ffab5952Smrg# Initialize some variables set by options. 669ffab5952Smrgac_init_help= 670ffab5952Smrgac_init_version=false 671ffab5952Smrgac_unrecognized_opts= 672ffab5952Smrgac_unrecognized_sep= 673ffab5952Smrg# The variables have the same names as the options, with 674ffab5952Smrg# dashes changed to underlines. 675ffab5952Smrgcache_file=/dev/null 676ffab5952Smrgexec_prefix=NONE 677ffab5952Smrgno_create= 678ffab5952Smrgno_recursion= 679ffab5952Smrgprefix=NONE 680ffab5952Smrgprogram_prefix=NONE 681ffab5952Smrgprogram_suffix=NONE 682ffab5952Smrgprogram_transform_name=s,x,x, 683ffab5952Smrgsilent= 684ffab5952Smrgsite= 685ffab5952Smrgsrcdir= 686ffab5952Smrgverbose= 687ffab5952Smrgx_includes=NONE 688ffab5952Smrgx_libraries=NONE 689ffab5952Smrg 690ffab5952Smrg# Installation directory options. 691ffab5952Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 692ffab5952Smrg# and all the variables that are supposed to be based on exec_prefix 693ffab5952Smrg# by default will actually change. 694ffab5952Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 695ffab5952Smrg# (The list follows the same order as the GNU Coding Standards.) 696ffab5952Smrgbindir='${exec_prefix}/bin' 697ffab5952Smrgsbindir='${exec_prefix}/sbin' 698ffab5952Smrglibexecdir='${exec_prefix}/libexec' 699ffab5952Smrgdatarootdir='${prefix}/share' 700ffab5952Smrgdatadir='${datarootdir}' 701ffab5952Smrgsysconfdir='${prefix}/etc' 702ffab5952Smrgsharedstatedir='${prefix}/com' 703ffab5952Smrglocalstatedir='${prefix}/var' 70445aa2fbfSmrgrunstatedir='${localstatedir}/run' 705ffab5952Smrgincludedir='${prefix}/include' 706ffab5952Smrgoldincludedir='/usr/include' 707ffab5952Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 708ffab5952Smrginfodir='${datarootdir}/info' 709ffab5952Smrghtmldir='${docdir}' 710ffab5952Smrgdvidir='${docdir}' 711ffab5952Smrgpdfdir='${docdir}' 712ffab5952Smrgpsdir='${docdir}' 713ffab5952Smrglibdir='${exec_prefix}/lib' 714ffab5952Smrglocaledir='${datarootdir}/locale' 715ffab5952Smrgmandir='${datarootdir}/man' 716ffab5952Smrg 717ffab5952Smrgac_prev= 718ffab5952Smrgac_dashdash= 719ffab5952Smrgfor ac_option 720ffab5952Smrgdo 721ffab5952Smrg # If the previous option needs an argument, assign it. 722ffab5952Smrg if test -n "$ac_prev"; then 723ffab5952Smrg eval $ac_prev=\$ac_option 724ffab5952Smrg ac_prev= 725ffab5952Smrg continue 726ffab5952Smrg fi 727ffab5952Smrg 728ffab5952Smrg case $ac_option in 729ffab5952Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 730ffab5952Smrg *=) ac_optarg= ;; 731ffab5952Smrg *) ac_optarg=yes ;; 732ffab5952Smrg esac 733ffab5952Smrg 734ffab5952Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 735ffab5952Smrg 736ffab5952Smrg case $ac_dashdash$ac_option in 737ffab5952Smrg --) 738ffab5952Smrg ac_dashdash=yes ;; 739ffab5952Smrg 740ffab5952Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 741ffab5952Smrg ac_prev=bindir ;; 742ffab5952Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 743ffab5952Smrg bindir=$ac_optarg ;; 744ffab5952Smrg 745ffab5952Smrg -build | --build | --buil | --bui | --bu) 746ffab5952Smrg ac_prev=build_alias ;; 747ffab5952Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 748ffab5952Smrg build_alias=$ac_optarg ;; 749ffab5952Smrg 750ffab5952Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 751ffab5952Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 752ffab5952Smrg ac_prev=cache_file ;; 753ffab5952Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 754ffab5952Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 755ffab5952Smrg cache_file=$ac_optarg ;; 756ffab5952Smrg 757ffab5952Smrg --config-cache | -C) 758ffab5952Smrg cache_file=config.cache ;; 759ffab5952Smrg 760ffab5952Smrg -datadir | --datadir | --datadi | --datad) 761ffab5952Smrg ac_prev=datadir ;; 762ffab5952Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 763ffab5952Smrg datadir=$ac_optarg ;; 764ffab5952Smrg 765ffab5952Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 766ffab5952Smrg | --dataroo | --dataro | --datar) 767ffab5952Smrg ac_prev=datarootdir ;; 768ffab5952Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 769ffab5952Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 770ffab5952Smrg datarootdir=$ac_optarg ;; 771ffab5952Smrg 772ffab5952Smrg -disable-* | --disable-*) 773ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 774ffab5952Smrg # Reject names that are not valid shell variable names. 775ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 776ffab5952Smrg as_fn_error $? "invalid feature name: $ac_useropt" 777ffab5952Smrg ac_useropt_orig=$ac_useropt 778ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 779ffab5952Smrg case $ac_user_opts in 780ffab5952Smrg *" 781ffab5952Smrg"enable_$ac_useropt" 782ffab5952Smrg"*) ;; 783ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 784ffab5952Smrg ac_unrecognized_sep=', ';; 785ffab5952Smrg esac 786ffab5952Smrg eval enable_$ac_useropt=no ;; 787ffab5952Smrg 788ffab5952Smrg -docdir | --docdir | --docdi | --doc | --do) 789ffab5952Smrg ac_prev=docdir ;; 790ffab5952Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 791ffab5952Smrg docdir=$ac_optarg ;; 792ffab5952Smrg 793ffab5952Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 794ffab5952Smrg ac_prev=dvidir ;; 795ffab5952Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 796ffab5952Smrg dvidir=$ac_optarg ;; 797ffab5952Smrg 798ffab5952Smrg -enable-* | --enable-*) 799ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 800ffab5952Smrg # Reject names that are not valid shell variable names. 801ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 802ffab5952Smrg as_fn_error $? "invalid feature name: $ac_useropt" 803ffab5952Smrg ac_useropt_orig=$ac_useropt 804ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 805ffab5952Smrg case $ac_user_opts in 806ffab5952Smrg *" 807ffab5952Smrg"enable_$ac_useropt" 808ffab5952Smrg"*) ;; 809ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 810ffab5952Smrg ac_unrecognized_sep=', ';; 811ffab5952Smrg esac 812ffab5952Smrg eval enable_$ac_useropt=\$ac_optarg ;; 813ffab5952Smrg 814ffab5952Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 815ffab5952Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 816ffab5952Smrg | --exec | --exe | --ex) 817ffab5952Smrg ac_prev=exec_prefix ;; 818ffab5952Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 819ffab5952Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 820ffab5952Smrg | --exec=* | --exe=* | --ex=*) 821ffab5952Smrg exec_prefix=$ac_optarg ;; 822ffab5952Smrg 823ffab5952Smrg -gas | --gas | --ga | --g) 824ffab5952Smrg # Obsolete; use --with-gas. 825ffab5952Smrg with_gas=yes ;; 826ffab5952Smrg 827ffab5952Smrg -help | --help | --hel | --he | -h) 828ffab5952Smrg ac_init_help=long ;; 829ffab5952Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 830ffab5952Smrg ac_init_help=recursive ;; 831ffab5952Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 832ffab5952Smrg ac_init_help=short ;; 833ffab5952Smrg 834ffab5952Smrg -host | --host | --hos | --ho) 835ffab5952Smrg ac_prev=host_alias ;; 836ffab5952Smrg -host=* | --host=* | --hos=* | --ho=*) 837ffab5952Smrg host_alias=$ac_optarg ;; 838ffab5952Smrg 839ffab5952Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 840ffab5952Smrg ac_prev=htmldir ;; 841ffab5952Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 842ffab5952Smrg | --ht=*) 843ffab5952Smrg htmldir=$ac_optarg ;; 844ffab5952Smrg 845ffab5952Smrg -includedir | --includedir | --includedi | --included | --include \ 846ffab5952Smrg | --includ | --inclu | --incl | --inc) 847ffab5952Smrg ac_prev=includedir ;; 848ffab5952Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 849ffab5952Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 850ffab5952Smrg includedir=$ac_optarg ;; 851ffab5952Smrg 852ffab5952Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 853ffab5952Smrg ac_prev=infodir ;; 854ffab5952Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 855ffab5952Smrg infodir=$ac_optarg ;; 856ffab5952Smrg 857ffab5952Smrg -libdir | --libdir | --libdi | --libd) 858ffab5952Smrg ac_prev=libdir ;; 859ffab5952Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 860ffab5952Smrg libdir=$ac_optarg ;; 861ffab5952Smrg 862ffab5952Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 863ffab5952Smrg | --libexe | --libex | --libe) 864ffab5952Smrg ac_prev=libexecdir ;; 865ffab5952Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 866ffab5952Smrg | --libexe=* | --libex=* | --libe=*) 867ffab5952Smrg libexecdir=$ac_optarg ;; 868ffab5952Smrg 869ffab5952Smrg -localedir | --localedir | --localedi | --localed | --locale) 870ffab5952Smrg ac_prev=localedir ;; 871ffab5952Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 872ffab5952Smrg localedir=$ac_optarg ;; 873ffab5952Smrg 874ffab5952Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 875ffab5952Smrg | --localstate | --localstat | --localsta | --localst | --locals) 876ffab5952Smrg ac_prev=localstatedir ;; 877ffab5952Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 878ffab5952Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 879ffab5952Smrg localstatedir=$ac_optarg ;; 880ffab5952Smrg 881ffab5952Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 882ffab5952Smrg ac_prev=mandir ;; 883ffab5952Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 884ffab5952Smrg mandir=$ac_optarg ;; 885ffab5952Smrg 886ffab5952Smrg -nfp | --nfp | --nf) 887ffab5952Smrg # Obsolete; use --without-fp. 888ffab5952Smrg with_fp=no ;; 889ffab5952Smrg 890ffab5952Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 891ffab5952Smrg | --no-cr | --no-c | -n) 892ffab5952Smrg no_create=yes ;; 893ffab5952Smrg 894ffab5952Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 895ffab5952Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 896ffab5952Smrg no_recursion=yes ;; 897ffab5952Smrg 898ffab5952Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 899ffab5952Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 900ffab5952Smrg | --oldin | --oldi | --old | --ol | --o) 901ffab5952Smrg ac_prev=oldincludedir ;; 902ffab5952Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 903ffab5952Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 904ffab5952Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 905ffab5952Smrg oldincludedir=$ac_optarg ;; 906ffab5952Smrg 907ffab5952Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 908ffab5952Smrg ac_prev=prefix ;; 909ffab5952Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 910ffab5952Smrg prefix=$ac_optarg ;; 911ffab5952Smrg 912ffab5952Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 913ffab5952Smrg | --program-pre | --program-pr | --program-p) 914ffab5952Smrg ac_prev=program_prefix ;; 915ffab5952Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 916ffab5952Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 917ffab5952Smrg program_prefix=$ac_optarg ;; 918ffab5952Smrg 919ffab5952Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 920ffab5952Smrg | --program-suf | --program-su | --program-s) 921ffab5952Smrg ac_prev=program_suffix ;; 922ffab5952Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 923ffab5952Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 924ffab5952Smrg program_suffix=$ac_optarg ;; 925ffab5952Smrg 926ffab5952Smrg -program-transform-name | --program-transform-name \ 927ffab5952Smrg | --program-transform-nam | --program-transform-na \ 928ffab5952Smrg | --program-transform-n | --program-transform- \ 929ffab5952Smrg | --program-transform | --program-transfor \ 930ffab5952Smrg | --program-transfo | --program-transf \ 931ffab5952Smrg | --program-trans | --program-tran \ 932ffab5952Smrg | --progr-tra | --program-tr | --program-t) 933ffab5952Smrg ac_prev=program_transform_name ;; 934ffab5952Smrg -program-transform-name=* | --program-transform-name=* \ 935ffab5952Smrg | --program-transform-nam=* | --program-transform-na=* \ 936ffab5952Smrg | --program-transform-n=* | --program-transform-=* \ 937ffab5952Smrg | --program-transform=* | --program-transfor=* \ 938ffab5952Smrg | --program-transfo=* | --program-transf=* \ 939ffab5952Smrg | --program-trans=* | --program-tran=* \ 940ffab5952Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 941ffab5952Smrg program_transform_name=$ac_optarg ;; 942ffab5952Smrg 943ffab5952Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 944ffab5952Smrg ac_prev=pdfdir ;; 945ffab5952Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 946ffab5952Smrg pdfdir=$ac_optarg ;; 947ffab5952Smrg 948ffab5952Smrg -psdir | --psdir | --psdi | --psd | --ps) 949ffab5952Smrg ac_prev=psdir ;; 950ffab5952Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 951ffab5952Smrg psdir=$ac_optarg ;; 952ffab5952Smrg 953ffab5952Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 954ffab5952Smrg | -silent | --silent | --silen | --sile | --sil) 955ffab5952Smrg silent=yes ;; 956ffab5952Smrg 95745aa2fbfSmrg -runstatedir | --runstatedir | --runstatedi | --runstated \ 95845aa2fbfSmrg | --runstate | --runstat | --runsta | --runst | --runs \ 95945aa2fbfSmrg | --run | --ru | --r) 96045aa2fbfSmrg ac_prev=runstatedir ;; 96145aa2fbfSmrg -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 96245aa2fbfSmrg | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 96345aa2fbfSmrg | --run=* | --ru=* | --r=*) 96445aa2fbfSmrg runstatedir=$ac_optarg ;; 96545aa2fbfSmrg 966ffab5952Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 967ffab5952Smrg ac_prev=sbindir ;; 968ffab5952Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 969ffab5952Smrg | --sbi=* | --sb=*) 970ffab5952Smrg sbindir=$ac_optarg ;; 971ffab5952Smrg 972ffab5952Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 973ffab5952Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 974ffab5952Smrg | --sharedst | --shareds | --shared | --share | --shar \ 975ffab5952Smrg | --sha | --sh) 976ffab5952Smrg ac_prev=sharedstatedir ;; 977ffab5952Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 978ffab5952Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 979ffab5952Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 980ffab5952Smrg | --sha=* | --sh=*) 981ffab5952Smrg sharedstatedir=$ac_optarg ;; 982ffab5952Smrg 983ffab5952Smrg -site | --site | --sit) 984ffab5952Smrg ac_prev=site ;; 985ffab5952Smrg -site=* | --site=* | --sit=*) 986ffab5952Smrg site=$ac_optarg ;; 987ffab5952Smrg 988ffab5952Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 989ffab5952Smrg ac_prev=srcdir ;; 990ffab5952Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 991ffab5952Smrg srcdir=$ac_optarg ;; 992ffab5952Smrg 993ffab5952Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 994ffab5952Smrg | --syscon | --sysco | --sysc | --sys | --sy) 995ffab5952Smrg ac_prev=sysconfdir ;; 996ffab5952Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 997ffab5952Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 998ffab5952Smrg sysconfdir=$ac_optarg ;; 999ffab5952Smrg 1000ffab5952Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1001ffab5952Smrg ac_prev=target_alias ;; 1002ffab5952Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1003ffab5952Smrg target_alias=$ac_optarg ;; 1004ffab5952Smrg 1005ffab5952Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1006ffab5952Smrg verbose=yes ;; 1007ffab5952Smrg 1008ffab5952Smrg -version | --version | --versio | --versi | --vers | -V) 1009ffab5952Smrg ac_init_version=: ;; 1010ffab5952Smrg 1011ffab5952Smrg -with-* | --with-*) 1012ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1013ffab5952Smrg # Reject names that are not valid shell variable names. 1014ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015ffab5952Smrg as_fn_error $? "invalid package name: $ac_useropt" 1016ffab5952Smrg ac_useropt_orig=$ac_useropt 1017ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018ffab5952Smrg case $ac_user_opts in 1019ffab5952Smrg *" 1020ffab5952Smrg"with_$ac_useropt" 1021ffab5952Smrg"*) ;; 1022ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1023ffab5952Smrg ac_unrecognized_sep=', ';; 1024ffab5952Smrg esac 1025ffab5952Smrg eval with_$ac_useropt=\$ac_optarg ;; 1026ffab5952Smrg 1027ffab5952Smrg -without-* | --without-*) 1028ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1029ffab5952Smrg # Reject names that are not valid shell variable names. 1030ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1031ffab5952Smrg as_fn_error $? "invalid package name: $ac_useropt" 1032ffab5952Smrg ac_useropt_orig=$ac_useropt 1033ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1034ffab5952Smrg case $ac_user_opts in 1035ffab5952Smrg *" 1036ffab5952Smrg"with_$ac_useropt" 1037ffab5952Smrg"*) ;; 1038ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1039ffab5952Smrg ac_unrecognized_sep=', ';; 1040ffab5952Smrg esac 1041ffab5952Smrg eval with_$ac_useropt=no ;; 1042ffab5952Smrg 1043ffab5952Smrg --x) 1044ffab5952Smrg # Obsolete; use --with-x. 1045ffab5952Smrg with_x=yes ;; 1046ffab5952Smrg 1047ffab5952Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1048ffab5952Smrg | --x-incl | --x-inc | --x-in | --x-i) 1049ffab5952Smrg ac_prev=x_includes ;; 1050ffab5952Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1051ffab5952Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1052ffab5952Smrg x_includes=$ac_optarg ;; 1053ffab5952Smrg 1054ffab5952Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1055ffab5952Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1056ffab5952Smrg ac_prev=x_libraries ;; 1057ffab5952Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1058ffab5952Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1059ffab5952Smrg x_libraries=$ac_optarg ;; 1060ffab5952Smrg 1061ffab5952Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1062ffab5952SmrgTry \`$0 --help' for more information" 1063ffab5952Smrg ;; 1064ffab5952Smrg 1065ffab5952Smrg *=*) 1066ffab5952Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1067ffab5952Smrg # Reject names that are not valid shell variable names. 1068ffab5952Smrg case $ac_envvar in #( 1069ffab5952Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1070ffab5952Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1071ffab5952Smrg esac 1072ffab5952Smrg eval $ac_envvar=\$ac_optarg 1073ffab5952Smrg export $ac_envvar ;; 1074ffab5952Smrg 1075ffab5952Smrg *) 1076ffab5952Smrg # FIXME: should be removed in autoconf 3.0. 1077ffab5952Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1078ffab5952Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1079ffab5952Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1080ffab5952Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1081ffab5952Smrg ;; 1082ffab5952Smrg 1083ffab5952Smrg esac 1084ffab5952Smrgdone 1085ffab5952Smrg 1086ffab5952Smrgif test -n "$ac_prev"; then 1087ffab5952Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1088ffab5952Smrg as_fn_error $? "missing argument to $ac_option" 1089ffab5952Smrgfi 1090ffab5952Smrg 1091ffab5952Smrgif test -n "$ac_unrecognized_opts"; then 1092ffab5952Smrg case $enable_option_checking in 1093ffab5952Smrg no) ;; 1094ffab5952Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1095ffab5952Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1096ffab5952Smrg esac 1097ffab5952Smrgfi 1098ffab5952Smrg 1099ffab5952Smrg# Check all directory arguments for consistency. 1100ffab5952Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1101ffab5952Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1102ffab5952Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 110345aa2fbfSmrg libdir localedir mandir runstatedir 1104ffab5952Smrgdo 1105ffab5952Smrg eval ac_val=\$$ac_var 1106ffab5952Smrg # Remove trailing slashes. 1107ffab5952Smrg case $ac_val in 1108ffab5952Smrg */ ) 1109ffab5952Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1110ffab5952Smrg eval $ac_var=\$ac_val;; 1111ffab5952Smrg esac 1112ffab5952Smrg # Be sure to have absolute directory names. 1113ffab5952Smrg case $ac_val in 1114ffab5952Smrg [\\/$]* | ?:[\\/]* ) continue;; 1115ffab5952Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1116ffab5952Smrg esac 1117ffab5952Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1118ffab5952Smrgdone 1119ffab5952Smrg 1120ffab5952Smrg# There might be people who depend on the old broken behavior: `$host' 1121ffab5952Smrg# used to hold the argument of --host etc. 1122ffab5952Smrg# FIXME: To remove some day. 1123ffab5952Smrgbuild=$build_alias 1124ffab5952Smrghost=$host_alias 1125ffab5952Smrgtarget=$target_alias 1126ffab5952Smrg 1127ffab5952Smrg# FIXME: To remove some day. 1128ffab5952Smrgif test "x$host_alias" != x; then 1129ffab5952Smrg if test "x$build_alias" = x; then 1130ffab5952Smrg cross_compiling=maybe 1131ffab5952Smrg elif test "x$build_alias" != "x$host_alias"; then 1132ffab5952Smrg cross_compiling=yes 1133ffab5952Smrg fi 1134ffab5952Smrgfi 1135ffab5952Smrg 1136ffab5952Smrgac_tool_prefix= 1137ffab5952Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1138ffab5952Smrg 1139ffab5952Smrgtest "$silent" = yes && exec 6>/dev/null 1140ffab5952Smrg 1141ffab5952Smrg 1142ffab5952Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1143ffab5952Smrgac_ls_di=`ls -di .` && 1144ffab5952Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1145ffab5952Smrg as_fn_error $? "working directory cannot be determined" 1146ffab5952Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1147ffab5952Smrg as_fn_error $? "pwd does not report name of working directory" 1148ffab5952Smrg 1149ffab5952Smrg 1150ffab5952Smrg# Find the source files, if location was not specified. 1151ffab5952Smrgif test -z "$srcdir"; then 1152ffab5952Smrg ac_srcdir_defaulted=yes 1153ffab5952Smrg # Try the directory containing this script, then the parent directory. 1154ffab5952Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1155ffab5952Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1156ffab5952Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1157ffab5952Smrg X"$as_myself" : 'X\(//\)$' \| \ 1158ffab5952Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1159ffab5952Smrg$as_echo X"$as_myself" | 1160ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1161ffab5952Smrg s//\1/ 1162ffab5952Smrg q 1163ffab5952Smrg } 1164ffab5952Smrg /^X\(\/\/\)[^/].*/{ 1165ffab5952Smrg s//\1/ 1166ffab5952Smrg q 1167ffab5952Smrg } 1168ffab5952Smrg /^X\(\/\/\)$/{ 1169ffab5952Smrg s//\1/ 1170ffab5952Smrg q 1171ffab5952Smrg } 1172ffab5952Smrg /^X\(\/\).*/{ 1173ffab5952Smrg s//\1/ 1174ffab5952Smrg q 1175ffab5952Smrg } 1176ffab5952Smrg s/.*/./; q'` 1177ffab5952Smrg srcdir=$ac_confdir 1178ffab5952Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1179ffab5952Smrg srcdir=.. 1180ffab5952Smrg fi 1181ffab5952Smrgelse 1182ffab5952Smrg ac_srcdir_defaulted=no 1183ffab5952Smrgfi 1184ffab5952Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1185ffab5952Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1186ffab5952Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1187ffab5952Smrgfi 1188ffab5952Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1189ffab5952Smrgac_abs_confdir=`( 1190ffab5952Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1191ffab5952Smrg pwd)` 1192ffab5952Smrg# When building in place, set srcdir=. 1193ffab5952Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1194ffab5952Smrg srcdir=. 1195ffab5952Smrgfi 1196ffab5952Smrg# Remove unnecessary trailing slashes from srcdir. 1197ffab5952Smrg# Double slashes in file names in object file debugging info 1198ffab5952Smrg# mess up M-x gdb in Emacs. 1199ffab5952Smrgcase $srcdir in 1200ffab5952Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1201ffab5952Smrgesac 1202ffab5952Smrgfor ac_var in $ac_precious_vars; do 1203ffab5952Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1204ffab5952Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1205ffab5952Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1206ffab5952Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1207ffab5952Smrgdone 1208ffab5952Smrg 1209ffab5952Smrg# 1210ffab5952Smrg# Report the --help message. 1211ffab5952Smrg# 1212ffab5952Smrgif test "$ac_init_help" = "long"; then 1213ffab5952Smrg # Omit some internal or obsolete options to make the list less imposing. 1214ffab5952Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1215ffab5952Smrg cat <<_ACEOF 121645aa2fbfSmrg\`configure' configures util-macros 1.19.3 to adapt to many kinds of systems. 1217ffab5952Smrg 1218ffab5952SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1219ffab5952Smrg 1220ffab5952SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1221ffab5952SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1222ffab5952Smrg 1223ffab5952SmrgDefaults for the options are specified in brackets. 1224ffab5952Smrg 1225ffab5952SmrgConfiguration: 1226ffab5952Smrg -h, --help display this help and exit 1227ffab5952Smrg --help=short display options specific to this package 1228ffab5952Smrg --help=recursive display the short help of all the included packages 1229ffab5952Smrg -V, --version display version information and exit 1230ffab5952Smrg -q, --quiet, --silent do not print \`checking ...' messages 1231ffab5952Smrg --cache-file=FILE cache test results in FILE [disabled] 1232ffab5952Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1233ffab5952Smrg -n, --no-create do not create output files 1234ffab5952Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1235ffab5952Smrg 1236ffab5952SmrgInstallation directories: 1237ffab5952Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1238ffab5952Smrg [$ac_default_prefix] 1239ffab5952Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1240ffab5952Smrg [PREFIX] 1241ffab5952Smrg 1242ffab5952SmrgBy default, \`make install' will install all the files in 1243ffab5952Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1244ffab5952Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1245ffab5952Smrgfor instance \`--prefix=\$HOME'. 1246ffab5952Smrg 1247ffab5952SmrgFor better control, use the options below. 1248ffab5952Smrg 1249ffab5952SmrgFine tuning of the installation directories: 1250ffab5952Smrg --bindir=DIR user executables [EPREFIX/bin] 1251ffab5952Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1252ffab5952Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1253ffab5952Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1254ffab5952Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1255ffab5952Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 125645aa2fbfSmrg --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1257ffab5952Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1258ffab5952Smrg --includedir=DIR C header files [PREFIX/include] 1259ffab5952Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1260ffab5952Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1261ffab5952Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1262ffab5952Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1263ffab5952Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1264ffab5952Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1265ffab5952Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/util-macros] 1266ffab5952Smrg --htmldir=DIR html documentation [DOCDIR] 1267ffab5952Smrg --dvidir=DIR dvi documentation [DOCDIR] 1268ffab5952Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1269ffab5952Smrg --psdir=DIR ps documentation [DOCDIR] 1270ffab5952Smrg_ACEOF 1271ffab5952Smrg 1272ffab5952Smrg cat <<\_ACEOF 1273ffab5952Smrg 1274ffab5952SmrgProgram names: 1275ffab5952Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1276ffab5952Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1277ffab5952Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1278ffab5952Smrg_ACEOF 1279ffab5952Smrgfi 1280ffab5952Smrg 1281ffab5952Smrgif test -n "$ac_init_help"; then 1282ffab5952Smrg case $ac_init_help in 128345aa2fbfSmrg short | recursive ) echo "Configuration of util-macros 1.19.3:";; 1284ffab5952Smrg esac 1285ffab5952Smrg cat <<\_ACEOF 1286ffab5952Smrg 128767e4e4deSmrgOptional Features: 128867e4e4deSmrg --disable-option-checking ignore unrecognized --enable/--with options 128967e4e4deSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 129067e4e4deSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 129167e4e4deSmrg --enable-silent-rules less verbose build output (undo: "make V=1") 129267e4e4deSmrg --disable-silent-rules verbose build output (undo: "make V=0") 129367e4e4deSmrg 129445aa2fbfSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/util/macros/issues>. 1295ffab5952Smrg_ACEOF 1296ffab5952Smrgac_status=$? 1297ffab5952Smrgfi 1298ffab5952Smrg 1299ffab5952Smrgif test "$ac_init_help" = "recursive"; then 1300ffab5952Smrg # If there are subdirs, report their specific --help. 1301ffab5952Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1302ffab5952Smrg test -d "$ac_dir" || 1303ffab5952Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1304ffab5952Smrg continue 1305ffab5952Smrg ac_builddir=. 1306ffab5952Smrg 1307ffab5952Smrgcase "$ac_dir" in 1308ffab5952Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1309ffab5952Smrg*) 1310ffab5952Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1311ffab5952Smrg # A ".." for each directory in $ac_dir_suffix. 1312ffab5952Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1313ffab5952Smrg case $ac_top_builddir_sub in 1314ffab5952Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1315ffab5952Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1316ffab5952Smrg esac ;; 1317ffab5952Smrgesac 1318ffab5952Smrgac_abs_top_builddir=$ac_pwd 1319ffab5952Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1320ffab5952Smrg# for backward compatibility: 1321ffab5952Smrgac_top_builddir=$ac_top_build_prefix 1322ffab5952Smrg 1323ffab5952Smrgcase $srcdir in 1324ffab5952Smrg .) # We are building in place. 1325ffab5952Smrg ac_srcdir=. 1326ffab5952Smrg ac_top_srcdir=$ac_top_builddir_sub 1327ffab5952Smrg ac_abs_top_srcdir=$ac_pwd ;; 1328ffab5952Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1329ffab5952Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1330ffab5952Smrg ac_top_srcdir=$srcdir 1331ffab5952Smrg ac_abs_top_srcdir=$srcdir ;; 1332ffab5952Smrg *) # Relative name. 1333ffab5952Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1334ffab5952Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1335ffab5952Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1336ffab5952Smrgesac 1337ffab5952Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1338ffab5952Smrg 1339ffab5952Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1340ffab5952Smrg # Check for guested configure. 1341ffab5952Smrg if test -f "$ac_srcdir/configure.gnu"; then 1342ffab5952Smrg echo && 1343ffab5952Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1344ffab5952Smrg elif test -f "$ac_srcdir/configure"; then 1345ffab5952Smrg echo && 1346ffab5952Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1347ffab5952Smrg else 1348ffab5952Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1349ffab5952Smrg fi || ac_status=$? 1350ffab5952Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1351ffab5952Smrg done 1352ffab5952Smrgfi 1353ffab5952Smrg 1354ffab5952Smrgtest -n "$ac_init_help" && exit $ac_status 1355ffab5952Smrgif $ac_init_version; then 1356ffab5952Smrg cat <<\_ACEOF 135745aa2fbfSmrgutil-macros configure 1.19.3 135867e4e4deSmrggenerated by GNU Autoconf 2.69 1359ffab5952Smrg 136067e4e4deSmrgCopyright (C) 2012 Free Software Foundation, Inc. 1361ffab5952SmrgThis configure script is free software; the Free Software Foundation 1362ffab5952Smrggives unlimited permission to copy, distribute and modify it. 1363ffab5952Smrg_ACEOF 1364ffab5952Smrg exit 1365ffab5952Smrgfi 1366ffab5952Smrg 1367ffab5952Smrg## ------------------------ ## 1368ffab5952Smrg## Autoconf initialization. ## 1369ffab5952Smrg## ------------------------ ## 1370ffab5952Smrgcat >config.log <<_ACEOF 1371ffab5952SmrgThis file contains any messages produced by compilers while 1372ffab5952Smrgrunning configure, to aid debugging if configure makes a mistake. 1373ffab5952Smrg 137445aa2fbfSmrgIt was created by util-macros $as_me 1.19.3, which was 137567e4e4deSmrggenerated by GNU Autoconf 2.69. Invocation command line was 1376ffab5952Smrg 1377ffab5952Smrg $ $0 $@ 1378ffab5952Smrg 1379ffab5952Smrg_ACEOF 1380ffab5952Smrgexec 5>>config.log 1381ffab5952Smrg{ 1382ffab5952Smrgcat <<_ASUNAME 1383ffab5952Smrg## --------- ## 1384ffab5952Smrg## Platform. ## 1385ffab5952Smrg## --------- ## 1386ffab5952Smrg 1387ffab5952Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1388ffab5952Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1389ffab5952Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1390ffab5952Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1391ffab5952Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1392ffab5952Smrg 1393ffab5952Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1394ffab5952Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1395ffab5952Smrg 1396ffab5952Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1397ffab5952Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1398ffab5952Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1399ffab5952Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1400ffab5952Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1401ffab5952Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1402ffab5952Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1403ffab5952Smrg 1404ffab5952Smrg_ASUNAME 1405ffab5952Smrg 1406ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1407ffab5952Smrgfor as_dir in $PATH 1408ffab5952Smrgdo 1409ffab5952Smrg IFS=$as_save_IFS 1410ffab5952Smrg test -z "$as_dir" && as_dir=. 1411ffab5952Smrg $as_echo "PATH: $as_dir" 1412ffab5952Smrg done 1413ffab5952SmrgIFS=$as_save_IFS 1414ffab5952Smrg 1415ffab5952Smrg} >&5 1416ffab5952Smrg 1417ffab5952Smrgcat >&5 <<_ACEOF 1418ffab5952Smrg 1419ffab5952Smrg 1420ffab5952Smrg## ----------- ## 1421ffab5952Smrg## Core tests. ## 1422ffab5952Smrg## ----------- ## 1423ffab5952Smrg 1424ffab5952Smrg_ACEOF 1425ffab5952Smrg 1426ffab5952Smrg 1427ffab5952Smrg# Keep a trace of the command line. 1428ffab5952Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1429ffab5952Smrg# Strip out --silent because we don't want to record it for future runs. 1430ffab5952Smrg# Also quote any args containing shell meta-characters. 1431ffab5952Smrg# Make two passes to allow for proper duplicate-argument suppression. 1432ffab5952Smrgac_configure_args= 1433ffab5952Smrgac_configure_args0= 1434ffab5952Smrgac_configure_args1= 1435ffab5952Smrgac_must_keep_next=false 1436ffab5952Smrgfor ac_pass in 1 2 1437ffab5952Smrgdo 1438ffab5952Smrg for ac_arg 1439ffab5952Smrg do 1440ffab5952Smrg case $ac_arg in 1441ffab5952Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1442ffab5952Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1443ffab5952Smrg | -silent | --silent | --silen | --sile | --sil) 1444ffab5952Smrg continue ;; 1445ffab5952Smrg *\'*) 1446ffab5952Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1447ffab5952Smrg esac 1448ffab5952Smrg case $ac_pass in 1449ffab5952Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1450ffab5952Smrg 2) 1451ffab5952Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1452ffab5952Smrg if test $ac_must_keep_next = true; then 1453ffab5952Smrg ac_must_keep_next=false # Got value, back to normal. 1454ffab5952Smrg else 1455ffab5952Smrg case $ac_arg in 1456ffab5952Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1457ffab5952Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1458ffab5952Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1459ffab5952Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1460ffab5952Smrg case "$ac_configure_args0 " in 1461ffab5952Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1462ffab5952Smrg esac 1463ffab5952Smrg ;; 1464ffab5952Smrg -* ) ac_must_keep_next=true ;; 1465ffab5952Smrg esac 1466ffab5952Smrg fi 1467ffab5952Smrg as_fn_append ac_configure_args " '$ac_arg'" 1468ffab5952Smrg ;; 1469ffab5952Smrg esac 1470ffab5952Smrg done 1471ffab5952Smrgdone 1472ffab5952Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1473ffab5952Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1474ffab5952Smrg 1475ffab5952Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1476ffab5952Smrg# config.log. We remove comments because anyway the quotes in there 1477ffab5952Smrg# would cause problems or look ugly. 1478ffab5952Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1479ffab5952Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1480ffab5952Smrgtrap 'exit_status=$? 1481ffab5952Smrg # Save into config.log some information that might help in debugging. 1482ffab5952Smrg { 1483ffab5952Smrg echo 1484ffab5952Smrg 1485ffab5952Smrg $as_echo "## ---------------- ## 1486ffab5952Smrg## Cache variables. ## 1487ffab5952Smrg## ---------------- ##" 1488ffab5952Smrg echo 1489ffab5952Smrg # The following way of writing the cache mishandles newlines in values, 1490ffab5952Smrg( 1491ffab5952Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1492ffab5952Smrg eval ac_val=\$$ac_var 1493ffab5952Smrg case $ac_val in #( 1494ffab5952Smrg *${as_nl}*) 1495ffab5952Smrg case $ac_var in #( 1496ffab5952Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1497ffab5952Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1498ffab5952Smrg esac 1499ffab5952Smrg case $ac_var in #( 1500ffab5952Smrg _ | IFS | as_nl) ;; #( 1501ffab5952Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1502ffab5952Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1503ffab5952Smrg esac ;; 1504ffab5952Smrg esac 1505ffab5952Smrg done 1506ffab5952Smrg (set) 2>&1 | 1507ffab5952Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1508ffab5952Smrg *${as_nl}ac_space=\ *) 1509ffab5952Smrg sed -n \ 1510ffab5952Smrg "s/'\''/'\''\\\\'\'''\''/g; 1511ffab5952Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1512ffab5952Smrg ;; #( 1513ffab5952Smrg *) 1514ffab5952Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1515ffab5952Smrg ;; 1516ffab5952Smrg esac | 1517ffab5952Smrg sort 1518ffab5952Smrg) 1519ffab5952Smrg echo 1520ffab5952Smrg 1521ffab5952Smrg $as_echo "## ----------------- ## 1522ffab5952Smrg## Output variables. ## 1523ffab5952Smrg## ----------------- ##" 1524ffab5952Smrg echo 1525ffab5952Smrg for ac_var in $ac_subst_vars 1526ffab5952Smrg do 1527ffab5952Smrg eval ac_val=\$$ac_var 1528ffab5952Smrg case $ac_val in 1529ffab5952Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1530ffab5952Smrg esac 1531ffab5952Smrg $as_echo "$ac_var='\''$ac_val'\''" 1532ffab5952Smrg done | sort 1533ffab5952Smrg echo 1534ffab5952Smrg 1535ffab5952Smrg if test -n "$ac_subst_files"; then 1536ffab5952Smrg $as_echo "## ------------------- ## 1537ffab5952Smrg## File substitutions. ## 1538ffab5952Smrg## ------------------- ##" 1539ffab5952Smrg echo 1540ffab5952Smrg for ac_var in $ac_subst_files 1541ffab5952Smrg do 1542ffab5952Smrg eval ac_val=\$$ac_var 1543ffab5952Smrg case $ac_val in 1544ffab5952Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1545ffab5952Smrg esac 1546ffab5952Smrg $as_echo "$ac_var='\''$ac_val'\''" 1547ffab5952Smrg done | sort 1548ffab5952Smrg echo 1549ffab5952Smrg fi 1550ffab5952Smrg 1551ffab5952Smrg if test -s confdefs.h; then 1552ffab5952Smrg $as_echo "## ----------- ## 1553ffab5952Smrg## confdefs.h. ## 1554ffab5952Smrg## ----------- ##" 1555ffab5952Smrg echo 1556ffab5952Smrg cat confdefs.h 1557ffab5952Smrg echo 1558ffab5952Smrg fi 1559ffab5952Smrg test "$ac_signal" != 0 && 1560ffab5952Smrg $as_echo "$as_me: caught signal $ac_signal" 1561ffab5952Smrg $as_echo "$as_me: exit $exit_status" 1562ffab5952Smrg } >&5 1563ffab5952Smrg rm -f core *.core core.conftest.* && 1564ffab5952Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1565ffab5952Smrg exit $exit_status 1566ffab5952Smrg' 0 1567ffab5952Smrgfor ac_signal in 1 2 13 15; do 1568ffab5952Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1569ffab5952Smrgdone 1570ffab5952Smrgac_signal=0 1571ffab5952Smrg 1572ffab5952Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1573ffab5952Smrgrm -f -r conftest* confdefs.h 1574ffab5952Smrg 1575ffab5952Smrg$as_echo "/* confdefs.h */" > confdefs.h 1576ffab5952Smrg 1577ffab5952Smrg# Predefined preprocessor variables. 1578ffab5952Smrg 1579ffab5952Smrgcat >>confdefs.h <<_ACEOF 1580ffab5952Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 1581ffab5952Smrg_ACEOF 1582ffab5952Smrg 1583ffab5952Smrgcat >>confdefs.h <<_ACEOF 1584ffab5952Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1585ffab5952Smrg_ACEOF 1586ffab5952Smrg 1587ffab5952Smrgcat >>confdefs.h <<_ACEOF 1588ffab5952Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1589ffab5952Smrg_ACEOF 1590ffab5952Smrg 1591ffab5952Smrgcat >>confdefs.h <<_ACEOF 1592ffab5952Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 1593ffab5952Smrg_ACEOF 1594ffab5952Smrg 1595ffab5952Smrgcat >>confdefs.h <<_ACEOF 1596ffab5952Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1597ffab5952Smrg_ACEOF 1598ffab5952Smrg 1599ffab5952Smrgcat >>confdefs.h <<_ACEOF 1600ffab5952Smrg#define PACKAGE_URL "$PACKAGE_URL" 1601ffab5952Smrg_ACEOF 1602ffab5952Smrg 1603ffab5952Smrg 1604ffab5952Smrg# Let the site file select an alternate cache file if it wants to. 1605ffab5952Smrg# Prefer an explicitly selected file to automatically selected ones. 1606ffab5952Smrgac_site_file1=NONE 1607ffab5952Smrgac_site_file2=NONE 1608ffab5952Smrgif test -n "$CONFIG_SITE"; then 1609ffab5952Smrg # We do not want a PATH search for config.site. 1610ffab5952Smrg case $CONFIG_SITE in #(( 1611ffab5952Smrg -*) ac_site_file1=./$CONFIG_SITE;; 1612ffab5952Smrg */*) ac_site_file1=$CONFIG_SITE;; 1613ffab5952Smrg *) ac_site_file1=./$CONFIG_SITE;; 1614ffab5952Smrg esac 1615ffab5952Smrgelif test "x$prefix" != xNONE; then 1616ffab5952Smrg ac_site_file1=$prefix/share/config.site 1617ffab5952Smrg ac_site_file2=$prefix/etc/config.site 1618ffab5952Smrgelse 1619ffab5952Smrg ac_site_file1=$ac_default_prefix/share/config.site 1620ffab5952Smrg ac_site_file2=$ac_default_prefix/etc/config.site 1621ffab5952Smrgfi 1622ffab5952Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1623ffab5952Smrgdo 1624ffab5952Smrg test "x$ac_site_file" = xNONE && continue 1625ffab5952Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1626ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1627ffab5952Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1628ffab5952Smrg sed 's/^/| /' "$ac_site_file" >&5 1629ffab5952Smrg . "$ac_site_file" \ 1630ffab5952Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1631ffab5952Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1632ffab5952Smrgas_fn_error $? "failed to load site script $ac_site_file 1633ffab5952SmrgSee \`config.log' for more details" "$LINENO" 5; } 1634ffab5952Smrg fi 1635ffab5952Smrgdone 1636ffab5952Smrg 1637ffab5952Smrgif test -r "$cache_file"; then 1638ffab5952Smrg # Some versions of bash will fail to source /dev/null (special files 1639ffab5952Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1640ffab5952Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1641ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1642ffab5952Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 1643ffab5952Smrg case $cache_file in 1644ffab5952Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1645ffab5952Smrg *) . "./$cache_file";; 1646ffab5952Smrg esac 1647ffab5952Smrg fi 1648ffab5952Smrgelse 1649ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1650ffab5952Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 1651ffab5952Smrg >$cache_file 1652ffab5952Smrgfi 1653ffab5952Smrg 1654ffab5952Smrg# Check that the precious variables saved in the cache have kept the same 1655ffab5952Smrg# value. 1656ffab5952Smrgac_cache_corrupted=false 1657ffab5952Smrgfor ac_var in $ac_precious_vars; do 1658ffab5952Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 1659ffab5952Smrg eval ac_new_set=\$ac_env_${ac_var}_set 1660ffab5952Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 1661ffab5952Smrg eval ac_new_val=\$ac_env_${ac_var}_value 1662ffab5952Smrg case $ac_old_set,$ac_new_set in 1663ffab5952Smrg set,) 1664ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1665ffab5952Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1666ffab5952Smrg ac_cache_corrupted=: ;; 1667ffab5952Smrg ,set) 1668ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1669ffab5952Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1670ffab5952Smrg ac_cache_corrupted=: ;; 1671ffab5952Smrg ,);; 1672ffab5952Smrg *) 1673ffab5952Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1674ffab5952Smrg # differences in whitespace do not lead to failure. 1675ffab5952Smrg ac_old_val_w=`echo x $ac_old_val` 1676ffab5952Smrg ac_new_val_w=`echo x $ac_new_val` 1677ffab5952Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1678ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1679ffab5952Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1680ffab5952Smrg ac_cache_corrupted=: 1681ffab5952Smrg else 1682ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1683ffab5952Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1684ffab5952Smrg eval $ac_var=\$ac_old_val 1685ffab5952Smrg fi 1686ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1687ffab5952Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1688ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1689ffab5952Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1690ffab5952Smrg fi;; 1691ffab5952Smrg esac 1692ffab5952Smrg # Pass precious variables to config.status. 1693ffab5952Smrg if test "$ac_new_set" = set; then 1694ffab5952Smrg case $ac_new_val in 1695ffab5952Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1696ffab5952Smrg *) ac_arg=$ac_var=$ac_new_val ;; 1697ffab5952Smrg esac 1698ffab5952Smrg case " $ac_configure_args " in 1699ffab5952Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1700ffab5952Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1701ffab5952Smrg esac 1702ffab5952Smrg fi 1703ffab5952Smrgdone 1704ffab5952Smrgif $ac_cache_corrupted; then 1705ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1706ffab5952Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1707ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1708ffab5952Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1709ffab5952Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1710ffab5952Smrgfi 1711ffab5952Smrg## -------------------- ## 1712ffab5952Smrg## Main body of script. ## 1713ffab5952Smrg## -------------------- ## 1714ffab5952Smrg 1715ffab5952Smrgac_ext=c 1716ffab5952Smrgac_cpp='$CPP $CPPFLAGS' 1717ffab5952Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1718ffab5952Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1719ffab5952Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 1720ffab5952Smrg 1721ffab5952Smrg 1722ffab5952Smrg 172345aa2fbfSmrgam__api_version='1.16' 1724ffab5952Smrg 1725ffab5952Smrgac_aux_dir= 1726ffab5952Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1727ffab5952Smrg if test -f "$ac_dir/install-sh"; then 1728ffab5952Smrg ac_aux_dir=$ac_dir 1729ffab5952Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 1730ffab5952Smrg break 1731ffab5952Smrg elif test -f "$ac_dir/install.sh"; then 1732ffab5952Smrg ac_aux_dir=$ac_dir 1733ffab5952Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 1734ffab5952Smrg break 1735ffab5952Smrg elif test -f "$ac_dir/shtool"; then 1736ffab5952Smrg ac_aux_dir=$ac_dir 1737ffab5952Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 1738ffab5952Smrg break 1739ffab5952Smrg fi 1740ffab5952Smrgdone 1741ffab5952Smrgif test -z "$ac_aux_dir"; then 1742ffab5952Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 1743ffab5952Smrgfi 1744ffab5952Smrg 1745ffab5952Smrg# These three variables are undocumented and unsupported, 1746ffab5952Smrg# and are intended to be withdrawn in a future Autoconf release. 1747ffab5952Smrg# They can cause serious problems if a builder's source tree is in a directory 1748ffab5952Smrg# whose full name contains unusual characters. 1749ffab5952Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1750ffab5952Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1751ffab5952Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1752ffab5952Smrg 1753ffab5952Smrg 1754ffab5952Smrg# Find a good install program. We prefer a C program (faster), 1755ffab5952Smrg# so one script is as good as another. But avoid the broken or 1756ffab5952Smrg# incompatible versions: 1757ffab5952Smrg# SysV /etc/install, /usr/sbin/install 1758ffab5952Smrg# SunOS /usr/etc/install 1759ffab5952Smrg# IRIX /sbin/install 1760ffab5952Smrg# AIX /bin/install 1761ffab5952Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 1762ffab5952Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1763ffab5952Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1764ffab5952Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1765ffab5952Smrg# OS/2's system install, which has a completely different semantic 1766ffab5952Smrg# ./install, which can be erroneously created by make from ./install.sh. 1767ffab5952Smrg# Reject install programs that cannot install multiple files. 1768ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 1769ffab5952Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 1770ffab5952Smrgif test -z "$INSTALL"; then 1771ffab5952Smrgif ${ac_cv_path_install+:} false; then : 1772ffab5952Smrg $as_echo_n "(cached) " >&6 1773ffab5952Smrgelse 1774ffab5952Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1775ffab5952Smrgfor as_dir in $PATH 1776ffab5952Smrgdo 1777ffab5952Smrg IFS=$as_save_IFS 1778ffab5952Smrg test -z "$as_dir" && as_dir=. 1779ffab5952Smrg # Account for people who put trailing slashes in PATH elements. 1780ffab5952Smrgcase $as_dir/ in #(( 1781ffab5952Smrg ./ | .// | /[cC]/* | \ 1782ffab5952Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1783ffab5952Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 1784ffab5952Smrg /usr/ucb/* ) ;; 1785ffab5952Smrg *) 1786ffab5952Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 1787ffab5952Smrg # Don't use installbsd from OSF since it installs stuff as root 1788ffab5952Smrg # by default. 1789ffab5952Smrg for ac_prog in ginstall scoinst install; do 1790ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 179167e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1792ffab5952Smrg if test $ac_prog = install && 1793ffab5952Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1794ffab5952Smrg # AIX install. It has an incompatible calling convention. 1795ffab5952Smrg : 1796ffab5952Smrg elif test $ac_prog = install && 1797ffab5952Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1798ffab5952Smrg # program-specific install script used by HP pwplus--don't use. 1799ffab5952Smrg : 1800ffab5952Smrg else 1801ffab5952Smrg rm -rf conftest.one conftest.two conftest.dir 1802ffab5952Smrg echo one > conftest.one 1803ffab5952Smrg echo two > conftest.two 1804ffab5952Smrg mkdir conftest.dir 1805ffab5952Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1806ffab5952Smrg test -s conftest.one && test -s conftest.two && 1807ffab5952Smrg test -s conftest.dir/conftest.one && 1808ffab5952Smrg test -s conftest.dir/conftest.two 1809ffab5952Smrg then 1810ffab5952Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1811ffab5952Smrg break 3 1812ffab5952Smrg fi 1813ffab5952Smrg fi 1814ffab5952Smrg fi 1815ffab5952Smrg done 1816ffab5952Smrg done 1817ffab5952Smrg ;; 1818ffab5952Smrgesac 1819ffab5952Smrg 1820ffab5952Smrg done 1821ffab5952SmrgIFS=$as_save_IFS 1822ffab5952Smrg 1823ffab5952Smrgrm -rf conftest.one conftest.two conftest.dir 1824ffab5952Smrg 1825ffab5952Smrgfi 1826ffab5952Smrg if test "${ac_cv_path_install+set}" = set; then 1827ffab5952Smrg INSTALL=$ac_cv_path_install 1828ffab5952Smrg else 1829ffab5952Smrg # As a last resort, use the slow shell script. Don't cache a 1830ffab5952Smrg # value for INSTALL within a source directory, because that will 1831ffab5952Smrg # break other packages using the cache if that directory is 1832ffab5952Smrg # removed, or if the value is a relative name. 1833ffab5952Smrg INSTALL=$ac_install_sh 1834ffab5952Smrg fi 1835ffab5952Smrgfi 1836ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 1837ffab5952Smrg$as_echo "$INSTALL" >&6; } 1838ffab5952Smrg 1839ffab5952Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1840ffab5952Smrg# It thinks the first close brace ends the variable substitution. 1841ffab5952Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1842ffab5952Smrg 1843ffab5952Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1844ffab5952Smrg 1845ffab5952Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1846ffab5952Smrg 1847ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 1848ffab5952Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 1849ffab5952Smrg# Reject unsafe characters in $srcdir or the absolute working directory 1850ffab5952Smrg# name. Accept space and tab only in the latter. 1851ffab5952Smrgam_lf=' 1852ffab5952Smrg' 1853ffab5952Smrgcase `pwd` in 1854ffab5952Smrg *[\\\"\#\$\&\'\`$am_lf]*) 1855ffab5952Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 1856ffab5952Smrgesac 1857ffab5952Smrgcase $srcdir in 1858ffab5952Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 185967e4e4deSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 1860ffab5952Smrgesac 1861ffab5952Smrg 186267e4e4deSmrg# Do 'set' in a subshell so we don't clobber the current shell's 1863ffab5952Smrg# arguments. Must try -L first in case configure is actually a 1864ffab5952Smrg# symlink; some systems play weird games with the mod time of symlinks 1865ffab5952Smrg# (eg FreeBSD returns the mod time of the symlink's containing 1866ffab5952Smrg# directory). 1867ffab5952Smrgif ( 186867e4e4deSmrg am_has_slept=no 186967e4e4deSmrg for am_try in 1 2; do 187067e4e4deSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 187167e4e4deSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 187267e4e4deSmrg if test "$*" = "X"; then 187367e4e4deSmrg # -L didn't work. 187467e4e4deSmrg set X `ls -t "$srcdir/configure" conftest.file` 187567e4e4deSmrg fi 187667e4e4deSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 187767e4e4deSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 187867e4e4deSmrg 187967e4e4deSmrg # If neither matched, then we have a broken ls. This can happen 188067e4e4deSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 188167e4e4deSmrg # broken ls alias from the environment. This has actually 188267e4e4deSmrg # happened. Such a system could not be considered "sane". 188367e4e4deSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 188467e4e4deSmrg alias in your environment" "$LINENO" 5 188567e4e4deSmrg fi 188667e4e4deSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 188767e4e4deSmrg break 188867e4e4deSmrg fi 188967e4e4deSmrg # Just in case. 189067e4e4deSmrg sleep 1 189167e4e4deSmrg am_has_slept=yes 189267e4e4deSmrg done 1893ffab5952Smrg test "$2" = conftest.file 1894ffab5952Smrg ) 1895ffab5952Smrgthen 1896ffab5952Smrg # Ok. 1897ffab5952Smrg : 1898ffab5952Smrgelse 1899ffab5952Smrg as_fn_error $? "newly created file is older than distributed files! 1900ffab5952SmrgCheck your system clock" "$LINENO" 5 1901ffab5952Smrgfi 1902ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1903ffab5952Smrg$as_echo "yes" >&6; } 190467e4e4deSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 190567e4e4deSmrg# generated files are strictly newer. 190667e4e4deSmrgam_sleep_pid= 190767e4e4deSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 190867e4e4deSmrg ( sleep 1 ) & 190967e4e4deSmrg am_sleep_pid=$! 191067e4e4deSmrgfi 191167e4e4deSmrg 191267e4e4deSmrgrm -f conftest.file 191367e4e4deSmrg 1914ffab5952Smrgtest "$program_prefix" != NONE && 1915ffab5952Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 1916ffab5952Smrg# Use a double $ so make ignores it. 1917ffab5952Smrgtest "$program_suffix" != NONE && 1918ffab5952Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1919ffab5952Smrg# Double any \ or $. 1920ffab5952Smrg# By default was `s,x,x', remove it if useless. 1921ffab5952Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 1922ffab5952Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 1923ffab5952Smrg 192467e4e4deSmrg# Expand $ac_aux_dir to an absolute path. 192567e4e4deSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 1926ffab5952Smrg 1927ffab5952Smrgif test x"${MISSING+set}" != xset; then 1928ffab5952Smrg case $am_aux_dir in 1929ffab5952Smrg *\ * | *\ *) 1930ffab5952Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 1931ffab5952Smrg *) 1932ffab5952Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 1933ffab5952Smrg esac 1934ffab5952Smrgfi 1935ffab5952Smrg# Use eval to expand $SHELL 193667e4e4deSmrgif eval "$MISSING --is-lightweight"; then 193767e4e4deSmrg am_missing_run="$MISSING " 1938ffab5952Smrgelse 1939ffab5952Smrg am_missing_run= 194067e4e4deSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 194167e4e4deSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 1942ffab5952Smrgfi 1943ffab5952Smrg 194467e4e4deSmrgif test x"${install_sh+set}" != xset; then 1945ffab5952Smrg case $am_aux_dir in 1946ffab5952Smrg *\ * | *\ *) 1947ffab5952Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 1948ffab5952Smrg *) 1949ffab5952Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 1950ffab5952Smrg esac 1951ffab5952Smrgfi 1952ffab5952Smrg 195367e4e4deSmrg# Installed binaries are usually stripped using 'strip' when the user 195467e4e4deSmrg# run "make install-strip". However 'strip' might not be the right 1955ffab5952Smrg# tool to use in cross-compilation environments, therefore Automake 195667e4e4deSmrg# will honor the 'STRIP' environment variable to overrule this program. 1957ffab5952Smrgif test "$cross_compiling" != no; then 1958ffab5952Smrg if test -n "$ac_tool_prefix"; then 1959ffab5952Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1960ffab5952Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 1961ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1962ffab5952Smrg$as_echo_n "checking for $ac_word... " >&6; } 1963ffab5952Smrgif ${ac_cv_prog_STRIP+:} false; then : 1964ffab5952Smrg $as_echo_n "(cached) " >&6 1965ffab5952Smrgelse 1966ffab5952Smrg if test -n "$STRIP"; then 1967ffab5952Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1968ffab5952Smrgelse 1969ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1970ffab5952Smrgfor as_dir in $PATH 1971ffab5952Smrgdo 1972ffab5952Smrg IFS=$as_save_IFS 1973ffab5952Smrg test -z "$as_dir" && as_dir=. 1974ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 197567e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1976ffab5952Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1977ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1978ffab5952Smrg break 2 1979ffab5952Smrg fi 1980ffab5952Smrgdone 1981ffab5952Smrg done 1982ffab5952SmrgIFS=$as_save_IFS 1983ffab5952Smrg 1984ffab5952Smrgfi 1985ffab5952Smrgfi 1986ffab5952SmrgSTRIP=$ac_cv_prog_STRIP 1987ffab5952Smrgif test -n "$STRIP"; then 1988ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 1989ffab5952Smrg$as_echo "$STRIP" >&6; } 1990ffab5952Smrgelse 1991ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1992ffab5952Smrg$as_echo "no" >&6; } 1993ffab5952Smrgfi 1994ffab5952Smrg 1995ffab5952Smrg 1996ffab5952Smrgfi 1997ffab5952Smrgif test -z "$ac_cv_prog_STRIP"; then 1998ffab5952Smrg ac_ct_STRIP=$STRIP 1999ffab5952Smrg # Extract the first word of "strip", so it can be a program name with args. 2000ffab5952Smrgset dummy strip; ac_word=$2 2001ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2002ffab5952Smrg$as_echo_n "checking for $ac_word... " >&6; } 2003ffab5952Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2004ffab5952Smrg $as_echo_n "(cached) " >&6 2005ffab5952Smrgelse 2006ffab5952Smrg if test -n "$ac_ct_STRIP"; then 2007ffab5952Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2008ffab5952Smrgelse 2009ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2010ffab5952Smrgfor as_dir in $PATH 2011ffab5952Smrgdo 2012ffab5952Smrg IFS=$as_save_IFS 2013ffab5952Smrg test -z "$as_dir" && as_dir=. 2014ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 201567e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2016ffab5952Smrg ac_cv_prog_ac_ct_STRIP="strip" 2017ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2018ffab5952Smrg break 2 2019ffab5952Smrg fi 2020ffab5952Smrgdone 2021ffab5952Smrg done 2022ffab5952SmrgIFS=$as_save_IFS 2023ffab5952Smrg 2024ffab5952Smrgfi 2025ffab5952Smrgfi 2026ffab5952Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2027ffab5952Smrgif test -n "$ac_ct_STRIP"; then 2028ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2029ffab5952Smrg$as_echo "$ac_ct_STRIP" >&6; } 2030ffab5952Smrgelse 2031ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2032ffab5952Smrg$as_echo "no" >&6; } 2033ffab5952Smrgfi 2034ffab5952Smrg 2035ffab5952Smrg if test "x$ac_ct_STRIP" = x; then 2036ffab5952Smrg STRIP=":" 2037ffab5952Smrg else 2038ffab5952Smrg case $cross_compiling:$ac_tool_warned in 2039ffab5952Smrgyes:) 2040ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2041ffab5952Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2042ffab5952Smrgac_tool_warned=yes ;; 2043ffab5952Smrgesac 2044ffab5952Smrg STRIP=$ac_ct_STRIP 2045ffab5952Smrg fi 2046ffab5952Smrgelse 2047ffab5952Smrg STRIP="$ac_cv_prog_STRIP" 2048ffab5952Smrgfi 2049ffab5952Smrg 2050ffab5952Smrgfi 2051ffab5952SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2052ffab5952Smrg 2053ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2054ffab5952Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2055ffab5952Smrgif test -z "$MKDIR_P"; then 2056ffab5952Smrg if ${ac_cv_path_mkdir+:} false; then : 2057ffab5952Smrg $as_echo_n "(cached) " >&6 2058ffab5952Smrgelse 2059ffab5952Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2060ffab5952Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2061ffab5952Smrgdo 2062ffab5952Smrg IFS=$as_save_IFS 2063ffab5952Smrg test -z "$as_dir" && as_dir=. 2064ffab5952Smrg for ac_prog in mkdir gmkdir; do 2065ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 206667e4e4deSmrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2067ffab5952Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2068ffab5952Smrg 'mkdir (GNU coreutils) '* | \ 2069ffab5952Smrg 'mkdir (coreutils) '* | \ 2070ffab5952Smrg 'mkdir (fileutils) '4.1*) 2071ffab5952Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2072ffab5952Smrg break 3;; 2073ffab5952Smrg esac 2074ffab5952Smrg done 2075ffab5952Smrg done 2076ffab5952Smrg done 2077ffab5952SmrgIFS=$as_save_IFS 2078ffab5952Smrg 2079ffab5952Smrgfi 2080ffab5952Smrg 2081ffab5952Smrg test -d ./--version && rmdir ./--version 2082ffab5952Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2083ffab5952Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2084ffab5952Smrg else 2085ffab5952Smrg # As a last resort, use the slow shell script. Don't cache a 2086ffab5952Smrg # value for MKDIR_P within a source directory, because that will 2087ffab5952Smrg # break other packages using the cache if that directory is 2088ffab5952Smrg # removed, or if the value is a relative name. 2089ffab5952Smrg MKDIR_P="$ac_install_sh -d" 2090ffab5952Smrg fi 2091ffab5952Smrgfi 2092ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2093ffab5952Smrg$as_echo "$MKDIR_P" >&6; } 2094ffab5952Smrg 2095ffab5952Smrgfor ac_prog in gawk mawk nawk awk 2096ffab5952Smrgdo 2097ffab5952Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2098ffab5952Smrgset dummy $ac_prog; ac_word=$2 2099ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2100ffab5952Smrg$as_echo_n "checking for $ac_word... " >&6; } 2101ffab5952Smrgif ${ac_cv_prog_AWK+:} false; then : 2102ffab5952Smrg $as_echo_n "(cached) " >&6 2103ffab5952Smrgelse 2104ffab5952Smrg if test -n "$AWK"; then 2105ffab5952Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2106ffab5952Smrgelse 2107ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2108ffab5952Smrgfor as_dir in $PATH 2109ffab5952Smrgdo 2110ffab5952Smrg IFS=$as_save_IFS 2111ffab5952Smrg test -z "$as_dir" && as_dir=. 2112ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 211367e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2114ffab5952Smrg ac_cv_prog_AWK="$ac_prog" 2115ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2116ffab5952Smrg break 2 2117ffab5952Smrg fi 2118ffab5952Smrgdone 2119ffab5952Smrg done 2120ffab5952SmrgIFS=$as_save_IFS 2121ffab5952Smrg 2122ffab5952Smrgfi 2123ffab5952Smrgfi 2124ffab5952SmrgAWK=$ac_cv_prog_AWK 2125ffab5952Smrgif test -n "$AWK"; then 2126ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2127ffab5952Smrg$as_echo "$AWK" >&6; } 2128ffab5952Smrgelse 2129ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2130ffab5952Smrg$as_echo "no" >&6; } 2131ffab5952Smrgfi 2132ffab5952Smrg 2133ffab5952Smrg 2134ffab5952Smrg test -n "$AWK" && break 2135ffab5952Smrgdone 2136ffab5952Smrg 2137ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2138ffab5952Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2139ffab5952Smrgset x ${MAKE-make} 2140ffab5952Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2141ffab5952Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2142ffab5952Smrg $as_echo_n "(cached) " >&6 2143ffab5952Smrgelse 2144ffab5952Smrg cat >conftest.make <<\_ACEOF 2145ffab5952SmrgSHELL = /bin/sh 2146ffab5952Smrgall: 2147ffab5952Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2148ffab5952Smrg_ACEOF 2149ffab5952Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2150ffab5952Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2151ffab5952Smrg *@@@%%%=?*=@@@%%%*) 2152ffab5952Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2153ffab5952Smrg *) 2154ffab5952Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2155ffab5952Smrgesac 2156ffab5952Smrgrm -f conftest.make 2157ffab5952Smrgfi 2158ffab5952Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2159ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2160ffab5952Smrg$as_echo "yes" >&6; } 2161ffab5952Smrg SET_MAKE= 2162ffab5952Smrgelse 2163ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2164ffab5952Smrg$as_echo "no" >&6; } 2165ffab5952Smrg SET_MAKE="MAKE=${MAKE-make}" 2166ffab5952Smrgfi 2167ffab5952Smrg 2168ffab5952Smrgrm -rf .tst 2>/dev/null 2169ffab5952Smrgmkdir .tst 2>/dev/null 2170ffab5952Smrgif test -d .tst; then 2171ffab5952Smrg am__leading_dot=. 2172ffab5952Smrgelse 2173ffab5952Smrg am__leading_dot=_ 2174ffab5952Smrgfi 2175ffab5952Smrgrmdir .tst 2>/dev/null 2176ffab5952Smrg 217767e4e4deSmrg# Check whether --enable-silent-rules was given. 217867e4e4deSmrgif test "${enable_silent_rules+set}" = set; then : 217967e4e4deSmrg enableval=$enable_silent_rules; 218067e4e4deSmrgfi 218167e4e4deSmrg 218267e4e4deSmrgcase $enable_silent_rules in # ((( 218367e4e4deSmrg yes) AM_DEFAULT_VERBOSITY=0;; 218467e4e4deSmrg no) AM_DEFAULT_VERBOSITY=1;; 218567e4e4deSmrg *) AM_DEFAULT_VERBOSITY=1;; 218667e4e4deSmrgesac 218767e4e4deSmrgam_make=${MAKE-make} 218867e4e4deSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 218967e4e4deSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 219067e4e4deSmrgif ${am_cv_make_support_nested_variables+:} false; then : 219167e4e4deSmrg $as_echo_n "(cached) " >&6 219267e4e4deSmrgelse 219367e4e4deSmrg if $as_echo 'TRUE=$(BAR$(V)) 219467e4e4deSmrgBAR0=false 219567e4e4deSmrgBAR1=true 219667e4e4deSmrgV=1 219767e4e4deSmrgam__doit: 219867e4e4deSmrg @$(TRUE) 219967e4e4deSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 220067e4e4deSmrg am_cv_make_support_nested_variables=yes 220167e4e4deSmrgelse 220267e4e4deSmrg am_cv_make_support_nested_variables=no 220367e4e4deSmrgfi 220467e4e4deSmrgfi 220567e4e4deSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 220667e4e4deSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 220767e4e4deSmrgif test $am_cv_make_support_nested_variables = yes; then 220867e4e4deSmrg AM_V='$(V)' 220967e4e4deSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 221067e4e4deSmrgelse 221167e4e4deSmrg AM_V=$AM_DEFAULT_VERBOSITY 221267e4e4deSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 221367e4e4deSmrgfi 221467e4e4deSmrgAM_BACKSLASH='\' 221567e4e4deSmrg 2216ffab5952Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2217ffab5952Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2218ffab5952Smrg # is not polluted with repeated "-I." 2219ffab5952Smrg am__isrc=' -I$(srcdir)' 2220ffab5952Smrg # test to see if srcdir already configured 2221ffab5952Smrg if test -f $srcdir/config.status; then 2222ffab5952Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2223ffab5952Smrg fi 2224ffab5952Smrgfi 2225ffab5952Smrg 2226ffab5952Smrg# test whether we have cygpath 2227ffab5952Smrgif test -z "$CYGPATH_W"; then 2228ffab5952Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2229ffab5952Smrg CYGPATH_W='cygpath -w' 2230ffab5952Smrg else 2231ffab5952Smrg CYGPATH_W=echo 2232ffab5952Smrg fi 2233ffab5952Smrgfi 2234ffab5952Smrg 2235ffab5952Smrg 2236ffab5952Smrg# Define the identity of the package. 2237ffab5952Smrg PACKAGE='util-macros' 223845aa2fbfSmrg VERSION='1.19.3' 2239ffab5952Smrg 2240ffab5952Smrg 2241ffab5952Smrgcat >>confdefs.h <<_ACEOF 2242ffab5952Smrg#define PACKAGE "$PACKAGE" 2243ffab5952Smrg_ACEOF 2244ffab5952Smrg 2245ffab5952Smrg 2246ffab5952Smrgcat >>confdefs.h <<_ACEOF 2247ffab5952Smrg#define VERSION "$VERSION" 2248ffab5952Smrg_ACEOF 2249ffab5952Smrg 2250ffab5952Smrg# Some tools Automake needs. 2251ffab5952Smrg 2252ffab5952SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2253ffab5952Smrg 2254ffab5952Smrg 2255ffab5952SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2256ffab5952Smrg 2257ffab5952Smrg 2258ffab5952SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2259ffab5952Smrg 2260ffab5952Smrg 2261ffab5952SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2262ffab5952Smrg 2263ffab5952Smrg 2264ffab5952SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2265ffab5952Smrg 226667e4e4deSmrg# For better backward compatibility. To be removed once Automake 1.9.x 226767e4e4deSmrg# dies out for good. For more background, see: 226845aa2fbfSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 226945aa2fbfSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 227067e4e4deSmrgmkdir_p='$(MKDIR_P)' 227167e4e4deSmrg 227267e4e4deSmrg# We need awk for the "check" target (and possibly the TAP driver). The 227367e4e4deSmrg# system "awk" is bad on some platforms. 227443c16309Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 227543c16309Smrg# in the wild :-( We should find a proper way to deprecate it ... 227643c16309SmrgAMTAR='$${TAR-tar}' 2277ffab5952Smrg 227867e4e4deSmrg 227967e4e4deSmrg# We'll loop over all known methods to create a tar archive until one works. 228067e4e4deSmrg_am_tools='gnutar pax cpio none' 228167e4e4deSmrg 228243c16309Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2283ffab5952Smrg 2284ffab5952Smrg 2285ffab5952Smrg 2286ffab5952Smrg 2287ffab5952Smrg 2288ffab5952Smrg 228967e4e4deSmrg# POSIX will say in a future version that running "rm -f" with no argument 229067e4e4deSmrg# is OK; and we want to be able to make that assumption in our Makefile 229167e4e4deSmrg# recipes. So use an aggressive probe to check that the usage we want is 229267e4e4deSmrg# actually supported "in the wild" to an acceptable degree. 229367e4e4deSmrg# See automake bug#10828. 229467e4e4deSmrg# To make any issue more visible, cause the running configure to be aborted 229567e4e4deSmrg# by default if the 'rm' program in use doesn't match our expectations; the 229667e4e4deSmrg# user can still override this though. 229767e4e4deSmrgif rm -f && rm -fr && rm -rf; then : OK; else 229867e4e4deSmrg cat >&2 <<'END' 229967e4e4deSmrgOops! 230067e4e4deSmrg 230167e4e4deSmrgYour 'rm' program seems unable to run without file operands specified 230267e4e4deSmrgon the command line, even when the '-f' option is present. This is contrary 230367e4e4deSmrgto the behaviour of most rm programs out there, and not conforming with 230467e4e4deSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 230567e4e4deSmrg 230667e4e4deSmrgPlease tell bug-automake@gnu.org about your system, including the value 230767e4e4deSmrgof your $PATH and any error possibly output before this message. This 230867e4e4deSmrgcan help us improve future automake versions. 230967e4e4deSmrg 231067e4e4deSmrgEND 231167e4e4deSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 231267e4e4deSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 231367e4e4deSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 231467e4e4deSmrg echo >&2 231567e4e4deSmrg else 231667e4e4deSmrg cat >&2 <<'END' 231767e4e4deSmrgAborting the configuration process, to ensure you take notice of the issue. 231867e4e4deSmrg 231967e4e4deSmrgYou can download and install GNU coreutils to get an 'rm' implementation 232045aa2fbfSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>. 232167e4e4deSmrg 232267e4e4deSmrgIf you want to complete the configuration process using your problematic 232367e4e4deSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 232467e4e4deSmrgto "yes", and re-run configure. 232567e4e4deSmrg 232667e4e4deSmrgEND 232767e4e4deSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 232867e4e4deSmrg fi 232967e4e4deSmrgfi 233067e4e4deSmrg 233167e4e4deSmrg 2332ffab5952Smrg# Checks for programs. 2333ffab5952Smrg 2334ffab5952Smrg 2335ffab5952Smrg# This is the package that installs xorgversion.m4 as part of xorg-macros.m4. 2336ffab5952Smrg# In order to use xorgversion.m4 here, we include it explicitly. 2337ffab5952Smrg 2338ffab5952Smrg# XORG_RELEASE_VERSION 2339ffab5952Smrg# -------------------- 2340ffab5952Smrg# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 2341ffab5952Smrg 2342ffab5952Smrg 2343ffab5952Smrg 2344ffab5952Smrg# XORG_CHANGELOG() 2345ffab5952Smrg# ---------------- 2346ffab5952Smrg# Minimum version: 1.2.0 2347ffab5952Smrg# 2348ffab5952Smrg# Defines the variable CHANGELOG_CMD as the command to generate 2349ffab5952Smrg# ChangeLog from git. 2350ffab5952Smrg# 2351ffab5952Smrg# 2352ffab5952Smrg # XORG_CHANGELOG 2353ffab5952Smrg 2354ffab5952Smrg 2355ffab5952Smrg 2356ffab5952Smrg 2357ffab5952Smrgcat >>confdefs.h <<_ACEOF 2358ffab5952Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 2359ffab5952Smrg_ACEOF 2360ffab5952Smrg 2361ffab5952Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 2362ffab5952Smrg if test "x$PVM" = "x"; then 2363ffab5952Smrg PVM="0" 2364ffab5952Smrg fi 2365ffab5952Smrg 2366ffab5952Smrgcat >>confdefs.h <<_ACEOF 2367ffab5952Smrg#define PACKAGE_VERSION_MINOR $PVM 2368ffab5952Smrg_ACEOF 2369ffab5952Smrg 2370ffab5952Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 2371ffab5952Smrg if test "x$PVP" = "x"; then 2372ffab5952Smrg PVP="0" 2373ffab5952Smrg fi 2374ffab5952Smrg 2375ffab5952Smrgcat >>confdefs.h <<_ACEOF 2376ffab5952Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 2377ffab5952Smrg_ACEOF 2378ffab5952Smrg 2379ffab5952Smrg 2380ffab5952Smrg 23819fa8ffe7SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 2382ffab5952Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 23839fa8ffe7Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 23849fa8ffe7Smrgtouch \$(top_srcdir)/ChangeLog; \ 23859fa8ffe7Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 2386ffab5952Smrg 2387ffab5952Smrg 2388ffab5952Smrg 2389ffab5952Smrgac_config_files="$ac_config_files xorg-macros.pc Makefile xorg-macros.m4:xorg-macros.m4.in:xorgversion.m4" 2390ffab5952Smrg 2391ffab5952Smrgcat >confcache <<\_ACEOF 2392ffab5952Smrg# This file is a shell script that caches the results of configure 2393ffab5952Smrg# tests run on this system so they can be shared between configure 2394ffab5952Smrg# scripts and configure runs, see configure's option --config-cache. 2395ffab5952Smrg# It is not useful on other systems. If it contains results you don't 2396ffab5952Smrg# want to keep, you may remove or edit it. 2397ffab5952Smrg# 2398ffab5952Smrg# config.status only pays attention to the cache file if you give it 2399ffab5952Smrg# the --recheck option to rerun configure. 2400ffab5952Smrg# 2401ffab5952Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 2402ffab5952Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 2403ffab5952Smrg# following values. 2404ffab5952Smrg 2405ffab5952Smrg_ACEOF 2406ffab5952Smrg 2407ffab5952Smrg# The following way of writing the cache mishandles newlines in values, 2408ffab5952Smrg# but we know of no workaround that is simple, portable, and efficient. 2409ffab5952Smrg# So, we kill variables containing newlines. 2410ffab5952Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 2411ffab5952Smrg# and sets the high bit in the cache file unless we assign to the vars. 2412ffab5952Smrg( 2413ffab5952Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 2414ffab5952Smrg eval ac_val=\$$ac_var 2415ffab5952Smrg case $ac_val in #( 2416ffab5952Smrg *${as_nl}*) 2417ffab5952Smrg case $ac_var in #( 2418ffab5952Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2419ffab5952Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2420ffab5952Smrg esac 2421ffab5952Smrg case $ac_var in #( 2422ffab5952Smrg _ | IFS | as_nl) ;; #( 2423ffab5952Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2424ffab5952Smrg *) { eval $ac_var=; unset $ac_var;} ;; 2425ffab5952Smrg esac ;; 2426ffab5952Smrg esac 2427ffab5952Smrg done 2428ffab5952Smrg 2429ffab5952Smrg (set) 2>&1 | 2430ffab5952Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 2431ffab5952Smrg *${as_nl}ac_space=\ *) 2432ffab5952Smrg # `set' does not quote correctly, so add quotes: double-quote 2433ffab5952Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 2434ffab5952Smrg sed -n \ 2435ffab5952Smrg "s/'/'\\\\''/g; 2436ffab5952Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2437ffab5952Smrg ;; #( 2438ffab5952Smrg *) 2439ffab5952Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 2440ffab5952Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2441ffab5952Smrg ;; 2442ffab5952Smrg esac | 2443ffab5952Smrg sort 2444ffab5952Smrg) | 2445ffab5952Smrg sed ' 2446ffab5952Smrg /^ac_cv_env_/b end 2447ffab5952Smrg t clear 2448ffab5952Smrg :clear 2449ffab5952Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2450ffab5952Smrg t end 2451ffab5952Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2452ffab5952Smrg :end' >>confcache 2453ffab5952Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 2454ffab5952Smrg if test -w "$cache_file"; then 2455ffab5952Smrg if test "x$cache_file" != "x/dev/null"; then 2456ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 2457ffab5952Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 2458ffab5952Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 2459ffab5952Smrg cat confcache >"$cache_file" 2460ffab5952Smrg else 2461ffab5952Smrg case $cache_file in #( 2462ffab5952Smrg */* | ?:*) 2463ffab5952Smrg mv -f confcache "$cache_file"$$ && 2464ffab5952Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 2465ffab5952Smrg *) 2466ffab5952Smrg mv -f confcache "$cache_file" ;; 2467ffab5952Smrg esac 2468ffab5952Smrg fi 2469ffab5952Smrg fi 2470ffab5952Smrg else 2471ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 2472ffab5952Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 2473ffab5952Smrg fi 2474ffab5952Smrgfi 2475ffab5952Smrgrm -f confcache 2476ffab5952Smrg 2477ffab5952Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 2478ffab5952Smrg# Let make expand exec_prefix. 2479ffab5952Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2480ffab5952Smrg 2481ffab5952Smrg# Transform confdefs.h into DEFS. 2482ffab5952Smrg# Protect against shell expansion while executing Makefile rules. 2483ffab5952Smrg# Protect against Makefile macro expansion. 2484ffab5952Smrg# 2485ffab5952Smrg# If the first sed substitution is executed (which looks for macros that 2486ffab5952Smrg# take arguments), then branch to the quote section. Otherwise, 2487ffab5952Smrg# look for a macro that doesn't take arguments. 2488ffab5952Smrgac_script=' 2489ffab5952Smrg:mline 2490ffab5952Smrg/\\$/{ 2491ffab5952Smrg N 2492ffab5952Smrg s,\\\n,, 2493ffab5952Smrg b mline 2494ffab5952Smrg} 2495ffab5952Smrgt clear 2496ffab5952Smrg:clear 2497ffab5952Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 2498ffab5952Smrgt quote 2499ffab5952Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 2500ffab5952Smrgt quote 2501ffab5952Smrgb any 2502ffab5952Smrg:quote 2503ffab5952Smrgs/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 2504ffab5952Smrgs/\[/\\&/g 2505ffab5952Smrgs/\]/\\&/g 2506ffab5952Smrgs/\$/$$/g 2507ffab5952SmrgH 2508ffab5952Smrg:any 2509ffab5952Smrg${ 2510ffab5952Smrg g 2511ffab5952Smrg s/^\n// 2512ffab5952Smrg s/\n/ /g 2513ffab5952Smrg p 2514ffab5952Smrg} 2515ffab5952Smrg' 2516ffab5952SmrgDEFS=`sed -n "$ac_script" confdefs.h` 2517ffab5952Smrg 2518ffab5952Smrg 2519ffab5952Smrgac_libobjs= 2520ffab5952Smrgac_ltlibobjs= 2521ffab5952SmrgU= 2522ffab5952Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2523ffab5952Smrg # 1. Remove the extension, and $U if already installed. 2524ffab5952Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 2525ffab5952Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 2526ffab5952Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 2527ffab5952Smrg # will be set to the directory where LIBOBJS objects are built. 2528ffab5952Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 2529ffab5952Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 2530ffab5952Smrgdone 2531ffab5952SmrgLIBOBJS=$ac_libobjs 2532ffab5952Smrg 2533ffab5952SmrgLTLIBOBJS=$ac_ltlibobjs 2534ffab5952Smrg 2535ffab5952Smrg 253667e4e4deSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 253767e4e4deSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 253867e4e4deSmrg if test -n "$am_sleep_pid"; then 253967e4e4deSmrg # Hide warnings about reused PIDs. 254067e4e4deSmrg wait $am_sleep_pid 2>/dev/null 254167e4e4deSmrg fi 254267e4e4deSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 254367e4e4deSmrg$as_echo "done" >&6; } 2544ffab5952Smrg 2545ffab5952Smrg 2546ffab5952Smrg: "${CONFIG_STATUS=./config.status}" 2547ffab5952Smrgac_write_fail=0 2548ffab5952Smrgac_clean_files_save=$ac_clean_files 2549ffab5952Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 2550ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 2551ffab5952Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 2552ffab5952Smrgas_write_fail=0 2553ffab5952Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 2554ffab5952Smrg#! $SHELL 2555ffab5952Smrg# Generated by $as_me. 2556ffab5952Smrg# Run this file to recreate the current configuration. 2557ffab5952Smrg# Compiler output produced by configure, useful for debugging 2558ffab5952Smrg# configure, is in config.log if it exists. 2559ffab5952Smrg 2560ffab5952Smrgdebug=false 2561ffab5952Smrgac_cs_recheck=false 2562ffab5952Smrgac_cs_silent=false 2563ffab5952Smrg 2564ffab5952SmrgSHELL=\${CONFIG_SHELL-$SHELL} 2565ffab5952Smrgexport SHELL 2566ffab5952Smrg_ASEOF 2567ffab5952Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 2568ffab5952Smrg## -------------------- ## 2569ffab5952Smrg## M4sh Initialization. ## 2570ffab5952Smrg## -------------------- ## 2571ffab5952Smrg 2572ffab5952Smrg# Be more Bourne compatible 2573ffab5952SmrgDUALCASE=1; export DUALCASE # for MKS sh 2574ffab5952Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 2575ffab5952Smrg emulate sh 2576ffab5952Smrg NULLCMD=: 2577ffab5952Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2578ffab5952Smrg # is contrary to our usage. Disable this feature. 2579ffab5952Smrg alias -g '${1+"$@"}'='"$@"' 2580ffab5952Smrg setopt NO_GLOB_SUBST 2581ffab5952Smrgelse 2582ffab5952Smrg case `(set -o) 2>/dev/null` in #( 2583ffab5952Smrg *posix*) : 2584ffab5952Smrg set -o posix ;; #( 2585ffab5952Smrg *) : 2586ffab5952Smrg ;; 2587ffab5952Smrgesac 2588ffab5952Smrgfi 2589ffab5952Smrg 2590ffab5952Smrg 2591ffab5952Smrgas_nl=' 2592ffab5952Smrg' 2593ffab5952Smrgexport as_nl 2594ffab5952Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 2595ffab5952Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2596ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 2597ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 2598ffab5952Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 2599ffab5952Smrg# but without wasting forks for bash or zsh. 2600ffab5952Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 2601ffab5952Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 2602ffab5952Smrg as_echo='print -r --' 2603ffab5952Smrg as_echo_n='print -rn --' 2604ffab5952Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 2605ffab5952Smrg as_echo='printf %s\n' 2606ffab5952Smrg as_echo_n='printf %s' 2607ffab5952Smrgelse 2608ffab5952Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 2609ffab5952Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 2610ffab5952Smrg as_echo_n='/usr/ucb/echo -n' 2611ffab5952Smrg else 2612ffab5952Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 2613ffab5952Smrg as_echo_n_body='eval 2614ffab5952Smrg arg=$1; 2615ffab5952Smrg case $arg in #( 2616ffab5952Smrg *"$as_nl"*) 2617ffab5952Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 2618ffab5952Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 2619ffab5952Smrg esac; 2620ffab5952Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 2621ffab5952Smrg ' 2622ffab5952Smrg export as_echo_n_body 2623ffab5952Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 2624ffab5952Smrg fi 2625ffab5952Smrg export as_echo_body 2626ffab5952Smrg as_echo='sh -c $as_echo_body as_echo' 2627ffab5952Smrgfi 2628ffab5952Smrg 2629ffab5952Smrg# The user is always right. 2630ffab5952Smrgif test "${PATH_SEPARATOR+set}" != set; then 2631ffab5952Smrg PATH_SEPARATOR=: 2632ffab5952Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 2633ffab5952Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 2634ffab5952Smrg PATH_SEPARATOR=';' 2635ffab5952Smrg } 2636ffab5952Smrgfi 2637ffab5952Smrg 2638ffab5952Smrg 2639ffab5952Smrg# IFS 2640ffab5952Smrg# We need space, tab and new line, in precisely that order. Quoting is 2641ffab5952Smrg# there to prevent editors from complaining about space-tab. 2642ffab5952Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 2643ffab5952Smrg# splitting by setting IFS to empty value.) 2644ffab5952SmrgIFS=" "" $as_nl" 2645ffab5952Smrg 2646ffab5952Smrg# Find who we are. Look in the path if we contain no directory separator. 2647ffab5952Smrgas_myself= 2648ffab5952Smrgcase $0 in #(( 2649ffab5952Smrg *[\\/]* ) as_myself=$0 ;; 2650ffab5952Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651ffab5952Smrgfor as_dir in $PATH 2652ffab5952Smrgdo 2653ffab5952Smrg IFS=$as_save_IFS 2654ffab5952Smrg test -z "$as_dir" && as_dir=. 2655ffab5952Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2656ffab5952Smrg done 2657ffab5952SmrgIFS=$as_save_IFS 2658ffab5952Smrg 2659ffab5952Smrg ;; 2660ffab5952Smrgesac 2661ffab5952Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 2662ffab5952Smrg# in which case we are not to be found in the path. 2663ffab5952Smrgif test "x$as_myself" = x; then 2664ffab5952Smrg as_myself=$0 2665ffab5952Smrgfi 2666ffab5952Smrgif test ! -f "$as_myself"; then 2667ffab5952Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2668ffab5952Smrg exit 1 2669ffab5952Smrgfi 2670ffab5952Smrg 2671ffab5952Smrg# Unset variables that we do not need and which cause bugs (e.g. in 2672ffab5952Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 2673ffab5952Smrg# suppresses any "Segmentation fault" message there. '((' could 2674ffab5952Smrg# trigger a bug in pdksh 5.2.14. 2675ffab5952Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 2676ffab5952Smrgdo eval test x\${$as_var+set} = xset \ 2677ffab5952Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 2678ffab5952Smrgdone 2679ffab5952SmrgPS1='$ ' 2680ffab5952SmrgPS2='> ' 2681ffab5952SmrgPS4='+ ' 2682ffab5952Smrg 2683ffab5952Smrg# NLS nuisances. 2684ffab5952SmrgLC_ALL=C 2685ffab5952Smrgexport LC_ALL 2686ffab5952SmrgLANGUAGE=C 2687ffab5952Smrgexport LANGUAGE 2688ffab5952Smrg 2689ffab5952Smrg# CDPATH. 2690ffab5952Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2691ffab5952Smrg 2692ffab5952Smrg 2693ffab5952Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 2694ffab5952Smrg# ---------------------------------------- 2695ffab5952Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 2696ffab5952Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 2697ffab5952Smrg# script with STATUS, using 1 if that was 0. 2698ffab5952Smrgas_fn_error () 2699ffab5952Smrg{ 2700ffab5952Smrg as_status=$1; test $as_status -eq 0 && as_status=1 2701ffab5952Smrg if test "$4"; then 2702ffab5952Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2703ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 2704ffab5952Smrg fi 2705ffab5952Smrg $as_echo "$as_me: error: $2" >&2 2706ffab5952Smrg as_fn_exit $as_status 2707ffab5952Smrg} # as_fn_error 2708ffab5952Smrg 2709ffab5952Smrg 2710ffab5952Smrg# as_fn_set_status STATUS 2711ffab5952Smrg# ----------------------- 2712ffab5952Smrg# Set $? to STATUS, without forking. 2713ffab5952Smrgas_fn_set_status () 2714ffab5952Smrg{ 2715ffab5952Smrg return $1 2716ffab5952Smrg} # as_fn_set_status 2717ffab5952Smrg 2718ffab5952Smrg# as_fn_exit STATUS 2719ffab5952Smrg# ----------------- 2720ffab5952Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2721ffab5952Smrgas_fn_exit () 2722ffab5952Smrg{ 2723ffab5952Smrg set +e 2724ffab5952Smrg as_fn_set_status $1 2725ffab5952Smrg exit $1 2726ffab5952Smrg} # as_fn_exit 2727ffab5952Smrg 2728ffab5952Smrg# as_fn_unset VAR 2729ffab5952Smrg# --------------- 2730ffab5952Smrg# Portably unset VAR. 2731ffab5952Smrgas_fn_unset () 2732ffab5952Smrg{ 2733ffab5952Smrg { eval $1=; unset $1;} 2734ffab5952Smrg} 2735ffab5952Smrgas_unset=as_fn_unset 2736ffab5952Smrg# as_fn_append VAR VALUE 2737ffab5952Smrg# ---------------------- 2738ffab5952Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 2739ffab5952Smrg# advantage of any shell optimizations that allow amortized linear growth over 2740ffab5952Smrg# repeated appends, instead of the typical quadratic growth present in naive 2741ffab5952Smrg# implementations. 2742ffab5952Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 2743ffab5952Smrg eval 'as_fn_append () 2744ffab5952Smrg { 2745ffab5952Smrg eval $1+=\$2 2746ffab5952Smrg }' 2747ffab5952Smrgelse 2748ffab5952Smrg as_fn_append () 2749ffab5952Smrg { 2750ffab5952Smrg eval $1=\$$1\$2 2751ffab5952Smrg } 2752ffab5952Smrgfi # as_fn_append 2753ffab5952Smrg 2754ffab5952Smrg# as_fn_arith ARG... 2755ffab5952Smrg# ------------------ 2756ffab5952Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 2757ffab5952Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 2758ffab5952Smrg# must be portable across $(()) and expr. 2759ffab5952Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 2760ffab5952Smrg eval 'as_fn_arith () 2761ffab5952Smrg { 2762ffab5952Smrg as_val=$(( $* )) 2763ffab5952Smrg }' 2764ffab5952Smrgelse 2765ffab5952Smrg as_fn_arith () 2766ffab5952Smrg { 2767ffab5952Smrg as_val=`expr "$@" || test $? -eq 1` 2768ffab5952Smrg } 2769ffab5952Smrgfi # as_fn_arith 2770ffab5952Smrg 2771ffab5952Smrg 2772ffab5952Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 2773ffab5952Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 2774ffab5952Smrg as_expr=expr 2775ffab5952Smrgelse 2776ffab5952Smrg as_expr=false 2777ffab5952Smrgfi 2778ffab5952Smrg 2779ffab5952Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2780ffab5952Smrg as_basename=basename 2781ffab5952Smrgelse 2782ffab5952Smrg as_basename=false 2783ffab5952Smrgfi 2784ffab5952Smrg 2785ffab5952Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 2786ffab5952Smrg as_dirname=dirname 2787ffab5952Smrgelse 2788ffab5952Smrg as_dirname=false 2789ffab5952Smrgfi 2790ffab5952Smrg 2791ffab5952Smrgas_me=`$as_basename -- "$0" || 2792ffab5952Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2793ffab5952Smrg X"$0" : 'X\(//\)$' \| \ 2794ffab5952Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 2795ffab5952Smrg$as_echo X/"$0" | 2796ffab5952Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 2797ffab5952Smrg s//\1/ 2798ffab5952Smrg q 2799ffab5952Smrg } 2800ffab5952Smrg /^X\/\(\/\/\)$/{ 2801ffab5952Smrg s//\1/ 2802ffab5952Smrg q 2803ffab5952Smrg } 2804ffab5952Smrg /^X\/\(\/\).*/{ 2805ffab5952Smrg s//\1/ 2806ffab5952Smrg q 2807ffab5952Smrg } 2808ffab5952Smrg s/.*/./; q'` 2809ffab5952Smrg 2810ffab5952Smrg# Avoid depending upon Character Ranges. 2811ffab5952Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 2812ffab5952Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2813ffab5952Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 2814ffab5952Smrgas_cr_digits='0123456789' 2815ffab5952Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 2816ffab5952Smrg 2817ffab5952SmrgECHO_C= ECHO_N= ECHO_T= 2818ffab5952Smrgcase `echo -n x` in #((((( 2819ffab5952Smrg-n*) 2820ffab5952Smrg case `echo 'xy\c'` in 2821ffab5952Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2822ffab5952Smrg xy) ECHO_C='\c';; 2823ffab5952Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2824ffab5952Smrg ECHO_T=' ';; 2825ffab5952Smrg esac;; 2826ffab5952Smrg*) 2827ffab5952Smrg ECHO_N='-n';; 2828ffab5952Smrgesac 2829ffab5952Smrg 2830ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.file 2831ffab5952Smrgif test -d conf$$.dir; then 2832ffab5952Smrg rm -f conf$$.dir/conf$$.file 2833ffab5952Smrgelse 2834ffab5952Smrg rm -f conf$$.dir 2835ffab5952Smrg mkdir conf$$.dir 2>/dev/null 2836ffab5952Smrgfi 2837ffab5952Smrgif (echo >conf$$.file) 2>/dev/null; then 2838ffab5952Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 2839ffab5952Smrg as_ln_s='ln -s' 2840ffab5952Smrg # ... but there are two gotchas: 2841ffab5952Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 2842ffab5952Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 284367e4e4deSmrg # In both cases, we have to default to `cp -pR'. 2844ffab5952Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 284567e4e4deSmrg as_ln_s='cp -pR' 2846ffab5952Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 2847ffab5952Smrg as_ln_s=ln 2848ffab5952Smrg else 284967e4e4deSmrg as_ln_s='cp -pR' 2850ffab5952Smrg fi 2851ffab5952Smrgelse 285267e4e4deSmrg as_ln_s='cp -pR' 2853ffab5952Smrgfi 2854ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 2855ffab5952Smrgrmdir conf$$.dir 2>/dev/null 2856ffab5952Smrg 2857ffab5952Smrg 2858ffab5952Smrg# as_fn_mkdir_p 2859ffab5952Smrg# ------------- 2860ffab5952Smrg# Create "$as_dir" as a directory, including parents if necessary. 2861ffab5952Smrgas_fn_mkdir_p () 2862ffab5952Smrg{ 2863ffab5952Smrg 2864ffab5952Smrg case $as_dir in #( 2865ffab5952Smrg -*) as_dir=./$as_dir;; 2866ffab5952Smrg esac 2867ffab5952Smrg test -d "$as_dir" || eval $as_mkdir_p || { 2868ffab5952Smrg as_dirs= 2869ffab5952Smrg while :; do 2870ffab5952Smrg case $as_dir in #( 2871ffab5952Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 2872ffab5952Smrg *) as_qdir=$as_dir;; 2873ffab5952Smrg esac 2874ffab5952Smrg as_dirs="'$as_qdir' $as_dirs" 2875ffab5952Smrg as_dir=`$as_dirname -- "$as_dir" || 2876ffab5952Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2877ffab5952Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 2878ffab5952Smrg X"$as_dir" : 'X\(//\)$' \| \ 2879ffab5952Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 2880ffab5952Smrg$as_echo X"$as_dir" | 2881ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2882ffab5952Smrg s//\1/ 2883ffab5952Smrg q 2884ffab5952Smrg } 2885ffab5952Smrg /^X\(\/\/\)[^/].*/{ 2886ffab5952Smrg s//\1/ 2887ffab5952Smrg q 2888ffab5952Smrg } 2889ffab5952Smrg /^X\(\/\/\)$/{ 2890ffab5952Smrg s//\1/ 2891ffab5952Smrg q 2892ffab5952Smrg } 2893ffab5952Smrg /^X\(\/\).*/{ 2894ffab5952Smrg s//\1/ 2895ffab5952Smrg q 2896ffab5952Smrg } 2897ffab5952Smrg s/.*/./; q'` 2898ffab5952Smrg test -d "$as_dir" && break 2899ffab5952Smrg done 2900ffab5952Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 2901ffab5952Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 2902ffab5952Smrg 2903ffab5952Smrg 2904ffab5952Smrg} # as_fn_mkdir_p 2905ffab5952Smrgif mkdir -p . 2>/dev/null; then 2906ffab5952Smrg as_mkdir_p='mkdir -p "$as_dir"' 2907ffab5952Smrgelse 2908ffab5952Smrg test -d ./-p && rmdir ./-p 2909ffab5952Smrg as_mkdir_p=false 2910ffab5952Smrgfi 2911ffab5952Smrg 291267e4e4deSmrg 291367e4e4deSmrg# as_fn_executable_p FILE 291467e4e4deSmrg# ----------------------- 291567e4e4deSmrg# Test if FILE is an executable regular file. 291667e4e4deSmrgas_fn_executable_p () 291767e4e4deSmrg{ 291867e4e4deSmrg test -f "$1" && test -x "$1" 291967e4e4deSmrg} # as_fn_executable_p 292067e4e4deSmrgas_test_x='test -x' 292167e4e4deSmrgas_executable_p=as_fn_executable_p 2922ffab5952Smrg 2923ffab5952Smrg# Sed expression to map a string onto a valid CPP name. 2924ffab5952Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 2925ffab5952Smrg 2926ffab5952Smrg# Sed expression to map a string onto a valid variable name. 2927ffab5952Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 2928ffab5952Smrg 2929ffab5952Smrg 2930ffab5952Smrgexec 6>&1 2931ffab5952Smrg## ----------------------------------- ## 2932ffab5952Smrg## Main body of $CONFIG_STATUS script. ## 2933ffab5952Smrg## ----------------------------------- ## 2934ffab5952Smrg_ASEOF 2935ffab5952Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 2936ffab5952Smrg 2937ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 2938ffab5952Smrg# Save the log message, to keep $0 and so on meaningful, and to 2939ffab5952Smrg# report actual input values of CONFIG_FILES etc. instead of their 2940ffab5952Smrg# values after options handling. 2941ffab5952Smrgac_log=" 294245aa2fbfSmrgThis file was extended by util-macros $as_me 1.19.3, which was 294367e4e4deSmrggenerated by GNU Autoconf 2.69. Invocation command line was 2944ffab5952Smrg 2945ffab5952Smrg CONFIG_FILES = $CONFIG_FILES 2946ffab5952Smrg CONFIG_HEADERS = $CONFIG_HEADERS 2947ffab5952Smrg CONFIG_LINKS = $CONFIG_LINKS 2948ffab5952Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 2949ffab5952Smrg $ $0 $@ 2950ffab5952Smrg 2951ffab5952Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 2952ffab5952Smrg" 2953ffab5952Smrg 2954ffab5952Smrg_ACEOF 2955ffab5952Smrg 2956ffab5952Smrgcase $ac_config_files in *" 2957ffab5952Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 2958ffab5952Smrgesac 2959ffab5952Smrg 2960ffab5952Smrg 2961ffab5952Smrg 2962ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 2963ffab5952Smrg# Files that config.status was made for. 2964ffab5952Smrgconfig_files="$ac_config_files" 2965ffab5952Smrg 2966ffab5952Smrg_ACEOF 2967ffab5952Smrg 2968ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 2969ffab5952Smrgac_cs_usage="\ 2970ffab5952Smrg\`$as_me' instantiates files and other configuration actions 2971ffab5952Smrgfrom templates according to the current configuration. Unless the files 2972ffab5952Smrgand actions are specified as TAGs, all are instantiated by default. 2973ffab5952Smrg 2974ffab5952SmrgUsage: $0 [OPTION]... [TAG]... 2975ffab5952Smrg 2976ffab5952Smrg -h, --help print this help, then exit 2977ffab5952Smrg -V, --version print version number and configuration settings, then exit 2978ffab5952Smrg --config print configuration, then exit 2979ffab5952Smrg -q, --quiet, --silent 2980ffab5952Smrg do not print progress messages 2981ffab5952Smrg -d, --debug don't remove temporary files 2982ffab5952Smrg --recheck update $as_me by reconfiguring in the same conditions 2983ffab5952Smrg --file=FILE[:TEMPLATE] 2984ffab5952Smrg instantiate the configuration file FILE 2985ffab5952Smrg 2986ffab5952SmrgConfiguration files: 2987ffab5952Smrg$config_files 2988ffab5952Smrg 298945aa2fbfSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/util/macros/issues>." 2990ffab5952Smrg 2991ffab5952Smrg_ACEOF 2992ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 2993ffab5952Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 2994ffab5952Smrgac_cs_version="\\ 299545aa2fbfSmrgutil-macros config.status 1.19.3 299667e4e4deSmrgconfigured by $0, generated by GNU Autoconf 2.69, 2997ffab5952Smrg with options \\"\$ac_cs_config\\" 2998ffab5952Smrg 299967e4e4deSmrgCopyright (C) 2012 Free Software Foundation, Inc. 3000ffab5952SmrgThis config.status script is free software; the Free Software Foundation 3001ffab5952Smrggives unlimited permission to copy, distribute and modify it." 3002ffab5952Smrg 3003ffab5952Smrgac_pwd='$ac_pwd' 3004ffab5952Smrgsrcdir='$srcdir' 3005ffab5952SmrgINSTALL='$INSTALL' 3006ffab5952SmrgMKDIR_P='$MKDIR_P' 3007ffab5952SmrgAWK='$AWK' 3008ffab5952Smrgtest -n "\$AWK" || AWK=awk 3009ffab5952Smrg_ACEOF 3010ffab5952Smrg 3011ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3012ffab5952Smrg# The default lists apply if the user does not specify any file. 3013ffab5952Smrgac_need_defaults=: 3014ffab5952Smrgwhile test $# != 0 3015ffab5952Smrgdo 3016ffab5952Smrg case $1 in 3017ffab5952Smrg --*=?*) 3018ffab5952Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 3019ffab5952Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3020ffab5952Smrg ac_shift=: 3021ffab5952Smrg ;; 3022ffab5952Smrg --*=) 3023ffab5952Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 3024ffab5952Smrg ac_optarg= 3025ffab5952Smrg ac_shift=: 3026ffab5952Smrg ;; 3027ffab5952Smrg *) 3028ffab5952Smrg ac_option=$1 3029ffab5952Smrg ac_optarg=$2 3030ffab5952Smrg ac_shift=shift 3031ffab5952Smrg ;; 3032ffab5952Smrg esac 3033ffab5952Smrg 3034ffab5952Smrg case $ac_option in 3035ffab5952Smrg # Handling of the options. 3036ffab5952Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3037ffab5952Smrg ac_cs_recheck=: ;; 3038ffab5952Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 3039ffab5952Smrg $as_echo "$ac_cs_version"; exit ;; 3040ffab5952Smrg --config | --confi | --conf | --con | --co | --c ) 3041ffab5952Smrg $as_echo "$ac_cs_config"; exit ;; 3042ffab5952Smrg --debug | --debu | --deb | --de | --d | -d ) 3043ffab5952Smrg debug=: ;; 3044ffab5952Smrg --file | --fil | --fi | --f ) 3045ffab5952Smrg $ac_shift 3046ffab5952Smrg case $ac_optarg in 3047ffab5952Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 3048ffab5952Smrg '') as_fn_error $? "missing file argument" ;; 3049ffab5952Smrg esac 3050ffab5952Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 3051ffab5952Smrg ac_need_defaults=false;; 3052ffab5952Smrg --he | --h | --help | --hel | -h ) 3053ffab5952Smrg $as_echo "$ac_cs_usage"; exit ;; 3054ffab5952Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3055ffab5952Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 3056ffab5952Smrg ac_cs_silent=: ;; 3057ffab5952Smrg 3058ffab5952Smrg # This is an error. 3059ffab5952Smrg -*) as_fn_error $? "unrecognized option: \`$1' 3060ffab5952SmrgTry \`$0 --help' for more information." ;; 3061ffab5952Smrg 3062ffab5952Smrg *) as_fn_append ac_config_targets " $1" 3063ffab5952Smrg ac_need_defaults=false ;; 3064ffab5952Smrg 3065ffab5952Smrg esac 3066ffab5952Smrg shift 3067ffab5952Smrgdone 3068ffab5952Smrg 3069ffab5952Smrgac_configure_extra_args= 3070ffab5952Smrg 3071ffab5952Smrgif $ac_cs_silent; then 3072ffab5952Smrg exec 6>/dev/null 3073ffab5952Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 3074ffab5952Smrgfi 3075ffab5952Smrg 3076ffab5952Smrg_ACEOF 3077ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3078ffab5952Smrgif \$ac_cs_recheck; then 307967e4e4deSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3080ffab5952Smrg shift 3081ffab5952Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 3082ffab5952Smrg CONFIG_SHELL='$SHELL' 3083ffab5952Smrg export CONFIG_SHELL 3084ffab5952Smrg exec "\$@" 3085ffab5952Smrgfi 3086ffab5952Smrg 3087ffab5952Smrg_ACEOF 3088ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3089ffab5952Smrgexec 5>>config.log 3090ffab5952Smrg{ 3091ffab5952Smrg echo 3092ffab5952Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3093ffab5952Smrg## Running $as_me. ## 3094ffab5952Smrg_ASBOX 3095ffab5952Smrg $as_echo "$ac_log" 3096ffab5952Smrg} >&5 3097ffab5952Smrg 3098ffab5952Smrg_ACEOF 3099ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3100ffab5952Smrg_ACEOF 3101ffab5952Smrg 3102ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3103ffab5952Smrg 3104ffab5952Smrg# Handling of arguments. 3105ffab5952Smrgfor ac_config_target in $ac_config_targets 3106ffab5952Smrgdo 3107ffab5952Smrg case $ac_config_target in 3108ffab5952Smrg "xorg-macros.pc") CONFIG_FILES="$CONFIG_FILES xorg-macros.pc" ;; 3109ffab5952Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3110ffab5952Smrg "xorg-macros.m4") CONFIG_FILES="$CONFIG_FILES xorg-macros.m4:xorg-macros.m4.in:xorgversion.m4" ;; 3111ffab5952Smrg 3112ffab5952Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 3113ffab5952Smrg esac 3114ffab5952Smrgdone 3115ffab5952Smrg 3116ffab5952Smrg 3117ffab5952Smrg# If the user did not use the arguments to specify the items to instantiate, 3118ffab5952Smrg# then the envvar interface is used. Set only those that are not. 3119ffab5952Smrg# We use the long form for the default assignment because of an extremely 3120ffab5952Smrg# bizarre bug on SunOS 4.1.3. 3121ffab5952Smrgif $ac_need_defaults; then 3122ffab5952Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3123ffab5952Smrgfi 3124ffab5952Smrg 3125ffab5952Smrg# Have a temporary directory for convenience. Make it in the build tree 3126ffab5952Smrg# simply because there is no reason against having it here, and in addition, 3127ffab5952Smrg# creating and moving files from /tmp can sometimes cause problems. 3128ffab5952Smrg# Hook for its removal unless debugging. 3129ffab5952Smrg# Note that there is a small window in which the directory will not be cleaned: 3130ffab5952Smrg# after its creation but before its name has been assigned to `$tmp'. 3131ffab5952Smrg$debug || 3132ffab5952Smrg{ 3133ffab5952Smrg tmp= ac_tmp= 3134ffab5952Smrg trap 'exit_status=$? 3135ffab5952Smrg : "${ac_tmp:=$tmp}" 3136ffab5952Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 3137ffab5952Smrg' 0 3138ffab5952Smrg trap 'as_fn_exit 1' 1 2 13 15 3139ffab5952Smrg} 3140ffab5952Smrg# Create a (secure) tmp directory for tmp files. 3141ffab5952Smrg 3142ffab5952Smrg{ 3143ffab5952Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 3144ffab5952Smrg test -d "$tmp" 3145ffab5952Smrg} || 3146ffab5952Smrg{ 3147ffab5952Smrg tmp=./conf$$-$RANDOM 3148ffab5952Smrg (umask 077 && mkdir "$tmp") 3149ffab5952Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 3150ffab5952Smrgac_tmp=$tmp 3151ffab5952Smrg 3152ffab5952Smrg# Set up the scripts for CONFIG_FILES section. 3153ffab5952Smrg# No need to generate them if there are no CONFIG_FILES. 3154ffab5952Smrg# This happens for instance with `./config.status config.h'. 3155ffab5952Smrgif test -n "$CONFIG_FILES"; then 3156ffab5952Smrg 3157ffab5952Smrg 3158ffab5952Smrgac_cr=`echo X | tr X '\015'` 3159ffab5952Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 3160ffab5952Smrg# But we know of no other shell where ac_cr would be empty at this 3161ffab5952Smrg# point, so we can use a bashism as a fallback. 3162ffab5952Smrgif test "x$ac_cr" = x; then 3163ffab5952Smrg eval ac_cr=\$\'\\r\' 3164ffab5952Smrgfi 3165ffab5952Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 3166ffab5952Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 3167ffab5952Smrg ac_cs_awk_cr='\\r' 3168ffab5952Smrgelse 3169ffab5952Smrg ac_cs_awk_cr=$ac_cr 3170ffab5952Smrgfi 3171ffab5952Smrg 3172ffab5952Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 3173ffab5952Smrg_ACEOF 3174ffab5952Smrg 3175ffab5952Smrg 3176ffab5952Smrg{ 3177ffab5952Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 3178ffab5952Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 3179ffab5952Smrg echo "_ACEOF" 3180ffab5952Smrg} >conf$$subs.sh || 3181ffab5952Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3182ffab5952Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 3183ffab5952Smrgac_delim='%!_!# ' 3184ffab5952Smrgfor ac_last_try in false false false false false :; do 3185ffab5952Smrg . ./conf$$subs.sh || 3186ffab5952Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3187ffab5952Smrg 3188ffab5952Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 3189ffab5952Smrg if test $ac_delim_n = $ac_delim_num; then 3190ffab5952Smrg break 3191ffab5952Smrg elif $ac_last_try; then 3192ffab5952Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3193ffab5952Smrg else 3194ffab5952Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 3195ffab5952Smrg fi 3196ffab5952Smrgdone 3197ffab5952Smrgrm -f conf$$subs.sh 3198ffab5952Smrg 3199ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3200ffab5952Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 3201ffab5952Smrg_ACEOF 3202ffab5952Smrgsed -n ' 3203ffab5952Smrgh 3204ffab5952Smrgs/^/S["/; s/!.*/"]=/ 3205ffab5952Smrgp 3206ffab5952Smrgg 3207ffab5952Smrgs/^[^!]*!// 3208ffab5952Smrg:repl 3209ffab5952Smrgt repl 3210ffab5952Smrgs/'"$ac_delim"'$// 3211ffab5952Smrgt delim 3212ffab5952Smrg:nl 3213ffab5952Smrgh 3214ffab5952Smrgs/\(.\{148\}\)..*/\1/ 3215ffab5952Smrgt more1 3216ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 3217ffab5952Smrgp 3218ffab5952Smrgn 3219ffab5952Smrgb repl 3220ffab5952Smrg:more1 3221ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 3222ffab5952Smrgp 3223ffab5952Smrgg 3224ffab5952Smrgs/.\{148\}// 3225ffab5952Smrgt nl 3226ffab5952Smrg:delim 3227ffab5952Smrgh 3228ffab5952Smrgs/\(.\{148\}\)..*/\1/ 3229ffab5952Smrgt more2 3230ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 3231ffab5952Smrgp 3232ffab5952Smrgb 3233ffab5952Smrg:more2 3234ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 3235ffab5952Smrgp 3236ffab5952Smrgg 3237ffab5952Smrgs/.\{148\}// 3238ffab5952Smrgt delim 3239ffab5952Smrg' <conf$$subs.awk | sed ' 3240ffab5952Smrg/^[^""]/{ 3241ffab5952Smrg N 3242ffab5952Smrg s/\n// 3243ffab5952Smrg} 3244ffab5952Smrg' >>$CONFIG_STATUS || ac_write_fail=1 3245ffab5952Smrgrm -f conf$$subs.awk 3246ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3247ffab5952Smrg_ACAWK 3248ffab5952Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 3249ffab5952Smrg for (key in S) S_is_set[key] = 1 3250ffab5952Smrg FS = "" 3251ffab5952Smrg 3252ffab5952Smrg} 3253ffab5952Smrg{ 3254ffab5952Smrg line = $ 0 3255ffab5952Smrg nfields = split(line, field, "@") 3256ffab5952Smrg substed = 0 3257ffab5952Smrg len = length(field[1]) 3258ffab5952Smrg for (i = 2; i < nfields; i++) { 3259ffab5952Smrg key = field[i] 3260ffab5952Smrg keylen = length(key) 3261ffab5952Smrg if (S_is_set[key]) { 3262ffab5952Smrg value = S[key] 3263ffab5952Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 3264ffab5952Smrg len += length(value) + length(field[++i]) 3265ffab5952Smrg substed = 1 3266ffab5952Smrg } else 3267ffab5952Smrg len += 1 + keylen 3268ffab5952Smrg } 3269ffab5952Smrg 3270ffab5952Smrg print line 3271ffab5952Smrg} 3272ffab5952Smrg 3273ffab5952Smrg_ACAWK 3274ffab5952Smrg_ACEOF 3275ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3276ffab5952Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 3277ffab5952Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 3278ffab5952Smrgelse 3279ffab5952Smrg cat 3280ffab5952Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 3281ffab5952Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 3282ffab5952Smrg_ACEOF 3283ffab5952Smrg 3284ffab5952Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 3285ffab5952Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 3286ffab5952Smrg# trailing colons and then remove the whole line if VPATH becomes empty 3287ffab5952Smrg# (actually we leave an empty line to preserve line numbers). 3288ffab5952Smrgif test "x$srcdir" = x.; then 3289ffab5952Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 3290ffab5952Smrgh 3291ffab5952Smrgs/// 3292ffab5952Smrgs/^/:/ 3293ffab5952Smrgs/[ ]*$/:/ 3294ffab5952Smrgs/:\$(srcdir):/:/g 3295ffab5952Smrgs/:\${srcdir}:/:/g 3296ffab5952Smrgs/:@srcdir@:/:/g 3297ffab5952Smrgs/^:*// 3298ffab5952Smrgs/:*$// 3299ffab5952Smrgx 3300ffab5952Smrgs/\(=[ ]*\).*/\1/ 3301ffab5952SmrgG 3302ffab5952Smrgs/\n// 3303ffab5952Smrgs/^[^=]*=[ ]*$// 3304ffab5952Smrg}' 3305ffab5952Smrgfi 3306ffab5952Smrg 3307ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3308ffab5952Smrgfi # test -n "$CONFIG_FILES" 3309ffab5952Smrg 3310ffab5952Smrg 3311ffab5952Smrgeval set X " :F $CONFIG_FILES " 3312ffab5952Smrgshift 3313ffab5952Smrgfor ac_tag 3314ffab5952Smrgdo 3315ffab5952Smrg case $ac_tag in 3316ffab5952Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 3317ffab5952Smrg esac 3318ffab5952Smrg case $ac_mode$ac_tag in 3319ffab5952Smrg :[FHL]*:*);; 3320ffab5952Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 3321ffab5952Smrg :[FH]-) ac_tag=-:-;; 3322ffab5952Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 3323ffab5952Smrg esac 3324ffab5952Smrg ac_save_IFS=$IFS 3325ffab5952Smrg IFS=: 3326ffab5952Smrg set x $ac_tag 3327ffab5952Smrg IFS=$ac_save_IFS 3328ffab5952Smrg shift 3329ffab5952Smrg ac_file=$1 3330ffab5952Smrg shift 3331ffab5952Smrg 3332ffab5952Smrg case $ac_mode in 3333ffab5952Smrg :L) ac_source=$1;; 3334ffab5952Smrg :[FH]) 3335ffab5952Smrg ac_file_inputs= 3336ffab5952Smrg for ac_f 3337ffab5952Smrg do 3338ffab5952Smrg case $ac_f in 3339ffab5952Smrg -) ac_f="$ac_tmp/stdin";; 3340ffab5952Smrg *) # Look for the file first in the build tree, then in the source tree 3341ffab5952Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 3342ffab5952Smrg # because $ac_f cannot contain `:'. 3343ffab5952Smrg test -f "$ac_f" || 3344ffab5952Smrg case $ac_f in 3345ffab5952Smrg [\\/$]*) false;; 3346ffab5952Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 3347ffab5952Smrg esac || 3348ffab5952Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 3349ffab5952Smrg esac 3350ffab5952Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 3351ffab5952Smrg as_fn_append ac_file_inputs " '$ac_f'" 3352ffab5952Smrg done 3353ffab5952Smrg 3354ffab5952Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 3355ffab5952Smrg # use $as_me), people would be surprised to read: 3356ffab5952Smrg # /* config.h. Generated by config.status. */ 3357ffab5952Smrg configure_input='Generated from '` 3358ffab5952Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 3359ffab5952Smrg `' by configure.' 3360ffab5952Smrg if test x"$ac_file" != x-; then 3361ffab5952Smrg configure_input="$ac_file. $configure_input" 3362ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 3363ffab5952Smrg$as_echo "$as_me: creating $ac_file" >&6;} 3364ffab5952Smrg fi 3365ffab5952Smrg # Neutralize special characters interpreted by sed in replacement strings. 3366ffab5952Smrg case $configure_input in #( 3367ffab5952Smrg *\&* | *\|* | *\\* ) 3368ffab5952Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 3369ffab5952Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 3370ffab5952Smrg *) ac_sed_conf_input=$configure_input;; 3371ffab5952Smrg esac 3372ffab5952Smrg 3373ffab5952Smrg case $ac_tag in 3374ffab5952Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 3375ffab5952Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 3376ffab5952Smrg esac 3377ffab5952Smrg ;; 3378ffab5952Smrg esac 3379ffab5952Smrg 3380ffab5952Smrg ac_dir=`$as_dirname -- "$ac_file" || 3381ffab5952Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3382ffab5952Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 3383ffab5952Smrg X"$ac_file" : 'X\(//\)$' \| \ 3384ffab5952Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 3385ffab5952Smrg$as_echo X"$ac_file" | 3386ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3387ffab5952Smrg s//\1/ 3388ffab5952Smrg q 3389ffab5952Smrg } 3390ffab5952Smrg /^X\(\/\/\)[^/].*/{ 3391ffab5952Smrg s//\1/ 3392ffab5952Smrg q 3393ffab5952Smrg } 3394ffab5952Smrg /^X\(\/\/\)$/{ 3395ffab5952Smrg s//\1/ 3396ffab5952Smrg q 3397ffab5952Smrg } 3398ffab5952Smrg /^X\(\/\).*/{ 3399ffab5952Smrg s//\1/ 3400ffab5952Smrg q 3401ffab5952Smrg } 3402ffab5952Smrg s/.*/./; q'` 3403ffab5952Smrg as_dir="$ac_dir"; as_fn_mkdir_p 3404ffab5952Smrg ac_builddir=. 3405ffab5952Smrg 3406ffab5952Smrgcase "$ac_dir" in 3407ffab5952Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 3408ffab5952Smrg*) 3409ffab5952Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 3410ffab5952Smrg # A ".." for each directory in $ac_dir_suffix. 3411ffab5952Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 3412ffab5952Smrg case $ac_top_builddir_sub in 3413ffab5952Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 3414ffab5952Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 3415ffab5952Smrg esac ;; 3416ffab5952Smrgesac 3417ffab5952Smrgac_abs_top_builddir=$ac_pwd 3418ffab5952Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 3419ffab5952Smrg# for backward compatibility: 3420ffab5952Smrgac_top_builddir=$ac_top_build_prefix 3421ffab5952Smrg 3422ffab5952Smrgcase $srcdir in 3423ffab5952Smrg .) # We are building in place. 3424ffab5952Smrg ac_srcdir=. 3425ffab5952Smrg ac_top_srcdir=$ac_top_builddir_sub 3426ffab5952Smrg ac_abs_top_srcdir=$ac_pwd ;; 3427ffab5952Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 3428ffab5952Smrg ac_srcdir=$srcdir$ac_dir_suffix; 3429ffab5952Smrg ac_top_srcdir=$srcdir 3430ffab5952Smrg ac_abs_top_srcdir=$srcdir ;; 3431ffab5952Smrg *) # Relative name. 3432ffab5952Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 3433ffab5952Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 3434ffab5952Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 3435ffab5952Smrgesac 3436ffab5952Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 3437ffab5952Smrg 3438ffab5952Smrg 3439ffab5952Smrg case $ac_mode in 3440ffab5952Smrg :F) 3441ffab5952Smrg # 3442ffab5952Smrg # CONFIG_FILE 3443ffab5952Smrg # 3444ffab5952Smrg 3445ffab5952Smrg case $INSTALL in 3446ffab5952Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 3447ffab5952Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 3448ffab5952Smrg esac 3449ffab5952Smrg ac_MKDIR_P=$MKDIR_P 3450ffab5952Smrg case $MKDIR_P in 3451ffab5952Smrg [\\/$]* | ?:[\\/]* ) ;; 3452ffab5952Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 3453ffab5952Smrg esac 3454ffab5952Smrg_ACEOF 3455ffab5952Smrg 3456ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3457ffab5952Smrg# If the template does not know about datarootdir, expand it. 3458ffab5952Smrg# FIXME: This hack should be removed a few years after 2.60. 3459ffab5952Smrgac_datarootdir_hack=; ac_datarootdir_seen= 3460ffab5952Smrgac_sed_dataroot=' 3461ffab5952Smrg/datarootdir/ { 3462ffab5952Smrg p 3463ffab5952Smrg q 3464ffab5952Smrg} 3465ffab5952Smrg/@datadir@/p 3466ffab5952Smrg/@docdir@/p 3467ffab5952Smrg/@infodir@/p 3468ffab5952Smrg/@localedir@/p 3469ffab5952Smrg/@mandir@/p' 3470ffab5952Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 3471ffab5952Smrg*datarootdir*) ac_datarootdir_seen=yes;; 3472ffab5952Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 3473ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 3474ffab5952Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 3475ffab5952Smrg_ACEOF 3476ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3477ffab5952Smrg ac_datarootdir_hack=' 3478ffab5952Smrg s&@datadir@&$datadir&g 3479ffab5952Smrg s&@docdir@&$docdir&g 3480ffab5952Smrg s&@infodir@&$infodir&g 3481ffab5952Smrg s&@localedir@&$localedir&g 3482ffab5952Smrg s&@mandir@&$mandir&g 3483ffab5952Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 3484ffab5952Smrgesac 3485ffab5952Smrg_ACEOF 3486ffab5952Smrg 3487ffab5952Smrg# Neutralize VPATH when `$srcdir' = `.'. 3488ffab5952Smrg# Shell code in configure.ac might set extrasub. 3489ffab5952Smrg# FIXME: do we really want to maintain this feature? 3490ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3491ffab5952Smrgac_sed_extra="$ac_vpsub 3492ffab5952Smrg$extrasub 3493ffab5952Smrg_ACEOF 3494ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3495ffab5952Smrg:t 3496ffab5952Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3497ffab5952Smrgs|@configure_input@|$ac_sed_conf_input|;t t 3498ffab5952Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 3499ffab5952Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 3500ffab5952Smrgs&@srcdir@&$ac_srcdir&;t t 3501ffab5952Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 3502ffab5952Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 3503ffab5952Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 3504ffab5952Smrgs&@builddir@&$ac_builddir&;t t 3505ffab5952Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 3506ffab5952Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 3507ffab5952Smrgs&@INSTALL@&$ac_INSTALL&;t t 3508ffab5952Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 3509ffab5952Smrg$ac_datarootdir_hack 3510ffab5952Smrg" 3511ffab5952Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 3512ffab5952Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 3513ffab5952Smrg 3514ffab5952Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 3515ffab5952Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 3516ffab5952Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 3517ffab5952Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 3518ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3519ffab5952Smrgwhich seems to be undefined. Please make sure it is defined" >&5 3520ffab5952Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3521ffab5952Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 3522ffab5952Smrg 3523ffab5952Smrg rm -f "$ac_tmp/stdin" 3524ffab5952Smrg case $ac_file in 3525ffab5952Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 3526ffab5952Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 3527ffab5952Smrg esac \ 3528ffab5952Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 3529ffab5952Smrg ;; 3530ffab5952Smrg 3531ffab5952Smrg 3532ffab5952Smrg 3533ffab5952Smrg esac 3534ffab5952Smrg 3535ffab5952Smrgdone # for ac_tag 3536ffab5952Smrg 3537ffab5952Smrg 3538ffab5952Smrgas_fn_exit 0 3539ffab5952Smrg_ACEOF 3540ffab5952Smrgac_clean_files=$ac_clean_files_save 3541ffab5952Smrg 3542ffab5952Smrgtest $ac_write_fail = 0 || 3543ffab5952Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 3544ffab5952Smrg 3545ffab5952Smrg 3546ffab5952Smrg# configure is writing to config.log, and then calls config.status. 3547ffab5952Smrg# config.status does its own redirection, appending to config.log. 3548ffab5952Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 3549ffab5952Smrg# by configure, so config.status won't be able to write to it; its 3550ffab5952Smrg# output is simply discarded. So we exec the FD to /dev/null, 3551ffab5952Smrg# effectively closing config.log, so it can be properly (re)opened and 3552ffab5952Smrg# appended to by config.status. When coming back to configure, we 3553ffab5952Smrg# need to make the FD available again. 3554ffab5952Smrgif test "$no_create" != yes; then 3555ffab5952Smrg ac_cs_success=: 3556ffab5952Smrg ac_config_status_args= 3557ffab5952Smrg test "$silent" = yes && 3558ffab5952Smrg ac_config_status_args="$ac_config_status_args --quiet" 3559ffab5952Smrg exec 5>/dev/null 3560ffab5952Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3561ffab5952Smrg exec 5>>config.log 3562ffab5952Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3563ffab5952Smrg # would make configure fail if this is the last instruction. 3564ffab5952Smrg $ac_cs_success || as_fn_exit 1 3565ffab5952Smrgfi 3566ffab5952Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 3567ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 3568ffab5952Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 3569ffab5952Smrgfi 3570ffab5952Smrg 3571