Annotation of OpenXM/src/kan96xx/Kan/configure, Revision 1.6
1.3 takayama 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.6 ! takayama 3: # Generated by GNU Autoconf 2.69.
! 4: #
! 5: #
! 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
! 7: #
1.3 takayama 8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.6 ! takayama 11: ## -------------------- ##
! 12: ## M4sh Initialization. ##
! 13: ## -------------------- ##
1.3 takayama 14:
1.6 ! takayama 15: # Be more Bourne compatible
! 16: DUALCASE=1; export DUALCASE # for MKS sh
! 17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.3 takayama 18: emulate sh
19: NULLCMD=:
1.6 ! takayama 20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.5 takayama 21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.6 ! takayama 23: setopt NO_GLOB_SUBST
! 24: else
! 25: case `(set -o) 2>/dev/null` in #(
! 26: *posix*) :
! 27: set -o posix ;; #(
! 28: *) :
! 29: ;;
! 30: esac
! 31: fi
! 32:
! 33:
! 34: as_nl='
! 35: '
! 36: export as_nl
! 37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 41: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 42: # but without wasting forks for bash or zsh.
! 43: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 45: as_echo='print -r --'
! 46: as_echo_n='print -rn --'
! 47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 48: as_echo='printf %s\n'
! 49: as_echo_n='printf %s'
! 50: else
! 51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 53: as_echo_n='/usr/ucb/echo -n'
! 54: else
! 55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 56: as_echo_n_body='eval
! 57: arg=$1;
! 58: case $arg in #(
! 59: *"$as_nl"*)
! 60: expr "X$arg" : "X\\(.*\\)$as_nl";
! 61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 62: esac;
! 63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 64: '
! 65: export as_echo_n_body
! 66: as_echo_n='sh -c $as_echo_n_body as_echo'
! 67: fi
! 68: export as_echo_body
! 69: as_echo='sh -c $as_echo_body as_echo'
1.3 takayama 70: fi
71:
1.6 ! takayama 72: # The user is always right.
! 73: if test "${PATH_SEPARATOR+set}" != set; then
! 74: PATH_SEPARATOR=:
! 75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 77: PATH_SEPARATOR=';'
! 78: }
1.3 takayama 79: fi
80:
1.5 takayama 81:
1.6 ! takayama 82: # IFS
! 83: # We need space, tab and new line, in precisely that order. Quoting is
! 84: # there to prevent editors from complaining about space-tab.
! 85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 86: # splitting by setting IFS to empty value.)
! 87: IFS=" "" $as_nl"
! 88:
! 89: # Find who we are. Look in the path if we contain no directory separator.
! 90: as_myself=
! 91: case $0 in #((
! 92: *[\\/]* ) as_myself=$0 ;;
! 93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 94: for as_dir in $PATH
! 95: do
! 96: IFS=$as_save_IFS
! 97: test -z "$as_dir" && as_dir=.
! 98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 99: done
! 100: IFS=$as_save_IFS
! 101:
! 102: ;;
! 103: esac
! 104: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 105: # in which case we are not to be found in the path.
! 106: if test "x$as_myself" = x; then
! 107: as_myself=$0
! 108: fi
! 109: if test ! -f "$as_myself"; then
! 110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 111: exit 1
! 112: fi
! 113:
! 114: # Unset variables that we do not need and which cause bugs (e.g. in
! 115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 116: # suppresses any "Segmentation fault" message there. '((' could
! 117: # trigger a bug in pdksh 5.2.14.
! 118: for as_var in BASH_ENV ENV MAIL MAILPATH
! 119: do eval test x\${$as_var+set} = xset \
! 120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 121: done
1.5 takayama 122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
1.6 ! takayama 127: LC_ALL=C
! 128: export LC_ALL
! 129: LANGUAGE=C
! 130: export LANGUAGE
! 131:
! 132: # CDPATH.
! 133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 134:
! 135: # Use a proper internal environment variable to ensure we don't fall
! 136: # into an infinite loop, continuously re-executing ourselves.
! 137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
! 138: _as_can_reexec=no; export _as_can_reexec;
! 139: # We cannot yet assume a decent shell, so we have to provide a
! 140: # neutralization value for shells without unset; and this also
! 141: # works around shells that cannot unset nonexistent variables.
! 142: # Preserve -v and -x to the replacement shell.
! 143: BASH_ENV=/dev/null
! 144: ENV=/dev/null
! 145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 146: case $- in # ((((
! 147: *v*x* | *x*v* ) as_opts=-vx ;;
! 148: *v* ) as_opts=-v ;;
! 149: *x* ) as_opts=-x ;;
! 150: * ) as_opts= ;;
! 151: esac
! 152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 153: # Admittedly, this is quite paranoid, since all the known shells bail
! 154: # out after a failed `exec'.
! 155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 156: as_fn_exit 255
! 157: fi
! 158: # We don't want this to propagate to other subprocesses.
! 159: { _as_can_reexec=; unset _as_can_reexec;}
! 160: if test "x$CONFIG_SHELL" = x; then
! 161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
! 162: emulate sh
! 163: NULLCMD=:
! 164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
! 165: # is contrary to our usage. Disable this feature.
! 166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
! 167: setopt NO_GLOB_SUBST
! 168: else
! 169: case \`(set -o) 2>/dev/null\` in #(
! 170: *posix*) :
! 171: set -o posix ;; #(
! 172: *) :
! 173: ;;
! 174: esac
! 175: fi
! 176: "
! 177: as_required="as_fn_return () { (exit \$1); }
! 178: as_fn_success () { as_fn_return 0; }
! 179: as_fn_failure () { as_fn_return 1; }
! 180: as_fn_ret_success () { return 0; }
! 181: as_fn_ret_failure () { return 1; }
! 182:
! 183: exitcode=0
! 184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
! 185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
! 186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
! 187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
! 188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
! 189:
! 190: else
! 191: exitcode=1; echo positional parameters were not saved.
! 192: fi
! 193: test x\$exitcode = x0 || exit 1
! 194: test -x / || exit 1"
! 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
! 196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
! 197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
! 198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
! 199: test \$(( 1 + 1 )) = 2 || exit 1"
! 200: if (eval "$as_required") 2>/dev/null; then :
! 201: as_have_required=yes
! 202: else
! 203: as_have_required=no
! 204: fi
! 205: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
! 206:
! 207: else
! 208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 209: as_found=false
! 210: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.5 takayama 211: do
1.6 ! takayama 212: IFS=$as_save_IFS
! 213: test -z "$as_dir" && as_dir=.
! 214: as_found=:
! 215: case $as_dir in #(
! 216: /*)
! 217: for as_base in sh bash ksh sh5; do
! 218: # Try only shells that exist, to save several forks.
! 219: as_shell=$as_dir/$as_base
! 220: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 221: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 222: CONFIG_SHELL=$as_shell as_have_required=yes
! 223: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 224: break 2
! 225: fi
! 226: fi
! 227: done;;
! 228: esac
! 229: as_found=false
! 230: done
! 231: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 232: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
! 233: CONFIG_SHELL=$SHELL as_have_required=yes
! 234: fi; }
! 235: IFS=$as_save_IFS
! 236:
! 237:
! 238: if test "x$CONFIG_SHELL" != x; then :
! 239: export CONFIG_SHELL
! 240: # We cannot yet assume a decent shell, so we have to provide a
! 241: # neutralization value for shells without unset; and this also
! 242: # works around shells that cannot unset nonexistent variables.
! 243: # Preserve -v and -x to the replacement shell.
! 244: BASH_ENV=/dev/null
! 245: ENV=/dev/null
! 246: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 247: case $- in # ((((
! 248: *v*x* | *x*v* ) as_opts=-vx ;;
! 249: *v* ) as_opts=-v ;;
! 250: *x* ) as_opts=-x ;;
! 251: * ) as_opts= ;;
! 252: esac
! 253: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 254: # Admittedly, this is quite paranoid, since all the known shells bail
! 255: # out after a failed `exec'.
! 256: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 257: exit 255
! 258: fi
! 259:
! 260: if test x$as_have_required = xno; then :
! 261: $as_echo "$0: This script requires a shell more modern than all"
! 262: $as_echo "$0: the shells that I found on your system."
! 263: if test x${ZSH_VERSION+set} = xset ; then
! 264: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 265: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.5 takayama 266: else
1.6 ! takayama 267: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
! 268: $0: including any error possibly output before this
! 269: $0: message. Then install a modern shell, or manually run
! 270: $0: the script under such a shell if you do have one."
1.5 takayama 271: fi
1.6 ! takayama 272: exit 1
! 273: fi
! 274: fi
! 275: fi
! 276: SHELL=${CONFIG_SHELL-/bin/sh}
! 277: export SHELL
! 278: # Unset more variables known to interfere with behavior of common tools.
! 279: CLICOLOR_FORCE= GREP_OPTIONS=
! 280: unset CLICOLOR_FORCE GREP_OPTIONS
! 281:
! 282: ## --------------------- ##
! 283: ## M4sh Shell Functions. ##
! 284: ## --------------------- ##
! 285: # as_fn_unset VAR
! 286: # ---------------
! 287: # Portably unset VAR.
! 288: as_fn_unset ()
! 289: {
! 290: { eval $1=; unset $1;}
! 291: }
! 292: as_unset=as_fn_unset
! 293:
! 294: # as_fn_set_status STATUS
! 295: # -----------------------
! 296: # Set $? to STATUS, without forking.
! 297: as_fn_set_status ()
! 298: {
! 299: return $1
! 300: } # as_fn_set_status
! 301:
! 302: # as_fn_exit STATUS
! 303: # -----------------
! 304: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 305: as_fn_exit ()
! 306: {
! 307: set +e
! 308: as_fn_set_status $1
! 309: exit $1
! 310: } # as_fn_exit
! 311:
! 312: # as_fn_mkdir_p
! 313: # -------------
! 314: # Create "$as_dir" as a directory, including parents if necessary.
! 315: as_fn_mkdir_p ()
! 316: {
! 317:
! 318: case $as_dir in #(
! 319: -*) as_dir=./$as_dir;;
! 320: esac
! 321: test -d "$as_dir" || eval $as_mkdir_p || {
! 322: as_dirs=
! 323: while :; do
! 324: case $as_dir in #(
! 325: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 326: *) as_qdir=$as_dir;;
! 327: esac
! 328: as_dirs="'$as_qdir' $as_dirs"
! 329: as_dir=`$as_dirname -- "$as_dir" ||
! 330: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 331: X"$as_dir" : 'X\(//\)[^/]' \| \
! 332: X"$as_dir" : 'X\(//\)$' \| \
! 333: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 334: $as_echo X"$as_dir" |
! 335: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 336: s//\1/
! 337: q
! 338: }
! 339: /^X\(\/\/\)[^/].*/{
! 340: s//\1/
! 341: q
! 342: }
! 343: /^X\(\/\/\)$/{
! 344: s//\1/
! 345: q
! 346: }
! 347: /^X\(\/\).*/{
! 348: s//\1/
! 349: q
! 350: }
! 351: s/.*/./; q'`
! 352: test -d "$as_dir" && break
! 353: done
! 354: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 355: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 356:
! 357:
! 358: } # as_fn_mkdir_p
! 359:
! 360: # as_fn_executable_p FILE
! 361: # -----------------------
! 362: # Test if FILE is an executable regular file.
! 363: as_fn_executable_p ()
! 364: {
! 365: test -f "$1" && test -x "$1"
! 366: } # as_fn_executable_p
! 367: # as_fn_append VAR VALUE
! 368: # ----------------------
! 369: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 370: # advantage of any shell optimizations that allow amortized linear growth over
! 371: # repeated appends, instead of the typical quadratic growth present in naive
! 372: # implementations.
! 373: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 374: eval 'as_fn_append ()
! 375: {
! 376: eval $1+=\$2
! 377: }'
! 378: else
! 379: as_fn_append ()
! 380: {
! 381: eval $1=\$$1\$2
! 382: }
! 383: fi # as_fn_append
! 384:
! 385: # as_fn_arith ARG...
! 386: # ------------------
! 387: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 388: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 389: # must be portable across $(()) and expr.
! 390: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 391: eval 'as_fn_arith ()
! 392: {
! 393: as_val=$(( $* ))
! 394: }'
! 395: else
! 396: as_fn_arith ()
! 397: {
! 398: as_val=`expr "$@" || test $? -eq 1`
! 399: }
! 400: fi # as_fn_arith
! 401:
! 402:
! 403: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 404: # ----------------------------------------
! 405: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 406: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 407: # script with STATUS, using 1 if that was 0.
! 408: as_fn_error ()
! 409: {
! 410: as_status=$1; test $as_status -eq 0 && as_status=1
! 411: if test "$4"; then
! 412: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 413: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 414: fi
! 415: $as_echo "$as_me: error: $2" >&2
! 416: as_fn_exit $as_status
! 417: } # as_fn_error
1.5 takayama 418:
1.6 ! takayama 419: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 420: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.5 takayama 421: as_expr=expr
422: else
423: as_expr=false
424: fi
425:
1.6 ! takayama 426: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.5 takayama 427: as_basename=basename
428: else
429: as_basename=false
430: fi
1.3 takayama 431:
1.6 ! takayama 432: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 433: as_dirname=dirname
! 434: else
! 435: as_dirname=false
! 436: fi
1.3 takayama 437:
1.6 ! takayama 438: as_me=`$as_basename -- "$0" ||
1.3 takayama 439: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440: X"$0" : 'X\(//\)$' \| \
1.6 ! takayama 441: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 442: $as_echo X/"$0" |
! 443: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 444: s//\1/
! 445: q
! 446: }
! 447: /^X\/\(\/\/\)$/{
! 448: s//\1/
! 449: q
! 450: }
! 451: /^X\/\(\/\).*/{
! 452: s//\1/
! 453: q
! 454: }
! 455: s/.*/./; q'`
1.5 takayama 456:
1.3 takayama 457: # Avoid depending upon Character Ranges.
458: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461: as_cr_digits='0123456789'
462: as_cr_alnum=$as_cr_Letters$as_cr_digits
463:
464:
1.6 ! takayama 465: as_lineno_1=$LINENO as_lineno_1a=$LINENO
! 466: as_lineno_2=$LINENO as_lineno_2a=$LINENO
! 467: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
! 468: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
! 469: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
! 470: sed -n '
! 471: p
! 472: /[$]LINENO/=
! 473: ' <$as_myself |
1.3 takayama 474: sed '
1.6 ! takayama 475: s/[$]LINENO.*/&-/
! 476: t lineno
! 477: b
! 478: :lineno
1.3 takayama 479: N
1.6 ! takayama 480: :loop
! 481: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.3 takayama 482: t loop
1.6 ! takayama 483: s/-\n.*//
1.3 takayama 484: ' >$as_me.lineno &&
1.6 ! takayama 485: chmod +x "$as_me.lineno" ||
! 486: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.3 takayama 487:
1.6 ! takayama 488: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
! 489: # already done that, so ensure we don't try to do so again and fall
! 490: # in an infinite loop. This has already happened in practice.
! 491: _as_can_reexec=no; export _as_can_reexec
1.3 takayama 492: # Don't try to exec as it changes $[0], causing all sort of problems
493: # (the dirname of $[0] is not the place where we might find the
1.6 ! takayama 494: # original and so on. Autoconf is especially sensitive to this).
! 495: . "./$as_me.lineno"
1.3 takayama 496: # Exit status is that of the last command.
497: exit
498: }
499:
1.6 ! takayama 500: ECHO_C= ECHO_N= ECHO_T=
! 501: case `echo -n x` in #(((((
! 502: -n*)
! 503: case `echo 'xy\c'` in
! 504: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 505: xy) ECHO_C='\c';;
! 506: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 507: ECHO_T=' ';;
! 508: esac;;
! 509: *)
! 510: ECHO_N='-n';;
1.3 takayama 511: esac
512:
1.6 ! takayama 513: rm -f conf$$ conf$$.exe conf$$.file
! 514: if test -d conf$$.dir; then
! 515: rm -f conf$$.dir/conf$$.file
1.3 takayama 516: else
1.6 ! takayama 517: rm -f conf$$.dir
! 518: mkdir conf$$.dir 2>/dev/null
1.3 takayama 519: fi
1.6 ! takayama 520: if (echo >conf$$.file) 2>/dev/null; then
! 521: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 522: as_ln_s='ln -s'
! 523: # ... but there are two gotchas:
! 524: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 525: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 526: # In both cases, we have to default to `cp -pR'.
! 527: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 528: as_ln_s='cp -pR'
! 529: elif ln conf$$.file conf$$ 2>/dev/null; then
! 530: as_ln_s=ln
1.3 takayama 531: else
1.6 ! takayama 532: as_ln_s='cp -pR'
1.3 takayama 533: fi
534: else
1.6 ! takayama 535: as_ln_s='cp -pR'
1.3 takayama 536: fi
1.6 ! takayama 537: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 538: rmdir conf$$.dir 2>/dev/null
1.3 takayama 539:
1.5 takayama 540: if mkdir -p . 2>/dev/null; then
1.6 ! takayama 541: as_mkdir_p='mkdir -p "$as_dir"'
1.5 takayama 542: else
543: test -d ./-p && rmdir ./-p
544: as_mkdir_p=false
545: fi
546:
1.6 ! takayama 547: as_test_x='test -x'
! 548: as_executable_p=as_fn_executable_p
1.3 takayama 549:
550: # Sed expression to map a string onto a valid CPP name.
1.5 takayama 551: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.3 takayama 552:
553: # Sed expression to map a string onto a valid variable name.
1.5 takayama 554: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.3 takayama 555:
556:
1.6 ! takayama 557: test -n "$DJDIR" || exec 7<&0 </dev/null
! 558: exec 6>&1
1.3 takayama 559:
560: # Name of the host.
1.6 ! takayama 561: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.3 takayama 562: # so uname gets run too.
563: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564:
565: #
566: # Initializations.
567: #
568: ac_default_prefix=/usr/local
1.6 ! takayama 569: ac_clean_files=
1.5 takayama 570: ac_config_libobj_dir=.
1.6 ! takayama 571: LIBOBJS=
1.3 takayama 572: cross_compiling=no
573: subdirs=
574: MFLAGS=
575: MAKEFLAGS=
576:
577: # Identity of this package.
578: PACKAGE_NAME=
579: PACKAGE_TARNAME=
580: PACKAGE_VERSION=
581: PACKAGE_STRING=
582: PACKAGE_BUGREPORT=
1.6 ! takayama 583: PACKAGE_URL=
1.3 takayama 584:
585: ac_unique_file="sm.c"
1.5 takayama 586: # Factoring default headers for most tests.
587: ac_includes_default="\
588: #include <stdio.h>
1.6 ! takayama 589: #ifdef HAVE_SYS_TYPES_H
1.5 takayama 590: # include <sys/types.h>
591: #endif
1.6 ! takayama 592: #ifdef HAVE_SYS_STAT_H
1.5 takayama 593: # include <sys/stat.h>
594: #endif
1.6 ! takayama 595: #ifdef STDC_HEADERS
1.5 takayama 596: # include <stdlib.h>
597: # include <stddef.h>
598: #else
1.6 ! takayama 599: # ifdef HAVE_STDLIB_H
1.5 takayama 600: # include <stdlib.h>
601: # endif
602: #endif
1.6 ! takayama 603: #ifdef HAVE_STRING_H
! 604: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.5 takayama 605: # include <memory.h>
606: # endif
607: # include <string.h>
608: #endif
1.6 ! takayama 609: #ifdef HAVE_STRINGS_H
1.5 takayama 610: # include <strings.h>
611: #endif
1.6 ! takayama 612: #ifdef HAVE_INTTYPES_H
1.5 takayama 613: # include <inttypes.h>
614: #endif
1.6 ! takayama 615: #ifdef HAVE_STDINT_H
! 616: # include <stdint.h>
! 617: #endif
! 618: #ifdef HAVE_UNISTD_H
1.5 takayama 619: # include <unistd.h>
620: #endif"
621:
1.6 ! takayama 622: ac_subst_vars='LTLIBOBJS
! 623: LIBOBJS
! 624: LIBS2
! 625: MDUTIL
! 626: AR
! 627: CFLAG2p
! 628: EGREP
! 629: GREP
! 630: CPP
! 631: CFLAG2
! 632: RANLIB
! 633: OBJEXT
! 634: EXEEXT
! 635: ac_ct_CC
! 636: CPPFLAGS
! 637: LDFLAGS
! 638: CFLAGS
! 639: CC
! 640: target_alias
! 641: host_alias
! 642: build_alias
! 643: LIBS
! 644: ECHO_T
! 645: ECHO_N
! 646: ECHO_C
! 647: DEFS
! 648: mandir
! 649: localedir
! 650: libdir
! 651: psdir
! 652: pdfdir
! 653: dvidir
! 654: htmldir
! 655: infodir
! 656: docdir
! 657: oldincludedir
! 658: includedir
! 659: localstatedir
! 660: sharedstatedir
! 661: sysconfdir
! 662: datadir
! 663: datarootdir
! 664: libexecdir
! 665: sbindir
! 666: bindir
! 667: program_transform_name
! 668: prefix
! 669: exec_prefix
! 670: PACKAGE_URL
! 671: PACKAGE_BUGREPORT
! 672: PACKAGE_STRING
! 673: PACKAGE_VERSION
! 674: PACKAGE_TARNAME
! 675: PACKAGE_NAME
! 676: PATH_SEPARATOR
! 677: SHELL'
1.5 takayama 678: ac_subst_files=''
1.6 ! takayama 679: ac_user_opts='
! 680: enable_option_checking
! 681: '
! 682: ac_precious_vars='build_alias
! 683: host_alias
! 684: target_alias
! 685: CC
! 686: CFLAGS
! 687: LDFLAGS
! 688: LIBS
! 689: CPPFLAGS
! 690: CPP'
! 691:
1.3 takayama 692:
693: # Initialize some variables set by options.
694: ac_init_help=
695: ac_init_version=false
1.6 ! takayama 696: ac_unrecognized_opts=
! 697: ac_unrecognized_sep=
1.3 takayama 698: # The variables have the same names as the options, with
699: # dashes changed to underlines.
700: cache_file=/dev/null
701: exec_prefix=NONE
702: no_create=
703: no_recursion=
704: prefix=NONE
705: program_prefix=NONE
706: program_suffix=NONE
707: program_transform_name=s,x,x,
708: silent=
709: site=
710: srcdir=
711: verbose=
712: x_includes=NONE
713: x_libraries=NONE
714:
715: # Installation directory options.
716: # These are left unexpanded so users can "make install exec_prefix=/foo"
717: # and all the variables that are supposed to be based on exec_prefix
718: # by default will actually change.
719: # Use braces instead of parens because sh, perl, etc. also accept them.
1.6 ! takayama 720: # (The list follows the same order as the GNU Coding Standards.)
1.3 takayama 721: bindir='${exec_prefix}/bin'
722: sbindir='${exec_prefix}/sbin'
723: libexecdir='${exec_prefix}/libexec'
1.6 ! takayama 724: datarootdir='${prefix}/share'
! 725: datadir='${datarootdir}'
1.3 takayama 726: sysconfdir='${prefix}/etc'
727: sharedstatedir='${prefix}/com'
728: localstatedir='${prefix}/var'
729: includedir='${prefix}/include'
730: oldincludedir='/usr/include'
1.6 ! takayama 731: docdir='${datarootdir}/doc/${PACKAGE}'
! 732: infodir='${datarootdir}/info'
! 733: htmldir='${docdir}'
! 734: dvidir='${docdir}'
! 735: pdfdir='${docdir}'
! 736: psdir='${docdir}'
! 737: libdir='${exec_prefix}/lib'
! 738: localedir='${datarootdir}/locale'
! 739: mandir='${datarootdir}/man'
1.3 takayama 740:
741: ac_prev=
1.6 ! takayama 742: ac_dashdash=
1.3 takayama 743: for ac_option
744: do
745: # If the previous option needs an argument, assign it.
746: if test -n "$ac_prev"; then
1.6 ! takayama 747: eval $ac_prev=\$ac_option
1.3 takayama 748: ac_prev=
749: continue
750: fi
751:
1.6 ! takayama 752: case $ac_option in
! 753: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 754: *=) ac_optarg= ;;
! 755: *) ac_optarg=yes ;;
! 756: esac
1.3 takayama 757:
758: # Accept the important Cygnus configure options, so we can diagnose typos.
759:
1.6 ! takayama 760: case $ac_dashdash$ac_option in
! 761: --)
! 762: ac_dashdash=yes ;;
1.3 takayama 763:
764: -bindir | --bindir | --bindi | --bind | --bin | --bi)
765: ac_prev=bindir ;;
766: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767: bindir=$ac_optarg ;;
768:
769: -build | --build | --buil | --bui | --bu)
770: ac_prev=build_alias ;;
771: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772: build_alias=$ac_optarg ;;
773:
774: -cache-file | --cache-file | --cache-fil | --cache-fi \
775: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776: ac_prev=cache_file ;;
777: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779: cache_file=$ac_optarg ;;
780:
781: --config-cache | -C)
782: cache_file=config.cache ;;
783:
1.6 ! takayama 784: -datadir | --datadir | --datadi | --datad)
1.3 takayama 785: ac_prev=datadir ;;
1.6 ! takayama 786: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.3 takayama 787: datadir=$ac_optarg ;;
788:
1.6 ! takayama 789: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 790: | --dataroo | --dataro | --datar)
! 791: ac_prev=datarootdir ;;
! 792: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 793: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 794: datarootdir=$ac_optarg ;;
! 795:
1.3 takayama 796: -disable-* | --disable-*)
1.6 ! takayama 797: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.3 takayama 798: # Reject names that are not valid shell variable names.
1.6 ! takayama 799: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 800: as_fn_error $? "invalid feature name: $ac_useropt"
! 801: ac_useropt_orig=$ac_useropt
! 802: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 803: case $ac_user_opts in
! 804: *"
! 805: "enable_$ac_useropt"
! 806: "*) ;;
! 807: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
! 808: ac_unrecognized_sep=', ';;
! 809: esac
! 810: eval enable_$ac_useropt=no ;;
! 811:
! 812: -docdir | --docdir | --docdi | --doc | --do)
! 813: ac_prev=docdir ;;
! 814: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 815: docdir=$ac_optarg ;;
! 816:
! 817: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 818: ac_prev=dvidir ;;
! 819: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 820: dvidir=$ac_optarg ;;
1.3 takayama 821:
822: -enable-* | --enable-*)
1.6 ! takayama 823: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.3 takayama 824: # Reject names that are not valid shell variable names.
1.6 ! takayama 825: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 826: as_fn_error $? "invalid feature name: $ac_useropt"
! 827: ac_useropt_orig=$ac_useropt
! 828: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 829: case $ac_user_opts in
! 830: *"
! 831: "enable_$ac_useropt"
! 832: "*) ;;
! 833: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
! 834: ac_unrecognized_sep=', ';;
1.3 takayama 835: esac
1.6 ! takayama 836: eval enable_$ac_useropt=\$ac_optarg ;;
1.3 takayama 837:
838: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840: | --exec | --exe | --ex)
841: ac_prev=exec_prefix ;;
842: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844: | --exec=* | --exe=* | --ex=*)
845: exec_prefix=$ac_optarg ;;
846:
847: -gas | --gas | --ga | --g)
848: # Obsolete; use --with-gas.
849: with_gas=yes ;;
850:
851: -help | --help | --hel | --he | -h)
852: ac_init_help=long ;;
853: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854: ac_init_help=recursive ;;
855: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856: ac_init_help=short ;;
857:
858: -host | --host | --hos | --ho)
859: ac_prev=host_alias ;;
860: -host=* | --host=* | --hos=* | --ho=*)
861: host_alias=$ac_optarg ;;
862:
1.6 ! takayama 863: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 864: ac_prev=htmldir ;;
! 865: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 866: | --ht=*)
! 867: htmldir=$ac_optarg ;;
! 868:
1.3 takayama 869: -includedir | --includedir | --includedi | --included | --include \
870: | --includ | --inclu | --incl | --inc)
871: ac_prev=includedir ;;
872: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873: | --includ=* | --inclu=* | --incl=* | --inc=*)
874: includedir=$ac_optarg ;;
875:
876: -infodir | --infodir | --infodi | --infod | --info | --inf)
877: ac_prev=infodir ;;
878: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879: infodir=$ac_optarg ;;
880:
881: -libdir | --libdir | --libdi | --libd)
882: ac_prev=libdir ;;
883: -libdir=* | --libdir=* | --libdi=* | --libd=*)
884: libdir=$ac_optarg ;;
885:
886: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887: | --libexe | --libex | --libe)
888: ac_prev=libexecdir ;;
889: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890: | --libexe=* | --libex=* | --libe=*)
891: libexecdir=$ac_optarg ;;
892:
1.6 ! takayama 893: -localedir | --localedir | --localedi | --localed | --locale)
! 894: ac_prev=localedir ;;
! 895: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 896: localedir=$ac_optarg ;;
! 897:
1.3 takayama 898: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.6 ! takayama 899: | --localstate | --localstat | --localsta | --localst | --locals)
1.3 takayama 900: ac_prev=localstatedir ;;
901: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.6 ! takayama 902: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.3 takayama 903: localstatedir=$ac_optarg ;;
904:
905: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906: ac_prev=mandir ;;
907: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908: mandir=$ac_optarg ;;
909:
910: -nfp | --nfp | --nf)
911: # Obsolete; use --without-fp.
912: with_fp=no ;;
913:
914: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915: | --no-cr | --no-c | -n)
916: no_create=yes ;;
917:
918: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920: no_recursion=yes ;;
921:
922: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924: | --oldin | --oldi | --old | --ol | --o)
925: ac_prev=oldincludedir ;;
926: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929: oldincludedir=$ac_optarg ;;
930:
931: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932: ac_prev=prefix ;;
933: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934: prefix=$ac_optarg ;;
935:
936: -program-prefix | --program-prefix | --program-prefi | --program-pref \
937: | --program-pre | --program-pr | --program-p)
938: ac_prev=program_prefix ;;
939: -program-prefix=* | --program-prefix=* | --program-prefi=* \
940: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941: program_prefix=$ac_optarg ;;
942:
943: -program-suffix | --program-suffix | --program-suffi | --program-suff \
944: | --program-suf | --program-su | --program-s)
945: ac_prev=program_suffix ;;
946: -program-suffix=* | --program-suffix=* | --program-suffi=* \
947: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948: program_suffix=$ac_optarg ;;
949:
950: -program-transform-name | --program-transform-name \
951: | --program-transform-nam | --program-transform-na \
952: | --program-transform-n | --program-transform- \
953: | --program-transform | --program-transfor \
954: | --program-transfo | --program-transf \
955: | --program-trans | --program-tran \
956: | --progr-tra | --program-tr | --program-t)
957: ac_prev=program_transform_name ;;
958: -program-transform-name=* | --program-transform-name=* \
959: | --program-transform-nam=* | --program-transform-na=* \
960: | --program-transform-n=* | --program-transform-=* \
961: | --program-transform=* | --program-transfor=* \
962: | --program-transfo=* | --program-transf=* \
963: | --program-trans=* | --program-tran=* \
964: | --progr-tra=* | --program-tr=* | --program-t=*)
965: program_transform_name=$ac_optarg ;;
966:
1.6 ! takayama 967: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 968: ac_prev=pdfdir ;;
! 969: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 970: pdfdir=$ac_optarg ;;
! 971:
! 972: -psdir | --psdir | --psdi | --psd | --ps)
! 973: ac_prev=psdir ;;
! 974: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 975: psdir=$ac_optarg ;;
! 976:
1.3 takayama 977: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978: | -silent | --silent | --silen | --sile | --sil)
979: silent=yes ;;
980:
981: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982: ac_prev=sbindir ;;
983: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984: | --sbi=* | --sb=*)
985: sbindir=$ac_optarg ;;
986:
987: -sharedstatedir | --sharedstatedir | --sharedstatedi \
988: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989: | --sharedst | --shareds | --shared | --share | --shar \
990: | --sha | --sh)
991: ac_prev=sharedstatedir ;;
992: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995: | --sha=* | --sh=*)
996: sharedstatedir=$ac_optarg ;;
997:
998: -site | --site | --sit)
999: ac_prev=site ;;
1000: -site=* | --site=* | --sit=*)
1001: site=$ac_optarg ;;
1002:
1003: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004: ac_prev=srcdir ;;
1005: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006: srcdir=$ac_optarg ;;
1007:
1008: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009: | --syscon | --sysco | --sysc | --sys | --sy)
1010: ac_prev=sysconfdir ;;
1011: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013: sysconfdir=$ac_optarg ;;
1014:
1015: -target | --target | --targe | --targ | --tar | --ta | --t)
1016: ac_prev=target_alias ;;
1017: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018: target_alias=$ac_optarg ;;
1019:
1020: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021: verbose=yes ;;
1022:
1023: -version | --version | --versio | --versi | --vers | -V)
1024: ac_init_version=: ;;
1025:
1026: -with-* | --with-*)
1.6 ! takayama 1027: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.3 takayama 1028: # Reject names that are not valid shell variable names.
1.6 ! takayama 1029: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1030: as_fn_error $? "invalid package name: $ac_useropt"
! 1031: ac_useropt_orig=$ac_useropt
! 1032: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1033: case $ac_user_opts in
! 1034: *"
! 1035: "with_$ac_useropt"
! 1036: "*) ;;
! 1037: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
! 1038: ac_unrecognized_sep=', ';;
1.3 takayama 1039: esac
1.6 ! takayama 1040: eval with_$ac_useropt=\$ac_optarg ;;
1.3 takayama 1041:
1042: -without-* | --without-*)
1.6 ! takayama 1043: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.3 takayama 1044: # Reject names that are not valid shell variable names.
1.6 ! takayama 1045: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1046: as_fn_error $? "invalid package name: $ac_useropt"
! 1047: ac_useropt_orig=$ac_useropt
! 1048: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1049: case $ac_user_opts in
! 1050: *"
! 1051: "with_$ac_useropt"
! 1052: "*) ;;
! 1053: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
! 1054: ac_unrecognized_sep=', ';;
! 1055: esac
! 1056: eval with_$ac_useropt=no ;;
1.3 takayama 1057:
1058: --x)
1059: # Obsolete; use --with-x.
1060: with_x=yes ;;
1061:
1062: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063: | --x-incl | --x-inc | --x-in | --x-i)
1064: ac_prev=x_includes ;;
1065: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067: x_includes=$ac_optarg ;;
1068:
1069: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071: ac_prev=x_libraries ;;
1072: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074: x_libraries=$ac_optarg ;;
1075:
1.6 ! takayama 1076: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1077: Try \`$0 --help' for more information"
1.3 takayama 1078: ;;
1079:
1080: *=*)
1081: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1082: # Reject names that are not valid shell variable names.
1.6 ! takayama 1083: case $ac_envvar in #(
! 1084: '' | [0-9]* | *[!_$as_cr_alnum]* )
! 1085: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
! 1086: esac
! 1087: eval $ac_envvar=\$ac_optarg
1.3 takayama 1088: export $ac_envvar ;;
1089:
1090: *)
1091: # FIXME: should be removed in autoconf 3.0.
1.6 ! takayama 1092: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.3 takayama 1093: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.6 ! takayama 1094: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 1095: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.3 takayama 1096: ;;
1097:
1098: esac
1099: done
1100:
1101: if test -n "$ac_prev"; then
1102: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.6 ! takayama 1103: as_fn_error $? "missing argument to $ac_option"
! 1104: fi
! 1105:
! 1106: if test -n "$ac_unrecognized_opts"; then
! 1107: case $enable_option_checking in
! 1108: no) ;;
! 1109: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
! 1110: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
! 1111: esac
1.3 takayama 1112: fi
1113:
1.6 ! takayama 1114: # Check all directory arguments for consistency.
! 1115: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1116: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1117: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1118: libdir localedir mandir
1.3 takayama 1119: do
1.6 ! takayama 1120: eval ac_val=\$$ac_var
! 1121: # Remove trailing slashes.
1.3 takayama 1122: case $ac_val in
1.6 ! takayama 1123: */ )
! 1124: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
! 1125: eval $ac_var=\$ac_val;;
1.3 takayama 1126: esac
1.6 ! takayama 1127: # Be sure to have absolute directory names.
1.3 takayama 1128: case $ac_val in
1.6 ! takayama 1129: [\\/$]* | ?:[\\/]* ) continue;;
! 1130: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.3 takayama 1131: esac
1.6 ! takayama 1132: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.3 takayama 1133: done
1134:
1135: # There might be people who depend on the old broken behavior: `$host'
1136: # used to hold the argument of --host etc.
1137: # FIXME: To remove some day.
1138: build=$build_alias
1139: host=$host_alias
1140: target=$target_alias
1141:
1142: # FIXME: To remove some day.
1143: if test "x$host_alias" != x; then
1144: if test "x$build_alias" = x; then
1145: cross_compiling=maybe
1146: elif test "x$build_alias" != "x$host_alias"; then
1147: cross_compiling=yes
1148: fi
1149: fi
1150:
1151: ac_tool_prefix=
1152: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153:
1154: test "$silent" = yes && exec 6>/dev/null
1155:
1156:
1.6 ! takayama 1157: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1158: ac_ls_di=`ls -di .` &&
! 1159: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1160: as_fn_error $? "working directory cannot be determined"
! 1161: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1162: as_fn_error $? "pwd does not report name of working directory"
! 1163:
! 1164:
1.3 takayama 1165: # Find the source files, if location was not specified.
1166: if test -z "$srcdir"; then
1167: ac_srcdir_defaulted=yes
1.6 ! takayama 1168: # Try the directory containing this script, then the parent directory.
! 1169: ac_confdir=`$as_dirname -- "$as_myself" ||
! 1170: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 1171: X"$as_myself" : 'X\(//\)[^/]' \| \
! 1172: X"$as_myself" : 'X\(//\)$' \| \
! 1173: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
! 1174: $as_echo X"$as_myself" |
! 1175: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1176: s//\1/
! 1177: q
! 1178: }
! 1179: /^X\(\/\/\)[^/].*/{
! 1180: s//\1/
! 1181: q
! 1182: }
! 1183: /^X\(\/\/\)$/{
! 1184: s//\1/
! 1185: q
! 1186: }
! 1187: /^X\(\/\).*/{
! 1188: s//\1/
! 1189: q
! 1190: }
! 1191: s/.*/./; q'`
1.3 takayama 1192: srcdir=$ac_confdir
1.6 ! takayama 1193: if test ! -r "$srcdir/$ac_unique_file"; then
1.3 takayama 1194: srcdir=..
1195: fi
1196: else
1197: ac_srcdir_defaulted=no
1198: fi
1.6 ! takayama 1199: if test ! -r "$srcdir/$ac_unique_file"; then
! 1200: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1201: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
! 1202: fi
! 1203: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1204: ac_abs_confdir=`(
! 1205: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
! 1206: pwd)`
! 1207: # When building in place, set srcdir=.
! 1208: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1209: srcdir=.
! 1210: fi
! 1211: # Remove unnecessary trailing slashes from srcdir.
! 1212: # Double slashes in file names in object file debugging info
! 1213: # mess up M-x gdb in Emacs.
! 1214: case $srcdir in
! 1215: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1216: esac
! 1217: for ac_var in $ac_precious_vars; do
! 1218: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1219: eval ac_env_${ac_var}_value=\$${ac_var}
! 1220: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1221: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1222: done
1.3 takayama 1223:
1224: #
1225: # Report the --help message.
1226: #
1227: if test "$ac_init_help" = "long"; then
1228: # Omit some internal or obsolete options to make the list less imposing.
1229: # This message is too long to be a string in the A/UX 3.1 sh.
1230: cat <<_ACEOF
1231: \`configure' configures this package to adapt to many kinds of systems.
1232:
1233: Usage: $0 [OPTION]... [VAR=VALUE]...
1234:
1235: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236: VAR=VALUE. See below for descriptions of some of the useful variables.
1237:
1238: Defaults for the options are specified in brackets.
1239:
1240: Configuration:
1241: -h, --help display this help and exit
1242: --help=short display options specific to this package
1243: --help=recursive display the short help of all the included packages
1244: -V, --version display version information and exit
1.6 ! takayama 1245: -q, --quiet, --silent do not print \`checking ...' messages
1.3 takayama 1246: --cache-file=FILE cache test results in FILE [disabled]
1247: -C, --config-cache alias for \`--cache-file=config.cache'
1248: -n, --no-create do not create output files
1249: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250:
1251: Installation directories:
1252: --prefix=PREFIX install architecture-independent files in PREFIX
1.6 ! takayama 1253: [$ac_default_prefix]
1.3 takayama 1254: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.6 ! takayama 1255: [PREFIX]
1.3 takayama 1256:
1257: By default, \`make install' will install all the files in
1258: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260: for instance \`--prefix=\$HOME'.
1261:
1262: For better control, use the options below.
1263:
1264: Fine tuning of the installation directories:
1.6 ! takayama 1265: --bindir=DIR user executables [EPREFIX/bin]
! 1266: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 1267: --libexecdir=DIR program executables [EPREFIX/libexec]
! 1268: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 1269: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 1270: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 1271: --libdir=DIR object code libraries [EPREFIX/lib]
! 1272: --includedir=DIR C header files [PREFIX/include]
! 1273: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 1274: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1275: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1276: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1277: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1278: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1279: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
! 1280: --htmldir=DIR html documentation [DOCDIR]
! 1281: --dvidir=DIR dvi documentation [DOCDIR]
! 1282: --pdfdir=DIR pdf documentation [DOCDIR]
! 1283: --psdir=DIR ps documentation [DOCDIR]
1.3 takayama 1284: _ACEOF
1285:
1286: cat <<\_ACEOF
1287: _ACEOF
1288: fi
1289:
1290: if test -n "$ac_init_help"; then
1291:
1292: cat <<\_ACEOF
1293:
1294: Some influential environment variables:
1295: CC C compiler command
1296: CFLAGS C compiler flags
1297: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1298: nonstandard directory <lib dir>
1.6 ! takayama 1299: LIBS libraries to pass to the linker, e.g. -l<library>
! 1300: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
! 1301: you have headers in a nonstandard directory <include dir>
1.5 takayama 1302: CPP C preprocessor
1.3 takayama 1303:
1304: Use these variables to override the choices made by `configure' or to help
1305: it to find libraries and programs with nonstandard names/locations.
1306:
1.6 ! takayama 1307: Report bugs to the package provider.
1.3 takayama 1308: _ACEOF
1.6 ! takayama 1309: ac_status=$?
1.3 takayama 1310: fi
1311:
1312: if test "$ac_init_help" = "recursive"; then
1313: # If there are subdirs, report their specific --help.
1314: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.6 ! takayama 1315: test -d "$ac_dir" ||
! 1316: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
! 1317: continue
1.3 takayama 1318: ac_builddir=.
1319:
1.6 ! takayama 1320: case "$ac_dir" in
! 1321: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1322: *)
! 1323: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 1324: # A ".." for each directory in $ac_dir_suffix.
! 1325: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 1326: case $ac_top_builddir_sub in
! 1327: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1328: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1329: esac ;;
! 1330: esac
! 1331: ac_abs_top_builddir=$ac_pwd
! 1332: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1333: # for backward compatibility:
! 1334: ac_top_builddir=$ac_top_build_prefix
1.3 takayama 1335:
1336: case $srcdir in
1.6 ! takayama 1337: .) # We are building in place.
1.3 takayama 1338: ac_srcdir=.
1.6 ! takayama 1339: ac_top_srcdir=$ac_top_builddir_sub
! 1340: ac_abs_top_srcdir=$ac_pwd ;;
! 1341: [\\/]* | ?:[\\/]* ) # Absolute name.
1.3 takayama 1342: ac_srcdir=$srcdir$ac_dir_suffix;
1.6 ! takayama 1343: ac_top_srcdir=$srcdir
! 1344: ac_abs_top_srcdir=$srcdir ;;
! 1345: *) # Relative name.
! 1346: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1347: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1348: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.5 takayama 1349: esac
1.6 ! takayama 1350: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.3 takayama 1351:
1.6 ! takayama 1352: cd "$ac_dir" || { ac_status=$?; continue; }
! 1353: # Check for guested configure.
! 1354: if test -f "$ac_srcdir/configure.gnu"; then
! 1355: echo &&
! 1356: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1357: elif test -f "$ac_srcdir/configure"; then
! 1358: echo &&
! 1359: $SHELL "$ac_srcdir/configure" --help=recursive
1.3 takayama 1360: else
1.6 ! takayama 1361: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 1362: fi || ac_status=$?
! 1363: cd "$ac_pwd" || { ac_status=$?; break; }
1.3 takayama 1364: done
1365: fi
1366:
1.6 ! takayama 1367: test -n "$ac_init_help" && exit $ac_status
1.3 takayama 1368: if $ac_init_version; then
1369: cat <<\_ACEOF
1.6 ! takayama 1370: configure
! 1371: generated by GNU Autoconf 2.69
1.3 takayama 1372:
1.6 ! takayama 1373: Copyright (C) 2012 Free Software Foundation, Inc.
1.3 takayama 1374: This configure script is free software; the Free Software Foundation
1375: gives unlimited permission to copy, distribute and modify it.
1376: _ACEOF
1.6 ! takayama 1377: exit
1.3 takayama 1378: fi
1379:
1.6 ! takayama 1380: ## ------------------------ ##
! 1381: ## Autoconf initialization. ##
! 1382: ## ------------------------ ##
! 1383:
! 1384: # ac_fn_c_try_compile LINENO
! 1385: # --------------------------
! 1386: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1387: ac_fn_c_try_compile ()
1.3 takayama 1388: {
1.6 ! takayama 1389: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1390: rm -f conftest.$ac_objext
! 1391: if { { ac_try="$ac_compile"
! 1392: case "(($ac_try" in
! 1393: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1394: *) ac_try_echo=$ac_try;;
! 1395: esac
! 1396: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1397: $as_echo "$ac_try_echo"; } >&5
! 1398: (eval "$ac_compile") 2>conftest.err
! 1399: ac_status=$?
! 1400: if test -s conftest.err; then
! 1401: grep -v '^ *+' conftest.err >conftest.er1
! 1402: cat conftest.er1 >&5
! 1403: mv -f conftest.er1 conftest.err
! 1404: fi
! 1405: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1406: test $ac_status = 0; } && {
! 1407: test -z "$ac_c_werror_flag" ||
! 1408: test ! -s conftest.err
! 1409: } && test -s conftest.$ac_objext; then :
! 1410: ac_retval=0
! 1411: else
! 1412: $as_echo "$as_me: failed program was:" >&5
! 1413: sed 's/^/| /' conftest.$ac_ext >&5
1.3 takayama 1414:
1.6 ! takayama 1415: ac_retval=1
! 1416: fi
! 1417: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1418: as_fn_set_status $ac_retval
1.3 takayama 1419:
1.6 ! takayama 1420: } # ac_fn_c_try_compile
1.3 takayama 1421:
1.6 ! takayama 1422: # ac_fn_c_try_link LINENO
! 1423: # -----------------------
! 1424: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1425: ac_fn_c_try_link ()
! 1426: {
! 1427: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1428: rm -f conftest.$ac_objext conftest$ac_exeext
! 1429: if { { ac_try="$ac_link"
! 1430: case "(($ac_try" in
! 1431: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1432: *) ac_try_echo=$ac_try;;
! 1433: esac
! 1434: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1435: $as_echo "$ac_try_echo"; } >&5
! 1436: (eval "$ac_link") 2>conftest.err
! 1437: ac_status=$?
! 1438: if test -s conftest.err; then
! 1439: grep -v '^ *+' conftest.err >conftest.er1
! 1440: cat conftest.er1 >&5
! 1441: mv -f conftest.er1 conftest.err
! 1442: fi
! 1443: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1444: test $ac_status = 0; } && {
! 1445: test -z "$ac_c_werror_flag" ||
! 1446: test ! -s conftest.err
! 1447: } && test -s conftest$ac_exeext && {
! 1448: test "$cross_compiling" = yes ||
! 1449: test -x conftest$ac_exeext
! 1450: }; then :
! 1451: ac_retval=0
! 1452: else
! 1453: $as_echo "$as_me: failed program was:" >&5
! 1454: sed 's/^/| /' conftest.$ac_ext >&5
1.3 takayama 1455:
1.6 ! takayama 1456: ac_retval=1
! 1457: fi
! 1458: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1459: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1460: # interfere with the next link command; also delete a directory that is
! 1461: # left behind by Apple's compiler. We do this before executing the actions.
! 1462: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1463: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1464: as_fn_set_status $ac_retval
! 1465:
! 1466: } # ac_fn_c_try_link
! 1467:
! 1468: # ac_fn_c_check_func LINENO FUNC VAR
! 1469: # ----------------------------------
! 1470: # Tests whether FUNC exists, setting the cache variable VAR accordingly
! 1471: ac_fn_c_check_func ()
! 1472: {
! 1473: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1475: $as_echo_n "checking for $2... " >&6; }
! 1476: if eval \${$3+:} false; then :
! 1477: $as_echo_n "(cached) " >&6
! 1478: else
! 1479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1480: /* end confdefs.h. */
! 1481: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
! 1482: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 1483: #define $2 innocuous_$2
1.3 takayama 1484:
1.6 ! takayama 1485: /* System header to define __stub macros and hopefully few prototypes,
! 1486: which can conflict with char $2 (); below.
! 1487: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 1488: <limits.h> exists even on freestanding compilers. */
1.3 takayama 1489:
1.6 ! takayama 1490: #ifdef __STDC__
! 1491: # include <limits.h>
! 1492: #else
! 1493: # include <assert.h>
! 1494: #endif
1.3 takayama 1495:
1.6 ! takayama 1496: #undef $2
! 1497:
! 1498: /* Override any GCC internal prototype to avoid an error.
! 1499: Use char because int might match the return type of a GCC
! 1500: builtin and then its argument prototype would still apply. */
! 1501: #ifdef __cplusplus
! 1502: extern "C"
! 1503: #endif
! 1504: char $2 ();
! 1505: /* The GNU C library defines this for functions which it implements
! 1506: to always fail with ENOSYS. Some functions are actually named
! 1507: something starting with __ and the normal name is an alias. */
! 1508: #if defined __stub_$2 || defined __stub___$2
! 1509: choke me
! 1510: #endif
! 1511:
! 1512: int
! 1513: main ()
! 1514: {
! 1515: return $2 ();
! 1516: ;
! 1517: return 0;
! 1518: }
! 1519: _ACEOF
! 1520: if ac_fn_c_try_link "$LINENO"; then :
! 1521: eval "$3=yes"
! 1522: else
! 1523: eval "$3=no"
! 1524: fi
! 1525: rm -f core conftest.err conftest.$ac_objext \
! 1526: conftest$ac_exeext conftest.$ac_ext
! 1527: fi
! 1528: eval ac_res=\$$3
! 1529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1530: $as_echo "$ac_res" >&6; }
! 1531: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1532:
! 1533: } # ac_fn_c_check_func
! 1534:
! 1535: # ac_fn_c_try_cpp LINENO
! 1536: # ----------------------
! 1537: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1538: ac_fn_c_try_cpp ()
! 1539: {
! 1540: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1541: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1542: case "(($ac_try" in
! 1543: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1544: *) ac_try_echo=$ac_try;;
! 1545: esac
! 1546: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1547: $as_echo "$ac_try_echo"; } >&5
! 1548: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1549: ac_status=$?
! 1550: if test -s conftest.err; then
! 1551: grep -v '^ *+' conftest.err >conftest.er1
! 1552: cat conftest.er1 >&5
! 1553: mv -f conftest.er1 conftest.err
! 1554: fi
! 1555: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1556: test $ac_status = 0; } > conftest.i && {
! 1557: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 1558: test ! -s conftest.err
! 1559: }; then :
! 1560: ac_retval=0
! 1561: else
! 1562: $as_echo "$as_me: failed program was:" >&5
! 1563: sed 's/^/| /' conftest.$ac_ext >&5
! 1564:
! 1565: ac_retval=1
! 1566: fi
! 1567: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1568: as_fn_set_status $ac_retval
! 1569:
! 1570: } # ac_fn_c_try_cpp
! 1571:
! 1572: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
! 1573: # -------------------------------------------------------
! 1574: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
! 1575: # the include files in INCLUDES and setting the cache variable VAR
! 1576: # accordingly.
! 1577: ac_fn_c_check_header_mongrel ()
! 1578: {
! 1579: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1580: if eval \${$3+:} false; then :
! 1581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1582: $as_echo_n "checking for $2... " >&6; }
! 1583: if eval \${$3+:} false; then :
! 1584: $as_echo_n "(cached) " >&6
! 1585: fi
! 1586: eval ac_res=\$$3
! 1587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1588: $as_echo "$ac_res" >&6; }
! 1589: else
! 1590: # Is the header compilable?
! 1591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
! 1592: $as_echo_n "checking $2 usability... " >&6; }
! 1593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1594: /* end confdefs.h. */
! 1595: $4
! 1596: #include <$2>
! 1597: _ACEOF
! 1598: if ac_fn_c_try_compile "$LINENO"; then :
! 1599: ac_header_compiler=yes
! 1600: else
! 1601: ac_header_compiler=no
! 1602: fi
! 1603: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
! 1605: $as_echo "$ac_header_compiler" >&6; }
! 1606:
! 1607: # Is the header present?
! 1608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
! 1609: $as_echo_n "checking $2 presence... " >&6; }
! 1610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1611: /* end confdefs.h. */
! 1612: #include <$2>
! 1613: _ACEOF
! 1614: if ac_fn_c_try_cpp "$LINENO"; then :
! 1615: ac_header_preproc=yes
! 1616: else
! 1617: ac_header_preproc=no
! 1618: fi
! 1619: rm -f conftest.err conftest.i conftest.$ac_ext
! 1620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
! 1621: $as_echo "$ac_header_preproc" >&6; }
! 1622:
! 1623: # So? What about this header?
! 1624: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
! 1625: yes:no: )
! 1626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
! 1627: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 1628: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 1629: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 1630: ;;
! 1631: no:yes:* )
! 1632: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
! 1633: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
! 1634: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
! 1635: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
! 1636: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
! 1637: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
! 1638: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
! 1639: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
! 1640: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 1641: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 1642: ;;
! 1643: esac
! 1644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1645: $as_echo_n "checking for $2... " >&6; }
! 1646: if eval \${$3+:} false; then :
! 1647: $as_echo_n "(cached) " >&6
! 1648: else
! 1649: eval "$3=\$ac_header_compiler"
! 1650: fi
! 1651: eval ac_res=\$$3
! 1652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1653: $as_echo "$ac_res" >&6; }
! 1654: fi
! 1655: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1656:
! 1657: } # ac_fn_c_check_header_mongrel
! 1658:
! 1659: # ac_fn_c_try_run LINENO
! 1660: # ----------------------
! 1661: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
! 1662: # that executables *can* be run.
! 1663: ac_fn_c_try_run ()
! 1664: {
! 1665: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1666: if { { ac_try="$ac_link"
! 1667: case "(($ac_try" in
! 1668: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1669: *) ac_try_echo=$ac_try;;
! 1670: esac
! 1671: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1672: $as_echo "$ac_try_echo"; } >&5
! 1673: (eval "$ac_link") 2>&5
! 1674: ac_status=$?
! 1675: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1676: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1677: { { case "(($ac_try" in
! 1678: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1679: *) ac_try_echo=$ac_try;;
! 1680: esac
! 1681: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1682: $as_echo "$ac_try_echo"; } >&5
! 1683: (eval "$ac_try") 2>&5
! 1684: ac_status=$?
! 1685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1686: test $ac_status = 0; }; }; then :
! 1687: ac_retval=0
! 1688: else
! 1689: $as_echo "$as_me: program exited with status $ac_status" >&5
! 1690: $as_echo "$as_me: failed program was:" >&5
! 1691: sed 's/^/| /' conftest.$ac_ext >&5
! 1692:
! 1693: ac_retval=$ac_status
! 1694: fi
! 1695: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1696: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1697: as_fn_set_status $ac_retval
! 1698:
! 1699: } # ac_fn_c_try_run
! 1700:
! 1701: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
! 1702: # -------------------------------------------------------
! 1703: # Tests whether HEADER exists and can be compiled using the include files in
! 1704: # INCLUDES, setting the cache variable VAR accordingly.
! 1705: ac_fn_c_check_header_compile ()
! 1706: {
! 1707: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1709: $as_echo_n "checking for $2... " >&6; }
! 1710: if eval \${$3+:} false; then :
! 1711: $as_echo_n "(cached) " >&6
! 1712: else
! 1713: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1714: /* end confdefs.h. */
! 1715: $4
! 1716: #include <$2>
! 1717: _ACEOF
! 1718: if ac_fn_c_try_compile "$LINENO"; then :
! 1719: eval "$3=yes"
! 1720: else
! 1721: eval "$3=no"
! 1722: fi
! 1723: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1724: fi
! 1725: eval ac_res=\$$3
! 1726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1727: $as_echo "$ac_res" >&6; }
! 1728: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1729:
! 1730: } # ac_fn_c_check_header_compile
! 1731: cat >config.log <<_ACEOF
! 1732: This file contains any messages produced by compilers while
! 1733: running configure, to aid debugging if configure makes a mistake.
! 1734:
! 1735: It was created by $as_me, which was
! 1736: generated by GNU Autoconf 2.69. Invocation command line was
! 1737:
! 1738: $ $0 $@
! 1739:
! 1740: _ACEOF
! 1741: exec 5>>config.log
! 1742: {
! 1743: cat <<_ASUNAME
! 1744: ## --------- ##
! 1745: ## Platform. ##
! 1746: ## --------- ##
! 1747:
! 1748: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 1749: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 1750: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 1751: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 1752: uname -v = `(uname -v) 2>/dev/null || echo unknown`
! 1753:
! 1754: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
! 1755: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
! 1756:
! 1757: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
! 1758: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
! 1759: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
! 1760: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
! 1761: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
! 1762: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
! 1763: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
! 1764:
! 1765: _ASUNAME
! 1766:
! 1767: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1768: for as_dir in $PATH
! 1769: do
! 1770: IFS=$as_save_IFS
! 1771: test -z "$as_dir" && as_dir=.
! 1772: $as_echo "PATH: $as_dir"
! 1773: done
! 1774: IFS=$as_save_IFS
! 1775:
! 1776: } >&5
! 1777:
! 1778: cat >&5 <<_ACEOF
1.3 takayama 1779:
1780:
1781: ## ----------- ##
1782: ## Core tests. ##
1783: ## ----------- ##
1784:
1785: _ACEOF
1786:
1787:
1788: # Keep a trace of the command line.
1789: # Strip out --no-create and --no-recursion so they do not pile up.
1.5 takayama 1790: # Strip out --silent because we don't want to record it for future runs.
1.3 takayama 1791: # Also quote any args containing shell meta-characters.
1.5 takayama 1792: # Make two passes to allow for proper duplicate-argument suppression.
1.3 takayama 1793: ac_configure_args=
1.5 takayama 1794: ac_configure_args0=
1795: ac_configure_args1=
1796: ac_must_keep_next=false
1797: for ac_pass in 1 2
1.3 takayama 1798: do
1.5 takayama 1799: for ac_arg
1800: do
1801: case $ac_arg in
1802: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804: | -silent | --silent | --silen | --sile | --sil)
1805: continue ;;
1.6 ! takayama 1806: *\'*)
! 1807: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.5 takayama 1808: esac
1809: case $ac_pass in
1.6 ! takayama 1810: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.5 takayama 1811: 2)
1.6 ! takayama 1812: as_fn_append ac_configure_args1 " '$ac_arg'"
1.5 takayama 1813: if test $ac_must_keep_next = true; then
1814: ac_must_keep_next=false # Got value, back to normal.
1815: else
1816: case $ac_arg in
1817: *=* | --config-cache | -C | -disable-* | --disable-* \
1818: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820: | -with-* | --with-* | -without-* | --without-* | --x)
1821: case "$ac_configure_args0 " in
1822: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823: esac
1824: ;;
1825: -* ) ac_must_keep_next=true ;;
1826: esac
1827: fi
1.6 ! takayama 1828: as_fn_append ac_configure_args " '$ac_arg'"
1.5 takayama 1829: ;;
1830: esac
1831: done
1.3 takayama 1832: done
1.6 ! takayama 1833: { ac_configure_args0=; unset ac_configure_args0;}
! 1834: { ac_configure_args1=; unset ac_configure_args1;}
1.3 takayama 1835:
1836: # When interrupted or exit'd, cleanup temporary files, and complete
1837: # config.log. We remove comments because anyway the quotes in there
1838: # would cause problems or look ugly.
1.6 ! takayama 1839: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1840: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.3 takayama 1841: trap 'exit_status=$?
1842: # Save into config.log some information that might help in debugging.
1843: {
1844: echo
1.5 takayama 1845:
1.6 ! takayama 1846: $as_echo "## ---------------- ##
1.3 takayama 1847: ## Cache variables. ##
1.6 ! takayama 1848: ## ---------------- ##"
1.3 takayama 1849: echo
1850: # The following way of writing the cache mishandles newlines in values,
1.6 ! takayama 1851: (
! 1852: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1853: eval ac_val=\$$ac_var
! 1854: case $ac_val in #(
! 1855: *${as_nl}*)
! 1856: case $ac_var in #(
! 1857: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 1858: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 1859: esac
! 1860: case $ac_var in #(
! 1861: _ | IFS | as_nl) ;; #(
! 1862: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 1863: *) { eval $ac_var=; unset $ac_var;} ;;
! 1864: esac ;;
! 1865: esac
! 1866: done
1.3 takayama 1867: (set) 2>&1 |
1.6 ! takayama 1868: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1869: *${as_nl}ac_space=\ *)
1.3 takayama 1870: sed -n \
1.6 ! takayama 1871: "s/'\''/'\''\\\\'\'''\''/g;
! 1872: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1873: ;; #(
1.3 takayama 1874: *)
1.6 ! takayama 1875: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.3 takayama 1876: ;;
1.6 ! takayama 1877: esac |
! 1878: sort
! 1879: )
1.3 takayama 1880: echo
1.5 takayama 1881:
1.6 ! takayama 1882: $as_echo "## ----------------- ##
1.5 takayama 1883: ## Output variables. ##
1.6 ! takayama 1884: ## ----------------- ##"
1.5 takayama 1885: echo
1886: for ac_var in $ac_subst_vars
1887: do
1.6 ! takayama 1888: eval ac_val=\$$ac_var
! 1889: case $ac_val in
! 1890: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1891: esac
! 1892: $as_echo "$ac_var='\''$ac_val'\''"
1.5 takayama 1893: done | sort
1894: echo
1895:
1896: if test -n "$ac_subst_files"; then
1.6 ! takayama 1897: $as_echo "## ------------------- ##
! 1898: ## File substitutions. ##
! 1899: ## ------------------- ##"
1.5 takayama 1900: echo
1901: for ac_var in $ac_subst_files
1902: do
1.6 ! takayama 1903: eval ac_val=\$$ac_var
! 1904: case $ac_val in
! 1905: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1906: esac
! 1907: $as_echo "$ac_var='\''$ac_val'\''"
1.5 takayama 1908: done | sort
1909: echo
1910: fi
1911:
1.3 takayama 1912: if test -s confdefs.h; then
1.6 ! takayama 1913: $as_echo "## ----------- ##
1.3 takayama 1914: ## confdefs.h. ##
1.6 ! takayama 1915: ## ----------- ##"
1.3 takayama 1916: echo
1.6 ! takayama 1917: cat confdefs.h
1.3 takayama 1918: echo
1919: fi
1920: test "$ac_signal" != 0 &&
1.6 ! takayama 1921: $as_echo "$as_me: caught signal $ac_signal"
! 1922: $as_echo "$as_me: exit $exit_status"
1.3 takayama 1923: } >&5
1.6 ! takayama 1924: rm -f core *.core core.conftest.* &&
! 1925: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.3 takayama 1926: exit $exit_status
1.6 ! takayama 1927: ' 0
1.3 takayama 1928: for ac_signal in 1 2 13 15; do
1.6 ! takayama 1929: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.3 takayama 1930: done
1931: ac_signal=0
1932:
1933: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.6 ! takayama 1934: rm -f -r conftest* confdefs.h
! 1935:
! 1936: $as_echo "/* confdefs.h */" > confdefs.h
1.3 takayama 1937:
1938: # Predefined preprocessor variables.
1939:
1940: cat >>confdefs.h <<_ACEOF
1941: #define PACKAGE_NAME "$PACKAGE_NAME"
1942: _ACEOF
1943:
1944: cat >>confdefs.h <<_ACEOF
1945: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946: _ACEOF
1947:
1948: cat >>confdefs.h <<_ACEOF
1949: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950: _ACEOF
1951:
1952: cat >>confdefs.h <<_ACEOF
1953: #define PACKAGE_STRING "$PACKAGE_STRING"
1954: _ACEOF
1955:
1.6 ! takayama 1956: cat >>confdefs.h <<_ACEOF
! 1957: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 1958: _ACEOF
1.3 takayama 1959:
1960: cat >>confdefs.h <<_ACEOF
1.6 ! takayama 1961: #define PACKAGE_URL "$PACKAGE_URL"
1.3 takayama 1962: _ACEOF
1963:
1964:
1965: # Let the site file select an alternate cache file if it wants to.
1.6 ! takayama 1966: # Prefer an explicitly selected file to automatically selected ones.
! 1967: ac_site_file1=NONE
! 1968: ac_site_file2=NONE
! 1969: if test -n "$CONFIG_SITE"; then
! 1970: # We do not want a PATH search for config.site.
! 1971: case $CONFIG_SITE in #((
! 1972: -*) ac_site_file1=./$CONFIG_SITE;;
! 1973: */*) ac_site_file1=$CONFIG_SITE;;
! 1974: *) ac_site_file1=./$CONFIG_SITE;;
! 1975: esac
! 1976: elif test "x$prefix" != xNONE; then
! 1977: ac_site_file1=$prefix/share/config.site
! 1978: ac_site_file2=$prefix/etc/config.site
! 1979: else
! 1980: ac_site_file1=$ac_default_prefix/share/config.site
! 1981: ac_site_file2=$ac_default_prefix/etc/config.site
1.3 takayama 1982: fi
1.6 ! takayama 1983: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
! 1984: do
! 1985: test "x$ac_site_file" = xNONE && continue
! 1986: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
! 1987: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
! 1988: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.3 takayama 1989: sed 's/^/| /' "$ac_site_file" >&5
1.6 ! takayama 1990: . "$ac_site_file" \
! 1991: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 1992: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 1993: as_fn_error $? "failed to load site script $ac_site_file
! 1994: See \`config.log' for more details" "$LINENO" 5; }
1.3 takayama 1995: fi
1996: done
1997:
1998: if test -r "$cache_file"; then
1.6 ! takayama 1999: # Some versions of bash will fail to source /dev/null (special files
! 2000: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
! 2001: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
! 2002: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
! 2003: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.3 takayama 2004: case $cache_file in
1.6 ! takayama 2005: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 2006: *) . "./$cache_file";;
1.3 takayama 2007: esac
2008: fi
2009: else
1.6 ! takayama 2010: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
! 2011: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.3 takayama 2012: >$cache_file
2013: fi
2014:
2015: # Check that the precious variables saved in the cache have kept the same
2016: # value.
2017: ac_cache_corrupted=false
1.6 ! takayama 2018: for ac_var in $ac_precious_vars; do
1.3 takayama 2019: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020: eval ac_new_set=\$ac_env_${ac_var}_set
1.6 ! takayama 2021: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 2022: eval ac_new_val=\$ac_env_${ac_var}_value
1.3 takayama 2023: case $ac_old_set,$ac_new_set in
2024: set,)
1.6 ! takayama 2025: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 2026: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.3 takayama 2027: ac_cache_corrupted=: ;;
2028: ,set)
1.6 ! takayama 2029: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
! 2030: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.3 takayama 2031: ac_cache_corrupted=: ;;
2032: ,);;
2033: *)
2034: if test "x$ac_old_val" != "x$ac_new_val"; then
1.6 ! takayama 2035: # differences in whitespace do not lead to failure.
! 2036: ac_old_val_w=`echo x $ac_old_val`
! 2037: ac_new_val_w=`echo x $ac_new_val`
! 2038: if test "$ac_old_val_w" != "$ac_new_val_w"; then
! 2039: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
! 2040: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 2041: ac_cache_corrupted=:
! 2042: else
! 2043: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
! 2044: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
! 2045: eval $ac_var=\$ac_old_val
! 2046: fi
! 2047: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
! 2048: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
! 2049: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
! 2050: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.3 takayama 2051: fi;;
2052: esac
2053: # Pass precious variables to config.status.
2054: if test "$ac_new_set" = set; then
2055: case $ac_new_val in
1.6 ! takayama 2056: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.3 takayama 2057: *) ac_arg=$ac_var=$ac_new_val ;;
2058: esac
2059: case " $ac_configure_args " in
2060: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.6 ! takayama 2061: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.3 takayama 2062: esac
2063: fi
2064: done
2065: if $ac_cache_corrupted; then
1.6 ! takayama 2066: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2067: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2068: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
! 2069: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 2070: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
! 2071: fi
! 2072: ## -------------------- ##
! 2073: ## Main body of script. ##
! 2074: ## -------------------- ##
1.3 takayama 2075:
2076: ac_ext=c
2077: ac_cpp='$CPP $CPPFLAGS'
2078: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081:
2082:
2083: ac_ext=c
2084: ac_cpp='$CPP $CPPFLAGS'
2085: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088: if test -n "$ac_tool_prefix"; then
2089: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2090: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.6 ! takayama 2091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2092: $as_echo_n "checking for $ac_word... " >&6; }
! 2093: if ${ac_cv_prog_CC+:} false; then :
! 2094: $as_echo_n "(cached) " >&6
1.3 takayama 2095: else
2096: if test -n "$CC"; then
2097: ac_cv_prog_CC="$CC" # Let the user override the test.
2098: else
2099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100: for as_dir in $PATH
2101: do
2102: IFS=$as_save_IFS
2103: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2104: for ac_exec_ext in '' $ac_executable_extensions; do
! 2105: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2106: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.6 ! takayama 2107: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2108: break 2
2109: fi
2110: done
1.6 ! takayama 2111: done
! 2112: IFS=$as_save_IFS
1.3 takayama 2113:
2114: fi
2115: fi
2116: CC=$ac_cv_prog_CC
2117: if test -n "$CC"; then
1.6 ! takayama 2118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 2119: $as_echo "$CC" >&6; }
1.3 takayama 2120: else
1.6 ! takayama 2121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2122: $as_echo "no" >&6; }
1.3 takayama 2123: fi
2124:
1.6 ! takayama 2125:
1.3 takayama 2126: fi
2127: if test -z "$ac_cv_prog_CC"; then
2128: ac_ct_CC=$CC
2129: # Extract the first word of "gcc", so it can be a program name with args.
2130: set dummy gcc; ac_word=$2
1.6 ! takayama 2131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2132: $as_echo_n "checking for $ac_word... " >&6; }
! 2133: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 2134: $as_echo_n "(cached) " >&6
1.3 takayama 2135: else
2136: if test -n "$ac_ct_CC"; then
2137: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138: else
2139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140: for as_dir in $PATH
2141: do
2142: IFS=$as_save_IFS
2143: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2144: for ac_exec_ext in '' $ac_executable_extensions; do
! 2145: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2146: ac_cv_prog_ac_ct_CC="gcc"
1.6 ! takayama 2147: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2148: break 2
2149: fi
2150: done
1.6 ! takayama 2151: done
! 2152: IFS=$as_save_IFS
1.3 takayama 2153:
2154: fi
2155: fi
2156: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157: if test -n "$ac_ct_CC"; then
1.6 ! takayama 2158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 2159: $as_echo "$ac_ct_CC" >&6; }
1.3 takayama 2160: else
1.6 ! takayama 2161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2162: $as_echo "no" >&6; }
1.3 takayama 2163: fi
2164:
1.6 ! takayama 2165: if test "x$ac_ct_CC" = x; then
! 2166: CC=""
! 2167: else
! 2168: case $cross_compiling:$ac_tool_warned in
! 2169: yes:)
! 2170: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2171: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 2172: ac_tool_warned=yes ;;
! 2173: esac
! 2174: CC=$ac_ct_CC
! 2175: fi
1.3 takayama 2176: else
2177: CC="$ac_cv_prog_CC"
2178: fi
2179:
2180: if test -z "$CC"; then
1.6 ! takayama 2181: if test -n "$ac_tool_prefix"; then
! 2182: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.3 takayama 2183: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.6 ! takayama 2184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2185: $as_echo_n "checking for $ac_word... " >&6; }
! 2186: if ${ac_cv_prog_CC+:} false; then :
! 2187: $as_echo_n "(cached) " >&6
1.3 takayama 2188: else
2189: if test -n "$CC"; then
2190: ac_cv_prog_CC="$CC" # Let the user override the test.
2191: else
2192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193: for as_dir in $PATH
2194: do
2195: IFS=$as_save_IFS
2196: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2197: for ac_exec_ext in '' $ac_executable_extensions; do
! 2198: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2199: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.6 ! takayama 2200: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2201: break 2
2202: fi
2203: done
1.6 ! takayama 2204: done
! 2205: IFS=$as_save_IFS
1.3 takayama 2206:
2207: fi
2208: fi
2209: CC=$ac_cv_prog_CC
2210: if test -n "$CC"; then
1.6 ! takayama 2211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 2212: $as_echo "$CC" >&6; }
1.3 takayama 2213: else
1.6 ! takayama 2214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2215: $as_echo "no" >&6; }
1.3 takayama 2216: fi
2217:
1.6 ! takayama 2218:
1.3 takayama 2219: fi
2220: fi
2221: if test -z "$CC"; then
2222: # Extract the first word of "cc", so it can be a program name with args.
2223: set dummy cc; ac_word=$2
1.6 ! takayama 2224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2225: $as_echo_n "checking for $ac_word... " >&6; }
! 2226: if ${ac_cv_prog_CC+:} false; then :
! 2227: $as_echo_n "(cached) " >&6
1.3 takayama 2228: else
2229: if test -n "$CC"; then
2230: ac_cv_prog_CC="$CC" # Let the user override the test.
2231: else
2232: ac_prog_rejected=no
2233: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234: for as_dir in $PATH
2235: do
2236: IFS=$as_save_IFS
2237: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2238: for ac_exec_ext in '' $ac_executable_extensions; do
! 2239: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2240: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2241: ac_prog_rejected=yes
2242: continue
2243: fi
2244: ac_cv_prog_CC="cc"
1.6 ! takayama 2245: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2246: break 2
2247: fi
2248: done
1.6 ! takayama 2249: done
! 2250: IFS=$as_save_IFS
1.3 takayama 2251:
2252: if test $ac_prog_rejected = yes; then
2253: # We found a bogon in the path, so make sure we never use it.
2254: set dummy $ac_cv_prog_CC
2255: shift
2256: if test $# != 0; then
2257: # We chose a different compiler from the bogus one.
2258: # However, it has the same basename, so the bogon will be chosen
2259: # first if we set CC to just the basename; use the full file name.
2260: shift
1.5 takayama 2261: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.3 takayama 2262: fi
2263: fi
2264: fi
2265: fi
2266: CC=$ac_cv_prog_CC
2267: if test -n "$CC"; then
1.6 ! takayama 2268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 2269: $as_echo "$CC" >&6; }
1.3 takayama 2270: else
1.6 ! takayama 2271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2272: $as_echo "no" >&6; }
1.3 takayama 2273: fi
2274:
1.6 ! takayama 2275:
1.3 takayama 2276: fi
2277: if test -z "$CC"; then
2278: if test -n "$ac_tool_prefix"; then
1.6 ! takayama 2279: for ac_prog in cl.exe
1.3 takayama 2280: do
2281: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.6 ! takayama 2283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2284: $as_echo_n "checking for $ac_word... " >&6; }
! 2285: if ${ac_cv_prog_CC+:} false; then :
! 2286: $as_echo_n "(cached) " >&6
1.3 takayama 2287: else
2288: if test -n "$CC"; then
2289: ac_cv_prog_CC="$CC" # Let the user override the test.
2290: else
2291: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292: for as_dir in $PATH
2293: do
2294: IFS=$as_save_IFS
2295: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2296: for ac_exec_ext in '' $ac_executable_extensions; do
! 2297: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2298: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.6 ! takayama 2299: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2300: break 2
2301: fi
2302: done
1.6 ! takayama 2303: done
! 2304: IFS=$as_save_IFS
1.3 takayama 2305:
2306: fi
2307: fi
2308: CC=$ac_cv_prog_CC
2309: if test -n "$CC"; then
1.6 ! takayama 2310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 2311: $as_echo "$CC" >&6; }
1.3 takayama 2312: else
1.6 ! takayama 2313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2314: $as_echo "no" >&6; }
1.3 takayama 2315: fi
2316:
1.6 ! takayama 2317:
1.3 takayama 2318: test -n "$CC" && break
2319: done
2320: fi
2321: if test -z "$CC"; then
2322: ac_ct_CC=$CC
1.6 ! takayama 2323: for ac_prog in cl.exe
1.3 takayama 2324: do
2325: # Extract the first word of "$ac_prog", so it can be a program name with args.
2326: set dummy $ac_prog; ac_word=$2
1.6 ! takayama 2327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2328: $as_echo_n "checking for $ac_word... " >&6; }
! 2329: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 2330: $as_echo_n "(cached) " >&6
1.3 takayama 2331: else
2332: if test -n "$ac_ct_CC"; then
2333: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334: else
2335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336: for as_dir in $PATH
2337: do
2338: IFS=$as_save_IFS
2339: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2340: for ac_exec_ext in '' $ac_executable_extensions; do
! 2341: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2342: ac_cv_prog_ac_ct_CC="$ac_prog"
1.6 ! takayama 2343: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2344: break 2
2345: fi
2346: done
1.6 ! takayama 2347: done
! 2348: IFS=$as_save_IFS
1.3 takayama 2349:
2350: fi
2351: fi
2352: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2353: if test -n "$ac_ct_CC"; then
1.6 ! takayama 2354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 2355: $as_echo "$ac_ct_CC" >&6; }
1.3 takayama 2356: else
1.6 ! takayama 2357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2358: $as_echo "no" >&6; }
1.3 takayama 2359: fi
2360:
1.6 ! takayama 2361:
1.3 takayama 2362: test -n "$ac_ct_CC" && break
2363: done
2364:
1.6 ! takayama 2365: if test "x$ac_ct_CC" = x; then
! 2366: CC=""
! 2367: else
! 2368: case $cross_compiling:$ac_tool_warned in
! 2369: yes:)
! 2370: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2371: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 2372: ac_tool_warned=yes ;;
! 2373: esac
! 2374: CC=$ac_ct_CC
! 2375: fi
1.3 takayama 2376: fi
2377:
2378: fi
2379:
2380:
1.6 ! takayama 2381: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2382: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2383: as_fn_error $? "no acceptable C compiler found in \$PATH
! 2384: See \`config.log' for more details" "$LINENO" 5; }
1.3 takayama 2385:
2386: # Provide some information about the compiler.
1.6 ! takayama 2387: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
! 2388: set X $ac_compile
! 2389: ac_compiler=$2
! 2390: for ac_option in --version -v -V -qversion; do
! 2391: { { ac_try="$ac_compiler $ac_option >&5"
! 2392: case "(($ac_try" in
! 2393: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2394: *) ac_try_echo=$ac_try;;
! 2395: esac
! 2396: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2397: $as_echo "$ac_try_echo"; } >&5
! 2398: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.3 takayama 2399: ac_status=$?
1.6 ! takayama 2400: if test -s conftest.err; then
! 2401: sed '10a\
! 2402: ... rest of stderr output deleted ...
! 2403: 10q' conftest.err >conftest.er1
! 2404: cat conftest.er1 >&5
! 2405: fi
! 2406: rm -f conftest.er1 conftest.err
! 2407: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2408: test $ac_status = 0; }
! 2409: done
1.3 takayama 2410:
1.6 ! takayama 2411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 2412: /* end confdefs.h. */
1.3 takayama 2413:
2414: int
2415: main ()
2416: {
2417:
2418: ;
2419: return 0;
2420: }
2421: _ACEOF
2422: ac_clean_files_save=$ac_clean_files
1.6 ! takayama 2423: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.3 takayama 2424: # Try to create an executable without -o first, disregard a.out.
2425: # It will help us diagnose broken compilers, and finding out an intuition
2426: # of exeext.
1.6 ! takayama 2427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
! 2428: $as_echo_n "checking whether the C compiler works... " >&6; }
! 2429: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2430:
! 2431: # The possible output files:
! 2432: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
! 2433:
! 2434: ac_rmfiles=
! 2435: for ac_file in $ac_files
! 2436: do
! 2437: case $ac_file in
! 2438: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
! 2439: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 2440: esac
! 2441: done
! 2442: rm -f $ac_rmfiles
! 2443:
! 2444: if { { ac_try="$ac_link_default"
! 2445: case "(($ac_try" in
! 2446: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2447: *) ac_try_echo=$ac_try;;
! 2448: esac
! 2449: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2450: $as_echo "$ac_try_echo"; } >&5
! 2451: (eval "$ac_link_default") 2>&5
! 2452: ac_status=$?
! 2453: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2454: test $ac_status = 0; }; then :
! 2455: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 2456: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 2457: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 2458: # so that the user can short-circuit this test for compilers unknown to
! 2459: # Autoconf.
! 2460: for ac_file in $ac_files ''
1.5 takayama 2461: do
2462: test -f "$ac_file" || continue
1.3 takayama 2463: case $ac_file in
1.6 ! takayama 2464: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.5 takayama 2465: ;;
2466: [ab].out )
2467: # We found the default executable, but exeext='' is most
2468: # certainly right.
2469: break;;
2470: *.* )
1.6 ! takayama 2471: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 2472: then :; else
! 2473: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2474: fi
! 2475: # We set ac_cv_exeext here because the later test for it is not
! 2476: # safe: cross compilers may not add the suffix if given an `-o'
! 2477: # argument, so we may need to know it at that point already.
! 2478: # Even if this section looks crufty: it has the advantage of
! 2479: # actually working.
1.5 takayama 2480: break;;
2481: * )
2482: break;;
1.3 takayama 2483: esac
2484: done
1.6 ! takayama 2485: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 2486:
1.3 takayama 2487: else
1.6 ! takayama 2488: ac_file=''
! 2489: fi
! 2490: if test -z "$ac_file"; then :
! 2491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2492: $as_echo "no" >&6; }
! 2493: $as_echo "$as_me: failed program was:" >&5
1.5 takayama 2494: sed 's/^/| /' conftest.$ac_ext >&5
2495:
1.6 ! takayama 2496: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2497: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2498: as_fn_error 77 "C compiler cannot create executables
! 2499: See \`config.log' for more details" "$LINENO" 5; }
! 2500: else
! 2501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2502: $as_echo "yes" >&6; }
! 2503: fi
! 2504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
! 2505: $as_echo_n "checking for C compiler default output file name... " >&6; }
! 2506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 2507: $as_echo "$ac_file" >&6; }
1.3 takayama 2508: ac_exeext=$ac_cv_exeext
2509:
1.6 ! takayama 2510: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.3 takayama 2511: ac_clean_files=$ac_clean_files_save
1.6 ! takayama 2512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 2513: $as_echo_n "checking for suffix of executables... " >&6; }
! 2514: if { { ac_try="$ac_link"
! 2515: case "(($ac_try" in
! 2516: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2517: *) ac_try_echo=$ac_try;;
! 2518: esac
! 2519: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2520: $as_echo "$ac_try_echo"; } >&5
! 2521: (eval "$ac_link") 2>&5
1.3 takayama 2522: ac_status=$?
1.6 ! takayama 2523: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2524: test $ac_status = 0; }; then :
1.3 takayama 2525: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2526: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2527: # work properly (i.e., refer to `conftest.exe'), while it won't with
2528: # `rm'.
1.5 takayama 2529: for ac_file in conftest.exe conftest conftest.*; do
2530: test -f "$ac_file" || continue
1.3 takayama 2531: case $ac_file in
1.6 ! takayama 2532: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.3 takayama 2533: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.5 takayama 2534: break;;
1.3 takayama 2535: * ) break;;
2536: esac
2537: done
2538: else
1.6 ! takayama 2539: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2540: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2541: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 2542: See \`config.log' for more details" "$LINENO" 5; }
! 2543: fi
! 2544: rm -f conftest conftest$ac_cv_exeext
! 2545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 2546: $as_echo "$ac_cv_exeext" >&6; }
1.3 takayama 2547:
2548: rm -f conftest.$ac_ext
2549: EXEEXT=$ac_cv_exeext
2550: ac_exeext=$EXEEXT
1.6 ! takayama 2551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 2552: /* end confdefs.h. */
1.6 ! takayama 2553: #include <stdio.h>
! 2554: int
! 2555: main ()
! 2556: {
! 2557: FILE *f = fopen ("conftest.out", "w");
! 2558: return ferror (f) || fclose (f) != 0;
! 2559:
! 2560: ;
! 2561: return 0;
! 2562: }
! 2563: _ACEOF
! 2564: ac_clean_files="$ac_clean_files conftest.out"
! 2565: # Check that the compiler produces executables we can run. If not, either
! 2566: # the compiler is broken, or we cross compile.
! 2567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 2568: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 2569: if test "$cross_compiling" != yes; then
! 2570: { { ac_try="$ac_link"
! 2571: case "(($ac_try" in
! 2572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2573: *) ac_try_echo=$ac_try;;
! 2574: esac
! 2575: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2576: $as_echo "$ac_try_echo"; } >&5
! 2577: (eval "$ac_link") 2>&5
! 2578: ac_status=$?
! 2579: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2580: test $ac_status = 0; }
! 2581: if { ac_try='./conftest$ac_cv_exeext'
! 2582: { { case "(($ac_try" in
! 2583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2584: *) ac_try_echo=$ac_try;;
! 2585: esac
! 2586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2587: $as_echo "$ac_try_echo"; } >&5
! 2588: (eval "$ac_try") 2>&5
! 2589: ac_status=$?
! 2590: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2591: test $ac_status = 0; }; }; then
! 2592: cross_compiling=no
! 2593: else
! 2594: if test "$cross_compiling" = maybe; then
! 2595: cross_compiling=yes
! 2596: else
! 2597: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2598: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2599: as_fn_error $? "cannot run C compiled programs.
! 2600: If you meant to cross compile, use \`--host'.
! 2601: See \`config.log' for more details" "$LINENO" 5; }
! 2602: fi
! 2603: fi
! 2604: fi
! 2605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 2606: $as_echo "$cross_compiling" >&6; }
! 2607:
! 2608: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
! 2609: ac_clean_files=$ac_clean_files_save
! 2610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 2611: $as_echo_n "checking for suffix of object files... " >&6; }
! 2612: if ${ac_cv_objext+:} false; then :
! 2613: $as_echo_n "(cached) " >&6
! 2614: else
! 2615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2616: /* end confdefs.h. */
! 2617:
1.3 takayama 2618: int
2619: main ()
2620: {
2621:
2622: ;
2623: return 0;
2624: }
2625: _ACEOF
2626: rm -f conftest.o conftest.obj
1.6 ! takayama 2627: if { { ac_try="$ac_compile"
! 2628: case "(($ac_try" in
! 2629: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2630: *) ac_try_echo=$ac_try;;
! 2631: esac
! 2632: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2633: $as_echo "$ac_try_echo"; } >&5
! 2634: (eval "$ac_compile") 2>&5
! 2635: ac_status=$?
! 2636: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2637: test $ac_status = 0; }; then :
! 2638: for ac_file in conftest.o conftest.obj conftest.*; do
! 2639: test -f "$ac_file" || continue;
1.3 takayama 2640: case $ac_file in
1.6 ! takayama 2641: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.3 takayama 2642: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2643: break;;
2644: esac
2645: done
2646: else
1.6 ! takayama 2647: $as_echo "$as_me: failed program was:" >&5
1.5 takayama 2648: sed 's/^/| /' conftest.$ac_ext >&5
2649:
1.6 ! takayama 2650: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2651: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2652: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 2653: See \`config.log' for more details" "$LINENO" 5; }
1.3 takayama 2654: fi
2655: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2656: fi
1.6 ! takayama 2657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 2658: $as_echo "$ac_cv_objext" >&6; }
1.3 takayama 2659: OBJEXT=$ac_cv_objext
2660: ac_objext=$OBJEXT
1.6 ! takayama 2661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
! 2662: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
! 2663: if ${ac_cv_c_compiler_gnu+:} false; then :
! 2664: $as_echo_n "(cached) " >&6
1.3 takayama 2665: else
1.6 ! takayama 2666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 2667: /* end confdefs.h. */
1.3 takayama 2668:
2669: int
2670: main ()
2671: {
2672: #ifndef __GNUC__
2673: choke me
2674: #endif
2675:
2676: ;
2677: return 0;
2678: }
2679: _ACEOF
1.6 ! takayama 2680: if ac_fn_c_try_compile "$LINENO"; then :
1.3 takayama 2681: ac_compiler_gnu=yes
2682: else
1.6 ! takayama 2683: ac_compiler_gnu=no
1.3 takayama 2684: fi
1.6 ! takayama 2685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 takayama 2686: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2687:
2688: fi
1.6 ! takayama 2689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 2690: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
! 2691: if test $ac_compiler_gnu = yes; then
! 2692: GCC=yes
! 2693: else
! 2694: GCC=
! 2695: fi
1.3 takayama 2696: ac_test_CFLAGS=${CFLAGS+set}
2697: ac_save_CFLAGS=$CFLAGS
1.6 ! takayama 2698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 2699: $as_echo_n "checking whether $CC accepts -g... " >&6; }
! 2700: if ${ac_cv_prog_cc_g+:} false; then :
! 2701: $as_echo_n "(cached) " >&6
! 2702: else
! 2703: ac_save_c_werror_flag=$ac_c_werror_flag
! 2704: ac_c_werror_flag=yes
! 2705: ac_cv_prog_cc_g=no
! 2706: CFLAGS="-g"
! 2707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2708: /* end confdefs.h. */
! 2709:
! 2710: int
! 2711: main ()
! 2712: {
! 2713:
! 2714: ;
! 2715: return 0;
! 2716: }
! 2717: _ACEOF
! 2718: if ac_fn_c_try_compile "$LINENO"; then :
! 2719: ac_cv_prog_cc_g=yes
1.3 takayama 2720: else
1.6 ! takayama 2721: CFLAGS=""
! 2722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2723: /* end confdefs.h. */
! 2724:
! 2725: int
! 2726: main ()
! 2727: {
! 2728:
! 2729: ;
! 2730: return 0;
! 2731: }
1.5 takayama 2732: _ACEOF
1.6 ! takayama 2733: if ac_fn_c_try_compile "$LINENO"; then :
! 2734:
! 2735: else
! 2736: ac_c_werror_flag=$ac_save_c_werror_flag
! 2737: CFLAGS="-g"
! 2738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 2739: /* end confdefs.h. */
1.3 takayama 2740:
2741: int
2742: main ()
2743: {
2744:
2745: ;
2746: return 0;
2747: }
2748: _ACEOF
1.6 ! takayama 2749: if ac_fn_c_try_compile "$LINENO"; then :
1.3 takayama 2750: ac_cv_prog_cc_g=yes
2751: fi
1.6 ! takayama 2752: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2753: fi
! 2754: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2755: fi
! 2756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2757: ac_c_werror_flag=$ac_save_c_werror_flag
1.3 takayama 2758: fi
1.6 ! takayama 2759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 2760: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.3 takayama 2761: if test "$ac_test_CFLAGS" = set; then
2762: CFLAGS=$ac_save_CFLAGS
2763: elif test $ac_cv_prog_cc_g = yes; then
2764: if test "$GCC" = yes; then
2765: CFLAGS="-g -O2"
2766: else
2767: CFLAGS="-g"
2768: fi
2769: else
2770: if test "$GCC" = yes; then
2771: CFLAGS="-O2"
2772: else
2773: CFLAGS=
2774: fi
2775: fi
1.6 ! takayama 2776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
! 2777: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
! 2778: if ${ac_cv_prog_cc_c89+:} false; then :
! 2779: $as_echo_n "(cached) " >&6
1.5 takayama 2780: else
1.6 ! takayama 2781: ac_cv_prog_cc_c89=no
1.5 takayama 2782: ac_save_CC=$CC
1.6 ! takayama 2783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 2784: /* end confdefs.h. */
2785: #include <stdarg.h>
2786: #include <stdio.h>
1.6 ! takayama 2787: struct stat;
1.5 takayama 2788: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2789: struct buf { int x; };
2790: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2791: static char *e (p, i)
2792: char **p;
2793: int i;
2794: {
2795: return p[i];
2796: }
2797: static char *f (char * (*g) (char **, int), char **p, ...)
2798: {
2799: char *s;
2800: va_list v;
2801: va_start (v,p);
2802: s = g (p, va_arg (v,int));
2803: va_end (v);
2804: return s;
2805: }
2806:
2807: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2808: function prototypes and stuff, but not '\xHH' hex character constants.
2809: These don't provoke an error unfortunately, instead are silently treated
1.6 ! takayama 2810: as 'x'. The following induces an error, until -std is added to get
1.5 takayama 2811: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2812: array size at least. It's necessary to write '\x00'==0 to get something
1.6 ! takayama 2813: that's true only with -std. */
1.5 takayama 2814: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2815:
1.6 ! takayama 2816: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 2817: inside strings and character constants. */
! 2818: #define FOO(x) 'x'
! 2819: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 2820:
1.5 takayama 2821: int test (int i, double x);
2822: struct s1 {int (*f) (int a);};
2823: struct s2 {int (*f) (double a);};
2824: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2825: int argc;
2826: char **argv;
2827: int
2828: main ()
2829: {
2830: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2831: ;
2832: return 0;
2833: }
2834: _ACEOF
1.6 ! takayama 2835: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 2836: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.5 takayama 2837: do
2838: CC="$ac_save_CC $ac_arg"
1.6 ! takayama 2839: if ac_fn_c_try_compile "$LINENO"; then :
! 2840: ac_cv_prog_cc_c89=$ac_arg
1.5 takayama 2841: fi
1.6 ! takayama 2842: rm -f core conftest.err conftest.$ac_objext
! 2843: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.5 takayama 2844: done
1.6 ! takayama 2845: rm -f conftest.$ac_ext
1.5 takayama 2846: CC=$ac_save_CC
2847:
2848: fi
1.6 ! takayama 2849: # AC_CACHE_VAL
! 2850: case "x$ac_cv_prog_cc_c89" in
! 2851: x)
! 2852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 2853: $as_echo "none needed" >&6; } ;;
! 2854: xno)
! 2855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 2856: $as_echo "unsupported" >&6; } ;;
1.5 takayama 2857: *)
1.6 ! takayama 2858: CC="$CC $ac_cv_prog_cc_c89"
! 2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 2860: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.5 takayama 2861: esac
1.6 ! takayama 2862: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.5 takayama 2863:
1.3 takayama 2864: fi
2865:
2866: ac_ext=c
2867: ac_cpp='$CPP $CPPFLAGS'
2868: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871:
2872: if test -n "$ac_tool_prefix"; then
2873: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2874: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.6 ! takayama 2875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2876: $as_echo_n "checking for $ac_word... " >&6; }
! 2877: if ${ac_cv_prog_RANLIB+:} false; then :
! 2878: $as_echo_n "(cached) " >&6
1.3 takayama 2879: else
2880: if test -n "$RANLIB"; then
2881: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2882: else
2883: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884: for as_dir in $PATH
2885: do
2886: IFS=$as_save_IFS
2887: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2888: for ac_exec_ext in '' $ac_executable_extensions; do
! 2889: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2890: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.6 ! takayama 2891: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2892: break 2
2893: fi
2894: done
1.6 ! takayama 2895: done
! 2896: IFS=$as_save_IFS
1.3 takayama 2897:
2898: fi
2899: fi
2900: RANLIB=$ac_cv_prog_RANLIB
2901: if test -n "$RANLIB"; then
1.6 ! takayama 2902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 2903: $as_echo "$RANLIB" >&6; }
1.3 takayama 2904: else
1.6 ! takayama 2905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2906: $as_echo "no" >&6; }
1.3 takayama 2907: fi
2908:
1.6 ! takayama 2909:
1.3 takayama 2910: fi
2911: if test -z "$ac_cv_prog_RANLIB"; then
2912: ac_ct_RANLIB=$RANLIB
2913: # Extract the first word of "ranlib", so it can be a program name with args.
2914: set dummy ranlib; ac_word=$2
1.6 ! takayama 2915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2916: $as_echo_n "checking for $ac_word... " >&6; }
! 2917: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
! 2918: $as_echo_n "(cached) " >&6
1.3 takayama 2919: else
2920: if test -n "$ac_ct_RANLIB"; then
2921: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2922: else
2923: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924: for as_dir in $PATH
2925: do
2926: IFS=$as_save_IFS
2927: test -z "$as_dir" && as_dir=.
1.6 ! takayama 2928: for ac_exec_ext in '' $ac_executable_extensions; do
! 2929: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.3 takayama 2930: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.6 ! takayama 2931: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3 takayama 2932: break 2
2933: fi
2934: done
1.6 ! takayama 2935: done
! 2936: IFS=$as_save_IFS
1.3 takayama 2937:
2938: fi
2939: fi
2940: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2941: if test -n "$ac_ct_RANLIB"; then
1.6 ! takayama 2942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 2943: $as_echo "$ac_ct_RANLIB" >&6; }
1.3 takayama 2944: else
1.6 ! takayama 2945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2946: $as_echo "no" >&6; }
1.3 takayama 2947: fi
2948:
1.6 ! takayama 2949: if test "x$ac_ct_RANLIB" = x; then
! 2950: RANLIB=":"
! 2951: else
! 2952: case $cross_compiling:$ac_tool_warned in
! 2953: yes:)
! 2954: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2955: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 2956: ac_tool_warned=yes ;;
! 2957: esac
! 2958: RANLIB=$ac_ct_RANLIB
! 2959: fi
1.3 takayama 2960: else
2961: RANLIB="$ac_cv_prog_RANLIB"
2962: fi
2963:
2964:
2965:
1.6 ! takayama 2966: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
! 2967: if test "x$ac_cv_func_socket" = xyes; then :
1.5 takayama 2968:
1.3 takayama 2969: fi
2970:
2971: if test "$ac_cv_func_socket" = no ; then
1.6 ! takayama 2972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
! 2973: $as_echo_n "checking for socket in -lsocket... " >&6; }
! 2974: if ${ac_cv_lib_socket_socket+:} false; then :
! 2975: $as_echo_n "(cached) " >&6
1.3 takayama 2976: else
2977: ac_check_lib_save_LIBS=$LIBS
2978: LIBS="-lsocket $LIBS"
1.6 ! takayama 2979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 2980: /* end confdefs.h. */
1.3 takayama 2981:
1.6 ! takayama 2982: /* Override any GCC internal prototype to avoid an error.
! 2983: Use char because int might match the return type of a GCC
! 2984: builtin and then its argument prototype would still apply. */
1.3 takayama 2985: #ifdef __cplusplus
2986: extern "C"
2987: #endif
2988: char socket ();
2989: int
2990: main ()
2991: {
1.6 ! takayama 2992: return socket ();
1.3 takayama 2993: ;
2994: return 0;
2995: }
2996: _ACEOF
1.6 ! takayama 2997: if ac_fn_c_try_link "$LINENO"; then :
1.3 takayama 2998: ac_cv_lib_socket_socket=yes
2999: else
1.6 ! takayama 3000: ac_cv_lib_socket_socket=no
1.3 takayama 3001: fi
1.6 ! takayama 3002: rm -f core conftest.err conftest.$ac_objext \
! 3003: conftest$ac_exeext conftest.$ac_ext
1.3 takayama 3004: LIBS=$ac_check_lib_save_LIBS
3005: fi
1.6 ! takayama 3006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
! 3007: $as_echo "$ac_cv_lib_socket_socket" >&6; }
! 3008: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.3 takayama 3009: cat >>confdefs.h <<_ACEOF
3010: #define HAVE_LIBSOCKET 1
3011: _ACEOF
3012:
3013: LIBS="-lsocket $LIBS"
3014:
3015: fi
3016:
3017: fi
1.6 ! takayama 3018: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
! 3019: if test "x$ac_cv_func_gethostbyname" = xyes; then :
! 3020:
! 3021: fi
! 3022:
! 3023: if test "$ac_cv_func_gethostbyname" = no ; then
! 3024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
! 3025: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
! 3026: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
! 3027: $as_echo_n "(cached) " >&6
1.3 takayama 3028: else
1.6 ! takayama 3029: ac_check_lib_save_LIBS=$LIBS
! 3030: LIBS="-lnsl $LIBS"
! 3031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3032: /* end confdefs.h. */
3033:
1.6 ! takayama 3034: /* Override any GCC internal prototype to avoid an error.
! 3035: Use char because int might match the return type of a GCC
! 3036: builtin and then its argument prototype would still apply. */
1.3 takayama 3037: #ifdef __cplusplus
3038: extern "C"
3039: #endif
3040: char gethostbyname ();
1.5 takayama 3041: int
3042: main ()
3043: {
1.6 ! takayama 3044: return gethostbyname ();
1.3 takayama 3045: ;
3046: return 0;
3047: }
3048: _ACEOF
1.6 ! takayama 3049: if ac_fn_c_try_link "$LINENO"; then :
! 3050: ac_cv_lib_nsl_gethostbyname=yes
1.3 takayama 3051: else
1.6 ! takayama 3052: ac_cv_lib_nsl_gethostbyname=no
! 3053: fi
! 3054: rm -f core conftest.err conftest.$ac_objext \
! 3055: conftest$ac_exeext conftest.$ac_ext
! 3056: LIBS=$ac_check_lib_save_LIBS
! 3057: fi
! 3058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 3059: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
! 3060: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
! 3061: cat >>confdefs.h <<_ACEOF
! 3062: #define HAVE_LIBNSL 1
! 3063: _ACEOF
! 3064:
! 3065: LIBS="-lnsl $LIBS"
1.5 takayama 3066:
1.3 takayama 3067: fi
1.6 ! takayama 3068:
1.3 takayama 3069: fi
1.6 ! takayama 3070: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
! 3071: if test "x$ac_cv_func_dlopen" = xyes; then :
1.3 takayama 3072:
1.6 ! takayama 3073: fi
1.3 takayama 3074:
1.6 ! takayama 3075: if test "$ac_cv_func_dlopen" = no ; then
! 3076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 3077: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 3078: if ${ac_cv_lib_dl_dlopen+:} false; then :
! 3079: $as_echo_n "(cached) " >&6
1.3 takayama 3080: else
3081: ac_check_lib_save_LIBS=$LIBS
1.6 ! takayama 3082: LIBS="-ldl $LIBS"
! 3083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3084: /* end confdefs.h. */
1.3 takayama 3085:
1.6 ! takayama 3086: /* Override any GCC internal prototype to avoid an error.
! 3087: Use char because int might match the return type of a GCC
! 3088: builtin and then its argument prototype would still apply. */
1.3 takayama 3089: #ifdef __cplusplus
3090: extern "C"
3091: #endif
1.6 ! takayama 3092: char dlopen ();
1.3 takayama 3093: int
3094: main ()
3095: {
1.6 ! takayama 3096: return dlopen ();
1.3 takayama 3097: ;
3098: return 0;
3099: }
3100: _ACEOF
1.6 ! takayama 3101: if ac_fn_c_try_link "$LINENO"; then :
! 3102: ac_cv_lib_dl_dlopen=yes
1.3 takayama 3103: else
1.6 ! takayama 3104: ac_cv_lib_dl_dlopen=no
1.3 takayama 3105: fi
1.6 ! takayama 3106: rm -f core conftest.err conftest.$ac_objext \
! 3107: conftest$ac_exeext conftest.$ac_ext
1.3 takayama 3108: LIBS=$ac_check_lib_save_LIBS
3109: fi
1.6 ! takayama 3110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 3111: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 3112: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.3 takayama 3113: cat >>confdefs.h <<_ACEOF
1.6 ! takayama 3114: #define HAVE_LIBDL 1
1.3 takayama 3115: _ACEOF
3116:
1.6 ! takayama 3117: LIBS="-ldl $LIBS"
1.3 takayama 3118:
3119: fi
3120:
3121: fi
1.6 ! takayama 3122:
! 3123:
! 3124: ac_ext=c
1.5 takayama 3125: ac_cpp='$CPP $CPPFLAGS'
3126: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.6 ! takayama 3129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
! 3130: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.5 takayama 3131: # On Suns, sometimes $CPP names a directory.
3132: if test -n "$CPP" && test -d "$CPP"; then
3133: CPP=
3134: fi
3135: if test -z "$CPP"; then
1.6 ! takayama 3136: if ${ac_cv_prog_CPP+:} false; then :
! 3137: $as_echo_n "(cached) " >&6
1.5 takayama 3138: else
3139: # Double quotes because CPP needs to be expanded
3140: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3141: do
3142: ac_preproc_ok=false
3143: for ac_c_preproc_warn_flag in '' yes
3144: do
3145: # Use a header file that comes with gcc, so configuring glibc
3146: # with a fresh cross-compiler works.
3147: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148: # <limits.h> exists even on freestanding compilers.
3149: # On the NeXT, cc -E runs the code through the compiler's parser,
3150: # not just through cpp. "Syntax error" is here to catch this case.
1.6 ! takayama 3151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3152: /* end confdefs.h. */
3153: #ifdef __STDC__
3154: # include <limits.h>
3155: #else
3156: # include <assert.h>
3157: #endif
3158: Syntax error
3159: _ACEOF
1.6 ! takayama 3160: if ac_fn_c_try_cpp "$LINENO"; then :
! 3161:
1.5 takayama 3162: else
3163: # Broken: fails on valid input.
3164: continue
3165: fi
1.6 ! takayama 3166: rm -f conftest.err conftest.i conftest.$ac_ext
1.5 takayama 3167:
1.6 ! takayama 3168: # OK, works on sane cases. Now check whether nonexistent headers
1.5 takayama 3169: # can be detected and how.
1.6 ! takayama 3170: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3171: /* end confdefs.h. */
3172: #include <ac_nonexistent.h>
3173: _ACEOF
1.6 ! takayama 3174: if ac_fn_c_try_cpp "$LINENO"; then :
1.5 takayama 3175: # Broken: success on invalid input.
3176: continue
3177: else
3178: # Passes both tests.
3179: ac_preproc_ok=:
3180: break
3181: fi
1.6 ! takayama 3182: rm -f conftest.err conftest.i conftest.$ac_ext
1.5 takayama 3183:
3184: done
3185: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.6 ! takayama 3186: rm -f conftest.i conftest.err conftest.$ac_ext
! 3187: if $ac_preproc_ok; then :
1.5 takayama 3188: break
3189: fi
3190:
3191: done
3192: ac_cv_prog_CPP=$CPP
3193:
3194: fi
3195: CPP=$ac_cv_prog_CPP
3196: else
3197: ac_cv_prog_CPP=$CPP
3198: fi
1.6 ! takayama 3199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
! 3200: $as_echo "$CPP" >&6; }
1.5 takayama 3201: ac_preproc_ok=false
3202: for ac_c_preproc_warn_flag in '' yes
3203: do
3204: # Use a header file that comes with gcc, so configuring glibc
3205: # with a fresh cross-compiler works.
3206: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3207: # <limits.h> exists even on freestanding compilers.
3208: # On the NeXT, cc -E runs the code through the compiler's parser,
3209: # not just through cpp. "Syntax error" is here to catch this case.
1.6 ! takayama 3210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3211: /* end confdefs.h. */
3212: #ifdef __STDC__
3213: # include <limits.h>
3214: #else
3215: # include <assert.h>
3216: #endif
3217: Syntax error
3218: _ACEOF
1.6 ! takayama 3219: if ac_fn_c_try_cpp "$LINENO"; then :
! 3220:
1.5 takayama 3221: else
3222: # Broken: fails on valid input.
3223: continue
3224: fi
1.6 ! takayama 3225: rm -f conftest.err conftest.i conftest.$ac_ext
1.5 takayama 3226:
1.6 ! takayama 3227: # OK, works on sane cases. Now check whether nonexistent headers
1.5 takayama 3228: # can be detected and how.
1.6 ! takayama 3229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3230: /* end confdefs.h. */
3231: #include <ac_nonexistent.h>
3232: _ACEOF
1.6 ! takayama 3233: if ac_fn_c_try_cpp "$LINENO"; then :
1.5 takayama 3234: # Broken: success on invalid input.
3235: continue
3236: else
3237: # Passes both tests.
3238: ac_preproc_ok=:
3239: break
3240: fi
1.6 ! takayama 3241: rm -f conftest.err conftest.i conftest.$ac_ext
1.5 takayama 3242:
3243: done
3244: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.6 ! takayama 3245: rm -f conftest.i conftest.err conftest.$ac_ext
! 3246: if $ac_preproc_ok; then :
! 3247:
1.5 takayama 3248: else
1.6 ! takayama 3249: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3250: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3251: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 3252: See \`config.log' for more details" "$LINENO" 5; }
1.5 takayama 3253: fi
3254:
3255: ac_ext=c
3256: ac_cpp='$CPP $CPPFLAGS'
3257: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260:
3261:
1.6 ! takayama 3262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 3263: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
! 3264: if ${ac_cv_path_GREP+:} false; then :
! 3265: $as_echo_n "(cached) " >&6
! 3266: else
! 3267: if test -z "$GREP"; then
! 3268: ac_path_GREP_found=false
! 3269: # Loop through the user's path and test for each of PROGNAME-LIST
! 3270: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3271: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3272: do
! 3273: IFS=$as_save_IFS
! 3274: test -z "$as_dir" && as_dir=.
! 3275: for ac_prog in grep ggrep; do
! 3276: for ac_exec_ext in '' $ac_executable_extensions; do
! 3277: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3278: as_fn_executable_p "$ac_path_GREP" || continue
! 3279: # Check for GNU ac_path_GREP and select it if it is found.
! 3280: # Check for GNU $ac_path_GREP
! 3281: case `"$ac_path_GREP" --version 2>&1` in
! 3282: *GNU*)
! 3283: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 3284: *)
! 3285: ac_count=0
! 3286: $as_echo_n 0123456789 >"conftest.in"
! 3287: while :
! 3288: do
! 3289: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3290: mv "conftest.tmp" "conftest.in"
! 3291: cp "conftest.in" "conftest.nl"
! 3292: $as_echo 'GREP' >> "conftest.nl"
! 3293: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3294: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3295: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 3296: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 3297: # Best one so far, save it but keep looking for a better one
! 3298: ac_cv_path_GREP="$ac_path_GREP"
! 3299: ac_path_GREP_max=$ac_count
! 3300: fi
! 3301: # 10*(2^10) chars as input seems more than enough
! 3302: test $ac_count -gt 10 && break
! 3303: done
! 3304: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3305: esac
! 3306:
! 3307: $ac_path_GREP_found && break 3
! 3308: done
! 3309: done
! 3310: done
! 3311: IFS=$as_save_IFS
! 3312: if test -z "$ac_cv_path_GREP"; then
! 3313: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 3314: fi
! 3315: else
! 3316: ac_cv_path_GREP=$GREP
! 3317: fi
! 3318:
! 3319: fi
! 3320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 3321: $as_echo "$ac_cv_path_GREP" >&6; }
! 3322: GREP="$ac_cv_path_GREP"
! 3323:
! 3324:
! 3325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 3326: $as_echo_n "checking for egrep... " >&6; }
! 3327: if ${ac_cv_path_EGREP+:} false; then :
! 3328: $as_echo_n "(cached) " >&6
! 3329: else
! 3330: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 3331: then ac_cv_path_EGREP="$GREP -E"
! 3332: else
! 3333: if test -z "$EGREP"; then
! 3334: ac_path_EGREP_found=false
! 3335: # Loop through the user's path and test for each of PROGNAME-LIST
! 3336: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3337: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3338: do
! 3339: IFS=$as_save_IFS
! 3340: test -z "$as_dir" && as_dir=.
! 3341: for ac_prog in egrep; do
! 3342: for ac_exec_ext in '' $ac_executable_extensions; do
! 3343: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 3344: as_fn_executable_p "$ac_path_EGREP" || continue
! 3345: # Check for GNU ac_path_EGREP and select it if it is found.
! 3346: # Check for GNU $ac_path_EGREP
! 3347: case `"$ac_path_EGREP" --version 2>&1` in
! 3348: *GNU*)
! 3349: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 3350: *)
! 3351: ac_count=0
! 3352: $as_echo_n 0123456789 >"conftest.in"
! 3353: while :
! 3354: do
! 3355: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3356: mv "conftest.tmp" "conftest.in"
! 3357: cp "conftest.in" "conftest.nl"
! 3358: $as_echo 'EGREP' >> "conftest.nl"
! 3359: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3360: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3361: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 3362: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 3363: # Best one so far, save it but keep looking for a better one
! 3364: ac_cv_path_EGREP="$ac_path_EGREP"
! 3365: ac_path_EGREP_max=$ac_count
1.5 takayama 3366: fi
1.6 ! takayama 3367: # 10*(2^10) chars as input seems more than enough
! 3368: test $ac_count -gt 10 && break
! 3369: done
! 3370: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3371: esac
! 3372:
! 3373: $ac_path_EGREP_found && break 3
! 3374: done
! 3375: done
! 3376: done
! 3377: IFS=$as_save_IFS
! 3378: if test -z "$ac_cv_path_EGREP"; then
! 3379: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 3380: fi
! 3381: else
! 3382: ac_cv_path_EGREP=$EGREP
! 3383: fi
! 3384:
! 3385: fi
1.5 takayama 3386: fi
1.6 ! takayama 3387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 3388: $as_echo "$ac_cv_path_EGREP" >&6; }
! 3389: EGREP="$ac_cv_path_EGREP"
1.5 takayama 3390:
3391:
1.6 ! takayama 3392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
! 3393: $as_echo_n "checking for ANSI C header files... " >&6; }
! 3394: if ${ac_cv_header_stdc+:} false; then :
! 3395: $as_echo_n "(cached) " >&6
1.5 takayama 3396: else
1.6 ! takayama 3397: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3398: /* end confdefs.h. */
3399: #include <stdlib.h>
3400: #include <stdarg.h>
3401: #include <string.h>
3402: #include <float.h>
3403:
3404: int
3405: main ()
3406: {
3407:
3408: ;
3409: return 0;
3410: }
3411: _ACEOF
1.6 ! takayama 3412: if ac_fn_c_try_compile "$LINENO"; then :
1.5 takayama 3413: ac_cv_header_stdc=yes
3414: else
1.6 ! takayama 3415: ac_cv_header_stdc=no
1.5 takayama 3416: fi
1.6 ! takayama 3417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5 takayama 3418:
3419: if test $ac_cv_header_stdc = yes; then
3420: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.6 ! takayama 3421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3422: /* end confdefs.h. */
3423: #include <string.h>
3424:
3425: _ACEOF
3426: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.6 ! takayama 3427: $EGREP "memchr" >/dev/null 2>&1; then :
! 3428:
1.5 takayama 3429: else
3430: ac_cv_header_stdc=no
3431: fi
3432: rm -f conftest*
3433:
3434: fi
3435:
3436: if test $ac_cv_header_stdc = yes; then
3437: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.6 ! takayama 3438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3439: /* end confdefs.h. */
3440: #include <stdlib.h>
3441:
3442: _ACEOF
3443: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.6 ! takayama 3444: $EGREP "free" >/dev/null 2>&1; then :
! 3445:
1.5 takayama 3446: else
3447: ac_cv_header_stdc=no
3448: fi
3449: rm -f conftest*
3450:
3451: fi
3452:
3453: if test $ac_cv_header_stdc = yes; then
3454: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.6 ! takayama 3455: if test "$cross_compiling" = yes; then :
1.5 takayama 3456: :
3457: else
1.6 ! takayama 3458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.5 takayama 3459: /* end confdefs.h. */
3460: #include <ctype.h>
1.6 ! takayama 3461: #include <stdlib.h>
1.5 takayama 3462: #if ((' ' & 0x0FF) == 0x020)
3463: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3464: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3465: #else
3466: # define ISLOWER(c) \
3467: (('a' <= (c) && (c) <= 'i') \
3468: || ('j' <= (c) && (c) <= 'r') \
3469: || ('s' <= (c) && (c) <= 'z'))
3470: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3471: #endif
3472:
3473: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474: int
3475: main ()
3476: {
3477: int i;
3478: for (i = 0; i < 256; i++)
3479: if (XOR (islower (i), ISLOWER (i))
3480: || toupper (i) != TOUPPER (i))
1.6 ! takayama 3481: return 2;
! 3482: return 0;
1.5 takayama 3483: }
3484: _ACEOF
1.6 ! takayama 3485: if ac_fn_c_try_run "$LINENO"; then :
! 3486:
1.5 takayama 3487: else
1.6 ! takayama 3488: ac_cv_header_stdc=no
1.5 takayama 3489: fi
1.6 ! takayama 3490: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 3491: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.5 takayama 3492: fi
1.6 ! takayama 3493:
1.5 takayama 3494: fi
3495: fi
1.6 ! takayama 3496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
! 3497: $as_echo "$ac_cv_header_stdc" >&6; }
1.5 takayama 3498: if test $ac_cv_header_stdc = yes; then
3499:
1.6 ! takayama 3500: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.5 takayama 3501:
3502: fi
3503:
3504: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.6 ! takayama 3505: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 3506: inttypes.h stdint.h unistd.h
! 3507: do :
! 3508: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3509: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 3510: "
! 3511: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 3512: cat >>confdefs.h <<_ACEOF
! 3513: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 3514: _ACEOF
1.5 takayama 3515:
1.6 ! takayama 3516: fi
1.5 takayama 3517:
1.6 ! takayama 3518: done
1.5 takayama 3519:
3520:
1.6 ! takayama 3521: ac_fn_c_check_header_mongrel "$LINENO" "sys/appleapiopts.h" "ac_cv_header_sys_appleapiopts_h" "$ac_includes_default"
! 3522: if test "x$ac_cv_header_sys_appleapiopts_h" = xyes; then :
! 3523: CFLAG2=" -arch ppc -arch i386"
1.5 takayama 3524:
1.6 ! takayama 3525: else
! 3526: CFLAG2=" "
1.5 takayama 3527:
1.6 ! takayama 3528: fi
1.5 takayama 3529:
3530:
1.6 ! takayama 3531: ac_fn_c_check_header_mongrel "$LINENO" "sys/appleapiopts.h" "ac_cv_header_sys_appleapiopts_h" "$ac_includes_default"
! 3532: if test "x$ac_cv_header_sys_appleapiopts_h" = xyes; then :
! 3533: CFLAG2p=" -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk "
1.5 takayama 3534:
3535: else
1.6 ! takayama 3536: CFLAG2p=" "
! 3537:
! 3538: fi
! 3539:
! 3540:
! 3541: ac_fn_c_check_header_mongrel "$LINENO" "sys/appleapiopts.h" "ac_cv_header_sys_appleapiopts_h" "$ac_includes_default"
! 3542: if test "x$ac_cv_header_sys_appleapiopts_h" = xyes; then :
! 3543: AR="libtool"
1.5 takayama 3544:
3545: else
1.6 ! takayama 3546: AR="ar"
1.5 takayama 3547:
3548: fi
3549:
3550:
1.6 ! takayama 3551:
! 3552: # Extract the first word of "mdutil", so it can be a program name with args.
! 3553: set dummy mdutil; ac_word=$2
! 3554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3555: $as_echo_n "checking for $ac_word... " >&6; }
! 3556: if ${ac_cv_path_MDUTIL+:} false; then :
! 3557: $as_echo_n "(cached) " >&6
! 3558: else
! 3559: case $MDUTIL in
! 3560: [\\/]* | ?:[\\/]*)
! 3561: ac_cv_path_MDUTIL="$MDUTIL" # Let the user override the test with a path.
! 3562: ;;
! 3563: *)
! 3564: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3565: for as_dir in $PATH
! 3566: do
! 3567: IFS=$as_save_IFS
! 3568: test -z "$as_dir" && as_dir=.
! 3569: for ac_exec_ext in '' $ac_executable_extensions; do
! 3570: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3571: ac_cv_path_MDUTIL="$as_dir/$ac_word$ac_exec_ext"
! 3572: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3573: break 2
! 3574: fi
1.5 takayama 3575: done
1.6 ! takayama 3576: done
! 3577: IFS=$as_save_IFS
1.5 takayama 3578:
1.6 ! takayama 3579: test -z "$ac_cv_path_MDUTIL" && ac_cv_path_MDUTIL="none"
! 3580: ;;
! 3581: esac
1.5 takayama 3582: fi
1.6 ! takayama 3583: MDUTIL=$ac_cv_path_MDUTIL
! 3584: if test -n "$MDUTIL"; then
! 3585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MDUTIL" >&5
! 3586: $as_echo "$MDUTIL" >&6; }
1.5 takayama 3587: else
1.6 ! takayama 3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3589: $as_echo "no" >&6; }
! 3590: fi
1.5 takayama 3591:
3592:
1.6 ! takayama 3593: if test x"$MDUTIL" = x"none"; then
! 3594: LIBS2='${LIBS2_SHARED}'
1.5 takayama 3595: else
1.6 ! takayama 3596: LIBS2='${LIBS2_STATIC}'
1.5 takayama 3597: fi
1.6 ! takayama 3598: LIBS2=$LIBS2
! 3599:
1.5 takayama 3600:
1.6 ! takayama 3601: ac_config_files="$ac_config_files Makefile"
1.5 takayama 3602:
1.3 takayama 3603: cat >confcache <<\_ACEOF
3604: # This file is a shell script that caches the results of configure
3605: # tests run on this system so they can be shared between configure
3606: # scripts and configure runs, see configure's option --config-cache.
3607: # It is not useful on other systems. If it contains results you don't
3608: # want to keep, you may remove or edit it.
3609: #
3610: # config.status only pays attention to the cache file if you give it
3611: # the --recheck option to rerun configure.
3612: #
1.5 takayama 3613: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.3 takayama 3614: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3615: # following values.
3616:
3617: _ACEOF
3618:
3619: # The following way of writing the cache mishandles newlines in values,
3620: # but we know of no workaround that is simple, portable, and efficient.
1.6 ! takayama 3621: # So, we kill variables containing newlines.
1.3 takayama 3622: # Ultrix sh set writes to stderr and can't be redirected directly,
3623: # and sets the high bit in the cache file unless we assign to the vars.
1.6 ! takayama 3624: (
! 3625: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 3626: eval ac_val=\$$ac_var
! 3627: case $ac_val in #(
! 3628: *${as_nl}*)
! 3629: case $ac_var in #(
! 3630: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 3631: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 3632: esac
! 3633: case $ac_var in #(
! 3634: _ | IFS | as_nl) ;; #(
! 3635: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 3636: *) { eval $ac_var=; unset $ac_var;} ;;
! 3637: esac ;;
! 3638: esac
! 3639: done
! 3640:
1.3 takayama 3641: (set) 2>&1 |
1.6 ! takayama 3642: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 3643: *${as_nl}ac_space=\ *)
! 3644: # `set' does not quote correctly, so add quotes: double-quote
! 3645: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.3 takayama 3646: sed -n \
1.5 takayama 3647: "s/'/'\\\\''/g;
3648: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.6 ! takayama 3649: ;; #(
1.3 takayama 3650: *)
3651: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.6 ! takayama 3652: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.3 takayama 3653: ;;
1.6 ! takayama 3654: esac |
! 3655: sort
! 3656: ) |
1.3 takayama 3657: sed '
1.6 ! takayama 3658: /^ac_cv_env_/b end
1.3 takayama 3659: t clear
1.6 ! takayama 3660: :clear
1.3 takayama 3661: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3662: t end
1.6 ! takayama 3663: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 3664: :end' >>confcache
! 3665: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 3666: if test -w "$cache_file"; then
! 3667: if test "x$cache_file" != "x/dev/null"; then
! 3668: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 3669: $as_echo "$as_me: updating cache $cache_file" >&6;}
! 3670: if test ! -f "$cache_file" || test -h "$cache_file"; then
! 3671: cat confcache >"$cache_file"
! 3672: else
! 3673: case $cache_file in #(
! 3674: */* | ?:*)
! 3675: mv -f confcache "$cache_file"$$ &&
! 3676: mv -f "$cache_file"$$ "$cache_file" ;; #(
! 3677: *)
! 3678: mv -f confcache "$cache_file" ;;
! 3679: esac
! 3680: fi
! 3681: fi
1.3 takayama 3682: else
1.6 ! takayama 3683: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 3684: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.3 takayama 3685: fi
3686: fi
3687: rm -f confcache
3688:
3689: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3690: # Let make expand exec_prefix.
3691: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3692:
3693: # Transform confdefs.h into DEFS.
3694: # Protect against shell expansion while executing Makefile rules.
3695: # Protect against Makefile macro expansion.
3696: #
3697: # If the first sed substitution is executed (which looks for macros that
1.6 ! takayama 3698: # take arguments), then branch to the quote section. Otherwise,
1.3 takayama 3699: # look for a macro that doesn't take arguments.
1.6 ! takayama 3700: ac_script='
! 3701: :mline
! 3702: /\\$/{
! 3703: N
! 3704: s,\\\n,,
! 3705: b mline
! 3706: }
1.3 takayama 3707: t clear
1.6 ! takayama 3708: :clear
! 3709: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1.3 takayama 3710: t quote
1.6 ! takayama 3711: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1.3 takayama 3712: t quote
1.6 ! takayama 3713: b any
! 3714: :quote
! 3715: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
! 3716: s/\[/\\&/g
! 3717: s/\]/\\&/g
! 3718: s/\$/$$/g
! 3719: H
! 3720: :any
! 3721: ${
! 3722: g
! 3723: s/^\n//
! 3724: s/\n/ /g
! 3725: p
! 3726: }
! 3727: '
! 3728: DEFS=`sed -n "$ac_script" confdefs.h`
1.3 takayama 3729:
3730:
1.5 takayama 3731: ac_libobjs=
3732: ac_ltlibobjs=
1.6 ! takayama 3733: U=
1.5 takayama 3734: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3735: # 1. Remove the extension, and $U if already installed.
1.6 ! takayama 3736: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 3737: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
! 3738: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 3739: # will be set to the directory where LIBOBJS objects are built.
! 3740: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 3741: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.5 takayama 3742: done
3743: LIBOBJS=$ac_libobjs
3744:
3745: LTLIBOBJS=$ac_ltlibobjs
3746:
3747:
1.3 takayama 3748:
1.6 ! takayama 3749: : "${CONFIG_STATUS=./config.status}"
! 3750: ac_write_fail=0
1.3 takayama 3751: ac_clean_files_save=$ac_clean_files
3752: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.6 ! takayama 3753: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 3754: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 3755: as_write_fail=0
! 3756: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.3 takayama 3757: #! $SHELL
3758: # Generated by $as_me.
3759: # Run this file to recreate the current configuration.
3760: # Compiler output produced by configure, useful for debugging
3761: # configure, is in config.log if it exists.
3762:
3763: debug=false
1.5 takayama 3764: ac_cs_recheck=false
3765: ac_cs_silent=false
1.6 ! takayama 3766:
1.3 takayama 3767: SHELL=\${CONFIG_SHELL-$SHELL}
1.6 ! takayama 3768: export SHELL
! 3769: _ASEOF
! 3770: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
! 3771: ## -------------------- ##
! 3772: ## M4sh Initialization. ##
! 3773: ## -------------------- ##
1.3 takayama 3774:
1.6 ! takayama 3775: # Be more Bourne compatible
! 3776: DUALCASE=1; export DUALCASE # for MKS sh
! 3777: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.3 takayama 3778: emulate sh
3779: NULLCMD=:
1.6 ! takayama 3780: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.5 takayama 3781: # is contrary to our usage. Disable this feature.
3782: alias -g '${1+"$@"}'='"$@"'
1.6 ! takayama 3783: setopt NO_GLOB_SUBST
! 3784: else
! 3785: case `(set -o) 2>/dev/null` in #(
! 3786: *posix*) :
! 3787: set -o posix ;; #(
! 3788: *) :
! 3789: ;;
! 3790: esac
! 3791: fi
! 3792:
! 3793:
! 3794: as_nl='
! 3795: '
! 3796: export as_nl
! 3797: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 3798: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 3799: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 3800: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 3801: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 3802: # but without wasting forks for bash or zsh.
! 3803: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 3804: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 3805: as_echo='print -r --'
! 3806: as_echo_n='print -rn --'
! 3807: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 3808: as_echo='printf %s\n'
! 3809: as_echo_n='printf %s'
! 3810: else
! 3811: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 3812: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 3813: as_echo_n='/usr/ucb/echo -n'
! 3814: else
! 3815: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 3816: as_echo_n_body='eval
! 3817: arg=$1;
! 3818: case $arg in #(
! 3819: *"$as_nl"*)
! 3820: expr "X$arg" : "X\\(.*\\)$as_nl";
! 3821: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 3822: esac;
! 3823: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 3824: '
! 3825: export as_echo_n_body
! 3826: as_echo_n='sh -c $as_echo_n_body as_echo'
! 3827: fi
! 3828: export as_echo_body
! 3829: as_echo='sh -c $as_echo_body as_echo'
1.3 takayama 3830: fi
3831:
1.6 ! takayama 3832: # The user is always right.
! 3833: if test "${PATH_SEPARATOR+set}" != set; then
! 3834: PATH_SEPARATOR=:
! 3835: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 3836: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 3837: PATH_SEPARATOR=';'
! 3838: }
1.3 takayama 3839: fi
3840:
1.5 takayama 3841:
1.6 ! takayama 3842: # IFS
! 3843: # We need space, tab and new line, in precisely that order. Quoting is
! 3844: # there to prevent editors from complaining about space-tab.
! 3845: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 3846: # splitting by setting IFS to empty value.)
! 3847: IFS=" "" $as_nl"
! 3848:
! 3849: # Find who we are. Look in the path if we contain no directory separator.
! 3850: as_myself=
! 3851: case $0 in #((
! 3852: *[\\/]* ) as_myself=$0 ;;
! 3853: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3854: for as_dir in $PATH
! 3855: do
! 3856: IFS=$as_save_IFS
! 3857: test -z "$as_dir" && as_dir=.
! 3858: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 3859: done
! 3860: IFS=$as_save_IFS
! 3861:
! 3862: ;;
! 3863: esac
! 3864: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 3865: # in which case we are not to be found in the path.
! 3866: if test "x$as_myself" = x; then
! 3867: as_myself=$0
! 3868: fi
! 3869: if test ! -f "$as_myself"; then
! 3870: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 3871: exit 1
! 3872: fi
! 3873:
! 3874: # Unset variables that we do not need and which cause bugs (e.g. in
! 3875: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 3876: # suppresses any "Segmentation fault" message there. '((' could
! 3877: # trigger a bug in pdksh 5.2.14.
! 3878: for as_var in BASH_ENV ENV MAIL MAILPATH
! 3879: do eval test x\${$as_var+set} = xset \
! 3880: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 3881: done
1.5 takayama 3882: PS1='$ '
3883: PS2='> '
3884: PS4='+ '
3885:
3886: # NLS nuisances.
1.6 ! takayama 3887: LC_ALL=C
! 3888: export LC_ALL
! 3889: LANGUAGE=C
! 3890: export LANGUAGE
! 3891:
! 3892: # CDPATH.
! 3893: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 3894:
! 3895:
! 3896: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 3897: # ----------------------------------------
! 3898: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 3899: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 3900: # script with STATUS, using 1 if that was 0.
! 3901: as_fn_error ()
! 3902: {
! 3903: as_status=$1; test $as_status -eq 0 && as_status=1
! 3904: if test "$4"; then
! 3905: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 3906: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 3907: fi
! 3908: $as_echo "$as_me: error: $2" >&2
! 3909: as_fn_exit $as_status
! 3910: } # as_fn_error
! 3911:
! 3912:
! 3913: # as_fn_set_status STATUS
! 3914: # -----------------------
! 3915: # Set $? to STATUS, without forking.
! 3916: as_fn_set_status ()
! 3917: {
! 3918: return $1
! 3919: } # as_fn_set_status
! 3920:
! 3921: # as_fn_exit STATUS
! 3922: # -----------------
! 3923: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 3924: as_fn_exit ()
! 3925: {
! 3926: set +e
! 3927: as_fn_set_status $1
! 3928: exit $1
! 3929: } # as_fn_exit
! 3930:
! 3931: # as_fn_unset VAR
! 3932: # ---------------
! 3933: # Portably unset VAR.
! 3934: as_fn_unset ()
! 3935: {
! 3936: { eval $1=; unset $1;}
! 3937: }
! 3938: as_unset=as_fn_unset
! 3939: # as_fn_append VAR VALUE
! 3940: # ----------------------
! 3941: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 3942: # advantage of any shell optimizations that allow amortized linear growth over
! 3943: # repeated appends, instead of the typical quadratic growth present in naive
! 3944: # implementations.
! 3945: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 3946: eval 'as_fn_append ()
! 3947: {
! 3948: eval $1+=\$2
! 3949: }'
! 3950: else
! 3951: as_fn_append ()
! 3952: {
! 3953: eval $1=\$$1\$2
! 3954: }
! 3955: fi # as_fn_append
! 3956:
! 3957: # as_fn_arith ARG...
! 3958: # ------------------
! 3959: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 3960: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 3961: # must be portable across $(()) and expr.
! 3962: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 3963: eval 'as_fn_arith ()
! 3964: {
! 3965: as_val=$(( $* ))
! 3966: }'
! 3967: else
! 3968: as_fn_arith ()
! 3969: {
! 3970: as_val=`expr "$@" || test $? -eq 1`
! 3971: }
! 3972: fi # as_fn_arith
! 3973:
1.5 takayama 3974:
1.6 ! takayama 3975: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 3976: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.5 takayama 3977: as_expr=expr
3978: else
3979: as_expr=false
3980: fi
3981:
1.6 ! takayama 3982: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.5 takayama 3983: as_basename=basename
3984: else
3985: as_basename=false
3986: fi
1.3 takayama 3987:
1.6 ! takayama 3988: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 3989: as_dirname=dirname
! 3990: else
! 3991: as_dirname=false
! 3992: fi
1.3 takayama 3993:
1.6 ! takayama 3994: as_me=`$as_basename -- "$0" ||
1.3 takayama 3995: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3996: X"$0" : 'X\(//\)$' \| \
1.6 ! takayama 3997: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 3998: $as_echo X/"$0" |
! 3999: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 4000: s//\1/
! 4001: q
! 4002: }
! 4003: /^X\/\(\/\/\)$/{
! 4004: s//\1/
! 4005: q
! 4006: }
! 4007: /^X\/\(\/\).*/{
! 4008: s//\1/
! 4009: q
! 4010: }
! 4011: s/.*/./; q'`
1.5 takayama 4012:
1.3 takayama 4013: # Avoid depending upon Character Ranges.
4014: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4015: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4016: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4017: as_cr_digits='0123456789'
4018: as_cr_alnum=$as_cr_Letters$as_cr_digits
4019:
1.6 ! takayama 4020: ECHO_C= ECHO_N= ECHO_T=
! 4021: case `echo -n x` in #(((((
! 4022: -n*)
! 4023: case `echo 'xy\c'` in
! 4024: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 4025: xy) ECHO_C='\c';;
! 4026: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 4027: ECHO_T=' ';;
! 4028: esac;;
! 4029: *)
! 4030: ECHO_N='-n';;
! 4031: esac
! 4032:
! 4033: rm -f conf$$ conf$$.exe conf$$.file
! 4034: if test -d conf$$.dir; then
! 4035: rm -f conf$$.dir/conf$$.file
! 4036: else
! 4037: rm -f conf$$.dir
! 4038: mkdir conf$$.dir 2>/dev/null
! 4039: fi
! 4040: if (echo >conf$$.file) 2>/dev/null; then
! 4041: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 4042: as_ln_s='ln -s'
! 4043: # ... but there are two gotchas:
! 4044: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 4045: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 4046: # In both cases, we have to default to `cp -pR'.
! 4047: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 4048: as_ln_s='cp -pR'
! 4049: elif ln conf$$.file conf$$ 2>/dev/null; then
! 4050: as_ln_s=ln
1.3 takayama 4051: else
1.6 ! takayama 4052: as_ln_s='cp -pR'
1.3 takayama 4053: fi
1.6 ! takayama 4054: else
! 4055: as_ln_s='cp -pR'
1.3 takayama 4056: fi
1.6 ! takayama 4057: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 4058: rmdir conf$$.dir 2>/dev/null
1.3 takayama 4059:
4060:
1.6 ! takayama 4061: # as_fn_mkdir_p
! 4062: # -------------
! 4063: # Create "$as_dir" as a directory, including parents if necessary.
! 4064: as_fn_mkdir_p ()
! 4065: {
1.3 takayama 4066:
1.6 ! takayama 4067: case $as_dir in #(
! 4068: -*) as_dir=./$as_dir;;
1.3 takayama 4069: esac
1.6 ! takayama 4070: test -d "$as_dir" || eval $as_mkdir_p || {
! 4071: as_dirs=
! 4072: while :; do
! 4073: case $as_dir in #(
! 4074: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 4075: *) as_qdir=$as_dir;;
! 4076: esac
! 4077: as_dirs="'$as_qdir' $as_dirs"
! 4078: as_dir=`$as_dirname -- "$as_dir" ||
! 4079: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 4080: X"$as_dir" : 'X\(//\)[^/]' \| \
! 4081: X"$as_dir" : 'X\(//\)$' \| \
! 4082: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 4083: $as_echo X"$as_dir" |
! 4084: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 4085: s//\1/
! 4086: q
! 4087: }
! 4088: /^X\(\/\/\)[^/].*/{
! 4089: s//\1/
! 4090: q
! 4091: }
! 4092: /^X\(\/\/\)$/{
! 4093: s//\1/
! 4094: q
! 4095: }
! 4096: /^X\(\/\).*/{
! 4097: s//\1/
! 4098: q
! 4099: }
! 4100: s/.*/./; q'`
! 4101: test -d "$as_dir" && break
! 4102: done
! 4103: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 4104: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.3 takayama 4105:
4106:
1.6 ! takayama 4107: } # as_fn_mkdir_p
1.5 takayama 4108: if mkdir -p . 2>/dev/null; then
1.6 ! takayama 4109: as_mkdir_p='mkdir -p "$as_dir"'
1.5 takayama 4110: else
4111: test -d ./-p && rmdir ./-p
4112: as_mkdir_p=false
4113: fi
4114:
1.6 ! takayama 4115:
! 4116: # as_fn_executable_p FILE
! 4117: # -----------------------
! 4118: # Test if FILE is an executable regular file.
! 4119: as_fn_executable_p ()
! 4120: {
! 4121: test -f "$1" && test -x "$1"
! 4122: } # as_fn_executable_p
! 4123: as_test_x='test -x'
! 4124: as_executable_p=as_fn_executable_p
1.3 takayama 4125:
4126: # Sed expression to map a string onto a valid CPP name.
1.5 takayama 4127: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.3 takayama 4128:
4129: # Sed expression to map a string onto a valid variable name.
1.5 takayama 4130: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.3 takayama 4131:
4132:
4133: exec 6>&1
1.6 ! takayama 4134: ## ----------------------------------- ##
! 4135: ## Main body of $CONFIG_STATUS script. ##
! 4136: ## ----------------------------------- ##
! 4137: _ASEOF
! 4138: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.3 takayama 4139:
1.6 ! takayama 4140: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 4141: # Save the log message, to keep $0 and so on meaningful, and to
1.3 takayama 4142: # report actual input values of CONFIG_FILES etc. instead of their
1.6 ! takayama 4143: # values after options handling.
! 4144: ac_log="
1.3 takayama 4145: This file was extended by $as_me, which was
1.6 ! takayama 4146: generated by GNU Autoconf 2.69. Invocation command line was
1.3 takayama 4147:
4148: CONFIG_FILES = $CONFIG_FILES
4149: CONFIG_HEADERS = $CONFIG_HEADERS
4150: CONFIG_LINKS = $CONFIG_LINKS
4151: CONFIG_COMMANDS = $CONFIG_COMMANDS
4152: $ $0 $@
4153:
1.6 ! takayama 4154: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 4155: "
! 4156:
1.3 takayama 4157: _ACEOF
4158:
1.6 ! takayama 4159: case $ac_config_files in *"
! 4160: "*) set x $ac_config_files; shift; ac_config_files=$*;;
! 4161: esac
1.3 takayama 4162:
4163:
4164:
1.6 ! takayama 4165: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4166: # Files that config.status was made for.
! 4167: config_files="$ac_config_files"
1.3 takayama 4168:
1.6 ! takayama 4169: _ACEOF
1.3 takayama 4170:
1.6 ! takayama 4171: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.3 takayama 4172: ac_cs_usage="\
1.6 ! takayama 4173: \`$as_me' instantiates files and other configuration actions
! 4174: from templates according to the current configuration. Unless the files
! 4175: and actions are specified as TAGs, all are instantiated by default.
1.3 takayama 4176:
1.6 ! takayama 4177: Usage: $0 [OPTION]... [TAG]...
1.3 takayama 4178:
4179: -h, --help print this help, then exit
1.6 ! takayama 4180: -V, --version print version number and configuration settings, then exit
! 4181: --config print configuration, then exit
! 4182: -q, --quiet, --silent
! 4183: do not print progress messages
1.3 takayama 4184: -d, --debug don't remove temporary files
4185: --recheck update $as_me by reconfiguring in the same conditions
1.6 ! takayama 4186: --file=FILE[:TEMPLATE]
! 4187: instantiate the configuration file FILE
1.3 takayama 4188:
4189: Configuration files:
4190: $config_files
4191:
1.6 ! takayama 4192: Report bugs to the package provider."
! 4193:
1.3 takayama 4194: _ACEOF
1.6 ! takayama 4195: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4196: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.3 takayama 4197: ac_cs_version="\\
4198: config.status
1.6 ! takayama 4199: configured by $0, generated by GNU Autoconf 2.69,
! 4200: with options \\"\$ac_cs_config\\"
1.3 takayama 4201:
1.6 ! takayama 4202: Copyright (C) 2012 Free Software Foundation, Inc.
1.3 takayama 4203: This config.status script is free software; the Free Software Foundation
4204: gives unlimited permission to copy, distribute and modify it."
1.6 ! takayama 4205:
! 4206: ac_pwd='$ac_pwd'
! 4207: srcdir='$srcdir'
! 4208: test -n "\$AWK" || AWK=awk
1.3 takayama 4209: _ACEOF
4210:
1.6 ! takayama 4211: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 4212: # The default lists apply if the user does not specify any file.
1.3 takayama 4213: ac_need_defaults=:
4214: while test $# != 0
4215: do
4216: case $1 in
1.6 ! takayama 4217: --*=?*)
! 4218: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 4219: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.5 takayama 4220: ac_shift=:
4221: ;;
1.6 ! takayama 4222: --*=)
! 4223: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 4224: ac_optarg=
! 4225: ac_shift=:
! 4226: ;;
! 4227: *)
1.5 takayama 4228: ac_option=$1
4229: ac_optarg=$2
4230: ac_shift=shift
1.3 takayama 4231: ;;
4232: esac
4233:
1.5 takayama 4234: case $ac_option in
1.3 takayama 4235: # Handling of the options.
1.4 takayama 4236: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.5 takayama 4237: ac_cs_recheck=: ;;
1.6 ! takayama 4238: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 4239: $as_echo "$ac_cs_version"; exit ;;
! 4240: --config | --confi | --conf | --con | --co | --c )
! 4241: $as_echo "$ac_cs_config"; exit ;;
! 4242: --debug | --debu | --deb | --de | --d | -d )
1.3 takayama 4243: debug=: ;;
4244: --file | --fil | --fi | --f )
1.5 takayama 4245: $ac_shift
1.6 ! takayama 4246: case $ac_optarg in
! 4247: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 4248: '') as_fn_error $? "missing file argument" ;;
! 4249: esac
! 4250: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.3 takayama 4251: ac_need_defaults=false;;
1.6 ! takayama 4252: --he | --h | --help | --hel | -h )
! 4253: $as_echo "$ac_cs_usage"; exit ;;
1.5 takayama 4254: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4255: | -silent | --silent | --silen | --sile | --sil | --si | --s)
4256: ac_cs_silent=: ;;
1.3 takayama 4257:
4258: # This is an error.
1.6 ! takayama 4259: -*) as_fn_error $? "unrecognized option: \`$1'
! 4260: Try \`$0 --help' for more information." ;;
1.3 takayama 4261:
1.6 ! takayama 4262: *) as_fn_append ac_config_targets " $1"
! 4263: ac_need_defaults=false ;;
1.3 takayama 4264:
4265: esac
4266: shift
4267: done
4268:
1.5 takayama 4269: ac_configure_extra_args=
4270:
4271: if $ac_cs_silent; then
4272: exec 6>/dev/null
4273: ac_configure_extra_args="$ac_configure_extra_args --silent"
4274: fi
4275:
4276: _ACEOF
1.6 ! takayama 4277: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.5 takayama 4278: if \$ac_cs_recheck; then
1.6 ! takayama 4279: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 4280: shift
! 4281: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
! 4282: CONFIG_SHELL='$SHELL'
! 4283: export CONFIG_SHELL
! 4284: exec "\$@"
1.5 takayama 4285: fi
4286:
1.3 takayama 4287: _ACEOF
1.6 ! takayama 4288: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 4289: exec 5>>config.log
! 4290: {
! 4291: echo
! 4292: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 4293: ## Running $as_me. ##
! 4294: _ASBOX
! 4295: $as_echo "$ac_log"
! 4296: } >&5
1.3 takayama 4297:
1.6 ! takayama 4298: _ACEOF
! 4299: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4300: _ACEOF
1.3 takayama 4301:
1.6 ! takayama 4302: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.3 takayama 4303:
1.6 ! takayama 4304: # Handling of arguments.
1.3 takayama 4305: for ac_config_target in $ac_config_targets
4306: do
1.6 ! takayama 4307: case $ac_config_target in
! 4308: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 4309:
! 4310: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.3 takayama 4311: esac
4312: done
4313:
1.6 ! takayama 4314:
1.3 takayama 4315: # If the user did not use the arguments to specify the items to instantiate,
4316: # then the envvar interface is used. Set only those that are not.
4317: # We use the long form for the default assignment because of an extremely
4318: # bizarre bug on SunOS 4.1.3.
4319: if $ac_need_defaults; then
4320: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4321: fi
4322:
1.5 takayama 4323: # Have a temporary directory for convenience. Make it in the build tree
1.6 ! takayama 4324: # simply because there is no reason against having it here, and in addition,
1.5 takayama 4325: # creating and moving files from /tmp can sometimes cause problems.
1.6 ! takayama 4326: # Hook for its removal unless debugging.
! 4327: # Note that there is a small window in which the directory will not be cleaned:
! 4328: # after its creation but before its name has been assigned to `$tmp'.
1.3 takayama 4329: $debug ||
4330: {
1.6 ! takayama 4331: tmp= ac_tmp=
! 4332: trap 'exit_status=$?
! 4333: : "${ac_tmp:=$tmp}"
! 4334: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
! 4335: ' 0
! 4336: trap 'as_fn_exit 1' 1 2 13 15
1.3 takayama 4337: }
4338: # Create a (secure) tmp directory for tmp files.
1.5 takayama 4339:
1.3 takayama 4340: {
1.6 ! takayama 4341: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
! 4342: test -d "$tmp"
1.3 takayama 4343: } ||
4344: {
1.6 ! takayama 4345: tmp=./conf$$-$RANDOM
! 4346: (umask 077 && mkdir "$tmp")
! 4347: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 4348: ac_tmp=$tmp
! 4349:
! 4350: # Set up the scripts for CONFIG_FILES section.
! 4351: # No need to generate them if there are no CONFIG_FILES.
! 4352: # This happens for instance with `./config.status config.h'.
! 4353: if test -n "$CONFIG_FILES"; then
! 4354:
! 4355:
! 4356: ac_cr=`echo X | tr X '\015'`
! 4357: # On cygwin, bash can eat \r inside `` if the user requested igncr.
! 4358: # But we know of no other shell where ac_cr would be empty at this
! 4359: # point, so we can use a bashism as a fallback.
! 4360: if test "x$ac_cr" = x; then
! 4361: eval ac_cr=\$\'\\r\'
! 4362: fi
! 4363: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
! 4364: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
! 4365: ac_cs_awk_cr='\\r'
! 4366: else
! 4367: ac_cs_awk_cr=$ac_cr
! 4368: fi
! 4369:
! 4370: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
! 4371: _ACEOF
! 4372:
! 4373:
! 4374: {
! 4375: echo "cat >conf$$subs.awk <<_ACEOF" &&
! 4376: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
! 4377: echo "_ACEOF"
! 4378: } >conf$$subs.sh ||
! 4379: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 4380: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
! 4381: ac_delim='%!_!# '
! 4382: for ac_last_try in false false false false false :; do
! 4383: . ./conf$$subs.sh ||
! 4384: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 4385:
! 4386: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
! 4387: if test $ac_delim_n = $ac_delim_num; then
! 4388: break
! 4389: elif $ac_last_try; then
! 4390: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 4391: else
! 4392: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 4393: fi
! 4394: done
! 4395: rm -f conf$$subs.sh
! 4396:
! 4397: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4398: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
! 4399: _ACEOF
! 4400: sed -n '
! 4401: h
! 4402: s/^/S["/; s/!.*/"]=/
! 4403: p
! 4404: g
! 4405: s/^[^!]*!//
! 4406: :repl
! 4407: t repl
! 4408: s/'"$ac_delim"'$//
! 4409: t delim
! 4410: :nl
! 4411: h
! 4412: s/\(.\{148\}\)..*/\1/
! 4413: t more1
! 4414: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
! 4415: p
! 4416: n
! 4417: b repl
! 4418: :more1
! 4419: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 4420: p
! 4421: g
! 4422: s/.\{148\}//
! 4423: t nl
! 4424: :delim
! 4425: h
! 4426: s/\(.\{148\}\)..*/\1/
! 4427: t more2
! 4428: s/["\\]/\\&/g; s/^/"/; s/$/"/
! 4429: p
! 4430: b
! 4431: :more2
! 4432: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 4433: p
! 4434: g
! 4435: s/.\{148\}//
! 4436: t delim
! 4437: ' <conf$$subs.awk | sed '
! 4438: /^[^""]/{
! 4439: N
! 4440: s/\n//
! 4441: }
! 4442: ' >>$CONFIG_STATUS || ac_write_fail=1
! 4443: rm -f conf$$subs.awk
! 4444: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4445: _ACAWK
! 4446: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
! 4447: for (key in S) S_is_set[key] = 1
! 4448: FS = ""
! 4449:
! 4450: }
1.3 takayama 4451: {
1.6 ! takayama 4452: line = $ 0
! 4453: nfields = split(line, field, "@")
! 4454: substed = 0
! 4455: len = length(field[1])
! 4456: for (i = 2; i < nfields; i++) {
! 4457: key = field[i]
! 4458: keylen = length(key)
! 4459: if (S_is_set[key]) {
! 4460: value = S[key]
! 4461: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
! 4462: len += length(value) + length(field[++i])
! 4463: substed = 1
! 4464: } else
! 4465: len += 1 + keylen
! 4466: }
! 4467:
! 4468: print line
1.3 takayama 4469: }
4470:
1.6 ! takayama 4471: _ACAWK
! 4472: _ACEOF
! 4473: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 4474: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
! 4475: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
! 4476: else
! 4477: cat
! 4478: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
! 4479: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.3 takayama 4480: _ACEOF
4481:
1.6 ! takayama 4482: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 4483: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
! 4484: # trailing colons and then remove the whole line if VPATH becomes empty
! 4485: # (actually we leave an empty line to preserve line numbers).
! 4486: if test "x$srcdir" = x.; then
! 4487: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 4488: h
! 4489: s///
! 4490: s/^/:/
! 4491: s/[ ]*$/:/
! 4492: s/:\$(srcdir):/:/g
! 4493: s/:\${srcdir}:/:/g
! 4494: s/:@srcdir@:/:/g
! 4495: s/^:*//
! 4496: s/:*$//
! 4497: x
! 4498: s/\(=[ ]*\).*/\1/
! 4499: G
! 4500: s/\n//
! 4501: s/^[^=]*=[ ]*$//
! 4502: }'
! 4503: fi
! 4504:
! 4505: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 4506: fi # test -n "$CONFIG_FILES"
! 4507:
! 4508:
! 4509: eval set X " :F $CONFIG_FILES "
! 4510: shift
! 4511: for ac_tag
! 4512: do
! 4513: case $ac_tag in
! 4514: :[FHLC]) ac_mode=$ac_tag; continue;;
! 4515: esac
! 4516: case $ac_mode$ac_tag in
! 4517: :[FHL]*:*);;
! 4518: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
! 4519: :[FH]-) ac_tag=-:-;;
! 4520: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 4521: esac
! 4522: ac_save_IFS=$IFS
! 4523: IFS=:
! 4524: set x $ac_tag
! 4525: IFS=$ac_save_IFS
! 4526: shift
! 4527: ac_file=$1
! 4528: shift
1.3 takayama 4529:
1.6 ! takayama 4530: case $ac_mode in
! 4531: :L) ac_source=$1;;
! 4532: :[FH])
! 4533: ac_file_inputs=
! 4534: for ac_f
! 4535: do
! 4536: case $ac_f in
! 4537: -) ac_f="$ac_tmp/stdin";;
! 4538: *) # Look for the file first in the build tree, then in the source tree
! 4539: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 4540: # because $ac_f cannot contain `:'.
! 4541: test -f "$ac_f" ||
! 4542: case $ac_f in
! 4543: [\\/$]*) false;;
! 4544: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 4545: esac ||
! 4546: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
! 4547: esac
! 4548: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
! 4549: as_fn_append ac_file_inputs " '$ac_f'"
! 4550: done
1.3 takayama 4551:
1.6 ! takayama 4552: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 4553: # use $as_me), people would be surprised to read:
! 4554: # /* config.h. Generated by config.status. */
! 4555: configure_input='Generated from '`
! 4556: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
! 4557: `' by configure.'
! 4558: if test x"$ac_file" != x-; then
! 4559: configure_input="$ac_file. $configure_input"
! 4560: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 4561: $as_echo "$as_me: creating $ac_file" >&6;}
1.3 takayama 4562: fi
1.6 ! takayama 4563: # Neutralize special characters interpreted by sed in replacement strings.
! 4564: case $configure_input in #(
! 4565: *\&* | *\|* | *\\* )
! 4566: ac_sed_conf_input=`$as_echo "$configure_input" |
! 4567: sed 's/[\\\\&|]/\\\\&/g'`;; #(
! 4568: *) ac_sed_conf_input=$configure_input;;
! 4569: esac
1.3 takayama 4570:
1.6 ! takayama 4571: case $ac_tag in
! 4572: *:-:* | *:-) cat >"$ac_tmp/stdin" \
! 4573: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
! 4574: esac
! 4575: ;;
1.3 takayama 4576: esac
4577:
1.6 ! takayama 4578: ac_dir=`$as_dirname -- "$ac_file" ||
1.3 takayama 4579: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.5 takayama 4580: X"$ac_file" : 'X\(//\)[^/]' \| \
4581: X"$ac_file" : 'X\(//\)$' \| \
1.6 ! takayama 4582: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
! 4583: $as_echo X"$ac_file" |
! 4584: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 4585: s//\1/
! 4586: q
! 4587: }
! 4588: /^X\(\/\/\)[^/].*/{
! 4589: s//\1/
! 4590: q
! 4591: }
! 4592: /^X\(\/\/\)$/{
! 4593: s//\1/
! 4594: q
! 4595: }
! 4596: /^X\(\/\).*/{
! 4597: s//\1/
! 4598: q
! 4599: }
! 4600: s/.*/./; q'`
! 4601: as_dir="$ac_dir"; as_fn_mkdir_p
1.3 takayama 4602: ac_builddir=.
4603:
1.6 ! takayama 4604: case "$ac_dir" in
! 4605: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 4606: *)
! 4607: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 4608: # A ".." for each directory in $ac_dir_suffix.
! 4609: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 4610: case $ac_top_builddir_sub in
! 4611: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 4612: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 4613: esac ;;
! 4614: esac
! 4615: ac_abs_top_builddir=$ac_pwd
! 4616: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 4617: # for backward compatibility:
! 4618: ac_top_builddir=$ac_top_build_prefix
1.3 takayama 4619:
4620: case $srcdir in
1.6 ! takayama 4621: .) # We are building in place.
1.3 takayama 4622: ac_srcdir=.
1.6 ! takayama 4623: ac_top_srcdir=$ac_top_builddir_sub
! 4624: ac_abs_top_srcdir=$ac_pwd ;;
! 4625: [\\/]* | ?:[\\/]* ) # Absolute name.
1.3 takayama 4626: ac_srcdir=$srcdir$ac_dir_suffix;
1.6 ! takayama 4627: ac_top_srcdir=$srcdir
! 4628: ac_abs_top_srcdir=$srcdir ;;
! 4629: *) # Relative name.
! 4630: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 4631: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 4632: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.5 takayama 4633: esac
1.6 ! takayama 4634: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.3 takayama 4635:
4636:
1.6 ! takayama 4637: case $ac_mode in
! 4638: :F)
! 4639: #
! 4640: # CONFIG_FILE
! 4641: #
1.3 takayama 4642:
1.6 ! takayama 4643: _ACEOF
1.3 takayama 4644:
1.6 ! takayama 4645: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 4646: # If the template does not know about datarootdir, expand it.
! 4647: # FIXME: This hack should be removed a few years after 2.60.
! 4648: ac_datarootdir_hack=; ac_datarootdir_seen=
! 4649: ac_sed_dataroot='
! 4650: /datarootdir/ {
! 4651: p
! 4652: q
! 4653: }
! 4654: /@datadir@/p
! 4655: /@docdir@/p
! 4656: /@infodir@/p
! 4657: /@localedir@/p
! 4658: /@mandir@/p'
! 4659: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
! 4660: *datarootdir*) ac_datarootdir_seen=yes;;
! 4661: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 4662: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 4663: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 4664: _ACEOF
! 4665: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4666: ac_datarootdir_hack='
! 4667: s&@datadir@&$datadir&g
! 4668: s&@docdir@&$docdir&g
! 4669: s&@infodir@&$infodir&g
! 4670: s&@localedir@&$localedir&g
! 4671: s&@mandir@&$mandir&g
! 4672: s&\\\${datarootdir}&$datarootdir&g' ;;
! 4673: esac
1.3 takayama 4674: _ACEOF
1.6 ! takayama 4675:
! 4676: # Neutralize VPATH when `$srcdir' = `.'.
! 4677: # Shell code in configure.ac might set extrasub.
! 4678: # FIXME: do we really want to maintain this feature?
! 4679: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 4680: ac_sed_extra="$ac_vpsub
1.3 takayama 4681: $extrasub
4682: _ACEOF
1.6 ! takayama 4683: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.3 takayama 4684: :t
4685: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.6 ! takayama 4686: s|@configure_input@|$ac_sed_conf_input|;t t
! 4687: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 4688: s&@top_build_prefix@&$ac_top_build_prefix&;t t
! 4689: s&@srcdir@&$ac_srcdir&;t t
! 4690: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 4691: s&@top_srcdir@&$ac_top_srcdir&;t t
! 4692: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 4693: s&@builddir@&$ac_builddir&;t t
! 4694: s&@abs_builddir@&$ac_abs_builddir&;t t
! 4695: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 4696: $ac_datarootdir_hack
! 4697: "
! 4698: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
! 4699: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 4700:
! 4701: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 4702: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
! 4703: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
! 4704: "$ac_tmp/out"`; test -z "$ac_out"; } &&
! 4705: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 4706: which seems to be undefined. Please make sure it is defined" >&5
! 4707: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 4708: which seems to be undefined. Please make sure it is defined" >&2;}
! 4709:
! 4710: rm -f "$ac_tmp/stdin"
! 4711: case $ac_file in
! 4712: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
! 4713: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
! 4714: esac \
! 4715: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 4716: ;;
! 4717:
! 4718:
! 4719:
! 4720: esac
1.3 takayama 4721:
1.6 ! takayama 4722: done # for ac_tag
1.3 takayama 4723:
4724:
1.6 ! takayama 4725: as_fn_exit 0
1.3 takayama 4726: _ACEOF
4727: ac_clean_files=$ac_clean_files_save
4728:
1.6 ! takayama 4729: test $ac_write_fail = 0 ||
! 4730: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
! 4731:
1.3 takayama 4732:
4733: # configure is writing to config.log, and then calls config.status.
4734: # config.status does its own redirection, appending to config.log.
4735: # Unfortunately, on DOS this fails, as config.log is still kept open
4736: # by configure, so config.status won't be able to write to it; its
4737: # output is simply discarded. So we exec the FD to /dev/null,
4738: # effectively closing config.log, so it can be properly (re)opened and
4739: # appended to by config.status. When coming back to configure, we
4740: # need to make the FD available again.
4741: if test "$no_create" != yes; then
4742: ac_cs_success=:
1.5 takayama 4743: ac_config_status_args=
4744: test "$silent" = yes &&
4745: ac_config_status_args="$ac_config_status_args --quiet"
1.3 takayama 4746: exec 5>/dev/null
1.5 takayama 4747: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.3 takayama 4748: exec 5>>config.log
4749: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4750: # would make configure fail if this is the last instruction.
1.6 ! takayama 4751: $ac_cs_success || as_fn_exit 1
! 4752: fi
! 4753: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
! 4754: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 4755: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.3 takayama 4756: fi
4757:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>