[3745] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[25169] | 3 | # Generated by GNU Autoconf 2.68.
|
---|
[3745] | 4 | #
|
---|
[25169] | 5 | #
|
---|
[23356] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
[25169] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
---|
| 8 | # Foundation, Inc.
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
[3745] | 11 | # This configure script is free software; the Free Software Foundation
|
---|
| 12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[25169] | 13 | ## -------------------- ##
|
---|
| 14 | ## M4sh Initialization. ##
|
---|
| 15 | ## -------------------- ##
|
---|
[3745] | 16 |
|
---|
[23356] | 17 | # Be more Bourne compatible
|
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[25169] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[3745] | 20 | emulate sh
|
---|
| 21 | NULLCMD=:
|
---|
[23356] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10191] | 23 | # is contrary to our usage. Disable this feature.
|
---|
| 24 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 25 | setopt NO_GLOB_SUBST
|
---|
| 26 | else
|
---|
[25169] | 27 | case `(set -o) 2>/dev/null` in #(
|
---|
| 28 | *posix*) :
|
---|
| 29 | set -o posix ;; #(
|
---|
| 30 | *) :
|
---|
| 31 | ;;
|
---|
[23356] | 32 | esac
|
---|
[3745] | 33 | fi
|
---|
| 34 |
|
---|
[23356] | 35 |
|
---|
| 36 | as_nl='
|
---|
| 37 | '
|
---|
| 38 | export as_nl
|
---|
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
[25169] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 44 | # but without wasting forks for bash or zsh.
|
---|
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 47 | as_echo='print -r --'
|
---|
| 48 | as_echo_n='print -rn --'
|
---|
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
[23356] | 50 | as_echo='printf %s\n'
|
---|
| 51 | as_echo_n='printf %s'
|
---|
[10191] | 52 | else
|
---|
[23356] | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 55 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 56 | else
|
---|
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 58 | as_echo_n_body='eval
|
---|
| 59 | arg=$1;
|
---|
[25169] | 60 | case $arg in #(
|
---|
[23356] | 61 | *"$as_nl"*)
|
---|
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 64 | esac;
|
---|
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 66 | '
|
---|
| 67 | export as_echo_n_body
|
---|
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 69 | fi
|
---|
| 70 | export as_echo_body
|
---|
| 71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10191] | 72 | fi
|
---|
| 73 |
|
---|
[23356] | 74 | # The user is always right.
|
---|
| 75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 76 | PATH_SEPARATOR=:
|
---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 79 | PATH_SEPARATOR=';'
|
---|
| 80 | }
|
---|
| 81 | fi
|
---|
[10191] | 82 |
|
---|
[23356] | 83 |
|
---|
| 84 | # IFS
|
---|
| 85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 86 | # there to prevent editors from complaining about space-tab.
|
---|
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 88 | # splitting by setting IFS to empty value.)
|
---|
| 89 | IFS=" "" $as_nl"
|
---|
| 90 |
|
---|
| 91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
[25169] | 92 | as_myself=
|
---|
| 93 | case $0 in #((
|
---|
[23356] | 94 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 96 | for as_dir in $PATH
|
---|
| 97 | do
|
---|
| 98 | IFS=$as_save_IFS
|
---|
| 99 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 101 | done
|
---|
[23356] | 102 | IFS=$as_save_IFS
|
---|
| 103 |
|
---|
| 104 | ;;
|
---|
| 105 | esac
|
---|
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 107 | # in which case we are not to be found in the path.
|
---|
| 108 | if test "x$as_myself" = x; then
|
---|
| 109 | as_myself=$0
|
---|
| 110 | fi
|
---|
| 111 | if test ! -f "$as_myself"; then
|
---|
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25169] | 113 | exit 1
|
---|
[23356] | 114 | fi
|
---|
| 115 |
|
---|
[25169] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 118 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 119 | # trigger a bug in pdksh 5.2.14.
|
---|
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 121 | do eval test x\${$as_var+set} = xset \
|
---|
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
[23356] | 123 | done
|
---|
[10191] | 124 | PS1='$ '
|
---|
| 125 | PS2='> '
|
---|
| 126 | PS4='+ '
|
---|
| 127 |
|
---|
| 128 | # NLS nuisances.
|
---|
[23356] | 129 | LC_ALL=C
|
---|
| 130 | export LC_ALL
|
---|
| 131 | LANGUAGE=C
|
---|
| 132 | export LANGUAGE
|
---|
| 133 |
|
---|
| 134 | # CDPATH.
|
---|
[25169] | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
[23356] | 136 |
|
---|
| 137 | if test "x$CONFIG_SHELL" = x; then
|
---|
[25169] | 138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 139 | emulate sh
|
---|
| 140 | NULLCMD=:
|
---|
| 141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
| 142 | # is contrary to our usage. Disable this feature.
|
---|
| 143 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
| 144 | setopt NO_GLOB_SUBST
|
---|
[23356] | 145 | else
|
---|
[25169] | 146 | case \`(set -o) 2>/dev/null\` in #(
|
---|
| 147 | *posix*) :
|
---|
| 148 | set -o posix ;; #(
|
---|
| 149 | *) :
|
---|
| 150 | ;;
|
---|
| 151 | esac
|
---|
[23356] | 152 | fi
|
---|
[25169] | 153 | "
|
---|
| 154 | as_required="as_fn_return () { (exit \$1); }
|
---|
| 155 | as_fn_success () { as_fn_return 0; }
|
---|
| 156 | as_fn_failure () { as_fn_return 1; }
|
---|
| 157 | as_fn_ret_success () { return 0; }
|
---|
| 158 | as_fn_ret_failure () { return 1; }
|
---|
[23356] | 159 |
|
---|
| 160 | exitcode=0
|
---|
[25169] | 161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
| 162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
| 163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
| 164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
| 165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
[23356] | 166 |
|
---|
| 167 | else
|
---|
[25169] | 168 | exitcode=1; echo positional parameters were not saved.
|
---|
[23356] | 169 | fi
|
---|
[25169] | 170 | test x\$exitcode = x0 || exit 1"
|
---|
| 171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
| 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
| 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
| 174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
| 175 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
| 176 | if (eval "$as_required") 2>/dev/null; then :
|
---|
| 177 | as_have_required=yes
|
---|
[23356] | 178 | else
|
---|
[25169] | 179 | as_have_required=no
|
---|
[23356] | 180 | fi
|
---|
[25169] | 181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
[23356] | 182 |
|
---|
| 183 | else
|
---|
[25169] | 184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 185 | as_found=false
|
---|
[23356] | 186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
[10191] | 187 | do
|
---|
[23356] | 188 | IFS=$as_save_IFS
|
---|
| 189 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 190 | as_found=:
|
---|
| 191 | case $as_dir in #(
|
---|
[23356] | 192 | /*)
|
---|
| 193 | for as_base in sh bash ksh sh5; do
|
---|
[25169] | 194 | # Try only shells that exist, to save several forks.
|
---|
| 195 | as_shell=$as_dir/$as_base
|
---|
| 196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 198 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
| 199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 200 | break 2
|
---|
| 201 | fi
|
---|
| 202 | fi
|
---|
[23356] | 203 | done;;
|
---|
| 204 | esac
|
---|
[25169] | 205 | as_found=false
|
---|
[23356] | 206 | done
|
---|
[25169] | 207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
| 208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
| 209 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
| 210 | fi; }
|
---|
[23356] | 211 | IFS=$as_save_IFS
|
---|
| 212 |
|
---|
| 213 |
|
---|
[25169] | 214 | if test "x$CONFIG_SHELL" != x; then :
|
---|
| 215 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 216 | # neutralization value for shells without unset; and this also
|
---|
| 217 | # works around shells that cannot unset nonexistent variables.
|
---|
| 218 | # Preserve -v and -x to the replacement shell.
|
---|
| 219 | BASH_ENV=/dev/null
|
---|
| 220 | ENV=/dev/null
|
---|
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 222 | export CONFIG_SHELL
|
---|
| 223 | case $- in # ((((
|
---|
| 224 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
| 225 | *v* ) as_opts=-v ;;
|
---|
| 226 | *x* ) as_opts=-x ;;
|
---|
| 227 | * ) as_opts= ;;
|
---|
| 228 | esac
|
---|
| 229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
|
---|
[23356] | 230 | fi
|
---|
| 231 |
|
---|
[25169] | 232 | if test x$as_have_required = xno; then :
|
---|
| 233 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
| 234 | $as_echo "$0: the shells that I found on your system."
|
---|
| 235 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
| 236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
| 237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
| 238 | else
|
---|
| 239 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
| 240 | $0: including any error possibly output before this
|
---|
| 241 | $0: message. Then install a modern shell, or manually run
|
---|
| 242 | $0: the script under such a shell if you do have one."
|
---|
| 243 | fi
|
---|
| 244 | exit 1
|
---|
[23356] | 245 | fi
|
---|
| 246 | fi
|
---|
| 247 | fi
|
---|
[25169] | 248 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 249 | export SHELL
|
---|
| 250 | # Unset more variables known to interfere with behavior of common tools.
|
---|
| 251 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
| 252 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
[10191] | 253 |
|
---|
[25169] | 254 | ## --------------------- ##
|
---|
| 255 | ## M4sh Shell Functions. ##
|
---|
| 256 | ## --------------------- ##
|
---|
| 257 | # as_fn_unset VAR
|
---|
| 258 | # ---------------
|
---|
| 259 | # Portably unset VAR.
|
---|
| 260 | as_fn_unset ()
|
---|
| 261 | {
|
---|
| 262 | { eval $1=; unset $1;}
|
---|
| 263 | }
|
---|
| 264 | as_unset=as_fn_unset
|
---|
[23356] | 265 |
|
---|
[25169] | 266 | # as_fn_set_status STATUS
|
---|
| 267 | # -----------------------
|
---|
| 268 | # Set $? to STATUS, without forking.
|
---|
| 269 | as_fn_set_status ()
|
---|
| 270 | {
|
---|
| 271 | return $1
|
---|
| 272 | } # as_fn_set_status
|
---|
[23356] | 273 |
|
---|
[25169] | 274 | # as_fn_exit STATUS
|
---|
| 275 | # -----------------
|
---|
| 276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 277 | as_fn_exit ()
|
---|
| 278 | {
|
---|
| 279 | set +e
|
---|
| 280 | as_fn_set_status $1
|
---|
| 281 | exit $1
|
---|
| 282 | } # as_fn_exit
|
---|
[23356] | 283 |
|
---|
[25169] | 284 | # as_fn_mkdir_p
|
---|
| 285 | # -------------
|
---|
| 286 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 287 | as_fn_mkdir_p ()
|
---|
| 288 | {
|
---|
[23356] | 289 |
|
---|
[25169] | 290 | case $as_dir in #(
|
---|
| 291 | -*) as_dir=./$as_dir;;
|
---|
| 292 | esac
|
---|
| 293 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 294 | as_dirs=
|
---|
| 295 | while :; do
|
---|
| 296 | case $as_dir in #(
|
---|
| 297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 298 | *) as_qdir=$as_dir;;
|
---|
| 299 | esac
|
---|
| 300 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 301 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 303 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 304 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 306 | $as_echo X"$as_dir" |
|
---|
| 307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 308 | s//\1/
|
---|
| 309 | q
|
---|
| 310 | }
|
---|
| 311 | /^X\(\/\/\)[^/].*/{
|
---|
| 312 | s//\1/
|
---|
| 313 | q
|
---|
| 314 | }
|
---|
| 315 | /^X\(\/\/\)$/{
|
---|
| 316 | s//\1/
|
---|
| 317 | q
|
---|
| 318 | }
|
---|
| 319 | /^X\(\/\).*/{
|
---|
| 320 | s//\1/
|
---|
| 321 | q
|
---|
| 322 | }
|
---|
| 323 | s/.*/./; q'`
|
---|
| 324 | test -d "$as_dir" && break
|
---|
| 325 | done
|
---|
| 326 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
[23356] | 328 |
|
---|
| 329 |
|
---|
[25169] | 330 | } # as_fn_mkdir_p
|
---|
| 331 | # as_fn_append VAR VALUE
|
---|
| 332 | # ----------------------
|
---|
| 333 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 334 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 335 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 336 | # implementations.
|
---|
| 337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 338 | eval 'as_fn_append ()
|
---|
| 339 | {
|
---|
| 340 | eval $1+=\$2
|
---|
| 341 | }'
|
---|
| 342 | else
|
---|
| 343 | as_fn_append ()
|
---|
| 344 | {
|
---|
| 345 | eval $1=\$$1\$2
|
---|
| 346 | }
|
---|
| 347 | fi # as_fn_append
|
---|
[23356] | 348 |
|
---|
[25169] | 349 | # as_fn_arith ARG...
|
---|
| 350 | # ------------------
|
---|
| 351 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 353 | # must be portable across $(()) and expr.
|
---|
| 354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 355 | eval 'as_fn_arith ()
|
---|
| 356 | {
|
---|
| 357 | as_val=$(( $* ))
|
---|
| 358 | }'
|
---|
| 359 | else
|
---|
| 360 | as_fn_arith ()
|
---|
| 361 | {
|
---|
| 362 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 363 | }
|
---|
| 364 | fi # as_fn_arith
|
---|
[23356] | 365 |
|
---|
| 366 |
|
---|
[25169] | 367 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 368 | # ----------------------------------------
|
---|
| 369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 371 | # script with STATUS, using 1 if that was 0.
|
---|
| 372 | as_fn_error ()
|
---|
| 373 | {
|
---|
| 374 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 375 | if test "$4"; then
|
---|
| 376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 378 | fi
|
---|
| 379 | $as_echo "$as_me: error: $2" >&2
|
---|
| 380 | as_fn_exit $as_status
|
---|
| 381 | } # as_fn_error
|
---|
[23356] | 382 |
|
---|
[25169] | 383 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 385 | as_expr=expr
|
---|
[10191] | 386 | else
|
---|
[25169] | 387 | as_expr=false
|
---|
[10191] | 388 | fi
|
---|
| 389 |
|
---|
[25169] | 390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 391 | as_basename=basename
|
---|
[10191] | 392 | else
|
---|
[25169] | 393 | as_basename=false
|
---|
[10191] | 394 | fi
|
---|
| 395 |
|
---|
[25169] | 396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 397 | as_dirname=dirname
|
---|
[23356] | 398 | else
|
---|
[25169] | 399 | as_dirname=false
|
---|
[23356] | 400 | fi
|
---|
[10191] | 401 |
|
---|
[25169] | 402 | as_me=`$as_basename -- "$0" ||
|
---|
| 403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 404 | X"$0" : 'X\(//\)$' \| \
|
---|
| 405 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 406 | $as_echo X/"$0" |
|
---|
| 407 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 408 | s//\1/
|
---|
| 409 | q
|
---|
| 410 | }
|
---|
| 411 | /^X\/\(\/\/\)$/{
|
---|
| 412 | s//\1/
|
---|
| 413 | q
|
---|
| 414 | }
|
---|
| 415 | /^X\/\(\/\).*/{
|
---|
| 416 | s//\1/
|
---|
| 417 | q
|
---|
| 418 | }
|
---|
| 419 | s/.*/./; q'`
|
---|
[3745] | 420 |
|
---|
[25169] | 421 | # Avoid depending upon Character Ranges.
|
---|
| 422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 425 | as_cr_digits='0123456789'
|
---|
| 426 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[10191] | 427 |
|
---|
| 428 |
|
---|
[25169] | 429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
| 430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
| 431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
| 432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
| 433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
[23356] | 434 | sed -n '
|
---|
| 435 | p
|
---|
| 436 | /[$]LINENO/=
|
---|
| 437 | ' <$as_myself |
|
---|
[10191] | 438 | sed '
|
---|
[23356] | 439 | s/[$]LINENO.*/&-/
|
---|
| 440 | t lineno
|
---|
| 441 | b
|
---|
| 442 | :lineno
|
---|
[10191] | 443 | N
|
---|
[23356] | 444 | :loop
|
---|
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[10191] | 446 | t loop
|
---|
[23356] | 447 | s/-\n.*//
|
---|
[10191] | 448 | ' >$as_me.lineno &&
|
---|
[23356] | 449 | chmod +x "$as_me.lineno" ||
|
---|
[25169] | 450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
[10191] | 451 |
|
---|
| 452 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 453 | # (the dirname of $[0] is not the place where we might find the
|
---|
[23356] | 454 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 455 | . "./$as_me.lineno"
|
---|
[10191] | 456 | # Exit status is that of the last command.
|
---|
| 457 | exit
|
---|
| 458 | }
|
---|
| 459 |
|
---|
[23356] | 460 | ECHO_C= ECHO_N= ECHO_T=
|
---|
[25169] | 461 | case `echo -n x` in #(((((
|
---|
[23356] | 462 | -n*)
|
---|
[25169] | 463 | case `echo 'xy\c'` in
|
---|
[23356] | 464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
[25169] | 465 | xy) ECHO_C='\c';;
|
---|
| 466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 467 | ECHO_T=' ';;
|
---|
[23356] | 468 | esac;;
|
---|
| 469 | *)
|
---|
| 470 | ECHO_N='-n';;
|
---|
[10191] | 471 | esac
|
---|
| 472 |
|
---|
[23356] | 473 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 474 | if test -d conf$$.dir; then
|
---|
| 475 | rm -f conf$$.dir/conf$$.file
|
---|
[3745] | 476 | else
|
---|
[23356] | 477 | rm -f conf$$.dir
|
---|
| 478 | mkdir conf$$.dir 2>/dev/null
|
---|
[3745] | 479 | fi
|
---|
[23356] | 480 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 481 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 482 | as_ln_s='ln -s'
|
---|
| 483 | # ... but there are two gotchas:
|
---|
| 484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 486 | # In both cases, we have to default to `cp -p'.
|
---|
| 487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 488 | as_ln_s='cp -p'
|
---|
| 489 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 490 | as_ln_s=ln
|
---|
| 491 | else
|
---|
[3745] | 492 | as_ln_s='cp -p'
|
---|
| 493 | fi
|
---|
| 494 | else
|
---|
| 495 | as_ln_s='cp -p'
|
---|
| 496 | fi
|
---|
[23356] | 497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 498 | rmdir conf$$.dir 2>/dev/null
|
---|
[3745] | 499 |
|
---|
[10191] | 500 | if mkdir -p . 2>/dev/null; then
|
---|
[25169] | 501 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[3745] | 502 | else
|
---|
[10191] | 503 | test -d ./-p && rmdir ./-p
|
---|
| 504 | as_mkdir_p=false
|
---|
[3745] | 505 | fi
|
---|
| 506 |
|
---|
[23356] | 507 | if test -x / >/dev/null 2>&1; then
|
---|
| 508 | as_test_x='test -x'
|
---|
| 509 | else
|
---|
| 510 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 511 | as_ls_L_option=L
|
---|
| 512 | else
|
---|
| 513 | as_ls_L_option=
|
---|
| 514 | fi
|
---|
| 515 | as_test_x='
|
---|
| 516 | eval sh -c '\''
|
---|
| 517 | if test -d "$1"; then
|
---|
| 518 | test -d "$1/.";
|
---|
| 519 | else
|
---|
[25169] | 520 | case $1 in #(
|
---|
[23356] | 521 | -*)set "./$1";;
|
---|
| 522 | esac;
|
---|
[25169] | 523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
[23356] | 524 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 525 | '\'' sh
|
---|
| 526 | '
|
---|
| 527 | fi
|
---|
| 528 | as_executable_p=$as_test_x
|
---|
[3745] | 529 |
|
---|
[10191] | 530 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 532 |
|
---|
| 533 | # Sed expression to map a string onto a valid variable name.
|
---|
| 534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 535 |
|
---|
| 536 |
|
---|
[25169] | 537 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 538 | exec 6>&1
|
---|
[3745] | 539 |
|
---|
| 540 | # Name of the host.
|
---|
[25169] | 541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
[3745] | 542 | # so uname gets run too.
|
---|
| 543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 544 |
|
---|
| 545 | #
|
---|
| 546 | # Initializations.
|
---|
| 547 | #
|
---|
| 548 | ac_default_prefix=/usr/local
|
---|
[23356] | 549 | ac_clean_files=
|
---|
[10191] | 550 | ac_config_libobj_dir=.
|
---|
[23356] | 551 | LIBOBJS=
|
---|
[3745] | 552 | cross_compiling=no
|
---|
| 553 | subdirs=
|
---|
[10191] | 554 | MFLAGS=
|
---|
| 555 | MAKEFLAGS=
|
---|
[3745] | 556 |
|
---|
[10191] | 557 | # Identity of this package.
|
---|
| 558 | PACKAGE_NAME=
|
---|
| 559 | PACKAGE_TARNAME=
|
---|
| 560 | PACKAGE_VERSION=
|
---|
| 561 | PACKAGE_STRING=
|
---|
| 562 | PACKAGE_BUGREPORT=
|
---|
[25169] | 563 | PACKAGE_URL=
|
---|
[3745] | 564 |
|
---|
| 565 | ac_unique_file="src/text/mgquery.c"
|
---|
| 566 | # Factoring default headers for most tests.
|
---|
| 567 | ac_includes_default="\
|
---|
| 568 | #include <stdio.h>
|
---|
[23356] | 569 | #ifdef HAVE_SYS_TYPES_H
|
---|
[10191] | 570 | # include <sys/types.h>
|
---|
| 571 | #endif
|
---|
[23356] | 572 | #ifdef HAVE_SYS_STAT_H
|
---|
[10191] | 573 | # include <sys/stat.h>
|
---|
| 574 | #endif
|
---|
[23356] | 575 | #ifdef STDC_HEADERS
|
---|
[3745] | 576 | # include <stdlib.h>
|
---|
| 577 | # include <stddef.h>
|
---|
| 578 | #else
|
---|
[23356] | 579 | # ifdef HAVE_STDLIB_H
|
---|
[3745] | 580 | # include <stdlib.h>
|
---|
| 581 | # endif
|
---|
| 582 | #endif
|
---|
[23356] | 583 | #ifdef HAVE_STRING_H
|
---|
| 584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[3745] | 585 | # include <memory.h>
|
---|
| 586 | # endif
|
---|
| 587 | # include <string.h>
|
---|
| 588 | #endif
|
---|
[23356] | 589 | #ifdef HAVE_STRINGS_H
|
---|
[10191] | 590 | # include <strings.h>
|
---|
| 591 | #endif
|
---|
[23356] | 592 | #ifdef HAVE_INTTYPES_H
|
---|
[3745] | 593 | # include <inttypes.h>
|
---|
| 594 | #endif
|
---|
[23356] | 595 | #ifdef HAVE_STDINT_H
|
---|
| 596 | # include <stdint.h>
|
---|
| 597 | #endif
|
---|
| 598 | #ifdef HAVE_UNISTD_H
|
---|
[3745] | 599 | # include <unistd.h>
|
---|
| 600 | #endif"
|
---|
| 601 |
|
---|
[23356] | 602 | ac_subst_vars='LTLIBOBJS
|
---|
| 603 | JNIFLAGS
|
---|
| 604 | JNISUFFIX
|
---|
| 605 | JNIINC
|
---|
| 606 | LIBOBJS
|
---|
| 607 | ALLOCA
|
---|
| 608 | ANSI2KNR
|
---|
| 609 | U
|
---|
| 610 | EGREP
|
---|
| 611 | GREP
|
---|
| 612 | CPP
|
---|
| 613 | JAVACFLAGS
|
---|
| 614 | JAVAC
|
---|
| 615 | uudecode
|
---|
| 616 | JAVA
|
---|
| 617 | RANLIB
|
---|
| 618 | SET_MAKE
|
---|
| 619 | LN_S
|
---|
| 620 | INSTALL_DATA
|
---|
| 621 | INSTALL_SCRIPT
|
---|
| 622 | INSTALL_PROGRAM
|
---|
| 623 | ac_ct_CC
|
---|
| 624 | CFLAGS
|
---|
| 625 | CC
|
---|
| 626 | YFLAGS
|
---|
| 627 | YACC
|
---|
| 628 | AWK
|
---|
| 629 | OBJEXT
|
---|
| 630 | EXEEXT
|
---|
| 631 | ac_ct_CXX
|
---|
| 632 | CPPFLAGS
|
---|
| 633 | LDFLAGS
|
---|
| 634 | CXXFLAGS
|
---|
| 635 | CXX
|
---|
[25169] | 636 | ARCH_DEP_FLAGS
|
---|
[23356] | 637 | ENABLE_JAVA
|
---|
| 638 | VERSION
|
---|
| 639 | PACKAGE
|
---|
| 640 | target_os
|
---|
| 641 | target_vendor
|
---|
| 642 | target_cpu
|
---|
| 643 | target
|
---|
| 644 | host_os
|
---|
| 645 | host_vendor
|
---|
| 646 | host_cpu
|
---|
| 647 | host
|
---|
| 648 | build_os
|
---|
| 649 | build_vendor
|
---|
| 650 | build_cpu
|
---|
| 651 | build
|
---|
| 652 | target_alias
|
---|
| 653 | host_alias
|
---|
| 654 | build_alias
|
---|
| 655 | LIBS
|
---|
| 656 | ECHO_T
|
---|
| 657 | ECHO_N
|
---|
| 658 | ECHO_C
|
---|
| 659 | DEFS
|
---|
| 660 | mandir
|
---|
| 661 | localedir
|
---|
| 662 | libdir
|
---|
| 663 | psdir
|
---|
| 664 | pdfdir
|
---|
| 665 | dvidir
|
---|
| 666 | htmldir
|
---|
| 667 | infodir
|
---|
| 668 | docdir
|
---|
| 669 | oldincludedir
|
---|
| 670 | includedir
|
---|
| 671 | localstatedir
|
---|
| 672 | sharedstatedir
|
---|
| 673 | sysconfdir
|
---|
| 674 | datadir
|
---|
| 675 | datarootdir
|
---|
| 676 | libexecdir
|
---|
| 677 | sbindir
|
---|
| 678 | bindir
|
---|
| 679 | program_transform_name
|
---|
| 680 | prefix
|
---|
| 681 | exec_prefix
|
---|
[25169] | 682 | PACKAGE_URL
|
---|
[23356] | 683 | PACKAGE_BUGREPORT
|
---|
| 684 | PACKAGE_STRING
|
---|
| 685 | PACKAGE_VERSION
|
---|
| 686 | PACKAGE_TARNAME
|
---|
| 687 | PACKAGE_NAME
|
---|
| 688 | PATH_SEPARATOR
|
---|
| 689 | SHELL'
|
---|
[10191] | 690 | ac_subst_files=''
|
---|
[23356] | 691 | ac_user_opts='
|
---|
| 692 | enable_option_checking
|
---|
| 693 | enable_java
|
---|
| 694 | with_dmalloc
|
---|
| 695 | with_regex
|
---|
| 696 | '
|
---|
| 697 | ac_precious_vars='build_alias
|
---|
| 698 | host_alias
|
---|
| 699 | target_alias
|
---|
| 700 | CXX
|
---|
| 701 | CXXFLAGS
|
---|
| 702 | LDFLAGS
|
---|
| 703 | LIBS
|
---|
| 704 | CPPFLAGS
|
---|
| 705 | CCC
|
---|
| 706 | YACC
|
---|
| 707 | YFLAGS
|
---|
| 708 | CC
|
---|
| 709 | CFLAGS
|
---|
| 710 | CPP'
|
---|
[10191] | 711 |
|
---|
[23356] | 712 |
|
---|
[3745] | 713 | # Initialize some variables set by options.
|
---|
| 714 | ac_init_help=
|
---|
| 715 | ac_init_version=false
|
---|
[23356] | 716 | ac_unrecognized_opts=
|
---|
| 717 | ac_unrecognized_sep=
|
---|
[3745] | 718 | # The variables have the same names as the options, with
|
---|
| 719 | # dashes changed to underlines.
|
---|
| 720 | cache_file=/dev/null
|
---|
| 721 | exec_prefix=NONE
|
---|
| 722 | no_create=
|
---|
| 723 | no_recursion=
|
---|
| 724 | prefix=NONE
|
---|
| 725 | program_prefix=NONE
|
---|
| 726 | program_suffix=NONE
|
---|
| 727 | program_transform_name=s,x,x,
|
---|
| 728 | silent=
|
---|
| 729 | site=
|
---|
| 730 | srcdir=
|
---|
| 731 | verbose=
|
---|
| 732 | x_includes=NONE
|
---|
| 733 | x_libraries=NONE
|
---|
| 734 |
|
---|
| 735 | # Installation directory options.
|
---|
| 736 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 737 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 738 | # by default will actually change.
|
---|
| 739 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[23356] | 740 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[3745] | 741 | bindir='${exec_prefix}/bin'
|
---|
| 742 | sbindir='${exec_prefix}/sbin'
|
---|
| 743 | libexecdir='${exec_prefix}/libexec'
|
---|
[23356] | 744 | datarootdir='${prefix}/share'
|
---|
| 745 | datadir='${datarootdir}'
|
---|
[3745] | 746 | sysconfdir='${prefix}/etc'
|
---|
| 747 | sharedstatedir='${prefix}/com'
|
---|
| 748 | localstatedir='${prefix}/var'
|
---|
| 749 | includedir='${prefix}/include'
|
---|
| 750 | oldincludedir='/usr/include'
|
---|
[23356] | 751 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 752 | infodir='${datarootdir}/info'
|
---|
| 753 | htmldir='${docdir}'
|
---|
| 754 | dvidir='${docdir}'
|
---|
| 755 | pdfdir='${docdir}'
|
---|
| 756 | psdir='${docdir}'
|
---|
| 757 | libdir='${exec_prefix}/lib'
|
---|
| 758 | localedir='${datarootdir}/locale'
|
---|
| 759 | mandir='${datarootdir}/man'
|
---|
[3745] | 760 |
|
---|
| 761 | ac_prev=
|
---|
[23356] | 762 | ac_dashdash=
|
---|
[3745] | 763 | for ac_option
|
---|
| 764 | do
|
---|
| 765 | # If the previous option needs an argument, assign it.
|
---|
| 766 | if test -n "$ac_prev"; then
|
---|
[23356] | 767 | eval $ac_prev=\$ac_option
|
---|
[3745] | 768 | ac_prev=
|
---|
| 769 | continue
|
---|
| 770 | fi
|
---|
| 771 |
|
---|
[23356] | 772 | case $ac_option in
|
---|
[25169] | 773 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 774 | *=) ac_optarg= ;;
|
---|
| 775 | *) ac_optarg=yes ;;
|
---|
[23356] | 776 | esac
|
---|
[3745] | 777 |
|
---|
| 778 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 779 |
|
---|
[23356] | 780 | case $ac_dashdash$ac_option in
|
---|
| 781 | --)
|
---|
| 782 | ac_dashdash=yes ;;
|
---|
[3745] | 783 |
|
---|
| 784 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 785 | ac_prev=bindir ;;
|
---|
| 786 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 787 | bindir=$ac_optarg ;;
|
---|
| 788 |
|
---|
| 789 | -build | --build | --buil | --bui | --bu)
|
---|
| 790 | ac_prev=build_alias ;;
|
---|
| 791 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 792 | build_alias=$ac_optarg ;;
|
---|
| 793 |
|
---|
| 794 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 795 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 796 | ac_prev=cache_file ;;
|
---|
| 797 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 798 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 799 | cache_file=$ac_optarg ;;
|
---|
| 800 |
|
---|
| 801 | --config-cache | -C)
|
---|
| 802 | cache_file=config.cache ;;
|
---|
| 803 |
|
---|
[23356] | 804 | -datadir | --datadir | --datadi | --datad)
|
---|
[3745] | 805 | ac_prev=datadir ;;
|
---|
[23356] | 806 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[3745] | 807 | datadir=$ac_optarg ;;
|
---|
| 808 |
|
---|
[23356] | 809 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 810 | | --dataroo | --dataro | --datar)
|
---|
| 811 | ac_prev=datarootdir ;;
|
---|
| 812 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 813 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 814 | datarootdir=$ac_optarg ;;
|
---|
| 815 |
|
---|
[3745] | 816 | -disable-* | --disable-*)
|
---|
[23356] | 817 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[3745] | 818 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 819 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25169] | 820 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
[23356] | 821 | ac_useropt_orig=$ac_useropt
|
---|
| 822 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 823 | case $ac_user_opts in
|
---|
| 824 | *"
|
---|
| 825 | "enable_$ac_useropt"
|
---|
| 826 | "*) ;;
|
---|
| 827 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 828 | ac_unrecognized_sep=', ';;
|
---|
| 829 | esac
|
---|
| 830 | eval enable_$ac_useropt=no ;;
|
---|
[3745] | 831 |
|
---|
[23356] | 832 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 833 | ac_prev=docdir ;;
|
---|
| 834 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 835 | docdir=$ac_optarg ;;
|
---|
| 836 |
|
---|
| 837 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 838 | ac_prev=dvidir ;;
|
---|
| 839 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 840 | dvidir=$ac_optarg ;;
|
---|
| 841 |
|
---|
[3745] | 842 | -enable-* | --enable-*)
|
---|
[23356] | 843 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[3745] | 844 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 845 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25169] | 846 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
[23356] | 847 | ac_useropt_orig=$ac_useropt
|
---|
| 848 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 849 | case $ac_user_opts in
|
---|
| 850 | *"
|
---|
| 851 | "enable_$ac_useropt"
|
---|
| 852 | "*) ;;
|
---|
| 853 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 854 | ac_unrecognized_sep=', ';;
|
---|
[3745] | 855 | esac
|
---|
[23356] | 856 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
[3745] | 857 |
|
---|
| 858 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 859 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 860 | | --exec | --exe | --ex)
|
---|
| 861 | ac_prev=exec_prefix ;;
|
---|
| 862 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 863 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 864 | | --exec=* | --exe=* | --ex=*)
|
---|
| 865 | exec_prefix=$ac_optarg ;;
|
---|
| 866 |
|
---|
| 867 | -gas | --gas | --ga | --g)
|
---|
| 868 | # Obsolete; use --with-gas.
|
---|
| 869 | with_gas=yes ;;
|
---|
| 870 |
|
---|
| 871 | -help | --help | --hel | --he | -h)
|
---|
| 872 | ac_init_help=long ;;
|
---|
| 873 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 874 | ac_init_help=recursive ;;
|
---|
| 875 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 876 | ac_init_help=short ;;
|
---|
| 877 |
|
---|
| 878 | -host | --host | --hos | --ho)
|
---|
| 879 | ac_prev=host_alias ;;
|
---|
| 880 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 881 | host_alias=$ac_optarg ;;
|
---|
| 882 |
|
---|
[23356] | 883 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 884 | ac_prev=htmldir ;;
|
---|
| 885 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 886 | | --ht=*)
|
---|
| 887 | htmldir=$ac_optarg ;;
|
---|
| 888 |
|
---|
[3745] | 889 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 890 | | --includ | --inclu | --incl | --inc)
|
---|
| 891 | ac_prev=includedir ;;
|
---|
| 892 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 893 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 894 | includedir=$ac_optarg ;;
|
---|
| 895 |
|
---|
| 896 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 897 | ac_prev=infodir ;;
|
---|
| 898 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 899 | infodir=$ac_optarg ;;
|
---|
| 900 |
|
---|
| 901 | -libdir | --libdir | --libdi | --libd)
|
---|
| 902 | ac_prev=libdir ;;
|
---|
| 903 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 904 | libdir=$ac_optarg ;;
|
---|
| 905 |
|
---|
| 906 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 907 | | --libexe | --libex | --libe)
|
---|
| 908 | ac_prev=libexecdir ;;
|
---|
| 909 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 910 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 911 | libexecdir=$ac_optarg ;;
|
---|
| 912 |
|
---|
[23356] | 913 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 914 | ac_prev=localedir ;;
|
---|
| 915 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 916 | localedir=$ac_optarg ;;
|
---|
| 917 |
|
---|
[3745] | 918 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[23356] | 919 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[3745] | 920 | ac_prev=localstatedir ;;
|
---|
| 921 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[23356] | 922 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[3745] | 923 | localstatedir=$ac_optarg ;;
|
---|
| 924 |
|
---|
| 925 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 926 | ac_prev=mandir ;;
|
---|
| 927 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 928 | mandir=$ac_optarg ;;
|
---|
| 929 |
|
---|
| 930 | -nfp | --nfp | --nf)
|
---|
| 931 | # Obsolete; use --without-fp.
|
---|
| 932 | with_fp=no ;;
|
---|
| 933 |
|
---|
| 934 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[10191] | 935 | | --no-cr | --no-c | -n)
|
---|
[3745] | 936 | no_create=yes ;;
|
---|
| 937 |
|
---|
| 938 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 939 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 940 | no_recursion=yes ;;
|
---|
| 941 |
|
---|
| 942 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 943 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 944 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 945 | ac_prev=oldincludedir ;;
|
---|
| 946 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 947 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 948 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 949 | oldincludedir=$ac_optarg ;;
|
---|
| 950 |
|
---|
| 951 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 952 | ac_prev=prefix ;;
|
---|
| 953 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 954 | prefix=$ac_optarg ;;
|
---|
| 955 |
|
---|
| 956 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 957 | | --program-pre | --program-pr | --program-p)
|
---|
| 958 | ac_prev=program_prefix ;;
|
---|
| 959 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 960 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 961 | program_prefix=$ac_optarg ;;
|
---|
| 962 |
|
---|
| 963 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 964 | | --program-suf | --program-su | --program-s)
|
---|
| 965 | ac_prev=program_suffix ;;
|
---|
| 966 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 967 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 968 | program_suffix=$ac_optarg ;;
|
---|
| 969 |
|
---|
| 970 | -program-transform-name | --program-transform-name \
|
---|
| 971 | | --program-transform-nam | --program-transform-na \
|
---|
| 972 | | --program-transform-n | --program-transform- \
|
---|
| 973 | | --program-transform | --program-transfor \
|
---|
| 974 | | --program-transfo | --program-transf \
|
---|
| 975 | | --program-trans | --program-tran \
|
---|
| 976 | | --progr-tra | --program-tr | --program-t)
|
---|
| 977 | ac_prev=program_transform_name ;;
|
---|
| 978 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 979 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 980 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 981 | | --program-transform=* | --program-transfor=* \
|
---|
| 982 | | --program-transfo=* | --program-transf=* \
|
---|
| 983 | | --program-trans=* | --program-tran=* \
|
---|
| 984 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 985 | program_transform_name=$ac_optarg ;;
|
---|
| 986 |
|
---|
[23356] | 987 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 988 | ac_prev=pdfdir ;;
|
---|
| 989 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 990 | pdfdir=$ac_optarg ;;
|
---|
| 991 |
|
---|
| 992 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 993 | ac_prev=psdir ;;
|
---|
| 994 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 995 | psdir=$ac_optarg ;;
|
---|
| 996 |
|
---|
[3745] | 997 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 998 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 999 | silent=yes ;;
|
---|
| 1000 |
|
---|
| 1001 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1002 | ac_prev=sbindir ;;
|
---|
| 1003 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1004 | | --sbi=* | --sb=*)
|
---|
| 1005 | sbindir=$ac_optarg ;;
|
---|
| 1006 |
|
---|
| 1007 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1008 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1009 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1010 | | --sha | --sh)
|
---|
| 1011 | ac_prev=sharedstatedir ;;
|
---|
| 1012 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1013 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1014 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1015 | | --sha=* | --sh=*)
|
---|
| 1016 | sharedstatedir=$ac_optarg ;;
|
---|
| 1017 |
|
---|
| 1018 | -site | --site | --sit)
|
---|
| 1019 | ac_prev=site ;;
|
---|
| 1020 | -site=* | --site=* | --sit=*)
|
---|
| 1021 | site=$ac_optarg ;;
|
---|
| 1022 |
|
---|
| 1023 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1024 | ac_prev=srcdir ;;
|
---|
| 1025 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 1026 | srcdir=$ac_optarg ;;
|
---|
| 1027 |
|
---|
| 1028 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1029 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1030 | ac_prev=sysconfdir ;;
|
---|
| 1031 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1032 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 1033 | sysconfdir=$ac_optarg ;;
|
---|
| 1034 |
|
---|
| 1035 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 1036 | ac_prev=target_alias ;;
|
---|
| 1037 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 1038 | target_alias=$ac_optarg ;;
|
---|
| 1039 |
|
---|
| 1040 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1041 | verbose=yes ;;
|
---|
| 1042 |
|
---|
| 1043 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1044 | ac_init_version=: ;;
|
---|
| 1045 |
|
---|
| 1046 | -with-* | --with-*)
|
---|
[23356] | 1047 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[3745] | 1048 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1049 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25169] | 1050 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
[23356] | 1051 | ac_useropt_orig=$ac_useropt
|
---|
| 1052 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1053 | case $ac_user_opts in
|
---|
| 1054 | *"
|
---|
| 1055 | "with_$ac_useropt"
|
---|
| 1056 | "*) ;;
|
---|
| 1057 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1058 | ac_unrecognized_sep=', ';;
|
---|
[3745] | 1059 | esac
|
---|
[23356] | 1060 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
[3745] | 1061 |
|
---|
| 1062 | -without-* | --without-*)
|
---|
[23356] | 1063 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[3745] | 1064 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25169] | 1066 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
[23356] | 1067 | ac_useropt_orig=$ac_useropt
|
---|
| 1068 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1069 | case $ac_user_opts in
|
---|
| 1070 | *"
|
---|
| 1071 | "with_$ac_useropt"
|
---|
| 1072 | "*) ;;
|
---|
| 1073 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1074 | ac_unrecognized_sep=', ';;
|
---|
| 1075 | esac
|
---|
| 1076 | eval with_$ac_useropt=no ;;
|
---|
[3745] | 1077 |
|
---|
| 1078 | --x)
|
---|
| 1079 | # Obsolete; use --with-x.
|
---|
| 1080 | with_x=yes ;;
|
---|
| 1081 |
|
---|
| 1082 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1083 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1084 | ac_prev=x_includes ;;
|
---|
| 1085 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1086 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 1087 | x_includes=$ac_optarg ;;
|
---|
| 1088 |
|
---|
| 1089 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1090 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1091 | ac_prev=x_libraries ;;
|
---|
| 1092 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1093 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 1094 | x_libraries=$ac_optarg ;;
|
---|
| 1095 |
|
---|
[25169] | 1096 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
| 1097 | Try \`$0 --help' for more information"
|
---|
[3745] | 1098 | ;;
|
---|
| 1099 |
|
---|
| 1100 | *=*)
|
---|
| 1101 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1102 | # Reject names that are not valid shell variable names.
|
---|
[25169] | 1103 | case $ac_envvar in #(
|
---|
| 1104 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
| 1105 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
| 1106 | esac
|
---|
[23356] | 1107 | eval $ac_envvar=\$ac_optarg
|
---|
[3745] | 1108 | export $ac_envvar ;;
|
---|
| 1109 |
|
---|
| 1110 | *)
|
---|
| 1111 | # FIXME: should be removed in autoconf 3.0.
|
---|
[23356] | 1112 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[10191] | 1113 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[23356] | 1114 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[25169] | 1115 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
[3745] | 1116 | ;;
|
---|
| 1117 |
|
---|
| 1118 | esac
|
---|
| 1119 | done
|
---|
| 1120 |
|
---|
| 1121 | if test -n "$ac_prev"; then
|
---|
| 1122 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[25169] | 1123 | as_fn_error $? "missing argument to $ac_option"
|
---|
[3745] | 1124 | fi
|
---|
| 1125 |
|
---|
[23356] | 1126 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1127 | case $enable_option_checking in
|
---|
| 1128 | no) ;;
|
---|
[25169] | 1129 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
[23356] | 1130 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
[10191] | 1131 | esac
|
---|
[23356] | 1132 | fi
|
---|
[10191] | 1133 |
|
---|
[23356] | 1134 | # Check all directory arguments for consistency.
|
---|
| 1135 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1136 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1137 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1138 | libdir localedir mandir
|
---|
[3745] | 1139 | do
|
---|
[23356] | 1140 | eval ac_val=\$$ac_var
|
---|
| 1141 | # Remove trailing slashes.
|
---|
[3745] | 1142 | case $ac_val in
|
---|
[23356] | 1143 | */ )
|
---|
| 1144 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1145 | eval $ac_var=\$ac_val;;
|
---|
[3745] | 1146 | esac
|
---|
[23356] | 1147 | # Be sure to have absolute directory names.
|
---|
| 1148 | case $ac_val in
|
---|
| 1149 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1150 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1151 | esac
|
---|
[25169] | 1152 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
[3745] | 1153 | done
|
---|
| 1154 |
|
---|
| 1155 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1156 | # used to hold the argument of --host etc.
|
---|
[10191] | 1157 | # FIXME: To remove some day.
|
---|
[3745] | 1158 | build=$build_alias
|
---|
| 1159 | host=$host_alias
|
---|
| 1160 | target=$target_alias
|
---|
| 1161 |
|
---|
[10191] | 1162 | # FIXME: To remove some day.
|
---|
[3745] | 1163 | if test "x$host_alias" != x; then
|
---|
| 1164 | if test "x$build_alias" = x; then
|
---|
| 1165 | cross_compiling=maybe
|
---|
[25169] | 1166 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
| 1167 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
[3745] | 1168 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1169 | cross_compiling=yes
|
---|
| 1170 | fi
|
---|
| 1171 | fi
|
---|
| 1172 |
|
---|
| 1173 | ac_tool_prefix=
|
---|
| 1174 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 1175 |
|
---|
| 1176 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1177 |
|
---|
[10191] | 1178 |
|
---|
[23356] | 1179 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1180 | ac_ls_di=`ls -di .` &&
|
---|
| 1181 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
[25169] | 1182 | as_fn_error $? "working directory cannot be determined"
|
---|
[23356] | 1183 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
[25169] | 1184 | as_fn_error $? "pwd does not report name of working directory"
|
---|
[23356] | 1185 |
|
---|
| 1186 |
|
---|
[3745] | 1187 | # Find the source files, if location was not specified.
|
---|
| 1188 | if test -z "$srcdir"; then
|
---|
| 1189 | ac_srcdir_defaulted=yes
|
---|
[23356] | 1190 | # Try the directory containing this script, then the parent directory.
|
---|
| 1191 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1192 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1193 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1194 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1195 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1196 | $as_echo X"$as_myself" |
|
---|
| 1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1198 | s//\1/
|
---|
| 1199 | q
|
---|
| 1200 | }
|
---|
| 1201 | /^X\(\/\/\)[^/].*/{
|
---|
| 1202 | s//\1/
|
---|
| 1203 | q
|
---|
| 1204 | }
|
---|
| 1205 | /^X\(\/\/\)$/{
|
---|
| 1206 | s//\1/
|
---|
| 1207 | q
|
---|
| 1208 | }
|
---|
| 1209 | /^X\(\/\).*/{
|
---|
| 1210 | s//\1/
|
---|
| 1211 | q
|
---|
| 1212 | }
|
---|
| 1213 | s/.*/./; q'`
|
---|
[3745] | 1214 | srcdir=$ac_confdir
|
---|
[23356] | 1215 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[3745] | 1216 | srcdir=..
|
---|
| 1217 | fi
|
---|
| 1218 | else
|
---|
| 1219 | ac_srcdir_defaulted=no
|
---|
| 1220 | fi
|
---|
[23356] | 1221 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
[25169] | 1223 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
[3745] | 1224 | fi
|
---|
[23356] | 1225 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1226 | ac_abs_confdir=`(
|
---|
[25169] | 1227 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
[23356] | 1228 | pwd)`
|
---|
| 1229 | # When building in place, set srcdir=.
|
---|
| 1230 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1231 | srcdir=.
|
---|
| 1232 | fi
|
---|
| 1233 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1234 | # Double slashes in file names in object file debugging info
|
---|
| 1235 | # mess up M-x gdb in Emacs.
|
---|
| 1236 | case $srcdir in
|
---|
| 1237 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1238 | esac
|
---|
| 1239 | for ac_var in $ac_precious_vars; do
|
---|
| 1240 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1241 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1242 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1243 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1244 | done
|
---|
[3745] | 1245 |
|
---|
| 1246 | #
|
---|
| 1247 | # Report the --help message.
|
---|
| 1248 | #
|
---|
| 1249 | if test "$ac_init_help" = "long"; then
|
---|
| 1250 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1251 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[10191] | 1252 | cat <<_ACEOF
|
---|
[3745] | 1253 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1254 |
|
---|
| 1255 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1256 |
|
---|
| 1257 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1258 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1259 |
|
---|
| 1260 | Defaults for the options are specified in brackets.
|
---|
| 1261 |
|
---|
| 1262 | Configuration:
|
---|
| 1263 | -h, --help display this help and exit
|
---|
| 1264 | --help=short display options specific to this package
|
---|
| 1265 | --help=recursive display the short help of all the included packages
|
---|
| 1266 | -V, --version display version information and exit
|
---|
[25169] | 1267 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
[3745] | 1268 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1269 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1270 | -n, --no-create do not create output files
|
---|
| 1271 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1272 |
|
---|
| 1273 | Installation directories:
|
---|
| 1274 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[23356] | 1275 | [$ac_default_prefix]
|
---|
[3745] | 1276 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[23356] | 1277 | [PREFIX]
|
---|
[3745] | 1278 |
|
---|
| 1279 | By default, \`make install' will install all the files in
|
---|
| 1280 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1281 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1282 | for instance \`--prefix=\$HOME'.
|
---|
| 1283 |
|
---|
| 1284 | For better control, use the options below.
|
---|
| 1285 |
|
---|
| 1286 | Fine tuning of the installation directories:
|
---|
[23356] | 1287 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1288 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1289 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1290 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1291 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1292 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1293 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1294 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1295 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1296 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1297 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1298 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1299 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1300 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1301 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1302 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1303 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1304 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1305 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[10191] | 1306 | _ACEOF
|
---|
[3745] | 1307 |
|
---|
[10191] | 1308 | cat <<\_ACEOF
|
---|
[3745] | 1309 |
|
---|
| 1310 | Program names:
|
---|
| 1311 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 1312 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 1313 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[15560] | 1314 |
|
---|
| 1315 | System types:
|
---|
| 1316 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1317 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1318 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
[10191] | 1319 | _ACEOF
|
---|
[3745] | 1320 | fi
|
---|
| 1321 |
|
---|
| 1322 | if test -n "$ac_init_help"; then
|
---|
| 1323 |
|
---|
[10191] | 1324 | cat <<\_ACEOF
|
---|
[3745] | 1325 |
|
---|
[23356] | 1326 | Optional Features:
|
---|
| 1327 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
| 1328 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1329 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1330 | --disable-java Disable Java compilation
|
---|
| 1331 |
|
---|
[3745] | 1332 | Optional Packages:
|
---|
| 1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1335 | --with-dmalloc use dmalloc, as in
|
---|
| 1336 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1337 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1338 |
|
---|
| 1339 | Some influential environment variables:
|
---|
| 1340 | CXX C++ compiler command
|
---|
| 1341 | CXXFLAGS C++ compiler flags
|
---|
| 1342 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1343 | nonstandard directory <lib dir>
|
---|
[23356] | 1344 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
[25169] | 1345 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
[23356] | 1346 | you have headers in a nonstandard directory <include dir>
|
---|
[25169] | 1347 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
| 1348 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
| 1349 | `yacc'.
|
---|
[23356] | 1350 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1351 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1352 | default value of `-d' given by some make applications.
|
---|
[3745] | 1353 | CC C compiler command
|
---|
| 1354 | CFLAGS C compiler flags
|
---|
| 1355 | CPP C preprocessor
|
---|
| 1356 |
|
---|
| 1357 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1358 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1359 |
|
---|
[25169] | 1360 | Report bugs to the package provider.
|
---|
[10191] | 1361 | _ACEOF
|
---|
[23356] | 1362 | ac_status=$?
|
---|
[3745] | 1363 | fi
|
---|
| 1364 |
|
---|
| 1365 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1366 | # If there are subdirs, report their specific --help.
|
---|
[10191] | 1367 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[23356] | 1368 | test -d "$ac_dir" ||
|
---|
| 1369 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1370 | continue
|
---|
[10191] | 1371 | ac_builddir=.
|
---|
[3745] | 1372 |
|
---|
[23356] | 1373 | case "$ac_dir" in
|
---|
| 1374 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1375 | *)
|
---|
| 1376 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1377 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1378 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1379 | case $ac_top_builddir_sub in
|
---|
| 1380 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1381 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1382 | esac ;;
|
---|
| 1383 | esac
|
---|
| 1384 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1385 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1386 | # for backward compatibility:
|
---|
| 1387 | ac_top_builddir=$ac_top_build_prefix
|
---|
[3745] | 1388 |
|
---|
[10191] | 1389 | case $srcdir in
|
---|
[23356] | 1390 | .) # We are building in place.
|
---|
[10191] | 1391 | ac_srcdir=.
|
---|
[23356] | 1392 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1393 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1394 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10191] | 1395 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 1396 | ac_top_srcdir=$srcdir
|
---|
| 1397 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1398 | *) # Relative name.
|
---|
| 1399 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1400 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1401 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10191] | 1402 | esac
|
---|
[23356] | 1403 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[10191] | 1404 |
|
---|
[23356] | 1405 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1406 | # Check for guested configure.
|
---|
| 1407 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1408 | echo &&
|
---|
| 1409 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1410 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1411 | echo &&
|
---|
| 1412 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[3745] | 1413 | else
|
---|
[23356] | 1414 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1415 | fi || ac_status=$?
|
---|
| 1416 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[3745] | 1417 | done
|
---|
| 1418 | fi
|
---|
| 1419 |
|
---|
[23356] | 1420 | test -n "$ac_init_help" && exit $ac_status
|
---|
[3745] | 1421 | if $ac_init_version; then
|
---|
[10191] | 1422 | cat <<\_ACEOF
|
---|
[23356] | 1423 | configure
|
---|
[25169] | 1424 | generated by GNU Autoconf 2.68
|
---|
[3745] | 1425 |
|
---|
[25169] | 1426 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
[3745] | 1427 | This configure script is free software; the Free Software Foundation
|
---|
| 1428 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10191] | 1429 | _ACEOF
|
---|
[23356] | 1430 | exit
|
---|
[3745] | 1431 | fi
|
---|
[25169] | 1432 |
|
---|
| 1433 | ## ------------------------ ##
|
---|
| 1434 | ## Autoconf initialization. ##
|
---|
| 1435 | ## ------------------------ ##
|
---|
| 1436 |
|
---|
| 1437 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1438 | # ----------------------------
|
---|
| 1439 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1440 | ac_fn_cxx_try_compile ()
|
---|
| 1441 | {
|
---|
| 1442 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1443 | rm -f conftest.$ac_objext
|
---|
| 1444 | if { { ac_try="$ac_compile"
|
---|
| 1445 | case "(($ac_try" in
|
---|
| 1446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1447 | *) ac_try_echo=$ac_try;;
|
---|
| 1448 | esac
|
---|
| 1449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1450 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1451 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1452 | ac_status=$?
|
---|
| 1453 | if test -s conftest.err; then
|
---|
| 1454 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1455 | cat conftest.er1 >&5
|
---|
| 1456 | mv -f conftest.er1 conftest.err
|
---|
| 1457 | fi
|
---|
| 1458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1459 | test $ac_status = 0; } && {
|
---|
| 1460 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1461 | test ! -s conftest.err
|
---|
| 1462 | } && test -s conftest.$ac_objext; then :
|
---|
| 1463 | ac_retval=0
|
---|
| 1464 | else
|
---|
| 1465 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1466 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1467 |
|
---|
| 1468 | ac_retval=1
|
---|
| 1469 | fi
|
---|
| 1470 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1471 | as_fn_set_status $ac_retval
|
---|
| 1472 |
|
---|
| 1473 | } # ac_fn_cxx_try_compile
|
---|
| 1474 |
|
---|
| 1475 | # ac_fn_c_try_compile LINENO
|
---|
| 1476 | # --------------------------
|
---|
| 1477 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1478 | ac_fn_c_try_compile ()
|
---|
| 1479 | {
|
---|
| 1480 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1481 | rm -f conftest.$ac_objext
|
---|
| 1482 | if { { ac_try="$ac_compile"
|
---|
| 1483 | case "(($ac_try" in
|
---|
| 1484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1485 | *) ac_try_echo=$ac_try;;
|
---|
| 1486 | esac
|
---|
| 1487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1488 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1489 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1490 | ac_status=$?
|
---|
| 1491 | if test -s conftest.err; then
|
---|
| 1492 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1493 | cat conftest.er1 >&5
|
---|
| 1494 | mv -f conftest.er1 conftest.err
|
---|
| 1495 | fi
|
---|
| 1496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1497 | test $ac_status = 0; } && {
|
---|
| 1498 | test -z "$ac_c_werror_flag" ||
|
---|
| 1499 | test ! -s conftest.err
|
---|
| 1500 | } && test -s conftest.$ac_objext; then :
|
---|
| 1501 | ac_retval=0
|
---|
| 1502 | else
|
---|
| 1503 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1504 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1505 |
|
---|
| 1506 | ac_retval=1
|
---|
| 1507 | fi
|
---|
| 1508 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1509 | as_fn_set_status $ac_retval
|
---|
| 1510 |
|
---|
| 1511 | } # ac_fn_c_try_compile
|
---|
| 1512 |
|
---|
| 1513 | # ac_fn_c_try_cpp LINENO
|
---|
| 1514 | # ----------------------
|
---|
| 1515 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1516 | ac_fn_c_try_cpp ()
|
---|
| 1517 | {
|
---|
| 1518 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1519 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 1520 | case "(($ac_try" in
|
---|
| 1521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1522 | *) ac_try_echo=$ac_try;;
|
---|
| 1523 | esac
|
---|
| 1524 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1525 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
| 1527 | ac_status=$?
|
---|
| 1528 | if test -s conftest.err; then
|
---|
| 1529 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1530 | cat conftest.er1 >&5
|
---|
| 1531 | mv -f conftest.er1 conftest.err
|
---|
| 1532 | fi
|
---|
| 1533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1534 | test $ac_status = 0; } > conftest.i && {
|
---|
| 1535 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 1536 | test ! -s conftest.err
|
---|
| 1537 | }; then :
|
---|
| 1538 | ac_retval=0
|
---|
| 1539 | else
|
---|
| 1540 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1541 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1542 |
|
---|
| 1543 | ac_retval=1
|
---|
| 1544 | fi
|
---|
| 1545 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1546 | as_fn_set_status $ac_retval
|
---|
| 1547 |
|
---|
| 1548 | } # ac_fn_c_try_cpp
|
---|
| 1549 |
|
---|
| 1550 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1551 | # -------------------------------------------------------
|
---|
| 1552 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1553 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1554 | # accordingly.
|
---|
| 1555 | ac_fn_c_check_header_mongrel ()
|
---|
| 1556 | {
|
---|
| 1557 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1558 | if eval \${$3+:} false; then :
|
---|
| 1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1560 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1561 | if eval \${$3+:} false; then :
|
---|
| 1562 | $as_echo_n "(cached) " >&6
|
---|
| 1563 | fi
|
---|
| 1564 | eval ac_res=\$$3
|
---|
| 1565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1566 | $as_echo "$ac_res" >&6; }
|
---|
| 1567 | else
|
---|
| 1568 | # Is the header compilable?
|
---|
| 1569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1570 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1572 | /* end confdefs.h. */
|
---|
| 1573 | $4
|
---|
| 1574 | #include <$2>
|
---|
| 1575 | _ACEOF
|
---|
| 1576 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1577 | ac_header_compiler=yes
|
---|
| 1578 | else
|
---|
| 1579 | ac_header_compiler=no
|
---|
| 1580 | fi
|
---|
| 1581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1583 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1584 |
|
---|
| 1585 | # Is the header present?
|
---|
| 1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1587 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1589 | /* end confdefs.h. */
|
---|
| 1590 | #include <$2>
|
---|
| 1591 | _ACEOF
|
---|
| 1592 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1593 | ac_header_preproc=yes
|
---|
| 1594 | else
|
---|
| 1595 | ac_header_preproc=no
|
---|
| 1596 | fi
|
---|
| 1597 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1599 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1600 |
|
---|
| 1601 | # So? What about this header?
|
---|
| 1602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1603 | yes:no: )
|
---|
| 1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1605 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1607 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1608 | ;;
|
---|
| 1609 | no:yes:* )
|
---|
| 1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1611 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1613 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1615 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1617 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1619 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1620 | ;;
|
---|
| 1621 | esac
|
---|
| 1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1623 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1624 | if eval \${$3+:} false; then :
|
---|
| 1625 | $as_echo_n "(cached) " >&6
|
---|
| 1626 | else
|
---|
| 1627 | eval "$3=\$ac_header_compiler"
|
---|
| 1628 | fi
|
---|
| 1629 | eval ac_res=\$$3
|
---|
| 1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1631 | $as_echo "$ac_res" >&6; }
|
---|
| 1632 | fi
|
---|
| 1633 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1634 |
|
---|
| 1635 | } # ac_fn_c_check_header_mongrel
|
---|
| 1636 |
|
---|
| 1637 | # ac_fn_c_try_run LINENO
|
---|
| 1638 | # ----------------------
|
---|
| 1639 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1640 | # that executables *can* be run.
|
---|
| 1641 | ac_fn_c_try_run ()
|
---|
| 1642 | {
|
---|
| 1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1644 | if { { ac_try="$ac_link"
|
---|
| 1645 | case "(($ac_try" in
|
---|
| 1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1647 | *) ac_try_echo=$ac_try;;
|
---|
| 1648 | esac
|
---|
| 1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1650 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1651 | (eval "$ac_link") 2>&5
|
---|
| 1652 | ac_status=$?
|
---|
| 1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1654 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1655 | { { case "(($ac_try" in
|
---|
| 1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1657 | *) ac_try_echo=$ac_try;;
|
---|
| 1658 | esac
|
---|
| 1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1660 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1661 | (eval "$ac_try") 2>&5
|
---|
| 1662 | ac_status=$?
|
---|
| 1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1664 | test $ac_status = 0; }; }; then :
|
---|
| 1665 | ac_retval=0
|
---|
| 1666 | else
|
---|
| 1667 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1668 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1669 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1670 |
|
---|
| 1671 | ac_retval=$ac_status
|
---|
| 1672 | fi
|
---|
| 1673 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1675 | as_fn_set_status $ac_retval
|
---|
| 1676 |
|
---|
| 1677 | } # ac_fn_c_try_run
|
---|
| 1678 |
|
---|
| 1679 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1680 | # -------------------------------------------------------
|
---|
| 1681 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1682 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1683 | ac_fn_c_check_header_compile ()
|
---|
| 1684 | {
|
---|
| 1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1687 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1688 | if eval \${$3+:} false; then :
|
---|
| 1689 | $as_echo_n "(cached) " >&6
|
---|
| 1690 | else
|
---|
| 1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1692 | /* end confdefs.h. */
|
---|
| 1693 | $4
|
---|
| 1694 | #include <$2>
|
---|
| 1695 | _ACEOF
|
---|
| 1696 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1697 | eval "$3=yes"
|
---|
| 1698 | else
|
---|
| 1699 | eval "$3=no"
|
---|
| 1700 | fi
|
---|
| 1701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1702 | fi
|
---|
| 1703 | eval ac_res=\$$3
|
---|
| 1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1705 | $as_echo "$ac_res" >&6; }
|
---|
| 1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1707 |
|
---|
| 1708 | } # ac_fn_c_check_header_compile
|
---|
| 1709 |
|
---|
| 1710 | # ac_fn_c_try_link LINENO
|
---|
| 1711 | # -----------------------
|
---|
| 1712 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1713 | ac_fn_c_try_link ()
|
---|
| 1714 | {
|
---|
| 1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1716 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1717 | if { { ac_try="$ac_link"
|
---|
| 1718 | case "(($ac_try" in
|
---|
| 1719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1720 | *) ac_try_echo=$ac_try;;
|
---|
| 1721 | esac
|
---|
| 1722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1723 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1724 | (eval "$ac_link") 2>conftest.err
|
---|
| 1725 | ac_status=$?
|
---|
| 1726 | if test -s conftest.err; then
|
---|
| 1727 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1728 | cat conftest.er1 >&5
|
---|
| 1729 | mv -f conftest.er1 conftest.err
|
---|
| 1730 | fi
|
---|
| 1731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1732 | test $ac_status = 0; } && {
|
---|
| 1733 | test -z "$ac_c_werror_flag" ||
|
---|
| 1734 | test ! -s conftest.err
|
---|
| 1735 | } && test -s conftest$ac_exeext && {
|
---|
| 1736 | test "$cross_compiling" = yes ||
|
---|
| 1737 | $as_test_x conftest$ac_exeext
|
---|
| 1738 | }; then :
|
---|
| 1739 | ac_retval=0
|
---|
| 1740 | else
|
---|
| 1741 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1742 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1743 |
|
---|
| 1744 | ac_retval=1
|
---|
| 1745 | fi
|
---|
| 1746 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1747 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1748 | # interfere with the next link command; also delete a directory that is
|
---|
| 1749 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1750 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1752 | as_fn_set_status $ac_retval
|
---|
| 1753 |
|
---|
| 1754 | } # ac_fn_c_try_link
|
---|
| 1755 |
|
---|
| 1756 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1757 | # -------------------------------------------
|
---|
| 1758 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1759 | # variable VAR accordingly.
|
---|
| 1760 | ac_fn_c_check_type ()
|
---|
| 1761 | {
|
---|
| 1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1764 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1765 | if eval \${$3+:} false; then :
|
---|
| 1766 | $as_echo_n "(cached) " >&6
|
---|
| 1767 | else
|
---|
| 1768 | eval "$3=no"
|
---|
| 1769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1770 | /* end confdefs.h. */
|
---|
| 1771 | $4
|
---|
| 1772 | int
|
---|
| 1773 | main ()
|
---|
| 1774 | {
|
---|
| 1775 | if (sizeof ($2))
|
---|
| 1776 | return 0;
|
---|
| 1777 | ;
|
---|
| 1778 | return 0;
|
---|
| 1779 | }
|
---|
| 1780 | _ACEOF
|
---|
| 1781 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1783 | /* end confdefs.h. */
|
---|
| 1784 | $4
|
---|
| 1785 | int
|
---|
| 1786 | main ()
|
---|
| 1787 | {
|
---|
| 1788 | if (sizeof (($2)))
|
---|
| 1789 | return 0;
|
---|
| 1790 | ;
|
---|
| 1791 | return 0;
|
---|
| 1792 | }
|
---|
| 1793 | _ACEOF
|
---|
| 1794 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1795 |
|
---|
| 1796 | else
|
---|
| 1797 | eval "$3=yes"
|
---|
| 1798 | fi
|
---|
| 1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1800 | fi
|
---|
| 1801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1802 | fi
|
---|
| 1803 | eval ac_res=\$$3
|
---|
| 1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1805 | $as_echo "$ac_res" >&6; }
|
---|
| 1806 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1807 |
|
---|
| 1808 | } # ac_fn_c_check_type
|
---|
| 1809 |
|
---|
| 1810 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1811 | # ----------------------------------
|
---|
| 1812 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1813 | ac_fn_c_check_func ()
|
---|
| 1814 | {
|
---|
| 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1817 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1818 | if eval \${$3+:} false; then :
|
---|
| 1819 | $as_echo_n "(cached) " >&6
|
---|
| 1820 | else
|
---|
| 1821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1822 | /* end confdefs.h. */
|
---|
| 1823 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1825 | #define $2 innocuous_$2
|
---|
| 1826 |
|
---|
| 1827 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1828 | which can conflict with char $2 (); below.
|
---|
| 1829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1830 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1831 |
|
---|
| 1832 | #ifdef __STDC__
|
---|
| 1833 | # include <limits.h>
|
---|
| 1834 | #else
|
---|
| 1835 | # include <assert.h>
|
---|
| 1836 | #endif
|
---|
| 1837 |
|
---|
| 1838 | #undef $2
|
---|
| 1839 |
|
---|
| 1840 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1841 | Use char because int might match the return type of a GCC
|
---|
| 1842 | builtin and then its argument prototype would still apply. */
|
---|
| 1843 | #ifdef __cplusplus
|
---|
| 1844 | extern "C"
|
---|
| 1845 | #endif
|
---|
| 1846 | char $2 ();
|
---|
| 1847 | /* The GNU C library defines this for functions which it implements
|
---|
| 1848 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1849 | something starting with __ and the normal name is an alias. */
|
---|
| 1850 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1851 | choke me
|
---|
| 1852 | #endif
|
---|
| 1853 |
|
---|
| 1854 | int
|
---|
| 1855 | main ()
|
---|
| 1856 | {
|
---|
| 1857 | return $2 ();
|
---|
| 1858 | ;
|
---|
| 1859 | return 0;
|
---|
| 1860 | }
|
---|
| 1861 | _ACEOF
|
---|
| 1862 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1863 | eval "$3=yes"
|
---|
| 1864 | else
|
---|
| 1865 | eval "$3=no"
|
---|
| 1866 | fi
|
---|
| 1867 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1868 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1869 | fi
|
---|
| 1870 | eval ac_res=\$$3
|
---|
| 1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1872 | $as_echo "$ac_res" >&6; }
|
---|
| 1873 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1874 |
|
---|
| 1875 | } # ac_fn_c_check_func
|
---|
[23356] | 1876 | cat >config.log <<_ACEOF
|
---|
[3745] | 1877 | This file contains any messages produced by compilers while
|
---|
| 1878 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1879 |
|
---|
| 1880 | It was created by $as_me, which was
|
---|
[25169] | 1881 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
[3745] | 1882 |
|
---|
| 1883 | $ $0 $@
|
---|
| 1884 |
|
---|
[10191] | 1885 | _ACEOF
|
---|
[23356] | 1886 | exec 5>>config.log
|
---|
[3745] | 1887 | {
|
---|
| 1888 | cat <<_ASUNAME
|
---|
[10191] | 1889 | ## --------- ##
|
---|
| 1890 | ## Platform. ##
|
---|
| 1891 | ## --------- ##
|
---|
[3745] | 1892 |
|
---|
| 1893 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1894 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1895 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1896 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1897 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1898 |
|
---|
| 1899 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1900 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1901 |
|
---|
| 1902 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1903 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1904 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[23356] | 1905 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[3745] | 1906 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1907 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1908 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1909 |
|
---|
[10191] | 1910 | _ASUNAME
|
---|
[3745] | 1911 |
|
---|
[10191] | 1912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1913 | for as_dir in $PATH
|
---|
| 1914 | do
|
---|
| 1915 | IFS=$as_save_IFS
|
---|
| 1916 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 1917 | $as_echo "PATH: $as_dir"
|
---|
| 1918 | done
|
---|
[23356] | 1919 | IFS=$as_save_IFS
|
---|
[10191] | 1920 |
|
---|
[3745] | 1921 | } >&5
|
---|
| 1922 |
|
---|
[10191] | 1923 | cat >&5 <<_ACEOF
|
---|
[3745] | 1924 |
|
---|
| 1925 |
|
---|
[10191] | 1926 | ## ----------- ##
|
---|
| 1927 | ## Core tests. ##
|
---|
| 1928 | ## ----------- ##
|
---|
| 1929 |
|
---|
| 1930 | _ACEOF
|
---|
| 1931 |
|
---|
| 1932 |
|
---|
[3745] | 1933 | # Keep a trace of the command line.
|
---|
| 1934 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10191] | 1935 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[3745] | 1936 | # Also quote any args containing shell meta-characters.
|
---|
[10191] | 1937 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[3745] | 1938 | ac_configure_args=
|
---|
[10191] | 1939 | ac_configure_args0=
|
---|
| 1940 | ac_configure_args1=
|
---|
| 1941 | ac_must_keep_next=false
|
---|
| 1942 | for ac_pass in 1 2
|
---|
[3745] | 1943 | do
|
---|
[10191] | 1944 | for ac_arg
|
---|
| 1945 | do
|
---|
| 1946 | case $ac_arg in
|
---|
| 1947 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1948 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1949 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1950 | continue ;;
|
---|
[23356] | 1951 | *\'*)
|
---|
| 1952 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10191] | 1953 | esac
|
---|
| 1954 | case $ac_pass in
|
---|
[25169] | 1955 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
[10191] | 1956 | 2)
|
---|
[25169] | 1957 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
[10191] | 1958 | if test $ac_must_keep_next = true; then
|
---|
| 1959 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1960 | else
|
---|
| 1961 | case $ac_arg in
|
---|
| 1962 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1963 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1964 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1965 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1966 | case "$ac_configure_args0 " in
|
---|
| 1967 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1968 | esac
|
---|
| 1969 | ;;
|
---|
| 1970 | -* ) ac_must_keep_next=true ;;
|
---|
| 1971 | esac
|
---|
| 1972 | fi
|
---|
[25169] | 1973 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
[10191] | 1974 | ;;
|
---|
| 1975 | esac
|
---|
| 1976 | done
|
---|
[3745] | 1977 | done
|
---|
[25169] | 1978 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 1979 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
[3745] | 1980 |
|
---|
| 1981 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1982 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1983 | # would cause problems or look ugly.
|
---|
[23356] | 1984 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 1985 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[3745] | 1986 | trap 'exit_status=$?
|
---|
| 1987 | # Save into config.log some information that might help in debugging.
|
---|
[10191] | 1988 | {
|
---|
| 1989 | echo
|
---|
| 1990 |
|
---|
[25169] | 1991 | $as_echo "## ---------------- ##
|
---|
[10191] | 1992 | ## Cache variables. ##
|
---|
[25169] | 1993 | ## ---------------- ##"
|
---|
[10191] | 1994 | echo
|
---|
| 1995 | # The following way of writing the cache mishandles newlines in values,
|
---|
[23356] | 1996 | (
|
---|
| 1997 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 1998 | eval ac_val=\$$ac_var
|
---|
| 1999 | case $ac_val in #(
|
---|
| 2000 | *${as_nl}*)
|
---|
| 2001 | case $ac_var in #(
|
---|
[25169] | 2002 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
[23356] | 2003 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 2004 | esac
|
---|
| 2005 | case $ac_var in #(
|
---|
| 2006 | _ | IFS | as_nl) ;; #(
|
---|
| 2007 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
[25169] | 2008 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
[23356] | 2009 | esac ;;
|
---|
| 2010 | esac
|
---|
| 2011 | done
|
---|
[3745] | 2012 | (set) 2>&1 |
|
---|
[23356] | 2013 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2014 | *${as_nl}ac_space=\ *)
|
---|
[3745] | 2015 | sed -n \
|
---|
[23356] | 2016 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2017 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2018 | ;; #(
|
---|
[3745] | 2019 | *)
|
---|
[23356] | 2020 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[3745] | 2021 | ;;
|
---|
[23356] | 2022 | esac |
|
---|
| 2023 | sort
|
---|
| 2024 | )
|
---|
[10191] | 2025 | echo
|
---|
| 2026 |
|
---|
[25169] | 2027 | $as_echo "## ----------------- ##
|
---|
[10191] | 2028 | ## Output variables. ##
|
---|
[25169] | 2029 | ## ----------------- ##"
|
---|
[10191] | 2030 | echo
|
---|
| 2031 | for ac_var in $ac_subst_vars
|
---|
| 2032 | do
|
---|
[23356] | 2033 | eval ac_val=\$$ac_var
|
---|
| 2034 | case $ac_val in
|
---|
| 2035 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2036 | esac
|
---|
| 2037 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10191] | 2038 | done | sort
|
---|
| 2039 | echo
|
---|
| 2040 |
|
---|
| 2041 | if test -n "$ac_subst_files"; then
|
---|
[25169] | 2042 | $as_echo "## ------------------- ##
|
---|
[23356] | 2043 | ## File substitutions. ##
|
---|
[25169] | 2044 | ## ------------------- ##"
|
---|
[10191] | 2045 | echo
|
---|
| 2046 | for ac_var in $ac_subst_files
|
---|
| 2047 | do
|
---|
[23356] | 2048 | eval ac_val=\$$ac_var
|
---|
| 2049 | case $ac_val in
|
---|
| 2050 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2051 | esac
|
---|
| 2052 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10191] | 2053 | done | sort
|
---|
| 2054 | echo
|
---|
| 2055 | fi
|
---|
| 2056 |
|
---|
| 2057 | if test -s confdefs.h; then
|
---|
[25169] | 2058 | $as_echo "## ----------- ##
|
---|
[10191] | 2059 | ## confdefs.h. ##
|
---|
[25169] | 2060 | ## ----------- ##"
|
---|
[10191] | 2061 | echo
|
---|
[23356] | 2062 | cat confdefs.h
|
---|
[10191] | 2063 | echo
|
---|
| 2064 | fi
|
---|
| 2065 | test "$ac_signal" != 0 &&
|
---|
[23356] | 2066 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2067 | $as_echo "$as_me: exit $exit_status"
|
---|
[10191] | 2068 | } >&5
|
---|
[23356] | 2069 | rm -f core *.core core.conftest.* &&
|
---|
| 2070 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[3745] | 2071 | exit $exit_status
|
---|
[23356] | 2072 | ' 0
|
---|
[3745] | 2073 | for ac_signal in 1 2 13 15; do
|
---|
[25169] | 2074 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
[3745] | 2075 | done
|
---|
| 2076 | ac_signal=0
|
---|
| 2077 |
|
---|
| 2078 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[23356] | 2079 | rm -f -r conftest* confdefs.h
|
---|
[3745] | 2080 |
|
---|
[25169] | 2081 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2082 |
|
---|
[10191] | 2083 | # Predefined preprocessor variables.
|
---|
| 2084 |
|
---|
| 2085 | cat >>confdefs.h <<_ACEOF
|
---|
| 2086 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2087 | _ACEOF
|
---|
| 2088 |
|
---|
| 2089 | cat >>confdefs.h <<_ACEOF
|
---|
| 2090 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2091 | _ACEOF
|
---|
| 2092 |
|
---|
| 2093 | cat >>confdefs.h <<_ACEOF
|
---|
| 2094 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2095 | _ACEOF
|
---|
| 2096 |
|
---|
| 2097 | cat >>confdefs.h <<_ACEOF
|
---|
| 2098 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2099 | _ACEOF
|
---|
| 2100 |
|
---|
| 2101 | cat >>confdefs.h <<_ACEOF
|
---|
| 2102 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2103 | _ACEOF
|
---|
| 2104 |
|
---|
[25169] | 2105 | cat >>confdefs.h <<_ACEOF
|
---|
| 2106 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2107 | _ACEOF
|
---|
[10191] | 2108 |
|
---|
[25169] | 2109 |
|
---|
[3745] | 2110 | # Let the site file select an alternate cache file if it wants to.
|
---|
[23356] | 2111 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2112 | ac_site_file1=NONE
|
---|
| 2113 | ac_site_file2=NONE
|
---|
| 2114 | if test -n "$CONFIG_SITE"; then
|
---|
[25169] | 2115 | # We do not want a PATH search for config.site.
|
---|
| 2116 | case $CONFIG_SITE in #((
|
---|
| 2117 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2118 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
| 2119 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2120 | esac
|
---|
[23356] | 2121 | elif test "x$prefix" != xNONE; then
|
---|
| 2122 | ac_site_file1=$prefix/share/config.site
|
---|
| 2123 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2124 | else
|
---|
| 2125 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2126 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
[3745] | 2127 | fi
|
---|
[23356] | 2128 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2129 | do
|
---|
| 2130 | test "x$ac_site_file" = xNONE && continue
|
---|
[25169] | 2131 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
[23356] | 2133 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10191] | 2134 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[25169] | 2135 | . "$ac_site_file" \
|
---|
| 2136 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2138 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
| 2139 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3745] | 2140 | fi
|
---|
| 2141 | done
|
---|
| 2142 |
|
---|
| 2143 | if test -r "$cache_file"; then
|
---|
[25169] | 2144 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2145 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2146 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
[23356] | 2148 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[3745] | 2149 | case $cache_file in
|
---|
[23356] | 2150 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2151 | *) . "./$cache_file";;
|
---|
[3745] | 2152 | esac
|
---|
| 2153 | fi
|
---|
| 2154 | else
|
---|
[25169] | 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
[23356] | 2156 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[3745] | 2157 | >$cache_file
|
---|
| 2158 | fi
|
---|
| 2159 |
|
---|
| 2160 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2161 | # value.
|
---|
[10191] | 2162 | ac_cache_corrupted=false
|
---|
[23356] | 2163 | for ac_var in $ac_precious_vars; do
|
---|
[3745] | 2164 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2165 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[23356] | 2166 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2167 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[3745] | 2168 | case $ac_old_set,$ac_new_set in
|
---|
| 2169 | set,)
|
---|
[25169] | 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
[23356] | 2171 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[10191] | 2172 | ac_cache_corrupted=: ;;
|
---|
[3745] | 2173 | ,set)
|
---|
[25169] | 2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
[23356] | 2175 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[10191] | 2176 | ac_cache_corrupted=: ;;
|
---|
[3745] | 2177 | ,);;
|
---|
| 2178 | *)
|
---|
| 2179 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[23356] | 2180 | # differences in whitespace do not lead to failure.
|
---|
| 2181 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2182 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2183 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
[25169] | 2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
[23356] | 2185 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2186 | ac_cache_corrupted=:
|
---|
| 2187 | else
|
---|
[25169] | 2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
[23356] | 2189 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2190 | eval $ac_var=\$ac_old_val
|
---|
| 2191 | fi
|
---|
[25169] | 2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
[23356] | 2193 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
[25169] | 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
[23356] | 2195 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
[3745] | 2196 | fi;;
|
---|
| 2197 | esac
|
---|
[10191] | 2198 | # Pass precious variables to config.status.
|
---|
| 2199 | if test "$ac_new_set" = set; then
|
---|
| 2200 | case $ac_new_val in
|
---|
[23356] | 2201 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10191] | 2202 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2203 | esac
|
---|
| 2204 | case " $ac_configure_args " in
|
---|
| 2205 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[25169] | 2206 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
[10191] | 2207 | esac
|
---|
| 2208 | fi
|
---|
[3745] | 2209 | done
|
---|
[10191] | 2210 | if $ac_cache_corrupted; then
|
---|
[25169] | 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2212 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25169] | 2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
[23356] | 2214 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
[25169] | 2215 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
[3745] | 2216 | fi
|
---|
[25169] | 2217 | ## -------------------- ##
|
---|
| 2218 | ## Main body of script. ##
|
---|
| 2219 | ## -------------------- ##
|
---|
[3745] | 2220 |
|
---|
| 2221 | ac_ext=c
|
---|
| 2222 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2226 |
|
---|
| 2227 |
|
---|
[23356] | 2228 | ac_config_headers="$ac_config_headers config.h"
|
---|
[3745] | 2229 |
|
---|
[10191] | 2230 |
|
---|
[15560] | 2231 | ac_aux_dir=
|
---|
[23356] | 2232 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
[25148] | 2233 | if test -f "$ac_dir/install-sh"; then
|
---|
| 2234 | ac_aux_dir=$ac_dir
|
---|
| 2235 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2236 | break
|
---|
| 2237 | elif test -f "$ac_dir/install.sh"; then
|
---|
| 2238 | ac_aux_dir=$ac_dir
|
---|
| 2239 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2240 | break
|
---|
| 2241 | elif test -f "$ac_dir/shtool"; then
|
---|
| 2242 | ac_aux_dir=$ac_dir
|
---|
| 2243 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2244 | break
|
---|
| 2245 | fi
|
---|
[15560] | 2246 | done
|
---|
| 2247 | if test -z "$ac_aux_dir"; then
|
---|
[25169] | 2248 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
[15560] | 2249 | fi
|
---|
| 2250 |
|
---|
[23356] | 2251 | # These three variables are undocumented and unsupported,
|
---|
| 2252 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 2253 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 2254 | # whose full name contains unusual characters.
|
---|
| 2255 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 2256 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 2257 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 2258 |
|
---|
| 2259 |
|
---|
[15560] | 2260 | # Make sure we can run config.sub.
|
---|
[23356] | 2261 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
[25169] | 2262 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
[15560] | 2263 |
|
---|
[25169] | 2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
[23356] | 2265 | $as_echo_n "checking build system type... " >&6; }
|
---|
[25169] | 2266 | if ${ac_cv_build+:} false; then :
|
---|
[23356] | 2267 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2268 | else
|
---|
[23356] | 2269 | ac_build_alias=$build_alias
|
---|
| 2270 | test "x$ac_build_alias" = x &&
|
---|
| 2271 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 2272 | test "x$ac_build_alias" = x &&
|
---|
[25169] | 2273 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
[23356] | 2274 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
[25169] | 2275 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
[15560] | 2276 |
|
---|
| 2277 | fi
|
---|
[25169] | 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
[23356] | 2279 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 2280 | case $ac_cv_build in
|
---|
| 2281 | *-*-*) ;;
|
---|
[25169] | 2282 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
[23356] | 2283 | esac
|
---|
[15560] | 2284 | build=$ac_cv_build
|
---|
[23356] | 2285 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2286 | set x $ac_cv_build
|
---|
| 2287 | shift
|
---|
| 2288 | build_cpu=$1
|
---|
| 2289 | build_vendor=$2
|
---|
| 2290 | shift; shift
|
---|
| 2291 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2292 | # except with old shells:
|
---|
| 2293 | build_os=$*
|
---|
| 2294 | IFS=$ac_save_IFS
|
---|
| 2295 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2296 |
|
---|
| 2297 |
|
---|
[25169] | 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
[23356] | 2299 | $as_echo_n "checking host system type... " >&6; }
|
---|
[25169] | 2300 | if ${ac_cv_host+:} false; then :
|
---|
[23356] | 2301 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2302 | else
|
---|
[23356] | 2303 | if test "x$host_alias" = x; then
|
---|
| 2304 | ac_cv_host=$ac_cv_build
|
---|
| 2305 | else
|
---|
| 2306 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
[25169] | 2307 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
[23356] | 2308 | fi
|
---|
[15560] | 2309 |
|
---|
| 2310 | fi
|
---|
[25169] | 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
[23356] | 2312 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 2313 | case $ac_cv_host in
|
---|
| 2314 | *-*-*) ;;
|
---|
[25169] | 2315 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
[23356] | 2316 | esac
|
---|
[15560] | 2317 | host=$ac_cv_host
|
---|
[23356] | 2318 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2319 | set x $ac_cv_host
|
---|
| 2320 | shift
|
---|
| 2321 | host_cpu=$1
|
---|
| 2322 | host_vendor=$2
|
---|
| 2323 | shift; shift
|
---|
| 2324 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2325 | # except with old shells:
|
---|
| 2326 | host_os=$*
|
---|
| 2327 | IFS=$ac_save_IFS
|
---|
| 2328 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2329 |
|
---|
| 2330 |
|
---|
[25169] | 2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
[23356] | 2332 | $as_echo_n "checking target system type... " >&6; }
|
---|
[25169] | 2333 | if ${ac_cv_target+:} false; then :
|
---|
[23356] | 2334 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2335 | else
|
---|
[23356] | 2336 | if test "x$target_alias" = x; then
|
---|
| 2337 | ac_cv_target=$ac_cv_host
|
---|
| 2338 | else
|
---|
| 2339 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
[25169] | 2340 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
[23356] | 2341 | fi
|
---|
[15560] | 2342 |
|
---|
| 2343 | fi
|
---|
[25169] | 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
[23356] | 2345 | $as_echo "$ac_cv_target" >&6; }
|
---|
| 2346 | case $ac_cv_target in
|
---|
| 2347 | *-*-*) ;;
|
---|
[25169] | 2348 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
[23356] | 2349 | esac
|
---|
[15560] | 2350 | target=$ac_cv_target
|
---|
[23356] | 2351 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2352 | set x $ac_cv_target
|
---|
| 2353 | shift
|
---|
| 2354 | target_cpu=$1
|
---|
| 2355 | target_vendor=$2
|
---|
| 2356 | shift; shift
|
---|
| 2357 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2358 | # except with old shells:
|
---|
| 2359 | target_os=$*
|
---|
| 2360 | IFS=$ac_save_IFS
|
---|
| 2361 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2362 |
|
---|
| 2363 |
|
---|
| 2364 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2365 | # will get canonicalized.
|
---|
| 2366 | test -n "$target_alias" &&
|
---|
| 2367 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2368 | NONENONEs,x,x, &&
|
---|
| 2369 | program_prefix=${target_alias}-
|
---|
[25169] | 2370 |
|
---|
[3745] | 2371 | test "$program_prefix" != NONE &&
|
---|
[23356] | 2372 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
[3745] | 2373 | # Use a double $ so make ignores it.
|
---|
| 2374 | test "$program_suffix" != NONE &&
|
---|
[23356] | 2375 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
| 2376 | # Double any \ or $.
|
---|
[10191] | 2377 | # By default was `s,x,x', remove it if useless.
|
---|
[23356] | 2378 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
| 2379 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
[3745] | 2380 |
|
---|
| 2381 |
|
---|
| 2382 | PACKAGE=mg
|
---|
| 2383 | VERSION=1.2
|
---|
| 2384 |
|
---|
[10191] | 2385 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 2386 | #define PACKAGE "$PACKAGE"
|
---|
[10191] | 2387 | _ACEOF
|
---|
[3745] | 2388 |
|
---|
[10191] | 2389 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 2390 | #define VERSION "$VERSION"
|
---|
[10191] | 2391 | _ACEOF
|
---|
[3745] | 2392 |
|
---|
[10191] | 2393 |
|
---|
| 2394 |
|
---|
| 2395 |
|
---|
[23356] | 2396 | # Check whether --enable-java was given.
|
---|
[25169] | 2397 | if test "${enable_java+set}" = set; then :
|
---|
[23356] | 2398 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
| 2399 | else
|
---|
| 2400 | ENABLE_JAVA=yes
|
---|
| 2401 | fi
|
---|
[15560] | 2402 |
|
---|
[23356] | 2403 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 2404 | ENABLE_JAVA=1
|
---|
| 2405 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 2406 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 2407 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 2408 | echo "and JAVA respectively"
|
---|
| 2409 | export JAVA_HOME=
|
---|
| 2410 | fi
|
---|
| 2411 | else
|
---|
| 2412 | ENABLE_JAVA=0
|
---|
| 2413 | fi
|
---|
| 2414 |
|
---|
| 2415 |
|
---|
[25169] | 2416 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
| 2417 | ARCH_DEP_FLAGS=
|
---|
| 2418 | fi
|
---|
[15560] | 2419 |
|
---|
[25169] | 2420 |
|
---|
| 2421 |
|
---|
| 2422 |
|
---|
[23356] | 2423 | ac_ext=cpp
|
---|
[3745] | 2424 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2425 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2426 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2427 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[23356] | 2428 | if test -z "$CXX"; then
|
---|
| 2429 | if test -n "$CCC"; then
|
---|
| 2430 | CXX=$CCC
|
---|
| 2431 | else
|
---|
| 2432 | if test -n "$ac_tool_prefix"; then
|
---|
| 2433 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[3745] | 2434 | do
|
---|
| 2435 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2436 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[25169] | 2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2438 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 2439 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
[23356] | 2440 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2441 | else
|
---|
| 2442 | if test -n "$CXX"; then
|
---|
| 2443 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2444 | else
|
---|
[10191] | 2445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2446 | for as_dir in $PATH
|
---|
| 2447 | do
|
---|
| 2448 | IFS=$as_save_IFS
|
---|
| 2449 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 2450 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 2451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2452 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[25169] | 2453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2454 | break 2
|
---|
| 2455 | fi
|
---|
[3745] | 2456 | done
|
---|
[25169] | 2457 | done
|
---|
[23356] | 2458 | IFS=$as_save_IFS
|
---|
[3745] | 2459 |
|
---|
| 2460 | fi
|
---|
| 2461 | fi
|
---|
| 2462 | CXX=$ac_cv_prog_CXX
|
---|
| 2463 | if test -n "$CXX"; then
|
---|
[25169] | 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
[23356] | 2465 | $as_echo "$CXX" >&6; }
|
---|
[3745] | 2466 | else
|
---|
[25169] | 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2468 | $as_echo "no" >&6; }
|
---|
[3745] | 2469 | fi
|
---|
| 2470 |
|
---|
[23356] | 2471 |
|
---|
[3745] | 2472 | test -n "$CXX" && break
|
---|
| 2473 | done
|
---|
| 2474 | fi
|
---|
| 2475 | if test -z "$CXX"; then
|
---|
| 2476 | ac_ct_CXX=$CXX
|
---|
[23356] | 2477 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[3745] | 2478 | do
|
---|
| 2479 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2480 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2482 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 2483 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
[23356] | 2484 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2485 | else
|
---|
| 2486 | if test -n "$ac_ct_CXX"; then
|
---|
| 2487 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2488 | else
|
---|
[10191] | 2489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2490 | for as_dir in $PATH
|
---|
| 2491 | do
|
---|
| 2492 | IFS=$as_save_IFS
|
---|
| 2493 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 2494 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 2495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2496 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[25169] | 2497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2498 | break 2
|
---|
| 2499 | fi
|
---|
[3745] | 2500 | done
|
---|
[25169] | 2501 | done
|
---|
[23356] | 2502 | IFS=$as_save_IFS
|
---|
[3745] | 2503 |
|
---|
| 2504 | fi
|
---|
| 2505 | fi
|
---|
| 2506 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2507 | if test -n "$ac_ct_CXX"; then
|
---|
[25169] | 2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
[23356] | 2509 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
[3745] | 2510 | else
|
---|
[25169] | 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2512 | $as_echo "no" >&6; }
|
---|
[3745] | 2513 | fi
|
---|
| 2514 |
|
---|
[23356] | 2515 |
|
---|
[3745] | 2516 | test -n "$ac_ct_CXX" && break
|
---|
| 2517 | done
|
---|
| 2518 |
|
---|
[23356] | 2519 | if test "x$ac_ct_CXX" = x; then
|
---|
| 2520 | CXX="g++"
|
---|
| 2521 | else
|
---|
| 2522 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2523 | yes:)
|
---|
[25169] | 2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 2525 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2526 | ac_tool_warned=yes ;;
|
---|
| 2527 | esac
|
---|
| 2528 | CXX=$ac_ct_CXX
|
---|
| 2529 | fi
|
---|
[3745] | 2530 | fi
|
---|
| 2531 |
|
---|
[23356] | 2532 | fi
|
---|
| 2533 | fi
|
---|
[10191] | 2534 | # Provide some information about the compiler.
|
---|
[25169] | 2535 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
[23356] | 2536 | set X $ac_compile
|
---|
| 2537 | ac_compiler=$2
|
---|
[25169] | 2538 | for ac_option in --version -v -V -qversion; do
|
---|
| 2539 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
[23356] | 2540 | case "(($ac_try" in
|
---|
| 2541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2542 | *) ac_try_echo=$ac_try;;
|
---|
| 2543 | esac
|
---|
[25169] | 2544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2545 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2546 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10191] | 2547 | ac_status=$?
|
---|
[25169] | 2548 | if test -s conftest.err; then
|
---|
| 2549 | sed '10a\
|
---|
| 2550 | ... rest of stderr output deleted ...
|
---|
| 2551 | 10q' conftest.err >conftest.er1
|
---|
| 2552 | cat conftest.er1 >&5
|
---|
| 2553 | fi
|
---|
| 2554 | rm -f conftest.er1 conftest.err
|
---|
| 2555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2556 | test $ac_status = 0; }
|
---|
| 2557 | done
|
---|
[10191] | 2558 |
|
---|
[25169] | 2559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2560 | /* end confdefs.h. */
|
---|
[3745] | 2561 |
|
---|
| 2562 | int
|
---|
| 2563 | main ()
|
---|
| 2564 | {
|
---|
| 2565 |
|
---|
| 2566 | ;
|
---|
| 2567 | return 0;
|
---|
| 2568 | }
|
---|
| 2569 | _ACEOF
|
---|
| 2570 | ac_clean_files_save=$ac_clean_files
|
---|
[23356] | 2571 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
[3745] | 2572 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10191] | 2573 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[3745] | 2574 | # of exeext.
|
---|
[25169] | 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
| 2576 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
[23356] | 2577 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10191] | 2578 |
|
---|
[23356] | 2579 | # The possible output files:
|
---|
| 2580 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 2581 |
|
---|
| 2582 | ac_rmfiles=
|
---|
| 2583 | for ac_file in $ac_files
|
---|
[10191] | 2584 | do
|
---|
[23356] | 2585 | case $ac_file in
|
---|
| 2586 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 2587 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2588 | esac
|
---|
| 2589 | done
|
---|
| 2590 | rm -f $ac_rmfiles
|
---|
| 2591 |
|
---|
[25169] | 2592 | if { { ac_try="$ac_link_default"
|
---|
[23356] | 2593 | case "(($ac_try" in
|
---|
| 2594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2595 | *) ac_try_echo=$ac_try;;
|
---|
| 2596 | esac
|
---|
[25169] | 2597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2598 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2599 | (eval "$ac_link_default") 2>&5
|
---|
| 2600 | ac_status=$?
|
---|
[25169] | 2601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2602 | test $ac_status = 0; }; then :
|
---|
[23356] | 2603 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2604 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2605 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2606 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2607 | # Autoconf.
|
---|
| 2608 | for ac_file in $ac_files ''
|
---|
| 2609 | do
|
---|
[10191] | 2610 | test -f "$ac_file" || continue
|
---|
[3745] | 2611 | case $ac_file in
|
---|
[23356] | 2612 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
[10191] | 2613 | ;;
|
---|
| 2614 | [ab].out )
|
---|
| 2615 | # We found the default executable, but exeext='' is most
|
---|
| 2616 | # certainly right.
|
---|
| 2617 | break;;
|
---|
| 2618 | *.* )
|
---|
[25169] | 2619 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
[23356] | 2620 | then :; else
|
---|
| 2621 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2622 | fi
|
---|
| 2623 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2624 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2625 | # argument, so we may need to know it at that point already.
|
---|
| 2626 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2627 | # actually working.
|
---|
[10191] | 2628 | break;;
|
---|
| 2629 | * )
|
---|
| 2630 | break;;
|
---|
[3745] | 2631 | esac
|
---|
| 2632 | done
|
---|
[23356] | 2633 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2634 |
|
---|
[3745] | 2635 | else
|
---|
[23356] | 2636 | ac_file=''
|
---|
| 2637 | fi
|
---|
[25169] | 2638 | if test -z "$ac_file"; then :
|
---|
| 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2640 | $as_echo "no" >&6; }
|
---|
| 2641 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2643 |
|
---|
[25169] | 2644 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2645 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25169] | 2646 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
| 2647 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2648 | else
|
---|
| 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2650 | $as_echo "yes" >&6; }
|
---|
[3745] | 2651 | fi
|
---|
[25169] | 2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
| 2653 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
| 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 2655 | $as_echo "$ac_file" >&6; }
|
---|
[3745] | 2656 | ac_exeext=$ac_cv_exeext
|
---|
| 2657 |
|
---|
[23356] | 2658 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
[3745] | 2659 | ac_clean_files=$ac_clean_files_save
|
---|
[25169] | 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
[23356] | 2661 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
[25169] | 2662 | if { { ac_try="$ac_link"
|
---|
[23356] | 2663 | case "(($ac_try" in
|
---|
| 2664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2665 | *) ac_try_echo=$ac_try;;
|
---|
| 2666 | esac
|
---|
[25169] | 2667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2668 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2669 | (eval "$ac_link") 2>&5
|
---|
[3745] | 2670 | ac_status=$?
|
---|
[25169] | 2671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2672 | test $ac_status = 0; }; then :
|
---|
[3745] | 2673 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2674 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2675 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2676 | # `rm'.
|
---|
[10191] | 2677 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2678 | test -f "$ac_file" || continue
|
---|
[3745] | 2679 | case $ac_file in
|
---|
[23356] | 2680 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
[3745] | 2681 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10191] | 2682 | break;;
|
---|
[3745] | 2683 | * ) break;;
|
---|
| 2684 | esac
|
---|
| 2685 | done
|
---|
| 2686 | else
|
---|
[25169] | 2687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25169] | 2689 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
| 2690 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3745] | 2691 | fi
|
---|
[25169] | 2692 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
[23356] | 2694 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
[3745] | 2695 |
|
---|
| 2696 | rm -f conftest.$ac_ext
|
---|
| 2697 | EXEEXT=$ac_cv_exeext
|
---|
| 2698 | ac_exeext=$EXEEXT
|
---|
[25169] | 2699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2700 | /* end confdefs.h. */
|
---|
| 2701 | #include <stdio.h>
|
---|
| 2702 | int
|
---|
| 2703 | main ()
|
---|
| 2704 | {
|
---|
| 2705 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 2706 | return ferror (f) || fclose (f) != 0;
|
---|
| 2707 |
|
---|
| 2708 | ;
|
---|
| 2709 | return 0;
|
---|
| 2710 | }
|
---|
| 2711 | _ACEOF
|
---|
| 2712 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 2713 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 2714 | # the compiler is broken, or we cross compile.
|
---|
| 2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 2716 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 2717 | if test "$cross_compiling" != yes; then
|
---|
| 2718 | { { ac_try="$ac_link"
|
---|
| 2719 | case "(($ac_try" in
|
---|
| 2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2721 | *) ac_try_echo=$ac_try;;
|
---|
| 2722 | esac
|
---|
| 2723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2724 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2725 | (eval "$ac_link") 2>&5
|
---|
| 2726 | ac_status=$?
|
---|
| 2727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2728 | test $ac_status = 0; }
|
---|
| 2729 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 2730 | { { case "(($ac_try" in
|
---|
| 2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2732 | *) ac_try_echo=$ac_try;;
|
---|
| 2733 | esac
|
---|
| 2734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2735 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2736 | (eval "$ac_try") 2>&5
|
---|
| 2737 | ac_status=$?
|
---|
| 2738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2739 | test $ac_status = 0; }; }; then
|
---|
| 2740 | cross_compiling=no
|
---|
| 2741 | else
|
---|
| 2742 | if test "$cross_compiling" = maybe; then
|
---|
| 2743 | cross_compiling=yes
|
---|
| 2744 | else
|
---|
| 2745 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2746 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2747 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
| 2748 | If you meant to cross compile, use \`--host'.
|
---|
| 2749 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2750 | fi
|
---|
| 2751 | fi
|
---|
| 2752 | fi
|
---|
| 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 2754 | $as_echo "$cross_compiling" >&6; }
|
---|
| 2755 |
|
---|
| 2756 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 2757 | ac_clean_files=$ac_clean_files_save
|
---|
| 2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
[23356] | 2759 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
[25169] | 2760 | if ${ac_cv_objext+:} false; then :
|
---|
[23356] | 2761 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2762 | else
|
---|
[25169] | 2763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2764 | /* end confdefs.h. */
|
---|
[3745] | 2765 |
|
---|
| 2766 | int
|
---|
| 2767 | main ()
|
---|
| 2768 | {
|
---|
| 2769 |
|
---|
| 2770 | ;
|
---|
| 2771 | return 0;
|
---|
| 2772 | }
|
---|
| 2773 | _ACEOF
|
---|
| 2774 | rm -f conftest.o conftest.obj
|
---|
[25169] | 2775 | if { { ac_try="$ac_compile"
|
---|
[23356] | 2776 | case "(($ac_try" in
|
---|
| 2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2778 | *) ac_try_echo=$ac_try;;
|
---|
| 2779 | esac
|
---|
[25169] | 2780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2781 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2782 | (eval "$ac_compile") 2>&5
|
---|
[3745] | 2783 | ac_status=$?
|
---|
[25169] | 2784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2785 | test $ac_status = 0; }; then :
|
---|
[23356] | 2786 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 2787 | test -f "$ac_file" || continue;
|
---|
[3745] | 2788 | case $ac_file in
|
---|
[23356] | 2789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
[3745] | 2790 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2791 | break;;
|
---|
| 2792 | esac
|
---|
| 2793 | done
|
---|
| 2794 | else
|
---|
[23356] | 2795 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2796 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2797 |
|
---|
[25169] | 2798 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25169] | 2800 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
| 2801 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3745] | 2802 | fi
|
---|
| 2803 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2804 | fi
|
---|
[25169] | 2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
[23356] | 2806 | $as_echo "$ac_cv_objext" >&6; }
|
---|
[3745] | 2807 | OBJEXT=$ac_cv_objext
|
---|
| 2808 | ac_objext=$OBJEXT
|
---|
[25169] | 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
[23356] | 2810 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
[25169] | 2811 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
[23356] | 2812 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2813 | else
|
---|
[25169] | 2814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2815 | /* end confdefs.h. */
|
---|
[3745] | 2816 |
|
---|
| 2817 | int
|
---|
| 2818 | main ()
|
---|
| 2819 | {
|
---|
| 2820 | #ifndef __GNUC__
|
---|
| 2821 | choke me
|
---|
| 2822 | #endif
|
---|
| 2823 |
|
---|
| 2824 | ;
|
---|
| 2825 | return 0;
|
---|
| 2826 | }
|
---|
| 2827 | _ACEOF
|
---|
[25169] | 2828 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[3745] | 2829 | ac_compiler_gnu=yes
|
---|
| 2830 | else
|
---|
[25169] | 2831 | ac_compiler_gnu=no
|
---|
[3745] | 2832 | fi
|
---|
[23356] | 2833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2834 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2835 |
|
---|
| 2836 | fi
|
---|
[25169] | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[23356] | 2838 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 2839 | if test $ac_compiler_gnu = yes; then
|
---|
| 2840 | GXX=yes
|
---|
| 2841 | else
|
---|
| 2842 | GXX=
|
---|
| 2843 | fi
|
---|
[3745] | 2844 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2845 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[25169] | 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
[23356] | 2847 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
[25169] | 2848 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
[23356] | 2849 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2850 | else
|
---|
[23356] | 2851 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 2852 | ac_cxx_werror_flag=yes
|
---|
| 2853 | ac_cv_prog_cxx_g=no
|
---|
| 2854 | CXXFLAGS="-g"
|
---|
[25169] | 2855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2856 | /* end confdefs.h. */
|
---|
[3745] | 2857 |
|
---|
| 2858 | int
|
---|
| 2859 | main ()
|
---|
| 2860 | {
|
---|
| 2861 |
|
---|
| 2862 | ;
|
---|
| 2863 | return 0;
|
---|
| 2864 | }
|
---|
| 2865 | _ACEOF
|
---|
[25169] | 2866 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[3745] | 2867 | ac_cv_prog_cxx_g=yes
|
---|
| 2868 | else
|
---|
[25169] | 2869 | CXXFLAGS=""
|
---|
| 2870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 2871 | /* end confdefs.h. */
|
---|
[10191] | 2872 |
|
---|
[3745] | 2873 | int
|
---|
| 2874 | main ()
|
---|
| 2875 | {
|
---|
[23356] | 2876 |
|
---|
[3745] | 2877 | ;
|
---|
| 2878 | return 0;
|
---|
| 2879 | }
|
---|
| 2880 | _ACEOF
|
---|
[25169] | 2881 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 2882 |
|
---|
[25148] | 2883 | else
|
---|
[25169] | 2884 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
[23356] | 2885 | CXXFLAGS="-g"
|
---|
[25169] | 2886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 2887 | /* end confdefs.h. */
|
---|
[10191] | 2888 |
|
---|
[3745] | 2889 | int
|
---|
| 2890 | main ()
|
---|
| 2891 | {
|
---|
[23356] | 2892 |
|
---|
[3745] | 2893 | ;
|
---|
| 2894 | return 0;
|
---|
| 2895 | }
|
---|
| 2896 | _ACEOF
|
---|
[25169] | 2897 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[23356] | 2898 | ac_cv_prog_cxx_g=yes
|
---|
| 2899 | fi
|
---|
| 2900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2901 | fi
|
---|
| 2902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2903 | fi
|
---|
| 2904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2905 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 2906 | fi
|
---|
[25169] | 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
[23356] | 2908 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 2909 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2910 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2911 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2912 | if test "$GXX" = yes; then
|
---|
| 2913 | CXXFLAGS="-g -O2"
|
---|
| 2914 | else
|
---|
| 2915 | CXXFLAGS="-g"
|
---|
| 2916 | fi
|
---|
[3745] | 2917 | else
|
---|
[23356] | 2918 | if test "$GXX" = yes; then
|
---|
| 2919 | CXXFLAGS="-O2"
|
---|
| 2920 | else
|
---|
| 2921 | CXXFLAGS=
|
---|
| 2922 | fi
|
---|
[3745] | 2923 | fi
|
---|
| 2924 | ac_ext=c
|
---|
| 2925 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2929 |
|
---|
[10191] | 2930 | for ac_prog in gawk mawk nawk awk
|
---|
[3745] | 2931 | do
|
---|
| 2932 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2933 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2935 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 2936 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
[23356] | 2937 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2938 | else
|
---|
| 2939 | if test -n "$AWK"; then
|
---|
| 2940 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2941 | else
|
---|
[10191] | 2942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2943 | for as_dir in $PATH
|
---|
| 2944 | do
|
---|
| 2945 | IFS=$as_save_IFS
|
---|
| 2946 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 2947 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 2948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2949 | ac_cv_prog_AWK="$ac_prog"
|
---|
[25169] | 2950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2951 | break 2
|
---|
| 2952 | fi
|
---|
[3745] | 2953 | done
|
---|
[25169] | 2954 | done
|
---|
[23356] | 2955 | IFS=$as_save_IFS
|
---|
[3745] | 2956 |
|
---|
| 2957 | fi
|
---|
| 2958 | fi
|
---|
| 2959 | AWK=$ac_cv_prog_AWK
|
---|
| 2960 | if test -n "$AWK"; then
|
---|
[25169] | 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
[23356] | 2962 | $as_echo "$AWK" >&6; }
|
---|
[3745] | 2963 | else
|
---|
[25169] | 2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2965 | $as_echo "no" >&6; }
|
---|
[3745] | 2966 | fi
|
---|
| 2967 |
|
---|
[23356] | 2968 |
|
---|
[3745] | 2969 | test -n "$AWK" && break
|
---|
| 2970 | done
|
---|
| 2971 |
|
---|
| 2972 | for ac_prog in 'bison -y' byacc
|
---|
| 2973 | do
|
---|
| 2974 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2975 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2977 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 2978 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
[23356] | 2979 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2980 | else
|
---|
| 2981 | if test -n "$YACC"; then
|
---|
| 2982 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2983 | else
|
---|
[10191] | 2984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2985 | for as_dir in $PATH
|
---|
| 2986 | do
|
---|
| 2987 | IFS=$as_save_IFS
|
---|
| 2988 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 2989 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 2990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2991 | ac_cv_prog_YACC="$ac_prog"
|
---|
[25169] | 2992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2993 | break 2
|
---|
| 2994 | fi
|
---|
[3745] | 2995 | done
|
---|
[25169] | 2996 | done
|
---|
[23356] | 2997 | IFS=$as_save_IFS
|
---|
[3745] | 2998 |
|
---|
| 2999 | fi
|
---|
| 3000 | fi
|
---|
| 3001 | YACC=$ac_cv_prog_YACC
|
---|
| 3002 | if test -n "$YACC"; then
|
---|
[25169] | 3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
[23356] | 3004 | $as_echo "$YACC" >&6; }
|
---|
[3745] | 3005 | else
|
---|
[25169] | 3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3007 | $as_echo "no" >&6; }
|
---|
[3745] | 3008 | fi
|
---|
| 3009 |
|
---|
[23356] | 3010 |
|
---|
[3745] | 3011 | test -n "$YACC" && break
|
---|
| 3012 | done
|
---|
| 3013 | test -n "$YACC" || YACC="yacc"
|
---|
| 3014 |
|
---|
| 3015 | ac_ext=c
|
---|
| 3016 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3020 | if test -n "$ac_tool_prefix"; then
|
---|
| 3021 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 3022 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[25169] | 3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3024 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3025 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3026 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3027 | else
|
---|
| 3028 | if test -n "$CC"; then
|
---|
| 3029 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3030 | else
|
---|
[10191] | 3031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3032 | for as_dir in $PATH
|
---|
| 3033 | do
|
---|
| 3034 | IFS=$as_save_IFS
|
---|
| 3035 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3036 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3038 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[25169] | 3039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3040 | break 2
|
---|
| 3041 | fi
|
---|
[3745] | 3042 | done
|
---|
[25169] | 3043 | done
|
---|
[23356] | 3044 | IFS=$as_save_IFS
|
---|
[3745] | 3045 |
|
---|
| 3046 | fi
|
---|
| 3047 | fi
|
---|
| 3048 | CC=$ac_cv_prog_CC
|
---|
| 3049 | if test -n "$CC"; then
|
---|
[25169] | 3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3051 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3052 | else
|
---|
[25169] | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3054 | $as_echo "no" >&6; }
|
---|
[3745] | 3055 | fi
|
---|
| 3056 |
|
---|
[23356] | 3057 |
|
---|
[3745] | 3058 | fi
|
---|
| 3059 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 3060 | ac_ct_CC=$CC
|
---|
| 3061 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 3062 | set dummy gcc; ac_word=$2
|
---|
[25169] | 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3064 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3065 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
[23356] | 3066 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3067 | else
|
---|
| 3068 | if test -n "$ac_ct_CC"; then
|
---|
| 3069 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3070 | else
|
---|
[10191] | 3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3072 | for as_dir in $PATH
|
---|
| 3073 | do
|
---|
| 3074 | IFS=$as_save_IFS
|
---|
| 3075 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3076 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3078 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[25169] | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3080 | break 2
|
---|
| 3081 | fi
|
---|
[3745] | 3082 | done
|
---|
[25169] | 3083 | done
|
---|
[23356] | 3084 | IFS=$as_save_IFS
|
---|
[3745] | 3085 |
|
---|
| 3086 | fi
|
---|
| 3087 | fi
|
---|
| 3088 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3089 | if test -n "$ac_ct_CC"; then
|
---|
[25169] | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
[23356] | 3091 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[3745] | 3092 | else
|
---|
[25169] | 3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3094 | $as_echo "no" >&6; }
|
---|
[3745] | 3095 | fi
|
---|
| 3096 |
|
---|
[23356] | 3097 | if test "x$ac_ct_CC" = x; then
|
---|
| 3098 | CC=""
|
---|
| 3099 | else
|
---|
| 3100 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3101 | yes:)
|
---|
[25169] | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3103 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3104 | ac_tool_warned=yes ;;
|
---|
| 3105 | esac
|
---|
| 3106 | CC=$ac_ct_CC
|
---|
| 3107 | fi
|
---|
[3745] | 3108 | else
|
---|
| 3109 | CC="$ac_cv_prog_CC"
|
---|
| 3110 | fi
|
---|
| 3111 |
|
---|
| 3112 | if test -z "$CC"; then
|
---|
[23356] | 3113 | if test -n "$ac_tool_prefix"; then
|
---|
| 3114 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[3745] | 3115 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[25169] | 3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3117 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3118 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3119 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3120 | else
|
---|
| 3121 | if test -n "$CC"; then
|
---|
| 3122 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3123 | else
|
---|
[10191] | 3124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3125 | for as_dir in $PATH
|
---|
| 3126 | do
|
---|
| 3127 | IFS=$as_save_IFS
|
---|
| 3128 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3129 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3131 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[25169] | 3132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3133 | break 2
|
---|
| 3134 | fi
|
---|
[3745] | 3135 | done
|
---|
[25169] | 3136 | done
|
---|
[23356] | 3137 | IFS=$as_save_IFS
|
---|
[3745] | 3138 |
|
---|
| 3139 | fi
|
---|
| 3140 | fi
|
---|
| 3141 | CC=$ac_cv_prog_CC
|
---|
| 3142 | if test -n "$CC"; then
|
---|
[25169] | 3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3144 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3145 | else
|
---|
[25169] | 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3147 | $as_echo "no" >&6; }
|
---|
[3745] | 3148 | fi
|
---|
| 3149 |
|
---|
[23356] | 3150 |
|
---|
[10191] | 3151 | fi
|
---|
[3745] | 3152 | fi
|
---|
| 3153 | if test -z "$CC"; then
|
---|
| 3154 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 3155 | set dummy cc; ac_word=$2
|
---|
[25169] | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3157 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3158 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3159 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3160 | else
|
---|
| 3161 | if test -n "$CC"; then
|
---|
| 3162 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3163 | else
|
---|
| 3164 | ac_prog_rejected=no
|
---|
[10191] | 3165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3166 | for as_dir in $PATH
|
---|
| 3167 | do
|
---|
| 3168 | IFS=$as_save_IFS
|
---|
| 3169 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3170 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3172 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 3173 | ac_prog_rejected=yes
|
---|
| 3174 | continue
|
---|
| 3175 | fi
|
---|
| 3176 | ac_cv_prog_CC="cc"
|
---|
[25169] | 3177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3178 | break 2
|
---|
| 3179 | fi
|
---|
[3745] | 3180 | done
|
---|
[25169] | 3181 | done
|
---|
[23356] | 3182 | IFS=$as_save_IFS
|
---|
[3745] | 3183 |
|
---|
| 3184 | if test $ac_prog_rejected = yes; then
|
---|
| 3185 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 3186 | set dummy $ac_cv_prog_CC
|
---|
| 3187 | shift
|
---|
| 3188 | if test $# != 0; then
|
---|
| 3189 | # We chose a different compiler from the bogus one.
|
---|
| 3190 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 3191 | # first if we set CC to just the basename; use the full file name.
|
---|
| 3192 | shift
|
---|
[10191] | 3193 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3745] | 3194 | fi
|
---|
| 3195 | fi
|
---|
| 3196 | fi
|
---|
| 3197 | fi
|
---|
| 3198 | CC=$ac_cv_prog_CC
|
---|
| 3199 | if test -n "$CC"; then
|
---|
[25169] | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3201 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3202 | else
|
---|
[25169] | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3204 | $as_echo "no" >&6; }
|
---|
[3745] | 3205 | fi
|
---|
| 3206 |
|
---|
[23356] | 3207 |
|
---|
[3745] | 3208 | fi
|
---|
| 3209 | if test -z "$CC"; then
|
---|
| 3210 | if test -n "$ac_tool_prefix"; then
|
---|
[23356] | 3211 | for ac_prog in cl.exe
|
---|
[3745] | 3212 | do
|
---|
| 3213 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3214 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[25169] | 3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3216 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3217 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3218 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3219 | else
|
---|
| 3220 | if test -n "$CC"; then
|
---|
| 3221 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3222 | else
|
---|
[10191] | 3223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3224 | for as_dir in $PATH
|
---|
| 3225 | do
|
---|
| 3226 | IFS=$as_save_IFS
|
---|
| 3227 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3228 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3230 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[25169] | 3231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3232 | break 2
|
---|
| 3233 | fi
|
---|
[3745] | 3234 | done
|
---|
[25169] | 3235 | done
|
---|
[23356] | 3236 | IFS=$as_save_IFS
|
---|
[3745] | 3237 |
|
---|
| 3238 | fi
|
---|
| 3239 | fi
|
---|
| 3240 | CC=$ac_cv_prog_CC
|
---|
| 3241 | if test -n "$CC"; then
|
---|
[25169] | 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3243 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3244 | else
|
---|
[25169] | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3246 | $as_echo "no" >&6; }
|
---|
[3745] | 3247 | fi
|
---|
| 3248 |
|
---|
[23356] | 3249 |
|
---|
[3745] | 3250 | test -n "$CC" && break
|
---|
| 3251 | done
|
---|
| 3252 | fi
|
---|
| 3253 | if test -z "$CC"; then
|
---|
| 3254 | ac_ct_CC=$CC
|
---|
[23356] | 3255 | for ac_prog in cl.exe
|
---|
[3745] | 3256 | do
|
---|
| 3257 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3258 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3260 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3261 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
[23356] | 3262 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3263 | else
|
---|
| 3264 | if test -n "$ac_ct_CC"; then
|
---|
| 3265 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3266 | else
|
---|
[10191] | 3267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3268 | for as_dir in $PATH
|
---|
| 3269 | do
|
---|
| 3270 | IFS=$as_save_IFS
|
---|
| 3271 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3272 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3274 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[25169] | 3275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3276 | break 2
|
---|
| 3277 | fi
|
---|
[3745] | 3278 | done
|
---|
[25169] | 3279 | done
|
---|
[23356] | 3280 | IFS=$as_save_IFS
|
---|
[3745] | 3281 |
|
---|
| 3282 | fi
|
---|
| 3283 | fi
|
---|
| 3284 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3285 | if test -n "$ac_ct_CC"; then
|
---|
[25169] | 3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
[23356] | 3287 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[3745] | 3288 | else
|
---|
[25169] | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3290 | $as_echo "no" >&6; }
|
---|
[3745] | 3291 | fi
|
---|
| 3292 |
|
---|
[23356] | 3293 |
|
---|
[3745] | 3294 | test -n "$ac_ct_CC" && break
|
---|
| 3295 | done
|
---|
| 3296 |
|
---|
[23356] | 3297 | if test "x$ac_ct_CC" = x; then
|
---|
| 3298 | CC=""
|
---|
| 3299 | else
|
---|
| 3300 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3301 | yes:)
|
---|
[25169] | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3304 | ac_tool_warned=yes ;;
|
---|
| 3305 | esac
|
---|
| 3306 | CC=$ac_ct_CC
|
---|
| 3307 | fi
|
---|
[3745] | 3308 | fi
|
---|
| 3309 |
|
---|
| 3310 | fi
|
---|
| 3311 |
|
---|
[10191] | 3312 |
|
---|
[25169] | 3313 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 3314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25169] | 3315 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
| 3316 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3745] | 3317 |
|
---|
[10191] | 3318 | # Provide some information about the compiler.
|
---|
[25169] | 3319 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
[23356] | 3320 | set X $ac_compile
|
---|
| 3321 | ac_compiler=$2
|
---|
[25169] | 3322 | for ac_option in --version -v -V -qversion; do
|
---|
| 3323 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
[23356] | 3324 | case "(($ac_try" in
|
---|
| 3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3326 | *) ac_try_echo=$ac_try;;
|
---|
| 3327 | esac
|
---|
[25169] | 3328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3329 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3330 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10191] | 3331 | ac_status=$?
|
---|
[25169] | 3332 | if test -s conftest.err; then
|
---|
| 3333 | sed '10a\
|
---|
| 3334 | ... rest of stderr output deleted ...
|
---|
| 3335 | 10q' conftest.err >conftest.er1
|
---|
| 3336 | cat conftest.er1 >&5
|
---|
| 3337 | fi
|
---|
| 3338 | rm -f conftest.er1 conftest.err
|
---|
| 3339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3340 | test $ac_status = 0; }
|
---|
| 3341 | done
|
---|
[10191] | 3342 |
|
---|
[25169] | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
[23356] | 3344 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
[25169] | 3345 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
[23356] | 3346 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3347 | else
|
---|
[25169] | 3348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 3349 | /* end confdefs.h. */
|
---|
[3745] | 3350 |
|
---|
| 3351 | int
|
---|
| 3352 | main ()
|
---|
| 3353 | {
|
---|
| 3354 | #ifndef __GNUC__
|
---|
| 3355 | choke me
|
---|
| 3356 | #endif
|
---|
| 3357 |
|
---|
| 3358 | ;
|
---|
| 3359 | return 0;
|
---|
| 3360 | }
|
---|
| 3361 | _ACEOF
|
---|
[25169] | 3362 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 3363 | ac_compiler_gnu=yes
|
---|
| 3364 | else
|
---|
[25169] | 3365 | ac_compiler_gnu=no
|
---|
[3745] | 3366 | fi
|
---|
[23356] | 3367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3368 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 3369 |
|
---|
| 3370 | fi
|
---|
[25169] | 3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[23356] | 3372 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 3373 | if test $ac_compiler_gnu = yes; then
|
---|
| 3374 | GCC=yes
|
---|
| 3375 | else
|
---|
| 3376 | GCC=
|
---|
| 3377 | fi
|
---|
[3745] | 3378 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 3379 | ac_save_CFLAGS=$CFLAGS
|
---|
[25169] | 3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
[23356] | 3381 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
[25169] | 3382 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
[23356] | 3383 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3384 | else
|
---|
[23356] | 3385 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 3386 | ac_c_werror_flag=yes
|
---|
| 3387 | ac_cv_prog_cc_g=no
|
---|
| 3388 | CFLAGS="-g"
|
---|
[25169] | 3389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 3390 | /* end confdefs.h. */
|
---|
[3745] | 3391 |
|
---|
| 3392 | int
|
---|
| 3393 | main ()
|
---|
| 3394 | {
|
---|
| 3395 |
|
---|
| 3396 | ;
|
---|
| 3397 | return 0;
|
---|
| 3398 | }
|
---|
| 3399 | _ACEOF
|
---|
[25169] | 3400 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 3401 | ac_cv_prog_cc_g=yes
|
---|
| 3402 | else
|
---|
[25169] | 3403 | CFLAGS=""
|
---|
| 3404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3405 | /* end confdefs.h. */
|
---|
[10191] | 3406 |
|
---|
[23356] | 3407 | int
|
---|
| 3408 | main ()
|
---|
| 3409 | {
|
---|
| 3410 |
|
---|
| 3411 | ;
|
---|
| 3412 | return 0;
|
---|
| 3413 | }
|
---|
| 3414 | _ACEOF
|
---|
[25169] | 3415 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3416 |
|
---|
[25148] | 3417 | else
|
---|
[25169] | 3418 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
[23356] | 3419 | CFLAGS="-g"
|
---|
[25169] | 3420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3421 | /* end confdefs.h. */
|
---|
| 3422 |
|
---|
| 3423 | int
|
---|
| 3424 | main ()
|
---|
| 3425 | {
|
---|
| 3426 |
|
---|
| 3427 | ;
|
---|
| 3428 | return 0;
|
---|
| 3429 | }
|
---|
| 3430 | _ACEOF
|
---|
[25169] | 3431 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 3432 | ac_cv_prog_cc_g=yes
|
---|
[3745] | 3433 | fi
|
---|
[23356] | 3434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3435 | fi
|
---|
[23356] | 3436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3437 | fi
|
---|
| 3438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3439 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3440 | fi
|
---|
[25169] | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
[23356] | 3442 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
[3745] | 3443 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 3444 | CFLAGS=$ac_save_CFLAGS
|
---|
| 3445 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3446 | if test "$GCC" = yes; then
|
---|
| 3447 | CFLAGS="-g -O2"
|
---|
| 3448 | else
|
---|
| 3449 | CFLAGS="-g"
|
---|
| 3450 | fi
|
---|
| 3451 | else
|
---|
| 3452 | if test "$GCC" = yes; then
|
---|
| 3453 | CFLAGS="-O2"
|
---|
| 3454 | else
|
---|
| 3455 | CFLAGS=
|
---|
| 3456 | fi
|
---|
| 3457 | fi
|
---|
[25169] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
[23356] | 3459 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
[25169] | 3460 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
[23356] | 3461 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 3462 | else
|
---|
[23356] | 3463 | ac_cv_prog_cc_c89=no
|
---|
[10191] | 3464 | ac_save_CC=$CC
|
---|
[25169] | 3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 3466 | /* end confdefs.h. */
|
---|
| 3467 | #include <stdarg.h>
|
---|
| 3468 | #include <stdio.h>
|
---|
| 3469 | #include <sys/types.h>
|
---|
| 3470 | #include <sys/stat.h>
|
---|
| 3471 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3472 | struct buf { int x; };
|
---|
| 3473 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3474 | static char *e (p, i)
|
---|
| 3475 | char **p;
|
---|
| 3476 | int i;
|
---|
| 3477 | {
|
---|
| 3478 | return p[i];
|
---|
| 3479 | }
|
---|
| 3480 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3481 | {
|
---|
| 3482 | char *s;
|
---|
| 3483 | va_list v;
|
---|
| 3484 | va_start (v,p);
|
---|
| 3485 | s = g (p, va_arg (v,int));
|
---|
| 3486 | va_end (v);
|
---|
| 3487 | return s;
|
---|
| 3488 | }
|
---|
| 3489 |
|
---|
| 3490 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3491 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3492 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[23356] | 3493 | as 'x'. The following induces an error, until -std is added to get
|
---|
[10191] | 3494 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3495 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[23356] | 3496 | that's true only with -std. */
|
---|
[10191] | 3497 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3498 |
|
---|
[23356] | 3499 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3500 | inside strings and character constants. */
|
---|
| 3501 | #define FOO(x) 'x'
|
---|
| 3502 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3503 |
|
---|
[10191] | 3504 | int test (int i, double x);
|
---|
| 3505 | struct s1 {int (*f) (int a);};
|
---|
| 3506 | struct s2 {int (*f) (double a);};
|
---|
| 3507 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3508 | int argc;
|
---|
| 3509 | char **argv;
|
---|
| 3510 | int
|
---|
| 3511 | main ()
|
---|
| 3512 | {
|
---|
| 3513 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3514 | ;
|
---|
| 3515 | return 0;
|
---|
| 3516 | }
|
---|
| 3517 | _ACEOF
|
---|
[23356] | 3518 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3519 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[10191] | 3520 | do
|
---|
| 3521 | CC="$ac_save_CC $ac_arg"
|
---|
[25169] | 3522 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 3523 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[10191] | 3524 | fi
|
---|
[23356] | 3525 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3526 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[10191] | 3527 | done
|
---|
[23356] | 3528 | rm -f conftest.$ac_ext
|
---|
[10191] | 3529 | CC=$ac_save_CC
|
---|
| 3530 |
|
---|
| 3531 | fi
|
---|
[23356] | 3532 | # AC_CACHE_VAL
|
---|
| 3533 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3534 | x)
|
---|
[25169] | 3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
[23356] | 3536 | $as_echo "none needed" >&6; } ;;
|
---|
| 3537 | xno)
|
---|
[25169] | 3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
[23356] | 3539 | $as_echo "unsupported" >&6; } ;;
|
---|
[10191] | 3540 | *)
|
---|
[23356] | 3541 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
[25169] | 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
[23356] | 3543 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[10191] | 3544 | esac
|
---|
[25169] | 3545 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
[10191] | 3546 |
|
---|
[25169] | 3547 | fi
|
---|
[10191] | 3548 |
|
---|
[3745] | 3549 | ac_ext=c
|
---|
| 3550 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3554 |
|
---|
| 3555 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3556 | # so one script is as good as another. But avoid the broken or
|
---|
| 3557 | # incompatible versions:
|
---|
| 3558 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3559 | # SunOS /usr/etc/install
|
---|
| 3560 | # IRIX /sbin/install
|
---|
| 3561 | # AIX /bin/install
|
---|
| 3562 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3563 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3564 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3565 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10191] | 3566 | # OS/2's system install, which has a completely different semantic
|
---|
[3745] | 3567 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[23356] | 3568 | # Reject install programs that cannot install multiple files.
|
---|
[25169] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
[23356] | 3570 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
[3745] | 3571 | if test -z "$INSTALL"; then
|
---|
[25169] | 3572 | if ${ac_cv_path_install+:} false; then :
|
---|
[23356] | 3573 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3574 | else
|
---|
[10191] | 3575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3576 | for as_dir in $PATH
|
---|
| 3577 | do
|
---|
| 3578 | IFS=$as_save_IFS
|
---|
| 3579 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3580 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3581 | case $as_dir/ in #((
|
---|
| 3582 | ./ | .// | /[cC]/* | \
|
---|
[10191] | 3583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[25169] | 3584 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
[10191] | 3585 | /usr/ucb/* ) ;;
|
---|
| 3586 | *)
|
---|
| 3587 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3588 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3589 | # by default.
|
---|
| 3590 | for ac_prog in ginstall scoinst install; do
|
---|
| 3591 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3592 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[3745] | 3593 | if test $ac_prog = install &&
|
---|
[10191] | 3594 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3745] | 3595 | # AIX install. It has an incompatible calling convention.
|
---|
| 3596 | :
|
---|
| 3597 | elif test $ac_prog = install &&
|
---|
[10191] | 3598 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3745] | 3599 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3600 | :
|
---|
| 3601 | else
|
---|
[23356] | 3602 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3603 | echo one > conftest.one
|
---|
| 3604 | echo two > conftest.two
|
---|
| 3605 | mkdir conftest.dir
|
---|
| 3606 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 3607 | test -s conftest.one && test -s conftest.two &&
|
---|
| 3608 | test -s conftest.dir/conftest.one &&
|
---|
| 3609 | test -s conftest.dir/conftest.two
|
---|
| 3610 | then
|
---|
| 3611 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3612 | break 3
|
---|
| 3613 | fi
|
---|
[3745] | 3614 | fi
|
---|
| 3615 | fi
|
---|
| 3616 | done
|
---|
[10191] | 3617 | done
|
---|
| 3618 | ;;
|
---|
| 3619 | esac
|
---|
[3745] | 3620 |
|
---|
[25169] | 3621 | done
|
---|
[23356] | 3622 | IFS=$as_save_IFS
|
---|
[10191] | 3623 |
|
---|
[23356] | 3624 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3625 |
|
---|
[3745] | 3626 | fi
|
---|
| 3627 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3628 | INSTALL=$ac_cv_path_install
|
---|
| 3629 | else
|
---|
[23356] | 3630 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3631 | # value for INSTALL within a source directory, because that will
|
---|
[3745] | 3632 | # break other packages using the cache if that directory is
|
---|
[23356] | 3633 | # removed, or if the value is a relative name.
|
---|
[3745] | 3634 | INSTALL=$ac_install_sh
|
---|
| 3635 | fi
|
---|
| 3636 | fi
|
---|
[25169] | 3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
[23356] | 3638 | $as_echo "$INSTALL" >&6; }
|
---|
[3745] | 3639 |
|
---|
| 3640 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3641 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3642 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3643 |
|
---|
| 3644 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3645 |
|
---|
| 3646 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3647 |
|
---|
[25169] | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
[23356] | 3649 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
[3745] | 3650 | LN_S=$as_ln_s
|
---|
| 3651 | if test "$LN_S" = "ln -s"; then
|
---|
[25169] | 3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 3653 | $as_echo "yes" >&6; }
|
---|
[3745] | 3654 | else
|
---|
[25169] | 3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
[23356] | 3656 | $as_echo "no, using $LN_S" >&6; }
|
---|
[3745] | 3657 | fi
|
---|
| 3658 |
|
---|
[25169] | 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
[23356] | 3660 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 3661 | set x ${MAKE-make}
|
---|
| 3662 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
[25169] | 3663 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
[23356] | 3664 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3665 | else
|
---|
[10191] | 3666 | cat >conftest.make <<\_ACEOF
|
---|
[23356] | 3667 | SHELL = /bin/sh
|
---|
[3745] | 3668 | all:
|
---|
[23356] | 3669 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[10191] | 3670 | _ACEOF
|
---|
[25169] | 3671 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
[23356] | 3672 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3673 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3674 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3675 | *)
|
---|
| 3676 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3677 | esac
|
---|
[3745] | 3678 | rm -f conftest.make
|
---|
| 3679 | fi
|
---|
[23356] | 3680 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
[25169] | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 3682 | $as_echo "yes" >&6; }
|
---|
[3745] | 3683 | SET_MAKE=
|
---|
| 3684 | else
|
---|
[25169] | 3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3686 | $as_echo "no" >&6; }
|
---|
[3745] | 3687 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3688 | fi
|
---|
| 3689 |
|
---|
| 3690 | if test -n "$ac_tool_prefix"; then
|
---|
| 3691 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3692 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[25169] | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3694 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3695 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
[23356] | 3696 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3697 | else
|
---|
| 3698 | if test -n "$RANLIB"; then
|
---|
| 3699 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3700 | else
|
---|
[10191] | 3701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3702 | for as_dir in $PATH
|
---|
| 3703 | do
|
---|
| 3704 | IFS=$as_save_IFS
|
---|
| 3705 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3706 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3708 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[25169] | 3709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3710 | break 2
|
---|
| 3711 | fi
|
---|
[3745] | 3712 | done
|
---|
[25169] | 3713 | done
|
---|
[23356] | 3714 | IFS=$as_save_IFS
|
---|
[3745] | 3715 |
|
---|
| 3716 | fi
|
---|
| 3717 | fi
|
---|
| 3718 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3719 | if test -n "$RANLIB"; then
|
---|
[25169] | 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
[23356] | 3721 | $as_echo "$RANLIB" >&6; }
|
---|
[3745] | 3722 | else
|
---|
[25169] | 3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3724 | $as_echo "no" >&6; }
|
---|
[3745] | 3725 | fi
|
---|
| 3726 |
|
---|
[23356] | 3727 |
|
---|
[3745] | 3728 | fi
|
---|
| 3729 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3730 | ac_ct_RANLIB=$RANLIB
|
---|
| 3731 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3732 | set dummy ranlib; ac_word=$2
|
---|
[25169] | 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3734 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3735 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
[23356] | 3736 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3737 | else
|
---|
| 3738 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3739 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3740 | else
|
---|
[10191] | 3741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3742 | for as_dir in $PATH
|
---|
| 3743 | do
|
---|
| 3744 | IFS=$as_save_IFS
|
---|
| 3745 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3746 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3748 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[25169] | 3749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3750 | break 2
|
---|
| 3751 | fi
|
---|
[3745] | 3752 | done
|
---|
[25169] | 3753 | done
|
---|
[23356] | 3754 | IFS=$as_save_IFS
|
---|
[3745] | 3755 |
|
---|
| 3756 | fi
|
---|
| 3757 | fi
|
---|
| 3758 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3759 | if test -n "$ac_ct_RANLIB"; then
|
---|
[25169] | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
[23356] | 3761 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
[3745] | 3762 | else
|
---|
[25169] | 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3764 | $as_echo "no" >&6; }
|
---|
[3745] | 3765 | fi
|
---|
| 3766 |
|
---|
[23356] | 3767 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 3768 | RANLIB=":"
|
---|
| 3769 | else
|
---|
| 3770 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3771 | yes:)
|
---|
[25169] | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3774 | ac_tool_warned=yes ;;
|
---|
| 3775 | esac
|
---|
| 3776 | RANLIB=$ac_ct_RANLIB
|
---|
| 3777 | fi
|
---|
[3745] | 3778 | else
|
---|
| 3779 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3780 | fi
|
---|
| 3781 |
|
---|
[23356] | 3782 | if test $ENABLE_JAVA = "1" ; then
|
---|
[10191] | 3783 |
|
---|
| 3784 |
|
---|
[23356] | 3785 | if test "x$JAVA" = x ; then
|
---|
| 3786 | if test x$JAVAPREFIX = x; then
|
---|
| 3787 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3788 | do
|
---|
| 3789 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3790 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3792 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3793 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
[23356] | 3794 | $as_echo_n "(cached) " >&6
|
---|
| 3795 | else
|
---|
| 3796 | if test -n "$JAVA"; then
|
---|
| 3797 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3798 | else
|
---|
| 3799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3800 | for as_dir in $PATH
|
---|
| 3801 | do
|
---|
| 3802 | IFS=$as_save_IFS
|
---|
| 3803 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3804 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3806 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[25169] | 3807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3808 | break 2
|
---|
| 3809 | fi
|
---|
| 3810 | done
|
---|
[25169] | 3811 | done
|
---|
[23356] | 3812 | IFS=$as_save_IFS
|
---|
| 3813 |
|
---|
| 3814 | fi
|
---|
| 3815 | fi
|
---|
| 3816 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3817 | if test -n "$JAVA"; then
|
---|
[25169] | 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
[23356] | 3819 | $as_echo "$JAVA" >&6; }
|
---|
| 3820 | else
|
---|
[25169] | 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3822 | $as_echo "no" >&6; }
|
---|
| 3823 | fi
|
---|
| 3824 |
|
---|
| 3825 |
|
---|
| 3826 | test -n "$JAVA" && break
|
---|
| 3827 | done
|
---|
| 3828 |
|
---|
| 3829 | else
|
---|
| 3830 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3831 | do
|
---|
| 3832 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3833 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3835 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3836 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
[23356] | 3837 | $as_echo_n "(cached) " >&6
|
---|
| 3838 | else
|
---|
| 3839 | if test -n "$JAVA"; then
|
---|
| 3840 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3841 | else
|
---|
| 3842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3843 | for as_dir in $PATH
|
---|
| 3844 | do
|
---|
| 3845 | IFS=$as_save_IFS
|
---|
| 3846 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3847 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3849 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[25169] | 3850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3851 | break 2
|
---|
| 3852 | fi
|
---|
| 3853 | done
|
---|
[25169] | 3854 | done
|
---|
[23356] | 3855 | IFS=$as_save_IFS
|
---|
| 3856 |
|
---|
| 3857 | fi
|
---|
| 3858 | fi
|
---|
| 3859 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3860 | if test -n "$JAVA"; then
|
---|
[25169] | 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
[23356] | 3862 | $as_echo "$JAVA" >&6; }
|
---|
| 3863 | else
|
---|
[25169] | 3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3865 | $as_echo "no" >&6; }
|
---|
| 3866 | fi
|
---|
| 3867 |
|
---|
| 3868 |
|
---|
| 3869 | test -n "$JAVA" && break
|
---|
| 3870 | done
|
---|
| 3871 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
| 3872 |
|
---|
| 3873 | fi
|
---|
[25169] | 3874 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
[23356] | 3875 | fi
|
---|
| 3876 |
|
---|
| 3877 |
|
---|
| 3878 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
| 3879 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
[25169] | 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3881 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3882 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
[23356] | 3883 | $as_echo_n "(cached) " >&6
|
---|
| 3884 | else
|
---|
| 3885 | if test -n "$uudecode"; then
|
---|
| 3886 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
| 3887 | else
|
---|
| 3888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3889 | for as_dir in $PATH
|
---|
| 3890 | do
|
---|
| 3891 | IFS=$as_save_IFS
|
---|
| 3892 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3893 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3895 | ac_cv_prog_uudecode="yes"
|
---|
[25169] | 3896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3897 | break 2
|
---|
| 3898 | fi
|
---|
| 3899 | done
|
---|
[25169] | 3900 | done
|
---|
[23356] | 3901 | IFS=$as_save_IFS
|
---|
| 3902 |
|
---|
| 3903 | fi
|
---|
| 3904 | fi
|
---|
| 3905 | uudecode=$ac_cv_prog_uudecode
|
---|
| 3906 | if test -n "$uudecode"; then
|
---|
[25169] | 3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
[23356] | 3908 | $as_echo "$uudecode" >&6; }
|
---|
| 3909 | else
|
---|
[25169] | 3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3911 | $as_echo "no" >&6; }
|
---|
| 3912 | fi
|
---|
| 3913 |
|
---|
| 3914 |
|
---|
| 3915 | if test x$uudecode = xyes; then
|
---|
[25169] | 3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
[23356] | 3917 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
[25169] | 3918 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
[23356] | 3919 | $as_echo_n "(cached) " >&6
|
---|
| 3920 | else
|
---|
| 3921 |
|
---|
| 3922 | cat << \EOF > Test.uue
|
---|
| 3923 | begin-base64 644 Test.class
|
---|
| 3924 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
| 3925 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
| 3926 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
| 3927 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
| 3928 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
| 3929 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
| 3930 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
| 3931 | ====
|
---|
| 3932 | EOF
|
---|
| 3933 | if uudecode$EXEEXT Test.uue; then
|
---|
| 3934 | ac_cv_prog_uudecode_base64=yes
|
---|
| 3935 | else
|
---|
[25169] | 3936 | echo "configure: 3936: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
[23356] | 3937 | echo "configure: failed file was:" >&5
|
---|
| 3938 | cat Test.uue >&5
|
---|
| 3939 | ac_cv_prog_uudecode_base64=no
|
---|
| 3940 | fi
|
---|
| 3941 | rm -f Test.uue
|
---|
| 3942 | fi
|
---|
[25169] | 3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
[23356] | 3944 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
| 3945 | fi
|
---|
| 3946 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 3947 | rm -f Test.class
|
---|
[25169] | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
[23356] | 3949 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
| 3950 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
[25169] | 3951 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
[23356] | 3952 | fi
|
---|
| 3953 | if test x$ac_cv_prog_javac_works = x; then
|
---|
| 3954 |
|
---|
| 3955 | if test "x$JAVAC" = x ; then
|
---|
| 3956 | if test "x$JAVAPREFIX" = x; then
|
---|
| 3957 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3958 | do
|
---|
| 3959 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3960 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3962 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 3963 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 3964 | $as_echo_n "(cached) " >&6
|
---|
| 3965 | else
|
---|
| 3966 | if test -n "$JAVAC"; then
|
---|
| 3967 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3968 | else
|
---|
| 3969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3970 | for as_dir in $PATH
|
---|
| 3971 | do
|
---|
| 3972 | IFS=$as_save_IFS
|
---|
| 3973 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 3974 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3976 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25169] | 3977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3978 | break 2
|
---|
| 3979 | fi
|
---|
| 3980 | done
|
---|
[25169] | 3981 | done
|
---|
[23356] | 3982 | IFS=$as_save_IFS
|
---|
| 3983 |
|
---|
| 3984 | fi
|
---|
| 3985 | fi
|
---|
| 3986 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 3987 | if test -n "$JAVAC"; then
|
---|
[25169] | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 3989 | $as_echo "$JAVAC" >&6; }
|
---|
| 3990 | else
|
---|
[25169] | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3992 | $as_echo "no" >&6; }
|
---|
| 3993 | fi
|
---|
| 3994 |
|
---|
| 3995 |
|
---|
| 3996 | test -n "$JAVAC" && break
|
---|
| 3997 | done
|
---|
| 3998 |
|
---|
| 3999 | else
|
---|
| 4000 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4001 | do
|
---|
| 4002 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4003 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4005 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 4006 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4007 | $as_echo_n "(cached) " >&6
|
---|
| 4008 | else
|
---|
| 4009 | if test -n "$JAVAC"; then
|
---|
| 4010 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4011 | else
|
---|
| 4012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4013 | for as_dir in $PATH
|
---|
| 4014 | do
|
---|
| 4015 | IFS=$as_save_IFS
|
---|
| 4016 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 4017 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4019 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25169] | 4020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4021 | break 2
|
---|
| 4022 | fi
|
---|
| 4023 | done
|
---|
[25169] | 4024 | done
|
---|
[23356] | 4025 | IFS=$as_save_IFS
|
---|
| 4026 |
|
---|
| 4027 | fi
|
---|
| 4028 | fi
|
---|
| 4029 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4030 | if test -n "$JAVAC"; then
|
---|
[25169] | 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4032 | $as_echo "$JAVAC" >&6; }
|
---|
| 4033 | else
|
---|
[25169] | 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4035 | $as_echo "no" >&6; }
|
---|
| 4036 | fi
|
---|
| 4037 |
|
---|
| 4038 |
|
---|
| 4039 | test -n "$JAVAC" && break
|
---|
| 4040 | done
|
---|
| 4041 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4042 |
|
---|
| 4043 | fi
|
---|
[25169] | 4044 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4045 | else
|
---|
| 4046 | echo "Checking for javac... $JAVAC"
|
---|
| 4047 | fi
|
---|
| 4048 |
|
---|
| 4049 |
|
---|
[25169] | 4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
[23356] | 4051 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
[25169] | 4052 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
[23356] | 4053 | $as_echo_n "(cached) " >&6
|
---|
| 4054 | else
|
---|
| 4055 |
|
---|
| 4056 | JAVA_TEST=Test.java
|
---|
| 4057 | CLASS_TEST=Test.class
|
---|
| 4058 | cat << \EOF > $JAVA_TEST
|
---|
[25169] | 4059 | /* #line 4059 "configure" */
|
---|
[23356] | 4060 | public class Test {
|
---|
| 4061 | }
|
---|
| 4062 | EOF
|
---|
| 4063 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25169] | 4064 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4065 | (eval $ac_try) 2>&5
|
---|
| 4066 | ac_status=$?
|
---|
[25169] | 4067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4068 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4069 | ac_cv_prog_javac_works=yes
|
---|
| 4070 | else
|
---|
[25169] | 4071 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4072 | echo "configure: failed program was:" >&5
|
---|
| 4073 | cat $JAVA_TEST >&5
|
---|
| 4074 | fi
|
---|
| 4075 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4076 |
|
---|
| 4077 | fi
|
---|
[25169] | 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
[23356] | 4079 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4080 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4081 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4082 | fi
|
---|
| 4083 |
|
---|
| 4084 |
|
---|
| 4085 |
|
---|
| 4086 | fi
|
---|
| 4087 | fi
|
---|
[25169] | 4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
[23356] | 4089 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
[25169] | 4090 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
[23356] | 4091 | $as_echo_n "(cached) " >&6
|
---|
| 4092 | else
|
---|
| 4093 |
|
---|
| 4094 | JAVA_TEST=Test.java
|
---|
| 4095 | CLASS_TEST=Test.class
|
---|
| 4096 | TEST=Test
|
---|
| 4097 | cat << \EOF > $JAVA_TEST
|
---|
[25169] | 4098 | /* [#]line 4098 "configure" */
|
---|
[23356] | 4099 | public class Test {
|
---|
| 4100 | public static void main (String args[]) {
|
---|
| 4101 | System.exit (0);
|
---|
| 4102 | } }
|
---|
| 4103 | EOF
|
---|
| 4104 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 4105 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25169] | 4106 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4107 | (eval $ac_try) 2>&5
|
---|
| 4108 | ac_status=$?
|
---|
[25169] | 4109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4110 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
[23356] | 4111 | :
|
---|
| 4112 | else
|
---|
| 4113 | echo "configure: failed program was:" >&5
|
---|
| 4114 | cat $JAVA_TEST >&5
|
---|
[25169] | 4115 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4116 | fi
|
---|
| 4117 | fi
|
---|
| 4118 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
[25169] | 4119 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4120 | (eval $ac_try) 2>&5
|
---|
| 4121 | ac_status=$?
|
---|
[25169] | 4122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4123 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4124 | ac_cv_prog_java_works=yes
|
---|
| 4125 | else
|
---|
| 4126 | echo "configure: failed program was:" >&5
|
---|
| 4127 | cat $JAVA_TEST >&5
|
---|
[25169] | 4128 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4129 | fi
|
---|
| 4130 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
| 4131 |
|
---|
| 4132 | fi
|
---|
[25169] | 4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
[23356] | 4134 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
| 4135 |
|
---|
| 4136 |
|
---|
| 4137 |
|
---|
| 4138 |
|
---|
| 4139 | if test "x$JAVAC" = x ; then
|
---|
| 4140 | if test "x$JAVAPREFIX" = x; then
|
---|
| 4141 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4142 | do
|
---|
| 4143 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4144 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4146 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 4147 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4148 | $as_echo_n "(cached) " >&6
|
---|
| 4149 | else
|
---|
| 4150 | if test -n "$JAVAC"; then
|
---|
| 4151 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4152 | else
|
---|
| 4153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4154 | for as_dir in $PATH
|
---|
| 4155 | do
|
---|
| 4156 | IFS=$as_save_IFS
|
---|
| 4157 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 4158 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4160 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25169] | 4161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4162 | break 2
|
---|
| 4163 | fi
|
---|
| 4164 | done
|
---|
[25169] | 4165 | done
|
---|
[23356] | 4166 | IFS=$as_save_IFS
|
---|
| 4167 |
|
---|
| 4168 | fi
|
---|
| 4169 | fi
|
---|
| 4170 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4171 | if test -n "$JAVAC"; then
|
---|
[25169] | 4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4173 | $as_echo "$JAVAC" >&6; }
|
---|
| 4174 | else
|
---|
[25169] | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4176 | $as_echo "no" >&6; }
|
---|
| 4177 | fi
|
---|
| 4178 |
|
---|
| 4179 |
|
---|
| 4180 | test -n "$JAVAC" && break
|
---|
| 4181 | done
|
---|
| 4182 |
|
---|
| 4183 | else
|
---|
| 4184 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4185 | do
|
---|
| 4186 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4187 | set dummy $ac_prog; ac_word=$2
|
---|
[25169] | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4189 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25169] | 4190 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4191 | $as_echo_n "(cached) " >&6
|
---|
| 4192 | else
|
---|
| 4193 | if test -n "$JAVAC"; then
|
---|
| 4194 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4195 | else
|
---|
| 4196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4197 | for as_dir in $PATH
|
---|
| 4198 | do
|
---|
| 4199 | IFS=$as_save_IFS
|
---|
| 4200 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 4201 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 4202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4203 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25169] | 4204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4205 | break 2
|
---|
| 4206 | fi
|
---|
| 4207 | done
|
---|
[25169] | 4208 | done
|
---|
[23356] | 4209 | IFS=$as_save_IFS
|
---|
| 4210 |
|
---|
| 4211 | fi
|
---|
| 4212 | fi
|
---|
| 4213 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4214 | if test -n "$JAVAC"; then
|
---|
[25169] | 4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4216 | $as_echo "$JAVAC" >&6; }
|
---|
| 4217 | else
|
---|
[25169] | 4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4219 | $as_echo "no" >&6; }
|
---|
| 4220 | fi
|
---|
| 4221 |
|
---|
| 4222 |
|
---|
| 4223 | test -n "$JAVAC" && break
|
---|
| 4224 | done
|
---|
| 4225 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4226 |
|
---|
| 4227 | fi
|
---|
[25169] | 4228 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4229 | else
|
---|
| 4230 | echo "Checking for javac... $JAVAC"
|
---|
| 4231 | fi
|
---|
| 4232 |
|
---|
| 4233 |
|
---|
[25169] | 4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
[23356] | 4235 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
[25169] | 4236 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
[23356] | 4237 | $as_echo_n "(cached) " >&6
|
---|
| 4238 | else
|
---|
| 4239 |
|
---|
| 4240 | JAVA_TEST=Test.java
|
---|
| 4241 | CLASS_TEST=Test.class
|
---|
| 4242 | cat << \EOF > $JAVA_TEST
|
---|
[25169] | 4243 | /* #line 4243 "configure" */
|
---|
[23356] | 4244 | public class Test {
|
---|
| 4245 | }
|
---|
| 4246 | EOF
|
---|
| 4247 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25169] | 4248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4249 | (eval $ac_try) 2>&5
|
---|
| 4250 | ac_status=$?
|
---|
[25169] | 4251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4252 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4253 | ac_cv_prog_javac_works=yes
|
---|
| 4254 | else
|
---|
[25169] | 4255 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4256 | echo "configure: failed program was:" >&5
|
---|
| 4257 | cat $JAVA_TEST >&5
|
---|
| 4258 | fi
|
---|
| 4259 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4260 |
|
---|
| 4261 | fi
|
---|
[25169] | 4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
[23356] | 4263 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4264 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4265 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4266 | fi
|
---|
| 4267 |
|
---|
| 4268 |
|
---|
| 4269 |
|
---|
| 4270 | fi
|
---|
| 4271 |
|
---|
| 4272 |
|
---|
[3745] | 4273 | ac_ext=c
|
---|
| 4274 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[25169] | 4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
[23356] | 4279 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
[3745] | 4280 | # On Suns, sometimes $CPP names a directory.
|
---|
| 4281 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 4282 | CPP=
|
---|
| 4283 | fi
|
---|
| 4284 | if test -z "$CPP"; then
|
---|
[25169] | 4285 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
[23356] | 4286 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4287 | else
|
---|
| 4288 | # Double quotes because CPP needs to be expanded
|
---|
| 4289 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 4290 | do
|
---|
| 4291 | ac_preproc_ok=false
|
---|
| 4292 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4293 | do
|
---|
| 4294 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4295 | # with a fresh cross-compiler works.
|
---|
[10191] | 4296 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4297 | # <limits.h> exists even on freestanding compilers.
|
---|
[3745] | 4298 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4299 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[25169] | 4300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4301 | /* end confdefs.h. */
|
---|
| 4302 | #ifdef __STDC__
|
---|
| 4303 | # include <limits.h>
|
---|
| 4304 | #else
|
---|
| 4305 | # include <assert.h>
|
---|
| 4306 | #endif
|
---|
| 4307 | Syntax error
|
---|
| 4308 | _ACEOF
|
---|
[25169] | 4309 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4310 |
|
---|
[25148] | 4311 | else
|
---|
[3745] | 4312 | # Broken: fails on valid input.
|
---|
| 4313 | continue
|
---|
| 4314 | fi
|
---|
[25169] | 4315 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4316 |
|
---|
[23356] | 4317 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[3745] | 4318 | # can be detected and how.
|
---|
[25169] | 4319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4320 | /* end confdefs.h. */
|
---|
[3745] | 4321 | #include <ac_nonexistent.h>
|
---|
| 4322 | _ACEOF
|
---|
[25169] | 4323 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[3745] | 4324 | # Broken: success on invalid input.
|
---|
| 4325 | continue
|
---|
| 4326 | else
|
---|
| 4327 | # Passes both tests.
|
---|
| 4328 | ac_preproc_ok=:
|
---|
| 4329 | break
|
---|
| 4330 | fi
|
---|
[25169] | 4331 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4332 |
|
---|
[3745] | 4333 | done
|
---|
| 4334 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25169] | 4335 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 4336 | if $ac_preproc_ok; then :
|
---|
[10191] | 4337 | break
|
---|
[3745] | 4338 | fi
|
---|
| 4339 |
|
---|
| 4340 | done
|
---|
| 4341 | ac_cv_prog_CPP=$CPP
|
---|
| 4342 |
|
---|
| 4343 | fi
|
---|
| 4344 | CPP=$ac_cv_prog_CPP
|
---|
| 4345 | else
|
---|
| 4346 | ac_cv_prog_CPP=$CPP
|
---|
| 4347 | fi
|
---|
[25169] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
[23356] | 4349 | $as_echo "$CPP" >&6; }
|
---|
[3745] | 4350 | ac_preproc_ok=false
|
---|
| 4351 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4352 | do
|
---|
| 4353 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4354 | # with a fresh cross-compiler works.
|
---|
[10191] | 4355 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4356 | # <limits.h> exists even on freestanding compilers.
|
---|
[3745] | 4357 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4358 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[25169] | 4359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4360 | /* end confdefs.h. */
|
---|
| 4361 | #ifdef __STDC__
|
---|
| 4362 | # include <limits.h>
|
---|
| 4363 | #else
|
---|
| 4364 | # include <assert.h>
|
---|
| 4365 | #endif
|
---|
| 4366 | Syntax error
|
---|
| 4367 | _ACEOF
|
---|
[25169] | 4368 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4369 |
|
---|
[25148] | 4370 | else
|
---|
[3745] | 4371 | # Broken: fails on valid input.
|
---|
| 4372 | continue
|
---|
| 4373 | fi
|
---|
[25169] | 4374 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4375 |
|
---|
[23356] | 4376 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[3745] | 4377 | # can be detected and how.
|
---|
[25169] | 4378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4379 | /* end confdefs.h. */
|
---|
[3745] | 4380 | #include <ac_nonexistent.h>
|
---|
| 4381 | _ACEOF
|
---|
[25169] | 4382 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[3745] | 4383 | # Broken: success on invalid input.
|
---|
| 4384 | continue
|
---|
| 4385 | else
|
---|
| 4386 | # Passes both tests.
|
---|
| 4387 | ac_preproc_ok=:
|
---|
| 4388 | break
|
---|
| 4389 | fi
|
---|
[25169] | 4390 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4391 |
|
---|
[3745] | 4392 | done
|
---|
| 4393 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25169] | 4394 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 4395 | if $ac_preproc_ok; then :
|
---|
| 4396 |
|
---|
[3745] | 4397 | else
|
---|
[25169] | 4398 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 4399 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25169] | 4400 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
| 4401 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3745] | 4402 | fi
|
---|
| 4403 |
|
---|
| 4404 | ac_ext=c
|
---|
| 4405 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4409 |
|
---|
[10191] | 4410 |
|
---|
[25169] | 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
[23356] | 4412 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
[25169] | 4413 | if ${ac_cv_path_GREP+:} false; then :
|
---|
[23356] | 4414 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 4415 | else
|
---|
[23356] | 4416 | if test -z "$GREP"; then
|
---|
| 4417 | ac_path_GREP_found=false
|
---|
| 4418 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4420 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4421 | do
|
---|
| 4422 | IFS=$as_save_IFS
|
---|
| 4423 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 4424 | for ac_prog in grep ggrep; do
|
---|
[23356] | 4425 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4426 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4427 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4428 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4429 | # Check for GNU $ac_path_GREP
|
---|
| 4430 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4431 | *GNU*)
|
---|
| 4432 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4433 | *)
|
---|
| 4434 | ac_count=0
|
---|
| 4435 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4436 | while :
|
---|
| 4437 | do
|
---|
| 4438 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4439 | mv "conftest.tmp" "conftest.in"
|
---|
| 4440 | cp "conftest.in" "conftest.nl"
|
---|
| 4441 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 4442 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4443 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
[25169] | 4444 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
[23356] | 4445 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4446 | # Best one so far, save it but keep looking for a better one
|
---|
| 4447 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4448 | ac_path_GREP_max=$ac_count
|
---|
[10191] | 4449 | fi
|
---|
[23356] | 4450 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4451 | test $ac_count -gt 10 && break
|
---|
| 4452 | done
|
---|
| 4453 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4454 | esac
|
---|
[10191] | 4455 |
|
---|
[23356] | 4456 | $ac_path_GREP_found && break 3
|
---|
| 4457 | done
|
---|
| 4458 | done
|
---|
[25169] | 4459 | done
|
---|
[23356] | 4460 | IFS=$as_save_IFS
|
---|
| 4461 | if test -z "$ac_cv_path_GREP"; then
|
---|
[25169] | 4462 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4463 | fi
|
---|
[3745] | 4464 | else
|
---|
[23356] | 4465 | ac_cv_path_GREP=$GREP
|
---|
[3745] | 4466 | fi
|
---|
| 4467 |
|
---|
[23356] | 4468 | fi
|
---|
[25169] | 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
[23356] | 4470 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 4471 | GREP="$ac_cv_path_GREP"
|
---|
[3745] | 4472 |
|
---|
| 4473 |
|
---|
[25169] | 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
[23356] | 4475 | $as_echo_n "checking for egrep... " >&6; }
|
---|
[25169] | 4476 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
[23356] | 4477 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4478 | else
|
---|
[23356] | 4479 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4480 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4481 | else
|
---|
| 4482 | if test -z "$EGREP"; then
|
---|
| 4483 | ac_path_EGREP_found=false
|
---|
| 4484 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4486 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4487 | do
|
---|
| 4488 | IFS=$as_save_IFS
|
---|
| 4489 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 4490 | for ac_prog in egrep; do
|
---|
[23356] | 4491 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4492 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4493 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4494 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4495 | # Check for GNU $ac_path_EGREP
|
---|
| 4496 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4497 | *GNU*)
|
---|
| 4498 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4499 | *)
|
---|
| 4500 | ac_count=0
|
---|
| 4501 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4502 | while :
|
---|
| 4503 | do
|
---|
| 4504 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4505 | mv "conftest.tmp" "conftest.in"
|
---|
| 4506 | cp "conftest.in" "conftest.nl"
|
---|
| 4507 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 4508 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4509 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
[25169] | 4510 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
[23356] | 4511 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4512 | # Best one so far, save it but keep looking for a better one
|
---|
| 4513 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4514 | ac_path_EGREP_max=$ac_count
|
---|
| 4515 | fi
|
---|
| 4516 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4517 | test $ac_count -gt 10 && break
|
---|
| 4518 | done
|
---|
| 4519 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4520 | esac
|
---|
[10191] | 4521 |
|
---|
[23356] | 4522 | $ac_path_EGREP_found && break 3
|
---|
| 4523 | done
|
---|
| 4524 | done
|
---|
[25169] | 4525 | done
|
---|
[23356] | 4526 | IFS=$as_save_IFS
|
---|
| 4527 | if test -z "$ac_cv_path_EGREP"; then
|
---|
[25169] | 4528 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4529 | fi
|
---|
[10191] | 4530 | else
|
---|
[23356] | 4531 | ac_cv_path_EGREP=$EGREP
|
---|
[10191] | 4532 | fi
|
---|
| 4533 |
|
---|
[23356] | 4534 | fi
|
---|
[10191] | 4535 | fi
|
---|
[25169] | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
[23356] | 4537 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 4538 | EGREP="$ac_cv_path_EGREP"
|
---|
[10191] | 4539 |
|
---|
[23356] | 4540 |
|
---|
[25169] | 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
[23356] | 4542 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
[25169] | 4543 | if ${ac_cv_header_stdc+:} false; then :
|
---|
[23356] | 4544 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 4545 | else
|
---|
[25169] | 4546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4547 | /* end confdefs.h. */
|
---|
| 4548 | #include <stdlib.h>
|
---|
| 4549 | #include <stdarg.h>
|
---|
| 4550 | #include <string.h>
|
---|
| 4551 | #include <float.h>
|
---|
| 4552 |
|
---|
| 4553 | int
|
---|
| 4554 | main ()
|
---|
| 4555 | {
|
---|
| 4556 |
|
---|
| 4557 | ;
|
---|
| 4558 | return 0;
|
---|
| 4559 | }
|
---|
| 4560 | _ACEOF
|
---|
[25169] | 4561 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10191] | 4562 | ac_cv_header_stdc=yes
|
---|
| 4563 | else
|
---|
[25169] | 4564 | ac_cv_header_stdc=no
|
---|
[10191] | 4565 | fi
|
---|
[23356] | 4566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10191] | 4567 |
|
---|
| 4568 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4569 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[25169] | 4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4571 | /* end confdefs.h. */
|
---|
| 4572 | #include <string.h>
|
---|
| 4573 |
|
---|
| 4574 | _ACEOF
|
---|
| 4575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 4576 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 4577 |
|
---|
[10191] | 4578 | else
|
---|
| 4579 | ac_cv_header_stdc=no
|
---|
| 4580 | fi
|
---|
| 4581 | rm -f conftest*
|
---|
| 4582 |
|
---|
| 4583 | fi
|
---|
| 4584 |
|
---|
| 4585 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4586 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[25169] | 4587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4588 | /* end confdefs.h. */
|
---|
| 4589 | #include <stdlib.h>
|
---|
| 4590 |
|
---|
| 4591 | _ACEOF
|
---|
| 4592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 4593 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 4594 |
|
---|
[10191] | 4595 | else
|
---|
| 4596 | ac_cv_header_stdc=no
|
---|
| 4597 | fi
|
---|
| 4598 | rm -f conftest*
|
---|
| 4599 |
|
---|
| 4600 | fi
|
---|
| 4601 |
|
---|
| 4602 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4603 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[25169] | 4604 | if test "$cross_compiling" = yes; then :
|
---|
[10191] | 4605 | :
|
---|
| 4606 | else
|
---|
[25169] | 4607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4608 | /* end confdefs.h. */
|
---|
| 4609 | #include <ctype.h>
|
---|
[23356] | 4610 | #include <stdlib.h>
|
---|
[10191] | 4611 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4612 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4613 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4614 | #else
|
---|
| 4615 | # define ISLOWER(c) \
|
---|
| 4616 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4617 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4618 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4619 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4620 | #endif
|
---|
| 4621 |
|
---|
| 4622 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4623 | int
|
---|
| 4624 | main ()
|
---|
| 4625 | {
|
---|
| 4626 | int i;
|
---|
| 4627 | for (i = 0; i < 256; i++)
|
---|
| 4628 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4629 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 4630 | return 2;
|
---|
| 4631 | return 0;
|
---|
[10191] | 4632 | }
|
---|
| 4633 | _ACEOF
|
---|
[25169] | 4634 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 4635 |
|
---|
[25148] | 4636 | else
|
---|
[25169] | 4637 | ac_cv_header_stdc=no
|
---|
[10191] | 4638 | fi
|
---|
[25169] | 4639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 4640 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10191] | 4641 | fi
|
---|
[23356] | 4642 |
|
---|
[10191] | 4643 | fi
|
---|
| 4644 | fi
|
---|
[25169] | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
[23356] | 4646 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[10191] | 4647 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4648 |
|
---|
[25169] | 4649 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[10191] | 4650 |
|
---|
| 4651 | fi
|
---|
| 4652 |
|
---|
| 4653 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
[23356] | 4654 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4655 | inttypes.h stdint.h unistd.h
|
---|
[25169] | 4656 | do :
|
---|
| 4657 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4658 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 4659 | "
|
---|
| 4660 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[23356] | 4661 | cat >>confdefs.h <<_ACEOF
|
---|
| 4662 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4663 | _ACEOF
|
---|
[10191] | 4664 |
|
---|
[23356] | 4665 | fi
|
---|
[10191] | 4666 |
|
---|
[23356] | 4667 | done
|
---|
[10191] | 4668 |
|
---|
| 4669 |
|
---|
| 4670 |
|
---|
[25169] | 4671 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
| 4672 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
[23356] | 4673 | MINIX=yes
|
---|
| 4674 | else
|
---|
| 4675 | MINIX=
|
---|
| 4676 | fi
|
---|
[10191] | 4677 |
|
---|
| 4678 |
|
---|
[23356] | 4679 | if test "$MINIX" = yes; then
|
---|
[10191] | 4680 |
|
---|
[25169] | 4681 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
[10191] | 4682 |
|
---|
[23356] | 4683 |
|
---|
[25169] | 4684 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
[23356] | 4685 |
|
---|
| 4686 |
|
---|
[25169] | 4687 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
[23356] | 4688 |
|
---|
| 4689 | fi
|
---|
| 4690 |
|
---|
| 4691 |
|
---|
[25169] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
[23356] | 4693 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
[25169] | 4694 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
[23356] | 4695 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 4696 | else
|
---|
[25169] | 4697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4698 | /* end confdefs.h. */
|
---|
| 4699 |
|
---|
[23356] | 4700 | # define __EXTENSIONS__ 1
|
---|
| 4701 | $ac_includes_default
|
---|
| 4702 | int
|
---|
| 4703 | main ()
|
---|
| 4704 | {
|
---|
| 4705 |
|
---|
| 4706 | ;
|
---|
| 4707 | return 0;
|
---|
| 4708 | }
|
---|
[10191] | 4709 | _ACEOF
|
---|
[25169] | 4710 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 4711 | ac_cv_safe_to_define___extensions__=yes
|
---|
[10191] | 4712 | else
|
---|
[25169] | 4713 | ac_cv_safe_to_define___extensions__=no
|
---|
[10191] | 4714 | fi
|
---|
[23356] | 4715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10191] | 4716 | fi
|
---|
[25169] | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
[23356] | 4718 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
| 4719 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
[25169] | 4720 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
[10191] | 4721 |
|
---|
[25169] | 4722 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
[10191] | 4723 |
|
---|
[25169] | 4724 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
[10191] | 4725 |
|
---|
[25169] | 4726 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
[10191] | 4727 |
|
---|
[25169] | 4728 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
[23356] | 4729 |
|
---|
| 4730 |
|
---|
[25169] | 4731 |
|
---|
| 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
[23356] | 4733 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
[25169] | 4734 | if ${ac_cv_search_strerror+:} false; then :
|
---|
[23356] | 4735 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4736 | else
|
---|
[23356] | 4737 | ac_func_search_save_LIBS=$LIBS
|
---|
[25169] | 4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4739 | /* end confdefs.h. */
|
---|
| 4740 |
|
---|
[23356] | 4741 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4742 | Use char because int might match the return type of a GCC
|
---|
| 4743 | builtin and then its argument prototype would still apply. */
|
---|
| 4744 | #ifdef __cplusplus
|
---|
| 4745 | extern "C"
|
---|
| 4746 | #endif
|
---|
| 4747 | char strerror ();
|
---|
| 4748 | int
|
---|
| 4749 | main ()
|
---|
| 4750 | {
|
---|
| 4751 | return strerror ();
|
---|
| 4752 | ;
|
---|
| 4753 | return 0;
|
---|
| 4754 | }
|
---|
[10191] | 4755 | _ACEOF
|
---|
[23356] | 4756 | for ac_lib in '' cposix; do
|
---|
| 4757 | if test -z "$ac_lib"; then
|
---|
| 4758 | ac_res="none required"
|
---|
[3745] | 4759 | else
|
---|
[23356] | 4760 | ac_res=-l$ac_lib
|
---|
| 4761 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[3745] | 4762 | fi
|
---|
[25169] | 4763 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 4764 | ac_cv_search_strerror=$ac_res
|
---|
[3745] | 4765 | fi
|
---|
[25169] | 4766 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4767 | conftest$ac_exeext
|
---|
| 4768 | if ${ac_cv_search_strerror+:} false; then :
|
---|
[23356] | 4769 | break
|
---|
[3745] | 4770 | fi
|
---|
[23356] | 4771 | done
|
---|
[25169] | 4772 | if ${ac_cv_search_strerror+:} false; then :
|
---|
| 4773 |
|
---|
[10191] | 4774 | else
|
---|
[23356] | 4775 | ac_cv_search_strerror=no
|
---|
[3745] | 4776 | fi
|
---|
[23356] | 4777 | rm conftest.$ac_ext
|
---|
| 4778 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4779 | fi
|
---|
[25169] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
[23356] | 4781 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
| 4782 | ac_res=$ac_cv_search_strerror
|
---|
[25169] | 4783 | if test "$ac_res" != no; then :
|
---|
[23356] | 4784 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[10191] | 4785 |
|
---|
| 4786 | fi
|
---|
[3745] | 4787 |
|
---|
[10191] | 4788 |
|
---|
[25169] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[23356] | 4790 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
[25169] | 4791 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
[23356] | 4792 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4793 | else
|
---|
| 4794 | ac_cv_prog_cc_stdc=no
|
---|
| 4795 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4796 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4797 | # breaks some systems' header files.
|
---|
| 4798 | # AIX -qlanglvl=ansi
|
---|
| 4799 | # Ultrix and OSF/1 -std1
|
---|
| 4800 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4801 | # SVR4 -Xc
|
---|
| 4802 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4803 | do
|
---|
| 4804 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[25169] | 4805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4806 | /* end confdefs.h. */
|
---|
[3745] | 4807 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4808 | choke me
|
---|
| 4809 | #endif
|
---|
| 4810 |
|
---|
| 4811 | int
|
---|
| 4812 | main ()
|
---|
| 4813 | {
|
---|
| 4814 | int test (int i, double x);
|
---|
| 4815 | struct s1 {int (*f) (int a);};
|
---|
| 4816 | struct s2 {int (*f) (double a);};
|
---|
| 4817 | ;
|
---|
| 4818 | return 0;
|
---|
| 4819 | }
|
---|
| 4820 | _ACEOF
|
---|
[25169] | 4821 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4822 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4823 | fi
|
---|
[23356] | 4824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4825 | done
|
---|
| 4826 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4827 |
|
---|
| 4828 | fi
|
---|
| 4829 |
|
---|
[25169] | 4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[23356] | 4831 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
[3745] | 4832 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4833 | x|xno) ;;
|
---|
| 4834 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4835 | esac
|
---|
| 4836 |
|
---|
[10191] | 4837 |
|
---|
[25169] | 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
[23356] | 4839 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
[3745] | 4840 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[25169] | 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 4842 | $as_echo "yes" >&6; }
|
---|
[25169] | 4843 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
[3745] | 4844 |
|
---|
| 4845 | U= ANSI2KNR=
|
---|
| 4846 | else
|
---|
[25169] | 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4848 | $as_echo "no" >&6; }
|
---|
[3745] | 4849 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4850 | fi
|
---|
| 4851 |
|
---|
[25169] | 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
[23356] | 4853 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
[25169] | 4854 | if ${ac_cv_c_const+:} false; then :
|
---|
[23356] | 4855 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4856 | else
|
---|
[25169] | 4857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4858 | /* end confdefs.h. */
|
---|
[3745] | 4859 |
|
---|
| 4860 | int
|
---|
| 4861 | main ()
|
---|
| 4862 | {
|
---|
| 4863 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4864 | #ifndef __cplusplus
|
---|
| 4865 | /* Ultrix mips cc rejects this. */
|
---|
| 4866 | typedef int charset[2];
|
---|
[23356] | 4867 | const charset cs;
|
---|
[3745] | 4868 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[23356] | 4869 | char const *const *pcpcc;
|
---|
| 4870 | char **ppc;
|
---|
[3745] | 4871 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4872 | struct point {int x, y;};
|
---|
| 4873 | static struct point const zero = {0,0};
|
---|
| 4874 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4875 | It does not let you subtract one const X* pointer from another in
|
---|
| 4876 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4877 | expression */
|
---|
| 4878 | const char *g = "string";
|
---|
[23356] | 4879 | pcpcc = &g + (g ? g-g : 0);
|
---|
[3745] | 4880 | /* HPUX 7.0 cc rejects these. */
|
---|
[23356] | 4881 | ++pcpcc;
|
---|
| 4882 | ppc = (char**) pcpcc;
|
---|
| 4883 | pcpcc = (char const *const *) ppc;
|
---|
[3745] | 4884 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4885 | char *t;
|
---|
| 4886 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4887 |
|
---|
| 4888 | *t++ = 0;
|
---|
[23356] | 4889 | if (s) return 0;
|
---|
[3745] | 4890 | }
|
---|
| 4891 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4892 | int x[] = {25, 17};
|
---|
| 4893 | const int *foo = &x[0];
|
---|
| 4894 | ++foo;
|
---|
| 4895 | }
|
---|
| 4896 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4897 | typedef const int *iptr;
|
---|
| 4898 | iptr p = 0;
|
---|
| 4899 | ++p;
|
---|
| 4900 | }
|
---|
| 4901 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4902 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4903 | struct s { int j; const int *ap[3]; };
|
---|
| 4904 | struct s *b; b->j = 5;
|
---|
| 4905 | }
|
---|
| 4906 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4907 | const int foo = 10;
|
---|
[23356] | 4908 | if (!foo) return 0;
|
---|
[3745] | 4909 | }
|
---|
[23356] | 4910 | return !cs[0] && !zero.x;
|
---|
[3745] | 4911 | #endif
|
---|
| 4912 |
|
---|
| 4913 | ;
|
---|
| 4914 | return 0;
|
---|
| 4915 | }
|
---|
| 4916 | _ACEOF
|
---|
[25169] | 4917 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4918 | ac_cv_c_const=yes
|
---|
| 4919 | else
|
---|
[25169] | 4920 | ac_cv_c_const=no
|
---|
[3745] | 4921 | fi
|
---|
[23356] | 4922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4923 | fi
|
---|
[25169] | 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
[23356] | 4925 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
[3745] | 4926 | if test $ac_cv_c_const = no; then
|
---|
| 4927 |
|
---|
[25169] | 4928 | $as_echo "#define const /**/" >>confdefs.h
|
---|
[3745] | 4929 |
|
---|
| 4930 | fi
|
---|
| 4931 |
|
---|
[25169] | 4932 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
| 4933 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
[10191] | 4934 |
|
---|
[3745] | 4935 | else
|
---|
| 4936 |
|
---|
[10191] | 4937 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 4938 | #define off_t long int
|
---|
[10191] | 4939 | _ACEOF
|
---|
[3745] | 4940 |
|
---|
| 4941 | fi
|
---|
| 4942 |
|
---|
[25169] | 4943 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 4944 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
[10191] | 4945 |
|
---|
[3745] | 4946 | else
|
---|
| 4947 |
|
---|
[10191] | 4948 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 4949 | #define size_t unsigned int
|
---|
[10191] | 4950 | _ACEOF
|
---|
[3745] | 4951 |
|
---|
| 4952 | fi
|
---|
| 4953 |
|
---|
[25169] | 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[23356] | 4955 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
[25169] | 4956 | if ${ac_cv_header_time+:} false; then :
|
---|
[23356] | 4957 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4958 | else
|
---|
[25169] | 4959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4960 | /* end confdefs.h. */
|
---|
[3745] | 4961 | #include <sys/types.h>
|
---|
| 4962 | #include <sys/time.h>
|
---|
| 4963 | #include <time.h>
|
---|
| 4964 |
|
---|
| 4965 | int
|
---|
| 4966 | main ()
|
---|
| 4967 | {
|
---|
[10191] | 4968 | if ((struct tm *) 0)
|
---|
| 4969 | return 0;
|
---|
[3745] | 4970 | ;
|
---|
| 4971 | return 0;
|
---|
| 4972 | }
|
---|
| 4973 | _ACEOF
|
---|
[25169] | 4974 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4975 | ac_cv_header_time=yes
|
---|
| 4976 | else
|
---|
[25169] | 4977 | ac_cv_header_time=no
|
---|
[3745] | 4978 | fi
|
---|
[23356] | 4979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4980 | fi
|
---|
[25169] | 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
[23356] | 4982 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
[3745] | 4983 | if test $ac_cv_header_time = yes; then
|
---|
| 4984 |
|
---|
[25169] | 4985 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
[3745] | 4986 |
|
---|
| 4987 | fi
|
---|
| 4988 |
|
---|
[25169] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[23356] | 4990 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
[25169] | 4991 | if ${ac_cv_struct_tm+:} false; then :
|
---|
[23356] | 4992 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4993 | else
|
---|
[25169] | 4994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4995 | /* end confdefs.h. */
|
---|
[3745] | 4996 | #include <sys/types.h>
|
---|
| 4997 | #include <time.h>
|
---|
| 4998 |
|
---|
| 4999 | int
|
---|
| 5000 | main ()
|
---|
| 5001 | {
|
---|
[23356] | 5002 | struct tm tm;
|
---|
| 5003 | int *p = &tm.tm_sec;
|
---|
| 5004 | return !p;
|
---|
[3745] | 5005 | ;
|
---|
| 5006 | return 0;
|
---|
| 5007 | }
|
---|
| 5008 | _ACEOF
|
---|
[25169] | 5009 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 5010 | ac_cv_struct_tm=time.h
|
---|
| 5011 | else
|
---|
[25169] | 5012 | ac_cv_struct_tm=sys/time.h
|
---|
[3745] | 5013 | fi
|
---|
[23356] | 5014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5015 | fi
|
---|
[25169] | 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
[23356] | 5017 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
[3745] | 5018 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 5019 |
|
---|
[25169] | 5020 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
[3745] | 5021 |
|
---|
| 5022 | fi
|
---|
| 5023 |
|
---|
[10191] | 5024 |
|
---|
[3745] | 5025 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[25169] | 5026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5027 | /* end confdefs.h. */
|
---|
[3745] | 5028 | #include <stdio.h>
|
---|
| 5029 |
|
---|
| 5030 | int
|
---|
| 5031 | main ()
|
---|
| 5032 | {
|
---|
| 5033 | FILE *rubbish = popen("yes", "r");
|
---|
| 5034 | ;
|
---|
| 5035 | return 0;
|
---|
| 5036 | }
|
---|
| 5037 | _ACEOF
|
---|
[25169] | 5038 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5039 |
|
---|
[25148] | 5040 | else
|
---|
[25169] | 5041 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3745] | 5042 | fi
|
---|
[23356] | 5043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5044 | fi
|
---|
| 5045 |
|
---|
[10191] | 5046 |
|
---|
[25169] | 5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
[23356] | 5048 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
[25169] | 5049 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
[23356] | 5050 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5051 | else
|
---|
| 5052 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5053 | LIBS="-lm $LIBS"
|
---|
[25169] | 5054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5055 | /* end confdefs.h. */
|
---|
[3745] | 5056 |
|
---|
[10191] | 5057 |
|
---|
[3745] | 5058 | int
|
---|
| 5059 | main ()
|
---|
| 5060 | {
|
---|
[23356] | 5061 | return main ();
|
---|
[3745] | 5062 | ;
|
---|
| 5063 | return 0;
|
---|
| 5064 | }
|
---|
| 5065 | _ACEOF
|
---|
[25169] | 5066 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3745] | 5067 | ac_cv_lib_m_main=yes
|
---|
| 5068 | else
|
---|
[25169] | 5069 | ac_cv_lib_m_main=no
|
---|
[3745] | 5070 | fi
|
---|
[25169] | 5071 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5072 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5073 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5074 | fi
|
---|
[25169] | 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
[23356] | 5076 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
[25169] | 5077 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
[10191] | 5078 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5079 | #define HAVE_LIBM 1
|
---|
[10191] | 5080 | _ACEOF
|
---|
[3745] | 5081 |
|
---|
| 5082 | LIBS="-lm $LIBS"
|
---|
| 5083 |
|
---|
| 5084 | fi
|
---|
| 5085 |
|
---|
[10191] | 5086 |
|
---|
[3745] | 5087 | ac_header_dirent=no
|
---|
| 5088 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[23356] | 5089 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[25169] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
[23356] | 5091 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
[25169] | 5092 | if eval \${$as_ac_Header+:} false; then :
|
---|
[23356] | 5093 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5094 | else
|
---|
[25169] | 5095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5096 | /* end confdefs.h. */
|
---|
[3745] | 5097 | #include <sys/types.h>
|
---|
| 5098 | #include <$ac_hdr>
|
---|
| 5099 |
|
---|
| 5100 | int
|
---|
| 5101 | main ()
|
---|
| 5102 | {
|
---|
[10191] | 5103 | if ((DIR *) 0)
|
---|
| 5104 | return 0;
|
---|
[3745] | 5105 | ;
|
---|
| 5106 | return 0;
|
---|
| 5107 | }
|
---|
| 5108 | _ACEOF
|
---|
[25169] | 5109 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10191] | 5110 | eval "$as_ac_Header=yes"
|
---|
[3745] | 5111 | else
|
---|
[25169] | 5112 | eval "$as_ac_Header=no"
|
---|
[3745] | 5113 | fi
|
---|
[23356] | 5114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5115 | fi
|
---|
[25169] | 5116 | eval ac_res=\$$as_ac_Header
|
---|
| 5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
[23356] | 5118 | $as_echo "$ac_res" >&6; }
|
---|
[25169] | 5119 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[10191] | 5120 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5121 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[10191] | 5122 | _ACEOF
|
---|
[3745] | 5123 |
|
---|
| 5124 | ac_header_dirent=$ac_hdr; break
|
---|
| 5125 | fi
|
---|
| 5126 |
|
---|
| 5127 | done
|
---|
| 5128 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5129 | if test $ac_header_dirent = dirent.h; then
|
---|
[25169] | 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
[23356] | 5131 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
[25169] | 5132 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5133 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5134 | else
|
---|
[10191] | 5135 | ac_func_search_save_LIBS=$LIBS
|
---|
[25169] | 5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5137 | /* end confdefs.h. */
|
---|
[3745] | 5138 |
|
---|
[23356] | 5139 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5140 | Use char because int might match the return type of a GCC
|
---|
| 5141 | builtin and then its argument prototype would still apply. */
|
---|
[3745] | 5142 | #ifdef __cplusplus
|
---|
| 5143 | extern "C"
|
---|
| 5144 | #endif
|
---|
| 5145 | char opendir ();
|
---|
| 5146 | int
|
---|
| 5147 | main ()
|
---|
| 5148 | {
|
---|
[23356] | 5149 | return opendir ();
|
---|
[3745] | 5150 | ;
|
---|
| 5151 | return 0;
|
---|
| 5152 | }
|
---|
| 5153 | _ACEOF
|
---|
[23356] | 5154 | for ac_lib in '' dir; do
|
---|
| 5155 | if test -z "$ac_lib"; then
|
---|
| 5156 | ac_res="none required"
|
---|
| 5157 | else
|
---|
| 5158 | ac_res=-l$ac_lib
|
---|
| 5159 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5160 | fi
|
---|
[25169] | 5161 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5162 | ac_cv_search_opendir=$ac_res
|
---|
[3745] | 5163 | fi
|
---|
[25169] | 5164 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5165 | conftest$ac_exeext
|
---|
| 5166 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5167 | break
|
---|
| 5168 | fi
|
---|
| 5169 | done
|
---|
[25169] | 5170 | if ${ac_cv_search_opendir+:} false; then :
|
---|
| 5171 |
|
---|
[10191] | 5172 | else
|
---|
[23356] | 5173 | ac_cv_search_opendir=no
|
---|
[3745] | 5174 | fi
|
---|
[23356] | 5175 | rm conftest.$ac_ext
|
---|
[10191] | 5176 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5177 | fi
|
---|
[25169] | 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
[23356] | 5179 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5180 | ac_res=$ac_cv_search_opendir
|
---|
[25169] | 5181 | if test "$ac_res" != no; then :
|
---|
[23356] | 5182 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3745] | 5183 |
|
---|
[10191] | 5184 | fi
|
---|
| 5185 |
|
---|
[3745] | 5186 | else
|
---|
[25169] | 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
[23356] | 5188 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
[25169] | 5189 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5190 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5191 | else
|
---|
[10191] | 5192 | ac_func_search_save_LIBS=$LIBS
|
---|
[25169] | 5193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5194 | /* end confdefs.h. */
|
---|
[3745] | 5195 |
|
---|
[23356] | 5196 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5197 | Use char because int might match the return type of a GCC
|
---|
| 5198 | builtin and then its argument prototype would still apply. */
|
---|
[3745] | 5199 | #ifdef __cplusplus
|
---|
| 5200 | extern "C"
|
---|
| 5201 | #endif
|
---|
| 5202 | char opendir ();
|
---|
| 5203 | int
|
---|
| 5204 | main ()
|
---|
| 5205 | {
|
---|
[23356] | 5206 | return opendir ();
|
---|
[3745] | 5207 | ;
|
---|
| 5208 | return 0;
|
---|
| 5209 | }
|
---|
| 5210 | _ACEOF
|
---|
[23356] | 5211 | for ac_lib in '' x; do
|
---|
| 5212 | if test -z "$ac_lib"; then
|
---|
| 5213 | ac_res="none required"
|
---|
| 5214 | else
|
---|
| 5215 | ac_res=-l$ac_lib
|
---|
| 5216 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5217 | fi
|
---|
[25169] | 5218 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5219 | ac_cv_search_opendir=$ac_res
|
---|
[3745] | 5220 | fi
|
---|
[25169] | 5221 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5222 | conftest$ac_exeext
|
---|
| 5223 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5224 | break
|
---|
| 5225 | fi
|
---|
| 5226 | done
|
---|
[25169] | 5227 | if ${ac_cv_search_opendir+:} false; then :
|
---|
| 5228 |
|
---|
[10191] | 5229 | else
|
---|
[23356] | 5230 | ac_cv_search_opendir=no
|
---|
[3745] | 5231 | fi
|
---|
[23356] | 5232 | rm conftest.$ac_ext
|
---|
[10191] | 5233 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5234 | fi
|
---|
[25169] | 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
[23356] | 5236 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5237 | ac_res=$ac_cv_search_opendir
|
---|
[25169] | 5238 | if test "$ac_res" != no; then :
|
---|
[23356] | 5239 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3745] | 5240 |
|
---|
| 5241 | fi
|
---|
| 5242 |
|
---|
[10191] | 5243 | fi
|
---|
| 5244 |
|
---|
[25169] | 5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
[23356] | 5246 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
[25169] | 5247 | if ${ac_cv_header_stdc+:} false; then :
|
---|
[23356] | 5248 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5249 | else
|
---|
[25169] | 5250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5251 | /* end confdefs.h. */
|
---|
[3745] | 5252 | #include <stdlib.h>
|
---|
| 5253 | #include <stdarg.h>
|
---|
| 5254 | #include <string.h>
|
---|
| 5255 | #include <float.h>
|
---|
| 5256 |
|
---|
[10191] | 5257 | int
|
---|
| 5258 | main ()
|
---|
| 5259 | {
|
---|
| 5260 |
|
---|
| 5261 | ;
|
---|
| 5262 | return 0;
|
---|
| 5263 | }
|
---|
[3745] | 5264 | _ACEOF
|
---|
[25169] | 5265 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 5266 | ac_cv_header_stdc=yes
|
---|
| 5267 | else
|
---|
[25169] | 5268 | ac_cv_header_stdc=no
|
---|
[3745] | 5269 | fi
|
---|
[23356] | 5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5271 |
|
---|
| 5272 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5273 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[25169] | 5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5275 | /* end confdefs.h. */
|
---|
[3745] | 5276 | #include <string.h>
|
---|
| 5277 |
|
---|
| 5278 | _ACEOF
|
---|
| 5279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5280 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5281 |
|
---|
[3745] | 5282 | else
|
---|
| 5283 | ac_cv_header_stdc=no
|
---|
| 5284 | fi
|
---|
| 5285 | rm -f conftest*
|
---|
| 5286 |
|
---|
| 5287 | fi
|
---|
| 5288 |
|
---|
| 5289 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5290 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[25169] | 5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5292 | /* end confdefs.h. */
|
---|
[3745] | 5293 | #include <stdlib.h>
|
---|
| 5294 |
|
---|
| 5295 | _ACEOF
|
---|
| 5296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5297 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5298 |
|
---|
[3745] | 5299 | else
|
---|
| 5300 | ac_cv_header_stdc=no
|
---|
| 5301 | fi
|
---|
| 5302 | rm -f conftest*
|
---|
| 5303 |
|
---|
| 5304 | fi
|
---|
| 5305 |
|
---|
| 5306 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5307 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[25169] | 5308 | if test "$cross_compiling" = yes; then :
|
---|
[3745] | 5309 | :
|
---|
| 5310 | else
|
---|
[25169] | 5311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5312 | /* end confdefs.h. */
|
---|
[3745] | 5313 | #include <ctype.h>
|
---|
[23356] | 5314 | #include <stdlib.h>
|
---|
[3745] | 5315 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5316 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5317 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5318 | #else
|
---|
[10191] | 5319 | # define ISLOWER(c) \
|
---|
| 5320 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5321 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5322 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[3745] | 5323 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5324 | #endif
|
---|
| 5325 |
|
---|
| 5326 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5327 | int
|
---|
| 5328 | main ()
|
---|
| 5329 | {
|
---|
| 5330 | int i;
|
---|
| 5331 | for (i = 0; i < 256; i++)
|
---|
| 5332 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10191] | 5333 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 5334 | return 2;
|
---|
| 5335 | return 0;
|
---|
[3745] | 5336 | }
|
---|
| 5337 | _ACEOF
|
---|
[25169] | 5338 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5339 |
|
---|
[25148] | 5340 | else
|
---|
[25169] | 5341 | ac_cv_header_stdc=no
|
---|
[3745] | 5342 | fi
|
---|
[25169] | 5343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5344 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3745] | 5345 | fi
|
---|
[23356] | 5346 |
|
---|
[3745] | 5347 | fi
|
---|
| 5348 | fi
|
---|
[25169] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
[23356] | 5350 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[3745] | 5351 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5352 |
|
---|
[25169] | 5353 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[3745] | 5354 |
|
---|
| 5355 | fi
|
---|
| 5356 |
|
---|
| 5357 | for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
[25169] | 5358 | do :
|
---|
| 5359 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5360 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
| 5361 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[10191] | 5362 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5363 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[10191] | 5364 | _ACEOF
|
---|
| 5365 |
|
---|
| 5366 | fi
|
---|
| 5367 |
|
---|
[3745] | 5368 | done
|
---|
| 5369 |
|
---|
[25169] | 5370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5371 | /* end confdefs.h. */
|
---|
[3745] | 5372 | #include <stdio.h>
|
---|
| 5373 |
|
---|
| 5374 | _ACEOF
|
---|
| 5375 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5376 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
| 5377 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
[3745] | 5378 |
|
---|
| 5379 | fi
|
---|
| 5380 | rm -f conftest*
|
---|
| 5381 |
|
---|
[25169] | 5382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5383 | /* end confdefs.h. */
|
---|
[3745] | 5384 | #include <stdio.h>
|
---|
| 5385 |
|
---|
| 5386 | _ACEOF
|
---|
| 5387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5388 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
| 5389 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
[3745] | 5390 |
|
---|
| 5391 | fi
|
---|
| 5392 | rm -f conftest*
|
---|
| 5393 |
|
---|
[25169] | 5394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5395 | /* end confdefs.h. */
|
---|
[3745] | 5396 | #include <sys/procfs.h>
|
---|
| 5397 |
|
---|
| 5398 | _ACEOF
|
---|
| 5399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5400 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
| 5401 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
[3745] | 5402 |
|
---|
| 5403 | fi
|
---|
| 5404 | rm -f conftest*
|
---|
| 5405 |
|
---|
[10191] | 5406 |
|
---|
[3745] | 5407 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5408 | # for constant arguments. Useless!
|
---|
[25169] | 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
[23356] | 5410 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
[25169] | 5411 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
[23356] | 5412 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5413 | else
|
---|
[25169] | 5414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5415 | /* end confdefs.h. */
|
---|
[3745] | 5416 | #include <alloca.h>
|
---|
| 5417 | int
|
---|
| 5418 | main ()
|
---|
| 5419 | {
|
---|
| 5420 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[23356] | 5421 | if (p) return 0;
|
---|
[3745] | 5422 | ;
|
---|
| 5423 | return 0;
|
---|
| 5424 | }
|
---|
| 5425 | _ACEOF
|
---|
[25169] | 5426 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3745] | 5427 | ac_cv_working_alloca_h=yes
|
---|
| 5428 | else
|
---|
[25169] | 5429 | ac_cv_working_alloca_h=no
|
---|
[3745] | 5430 | fi
|
---|
[25169] | 5431 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5432 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5433 | fi
|
---|
[25169] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
[23356] | 5435 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
[3745] | 5436 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5437 |
|
---|
[25169] | 5438 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
[3745] | 5439 |
|
---|
| 5440 | fi
|
---|
| 5441 |
|
---|
[25169] | 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
[23356] | 5443 | $as_echo_n "checking for alloca... " >&6; }
|
---|
[25169] | 5444 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
[23356] | 5445 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5446 | else
|
---|
[25169] | 5447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5448 | /* end confdefs.h. */
|
---|
[3745] | 5449 | #ifdef __GNUC__
|
---|
| 5450 | # define alloca __builtin_alloca
|
---|
| 5451 | #else
|
---|
| 5452 | # ifdef _MSC_VER
|
---|
| 5453 | # include <malloc.h>
|
---|
| 5454 | # define alloca _alloca
|
---|
| 5455 | # else
|
---|
[23356] | 5456 | # ifdef HAVE_ALLOCA_H
|
---|
[3745] | 5457 | # include <alloca.h>
|
---|
| 5458 | # else
|
---|
| 5459 | # ifdef _AIX
|
---|
| 5460 | #pragma alloca
|
---|
| 5461 | # else
|
---|
| 5462 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
[25169] | 5463 | void *alloca (size_t);
|
---|
[3745] | 5464 | # endif
|
---|
| 5465 | # endif
|
---|
| 5466 | # endif
|
---|
| 5467 | # endif
|
---|
| 5468 | #endif
|
---|
| 5469 |
|
---|
| 5470 | int
|
---|
| 5471 | main ()
|
---|
| 5472 | {
|
---|
| 5473 | char *p = (char *) alloca (1);
|
---|
[23356] | 5474 | if (p) return 0;
|
---|
[3745] | 5475 | ;
|
---|
| 5476 | return 0;
|
---|
| 5477 | }
|
---|
| 5478 | _ACEOF
|
---|
[25169] | 5479 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3745] | 5480 | ac_cv_func_alloca_works=yes
|
---|
| 5481 | else
|
---|
[25169] | 5482 | ac_cv_func_alloca_works=no
|
---|
[3745] | 5483 | fi
|
---|
[25169] | 5484 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5485 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5486 | fi
|
---|
[25169] | 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
[23356] | 5488 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
[3745] | 5489 |
|
---|
| 5490 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5491 |
|
---|
[25169] | 5492 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
[3745] | 5493 |
|
---|
| 5494 | else
|
---|
| 5495 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5496 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5497 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5498 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5499 |
|
---|
[23356] | 5500 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[3745] | 5501 |
|
---|
[25169] | 5502 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
[3745] | 5503 |
|
---|
[10191] | 5504 |
|
---|
[25169] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[23356] | 5506 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
[25169] | 5507 | if ${ac_cv_os_cray+:} false; then :
|
---|
[23356] | 5508 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5509 | else
|
---|
[25169] | 5510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5511 | /* end confdefs.h. */
|
---|
[23356] | 5512 | #if defined CRAY && ! defined CRAY2
|
---|
[3745] | 5513 | webecray
|
---|
| 5514 | #else
|
---|
| 5515 | wenotbecray
|
---|
| 5516 | #endif
|
---|
| 5517 |
|
---|
| 5518 | _ACEOF
|
---|
| 5519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5520 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
[3745] | 5521 | ac_cv_os_cray=yes
|
---|
| 5522 | else
|
---|
| 5523 | ac_cv_os_cray=no
|
---|
| 5524 | fi
|
---|
| 5525 | rm -f conftest*
|
---|
| 5526 |
|
---|
| 5527 | fi
|
---|
[25169] | 5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
[23356] | 5529 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
[3745] | 5530 | if test $ac_cv_os_cray = yes; then
|
---|
| 5531 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[23356] | 5532 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[25169] | 5533 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5534 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
[10191] | 5535 |
|
---|
| 5536 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5537 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10191] | 5538 | _ACEOF
|
---|
[3745] | 5539 |
|
---|
| 5540 | break
|
---|
| 5541 | fi
|
---|
| 5542 |
|
---|
| 5543 | done
|
---|
| 5544 | fi
|
---|
| 5545 |
|
---|
[25169] | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
[23356] | 5547 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
[25169] | 5548 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
[23356] | 5549 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5550 | else
|
---|
[25169] | 5551 | if test "$cross_compiling" = yes; then :
|
---|
[3745] | 5552 | ac_cv_c_stack_direction=0
|
---|
| 5553 | else
|
---|
[25169] | 5554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5555 | /* end confdefs.h. */
|
---|
[23356] | 5556 | $ac_includes_default
|
---|
[3745] | 5557 | int
|
---|
| 5558 | find_stack_direction ()
|
---|
| 5559 | {
|
---|
| 5560 | static char *addr = 0;
|
---|
| 5561 | auto char dummy;
|
---|
| 5562 | if (addr == 0)
|
---|
| 5563 | {
|
---|
| 5564 | addr = &dummy;
|
---|
| 5565 | return find_stack_direction ();
|
---|
| 5566 | }
|
---|
| 5567 | else
|
---|
| 5568 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5569 | }
|
---|
| 5570 |
|
---|
| 5571 | int
|
---|
| 5572 | main ()
|
---|
| 5573 | {
|
---|
[23356] | 5574 | return find_stack_direction () < 0;
|
---|
[3745] | 5575 | }
|
---|
| 5576 | _ACEOF
|
---|
[25169] | 5577 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[3745] | 5578 | ac_cv_c_stack_direction=1
|
---|
| 5579 | else
|
---|
[25169] | 5580 | ac_cv_c_stack_direction=-1
|
---|
[3745] | 5581 | fi
|
---|
[25169] | 5582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5583 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3745] | 5584 | fi
|
---|
[23356] | 5585 |
|
---|
[3745] | 5586 | fi
|
---|
[25169] | 5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
[23356] | 5588 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
[10191] | 5589 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5590 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10191] | 5591 | _ACEOF
|
---|
[3745] | 5592 |
|
---|
[10191] | 5593 |
|
---|
[3745] | 5594 | fi
|
---|
| 5595 |
|
---|
| 5596 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[25169] | 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
[23356] | 5598 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
[25169] | 5599 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
[23356] | 5600 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5601 | else
|
---|
| 5602 | ac_pattern="Autoconf.*'x'"
|
---|
[25169] | 5603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5604 | /* end confdefs.h. */
|
---|
[3745] | 5605 | #include <sgtty.h>
|
---|
| 5606 | Autoconf TIOCGETP
|
---|
| 5607 | _ACEOF
|
---|
| 5608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5609 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3745] | 5610 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5611 | else
|
---|
| 5612 | ac_cv_prog_gcc_traditional=no
|
---|
| 5613 | fi
|
---|
| 5614 | rm -f conftest*
|
---|
| 5615 |
|
---|
[10191] | 5616 |
|
---|
[3745] | 5617 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[25169] | 5618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5619 | /* end confdefs.h. */
|
---|
[3745] | 5620 | #include <termio.h>
|
---|
| 5621 | Autoconf TCGETA
|
---|
| 5622 | _ACEOF
|
---|
| 5623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25169] | 5624 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3745] | 5625 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5626 | fi
|
---|
| 5627 | rm -f conftest*
|
---|
| 5628 |
|
---|
| 5629 | fi
|
---|
| 5630 | fi
|
---|
[25169] | 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[23356] | 5632 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[3745] | 5633 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5634 | CC="$CC -traditional"
|
---|
| 5635 | fi
|
---|
| 5636 | fi
|
---|
| 5637 |
|
---|
[25169] | 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
[23356] | 5639 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
[25169] | 5640 | if ${ac_cv_type_signal+:} false; then :
|
---|
[23356] | 5641 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5642 | else
|
---|
[25169] | 5643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5644 | /* end confdefs.h. */
|
---|
[3745] | 5645 | #include <sys/types.h>
|
---|
| 5646 | #include <signal.h>
|
---|
| 5647 |
|
---|
| 5648 | int
|
---|
| 5649 | main ()
|
---|
| 5650 | {
|
---|
[23356] | 5651 | return *(signal (0, 0)) (0) == 1;
|
---|
[3745] | 5652 | ;
|
---|
| 5653 | return 0;
|
---|
| 5654 | }
|
---|
| 5655 | _ACEOF
|
---|
[25169] | 5656 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 5657 | ac_cv_type_signal=int
|
---|
| 5658 | else
|
---|
[25169] | 5659 | ac_cv_type_signal=void
|
---|
[3745] | 5660 | fi
|
---|
[23356] | 5661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5662 | fi
|
---|
[25169] | 5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
[23356] | 5664 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
[3745] | 5665 |
|
---|
[10191] | 5666 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5667 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10191] | 5668 | _ACEOF
|
---|
[3745] | 5669 |
|
---|
[10191] | 5670 |
|
---|
[3745] | 5671 | for ac_func in vprintf
|
---|
[25169] | 5672 | do :
|
---|
| 5673 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
| 5674 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
[10191] | 5675 | cat >>confdefs.h <<_ACEOF
|
---|
[25169] | 5676 | #define HAVE_VPRINTF 1
|
---|
[10191] | 5677 | _ACEOF
|
---|
[3745] | 5678 |
|
---|
[25169] | 5679 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
| 5680 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
[10191] | 5681 |
|
---|
[25169] | 5682 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
[10191] | 5683 |
|
---|
[3745] | 5684 | fi
|
---|
| 5685 |
|
---|
| 5686 | fi
|
---|
| 5687 | done
|
---|
| 5688 |
|
---|
[10191] | 5689 |
|
---|
[3745] | 5690 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
[25169] | 5691 | do :
|
---|
| 5692 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5693 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5694 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
[10191] | 5695 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5696 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[10191] | 5697 | _ACEOF
|
---|
[3745] | 5698 |
|
---|
| 5699 | fi
|
---|
| 5700 | done
|
---|
| 5701 |
|
---|
[25169] | 5702 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
| 5703 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
| 5704 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
[25148] | 5705 |
|
---|
| 5706 | else
|
---|
[25169] | 5707 | case " $LIBOBJS " in
|
---|
| 5708 | *" ftruncate.$ac_objext "* ) ;;
|
---|
| 5709 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
| 5710 | ;;
|
---|
| 5711 | esac
|
---|
[25148] | 5712 |
|
---|
[25169] | 5713 | fi
|
---|
[25148] | 5714 |
|
---|
[25169] | 5715 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
| 5716 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
| 5717 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
[25148] | 5718 |
|
---|
[25169] | 5719 | else
|
---|
| 5720 | case " $LIBOBJS " in
|
---|
| 5721 | *" strstr.$ac_objext "* ) ;;
|
---|
| 5722 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
| 5723 | ;;
|
---|
[25148] | 5724 | esac
|
---|
| 5725 |
|
---|
| 5726 | fi
|
---|
| 5727 |
|
---|
[25169] | 5728 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
| 5729 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
| 5730 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
[10191] | 5731 |
|
---|
[3745] | 5732 | else
|
---|
[23356] | 5733 | case " $LIBOBJS " in
|
---|
[25169] | 5734 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
| 5735 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
[23356] | 5736 | ;;
|
---|
| 5737 | esac
|
---|
[10191] | 5738 |
|
---|
[23356] | 5739 | fi
|
---|
[10191] | 5740 |
|
---|
| 5741 |
|
---|
| 5742 |
|
---|
[3745] | 5743 |
|
---|
| 5744 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 5745 | # ---------------------------------------------------------------------------
|
---|
[25169] | 5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
[23356] | 5747 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
[3745] | 5748 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[25169] | 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 5750 | $as_echo "yes" >&6; }
|
---|
| 5751 | case " $LIBOBJS " in
|
---|
[10191] | 5752 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 5753 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 5754 | ;;
|
---|
[10191] | 5755 | esac
|
---|
| 5756 |
|
---|
[25169] | 5757 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
[3745] | 5758 |
|
---|
| 5759 | else
|
---|
[25169] | 5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 5761 | $as_echo "no" >&6; }
|
---|
[25169] | 5762 | for ac_func in valloc
|
---|
| 5763 | do :
|
---|
| 5764 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
| 5765 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
[10191] | 5766 | cat >>confdefs.h <<_ACEOF
|
---|
[25169] | 5767 | #define HAVE_VALLOC 1
|
---|
[10191] | 5768 | _ACEOF
|
---|
[3745] | 5769 |
|
---|
| 5770 | fi
|
---|
| 5771 | done
|
---|
| 5772 |
|
---|
| 5773 | fi
|
---|
| 5774 |
|
---|
[10191] | 5775 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 5776 | # a non-standard Path
|
---|
[10917] | 5777 | # is there a better way to do this??
|
---|
[25169] | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
[23356] | 5779 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
[10917] | 5780 | # set defaults
|
---|
| 5781 | JNIINC=""
|
---|
| 5782 | JNISUFFIX="so"
|
---|
| 5783 | JNIFLAGS="-shared"
|
---|
| 5784 |
|
---|
[10191] | 5785 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[25169] | 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
[23356] | 5787 | $as_echo "Darwin" >&6; }
|
---|
[10191] | 5788 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 5789 | JNISUFFIX="jnilib"
|
---|
[10887] | 5790 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10191] | 5791 | fi
|
---|
[10917] | 5792 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
[25169] | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
[23356] | 5794 | $as_echo "Solaris" >&6; }
|
---|
[10917] | 5795 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 5796 | fi
|
---|
| 5797 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
[25169] | 5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
[23356] | 5799 | $as_echo "Linux" >&6; }
|
---|
[18597] | 5800 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
[10917] | 5801 | fi
|
---|
[10191] | 5802 |
|
---|
| 5803 |
|
---|
| 5804 |
|
---|
| 5805 |
|
---|
[10917] | 5806 |
|
---|
[25169] | 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
[23356] | 5808 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
[3745] | 5809 |
|
---|
[23356] | 5810 | # Check whether --with-dmalloc was given.
|
---|
[25169] | 5811 | if test "${with_dmalloc+set}" = set; then :
|
---|
[23356] | 5812 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
[25169] | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 5814 | $as_echo "yes" >&6; }
|
---|
[25169] | 5815 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
[3745] | 5816 |
|
---|
| 5817 | LIBS="$LIBS -ldmalloc"
|
---|
| 5818 | LDFLAGS="$LDFLAGS -g"
|
---|
| 5819 | else
|
---|
[25169] | 5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 5821 | $as_echo "no" >&6; }
|
---|
[3745] | 5822 | fi
|
---|
| 5823 | else
|
---|
[25169] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 5825 | $as_echo "no" >&6; }
|
---|
| 5826 | fi
|
---|
[3745] | 5827 |
|
---|
| 5828 |
|
---|
[25169] | 5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
[23356] | 5830 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
| 5831 |
|
---|
| 5832 | # Check whether --with-regex was given.
|
---|
[25169] | 5833 | if test "${with_regex+set}" = set; then :
|
---|
[23356] | 5834 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[3745] | 5835 | ac_with_regex=1
|
---|
[25169] | 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
[23356] | 5837 | $as_echo "regex" >&6; }
|
---|
[25169] | 5838 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
[3745] | 5839 |
|
---|
[23356] | 5840 | case " $LIBOBJS " in
|
---|
[10840] | 5841 | *" regex.$ac_objext "* ) ;;
|
---|
[23356] | 5842 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 5843 | ;;
|
---|
[10840] | 5844 | esac
|
---|
| 5845 |
|
---|
[3745] | 5846 | fi
|
---|
[23356] | 5847 | fi
|
---|
| 5848 |
|
---|
[3745] | 5849 | if test -z "$ac_with_regex"; then
|
---|
[25169] | 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
[23356] | 5851 | $as_echo "rx" >&6; }
|
---|
[25169] | 5852 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
| 5853 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
[10191] | 5854 |
|
---|
[3745] | 5855 | else
|
---|
[23356] | 5856 | case " $LIBOBJS " in
|
---|
[10840] | 5857 | *" rx.$ac_objext "* ) ;;
|
---|
[23356] | 5858 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 5859 | ;;
|
---|
[10840] | 5860 | esac
|
---|
| 5861 |
|
---|
[3745] | 5862 | fi
|
---|
| 5863 |
|
---|
| 5864 | fi
|
---|
| 5865 |
|
---|
[10191] | 5866 |
|
---|
[10840] | 5867 | # text for endianness
|
---|
[25169] | 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
[23356] | 5869 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
[25169] | 5870 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
[23356] | 5871 | $as_echo_n "(cached) " >&6
|
---|
[10840] | 5872 | else
|
---|
[23356] | 5873 | ac_cv_c_bigendian=unknown
|
---|
| 5874 | # See if we're dealing with a universal compiler.
|
---|
[25169] | 5875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 5876 | /* end confdefs.h. */
|
---|
| 5877 | #ifndef __APPLE_CC__
|
---|
| 5878 | not a universal capable compiler
|
---|
| 5879 | #endif
|
---|
| 5880 | typedef int dummy;
|
---|
| 5881 |
|
---|
[10840] | 5882 | _ACEOF
|
---|
[25169] | 5883 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 5884 |
|
---|
| 5885 | # Check for potential -arch flags. It is not universal unless
|
---|
[25169] | 5886 | # there are at least two -arch flags with different values.
|
---|
| 5887 | ac_arch=
|
---|
| 5888 | ac_prev=
|
---|
| 5889 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
| 5890 | if test -n "$ac_prev"; then
|
---|
| 5891 | case $ac_word in
|
---|
| 5892 | i?86 | x86_64 | ppc | ppc64)
|
---|
| 5893 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
| 5894 | ac_arch=$ac_word
|
---|
| 5895 | else
|
---|
| 5896 | ac_cv_c_bigendian=universal
|
---|
| 5897 | break
|
---|
| 5898 | fi
|
---|
| 5899 | ;;
|
---|
| 5900 | esac
|
---|
| 5901 | ac_prev=
|
---|
| 5902 | elif test "x$ac_word" = "x-arch"; then
|
---|
| 5903 | ac_prev=arch
|
---|
| 5904 | fi
|
---|
| 5905 | done
|
---|
[23356] | 5906 | fi
|
---|
| 5907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5908 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5909 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
[25169] | 5910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 5911 | /* end confdefs.h. */
|
---|
| 5912 | #include <sys/types.h>
|
---|
[23356] | 5913 | #include <sys/param.h>
|
---|
[10840] | 5914 |
|
---|
| 5915 | int
|
---|
| 5916 | main ()
|
---|
| 5917 | {
|
---|
[23356] | 5918 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
| 5919 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
| 5920 | && LITTLE_ENDIAN)
|
---|
| 5921 | bogus endian macros
|
---|
| 5922 | #endif
|
---|
[10840] | 5923 |
|
---|
| 5924 | ;
|
---|
| 5925 | return 0;
|
---|
| 5926 | }
|
---|
| 5927 | _ACEOF
|
---|
[25169] | 5928 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10840] | 5929 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[25169] | 5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 5931 | /* end confdefs.h. */
|
---|
| 5932 | #include <sys/types.h>
|
---|
[23356] | 5933 | #include <sys/param.h>
|
---|
[10840] | 5934 |
|
---|
| 5935 | int
|
---|
| 5936 | main ()
|
---|
| 5937 | {
|
---|
| 5938 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[23356] | 5939 | not big endian
|
---|
| 5940 | #endif
|
---|
[10840] | 5941 |
|
---|
| 5942 | ;
|
---|
| 5943 | return 0;
|
---|
| 5944 | }
|
---|
| 5945 | _ACEOF
|
---|
[25169] | 5946 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10840] | 5947 | ac_cv_c_bigendian=yes
|
---|
| 5948 | else
|
---|
[25169] | 5949 | ac_cv_c_bigendian=no
|
---|
[10840] | 5950 | fi
|
---|
[23356] | 5951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5952 | fi
|
---|
| 5953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5954 | fi
|
---|
| 5955 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5956 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
[25169] | 5957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 5958 | /* end confdefs.h. */
|
---|
| 5959 | #include <limits.h>
|
---|
[10840] | 5960 |
|
---|
[23356] | 5961 | int
|
---|
| 5962 | main ()
|
---|
| 5963 | {
|
---|
| 5964 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
| 5965 | bogus endian macros
|
---|
| 5966 | #endif
|
---|
| 5967 |
|
---|
| 5968 | ;
|
---|
| 5969 | return 0;
|
---|
| 5970 | }
|
---|
[10840] | 5971 | _ACEOF
|
---|
[25169] | 5972 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 5973 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
[25169] | 5974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 5975 | /* end confdefs.h. */
|
---|
[23356] | 5976 | #include <limits.h>
|
---|
| 5977 |
|
---|
[10840] | 5978 | int
|
---|
| 5979 | main ()
|
---|
| 5980 | {
|
---|
[23356] | 5981 | #ifndef _BIG_ENDIAN
|
---|
| 5982 | not big endian
|
---|
| 5983 | #endif
|
---|
| 5984 |
|
---|
[10840] | 5985 | ;
|
---|
| 5986 | return 0;
|
---|
| 5987 | }
|
---|
| 5988 | _ACEOF
|
---|
[25169] | 5989 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10840] | 5990 | ac_cv_c_bigendian=yes
|
---|
[23356] | 5991 | else
|
---|
[25169] | 5992 | ac_cv_c_bigendian=no
|
---|
[10840] | 5993 | fi
|
---|
[23356] | 5994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10840] | 5995 | fi
|
---|
[23356] | 5996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5997 | fi
|
---|
| 5998 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5999 | # Compile a test program.
|
---|
[25169] | 6000 | if test "$cross_compiling" = yes; then :
|
---|
[23356] | 6001 | # Try to guess by grepping values from an object file.
|
---|
[25169] | 6002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6003 | /* end confdefs.h. */
|
---|
| 6004 | short int ascii_mm[] =
|
---|
| 6005 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 6006 | short int ascii_ii[] =
|
---|
| 6007 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 6008 | int use_ascii (int i) {
|
---|
| 6009 | return ascii_mm[i] + ascii_ii[i];
|
---|
| 6010 | }
|
---|
| 6011 | short int ebcdic_ii[] =
|
---|
| 6012 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 6013 | short int ebcdic_mm[] =
|
---|
| 6014 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 6015 | int use_ebcdic (int i) {
|
---|
| 6016 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
| 6017 | }
|
---|
| 6018 | extern int foo;
|
---|
[10840] | 6019 |
|
---|
[23356] | 6020 | int
|
---|
| 6021 | main ()
|
---|
| 6022 | {
|
---|
| 6023 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
| 6024 | ;
|
---|
| 6025 | return 0;
|
---|
| 6026 | }
|
---|
| 6027 | _ACEOF
|
---|
[25169] | 6028 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6029 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
| 6030 | ac_cv_c_bigendian=yes
|
---|
| 6031 | fi
|
---|
| 6032 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 6033 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 6034 | ac_cv_c_bigendian=no
|
---|
| 6035 | else
|
---|
| 6036 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6037 | ac_cv_c_bigendian=unknown
|
---|
| 6038 | fi
|
---|
| 6039 | fi
|
---|
[10840] | 6040 | fi
|
---|
[23356] | 6041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10840] | 6042 | else
|
---|
[25169] | 6043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 6044 | /* end confdefs.h. */
|
---|
[23356] | 6045 | $ac_includes_default
|
---|
[10840] | 6046 | int
|
---|
| 6047 | main ()
|
---|
| 6048 | {
|
---|
[23356] | 6049 |
|
---|
| 6050 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6051 | union
|
---|
| 6052 | {
|
---|
| 6053 | long int l;
|
---|
| 6054 | char c[sizeof (long int)];
|
---|
| 6055 | } u;
|
---|
| 6056 | u.l = 1;
|
---|
| 6057 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 6058 |
|
---|
| 6059 | ;
|
---|
| 6060 | return 0;
|
---|
[10840] | 6061 | }
|
---|
| 6062 | _ACEOF
|
---|
[25169] | 6063 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[10840] | 6064 | ac_cv_c_bigendian=no
|
---|
| 6065 | else
|
---|
[25169] | 6066 | ac_cv_c_bigendian=yes
|
---|
[10840] | 6067 | fi
|
---|
[25169] | 6068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 6069 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10840] | 6070 | fi
|
---|
[23356] | 6071 |
|
---|
| 6072 | fi
|
---|
[10840] | 6073 | fi
|
---|
[25169] | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
[23356] | 6075 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
| 6076 | case $ac_cv_c_bigendian in #(
|
---|
| 6077 | yes)
|
---|
[25169] | 6078 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
[23356] | 6079 | ;; #(
|
---|
| 6080 | no)
|
---|
| 6081 | ;; #(
|
---|
| 6082 | universal)
|
---|
[10840] | 6083 |
|
---|
[25169] | 6084 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
[10840] | 6085 |
|
---|
[23356] | 6086 | ;; #(
|
---|
| 6087 | *)
|
---|
[25169] | 6088 | as_fn_error $? "unknown endianness
|
---|
| 6089 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
[23356] | 6090 | esac
|
---|
[10840] | 6091 |
|
---|
[23356] | 6092 |
|
---|
[3745] | 6093 | # ---------------------------------------------------------------------------
|
---|
| 6094 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[23356] | 6095 | case " $LIBOBJS " in
|
---|
[10191] | 6096 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 6097 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 6098 | ;;
|
---|
[10191] | 6099 | esac
|
---|
| 6100 |
|
---|
[23356] | 6101 | case " $LIBOBJS " in
|
---|
[10191] | 6102 | *" error.$ac_objext "* ) ;;
|
---|
[23356] | 6103 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 6104 | ;;
|
---|
[10191] | 6105 | esac
|
---|
| 6106 |
|
---|
[3745] | 6107 | fi
|
---|
| 6108 |
|
---|
[10191] | 6109 |
|
---|
[3745] | 6110 | # ---------------------------------------------------------------------------
|
---|
| 6111 |
|
---|
[23356] | 6112 | ac_config_files="$ac_config_files Makefile src/text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
|
---|
| 6113 |
|
---|
| 6114 | ac_config_commands="$ac_config_commands default"
|
---|
| 6115 |
|
---|
[3745] | 6116 | cat >confcache <<\_ACEOF
|
---|
| 6117 | # This file is a shell script that caches the results of configure
|
---|
| 6118 | # tests run on this system so they can be shared between configure
|
---|
| 6119 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6120 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6121 | # want to keep, you may remove or edit it.
|
---|
| 6122 | #
|
---|
| 6123 | # config.status only pays attention to the cache file if you give it
|
---|
| 6124 | # the --recheck option to rerun configure.
|
---|
| 6125 | #
|
---|
[10191] | 6126 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[3745] | 6127 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6128 | # following values.
|
---|
| 6129 |
|
---|
| 6130 | _ACEOF
|
---|
| 6131 |
|
---|
| 6132 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6133 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[23356] | 6134 | # So, we kill variables containing newlines.
|
---|
[3745] | 6135 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6136 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[23356] | 6137 | (
|
---|
| 6138 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6139 | eval ac_val=\$$ac_var
|
---|
| 6140 | case $ac_val in #(
|
---|
| 6141 | *${as_nl}*)
|
---|
| 6142 | case $ac_var in #(
|
---|
[25169] | 6143 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
[23356] | 6144 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6145 | esac
|
---|
| 6146 | case $ac_var in #(
|
---|
| 6147 | _ | IFS | as_nl) ;; #(
|
---|
| 6148 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
[25169] | 6149 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
[23356] | 6150 | esac ;;
|
---|
| 6151 | esac
|
---|
| 6152 | done
|
---|
| 6153 |
|
---|
[3745] | 6154 | (set) 2>&1 |
|
---|
[23356] | 6155 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6156 | *${as_nl}ac_space=\ *)
|
---|
[25169] | 6157 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6158 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
[3745] | 6159 | sed -n \
|
---|
[10191] | 6160 | "s/'/'\\\\''/g;
|
---|
| 6161 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[23356] | 6162 | ;; #(
|
---|
[3745] | 6163 | *)
|
---|
| 6164 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[23356] | 6165 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[3745] | 6166 | ;;
|
---|
[23356] | 6167 | esac |
|
---|
| 6168 | sort
|
---|
| 6169 | ) |
|
---|
[3745] | 6170 | sed '
|
---|
[23356] | 6171 | /^ac_cv_env_/b end
|
---|
[3745] | 6172 | t clear
|
---|
[23356] | 6173 | :clear
|
---|
[3745] | 6174 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6175 | t end
|
---|
[23356] | 6176 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6177 | :end' >>confcache
|
---|
| 6178 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6179 | if test -w "$cache_file"; then
|
---|
[25169] | 6180 | if test "x$cache_file" != "x/dev/null"; then
|
---|
| 6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
[23356] | 6182 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[25169] | 6183 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
| 6184 | cat confcache >"$cache_file"
|
---|
| 6185 | else
|
---|
| 6186 | case $cache_file in #(
|
---|
| 6187 | */* | ?:*)
|
---|
| 6188 | mv -f confcache "$cache_file"$$ &&
|
---|
| 6189 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
| 6190 | *)
|
---|
| 6191 | mv -f confcache "$cache_file" ;;
|
---|
| 6192 | esac
|
---|
| 6193 | fi
|
---|
| 6194 | fi
|
---|
[3745] | 6195 | else
|
---|
[25169] | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
[23356] | 6197 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[3745] | 6198 | fi
|
---|
| 6199 | fi
|
---|
| 6200 | rm -f confcache
|
---|
| 6201 |
|
---|
| 6202 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6203 | # Let make expand exec_prefix.
|
---|
| 6204 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6205 |
|
---|
| 6206 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6207 |
|
---|
[10191] | 6208 | ac_libobjs=
|
---|
| 6209 | ac_ltlibobjs=
|
---|
[25169] | 6210 | U=
|
---|
[10191] | 6211 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6212 | # 1. Remove the extension, and $U if already installed.
|
---|
[23356] | 6213 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6214 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6215 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6216 | # will be set to the directory where LIBOBJS objects are built.
|
---|
[25169] | 6217 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6218 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[10191] | 6219 | done
|
---|
| 6220 | LIBOBJS=$ac_libobjs
|
---|
| 6221 |
|
---|
| 6222 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6223 |
|
---|
| 6224 |
|
---|
| 6225 |
|
---|
[23356] | 6226 |
|
---|
[25169] | 6227 | : "${CONFIG_STATUS=./config.status}"
|
---|
[23356] | 6228 | ac_write_fail=0
|
---|
[3745] | 6229 | ac_clean_files_save=$ac_clean_files
|
---|
| 6230 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[25169] | 6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
[23356] | 6232 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
[25169] | 6233 | as_write_fail=0
|
---|
| 6234 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
[3745] | 6235 | #! $SHELL
|
---|
[10191] | 6236 | # Generated by $as_me.
|
---|
[3745] | 6237 | # Run this file to recreate the current configuration.
|
---|
| 6238 | # Compiler output produced by configure, useful for debugging
|
---|
| 6239 | # configure, is in config.log if it exists.
|
---|
| 6240 |
|
---|
| 6241 | debug=false
|
---|
[10191] | 6242 | ac_cs_recheck=false
|
---|
| 6243 | ac_cs_silent=false
|
---|
[25169] | 6244 |
|
---|
[3745] | 6245 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[25169] | 6246 | export SHELL
|
---|
| 6247 | _ASEOF
|
---|
| 6248 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6249 | ## -------------------- ##
|
---|
| 6250 | ## M4sh Initialization. ##
|
---|
| 6251 | ## -------------------- ##
|
---|
[3745] | 6252 |
|
---|
[23356] | 6253 | # Be more Bourne compatible
|
---|
| 6254 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[25169] | 6255 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[3745] | 6256 | emulate sh
|
---|
| 6257 | NULLCMD=:
|
---|
[23356] | 6258 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10191] | 6259 | # is contrary to our usage. Disable this feature.
|
---|
| 6260 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 6261 | setopt NO_GLOB_SUBST
|
---|
| 6262 | else
|
---|
[25169] | 6263 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6264 | *posix*) :
|
---|
| 6265 | set -o posix ;; #(
|
---|
| 6266 | *) :
|
---|
| 6267 | ;;
|
---|
[23356] | 6268 | esac
|
---|
[3745] | 6269 | fi
|
---|
| 6270 |
|
---|
[23356] | 6271 |
|
---|
| 6272 | as_nl='
|
---|
| 6273 | '
|
---|
| 6274 | export as_nl
|
---|
| 6275 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6276 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6277 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6278 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
[25169] | 6279 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6280 | # but without wasting forks for bash or zsh.
|
---|
| 6281 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6282 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6283 | as_echo='print -r --'
|
---|
| 6284 | as_echo_n='print -rn --'
|
---|
| 6285 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
[23356] | 6286 | as_echo='printf %s\n'
|
---|
| 6287 | as_echo_n='printf %s'
|
---|
[10191] | 6288 | else
|
---|
[23356] | 6289 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6290 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6291 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6292 | else
|
---|
| 6293 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6294 | as_echo_n_body='eval
|
---|
| 6295 | arg=$1;
|
---|
[25169] | 6296 | case $arg in #(
|
---|
[23356] | 6297 | *"$as_nl"*)
|
---|
| 6298 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6299 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6300 | esac;
|
---|
| 6301 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6302 | '
|
---|
| 6303 | export as_echo_n_body
|
---|
| 6304 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6305 | fi
|
---|
| 6306 | export as_echo_body
|
---|
| 6307 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10191] | 6308 | fi
|
---|
| 6309 |
|
---|
[23356] | 6310 | # The user is always right.
|
---|
| 6311 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6312 | PATH_SEPARATOR=:
|
---|
| 6313 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6314 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6315 | PATH_SEPARATOR=';'
|
---|
| 6316 | }
|
---|
| 6317 | fi
|
---|
[10191] | 6318 |
|
---|
[23356] | 6319 |
|
---|
| 6320 | # IFS
|
---|
| 6321 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6322 | # there to prevent editors from complaining about space-tab.
|
---|
| 6323 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6324 | # splitting by setting IFS to empty value.)
|
---|
| 6325 | IFS=" "" $as_nl"
|
---|
| 6326 |
|
---|
| 6327 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
[25169] | 6328 | as_myself=
|
---|
| 6329 | case $0 in #((
|
---|
[23356] | 6330 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6331 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6332 | for as_dir in $PATH
|
---|
| 6333 | do
|
---|
| 6334 | IFS=$as_save_IFS
|
---|
| 6335 | test -z "$as_dir" && as_dir=.
|
---|
[25169] | 6336 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6337 | done
|
---|
[23356] | 6338 | IFS=$as_save_IFS
|
---|
| 6339 |
|
---|
| 6340 | ;;
|
---|
| 6341 | esac
|
---|
| 6342 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6343 | # in which case we are not to be found in the path.
|
---|
| 6344 | if test "x$as_myself" = x; then
|
---|
| 6345 | as_myself=$0
|
---|
| 6346 | fi
|
---|
| 6347 | if test ! -f "$as_myself"; then
|
---|
| 6348 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25169] | 6349 | exit 1
|
---|
[23356] | 6350 | fi
|
---|
| 6351 |
|
---|
[25169] | 6352 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6353 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6354 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6355 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6356 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6357 | do eval test x\${$as_var+set} = xset \
|
---|
| 6358 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
[23356] | 6359 | done
|
---|
[10191] | 6360 | PS1='$ '
|
---|
| 6361 | PS2='> '
|
---|
| 6362 | PS4='+ '
|
---|
| 6363 |
|
---|
| 6364 | # NLS nuisances.
|
---|
[23356] | 6365 | LC_ALL=C
|
---|
| 6366 | export LC_ALL
|
---|
| 6367 | LANGUAGE=C
|
---|
| 6368 | export LANGUAGE
|
---|
| 6369 |
|
---|
[25169] | 6370 | # CDPATH.
|
---|
| 6371 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6372 |
|
---|
| 6373 |
|
---|
| 6374 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 6375 | # ----------------------------------------
|
---|
| 6376 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6377 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 6378 | # script with STATUS, using 1 if that was 0.
|
---|
| 6379 | as_fn_error ()
|
---|
| 6380 | {
|
---|
| 6381 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 6382 | if test "$4"; then
|
---|
| 6383 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6384 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 6385 | fi
|
---|
| 6386 | $as_echo "$as_me: error: $2" >&2
|
---|
| 6387 | as_fn_exit $as_status
|
---|
| 6388 | } # as_fn_error
|
---|
| 6389 |
|
---|
| 6390 |
|
---|
| 6391 | # as_fn_set_status STATUS
|
---|
| 6392 | # -----------------------
|
---|
| 6393 | # Set $? to STATUS, without forking.
|
---|
| 6394 | as_fn_set_status ()
|
---|
| 6395 | {
|
---|
| 6396 | return $1
|
---|
| 6397 | } # as_fn_set_status
|
---|
| 6398 |
|
---|
| 6399 | # as_fn_exit STATUS
|
---|
| 6400 | # -----------------
|
---|
| 6401 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6402 | as_fn_exit ()
|
---|
| 6403 | {
|
---|
| 6404 | set +e
|
---|
| 6405 | as_fn_set_status $1
|
---|
| 6406 | exit $1
|
---|
| 6407 | } # as_fn_exit
|
---|
| 6408 |
|
---|
| 6409 | # as_fn_unset VAR
|
---|
| 6410 | # ---------------
|
---|
| 6411 | # Portably unset VAR.
|
---|
| 6412 | as_fn_unset ()
|
---|
| 6413 | {
|
---|
| 6414 | { eval $1=; unset $1;}
|
---|
| 6415 | }
|
---|
| 6416 | as_unset=as_fn_unset
|
---|
| 6417 | # as_fn_append VAR VALUE
|
---|
| 6418 | # ----------------------
|
---|
| 6419 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6420 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6421 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6422 | # implementations.
|
---|
| 6423 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6424 | eval 'as_fn_append ()
|
---|
| 6425 | {
|
---|
| 6426 | eval $1+=\$2
|
---|
| 6427 | }'
|
---|
| 6428 | else
|
---|
| 6429 | as_fn_append ()
|
---|
| 6430 | {
|
---|
| 6431 | eval $1=\$$1\$2
|
---|
| 6432 | }
|
---|
| 6433 | fi # as_fn_append
|
---|
| 6434 |
|
---|
| 6435 | # as_fn_arith ARG...
|
---|
| 6436 | # ------------------
|
---|
| 6437 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6438 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6439 | # must be portable across $(()) and expr.
|
---|
| 6440 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6441 | eval 'as_fn_arith ()
|
---|
| 6442 | {
|
---|
| 6443 | as_val=$(( $* ))
|
---|
| 6444 | }'
|
---|
| 6445 | else
|
---|
| 6446 | as_fn_arith ()
|
---|
| 6447 | {
|
---|
| 6448 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6449 | }
|
---|
| 6450 | fi # as_fn_arith
|
---|
| 6451 |
|
---|
| 6452 |
|
---|
[23356] | 6453 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6454 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[10191] | 6455 | as_expr=expr
|
---|
| 6456 | else
|
---|
| 6457 | as_expr=false
|
---|
| 6458 | fi
|
---|
| 6459 |
|
---|
[23356] | 6460 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[10191] | 6461 | as_basename=basename
|
---|
| 6462 | else
|
---|
| 6463 | as_basename=false
|
---|
| 6464 | fi
|
---|
| 6465 |
|
---|
[25169] | 6466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 6467 | as_dirname=dirname
|
---|
| 6468 | else
|
---|
| 6469 | as_dirname=false
|
---|
| 6470 | fi
|
---|
[10191] | 6471 |
|
---|
[23356] | 6472 | as_me=`$as_basename -- "$0" ||
|
---|
[10191] | 6473 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6474 | X"$0" : 'X\(//\)$' \| \
|
---|
[23356] | 6475 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6476 | $as_echo X/"$0" |
|
---|
| 6477 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 6478 | s//\1/
|
---|
| 6479 | q
|
---|
| 6480 | }
|
---|
| 6481 | /^X\/\(\/\/\)$/{
|
---|
| 6482 | s//\1/
|
---|
| 6483 | q
|
---|
| 6484 | }
|
---|
| 6485 | /^X\/\(\/\).*/{
|
---|
| 6486 | s//\1/
|
---|
| 6487 | q
|
---|
| 6488 | }
|
---|
| 6489 | s/.*/./; q'`
|
---|
[3745] | 6490 |
|
---|
[25169] | 6491 | # Avoid depending upon Character Ranges.
|
---|
| 6492 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6493 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6494 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6495 | as_cr_digits='0123456789'
|
---|
| 6496 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[10191] | 6497 |
|
---|
[23356] | 6498 | ECHO_C= ECHO_N= ECHO_T=
|
---|
[25169] | 6499 | case `echo -n x` in #(((((
|
---|
[23356] | 6500 | -n*)
|
---|
[25169] | 6501 | case `echo 'xy\c'` in
|
---|
[23356] | 6502 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
[25169] | 6503 | xy) ECHO_C='\c';;
|
---|
| 6504 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 6505 | ECHO_T=' ';;
|
---|
[23356] | 6506 | esac;;
|
---|
| 6507 | *)
|
---|
| 6508 | ECHO_N='-n';;
|
---|
[10191] | 6509 | esac
|
---|
| 6510 |
|
---|
[23356] | 6511 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6512 | if test -d conf$$.dir; then
|
---|
| 6513 | rm -f conf$$.dir/conf$$.file
|
---|
[3745] | 6514 | else
|
---|
[23356] | 6515 | rm -f conf$$.dir
|
---|
| 6516 | mkdir conf$$.dir 2>/dev/null
|
---|
[3745] | 6517 | fi
|
---|
[23356] | 6518 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 6519 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6520 | as_ln_s='ln -s'
|
---|
| 6521 | # ... but there are two gotchas:
|
---|
| 6522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 6523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 6524 | # In both cases, we have to default to `cp -p'.
|
---|
| 6525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 6526 | as_ln_s='cp -p'
|
---|
| 6527 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6528 | as_ln_s=ln
|
---|
| 6529 | else
|
---|
[3745] | 6530 | as_ln_s='cp -p'
|
---|
| 6531 | fi
|
---|
| 6532 | else
|
---|
| 6533 | as_ln_s='cp -p'
|
---|
| 6534 | fi
|
---|
[23356] | 6535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 6536 | rmdir conf$$.dir 2>/dev/null
|
---|
[3745] | 6537 |
|
---|
[25169] | 6538 |
|
---|
| 6539 | # as_fn_mkdir_p
|
---|
| 6540 | # -------------
|
---|
| 6541 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 6542 | as_fn_mkdir_p ()
|
---|
| 6543 | {
|
---|
| 6544 |
|
---|
| 6545 | case $as_dir in #(
|
---|
| 6546 | -*) as_dir=./$as_dir;;
|
---|
| 6547 | esac
|
---|
| 6548 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 6549 | as_dirs=
|
---|
| 6550 | while :; do
|
---|
| 6551 | case $as_dir in #(
|
---|
| 6552 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 6553 | *) as_qdir=$as_dir;;
|
---|
| 6554 | esac
|
---|
| 6555 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 6556 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 6557 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 6558 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 6559 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 6560 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6561 | $as_echo X"$as_dir" |
|
---|
| 6562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 6563 | s//\1/
|
---|
| 6564 | q
|
---|
| 6565 | }
|
---|
| 6566 | /^X\(\/\/\)[^/].*/{
|
---|
| 6567 | s//\1/
|
---|
| 6568 | q
|
---|
| 6569 | }
|
---|
| 6570 | /^X\(\/\/\)$/{
|
---|
| 6571 | s//\1/
|
---|
| 6572 | q
|
---|
| 6573 | }
|
---|
| 6574 | /^X\(\/\).*/{
|
---|
| 6575 | s//\1/
|
---|
| 6576 | q
|
---|
| 6577 | }
|
---|
| 6578 | s/.*/./; q'`
|
---|
| 6579 | test -d "$as_dir" && break
|
---|
| 6580 | done
|
---|
| 6581 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 6582 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
| 6583 |
|
---|
| 6584 |
|
---|
| 6585 | } # as_fn_mkdir_p
|
---|
[10191] | 6586 | if mkdir -p . 2>/dev/null; then
|
---|
[25169] | 6587 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[3745] | 6588 | else
|
---|
[10191] | 6589 | test -d ./-p && rmdir ./-p
|
---|
| 6590 | as_mkdir_p=false
|
---|
[3745] | 6591 | fi
|
---|
| 6592 |
|
---|
[23356] | 6593 | if test -x / >/dev/null 2>&1; then
|
---|
| 6594 | as_test_x='test -x'
|
---|
| 6595 | else
|
---|
| 6596 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 6597 | as_ls_L_option=L
|
---|
| 6598 | else
|
---|
| 6599 | as_ls_L_option=
|
---|
| 6600 | fi
|
---|
| 6601 | as_test_x='
|
---|
| 6602 | eval sh -c '\''
|
---|
| 6603 | if test -d "$1"; then
|
---|
| 6604 | test -d "$1/.";
|
---|
| 6605 | else
|
---|
[25169] | 6606 | case $1 in #(
|
---|
[23356] | 6607 | -*)set "./$1";;
|
---|
| 6608 | esac;
|
---|
[25169] | 6609 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
[23356] | 6610 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 6611 | '\'' sh
|
---|
| 6612 | '
|
---|
| 6613 | fi
|
---|
| 6614 | as_executable_p=$as_test_x
|
---|
[3745] | 6615 |
|
---|
[10191] | 6616 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6617 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6618 |
|
---|
| 6619 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6620 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6621 |
|
---|
| 6622 |
|
---|
[3745] | 6623 | exec 6>&1
|
---|
[25169] | 6624 | ## ----------------------------------- ##
|
---|
| 6625 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 6626 | ## ----------------------------------- ##
|
---|
| 6627 | _ASEOF
|
---|
| 6628 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
[3745] | 6629 |
|
---|
[25169] | 6630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6631 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
[10191] | 6632 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[23356] | 6633 | # values after options handling.
|
---|
| 6634 | ac_log="
|
---|
[10191] | 6635 | This file was extended by $as_me, which was
|
---|
[25169] | 6636 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
[10191] | 6637 |
|
---|
| 6638 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6639 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6640 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6641 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6642 | $ $0 $@
|
---|
| 6643 |
|
---|
[23356] | 6644 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 6645 | "
|
---|
| 6646 |
|
---|
[3745] | 6647 | _ACEOF
|
---|
| 6648 |
|
---|
[23356] | 6649 | case $ac_config_files in *"
|
---|
| 6650 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 6651 | esac
|
---|
[3745] | 6652 |
|
---|
[23356] | 6653 | case $ac_config_headers in *"
|
---|
| 6654 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 6655 | esac
|
---|
[3745] | 6656 |
|
---|
| 6657 |
|
---|
[23356] | 6658 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6659 | # Files that config.status was made for.
|
---|
| 6660 | config_files="$ac_config_files"
|
---|
| 6661 | config_headers="$ac_config_headers"
|
---|
| 6662 | config_commands="$ac_config_commands"
|
---|
[3745] | 6663 |
|
---|
[23356] | 6664 | _ACEOF
|
---|
[3745] | 6665 |
|
---|
[23356] | 6666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[3745] | 6667 | ac_cs_usage="\
|
---|
[25169] | 6668 | \`$as_me' instantiates files and other configuration actions
|
---|
| 6669 | from templates according to the current configuration. Unless the files
|
---|
| 6670 | and actions are specified as TAGs, all are instantiated by default.
|
---|
[3745] | 6671 |
|
---|
[25169] | 6672 | Usage: $0 [OPTION]... [TAG]...
|
---|
[3745] | 6673 |
|
---|
| 6674 | -h, --help print this help, then exit
|
---|
[23356] | 6675 | -V, --version print version number and configuration settings, then exit
|
---|
[25169] | 6676 | --config print configuration, then exit
|
---|
[23356] | 6677 | -q, --quiet, --silent
|
---|
| 6678 | do not print progress messages
|
---|
[3745] | 6679 | -d, --debug don't remove temporary files
|
---|
| 6680 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[23356] | 6681 | --file=FILE[:TEMPLATE]
|
---|
| 6682 | instantiate the configuration file FILE
|
---|
| 6683 | --header=FILE[:TEMPLATE]
|
---|
| 6684 | instantiate the configuration header FILE
|
---|
[3745] | 6685 |
|
---|
| 6686 | Configuration files:
|
---|
| 6687 | $config_files
|
---|
| 6688 |
|
---|
| 6689 | Configuration headers:
|
---|
| 6690 | $config_headers
|
---|
| 6691 |
|
---|
| 6692 | Configuration commands:
|
---|
| 6693 | $config_commands
|
---|
| 6694 |
|
---|
[25169] | 6695 | Report bugs to the package provider."
|
---|
[23356] | 6696 |
|
---|
[10191] | 6697 | _ACEOF
|
---|
[23356] | 6698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[25169] | 6699 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
[3745] | 6700 | ac_cs_version="\\
|
---|
| 6701 | config.status
|
---|
[25169] | 6702 | configured by $0, generated by GNU Autoconf 2.68,
|
---|
| 6703 | with options \\"\$ac_cs_config\\"
|
---|
[3745] | 6704 |
|
---|
[25169] | 6705 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
[3745] | 6706 | This config.status script is free software; the Free Software Foundation
|
---|
| 6707 | gives unlimited permission to copy, distribute and modify it."
|
---|
[23356] | 6708 |
|
---|
| 6709 | ac_pwd='$ac_pwd'
|
---|
| 6710 | srcdir='$srcdir'
|
---|
| 6711 | INSTALL='$INSTALL'
|
---|
| 6712 | AWK='$AWK'
|
---|
| 6713 | test -n "\$AWK" || AWK=awk
|
---|
[10191] | 6714 | _ACEOF
|
---|
[3745] | 6715 |
|
---|
[23356] | 6716 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6717 | # The default lists apply if the user does not specify any file.
|
---|
[3745] | 6718 | ac_need_defaults=:
|
---|
| 6719 | while test $# != 0
|
---|
| 6720 | do
|
---|
| 6721 | case $1 in
|
---|
[25169] | 6722 | --*=?*)
|
---|
[23356] | 6723 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6724 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[10191] | 6725 | ac_shift=:
|
---|
[3745] | 6726 | ;;
|
---|
[25169] | 6727 | --*=)
|
---|
| 6728 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6729 | ac_optarg=
|
---|
| 6730 | ac_shift=:
|
---|
| 6731 | ;;
|
---|
[23356] | 6732 | *)
|
---|
[10191] | 6733 | ac_option=$1
|
---|
| 6734 | ac_optarg=$2
|
---|
| 6735 | ac_shift=shift
|
---|
| 6736 | ;;
|
---|
[3745] | 6737 | esac
|
---|
| 6738 |
|
---|
[10191] | 6739 | case $ac_option in
|
---|
[3745] | 6740 | # Handling of the options.
|
---|
| 6741 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10191] | 6742 | ac_cs_recheck=: ;;
|
---|
[23356] | 6743 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 6744 | $as_echo "$ac_cs_version"; exit ;;
|
---|
[25169] | 6745 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 6746 | $as_echo "$ac_cs_config"; exit ;;
|
---|
[23356] | 6747 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[3745] | 6748 | debug=: ;;
|
---|
| 6749 | --file | --fil | --fi | --f )
|
---|
[10191] | 6750 | $ac_shift
|
---|
[23356] | 6751 | case $ac_optarg in
|
---|
| 6752 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[25169] | 6753 | '') as_fn_error $? "missing file argument" ;;
|
---|
[23356] | 6754 | esac
|
---|
[25169] | 6755 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
[3745] | 6756 | ac_need_defaults=false;;
|
---|
| 6757 | --header | --heade | --head | --hea )
|
---|
[10191] | 6758 | $ac_shift
|
---|
[23356] | 6759 | case $ac_optarg in
|
---|
| 6760 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6761 | esac
|
---|
[25169] | 6762 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
[3745] | 6763 | ac_need_defaults=false;;
|
---|
[23356] | 6764 | --he | --h)
|
---|
| 6765 | # Conflict between --help and --header
|
---|
[25169] | 6766 | as_fn_error $? "ambiguous option: \`$1'
|
---|
| 6767 | Try \`$0 --help' for more information.";;
|
---|
[23356] | 6768 | --help | --hel | -h )
|
---|
| 6769 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
[10191] | 6770 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6771 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6772 | ac_cs_silent=: ;;
|
---|
[3745] | 6773 |
|
---|
| 6774 | # This is an error.
|
---|
[25169] | 6775 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
| 6776 | Try \`$0 --help' for more information." ;;
|
---|
[10191] | 6777 |
|
---|
[25169] | 6778 | *) as_fn_append ac_config_targets " $1"
|
---|
[23356] | 6779 | ac_need_defaults=false ;;
|
---|
[10191] | 6780 |
|
---|
[3745] | 6781 | esac
|
---|
| 6782 | shift
|
---|
| 6783 | done
|
---|
| 6784 |
|
---|
[10191] | 6785 | ac_configure_extra_args=
|
---|
[3745] | 6786 |
|
---|
[10191] | 6787 | if $ac_cs_silent; then
|
---|
| 6788 | exec 6>/dev/null
|
---|
| 6789 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 6790 | fi
|
---|
[3745] | 6791 |
|
---|
[10191] | 6792 | _ACEOF
|
---|
[23356] | 6793 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[10191] | 6794 | if \$ac_cs_recheck; then
|
---|
[23356] | 6795 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 6796 | shift
|
---|
| 6797 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 6798 | CONFIG_SHELL='$SHELL'
|
---|
| 6799 | export CONFIG_SHELL
|
---|
| 6800 | exec "\$@"
|
---|
[10191] | 6801 | fi
|
---|
[3745] | 6802 |
|
---|
| 6803 | _ACEOF
|
---|
[23356] | 6804 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6805 | exec 5>>config.log
|
---|
| 6806 | {
|
---|
| 6807 | echo
|
---|
| 6808 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 6809 | ## Running $as_me. ##
|
---|
| 6810 | _ASBOX
|
---|
| 6811 | $as_echo "$ac_log"
|
---|
| 6812 | } >&5
|
---|
[3745] | 6813 |
|
---|
[23356] | 6814 | _ACEOF
|
---|
| 6815 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6816 | _ACEOF
|
---|
[10191] | 6817 |
|
---|
[23356] | 6818 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[10191] | 6819 |
|
---|
[23356] | 6820 | # Handling of arguments.
|
---|
[10191] | 6821 | for ac_config_target in $ac_config_targets
|
---|
| 6822 | do
|
---|
[23356] | 6823 | case $ac_config_target in
|
---|
| 6824 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 6825 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 6826 | "src/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
|
---|
| 6827 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 6828 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 6829 | "java/org/greenstone/mg/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
|
---|
| 6830 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 6831 |
|
---|
[25169] | 6832 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
[10191] | 6833 | esac
|
---|
| 6834 | done
|
---|
| 6835 |
|
---|
[23356] | 6836 |
|
---|
[3745] | 6837 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 6838 | # then the envvar interface is used. Set only those that are not.
|
---|
| 6839 | # We use the long form for the default assignment because of an extremely
|
---|
| 6840 | # bizarre bug on SunOS 4.1.3.
|
---|
| 6841 | if $ac_need_defaults; then
|
---|
| 6842 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 6843 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 6844 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 6845 | fi
|
---|
| 6846 |
|
---|
[10191] | 6847 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[23356] | 6848 | # simply because there is no reason against having it here, and in addition,
|
---|
[10191] | 6849 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[23356] | 6850 | # Hook for its removal unless debugging.
|
---|
| 6851 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 6852 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[3745] | 6853 | $debug ||
|
---|
| 6854 | {
|
---|
[25169] | 6855 | tmp= ac_tmp=
|
---|
[23356] | 6856 | trap 'exit_status=$?
|
---|
[25169] | 6857 | : "${ac_tmp:=$tmp}"
|
---|
| 6858 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
[23356] | 6859 | ' 0
|
---|
[25169] | 6860 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
[3745] | 6861 | }
|
---|
| 6862 | # Create a (secure) tmp directory for tmp files.
|
---|
[10191] | 6863 |
|
---|
[3745] | 6864 | {
|
---|
[23356] | 6865 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[25169] | 6866 | test -d "$tmp"
|
---|
[3745] | 6867 | } ||
|
---|
| 6868 | {
|
---|
[23356] | 6869 | tmp=./conf$$-$RANDOM
|
---|
| 6870 | (umask 077 && mkdir "$tmp")
|
---|
[25169] | 6871 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
| 6872 | ac_tmp=$tmp
|
---|
[23356] | 6873 |
|
---|
| 6874 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 6875 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 6876 | # This happens for instance with `./config.status config.h'.
|
---|
| 6877 | if test -n "$CONFIG_FILES"; then
|
---|
| 6878 |
|
---|
| 6879 |
|
---|
[25169] | 6880 | ac_cr=`echo X | tr X '\015'`
|
---|
| 6881 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 6882 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 6883 | # point, so we can use a bashism as a fallback.
|
---|
| 6884 | if test "x$ac_cr" = x; then
|
---|
| 6885 | eval ac_cr=\$\'\\r\'
|
---|
| 6886 | fi
|
---|
[23356] | 6887 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 6888 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
[25148] | 6889 | ac_cs_awk_cr='\\r'
|
---|
[23356] | 6890 | else
|
---|
| 6891 | ac_cs_awk_cr=$ac_cr
|
---|
| 6892 | fi
|
---|
| 6893 |
|
---|
[25169] | 6894 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
[23356] | 6895 | _ACEOF
|
---|
| 6896 |
|
---|
| 6897 |
|
---|
[3745] | 6898 | {
|
---|
[23356] | 6899 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 6900 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 6901 | echo "_ACEOF"
|
---|
| 6902 | } >conf$$subs.sh ||
|
---|
[25169] | 6903 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 6904 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
[23356] | 6905 | ac_delim='%!_!# '
|
---|
| 6906 | for ac_last_try in false false false false false :; do
|
---|
| 6907 | . ./conf$$subs.sh ||
|
---|
[25169] | 6908 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 6909 |
|
---|
| 6910 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 6911 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 6912 | break
|
---|
| 6913 | elif $ac_last_try; then
|
---|
[25169] | 6914 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 6915 | else
|
---|
| 6916 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 6917 | fi
|
---|
| 6918 | done
|
---|
| 6919 | rm -f conf$$subs.sh
|
---|
| 6920 |
|
---|
| 6921 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[25169] | 6922 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
[23356] | 6923 | _ACEOF
|
---|
| 6924 | sed -n '
|
---|
| 6925 | h
|
---|
| 6926 | s/^/S["/; s/!.*/"]=/
|
---|
| 6927 | p
|
---|
| 6928 | g
|
---|
| 6929 | s/^[^!]*!//
|
---|
| 6930 | :repl
|
---|
| 6931 | t repl
|
---|
| 6932 | s/'"$ac_delim"'$//
|
---|
| 6933 | t delim
|
---|
| 6934 | :nl
|
---|
| 6935 | h
|
---|
[25169] | 6936 | s/\(.\{148\}\)..*/\1/
|
---|
[23356] | 6937 | t more1
|
---|
| 6938 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 6939 | p
|
---|
| 6940 | n
|
---|
| 6941 | b repl
|
---|
| 6942 | :more1
|
---|
| 6943 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6944 | p
|
---|
| 6945 | g
|
---|
| 6946 | s/.\{148\}//
|
---|
| 6947 | t nl
|
---|
| 6948 | :delim
|
---|
| 6949 | h
|
---|
[25169] | 6950 | s/\(.\{148\}\)..*/\1/
|
---|
[23356] | 6951 | t more2
|
---|
| 6952 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 6953 | p
|
---|
| 6954 | b
|
---|
| 6955 | :more2
|
---|
| 6956 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6957 | p
|
---|
| 6958 | g
|
---|
| 6959 | s/.\{148\}//
|
---|
| 6960 | t delim
|
---|
| 6961 | ' <conf$$subs.awk | sed '
|
---|
| 6962 | /^[^""]/{
|
---|
| 6963 | N
|
---|
| 6964 | s/\n//
|
---|
[3745] | 6965 | }
|
---|
[23356] | 6966 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 6967 | rm -f conf$$subs.awk
|
---|
| 6968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6969 | _ACAWK
|
---|
[25169] | 6970 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
[23356] | 6971 | for (key in S) S_is_set[key] = 1
|
---|
| 6972 | FS = ""
|
---|
[3745] | 6973 |
|
---|
[23356] | 6974 | }
|
---|
| 6975 | {
|
---|
| 6976 | line = $ 0
|
---|
| 6977 | nfields = split(line, field, "@")
|
---|
| 6978 | substed = 0
|
---|
| 6979 | len = length(field[1])
|
---|
| 6980 | for (i = 2; i < nfields; i++) {
|
---|
| 6981 | key = field[i]
|
---|
| 6982 | keylen = length(key)
|
---|
| 6983 | if (S_is_set[key]) {
|
---|
| 6984 | value = S[key]
|
---|
| 6985 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 6986 | len += length(value) + length(field[++i])
|
---|
| 6987 | substed = 1
|
---|
| 6988 | } else
|
---|
| 6989 | len += 1 + keylen
|
---|
| 6990 | }
|
---|
| 6991 |
|
---|
| 6992 | print line
|
---|
| 6993 | }
|
---|
| 6994 |
|
---|
| 6995 | _ACAWK
|
---|
[10191] | 6996 | _ACEOF
|
---|
[23356] | 6997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6998 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 6999 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 7000 | else
|
---|
| 7001 | cat
|
---|
[25169] | 7002 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
| 7003 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
[23356] | 7004 | _ACEOF
|
---|
[3745] | 7005 |
|
---|
[25169] | 7006 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
| 7007 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
[23356] | 7008 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7009 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7010 | if test "x$srcdir" = x.; then
|
---|
[25169] | 7011 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
| 7012 | h
|
---|
| 7013 | s///
|
---|
| 7014 | s/^/:/
|
---|
| 7015 | s/[ ]*$/:/
|
---|
| 7016 | s/:\$(srcdir):/:/g
|
---|
| 7017 | s/:\${srcdir}:/:/g
|
---|
| 7018 | s/:@srcdir@:/:/g
|
---|
| 7019 | s/^:*//
|
---|
[23356] | 7020 | s/:*$//
|
---|
[25169] | 7021 | x
|
---|
| 7022 | s/\(=[ ]*\).*/\1/
|
---|
| 7023 | G
|
---|
| 7024 | s/\n//
|
---|
[23356] | 7025 | s/^[^=]*=[ ]*$//
|
---|
| 7026 | }'
|
---|
| 7027 | fi
|
---|
[3745] | 7028 |
|
---|
[23356] | 7029 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7030 | fi # test -n "$CONFIG_FILES"
|
---|
[3745] | 7031 |
|
---|
[23356] | 7032 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 7033 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 7034 | # This happens for instance with `./config.status Makefile'.
|
---|
| 7035 | if test -n "$CONFIG_HEADERS"; then
|
---|
[25169] | 7036 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
[23356] | 7037 | BEGIN {
|
---|
[10191] | 7038 | _ACEOF
|
---|
[3745] | 7039 |
|
---|
[23356] | 7040 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 7041 | # here-document in config.status, that substitutes the proper values into
|
---|
| 7042 | # config.h.in to produce config.h.
|
---|
| 7043 |
|
---|
| 7044 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 7045 | # handling of long lines.
|
---|
| 7046 | ac_delim='%!_!# '
|
---|
| 7047 | for ac_last_try in false false :; do
|
---|
[25169] | 7048 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 7049 | if test -z "$ac_tt"; then
|
---|
[23356] | 7050 | break
|
---|
| 7051 | elif $ac_last_try; then
|
---|
[25169] | 7052 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
[23356] | 7053 | else
|
---|
| 7054 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[3745] | 7055 | fi
|
---|
[23356] | 7056 | done
|
---|
[3745] | 7057 |
|
---|
[23356] | 7058 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 7059 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 7060 | # newline sequences.
|
---|
| 7061 |
|
---|
| 7062 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 7063 | sed -n '
|
---|
| 7064 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7065 | t rset
|
---|
| 7066 | :rset
|
---|
| 7067 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7068 | t def
|
---|
| 7069 | d
|
---|
| 7070 | :def
|
---|
| 7071 | s/\\$//
|
---|
| 7072 | t bsnl
|
---|
| 7073 | s/["\\]/\\&/g
|
---|
| 7074 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7075 | D["\1"]=" \3"/p
|
---|
| 7076 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7077 | d
|
---|
| 7078 | :bsnl
|
---|
| 7079 | s/["\\]/\\&/g
|
---|
| 7080 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7081 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7082 | t cont
|
---|
| 7083 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7084 | t cont
|
---|
| 7085 | d
|
---|
| 7086 | :cont
|
---|
| 7087 | n
|
---|
| 7088 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7089 | t clear
|
---|
| 7090 | :clear
|
---|
| 7091 | s/\\$//
|
---|
| 7092 | t bsnlc
|
---|
| 7093 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7094 | d
|
---|
| 7095 | :bsnlc
|
---|
| 7096 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7097 | b cont
|
---|
| 7098 | ' <confdefs.h | sed '
|
---|
| 7099 | s/'"$ac_delim"'/"\\\
|
---|
| 7100 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7101 |
|
---|
| 7102 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7103 | for (key in D) D_is_set[key] = 1
|
---|
| 7104 | FS = ""
|
---|
| 7105 | }
|
---|
| 7106 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7107 | line = \$ 0
|
---|
| 7108 | split(line, arg, " ")
|
---|
| 7109 | if (arg[1] == "#") {
|
---|
| 7110 | defundef = arg[2]
|
---|
| 7111 | mac1 = arg[3]
|
---|
| 7112 | } else {
|
---|
| 7113 | defundef = substr(arg[1], 2)
|
---|
| 7114 | mac1 = arg[2]
|
---|
| 7115 | }
|
---|
| 7116 | split(mac1, mac2, "(") #)
|
---|
| 7117 | macro = mac2[1]
|
---|
| 7118 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7119 | if (D_is_set[macro]) {
|
---|
| 7120 | # Preserve the white space surrounding the "#".
|
---|
| 7121 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7122 | next
|
---|
| 7123 | } else {
|
---|
| 7124 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7125 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7126 | # on some systems where configure will not decide to define it.
|
---|
| 7127 | if (defundef == "undef") {
|
---|
| 7128 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7129 | next
|
---|
| 7130 | }
|
---|
| 7131 | }
|
---|
| 7132 | }
|
---|
| 7133 | { print }
|
---|
| 7134 | _ACAWK
|
---|
[10191] | 7135 | _ACEOF
|
---|
[23356] | 7136 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[25169] | 7137 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
[23356] | 7138 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7139 |
|
---|
| 7140 |
|
---|
| 7141 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
| 7142 | shift
|
---|
| 7143 | for ac_tag
|
---|
| 7144 | do
|
---|
| 7145 | case $ac_tag in
|
---|
| 7146 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[3745] | 7147 | esac
|
---|
[23356] | 7148 | case $ac_mode$ac_tag in
|
---|
| 7149 | :[FHL]*:*);;
|
---|
[25169] | 7150 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
[23356] | 7151 | :[FH]-) ac_tag=-:-;;
|
---|
| 7152 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7153 | esac
|
---|
| 7154 | ac_save_IFS=$IFS
|
---|
| 7155 | IFS=:
|
---|
| 7156 | set x $ac_tag
|
---|
| 7157 | IFS=$ac_save_IFS
|
---|
| 7158 | shift
|
---|
| 7159 | ac_file=$1
|
---|
| 7160 | shift
|
---|
[3745] | 7161 |
|
---|
[23356] | 7162 | case $ac_mode in
|
---|
| 7163 | :L) ac_source=$1;;
|
---|
| 7164 | :[FH])
|
---|
| 7165 | ac_file_inputs=
|
---|
| 7166 | for ac_f
|
---|
| 7167 | do
|
---|
| 7168 | case $ac_f in
|
---|
[25169] | 7169 | -) ac_f="$ac_tmp/stdin";;
|
---|
[23356] | 7170 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7171 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7172 | # because $ac_f cannot contain `:'.
|
---|
| 7173 | test -f "$ac_f" ||
|
---|
| 7174 | case $ac_f in
|
---|
| 7175 | [\\/$]*) false;;
|
---|
| 7176 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7177 | esac ||
|
---|
[25169] | 7178 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
[23356] | 7179 | esac
|
---|
| 7180 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
[25169] | 7181 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
[23356] | 7182 | done
|
---|
| 7183 |
|
---|
| 7184 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7185 | # use $as_me), people would be surprised to read:
|
---|
| 7186 | # /* config.h. Generated by config.status. */
|
---|
| 7187 | configure_input='Generated from '`
|
---|
| 7188 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7189 | `' by configure.'
|
---|
| 7190 | if test x"$ac_file" != x-; then
|
---|
| 7191 | configure_input="$ac_file. $configure_input"
|
---|
[25169] | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
[23356] | 7193 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7194 | fi
|
---|
| 7195 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7196 | case $configure_input in #(
|
---|
| 7197 | *\&* | *\|* | *\\* )
|
---|
| 7198 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7199 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7200 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7201 | esac
|
---|
| 7202 |
|
---|
| 7203 | case $ac_tag in
|
---|
[25169] | 7204 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
| 7205 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
[23356] | 7206 | esac
|
---|
| 7207 | ;;
|
---|
| 7208 | esac
|
---|
| 7209 |
|
---|
| 7210 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[10191] | 7211 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7212 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7213 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[23356] | 7214 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7215 | $as_echo X"$ac_file" |
|
---|
| 7216 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7217 | s//\1/
|
---|
| 7218 | q
|
---|
| 7219 | }
|
---|
| 7220 | /^X\(\/\/\)[^/].*/{
|
---|
| 7221 | s//\1/
|
---|
| 7222 | q
|
---|
| 7223 | }
|
---|
| 7224 | /^X\(\/\/\)$/{
|
---|
| 7225 | s//\1/
|
---|
| 7226 | q
|
---|
| 7227 | }
|
---|
| 7228 | /^X\(\/\).*/{
|
---|
| 7229 | s//\1/
|
---|
| 7230 | q
|
---|
| 7231 | }
|
---|
| 7232 | s/.*/./; q'`
|
---|
[25169] | 7233 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[10191] | 7234 | ac_builddir=.
|
---|
| 7235 |
|
---|
[23356] | 7236 | case "$ac_dir" in
|
---|
| 7237 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7238 | *)
|
---|
| 7239 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7240 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7241 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7242 | case $ac_top_builddir_sub in
|
---|
| 7243 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7244 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7245 | esac ;;
|
---|
| 7246 | esac
|
---|
| 7247 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7248 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7249 | # for backward compatibility:
|
---|
| 7250 | ac_top_builddir=$ac_top_build_prefix
|
---|
[10191] | 7251 |
|
---|
| 7252 | case $srcdir in
|
---|
[23356] | 7253 | .) # We are building in place.
|
---|
[10191] | 7254 | ac_srcdir=.
|
---|
[23356] | 7255 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7256 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7257 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10191] | 7258 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 7259 | ac_top_srcdir=$srcdir
|
---|
| 7260 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7261 | *) # Relative name.
|
---|
| 7262 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7263 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7264 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10191] | 7265 | esac
|
---|
[23356] | 7266 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[3745] | 7267 |
|
---|
[10191] | 7268 |
|
---|
[23356] | 7269 | case $ac_mode in
|
---|
| 7270 | :F)
|
---|
| 7271 | #
|
---|
| 7272 | # CONFIG_FILE
|
---|
| 7273 | #
|
---|
[10191] | 7274 |
|
---|
[3745] | 7275 | case $INSTALL in
|
---|
| 7276 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[23356] | 7277 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[3745] | 7278 | esac
|
---|
[23356] | 7279 | _ACEOF
|
---|
[3745] | 7280 |
|
---|
[23356] | 7281 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7282 | # If the template does not know about datarootdir, expand it.
|
---|
| 7283 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7284 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7285 | ac_sed_dataroot='
|
---|
| 7286 | /datarootdir/ {
|
---|
| 7287 | p
|
---|
| 7288 | q
|
---|
| 7289 | }
|
---|
| 7290 | /@datadir@/p
|
---|
| 7291 | /@docdir@/p
|
---|
| 7292 | /@infodir@/p
|
---|
| 7293 | /@localedir@/p
|
---|
[25169] | 7294 | /@mandir@/p'
|
---|
[23356] | 7295 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7296 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7297 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
[25169] | 7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
[23356] | 7299 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7300 | _ACEOF
|
---|
| 7301 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7302 | ac_datarootdir_hack='
|
---|
| 7303 | s&@datadir@&$datadir&g
|
---|
| 7304 | s&@docdir@&$docdir&g
|
---|
| 7305 | s&@infodir@&$infodir&g
|
---|
| 7306 | s&@localedir@&$localedir&g
|
---|
| 7307 | s&@mandir@&$mandir&g
|
---|
[25169] | 7308 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
[23356] | 7309 | esac
|
---|
| 7310 | _ACEOF
|
---|
[3745] | 7311 |
|
---|
[23356] | 7312 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7313 | # Shell code in configure.ac might set extrasub.
|
---|
| 7314 | # FIXME: do we really want to maintain this feature?
|
---|
| 7315 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7316 | ac_sed_extra="$ac_vpsub
|
---|
[3745] | 7317 | $extrasub
|
---|
[10191] | 7318 | _ACEOF
|
---|
[23356] | 7319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[3745] | 7320 | :t
|
---|
| 7321 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[23356] | 7322 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7323 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7324 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7325 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7326 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7327 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7328 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7329 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7330 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7331 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7332 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7333 | $ac_datarootdir_hack
|
---|
| 7334 | "
|
---|
[25169] | 7335 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
| 7336 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[3745] | 7337 |
|
---|
[23356] | 7338 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
[25169] | 7339 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7340 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
| 7341 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7343 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
[23356] | 7344 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25169] | 7345 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
[3745] | 7346 |
|
---|
[25169] | 7347 | rm -f "$ac_tmp/stdin"
|
---|
[3745] | 7348 | case $ac_file in
|
---|
[25169] | 7349 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
| 7350 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
[23356] | 7351 | esac \
|
---|
[25169] | 7352 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[23356] | 7353 | ;;
|
---|
| 7354 | :H)
|
---|
| 7355 | #
|
---|
| 7356 | # CONFIG_HEADER
|
---|
| 7357 | #
|
---|
[3745] | 7358 | if test x"$ac_file" != x-; then
|
---|
[23356] | 7359 | {
|
---|
| 7360 | $as_echo "/* $configure_input */" \
|
---|
[25169] | 7361 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7362 | } >"$ac_tmp/config.h" \
|
---|
| 7363 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7364 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
[23356] | 7366 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[3745] | 7367 | else
|
---|
[23356] | 7368 | rm -f "$ac_file"
|
---|
[25169] | 7369 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
| 7370 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[3745] | 7371 | fi
|
---|
| 7372 | else
|
---|
[23356] | 7373 | $as_echo "/* $configure_input */" \
|
---|
[25169] | 7374 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
| 7375 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
[3745] | 7376 | fi
|
---|
[23356] | 7377 | ;;
|
---|
[3745] | 7378 |
|
---|
[25169] | 7379 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
[23356] | 7380 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
| 7381 | ;;
|
---|
| 7382 | esac
|
---|
[3745] | 7383 |
|
---|
[10191] | 7384 |
|
---|
[23356] | 7385 | case $ac_file$ac_mode in
|
---|
| 7386 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
[10191] | 7387 |
|
---|
[3745] | 7388 | esac
|
---|
[23356] | 7389 | done # for ac_tag
|
---|
[3745] | 7390 |
|
---|
| 7391 |
|
---|
[25169] | 7392 | as_fn_exit 0
|
---|
[10191] | 7393 | _ACEOF
|
---|
[3745] | 7394 | ac_clean_files=$ac_clean_files_save
|
---|
| 7395 |
|
---|
[23356] | 7396 | test $ac_write_fail = 0 ||
|
---|
[25169] | 7397 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
[10191] | 7398 |
|
---|
[23356] | 7399 |
|
---|
[3745] | 7400 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7401 | # config.status does its own redirection, appending to config.log.
|
---|
| 7402 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7403 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7404 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7405 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7406 | # appended to by config.status. When coming back to configure, we
|
---|
| 7407 | # need to make the FD available again.
|
---|
| 7408 | if test "$no_create" != yes; then
|
---|
| 7409 | ac_cs_success=:
|
---|
[10191] | 7410 | ac_config_status_args=
|
---|
| 7411 | test "$silent" = yes &&
|
---|
| 7412 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[3745] | 7413 | exec 5>/dev/null
|
---|
[10191] | 7414 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[3745] | 7415 | exec 5>>config.log
|
---|
| 7416 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7417 | # would make configure fail if this is the last instruction.
|
---|
[25169] | 7418 | $ac_cs_success || as_fn_exit 1
|
---|
[3745] | 7419 | fi
|
---|
[23356] | 7420 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
[25169] | 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
[23356] | 7422 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7423 | fi
|
---|
[3745] | 7424 |
|
---|
[19835] | 7425 |
|
---|
| 7426 | # To prevent timestamp problems causing bool_parser.c to be generated from bool_parser.y
|
---|
| 7427 | touch src/text/bool_parser.c
|
---|