annotate configure @ 1120:74f2eb3b0606

Basis.debug; more restrictive type for Basis.form; weaken definition of polymorphic-ness for especialization
author Adam Chlipala <adamc@hcoop.net>
date Thu, 07 Jan 2010 14:02:58 -0500
parents bed675db3aff
children d4cd54a4ea06
rev   line source
adamc@378 1 #! /bin/sh
adamc@378 2 # Guess values for system-dependent variables and create Makefiles.
adamc@1095 3 # Generated by GNU Autoconf 2.65.
adamc@1095 4 #
adamc@378 5 #
adamc@378 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
adamc@1095 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
adamc@1095 8 # Inc.
adamc@1095 9 #
adamc@1095 10 #
adamc@378 11 # This configure script is free software; the Free Software Foundation
adamc@378 12 # gives unlimited permission to copy, distribute and modify it.
adamc@1095 13 ## -------------------- ##
adamc@1095 14 ## M4sh Initialization. ##
adamc@1095 15 ## -------------------- ##
adamc@378 16
adamc@378 17 # Be more Bourne compatible
adamc@378 18 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 20 emulate sh
adamc@378 21 NULLCMD=:
adamc@1095 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 23 # is contrary to our usage. Disable this feature.
adamc@378 24 alias -g '${1+"$@"}'='"$@"'
adamc@378 25 setopt NO_GLOB_SUBST
adamc@378 26 else
adamc@1095 27 case `(set -o) 2>/dev/null` in #(
adamc@1095 28 *posix*) :
adamc@1095 29 set -o posix ;; #(
adamc@1095 30 *) :
adamc@1095 31 ;;
adamc@378 32 esac
adamc@378 33 fi
adamc@378 34
adamc@378 35
adamc@1095 36 as_nl='
adamc@1095 37 '
adamc@1095 38 export as_nl
adamc@1095 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 44 # but without wasting forks for bash or zsh.
adamc@1095 45 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 47 as_echo='print -r --'
adamc@1095 48 as_echo_n='print -rn --'
adamc@1095 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 50 as_echo='printf %s\n'
adamc@1095 51 as_echo_n='printf %s'
adamc@1095 52 else
adamc@1095 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 55 as_echo_n='/usr/ucb/echo -n'
adamc@1095 56 else
adamc@1095 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 58 as_echo_n_body='eval
adamc@1095 59 arg=$1;
adamc@1095 60 case $arg in #(
adamc@1095 61 *"$as_nl"*)
adamc@1095 62 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 64 esac;
adamc@1095 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 66 '
adamc@1095 67 export as_echo_n_body
adamc@1095 68 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 69 fi
adamc@1095 70 export as_echo_body
adamc@1095 71 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 72 fi
adamc@378 73
adamc@378 74 # The user is always right.
adamc@378 75 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 76 PATH_SEPARATOR=:
adamc@1095 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 79 PATH_SEPARATOR=';'
adamc@1095 80 }
adamc@378 81 fi
adamc@378 82
adamc@378 83
adamc@378 84 # IFS
adamc@378 85 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 86 # there to prevent editors from complaining about space-tab.
adamc@378 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 88 # splitting by setting IFS to empty value.)
adamc@378 89 IFS=" "" $as_nl"
adamc@378 90
adamc@378 91 # Find who we are. Look in the path if we contain no directory separator.
adamc@1095 92 case $0 in #((
adamc@378 93 *[\\/]* ) as_myself=$0 ;;
adamc@378 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 95 for as_dir in $PATH
adamc@378 96 do
adamc@378 97 IFS=$as_save_IFS
adamc@378 98 test -z "$as_dir" && as_dir=.
adamc@1095 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 100 done
adamc@378 101 IFS=$as_save_IFS
adamc@378 102
adamc@378 103 ;;
adamc@378 104 esac
adamc@378 105 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 106 # in which case we are not to be found in the path.
adamc@378 107 if test "x$as_myself" = x; then
adamc@378 108 as_myself=$0
adamc@378 109 fi
adamc@378 110 if test ! -f "$as_myself"; then
adamc@1095 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 112 exit 1
adamc@378 113 fi
adamc@378 114
adamc@1095 115 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 117 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 118 # trigger a bug in pdksh 5.2.14.
adamc@1095 119 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 120 do eval test x\${$as_var+set} = xset \
adamc@1095 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 122 done
adamc@378 123 PS1='$ '
adamc@378 124 PS2='> '
adamc@378 125 PS4='+ '
adamc@378 126
adamc@378 127 # NLS nuisances.
adamc@1095 128 LC_ALL=C
adamc@1095 129 export LC_ALL
adamc@1095 130 LANGUAGE=C
adamc@1095 131 export LANGUAGE
adamc@1095 132
adamc@1095 133 # CDPATH.
adamc@1095 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 135
adamc@1095 136 if test "x$CONFIG_SHELL" = x; then
adamc@1095 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
adamc@1095 138 emulate sh
adamc@1095 139 NULLCMD=:
adamc@1095 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
adamc@1095 141 # is contrary to our usage. Disable this feature.
adamc@1095 142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
adamc@1095 143 setopt NO_GLOB_SUBST
adamc@1095 144 else
adamc@1095 145 case \`(set -o) 2>/dev/null\` in #(
adamc@1095 146 *posix*) :
adamc@1095 147 set -o posix ;; #(
adamc@1095 148 *) :
adamc@1095 149 ;;
adamc@1095 150 esac
adamc@1095 151 fi
adamc@1095 152 "
adamc@1095 153 as_required="as_fn_return () { (exit \$1); }
adamc@1095 154 as_fn_success () { as_fn_return 0; }
adamc@1095 155 as_fn_failure () { as_fn_return 1; }
adamc@1095 156 as_fn_ret_success () { return 0; }
adamc@1095 157 as_fn_ret_failure () { return 1; }
adamc@1095 158
adamc@1095 159 exitcode=0
adamc@1095 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
adamc@1095 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
adamc@1095 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
adamc@1095 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
adamc@1095 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
adamc@1095 165
adamc@1095 166 else
adamc@1095 167 exitcode=1; echo positional parameters were not saved.
adamc@1095 168 fi
adamc@1095 169 test x\$exitcode = x0 || exit 1"
adamc@1095 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
adamc@1095 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
adamc@1095 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
adamc@1095 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
adamc@1095 174 if (eval "$as_required") 2>/dev/null; then :
adamc@1095 175 as_have_required=yes
adamc@1095 176 else
adamc@1095 177 as_have_required=no
adamc@1095 178 fi
adamc@1095 179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
adamc@1095 180
adamc@1095 181 else
adamc@1095 182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1095 183 as_found=false
adamc@1095 184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
adamc@378 185 do
adamc@1095 186 IFS=$as_save_IFS
adamc@1095 187 test -z "$as_dir" && as_dir=.
adamc@1095 188 as_found=:
adamc@1095 189 case $as_dir in #(
adamc@1095 190 /*)
adamc@1095 191 for as_base in sh bash ksh sh5; do
adamc@1095 192 # Try only shells that exist, to save several forks.
adamc@1095 193 as_shell=$as_dir/$as_base
adamc@1095 194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
adamc@1095 195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
adamc@1095 196 CONFIG_SHELL=$as_shell as_have_required=yes
adamc@1095 197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
adamc@1095 198 break 2
adamc@1095 199 fi
adamc@1095 200 fi
adamc@1095 201 done;;
adamc@1095 202 esac
adamc@1095 203 as_found=false
adamc@1095 204 done
adamc@1095 205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
adamc@1095 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
adamc@1095 207 CONFIG_SHELL=$SHELL as_have_required=yes
adamc@1095 208 fi; }
adamc@1095 209 IFS=$as_save_IFS
adamc@1095 210
adamc@1095 211
adamc@1095 212 if test "x$CONFIG_SHELL" != x; then :
adamc@1095 213 # We cannot yet assume a decent shell, so we have to provide a
adamc@1095 214 # neutralization value for shells without unset; and this also
adamc@1095 215 # works around shells that cannot unset nonexistent variables.
adamc@1095 216 BASH_ENV=/dev/null
adamc@1095 217 ENV=/dev/null
adamc@1095 218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
adamc@1095 219 export CONFIG_SHELL
adamc@1095 220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
adamc@1095 221 fi
adamc@1095 222
adamc@1095 223 if test x$as_have_required = xno; then :
adamc@1095 224 $as_echo "$0: This script requires a shell more modern than all"
adamc@1095 225 $as_echo "$0: the shells that I found on your system."
adamc@1095 226 if test x${ZSH_VERSION+set} = xset ; then
adamc@1095 227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
adamc@1095 228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
adamc@378 229 else
adamc@1095 230 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
adamc@1095 231 $0: including any error possibly output before this
adamc@1095 232 $0: message. Then install a modern shell, or manually run
adamc@1095 233 $0: the script under such a shell if you do have one."
adamc@378 234 fi
adamc@1095 235 exit 1
adamc@1095 236 fi
adamc@1095 237 fi
adamc@1095 238 fi
adamc@1095 239 SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1095 240 export SHELL
adamc@1095 241 # Unset more variables known to interfere with behavior of common tools.
adamc@1095 242 CLICOLOR_FORCE= GREP_OPTIONS=
adamc@1095 243 unset CLICOLOR_FORCE GREP_OPTIONS
adamc@378 244
adamc@1095 245 ## --------------------- ##
adamc@1095 246 ## M4sh Shell Functions. ##
adamc@1095 247 ## --------------------- ##
adamc@1095 248 # as_fn_unset VAR
adamc@1095 249 # ---------------
adamc@1095 250 # Portably unset VAR.
adamc@1095 251 as_fn_unset ()
adamc@1095 252 {
adamc@1095 253 { eval $1=; unset $1;}
adamc@1095 254 }
adamc@1095 255 as_unset=as_fn_unset
adamc@1095 256
adamc@1095 257 # as_fn_set_status STATUS
adamc@1095 258 # -----------------------
adamc@1095 259 # Set $? to STATUS, without forking.
adamc@1095 260 as_fn_set_status ()
adamc@1095 261 {
adamc@1095 262 return $1
adamc@1095 263 } # as_fn_set_status
adamc@1095 264
adamc@1095 265 # as_fn_exit STATUS
adamc@1095 266 # -----------------
adamc@1095 267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 268 as_fn_exit ()
adamc@1095 269 {
adamc@1095 270 set +e
adamc@1095 271 as_fn_set_status $1
adamc@1095 272 exit $1
adamc@1095 273 } # as_fn_exit
adamc@1095 274
adamc@1095 275 # as_fn_mkdir_p
adamc@1095 276 # -------------
adamc@1095 277 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 278 as_fn_mkdir_p ()
adamc@1095 279 {
adamc@1095 280
adamc@1095 281 case $as_dir in #(
adamc@1095 282 -*) as_dir=./$as_dir;;
adamc@1095 283 esac
adamc@1095 284 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 285 as_dirs=
adamc@1095 286 while :; do
adamc@1095 287 case $as_dir in #(
adamc@1095 288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 289 *) as_qdir=$as_dir;;
adamc@1095 290 esac
adamc@1095 291 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 292 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 294 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 295 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 297 $as_echo X"$as_dir" |
adamc@1095 298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 299 s//\1/
adamc@1095 300 q
adamc@1095 301 }
adamc@1095 302 /^X\(\/\/\)[^/].*/{
adamc@1095 303 s//\1/
adamc@1095 304 q
adamc@1095 305 }
adamc@1095 306 /^X\(\/\/\)$/{
adamc@1095 307 s//\1/
adamc@1095 308 q
adamc@1095 309 }
adamc@1095 310 /^X\(\/\).*/{
adamc@1095 311 s//\1/
adamc@1095 312 q
adamc@1095 313 }
adamc@1095 314 s/.*/./; q'`
adamc@1095 315 test -d "$as_dir" && break
adamc@1095 316 done
adamc@1095 317 test -z "$as_dirs" || eval "mkdir $as_dirs"
adamc@1095 318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
adamc@1095 319
adamc@1095 320
adamc@1095 321 } # as_fn_mkdir_p
adamc@1095 322 # as_fn_append VAR VALUE
adamc@1095 323 # ----------------------
adamc@1095 324 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 325 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 326 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 327 # implementations.
adamc@1095 328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 329 eval 'as_fn_append ()
adamc@1095 330 {
adamc@1095 331 eval $1+=\$2
adamc@1095 332 }'
adamc@1095 333 else
adamc@1095 334 as_fn_append ()
adamc@1095 335 {
adamc@1095 336 eval $1=\$$1\$2
adamc@1095 337 }
adamc@1095 338 fi # as_fn_append
adamc@1095 339
adamc@1095 340 # as_fn_arith ARG...
adamc@1095 341 # ------------------
adamc@1095 342 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 344 # must be portable across $(()) and expr.
adamc@1095 345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 346 eval 'as_fn_arith ()
adamc@1095 347 {
adamc@1095 348 as_val=$(( $* ))
adamc@1095 349 }'
adamc@1095 350 else
adamc@1095 351 as_fn_arith ()
adamc@1095 352 {
adamc@1095 353 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 354 }
adamc@1095 355 fi # as_fn_arith
adamc@1095 356
adamc@1095 357
adamc@1095 358 # as_fn_error ERROR [LINENO LOG_FD]
adamc@1095 359 # ---------------------------------
adamc@1095 360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adamc@1095 362 # script with status $?, using 1 if that was 0.
adamc@1095 363 as_fn_error ()
adamc@1095 364 {
adamc@1095 365 as_status=$?; test $as_status -eq 0 && as_status=1
adamc@1095 366 if test "$3"; then
adamc@1095 367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1095 368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
adamc@1095 369 fi
adamc@1095 370 $as_echo "$as_me: error: $1" >&2
adamc@1095 371 as_fn_exit $as_status
adamc@1095 372 } # as_fn_error
adamc@1095 373
adamc@378 374 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 376 as_expr=expr
adamc@378 377 else
adamc@378 378 as_expr=false
adamc@378 379 fi
adamc@378 380
adamc@378 381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 382 as_basename=basename
adamc@378 383 else
adamc@378 384 as_basename=false
adamc@378 385 fi
adamc@378 386
adamc@1095 387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 388 as_dirname=dirname
adamc@1095 389 else
adamc@1095 390 as_dirname=false
adamc@1095 391 fi
adamc@378 392
adamc@378 393 as_me=`$as_basename -- "$0" ||
adamc@378 394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 395 X"$0" : 'X\(//\)$' \| \
adamc@378 396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 397 $as_echo X/"$0" |
adamc@378 398 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 399 s//\1/
adamc@378 400 q
adamc@378 401 }
adamc@378 402 /^X\/\(\/\/\)$/{
adamc@378 403 s//\1/
adamc@378 404 q
adamc@378 405 }
adamc@378 406 /^X\/\(\/\).*/{
adamc@378 407 s//\1/
adamc@378 408 q
adamc@378 409 }
adamc@378 410 s/.*/./; q'`
adamc@378 411
adamc@1095 412 # Avoid depending upon Character Ranges.
adamc@1095 413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 416 as_cr_digits='0123456789'
adamc@1095 417 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 418
adamc@378 419
adamc@1095 420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
adamc@1095 421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
adamc@1095 422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
adamc@1095 423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
adamc@1095 424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
adamc@378 425 sed -n '
adamc@378 426 p
adamc@378 427 /[$]LINENO/=
adamc@378 428 ' <$as_myself |
adamc@378 429 sed '
adamc@378 430 s/[$]LINENO.*/&-/
adamc@378 431 t lineno
adamc@378 432 b
adamc@378 433 :lineno
adamc@378 434 N
adamc@378 435 :loop
adamc@378 436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
adamc@378 437 t loop
adamc@378 438 s/-\n.*//
adamc@378 439 ' >$as_me.lineno &&
adamc@378 440 chmod +x "$as_me.lineno" ||
adamc@1095 441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
adamc@378 442
adamc@378 443 # Don't try to exec as it changes $[0], causing all sort of problems
adamc@378 444 # (the dirname of $[0] is not the place where we might find the
adamc@378 445 # original and so on. Autoconf is especially sensitive to this).
adamc@378 446 . "./$as_me.lineno"
adamc@378 447 # Exit status is that of the last command.
adamc@378 448 exit
adamc@378 449 }
adamc@378 450
adamc@378 451 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 452 case `echo -n x` in #(((((
adamc@378 453 -n*)
adamc@1095 454 case `echo 'xy\c'` in
adamc@378 455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 456 xy) ECHO_C='\c';;
adamc@1095 457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 458 ECHO_T=' ';;
adamc@378 459 esac;;
adamc@378 460 *)
adamc@378 461 ECHO_N='-n';;
adamc@378 462 esac
adamc@378 463
adamc@378 464 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 465 if test -d conf$$.dir; then
adamc@378 466 rm -f conf$$.dir/conf$$.file
adamc@378 467 else
adamc@378 468 rm -f conf$$.dir
adamc@1095 469 mkdir conf$$.dir 2>/dev/null
adamc@378 470 fi
adamc@1095 471 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 472 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 473 as_ln_s='ln -s'
adamc@1095 474 # ... but there are two gotchas:
adamc@1095 475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adamc@1095 477 # In both cases, we have to default to `cp -p'.
adamc@1095 478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adamc@1095 479 as_ln_s='cp -p'
adamc@1095 480 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 481 as_ln_s=ln
adamc@1095 482 else
adamc@378 483 as_ln_s='cp -p'
adamc@1095 484 fi
adamc@378 485 else
adamc@378 486 as_ln_s='cp -p'
adamc@378 487 fi
adamc@378 488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 489 rmdir conf$$.dir 2>/dev/null
adamc@378 490
adamc@378 491 if mkdir -p . 2>/dev/null; then
adamc@1095 492 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 493 else
adamc@378 494 test -d ./-p && rmdir ./-p
adamc@378 495 as_mkdir_p=false
adamc@378 496 fi
adamc@378 497
adamc@378 498 if test -x / >/dev/null 2>&1; then
adamc@378 499 as_test_x='test -x'
adamc@378 500 else
adamc@378 501 if ls -dL / >/dev/null 2>&1; then
adamc@378 502 as_ls_L_option=L
adamc@378 503 else
adamc@378 504 as_ls_L_option=
adamc@378 505 fi
adamc@378 506 as_test_x='
adamc@378 507 eval sh -c '\''
adamc@378 508 if test -d "$1"; then
adamc@1095 509 test -d "$1/.";
adamc@378 510 else
adamc@1095 511 case $1 in #(
adamc@1095 512 -*)set "./$1";;
adamc@378 513 esac;
adamc@1095 514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
adamc@378 515 ???[sx]*):;;*)false;;esac;fi
adamc@378 516 '\'' sh
adamc@378 517 '
adamc@378 518 fi
adamc@378 519 as_executable_p=$as_test_x
adamc@378 520
adamc@378 521 # Sed expression to map a string onto a valid CPP name.
adamc@378 522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 523
adamc@378 524 # Sed expression to map a string onto a valid variable name.
adamc@378 525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 526
adamc@378 527
adamc@1095 528 test -n "$DJDIR" || exec 7<&0 </dev/null
adamc@1095 529 exec 6>&1
adamc@378 530
adamc@378 531 # Name of the host.
adamc@378 532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
adamc@378 533 # so uname gets run too.
adamc@378 534 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 535
adamc@378 536 #
adamc@378 537 # Initializations.
adamc@378 538 #
adamc@378 539 ac_default_prefix=/usr/local
adamc@378 540 ac_clean_files=
adamc@378 541 ac_config_libobj_dir=.
adamc@378 542 LIBOBJS=
adamc@378 543 cross_compiling=no
adamc@378 544 subdirs=
adamc@378 545 MFLAGS=
adamc@378 546 MAKEFLAGS=
adamc@378 547
adamc@378 548 # Identity of this package.
adamc@378 549 PACKAGE_NAME=
adamc@378 550 PACKAGE_TARNAME=
adamc@378 551 PACKAGE_VERSION=
adamc@378 552 PACKAGE_STRING=
adamc@378 553 PACKAGE_BUGREPORT=
adamc@1095 554 PACKAGE_URL=
adamc@378 555
adamc@378 556 ac_unique_file="THIS_IS_URWEB"
adamc@1095 557 ac_subst_vars='LTLIBOBJS
adamc@1095 558 LIBOBJS
adamc@1095 559 do_not_edit
adamc@1095 560 GCCARGS
adamc@1095 561 SITELISP
adamc@1095 562 INCLUDE
adamc@1095 563 LIB
adamc@1095 564 BIN
adamc@1095 565 target_alias
adamc@1095 566 host_alias
adamc@1095 567 build_alias
adamc@1095 568 LIBS
adamc@1095 569 ECHO_T
adamc@1095 570 ECHO_N
adamc@1095 571 ECHO_C
adamc@1095 572 DEFS
adamc@1095 573 mandir
adamc@1095 574 localedir
adamc@1095 575 libdir
adamc@1095 576 psdir
adamc@1095 577 pdfdir
adamc@1095 578 dvidir
adamc@1095 579 htmldir
adamc@1095 580 infodir
adamc@1095 581 docdir
adamc@1095 582 oldincludedir
adamc@1095 583 includedir
adamc@1095 584 localstatedir
adamc@1095 585 sharedstatedir
adamc@1095 586 sysconfdir
adamc@1095 587 datadir
adamc@1095 588 datarootdir
adamc@1095 589 libexecdir
adamc@1095 590 sbindir
adamc@1095 591 bindir
adamc@1095 592 program_transform_name
adamc@1095 593 prefix
adamc@1095 594 exec_prefix
adamc@1095 595 PACKAGE_URL
adamc@1095 596 PACKAGE_BUGREPORT
adamc@1095 597 PACKAGE_STRING
adamc@1095 598 PACKAGE_VERSION
adamc@1095 599 PACKAGE_TARNAME
adamc@1095 600 PACKAGE_NAME
adamc@378 601 PATH_SEPARATOR
adamc@1095 602 SHELL'
adamc@378 603 ac_subst_files=''
adamc@1095 604 ac_user_opts='
adamc@1095 605 enable_option_checking
adamc@1095 606 '
adamc@378 607 ac_precious_vars='build_alias
adamc@378 608 host_alias
adamc@378 609 target_alias'
adamc@378 610
adamc@378 611
adamc@378 612 # Initialize some variables set by options.
adamc@378 613 ac_init_help=
adamc@378 614 ac_init_version=false
adamc@1095 615 ac_unrecognized_opts=
adamc@1095 616 ac_unrecognized_sep=
adamc@378 617 # The variables have the same names as the options, with
adamc@378 618 # dashes changed to underlines.
adamc@378 619 cache_file=/dev/null
adamc@378 620 exec_prefix=NONE
adamc@378 621 no_create=
adamc@378 622 no_recursion=
adamc@378 623 prefix=NONE
adamc@378 624 program_prefix=NONE
adamc@378 625 program_suffix=NONE
adamc@378 626 program_transform_name=s,x,x,
adamc@378 627 silent=
adamc@378 628 site=
adamc@378 629 srcdir=
adamc@378 630 verbose=
adamc@378 631 x_includes=NONE
adamc@378 632 x_libraries=NONE
adamc@378 633
adamc@378 634 # Installation directory options.
adamc@378 635 # These are left unexpanded so users can "make install exec_prefix=/foo"
adamc@378 636 # and all the variables that are supposed to be based on exec_prefix
adamc@378 637 # by default will actually change.
adamc@378 638 # Use braces instead of parens because sh, perl, etc. also accept them.
adamc@378 639 # (The list follows the same order as the GNU Coding Standards.)
adamc@378 640 bindir='${exec_prefix}/bin'
adamc@378 641 sbindir='${exec_prefix}/sbin'
adamc@378 642 libexecdir='${exec_prefix}/libexec'
adamc@378 643 datarootdir='${prefix}/share'
adamc@378 644 datadir='${datarootdir}'
adamc@378 645 sysconfdir='${prefix}/etc'
adamc@378 646 sharedstatedir='${prefix}/com'
adamc@378 647 localstatedir='${prefix}/var'
adamc@378 648 includedir='${prefix}/include'
adamc@378 649 oldincludedir='/usr/include'
adamc@378 650 docdir='${datarootdir}/doc/${PACKAGE}'
adamc@378 651 infodir='${datarootdir}/info'
adamc@378 652 htmldir='${docdir}'
adamc@378 653 dvidir='${docdir}'
adamc@378 654 pdfdir='${docdir}'
adamc@378 655 psdir='${docdir}'
adamc@378 656 libdir='${exec_prefix}/lib'
adamc@378 657 localedir='${datarootdir}/locale'
adamc@378 658 mandir='${datarootdir}/man'
adamc@378 659
adamc@378 660 ac_prev=
adamc@378 661 ac_dashdash=
adamc@378 662 for ac_option
adamc@378 663 do
adamc@378 664 # If the previous option needs an argument, assign it.
adamc@378 665 if test -n "$ac_prev"; then
adamc@378 666 eval $ac_prev=\$ac_option
adamc@378 667 ac_prev=
adamc@378 668 continue
adamc@378 669 fi
adamc@378 670
adamc@378 671 case $ac_option in
adamc@378 672 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
adamc@378 673 *) ac_optarg=yes ;;
adamc@378 674 esac
adamc@378 675
adamc@378 676 # Accept the important Cygnus configure options, so we can diagnose typos.
adamc@378 677
adamc@378 678 case $ac_dashdash$ac_option in
adamc@378 679 --)
adamc@378 680 ac_dashdash=yes ;;
adamc@378 681
adamc@378 682 -bindir | --bindir | --bindi | --bind | --bin | --bi)
adamc@378 683 ac_prev=bindir ;;
adamc@378 684 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
adamc@378 685 bindir=$ac_optarg ;;
adamc@378 686
adamc@378 687 -build | --build | --buil | --bui | --bu)
adamc@378 688 ac_prev=build_alias ;;
adamc@378 689 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
adamc@378 690 build_alias=$ac_optarg ;;
adamc@378 691
adamc@378 692 -cache-file | --cache-file | --cache-fil | --cache-fi \
adamc@378 693 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
adamc@378 694 ac_prev=cache_file ;;
adamc@378 695 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
adamc@378 696 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
adamc@378 697 cache_file=$ac_optarg ;;
adamc@378 698
adamc@378 699 --config-cache | -C)
adamc@378 700 cache_file=config.cache ;;
adamc@378 701
adamc@378 702 -datadir | --datadir | --datadi | --datad)
adamc@378 703 ac_prev=datadir ;;
adamc@378 704 -datadir=* | --datadir=* | --datadi=* | --datad=*)
adamc@378 705 datadir=$ac_optarg ;;
adamc@378 706
adamc@378 707 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
adamc@378 708 | --dataroo | --dataro | --datar)
adamc@378 709 ac_prev=datarootdir ;;
adamc@378 710 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
adamc@378 711 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
adamc@378 712 datarootdir=$ac_optarg ;;
adamc@378 713
adamc@378 714 -disable-* | --disable-*)
adamc@1095 715 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
adamc@378 716 # Reject names that are not valid shell variable names.
adamc@1095 717 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 718 as_fn_error "invalid feature name: $ac_useropt"
adamc@1095 719 ac_useropt_orig=$ac_useropt
adamc@1095 720 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 721 case $ac_user_opts in
adamc@1095 722 *"
adamc@1095 723 "enable_$ac_useropt"
adamc@1095 724 "*) ;;
adamc@1095 725 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
adamc@1095 726 ac_unrecognized_sep=', ';;
adamc@1095 727 esac
adamc@1095 728 eval enable_$ac_useropt=no ;;
adamc@378 729
adamc@378 730 -docdir | --docdir | --docdi | --doc | --do)
adamc@378 731 ac_prev=docdir ;;
adamc@378 732 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
adamc@378 733 docdir=$ac_optarg ;;
adamc@378 734
adamc@378 735 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
adamc@378 736 ac_prev=dvidir ;;
adamc@378 737 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
adamc@378 738 dvidir=$ac_optarg ;;
adamc@378 739
adamc@378 740 -enable-* | --enable-*)
adamc@1095 741 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
adamc@378 742 # Reject names that are not valid shell variable names.
adamc@1095 743 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 744 as_fn_error "invalid feature name: $ac_useropt"
adamc@1095 745 ac_useropt_orig=$ac_useropt
adamc@1095 746 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 747 case $ac_user_opts in
adamc@1095 748 *"
adamc@1095 749 "enable_$ac_useropt"
adamc@1095 750 "*) ;;
adamc@1095 751 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
adamc@1095 752 ac_unrecognized_sep=', ';;
adamc@1095 753 esac
adamc@1095 754 eval enable_$ac_useropt=\$ac_optarg ;;
adamc@378 755
adamc@378 756 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
adamc@378 757 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
adamc@378 758 | --exec | --exe | --ex)
adamc@378 759 ac_prev=exec_prefix ;;
adamc@378 760 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
adamc@378 761 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
adamc@378 762 | --exec=* | --exe=* | --ex=*)
adamc@378 763 exec_prefix=$ac_optarg ;;
adamc@378 764
adamc@378 765 -gas | --gas | --ga | --g)
adamc@378 766 # Obsolete; use --with-gas.
adamc@378 767 with_gas=yes ;;
adamc@378 768
adamc@378 769 -help | --help | --hel | --he | -h)
adamc@378 770 ac_init_help=long ;;
adamc@378 771 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
adamc@378 772 ac_init_help=recursive ;;
adamc@378 773 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
adamc@378 774 ac_init_help=short ;;
adamc@378 775
adamc@378 776 -host | --host | --hos | --ho)
adamc@378 777 ac_prev=host_alias ;;
adamc@378 778 -host=* | --host=* | --hos=* | --ho=*)
adamc@378 779 host_alias=$ac_optarg ;;
adamc@378 780
adamc@378 781 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
adamc@378 782 ac_prev=htmldir ;;
adamc@378 783 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
adamc@378 784 | --ht=*)
adamc@378 785 htmldir=$ac_optarg ;;
adamc@378 786
adamc@378 787 -includedir | --includedir | --includedi | --included | --include \
adamc@378 788 | --includ | --inclu | --incl | --inc)
adamc@378 789 ac_prev=includedir ;;
adamc@378 790 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
adamc@378 791 | --includ=* | --inclu=* | --incl=* | --inc=*)
adamc@378 792 includedir=$ac_optarg ;;
adamc@378 793
adamc@378 794 -infodir | --infodir | --infodi | --infod | --info | --inf)
adamc@378 795 ac_prev=infodir ;;
adamc@378 796 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
adamc@378 797 infodir=$ac_optarg ;;
adamc@378 798
adamc@378 799 -libdir | --libdir | --libdi | --libd)
adamc@378 800 ac_prev=libdir ;;
adamc@378 801 -libdir=* | --libdir=* | --libdi=* | --libd=*)
adamc@378 802 libdir=$ac_optarg ;;
adamc@378 803
adamc@378 804 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
adamc@378 805 | --libexe | --libex | --libe)
adamc@378 806 ac_prev=libexecdir ;;
adamc@378 807 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
adamc@378 808 | --libexe=* | --libex=* | --libe=*)
adamc@378 809 libexecdir=$ac_optarg ;;
adamc@378 810
adamc@378 811 -localedir | --localedir | --localedi | --localed | --locale)
adamc@378 812 ac_prev=localedir ;;
adamc@378 813 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
adamc@378 814 localedir=$ac_optarg ;;
adamc@378 815
adamc@378 816 -localstatedir | --localstatedir | --localstatedi | --localstated \
adamc@378 817 | --localstate | --localstat | --localsta | --localst | --locals)
adamc@378 818 ac_prev=localstatedir ;;
adamc@378 819 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
adamc@378 820 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
adamc@378 821 localstatedir=$ac_optarg ;;
adamc@378 822
adamc@378 823 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
adamc@378 824 ac_prev=mandir ;;
adamc@378 825 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
adamc@378 826 mandir=$ac_optarg ;;
adamc@378 827
adamc@378 828 -nfp | --nfp | --nf)
adamc@378 829 # Obsolete; use --without-fp.
adamc@378 830 with_fp=no ;;
adamc@378 831
adamc@378 832 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
adamc@378 833 | --no-cr | --no-c | -n)
adamc@378 834 no_create=yes ;;
adamc@378 835
adamc@378 836 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
adamc@378 837 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
adamc@378 838 no_recursion=yes ;;
adamc@378 839
adamc@378 840 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
adamc@378 841 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
adamc@378 842 | --oldin | --oldi | --old | --ol | --o)
adamc@378 843 ac_prev=oldincludedir ;;
adamc@378 844 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
adamc@378 845 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
adamc@378 846 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
adamc@378 847 oldincludedir=$ac_optarg ;;
adamc@378 848
adamc@378 849 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
adamc@378 850 ac_prev=prefix ;;
adamc@378 851 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
adamc@378 852 prefix=$ac_optarg ;;
adamc@378 853
adamc@378 854 -program-prefix | --program-prefix | --program-prefi | --program-pref \
adamc@378 855 | --program-pre | --program-pr | --program-p)
adamc@378 856 ac_prev=program_prefix ;;
adamc@378 857 -program-prefix=* | --program-prefix=* | --program-prefi=* \
adamc@378 858 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
adamc@378 859 program_prefix=$ac_optarg ;;
adamc@378 860
adamc@378 861 -program-suffix | --program-suffix | --program-suffi | --program-suff \
adamc@378 862 | --program-suf | --program-su | --program-s)
adamc@378 863 ac_prev=program_suffix ;;
adamc@378 864 -program-suffix=* | --program-suffix=* | --program-suffi=* \
adamc@378 865 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
adamc@378 866 program_suffix=$ac_optarg ;;
adamc@378 867
adamc@378 868 -program-transform-name | --program-transform-name \
adamc@378 869 | --program-transform-nam | --program-transform-na \
adamc@378 870 | --program-transform-n | --program-transform- \
adamc@378 871 | --program-transform | --program-transfor \
adamc@378 872 | --program-transfo | --program-transf \
adamc@378 873 | --program-trans | --program-tran \
adamc@378 874 | --progr-tra | --program-tr | --program-t)
adamc@378 875 ac_prev=program_transform_name ;;
adamc@378 876 -program-transform-name=* | --program-transform-name=* \
adamc@378 877 | --program-transform-nam=* | --program-transform-na=* \
adamc@378 878 | --program-transform-n=* | --program-transform-=* \
adamc@378 879 | --program-transform=* | --program-transfor=* \
adamc@378 880 | --program-transfo=* | --program-transf=* \
adamc@378 881 | --program-trans=* | --program-tran=* \
adamc@378 882 | --progr-tra=* | --program-tr=* | --program-t=*)
adamc@378 883 program_transform_name=$ac_optarg ;;
adamc@378 884
adamc@378 885 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
adamc@378 886 ac_prev=pdfdir ;;
adamc@378 887 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
adamc@378 888 pdfdir=$ac_optarg ;;
adamc@378 889
adamc@378 890 -psdir | --psdir | --psdi | --psd | --ps)
adamc@378 891 ac_prev=psdir ;;
adamc@378 892 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
adamc@378 893 psdir=$ac_optarg ;;
adamc@378 894
adamc@378 895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 896 | -silent | --silent | --silen | --sile | --sil)
adamc@378 897 silent=yes ;;
adamc@378 898
adamc@378 899 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
adamc@378 900 ac_prev=sbindir ;;
adamc@378 901 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
adamc@378 902 | --sbi=* | --sb=*)
adamc@378 903 sbindir=$ac_optarg ;;
adamc@378 904
adamc@378 905 -sharedstatedir | --sharedstatedir | --sharedstatedi \
adamc@378 906 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
adamc@378 907 | --sharedst | --shareds | --shared | --share | --shar \
adamc@378 908 | --sha | --sh)
adamc@378 909 ac_prev=sharedstatedir ;;
adamc@378 910 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
adamc@378 911 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
adamc@378 912 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
adamc@378 913 | --sha=* | --sh=*)
adamc@378 914 sharedstatedir=$ac_optarg ;;
adamc@378 915
adamc@378 916 -site | --site | --sit)
adamc@378 917 ac_prev=site ;;
adamc@378 918 -site=* | --site=* | --sit=*)
adamc@378 919 site=$ac_optarg ;;
adamc@378 920
adamc@378 921 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
adamc@378 922 ac_prev=srcdir ;;
adamc@378 923 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
adamc@378 924 srcdir=$ac_optarg ;;
adamc@378 925
adamc@378 926 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
adamc@378 927 | --syscon | --sysco | --sysc | --sys | --sy)
adamc@378 928 ac_prev=sysconfdir ;;
adamc@378 929 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
adamc@378 930 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
adamc@378 931 sysconfdir=$ac_optarg ;;
adamc@378 932
adamc@378 933 -target | --target | --targe | --targ | --tar | --ta | --t)
adamc@378 934 ac_prev=target_alias ;;
adamc@378 935 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
adamc@378 936 target_alias=$ac_optarg ;;
adamc@378 937
adamc@378 938 -v | -verbose | --verbose | --verbos | --verbo | --verb)
adamc@378 939 verbose=yes ;;
adamc@378 940
adamc@378 941 -version | --version | --versio | --versi | --vers | -V)
adamc@378 942 ac_init_version=: ;;
adamc@378 943
adamc@378 944 -with-* | --with-*)
adamc@1095 945 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
adamc@378 946 # Reject names that are not valid shell variable names.
adamc@1095 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 948 as_fn_error "invalid package name: $ac_useropt"
adamc@1095 949 ac_useropt_orig=$ac_useropt
adamc@1095 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 951 case $ac_user_opts in
adamc@1095 952 *"
adamc@1095 953 "with_$ac_useropt"
adamc@1095 954 "*) ;;
adamc@1095 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
adamc@1095 956 ac_unrecognized_sep=', ';;
adamc@1095 957 esac
adamc@1095 958 eval with_$ac_useropt=\$ac_optarg ;;
adamc@378 959
adamc@378 960 -without-* | --without-*)
adamc@1095 961 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
adamc@378 962 # Reject names that are not valid shell variable names.
adamc@1095 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adamc@1095 964 as_fn_error "invalid package name: $ac_useropt"
adamc@1095 965 ac_useropt_orig=$ac_useropt
adamc@1095 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 967 case $ac_user_opts in
adamc@1095 968 *"
adamc@1095 969 "with_$ac_useropt"
adamc@1095 970 "*) ;;
adamc@1095 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
adamc@1095 972 ac_unrecognized_sep=', ';;
adamc@1095 973 esac
adamc@1095 974 eval with_$ac_useropt=no ;;
adamc@378 975
adamc@378 976 --x)
adamc@378 977 # Obsolete; use --with-x.
adamc@378 978 with_x=yes ;;
adamc@378 979
adamc@378 980 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
adamc@378 981 | --x-incl | --x-inc | --x-in | --x-i)
adamc@378 982 ac_prev=x_includes ;;
adamc@378 983 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
adamc@378 984 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
adamc@378 985 x_includes=$ac_optarg ;;
adamc@378 986
adamc@378 987 -x-libraries | --x-libraries | --x-librarie | --x-librari \
adamc@378 988 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
adamc@378 989 ac_prev=x_libraries ;;
adamc@378 990 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
adamc@378 991 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
adamc@378 992 x_libraries=$ac_optarg ;;
adamc@378 993
adamc@1095 994 -*) as_fn_error "unrecognized option: \`$ac_option'
adamc@1095 995 Try \`$0 --help' for more information."
adamc@378 996 ;;
adamc@378 997
adamc@378 998 *=*)
adamc@378 999 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
adamc@378 1000 # Reject names that are not valid shell variable names.
adamc@1095 1001 case $ac_envvar in #(
adamc@1095 1002 '' | [0-9]* | *[!_$as_cr_alnum]* )
adamc@1095 1003 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
adamc@1095 1004 esac
adamc@378 1005 eval $ac_envvar=\$ac_optarg
adamc@378 1006 export $ac_envvar ;;
adamc@378 1007
adamc@378 1008 *)
adamc@378 1009 # FIXME: should be removed in autoconf 3.0.
adamc@1095 1010 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
adamc@378 1011 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
adamc@1095 1012 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
adamc@378 1013 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
adamc@378 1014 ;;
adamc@378 1015
adamc@378 1016 esac
adamc@378 1017 done
adamc@378 1018
adamc@378 1019 if test -n "$ac_prev"; then
adamc@378 1020 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
adamc@1095 1021 as_fn_error "missing argument to $ac_option"
adamc@378 1022 fi
adamc@378 1023
adamc@1095 1024 if test -n "$ac_unrecognized_opts"; then
adamc@1095 1025 case $enable_option_checking in
adamc@1095 1026 no) ;;
adamc@1095 1027 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
adamc@1095 1028 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
adamc@1095 1029 esac
adamc@1095 1030 fi
adamc@1095 1031
adamc@1095 1032 # Check all directory arguments for consistency.
adamc@378 1033 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
adamc@378 1034 datadir sysconfdir sharedstatedir localstatedir includedir \
adamc@378 1035 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
adamc@378 1036 libdir localedir mandir
adamc@378 1037 do
adamc@378 1038 eval ac_val=\$$ac_var
adamc@1095 1039 # Remove trailing slashes.
adamc@1095 1040 case $ac_val in
adamc@1095 1041 */ )
adamc@1095 1042 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
adamc@1095 1043 eval $ac_var=\$ac_val;;
adamc@1095 1044 esac
adamc@1095 1045 # Be sure to have absolute directory names.
adamc@378 1046 case $ac_val in
adamc@378 1047 [\\/$]* | ?:[\\/]* ) continue;;
adamc@378 1048 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
adamc@378 1049 esac
adamc@1095 1050 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
adamc@378 1051 done
adamc@378 1052
adamc@378 1053 # There might be people who depend on the old broken behavior: `$host'
adamc@378 1054 # used to hold the argument of --host etc.
adamc@378 1055 # FIXME: To remove some day.
adamc@378 1056 build=$build_alias
adamc@378 1057 host=$host_alias
adamc@378 1058 target=$target_alias
adamc@378 1059
adamc@378 1060 # FIXME: To remove some day.
adamc@378 1061 if test "x$host_alias" != x; then
adamc@378 1062 if test "x$build_alias" = x; then
adamc@378 1063 cross_compiling=maybe
adamc@1095 1064 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
adamc@378 1065 If a cross compiler is detected then cross compile mode will be used." >&2
adamc@378 1066 elif test "x$build_alias" != "x$host_alias"; then
adamc@378 1067 cross_compiling=yes
adamc@378 1068 fi
adamc@378 1069 fi
adamc@378 1070
adamc@378 1071 ac_tool_prefix=
adamc@378 1072 test -n "$host_alias" && ac_tool_prefix=$host_alias-
adamc@378 1073
adamc@378 1074 test "$silent" = yes && exec 6>/dev/null
adamc@378 1075
adamc@378 1076
adamc@378 1077 ac_pwd=`pwd` && test -n "$ac_pwd" &&
adamc@378 1078 ac_ls_di=`ls -di .` &&
adamc@378 1079 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
adamc@1095 1080 as_fn_error "working directory cannot be determined"
adamc@378 1081 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
adamc@1095 1082 as_fn_error "pwd does not report name of working directory"
adamc@378 1083
adamc@378 1084
adamc@378 1085 # Find the source files, if location was not specified.
adamc@378 1086 if test -z "$srcdir"; then
adamc@378 1087 ac_srcdir_defaulted=yes
adamc@378 1088 # Try the directory containing this script, then the parent directory.
adamc@1095 1089 ac_confdir=`$as_dirname -- "$as_myself" ||
adamc@1095 1090 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 1091 X"$as_myself" : 'X\(//\)[^/]' \| \
adamc@1095 1092 X"$as_myself" : 'X\(//\)$' \| \
adamc@1095 1093 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 1094 $as_echo X"$as_myself" |
adamc@378 1095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 1096 s//\1/
adamc@378 1097 q
adamc@378 1098 }
adamc@378 1099 /^X\(\/\/\)[^/].*/{
adamc@378 1100 s//\1/
adamc@378 1101 q
adamc@378 1102 }
adamc@378 1103 /^X\(\/\/\)$/{
adamc@378 1104 s//\1/
adamc@378 1105 q
adamc@378 1106 }
adamc@378 1107 /^X\(\/\).*/{
adamc@378 1108 s//\1/
adamc@378 1109 q
adamc@378 1110 }
adamc@378 1111 s/.*/./; q'`
adamc@378 1112 srcdir=$ac_confdir
adamc@378 1113 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1114 srcdir=..
adamc@378 1115 fi
adamc@378 1116 else
adamc@378 1117 ac_srcdir_defaulted=no
adamc@378 1118 fi
adamc@378 1119 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1120 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
adamc@1095 1121 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
adamc@378 1122 fi
adamc@378 1123 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
adamc@378 1124 ac_abs_confdir=`(
adamc@1095 1125 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
adamc@378 1126 pwd)`
adamc@378 1127 # When building in place, set srcdir=.
adamc@378 1128 if test "$ac_abs_confdir" = "$ac_pwd"; then
adamc@378 1129 srcdir=.
adamc@378 1130 fi
adamc@378 1131 # Remove unnecessary trailing slashes from srcdir.
adamc@378 1132 # Double slashes in file names in object file debugging info
adamc@378 1133 # mess up M-x gdb in Emacs.
adamc@378 1134 case $srcdir in
adamc@378 1135 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
adamc@378 1136 esac
adamc@378 1137 for ac_var in $ac_precious_vars; do
adamc@378 1138 eval ac_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1139 eval ac_env_${ac_var}_value=\$${ac_var}
adamc@378 1140 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1141 eval ac_cv_env_${ac_var}_value=\$${ac_var}
adamc@378 1142 done
adamc@378 1143
adamc@378 1144 #
adamc@378 1145 # Report the --help message.
adamc@378 1146 #
adamc@378 1147 if test "$ac_init_help" = "long"; then
adamc@378 1148 # Omit some internal or obsolete options to make the list less imposing.
adamc@378 1149 # This message is too long to be a string in the A/UX 3.1 sh.
adamc@378 1150 cat <<_ACEOF
adamc@378 1151 \`configure' configures this package to adapt to many kinds of systems.
adamc@378 1152
adamc@378 1153 Usage: $0 [OPTION]... [VAR=VALUE]...
adamc@378 1154
adamc@378 1155 To assign environment variables (e.g., CC, CFLAGS...), specify them as
adamc@378 1156 VAR=VALUE. See below for descriptions of some of the useful variables.
adamc@378 1157
adamc@378 1158 Defaults for the options are specified in brackets.
adamc@378 1159
adamc@378 1160 Configuration:
adamc@378 1161 -h, --help display this help and exit
adamc@378 1162 --help=short display options specific to this package
adamc@378 1163 --help=recursive display the short help of all the included packages
adamc@378 1164 -V, --version display version information and exit
adamc@378 1165 -q, --quiet, --silent do not print \`checking...' messages
adamc@378 1166 --cache-file=FILE cache test results in FILE [disabled]
adamc@378 1167 -C, --config-cache alias for \`--cache-file=config.cache'
adamc@378 1168 -n, --no-create do not create output files
adamc@378 1169 --srcdir=DIR find the sources in DIR [configure dir or \`..']
adamc@378 1170
adamc@378 1171 Installation directories:
adamc@378 1172 --prefix=PREFIX install architecture-independent files in PREFIX
adamc@1095 1173 [$ac_default_prefix]
adamc@378 1174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
adamc@1095 1175 [PREFIX]
adamc@378 1176
adamc@378 1177 By default, \`make install' will install all the files in
adamc@378 1178 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
adamc@378 1179 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
adamc@378 1180 for instance \`--prefix=\$HOME'.
adamc@378 1181
adamc@378 1182 For better control, use the options below.
adamc@378 1183
adamc@378 1184 Fine tuning of the installation directories:
adamc@1095 1185 --bindir=DIR user executables [EPREFIX/bin]
adamc@1095 1186 --sbindir=DIR system admin executables [EPREFIX/sbin]
adamc@1095 1187 --libexecdir=DIR program executables [EPREFIX/libexec]
adamc@1095 1188 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
adamc@1095 1189 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
adamc@1095 1190 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
adamc@1095 1191 --libdir=DIR object code libraries [EPREFIX/lib]
adamc@1095 1192 --includedir=DIR C header files [PREFIX/include]
adamc@1095 1193 --oldincludedir=DIR C header files for non-gcc [/usr/include]
adamc@1095 1194 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
adamc@1095 1195 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
adamc@1095 1196 --infodir=DIR info documentation [DATAROOTDIR/info]
adamc@1095 1197 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
adamc@1095 1198 --mandir=DIR man documentation [DATAROOTDIR/man]
adamc@1095 1199 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
adamc@1095 1200 --htmldir=DIR html documentation [DOCDIR]
adamc@1095 1201 --dvidir=DIR dvi documentation [DOCDIR]
adamc@1095 1202 --pdfdir=DIR pdf documentation [DOCDIR]
adamc@1095 1203 --psdir=DIR ps documentation [DOCDIR]
adamc@378 1204 _ACEOF
adamc@378 1205
adamc@378 1206 cat <<\_ACEOF
adamc@378 1207 _ACEOF
adamc@378 1208 fi
adamc@378 1209
adamc@378 1210 if test -n "$ac_init_help"; then
adamc@378 1211
adamc@378 1212 cat <<\_ACEOF
adamc@378 1213
adamc@1095 1214 Report bugs to the package provider.
adamc@378 1215 _ACEOF
adamc@378 1216 ac_status=$?
adamc@378 1217 fi
adamc@378 1218
adamc@378 1219 if test "$ac_init_help" = "recursive"; then
adamc@378 1220 # If there are subdirs, report their specific --help.
adamc@378 1221 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
adamc@1095 1222 test -d "$ac_dir" ||
adamc@1095 1223 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
adamc@1095 1224 continue
adamc@378 1225 ac_builddir=.
adamc@378 1226
adamc@378 1227 case "$ac_dir" in
adamc@378 1228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1229 *)
adamc@1095 1230 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 1231 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 1232 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 1233 case $ac_top_builddir_sub in
adamc@378 1234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 1236 esac ;;
adamc@378 1237 esac
adamc@378 1238 ac_abs_top_builddir=$ac_pwd
adamc@378 1239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 1240 # for backward compatibility:
adamc@378 1241 ac_top_builddir=$ac_top_build_prefix
adamc@378 1242
adamc@378 1243 case $srcdir in
adamc@378 1244 .) # We are building in place.
adamc@378 1245 ac_srcdir=.
adamc@378 1246 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 1247 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 1248 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 1249 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 1250 ac_top_srcdir=$srcdir
adamc@378 1251 ac_abs_top_srcdir=$srcdir ;;
adamc@378 1252 *) # Relative name.
adamc@378 1253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 1254 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 1255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 1256 esac
adamc@378 1257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 1258
adamc@378 1259 cd "$ac_dir" || { ac_status=$?; continue; }
adamc@378 1260 # Check for guested configure.
adamc@378 1261 if test -f "$ac_srcdir/configure.gnu"; then
adamc@378 1262 echo &&
adamc@378 1263 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
adamc@378 1264 elif test -f "$ac_srcdir/configure"; then
adamc@378 1265 echo &&
adamc@378 1266 $SHELL "$ac_srcdir/configure" --help=recursive
adamc@378 1267 else
adamc@1095 1268 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
adamc@378 1269 fi || ac_status=$?
adamc@378 1270 cd "$ac_pwd" || { ac_status=$?; break; }
adamc@378 1271 done
adamc@378 1272 fi
adamc@378 1273
adamc@378 1274 test -n "$ac_init_help" && exit $ac_status
adamc@378 1275 if $ac_init_version; then
adamc@378 1276 cat <<\_ACEOF
adamc@378 1277 configure
adamc@1095 1278 generated by GNU Autoconf 2.65
adamc@378 1279
adamc@1095 1280 Copyright (C) 2009 Free Software Foundation, Inc.
adamc@378 1281 This configure script is free software; the Free Software Foundation
adamc@378 1282 gives unlimited permission to copy, distribute and modify it.
adamc@378 1283 _ACEOF
adamc@378 1284 exit
adamc@378 1285 fi
adamc@1095 1286
adamc@1095 1287 ## ------------------------ ##
adamc@1095 1288 ## Autoconf initialization. ##
adamc@1095 1289 ## ------------------------ ##
adamc@378 1290 cat >config.log <<_ACEOF
adamc@378 1291 This file contains any messages produced by compilers while
adamc@378 1292 running configure, to aid debugging if configure makes a mistake.
adamc@378 1293
adamc@378 1294 It was created by $as_me, which was
adamc@1095 1295 generated by GNU Autoconf 2.65. Invocation command line was
adamc@378 1296
adamc@378 1297 $ $0 $@
adamc@378 1298
adamc@378 1299 _ACEOF
adamc@378 1300 exec 5>>config.log
adamc@378 1301 {
adamc@378 1302 cat <<_ASUNAME
adamc@378 1303 ## --------- ##
adamc@378 1304 ## Platform. ##
adamc@378 1305 ## --------- ##
adamc@378 1306
adamc@378 1307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 1308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
adamc@378 1309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
adamc@378 1310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
adamc@378 1311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
adamc@378 1312
adamc@378 1313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
adamc@378 1314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
adamc@378 1315
adamc@378 1316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
adamc@378 1317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
adamc@378 1318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
adamc@378 1319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
adamc@378 1320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
adamc@378 1321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
adamc@378 1322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
adamc@378 1323
adamc@378 1324 _ASUNAME
adamc@378 1325
adamc@378 1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 1327 for as_dir in $PATH
adamc@378 1328 do
adamc@378 1329 IFS=$as_save_IFS
adamc@378 1330 test -z "$as_dir" && as_dir=.
adamc@1095 1331 $as_echo "PATH: $as_dir"
adamc@1095 1332 done
adamc@378 1333 IFS=$as_save_IFS
adamc@378 1334
adamc@378 1335 } >&5
adamc@378 1336
adamc@378 1337 cat >&5 <<_ACEOF
adamc@378 1338
adamc@378 1339
adamc@378 1340 ## ----------- ##
adamc@378 1341 ## Core tests. ##
adamc@378 1342 ## ----------- ##
adamc@378 1343
adamc@378 1344 _ACEOF
adamc@378 1345
adamc@378 1346
adamc@378 1347 # Keep a trace of the command line.
adamc@378 1348 # Strip out --no-create and --no-recursion so they do not pile up.
adamc@378 1349 # Strip out --silent because we don't want to record it for future runs.
adamc@378 1350 # Also quote any args containing shell meta-characters.
adamc@378 1351 # Make two passes to allow for proper duplicate-argument suppression.
adamc@378 1352 ac_configure_args=
adamc@378 1353 ac_configure_args0=
adamc@378 1354 ac_configure_args1=
adamc@378 1355 ac_must_keep_next=false
adamc@378 1356 for ac_pass in 1 2
adamc@378 1357 do
adamc@378 1358 for ac_arg
adamc@378 1359 do
adamc@378 1360 case $ac_arg in
adamc@378 1361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
adamc@378 1362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 1363 | -silent | --silent | --silen | --sile | --sil)
adamc@378 1364 continue ;;
adamc@378 1365 *\'*)
adamc@1095 1366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 1367 esac
adamc@378 1368 case $ac_pass in
adamc@1095 1369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
adamc@378 1370 2)
adamc@1095 1371 as_fn_append ac_configure_args1 " '$ac_arg'"
adamc@378 1372 if test $ac_must_keep_next = true; then
adamc@378 1373 ac_must_keep_next=false # Got value, back to normal.
adamc@378 1374 else
adamc@378 1375 case $ac_arg in
adamc@378 1376 *=* | --config-cache | -C | -disable-* | --disable-* \
adamc@378 1377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
adamc@378 1378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
adamc@378 1379 | -with-* | --with-* | -without-* | --without-* | --x)
adamc@378 1380 case "$ac_configure_args0 " in
adamc@378 1381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
adamc@378 1382 esac
adamc@378 1383 ;;
adamc@378 1384 -* ) ac_must_keep_next=true ;;
adamc@378 1385 esac
adamc@378 1386 fi
adamc@1095 1387 as_fn_append ac_configure_args " '$ac_arg'"
adamc@378 1388 ;;
adamc@378 1389 esac
adamc@378 1390 done
adamc@378 1391 done
adamc@1095 1392 { ac_configure_args0=; unset ac_configure_args0;}
adamc@1095 1393 { ac_configure_args1=; unset ac_configure_args1;}
adamc@378 1394
adamc@378 1395 # When interrupted or exit'd, cleanup temporary files, and complete
adamc@378 1396 # config.log. We remove comments because anyway the quotes in there
adamc@378 1397 # would cause problems or look ugly.
adamc@378 1398 # WARNING: Use '\'' to represent an apostrophe within the trap.
adamc@378 1399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
adamc@378 1400 trap 'exit_status=$?
adamc@378 1401 # Save into config.log some information that might help in debugging.
adamc@378 1402 {
adamc@378 1403 echo
adamc@378 1404
adamc@378 1405 cat <<\_ASBOX
adamc@378 1406 ## ---------------- ##
adamc@378 1407 ## Cache variables. ##
adamc@378 1408 ## ---------------- ##
adamc@378 1409 _ASBOX
adamc@378 1410 echo
adamc@378 1411 # The following way of writing the cache mishandles newlines in values,
adamc@378 1412 (
adamc@378 1413 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
adamc@378 1414 eval ac_val=\$$ac_var
adamc@378 1415 case $ac_val in #(
adamc@378 1416 *${as_nl}*)
adamc@378 1417 case $ac_var in #(
adamc@1095 1418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 1419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 1420 esac
adamc@378 1421 case $ac_var in #(
adamc@378 1422 _ | IFS | as_nl) ;; #(
adamc@1095 1423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 1424 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 1425 esac ;;
adamc@378 1426 esac
adamc@378 1427 done
adamc@378 1428 (set) 2>&1 |
adamc@378 1429 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
adamc@378 1430 *${as_nl}ac_space=\ *)
adamc@378 1431 sed -n \
adamc@378 1432 "s/'\''/'\''\\\\'\'''\''/g;
adamc@378 1433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
adamc@378 1434 ;; #(
adamc@378 1435 *)
adamc@378 1436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 1437 ;;
adamc@378 1438 esac |
adamc@378 1439 sort
adamc@378 1440 )
adamc@378 1441 echo
adamc@378 1442
adamc@378 1443 cat <<\_ASBOX
adamc@378 1444 ## ----------------- ##
adamc@378 1445 ## Output variables. ##
adamc@378 1446 ## ----------------- ##
adamc@378 1447 _ASBOX
adamc@378 1448 echo
adamc@378 1449 for ac_var in $ac_subst_vars
adamc@378 1450 do
adamc@378 1451 eval ac_val=\$$ac_var
adamc@378 1452 case $ac_val in
adamc@1095 1453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 1454 esac
adamc@1095 1455 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 1456 done | sort
adamc@378 1457 echo
adamc@378 1458
adamc@378 1459 if test -n "$ac_subst_files"; then
adamc@378 1460 cat <<\_ASBOX
adamc@378 1461 ## ------------------- ##
adamc@378 1462 ## File substitutions. ##
adamc@378 1463 ## ------------------- ##
adamc@378 1464 _ASBOX
adamc@378 1465 echo
adamc@378 1466 for ac_var in $ac_subst_files
adamc@378 1467 do
adamc@378 1468 eval ac_val=\$$ac_var
adamc@378 1469 case $ac_val in
adamc@1095 1470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 1471 esac
adamc@1095 1472 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 1473 done | sort
adamc@378 1474 echo
adamc@378 1475 fi
adamc@378 1476
adamc@378 1477 if test -s confdefs.h; then
adamc@378 1478 cat <<\_ASBOX
adamc@378 1479 ## ----------- ##
adamc@378 1480 ## confdefs.h. ##
adamc@378 1481 ## ----------- ##
adamc@378 1482 _ASBOX
adamc@378 1483 echo
adamc@378 1484 cat confdefs.h
adamc@378 1485 echo
adamc@378 1486 fi
adamc@378 1487 test "$ac_signal" != 0 &&
adamc@1095 1488 $as_echo "$as_me: caught signal $ac_signal"
adamc@1095 1489 $as_echo "$as_me: exit $exit_status"
adamc@378 1490 } >&5
adamc@378 1491 rm -f core *.core core.conftest.* &&
adamc@378 1492 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
adamc@378 1493 exit $exit_status
adamc@378 1494 ' 0
adamc@378 1495 for ac_signal in 1 2 13 15; do
adamc@1095 1496 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
adamc@378 1497 done
adamc@378 1498 ac_signal=0
adamc@378 1499
adamc@378 1500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
adamc@378 1501 rm -f -r conftest* confdefs.h
adamc@378 1502
adamc@1095 1503 $as_echo "/* confdefs.h */" > confdefs.h
adamc@1095 1504
adamc@378 1505 # Predefined preprocessor variables.
adamc@378 1506
adamc@378 1507 cat >>confdefs.h <<_ACEOF
adamc@378 1508 #define PACKAGE_NAME "$PACKAGE_NAME"
adamc@378 1509 _ACEOF
adamc@378 1510
adamc@378 1511 cat >>confdefs.h <<_ACEOF
adamc@378 1512 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
adamc@378 1513 _ACEOF
adamc@378 1514
adamc@378 1515 cat >>confdefs.h <<_ACEOF
adamc@378 1516 #define PACKAGE_VERSION "$PACKAGE_VERSION"
adamc@378 1517 _ACEOF
adamc@378 1518
adamc@378 1519 cat >>confdefs.h <<_ACEOF
adamc@378 1520 #define PACKAGE_STRING "$PACKAGE_STRING"
adamc@378 1521 _ACEOF
adamc@378 1522
adamc@378 1523 cat >>confdefs.h <<_ACEOF
adamc@378 1524 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
adamc@378 1525 _ACEOF
adamc@378 1526
adamc@1095 1527 cat >>confdefs.h <<_ACEOF
adamc@1095 1528 #define PACKAGE_URL "$PACKAGE_URL"
adamc@1095 1529 _ACEOF
adamc@1095 1530
adamc@378 1531
adamc@378 1532 # Let the site file select an alternate cache file if it wants to.
adamc@1095 1533 # Prefer an explicitly selected file to automatically selected ones.
adamc@1095 1534 ac_site_file1=NONE
adamc@1095 1535 ac_site_file2=NONE
adamc@378 1536 if test -n "$CONFIG_SITE"; then
adamc@1095 1537 ac_site_file1=$CONFIG_SITE
adamc@378 1538 elif test "x$prefix" != xNONE; then
adamc@1095 1539 ac_site_file1=$prefix/share/config.site
adamc@1095 1540 ac_site_file2=$prefix/etc/config.site
adamc@378 1541 else
adamc@1095 1542 ac_site_file1=$ac_default_prefix/share/config.site
adamc@1095 1543 ac_site_file2=$ac_default_prefix/etc/config.site
adamc@378 1544 fi
adamc@1095 1545 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
adamc@378 1546 do
adamc@1095 1547 test "x$ac_site_file" = xNONE && continue
adamc@1095 1548 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
adamc@1095 1549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
adamc@1095 1550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
adamc@378 1551 sed 's/^/| /' "$ac_site_file" >&5
adamc@378 1552 . "$ac_site_file"
adamc@378 1553 fi
adamc@378 1554 done
adamc@378 1555
adamc@378 1556 if test -r "$cache_file"; then
adamc@1095 1557 # Some versions of bash will fail to source /dev/null (special files
adamc@1095 1558 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
adamc@1095 1559 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
adamc@1095 1560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
adamc@1095 1561 $as_echo "$as_me: loading cache $cache_file" >&6;}
adamc@378 1562 case $cache_file in
adamc@378 1563 [\\/]* | ?:[\\/]* ) . "$cache_file";;
adamc@378 1564 *) . "./$cache_file";;
adamc@378 1565 esac
adamc@378 1566 fi
adamc@378 1567 else
adamc@1095 1568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
adamc@1095 1569 $as_echo "$as_me: creating cache $cache_file" >&6;}
adamc@378 1570 >$cache_file
adamc@378 1571 fi
adamc@378 1572
adamc@378 1573 # Check that the precious variables saved in the cache have kept the same
adamc@378 1574 # value.
adamc@378 1575 ac_cache_corrupted=false
adamc@378 1576 for ac_var in $ac_precious_vars; do
adamc@378 1577 eval ac_old_set=\$ac_cv_env_${ac_var}_set
adamc@378 1578 eval ac_new_set=\$ac_env_${ac_var}_set
adamc@378 1579 eval ac_old_val=\$ac_cv_env_${ac_var}_value
adamc@378 1580 eval ac_new_val=\$ac_env_${ac_var}_value
adamc@378 1581 case $ac_old_set,$ac_new_set in
adamc@378 1582 set,)
adamc@1095 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
adamc@1095 1584 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
adamc@378 1585 ac_cache_corrupted=: ;;
adamc@378 1586 ,set)
adamc@1095 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
adamc@1095 1588 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
adamc@378 1589 ac_cache_corrupted=: ;;
adamc@378 1590 ,);;
adamc@378 1591 *)
adamc@378 1592 if test "x$ac_old_val" != "x$ac_new_val"; then
adamc@1095 1593 # differences in whitespace do not lead to failure.
adamc@1095 1594 ac_old_val_w=`echo x $ac_old_val`
adamc@1095 1595 ac_new_val_w=`echo x $ac_new_val`
adamc@1095 1596 if test "$ac_old_val_w" != "$ac_new_val_w"; then
adamc@1095 1597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
adamc@1095 1598 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
adamc@1095 1599 ac_cache_corrupted=:
adamc@1095 1600 else
adamc@1095 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
adamc@1095 1602 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
adamc@1095 1603 eval $ac_var=\$ac_old_val
adamc@1095 1604 fi
adamc@1095 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
adamc@1095 1606 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
adamc@1095 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
adamc@1095 1608 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
adamc@378 1609 fi;;
adamc@378 1610 esac
adamc@378 1611 # Pass precious variables to config.status.
adamc@378 1612 if test "$ac_new_set" = set; then
adamc@378 1613 case $ac_new_val in
adamc@1095 1614 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 1615 *) ac_arg=$ac_var=$ac_new_val ;;
adamc@378 1616 esac
adamc@378 1617 case " $ac_configure_args " in
adamc@378 1618 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
adamc@1095 1619 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
adamc@378 1620 esac
adamc@378 1621 fi
adamc@378 1622 done
adamc@378 1623 if $ac_cache_corrupted; then
adamc@1095 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1095 1625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1095 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
adamc@1095 1627 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
adamc@1095 1628 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
adamc@378 1629 fi
adamc@1095 1630 ## -------------------- ##
adamc@1095 1631 ## Main body of script. ##
adamc@1095 1632 ## -------------------- ##
adamc@378 1633
adamc@378 1634 ac_ext=c
adamc@378 1635 ac_cpp='$CPP $CPPFLAGS'
adamc@378 1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@378 1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@378 1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@378 1639
adamc@378 1640
adamc@378 1641
adamc@378 1642
adamc@378 1643 # sm: require a late-enough autoconf; this is the version number
adamc@378 1644 # that's on manju, so I assume it's ok
adamc@378 1645
adamc@378 1646
adamc@1095 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ur/Web" >&5
adamc@1095 1648 $as_echo "$as_me: Configuring Ur/Web" >&6;}
adamc@378 1649
adamc@378 1650 # make sure I haven't forgotten to run autoconf
adamc@378 1651 if test configure -ot configure.ac; then
adamc@1095 1652 as_fn_error "configure is older than configure.in; you forgot to run autoconf" "$LINENO" 5
adamc@378 1653 fi
adamc@378 1654
adamc@378 1655 # ---------------- generic functions -----------------
adamc@378 1656 # debugging diagnostic; set to 'echo' to debug or 'true' for production
adamc@378 1657 diagnostic() {
adamc@378 1658 #echo "$@"
adamc@378 1659 true "$@"
adamc@378 1660 }
adamc@378 1661
adamc@429 1662 if test $prefix = "NONE"; then
adamc@429 1663 prefix=/usr/local
adamc@429 1664 fi
adamc@429 1665
adamc@378 1666 if test -z $BIN; then
adamc@429 1667 BIN=$prefix/bin
adamc@378 1668 fi
adamc@378 1669
adamc@378 1670 if test -z $LIB; then
adamc@429 1671 LIB=$prefix/lib/urweb
adamc@378 1672 fi
adamc@378 1673
adamc@378 1674 if test -z $INCLUDE; then
adamc@429 1675 INCLUDE=$prefix/include/urweb
adamc@378 1676 fi
adamc@378 1677
adamc@378 1678 if test -z $SITELISP; then
adamc@429 1679 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
adamc@378 1680 fi
adamc@378 1681
adamc@378 1682
adamc@378 1683 do_not_edit="Do not edit this file. It was generated automatically from"
adamc@378 1684
adamc@378 1685
adamc@378 1686 # ----------------- finish up -------------------
adamc@378 1687 # names of the variables that get substituted in files; for example,
adamc@378 1688 # write @ARCHOS@ somewhere in a written file to get it substituted
adamc@378 1689
adamc@378 1690
adamc@378 1691
adamc@378 1692
adamc@378 1693
adamc@378 1694
adamc@435 1695
adamc@378 1696 # finish the configure script and generate various files; ./configure
adamc@378 1697 # will apply variable substitutions to <filename>.in to generate <filename>;
adamc@378 1698 # I find it useful to mark generated files as read-only so I don't
adamc@378 1699 # accidentally edit them (and then lose my changes when ./configure
adamc@378 1700 # runs again); I had originally done the chmod after AC_OUTPUT, but
adamc@378 1701 # the problem is then the chmod doesn't run inside ./config.status
adamc@378 1702
adamc@378 1703 # MY_AC_CONFIG_FILES(filename)
adamc@378 1704 # do AC_CONFIG_FILES(filename, chmod a-w filename)
adamc@378 1705
adamc@378 1706
adamc@378 1707 {
adamc@378 1708 if test -f Makefile.in; then
adamc@378 1709 ac_config_files="$ac_config_files Makefile"
adamc@378 1710
adamc@378 1711 else
adamc@378 1712 true
adamc@378 1713 #echo "skipping [Makefile] because it's not in this distribution"
adamc@378 1714 fi
adamc@378 1715 }
adamc@378 1716 {
adamc@378 1717 if test -f src/config.sml.in; then
adamc@378 1718 ac_config_files="$ac_config_files src/config.sml"
adamc@378 1719
adamc@378 1720 else
adamc@378 1721 true
adamc@378 1722 #echo "skipping [src/config.sml] because it's not in this distribution"
adamc@378 1723 fi
adamc@378 1724 }
adamc@378 1725
adamc@378 1726 cat >confcache <<\_ACEOF
adamc@378 1727 # This file is a shell script that caches the results of configure
adamc@378 1728 # tests run on this system so they can be shared between configure
adamc@378 1729 # scripts and configure runs, see configure's option --config-cache.
adamc@378 1730 # It is not useful on other systems. If it contains results you don't
adamc@378 1731 # want to keep, you may remove or edit it.
adamc@378 1732 #
adamc@378 1733 # config.status only pays attention to the cache file if you give it
adamc@378 1734 # the --recheck option to rerun configure.
adamc@378 1735 #
adamc@378 1736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
adamc@378 1737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
adamc@378 1738 # following values.
adamc@378 1739
adamc@378 1740 _ACEOF
adamc@378 1741
adamc@378 1742 # The following way of writing the cache mishandles newlines in values,
adamc@378 1743 # but we know of no workaround that is simple, portable, and efficient.
adamc@378 1744 # So, we kill variables containing newlines.
adamc@378 1745 # Ultrix sh set writes to stderr and can't be redirected directly,
adamc@378 1746 # and sets the high bit in the cache file unless we assign to the vars.
adamc@378 1747 (
adamc@378 1748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
adamc@378 1749 eval ac_val=\$$ac_var
adamc@378 1750 case $ac_val in #(
adamc@378 1751 *${as_nl}*)
adamc@378 1752 case $ac_var in #(
adamc@1095 1753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 1754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 1755 esac
adamc@378 1756 case $ac_var in #(
adamc@378 1757 _ | IFS | as_nl) ;; #(
adamc@1095 1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 1759 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 1760 esac ;;
adamc@378 1761 esac
adamc@378 1762 done
adamc@378 1763
adamc@378 1764 (set) 2>&1 |
adamc@378 1765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
adamc@378 1766 *${as_nl}ac_space=\ *)
adamc@1095 1767 # `set' does not quote correctly, so add quotes: double-quote
adamc@1095 1768 # substitution turns \\\\ into \\, and sed turns \\ into \.
adamc@378 1769 sed -n \
adamc@378 1770 "s/'/'\\\\''/g;
adamc@378 1771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
adamc@378 1772 ;; #(
adamc@378 1773 *)
adamc@378 1774 # `set' quotes correctly as required by POSIX, so do not add quotes.
adamc@378 1775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 1776 ;;
adamc@378 1777 esac |
adamc@378 1778 sort
adamc@378 1779 ) |
adamc@378 1780 sed '
adamc@378 1781 /^ac_cv_env_/b end
adamc@378 1782 t clear
adamc@378 1783 :clear
adamc@378 1784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
adamc@378 1785 t end
adamc@378 1786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
adamc@378 1787 :end' >>confcache
adamc@378 1788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
adamc@378 1789 if test -w "$cache_file"; then
adamc@378 1790 test "x$cache_file" != "x/dev/null" &&
adamc@1095 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
adamc@1095 1792 $as_echo "$as_me: updating cache $cache_file" >&6;}
adamc@378 1793 cat confcache >$cache_file
adamc@378 1794 else
adamc@1095 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
adamc@1095 1796 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
adamc@378 1797 fi
adamc@378 1798 fi
adamc@378 1799 rm -f confcache
adamc@378 1800
adamc@378 1801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
adamc@378 1802 # Let make expand exec_prefix.
adamc@378 1803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
adamc@378 1804
adamc@378 1805 # Transform confdefs.h into DEFS.
adamc@378 1806 # Protect against shell expansion while executing Makefile rules.
adamc@378 1807 # Protect against Makefile macro expansion.
adamc@378 1808 #
adamc@378 1809 # If the first sed substitution is executed (which looks for macros that
adamc@378 1810 # take arguments), then branch to the quote section. Otherwise,
adamc@378 1811 # look for a macro that doesn't take arguments.
adamc@378 1812 ac_script='
adamc@1095 1813 :mline
adamc@1095 1814 /\\$/{
adamc@1095 1815 N
adamc@1095 1816 s,\\\n,,
adamc@1095 1817 b mline
adamc@1095 1818 }
adamc@378 1819 t clear
adamc@378 1820 :clear
adamc@378 1821 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
adamc@378 1822 t quote
adamc@378 1823 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
adamc@378 1824 t quote
adamc@378 1825 b any
adamc@378 1826 :quote
adamc@378 1827 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
adamc@378 1828 s/\[/\\&/g
adamc@378 1829 s/\]/\\&/g
adamc@378 1830 s/\$/$$/g
adamc@378 1831 H
adamc@378 1832 :any
adamc@378 1833 ${
adamc@378 1834 g
adamc@378 1835 s/^\n//
adamc@378 1836 s/\n/ /g
adamc@378 1837 p
adamc@378 1838 }
adamc@378 1839 '
adamc@378 1840 DEFS=`sed -n "$ac_script" confdefs.h`
adamc@378 1841
adamc@378 1842
adamc@378 1843 ac_libobjs=
adamc@378 1844 ac_ltlibobjs=
adamc@378 1845 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
adamc@378 1846 # 1. Remove the extension, and $U if already installed.
adamc@378 1847 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
adamc@1095 1848 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
adamc@378 1849 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
adamc@378 1850 # will be set to the directory where LIBOBJS objects are built.
adamc@1095 1851 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
adamc@1095 1852 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
adamc@378 1853 done
adamc@378 1854 LIBOBJS=$ac_libobjs
adamc@378 1855
adamc@378 1856 LTLIBOBJS=$ac_ltlibobjs
adamc@378 1857
adamc@378 1858
adamc@378 1859
adamc@378 1860 : ${CONFIG_STATUS=./config.status}
adamc@1095 1861 ac_write_fail=0
adamc@378 1862 ac_clean_files_save=$ac_clean_files
adamc@378 1863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
adamc@1095 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
adamc@1095 1865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
adamc@1095 1866 as_write_fail=0
adamc@1095 1867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
adamc@378 1868 #! $SHELL
adamc@378 1869 # Generated by $as_me.
adamc@378 1870 # Run this file to recreate the current configuration.
adamc@378 1871 # Compiler output produced by configure, useful for debugging
adamc@378 1872 # configure, is in config.log if it exists.
adamc@378 1873
adamc@378 1874 debug=false
adamc@378 1875 ac_cs_recheck=false
adamc@378 1876 ac_cs_silent=false
adamc@1095 1877
adamc@378 1878 SHELL=\${CONFIG_SHELL-$SHELL}
adamc@1095 1879 export SHELL
adamc@1095 1880 _ASEOF
adamc@1095 1881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
adamc@1095 1882 ## -------------------- ##
adamc@1095 1883 ## M4sh Initialization. ##
adamc@1095 1884 ## -------------------- ##
adamc@378 1885
adamc@378 1886 # Be more Bourne compatible
adamc@378 1887 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 1888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 1889 emulate sh
adamc@378 1890 NULLCMD=:
adamc@1095 1891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 1892 # is contrary to our usage. Disable this feature.
adamc@378 1893 alias -g '${1+"$@"}'='"$@"'
adamc@378 1894 setopt NO_GLOB_SUBST
adamc@378 1895 else
adamc@1095 1896 case `(set -o) 2>/dev/null` in #(
adamc@1095 1897 *posix*) :
adamc@1095 1898 set -o posix ;; #(
adamc@1095 1899 *) :
adamc@1095 1900 ;;
adamc@378 1901 esac
adamc@378 1902 fi
adamc@378 1903
adamc@378 1904
adamc@1095 1905 as_nl='
adamc@1095 1906 '
adamc@1095 1907 export as_nl
adamc@1095 1908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 1909 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 1910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 1911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 1912 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 1913 # but without wasting forks for bash or zsh.
adamc@1095 1914 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 1915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 1916 as_echo='print -r --'
adamc@1095 1917 as_echo_n='print -rn --'
adamc@1095 1918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 1919 as_echo='printf %s\n'
adamc@1095 1920 as_echo_n='printf %s'
adamc@1095 1921 else
adamc@1095 1922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 1923 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 1924 as_echo_n='/usr/ucb/echo -n'
adamc@1095 1925 else
adamc@1095 1926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 1927 as_echo_n_body='eval
adamc@1095 1928 arg=$1;
adamc@1095 1929 case $arg in #(
adamc@1095 1930 *"$as_nl"*)
adamc@1095 1931 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 1932 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 1933 esac;
adamc@1095 1934 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 1935 '
adamc@1095 1936 export as_echo_n_body
adamc@1095 1937 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 1938 fi
adamc@1095 1939 export as_echo_body
adamc@1095 1940 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 1941 fi
adamc@378 1942
adamc@378 1943 # The user is always right.
adamc@378 1944 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 1945 PATH_SEPARATOR=:
adamc@1095 1946 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 1947 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 1948 PATH_SEPARATOR=';'
adamc@1095 1949 }
adamc@378 1950 fi
adamc@378 1951
adamc@378 1952
adamc@378 1953 # IFS
adamc@378 1954 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 1955 # there to prevent editors from complaining about space-tab.
adamc@378 1956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 1957 # splitting by setting IFS to empty value.)
adamc@378 1958 IFS=" "" $as_nl"
adamc@378 1959
adamc@378 1960 # Find who we are. Look in the path if we contain no directory separator.
adamc@1095 1961 case $0 in #((
adamc@378 1962 *[\\/]* ) as_myself=$0 ;;
adamc@378 1963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 1964 for as_dir in $PATH
adamc@378 1965 do
adamc@378 1966 IFS=$as_save_IFS
adamc@378 1967 test -z "$as_dir" && as_dir=.
adamc@1095 1968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 1969 done
adamc@378 1970 IFS=$as_save_IFS
adamc@378 1971
adamc@378 1972 ;;
adamc@378 1973 esac
adamc@378 1974 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 1975 # in which case we are not to be found in the path.
adamc@378 1976 if test "x$as_myself" = x; then
adamc@378 1977 as_myself=$0
adamc@378 1978 fi
adamc@378 1979 if test ! -f "$as_myself"; then
adamc@1095 1980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 1981 exit 1
adamc@378 1982 fi
adamc@378 1983
adamc@1095 1984 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 1985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 1986 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 1987 # trigger a bug in pdksh 5.2.14.
adamc@1095 1988 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 1989 do eval test x\${$as_var+set} = xset \
adamc@1095 1990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 1991 done
adamc@378 1992 PS1='$ '
adamc@378 1993 PS2='> '
adamc@378 1994 PS4='+ '
adamc@378 1995
adamc@378 1996 # NLS nuisances.
adamc@1095 1997 LC_ALL=C
adamc@1095 1998 export LC_ALL
adamc@1095 1999 LANGUAGE=C
adamc@1095 2000 export LANGUAGE
adamc@1095 2001
adamc@1095 2002 # CDPATH.
adamc@1095 2003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 2004
adamc@1095 2005
adamc@1095 2006 # as_fn_error ERROR [LINENO LOG_FD]
adamc@1095 2007 # ---------------------------------
adamc@1095 2008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 2009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adamc@1095 2010 # script with status $?, using 1 if that was 0.
adamc@1095 2011 as_fn_error ()
adamc@1095 2012 {
adamc@1095 2013 as_status=$?; test $as_status -eq 0 && as_status=1
adamc@1095 2014 if test "$3"; then
adamc@1095 2015 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1095 2016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
adamc@378 2017 fi
adamc@1095 2018 $as_echo "$as_me: error: $1" >&2
adamc@1095 2019 as_fn_exit $as_status
adamc@1095 2020 } # as_fn_error
adamc@378 2021
adamc@1095 2022
adamc@1095 2023 # as_fn_set_status STATUS
adamc@1095 2024 # -----------------------
adamc@1095 2025 # Set $? to STATUS, without forking.
adamc@1095 2026 as_fn_set_status ()
adamc@1095 2027 {
adamc@1095 2028 return $1
adamc@1095 2029 } # as_fn_set_status
adamc@1095 2030
adamc@1095 2031 # as_fn_exit STATUS
adamc@1095 2032 # -----------------
adamc@1095 2033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 2034 as_fn_exit ()
adamc@1095 2035 {
adamc@1095 2036 set +e
adamc@1095 2037 as_fn_set_status $1
adamc@1095 2038 exit $1
adamc@1095 2039 } # as_fn_exit
adamc@1095 2040
adamc@1095 2041 # as_fn_unset VAR
adamc@1095 2042 # ---------------
adamc@1095 2043 # Portably unset VAR.
adamc@1095 2044 as_fn_unset ()
adamc@1095 2045 {
adamc@1095 2046 { eval $1=; unset $1;}
adamc@1095 2047 }
adamc@1095 2048 as_unset=as_fn_unset
adamc@1095 2049 # as_fn_append VAR VALUE
adamc@1095 2050 # ----------------------
adamc@1095 2051 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 2052 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 2053 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 2054 # implementations.
adamc@1095 2055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 2056 eval 'as_fn_append ()
adamc@1095 2057 {
adamc@1095 2058 eval $1+=\$2
adamc@1095 2059 }'
adamc@1095 2060 else
adamc@1095 2061 as_fn_append ()
adamc@1095 2062 {
adamc@1095 2063 eval $1=\$$1\$2
adamc@1095 2064 }
adamc@1095 2065 fi # as_fn_append
adamc@1095 2066
adamc@1095 2067 # as_fn_arith ARG...
adamc@1095 2068 # ------------------
adamc@1095 2069 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 2070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 2071 # must be portable across $(()) and expr.
adamc@1095 2072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 2073 eval 'as_fn_arith ()
adamc@1095 2074 {
adamc@1095 2075 as_val=$(( $* ))
adamc@1095 2076 }'
adamc@1095 2077 else
adamc@1095 2078 as_fn_arith ()
adamc@1095 2079 {
adamc@1095 2080 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 2081 }
adamc@1095 2082 fi # as_fn_arith
adamc@1095 2083
adamc@1095 2084
adamc@378 2085 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 2086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 2087 as_expr=expr
adamc@378 2088 else
adamc@378 2089 as_expr=false
adamc@378 2090 fi
adamc@378 2091
adamc@378 2092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 2093 as_basename=basename
adamc@378 2094 else
adamc@378 2095 as_basename=false
adamc@378 2096 fi
adamc@378 2097
adamc@1095 2098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 2099 as_dirname=dirname
adamc@1095 2100 else
adamc@1095 2101 as_dirname=false
adamc@1095 2102 fi
adamc@378 2103
adamc@378 2104 as_me=`$as_basename -- "$0" ||
adamc@378 2105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 2106 X"$0" : 'X\(//\)$' \| \
adamc@378 2107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 2108 $as_echo X/"$0" |
adamc@378 2109 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 2110 s//\1/
adamc@378 2111 q
adamc@378 2112 }
adamc@378 2113 /^X\/\(\/\/\)$/{
adamc@378 2114 s//\1/
adamc@378 2115 q
adamc@378 2116 }
adamc@378 2117 /^X\/\(\/\).*/{
adamc@378 2118 s//\1/
adamc@378 2119 q
adamc@378 2120 }
adamc@378 2121 s/.*/./; q'`
adamc@378 2122
adamc@1095 2123 # Avoid depending upon Character Ranges.
adamc@1095 2124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 2125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 2126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 2127 as_cr_digits='0123456789'
adamc@1095 2128 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 2129
adamc@378 2130 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 2131 case `echo -n x` in #(((((
adamc@378 2132 -n*)
adamc@1095 2133 case `echo 'xy\c'` in
adamc@378 2134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 2135 xy) ECHO_C='\c';;
adamc@1095 2136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 2137 ECHO_T=' ';;
adamc@378 2138 esac;;
adamc@378 2139 *)
adamc@378 2140 ECHO_N='-n';;
adamc@378 2141 esac
adamc@378 2142
adamc@378 2143 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 2144 if test -d conf$$.dir; then
adamc@378 2145 rm -f conf$$.dir/conf$$.file
adamc@378 2146 else
adamc@378 2147 rm -f conf$$.dir
adamc@1095 2148 mkdir conf$$.dir 2>/dev/null
adamc@378 2149 fi
adamc@1095 2150 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 2151 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 2152 as_ln_s='ln -s'
adamc@1095 2153 # ... but there are two gotchas:
adamc@1095 2154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 2155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adamc@1095 2156 # In both cases, we have to default to `cp -p'.
adamc@1095 2157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adamc@1095 2158 as_ln_s='cp -p'
adamc@1095 2159 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 2160 as_ln_s=ln
adamc@1095 2161 else
adamc@378 2162 as_ln_s='cp -p'
adamc@1095 2163 fi
adamc@378 2164 else
adamc@378 2165 as_ln_s='cp -p'
adamc@378 2166 fi
adamc@378 2167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 2168 rmdir conf$$.dir 2>/dev/null
adamc@378 2169
adamc@1095 2170
adamc@1095 2171 # as_fn_mkdir_p
adamc@1095 2172 # -------------
adamc@1095 2173 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 2174 as_fn_mkdir_p ()
adamc@1095 2175 {
adamc@1095 2176
adamc@1095 2177 case $as_dir in #(
adamc@1095 2178 -*) as_dir=./$as_dir;;
adamc@1095 2179 esac
adamc@1095 2180 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 2181 as_dirs=
adamc@1095 2182 while :; do
adamc@1095 2183 case $as_dir in #(
adamc@1095 2184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 2185 *) as_qdir=$as_dir;;
adamc@1095 2186 esac
adamc@1095 2187 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 2188 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 2189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 2190 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 2191 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 2192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 2193 $as_echo X"$as_dir" |
adamc@1095 2194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 2195 s//\1/
adamc@1095 2196 q
adamc@1095 2197 }
adamc@1095 2198 /^X\(\/\/\)[^/].*/{
adamc@1095 2199 s//\1/
adamc@1095 2200 q
adamc@1095 2201 }
adamc@1095 2202 /^X\(\/\/\)$/{
adamc@1095 2203 s//\1/
adamc@1095 2204 q
adamc@1095 2205 }
adamc@1095 2206 /^X\(\/\).*/{
adamc@1095 2207 s//\1/
adamc@1095 2208 q
adamc@1095 2209 }
adamc@1095 2210 s/.*/./; q'`
adamc@1095 2211 test -d "$as_dir" && break
adamc@1095 2212 done
adamc@1095 2213 test -z "$as_dirs" || eval "mkdir $as_dirs"
adamc@1095 2214 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
adamc@1095 2215
adamc@1095 2216
adamc@1095 2217 } # as_fn_mkdir_p
adamc@378 2218 if mkdir -p . 2>/dev/null; then
adamc@1095 2219 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 2220 else
adamc@378 2221 test -d ./-p && rmdir ./-p
adamc@378 2222 as_mkdir_p=false
adamc@378 2223 fi
adamc@378 2224
adamc@378 2225 if test -x / >/dev/null 2>&1; then
adamc@378 2226 as_test_x='test -x'
adamc@378 2227 else
adamc@378 2228 if ls -dL / >/dev/null 2>&1; then
adamc@378 2229 as_ls_L_option=L
adamc@378 2230 else
adamc@378 2231 as_ls_L_option=
adamc@378 2232 fi
adamc@378 2233 as_test_x='
adamc@378 2234 eval sh -c '\''
adamc@378 2235 if test -d "$1"; then
adamc@1095 2236 test -d "$1/.";
adamc@378 2237 else
adamc@1095 2238 case $1 in #(
adamc@1095 2239 -*)set "./$1";;
adamc@378 2240 esac;
adamc@1095 2241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
adamc@378 2242 ???[sx]*):;;*)false;;esac;fi
adamc@378 2243 '\'' sh
adamc@378 2244 '
adamc@378 2245 fi
adamc@378 2246 as_executable_p=$as_test_x
adamc@378 2247
adamc@378 2248 # Sed expression to map a string onto a valid CPP name.
adamc@378 2249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 2250
adamc@378 2251 # Sed expression to map a string onto a valid variable name.
adamc@378 2252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 2253
adamc@378 2254
adamc@378 2255 exec 6>&1
adamc@1095 2256 ## ----------------------------------- ##
adamc@1095 2257 ## Main body of $CONFIG_STATUS script. ##
adamc@1095 2258 ## ----------------------------------- ##
adamc@1095 2259 _ASEOF
adamc@1095 2260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
adamc@378 2261
adamc@1095 2262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 2263 # Save the log message, to keep $0 and so on meaningful, and to
adamc@378 2264 # report actual input values of CONFIG_FILES etc. instead of their
adamc@378 2265 # values after options handling.
adamc@378 2266 ac_log="
adamc@378 2267 This file was extended by $as_me, which was
adamc@1095 2268 generated by GNU Autoconf 2.65. Invocation command line was
adamc@378 2269
adamc@378 2270 CONFIG_FILES = $CONFIG_FILES
adamc@378 2271 CONFIG_HEADERS = $CONFIG_HEADERS
adamc@378 2272 CONFIG_LINKS = $CONFIG_LINKS
adamc@378 2273 CONFIG_COMMANDS = $CONFIG_COMMANDS
adamc@378 2274 $ $0 $@
adamc@378 2275
adamc@378 2276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 2277 "
adamc@378 2278
adamc@378 2279 _ACEOF
adamc@378 2280
adamc@1095 2281 case $ac_config_files in *"
adamc@1095 2282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
adamc@1095 2283 esac
adamc@1095 2284
adamc@1095 2285
adamc@1095 2286
adamc@1095 2287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 2288 # Files that config.status was made for.
adamc@378 2289 config_files="$ac_config_files"
adamc@378 2290
adamc@378 2291 _ACEOF
adamc@378 2292
adamc@1095 2293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 2294 ac_cs_usage="\
adamc@1095 2295 \`$as_me' instantiates files and other configuration actions
adamc@1095 2296 from templates according to the current configuration. Unless the files
adamc@1095 2297 and actions are specified as TAGs, all are instantiated by default.
adamc@378 2298
adamc@1095 2299 Usage: $0 [OPTION]... [TAG]...
adamc@378 2300
adamc@378 2301 -h, --help print this help, then exit
adamc@378 2302 -V, --version print version number and configuration settings, then exit
adamc@1095 2303 --config print configuration, then exit
adamc@1095 2304 -q, --quiet, --silent
adamc@1095 2305 do not print progress messages
adamc@378 2306 -d, --debug don't remove temporary files
adamc@378 2307 --recheck update $as_me by reconfiguring in the same conditions
adamc@1095 2308 --file=FILE[:TEMPLATE]
adamc@1095 2309 instantiate the configuration file FILE
adamc@378 2310
adamc@378 2311 Configuration files:
adamc@378 2312 $config_files
adamc@378 2313
adamc@1095 2314 Report bugs to the package provider."
adamc@378 2315
adamc@378 2316 _ACEOF
adamc@1095 2317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 2318 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
adamc@378 2319 ac_cs_version="\\
adamc@378 2320 config.status
adamc@1095 2321 configured by $0, generated by GNU Autoconf 2.65,
adamc@1095 2322 with options \\"\$ac_cs_config\\"
adamc@378 2323
adamc@1095 2324 Copyright (C) 2009 Free Software Foundation, Inc.
adamc@378 2325 This config.status script is free software; the Free Software Foundation
adamc@378 2326 gives unlimited permission to copy, distribute and modify it."
adamc@378 2327
adamc@378 2328 ac_pwd='$ac_pwd'
adamc@378 2329 srcdir='$srcdir'
adamc@1095 2330 test -n "\$AWK" || AWK=awk
adamc@378 2331 _ACEOF
adamc@378 2332
adamc@1095 2333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 2334 # The default lists apply if the user does not specify any file.
adamc@378 2335 ac_need_defaults=:
adamc@378 2336 while test $# != 0
adamc@378 2337 do
adamc@378 2338 case $1 in
adamc@378 2339 --*=*)
adamc@378 2340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
adamc@378 2341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
adamc@378 2342 ac_shift=:
adamc@378 2343 ;;
adamc@378 2344 *)
adamc@378 2345 ac_option=$1
adamc@378 2346 ac_optarg=$2
adamc@378 2347 ac_shift=shift
adamc@378 2348 ;;
adamc@378 2349 esac
adamc@378 2350
adamc@378 2351 case $ac_option in
adamc@378 2352 # Handling of the options.
adamc@378 2353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
adamc@378 2354 ac_cs_recheck=: ;;
adamc@378 2355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
adamc@1095 2356 $as_echo "$ac_cs_version"; exit ;;
adamc@1095 2357 --config | --confi | --conf | --con | --co | --c )
adamc@1095 2358 $as_echo "$ac_cs_config"; exit ;;
adamc@378 2359 --debug | --debu | --deb | --de | --d | -d )
adamc@378 2360 debug=: ;;
adamc@378 2361 --file | --fil | --fi | --f )
adamc@378 2362 $ac_shift
adamc@1095 2363 case $ac_optarg in
adamc@1095 2364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@1095 2365 esac
adamc@1095 2366 as_fn_append CONFIG_FILES " '$ac_optarg'"
adamc@378 2367 ac_need_defaults=false;;
adamc@378 2368 --he | --h | --help | --hel | -h )
adamc@1095 2369 $as_echo "$ac_cs_usage"; exit ;;
adamc@378 2370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 2371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
adamc@378 2372 ac_cs_silent=: ;;
adamc@378 2373
adamc@378 2374 # This is an error.
adamc@1095 2375 -*) as_fn_error "unrecognized option: \`$1'
adamc@1095 2376 Try \`$0 --help' for more information." ;;
adamc@378 2377
adamc@1095 2378 *) as_fn_append ac_config_targets " $1"
adamc@378 2379 ac_need_defaults=false ;;
adamc@378 2380
adamc@378 2381 esac
adamc@378 2382 shift
adamc@378 2383 done
adamc@378 2384
adamc@378 2385 ac_configure_extra_args=
adamc@378 2386
adamc@378 2387 if $ac_cs_silent; then
adamc@378 2388 exec 6>/dev/null
adamc@378 2389 ac_configure_extra_args="$ac_configure_extra_args --silent"
adamc@378 2390 fi
adamc@378 2391
adamc@378 2392 _ACEOF
adamc@1095 2393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 2394 if \$ac_cs_recheck; then
adamc@1095 2395 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
adamc@1095 2396 shift
adamc@1095 2397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
adamc@1095 2398 CONFIG_SHELL='$SHELL'
adamc@378 2399 export CONFIG_SHELL
adamc@1095 2400 exec "\$@"
adamc@378 2401 fi
adamc@378 2402
adamc@378 2403 _ACEOF
adamc@1095 2404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 2405 exec 5>>config.log
adamc@378 2406 {
adamc@378 2407 echo
adamc@378 2408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
adamc@378 2409 ## Running $as_me. ##
adamc@378 2410 _ASBOX
adamc@1095 2411 $as_echo "$ac_log"
adamc@378 2412 } >&5
adamc@378 2413
adamc@378 2414 _ACEOF
adamc@1095 2415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 2416 _ACEOF
adamc@378 2417
adamc@1095 2418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 2419
adamc@378 2420 # Handling of arguments.
adamc@378 2421 for ac_config_target in $ac_config_targets
adamc@378 2422 do
adamc@378 2423 case $ac_config_target in
adamc@378 2424 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
adamc@378 2425 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;;
adamc@378 2426
adamc@1095 2427 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
adamc@378 2428 esac
adamc@378 2429 done
adamc@378 2430
adamc@378 2431
adamc@378 2432 # If the user did not use the arguments to specify the items to instantiate,
adamc@378 2433 # then the envvar interface is used. Set only those that are not.
adamc@378 2434 # We use the long form for the default assignment because of an extremely
adamc@378 2435 # bizarre bug on SunOS 4.1.3.
adamc@378 2436 if $ac_need_defaults; then
adamc@378 2437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
adamc@378 2438 fi
adamc@378 2439
adamc@378 2440 # Have a temporary directory for convenience. Make it in the build tree
adamc@378 2441 # simply because there is no reason against having it here, and in addition,
adamc@378 2442 # creating and moving files from /tmp can sometimes cause problems.
adamc@378 2443 # Hook for its removal unless debugging.
adamc@378 2444 # Note that there is a small window in which the directory will not be cleaned:
adamc@378 2445 # after its creation but before its name has been assigned to `$tmp'.
adamc@378 2446 $debug ||
adamc@378 2447 {
adamc@378 2448 tmp=
adamc@378 2449 trap 'exit_status=$?
adamc@378 2450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
adamc@378 2451 ' 0
adamc@1095 2452 trap 'as_fn_exit 1' 1 2 13 15
adamc@378 2453 }
adamc@378 2454 # Create a (secure) tmp directory for tmp files.
adamc@378 2455
adamc@378 2456 {
adamc@378 2457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
adamc@378 2458 test -n "$tmp" && test -d "$tmp"
adamc@378 2459 } ||
adamc@378 2460 {
adamc@378 2461 tmp=./conf$$-$RANDOM
adamc@378 2462 (umask 077 && mkdir "$tmp")
adamc@1095 2463 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
adamc@378 2464
adamc@1095 2465 # Set up the scripts for CONFIG_FILES section.
adamc@1095 2466 # No need to generate them if there are no CONFIG_FILES.
adamc@1095 2467 # This happens for instance with `./config.status config.h'.
adamc@378 2468 if test -n "$CONFIG_FILES"; then
adamc@378 2469
adamc@1095 2470
adamc@1095 2471 ac_cr=`echo X | tr X '\015'`
adamc@1095 2472 # On cygwin, bash can eat \r inside `` if the user requested igncr.
adamc@1095 2473 # But we know of no other shell where ac_cr would be empty at this
adamc@1095 2474 # point, so we can use a bashism as a fallback.
adamc@1095 2475 if test "x$ac_cr" = x; then
adamc@1095 2476 eval ac_cr=\$\'\\r\'
adamc@1095 2477 fi
adamc@1095 2478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
adamc@1095 2479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
adamc@1095 2480 ac_cs_awk_cr='\r'
adamc@1095 2481 else
adamc@1095 2482 ac_cs_awk_cr=$ac_cr
adamc@1095 2483 fi
adamc@1095 2484
adamc@1095 2485 echo 'BEGIN {' >"$tmp/subs1.awk" &&
adamc@378 2486 _ACEOF
adamc@378 2487
adamc@378 2488
adamc@1095 2489 {
adamc@1095 2490 echo "cat >conf$$subs.awk <<_ACEOF" &&
adamc@1095 2491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
adamc@1095 2492 echo "_ACEOF"
adamc@1095 2493 } >conf$$subs.sh ||
adamc@1095 2494 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@1095 2495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
adamc@378 2496 ac_delim='%!_!# '
adamc@378 2497 for ac_last_try in false false false false false :; do
adamc@1095 2498 . ./conf$$subs.sh ||
adamc@1095 2499 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 2500
adamc@1095 2501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
adamc@1095 2502 if test $ac_delim_n = $ac_delim_num; then
adamc@378 2503 break
adamc@378 2504 elif $ac_last_try; then
adamc@1095 2505 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 2506 else
adamc@378 2507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
adamc@378 2508 fi
adamc@378 2509 done
adamc@1095 2510 rm -f conf$$subs.sh
adamc@378 2511
adamc@1095 2512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 2513 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
adamc@1095 2514 _ACEOF
adamc@1095 2515 sed -n '
adamc@1095 2516 h
adamc@1095 2517 s/^/S["/; s/!.*/"]=/
adamc@1095 2518 p
adamc@1095 2519 g
adamc@1095 2520 s/^[^!]*!//
adamc@1095 2521 :repl
adamc@1095 2522 t repl
adamc@1095 2523 s/'"$ac_delim"'$//
adamc@1095 2524 t delim
adamc@1095 2525 :nl
adamc@1095 2526 h
adamc@1095 2527 s/\(.\{148\}\)..*/\1/
adamc@1095 2528 t more1
adamc@1095 2529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
adamc@1095 2530 p
adamc@1095 2531 n
adamc@1095 2532 b repl
adamc@1095 2533 :more1
adamc@1095 2534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 2535 p
adamc@1095 2536 g
adamc@1095 2537 s/.\{148\}//
adamc@1095 2538 t nl
adamc@1095 2539 :delim
adamc@1095 2540 h
adamc@1095 2541 s/\(.\{148\}\)..*/\1/
adamc@1095 2542 t more2
adamc@1095 2543 s/["\\]/\\&/g; s/^/"/; s/$/"/
adamc@1095 2544 p
adamc@1095 2545 b
adamc@1095 2546 :more2
adamc@1095 2547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 2548 p
adamc@1095 2549 g
adamc@1095 2550 s/.\{148\}//
adamc@1095 2551 t delim
adamc@1095 2552 ' <conf$$subs.awk | sed '
adamc@1095 2553 /^[^""]/{
adamc@1095 2554 N
adamc@1095 2555 s/\n//
adamc@1095 2556 }
adamc@1095 2557 ' >>$CONFIG_STATUS || ac_write_fail=1
adamc@1095 2558 rm -f conf$$subs.awk
adamc@1095 2559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 2560 _ACAWK
adamc@1095 2561 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
adamc@1095 2562 for (key in S) S_is_set[key] = 1
adamc@1095 2563 FS = ""
adamc@378 2564
adamc@1095 2565 }
adamc@1095 2566 {
adamc@1095 2567 line = $ 0
adamc@1095 2568 nfields = split(line, field, "@")
adamc@1095 2569 substed = 0
adamc@1095 2570 len = length(field[1])
adamc@1095 2571 for (i = 2; i < nfields; i++) {
adamc@1095 2572 key = field[i]
adamc@1095 2573 keylen = length(key)
adamc@1095 2574 if (S_is_set[key]) {
adamc@1095 2575 value = S[key]
adamc@1095 2576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
adamc@1095 2577 len += length(value) + length(field[++i])
adamc@1095 2578 substed = 1
adamc@1095 2579 } else
adamc@1095 2580 len += 1 + keylen
adamc@1095 2581 }
adamc@1095 2582
adamc@1095 2583 print line
adamc@1095 2584 }
adamc@1095 2585
adamc@1095 2586 _ACAWK
adamc@378 2587 _ACEOF
adamc@1095 2588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 2589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
adamc@1095 2590 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
adamc@1095 2591 else
adamc@1095 2592 cat
adamc@1095 2593 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
adamc@1095 2594 || as_fn_error "could not setup config files machinery" "$LINENO" 5
adamc@378 2595 _ACEOF
adamc@378 2596
adamc@378 2597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
adamc@378 2598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
adamc@378 2599 # trailing colons and then remove the whole line if VPATH becomes empty
adamc@378 2600 # (actually we leave an empty line to preserve line numbers).
adamc@378 2601 if test "x$srcdir" = x.; then
adamc@378 2602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
adamc@378 2603 s/:*\$(srcdir):*/:/
adamc@378 2604 s/:*\${srcdir}:*/:/
adamc@378 2605 s/:*@srcdir@:*/:/
adamc@378 2606 s/^\([^=]*=[ ]*\):*/\1/
adamc@378 2607 s/:*$//
adamc@378 2608 s/^[^=]*=[ ]*$//
adamc@378 2609 }'
adamc@378 2610 fi
adamc@378 2611
adamc@1095 2612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 2613 fi # test -n "$CONFIG_FILES"
adamc@378 2614
adamc@378 2615
adamc@1095 2616 eval set X " :F $CONFIG_FILES "
adamc@1095 2617 shift
adamc@1095 2618 for ac_tag
adamc@378 2619 do
adamc@378 2620 case $ac_tag in
adamc@378 2621 :[FHLC]) ac_mode=$ac_tag; continue;;
adamc@378 2622 esac
adamc@378 2623 case $ac_mode$ac_tag in
adamc@378 2624 :[FHL]*:*);;
adamc@1095 2625 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
adamc@378 2626 :[FH]-) ac_tag=-:-;;
adamc@378 2627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
adamc@378 2628 esac
adamc@378 2629 ac_save_IFS=$IFS
adamc@378 2630 IFS=:
adamc@378 2631 set x $ac_tag
adamc@378 2632 IFS=$ac_save_IFS
adamc@378 2633 shift
adamc@378 2634 ac_file=$1
adamc@378 2635 shift
adamc@378 2636
adamc@378 2637 case $ac_mode in
adamc@378 2638 :L) ac_source=$1;;
adamc@378 2639 :[FH])
adamc@378 2640 ac_file_inputs=
adamc@378 2641 for ac_f
adamc@378 2642 do
adamc@378 2643 case $ac_f in
adamc@378 2644 -) ac_f="$tmp/stdin";;
adamc@378 2645 *) # Look for the file first in the build tree, then in the source tree
adamc@378 2646 # (if the path is not absolute). The absolute path cannot be DOS-style,
adamc@378 2647 # because $ac_f cannot contain `:'.
adamc@378 2648 test -f "$ac_f" ||
adamc@378 2649 case $ac_f in
adamc@378 2650 [\\/$]*) false;;
adamc@378 2651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
adamc@378 2652 esac ||
adamc@1095 2653 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
adamc@378 2654 esac
adamc@1095 2655 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
adamc@1095 2656 as_fn_append ac_file_inputs " '$ac_f'"
adamc@378 2657 done
adamc@378 2658
adamc@378 2659 # Let's still pretend it is `configure' which instantiates (i.e., don't
adamc@378 2660 # use $as_me), people would be surprised to read:
adamc@378 2661 # /* config.h. Generated by config.status. */
adamc@1095 2662 configure_input='Generated from '`
adamc@1095 2663 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
adamc@1095 2664 `' by configure.'
adamc@378 2665 if test x"$ac_file" != x-; then
adamc@378 2666 configure_input="$ac_file. $configure_input"
adamc@1095 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
adamc@1095 2668 $as_echo "$as_me: creating $ac_file" >&6;}
adamc@378 2669 fi
adamc@1095 2670 # Neutralize special characters interpreted by sed in replacement strings.
adamc@1095 2671 case $configure_input in #(
adamc@1095 2672 *\&* | *\|* | *\\* )
adamc@1095 2673 ac_sed_conf_input=`$as_echo "$configure_input" |
adamc@1095 2674 sed 's/[\\\\&|]/\\\\&/g'`;; #(
adamc@1095 2675 *) ac_sed_conf_input=$configure_input;;
adamc@1095 2676 esac
adamc@378 2677
adamc@378 2678 case $ac_tag in
adamc@1095 2679 *:-:* | *:-) cat >"$tmp/stdin" \
adamc@1095 2680 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
adamc@378 2681 esac
adamc@378 2682 ;;
adamc@378 2683 esac
adamc@378 2684
adamc@378 2685 ac_dir=`$as_dirname -- "$ac_file" ||
adamc@378 2686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@378 2687 X"$ac_file" : 'X\(//\)[^/]' \| \
adamc@378 2688 X"$ac_file" : 'X\(//\)$' \| \
adamc@378 2689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 2690 $as_echo X"$ac_file" |
adamc@378 2691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 2692 s//\1/
adamc@378 2693 q
adamc@378 2694 }
adamc@378 2695 /^X\(\/\/\)[^/].*/{
adamc@378 2696 s//\1/
adamc@378 2697 q
adamc@378 2698 }
adamc@378 2699 /^X\(\/\/\)$/{
adamc@378 2700 s//\1/
adamc@378 2701 q
adamc@378 2702 }
adamc@378 2703 /^X\(\/\).*/{
adamc@378 2704 s//\1/
adamc@378 2705 q
adamc@378 2706 }
adamc@378 2707 s/.*/./; q'`
adamc@1095 2708 as_dir="$ac_dir"; as_fn_mkdir_p
adamc@378 2709 ac_builddir=.
adamc@378 2710
adamc@378 2711 case "$ac_dir" in
adamc@378 2712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 2713 *)
adamc@1095 2714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 2715 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 2716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 2717 case $ac_top_builddir_sub in
adamc@378 2718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 2719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 2720 esac ;;
adamc@378 2721 esac
adamc@378 2722 ac_abs_top_builddir=$ac_pwd
adamc@378 2723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 2724 # for backward compatibility:
adamc@378 2725 ac_top_builddir=$ac_top_build_prefix
adamc@378 2726
adamc@378 2727 case $srcdir in
adamc@378 2728 .) # We are building in place.
adamc@378 2729 ac_srcdir=.
adamc@378 2730 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 2731 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 2732 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 2733 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 2734 ac_top_srcdir=$srcdir
adamc@378 2735 ac_abs_top_srcdir=$srcdir ;;
adamc@378 2736 *) # Relative name.
adamc@378 2737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 2738 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 2739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 2740 esac
adamc@378 2741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 2742
adamc@378 2743
adamc@378 2744 case $ac_mode in
adamc@378 2745 :F)
adamc@378 2746 #
adamc@378 2747 # CONFIG_FILE
adamc@378 2748 #
adamc@378 2749
adamc@378 2750 _ACEOF
adamc@378 2751
adamc@1095 2752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 2753 # If the template does not know about datarootdir, expand it.
adamc@378 2754 # FIXME: This hack should be removed a few years after 2.60.
adamc@378 2755 ac_datarootdir_hack=; ac_datarootdir_seen=
adamc@1095 2756 ac_sed_dataroot='
adamc@1095 2757 /datarootdir/ {
adamc@378 2758 p
adamc@378 2759 q
adamc@378 2760 }
adamc@378 2761 /@datadir@/p
adamc@378 2762 /@docdir@/p
adamc@378 2763 /@infodir@/p
adamc@378 2764 /@localedir@/p
adamc@1095 2765 /@mandir@/p'
adamc@1095 2766 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
adamc@378 2767 *datarootdir*) ac_datarootdir_seen=yes;;
adamc@378 2768 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
adamc@1095 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
adamc@1095 2770 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
adamc@378 2771 _ACEOF
adamc@1095 2772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 2773 ac_datarootdir_hack='
adamc@378 2774 s&@datadir@&$datadir&g
adamc@378 2775 s&@docdir@&$docdir&g
adamc@378 2776 s&@infodir@&$infodir&g
adamc@378 2777 s&@localedir@&$localedir&g
adamc@378 2778 s&@mandir@&$mandir&g
adamc@1095 2779 s&\\\${datarootdir}&$datarootdir&g' ;;
adamc@378 2780 esac
adamc@378 2781 _ACEOF
adamc@378 2782
adamc@378 2783 # Neutralize VPATH when `$srcdir' = `.'.
adamc@378 2784 # Shell code in configure.ac might set extrasub.
adamc@378 2785 # FIXME: do we really want to maintain this feature?
adamc@1095 2786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 2787 ac_sed_extra="$ac_vpsub
adamc@378 2788 $extrasub
adamc@378 2789 _ACEOF
adamc@1095 2790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 2791 :t
adamc@378 2792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
adamc@1095 2793 s|@configure_input@|$ac_sed_conf_input|;t t
adamc@378 2794 s&@top_builddir@&$ac_top_builddir_sub&;t t
adamc@1095 2795 s&@top_build_prefix@&$ac_top_build_prefix&;t t
adamc@378 2796 s&@srcdir@&$ac_srcdir&;t t
adamc@378 2797 s&@abs_srcdir@&$ac_abs_srcdir&;t t
adamc@378 2798 s&@top_srcdir@&$ac_top_srcdir&;t t
adamc@378 2799 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
adamc@378 2800 s&@builddir@&$ac_builddir&;t t
adamc@378 2801 s&@abs_builddir@&$ac_abs_builddir&;t t
adamc@378 2802 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
adamc@378 2803 $ac_datarootdir_hack
adamc@1095 2804 "
adamc@1095 2805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
adamc@1095 2806 || as_fn_error "could not create $ac_file" "$LINENO" 5
adamc@378 2807
adamc@378 2808 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
adamc@378 2809 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
adamc@378 2810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
adamc@1095 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adamc@378 2812 which seems to be undefined. Please make sure it is defined." >&5
adamc@1095 2813 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adamc@378 2814 which seems to be undefined. Please make sure it is defined." >&2;}
adamc@378 2815
adamc@378 2816 rm -f "$tmp/stdin"
adamc@378 2817 case $ac_file in
adamc@1095 2818 -) cat "$tmp/out" && rm -f "$tmp/out";;
adamc@1095 2819 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
adamc@1095 2820 esac \
adamc@1095 2821 || as_fn_error "could not create $ac_file" "$LINENO" 5
adamc@378 2822 ;;
adamc@378 2823
adamc@378 2824
adamc@378 2825
adamc@378 2826 esac
adamc@378 2827
adamc@378 2828
adamc@378 2829 case $ac_file$ac_mode in
adamc@378 2830 "Makefile":F) chmod a-w Makefile ;;
adamc@378 2831 "src/config.sml":F) chmod a-w src/config.sml ;;
adamc@378 2832
adamc@378 2833 esac
adamc@378 2834 done # for ac_tag
adamc@378 2835
adamc@378 2836
adamc@1095 2837 as_fn_exit 0
adamc@378 2838 _ACEOF
adamc@378 2839 ac_clean_files=$ac_clean_files_save
adamc@378 2840
adamc@1095 2841 test $ac_write_fail = 0 ||
adamc@1095 2842 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
adamc@1095 2843
adamc@378 2844
adamc@378 2845 # configure is writing to config.log, and then calls config.status.
adamc@378 2846 # config.status does its own redirection, appending to config.log.
adamc@378 2847 # Unfortunately, on DOS this fails, as config.log is still kept open
adamc@378 2848 # by configure, so config.status won't be able to write to it; its
adamc@378 2849 # output is simply discarded. So we exec the FD to /dev/null,
adamc@378 2850 # effectively closing config.log, so it can be properly (re)opened and
adamc@378 2851 # appended to by config.status. When coming back to configure, we
adamc@378 2852 # need to make the FD available again.
adamc@378 2853 if test "$no_create" != yes; then
adamc@378 2854 ac_cs_success=:
adamc@378 2855 ac_config_status_args=
adamc@378 2856 test "$silent" = yes &&
adamc@378 2857 ac_config_status_args="$ac_config_status_args --quiet"
adamc@378 2858 exec 5>/dev/null
adamc@378 2859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
adamc@378 2860 exec 5>>config.log
adamc@378 2861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
adamc@378 2862 # would make configure fail if this is the last instruction.
adamc@1095 2863 $ac_cs_success || as_fn_exit $?
adamc@1095 2864 fi
adamc@1095 2865 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
adamc@1095 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
adamc@1095 2867 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
adamc@378 2868 fi
adamc@378 2869
adamc@378 2870
adamc@378 2871 # show the user what the variables have been set to
adamc@378 2872 cat <<EOF
adamc@378 2873
adamc@378 2874 Ur/Web configuration:
adamc@378 2875 bin directory: BIN $BIN
adamc@378 2876 lib directory: LIB $LIB
adamc@378 2877 include directory: INCLUDE $INCLUDE
adamc@378 2878 site-lisp directory: SITELISP $SITELISP
adamc@435 2879 Extra GCC args: GCCARGS $GCCARGS
adamc@378 2880 EOF