[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[28325] | 3 | # Generated by GNU Autoconf 2.61.
|
---|
[562] | 4 | #
|
---|
[25149] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
[28325] | 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
[562] | 7 | # This configure script is free software; the Free Software Foundation
|
---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[23802] | 9 | ## --------------------- ##
|
---|
| 10 | ## M4sh Initialization. ##
|
---|
| 11 | ## --------------------- ##
|
---|
[562] | 12 |
|
---|
[25149] | 13 | # Be more Bourne compatible
|
---|
| 14 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[23802] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[8756] | 16 | emulate sh
|
---|
| 17 | NULLCMD=:
|
---|
[28325] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[8756] | 19 | # is contrary to our usage. Disable this feature.
|
---|
| 20 | alias -g '${1+"$@"}'='"$@"'
|
---|
[25149] | 21 | setopt NO_GLOB_SUBST
|
---|
| 22 | else
|
---|
| 23 | case `(set -o) 2>/dev/null` in
|
---|
| 24 | *posix*) set -o posix ;;
|
---|
| 25 | esac
|
---|
| 26 |
|
---|
[8756] | 27 | fi
|
---|
| 28 |
|
---|
[25149] | 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # PATH needs CR
|
---|
| 33 | # Avoid depending upon Character Ranges.
|
---|
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 37 | as_cr_digits='0123456789'
|
---|
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 39 |
|
---|
[28325] | 40 | # The user is always right.
|
---|
| 41 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 42 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 43 | echo "exit 0" >>conf$$.sh
|
---|
| 44 | chmod +x conf$$.sh
|
---|
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 46 | PATH_SEPARATOR=';'
|
---|
[25149] | 47 | else
|
---|
[28325] | 48 | PATH_SEPARATOR=:
|
---|
[25149] | 49 | fi
|
---|
[28325] | 50 | rm -f conf$$.sh
|
---|
[25149] | 51 | fi
|
---|
| 52 |
|
---|
[23802] | 53 | # Support unset when possible.
|
---|
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 55 | as_unset=unset
|
---|
[8756] | 56 | else
|
---|
[23802] | 57 | as_unset=false
|
---|
[8756] | 58 | fi
|
---|
| 59 |
|
---|
| 60 |
|
---|
[25149] | 61 | # IFS
|
---|
| 62 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 63 | # there to prevent editors from complaining about space-tab.
|
---|
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 65 | # splitting by setting IFS to empty value.)
|
---|
[28325] | 66 | as_nl='
|
---|
| 67 | '
|
---|
[25149] | 68 | IFS=" "" $as_nl"
|
---|
| 69 |
|
---|
| 70 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 71 | case $0 in
|
---|
| 72 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 74 | for as_dir in $PATH
|
---|
| 75 | do
|
---|
| 76 | IFS=$as_save_IFS
|
---|
| 77 | test -z "$as_dir" && as_dir=.
|
---|
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 79 | done
|
---|
| 80 | IFS=$as_save_IFS
|
---|
| 81 |
|
---|
| 82 | ;;
|
---|
| 83 | esac
|
---|
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 85 | # in which case we are not to be found in the path.
|
---|
| 86 | if test "x$as_myself" = x; then
|
---|
| 87 | as_myself=$0
|
---|
| 88 | fi
|
---|
| 89 | if test ! -f "$as_myself"; then
|
---|
[28325] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25149] | 91 | { (exit 1); exit 1; }
|
---|
| 92 | fi
|
---|
| 93 |
|
---|
[23802] | 94 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[25149] | 95 | for as_var in ENV MAIL MAILPATH
|
---|
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 97 | done
|
---|
[8756] | 98 | PS1='$ '
|
---|
| 99 | PS2='> '
|
---|
| 100 | PS4='+ '
|
---|
| 101 |
|
---|
| 102 | # NLS nuisances.
|
---|
[28325] | 103 | for as_var in \
|
---|
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 106 | LC_TELEPHONE LC_TIME
|
---|
| 107 | do
|
---|
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 109 | eval $as_var=C; export $as_var
|
---|
| 110 | else
|
---|
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 112 | fi
|
---|
| 113 | done
|
---|
[8756] | 114 |
|
---|
[23802] | 115 | # Required to use basename.
|
---|
[25149] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[8756] | 118 | as_expr=expr
|
---|
| 119 | else
|
---|
| 120 | as_expr=false
|
---|
| 121 | fi
|
---|
| 122 |
|
---|
[25149] | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[8756] | 124 | as_basename=basename
|
---|
| 125 | else
|
---|
| 126 | as_basename=false
|
---|
| 127 | fi
|
---|
| 128 |
|
---|
| 129 |
|
---|
[23802] | 130 | # Name of the executable.
|
---|
[25149] | 131 | as_me=`$as_basename -- "$0" ||
|
---|
[8756] | 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 133 | X"$0" : 'X\(//\)$' \| \
|
---|
[25149] | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[28325] | 135 | echo X/"$0" |
|
---|
[25149] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 137 | s//\1/
|
---|
| 138 | q
|
---|
| 139 | }
|
---|
| 140 | /^X\/\(\/\/\)$/{
|
---|
| 141 | s//\1/
|
---|
| 142 | q
|
---|
| 143 | }
|
---|
| 144 | /^X\/\(\/\).*/{
|
---|
| 145 | s//\1/
|
---|
| 146 | q
|
---|
| 147 | }
|
---|
| 148 | s/.*/./; q'`
|
---|
[8756] | 149 |
|
---|
[25149] | 150 | # CDPATH.
|
---|
| 151 | $as_unset CDPATH
|
---|
[23802] | 152 |
|
---|
[8756] | 153 |
|
---|
[25149] | 154 | if test "x$CONFIG_SHELL" = x; then
|
---|
| 155 | if (eval ":") 2>/dev/null; then
|
---|
| 156 | as_have_required=yes
|
---|
| 157 | else
|
---|
| 158 | as_have_required=no
|
---|
[23802] | 159 | fi
|
---|
[8756] | 160 |
|
---|
[28325] | 161 | if test $as_have_required = yes && (eval ":
|
---|
[25149] | 162 | (as_func_return () {
|
---|
| 163 | (exit \$1)
|
---|
| 164 | }
|
---|
| 165 | as_func_success () {
|
---|
| 166 | as_func_return 0
|
---|
| 167 | }
|
---|
| 168 | as_func_failure () {
|
---|
| 169 | as_func_return 1
|
---|
| 170 | }
|
---|
| 171 | as_func_ret_success () {
|
---|
| 172 | return 0
|
---|
| 173 | }
|
---|
| 174 | as_func_ret_failure () {
|
---|
| 175 | return 1
|
---|
| 176 | }
|
---|
[23802] | 177 |
|
---|
[25149] | 178 | exitcode=0
|
---|
| 179 | if as_func_success; then
|
---|
| 180 | :
|
---|
| 181 | else
|
---|
| 182 | exitcode=1
|
---|
| 183 | echo as_func_success failed.
|
---|
| 184 | fi
|
---|
[23802] | 185 |
|
---|
[25149] | 186 | if as_func_failure; then
|
---|
| 187 | exitcode=1
|
---|
| 188 | echo as_func_failure succeeded.
|
---|
| 189 | fi
|
---|
| 190 |
|
---|
| 191 | if as_func_ret_success; then
|
---|
| 192 | :
|
---|
| 193 | else
|
---|
| 194 | exitcode=1
|
---|
| 195 | echo as_func_ret_success failed.
|
---|
| 196 | fi
|
---|
| 197 |
|
---|
| 198 | if as_func_ret_failure; then
|
---|
| 199 | exitcode=1
|
---|
| 200 | echo as_func_ret_failure succeeded.
|
---|
| 201 | fi
|
---|
| 202 |
|
---|
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
| 204 | :
|
---|
| 205 | else
|
---|
| 206 | exitcode=1
|
---|
| 207 | echo positional parameters were not saved.
|
---|
| 208 | fi
|
---|
| 209 |
|
---|
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; }
|
---|
| 211 |
|
---|
| 212 | (
|
---|
| 213 | as_lineno_1=\$LINENO
|
---|
| 214 | as_lineno_2=\$LINENO
|
---|
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
---|
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
---|
| 217 | ") 2> /dev/null; then
|
---|
| 218 | :
|
---|
| 219 | else
|
---|
| 220 | as_candidate_shells=
|
---|
[23802] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 223 | do
|
---|
| 224 | IFS=$as_save_IFS
|
---|
| 225 | test -z "$as_dir" && as_dir=.
|
---|
[25149] | 226 | case $as_dir in
|
---|
[23802] | 227 | /*)
|
---|
[25149] | 228 | for as_base in sh bash ksh sh5; do
|
---|
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
---|
| 230 | done;;
|
---|
| 231 | esac
|
---|
| 232 | done
|
---|
| 233 | IFS=$as_save_IFS
|
---|
| 234 |
|
---|
| 235 |
|
---|
| 236 | for as_shell in $as_candidate_shells $SHELL; do
|
---|
| 237 | # Try only shells that exist, to save several forks.
|
---|
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF
|
---|
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 241 | emulate sh
|
---|
| 242 | NULLCMD=:
|
---|
[28325] | 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[25149] | 244 | # is contrary to our usage. Disable this feature.
|
---|
| 245 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 246 | setopt NO_GLOB_SUBST
|
---|
| 247 | else
|
---|
| 248 | case `(set -o) 2>/dev/null` in
|
---|
| 249 | *posix*) set -o posix ;;
|
---|
| 250 | esac
|
---|
| 251 |
|
---|
| 252 | fi
|
---|
| 253 |
|
---|
| 254 |
|
---|
| 255 | :
|
---|
| 256 | _ASEOF
|
---|
| 257 | }; then
|
---|
| 258 | CONFIG_SHELL=$as_shell
|
---|
| 259 | as_have_required=yes
|
---|
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF
|
---|
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 262 | emulate sh
|
---|
| 263 | NULLCMD=:
|
---|
[28325] | 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[25149] | 265 | # is contrary to our usage. Disable this feature.
|
---|
| 266 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 267 | setopt NO_GLOB_SUBST
|
---|
| 268 | else
|
---|
| 269 | case `(set -o) 2>/dev/null` in
|
---|
| 270 | *posix*) set -o posix ;;
|
---|
| 271 | esac
|
---|
| 272 |
|
---|
| 273 | fi
|
---|
| 274 |
|
---|
| 275 |
|
---|
| 276 | :
|
---|
| 277 | (as_func_return () {
|
---|
| 278 | (exit $1)
|
---|
| 279 | }
|
---|
| 280 | as_func_success () {
|
---|
| 281 | as_func_return 0
|
---|
| 282 | }
|
---|
| 283 | as_func_failure () {
|
---|
| 284 | as_func_return 1
|
---|
| 285 | }
|
---|
| 286 | as_func_ret_success () {
|
---|
| 287 | return 0
|
---|
| 288 | }
|
---|
| 289 | as_func_ret_failure () {
|
---|
| 290 | return 1
|
---|
| 291 | }
|
---|
| 292 |
|
---|
| 293 | exitcode=0
|
---|
| 294 | if as_func_success; then
|
---|
| 295 | :
|
---|
| 296 | else
|
---|
| 297 | exitcode=1
|
---|
| 298 | echo as_func_success failed.
|
---|
| 299 | fi
|
---|
| 300 |
|
---|
| 301 | if as_func_failure; then
|
---|
| 302 | exitcode=1
|
---|
| 303 | echo as_func_failure succeeded.
|
---|
| 304 | fi
|
---|
| 305 |
|
---|
| 306 | if as_func_ret_success; then
|
---|
| 307 | :
|
---|
| 308 | else
|
---|
| 309 | exitcode=1
|
---|
| 310 | echo as_func_ret_success failed.
|
---|
| 311 | fi
|
---|
| 312 |
|
---|
| 313 | if as_func_ret_failure; then
|
---|
| 314 | exitcode=1
|
---|
| 315 | echo as_func_ret_failure succeeded.
|
---|
| 316 | fi
|
---|
| 317 |
|
---|
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then
|
---|
| 319 | :
|
---|
| 320 | else
|
---|
| 321 | exitcode=1
|
---|
| 322 | echo positional parameters were not saved.
|
---|
| 323 | fi
|
---|
| 324 |
|
---|
| 325 | test $exitcode = 0) || { (exit 1); exit 1; }
|
---|
| 326 |
|
---|
| 327 | (
|
---|
[23802] | 328 | as_lineno_1=$LINENO
|
---|
| 329 | as_lineno_2=$LINENO
|
---|
| 330 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[25149] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
---|
[23802] | 332 |
|
---|
[25149] | 333 | _ASEOF
|
---|
| 334 | }; then
|
---|
| 335 | break
|
---|
| 336 | fi
|
---|
| 337 |
|
---|
| 338 | fi
|
---|
| 339 |
|
---|
| 340 | done
|
---|
| 341 |
|
---|
| 342 | if test "x$CONFIG_SHELL" != x; then
|
---|
| 343 | for as_var in BASH_ENV ENV
|
---|
[28325] | 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 345 | done
|
---|
| 346 | export CONFIG_SHELL
|
---|
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
[25149] | 348 | fi
|
---|
| 349 |
|
---|
| 350 |
|
---|
| 351 | if test $as_have_required = no; then
|
---|
| 352 | echo This script requires a shell more modern than all the
|
---|
| 353 | echo shells that I found on your system. Please install a
|
---|
| 354 | echo modern shell, or manually run the script under such a
|
---|
| 355 | echo shell if you do have one.
|
---|
| 356 | { (exit 1); exit 1; }
|
---|
| 357 | fi
|
---|
| 358 |
|
---|
| 359 |
|
---|
| 360 | fi
|
---|
| 361 |
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
| 364 |
|
---|
| 365 |
|
---|
| 366 | (eval "as_func_return () {
|
---|
| 367 | (exit \$1)
|
---|
| 368 | }
|
---|
| 369 | as_func_success () {
|
---|
| 370 | as_func_return 0
|
---|
| 371 | }
|
---|
| 372 | as_func_failure () {
|
---|
| 373 | as_func_return 1
|
---|
| 374 | }
|
---|
| 375 | as_func_ret_success () {
|
---|
| 376 | return 0
|
---|
| 377 | }
|
---|
| 378 | as_func_ret_failure () {
|
---|
| 379 | return 1
|
---|
| 380 | }
|
---|
| 381 |
|
---|
| 382 | exitcode=0
|
---|
| 383 | if as_func_success; then
|
---|
| 384 | :
|
---|
| 385 | else
|
---|
| 386 | exitcode=1
|
---|
| 387 | echo as_func_success failed.
|
---|
| 388 | fi
|
---|
| 389 |
|
---|
| 390 | if as_func_failure; then
|
---|
| 391 | exitcode=1
|
---|
| 392 | echo as_func_failure succeeded.
|
---|
| 393 | fi
|
---|
| 394 |
|
---|
| 395 | if as_func_ret_success; then
|
---|
| 396 | :
|
---|
| 397 | else
|
---|
| 398 | exitcode=1
|
---|
| 399 | echo as_func_ret_success failed.
|
---|
| 400 | fi
|
---|
| 401 |
|
---|
| 402 | if as_func_ret_failure; then
|
---|
| 403 | exitcode=1
|
---|
| 404 | echo as_func_ret_failure succeeded.
|
---|
| 405 | fi
|
---|
| 406 |
|
---|
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
| 408 | :
|
---|
| 409 | else
|
---|
| 410 | exitcode=1
|
---|
| 411 | echo positional parameters were not saved.
|
---|
| 412 | fi
|
---|
| 413 |
|
---|
| 414 | test \$exitcode = 0") || {
|
---|
| 415 | echo No shell found that supports shell functions.
|
---|
[28325] | 416 | echo Please tell [email protected] about your system,
|
---|
| 417 | echo including any error possibly output before this
|
---|
| 418 | echo message
|
---|
[25149] | 419 | }
|
---|
| 420 |
|
---|
| 421 |
|
---|
| 422 |
|
---|
| 423 | as_lineno_1=$LINENO
|
---|
| 424 | as_lineno_2=$LINENO
|
---|
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
| 427 |
|
---|
[23802] | 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[25149] | 430 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
| 431 | # does the real work. The second script uses 'N' to pair each
|
---|
| 432 | # line-number line with the line containing $LINENO, and appends
|
---|
| 433 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
| 434 | # case at line end.
|
---|
[23802] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[25149] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 438 | sed -n '
|
---|
| 439 | p
|
---|
| 440 | /[$]LINENO/=
|
---|
| 441 | ' <$as_myself |
|
---|
[8756] | 442 | sed '
|
---|
[25149] | 443 | s/[$]LINENO.*/&-/
|
---|
| 444 | t lineno
|
---|
| 445 | b
|
---|
| 446 | :lineno
|
---|
[8756] | 447 | N
|
---|
[25149] | 448 | :loop
|
---|
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[8756] | 450 | t loop
|
---|
[25149] | 451 | s/-\n.*//
|
---|
[8756] | 452 | ' >$as_me.lineno &&
|
---|
[25149] | 453 | chmod +x "$as_me.lineno" ||
|
---|
[28325] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
[23802] | 455 | { (exit 1); exit 1; }; }
|
---|
[8756] | 456 |
|
---|
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 458 | # (the dirname of $[0] is not the place where we might find the
|
---|
[25149] | 459 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 460 | . "./$as_me.lineno"
|
---|
[8756] | 461 | # Exit status is that of the last command.
|
---|
| 462 | exit
|
---|
| 463 | }
|
---|
| 464 |
|
---|
[23802] | 465 |
|
---|
[25149] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 467 | as_dirname=dirname
|
---|
| 468 | else
|
---|
| 469 | as_dirname=false
|
---|
| 470 | fi
|
---|
| 471 |
|
---|
| 472 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 473 | case `echo -n x` in
|
---|
| 474 | -n*)
|
---|
| 475 | case `echo 'x\c'` in
|
---|
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 477 | *) ECHO_C='\c';;
|
---|
| 478 | esac;;
|
---|
| 479 | *)
|
---|
| 480 | ECHO_N='-n';;
|
---|
[8756] | 481 | esac
|
---|
[28325] | 482 |
|
---|
[25149] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[23802] | 485 | as_expr=expr
|
---|
[8756] | 486 | else
|
---|
[23802] | 487 | as_expr=false
|
---|
[8756] | 488 | fi
|
---|
[23802] | 489 |
|
---|
| 490 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[25149] | 491 | if test -d conf$$.dir; then
|
---|
| 492 | rm -f conf$$.dir/conf$$.file
|
---|
| 493 | else
|
---|
| 494 | rm -f conf$$.dir
|
---|
[28325] | 495 | mkdir conf$$.dir
|
---|
[25149] | 496 | fi
|
---|
[28325] | 497 | echo >conf$$.file
|
---|
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 499 | as_ln_s='ln -s'
|
---|
| 500 | # ... but there are two gotchas:
|
---|
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 503 | # In both cases, we have to default to `cp -p'.
|
---|
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[23802] | 505 | as_ln_s='cp -p'
|
---|
[28325] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 507 | as_ln_s=ln
|
---|
[8756] | 508 | else
|
---|
| 509 | as_ln_s='cp -p'
|
---|
| 510 | fi
|
---|
[25149] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 512 | rmdir conf$$.dir 2>/dev/null
|
---|
[8756] | 513 |
|
---|
| 514 | if mkdir -p . 2>/dev/null; then
|
---|
[23802] | 515 | as_mkdir_p=:
|
---|
[8756] | 516 | else
|
---|
| 517 | test -d ./-p && rmdir ./-p
|
---|
| 518 | as_mkdir_p=false
|
---|
| 519 | fi
|
---|
| 520 |
|
---|
[25149] | 521 | if test -x / >/dev/null 2>&1; then
|
---|
| 522 | as_test_x='test -x'
|
---|
| 523 | else
|
---|
| 524 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 525 | as_ls_L_option=L
|
---|
| 526 | else
|
---|
| 527 | as_ls_L_option=
|
---|
| 528 | fi
|
---|
| 529 | as_test_x='
|
---|
| 530 | eval sh -c '\''
|
---|
| 531 | if test -d "$1"; then
|
---|
[28325] | 532 | test -d "$1/.";
|
---|
[25149] | 533 | else
|
---|
| 534 | case $1 in
|
---|
[28325] | 535 | -*)set "./$1";;
|
---|
[25149] | 536 | esac;
|
---|
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
| 538 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 539 | '\'' sh
|
---|
| 540 | '
|
---|
| 541 | fi
|
---|
| 542 | as_executable_p=$as_test_x
|
---|
[8756] | 543 |
|
---|
| 544 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 546 |
|
---|
| 547 | # Sed expression to map a string onto a valid variable name.
|
---|
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 549 |
|
---|
| 550 |
|
---|
| 551 |
|
---|
[25149] | 552 | exec 7<&0 </dev/null 6>&1
|
---|
[23802] | 553 |
|
---|
[8756] | 554 | # Name of the host.
|
---|
[23802] | 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
[8756] | 556 | # so uname gets run too.
|
---|
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 558 |
|
---|
| 559 | #
|
---|
| 560 | # Initializations.
|
---|
| 561 | #
|
---|
[562] | 562 | ac_default_prefix=/usr/local
|
---|
[25149] | 563 | ac_clean_files=
|
---|
[8756] | 564 | ac_config_libobj_dir=.
|
---|
[25149] | 565 | LIBOBJS=
|
---|
[8756] | 566 | cross_compiling=no
|
---|
| 567 | subdirs=
|
---|
| 568 | MFLAGS=
|
---|
| 569 | MAKEFLAGS=
|
---|
[23802] | 570 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[562] | 571 |
|
---|
[8756] | 572 | # Identity of this package.
|
---|
| 573 | PACKAGE_NAME=
|
---|
| 574 | PACKAGE_TARNAME=
|
---|
| 575 | PACKAGE_VERSION=
|
---|
| 576 | PACKAGE_STRING=
|
---|
| 577 | PACKAGE_BUGREPORT=
|
---|
| 578 |
|
---|
| 579 | # Factoring default headers for most tests.
|
---|
| 580 | ac_includes_default="\
|
---|
| 581 | #include <stdio.h>
|
---|
[25149] | 582 | #ifdef HAVE_SYS_TYPES_H
|
---|
[8756] | 583 | # include <sys/types.h>
|
---|
| 584 | #endif
|
---|
[25149] | 585 | #ifdef HAVE_SYS_STAT_H
|
---|
[8756] | 586 | # include <sys/stat.h>
|
---|
| 587 | #endif
|
---|
[25149] | 588 | #ifdef STDC_HEADERS
|
---|
[8756] | 589 | # include <stdlib.h>
|
---|
| 590 | # include <stddef.h>
|
---|
| 591 | #else
|
---|
[25149] | 592 | # ifdef HAVE_STDLIB_H
|
---|
[8756] | 593 | # include <stdlib.h>
|
---|
| 594 | # endif
|
---|
| 595 | #endif
|
---|
[25149] | 596 | #ifdef HAVE_STRING_H
|
---|
| 597 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[8756] | 598 | # include <memory.h>
|
---|
| 599 | # endif
|
---|
| 600 | # include <string.h>
|
---|
| 601 | #endif
|
---|
[25149] | 602 | #ifdef HAVE_STRINGS_H
|
---|
[8756] | 603 | # include <strings.h>
|
---|
| 604 | #endif
|
---|
[25149] | 605 | #ifdef HAVE_INTTYPES_H
|
---|
[8756] | 606 | # include <inttypes.h>
|
---|
| 607 | #endif
|
---|
[25149] | 608 | #ifdef HAVE_STDINT_H
|
---|
| 609 | # include <stdint.h>
|
---|
| 610 | #endif
|
---|
| 611 | #ifdef HAVE_UNISTD_H
|
---|
[8756] | 612 | # include <unistd.h>
|
---|
| 613 | #endif"
|
---|
| 614 |
|
---|
[28325] | 615 | ac_subst_vars='SHELL
|
---|
| 616 | PATH_SEPARATOR
|
---|
| 617 | PACKAGE_NAME
|
---|
| 618 | PACKAGE_TARNAME
|
---|
| 619 | PACKAGE_VERSION
|
---|
| 620 | PACKAGE_STRING
|
---|
| 621 | PACKAGE_BUGREPORT
|
---|
| 622 | exec_prefix
|
---|
| 623 | prefix
|
---|
| 624 | program_transform_name
|
---|
| 625 | bindir
|
---|
| 626 | sbindir
|
---|
| 627 | libexecdir
|
---|
| 628 | datarootdir
|
---|
| 629 | datadir
|
---|
| 630 | sysconfdir
|
---|
| 631 | sharedstatedir
|
---|
| 632 | localstatedir
|
---|
| 633 | includedir
|
---|
| 634 | oldincludedir
|
---|
| 635 | docdir
|
---|
| 636 | infodir
|
---|
| 637 | htmldir
|
---|
| 638 | dvidir
|
---|
| 639 | pdfdir
|
---|
| 640 | psdir
|
---|
| 641 | libdir
|
---|
| 642 | localedir
|
---|
| 643 | mandir
|
---|
| 644 | DEFS
|
---|
| 645 | ECHO_C
|
---|
| 646 | ECHO_N
|
---|
| 647 | ECHO_T
|
---|
| 648 | LIBS
|
---|
| 649 | build_alias
|
---|
| 650 | host_alias
|
---|
| 651 | target_alias
|
---|
| 652 | PACKAGE
|
---|
| 653 | VERSION
|
---|
| 654 | USE_FASTCGI
|
---|
| 655 | USE_LANGACTION
|
---|
| 656 | USE_CORBA
|
---|
| 657 | MICO_DIR
|
---|
| 658 | ENABLE_JAVA
|
---|
| 659 | USE_Z3950
|
---|
| 660 | USE_YAZ
|
---|
| 661 | USE_WVWARE
|
---|
| 662 | USE_JDBM
|
---|
| 663 | USE_GDBM
|
---|
| 664 | ENABLE_ACCENTFOLD
|
---|
| 665 | USE_SQLITE
|
---|
| 666 | USE_RSS
|
---|
| 667 | USE_APACHE_HTTPD
|
---|
| 668 | ENABLE_JNI
|
---|
| 669 | ENABLE_MG
|
---|
| 670 | ENABLE_MGPP
|
---|
| 671 | ENABLE_LUCENE
|
---|
| 672 | ENABLE_GNOMELIB_EXT
|
---|
| 673 | LDFLAGS
|
---|
| 674 | CFLAGS
|
---|
| 675 | CC
|
---|
| 676 | CPPFLAGS
|
---|
| 677 | ac_ct_CC
|
---|
| 678 | EXEEXT
|
---|
| 679 | OBJEXT
|
---|
| 680 | CXX
|
---|
| 681 | CXXFLAGS
|
---|
| 682 | ac_ct_CXX
|
---|
| 683 | AWK
|
---|
| 684 | YACC
|
---|
| 685 | YFLAGS
|
---|
| 686 | build
|
---|
| 687 | build_cpu
|
---|
| 688 | build_vendor
|
---|
| 689 | build_os
|
---|
| 690 | host
|
---|
| 691 | host_cpu
|
---|
| 692 | host_vendor
|
---|
| 693 | host_os
|
---|
| 694 | target
|
---|
| 695 | target_cpu
|
---|
| 696 | target_vendor
|
---|
| 697 | target_os
|
---|
| 698 | INSTALL_PROGRAM
|
---|
| 699 | INSTALL_SCRIPT
|
---|
| 700 | INSTALL_DATA
|
---|
| 701 | LN_S
|
---|
| 702 | SET_MAKE
|
---|
| 703 | RANLIB
|
---|
| 704 | ARCH_DEP_FLAGS
|
---|
| 705 | MICO_VER
|
---|
| 706 | CPP
|
---|
| 707 | GREP
|
---|
| 708 | EGREP
|
---|
| 709 | U
|
---|
| 710 | ANSI2KNR
|
---|
| 711 | ALLOCA
|
---|
| 712 | LIBOBJS
|
---|
| 713 | STATIC
|
---|
| 714 | gsdlos
|
---|
| 715 | MODULEDIRS
|
---|
[25149] | 716 | subdirs
|
---|
[28325] | 717 | LTLIBOBJS'
|
---|
[8756] | 718 | ac_subst_files=''
|
---|
[25149] | 719 | ac_precious_vars='build_alias
|
---|
| 720 | host_alias
|
---|
| 721 | target_alias
|
---|
| 722 | CC
|
---|
| 723 | CFLAGS
|
---|
| 724 | LDFLAGS
|
---|
| 725 | LIBS
|
---|
| 726 | CPPFLAGS
|
---|
| 727 | CXX
|
---|
| 728 | CXXFLAGS
|
---|
| 729 | CCC
|
---|
| 730 | YACC
|
---|
| 731 | YFLAGS
|
---|
| 732 | CPP'
|
---|
| 733 | ac_subdirs_all='common-src
|
---|
| 734 | build-src
|
---|
| 735 | runtime-src'
|
---|
[8756] | 736 |
|
---|
[562] | 737 | # Initialize some variables set by options.
|
---|
[8756] | 738 | ac_init_help=
|
---|
| 739 | ac_init_version=false
|
---|
[562] | 740 | # The variables have the same names as the options, with
|
---|
| 741 | # dashes changed to underlines.
|
---|
[8756] | 742 | cache_file=/dev/null
|
---|
[562] | 743 | exec_prefix=NONE
|
---|
| 744 | no_create=
|
---|
| 745 | no_recursion=
|
---|
| 746 | prefix=NONE
|
---|
| 747 | program_prefix=NONE
|
---|
| 748 | program_suffix=NONE
|
---|
| 749 | program_transform_name=s,x,x,
|
---|
| 750 | silent=
|
---|
| 751 | site=
|
---|
| 752 | srcdir=
|
---|
| 753 | verbose=
|
---|
| 754 | x_includes=NONE
|
---|
| 755 | x_libraries=NONE
|
---|
[8756] | 756 |
|
---|
| 757 | # Installation directory options.
|
---|
| 758 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 759 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 760 | # by default will actually change.
|
---|
| 761 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[25149] | 762 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[562] | 763 | bindir='${exec_prefix}/bin'
|
---|
| 764 | sbindir='${exec_prefix}/sbin'
|
---|
| 765 | libexecdir='${exec_prefix}/libexec'
|
---|
[25149] | 766 | datarootdir='${prefix}/share'
|
---|
| 767 | datadir='${datarootdir}'
|
---|
[562] | 768 | sysconfdir='${prefix}/etc'
|
---|
| 769 | sharedstatedir='${prefix}/com'
|
---|
| 770 | localstatedir='${prefix}/var'
|
---|
| 771 | includedir='${prefix}/include'
|
---|
| 772 | oldincludedir='/usr/include'
|
---|
[25149] | 773 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 774 | infodir='${datarootdir}/info'
|
---|
| 775 | htmldir='${docdir}'
|
---|
| 776 | dvidir='${docdir}'
|
---|
| 777 | pdfdir='${docdir}'
|
---|
| 778 | psdir='${docdir}'
|
---|
| 779 | libdir='${exec_prefix}/lib'
|
---|
| 780 | localedir='${datarootdir}/locale'
|
---|
| 781 | mandir='${datarootdir}/man'
|
---|
[562] | 782 |
|
---|
| 783 | ac_prev=
|
---|
[25149] | 784 | ac_dashdash=
|
---|
[562] | 785 | for ac_option
|
---|
| 786 | do
|
---|
| 787 | # If the previous option needs an argument, assign it.
|
---|
| 788 | if test -n "$ac_prev"; then
|
---|
[25149] | 789 | eval $ac_prev=\$ac_option
|
---|
[562] | 790 | ac_prev=
|
---|
| 791 | continue
|
---|
| 792 | fi
|
---|
| 793 |
|
---|
[25149] | 794 | case $ac_option in
|
---|
| 795 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 796 | *) ac_optarg=yes ;;
|
---|
| 797 | esac
|
---|
[562] | 798 |
|
---|
| 799 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 800 |
|
---|
[25149] | 801 | case $ac_dashdash$ac_option in
|
---|
| 802 | --)
|
---|
| 803 | ac_dashdash=yes ;;
|
---|
[562] | 804 |
|
---|
| 805 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 806 | ac_prev=bindir ;;
|
---|
| 807 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 808 | bindir=$ac_optarg ;;
|
---|
[562] | 809 |
|
---|
| 810 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 811 | ac_prev=build_alias ;;
|
---|
[562] | 812 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 813 | build_alias=$ac_optarg ;;
|
---|
[562] | 814 |
|
---|
| 815 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 816 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 817 | ac_prev=cache_file ;;
|
---|
| 818 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 819 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 820 | cache_file=$ac_optarg ;;
|
---|
[562] | 821 |
|
---|
[8756] | 822 | --config-cache | -C)
|
---|
| 823 | cache_file=config.cache ;;
|
---|
| 824 |
|
---|
[25149] | 825 | -datadir | --datadir | --datadi | --datad)
|
---|
[562] | 826 | ac_prev=datadir ;;
|
---|
[25149] | 827 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[8756] | 828 | datadir=$ac_optarg ;;
|
---|
[562] | 829 |
|
---|
[25149] | 830 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 831 | | --dataroo | --dataro | --datar)
|
---|
| 832 | ac_prev=datarootdir ;;
|
---|
| 833 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 834 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 835 | datarootdir=$ac_optarg ;;
|
---|
| 836 |
|
---|
[562] | 837 | -disable-* | --disable-*)
|
---|
[28325] | 838 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 839 | # Reject names that are not valid shell variable names.
|
---|
[28325] | 840 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 841 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
[23802] | 842 | { (exit 1); exit 1; }; }
|
---|
[28325] | 843 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
| 844 | eval enable_$ac_feature=no ;;
|
---|
[562] | 845 |
|
---|
[25149] | 846 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 847 | ac_prev=docdir ;;
|
---|
| 848 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 849 | docdir=$ac_optarg ;;
|
---|
| 850 |
|
---|
| 851 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 852 | ac_prev=dvidir ;;
|
---|
| 853 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 854 | dvidir=$ac_optarg ;;
|
---|
| 855 |
|
---|
[562] | 856 | -enable-* | --enable-*)
|
---|
[28325] | 857 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 858 | # Reject names that are not valid shell variable names.
|
---|
[28325] | 859 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 860 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
[23802] | 861 | { (exit 1); exit 1; }; }
|
---|
[28325] | 862 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
| 863 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
[562] | 864 |
|
---|
| 865 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 866 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 867 | | --exec | --exe | --ex)
|
---|
| 868 | ac_prev=exec_prefix ;;
|
---|
| 869 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 870 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 871 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 872 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 873 |
|
---|
| 874 | -gas | --gas | --ga | --g)
|
---|
| 875 | # Obsolete; use --with-gas.
|
---|
| 876 | with_gas=yes ;;
|
---|
| 877 |
|
---|
[8756] | 878 | -help | --help | --hel | --he | -h)
|
---|
| 879 | ac_init_help=long ;;
|
---|
| 880 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 881 | ac_init_help=recursive ;;
|
---|
| 882 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 883 | ac_init_help=short ;;
|
---|
[562] | 884 |
|
---|
| 885 | -host | --host | --hos | --ho)
|
---|
[8756] | 886 | ac_prev=host_alias ;;
|
---|
[562] | 887 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 888 | host_alias=$ac_optarg ;;
|
---|
[562] | 889 |
|
---|
[25149] | 890 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 891 | ac_prev=htmldir ;;
|
---|
| 892 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 893 | | --ht=*)
|
---|
| 894 | htmldir=$ac_optarg ;;
|
---|
| 895 |
|
---|
[562] | 896 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 897 | | --includ | --inclu | --incl | --inc)
|
---|
| 898 | ac_prev=includedir ;;
|
---|
| 899 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 900 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 901 | includedir=$ac_optarg ;;
|
---|
[562] | 902 |
|
---|
| 903 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 904 | ac_prev=infodir ;;
|
---|
| 905 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 906 | infodir=$ac_optarg ;;
|
---|
[562] | 907 |
|
---|
| 908 | -libdir | --libdir | --libdi | --libd)
|
---|
| 909 | ac_prev=libdir ;;
|
---|
| 910 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 911 | libdir=$ac_optarg ;;
|
---|
[562] | 912 |
|
---|
| 913 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 914 | | --libexe | --libex | --libe)
|
---|
| 915 | ac_prev=libexecdir ;;
|
---|
| 916 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 917 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 918 | libexecdir=$ac_optarg ;;
|
---|
[562] | 919 |
|
---|
[25149] | 920 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 921 | ac_prev=localedir ;;
|
---|
| 922 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 923 | localedir=$ac_optarg ;;
|
---|
| 924 |
|
---|
[562] | 925 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[25149] | 926 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[562] | 927 | ac_prev=localstatedir ;;
|
---|
| 928 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[25149] | 929 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[8756] | 930 | localstatedir=$ac_optarg ;;
|
---|
[562] | 931 |
|
---|
| 932 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 933 | ac_prev=mandir ;;
|
---|
| 934 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 935 | mandir=$ac_optarg ;;
|
---|
[562] | 936 |
|
---|
| 937 | -nfp | --nfp | --nf)
|
---|
| 938 | # Obsolete; use --without-fp.
|
---|
| 939 | with_fp=no ;;
|
---|
| 940 |
|
---|
| 941 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 942 | | --no-cr | --no-c | -n)
|
---|
[562] | 943 | no_create=yes ;;
|
---|
| 944 |
|
---|
| 945 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 946 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 947 | no_recursion=yes ;;
|
---|
| 948 |
|
---|
| 949 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 950 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 951 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 952 | ac_prev=oldincludedir ;;
|
---|
| 953 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 954 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 955 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 956 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 957 |
|
---|
| 958 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 959 | ac_prev=prefix ;;
|
---|
| 960 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 961 | prefix=$ac_optarg ;;
|
---|
[562] | 962 |
|
---|
| 963 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 964 | | --program-pre | --program-pr | --program-p)
|
---|
| 965 | ac_prev=program_prefix ;;
|
---|
| 966 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 967 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 968 | program_prefix=$ac_optarg ;;
|
---|
[562] | 969 |
|
---|
| 970 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 971 | | --program-suf | --program-su | --program-s)
|
---|
| 972 | ac_prev=program_suffix ;;
|
---|
| 973 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 974 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 975 | program_suffix=$ac_optarg ;;
|
---|
[562] | 976 |
|
---|
| 977 | -program-transform-name | --program-transform-name \
|
---|
| 978 | | --program-transform-nam | --program-transform-na \
|
---|
| 979 | | --program-transform-n | --program-transform- \
|
---|
| 980 | | --program-transform | --program-transfor \
|
---|
| 981 | | --program-transfo | --program-transf \
|
---|
| 982 | | --program-trans | --program-tran \
|
---|
| 983 | | --progr-tra | --program-tr | --program-t)
|
---|
| 984 | ac_prev=program_transform_name ;;
|
---|
| 985 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 986 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 987 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 988 | | --program-transform=* | --program-transfor=* \
|
---|
| 989 | | --program-transfo=* | --program-transf=* \
|
---|
| 990 | | --program-trans=* | --program-tran=* \
|
---|
| 991 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 992 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 993 |
|
---|
[25149] | 994 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 995 | ac_prev=pdfdir ;;
|
---|
| 996 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 997 | pdfdir=$ac_optarg ;;
|
---|
| 998 |
|
---|
| 999 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 1000 | ac_prev=psdir ;;
|
---|
| 1001 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 1002 | psdir=$ac_optarg ;;
|
---|
| 1003 |
|
---|
[562] | 1004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1005 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1006 | silent=yes ;;
|
---|
| 1007 |
|
---|
| 1008 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1009 | ac_prev=sbindir ;;
|
---|
| 1010 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1011 | | --sbi=* | --sb=*)
|
---|
[8756] | 1012 | sbindir=$ac_optarg ;;
|
---|
[562] | 1013 |
|
---|
| 1014 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1015 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1016 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1017 | | --sha | --sh)
|
---|
| 1018 | ac_prev=sharedstatedir ;;
|
---|
| 1019 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1020 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1021 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1022 | | --sha=* | --sh=*)
|
---|
[8756] | 1023 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 1024 |
|
---|
| 1025 | -site | --site | --sit)
|
---|
| 1026 | ac_prev=site ;;
|
---|
| 1027 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 1028 | site=$ac_optarg ;;
|
---|
[562] | 1029 |
|
---|
| 1030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1031 | ac_prev=srcdir ;;
|
---|
| 1032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 1033 | srcdir=$ac_optarg ;;
|
---|
[562] | 1034 |
|
---|
| 1035 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1036 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1037 | ac_prev=sysconfdir ;;
|
---|
| 1038 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1039 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 1040 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 1041 |
|
---|
| 1042 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 1043 | ac_prev=target_alias ;;
|
---|
[562] | 1044 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 1045 | target_alias=$ac_optarg ;;
|
---|
[562] | 1046 |
|
---|
| 1047 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1048 | verbose=yes ;;
|
---|
| 1049 |
|
---|
[8756] | 1050 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1051 | ac_init_version=: ;;
|
---|
[562] | 1052 |
|
---|
| 1053 | -with-* | --with-*)
|
---|
[28325] | 1054 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 1055 | # Reject names that are not valid shell variable names.
|
---|
[28325] | 1056 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1057 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
[23802] | 1058 | { (exit 1); exit 1; }; }
|
---|
[28325] | 1059 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
| 1060 | eval with_$ac_package=\$ac_optarg ;;
|
---|
[562] | 1061 |
|
---|
| 1062 | -without-* | --without-*)
|
---|
[28325] | 1063 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 1064 | # Reject names that are not valid shell variable names.
|
---|
[28325] | 1065 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1066 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
[23802] | 1067 | { (exit 1); exit 1; }; }
|
---|
[28325] | 1068 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
| 1069 | eval with_$ac_package=no ;;
|
---|
[562] | 1070 |
|
---|
| 1071 | --x)
|
---|
| 1072 | # Obsolete; use --with-x.
|
---|
| 1073 | with_x=yes ;;
|
---|
| 1074 |
|
---|
| 1075 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1076 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1077 | ac_prev=x_includes ;;
|
---|
| 1078 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1079 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 1080 | x_includes=$ac_optarg ;;
|
---|
[562] | 1081 |
|
---|
| 1082 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1083 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1084 | ac_prev=x_libraries ;;
|
---|
| 1085 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1086 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 1087 | x_libraries=$ac_optarg ;;
|
---|
[562] | 1088 |
|
---|
[28325] | 1089 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
[23802] | 1090 | Try \`$0 --help' for more information." >&2
|
---|
| 1091 | { (exit 1); exit 1; }; }
|
---|
[562] | 1092 | ;;
|
---|
| 1093 |
|
---|
[8756] | 1094 | *=*)
|
---|
| 1095 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1096 | # Reject names that are not valid shell variable names.
|
---|
[23802] | 1097 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
[28325] | 1098 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
[23802] | 1099 | { (exit 1); exit 1; }; }
|
---|
[25149] | 1100 | eval $ac_envvar=\$ac_optarg
|
---|
[8756] | 1101 | export $ac_envvar ;;
|
---|
| 1102 |
|
---|
[562] | 1103 | *)
|
---|
[8756] | 1104 | # FIXME: should be removed in autoconf 3.0.
|
---|
[28325] | 1105 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[8756] | 1106 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[28325] | 1107 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[8756] | 1108 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 1109 | ;;
|
---|
| 1110 |
|
---|
| 1111 | esac
|
---|
| 1112 | done
|
---|
| 1113 |
|
---|
| 1114 | if test -n "$ac_prev"; then
|
---|
[8756] | 1115 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[28325] | 1116 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
[23802] | 1117 | { (exit 1); exit 1; }; }
|
---|
[562] | 1118 | fi
|
---|
| 1119 |
|
---|
[28325] | 1120 | # Be sure to have absolute directory names.
|
---|
[25149] | 1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1122 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1124 | libdir localedir mandir
|
---|
[20853] | 1125 | do
|
---|
[25149] | 1126 | eval ac_val=\$$ac_var
|
---|
[20853] | 1127 | case $ac_val in
|
---|
[25149] | 1128 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1129 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1130 | esac
|
---|
[28325] | 1131 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
[25149] | 1132 | { (exit 1); exit 1; }; }
|
---|
[20853] | 1133 | done
|
---|
| 1134 |
|
---|
[8756] | 1135 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1136 | # used to hold the argument of --host etc.
|
---|
| 1137 | # FIXME: To remove some day.
|
---|
| 1138 | build=$build_alias
|
---|
| 1139 | host=$host_alias
|
---|
| 1140 | target=$target_alias
|
---|
[562] | 1141 |
|
---|
[8756] | 1142 | # FIXME: To remove some day.
|
---|
| 1143 | if test "x$host_alias" != x; then
|
---|
| 1144 | if test "x$build_alias" = x; then
|
---|
| 1145 | cross_compiling=maybe
|
---|
[28325] | 1146 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
[23802] | 1147 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
[8756] | 1148 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1149 | cross_compiling=yes
|
---|
| 1150 | fi
|
---|
| 1151 | fi
|
---|
[562] | 1152 |
|
---|
[8756] | 1153 | ac_tool_prefix=
|
---|
| 1154 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 1155 |
|
---|
[8756] | 1156 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1157 |
|
---|
| 1158 |
|
---|
[25149] | 1159 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1160 | ac_ls_di=`ls -di .` &&
|
---|
| 1161 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
[28325] | 1162 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
[25149] | 1163 | { (exit 1); exit 1; }; }
|
---|
| 1164 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
[28325] | 1165 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
[25149] | 1166 | { (exit 1); exit 1; }; }
|
---|
| 1167 |
|
---|
| 1168 |
|
---|
[562] | 1169 | # Find the source files, if location was not specified.
|
---|
| 1170 | if test -z "$srcdir"; then
|
---|
| 1171 | ac_srcdir_defaulted=yes
|
---|
[25149] | 1172 | # Try the directory containing this script, then the parent directory.
|
---|
[28325] | 1173 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
| 1174 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1175 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 1176 | X"$0" : 'X\(//\)$' \| \
|
---|
| 1177 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1178 | echo X"$0" |
|
---|
[25149] | 1179 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1180 | s//\1/
|
---|
| 1181 | q
|
---|
| 1182 | }
|
---|
| 1183 | /^X\(\/\/\)[^/].*/{
|
---|
| 1184 | s//\1/
|
---|
| 1185 | q
|
---|
| 1186 | }
|
---|
| 1187 | /^X\(\/\/\)$/{
|
---|
| 1188 | s//\1/
|
---|
| 1189 | q
|
---|
| 1190 | }
|
---|
| 1191 | /^X\(\/\).*/{
|
---|
| 1192 | s//\1/
|
---|
| 1193 | q
|
---|
| 1194 | }
|
---|
| 1195 | s/.*/./; q'`
|
---|
[562] | 1196 | srcdir=$ac_confdir
|
---|
[25149] | 1197 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[562] | 1198 | srcdir=..
|
---|
| 1199 | fi
|
---|
| 1200 | else
|
---|
| 1201 | ac_srcdir_defaulted=no
|
---|
| 1202 | fi
|
---|
[25149] | 1203 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1204 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
[28325] | 1205 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
[23802] | 1206 | { (exit 1); exit 1; }; }
|
---|
[25149] | 1207 | fi
|
---|
| 1208 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1209 | ac_abs_confdir=`(
|
---|
[28325] | 1210 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
[23802] | 1211 | { (exit 1); exit 1; }; }
|
---|
[25149] | 1212 | pwd)`
|
---|
| 1213 | # When building in place, set srcdir=.
|
---|
| 1214 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1215 | srcdir=.
|
---|
[20842] | 1216 | fi
|
---|
[25149] | 1217 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1218 | # Double slashes in file names in object file debugging info
|
---|
| 1219 | # mess up M-x gdb in Emacs.
|
---|
| 1220 | case $srcdir in
|
---|
| 1221 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1222 | esac
|
---|
| 1223 | for ac_var in $ac_precious_vars; do
|
---|
| 1224 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1225 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1226 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1227 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1228 | done
|
---|
[562] | 1229 |
|
---|
[8756] | 1230 | #
|
---|
| 1231 | # Report the --help message.
|
---|
| 1232 | #
|
---|
| 1233 | if test "$ac_init_help" = "long"; then
|
---|
| 1234 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1235 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 1236 | cat <<_ACEOF
|
---|
| 1237 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1238 |
|
---|
| 1239 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1240 |
|
---|
| 1241 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1242 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1243 |
|
---|
| 1244 | Defaults for the options are specified in brackets.
|
---|
| 1245 |
|
---|
| 1246 | Configuration:
|
---|
| 1247 | -h, --help display this help and exit
|
---|
| 1248 | --help=short display options specific to this package
|
---|
| 1249 | --help=recursive display the short help of all the included packages
|
---|
| 1250 | -V, --version display version information and exit
|
---|
[23802] | 1251 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
[8756] | 1252 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1253 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1254 | -n, --no-create do not create output files
|
---|
| 1255 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1256 |
|
---|
| 1257 | Installation directories:
|
---|
| 1258 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[28325] | 1259 | [$ac_default_prefix]
|
---|
[8756] | 1260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[28325] | 1261 | [PREFIX]
|
---|
[8756] | 1262 |
|
---|
| 1263 | By default, \`make install' will install all the files in
|
---|
| 1264 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1265 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1266 | for instance \`--prefix=\$HOME'.
|
---|
| 1267 |
|
---|
| 1268 | For better control, use the options below.
|
---|
| 1269 |
|
---|
| 1270 | Fine tuning of the installation directories:
|
---|
[28325] | 1271 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1272 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1273 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1274 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1275 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1276 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1277 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1278 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1282 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1283 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1284 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1285 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1286 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1287 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1288 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1289 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[8756] | 1290 | _ACEOF
|
---|
| 1291 |
|
---|
| 1292 | cat <<\_ACEOF
|
---|
| 1293 |
|
---|
| 1294 | System types:
|
---|
| 1295 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1296 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1297 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 1298 | _ACEOF
|
---|
| 1299 | fi
|
---|
| 1300 |
|
---|
| 1301 | if test -n "$ac_init_help"; then
|
---|
| 1302 |
|
---|
| 1303 | cat <<\_ACEOF
|
---|
| 1304 |
|
---|
| 1305 | Optional Features:
|
---|
| 1306 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1307 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1308 | --enable-corba Enable CORBA support
|
---|
[23356] | 1309 | --disable-java Disable Java compilation
|
---|
[8756] | 1310 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 1311 | --disable-yaz Disable YAZ compilation
|
---|
[23802] | 1312 | --disable-wvware Disable wvWare compilation
|
---|
[23356] | 1313 | --disable-jdbm Disable JDBM compilation
|
---|
| 1314 | --disable-gdbm Disable GDBM compilation
|
---|
[15816] | 1315 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 1316 | --disable-sqlite Disable SQLite support
|
---|
[24958] | 1317 | --disable-rss Disable RSS support
|
---|
[23356] | 1318 | --enable-apache-httpd Enable Apache httpd support
|
---|
| 1319 | --enable-jni Enable JNI compilation
|
---|
| 1320 | --disable-mg Disable MG compilation
|
---|
| 1321 | --disable-mgpp Disable MGPP compilation
|
---|
[21330] | 1322 | --disable-lucene Disable Lucene compilation
|
---|
[28316] | 1323 | --enable-gnome-lib-ext Enable the gnome-lib extension
|
---|
[8756] | 1324 |
|
---|
| 1325 | Optional Packages:
|
---|
| 1326 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1327 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1328 | --with-micodir Use installed MICO directory
|
---|
| 1329 | --with-dmalloc use dmalloc, as in
|
---|
| 1330 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1331 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1332 |
|
---|
| 1333 | Some influential environment variables:
|
---|
| 1334 | CC C compiler command
|
---|
| 1335 | CFLAGS C compiler flags
|
---|
| 1336 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1337 | nonstandard directory <lib dir>
|
---|
[25149] | 1338 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1339 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
| 1340 | you have headers in a nonstandard directory <include dir>
|
---|
[8756] | 1341 | CXX C++ compiler command
|
---|
| 1342 | CXXFLAGS C++ compiler flags
|
---|
[25149] | 1343 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
| 1344 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
| 1345 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1346 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1347 | default value of `-d' given by some make applications.
|
---|
[8756] | 1348 | CPP C preprocessor
|
---|
| 1349 |
|
---|
| 1350 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1351 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1352 |
|
---|
| 1353 | _ACEOF
|
---|
[25149] | 1354 | ac_status=$?
|
---|
[8756] | 1355 | fi
|
---|
| 1356 |
|
---|
| 1357 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1358 | # If there are subdirs, report their specific --help.
|
---|
| 1359 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[28325] | 1360 | test -d "$ac_dir" || continue
|
---|
[8756] | 1361 | ac_builddir=.
|
---|
| 1362 |
|
---|
[25149] | 1363 | case "$ac_dir" in
|
---|
| 1364 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1365 | *)
|
---|
[28325] | 1366 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[25149] | 1367 | # A ".." for each directory in $ac_dir_suffix.
|
---|
[28325] | 1368 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
[25149] | 1369 | case $ac_top_builddir_sub in
|
---|
| 1370 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1371 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1372 | esac ;;
|
---|
| 1373 | esac
|
---|
| 1374 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1375 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1376 | # for backward compatibility:
|
---|
| 1377 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8756] | 1378 |
|
---|
| 1379 | case $srcdir in
|
---|
[25149] | 1380 | .) # We are building in place.
|
---|
[8756] | 1381 | ac_srcdir=.
|
---|
[25149] | 1382 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1383 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1384 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 1385 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[25149] | 1386 | ac_top_srcdir=$srcdir
|
---|
| 1387 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1388 | *) # Relative name.
|
---|
| 1389 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1390 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1391 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 1392 | esac
|
---|
[25149] | 1393 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[8756] | 1394 |
|
---|
[25149] | 1395 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1396 | # Check for guested configure.
|
---|
| 1397 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1398 | echo &&
|
---|
| 1399 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1400 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1401 | echo &&
|
---|
| 1402 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[8756] | 1403 | else
|
---|
[28325] | 1404 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[25149] | 1405 | fi || ac_status=$?
|
---|
| 1406 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[8756] | 1407 | done
|
---|
| 1408 | fi
|
---|
| 1409 |
|
---|
[25149] | 1410 | test -n "$ac_init_help" && exit $ac_status
|
---|
[8756] | 1411 | if $ac_init_version; then
|
---|
| 1412 | cat <<\_ACEOF
|
---|
[25149] | 1413 | configure
|
---|
[28325] | 1414 | generated by GNU Autoconf 2.61
|
---|
[8756] | 1415 |
|
---|
[25149] | 1416 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
[28325] | 1417 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
[8756] | 1418 | This configure script is free software; the Free Software Foundation
|
---|
| 1419 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 1420 | _ACEOF
|
---|
[25149] | 1421 | exit
|
---|
[8756] | 1422 | fi
|
---|
[25149] | 1423 | cat >config.log <<_ACEOF
|
---|
[8756] | 1424 | This file contains any messages produced by compilers while
|
---|
| 1425 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1426 |
|
---|
| 1427 | It was created by $as_me, which was
|
---|
[28325] | 1428 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
[8756] | 1429 |
|
---|
| 1430 | $ $0 $@
|
---|
| 1431 |
|
---|
| 1432 | _ACEOF
|
---|
[25149] | 1433 | exec 5>>config.log
|
---|
[8756] | 1434 | {
|
---|
| 1435 | cat <<_ASUNAME
|
---|
| 1436 | ## --------- ##
|
---|
| 1437 | ## Platform. ##
|
---|
| 1438 | ## --------- ##
|
---|
| 1439 |
|
---|
| 1440 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1441 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1442 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1443 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1444 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1445 |
|
---|
| 1446 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1447 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1448 |
|
---|
| 1449 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1450 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1451 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[25149] | 1452 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[8756] | 1453 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1454 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1455 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1456 |
|
---|
| 1457 | _ASUNAME
|
---|
| 1458 |
|
---|
| 1459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1460 | for as_dir in $PATH
|
---|
| 1461 | do
|
---|
| 1462 | IFS=$as_save_IFS
|
---|
| 1463 | test -z "$as_dir" && as_dir=.
|
---|
[28325] | 1464 | echo "PATH: $as_dir"
|
---|
[23802] | 1465 | done
|
---|
[25149] | 1466 | IFS=$as_save_IFS
|
---|
[8756] | 1467 |
|
---|
| 1468 | } >&5
|
---|
| 1469 |
|
---|
| 1470 | cat >&5 <<_ACEOF
|
---|
| 1471 |
|
---|
| 1472 |
|
---|
| 1473 | ## ----------- ##
|
---|
| 1474 | ## Core tests. ##
|
---|
| 1475 | ## ----------- ##
|
---|
| 1476 |
|
---|
| 1477 | _ACEOF
|
---|
| 1478 |
|
---|
| 1479 |
|
---|
| 1480 | # Keep a trace of the command line.
|
---|
| 1481 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1482 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1483 | # Also quote any args containing shell meta-characters.
|
---|
| 1484 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1485 | ac_configure_args=
|
---|
| 1486 | ac_configure_args0=
|
---|
| 1487 | ac_configure_args1=
|
---|
| 1488 | ac_must_keep_next=false
|
---|
| 1489 | for ac_pass in 1 2
|
---|
| 1490 | do
|
---|
| 1491 | for ac_arg
|
---|
| 1492 | do
|
---|
| 1493 | case $ac_arg in
|
---|
| 1494 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1495 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1496 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1497 | continue ;;
|
---|
[25149] | 1498 | *\'*)
|
---|
[28325] | 1499 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 1500 | esac
|
---|
| 1501 | case $ac_pass in
|
---|
[23802] | 1502 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
[8756] | 1503 | 2)
|
---|
[23802] | 1504 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
[8756] | 1505 | if test $ac_must_keep_next = true; then
|
---|
| 1506 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1507 | else
|
---|
| 1508 | case $ac_arg in
|
---|
| 1509 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1510 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1511 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1512 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1513 | case "$ac_configure_args0 " in
|
---|
| 1514 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1515 | esac
|
---|
| 1516 | ;;
|
---|
| 1517 | -* ) ac_must_keep_next=true ;;
|
---|
| 1518 | esac
|
---|
| 1519 | fi
|
---|
[25149] | 1520 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
[8756] | 1521 | ;;
|
---|
| 1522 | esac
|
---|
| 1523 | done
|
---|
| 1524 | done
|
---|
[23802] | 1525 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1526 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[8756] | 1527 |
|
---|
| 1528 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1529 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1530 | # would cause problems or look ugly.
|
---|
[25149] | 1531 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 1532 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[8756] | 1533 | trap 'exit_status=$?
|
---|
| 1534 | # Save into config.log some information that might help in debugging.
|
---|
| 1535 | {
|
---|
| 1536 | echo
|
---|
| 1537 |
|
---|
[23802] | 1538 | cat <<\_ASBOX
|
---|
| 1539 | ## ---------------- ##
|
---|
[8756] | 1540 | ## Cache variables. ##
|
---|
[23802] | 1541 | ## ---------------- ##
|
---|
| 1542 | _ASBOX
|
---|
[8756] | 1543 | echo
|
---|
| 1544 | # The following way of writing the cache mishandles newlines in values,
|
---|
[25149] | 1545 | (
|
---|
| 1546 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 1547 | eval ac_val=\$$ac_var
|
---|
| 1548 | case $ac_val in #(
|
---|
| 1549 | *${as_nl}*)
|
---|
| 1550 | case $ac_var in #(
|
---|
[28325] | 1551 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
| 1552 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
[25149] | 1553 | esac
|
---|
| 1554 | case $ac_var in #(
|
---|
| 1555 | _ | IFS | as_nl) ;; #(
|
---|
| 1556 | *) $as_unset $ac_var ;;
|
---|
| 1557 | esac ;;
|
---|
| 1558 | esac
|
---|
| 1559 | done
|
---|
[8756] | 1560 | (set) 2>&1 |
|
---|
[25149] | 1561 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 1562 | *${as_nl}ac_space=\ *)
|
---|
[8756] | 1563 | sed -n \
|
---|
[25149] | 1564 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 1565 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 1566 | ;; #(
|
---|
[8756] | 1567 | *)
|
---|
[25149] | 1568 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8756] | 1569 | ;;
|
---|
[25149] | 1570 | esac |
|
---|
| 1571 | sort
|
---|
| 1572 | )
|
---|
[8756] | 1573 | echo
|
---|
| 1574 |
|
---|
[23802] | 1575 | cat <<\_ASBOX
|
---|
| 1576 | ## ----------------- ##
|
---|
[8756] | 1577 | ## Output variables. ##
|
---|
[23802] | 1578 | ## ----------------- ##
|
---|
| 1579 | _ASBOX
|
---|
[8756] | 1580 | echo
|
---|
| 1581 | for ac_var in $ac_subst_vars
|
---|
| 1582 | do
|
---|
[25149] | 1583 | eval ac_val=\$$ac_var
|
---|
| 1584 | case $ac_val in
|
---|
[28325] | 1585 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
[25149] | 1586 | esac
|
---|
[28325] | 1587 | echo "$ac_var='\''$ac_val'\''"
|
---|
[8756] | 1588 | done | sort
|
---|
| 1589 | echo
|
---|
| 1590 |
|
---|
| 1591 | if test -n "$ac_subst_files"; then
|
---|
[23802] | 1592 | cat <<\_ASBOX
|
---|
[25149] | 1593 | ## ------------------- ##
|
---|
| 1594 | ## File substitutions. ##
|
---|
| 1595 | ## ------------------- ##
|
---|
[23802] | 1596 | _ASBOX
|
---|
[8756] | 1597 | echo
|
---|
| 1598 | for ac_var in $ac_subst_files
|
---|
| 1599 | do
|
---|
[25149] | 1600 | eval ac_val=\$$ac_var
|
---|
| 1601 | case $ac_val in
|
---|
[28325] | 1602 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
[25149] | 1603 | esac
|
---|
[28325] | 1604 | echo "$ac_var='\''$ac_val'\''"
|
---|
[8756] | 1605 | done | sort
|
---|
| 1606 | echo
|
---|
| 1607 | fi
|
---|
| 1608 |
|
---|
| 1609 | if test -s confdefs.h; then
|
---|
[23802] | 1610 | cat <<\_ASBOX
|
---|
| 1611 | ## ----------- ##
|
---|
[8756] | 1612 | ## confdefs.h. ##
|
---|
[23802] | 1613 | ## ----------- ##
|
---|
| 1614 | _ASBOX
|
---|
[8756] | 1615 | echo
|
---|
[25149] | 1616 | cat confdefs.h
|
---|
[8756] | 1617 | echo
|
---|
| 1618 | fi
|
---|
| 1619 | test "$ac_signal" != 0 &&
|
---|
[28325] | 1620 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1621 | echo "$as_me: exit $exit_status"
|
---|
[8756] | 1622 | } >&5
|
---|
[25149] | 1623 | rm -f core *.core core.conftest.* &&
|
---|
| 1624 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8756] | 1625 | exit $exit_status
|
---|
[25149] | 1626 | ' 0
|
---|
[8756] | 1627 | for ac_signal in 1 2 13 15; do
|
---|
[23802] | 1628 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[8756] | 1629 | done
|
---|
| 1630 | ac_signal=0
|
---|
| 1631 |
|
---|
| 1632 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[25149] | 1633 | rm -f -r conftest* confdefs.h
|
---|
[8756] | 1634 |
|
---|
| 1635 | # Predefined preprocessor variables.
|
---|
| 1636 |
|
---|
| 1637 | cat >>confdefs.h <<_ACEOF
|
---|
| 1638 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1639 | _ACEOF
|
---|
| 1640 |
|
---|
[23802] | 1641 |
|
---|
[8756] | 1642 | cat >>confdefs.h <<_ACEOF
|
---|
| 1643 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1644 | _ACEOF
|
---|
| 1645 |
|
---|
[23802] | 1646 |
|
---|
[8756] | 1647 | cat >>confdefs.h <<_ACEOF
|
---|
| 1648 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1649 | _ACEOF
|
---|
| 1650 |
|
---|
[23802] | 1651 |
|
---|
[8756] | 1652 | cat >>confdefs.h <<_ACEOF
|
---|
| 1653 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1654 | _ACEOF
|
---|
| 1655 |
|
---|
[23802] | 1656 |
|
---|
[8756] | 1657 | cat >>confdefs.h <<_ACEOF
|
---|
| 1658 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1659 | _ACEOF
|
---|
| 1660 |
|
---|
| 1661 |
|
---|
| 1662 | # Let the site file select an alternate cache file if it wants to.
|
---|
[28325] | 1663 | # Prefer explicitly selected file to automatically selected ones.
|
---|
[25149] | 1664 | if test -n "$CONFIG_SITE"; then
|
---|
[28325] | 1665 | set x "$CONFIG_SITE"
|
---|
[25149] | 1666 | elif test "x$prefix" != xNONE; then
|
---|
[28325] | 1667 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
[25149] | 1668 | else
|
---|
[28325] | 1669 | set x "$ac_default_prefix/share/config.site" \
|
---|
| 1670 | "$ac_default_prefix/etc/config.site"
|
---|
[562] | 1671 | fi
|
---|
[28325] | 1672 | shift
|
---|
| 1673 | for ac_site_file
|
---|
[25149] | 1674 | do
|
---|
[23802] | 1675 | if test -r "$ac_site_file"; then
|
---|
[28325] | 1676 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1677 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[8756] | 1678 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[23802] | 1679 | . "$ac_site_file"
|
---|
[562] | 1680 | fi
|
---|
| 1681 | done
|
---|
| 1682 |
|
---|
| 1683 | if test -r "$cache_file"; then
|
---|
[23802] | 1684 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1685 | # files actually), so we avoid doing that.
|
---|
| 1686 | if test -f "$cache_file"; then
|
---|
[28325] | 1687 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1688 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[8756] | 1689 | case $cache_file in
|
---|
[25149] | 1690 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 1691 | *) . "./$cache_file";;
|
---|
[8756] | 1692 | esac
|
---|
| 1693 | fi
|
---|
[562] | 1694 | else
|
---|
[28325] | 1695 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1696 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[8756] | 1697 | >$cache_file
|
---|
[562] | 1698 | fi
|
---|
| 1699 |
|
---|
[8756] | 1700 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1701 | # value.
|
---|
| 1702 | ac_cache_corrupted=false
|
---|
[25149] | 1703 | for ac_var in $ac_precious_vars; do
|
---|
[8756] | 1704 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1705 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[25149] | 1706 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 1707 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[8756] | 1708 | case $ac_old_set,$ac_new_set in
|
---|
| 1709 | set,)
|
---|
[28325] | 1710 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1711 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[8756] | 1712 | ac_cache_corrupted=: ;;
|
---|
| 1713 | ,set)
|
---|
[28325] | 1714 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1715 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[8756] | 1716 | ac_cache_corrupted=: ;;
|
---|
| 1717 | ,);;
|
---|
| 1718 | *)
|
---|
| 1719 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[28325] | 1720 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1721 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1722 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1723 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1724 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1725 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1726 | ac_cache_corrupted=:
|
---|
[8756] | 1727 | fi;;
|
---|
| 1728 | esac
|
---|
| 1729 | # Pass precious variables to config.status.
|
---|
| 1730 | if test "$ac_new_set" = set; then
|
---|
| 1731 | case $ac_new_val in
|
---|
[28325] | 1732 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 1733 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1734 | esac
|
---|
| 1735 | case " $ac_configure_args " in
|
---|
| 1736 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[23802] | 1737 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
[8756] | 1738 | esac
|
---|
| 1739 | fi
|
---|
| 1740 | done
|
---|
| 1741 | if $ac_cache_corrupted; then
|
---|
[28325] | 1742 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1743 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1744 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1745 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
[23802] | 1746 | { (exit 1); exit 1; }; }
|
---|
[8756] | 1747 | fi
|
---|
| 1748 |
|
---|
[562] | 1749 |
|
---|
| 1750 |
|
---|
| 1751 |
|
---|
[8200] | 1752 |
|
---|
[23802] | 1753 |
|
---|
| 1754 |
|
---|
| 1755 |
|
---|
| 1756 |
|
---|
| 1757 |
|
---|
| 1758 |
|
---|
| 1759 |
|
---|
| 1760 |
|
---|
| 1761 |
|
---|
| 1762 |
|
---|
| 1763 |
|
---|
| 1764 |
|
---|
[25149] | 1765 | ac_ext=c
|
---|
| 1766 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[23802] | 1770 |
|
---|
| 1771 |
|
---|
[25149] | 1772 | ac_config_headers="$ac_config_headers config.h"
|
---|
[23802] | 1773 |
|
---|
| 1774 |
|
---|
[562] | 1775 | PACKAGE=gsdl
|
---|
[23356] | 1776 | VERSION=2.x-svn
|
---|
[8756] | 1777 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1778 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1779 | _ACEOF
|
---|
[562] | 1780 |
|
---|
[8756] | 1781 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1782 | #define VERSION "$VERSION"
|
---|
[8756] | 1783 | _ACEOF
|
---|
[562] | 1784 |
|
---|
[8200] | 1785 |
|
---|
| 1786 |
|
---|
| 1787 |
|
---|
[18487] | 1788 |
|
---|
[567] | 1789 | USE_FASTCGI=0
|
---|
| 1790 | if test USE_FASTCGI = 1; then
|
---|
[23802] | 1791 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1792 | #define USE_FASTCGI 1
|
---|
| 1793 | _ACEOF
|
---|
[567] | 1794 |
|
---|
[8200] | 1795 |
|
---|
[3631] | 1796 | fi
|
---|
[567] | 1797 |
|
---|
[3631] | 1798 | if test USE_LANGACTION = 1; then
|
---|
[23802] | 1799 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1800 | #define USE_LANGACTION 1
|
---|
| 1801 | _ACEOF
|
---|
[3631] | 1802 |
|
---|
[8200] | 1803 |
|
---|
[567] | 1804 | fi
|
---|
| 1805 |
|
---|
[25149] | 1806 | # Check whether --enable-corba was given.
|
---|
[23802] | 1807 | if test "${enable_corba+set}" = set; then
|
---|
[25149] | 1808 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
[1860] | 1809 | else
|
---|
[21724] | 1810 | USE_CORBA=no
|
---|
[25149] | 1811 | fi
|
---|
| 1812 |
|
---|
[21724] | 1813 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
| 1814 | USE_CORBA=1
|
---|
[23802] | 1815 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1816 | #define USE_CORBA
|
---|
[23802] | 1817 | _ACEOF
|
---|
[1860] | 1818 |
|
---|
[21724] | 1819 | else
|
---|
| 1820 | USE_CORBA=0
|
---|
| 1821 | fi
|
---|
[8200] | 1822 |
|
---|
| 1823 |
|
---|
[8756] | 1824 |
|
---|
[25149] | 1825 | # Check whether --with-micodir was given.
|
---|
[23802] | 1826 | if test "${with_micodir+set}" = set; then
|
---|
[25149] | 1827 | withval=$with_micodir; MICO_DIR=$withval
|
---|
[1860] | 1828 | else
|
---|
[2471] | 1829 | MICO_DIR="default"
|
---|
[25149] | 1830 | fi
|
---|
| 1831 |
|
---|
[8756] | 1832 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1833 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1834 | _ACEOF
|
---|
[1860] | 1835 |
|
---|
[8200] | 1836 |
|
---|
| 1837 |
|
---|
[25149] | 1838 | # Check whether --enable-java was given.
|
---|
[23802] | 1839 | if test "${enable_java+set}" = set; then
|
---|
[25149] | 1840 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
[23356] | 1841 | else
|
---|
| 1842 | ENABLE_JAVA=yes
|
---|
[25149] | 1843 | fi
|
---|
| 1844 |
|
---|
[23356] | 1845 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 1846 | ENABLE_JAVA=1
|
---|
| 1847 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 1848 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 1849 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 1850 | echo "and JAVA respectively"
|
---|
| 1851 | export JAVA_HOME=
|
---|
| 1852 | fi
|
---|
| 1853 | else
|
---|
| 1854 | ENABLE_JAVA=0
|
---|
| 1855 | fi
|
---|
| 1856 |
|
---|
| 1857 |
|
---|
[25149] | 1858 | # Check whether --enable-z3950 was given.
|
---|
[23802] | 1859 | if test "${enable_z3950+set}" = set; then
|
---|
[25149] | 1860 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
[1938] | 1861 | else
|
---|
[21724] | 1862 | USE_Z3950=no
|
---|
[25149] | 1863 | fi
|
---|
| 1864 |
|
---|
[21724] | 1865 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
| 1866 | USE_Z3950=1
|
---|
[23802] | 1867 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1868 | #define USE_Z3950
|
---|
[23802] | 1869 | _ACEOF
|
---|
[1938] | 1870 |
|
---|
[21724] | 1871 | else
|
---|
| 1872 | USE_Z3950=0
|
---|
[2297] | 1873 | fi
|
---|
[1938] | 1874 |
|
---|
[21724] | 1875 |
|
---|
[25149] | 1876 | # Check whether --enable-yaz was given.
|
---|
[23802] | 1877 | if test "${enable_yaz+set}" = set; then
|
---|
[25149] | 1878 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
[12492] | 1879 | else
|
---|
[21724] | 1880 | USE_YAZ=yes
|
---|
[25149] | 1881 | fi
|
---|
| 1882 |
|
---|
[21724] | 1883 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
[12492] | 1884 | USE_YAZ=1
|
---|
[23802] | 1885 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1886 | #define USE_YAZ
|
---|
[23802] | 1887 | _ACEOF
|
---|
[8756] | 1888 |
|
---|
[21724] | 1889 | else
|
---|
| 1890 | USE_YAZ=0
|
---|
| 1891 | fi
|
---|
[12492] | 1892 |
|
---|
| 1893 |
|
---|
[25149] | 1894 | # Check whether --enable-wvware was given.
|
---|
[23802] | 1895 | if test "${enable_wvware+set}" = set; then
|
---|
[25149] | 1896 | enableval=$enable_wvware; USE_WVWARE=$enableval
|
---|
[22058] | 1897 | else
|
---|
[23802] | 1898 | USE_WVWARE=yes
|
---|
[25149] | 1899 | fi
|
---|
| 1900 |
|
---|
[23802] | 1901 | if test $USE_WVWARE = "yes" -o $USE_WVWARE = "1" ; then
|
---|
| 1902 | USE_WVWARE=1
|
---|
| 1903 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1904 | #define USE_WVWARE
|
---|
[23802] | 1905 | _ACEOF
|
---|
| 1906 |
|
---|
| 1907 | else
|
---|
| 1908 | USE_WVWARE=0
|
---|
[22378] | 1909 | fi
|
---|
| 1910 |
|
---|
[23802] | 1911 |
|
---|
[25149] | 1912 | # Check whether --enable-jdbm was given.
|
---|
[23802] | 1913 | if test "${enable_jdbm+set}" = set; then
|
---|
[25149] | 1914 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
[23802] | 1915 | else
|
---|
| 1916 | USE_JDBM=yes
|
---|
[25149] | 1917 | fi
|
---|
| 1918 |
|
---|
[23356] | 1919 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
[22058] | 1920 | USE_JDBM=1
|
---|
[23802] | 1921 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1922 | #define USE_JDBM
|
---|
[23802] | 1923 | _ACEOF
|
---|
[22058] | 1924 |
|
---|
| 1925 | else
|
---|
| 1926 | USE_JDBM=0
|
---|
| 1927 | fi
|
---|
| 1928 |
|
---|
| 1929 |
|
---|
[25149] | 1930 | # Check whether --enable-gdbm was given.
|
---|
[23802] | 1931 | if test "${enable_gdbm+set}" = set; then
|
---|
[25149] | 1932 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
[22058] | 1933 | else
|
---|
| 1934 | USE_GDBM=yes
|
---|
[25149] | 1935 | fi
|
---|
| 1936 |
|
---|
[22058] | 1937 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
| 1938 | USE_GDBM=1
|
---|
[23802] | 1939 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1940 | #define USE_GDBM
|
---|
[23802] | 1941 | _ACEOF
|
---|
[22058] | 1942 |
|
---|
| 1943 | else
|
---|
| 1944 | USE_GDBM=0
|
---|
| 1945 | fi
|
---|
| 1946 |
|
---|
| 1947 |
|
---|
[25149] | 1948 | # Check whether --enable-accentfold was given.
|
---|
[23802] | 1949 | if test "${enable_accentfold+set}" = set; then
|
---|
[25149] | 1950 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
[12922] | 1951 | else
|
---|
[21724] | 1952 | ENABLE_ACCENTFOLD=yes
|
---|
[25149] | 1953 | fi
|
---|
| 1954 |
|
---|
[21724] | 1955 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[12922] | 1956 | ENABLE_ACCENTFOLD=1
|
---|
[23802] | 1957 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1958 | #define ENABLE_ACCENTFOLD
|
---|
[23802] | 1959 | _ACEOF
|
---|
[12922] | 1960 |
|
---|
[21724] | 1961 | else
|
---|
| 1962 | ENABLE_ACCENTFOLD=0
|
---|
| 1963 | fi
|
---|
[12922] | 1964 |
|
---|
[15901] | 1965 |
|
---|
[25149] | 1966 | # Check whether --enable-sqlite was given.
|
---|
[23802] | 1967 | if test "${enable_sqlite+set}" = set; then
|
---|
[25149] | 1968 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
[16288] | 1969 | else
|
---|
[21724] | 1970 | USE_SQLITE=yes
|
---|
[25149] | 1971 | fi
|
---|
| 1972 |
|
---|
[21724] | 1973 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
[15794] | 1974 | USE_SQLITE=1
|
---|
[23802] | 1975 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1976 | #define USE_SQLITE
|
---|
[23802] | 1977 | _ACEOF
|
---|
[12922] | 1978 |
|
---|
[21724] | 1979 | else
|
---|
| 1980 | USE_SQLITE=0
|
---|
| 1981 | fi
|
---|
[15794] | 1982 |
|
---|
[15901] | 1983 |
|
---|
[25149] | 1984 | # Check whether --enable-rss was given.
|
---|
[24958] | 1985 | if test "${enable_rss+set}" = set; then
|
---|
[25149] | 1986 | enableval=$enable_rss; USE_RSS=$enableval
|
---|
[24958] | 1987 | else
|
---|
| 1988 | USE_RSS=yes
|
---|
[25149] | 1989 | fi
|
---|
| 1990 |
|
---|
[24958] | 1991 | if test $USE_RSS = "yes" -o $USE_RSS = "1" ; then
|
---|
| 1992 | USE_RSS=1
|
---|
| 1993 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 1994 | #define USE_RSS
|
---|
[24958] | 1995 | _ACEOF
|
---|
| 1996 |
|
---|
| 1997 | else
|
---|
| 1998 | USE_RSS=0
|
---|
| 1999 | fi
|
---|
| 2000 |
|
---|
| 2001 |
|
---|
| 2002 |
|
---|
[21377] | 2003 | if test -d runtime-src; then
|
---|
[25149] | 2004 | # Check whether --enable-apache-httpd was given.
|
---|
[23802] | 2005 | if test "${enable_apache_httpd+set}" = set; then
|
---|
[25149] | 2006 | enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
|
---|
[19263] | 2007 | else
|
---|
[21724] | 2008 | USE_APACHE_HTTPD=no
|
---|
[25149] | 2009 | fi
|
---|
| 2010 |
|
---|
[21724] | 2011 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
| 2012 | USE_APACHE_HTTPD=1
|
---|
[23802] | 2013 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 2014 | #define USE_APACHE_HTTPD
|
---|
[23802] | 2015 | _ACEOF
|
---|
[18487] | 2016 |
|
---|
[21724] | 2017 | else
|
---|
| 2018 | USE_APACHE_HTTPD=0
|
---|
| 2019 | fi
|
---|
[18487] | 2020 |
|
---|
[21377] | 2021 | fi
|
---|
[18487] | 2022 |
|
---|
[25149] | 2023 | # Check whether --enable-jni was given.
|
---|
[23802] | 2024 | if test "${enable_jni+set}" = set; then
|
---|
[25149] | 2025 | enableval=$enable_jni; ENABLE_JNI=$enableval
|
---|
[21366] | 2026 | else
|
---|
| 2027 | ENABLE_JNI=no
|
---|
[25149] | 2028 | fi
|
---|
| 2029 |
|
---|
[23356] | 2030 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
|
---|
[21366] | 2031 | ENABLE_JNI=1
|
---|
[23802] | 2032 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 2033 | #define ENABLE_JNI
|
---|
[23802] | 2034 | _ACEOF
|
---|
[18487] | 2035 |
|
---|
[21366] | 2036 | else
|
---|
| 2037 | ENABLE_JNI=0
|
---|
| 2038 | fi
|
---|
| 2039 |
|
---|
| 2040 |
|
---|
[25149] | 2041 | # Check whether --enable-mg was given.
|
---|
[23802] | 2042 | if test "${enable_mg+set}" = set; then
|
---|
[25149] | 2043 | enableval=$enable_mg; ENABLE_MG=$enableval
|
---|
[21330] | 2044 | else
|
---|
| 2045 | ENABLE_MG=yes
|
---|
[25149] | 2046 | fi
|
---|
| 2047 |
|
---|
[21330] | 2048 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 2049 | ENABLE_MG=1
|
---|
[23802] | 2050 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 2051 | #define ENABLE_MG
|
---|
[23802] | 2052 | _ACEOF
|
---|
[21330] | 2053 |
|
---|
| 2054 | else
|
---|
| 2055 | ENABLE_MG=0
|
---|
| 2056 | fi
|
---|
| 2057 |
|
---|
| 2058 |
|
---|
| 2059 |
|
---|
[25149] | 2060 | # Check whether --enable-mgpp was given.
|
---|
[23802] | 2061 | if test "${enable_mgpp+set}" = set; then
|
---|
[25149] | 2062 | enableval=$enable_mgpp; ENABLE_MGPP=$enableval
|
---|
[21330] | 2063 | else
|
---|
| 2064 | ENABLE_MGPP=yes
|
---|
[25149] | 2065 | fi
|
---|
| 2066 |
|
---|
[21330] | 2067 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 2068 | ENABLE_MGPP=1
|
---|
[23802] | 2069 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 2070 | #define ENABLE_MGPP
|
---|
[23802] | 2071 | _ACEOF
|
---|
[21330] | 2072 |
|
---|
| 2073 | else
|
---|
| 2074 | ENABLE_MGPP=0
|
---|
| 2075 | fi
|
---|
| 2076 |
|
---|
| 2077 |
|
---|
[25149] | 2078 | # Check whether --enable-lucene was given.
|
---|
[23802] | 2079 | if test "${enable_lucene+set}" = set; then
|
---|
[25149] | 2080 | enableval=$enable_lucene; ENABLE_LUCENE=$enableval
|
---|
[21330] | 2081 | else
|
---|
| 2082 | ENABLE_LUCENE=yes
|
---|
[25149] | 2083 | fi
|
---|
| 2084 |
|
---|
[23356] | 2085 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
[21330] | 2086 | ENABLE_LUCENE=1
|
---|
[23802] | 2087 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 2088 | #define ENABLE_LUCENE
|
---|
[23802] | 2089 | _ACEOF
|
---|
[21330] | 2090 |
|
---|
| 2091 | else
|
---|
| 2092 | ENABLE_LUCENE=0
|
---|
| 2093 | fi
|
---|
| 2094 |
|
---|
| 2095 |
|
---|
| 2096 |
|
---|
[28316] | 2097 | # Check whether --enable-gnome-lib-ext was given.
|
---|
| 2098 | if test "${enable_gnome_lib_ext+set}" = set; then
|
---|
| 2099 | enableval=$enable_gnome_lib_ext; ENABLE_GNOMELIB_EXT=1
|
---|
| 2100 | else
|
---|
| 2101 | ENABLE_GNOMELIB_EXT=0
|
---|
| 2102 | fi
|
---|
| 2103 |
|
---|
| 2104 | if test -d ext/gnome-lib ; then
|
---|
| 2105 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2106 | #define ENABLE_GNOMELIB_EXT $ENABLE_GNOMELIB_EXT
|
---|
| 2107 | _ACEOF
|
---|
| 2108 |
|
---|
[28509] | 2109 | elif test -f ext/gnome-lib-minimal/devel.bash ; then
|
---|
[28316] | 2110 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2111 | #define ENABLE_GNOMELIB_EXT $ENABLE_GNOMELIB_EXT
|
---|
| 2112 | _ACEOF
|
---|
| 2113 |
|
---|
| 2114 | else
|
---|
| 2115 | # Running `svn` returns 127 if no svn is installed. It returns 1 if svn is installed,
|
---|
| 2116 | # since it suggests running svn --help. It returns 0 if running `svn --version`
|
---|
| 2117 |
|
---|
| 2118 | if test $ENABLE_GNOMELIB_EXT = 1; then
|
---|
| 2119 | svn --version
|
---|
| 2120 | result=$?
|
---|
| 2121 | if test $result = 0; then
|
---|
| 2122 | cd ext
|
---|
| 2123 | svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/src gnome-lib
|
---|
| 2124 | cd ..
|
---|
| 2125 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2126 | #define ENABLE_GNOMELIB_EXT 1
|
---|
| 2127 | _ACEOF
|
---|
| 2128 |
|
---|
| 2129 | else
|
---|
[28509] | 2130 | echo "**** WARNING: No gnome-lib or gnome-lib-minimal(/devel.bash) in gs2build/ext folder. Unable to check out gnome-lib. Disabling gnome-lib-ext."
|
---|
[28316] | 2131 | cat >>confdefs.h <<\_ACEOF
|
---|
| 2132 | #define ENABLE_GNOMELIB_EXT 0
|
---|
| 2133 | _ACEOF
|
---|
| 2134 |
|
---|
| 2135 | fi
|
---|
| 2136 | fi
|
---|
| 2137 | fi
|
---|
| 2138 |
|
---|
| 2139 |
|
---|
| 2140 |
|
---|
[14169] | 2141 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 2142 |
|
---|
[1722] | 2143 | if test -z "$CFLAGS"; then
|
---|
[794] | 2144 | CFLAGS=-O2
|
---|
[1722] | 2145 | fi
|
---|
[576] | 2146 |
|
---|
| 2147 |
|
---|
[15551] | 2148 |
|
---|
[8756] | 2149 | ac_ext=c
|
---|
| 2150 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2154 | if test -n "$ac_tool_prefix"; then
|
---|
| 2155 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2156 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[28325] | 2157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 2159 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
[28325] | 2160 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2161 | else
|
---|
| 2162 | if test -n "$CC"; then
|
---|
| 2163 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2164 | else
|
---|
| 2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2166 | for as_dir in $PATH
|
---|
| 2167 | do
|
---|
| 2168 | IFS=$as_save_IFS
|
---|
| 2169 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2170 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 2171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2172 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[28325] | 2173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2174 | break 2
|
---|
| 2175 | fi
|
---|
| 2176 | done
|
---|
[23802] | 2177 | done
|
---|
[25149] | 2178 | IFS=$as_save_IFS
|
---|
[8756] | 2179 |
|
---|
| 2180 | fi
|
---|
| 2181 | fi
|
---|
| 2182 | CC=$ac_cv_prog_CC
|
---|
| 2183 | if test -n "$CC"; then
|
---|
[28325] | 2184 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2185 | echo "${ECHO_T}$CC" >&6; }
|
---|
[8756] | 2186 | else
|
---|
[28325] | 2187 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2188 | echo "${ECHO_T}no" >&6; }
|
---|
[8756] | 2189 | fi
|
---|
| 2190 |
|
---|
[25149] | 2191 |
|
---|
[8756] | 2192 | fi
|
---|
| 2193 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2194 | ac_ct_CC=$CC
|
---|
| 2195 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 2196 | set dummy gcc; ac_word=$2
|
---|
[28325] | 2197 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 2199 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
[28325] | 2200 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2201 | else
|
---|
[8756] | 2202 | if test -n "$ac_ct_CC"; then
|
---|
| 2203 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2204 | else
|
---|
| 2205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2206 | for as_dir in $PATH
|
---|
| 2207 | do
|
---|
| 2208 | IFS=$as_save_IFS
|
---|
| 2209 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2210 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 2211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2212 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[28325] | 2213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2214 | break 2
|
---|
| 2215 | fi
|
---|
| 2216 | done
|
---|
[23802] | 2217 | done
|
---|
[25149] | 2218 | IFS=$as_save_IFS
|
---|
[8756] | 2219 |
|
---|
| 2220 | fi
|
---|
| 2221 | fi
|
---|
| 2222 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2223 | if test -n "$ac_ct_CC"; then
|
---|
[28325] | 2224 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 2225 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
[8756] | 2226 | else
|
---|
[28325] | 2227 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2228 | echo "${ECHO_T}no" >&6; }
|
---|
[8756] | 2229 | fi
|
---|
| 2230 |
|
---|
[25149] | 2231 | if test "x$ac_ct_CC" = x; then
|
---|
| 2232 | CC=""
|
---|
| 2233 | else
|
---|
| 2234 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2235 | yes:)
|
---|
[28325] | 2236 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2237 | whose name does not start with the host triplet. If you think this
|
---|
| 2238 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 2239 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2240 | whose name does not start with the host triplet. If you think this
|
---|
| 2241 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
[25149] | 2242 | ac_tool_warned=yes ;;
|
---|
| 2243 | esac
|
---|
| 2244 | CC=$ac_ct_CC
|
---|
| 2245 | fi
|
---|
[8756] | 2246 | else
|
---|
| 2247 | CC="$ac_cv_prog_CC"
|
---|
| 2248 | fi
|
---|
| 2249 |
|
---|
| 2250 | if test -z "$CC"; then
|
---|
[25149] | 2251 | if test -n "$ac_tool_prefix"; then
|
---|
| 2252 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8756] | 2253 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[28325] | 2254 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 2256 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
[28325] | 2257 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2258 | else
|
---|
[562] | 2259 | if test -n "$CC"; then
|
---|
| 2260 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2261 | else
|
---|
[8756] | 2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2263 | for as_dir in $PATH
|
---|
| 2264 | do
|
---|
| 2265 | IFS=$as_save_IFS
|
---|
| 2266 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2267 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 2268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2269 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[28325] | 2270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2271 | break 2
|
---|
| 2272 | fi
|
---|
| 2273 | done
|
---|
[23802] | 2274 | done
|
---|
[25149] | 2275 | IFS=$as_save_IFS
|
---|
[8756] | 2276 |
|
---|
[562] | 2277 | fi
|
---|
| 2278 | fi
|
---|
[8756] | 2279 | CC=$ac_cv_prog_CC
|
---|
[562] | 2280 | if test -n "$CC"; then
|
---|
[28325] | 2281 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2282 | echo "${ECHO_T}$CC" >&6; }
|
---|
[562] | 2283 | else
|
---|
[28325] | 2284 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2285 | echo "${ECHO_T}no" >&6; }
|
---|
[562] | 2286 | fi
|
---|
| 2287 |
|
---|
[25149] | 2288 |
|
---|
[23802] | 2289 | fi
|
---|
[8756] | 2290 | fi
|
---|
[562] | 2291 | if test -z "$CC"; then
|
---|
| 2292 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2293 | set dummy cc; ac_word=$2
|
---|
[28325] | 2294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 2296 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
[28325] | 2297 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2298 | else
|
---|
| 2299 | if test -n "$CC"; then
|
---|
| 2300 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2301 | else
|
---|
| 2302 | ac_prog_rejected=no
|
---|
[8756] | 2303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2304 | for as_dir in $PATH
|
---|
| 2305 | do
|
---|
| 2306 | IFS=$as_save_IFS
|
---|
| 2307 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2308 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 2309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2310 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2311 | ac_prog_rejected=yes
|
---|
| 2312 | continue
|
---|
| 2313 | fi
|
---|
| 2314 | ac_cv_prog_CC="cc"
|
---|
[28325] | 2315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2316 | break 2
|
---|
| 2317 | fi
|
---|
| 2318 | done
|
---|
[23802] | 2319 | done
|
---|
[25149] | 2320 | IFS=$as_save_IFS
|
---|
[8756] | 2321 |
|
---|
[562] | 2322 | if test $ac_prog_rejected = yes; then
|
---|
| 2323 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2324 | set dummy $ac_cv_prog_CC
|
---|
| 2325 | shift
|
---|
[8756] | 2326 | if test $# != 0; then
|
---|
[562] | 2327 | # We chose a different compiler from the bogus one.
|
---|
| 2328 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2329 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2330 | shift
|
---|
[8756] | 2331 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 2332 | fi
|
---|
| 2333 | fi
|
---|
| 2334 | fi
|
---|
| 2335 | fi
|
---|
[8756] | 2336 | CC=$ac_cv_prog_CC
|
---|
[562] | 2337 | if test -n "$CC"; then
|
---|
[28325] | 2338 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2339 | echo "${ECHO_T}$CC" >&6; }
|
---|
[562] | 2340 | else
|
---|
[28325] | 2341 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2342 | echo "${ECHO_T}no" >&6; }
|
---|
[562] | 2343 | fi
|
---|
| 2344 |
|
---|
[25149] | 2345 |
|
---|
[8756] | 2346 | fi
|
---|
| 2347 | if test -z "$CC"; then
|
---|
| 2348 | if test -n "$ac_tool_prefix"; then
|
---|
[25149] | 2349 | for ac_prog in cl.exe
|
---|
[8756] | 2350 | do
|
---|
| 2351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[28325] | 2353 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 2355 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
[28325] | 2356 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2357 | else
|
---|
| 2358 | if test -n "$CC"; then
|
---|
| 2359 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2360 | else
|
---|
[8756] | 2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2362 | for as_dir in $PATH
|
---|
| 2363 | do
|
---|
| 2364 | IFS=$as_save_IFS
|
---|
| 2365 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2366 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2368 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[28325] | 2369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2370 | break 2
|
---|
| 2371 | fi
|
---|
| 2372 | done
|
---|
[23802] | 2373 | done
|
---|
[25149] | 2374 | IFS=$as_save_IFS
|
---|
[8756] | 2375 |
|
---|
[562] | 2376 | fi
|
---|
| 2377 | fi
|
---|
[8756] | 2378 | CC=$ac_cv_prog_CC
|
---|
[562] | 2379 | if test -n "$CC"; then
|
---|
[28325] | 2380 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2381 | echo "${ECHO_T}$CC" >&6; }
|
---|
[562] | 2382 | else
|
---|
[28325] | 2383 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2384 | echo "${ECHO_T}no" >&6; }
|
---|
[562] | 2385 | fi
|
---|
[8756] | 2386 |
|
---|
[25149] | 2387 |
|
---|
[8756] | 2388 | test -n "$CC" && break
|
---|
| 2389 | done
|
---|
| 2390 | fi
|
---|
| 2391 | if test -z "$CC"; then
|
---|
| 2392 | ac_ct_CC=$CC
|
---|
[25149] | 2393 | for ac_prog in cl.exe
|
---|
[8756] | 2394 | do
|
---|
| 2395 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2396 | set dummy $ac_prog; ac_word=$2
|
---|
[28325] | 2397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 2399 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
[28325] | 2400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2401 | else
|
---|
| 2402 | if test -n "$ac_ct_CC"; then
|
---|
| 2403 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2404 | else
|
---|
| 2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2406 | for as_dir in $PATH
|
---|
| 2407 | do
|
---|
| 2408 | IFS=$as_save_IFS
|
---|
| 2409 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2410 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 2411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2412 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[28325] | 2413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2414 | break 2
|
---|
[8200] | 2415 | fi
|
---|
[8756] | 2416 | done
|
---|
[23802] | 2417 | done
|
---|
[25149] | 2418 | IFS=$as_save_IFS
|
---|
[8756] | 2419 |
|
---|
[562] | 2420 | fi
|
---|
[8756] | 2421 | fi
|
---|
| 2422 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2423 | if test -n "$ac_ct_CC"; then
|
---|
[28325] | 2424 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 2425 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
[8756] | 2426 | else
|
---|
[28325] | 2427 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2428 | echo "${ECHO_T}no" >&6; }
|
---|
[8756] | 2429 | fi
|
---|
[562] | 2430 |
|
---|
[25149] | 2431 |
|
---|
[8756] | 2432 | test -n "$ac_ct_CC" && break
|
---|
| 2433 | done
|
---|
[562] | 2434 |
|
---|
[25149] | 2435 | if test "x$ac_ct_CC" = x; then
|
---|
| 2436 | CC=""
|
---|
| 2437 | else
|
---|
| 2438 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2439 | yes:)
|
---|
[28325] | 2440 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2441 | whose name does not start with the host triplet. If you think this
|
---|
| 2442 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 2443 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2444 | whose name does not start with the host triplet. If you think this
|
---|
| 2445 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
[25149] | 2446 | ac_tool_warned=yes ;;
|
---|
| 2447 | esac
|
---|
| 2448 | CC=$ac_ct_CC
|
---|
| 2449 | fi
|
---|
[8756] | 2450 | fi
|
---|
[562] | 2451 |
|
---|
[8756] | 2452 | fi
|
---|
[562] | 2453 |
|
---|
| 2454 |
|
---|
[28325] | 2455 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
[23802] | 2456 | See \`config.log' for more details." >&5
|
---|
[28325] | 2457 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
[23802] | 2458 | See \`config.log' for more details." >&2;}
|
---|
[28325] | 2459 | { (exit 1); exit 1; }; }
|
---|
[8756] | 2460 |
|
---|
| 2461 | # Provide some information about the compiler.
|
---|
[28325] | 2462 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
| 2463 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[25149] | 2464 | { (ac_try="$ac_compiler --version >&5"
|
---|
| 2465 | case "(($ac_try" in
|
---|
| 2466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2467 | *) ac_try_echo=$ac_try;;
|
---|
| 2468 | esac
|
---|
[28325] | 2469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2470 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
[8756] | 2471 | ac_status=$?
|
---|
[28325] | 2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2473 | (exit $ac_status); }
|
---|
[25149] | 2474 | { (ac_try="$ac_compiler -v >&5"
|
---|
| 2475 | case "(($ac_try" in
|
---|
| 2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2477 | *) ac_try_echo=$ac_try;;
|
---|
| 2478 | esac
|
---|
[28325] | 2479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2480 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
[23802] | 2481 | ac_status=$?
|
---|
[28325] | 2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2483 | (exit $ac_status); }
|
---|
[25149] | 2484 | { (ac_try="$ac_compiler -V >&5"
|
---|
| 2485 | case "(($ac_try" in
|
---|
| 2486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2487 | *) ac_try_echo=$ac_try;;
|
---|
| 2488 | esac
|
---|
[28325] | 2489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2490 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
[23802] | 2491 | ac_status=$?
|
---|
[28325] | 2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2493 | (exit $ac_status); }
|
---|
[8756] | 2494 |
|
---|
[23802] | 2495 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2496 | /* confdefs.h. */
|
---|
| 2497 | _ACEOF
|
---|
| 2498 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2499 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2500 | /* end confdefs.h. */
|
---|
| 2501 |
|
---|
| 2502 | int
|
---|
| 2503 | main ()
|
---|
| 2504 | {
|
---|
| 2505 |
|
---|
| 2506 | ;
|
---|
| 2507 | return 0;
|
---|
| 2508 | }
|
---|
| 2509 | _ACEOF
|
---|
| 2510 | ac_clean_files_save=$ac_clean_files
|
---|
[28325] | 2511 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[8756] | 2512 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 2513 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 2514 | # of exeext.
|
---|
[28325] | 2515 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 2516 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
---|
| 2517 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 2518 | #
|
---|
| 2519 | # List of possible output files, starting from the most likely.
|
---|
| 2520 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
| 2521 | # only as a last resort. b.out is created by i960 compilers.
|
---|
| 2522 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
| 2523 | #
|
---|
| 2524 | # The IRIX 6 linker writes into existing files which may not be
|
---|
| 2525 | # executable, retaining their permissions. Remove them first so a
|
---|
| 2526 | # subsequent execution test works.
|
---|
[25149] | 2527 | ac_rmfiles=
|
---|
| 2528 | for ac_file in $ac_files
|
---|
| 2529 | do
|
---|
| 2530 | case $ac_file in
|
---|
[28325] | 2531 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
[25149] | 2532 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2533 | esac
|
---|
| 2534 | done
|
---|
| 2535 | rm -f $ac_rmfiles
|
---|
| 2536 |
|
---|
| 2537 | if { (ac_try="$ac_link_default"
|
---|
| 2538 | case "(($ac_try" in
|
---|
| 2539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2540 | *) ac_try_echo=$ac_try;;
|
---|
| 2541 | esac
|
---|
[28325] | 2542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2543 | (eval "$ac_link_default") 2>&5
|
---|
[23802] | 2544 | ac_status=$?
|
---|
[28325] | 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2546 | (exit $ac_status); }; then
|
---|
[25149] | 2547 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2548 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2549 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2550 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2551 | # Autoconf.
|
---|
| 2552 | for ac_file in $ac_files ''
|
---|
[8756] | 2553 | do
|
---|
| 2554 | test -f "$ac_file" || continue
|
---|
| 2555 | case $ac_file in
|
---|
[28325] | 2556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
[8756] | 2557 | ;;
|
---|
| 2558 | [ab].out )
|
---|
| 2559 | # We found the default executable, but exeext='' is most
|
---|
| 2560 | # certainly right.
|
---|
| 2561 | break;;
|
---|
| 2562 | *.* )
|
---|
[25149] | 2563 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 2564 | then :; else
|
---|
| 2565 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2566 | fi
|
---|
| 2567 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2568 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2569 | # argument, so we may need to know it at that point already.
|
---|
| 2570 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2571 | # actually working.
|
---|
[8756] | 2572 | break;;
|
---|
| 2573 | * )
|
---|
| 2574 | break;;
|
---|
| 2575 | esac
|
---|
| 2576 | done
|
---|
[25149] | 2577 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2578 |
|
---|
[8756] | 2579 | else
|
---|
[25149] | 2580 | ac_file=''
|
---|
| 2581 | fi
|
---|
| 2582 |
|
---|
[28325] | 2583 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 2584 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
[25149] | 2585 | if test -z "$ac_file"; then
|
---|
[28325] | 2586 | echo "$as_me: failed program was:" >&5
|
---|
[8756] | 2587 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2588 |
|
---|
[28325] | 2589 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
[23802] | 2590 | See \`config.log' for more details." >&5
|
---|
[28325] | 2591 | echo "$as_me: error: C compiler cannot create executables
|
---|
[23802] | 2592 | See \`config.log' for more details." >&2;}
|
---|
[28325] | 2593 | { (exit 77); exit 77; }; }
|
---|
[8756] | 2594 | fi
|
---|
[23802] | 2595 |
|
---|
[8756] | 2596 | ac_exeext=$ac_cv_exeext
|
---|
| 2597 |
|
---|
[25149] | 2598 | # Check that the compiler produces executables we can run. If not, either
|
---|
[23802] | 2599 | # the compiler is broken, or we cross compile.
|
---|
[28325] | 2600 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 2601 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
---|
[23802] | 2602 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 2603 | # If not cross compiling, check that we can run a simple program.
|
---|
| 2604 | if test "$cross_compiling" != yes; then
|
---|
| 2605 | if { ac_try='./$ac_file'
|
---|
[25149] | 2606 | { (case "(($ac_try" in
|
---|
| 2607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2608 | *) ac_try_echo=$ac_try;;
|
---|
| 2609 | esac
|
---|
[28325] | 2610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2611 | (eval "$ac_try") 2>&5
|
---|
[23802] | 2612 | ac_status=$?
|
---|
[28325] | 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2614 | (exit $ac_status); }; }; then
|
---|
| 2615 | cross_compiling=no
|
---|
| 2616 | else
|
---|
| 2617 | if test "$cross_compiling" = maybe; then
|
---|
| 2618 | cross_compiling=yes
|
---|
| 2619 | else
|
---|
[28325] | 2620 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
[23802] | 2621 | If you meant to cross compile, use \`--host'.
|
---|
| 2622 | See \`config.log' for more details." >&5
|
---|
[28325] | 2623 | echo "$as_me: error: cannot run C compiled programs.
|
---|
[23802] | 2624 | If you meant to cross compile, use \`--host'.
|
---|
| 2625 | See \`config.log' for more details." >&2;}
|
---|
[28325] | 2626 | { (exit 1); exit 1; }; }
|
---|
[23802] | 2627 | fi
|
---|
| 2628 | fi
|
---|
| 2629 | fi
|
---|
[28325] | 2630 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2631 | echo "${ECHO_T}yes" >&6; }
|
---|
[23802] | 2632 |
|
---|
[28325] | 2633 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[8756] | 2634 | ac_clean_files=$ac_clean_files_save
|
---|
[25149] | 2635 | # Check that the compiler produces executables we can run. If not, either
|
---|
[23802] | 2636 | # the compiler is broken, or we cross compile.
|
---|
[28325] | 2637 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 2638 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
| 2639 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 2640 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
[23802] | 2641 |
|
---|
[28325] | 2642 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 2643 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
[25149] | 2644 | if { (ac_try="$ac_link"
|
---|
| 2645 | case "(($ac_try" in
|
---|
| 2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2647 | *) ac_try_echo=$ac_try;;
|
---|
| 2648 | esac
|
---|
[28325] | 2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2650 | (eval "$ac_link") 2>&5
|
---|
[8756] | 2651 | ac_status=$?
|
---|
[28325] | 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2653 | (exit $ac_status); }; then
|
---|
[8756] | 2654 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2655 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2656 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2657 | # `rm'.
|
---|
| 2658 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2659 | test -f "$ac_file" || continue
|
---|
| 2660 | case $ac_file in
|
---|
[28325] | 2661 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
[8756] | 2662 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2663 | break;;
|
---|
| 2664 | * ) break;;
|
---|
| 2665 | esac
|
---|
| 2666 | done
|
---|
| 2667 | else
|
---|
[28325] | 2668 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
[23802] | 2669 | See \`config.log' for more details." >&5
|
---|
[28325] | 2670 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
[23802] | 2671 | See \`config.log' for more details." >&2;}
|
---|
[28325] | 2672 | { (exit 1); exit 1; }; }
|
---|
[562] | 2673 | fi
|
---|
| 2674 |
|
---|
[23802] | 2675 | rm -f conftest$ac_cv_exeext
|
---|
[28325] | 2676 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2677 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
[23802] | 2678 |
|
---|
[8756] | 2679 | rm -f conftest.$ac_ext
|
---|
| 2680 | EXEEXT=$ac_cv_exeext
|
---|
| 2681 | ac_exeext=$EXEEXT
|
---|
[28325] | 2682 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2683 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
[23802] | 2684 | if test "${ac_cv_objext+set}" = set; then
|
---|
[28325] | 2685 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 2686 | else
|
---|
| 2687 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2688 | /* confdefs.h. */
|
---|
[22378] | 2689 | _ACEOF
|
---|
[23802] | 2690 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2691 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2692 | /* end confdefs.h. */
|
---|
| 2693 |
|
---|
| 2694 | int
|
---|
| 2695 | main ()
|
---|
| 2696 | {
|
---|
| 2697 |
|
---|
| 2698 | ;
|
---|
| 2699 | return 0;
|
---|
| 2700 | }
|
---|
| 2701 | _ACEOF
|
---|
| 2702 | rm -f conftest.o conftest.obj
|
---|
[25149] | 2703 | if { (ac_try="$ac_compile"
|
---|
| 2704 | case "(($ac_try" in
|
---|
| 2705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2706 | *) ac_try_echo=$ac_try;;
|
---|
| 2707 | esac
|
---|
[28325] | 2708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2709 | (eval "$ac_compile") 2>&5
|
---|
[8756] | 2710 | ac_status=$?
|
---|
[28325] | 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 2712 | (exit $ac_status); }; then
|
---|
[25149] | 2713 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 2714 | test -f "$ac_file" || continue;
|
---|
[8756] | 2715 | case $ac_file in
|
---|
[28325] | 2716 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
[8756] | 2717 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2718 | break;;
|
---|
| 2719 | esac
|
---|
| 2720 | done
|
---|
[562] | 2721 | else
|
---|
[28325] | 2722 | echo "$as_me: failed program was:" >&5
|
---|
[8756] | 2723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2724 |
|
---|
[28325] | 2725 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
[23802] | 2726 | See \`config.log' for more details." >&5
|
---|
[28325] | 2727 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
[23802] | 2728 | See \`config.log' for more details." >&2;}
|
---|
[28325] | 2729 | { (exit 1); exit 1; }; }
|
---|
[562] | 2730 | fi
|
---|
[23802] | 2731 |
|
---|
[8756] | 2732 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 2733 | fi
|
---|
[28325] | 2734 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2735 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
[8756] | 2736 | OBJEXT=$ac_cv_objext
|
---|
| 2737 | ac_objext=$OBJEXT
|
---|
[28325] | 2738 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2739 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
[23802] | 2740 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
[28325] | 2741 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2742 | else
|
---|
[23802] | 2743 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2744 | /* confdefs.h. */
|
---|
| 2745 | _ACEOF
|
---|
| 2746 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2747 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2748 | /* end confdefs.h. */
|
---|
[562] | 2749 |
|
---|
[8756] | 2750 | int
|
---|
| 2751 | main ()
|
---|
| 2752 | {
|
---|
| 2753 | #ifndef __GNUC__
|
---|
| 2754 | choke me
|
---|
| 2755 | #endif
|
---|
[562] | 2756 |
|
---|
[8756] | 2757 | ;
|
---|
| 2758 | return 0;
|
---|
| 2759 | }
|
---|
| 2760 | _ACEOF
|
---|
[23802] | 2761 | rm -f conftest.$ac_objext
|
---|
[25149] | 2762 | if { (ac_try="$ac_compile"
|
---|
| 2763 | case "(($ac_try" in
|
---|
| 2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2765 | *) ac_try_echo=$ac_try;;
|
---|
| 2766 | esac
|
---|
[28325] | 2767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2768 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 2769 | ac_status=$?
|
---|
| 2770 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2771 | rm -f conftest.er1
|
---|
| 2772 | cat conftest.err >&5
|
---|
[28325] | 2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 2774 | (exit $ac_status); } && {
|
---|
| 2775 | test -z "$ac_c_werror_flag" ||
|
---|
| 2776 | test ! -s conftest.err
|
---|
| 2777 | } && test -s conftest.$ac_objext; then
|
---|
[8756] | 2778 | ac_compiler_gnu=yes
|
---|
[562] | 2779 | else
|
---|
[28325] | 2780 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 2781 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2782 |
|
---|
[25149] | 2783 | ac_compiler_gnu=no
|
---|
[562] | 2784 | fi
|
---|
[25149] | 2785 |
|
---|
| 2786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2787 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2788 |
|
---|
[8756] | 2789 | fi
|
---|
[28325] | 2790 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2791 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 2792 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[8756] | 2793 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2794 | ac_save_CFLAGS=$CFLAGS
|
---|
[28325] | 2795 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2796 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
[23802] | 2797 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
[28325] | 2798 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2799 | else
|
---|
[25149] | 2800 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 2801 | ac_c_werror_flag=yes
|
---|
| 2802 | ac_cv_prog_cc_g=no
|
---|
| 2803 | CFLAGS="-g"
|
---|
| 2804 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 2805 | /* confdefs.h. */
|
---|
| 2806 | _ACEOF
|
---|
| 2807 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2808 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2809 | /* end confdefs.h. */
|
---|
| 2810 |
|
---|
| 2811 | int
|
---|
| 2812 | main ()
|
---|
| 2813 | {
|
---|
| 2814 |
|
---|
| 2815 | ;
|
---|
| 2816 | return 0;
|
---|
| 2817 | }
|
---|
| 2818 | _ACEOF
|
---|
[23802] | 2819 | rm -f conftest.$ac_objext
|
---|
[25149] | 2820 | if { (ac_try="$ac_compile"
|
---|
| 2821 | case "(($ac_try" in
|
---|
| 2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2823 | *) ac_try_echo=$ac_try;;
|
---|
| 2824 | esac
|
---|
[28325] | 2825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2826 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 2827 | ac_status=$?
|
---|
| 2828 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2829 | rm -f conftest.er1
|
---|
| 2830 | cat conftest.err >&5
|
---|
[28325] | 2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 2832 | (exit $ac_status); } && {
|
---|
| 2833 | test -z "$ac_c_werror_flag" ||
|
---|
| 2834 | test ! -s conftest.err
|
---|
| 2835 | } && test -s conftest.$ac_objext; then
|
---|
| 2836 | ac_cv_prog_cc_g=yes
|
---|
| 2837 | else
|
---|
[28325] | 2838 | echo "$as_me: failed program was:" >&5
|
---|
[25149] | 2839 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2840 |
|
---|
| 2841 | CFLAGS=""
|
---|
| 2842 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2843 | /* confdefs.h. */
|
---|
| 2844 | _ACEOF
|
---|
| 2845 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2846 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2847 | /* end confdefs.h. */
|
---|
| 2848 |
|
---|
| 2849 | int
|
---|
| 2850 | main ()
|
---|
| 2851 | {
|
---|
| 2852 |
|
---|
| 2853 | ;
|
---|
| 2854 | return 0;
|
---|
| 2855 | }
|
---|
| 2856 | _ACEOF
|
---|
| 2857 | rm -f conftest.$ac_objext
|
---|
| 2858 | if { (ac_try="$ac_compile"
|
---|
| 2859 | case "(($ac_try" in
|
---|
| 2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2861 | *) ac_try_echo=$ac_try;;
|
---|
| 2862 | esac
|
---|
[28325] | 2863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2864 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 2865 | ac_status=$?
|
---|
[25149] | 2866 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2867 | rm -f conftest.er1
|
---|
| 2868 | cat conftest.err >&5
|
---|
[28325] | 2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 2870 | (exit $ac_status); } && {
|
---|
| 2871 | test -z "$ac_c_werror_flag" ||
|
---|
| 2872 | test ! -s conftest.err
|
---|
| 2873 | } && test -s conftest.$ac_objext; then
|
---|
| 2874 | :
|
---|
| 2875 | else
|
---|
[28325] | 2876 | echo "$as_me: failed program was:" >&5
|
---|
[25149] | 2877 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2878 |
|
---|
| 2879 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 2880 | CFLAGS="-g"
|
---|
| 2881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2882 | /* confdefs.h. */
|
---|
| 2883 | _ACEOF
|
---|
| 2884 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2886 | /* end confdefs.h. */
|
---|
| 2887 |
|
---|
| 2888 | int
|
---|
| 2889 | main ()
|
---|
| 2890 | {
|
---|
| 2891 |
|
---|
| 2892 | ;
|
---|
| 2893 | return 0;
|
---|
| 2894 | }
|
---|
| 2895 | _ACEOF
|
---|
| 2896 | rm -f conftest.$ac_objext
|
---|
| 2897 | if { (ac_try="$ac_compile"
|
---|
| 2898 | case "(($ac_try" in
|
---|
| 2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2900 | *) ac_try_echo=$ac_try;;
|
---|
| 2901 | esac
|
---|
[28325] | 2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 2903 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 2904 | ac_status=$?
|
---|
[25149] | 2905 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2906 | rm -f conftest.er1
|
---|
| 2907 | cat conftest.err >&5
|
---|
[28325] | 2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 2909 | (exit $ac_status); } && {
|
---|
| 2910 | test -z "$ac_c_werror_flag" ||
|
---|
| 2911 | test ! -s conftest.err
|
---|
| 2912 | } && test -s conftest.$ac_objext; then
|
---|
[562] | 2913 | ac_cv_prog_cc_g=yes
|
---|
| 2914 | else
|
---|
[28325] | 2915 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 2916 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2917 |
|
---|
[25149] | 2918 |
|
---|
[562] | 2919 | fi
|
---|
[25149] | 2920 |
|
---|
| 2921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2922 | fi
|
---|
[25149] | 2923 |
|
---|
| 2924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2925 | fi
|
---|
| 2926 |
|
---|
| 2927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2928 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 2929 | fi
|
---|
[28325] | 2930 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2931 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
[562] | 2932 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2933 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2934 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2935 | if test "$GCC" = yes; then
|
---|
| 2936 | CFLAGS="-g -O2"
|
---|
| 2937 | else
|
---|
| 2938 | CFLAGS="-g"
|
---|
| 2939 | fi
|
---|
| 2940 | else
|
---|
| 2941 | if test "$GCC" = yes; then
|
---|
| 2942 | CFLAGS="-O2"
|
---|
| 2943 | else
|
---|
| 2944 | CFLAGS=
|
---|
| 2945 | fi
|
---|
| 2946 | fi
|
---|
[28325] | 2947 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
| 2948 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
[25149] | 2949 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
[28325] | 2950 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2951 | else
|
---|
[25149] | 2952 | ac_cv_prog_cc_c89=no
|
---|
[8756] | 2953 | ac_save_CC=$CC
|
---|
[23802] | 2954 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2955 | /* confdefs.h. */
|
---|
| 2956 | _ACEOF
|
---|
| 2957 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2958 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2959 | /* end confdefs.h. */
|
---|
| 2960 | #include <stdarg.h>
|
---|
| 2961 | #include <stdio.h>
|
---|
| 2962 | #include <sys/types.h>
|
---|
| 2963 | #include <sys/stat.h>
|
---|
| 2964 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2965 | struct buf { int x; };
|
---|
| 2966 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2967 | static char *e (p, i)
|
---|
| 2968 | char **p;
|
---|
| 2969 | int i;
|
---|
| 2970 | {
|
---|
| 2971 | return p[i];
|
---|
| 2972 | }
|
---|
| 2973 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2974 | {
|
---|
| 2975 | char *s;
|
---|
| 2976 | va_list v;
|
---|
| 2977 | va_start (v,p);
|
---|
| 2978 | s = g (p, va_arg (v,int));
|
---|
| 2979 | va_end (v);
|
---|
| 2980 | return s;
|
---|
| 2981 | }
|
---|
[8200] | 2982 |
|
---|
[8756] | 2983 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2984 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2985 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[25149] | 2986 | as 'x'. The following induces an error, until -std is added to get
|
---|
[8756] | 2987 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2988 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[25149] | 2989 | that's true only with -std. */
|
---|
[8756] | 2990 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2991 |
|
---|
[25149] | 2992 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 2993 | inside strings and character constants. */
|
---|
| 2994 | #define FOO(x) 'x'
|
---|
| 2995 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 2996 |
|
---|
[8756] | 2997 | int test (int i, double x);
|
---|
| 2998 | struct s1 {int (*f) (int a);};
|
---|
| 2999 | struct s2 {int (*f) (double a);};
|
---|
| 3000 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3001 | int argc;
|
---|
| 3002 | char **argv;
|
---|
| 3003 | int
|
---|
| 3004 | main ()
|
---|
| 3005 | {
|
---|
| 3006 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3007 | ;
|
---|
| 3008 | return 0;
|
---|
| 3009 | }
|
---|
| 3010 | _ACEOF
|
---|
[25149] | 3011 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3012 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 3013 | do
|
---|
[8756] | 3014 | CC="$ac_save_CC $ac_arg"
|
---|
[23802] | 3015 | rm -f conftest.$ac_objext
|
---|
[25149] | 3016 | if { (ac_try="$ac_compile"
|
---|
| 3017 | case "(($ac_try" in
|
---|
| 3018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3019 | *) ac_try_echo=$ac_try;;
|
---|
| 3020 | esac
|
---|
[28325] | 3021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3022 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 3023 | ac_status=$?
|
---|
| 3024 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3025 | rm -f conftest.er1
|
---|
| 3026 | cat conftest.err >&5
|
---|
[28325] | 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 3028 | (exit $ac_status); } && {
|
---|
| 3029 | test -z "$ac_c_werror_flag" ||
|
---|
| 3030 | test ! -s conftest.err
|
---|
| 3031 | } && test -s conftest.$ac_objext; then
|
---|
| 3032 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[23802] | 3033 | else
|
---|
[28325] | 3034 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 3035 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3036 |
|
---|
[25149] | 3037 |
|
---|
[562] | 3038 | fi
|
---|
[25149] | 3039 |
|
---|
| 3040 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3041 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[8756] | 3042 | done
|
---|
[25149] | 3043 | rm -f conftest.$ac_ext
|
---|
[8756] | 3044 | CC=$ac_save_CC
|
---|
| 3045 |
|
---|
[562] | 3046 | fi
|
---|
[25149] | 3047 | # AC_CACHE_VAL
|
---|
| 3048 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3049 | x)
|
---|
[28325] | 3050 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 3051 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
[25149] | 3052 | xno)
|
---|
[28325] | 3053 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
| 3054 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
[8756] | 3055 | *)
|
---|
[25149] | 3056 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
[28325] | 3057 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 3058 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[8756] | 3059 | esac
|
---|
| 3060 |
|
---|
[23802] | 3061 |
|
---|
[8756] | 3062 | ac_ext=c
|
---|
| 3063 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 3067 |
|
---|
[25149] | 3068 | ac_ext=cpp
|
---|
[8200] | 3069 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 3070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[25149] | 3073 | if test -z "$CXX"; then
|
---|
| 3074 | if test -n "$CCC"; then
|
---|
| 3075 | CXX=$CCC
|
---|
| 3076 | else
|
---|
| 3077 | if test -n "$ac_tool_prefix"; then
|
---|
| 3078 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8756] | 3079 | do
|
---|
| 3080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[28325] | 3082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 3084 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
[28325] | 3085 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3086 | else
|
---|
| 3087 | if test -n "$CXX"; then
|
---|
| 3088 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 3089 | else
|
---|
| 3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3091 | for as_dir in $PATH
|
---|
| 3092 | do
|
---|
| 3093 | IFS=$as_save_IFS
|
---|
| 3094 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3095 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3097 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[28325] | 3098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3099 | break 2
|
---|
| 3100 | fi
|
---|
| 3101 | done
|
---|
[23802] | 3102 | done
|
---|
[25149] | 3103 | IFS=$as_save_IFS
|
---|
[8200] | 3104 |
|
---|
[8756] | 3105 | fi
|
---|
| 3106 | fi
|
---|
| 3107 | CXX=$ac_cv_prog_CXX
|
---|
| 3108 | if test -n "$CXX"; then
|
---|
[28325] | 3109 | { echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 3110 | echo "${ECHO_T}$CXX" >&6; }
|
---|
[8756] | 3111 | else
|
---|
[28325] | 3112 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3113 | echo "${ECHO_T}no" >&6; }
|
---|
[8756] | 3114 | fi
|
---|
[8200] | 3115 |
|
---|
[25149] | 3116 |
|
---|
[8756] | 3117 | test -n "$CXX" && break
|
---|
| 3118 | done
|
---|
| 3119 | fi
|
---|
| 3120 | if test -z "$CXX"; then
|
---|
| 3121 | ac_ct_CXX=$CXX
|
---|
[25149] | 3122 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8756] | 3123 | do
|
---|
| 3124 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3125 | set dummy $ac_prog; ac_word=$2
|
---|
[28325] | 3126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 3128 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
[28325] | 3129 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3130 | else
|
---|
| 3131 | if test -n "$ac_ct_CXX"; then
|
---|
| 3132 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 3133 | else
|
---|
| 3134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3135 | for as_dir in $PATH
|
---|
| 3136 | do
|
---|
| 3137 | IFS=$as_save_IFS
|
---|
| 3138 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3139 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3141 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[28325] | 3142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3143 | break 2
|
---|
| 3144 | fi
|
---|
| 3145 | done
|
---|
[23802] | 3146 | done
|
---|
[25149] | 3147 | IFS=$as_save_IFS
|
---|
[8200] | 3148 |
|
---|
[8756] | 3149 | fi
|
---|
| 3150 | fi
|
---|
| 3151 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 3152 | if test -n "$ac_ct_CXX"; then
|
---|
[28325] | 3153 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 3154 | echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
---|
[3631] | 3155 | else
|
---|
[28325] | 3156 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3157 | echo "${ECHO_T}no" >&6; }
|
---|
[3631] | 3158 | fi
|
---|
[562] | 3159 |
|
---|
[25149] | 3160 |
|
---|
[8756] | 3161 | test -n "$ac_ct_CXX" && break
|
---|
| 3162 | done
|
---|
| 3163 |
|
---|
[25149] | 3164 | if test "x$ac_ct_CXX" = x; then
|
---|
| 3165 | CXX="g++"
|
---|
| 3166 | else
|
---|
| 3167 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3168 | yes:)
|
---|
[28325] | 3169 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3170 | whose name does not start with the host triplet. If you think this
|
---|
| 3171 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 3172 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3173 | whose name does not start with the host triplet. If you think this
|
---|
| 3174 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
[25149] | 3175 | ac_tool_warned=yes ;;
|
---|
| 3176 | esac
|
---|
| 3177 | CXX=$ac_ct_CXX
|
---|
| 3178 | fi
|
---|
[3631] | 3179 | fi
|
---|
[562] | 3180 |
|
---|
[25149] | 3181 | fi
|
---|
| 3182 | fi
|
---|
[8756] | 3183 | # Provide some information about the compiler.
|
---|
[28325] | 3184 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
---|
| 3185 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[25149] | 3186 | { (ac_try="$ac_compiler --version >&5"
|
---|
| 3187 | case "(($ac_try" in
|
---|
| 3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3189 | *) ac_try_echo=$ac_try;;
|
---|
| 3190 | esac
|
---|
[28325] | 3191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3192 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
[8756] | 3193 | ac_status=$?
|
---|
[28325] | 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 3195 | (exit $ac_status); }
|
---|
[25149] | 3196 | { (ac_try="$ac_compiler -v >&5"
|
---|
| 3197 | case "(($ac_try" in
|
---|
| 3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3199 | *) ac_try_echo=$ac_try;;
|
---|
| 3200 | esac
|
---|
[28325] | 3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3202 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
[23802] | 3203 | ac_status=$?
|
---|
[28325] | 3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 3205 | (exit $ac_status); }
|
---|
[25149] | 3206 | { (ac_try="$ac_compiler -V >&5"
|
---|
| 3207 | case "(($ac_try" in
|
---|
| 3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3209 | *) ac_try_echo=$ac_try;;
|
---|
| 3210 | esac
|
---|
[28325] | 3211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3212 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
[23802] | 3213 | ac_status=$?
|
---|
[28325] | 3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 3215 | (exit $ac_status); }
|
---|
[8756] | 3216 |
|
---|
[28325] | 3217 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 3218 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
---|
[23802] | 3219 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
[28325] | 3220 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 3221 | else
|
---|
[23802] | 3222 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3223 | /* confdefs.h. */
|
---|
| 3224 | _ACEOF
|
---|
| 3225 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3226 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3227 | /* end confdefs.h. */
|
---|
| 3228 |
|
---|
| 3229 | int
|
---|
| 3230 | main ()
|
---|
| 3231 | {
|
---|
| 3232 | #ifndef __GNUC__
|
---|
| 3233 | choke me
|
---|
[3631] | 3234 | #endif
|
---|
[8756] | 3235 |
|
---|
| 3236 | ;
|
---|
| 3237 | return 0;
|
---|
| 3238 | }
|
---|
| 3239 | _ACEOF
|
---|
[23802] | 3240 | rm -f conftest.$ac_objext
|
---|
[25149] | 3241 | if { (ac_try="$ac_compile"
|
---|
| 3242 | case "(($ac_try" in
|
---|
| 3243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3244 | *) ac_try_echo=$ac_try;;
|
---|
| 3245 | esac
|
---|
[28325] | 3246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3247 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 3248 | ac_status=$?
|
---|
| 3249 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3250 | rm -f conftest.er1
|
---|
| 3251 | cat conftest.err >&5
|
---|
[28325] | 3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 3253 | (exit $ac_status); } && {
|
---|
| 3254 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3255 | test ! -s conftest.err
|
---|
| 3256 | } && test -s conftest.$ac_objext; then
|
---|
[8756] | 3257 | ac_compiler_gnu=yes
|
---|
[8200] | 3258 | else
|
---|
[28325] | 3259 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 3260 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3261 |
|
---|
[25149] | 3262 | ac_compiler_gnu=no
|
---|
[8200] | 3263 | fi
|
---|
[25149] | 3264 |
|
---|
| 3265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3266 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 3267 |
|
---|
[8200] | 3268 | fi
|
---|
[28325] | 3269 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 3270 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 3271 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[8756] | 3272 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3273 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[28325] | 3274 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 3275 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
---|
[23802] | 3276 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
[28325] | 3277 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3278 | else
|
---|
[25149] | 3279 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3280 | ac_cxx_werror_flag=yes
|
---|
| 3281 | ac_cv_prog_cxx_g=no
|
---|
| 3282 | CXXFLAGS="-g"
|
---|
| 3283 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 3284 | /* confdefs.h. */
|
---|
| 3285 | _ACEOF
|
---|
| 3286 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3287 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3288 | /* end confdefs.h. */
|
---|
[3631] | 3289 |
|
---|
[8756] | 3290 | int
|
---|
| 3291 | main ()
|
---|
| 3292 | {
|
---|
[8200] | 3293 |
|
---|
[8756] | 3294 | ;
|
---|
| 3295 | return 0;
|
---|
| 3296 | }
|
---|
| 3297 | _ACEOF
|
---|
[23802] | 3298 | rm -f conftest.$ac_objext
|
---|
[25149] | 3299 | if { (ac_try="$ac_compile"
|
---|
| 3300 | case "(($ac_try" in
|
---|
| 3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3302 | *) ac_try_echo=$ac_try;;
|
---|
| 3303 | esac
|
---|
[28325] | 3304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3305 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 3306 | ac_status=$?
|
---|
| 3307 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3308 | rm -f conftest.er1
|
---|
| 3309 | cat conftest.err >&5
|
---|
[28325] | 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 3311 | (exit $ac_status); } && {
|
---|
| 3312 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3313 | test ! -s conftest.err
|
---|
| 3314 | } && test -s conftest.$ac_objext; then
|
---|
[562] | 3315 | ac_cv_prog_cxx_g=yes
|
---|
| 3316 | else
|
---|
[28325] | 3317 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 3318 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3319 |
|
---|
[25149] | 3320 | CXXFLAGS=""
|
---|
| 3321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 3322 | /* confdefs.h. */
|
---|
| 3323 | _ACEOF
|
---|
| 3324 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3325 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[22378] | 3326 | /* end confdefs.h. */
|
---|
[25149] | 3327 |
|
---|
[8756] | 3328 | int
|
---|
| 3329 | main ()
|
---|
| 3330 | {
|
---|
[25149] | 3331 |
|
---|
[8756] | 3332 | ;
|
---|
| 3333 | return 0;
|
---|
| 3334 | }
|
---|
| 3335 | _ACEOF
|
---|
[23802] | 3336 | rm -f conftest.$ac_objext
|
---|
[25149] | 3337 | if { (ac_try="$ac_compile"
|
---|
| 3338 | case "(($ac_try" in
|
---|
| 3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3340 | *) ac_try_echo=$ac_try;;
|
---|
| 3341 | esac
|
---|
[28325] | 3342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3343 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 3344 | ac_status=$?
|
---|
| 3345 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3346 | rm -f conftest.er1
|
---|
| 3347 | cat conftest.err >&5
|
---|
[28325] | 3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 3349 | (exit $ac_status); } && {
|
---|
| 3350 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3351 | test ! -s conftest.err
|
---|
| 3352 | } && test -s conftest.$ac_objext; then
|
---|
[23802] | 3353 | :
|
---|
| 3354 | else
|
---|
[28325] | 3355 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 3356 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 3357 |
|
---|
[25149] | 3358 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3359 | CXXFLAGS="-g"
|
---|
| 3360 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 3361 | /* confdefs.h. */
|
---|
| 3362 | _ACEOF
|
---|
| 3363 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3364 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[22378] | 3365 | /* end confdefs.h. */
|
---|
[25149] | 3366 |
|
---|
[8756] | 3367 | int
|
---|
| 3368 | main ()
|
---|
| 3369 | {
|
---|
[25149] | 3370 |
|
---|
[8756] | 3371 | ;
|
---|
| 3372 | return 0;
|
---|
| 3373 | }
|
---|
| 3374 | _ACEOF
|
---|
[23802] | 3375 | rm -f conftest.$ac_objext
|
---|
[25149] | 3376 | if { (ac_try="$ac_compile"
|
---|
| 3377 | case "(($ac_try" in
|
---|
| 3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3379 | *) ac_try_echo=$ac_try;;
|
---|
| 3380 | esac
|
---|
[28325] | 3381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3382 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 3383 | ac_status=$?
|
---|
| 3384 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3385 | rm -f conftest.er1
|
---|
| 3386 | cat conftest.err >&5
|
---|
[28325] | 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 3388 | (exit $ac_status); } && {
|
---|
| 3389 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3390 | test ! -s conftest.err
|
---|
| 3391 | } && test -s conftest.$ac_objext; then
|
---|
| 3392 | ac_cv_prog_cxx_g=yes
|
---|
[23802] | 3393 | else
|
---|
[28325] | 3394 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 3395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3396 |
|
---|
[25149] | 3397 |
|
---|
[22378] | 3398 | fi
|
---|
[25149] | 3399 |
|
---|
| 3400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[22378] | 3401 | fi
|
---|
[23802] | 3402 |
|
---|
[25149] | 3403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3404 | fi
|
---|
| 3405 |
|
---|
| 3406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3407 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3408 | fi
|
---|
[28325] | 3409 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 3410 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
---|
[25149] | 3411 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3412 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3413 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3414 | if test "$GXX" = yes; then
|
---|
| 3415 | CXXFLAGS="-g -O2"
|
---|
| 3416 | else
|
---|
| 3417 | CXXFLAGS="-g"
|
---|
| 3418 | fi
|
---|
| 3419 | else
|
---|
| 3420 | if test "$GXX" = yes; then
|
---|
| 3421 | CXXFLAGS="-O2"
|
---|
| 3422 | else
|
---|
| 3423 | CXXFLAGS=
|
---|
| 3424 | fi
|
---|
| 3425 | fi
|
---|
[8756] | 3426 | ac_ext=c
|
---|
| 3427 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3431 |
|
---|
| 3432 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 3433 | do
|
---|
[8756] | 3434 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 3435 | set dummy $ac_prog; ac_word=$2
|
---|
[28325] | 3436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 3438 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
[28325] | 3439 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3440 | else
|
---|
| 3441 | if test -n "$AWK"; then
|
---|
| 3442 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3443 | else
|
---|
[8756] | 3444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3445 | for as_dir in $PATH
|
---|
| 3446 | do
|
---|
| 3447 | IFS=$as_save_IFS
|
---|
| 3448 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3449 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3451 | ac_cv_prog_AWK="$ac_prog"
|
---|
[28325] | 3452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3453 | break 2
|
---|
| 3454 | fi
|
---|
| 3455 | done
|
---|
[23802] | 3456 | done
|
---|
[25149] | 3457 | IFS=$as_save_IFS
|
---|
[8756] | 3458 |
|
---|
[687] | 3459 | fi
|
---|
| 3460 | fi
|
---|
[8756] | 3461 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 3462 | if test -n "$AWK"; then
|
---|
[28325] | 3463 | { echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 3464 | echo "${ECHO_T}$AWK" >&6; }
|
---|
[687] | 3465 | else
|
---|
[28325] | 3466 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3467 | echo "${ECHO_T}no" >&6; }
|
---|
[687] | 3468 | fi
|
---|
| 3469 |
|
---|
[25149] | 3470 |
|
---|
[8756] | 3471 | test -n "$AWK" && break
|
---|
[687] | 3472 | done
|
---|
| 3473 |
|
---|
| 3474 | for ac_prog in 'bison -y' byacc
|
---|
| 3475 | do
|
---|
[8756] | 3476 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 3477 | set dummy $ac_prog; ac_word=$2
|
---|
[28325] | 3478 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 3480 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
[28325] | 3481 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3482 | else
|
---|
| 3483 | if test -n "$YACC"; then
|
---|
| 3484 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3485 | else
|
---|
[8756] | 3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3487 | for as_dir in $PATH
|
---|
| 3488 | do
|
---|
| 3489 | IFS=$as_save_IFS
|
---|
| 3490 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3491 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3493 | ac_cv_prog_YACC="$ac_prog"
|
---|
[28325] | 3494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3495 | break 2
|
---|
| 3496 | fi
|
---|
| 3497 | done
|
---|
[23802] | 3498 | done
|
---|
[25149] | 3499 | IFS=$as_save_IFS
|
---|
[8756] | 3500 |
|
---|
[687] | 3501 | fi
|
---|
| 3502 | fi
|
---|
[8756] | 3503 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 3504 | if test -n "$YACC"; then
|
---|
[28325] | 3505 | { echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 3506 | echo "${ECHO_T}$YACC" >&6; }
|
---|
[687] | 3507 | else
|
---|
[28325] | 3508 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3509 | echo "${ECHO_T}no" >&6; }
|
---|
[687] | 3510 | fi
|
---|
| 3511 |
|
---|
[25149] | 3512 |
|
---|
[8756] | 3513 | test -n "$YACC" && break
|
---|
[687] | 3514 | done
|
---|
| 3515 | test -n "$YACC" || YACC="yacc"
|
---|
| 3516 |
|
---|
[703] | 3517 | ac_aux_dir=
|
---|
[25149] | 3518 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
| 3519 | if test -f "$ac_dir/install-sh"; then
|
---|
[23356] | 3520 | ac_aux_dir=$ac_dir
|
---|
| 3521 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 3522 | break
|
---|
[25149] | 3523 | elif test -f "$ac_dir/install.sh"; then
|
---|
[23356] | 3524 | ac_aux_dir=$ac_dir
|
---|
| 3525 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 3526 | break
|
---|
[25149] | 3527 | elif test -f "$ac_dir/shtool"; then
|
---|
[23356] | 3528 | ac_aux_dir=$ac_dir
|
---|
| 3529 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 3530 | break
|
---|
| 3531 | fi
|
---|
[703] | 3532 | done
|
---|
| 3533 | if test -z "$ac_aux_dir"; then
|
---|
[28325] | 3534 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
| 3535 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
[23802] | 3536 | { (exit 1); exit 1; }; }
|
---|
[703] | 3537 | fi
|
---|
| 3538 |
|
---|
[25149] | 3539 | # These three variables are undocumented and unsupported,
|
---|
| 3540 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 3541 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 3542 | # whose full name contains unusual characters.
|
---|
| 3543 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 3544 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 3545 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 3546 |
|
---|
| 3547 |
|
---|
[8756] | 3548 | # Make sure we can run config.sub.
|
---|
[25149] | 3549 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
[28325] | 3550 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
---|
| 3551 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
---|
[23802] | 3552 | { (exit 1); exit 1; }; }
|
---|
[2279] | 3553 |
|
---|
[28325] | 3554 | { echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 3555 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
---|
[23802] | 3556 | if test "${ac_cv_build+set}" = set; then
|
---|
[28325] | 3557 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3558 | else
|
---|
[25149] | 3559 | ac_build_alias=$build_alias
|
---|
| 3560 | test "x$ac_build_alias" = x &&
|
---|
| 3561 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 3562 | test "x$ac_build_alias" = x &&
|
---|
[28325] | 3563 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 3564 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
[23802] | 3565 | { (exit 1); exit 1; }; }
|
---|
[25149] | 3566 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
[28325] | 3567 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
---|
| 3568 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
---|
[23802] | 3569 | { (exit 1); exit 1; }; }
|
---|
[2279] | 3570 |
|
---|
| 3571 | fi
|
---|
[28325] | 3572 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 3573 | echo "${ECHO_T}$ac_cv_build" >&6; }
|
---|
[25149] | 3574 | case $ac_cv_build in
|
---|
| 3575 | *-*-*) ;;
|
---|
[28325] | 3576 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
---|
| 3577 | echo "$as_me: error: invalid value of canonical build" >&2;}
|
---|
[25149] | 3578 | { (exit 1); exit 1; }; };;
|
---|
| 3579 | esac
|
---|
[8756] | 3580 | build=$ac_cv_build
|
---|
[25149] | 3581 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3582 | set x $ac_cv_build
|
---|
| 3583 | shift
|
---|
| 3584 | build_cpu=$1
|
---|
| 3585 | build_vendor=$2
|
---|
| 3586 | shift; shift
|
---|
| 3587 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3588 | # except with old shells:
|
---|
| 3589 | build_os=$*
|
---|
| 3590 | IFS=$ac_save_IFS
|
---|
| 3591 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[2279] | 3592 |
|
---|
| 3593 |
|
---|
[28325] | 3594 | { echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 3595 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
---|
[23802] | 3596 | if test "${ac_cv_host+set}" = set; then
|
---|
[28325] | 3597 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3598 | else
|
---|
[25149] | 3599 | if test "x$host_alias" = x; then
|
---|
| 3600 | ac_cv_host=$ac_cv_build
|
---|
| 3601 | else
|
---|
| 3602 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
[28325] | 3603 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
---|
| 3604 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
---|
[23802] | 3605 | { (exit 1); exit 1; }; }
|
---|
[25149] | 3606 | fi
|
---|
[2279] | 3607 |
|
---|
[8756] | 3608 | fi
|
---|
[28325] | 3609 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 3610 | echo "${ECHO_T}$ac_cv_host" >&6; }
|
---|
[25149] | 3611 | case $ac_cv_host in
|
---|
| 3612 | *-*-*) ;;
|
---|
[28325] | 3613 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
---|
| 3614 | echo "$as_me: error: invalid value of canonical host" >&2;}
|
---|
[25149] | 3615 | { (exit 1); exit 1; }; };;
|
---|
| 3616 | esac
|
---|
[8756] | 3617 | host=$ac_cv_host
|
---|
[25149] | 3618 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3619 | set x $ac_cv_host
|
---|
| 3620 | shift
|
---|
| 3621 | host_cpu=$1
|
---|
| 3622 | host_vendor=$2
|
---|
| 3623 | shift; shift
|
---|
| 3624 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3625 | # except with old shells:
|
---|
| 3626 | host_os=$*
|
---|
| 3627 | IFS=$ac_save_IFS
|
---|
| 3628 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[8200] | 3629 |
|
---|
| 3630 |
|
---|
[28325] | 3631 | { echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 3632 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
---|
[23802] | 3633 | if test "${ac_cv_target+set}" = set; then
|
---|
[28325] | 3634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3635 | else
|
---|
[25149] | 3636 | if test "x$target_alias" = x; then
|
---|
| 3637 | ac_cv_target=$ac_cv_host
|
---|
| 3638 | else
|
---|
| 3639 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
[28325] | 3640 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
---|
| 3641 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
---|
[23802] | 3642 | { (exit 1); exit 1; }; }
|
---|
[25149] | 3643 | fi
|
---|
[8200] | 3644 |
|
---|
[8756] | 3645 | fi
|
---|
[28325] | 3646 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 3647 | echo "${ECHO_T}$ac_cv_target" >&6; }
|
---|
[25149] | 3648 | case $ac_cv_target in
|
---|
| 3649 | *-*-*) ;;
|
---|
[28325] | 3650 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
---|
| 3651 | echo "$as_me: error: invalid value of canonical target" >&2;}
|
---|
[25149] | 3652 | { (exit 1); exit 1; }; };;
|
---|
| 3653 | esac
|
---|
[8756] | 3654 | target=$ac_cv_target
|
---|
[25149] | 3655 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3656 | set x $ac_cv_target
|
---|
| 3657 | shift
|
---|
| 3658 | target_cpu=$1
|
---|
| 3659 | target_vendor=$2
|
---|
| 3660 | shift; shift
|
---|
| 3661 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3662 | # except with old shells:
|
---|
| 3663 | target_os=$*
|
---|
| 3664 | IFS=$ac_save_IFS
|
---|
| 3665 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[8200] | 3666 |
|
---|
| 3667 |
|
---|
[8756] | 3668 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3669 | # will get canonicalized.
|
---|
| 3670 | test -n "$target_alias" &&
|
---|
[2279] | 3671 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3672 | NONENONEs,x,x, &&
|
---|
| 3673 | program_prefix=${target_alias}-
|
---|
[703] | 3674 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3675 | # so one script is as good as another. But avoid the broken or
|
---|
| 3676 | # incompatible versions:
|
---|
| 3677 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3678 | # SunOS /usr/etc/install
|
---|
| 3679 | # IRIX /sbin/install
|
---|
| 3680 | # AIX /bin/install
|
---|
[8756] | 3681 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 3682 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3683 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3684 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 3685 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 3686 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[28325] | 3687 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3688 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
[703] | 3689 | if test -z "$INSTALL"; then
|
---|
[23802] | 3690 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[28325] | 3691 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 3692 | else
|
---|
[8756] | 3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3694 | for as_dir in $PATH
|
---|
| 3695 | do
|
---|
| 3696 | IFS=$as_save_IFS
|
---|
| 3697 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3698 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3699 | case $as_dir/ in
|
---|
| 3700 | ./ | .// | /cC/* | \
|
---|
[8756] | 3701 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[23802] | 3702 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
[8756] | 3703 | /usr/ucb/* ) ;;
|
---|
| 3704 | *)
|
---|
| 3705 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3706 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3707 | # by default.
|
---|
| 3708 | for ac_prog in ginstall scoinst install; do
|
---|
| 3709 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3710 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[703] | 3711 | if test $ac_prog = install &&
|
---|
[8756] | 3712 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 3713 | # AIX install. It has an incompatible calling convention.
|
---|
| 3714 | :
|
---|
[8756] | 3715 | elif test $ac_prog = install &&
|
---|
| 3716 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3717 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3718 | :
|
---|
[703] | 3719 | else
|
---|
[28325] | 3720 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3721 | break 3
|
---|
[703] | 3722 | fi
|
---|
| 3723 | fi
|
---|
| 3724 | done
|
---|
[8756] | 3725 | done
|
---|
| 3726 | ;;
|
---|
| 3727 | esac
|
---|
[23802] | 3728 | done
|
---|
[25149] | 3729 | IFS=$as_save_IFS
|
---|
[703] | 3730 |
|
---|
[8756] | 3731 |
|
---|
[703] | 3732 | fi
|
---|
| 3733 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 3734 | INSTALL=$ac_cv_path_install
|
---|
[703] | 3735 | else
|
---|
[25149] | 3736 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3737 | # value for INSTALL within a source directory, because that will
|
---|
[703] | 3738 | # break other packages using the cache if that directory is
|
---|
[25149] | 3739 | # removed, or if the value is a relative name.
|
---|
[8756] | 3740 | INSTALL=$ac_install_sh
|
---|
[703] | 3741 | fi
|
---|
| 3742 | fi
|
---|
[28325] | 3743 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3744 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
[703] | 3745 |
|
---|
| 3746 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3747 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3748 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3749 |
|
---|
[8756] | 3750 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 3751 |
|
---|
| 3752 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3753 |
|
---|
[28325] | 3754 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3755 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
---|
[8756] | 3756 | LN_S=$as_ln_s
|
---|
| 3757 | if test "$LN_S" = "ln -s"; then
|
---|
[28325] | 3758 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3759 | echo "${ECHO_T}yes" >&6; }
|
---|
[562] | 3760 | else
|
---|
[28325] | 3761 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3762 | echo "${ECHO_T}no, using $LN_S" >&6; }
|
---|
[562] | 3763 | fi
|
---|
| 3764 |
|
---|
[28325] | 3765 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3766 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
---|
| 3767 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
[25149] | 3768 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 3769 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3770 | else
|
---|
[8756] | 3771 | cat >conftest.make <<\_ACEOF
|
---|
[25149] | 3772 | SHELL = /bin/sh
|
---|
[562] | 3773 | all:
|
---|
[25149] | 3774 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[8756] | 3775 | _ACEOF
|
---|
[23802] | 3776 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[25149] | 3777 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3778 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3779 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3780 | *)
|
---|
| 3781 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3782 | esac
|
---|
[8756] | 3783 | rm -f conftest.make
|
---|
[562] | 3784 | fi
|
---|
[25149] | 3785 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
[28325] | 3786 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3787 | echo "${ECHO_T}yes" >&6; }
|
---|
[562] | 3788 | SET_MAKE=
|
---|
| 3789 | else
|
---|
[28325] | 3790 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3791 | echo "${ECHO_T}no" >&6; }
|
---|
[562] | 3792 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3793 | fi
|
---|
| 3794 |
|
---|
[8756] | 3795 | if test -n "$ac_tool_prefix"; then
|
---|
| 3796 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3797 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[28325] | 3798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 3800 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
[28325] | 3801 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3802 | else
|
---|
| 3803 | if test -n "$RANLIB"; then
|
---|
| 3804 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3805 | else
|
---|
[8756] | 3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3807 | for as_dir in $PATH
|
---|
| 3808 | do
|
---|
| 3809 | IFS=$as_save_IFS
|
---|
| 3810 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3811 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3813 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[28325] | 3814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3815 | break 2
|
---|
| 3816 | fi
|
---|
| 3817 | done
|
---|
[23802] | 3818 | done
|
---|
[25149] | 3819 | IFS=$as_save_IFS
|
---|
[8756] | 3820 |
|
---|
[562] | 3821 | fi
|
---|
| 3822 | fi
|
---|
[8756] | 3823 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3824 | if test -n "$RANLIB"; then
|
---|
[28325] | 3825 | { echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3826 | echo "${ECHO_T}$RANLIB" >&6; }
|
---|
[562] | 3827 | else
|
---|
[28325] | 3828 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3829 | echo "${ECHO_T}no" >&6; }
|
---|
[562] | 3830 | fi
|
---|
| 3831 |
|
---|
[25149] | 3832 |
|
---|
[8756] | 3833 | fi
|
---|
| 3834 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3835 | ac_ct_RANLIB=$RANLIB
|
---|
| 3836 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3837 | set dummy ranlib; ac_word=$2
|
---|
[28325] | 3838 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[23802] | 3840 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
[28325] | 3841 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3842 | else
|
---|
| 3843 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3844 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3845 | else
|
---|
| 3846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3847 | for as_dir in $PATH
|
---|
| 3848 | do
|
---|
| 3849 | IFS=$as_save_IFS
|
---|
| 3850 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3851 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[25149] | 3852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3853 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[28325] | 3854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3855 | break 2
|
---|
| 3856 | fi
|
---|
| 3857 | done
|
---|
[23802] | 3858 | done
|
---|
[25149] | 3859 | IFS=$as_save_IFS
|
---|
[562] | 3860 |
|
---|
[8756] | 3861 | fi
|
---|
| 3862 | fi
|
---|
| 3863 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3864 | if test -n "$ac_ct_RANLIB"; then
|
---|
[28325] | 3865 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3866 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
---|
[8756] | 3867 | else
|
---|
[28325] | 3868 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3869 | echo "${ECHO_T}no" >&6; }
|
---|
[8756] | 3870 | fi
|
---|
| 3871 |
|
---|
[25149] | 3872 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 3873 | RANLIB=":"
|
---|
| 3874 | else
|
---|
| 3875 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3876 | yes:)
|
---|
[28325] | 3877 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3878 | whose name does not start with the host triplet. If you think this
|
---|
| 3879 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 3880 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3881 | whose name does not start with the host triplet. If you think this
|
---|
| 3882 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
[25149] | 3883 | ac_tool_warned=yes ;;
|
---|
| 3884 | esac
|
---|
| 3885 | RANLIB=$ac_ct_RANLIB
|
---|
| 3886 | fi
|
---|
[8756] | 3887 | else
|
---|
| 3888 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3889 | fi
|
---|
| 3890 |
|
---|
| 3891 |
|
---|
[28325] | 3892 | { echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3893 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6; }
|
---|
[15551] | 3894 | arch_64bit=no
|
---|
| 3895 | case "$host_cpu" in
|
---|
| 3896 | x86_64) arch_64bit=yes ;;
|
---|
| 3897 | esac
|
---|
| 3898 |
|
---|
| 3899 | if test "$arch_64bit" = yes; then
|
---|
[28325] | 3900 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3901 | echo "${ECHO_T}yes" >&6; }
|
---|
[25149] | 3902 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
| 3903 | ARCH_DEP_FLAGS=-fPIC
|
---|
[15551] | 3904 | fi
|
---|
| 3905 | else
|
---|
[28325] | 3906 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3907 | echo "${ECHO_T}no" >&6; }
|
---|
[25149] | 3908 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
| 3909 | ARCH_DEP_FLAGS=
|
---|
[15551] | 3910 | fi
|
---|
| 3911 | fi
|
---|
[21432] | 3912 |
|
---|
[25149] | 3913 | export ARCH_DEP_FLAGS
|
---|
[15551] | 3914 |
|
---|
| 3915 |
|
---|
| 3916 |
|
---|
[2173] | 3917 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3918 | if test $USE_CORBA = 1; then
|
---|
| 3919 |
|
---|
[2213] | 3920 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3921 | #do something
|
---|
| 3922 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3923 | else
|
---|
| 3924 | #build the micotest program
|
---|
| 3925 | MICO_INC= ""
|
---|
| 3926 | if test $MICO_DIR != yes; then
|
---|
| 3927 | MICO_INC="-I $MICO_DIR"
|
---|
| 3928 | fi
|
---|
| 3929 | fi
|
---|
| 3930 |
|
---|
| 3931 | #get MICO_VER value
|
---|
| 3932 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3933 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3934 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3935 | sh -c "rm micotest"
|
---|
| 3936 | sh -c "rm micotest.o"
|
---|
| 3937 |
|
---|
| 3938 | #do test of MICO_VER
|
---|
| 3939 | if test MICO_VER != 0; then
|
---|
[23802] | 3940 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3941 | #define MICO_VER 1
|
---|
| 3942 | _ACEOF
|
---|
[2173] | 3943 |
|
---|
[8200] | 3944 |
|
---|
[2173] | 3945 | fi
|
---|
| 3946 | #end USE_CORBA test
|
---|
| 3947 | fi
|
---|
| 3948 |
|
---|
[8756] | 3949 |
|
---|
| 3950 | ac_ext=c
|
---|
| 3951 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[28325] | 3955 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3956 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
[687] | 3957 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3958 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3959 | CPP=
|
---|
| 3960 | fi
|
---|
| 3961 | if test -z "$CPP"; then
|
---|
[23802] | 3962 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
[28325] | 3963 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3964 | else
|
---|
[8756] | 3965 | # Double quotes because CPP needs to be expanded
|
---|
| 3966 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3967 | do
|
---|
| 3968 | ac_preproc_ok=false
|
---|
| 3969 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3970 | do
|
---|
| 3971 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3972 | # with a fresh cross-compiler works.
|
---|
| 3973 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3974 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3975 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3976 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[23802] | 3977 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3978 | /* confdefs.h. */
|
---|
| 3979 | _ACEOF
|
---|
| 3980 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3981 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3982 | /* end confdefs.h. */
|
---|
| 3983 | #ifdef __STDC__
|
---|
| 3984 | # include <limits.h>
|
---|
| 3985 | #else
|
---|
| 3986 | # include <assert.h>
|
---|
| 3987 | #endif
|
---|
| 3988 | Syntax error
|
---|
| 3989 | _ACEOF
|
---|
[25149] | 3990 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3991 | case "(($ac_try" in
|
---|
| 3992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3993 | *) ac_try_echo=$ac_try;;
|
---|
| 3994 | esac
|
---|
[28325] | 3995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 3996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[23802] | 3997 | ac_status=$?
|
---|
| 3998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3999 | rm -f conftest.er1
|
---|
| 4000 | cat conftest.err >&5
|
---|
[28325] | 4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4002 | (exit $ac_status); } >/dev/null && {
|
---|
| 4003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4004 | test ! -s conftest.err
|
---|
| 4005 | }; then
|
---|
[23802] | 4006 | :
|
---|
| 4007 | else
|
---|
[28325] | 4008 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4009 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 4010 |
|
---|
[8756] | 4011 | # Broken: fails on valid input.
|
---|
| 4012 | continue
|
---|
| 4013 | fi
|
---|
[25149] | 4014 |
|
---|
[23802] | 4015 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4016 |
|
---|
[25149] | 4017 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8756] | 4018 | # can be detected and how.
|
---|
[23802] | 4019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4020 | /* confdefs.h. */
|
---|
| 4021 | _ACEOF
|
---|
| 4022 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4024 | /* end confdefs.h. */
|
---|
| 4025 | #include <ac_nonexistent.h>
|
---|
| 4026 | _ACEOF
|
---|
[25149] | 4027 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 4028 | case "(($ac_try" in
|
---|
| 4029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4030 | *) ac_try_echo=$ac_try;;
|
---|
| 4031 | esac
|
---|
[28325] | 4032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4033 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[23802] | 4034 | ac_status=$?
|
---|
| 4035 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4036 | rm -f conftest.er1
|
---|
| 4037 | cat conftest.err >&5
|
---|
[28325] | 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4039 | (exit $ac_status); } >/dev/null && {
|
---|
| 4040 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4041 | test ! -s conftest.err
|
---|
| 4042 | }; then
|
---|
[8756] | 4043 | # Broken: success on invalid input.
|
---|
| 4044 | continue
|
---|
| 4045 | else
|
---|
[28325] | 4046 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4047 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4048 |
|
---|
[8756] | 4049 | # Passes both tests.
|
---|
| 4050 | ac_preproc_ok=:
|
---|
| 4051 | break
|
---|
| 4052 | fi
|
---|
[25149] | 4053 |
|
---|
[23802] | 4054 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4055 |
|
---|
| 4056 | done
|
---|
| 4057 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[23802] | 4058 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4059 | if $ac_preproc_ok; then
|
---|
[8756] | 4060 | break
|
---|
| 4061 | fi
|
---|
| 4062 |
|
---|
| 4063 | done
|
---|
| 4064 | ac_cv_prog_CPP=$CPP
|
---|
| 4065 |
|
---|
| 4066 | fi
|
---|
| 4067 | CPP=$ac_cv_prog_CPP
|
---|
| 4068 | else
|
---|
| 4069 | ac_cv_prog_CPP=$CPP
|
---|
| 4070 | fi
|
---|
[28325] | 4071 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 4072 | echo "${ECHO_T}$CPP" >&6; }
|
---|
[8756] | 4073 | ac_preproc_ok=false
|
---|
| 4074 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4075 | do
|
---|
| 4076 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4077 | # with a fresh cross-compiler works.
|
---|
| 4078 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4079 | # <limits.h> exists even on freestanding compilers.
|
---|
| 4080 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4081 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[23802] | 4082 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4083 | /* confdefs.h. */
|
---|
| 4084 | _ACEOF
|
---|
| 4085 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4086 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4087 | /* end confdefs.h. */
|
---|
| 4088 | #ifdef __STDC__
|
---|
| 4089 | # include <limits.h>
|
---|
| 4090 | #else
|
---|
| 4091 | # include <assert.h>
|
---|
| 4092 | #endif
|
---|
| 4093 | Syntax error
|
---|
| 4094 | _ACEOF
|
---|
[25149] | 4095 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 4096 | case "(($ac_try" in
|
---|
| 4097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4098 | *) ac_try_echo=$ac_try;;
|
---|
| 4099 | esac
|
---|
[28325] | 4100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[23802] | 4102 | ac_status=$?
|
---|
| 4103 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4104 | rm -f conftest.er1
|
---|
| 4105 | cat conftest.err >&5
|
---|
[28325] | 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4107 | (exit $ac_status); } >/dev/null && {
|
---|
| 4108 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4109 | test ! -s conftest.err
|
---|
| 4110 | }; then
|
---|
[23802] | 4111 | :
|
---|
| 4112 | else
|
---|
[28325] | 4113 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4114 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 4115 |
|
---|
[8756] | 4116 | # Broken: fails on valid input.
|
---|
| 4117 | continue
|
---|
[687] | 4118 | fi
|
---|
[25149] | 4119 |
|
---|
[23802] | 4120 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4121 |
|
---|
[25149] | 4122 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8756] | 4123 | # can be detected and how.
|
---|
[23802] | 4124 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4125 | /* confdefs.h. */
|
---|
| 4126 | _ACEOF
|
---|
| 4127 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4128 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4129 | /* end confdefs.h. */
|
---|
| 4130 | #include <ac_nonexistent.h>
|
---|
| 4131 | _ACEOF
|
---|
[25149] | 4132 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 4133 | case "(($ac_try" in
|
---|
| 4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4135 | *) ac_try_echo=$ac_try;;
|
---|
| 4136 | esac
|
---|
[28325] | 4137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[23802] | 4139 | ac_status=$?
|
---|
| 4140 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4141 | rm -f conftest.er1
|
---|
| 4142 | cat conftest.err >&5
|
---|
[28325] | 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4144 | (exit $ac_status); } >/dev/null && {
|
---|
| 4145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4146 | test ! -s conftest.err
|
---|
| 4147 | }; then
|
---|
[8756] | 4148 | # Broken: success on invalid input.
|
---|
| 4149 | continue
|
---|
| 4150 | else
|
---|
[28325] | 4151 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4152 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4153 |
|
---|
[8756] | 4154 | # Passes both tests.
|
---|
| 4155 | ac_preproc_ok=:
|
---|
| 4156 | break
|
---|
[687] | 4157 | fi
|
---|
[25149] | 4158 |
|
---|
[23802] | 4159 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 4160 |
|
---|
| 4161 | done
|
---|
| 4162 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[23802] | 4163 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4164 | if $ac_preproc_ok; then
|
---|
| 4165 | :
|
---|
[8756] | 4166 | else
|
---|
[28325] | 4167 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
[23802] | 4168 | See \`config.log' for more details." >&5
|
---|
[28325] | 4169 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
[23802] | 4170 | See \`config.log' for more details." >&2;}
|
---|
[28325] | 4171 | { (exit 1); exit 1; }; }
|
---|
[8200] | 4172 | fi
|
---|
[8756] | 4173 |
|
---|
| 4174 | ac_ext=c
|
---|
| 4175 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4179 |
|
---|
| 4180 |
|
---|
[28325] | 4181 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
| 4182 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
[25149] | 4183 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
[28325] | 4184 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4185 | else
|
---|
[28325] | 4186 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
| 4187 | if test -z "$GREP"; then
|
---|
| 4188 | set dummy grep ggrep; ac_prog_name=$2
|
---|
| 4189 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
| 4190 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4191 | else
|
---|
[25149] | 4192 | ac_path_GREP_found=false
|
---|
[28325] | 4193 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
[25149] | 4195 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4196 | do
|
---|
| 4197 | IFS=$as_save_IFS
|
---|
| 4198 | test -z "$as_dir" && as_dir=.
|
---|
| 4199 | for ac_prog in grep ggrep; do
|
---|
[28325] | 4200 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4201 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4202 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4203 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
[25149] | 4204 | # Check for GNU $ac_path_GREP
|
---|
| 4205 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4206 | *GNU*)
|
---|
| 4207 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4208 | *)
|
---|
| 4209 | ac_count=0
|
---|
[28325] | 4210 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
[25149] | 4211 | while :
|
---|
| 4212 | do
|
---|
| 4213 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4214 | mv "conftest.tmp" "conftest.in"
|
---|
| 4215 | cp "conftest.in" "conftest.nl"
|
---|
[28325] | 4216 | echo 'GREP' >> "conftest.nl"
|
---|
[25149] | 4217 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4218 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4219 | ac_count=`expr $ac_count + 1`
|
---|
| 4220 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4221 | # Best one so far, save it but keep looking for a better one
|
---|
| 4222 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4223 | ac_path_GREP_max=$ac_count
|
---|
[8756] | 4224 | fi
|
---|
[25149] | 4225 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4226 | test $ac_count -gt 10 && break
|
---|
| 4227 | done
|
---|
| 4228 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4229 | esac
|
---|
[687] | 4230 |
|
---|
[28325] | 4231 |
|
---|
| 4232 | $ac_path_GREP_found && break 3
|
---|
[25149] | 4233 | done
|
---|
| 4234 | done
|
---|
[28325] | 4235 |
|
---|
| 4236 | done
|
---|
[25149] | 4237 | IFS=$as_save_IFS
|
---|
[28325] | 4238 |
|
---|
| 4239 |
|
---|
| 4240 | fi
|
---|
| 4241 |
|
---|
| 4242 | GREP="$ac_cv_path_GREP"
|
---|
| 4243 | if test -z "$GREP"; then
|
---|
| 4244 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
| 4245 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
[25149] | 4246 | { (exit 1); exit 1; }; }
|
---|
[28325] | 4247 | fi
|
---|
| 4248 |
|
---|
[687] | 4249 | else
|
---|
[25149] | 4250 | ac_cv_path_GREP=$GREP
|
---|
[687] | 4251 | fi
|
---|
| 4252 |
|
---|
[28325] | 4253 |
|
---|
[25149] | 4254 | fi
|
---|
[28325] | 4255 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
| 4256 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
[25149] | 4257 | GREP="$ac_cv_path_GREP"
|
---|
[8200] | 4258 |
|
---|
[687] | 4259 |
|
---|
[28325] | 4260 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 4261 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
[25149] | 4262 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
[28325] | 4263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4264 | else
|
---|
[25149] | 4265 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4266 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4267 | else
|
---|
[28325] | 4268 | # Extract the first word of "egrep" to use in msg output
|
---|
| 4269 | if test -z "$EGREP"; then
|
---|
| 4270 | set dummy egrep; ac_prog_name=$2
|
---|
| 4271 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
| 4272 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4273 | else
|
---|
[25149] | 4274 | ac_path_EGREP_found=false
|
---|
[28325] | 4275 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
[25149] | 4277 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4278 | do
|
---|
| 4279 | IFS=$as_save_IFS
|
---|
| 4280 | test -z "$as_dir" && as_dir=.
|
---|
| 4281 | for ac_prog in egrep; do
|
---|
[28325] | 4282 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4283 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4284 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4285 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
[25149] | 4286 | # Check for GNU $ac_path_EGREP
|
---|
| 4287 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4288 | *GNU*)
|
---|
| 4289 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4290 | *)
|
---|
| 4291 | ac_count=0
|
---|
[28325] | 4292 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
[25149] | 4293 | while :
|
---|
| 4294 | do
|
---|
| 4295 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4296 | mv "conftest.tmp" "conftest.in"
|
---|
| 4297 | cp "conftest.in" "conftest.nl"
|
---|
[28325] | 4298 | echo 'EGREP' >> "conftest.nl"
|
---|
[25149] | 4299 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4300 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4301 | ac_count=`expr $ac_count + 1`
|
---|
| 4302 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4303 | # Best one so far, save it but keep looking for a better one
|
---|
| 4304 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4305 | ac_path_EGREP_max=$ac_count
|
---|
| 4306 | fi
|
---|
| 4307 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4308 | test $ac_count -gt 10 && break
|
---|
| 4309 | done
|
---|
| 4310 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4311 | esac
|
---|
[8756] | 4312 |
|
---|
[28325] | 4313 |
|
---|
| 4314 | $ac_path_EGREP_found && break 3
|
---|
[25149] | 4315 | done
|
---|
| 4316 | done
|
---|
[28325] | 4317 |
|
---|
| 4318 | done
|
---|
[25149] | 4319 | IFS=$as_save_IFS
|
---|
[28325] | 4320 |
|
---|
| 4321 |
|
---|
| 4322 | fi
|
---|
| 4323 |
|
---|
| 4324 | EGREP="$ac_cv_path_EGREP"
|
---|
| 4325 | if test -z "$EGREP"; then
|
---|
| 4326 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
| 4327 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
[25149] | 4328 | { (exit 1); exit 1; }; }
|
---|
[28325] | 4329 | fi
|
---|
| 4330 |
|
---|
[687] | 4331 | else
|
---|
[25149] | 4332 | ac_cv_path_EGREP=$EGREP
|
---|
[8756] | 4333 | fi
|
---|
| 4334 |
|
---|
[28325] | 4335 |
|
---|
[25149] | 4336 | fi
|
---|
[8756] | 4337 | fi
|
---|
[28325] | 4338 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
| 4339 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
[25149] | 4340 | EGREP="$ac_cv_path_EGREP"
|
---|
[8756] | 4341 |
|
---|
[25149] | 4342 |
|
---|
[28325] | 4343 |
|
---|
| 4344 | { echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 4345 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
|
---|
| 4346 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4347 | /* confdefs.h. */
|
---|
| 4348 | _ACEOF
|
---|
| 4349 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4350 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4351 | /* end confdefs.h. */
|
---|
| 4352 | #ifdef _AIX
|
---|
| 4353 | yes
|
---|
| 4354 | #endif
|
---|
| 4355 |
|
---|
| 4356 | _ACEOF
|
---|
| 4357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 4358 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 4359 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4360 | echo "${ECHO_T}yes" >&6; }
|
---|
| 4361 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4362 | #define _ALL_SOURCE 1
|
---|
| 4363 | _ACEOF
|
---|
| 4364 |
|
---|
| 4365 | else
|
---|
| 4366 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4367 | echo "${ECHO_T}no" >&6; }
|
---|
| 4368 | fi
|
---|
| 4369 | rm -f conftest*
|
---|
| 4370 |
|
---|
| 4371 |
|
---|
| 4372 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 4373 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
|
---|
| 4374 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4375 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4376 | else
|
---|
| 4377 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4378 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4379 | /* confdefs.h. */
|
---|
| 4380 | _ACEOF
|
---|
| 4381 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4382 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4383 | /* end confdefs.h. */
|
---|
| 4384 |
|
---|
| 4385 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4386 | Use char because int might match the return type of a GCC
|
---|
| 4387 | builtin and then its argument prototype would still apply. */
|
---|
| 4388 | #ifdef __cplusplus
|
---|
| 4389 | extern "C"
|
---|
| 4390 | #endif
|
---|
| 4391 | char strerror ();
|
---|
| 4392 | int
|
---|
| 4393 | main ()
|
---|
| 4394 | {
|
---|
| 4395 | return strerror ();
|
---|
| 4396 | ;
|
---|
| 4397 | return 0;
|
---|
| 4398 | }
|
---|
| 4399 | _ACEOF
|
---|
| 4400 | for ac_lib in '' cposix; do
|
---|
| 4401 | if test -z "$ac_lib"; then
|
---|
| 4402 | ac_res="none required"
|
---|
| 4403 | else
|
---|
| 4404 | ac_res=-l$ac_lib
|
---|
| 4405 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4406 | fi
|
---|
| 4407 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4408 | if { (ac_try="$ac_link"
|
---|
| 4409 | case "(($ac_try" in
|
---|
| 4410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4411 | *) ac_try_echo=$ac_try;;
|
---|
| 4412 | esac
|
---|
| 4413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4414 | (eval "$ac_link") 2>conftest.er1
|
---|
| 4415 | ac_status=$?
|
---|
| 4416 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4417 | rm -f conftest.er1
|
---|
| 4418 | cat conftest.err >&5
|
---|
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4420 | (exit $ac_status); } && {
|
---|
| 4421 | test -z "$ac_c_werror_flag" ||
|
---|
| 4422 | test ! -s conftest.err
|
---|
| 4423 | } && test -s conftest$ac_exeext &&
|
---|
| 4424 | $as_test_x conftest$ac_exeext; then
|
---|
| 4425 | ac_cv_search_strerror=$ac_res
|
---|
| 4426 | else
|
---|
| 4427 | echo "$as_me: failed program was:" >&5
|
---|
| 4428 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4429 |
|
---|
| 4430 |
|
---|
| 4431 | fi
|
---|
| 4432 |
|
---|
| 4433 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 4434 | conftest$ac_exeext
|
---|
| 4435 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4436 | break
|
---|
| 4437 | fi
|
---|
| 4438 | done
|
---|
| 4439 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4440 | :
|
---|
| 4441 | else
|
---|
| 4442 | ac_cv_search_strerror=no
|
---|
| 4443 | fi
|
---|
| 4444 | rm conftest.$ac_ext
|
---|
| 4445 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4446 | fi
|
---|
| 4447 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 4448 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
|
---|
| 4449 | ac_res=$ac_cv_search_strerror
|
---|
| 4450 | if test "$ac_res" != no; then
|
---|
| 4451 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
| 4452 |
|
---|
| 4453 | fi
|
---|
| 4454 |
|
---|
| 4455 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 4456 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
[23802] | 4457 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
[28325] | 4458 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4459 | else
|
---|
[23802] | 4460 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4461 | /* confdefs.h. */
|
---|
| 4462 | _ACEOF
|
---|
| 4463 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4464 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4465 | /* end confdefs.h. */
|
---|
| 4466 | #include <stdlib.h>
|
---|
| 4467 | #include <stdarg.h>
|
---|
| 4468 | #include <string.h>
|
---|
| 4469 | #include <float.h>
|
---|
| 4470 |
|
---|
| 4471 | int
|
---|
| 4472 | main ()
|
---|
| 4473 | {
|
---|
| 4474 |
|
---|
| 4475 | ;
|
---|
| 4476 | return 0;
|
---|
| 4477 | }
|
---|
| 4478 | _ACEOF
|
---|
[23802] | 4479 | rm -f conftest.$ac_objext
|
---|
[25149] | 4480 | if { (ac_try="$ac_compile"
|
---|
| 4481 | case "(($ac_try" in
|
---|
| 4482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4483 | *) ac_try_echo=$ac_try;;
|
---|
| 4484 | esac
|
---|
[28325] | 4485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4486 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 4487 | ac_status=$?
|
---|
| 4488 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4489 | rm -f conftest.er1
|
---|
| 4490 | cat conftest.err >&5
|
---|
[28325] | 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4492 | (exit $ac_status); } && {
|
---|
| 4493 | test -z "$ac_c_werror_flag" ||
|
---|
| 4494 | test ! -s conftest.err
|
---|
| 4495 | } && test -s conftest.$ac_objext; then
|
---|
[8756] | 4496 | ac_cv_header_stdc=yes
|
---|
| 4497 | else
|
---|
[28325] | 4498 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4499 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4500 |
|
---|
[25149] | 4501 | ac_cv_header_stdc=no
|
---|
[687] | 4502 | fi
|
---|
[8756] | 4503 |
|
---|
[25149] | 4504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4505 |
|
---|
[8756] | 4506 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4507 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[23802] | 4508 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4509 | /* confdefs.h. */
|
---|
| 4510 | _ACEOF
|
---|
| 4511 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4512 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4513 | /* end confdefs.h. */
|
---|
| 4514 | #include <string.h>
|
---|
| 4515 |
|
---|
| 4516 | _ACEOF
|
---|
| 4517 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 4518 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 4519 | :
|
---|
[8756] | 4520 | else
|
---|
| 4521 | ac_cv_header_stdc=no
|
---|
| 4522 | fi
|
---|
[8200] | 4523 | rm -f conftest*
|
---|
[8756] | 4524 |
|
---|
[687] | 4525 | fi
|
---|
[8756] | 4526 |
|
---|
| 4527 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4528 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[23802] | 4529 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4530 | /* confdefs.h. */
|
---|
| 4531 | _ACEOF
|
---|
| 4532 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4533 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4534 | /* end confdefs.h. */
|
---|
| 4535 | #include <stdlib.h>
|
---|
| 4536 |
|
---|
| 4537 | _ACEOF
|
---|
| 4538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 4539 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 4540 | :
|
---|
[8756] | 4541 | else
|
---|
| 4542 | ac_cv_header_stdc=no
|
---|
| 4543 | fi
|
---|
| 4544 | rm -f conftest*
|
---|
| 4545 |
|
---|
| 4546 | fi
|
---|
| 4547 |
|
---|
| 4548 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4549 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[23802] | 4550 | if test "$cross_compiling" = yes; then
|
---|
[8756] | 4551 | :
|
---|
| 4552 | else
|
---|
[23802] | 4553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4554 | /* confdefs.h. */
|
---|
| 4555 | _ACEOF
|
---|
| 4556 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4558 | /* end confdefs.h. */
|
---|
| 4559 | #include <ctype.h>
|
---|
[25149] | 4560 | #include <stdlib.h>
|
---|
[8756] | 4561 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4562 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4563 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4564 | #else
|
---|
| 4565 | # define ISLOWER(c) \
|
---|
| 4566 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4567 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4568 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4569 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4570 | #endif
|
---|
| 4571 |
|
---|
| 4572 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4573 | int
|
---|
| 4574 | main ()
|
---|
| 4575 | {
|
---|
| 4576 | int i;
|
---|
| 4577 | for (i = 0; i < 256; i++)
|
---|
| 4578 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4579 | || toupper (i) != TOUPPER (i))
|
---|
[25149] | 4580 | return 2;
|
---|
| 4581 | return 0;
|
---|
[8756] | 4582 | }
|
---|
| 4583 | _ACEOF
|
---|
[23802] | 4584 | rm -f conftest$ac_exeext
|
---|
[25149] | 4585 | if { (ac_try="$ac_link"
|
---|
| 4586 | case "(($ac_try" in
|
---|
| 4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4588 | *) ac_try_echo=$ac_try;;
|
---|
| 4589 | esac
|
---|
[28325] | 4590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4591 | (eval "$ac_link") 2>&5
|
---|
[23802] | 4592 | ac_status=$?
|
---|
[28325] | 4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 4594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[25149] | 4595 | { (case "(($ac_try" in
|
---|
| 4596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4597 | *) ac_try_echo=$ac_try;;
|
---|
| 4598 | esac
|
---|
[28325] | 4599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4600 | (eval "$ac_try") 2>&5
|
---|
[23802] | 4601 | ac_status=$?
|
---|
[28325] | 4602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 4603 | (exit $ac_status); }; }; then
|
---|
| 4604 | :
|
---|
| 4605 | else
|
---|
[28325] | 4606 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 4607 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 4609 |
|
---|
[23802] | 4610 | ( exit $ac_status )
|
---|
| 4611 | ac_cv_header_stdc=no
|
---|
[8756] | 4612 | fi
|
---|
[25149] | 4613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 4614 | fi
|
---|
[25149] | 4615 |
|
---|
| 4616 |
|
---|
[8756] | 4617 | fi
|
---|
| 4618 | fi
|
---|
[28325] | 4619 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 4620 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
[8756] | 4621 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4622 |
|
---|
[23802] | 4623 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4624 | #define STDC_HEADERS 1
|
---|
| 4625 | _ACEOF
|
---|
[8756] | 4626 |
|
---|
| 4627 | fi
|
---|
| 4628 |
|
---|
| 4629 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 4630 |
|
---|
| 4631 |
|
---|
| 4632 |
|
---|
| 4633 |
|
---|
| 4634 |
|
---|
| 4635 |
|
---|
| 4636 |
|
---|
| 4637 |
|
---|
| 4638 |
|
---|
[23802] | 4639 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4640 | inttypes.h stdint.h unistd.h
|
---|
| 4641 | do
|
---|
[28325] | 4642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
[25149] | 4645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 4646 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 4647 | else
|
---|
| 4648 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4649 | /* confdefs.h. */
|
---|
| 4650 | _ACEOF
|
---|
| 4651 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4652 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4653 | /* end confdefs.h. */
|
---|
| 4654 | $ac_includes_default
|
---|
[22378] | 4655 |
|
---|
[23802] | 4656 | #include <$ac_header>
|
---|
| 4657 | _ACEOF
|
---|
| 4658 | rm -f conftest.$ac_objext
|
---|
[25149] | 4659 | if { (ac_try="$ac_compile"
|
---|
| 4660 | case "(($ac_try" in
|
---|
| 4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4662 | *) ac_try_echo=$ac_try;;
|
---|
| 4663 | esac
|
---|
[28325] | 4664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4665 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 4666 | ac_status=$?
|
---|
| 4667 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4668 | rm -f conftest.er1
|
---|
| 4669 | cat conftest.err >&5
|
---|
[28325] | 4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4671 | (exit $ac_status); } && {
|
---|
| 4672 | test -z "$ac_c_werror_flag" ||
|
---|
| 4673 | test ! -s conftest.err
|
---|
| 4674 | } && test -s conftest.$ac_objext; then
|
---|
[23802] | 4675 | eval "$as_ac_Header=yes"
|
---|
| 4676 | else
|
---|
[28325] | 4677 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 4679 |
|
---|
[25149] | 4680 | eval "$as_ac_Header=no"
|
---|
[23802] | 4681 | fi
|
---|
[25149] | 4682 |
|
---|
| 4683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[23802] | 4684 | fi
|
---|
[28325] | 4685 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 4686 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 4687 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 4688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[23802] | 4689 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 4690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[23802] | 4691 | _ACEOF
|
---|
[22378] | 4692 |
|
---|
[23802] | 4693 | fi
|
---|
[22378] | 4694 |
|
---|
[23802] | 4695 | done
|
---|
[22378] | 4696 |
|
---|
| 4697 |
|
---|
[23802] | 4698 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[28325] | 4699 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4700 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
[25149] | 4701 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[28325] | 4702 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[25149] | 4703 | fi
|
---|
[28325] | 4704 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4705 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
[25149] | 4706 | else
|
---|
| 4707 | # Is the header compilable?
|
---|
[28325] | 4708 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 4709 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
|
---|
[25149] | 4710 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4711 | /* confdefs.h. */
|
---|
| 4712 | _ACEOF
|
---|
| 4713 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4714 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4715 | /* end confdefs.h. */
|
---|
| 4716 | $ac_includes_default
|
---|
| 4717 | #include <minix/config.h>
|
---|
| 4718 | _ACEOF
|
---|
| 4719 | rm -f conftest.$ac_objext
|
---|
| 4720 | if { (ac_try="$ac_compile"
|
---|
| 4721 | case "(($ac_try" in
|
---|
| 4722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4723 | *) ac_try_echo=$ac_try;;
|
---|
| 4724 | esac
|
---|
[28325] | 4725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4726 | (eval "$ac_compile") 2>conftest.er1
|
---|
| 4727 | ac_status=$?
|
---|
| 4728 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4729 | rm -f conftest.er1
|
---|
| 4730 | cat conftest.err >&5
|
---|
[28325] | 4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4732 | (exit $ac_status); } && {
|
---|
| 4733 | test -z "$ac_c_werror_flag" ||
|
---|
| 4734 | test ! -s conftest.err
|
---|
| 4735 | } && test -s conftest.$ac_objext; then
|
---|
| 4736 | ac_header_compiler=yes
|
---|
| 4737 | else
|
---|
[28325] | 4738 | echo "$as_me: failed program was:" >&5
|
---|
[25149] | 4739 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4740 |
|
---|
| 4741 | ac_header_compiler=no
|
---|
| 4742 | fi
|
---|
| 4743 |
|
---|
| 4744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[28325] | 4745 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4746 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
[25149] | 4747 |
|
---|
| 4748 | # Is the header present?
|
---|
[28325] | 4749 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 4750 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
|
---|
[25149] | 4751 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4752 | /* confdefs.h. */
|
---|
| 4753 | _ACEOF
|
---|
| 4754 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4755 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4756 | /* end confdefs.h. */
|
---|
| 4757 | #include <minix/config.h>
|
---|
| 4758 | _ACEOF
|
---|
| 4759 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 4760 | case "(($ac_try" in
|
---|
| 4761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4762 | *) ac_try_echo=$ac_try;;
|
---|
| 4763 | esac
|
---|
[28325] | 4764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4765 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
| 4766 | ac_status=$?
|
---|
| 4767 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4768 | rm -f conftest.er1
|
---|
| 4769 | cat conftest.err >&5
|
---|
[28325] | 4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4771 | (exit $ac_status); } >/dev/null && {
|
---|
| 4772 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4773 | test ! -s conftest.err
|
---|
| 4774 | }; then
|
---|
[23802] | 4775 | ac_header_preproc=yes
|
---|
| 4776 | else
|
---|
[28325] | 4777 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4778 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4779 |
|
---|
| 4780 | ac_header_preproc=no
|
---|
[8756] | 4781 | fi
|
---|
[25149] | 4782 |
|
---|
[23802] | 4783 | rm -f conftest.err conftest.$ac_ext
|
---|
[28325] | 4784 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4785 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
[8756] | 4786 |
|
---|
[23802] | 4787 | # So? What about this header?
|
---|
| 4788 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4789 | yes:no: )
|
---|
[28325] | 4790 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4791 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4792 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4793 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
[23802] | 4794 | ac_header_preproc=yes
|
---|
| 4795 | ;;
|
---|
| 4796 | no:yes:* )
|
---|
[28325] | 4797 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4798 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4799 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4800 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4801 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4802 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4803 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4804 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4805 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4806 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4807 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4808 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
[25149] | 4809 |
|
---|
[23802] | 4810 | ;;
|
---|
| 4811 | esac
|
---|
[28325] | 4812 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4813 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
[23802] | 4814 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[28325] | 4815 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 4816 | else
|
---|
| 4817 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4818 | fi
|
---|
[28325] | 4819 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4820 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
[8756] | 4821 |
|
---|
[23802] | 4822 | fi
|
---|
[28325] | 4823 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[23802] | 4824 | MINIX=yes
|
---|
| 4825 | else
|
---|
| 4826 | MINIX=
|
---|
| 4827 | fi
|
---|
[8756] | 4828 |
|
---|
| 4829 |
|
---|
[28325] | 4830 | if test "$MINIX" = yes; then
|
---|
[22378] | 4831 |
|
---|
[23802] | 4832 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4833 | #define _POSIX_SOURCE 1
|
---|
| 4834 | _ACEOF
|
---|
[22378] | 4835 |
|
---|
| 4836 |
|
---|
[23802] | 4837 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4838 | #define _POSIX_1_SOURCE 2
|
---|
| 4839 | _ACEOF
|
---|
[8756] | 4840 |
|
---|
[23802] | 4841 |
|
---|
| 4842 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4843 | #define _MINIX 1
|
---|
[8756] | 4844 | _ACEOF
|
---|
| 4845 |
|
---|
| 4846 | fi
|
---|
| 4847 |
|
---|
[28325] | 4848 | { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4849 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
|
---|
[23802] | 4850 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
[28325] | 4851 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 4852 | else
|
---|
| 4853 | ac_cv_prog_cc_stdc=no
|
---|
| 4854 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4855 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4856 | # breaks some systems' header files.
|
---|
| 4857 | # AIX -qlanglvl=ansi
|
---|
| 4858 | # Ultrix and OSF/1 -std1
|
---|
| 4859 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4860 | # SVR4 -Xc
|
---|
| 4861 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4862 | do
|
---|
| 4863 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[23802] | 4864 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4865 | /* confdefs.h. */
|
---|
| 4866 | _ACEOF
|
---|
| 4867 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4868 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4869 | /* end confdefs.h. */
|
---|
[700] | 4870 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4871 | choke me
|
---|
[8756] | 4872 | #endif
|
---|
[700] | 4873 |
|
---|
[8756] | 4874 | int
|
---|
| 4875 | main ()
|
---|
| 4876 | {
|
---|
[700] | 4877 | int test (int i, double x);
|
---|
| 4878 | struct s1 {int (*f) (int a);};
|
---|
| 4879 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4880 | ;
|
---|
| 4881 | return 0;
|
---|
| 4882 | }
|
---|
| 4883 | _ACEOF
|
---|
[23802] | 4884 | rm -f conftest.$ac_objext
|
---|
[25149] | 4885 | if { (ac_try="$ac_compile"
|
---|
| 4886 | case "(($ac_try" in
|
---|
| 4887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4888 | *) ac_try_echo=$ac_try;;
|
---|
| 4889 | esac
|
---|
[28325] | 4890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 4891 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 4892 | ac_status=$?
|
---|
| 4893 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4894 | rm -f conftest.er1
|
---|
| 4895 | cat conftest.err >&5
|
---|
[28325] | 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 4897 | (exit $ac_status); } && {
|
---|
| 4898 | test -z "$ac_c_werror_flag" ||
|
---|
| 4899 | test ! -s conftest.err
|
---|
| 4900 | } && test -s conftest.$ac_objext; then
|
---|
[700] | 4901 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
[23802] | 4902 | else
|
---|
[28325] | 4903 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 4904 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4905 |
|
---|
[25149] | 4906 |
|
---|
[700] | 4907 | fi
|
---|
[25149] | 4908 |
|
---|
| 4909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4910 | done
|
---|
| 4911 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4912 |
|
---|
| 4913 | fi
|
---|
| 4914 |
|
---|
[28325] | 4915 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4916 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
|
---|
[700] | 4917 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4918 | x|xno) ;;
|
---|
| 4919 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4920 | esac
|
---|
| 4921 |
|
---|
[8200] | 4922 |
|
---|
[28325] | 4923 | { echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4924 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
|
---|
[700] | 4925 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[28325] | 4926 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4927 | echo "${ECHO_T}yes" >&6; }
|
---|
[23802] | 4928 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4929 | #define PROTOTYPES 1
|
---|
| 4930 | _ACEOF
|
---|
[700] | 4931 |
|
---|
| 4932 | U= ANSI2KNR=
|
---|
| 4933 | else
|
---|
[28325] | 4934 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4935 | echo "${ECHO_T}no" >&6; }
|
---|
[700] | 4936 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4937 | fi
|
---|
| 4938 |
|
---|
[28325] | 4939 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4940 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
---|
[23802] | 4941 | if test "${ac_cv_c_const+set}" = set; then
|
---|
[28325] | 4942 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4943 | else
|
---|
[23802] | 4944 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4945 | /* confdefs.h. */
|
---|
| 4946 | _ACEOF
|
---|
| 4947 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4948 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4949 | /* end confdefs.h. */
|
---|
[8200] | 4950 |
|
---|
[8756] | 4951 | int
|
---|
| 4952 | main ()
|
---|
| 4953 | {
|
---|
| 4954 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4955 | #ifndef __cplusplus
|
---|
| 4956 | /* Ultrix mips cc rejects this. */
|
---|
| 4957 | typedef int charset[2];
|
---|
[25149] | 4958 | const charset cs;
|
---|
[8756] | 4959 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[25149] | 4960 | char const *const *pcpcc;
|
---|
| 4961 | char **ppc;
|
---|
[8756] | 4962 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4963 | struct point {int x, y;};
|
---|
| 4964 | static struct point const zero = {0,0};
|
---|
| 4965 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4966 | It does not let you subtract one const X* pointer from another in
|
---|
| 4967 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4968 | expression */
|
---|
| 4969 | const char *g = "string";
|
---|
[25149] | 4970 | pcpcc = &g + (g ? g-g : 0);
|
---|
[8756] | 4971 | /* HPUX 7.0 cc rejects these. */
|
---|
[25149] | 4972 | ++pcpcc;
|
---|
| 4973 | ppc = (char**) pcpcc;
|
---|
| 4974 | pcpcc = (char const *const *) ppc;
|
---|
[8756] | 4975 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4976 | char *t;
|
---|
| 4977 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4978 |
|
---|
[8756] | 4979 | *t++ = 0;
|
---|
[25149] | 4980 | if (s) return 0;
|
---|
[8756] | 4981 | }
|
---|
| 4982 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4983 | int x[] = {25, 17};
|
---|
| 4984 | const int *foo = &x[0];
|
---|
| 4985 | ++foo;
|
---|
| 4986 | }
|
---|
| 4987 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4988 | typedef const int *iptr;
|
---|
| 4989 | iptr p = 0;
|
---|
| 4990 | ++p;
|
---|
| 4991 | }
|
---|
| 4992 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4993 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4994 | struct s { int j; const int *ap[3]; };
|
---|
| 4995 | struct s *b; b->j = 5;
|
---|
| 4996 | }
|
---|
| 4997 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4998 | const int foo = 10;
|
---|
[25149] | 4999 | if (!foo) return 0;
|
---|
[8756] | 5000 | }
|
---|
[25149] | 5001 | return !cs[0] && !zero.x;
|
---|
[8756] | 5002 | #endif
|
---|
[8200] | 5003 |
|
---|
[8756] | 5004 | ;
|
---|
| 5005 | return 0;
|
---|
[3631] | 5006 | }
|
---|
[8756] | 5007 | _ACEOF
|
---|
[23802] | 5008 | rm -f conftest.$ac_objext
|
---|
[25149] | 5009 | if { (ac_try="$ac_compile"
|
---|
| 5010 | case "(($ac_try" in
|
---|
| 5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5012 | *) ac_try_echo=$ac_try;;
|
---|
| 5013 | esac
|
---|
[28325] | 5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5015 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5016 | ac_status=$?
|
---|
| 5017 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5018 | rm -f conftest.er1
|
---|
| 5019 | cat conftest.err >&5
|
---|
[28325] | 5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5021 | (exit $ac_status); } && {
|
---|
| 5022 | test -z "$ac_c_werror_flag" ||
|
---|
| 5023 | test ! -s conftest.err
|
---|
| 5024 | } && test -s conftest.$ac_objext; then
|
---|
[687] | 5025 | ac_cv_c_const=yes
|
---|
| 5026 | else
|
---|
[28325] | 5027 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5028 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5029 |
|
---|
[25149] | 5030 | ac_cv_c_const=no
|
---|
[687] | 5031 | fi
|
---|
[25149] | 5032 |
|
---|
| 5033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5034 | fi
|
---|
[28325] | 5035 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 5036 | echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
---|
[3631] | 5037 | if test $ac_cv_c_const = no; then
|
---|
[687] | 5038 |
|
---|
[23802] | 5039 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 5040 | #define const
|
---|
[23802] | 5041 | _ACEOF
|
---|
[8756] | 5042 |
|
---|
[687] | 5043 | fi
|
---|
| 5044 |
|
---|
[28325] | 5045 | { echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 5046 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
|
---|
[23802] | 5047 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
[28325] | 5048 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 5049 | else
|
---|
[28325] | 5050 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 5051 | /* confdefs.h. */
|
---|
| 5052 | _ACEOF
|
---|
| 5053 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5054 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5055 | /* end confdefs.h. */
|
---|
| 5056 | $ac_includes_default
|
---|
[28325] | 5057 | typedef off_t ac__type_new_;
|
---|
[23802] | 5058 | int
|
---|
| 5059 | main ()
|
---|
| 5060 | {
|
---|
[28325] | 5061 | if ((ac__type_new_ *) 0)
|
---|
[23802] | 5062 | return 0;
|
---|
[28325] | 5063 | if (sizeof (ac__type_new_))
|
---|
| 5064 | return 0;
|
---|
[23802] | 5065 | ;
|
---|
| 5066 | return 0;
|
---|
| 5067 | }
|
---|
| 5068 | _ACEOF
|
---|
| 5069 | rm -f conftest.$ac_objext
|
---|
[25149] | 5070 | if { (ac_try="$ac_compile"
|
---|
| 5071 | case "(($ac_try" in
|
---|
| 5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5073 | *) ac_try_echo=$ac_try;;
|
---|
| 5074 | esac
|
---|
[28325] | 5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5076 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5077 | ac_status=$?
|
---|
| 5078 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5079 | rm -f conftest.er1
|
---|
| 5080 | cat conftest.err >&5
|
---|
[28325] | 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5082 | (exit $ac_status); } && {
|
---|
| 5083 | test -z "$ac_c_werror_flag" ||
|
---|
| 5084 | test ! -s conftest.err
|
---|
| 5085 | } && test -s conftest.$ac_objext; then
|
---|
[28325] | 5086 | ac_cv_type_off_t=yes
|
---|
[23802] | 5087 | else
|
---|
[28325] | 5088 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5089 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 5090 |
|
---|
[28325] | 5091 | ac_cv_type_off_t=no
|
---|
[23802] | 5092 | fi
|
---|
[25149] | 5093 |
|
---|
| 5094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[23802] | 5095 | fi
|
---|
[28325] | 5096 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 5097 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
|
---|
| 5098 | if test $ac_cv_type_off_t = yes; then
|
---|
[23802] | 5099 | :
|
---|
[687] | 5100 | else
|
---|
| 5101 |
|
---|
[8756] | 5102 | cat >>confdefs.h <<_ACEOF
|
---|
[25149] | 5103 | #define off_t long int
|
---|
[8756] | 5104 | _ACEOF
|
---|
[687] | 5105 |
|
---|
| 5106 | fi
|
---|
[8200] | 5107 |
|
---|
[28325] | 5108 | { echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 5109 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
---|
[23802] | 5110 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
[28325] | 5111 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 5112 | else
|
---|
[28325] | 5113 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 5114 | /* confdefs.h. */
|
---|
| 5115 | _ACEOF
|
---|
| 5116 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5117 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5118 | /* end confdefs.h. */
|
---|
| 5119 | $ac_includes_default
|
---|
[28325] | 5120 | typedef size_t ac__type_new_;
|
---|
[23802] | 5121 | int
|
---|
| 5122 | main ()
|
---|
| 5123 | {
|
---|
[28325] | 5124 | if ((ac__type_new_ *) 0)
|
---|
[23802] | 5125 | return 0;
|
---|
[28325] | 5126 | if (sizeof (ac__type_new_))
|
---|
| 5127 | return 0;
|
---|
[23802] | 5128 | ;
|
---|
| 5129 | return 0;
|
---|
| 5130 | }
|
---|
| 5131 | _ACEOF
|
---|
| 5132 | rm -f conftest.$ac_objext
|
---|
[25149] | 5133 | if { (ac_try="$ac_compile"
|
---|
| 5134 | case "(($ac_try" in
|
---|
| 5135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5136 | *) ac_try_echo=$ac_try;;
|
---|
| 5137 | esac
|
---|
[28325] | 5138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5139 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5140 | ac_status=$?
|
---|
| 5141 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5142 | rm -f conftest.er1
|
---|
| 5143 | cat conftest.err >&5
|
---|
[28325] | 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5145 | (exit $ac_status); } && {
|
---|
| 5146 | test -z "$ac_c_werror_flag" ||
|
---|
| 5147 | test ! -s conftest.err
|
---|
| 5148 | } && test -s conftest.$ac_objext; then
|
---|
[28325] | 5149 | ac_cv_type_size_t=yes
|
---|
[23802] | 5150 | else
|
---|
[28325] | 5151 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5152 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 5153 |
|
---|
[28325] | 5154 | ac_cv_type_size_t=no
|
---|
[23802] | 5155 | fi
|
---|
[25149] | 5156 |
|
---|
| 5157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[23802] | 5158 | fi
|
---|
[28325] | 5159 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 5160 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
---|
| 5161 | if test $ac_cv_type_size_t = yes; then
|
---|
[23802] | 5162 | :
|
---|
[687] | 5163 | else
|
---|
[8200] | 5164 |
|
---|
[8756] | 5165 | cat >>confdefs.h <<_ACEOF
|
---|
[25149] | 5166 | #define size_t unsigned int
|
---|
[8756] | 5167 | _ACEOF
|
---|
[687] | 5168 |
|
---|
| 5169 | fi
|
---|
| 5170 |
|
---|
[28325] | 5171 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 5172 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
---|
[23802] | 5173 | if test "${ac_cv_header_time+set}" = set; then
|
---|
[28325] | 5174 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5175 | else
|
---|
[23802] | 5176 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5177 | /* confdefs.h. */
|
---|
| 5178 | _ACEOF
|
---|
| 5179 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5180 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5181 | /* end confdefs.h. */
|
---|
[687] | 5182 | #include <sys/types.h>
|
---|
| 5183 | #include <sys/time.h>
|
---|
| 5184 | #include <time.h>
|
---|
[8756] | 5185 |
|
---|
| 5186 | int
|
---|
| 5187 | main ()
|
---|
| 5188 | {
|
---|
| 5189 | if ((struct tm *) 0)
|
---|
| 5190 | return 0;
|
---|
| 5191 | ;
|
---|
| 5192 | return 0;
|
---|
| 5193 | }
|
---|
| 5194 | _ACEOF
|
---|
[23802] | 5195 | rm -f conftest.$ac_objext
|
---|
[25149] | 5196 | if { (ac_try="$ac_compile"
|
---|
| 5197 | case "(($ac_try" in
|
---|
| 5198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5199 | *) ac_try_echo=$ac_try;;
|
---|
| 5200 | esac
|
---|
[28325] | 5201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5202 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5203 | ac_status=$?
|
---|
| 5204 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5205 | rm -f conftest.er1
|
---|
| 5206 | cat conftest.err >&5
|
---|
[28325] | 5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5208 | (exit $ac_status); } && {
|
---|
| 5209 | test -z "$ac_c_werror_flag" ||
|
---|
| 5210 | test ! -s conftest.err
|
---|
| 5211 | } && test -s conftest.$ac_objext; then
|
---|
[687] | 5212 | ac_cv_header_time=yes
|
---|
| 5213 | else
|
---|
[28325] | 5214 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5215 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5216 |
|
---|
[25149] | 5217 | ac_cv_header_time=no
|
---|
[687] | 5218 | fi
|
---|
[25149] | 5219 |
|
---|
| 5220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5221 | fi
|
---|
[28325] | 5222 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 5223 | echo "${ECHO_T}$ac_cv_header_time" >&6; }
|
---|
[8756] | 5224 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 5225 |
|
---|
[23802] | 5226 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5227 | #define TIME_WITH_SYS_TIME 1
|
---|
| 5228 | _ACEOF
|
---|
[687] | 5229 |
|
---|
| 5230 | fi
|
---|
| 5231 |
|
---|
[28325] | 5232 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 5233 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
|
---|
[23802] | 5234 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
[28325] | 5235 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5236 | else
|
---|
[23802] | 5237 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5238 | /* confdefs.h. */
|
---|
| 5239 | _ACEOF
|
---|
| 5240 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5241 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5242 | /* end confdefs.h. */
|
---|
[687] | 5243 | #include <sys/types.h>
|
---|
| 5244 | #include <time.h>
|
---|
[8756] | 5245 |
|
---|
| 5246 | int
|
---|
| 5247 | main ()
|
---|
| 5248 | {
|
---|
[25149] | 5249 | struct tm tm;
|
---|
| 5250 | int *p = &tm.tm_sec;
|
---|
[28325] | 5251 | return !p;
|
---|
[8756] | 5252 | ;
|
---|
| 5253 | return 0;
|
---|
| 5254 | }
|
---|
| 5255 | _ACEOF
|
---|
[23802] | 5256 | rm -f conftest.$ac_objext
|
---|
[25149] | 5257 | if { (ac_try="$ac_compile"
|
---|
| 5258 | case "(($ac_try" in
|
---|
| 5259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5260 | *) ac_try_echo=$ac_try;;
|
---|
| 5261 | esac
|
---|
[28325] | 5262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5263 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5264 | ac_status=$?
|
---|
| 5265 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5266 | rm -f conftest.er1
|
---|
| 5267 | cat conftest.err >&5
|
---|
[28325] | 5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5269 | (exit $ac_status); } && {
|
---|
| 5270 | test -z "$ac_c_werror_flag" ||
|
---|
| 5271 | test ! -s conftest.err
|
---|
| 5272 | } && test -s conftest.$ac_objext; then
|
---|
[687] | 5273 | ac_cv_struct_tm=time.h
|
---|
| 5274 | else
|
---|
[28325] | 5275 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5276 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5277 |
|
---|
[25149] | 5278 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 5279 | fi
|
---|
[25149] | 5280 |
|
---|
| 5281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5282 | fi
|
---|
[28325] | 5283 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 5284 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
|
---|
[8756] | 5285 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 5286 |
|
---|
[23802] | 5287 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5288 | #define TM_IN_SYS_TIME 1
|
---|
| 5289 | _ACEOF
|
---|
[687] | 5290 |
|
---|
| 5291 | fi
|
---|
| 5292 |
|
---|
[8200] | 5293 |
|
---|
[687] | 5294 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[23802] | 5295 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5296 | /* confdefs.h. */
|
---|
| 5297 | _ACEOF
|
---|
| 5298 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5299 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5300 | /* end confdefs.h. */
|
---|
[687] | 5301 | #include <stdio.h>
|
---|
| 5302 |
|
---|
[8756] | 5303 | int
|
---|
| 5304 | main ()
|
---|
| 5305 | {
|
---|
| 5306 | FILE *rubbish = popen("yes", "r");
|
---|
| 5307 | ;
|
---|
| 5308 | return 0;
|
---|
| 5309 | }
|
---|
| 5310 | _ACEOF
|
---|
[23802] | 5311 | rm -f conftest.$ac_objext
|
---|
[25149] | 5312 | if { (ac_try="$ac_compile"
|
---|
| 5313 | case "(($ac_try" in
|
---|
| 5314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5315 | *) ac_try_echo=$ac_try;;
|
---|
| 5316 | esac
|
---|
[28325] | 5317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5318 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5319 | ac_status=$?
|
---|
| 5320 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5321 | rm -f conftest.er1
|
---|
| 5322 | cat conftest.err >&5
|
---|
[28325] | 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5324 | (exit $ac_status); } && {
|
---|
| 5325 | test -z "$ac_c_werror_flag" ||
|
---|
| 5326 | test ! -s conftest.err
|
---|
| 5327 | } && test -s conftest.$ac_objext; then
|
---|
[23802] | 5328 | :
|
---|
| 5329 | else
|
---|
[28325] | 5330 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5331 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 5332 |
|
---|
[25149] | 5333 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 5334 | fi
|
---|
[25149] | 5335 |
|
---|
| 5336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5337 | fi
|
---|
| 5338 |
|
---|
[8200] | 5339 |
|
---|
[23802] | 5340 |
|
---|
[28325] | 5341 | { echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 5342 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6; }
|
---|
[23802] | 5343 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
[28325] | 5344 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5345 | else
|
---|
[8756] | 5346 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 5347 | LIBS="-lg $LIBS"
|
---|
[23802] | 5348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5349 | /* confdefs.h. */
|
---|
| 5350 | _ACEOF
|
---|
| 5351 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5353 | /* end confdefs.h. */
|
---|
[562] | 5354 |
|
---|
[8756] | 5355 |
|
---|
| 5356 | int
|
---|
| 5357 | main ()
|
---|
| 5358 | {
|
---|
[25149] | 5359 | return main ();
|
---|
[8756] | 5360 | ;
|
---|
| 5361 | return 0;
|
---|
| 5362 | }
|
---|
| 5363 | _ACEOF
|
---|
[23802] | 5364 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 5365 | if { (ac_try="$ac_link"
|
---|
| 5366 | case "(($ac_try" in
|
---|
| 5367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5368 | *) ac_try_echo=$ac_try;;
|
---|
| 5369 | esac
|
---|
[28325] | 5370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5371 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 5372 | ac_status=$?
|
---|
| 5373 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5374 | rm -f conftest.er1
|
---|
| 5375 | cat conftest.err >&5
|
---|
[28325] | 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5377 | (exit $ac_status); } && {
|
---|
| 5378 | test -z "$ac_c_werror_flag" ||
|
---|
| 5379 | test ! -s conftest.err
|
---|
[28325] | 5380 | } && test -s conftest$ac_exeext &&
|
---|
| 5381 | $as_test_x conftest$ac_exeext; then
|
---|
[8756] | 5382 | ac_cv_lib_g_main=yes
|
---|
[562] | 5383 | else
|
---|
[28325] | 5384 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5385 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5386 |
|
---|
[25149] | 5387 | ac_cv_lib_g_main=no
|
---|
[562] | 5388 | fi
|
---|
[25149] | 5389 |
|
---|
| 5390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 5391 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 5392 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5393 | fi
|
---|
[28325] | 5394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 5395 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6; }
|
---|
| 5396 | if test $ac_cv_lib_g_main = yes; then
|
---|
[8756] | 5397 | cat >>confdefs.h <<_ACEOF
|
---|
| 5398 | #define HAVE_LIBG 1
|
---|
| 5399 | _ACEOF
|
---|
[562] | 5400 |
|
---|
| 5401 | LIBS="-lg $LIBS"
|
---|
| 5402 |
|
---|
| 5403 | fi
|
---|
[8756] | 5404 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 5405 |
|
---|
[23802] | 5406 |
|
---|
[28325] | 5407 | { echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 5408 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
|
---|
[23802] | 5409 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
[28325] | 5410 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5411 | else
|
---|
[8756] | 5412 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5413 | LIBS="-lm $LIBS"
|
---|
[23802] | 5414 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5415 | /* confdefs.h. */
|
---|
| 5416 | _ACEOF
|
---|
| 5417 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5418 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5419 | /* end confdefs.h. */
|
---|
[8200] | 5420 |
|
---|
[562] | 5421 |
|
---|
[8756] | 5422 | int
|
---|
| 5423 | main ()
|
---|
| 5424 | {
|
---|
[25149] | 5425 | return main ();
|
---|
[8756] | 5426 | ;
|
---|
| 5427 | return 0;
|
---|
| 5428 | }
|
---|
| 5429 | _ACEOF
|
---|
[23802] | 5430 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 5431 | if { (ac_try="$ac_link"
|
---|
| 5432 | case "(($ac_try" in
|
---|
| 5433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5434 | *) ac_try_echo=$ac_try;;
|
---|
| 5435 | esac
|
---|
[28325] | 5436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5437 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 5438 | ac_status=$?
|
---|
| 5439 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5440 | rm -f conftest.er1
|
---|
| 5441 | cat conftest.err >&5
|
---|
[28325] | 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5443 | (exit $ac_status); } && {
|
---|
| 5444 | test -z "$ac_c_werror_flag" ||
|
---|
| 5445 | test ! -s conftest.err
|
---|
[28325] | 5446 | } && test -s conftest$ac_exeext &&
|
---|
| 5447 | $as_test_x conftest$ac_exeext; then
|
---|
[8756] | 5448 | ac_cv_lib_m_main=yes
|
---|
[8200] | 5449 | else
|
---|
[28325] | 5450 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5451 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5452 |
|
---|
[25149] | 5453 | ac_cv_lib_m_main=no
|
---|
[562] | 5454 | fi
|
---|
[25149] | 5455 |
|
---|
| 5456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 5457 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 5458 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 5459 | fi
|
---|
[28325] | 5460 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 5461 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
|
---|
| 5462 | if test $ac_cv_lib_m_main = yes; then
|
---|
[8756] | 5463 | cat >>confdefs.h <<_ACEOF
|
---|
| 5464 | #define HAVE_LIBM 1
|
---|
| 5465 | _ACEOF
|
---|
[562] | 5466 |
|
---|
| 5467 | LIBS="-lm $LIBS"
|
---|
| 5468 |
|
---|
| 5469 | fi
|
---|
[8756] | 5470 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 5471 |
|
---|
[23802] | 5472 |
|
---|
[28325] | 5473 | { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 5474 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
|
---|
[23802] | 5475 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
[28325] | 5476 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5477 | else
|
---|
[8756] | 5478 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5479 | LIBS="-lcrypt $LIBS"
|
---|
[23802] | 5480 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5481 | /* confdefs.h. */
|
---|
| 5482 | _ACEOF
|
---|
| 5483 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5484 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5485 | /* end confdefs.h. */
|
---|
[562] | 5486 |
|
---|
[8756] | 5487 |
|
---|
| 5488 | int
|
---|
| 5489 | main ()
|
---|
| 5490 | {
|
---|
[25149] | 5491 | return main ();
|
---|
[8756] | 5492 | ;
|
---|
| 5493 | return 0;
|
---|
| 5494 | }
|
---|
| 5495 | _ACEOF
|
---|
[23802] | 5496 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 5497 | if { (ac_try="$ac_link"
|
---|
| 5498 | case "(($ac_try" in
|
---|
| 5499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5500 | *) ac_try_echo=$ac_try;;
|
---|
| 5501 | esac
|
---|
[28325] | 5502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5503 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 5504 | ac_status=$?
|
---|
| 5505 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5506 | rm -f conftest.er1
|
---|
| 5507 | cat conftest.err >&5
|
---|
[28325] | 5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5509 | (exit $ac_status); } && {
|
---|
| 5510 | test -z "$ac_c_werror_flag" ||
|
---|
| 5511 | test ! -s conftest.err
|
---|
[28325] | 5512 | } && test -s conftest$ac_exeext &&
|
---|
| 5513 | $as_test_x conftest$ac_exeext; then
|
---|
[8756] | 5514 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 5515 | else
|
---|
[28325] | 5516 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5518 |
|
---|
[25149] | 5519 | ac_cv_lib_crypt_main=no
|
---|
[562] | 5520 | fi
|
---|
[25149] | 5521 |
|
---|
| 5522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 5523 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 5524 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5525 | fi
|
---|
[28325] | 5526 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 5527 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
|
---|
| 5528 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[8756] | 5529 | cat >>confdefs.h <<_ACEOF
|
---|
| 5530 | #define HAVE_LIBCRYPT 1
|
---|
| 5531 | _ACEOF
|
---|
[562] | 5532 |
|
---|
[8756] | 5533 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 5534 |
|
---|
| 5535 | fi
|
---|
[8756] | 5536 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 5537 |
|
---|
[20842] | 5538 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 5539 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 5540 | #fi
|
---|
[562] | 5541 |
|
---|
[23802] | 5542 |
|
---|
| 5543 |
|
---|
| 5544 |
|
---|
| 5545 |
|
---|
| 5546 |
|
---|
[687] | 5547 | ac_header_dirent=no
|
---|
[8756] | 5548 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[28325] | 5549 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 5550 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 5551 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
---|
[25149] | 5552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 5553 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5554 | else
|
---|
[23802] | 5555 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5556 | /* confdefs.h. */
|
---|
| 5557 | _ACEOF
|
---|
| 5558 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5559 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5560 | /* end confdefs.h. */
|
---|
[687] | 5561 | #include <sys/types.h>
|
---|
| 5562 | #include <$ac_hdr>
|
---|
[8756] | 5563 |
|
---|
| 5564 | int
|
---|
| 5565 | main ()
|
---|
| 5566 | {
|
---|
| 5567 | if ((DIR *) 0)
|
---|
| 5568 | return 0;
|
---|
| 5569 | ;
|
---|
| 5570 | return 0;
|
---|
| 5571 | }
|
---|
| 5572 | _ACEOF
|
---|
[23802] | 5573 | rm -f conftest.$ac_objext
|
---|
[25149] | 5574 | if { (ac_try="$ac_compile"
|
---|
| 5575 | case "(($ac_try" in
|
---|
| 5576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5577 | *) ac_try_echo=$ac_try;;
|
---|
| 5578 | esac
|
---|
[28325] | 5579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5580 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5581 | ac_status=$?
|
---|
| 5582 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5583 | rm -f conftest.er1
|
---|
| 5584 | cat conftest.err >&5
|
---|
[28325] | 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5586 | (exit $ac_status); } && {
|
---|
| 5587 | test -z "$ac_c_werror_flag" ||
|
---|
| 5588 | test ! -s conftest.err
|
---|
| 5589 | } && test -s conftest.$ac_objext; then
|
---|
[8756] | 5590 | eval "$as_ac_Header=yes"
|
---|
[562] | 5591 | else
|
---|
[28325] | 5592 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5593 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5594 |
|
---|
[25149] | 5595 | eval "$as_ac_Header=no"
|
---|
[687] | 5596 | fi
|
---|
[25149] | 5597 |
|
---|
| 5598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5599 | fi
|
---|
[28325] | 5600 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 5601 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 5602 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 5603 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[8756] | 5604 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 5605 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[8756] | 5606 | _ACEOF
|
---|
| 5607 |
|
---|
| 5608 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 5609 | fi
|
---|
[8756] | 5610 |
|
---|
[687] | 5611 | done
|
---|
| 5612 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5613 | if test $ac_header_dirent = dirent.h; then
|
---|
[28325] | 5614 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5615 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
[23802] | 5616 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[28325] | 5617 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5618 | else
|
---|
[8756] | 5619 | ac_func_search_save_LIBS=$LIBS
|
---|
[23802] | 5620 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5621 | /* confdefs.h. */
|
---|
| 5622 | _ACEOF
|
---|
| 5623 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5624 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5625 | /* end confdefs.h. */
|
---|
| 5626 |
|
---|
[25149] | 5627 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5628 | Use char because int might match the return type of a GCC
|
---|
| 5629 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5630 | #ifdef __cplusplus
|
---|
| 5631 | extern "C"
|
---|
| 5632 | #endif
|
---|
| 5633 | char opendir ();
|
---|
| 5634 | int
|
---|
| 5635 | main ()
|
---|
| 5636 | {
|
---|
[25149] | 5637 | return opendir ();
|
---|
[8756] | 5638 | ;
|
---|
| 5639 | return 0;
|
---|
| 5640 | }
|
---|
| 5641 | _ACEOF
|
---|
[25149] | 5642 | for ac_lib in '' dir; do
|
---|
| 5643 | if test -z "$ac_lib"; then
|
---|
| 5644 | ac_res="none required"
|
---|
| 5645 | else
|
---|
| 5646 | ac_res=-l$ac_lib
|
---|
| 5647 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5648 | fi
|
---|
| 5649 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5650 | if { (ac_try="$ac_link"
|
---|
| 5651 | case "(($ac_try" in
|
---|
| 5652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5653 | *) ac_try_echo=$ac_try;;
|
---|
| 5654 | esac
|
---|
[28325] | 5655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5656 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 5657 | ac_status=$?
|
---|
| 5658 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5659 | rm -f conftest.er1
|
---|
| 5660 | cat conftest.err >&5
|
---|
[28325] | 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5662 | (exit $ac_status); } && {
|
---|
| 5663 | test -z "$ac_c_werror_flag" ||
|
---|
| 5664 | test ! -s conftest.err
|
---|
[28325] | 5665 | } && test -s conftest$ac_exeext &&
|
---|
| 5666 | $as_test_x conftest$ac_exeext; then
|
---|
[25149] | 5667 | ac_cv_search_opendir=$ac_res
|
---|
[23802] | 5668 | else
|
---|
[28325] | 5669 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5670 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5671 |
|
---|
[25149] | 5672 |
|
---|
[23802] | 5673 | fi
|
---|
[8200] | 5674 |
|
---|
[25149] | 5675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 5676 | conftest$ac_exeext
|
---|
| 5677 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5678 | break
|
---|
| 5679 | fi
|
---|
| 5680 | done
|
---|
| 5681 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5682 | :
|
---|
[8200] | 5683 | else
|
---|
[25149] | 5684 | ac_cv_search_opendir=no
|
---|
[687] | 5685 | fi
|
---|
[25149] | 5686 | rm conftest.$ac_ext
|
---|
[8756] | 5687 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5688 | fi
|
---|
[28325] | 5689 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5690 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
[25149] | 5691 | ac_res=$ac_cv_search_opendir
|
---|
| 5692 | if test "$ac_res" != no; then
|
---|
| 5693 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[687] | 5694 |
|
---|
[8756] | 5695 | fi
|
---|
| 5696 |
|
---|
[687] | 5697 | else
|
---|
[28325] | 5698 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5699 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
[23802] | 5700 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[28325] | 5701 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5702 | else
|
---|
[8756] | 5703 | ac_func_search_save_LIBS=$LIBS
|
---|
[23802] | 5704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5705 | /* confdefs.h. */
|
---|
| 5706 | _ACEOF
|
---|
| 5707 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5709 | /* end confdefs.h. */
|
---|
| 5710 |
|
---|
[25149] | 5711 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5712 | Use char because int might match the return type of a GCC
|
---|
| 5713 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5714 | #ifdef __cplusplus
|
---|
| 5715 | extern "C"
|
---|
| 5716 | #endif
|
---|
| 5717 | char opendir ();
|
---|
| 5718 | int
|
---|
| 5719 | main ()
|
---|
| 5720 | {
|
---|
[25149] | 5721 | return opendir ();
|
---|
[8756] | 5722 | ;
|
---|
| 5723 | return 0;
|
---|
| 5724 | }
|
---|
| 5725 | _ACEOF
|
---|
[25149] | 5726 | for ac_lib in '' x; do
|
---|
| 5727 | if test -z "$ac_lib"; then
|
---|
| 5728 | ac_res="none required"
|
---|
| 5729 | else
|
---|
| 5730 | ac_res=-l$ac_lib
|
---|
| 5731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5732 | fi
|
---|
| 5733 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5734 | if { (ac_try="$ac_link"
|
---|
| 5735 | case "(($ac_try" in
|
---|
| 5736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5737 | *) ac_try_echo=$ac_try;;
|
---|
| 5738 | esac
|
---|
[28325] | 5739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5740 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 5741 | ac_status=$?
|
---|
| 5742 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5743 | rm -f conftest.er1
|
---|
| 5744 | cat conftest.err >&5
|
---|
[28325] | 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5746 | (exit $ac_status); } && {
|
---|
| 5747 | test -z "$ac_c_werror_flag" ||
|
---|
| 5748 | test ! -s conftest.err
|
---|
[28325] | 5749 | } && test -s conftest$ac_exeext &&
|
---|
| 5750 | $as_test_x conftest$ac_exeext; then
|
---|
[25149] | 5751 | ac_cv_search_opendir=$ac_res
|
---|
[23802] | 5752 | else
|
---|
[28325] | 5753 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5754 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5755 |
|
---|
[25149] | 5756 |
|
---|
[23802] | 5757 | fi
|
---|
[8200] | 5758 |
|
---|
[25149] | 5759 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 5760 | conftest$ac_exeext
|
---|
| 5761 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5762 | break
|
---|
| 5763 | fi
|
---|
| 5764 | done
|
---|
| 5765 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5766 | :
|
---|
[8200] | 5767 | else
|
---|
[25149] | 5768 | ac_cv_search_opendir=no
|
---|
[562] | 5769 | fi
|
---|
[25149] | 5770 | rm conftest.$ac_ext
|
---|
[8756] | 5771 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5772 | fi
|
---|
[28325] | 5773 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5774 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
[25149] | 5775 | ac_res=$ac_cv_search_opendir
|
---|
| 5776 | if test "$ac_res" != no; then
|
---|
| 5777 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[562] | 5778 |
|
---|
[687] | 5779 | fi
|
---|
| 5780 |
|
---|
[8756] | 5781 | fi
|
---|
| 5782 |
|
---|
[28325] | 5783 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5784 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
[23802] | 5785 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
[28325] | 5786 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5787 | else
|
---|
[23802] | 5788 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5789 | /* confdefs.h. */
|
---|
| 5790 | _ACEOF
|
---|
| 5791 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5792 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5793 | /* end confdefs.h. */
|
---|
[562] | 5794 | #include <stdlib.h>
|
---|
| 5795 | #include <stdarg.h>
|
---|
| 5796 | #include <string.h>
|
---|
| 5797 | #include <float.h>
|
---|
[8756] | 5798 |
|
---|
| 5799 | int
|
---|
| 5800 | main ()
|
---|
| 5801 | {
|
---|
| 5802 |
|
---|
| 5803 | ;
|
---|
| 5804 | return 0;
|
---|
| 5805 | }
|
---|
| 5806 | _ACEOF
|
---|
[23802] | 5807 | rm -f conftest.$ac_objext
|
---|
[25149] | 5808 | if { (ac_try="$ac_compile"
|
---|
| 5809 | case "(($ac_try" in
|
---|
| 5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5811 | *) ac_try_echo=$ac_try;;
|
---|
| 5812 | esac
|
---|
[28325] | 5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5814 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5815 | ac_status=$?
|
---|
| 5816 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5817 | rm -f conftest.er1
|
---|
| 5818 | cat conftest.err >&5
|
---|
[28325] | 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 5820 | (exit $ac_status); } && {
|
---|
| 5821 | test -z "$ac_c_werror_flag" ||
|
---|
| 5822 | test ! -s conftest.err
|
---|
| 5823 | } && test -s conftest.$ac_objext; then
|
---|
[562] | 5824 | ac_cv_header_stdc=yes
|
---|
| 5825 | else
|
---|
[28325] | 5826 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5827 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5828 |
|
---|
[25149] | 5829 | ac_cv_header_stdc=no
|
---|
[562] | 5830 | fi
|
---|
| 5831 |
|
---|
[25149] | 5832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5833 |
|
---|
[562] | 5834 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5835 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[23802] | 5836 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5837 | /* confdefs.h. */
|
---|
| 5838 | _ACEOF
|
---|
| 5839 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5840 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5841 | /* end confdefs.h. */
|
---|
[562] | 5842 | #include <string.h>
|
---|
[8756] | 5843 |
|
---|
| 5844 | _ACEOF
|
---|
[562] | 5845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5846 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5847 | :
|
---|
[562] | 5848 | else
|
---|
| 5849 | ac_cv_header_stdc=no
|
---|
| 5850 | fi
|
---|
| 5851 | rm -f conftest*
|
---|
| 5852 |
|
---|
| 5853 | fi
|
---|
| 5854 |
|
---|
| 5855 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5856 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[23802] | 5857 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5858 | /* confdefs.h. */
|
---|
| 5859 | _ACEOF
|
---|
| 5860 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5861 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5862 | /* end confdefs.h. */
|
---|
[562] | 5863 | #include <stdlib.h>
|
---|
[8756] | 5864 |
|
---|
| 5865 | _ACEOF
|
---|
[562] | 5866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5867 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5868 | :
|
---|
[562] | 5869 | else
|
---|
| 5870 | ac_cv_header_stdc=no
|
---|
| 5871 | fi
|
---|
| 5872 | rm -f conftest*
|
---|
| 5873 |
|
---|
| 5874 | fi
|
---|
| 5875 |
|
---|
| 5876 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5877 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[23802] | 5878 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5879 | :
|
---|
| 5880 | else
|
---|
[23802] | 5881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5882 | /* confdefs.h. */
|
---|
| 5883 | _ACEOF
|
---|
| 5884 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5886 | /* end confdefs.h. */
|
---|
[562] | 5887 | #include <ctype.h>
|
---|
[25149] | 5888 | #include <stdlib.h>
|
---|
[8756] | 5889 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5890 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5891 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5892 | #else
|
---|
| 5893 | # define ISLOWER(c) \
|
---|
| 5894 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5895 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5896 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5897 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5898 | #endif
|
---|
| 5899 |
|
---|
[8200] | 5900 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5901 | int
|
---|
| 5902 | main ()
|
---|
| 5903 | {
|
---|
| 5904 | int i;
|
---|
| 5905 | for (i = 0; i < 256; i++)
|
---|
| 5906 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5907 | || toupper (i) != TOUPPER (i))
|
---|
[25149] | 5908 | return 2;
|
---|
| 5909 | return 0;
|
---|
[8756] | 5910 | }
|
---|
| 5911 | _ACEOF
|
---|
[23802] | 5912 | rm -f conftest$ac_exeext
|
---|
[25149] | 5913 | if { (ac_try="$ac_link"
|
---|
| 5914 | case "(($ac_try" in
|
---|
| 5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5916 | *) ac_try_echo=$ac_try;;
|
---|
| 5917 | esac
|
---|
[28325] | 5918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5919 | (eval "$ac_link") 2>&5
|
---|
[23802] | 5920 | ac_status=$?
|
---|
[28325] | 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 5922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[25149] | 5923 | { (case "(($ac_try" in
|
---|
| 5924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5925 | *) ac_try_echo=$ac_try;;
|
---|
| 5926 | esac
|
---|
[28325] | 5927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5928 | (eval "$ac_try") 2>&5
|
---|
[23802] | 5929 | ac_status=$?
|
---|
[28325] | 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 5931 | (exit $ac_status); }; }; then
|
---|
| 5932 | :
|
---|
| 5933 | else
|
---|
[28325] | 5934 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5935 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 5936 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 5937 |
|
---|
[23802] | 5938 | ( exit $ac_status )
|
---|
| 5939 | ac_cv_header_stdc=no
|
---|
[562] | 5940 | fi
|
---|
[25149] | 5941 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5942 | fi
|
---|
[25149] | 5943 |
|
---|
| 5944 |
|
---|
[562] | 5945 | fi
|
---|
| 5946 | fi
|
---|
[28325] | 5947 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5948 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
[8756] | 5949 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5950 |
|
---|
[23802] | 5951 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5952 | #define STDC_HEADERS 1
|
---|
| 5953 | _ACEOF
|
---|
[562] | 5954 |
|
---|
| 5955 | fi
|
---|
| 5956 |
|
---|
[23802] | 5957 |
|
---|
| 5958 |
|
---|
| 5959 |
|
---|
| 5960 |
|
---|
| 5961 |
|
---|
| 5962 |
|
---|
| 5963 |
|
---|
| 5964 |
|
---|
| 5965 |
|
---|
[10181] | 5966 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[23802] | 5967 | do
|
---|
[28325] | 5968 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[25149] | 5969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 5970 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
[25149] | 5972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 5973 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 5974 | fi
|
---|
[28325] | 5975 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 5976 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 5977 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[23802] | 5978 | else
|
---|
| 5979 | # Is the header compilable?
|
---|
[28325] | 5980 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5981 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
[23802] | 5982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5983 | /* confdefs.h. */
|
---|
| 5984 | _ACEOF
|
---|
| 5985 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5987 | /* end confdefs.h. */
|
---|
| 5988 | $ac_includes_default
|
---|
| 5989 | #include <$ac_header>
|
---|
| 5990 | _ACEOF
|
---|
| 5991 | rm -f conftest.$ac_objext
|
---|
[25149] | 5992 | if { (ac_try="$ac_compile"
|
---|
| 5993 | case "(($ac_try" in
|
---|
| 5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5995 | *) ac_try_echo=$ac_try;;
|
---|
| 5996 | esac
|
---|
[28325] | 5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 5998 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 5999 | ac_status=$?
|
---|
| 6000 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6001 | rm -f conftest.er1
|
---|
| 6002 | cat conftest.err >&5
|
---|
[28325] | 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6004 | (exit $ac_status); } && {
|
---|
| 6005 | test -z "$ac_c_werror_flag" ||
|
---|
| 6006 | test ! -s conftest.err
|
---|
| 6007 | } && test -s conftest.$ac_objext; then
|
---|
[23802] | 6008 | ac_header_compiler=yes
|
---|
| 6009 | else
|
---|
[28325] | 6010 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6011 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6012 |
|
---|
[25149] | 6013 | ac_header_compiler=no
|
---|
[23802] | 6014 | fi
|
---|
| 6015 |
|
---|
[25149] | 6016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[28325] | 6017 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 6018 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
[25149] | 6019 |
|
---|
[23802] | 6020 | # Is the header present?
|
---|
[28325] | 6021 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 6022 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
[23802] | 6023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6024 | /* confdefs.h. */
|
---|
| 6025 | _ACEOF
|
---|
| 6026 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6027 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6028 | /* end confdefs.h. */
|
---|
| 6029 | #include <$ac_header>
|
---|
| 6030 | _ACEOF
|
---|
[25149] | 6031 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 6032 | case "(($ac_try" in
|
---|
| 6033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6034 | *) ac_try_echo=$ac_try;;
|
---|
| 6035 | esac
|
---|
[28325] | 6036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[23802] | 6038 | ac_status=$?
|
---|
| 6039 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6040 | rm -f conftest.er1
|
---|
| 6041 | cat conftest.err >&5
|
---|
[28325] | 6042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6043 | (exit $ac_status); } >/dev/null && {
|
---|
| 6044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 6045 | test ! -s conftest.err
|
---|
| 6046 | }; then
|
---|
[23802] | 6047 | ac_header_preproc=yes
|
---|
| 6048 | else
|
---|
[28325] | 6049 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6050 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6051 |
|
---|
| 6052 | ac_header_preproc=no
|
---|
| 6053 | fi
|
---|
[25149] | 6054 |
|
---|
[23802] | 6055 | rm -f conftest.err conftest.$ac_ext
|
---|
[28325] | 6056 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 6057 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
[23802] | 6058 |
|
---|
| 6059 | # So? What about this header?
|
---|
| 6060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 6061 | yes:no: )
|
---|
[28325] | 6062 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 6063 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 6064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 6065 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
[23802] | 6066 | ac_header_preproc=yes
|
---|
| 6067 | ;;
|
---|
| 6068 | no:yes:* )
|
---|
[28325] | 6069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 6070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 6071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 6072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 6073 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 6074 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 6075 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 6076 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 6077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 6078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 6079 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 6080 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
[25149] | 6081 |
|
---|
[23802] | 6082 | ;;
|
---|
| 6083 | esac
|
---|
[28325] | 6084 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 6085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
[25149] | 6086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 6087 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 6088 | else
|
---|
| 6089 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 6090 | fi
|
---|
[28325] | 6091 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 6092 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6093 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[23802] | 6094 |
|
---|
| 6095 | fi
|
---|
[28325] | 6096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[8756] | 6097 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 6098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[8756] | 6099 | _ACEOF
|
---|
| 6100 |
|
---|
| 6101 | fi
|
---|
| 6102 |
|
---|
[562] | 6103 | done
|
---|
| 6104 |
|
---|
[23802] | 6105 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6106 | /* confdefs.h. */
|
---|
| 6107 | _ACEOF
|
---|
| 6108 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6109 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6110 | /* end confdefs.h. */
|
---|
[687] | 6111 | #include <stdio.h>
|
---|
[8756] | 6112 |
|
---|
| 6113 | _ACEOF
|
---|
[687] | 6114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6115 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 6116 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6117 | #define HAVE_FREAD_DECL 1
|
---|
| 6118 | _ACEOF
|
---|
[562] | 6119 |
|
---|
[687] | 6120 | fi
|
---|
| 6121 | rm -f conftest*
|
---|
| 6122 |
|
---|
[23802] | 6123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6124 | /* confdefs.h. */
|
---|
| 6125 | _ACEOF
|
---|
| 6126 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6128 | /* end confdefs.h. */
|
---|
[687] | 6129 | #include <stdio.h>
|
---|
[8756] | 6130 |
|
---|
| 6131 | _ACEOF
|
---|
[687] | 6132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6133 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 6134 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6135 | #define HAVE_FGETC_DECL 1
|
---|
| 6136 | _ACEOF
|
---|
[687] | 6137 |
|
---|
| 6138 | fi
|
---|
| 6139 | rm -f conftest*
|
---|
| 6140 |
|
---|
[23802] | 6141 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6142 | /* confdefs.h. */
|
---|
| 6143 | _ACEOF
|
---|
| 6144 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6145 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6146 | /* end confdefs.h. */
|
---|
[687] | 6147 | #include <sys/procfs.h>
|
---|
[8756] | 6148 |
|
---|
| 6149 | _ACEOF
|
---|
[687] | 6150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6151 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 6152 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6153 | #define HAVE_PR_BRKSIZE 1
|
---|
| 6154 | _ACEOF
|
---|
[687] | 6155 |
|
---|
| 6156 | fi
|
---|
| 6157 | rm -f conftest*
|
---|
| 6158 |
|
---|
[8200] | 6159 |
|
---|
[687] | 6160 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 6161 | # for constant arguments. Useless!
|
---|
[28325] | 6162 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 6163 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
|
---|
[23802] | 6164 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
[28325] | 6165 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 6166 | else
|
---|
[23802] | 6167 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6168 | /* confdefs.h. */
|
---|
| 6169 | _ACEOF
|
---|
| 6170 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6171 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6172 | /* end confdefs.h. */
|
---|
[687] | 6173 | #include <alloca.h>
|
---|
[8756] | 6174 | int
|
---|
| 6175 | main ()
|
---|
| 6176 | {
|
---|
| 6177 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[25149] | 6178 | if (p) return 0;
|
---|
[8756] | 6179 | ;
|
---|
| 6180 | return 0;
|
---|
| 6181 | }
|
---|
| 6182 | _ACEOF
|
---|
[23802] | 6183 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6184 | if { (ac_try="$ac_link"
|
---|
| 6185 | case "(($ac_try" in
|
---|
| 6186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6187 | *) ac_try_echo=$ac_try;;
|
---|
| 6188 | esac
|
---|
[28325] | 6189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6190 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6191 | ac_status=$?
|
---|
| 6192 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6193 | rm -f conftest.er1
|
---|
| 6194 | cat conftest.err >&5
|
---|
[28325] | 6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6196 | (exit $ac_status); } && {
|
---|
| 6197 | test -z "$ac_c_werror_flag" ||
|
---|
| 6198 | test ! -s conftest.err
|
---|
[28325] | 6199 | } && test -s conftest$ac_exeext &&
|
---|
| 6200 | $as_test_x conftest$ac_exeext; then
|
---|
[8756] | 6201 | ac_cv_working_alloca_h=yes
|
---|
[562] | 6202 | else
|
---|
[28325] | 6203 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6204 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6205 |
|
---|
[25149] | 6206 | ac_cv_working_alloca_h=no
|
---|
[562] | 6207 | fi
|
---|
[25149] | 6208 |
|
---|
| 6209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6210 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6211 | fi
|
---|
[28325] | 6212 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 6213 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
|
---|
[8756] | 6214 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 6215 |
|
---|
[23802] | 6216 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6217 | #define HAVE_ALLOCA_H 1
|
---|
| 6218 | _ACEOF
|
---|
[562] | 6219 |
|
---|
| 6220 | fi
|
---|
| 6221 |
|
---|
[28325] | 6222 | { echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 6223 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
|
---|
[23802] | 6224 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
[28325] | 6225 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 6226 | else
|
---|
[23802] | 6227 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6228 | /* confdefs.h. */
|
---|
| 6229 | _ACEOF
|
---|
| 6230 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6231 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6232 | /* end confdefs.h. */
|
---|
[687] | 6233 | #ifdef __GNUC__
|
---|
| 6234 | # define alloca __builtin_alloca
|
---|
| 6235 | #else
|
---|
| 6236 | # ifdef _MSC_VER
|
---|
| 6237 | # include <malloc.h>
|
---|
| 6238 | # define alloca _alloca
|
---|
| 6239 | # else
|
---|
[25149] | 6240 | # ifdef HAVE_ALLOCA_H
|
---|
[687] | 6241 | # include <alloca.h>
|
---|
| 6242 | # else
|
---|
| 6243 | # ifdef _AIX
|
---|
| 6244 | #pragma alloca
|
---|
| 6245 | # else
|
---|
| 6246 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 6247 | char *alloca ();
|
---|
| 6248 | # endif
|
---|
| 6249 | # endif
|
---|
| 6250 | # endif
|
---|
| 6251 | # endif
|
---|
| 6252 | #endif
|
---|
| 6253 |
|
---|
[8756] | 6254 | int
|
---|
| 6255 | main ()
|
---|
| 6256 | {
|
---|
| 6257 | char *p = (char *) alloca (1);
|
---|
[25149] | 6258 | if (p) return 0;
|
---|
[8756] | 6259 | ;
|
---|
| 6260 | return 0;
|
---|
| 6261 | }
|
---|
| 6262 | _ACEOF
|
---|
[23802] | 6263 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6264 | if { (ac_try="$ac_link"
|
---|
| 6265 | case "(($ac_try" in
|
---|
| 6266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6267 | *) ac_try_echo=$ac_try;;
|
---|
| 6268 | esac
|
---|
[28325] | 6269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6270 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6271 | ac_status=$?
|
---|
| 6272 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6273 | rm -f conftest.er1
|
---|
| 6274 | cat conftest.err >&5
|
---|
[28325] | 6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6276 | (exit $ac_status); } && {
|
---|
| 6277 | test -z "$ac_c_werror_flag" ||
|
---|
| 6278 | test ! -s conftest.err
|
---|
[28325] | 6279 | } && test -s conftest$ac_exeext &&
|
---|
| 6280 | $as_test_x conftest$ac_exeext; then
|
---|
[687] | 6281 | ac_cv_func_alloca_works=yes
|
---|
[562] | 6282 | else
|
---|
[28325] | 6283 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6284 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6285 |
|
---|
[25149] | 6286 | ac_cv_func_alloca_works=no
|
---|
[562] | 6287 | fi
|
---|
[25149] | 6288 |
|
---|
| 6289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6290 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6291 | fi
|
---|
[28325] | 6292 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 6293 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
|
---|
[562] | 6294 |
|
---|
[687] | 6295 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 6296 |
|
---|
[23802] | 6297 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6298 | #define HAVE_ALLOCA 1
|
---|
| 6299 | _ACEOF
|
---|
[562] | 6300 |
|
---|
[8756] | 6301 | else
|
---|
| 6302 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 6303 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 6304 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 6305 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 6306 |
|
---|
[25149] | 6307 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[8756] | 6308 |
|
---|
[23802] | 6309 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6310 | #define C_ALLOCA 1
|
---|
| 6311 | _ACEOF
|
---|
[562] | 6312 |
|
---|
[8200] | 6313 |
|
---|
[28325] | 6314 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 6315 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
|
---|
[23802] | 6316 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
[28325] | 6317 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6318 | else
|
---|
[23802] | 6319 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6320 | /* confdefs.h. */
|
---|
| 6321 | _ACEOF
|
---|
| 6322 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6323 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6324 | /* end confdefs.h. */
|
---|
[25149] | 6325 | #if defined CRAY && ! defined CRAY2
|
---|
[687] | 6326 | webecray
|
---|
| 6327 | #else
|
---|
| 6328 | wenotbecray
|
---|
| 6329 | #endif
|
---|
[562] | 6330 |
|
---|
[8756] | 6331 | _ACEOF
|
---|
[687] | 6332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6333 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 6334 | ac_cv_os_cray=yes
|
---|
| 6335 | else
|
---|
| 6336 | ac_cv_os_cray=no
|
---|
| 6337 | fi
|
---|
| 6338 | rm -f conftest*
|
---|
[562] | 6339 |
|
---|
[687] | 6340 | fi
|
---|
[28325] | 6341 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 6342 | echo "${ECHO_T}$ac_cv_os_cray" >&6; }
|
---|
[687] | 6343 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 6344 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[28325] | 6345 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6346 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6347 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
[25149] | 6348 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 6349 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 6350 | else
|
---|
| 6351 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6352 | /* confdefs.h. */
|
---|
| 6353 | _ACEOF
|
---|
| 6354 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6355 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6356 | /* end confdefs.h. */
|
---|
| 6357 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6358 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6359 | #define $ac_func innocuous_$ac_func
|
---|
[8756] | 6360 |
|
---|
[23802] | 6361 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6362 | which can conflict with char $ac_func (); below.
|
---|
| 6363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6364 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6365 |
|
---|
| 6366 | #ifdef __STDC__
|
---|
| 6367 | # include <limits.h>
|
---|
| 6368 | #else
|
---|
| 6369 | # include <assert.h>
|
---|
| 6370 | #endif
|
---|
| 6371 |
|
---|
| 6372 | #undef $ac_func
|
---|
| 6373 |
|
---|
[25149] | 6374 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6375 | Use char because int might match the return type of a GCC
|
---|
| 6376 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 6377 | #ifdef __cplusplus
|
---|
| 6378 | extern "C"
|
---|
| 6379 | #endif
|
---|
| 6380 | char $ac_func ();
|
---|
| 6381 | /* The GNU C library defines this for functions which it implements
|
---|
| 6382 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6383 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 6384 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[23802] | 6385 | choke me
|
---|
| 6386 | #endif
|
---|
| 6387 |
|
---|
| 6388 | int
|
---|
| 6389 | main ()
|
---|
| 6390 | {
|
---|
[25149] | 6391 | return $ac_func ();
|
---|
[23802] | 6392 | ;
|
---|
| 6393 | return 0;
|
---|
| 6394 | }
|
---|
| 6395 | _ACEOF
|
---|
| 6396 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6397 | if { (ac_try="$ac_link"
|
---|
| 6398 | case "(($ac_try" in
|
---|
| 6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6400 | *) ac_try_echo=$ac_try;;
|
---|
| 6401 | esac
|
---|
[28325] | 6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6403 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6404 | ac_status=$?
|
---|
| 6405 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6406 | rm -f conftest.er1
|
---|
| 6407 | cat conftest.err >&5
|
---|
[28325] | 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6409 | (exit $ac_status); } && {
|
---|
| 6410 | test -z "$ac_c_werror_flag" ||
|
---|
| 6411 | test ! -s conftest.err
|
---|
[28325] | 6412 | } && test -s conftest$ac_exeext &&
|
---|
| 6413 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 6414 | eval "$as_ac_var=yes"
|
---|
| 6415 | else
|
---|
[28325] | 6416 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6417 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6418 |
|
---|
[25149] | 6419 | eval "$as_ac_var=no"
|
---|
[23802] | 6420 | fi
|
---|
[25149] | 6421 |
|
---|
| 6422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6423 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6424 | fi
|
---|
[28325] | 6425 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6426 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6427 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 6428 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[23802] | 6429 |
|
---|
[8756] | 6430 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 6431 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 6432 | _ACEOF
|
---|
[562] | 6433 |
|
---|
[8756] | 6434 | break
|
---|
[687] | 6435 | fi
|
---|
[562] | 6436 |
|
---|
[8756] | 6437 | done
|
---|
[687] | 6438 | fi
|
---|
| 6439 |
|
---|
[28325] | 6440 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 6441 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
|
---|
[23802] | 6442 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
[28325] | 6443 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6444 | else
|
---|
[23802] | 6445 | if test "$cross_compiling" = yes; then
|
---|
[687] | 6446 | ac_cv_c_stack_direction=0
|
---|
| 6447 | else
|
---|
[23802] | 6448 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6449 | /* confdefs.h. */
|
---|
| 6450 | _ACEOF
|
---|
| 6451 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6452 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6453 | /* end confdefs.h. */
|
---|
[25149] | 6454 | $ac_includes_default
|
---|
[8756] | 6455 | int
|
---|
[687] | 6456 | find_stack_direction ()
|
---|
| 6457 | {
|
---|
| 6458 | static char *addr = 0;
|
---|
| 6459 | auto char dummy;
|
---|
| 6460 | if (addr == 0)
|
---|
| 6461 | {
|
---|
| 6462 | addr = &dummy;
|
---|
| 6463 | return find_stack_direction ();
|
---|
| 6464 | }
|
---|
| 6465 | else
|
---|
| 6466 | return (&dummy > addr) ? 1 : -1;
|
---|
| 6467 | }
|
---|
[8756] | 6468 |
|
---|
| 6469 | int
|
---|
[687] | 6470 | main ()
|
---|
| 6471 | {
|
---|
[25149] | 6472 | return find_stack_direction () < 0;
|
---|
[687] | 6473 | }
|
---|
[8756] | 6474 | _ACEOF
|
---|
[23802] | 6475 | rm -f conftest$ac_exeext
|
---|
[25149] | 6476 | if { (ac_try="$ac_link"
|
---|
| 6477 | case "(($ac_try" in
|
---|
| 6478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6479 | *) ac_try_echo=$ac_try;;
|
---|
| 6480 | esac
|
---|
[28325] | 6481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6482 | (eval "$ac_link") 2>&5
|
---|
[23802] | 6483 | ac_status=$?
|
---|
[28325] | 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 6485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[25149] | 6486 | { (case "(($ac_try" in
|
---|
| 6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6488 | *) ac_try_echo=$ac_try;;
|
---|
| 6489 | esac
|
---|
[28325] | 6490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6491 | (eval "$ac_try") 2>&5
|
---|
[23802] | 6492 | ac_status=$?
|
---|
[28325] | 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 6494 | (exit $ac_status); }; }; then
|
---|
[687] | 6495 | ac_cv_c_stack_direction=1
|
---|
[562] | 6496 | else
|
---|
[28325] | 6497 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 6498 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6499 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6500 |
|
---|
| 6501 | ( exit $ac_status )
|
---|
| 6502 | ac_cv_c_stack_direction=-1
|
---|
[562] | 6503 | fi
|
---|
[25149] | 6504 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6505 | fi
|
---|
[25149] | 6506 |
|
---|
| 6507 |
|
---|
[23802] | 6508 | fi
|
---|
[28325] | 6509 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 6510 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
|
---|
[22378] | 6511 |
|
---|
[8756] | 6512 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 6513 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 6514 | _ACEOF
|
---|
[687] | 6515 |
|
---|
[8756] | 6516 |
|
---|
[687] | 6517 | fi
|
---|
| 6518 |
|
---|
[8756] | 6519 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[28325] | 6520 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 6521 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
---|
[23802] | 6522 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
[28325] | 6523 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6524 | else
|
---|
| 6525 | ac_pattern="Autoconf.*'x'"
|
---|
[23802] | 6526 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6527 | /* confdefs.h. */
|
---|
| 6528 | _ACEOF
|
---|
| 6529 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6530 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6531 | /* end confdefs.h. */
|
---|
[687] | 6532 | #include <sgtty.h>
|
---|
| 6533 | Autoconf TIOCGETP
|
---|
[8756] | 6534 | _ACEOF
|
---|
[687] | 6535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6536 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 6537 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6538 | else
|
---|
| 6539 | ac_cv_prog_gcc_traditional=no
|
---|
| 6540 | fi
|
---|
[562] | 6541 | rm -f conftest*
|
---|
[687] | 6542 |
|
---|
[8200] | 6543 |
|
---|
[687] | 6544 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[23802] | 6545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6546 | /* confdefs.h. */
|
---|
| 6547 | _ACEOF
|
---|
| 6548 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6550 | /* end confdefs.h. */
|
---|
[687] | 6551 | #include <termio.h>
|
---|
| 6552 | Autoconf TCGETA
|
---|
[8756] | 6553 | _ACEOF
|
---|
[687] | 6554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6555 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 6556 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 6557 | fi
|
---|
[687] | 6558 | rm -f conftest*
|
---|
[562] | 6559 |
|
---|
[687] | 6560 | fi
|
---|
| 6561 | fi
|
---|
[28325] | 6562 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 6563 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[687] | 6564 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 6565 | CC="$CC -traditional"
|
---|
| 6566 | fi
|
---|
| 6567 | fi
|
---|
| 6568 |
|
---|
[28325] | 6569 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 6570 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
---|
[23802] | 6571 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
[28325] | 6572 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6573 | else
|
---|
[23802] | 6574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6575 | /* confdefs.h. */
|
---|
| 6576 | _ACEOF
|
---|
| 6577 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6579 | /* end confdefs.h. */
|
---|
[687] | 6580 | #include <sys/types.h>
|
---|
| 6581 | #include <signal.h>
|
---|
[562] | 6582 |
|
---|
[8756] | 6583 | int
|
---|
| 6584 | main ()
|
---|
| 6585 | {
|
---|
[25149] | 6586 | return *(signal (0, 0)) (0) == 1;
|
---|
[8756] | 6587 | ;
|
---|
| 6588 | return 0;
|
---|
| 6589 | }
|
---|
| 6590 | _ACEOF
|
---|
[23802] | 6591 | rm -f conftest.$ac_objext
|
---|
[25149] | 6592 | if { (ac_try="$ac_compile"
|
---|
| 6593 | case "(($ac_try" in
|
---|
| 6594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6595 | *) ac_try_echo=$ac_try;;
|
---|
| 6596 | esac
|
---|
[28325] | 6597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6598 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 6599 | ac_status=$?
|
---|
| 6600 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6601 | rm -f conftest.er1
|
---|
| 6602 | cat conftest.err >&5
|
---|
[28325] | 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6604 | (exit $ac_status); } && {
|
---|
| 6605 | test -z "$ac_c_werror_flag" ||
|
---|
| 6606 | test ! -s conftest.err
|
---|
| 6607 | } && test -s conftest.$ac_objext; then
|
---|
| 6608 | ac_cv_type_signal=int
|
---|
[22378] | 6609 | else
|
---|
[28325] | 6610 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6611 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6612 |
|
---|
[25149] | 6613 | ac_cv_type_signal=void
|
---|
[562] | 6614 | fi
|
---|
[25149] | 6615 |
|
---|
| 6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 6617 | fi
|
---|
[28325] | 6618 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 6619 | echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
---|
[562] | 6620 |
|
---|
[8756] | 6621 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 6622 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 6623 | _ACEOF
|
---|
[562] | 6624 |
|
---|
[8200] | 6625 |
|
---|
[23802] | 6626 |
|
---|
[8756] | 6627 | for ac_func in vprintf
|
---|
[23802] | 6628 | do
|
---|
[28325] | 6629 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6630 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6631 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
[25149] | 6632 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 6633 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 6634 | else
|
---|
| 6635 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6636 | /* confdefs.h. */
|
---|
| 6637 | _ACEOF
|
---|
| 6638 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6639 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6640 | /* end confdefs.h. */
|
---|
| 6641 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6642 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6643 | #define $ac_func innocuous_$ac_func
|
---|
| 6644 |
|
---|
| 6645 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6646 | which can conflict with char $ac_func (); below.
|
---|
| 6647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6648 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6649 |
|
---|
| 6650 | #ifdef __STDC__
|
---|
| 6651 | # include <limits.h>
|
---|
| 6652 | #else
|
---|
| 6653 | # include <assert.h>
|
---|
| 6654 | #endif
|
---|
| 6655 |
|
---|
| 6656 | #undef $ac_func
|
---|
| 6657 |
|
---|
[25149] | 6658 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6659 | Use char because int might match the return type of a GCC
|
---|
| 6660 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 6661 | #ifdef __cplusplus
|
---|
| 6662 | extern "C"
|
---|
| 6663 | #endif
|
---|
| 6664 | char $ac_func ();
|
---|
| 6665 | /* The GNU C library defines this for functions which it implements
|
---|
| 6666 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6667 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 6668 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[23802] | 6669 | choke me
|
---|
| 6670 | #endif
|
---|
| 6671 |
|
---|
| 6672 | int
|
---|
| 6673 | main ()
|
---|
| 6674 | {
|
---|
[25149] | 6675 | return $ac_func ();
|
---|
[23802] | 6676 | ;
|
---|
| 6677 | return 0;
|
---|
| 6678 | }
|
---|
| 6679 | _ACEOF
|
---|
| 6680 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6681 | if { (ac_try="$ac_link"
|
---|
| 6682 | case "(($ac_try" in
|
---|
| 6683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6684 | *) ac_try_echo=$ac_try;;
|
---|
| 6685 | esac
|
---|
[28325] | 6686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6687 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6688 | ac_status=$?
|
---|
| 6689 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6690 | rm -f conftest.er1
|
---|
| 6691 | cat conftest.err >&5
|
---|
[28325] | 6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6693 | (exit $ac_status); } && {
|
---|
| 6694 | test -z "$ac_c_werror_flag" ||
|
---|
| 6695 | test ! -s conftest.err
|
---|
[28325] | 6696 | } && test -s conftest$ac_exeext &&
|
---|
| 6697 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 6698 | eval "$as_ac_var=yes"
|
---|
| 6699 | else
|
---|
[28325] | 6700 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6702 |
|
---|
[25149] | 6703 | eval "$as_ac_var=no"
|
---|
[23802] | 6704 | fi
|
---|
[25149] | 6705 |
|
---|
| 6706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6707 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6708 | fi
|
---|
[28325] | 6709 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6710 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6711 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 6712 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[8756] | 6713 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 6714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 6715 | _ACEOF
|
---|
[8200] | 6716 |
|
---|
[28325] | 6717 | { echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6718 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
|
---|
[23802] | 6719 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
[28325] | 6720 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 6721 | else
|
---|
| 6722 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6723 | /* confdefs.h. */
|
---|
| 6724 | _ACEOF
|
---|
| 6725 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6726 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6727 | /* end confdefs.h. */
|
---|
| 6728 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6730 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 6731 |
|
---|
[23802] | 6732 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6733 | which can conflict with char _doprnt (); below.
|
---|
| 6734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6735 | <limits.h> exists even on freestanding compilers. */
|
---|
[8756] | 6736 |
|
---|
[23802] | 6737 | #ifdef __STDC__
|
---|
| 6738 | # include <limits.h>
|
---|
| 6739 | #else
|
---|
| 6740 | # include <assert.h>
|
---|
| 6741 | #endif
|
---|
| 6742 |
|
---|
| 6743 | #undef _doprnt
|
---|
| 6744 |
|
---|
[25149] | 6745 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6746 | Use char because int might match the return type of a GCC
|
---|
| 6747 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 6748 | #ifdef __cplusplus
|
---|
| 6749 | extern "C"
|
---|
| 6750 | #endif
|
---|
| 6751 | char _doprnt ();
|
---|
| 6752 | /* The GNU C library defines this for functions which it implements
|
---|
| 6753 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6754 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 6755 | #if defined __stub__doprnt || defined __stub____doprnt
|
---|
[23802] | 6756 | choke me
|
---|
| 6757 | #endif
|
---|
| 6758 |
|
---|
| 6759 | int
|
---|
| 6760 | main ()
|
---|
| 6761 | {
|
---|
[25149] | 6762 | return _doprnt ();
|
---|
[23802] | 6763 | ;
|
---|
| 6764 | return 0;
|
---|
| 6765 | }
|
---|
| 6766 | _ACEOF
|
---|
| 6767 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6768 | if { (ac_try="$ac_link"
|
---|
| 6769 | case "(($ac_try" in
|
---|
| 6770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6771 | *) ac_try_echo=$ac_try;;
|
---|
| 6772 | esac
|
---|
[28325] | 6773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6774 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6775 | ac_status=$?
|
---|
| 6776 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6777 | rm -f conftest.er1
|
---|
| 6778 | cat conftest.err >&5
|
---|
[28325] | 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6780 | (exit $ac_status); } && {
|
---|
| 6781 | test -z "$ac_c_werror_flag" ||
|
---|
| 6782 | test ! -s conftest.err
|
---|
[28325] | 6783 | } && test -s conftest$ac_exeext &&
|
---|
| 6784 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 6785 | ac_cv_func__doprnt=yes
|
---|
| 6786 | else
|
---|
[28325] | 6787 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6788 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6789 |
|
---|
[25149] | 6790 | ac_cv_func__doprnt=no
|
---|
[562] | 6791 | fi
|
---|
[25149] | 6792 |
|
---|
| 6793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6794 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6795 | fi
|
---|
[28325] | 6796 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6797 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
|
---|
| 6798 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6799 |
|
---|
[23802] | 6800 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6801 | #define HAVE_DOPRNT 1
|
---|
| 6802 | _ACEOF
|
---|
| 6803 |
|
---|
[562] | 6804 | fi
|
---|
[23802] | 6805 |
|
---|
| 6806 | fi
|
---|
[8756] | 6807 | done
|
---|
[562] | 6808 |
|
---|
[8756] | 6809 |
|
---|
[23802] | 6810 |
|
---|
| 6811 |
|
---|
| 6812 |
|
---|
| 6813 |
|
---|
| 6814 |
|
---|
| 6815 |
|
---|
| 6816 |
|
---|
| 6817 |
|
---|
| 6818 |
|
---|
| 6819 |
|
---|
[788] | 6820 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[23802] | 6821 | do
|
---|
[28325] | 6822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6823 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
[25149] | 6825 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 6826 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 6827 | else
|
---|
| 6828 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6829 | /* confdefs.h. */
|
---|
| 6830 | _ACEOF
|
---|
| 6831 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6832 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6833 | /* end confdefs.h. */
|
---|
| 6834 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6836 | #define $ac_func innocuous_$ac_func
|
---|
| 6837 |
|
---|
| 6838 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6839 | which can conflict with char $ac_func (); below.
|
---|
| 6840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6841 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6842 |
|
---|
| 6843 | #ifdef __STDC__
|
---|
| 6844 | # include <limits.h>
|
---|
| 6845 | #else
|
---|
| 6846 | # include <assert.h>
|
---|
| 6847 | #endif
|
---|
| 6848 |
|
---|
| 6849 | #undef $ac_func
|
---|
| 6850 |
|
---|
[25149] | 6851 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6852 | Use char because int might match the return type of a GCC
|
---|
| 6853 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 6854 | #ifdef __cplusplus
|
---|
| 6855 | extern "C"
|
---|
| 6856 | #endif
|
---|
| 6857 | char $ac_func ();
|
---|
| 6858 | /* The GNU C library defines this for functions which it implements
|
---|
| 6859 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6860 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 6861 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[23802] | 6862 | choke me
|
---|
| 6863 | #endif
|
---|
| 6864 |
|
---|
| 6865 | int
|
---|
| 6866 | main ()
|
---|
| 6867 | {
|
---|
[25149] | 6868 | return $ac_func ();
|
---|
[23802] | 6869 | ;
|
---|
| 6870 | return 0;
|
---|
| 6871 | }
|
---|
| 6872 | _ACEOF
|
---|
| 6873 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6874 | if { (ac_try="$ac_link"
|
---|
| 6875 | case "(($ac_try" in
|
---|
| 6876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6877 | *) ac_try_echo=$ac_try;;
|
---|
| 6878 | esac
|
---|
[28325] | 6879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6880 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6881 | ac_status=$?
|
---|
| 6882 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6883 | rm -f conftest.er1
|
---|
| 6884 | cat conftest.err >&5
|
---|
[28325] | 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6886 | (exit $ac_status); } && {
|
---|
| 6887 | test -z "$ac_c_werror_flag" ||
|
---|
| 6888 | test ! -s conftest.err
|
---|
[28325] | 6889 | } && test -s conftest$ac_exeext &&
|
---|
| 6890 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 6891 | eval "$as_ac_var=yes"
|
---|
| 6892 | else
|
---|
[28325] | 6893 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6894 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6895 |
|
---|
[25149] | 6896 | eval "$as_ac_var=no"
|
---|
[23802] | 6897 | fi
|
---|
[25149] | 6898 |
|
---|
| 6899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6900 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6901 | fi
|
---|
[28325] | 6902 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6903 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6904 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 6905 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[8756] | 6906 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 6907 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 6908 | _ACEOF
|
---|
[8200] | 6909 |
|
---|
[687] | 6910 | fi
|
---|
| 6911 | done
|
---|
| 6912 |
|
---|
[8200] | 6913 |
|
---|
[23802] | 6914 |
|
---|
| 6915 |
|
---|
| 6916 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6917 | do
|
---|
[28325] | 6918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6919 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
[25149] | 6921 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6923 | else
|
---|
[23802] | 6924 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6925 | /* confdefs.h. */
|
---|
| 6926 | _ACEOF
|
---|
| 6927 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6928 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6929 | /* end confdefs.h. */
|
---|
| 6930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6932 | #define $ac_func innocuous_$ac_func
|
---|
[8756] | 6933 |
|
---|
[23802] | 6934 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6935 | which can conflict with char $ac_func (); below.
|
---|
| 6936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6937 | <limits.h> exists even on freestanding compilers. */
|
---|
[687] | 6938 |
|
---|
[23802] | 6939 | #ifdef __STDC__
|
---|
| 6940 | # include <limits.h>
|
---|
| 6941 | #else
|
---|
| 6942 | # include <assert.h>
|
---|
| 6943 | #endif
|
---|
[8200] | 6944 |
|
---|
[23802] | 6945 | #undef $ac_func
|
---|
| 6946 |
|
---|
[25149] | 6947 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6948 | Use char because int might match the return type of a GCC
|
---|
| 6949 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 6950 | #ifdef __cplusplus
|
---|
| 6951 | extern "C"
|
---|
| 6952 | #endif
|
---|
| 6953 | char $ac_func ();
|
---|
| 6954 | /* The GNU C library defines this for functions which it implements
|
---|
| 6955 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6956 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 6957 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[23802] | 6958 | choke me
|
---|
| 6959 | #endif
|
---|
| 6960 |
|
---|
| 6961 | int
|
---|
| 6962 | main ()
|
---|
| 6963 | {
|
---|
[25149] | 6964 | return $ac_func ();
|
---|
[23802] | 6965 | ;
|
---|
| 6966 | return 0;
|
---|
| 6967 | }
|
---|
| 6968 | _ACEOF
|
---|
| 6969 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 6970 | if { (ac_try="$ac_link"
|
---|
| 6971 | case "(($ac_try" in
|
---|
| 6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6973 | *) ac_try_echo=$ac_try;;
|
---|
| 6974 | esac
|
---|
[28325] | 6975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 6976 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 6977 | ac_status=$?
|
---|
| 6978 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6979 | rm -f conftest.er1
|
---|
| 6980 | cat conftest.err >&5
|
---|
[28325] | 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 6982 | (exit $ac_status); } && {
|
---|
| 6983 | test -z "$ac_c_werror_flag" ||
|
---|
| 6984 | test ! -s conftest.err
|
---|
[28325] | 6985 | } && test -s conftest$ac_exeext &&
|
---|
| 6986 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 6987 | eval "$as_ac_var=yes"
|
---|
[23356] | 6988 | else
|
---|
[28325] | 6989 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 6990 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 6991 |
|
---|
[25149] | 6992 | eval "$as_ac_var=no"
|
---|
[23356] | 6993 | fi
|
---|
[25149] | 6994 |
|
---|
| 6995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 6996 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6997 | fi
|
---|
[28325] | 6998 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6999 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 7000 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 7001 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[23802] | 7002 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 7003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[23802] | 7004 | _ACEOF
|
---|
[23356] | 7005 |
|
---|
| 7006 | else
|
---|
[25149] | 7007 | case " $LIBOBJS " in
|
---|
[23802] | 7008 | *" $ac_func.$ac_objext "* ) ;;
|
---|
[25149] | 7009 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
| 7010 | ;;
|
---|
[23356] | 7011 | esac
|
---|
| 7012 |
|
---|
| 7013 | fi
|
---|
[23802] | 7014 | done
|
---|
[23356] | 7015 |
|
---|
| 7016 |
|
---|
| 7017 |
|
---|
[28325] | 7018 | { echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 7019 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6; }
|
---|
[23802] | 7020 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
[28325] | 7021 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 7022 | else
|
---|
| 7023 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7024 | /* confdefs.h. */
|
---|
| 7025 | _ACEOF
|
---|
| 7026 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7027 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7028 | /* end confdefs.h. */
|
---|
| 7029 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 7030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7031 | #define textdomain innocuous_textdomain
|
---|
[8756] | 7032 |
|
---|
[23802] | 7033 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7034 | which can conflict with char textdomain (); below.
|
---|
| 7035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7036 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7037 |
|
---|
| 7038 | #ifdef __STDC__
|
---|
| 7039 | # include <limits.h>
|
---|
| 7040 | #else
|
---|
| 7041 | # include <assert.h>
|
---|
| 7042 | #endif
|
---|
| 7043 |
|
---|
| 7044 | #undef textdomain
|
---|
| 7045 |
|
---|
[25149] | 7046 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 7047 | Use char because int might match the return type of a GCC
|
---|
| 7048 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 7049 | #ifdef __cplusplus
|
---|
| 7050 | extern "C"
|
---|
| 7051 | #endif
|
---|
| 7052 | char textdomain ();
|
---|
| 7053 | /* The GNU C library defines this for functions which it implements
|
---|
| 7054 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7055 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 7056 | #if defined __stub_textdomain || defined __stub___textdomain
|
---|
[23802] | 7057 | choke me
|
---|
| 7058 | #endif
|
---|
| 7059 |
|
---|
| 7060 | int
|
---|
| 7061 | main ()
|
---|
| 7062 | {
|
---|
[25149] | 7063 | return textdomain ();
|
---|
[23802] | 7064 | ;
|
---|
| 7065 | return 0;
|
---|
| 7066 | }
|
---|
| 7067 | _ACEOF
|
---|
| 7068 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 7069 | if { (ac_try="$ac_link"
|
---|
| 7070 | case "(($ac_try" in
|
---|
| 7071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7072 | *) ac_try_echo=$ac_try;;
|
---|
| 7073 | esac
|
---|
[28325] | 7074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7075 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 7076 | ac_status=$?
|
---|
| 7077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7078 | rm -f conftest.er1
|
---|
| 7079 | cat conftest.err >&5
|
---|
[28325] | 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7081 | (exit $ac_status); } && {
|
---|
| 7082 | test -z "$ac_c_werror_flag" ||
|
---|
| 7083 | test ! -s conftest.err
|
---|
[28325] | 7084 | } && test -s conftest$ac_exeext &&
|
---|
| 7085 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 7086 | ac_cv_func_textdomain=yes
|
---|
| 7087 | else
|
---|
[28325] | 7088 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7089 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7090 |
|
---|
[25149] | 7091 | ac_cv_func_textdomain=no
|
---|
[3705] | 7092 | fi
|
---|
[25149] | 7093 |
|
---|
| 7094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 7095 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7096 | fi
|
---|
[28325] | 7097 | { echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 7098 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6; }
|
---|
| 7099 | if test $ac_cv_func_textdomain = yes; then
|
---|
[23802] | 7100 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7101 | #define ENABLE_NLS 1
|
---|
| 7102 | _ACEOF
|
---|
[8200] | 7103 |
|
---|
[23802] | 7104 | fi
|
---|
[3705] | 7105 |
|
---|
[23802] | 7106 |
|
---|
[687] | 7107 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 7108 | # ---------------------------------------------------------------------------
|
---|
[28325] | 7109 | { echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 7110 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6; }
|
---|
[687] | 7111 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[28325] | 7112 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7113 | echo "${ECHO_T}yes" >&6; }
|
---|
[25149] | 7114 | case " $LIBOBJS " in
|
---|
[8756] | 7115 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[25149] | 7116 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 7117 | ;;
|
---|
[8756] | 7118 | esac
|
---|
| 7119 |
|
---|
[23802] | 7120 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7121 | #define HAVE_VALLOC 1
|
---|
| 7122 | _ACEOF
|
---|
[687] | 7123 |
|
---|
| 7124 | else
|
---|
[28325] | 7125 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7126 | echo "${ECHO_T}no" >&6; }
|
---|
[23802] | 7127 |
|
---|
| 7128 | for ac_func in valloc
|
---|
| 7129 | do
|
---|
[28325] | 7130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 7131 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 7132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
[25149] | 7133 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[28325] | 7134 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 7135 | else
|
---|
| 7136 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7137 | /* confdefs.h. */
|
---|
| 7138 | _ACEOF
|
---|
| 7139 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7140 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7141 | /* end confdefs.h. */
|
---|
| 7142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 7143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7144 | #define $ac_func innocuous_$ac_func
|
---|
| 7145 |
|
---|
| 7146 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7147 | which can conflict with char $ac_func (); below.
|
---|
| 7148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7149 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7150 |
|
---|
| 7151 | #ifdef __STDC__
|
---|
| 7152 | # include <limits.h>
|
---|
| 7153 | #else
|
---|
| 7154 | # include <assert.h>
|
---|
| 7155 | #endif
|
---|
| 7156 |
|
---|
| 7157 | #undef $ac_func
|
---|
| 7158 |
|
---|
[25149] | 7159 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 7160 | Use char because int might match the return type of a GCC
|
---|
| 7161 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 7162 | #ifdef __cplusplus
|
---|
| 7163 | extern "C"
|
---|
| 7164 | #endif
|
---|
| 7165 | char $ac_func ();
|
---|
| 7166 | /* The GNU C library defines this for functions which it implements
|
---|
| 7167 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7168 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 7169 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[23802] | 7170 | choke me
|
---|
| 7171 | #endif
|
---|
| 7172 |
|
---|
| 7173 | int
|
---|
| 7174 | main ()
|
---|
| 7175 | {
|
---|
[25149] | 7176 | return $ac_func ();
|
---|
[23802] | 7177 | ;
|
---|
| 7178 | return 0;
|
---|
| 7179 | }
|
---|
| 7180 | _ACEOF
|
---|
| 7181 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 7182 | if { (ac_try="$ac_link"
|
---|
| 7183 | case "(($ac_try" in
|
---|
| 7184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7185 | *) ac_try_echo=$ac_try;;
|
---|
| 7186 | esac
|
---|
[28325] | 7187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7188 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 7189 | ac_status=$?
|
---|
| 7190 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7191 | rm -f conftest.er1
|
---|
| 7192 | cat conftest.err >&5
|
---|
[28325] | 7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7194 | (exit $ac_status); } && {
|
---|
| 7195 | test -z "$ac_c_werror_flag" ||
|
---|
| 7196 | test ! -s conftest.err
|
---|
[28325] | 7197 | } && test -s conftest$ac_exeext &&
|
---|
| 7198 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 7199 | eval "$as_ac_var=yes"
|
---|
| 7200 | else
|
---|
[28325] | 7201 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7203 |
|
---|
[25149] | 7204 | eval "$as_ac_var=no"
|
---|
[23802] | 7205 | fi
|
---|
[25149] | 7206 |
|
---|
| 7207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 7208 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7209 | fi
|
---|
[28325] | 7210 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 7211 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 7212 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
| 7213 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[8756] | 7214 | cat >>confdefs.h <<_ACEOF
|
---|
[28325] | 7215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 7216 | _ACEOF
|
---|
[8200] | 7217 |
|
---|
[687] | 7218 | fi
|
---|
| 7219 | done
|
---|
| 7220 |
|
---|
| 7221 | fi
|
---|
| 7222 |
|
---|
[8200] | 7223 | # we cannot generate static libraries under Darwin
|
---|
[28325] | 7224 | { echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 7225 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6; }
|
---|
[8200] | 7226 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[28325] | 7227 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7228 | echo "${ECHO_T}yes" >&6; }
|
---|
[8200] | 7229 | STATIC=""
|
---|
| 7230 | else
|
---|
[28325] | 7231 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7232 | echo "${ECHO_T}no" >&6; }
|
---|
[8200] | 7233 | STATIC="-static "
|
---|
| 7234 | fi
|
---|
[3631] | 7235 |
|
---|
[8200] | 7236 |
|
---|
[28325] | 7237 | { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 7238 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
|
---|
[8756] | 7239 |
|
---|
[25149] | 7240 | # Check whether --with-dmalloc was given.
|
---|
[23802] | 7241 | if test "${with_dmalloc+set}" = set; then
|
---|
[25149] | 7242 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
[28325] | 7243 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7244 | echo "${ECHO_T}yes" >&6; }
|
---|
[23802] | 7245 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7246 | #define WITH_DMALLOC 1
|
---|
| 7247 | _ACEOF
|
---|
[687] | 7248 |
|
---|
[700] | 7249 | LIBS="$LIBS -ldmalloc"
|
---|
| 7250 | LDFLAGS="$LDFLAGS -g"
|
---|
| 7251 | else
|
---|
[28325] | 7252 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7253 | echo "${ECHO_T}no" >&6; }
|
---|
[700] | 7254 | fi
|
---|
| 7255 | else
|
---|
[28325] | 7256 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7257 | echo "${ECHO_T}no" >&6; }
|
---|
[25149] | 7258 | fi
|
---|
[700] | 7259 |
|
---|
| 7260 |
|
---|
[28325] | 7261 | { echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 7262 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6; }
|
---|
[25149] | 7263 |
|
---|
| 7264 | # Check whether --with-regex was given.
|
---|
[23802] | 7265 | if test "${with_regex+set}" = set; then
|
---|
[25149] | 7266 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[700] | 7267 | ac_with_regex=1
|
---|
[28325] | 7268 | { echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 7269 | echo "${ECHO_T}regex" >&6; }
|
---|
[23802] | 7270 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7271 | #define WITH_REGEX 1
|
---|
| 7272 | _ACEOF
|
---|
[700] | 7273 |
|
---|
[25149] | 7274 | case " $LIBOBJS " in
|
---|
[8756] | 7275 | *" regex.$ac_objext "* ) ;;
|
---|
[25149] | 7276 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 7277 | ;;
|
---|
[8756] | 7278 | esac
|
---|
| 7279 |
|
---|
[700] | 7280 | fi
|
---|
[25149] | 7281 | fi
|
---|
| 7282 |
|
---|
[700] | 7283 | if test -z "$ac_with_regex"; then
|
---|
[28325] | 7284 | { echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 7285 | echo "${ECHO_T}rx" >&6; }
|
---|
| 7286 | { echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 7287 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6; }
|
---|
[23802] | 7288 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
[28325] | 7289 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23802] | 7290 | else
|
---|
| 7291 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7292 | /* confdefs.h. */
|
---|
| 7293 | _ACEOF
|
---|
| 7294 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7295 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7296 | /* end confdefs.h. */
|
---|
| 7297 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 7298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7299 | #define re_rx_search innocuous_re_rx_search
|
---|
[8756] | 7300 |
|
---|
[23802] | 7301 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7302 | which can conflict with char re_rx_search (); below.
|
---|
| 7303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7304 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7305 |
|
---|
| 7306 | #ifdef __STDC__
|
---|
| 7307 | # include <limits.h>
|
---|
| 7308 | #else
|
---|
| 7309 | # include <assert.h>
|
---|
| 7310 | #endif
|
---|
| 7311 |
|
---|
| 7312 | #undef re_rx_search
|
---|
| 7313 |
|
---|
[25149] | 7314 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 7315 | Use char because int might match the return type of a GCC
|
---|
| 7316 | builtin and then its argument prototype would still apply. */
|
---|
[23802] | 7317 | #ifdef __cplusplus
|
---|
| 7318 | extern "C"
|
---|
| 7319 | #endif
|
---|
| 7320 | char re_rx_search ();
|
---|
| 7321 | /* The GNU C library defines this for functions which it implements
|
---|
| 7322 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7323 | something starting with __ and the normal name is an alias. */
|
---|
[25149] | 7324 | #if defined __stub_re_rx_search || defined __stub___re_rx_search
|
---|
[23802] | 7325 | choke me
|
---|
| 7326 | #endif
|
---|
| 7327 |
|
---|
| 7328 | int
|
---|
| 7329 | main ()
|
---|
| 7330 | {
|
---|
[25149] | 7331 | return re_rx_search ();
|
---|
[23802] | 7332 | ;
|
---|
| 7333 | return 0;
|
---|
| 7334 | }
|
---|
| 7335 | _ACEOF
|
---|
| 7336 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[25149] | 7337 | if { (ac_try="$ac_link"
|
---|
| 7338 | case "(($ac_try" in
|
---|
| 7339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7340 | *) ac_try_echo=$ac_try;;
|
---|
| 7341 | esac
|
---|
[28325] | 7342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7343 | (eval "$ac_link") 2>conftest.er1
|
---|
[23802] | 7344 | ac_status=$?
|
---|
| 7345 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7346 | rm -f conftest.er1
|
---|
| 7347 | cat conftest.err >&5
|
---|
[28325] | 7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7349 | (exit $ac_status); } && {
|
---|
| 7350 | test -z "$ac_c_werror_flag" ||
|
---|
| 7351 | test ! -s conftest.err
|
---|
[28325] | 7352 | } && test -s conftest$ac_exeext &&
|
---|
| 7353 | $as_test_x conftest$ac_exeext; then
|
---|
[23802] | 7354 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 7355 | else
|
---|
[28325] | 7356 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7357 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7358 |
|
---|
[25149] | 7359 | ac_cv_func_re_rx_search=no
|
---|
[23802] | 7360 | fi
|
---|
[25149] | 7361 |
|
---|
| 7362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[23802] | 7363 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7364 | fi
|
---|
[28325] | 7365 | { echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 7366 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6; }
|
---|
| 7367 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[23802] | 7368 | :
|
---|
| 7369 | else
|
---|
[25149] | 7370 | case " $LIBOBJS " in
|
---|
[8756] | 7371 | *" rx.$ac_objext "* ) ;;
|
---|
[25149] | 7372 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 7373 | ;;
|
---|
[8756] | 7374 | esac
|
---|
| 7375 |
|
---|
[700] | 7376 | fi
|
---|
| 7377 |
|
---|
| 7378 | fi
|
---|
| 7379 |
|
---|
[8200] | 7380 |
|
---|
[687] | 7381 | # ---------------------------------------------------------------------------
|
---|
| 7382 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[25149] | 7383 | case " $LIBOBJS " in
|
---|
[8756] | 7384 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[25149] | 7385 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 7386 | ;;
|
---|
[8756] | 7387 | esac
|
---|
| 7388 |
|
---|
[25149] | 7389 | case " $LIBOBJS " in
|
---|
[8756] | 7390 | *" error.$ac_objext "* ) ;;
|
---|
[25149] | 7391 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 7392 | ;;
|
---|
[8756] | 7393 | esac
|
---|
| 7394 |
|
---|
[687] | 7395 | fi
|
---|
| 7396 |
|
---|
[8200] | 7397 |
|
---|
[687] | 7398 | # ---------------------------------------------------------------------------
|
---|
| 7399 |
|
---|
[25149] | 7400 | ac_ext=cpp
|
---|
[687] | 7401 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 7402 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 7403 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 7404 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 7405 |
|
---|
[8200] | 7406 |
|
---|
[28325] | 7407 | { echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 7408 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6; }
|
---|
[687] | 7409 | success="no"
|
---|
| 7410 | pl_path="$PATH"
|
---|
| 7411 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 7412 | for pl_dir in $pl_path; do
|
---|
| 7413 | test -z "$pl_dir" && pl_dir=.
|
---|
| 7414 | if test -x $pl_dir/perl; then
|
---|
| 7415 | success="yes"
|
---|
| 7416 | break
|
---|
| 7417 | fi
|
---|
| 7418 | done
|
---|
| 7419 | IFS="$pl_save_ifs"
|
---|
| 7420 |
|
---|
| 7421 | if test $success = "yes"; then
|
---|
| 7422 | try=`perl configtest.pl` || try="0"
|
---|
| 7423 | try=`expr $try \> 5.000`
|
---|
| 7424 | if test $try = "1"; then
|
---|
[28325] | 7425 | { echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7426 | echo "${ECHO_T}\"yes\"" >&6; }
|
---|
[687] | 7427 | else
|
---|
| 7428 | success="no"
|
---|
| 7429 | fi
|
---|
| 7430 | fi
|
---|
| 7431 |
|
---|
| 7432 | if test $success = "no"; then
|
---|
[28325] | 7433 | { echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7434 | echo "${ECHO_T}\"no\"" >&6; }
|
---|
| 7435 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 7436 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
[23802] | 7437 | { (exit 1); exit 1; }; }
|
---|
[687] | 7438 | fi
|
---|
| 7439 |
|
---|
| 7440 | success=no
|
---|
[28325] | 7441 | { echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 7442 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6; }
|
---|
[687] | 7443 |
|
---|
[18214] | 7444 |
|
---|
[23802] | 7445 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7446 | /* confdefs.h. */
|
---|
| 7447 | _ACEOF
|
---|
| 7448 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7449 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 7450 | /* end confdefs.h. */
|
---|
[687] | 7451 | #include <vector>
|
---|
| 7452 |
|
---|
[8756] | 7453 | int
|
---|
| 7454 | main ()
|
---|
| 7455 | {
|
---|
[687] | 7456 |
|
---|
[8756] | 7457 | ;
|
---|
| 7458 | return 0;
|
---|
| 7459 | }
|
---|
| 7460 | _ACEOF
|
---|
[23802] | 7461 | rm -f conftest.$ac_objext
|
---|
[25149] | 7462 | if { (ac_try="$ac_compile"
|
---|
| 7463 | case "(($ac_try" in
|
---|
| 7464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7465 | *) ac_try_echo=$ac_try;;
|
---|
| 7466 | esac
|
---|
[28325] | 7467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7468 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 7469 | ac_status=$?
|
---|
| 7470 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7471 | rm -f conftest.er1
|
---|
| 7472 | cat conftest.err >&5
|
---|
[28325] | 7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7474 | (exit $ac_status); } && {
|
---|
| 7475 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7476 | test ! -s conftest.err
|
---|
| 7477 | } && test -s conftest.$ac_objext; then
|
---|
[687] | 7478 | success=yes
|
---|
[23802] | 7479 | else
|
---|
[28325] | 7480 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7481 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7482 |
|
---|
[25149] | 7483 |
|
---|
[687] | 7484 | fi
|
---|
| 7485 |
|
---|
[25149] | 7486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7487 |
|
---|
[687] | 7488 | if test $success = "no"; then
|
---|
[23802] | 7489 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7490 | /* confdefs.h. */
|
---|
| 7491 | _ACEOF
|
---|
| 7492 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7493 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 7494 | /* end confdefs.h. */
|
---|
[687] | 7495 | #include <vector.h>
|
---|
| 7496 |
|
---|
[8756] | 7497 | int
|
---|
| 7498 | main ()
|
---|
| 7499 | {
|
---|
[687] | 7500 |
|
---|
[8756] | 7501 | ;
|
---|
| 7502 | return 0;
|
---|
| 7503 | }
|
---|
| 7504 | _ACEOF
|
---|
[23802] | 7505 | rm -f conftest.$ac_objext
|
---|
[25149] | 7506 | if { (ac_try="$ac_compile"
|
---|
| 7507 | case "(($ac_try" in
|
---|
| 7508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7509 | *) ac_try_echo=$ac_try;;
|
---|
| 7510 | esac
|
---|
[28325] | 7511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7512 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 7513 | ac_status=$?
|
---|
| 7514 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7515 | rm -f conftest.er1
|
---|
| 7516 | cat conftest.err >&5
|
---|
[28325] | 7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7518 | (exit $ac_status); } && {
|
---|
| 7519 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7520 | test ! -s conftest.err
|
---|
| 7521 | } && test -s conftest.$ac_objext; then
|
---|
[687] | 7522 | success="yes"
|
---|
[23802] | 7523 | else
|
---|
[28325] | 7524 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7525 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7526 |
|
---|
[25149] | 7527 |
|
---|
[687] | 7528 | fi
|
---|
[25149] | 7529 |
|
---|
| 7530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7531 | fi
|
---|
| 7532 |
|
---|
| 7533 | if test $success = "no"; then
|
---|
[23802] | 7534 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7535 | /* confdefs.h. */
|
---|
| 7536 | _ACEOF
|
---|
| 7537 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7538 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 7539 | /* end confdefs.h. */
|
---|
[687] | 7540 | #include <ospace\\std\\vector>
|
---|
| 7541 |
|
---|
[8756] | 7542 | int
|
---|
| 7543 | main ()
|
---|
| 7544 | {
|
---|
[687] | 7545 |
|
---|
[8756] | 7546 | ;
|
---|
| 7547 | return 0;
|
---|
| 7548 | }
|
---|
| 7549 | _ACEOF
|
---|
[23802] | 7550 | rm -f conftest.$ac_objext
|
---|
[25149] | 7551 | if { (ac_try="$ac_compile"
|
---|
| 7552 | case "(($ac_try" in
|
---|
| 7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7554 | *) ac_try_echo=$ac_try;;
|
---|
| 7555 | esac
|
---|
[28325] | 7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7557 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 7558 | ac_status=$?
|
---|
| 7559 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7560 | rm -f conftest.er1
|
---|
| 7561 | cat conftest.err >&5
|
---|
[28325] | 7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7563 | (exit $ac_status); } && {
|
---|
| 7564 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7565 | test ! -s conftest.err
|
---|
| 7566 | } && test -s conftest.$ac_objext; then
|
---|
[687] | 7567 | success="yes"
|
---|
[23802] | 7568 | else
|
---|
[28325] | 7569 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7570 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7571 |
|
---|
[25149] | 7572 |
|
---|
[687] | 7573 | fi
|
---|
[25149] | 7574 |
|
---|
| 7575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7576 | fi
|
---|
| 7577 |
|
---|
| 7578 | if test $success = yes; then
|
---|
[28325] | 7579 | { echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7580 | echo "${ECHO_T}\"no\"" >&6; }
|
---|
[687] | 7581 | else
|
---|
[28325] | 7582 | { echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7583 | echo "${ECHO_T}\"yes\"" >&6; }
|
---|
| 7584 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7585 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
[23802] | 7586 | { (exit 1); exit 1; }; }
|
---|
[687] | 7587 | fi
|
---|
| 7588 |
|
---|
[2950] | 7589 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7590 | # check for running bash under cygwin
|
---|
| 7591 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7592 | then
|
---|
| 7593 | gsdlos=windows
|
---|
| 7594 | fi
|
---|
[687] | 7595 |
|
---|
[8200] | 7596 |
|
---|
[10856] | 7597 | # check for endianness
|
---|
[28325] | 7598 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7599 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
---|
[23802] | 7600 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
[28325] | 7601 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10856] | 7602 | else
|
---|
[28325] | 7603 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 7605 | /* confdefs.h. */
|
---|
[10856] | 7606 | _ACEOF
|
---|
[23802] | 7607 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7609 | /* end confdefs.h. */
|
---|
| 7610 | #include <sys/types.h>
|
---|
[28325] | 7611 | #include <sys/param.h>
|
---|
[10856] | 7612 |
|
---|
| 7613 | int
|
---|
| 7614 | main ()
|
---|
| 7615 | {
|
---|
[28325] | 7616 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
---|
| 7617 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
---|
| 7618 | bogus endian macros
|
---|
| 7619 | #endif
|
---|
[10856] | 7620 |
|
---|
| 7621 | ;
|
---|
| 7622 | return 0;
|
---|
| 7623 | }
|
---|
| 7624 | _ACEOF
|
---|
[23802] | 7625 | rm -f conftest.$ac_objext
|
---|
[25149] | 7626 | if { (ac_try="$ac_compile"
|
---|
| 7627 | case "(($ac_try" in
|
---|
| 7628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7629 | *) ac_try_echo=$ac_try;;
|
---|
| 7630 | esac
|
---|
[28325] | 7631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7632 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 7633 | ac_status=$?
|
---|
| 7634 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7635 | rm -f conftest.er1
|
---|
| 7636 | cat conftest.err >&5
|
---|
[28325] | 7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7638 | (exit $ac_status); } && {
|
---|
| 7639 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7640 | test ! -s conftest.err
|
---|
| 7641 | } && test -s conftest.$ac_objext; then
|
---|
[10856] | 7642 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[28325] | 7643 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 7644 | /* confdefs.h. */
|
---|
| 7645 | _ACEOF
|
---|
| 7646 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7647 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7648 | /* end confdefs.h. */
|
---|
| 7649 | #include <sys/types.h>
|
---|
[28325] | 7650 | #include <sys/param.h>
|
---|
[10856] | 7651 |
|
---|
| 7652 | int
|
---|
| 7653 | main ()
|
---|
| 7654 | {
|
---|
| 7655 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[28325] | 7656 | not big endian
|
---|
| 7657 | #endif
|
---|
[10856] | 7658 |
|
---|
| 7659 | ;
|
---|
| 7660 | return 0;
|
---|
| 7661 | }
|
---|
| 7662 | _ACEOF
|
---|
[23802] | 7663 | rm -f conftest.$ac_objext
|
---|
[25149] | 7664 | if { (ac_try="$ac_compile"
|
---|
| 7665 | case "(($ac_try" in
|
---|
| 7666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7667 | *) ac_try_echo=$ac_try;;
|
---|
| 7668 | esac
|
---|
[28325] | 7669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7670 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 7671 | ac_status=$?
|
---|
| 7672 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7673 | rm -f conftest.er1
|
---|
| 7674 | cat conftest.err >&5
|
---|
[28325] | 7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7676 | (exit $ac_status); } && {
|
---|
| 7677 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7678 | test ! -s conftest.err
|
---|
| 7679 | } && test -s conftest.$ac_objext; then
|
---|
[10856] | 7680 | ac_cv_c_bigendian=yes
|
---|
| 7681 | else
|
---|
[28325] | 7682 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7683 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7684 |
|
---|
[25149] | 7685 | ac_cv_c_bigendian=no
|
---|
[10856] | 7686 | fi
|
---|
[25149] | 7687 |
|
---|
| 7688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[23802] | 7689 | else
|
---|
[28325] | 7690 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7691 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10856] | 7692 |
|
---|
[28325] | 7693 | # It does not; compile a test program.
|
---|
| 7694 | if test "$cross_compiling" = yes; then
|
---|
| 7695 | # try to guess the endianness by grepping values into an object file
|
---|
| 7696 | ac_cv_c_bigendian=unknown
|
---|
| 7697 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[23802] | 7698 | /* confdefs.h. */
|
---|
[10856] | 7699 | _ACEOF
|
---|
[23802] | 7700 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7701 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7702 | /* end confdefs.h. */
|
---|
[28325] | 7703 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7704 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7705 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7706 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7707 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7708 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
[10856] | 7709 | int
|
---|
| 7710 | main ()
|
---|
| 7711 | {
|
---|
[28325] | 7712 | _ascii (); _ebcdic ();
|
---|
[10856] | 7713 | ;
|
---|
| 7714 | return 0;
|
---|
| 7715 | }
|
---|
| 7716 | _ACEOF
|
---|
[23802] | 7717 | rm -f conftest.$ac_objext
|
---|
[25149] | 7718 | if { (ac_try="$ac_compile"
|
---|
| 7719 | case "(($ac_try" in
|
---|
| 7720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7721 | *) ac_try_echo=$ac_try;;
|
---|
| 7722 | esac
|
---|
[28325] | 7723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7724 | (eval "$ac_compile") 2>conftest.er1
|
---|
[23802] | 7725 | ac_status=$?
|
---|
| 7726 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7727 | rm -f conftest.er1
|
---|
| 7728 | cat conftest.err >&5
|
---|
[28325] | 7729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[25149] | 7730 | (exit $ac_status); } && {
|
---|
| 7731 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7732 | test ! -s conftest.err
|
---|
| 7733 | } && test -s conftest.$ac_objext; then
|
---|
[28325] | 7734 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
[10856] | 7735 | ac_cv_c_bigendian=yes
|
---|
| 7736 | fi
|
---|
[28325] | 7737 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7738 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7739 | ac_cv_c_bigendian=no
|
---|
| 7740 | else
|
---|
| 7741 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7742 | ac_cv_c_bigendian=unknown
|
---|
| 7743 | fi
|
---|
[10856] | 7744 | fi
|
---|
[23802] | 7745 | else
|
---|
[28325] | 7746 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7747 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10856] | 7748 |
|
---|
[25149] | 7749 |
|
---|
[10856] | 7750 | fi
|
---|
[25149] | 7751 |
|
---|
| 7752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7753 | else
|
---|
[23802] | 7754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7755 | /* confdefs.h. */
|
---|
| 7756 | _ACEOF
|
---|
| 7757 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7759 | /* end confdefs.h. */
|
---|
[25149] | 7760 | $ac_includes_default
|
---|
[10856] | 7761 | int
|
---|
| 7762 | main ()
|
---|
| 7763 | {
|
---|
[25149] | 7764 |
|
---|
[28325] | 7765 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7766 | union
|
---|
| 7767 | {
|
---|
| 7768 | long int l;
|
---|
| 7769 | char c[sizeof (long int)];
|
---|
| 7770 | } u;
|
---|
| 7771 | u.l = 1;
|
---|
| 7772 | return u.c[sizeof (long int) - 1] == 1;
|
---|
[25149] | 7773 |
|
---|
| 7774 | ;
|
---|
| 7775 | return 0;
|
---|
[10856] | 7776 | }
|
---|
| 7777 | _ACEOF
|
---|
[23802] | 7778 | rm -f conftest$ac_exeext
|
---|
[25149] | 7779 | if { (ac_try="$ac_link"
|
---|
| 7780 | case "(($ac_try" in
|
---|
| 7781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7782 | *) ac_try_echo=$ac_try;;
|
---|
| 7783 | esac
|
---|
[28325] | 7784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7785 | (eval "$ac_link") 2>&5
|
---|
[23802] | 7786 | ac_status=$?
|
---|
[28325] | 7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 7788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[25149] | 7789 | { (case "(($ac_try" in
|
---|
| 7790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7791 | *) ac_try_echo=$ac_try;;
|
---|
| 7792 | esac
|
---|
[28325] | 7793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
[25149] | 7794 | (eval "$ac_try") 2>&5
|
---|
[23802] | 7795 | ac_status=$?
|
---|
[28325] | 7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[23802] | 7797 | (exit $ac_status); }; }; then
|
---|
[10856] | 7798 | ac_cv_c_bigendian=no
|
---|
| 7799 | else
|
---|
[28325] | 7800 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7801 | echo "$as_me: failed program was:" >&5
|
---|
[23802] | 7802 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7803 |
|
---|
| 7804 | ( exit $ac_status )
|
---|
| 7805 | ac_cv_c_bigendian=yes
|
---|
[10856] | 7806 | fi
|
---|
[25149] | 7807 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7808 | fi
|
---|
[25149] | 7809 |
|
---|
| 7810 |
|
---|
[10856] | 7811 | fi
|
---|
| 7812 |
|
---|
[28325] | 7813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7814 | fi
|
---|
| 7815 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7816 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
---|
| 7817 | case $ac_cv_c_bigendian in
|
---|
| 7818 | yes)
|
---|
| 7819 |
|
---|
[23802] | 7820 | cat >>confdefs.h <<\_ACEOF
|
---|
[28325] | 7821 | #define WORDS_BIGENDIAN 1
|
---|
[23802] | 7822 | _ACEOF
|
---|
[28325] | 7823 | ;;
|
---|
| 7824 | no)
|
---|
| 7825 | ;;
|
---|
| 7826 | *)
|
---|
| 7827 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7828 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7829 | echo "$as_me: error: unknown endianness
|
---|
| 7830 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
[23802] | 7831 | { (exit 1); exit 1; }; } ;;
|
---|
[28325] | 7832 | esac
|
---|
[10856] | 7833 |
|
---|
[687] | 7834 | # ---------------------------------------------------------------------------
|
---|
| 7835 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[25149] | 7836 | case " $LIBOBJS " in
|
---|
[8756] | 7837 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[25149] | 7838 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
| 7839 | ;;
|
---|
[8756] | 7840 | esac
|
---|
| 7841 |
|
---|
[25149] | 7842 | case " $LIBOBJS " in
|
---|
[8756] | 7843 | *" error.$ac_objext "* ) ;;
|
---|
[25149] | 7844 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 7845 | ;;
|
---|
[8756] | 7846 | esac
|
---|
| 7847 |
|
---|
[687] | 7848 | fi
|
---|
| 7849 |
|
---|
[3063] | 7850 | # ---------------------------------------------------------------------------
|
---|
[687] | 7851 |
|
---|
[3063] | 7852 | moduleDirs=""
|
---|
| 7853 | MODULEDIRS=""
|
---|
[16619] | 7854 | if test -d modules ; then
|
---|
[15300] | 7855 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7856 | if test -d "$x"; then
|
---|
| 7857 | d="$x/Makefile.in"
|
---|
| 7858 | if test -e "$d"; then
|
---|
| 7859 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7860 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7861 | fi
|
---|
[3063] | 7862 | fi
|
---|
[15300] | 7863 | done
|
---|
| 7864 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 7865 |
|
---|
[15300] | 7866 | fi
|
---|
[8200] | 7867 |
|
---|
[15300] | 7868 |
|
---|
[28309] | 7869 | #----------------------------------------------------------------------------
|
---|
| 7870 | # GS2 uses this configure to set up gnome-lib env, GS3 uses the one in gs2build/build-src
|
---|
| 7871 | # For gnome-lib-minimal need to source its ./devel.bash before wvware can even be configured
|
---|
| 7872 | # For a gnome-lib that's already compiled, don't need to its source ./devel.bash to configure wvware
|
---|
| 7873 | # If a gnome-lib is not yet compiled, we compile it first with CASCADE-MAKE.sh
|
---|
[28509] | 7874 | # Need to make sure that the gnome-lib-minimal is not the cut-down gnome-lib-minimal (which contains
|
---|
| 7875 | # only the linux/lib subfolder) that's included with linux and mac binaries, because we can't compile
|
---|
| 7876 | # wvware with the cut-down one, only run wvware with it. The test for the cut-down version is that
|
---|
| 7877 | # it does not contain devel.bash.
|
---|
[28309] | 7878 |
|
---|
[28509] | 7879 | if test -f ext/gnome-lib-minimal/devel.bash; then
|
---|
[28309] | 7880 | echo "*** gnome-lib (minimal) detected. Sourcing the gnomelib env for configuring wvware..."
|
---|
| 7881 | cd ext/gnome-lib-minimal
|
---|
| 7882 | source ./devel.bash
|
---|
| 7883 | cd ../..
|
---|
| 7884 | elif test -d ext/gnome-lib; then
|
---|
[28325] | 7885 | if test -d ext/gnome-lib/$gsdlos; then
|
---|
[28309] | 7886 | echo "*** gnome-lib already compiled up in ext/gnome-lib/$gsdlos"
|
---|
| 7887 | echo "*** Sourcing the gnomelib env for configuring wvware for GS2 (although it's not necessary)..."
|
---|
| 7888 | cd ext/gnome-lib
|
---|
| 7889 | source ./devel.bash
|
---|
| 7890 | cd ../..
|
---|
| 7891 | else
|
---|
| 7892 | echo "*** Compiling up gnome-lib..."
|
---|
| 7893 | cd ext/gnome-lib
|
---|
| 7894 | ./CASCADE-MAKE.sh
|
---|
| 7895 | gnomestatus=$?
|
---|
[28325] | 7896 | if test $gnomestatus != 0; then
|
---|
[28309] | 7897 | echo "****************************************"
|
---|
| 7898 | echo "@@@ Failed to compile up gnomelib successfully"
|
---|
| 7899 | echo "****************************************"
|
---|
| 7900 | exit -1
|
---|
[31162] | 7901 | else
|
---|
| 7902 | echo "************************************************"
|
---|
| 7903 | echo "*** gnome-lib finished compiling successfully."
|
---|
| 7904 | echo "*** sourcing devel.bash for successfully compiling yaz on El Capitan"
|
---|
| 7905 | echo "************************************************"
|
---|
| 7906 | source ./devel.bash
|
---|
[28309] | 7907 | fi
|
---|
| 7908 | cd ../..
|
---|
| 7909 | fi
|
---|
| 7910 | fi
|
---|
| 7911 |
|
---|
[687] | 7912 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7913 |
|
---|
[13777] | 7914 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 7915 | gsdlprefix=`pwd`
|
---|
[19264] | 7916 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[21377] | 7917 | subdirs="$subdirs common-src"
|
---|
[8756] | 7918 |
|
---|
[21377] | 7919 | subdirs="$subdirs build-src"
|
---|
| 7920 |
|
---|
| 7921 |
|
---|
[3063] | 7922 | # the list of folders in the src folder
|
---|
[16572] | 7923 | srclist="common-src/Makefile \
|
---|
[21377] | 7924 | build-src/Makefile"
|
---|
| 7925 |
|
---|
| 7926 | if test -d runtime-src; then
|
---|
[25149] | 7927 | subdirs="$subdirs runtime-src"
|
---|
[21377] | 7928 |
|
---|
| 7929 | srclist="$srclist \
|
---|
[16572] | 7930 | runtime-src/Makefile"
|
---|
[21377] | 7931 | fi
|
---|
[3063] | 7932 |
|
---|
[25149] | 7933 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
| 7934 |
|
---|
[8756] | 7935 | cat >confcache <<\_ACEOF
|
---|
[562] | 7936 | # This file is a shell script that caches the results of configure
|
---|
| 7937 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7938 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7939 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7940 | # want to keep, you may remove or edit it.
|
---|
[562] | 7941 | #
|
---|
[8756] | 7942 | # config.status only pays attention to the cache file if you give it
|
---|
| 7943 | # the --recheck option to rerun configure.
|
---|
[562] | 7944 | #
|
---|
[8756] | 7945 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7946 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7947 | # following values.
|
---|
| 7948 |
|
---|
| 7949 | _ACEOF
|
---|
| 7950 |
|
---|
[562] | 7951 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7952 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[25149] | 7953 | # So, we kill variables containing newlines.
|
---|
[562] | 7954 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7955 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[25149] | 7956 | (
|
---|
| 7957 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 7958 | eval ac_val=\$$ac_var
|
---|
| 7959 | case $ac_val in #(
|
---|
| 7960 | *${as_nl}*)
|
---|
| 7961 | case $ac_var in #(
|
---|
[28325] | 7962 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
| 7963 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
[25149] | 7964 | esac
|
---|
| 7965 | case $ac_var in #(
|
---|
| 7966 | _ | IFS | as_nl) ;; #(
|
---|
| 7967 | *) $as_unset $ac_var ;;
|
---|
| 7968 | esac ;;
|
---|
| 7969 | esac
|
---|
| 7970 | done
|
---|
| 7971 |
|
---|
[8756] | 7972 | (set) 2>&1 |
|
---|
[25149] | 7973 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 7974 | *${as_nl}ac_space=\ *)
|
---|
[23802] | 7975 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7976 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
[8756] | 7977 | sed -n \
|
---|
| 7978 | "s/'/'\\\\''/g;
|
---|
| 7979 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[25149] | 7980 | ;; #(
|
---|
[8756] | 7981 | *)
|
---|
| 7982 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[25149] | 7983 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8756] | 7984 | ;;
|
---|
[25149] | 7985 | esac |
|
---|
| 7986 | sort
|
---|
| 7987 | ) |
|
---|
[8756] | 7988 | sed '
|
---|
[25149] | 7989 | /^ac_cv_env_/b end
|
---|
[8756] | 7990 | t clear
|
---|
[25149] | 7991 | :clear
|
---|
[8756] | 7992 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7993 | t end
|
---|
[25149] | 7994 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7995 | :end' >>confcache
|
---|
| 7996 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 7997 | if test -w "$cache_file"; then
|
---|
| 7998 | test "x$cache_file" != "x/dev/null" &&
|
---|
[28325] | 7999 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
| 8000 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[8756] | 8001 | cat confcache >$cache_file
|
---|
[562] | 8002 | else
|
---|
[28325] | 8003 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
| 8004 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[562] | 8005 | fi
|
---|
| 8006 | fi
|
---|
| 8007 | rm -f confcache
|
---|
| 8008 |
|
---|
| 8009 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 8010 | # Let make expand exec_prefix.
|
---|
| 8011 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 8012 |
|
---|
[687] | 8013 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 8014 |
|
---|
[8756] | 8015 | ac_libobjs=
|
---|
| 8016 | ac_ltlibobjs=
|
---|
| 8017 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 8018 | # 1. Remove the extension, and $U if already installed.
|
---|
[25149] | 8019 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
[28325] | 8020 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
[25149] | 8021 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 8022 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 8023 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 8024 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[8756] | 8025 | done
|
---|
| 8026 | LIBOBJS=$ac_libobjs
|
---|
| 8027 |
|
---|
| 8028 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 8029 |
|
---|
| 8030 |
|
---|
| 8031 |
|
---|
[562] | 8032 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 8033 | ac_clean_files_save=$ac_clean_files
|
---|
| 8034 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[28325] | 8035 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 8036 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 8037 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
[8756] | 8038 | #! $SHELL
|
---|
| 8039 | # Generated by $as_me.
|
---|
[562] | 8040 | # Run this file to recreate the current configuration.
|
---|
| 8041 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 8042 | # configure, is in config.log if it exists.
|
---|
[562] | 8043 |
|
---|
[8756] | 8044 | debug=false
|
---|
| 8045 | ac_cs_recheck=false
|
---|
| 8046 | ac_cs_silent=false
|
---|
| 8047 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[23802] | 8048 | _ACEOF
|
---|
[8756] | 8049 |
|
---|
[28325] | 8050 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[23802] | 8051 | ## --------------------- ##
|
---|
| 8052 | ## M4sh Initialization. ##
|
---|
| 8053 | ## --------------------- ##
|
---|
| 8054 |
|
---|
[25149] | 8055 | # Be more Bourne compatible
|
---|
| 8056 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[23802] | 8057 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[8756] | 8058 | emulate sh
|
---|
| 8059 | NULLCMD=:
|
---|
[28325] | 8060 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[8756] | 8061 | # is contrary to our usage. Disable this feature.
|
---|
| 8062 | alias -g '${1+"$@"}'='"$@"'
|
---|
[25149] | 8063 | setopt NO_GLOB_SUBST
|
---|
| 8064 | else
|
---|
| 8065 | case `(set -o) 2>/dev/null` in
|
---|
| 8066 | *posix*) set -o posix ;;
|
---|
| 8067 | esac
|
---|
| 8068 |
|
---|
[8756] | 8069 | fi
|
---|
| 8070 |
|
---|
[25149] | 8071 |
|
---|
| 8072 |
|
---|
| 8073 |
|
---|
| 8074 | # PATH needs CR
|
---|
| 8075 | # Avoid depending upon Character Ranges.
|
---|
| 8076 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 8077 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 8078 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 8079 | as_cr_digits='0123456789'
|
---|
| 8080 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 8081 |
|
---|
[28325] | 8082 | # The user is always right.
|
---|
| 8083 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 8084 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 8085 | echo "exit 0" >>conf$$.sh
|
---|
| 8086 | chmod +x conf$$.sh
|
---|
| 8087 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 8088 | PATH_SEPARATOR=';'
|
---|
[25149] | 8089 | else
|
---|
[28325] | 8090 | PATH_SEPARATOR=:
|
---|
[25149] | 8091 | fi
|
---|
[28325] | 8092 | rm -f conf$$.sh
|
---|
[25149] | 8093 | fi
|
---|
| 8094 |
|
---|
[23802] | 8095 | # Support unset when possible.
|
---|
| 8096 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 8097 | as_unset=unset
|
---|
[8756] | 8098 | else
|
---|
[23802] | 8099 | as_unset=false
|
---|
[8756] | 8100 | fi
|
---|
| 8101 |
|
---|
| 8102 |
|
---|
[25149] | 8103 | # IFS
|
---|
| 8104 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 8105 | # there to prevent editors from complaining about space-tab.
|
---|
| 8106 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 8107 | # splitting by setting IFS to empty value.)
|
---|
[28325] | 8108 | as_nl='
|
---|
| 8109 | '
|
---|
[25149] | 8110 | IFS=" "" $as_nl"
|
---|
| 8111 |
|
---|
| 8112 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 8113 | case $0 in
|
---|
| 8114 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 8115 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 8116 | for as_dir in $PATH
|
---|
| 8117 | do
|
---|
| 8118 | IFS=$as_save_IFS
|
---|
| 8119 | test -z "$as_dir" && as_dir=.
|
---|
| 8120 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 8121 | done
|
---|
| 8122 | IFS=$as_save_IFS
|
---|
| 8123 |
|
---|
| 8124 | ;;
|
---|
| 8125 | esac
|
---|
| 8126 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 8127 | # in which case we are not to be found in the path.
|
---|
| 8128 | if test "x$as_myself" = x; then
|
---|
| 8129 | as_myself=$0
|
---|
| 8130 | fi
|
---|
| 8131 | if test ! -f "$as_myself"; then
|
---|
[28325] | 8132 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25149] | 8133 | { (exit 1); exit 1; }
|
---|
| 8134 | fi
|
---|
| 8135 |
|
---|
[23802] | 8136 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[25149] | 8137 | for as_var in ENV MAIL MAILPATH
|
---|
| 8138 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 8139 | done
|
---|
[8756] | 8140 | PS1='$ '
|
---|
| 8141 | PS2='> '
|
---|
| 8142 | PS4='+ '
|
---|
| 8143 |
|
---|
| 8144 | # NLS nuisances.
|
---|
[28325] | 8145 | for as_var in \
|
---|
| 8146 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 8147 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 8148 | LC_TELEPHONE LC_TIME
|
---|
| 8149 | do
|
---|
| 8150 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 8151 | eval $as_var=C; export $as_var
|
---|
| 8152 | else
|
---|
| 8153 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 8154 | fi
|
---|
| 8155 | done
|
---|
[562] | 8156 |
|
---|
[23802] | 8157 | # Required to use basename.
|
---|
[25149] | 8158 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 8159 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[8756] | 8160 | as_expr=expr
|
---|
| 8161 | else
|
---|
| 8162 | as_expr=false
|
---|
| 8163 | fi
|
---|
[562] | 8164 |
|
---|
[25149] | 8165 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[8756] | 8166 | as_basename=basename
|
---|
| 8167 | else
|
---|
| 8168 | as_basename=false
|
---|
| 8169 | fi
|
---|
[562] | 8170 |
|
---|
| 8171 |
|
---|
[23802] | 8172 | # Name of the executable.
|
---|
[25149] | 8173 | as_me=`$as_basename -- "$0" ||
|
---|
[8756] | 8174 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 8175 | X"$0" : 'X\(//\)$' \| \
|
---|
[25149] | 8176 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[28325] | 8177 | echo X/"$0" |
|
---|
[25149] | 8178 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 8179 | s//\1/
|
---|
| 8180 | q
|
---|
| 8181 | }
|
---|
| 8182 | /^X\/\(\/\/\)$/{
|
---|
| 8183 | s//\1/
|
---|
| 8184 | q
|
---|
| 8185 | }
|
---|
| 8186 | /^X\/\(\/\).*/{
|
---|
| 8187 | s//\1/
|
---|
| 8188 | q
|
---|
| 8189 | }
|
---|
| 8190 | s/.*/./; q'`
|
---|
[3631] | 8191 |
|
---|
[25149] | 8192 | # CDPATH.
|
---|
| 8193 | $as_unset CDPATH
|
---|
[23802] | 8194 |
|
---|
[8756] | 8195 |
|
---|
[23802] | 8196 |
|
---|
| 8197 | as_lineno_1=$LINENO
|
---|
| 8198 | as_lineno_2=$LINENO
|
---|
| 8199 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[25149] | 8200 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
[23802] | 8201 |
|
---|
| 8202 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 8203 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[25149] | 8204 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
| 8205 | # does the real work. The second script uses 'N' to pair each
|
---|
| 8206 | # line-number line with the line containing $LINENO, and appends
|
---|
| 8207 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
| 8208 | # case at line end.
|
---|
[23802] | 8209 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[25149] | 8210 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
| 8211 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 8212 | sed -n '
|
---|
| 8213 | p
|
---|
| 8214 | /[$]LINENO/=
|
---|
| 8215 | ' <$as_myself |
|
---|
[23802] | 8216 | sed '
|
---|
[25149] | 8217 | s/[$]LINENO.*/&-/
|
---|
| 8218 | t lineno
|
---|
| 8219 | b
|
---|
| 8220 | :lineno
|
---|
[23802] | 8221 | N
|
---|
[25149] | 8222 | :loop
|
---|
| 8223 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[23802] | 8224 | t loop
|
---|
[25149] | 8225 | s/-\n.*//
|
---|
[23802] | 8226 | ' >$as_me.lineno &&
|
---|
[25149] | 8227 | chmod +x "$as_me.lineno" ||
|
---|
[28325] | 8228 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
[23802] | 8229 | { (exit 1); exit 1; }; }
|
---|
| 8230 |
|
---|
| 8231 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 8232 | # (the dirname of $[0] is not the place where we might find the
|
---|
[25149] | 8233 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 8234 | . "./$as_me.lineno"
|
---|
[23802] | 8235 | # Exit status is that of the last command.
|
---|
| 8236 | exit
|
---|
| 8237 | }
|
---|
| 8238 |
|
---|
| 8239 |
|
---|
[25149] | 8240 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 8241 | as_dirname=dirname
|
---|
| 8242 | else
|
---|
| 8243 | as_dirname=false
|
---|
| 8244 | fi
|
---|
| 8245 |
|
---|
| 8246 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 8247 | case `echo -n x` in
|
---|
| 8248 | -n*)
|
---|
| 8249 | case `echo 'x\c'` in
|
---|
| 8250 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 8251 | *) ECHO_C='\c';;
|
---|
| 8252 | esac;;
|
---|
| 8253 | *)
|
---|
| 8254 | ECHO_N='-n';;
|
---|
[8756] | 8255 | esac
|
---|
[28325] | 8256 |
|
---|
[25149] | 8257 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 8258 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[23802] | 8259 | as_expr=expr
|
---|
[8756] | 8260 | else
|
---|
[23802] | 8261 | as_expr=false
|
---|
[8756] | 8262 | fi
|
---|
[23802] | 8263 |
|
---|
| 8264 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[25149] | 8265 | if test -d conf$$.dir; then
|
---|
| 8266 | rm -f conf$$.dir/conf$$.file
|
---|
| 8267 | else
|
---|
| 8268 | rm -f conf$$.dir
|
---|
[28325] | 8269 | mkdir conf$$.dir
|
---|
[25149] | 8270 | fi
|
---|
[28325] | 8271 | echo >conf$$.file
|
---|
| 8272 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8273 | as_ln_s='ln -s'
|
---|
| 8274 | # ... but there are two gotchas:
|
---|
| 8275 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 8276 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 8277 | # In both cases, we have to default to `cp -p'.
|
---|
| 8278 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[23802] | 8279 | as_ln_s='cp -p'
|
---|
[28325] | 8280 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8281 | as_ln_s=ln
|
---|
[8756] | 8282 | else
|
---|
| 8283 | as_ln_s='cp -p'
|
---|
| 8284 | fi
|
---|
[25149] | 8285 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 8286 | rmdir conf$$.dir 2>/dev/null
|
---|
[8756] | 8287 |
|
---|
| 8288 | if mkdir -p . 2>/dev/null; then
|
---|
[23802] | 8289 | as_mkdir_p=:
|
---|
[8756] | 8290 | else
|
---|
| 8291 | test -d ./-p && rmdir ./-p
|
---|
| 8292 | as_mkdir_p=false
|
---|
| 8293 | fi
|
---|
| 8294 |
|
---|
[25149] | 8295 | if test -x / >/dev/null 2>&1; then
|
---|
| 8296 | as_test_x='test -x'
|
---|
| 8297 | else
|
---|
| 8298 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 8299 | as_ls_L_option=L
|
---|
| 8300 | else
|
---|
| 8301 | as_ls_L_option=
|
---|
| 8302 | fi
|
---|
| 8303 | as_test_x='
|
---|
| 8304 | eval sh -c '\''
|
---|
| 8305 | if test -d "$1"; then
|
---|
[28325] | 8306 | test -d "$1/.";
|
---|
[25149] | 8307 | else
|
---|
| 8308 | case $1 in
|
---|
[28325] | 8309 | -*)set "./$1";;
|
---|
[25149] | 8310 | esac;
|
---|
| 8311 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
| 8312 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 8313 | '\'' sh
|
---|
| 8314 | '
|
---|
| 8315 | fi
|
---|
| 8316 | as_executable_p=$as_test_x
|
---|
[8756] | 8317 |
|
---|
| 8318 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 8319 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8320 |
|
---|
| 8321 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8322 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8323 |
|
---|
| 8324 |
|
---|
| 8325 | exec 6>&1
|
---|
| 8326 |
|
---|
[25149] | 8327 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
[8756] | 8328 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[25149] | 8329 | # values after options handling.
|
---|
| 8330 | ac_log="
|
---|
[8756] | 8331 | This file was extended by $as_me, which was
|
---|
[28325] | 8332 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
[8756] | 8333 |
|
---|
| 8334 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8335 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8336 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8337 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8338 | $ $0 $@
|
---|
| 8339 |
|
---|
[25149] | 8340 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 8341 | "
|
---|
| 8342 |
|
---|
[8756] | 8343 | _ACEOF
|
---|
| 8344 |
|
---|
[28325] | 8345 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[25149] | 8346 | # Files that config.status was made for.
|
---|
| 8347 | config_files="$ac_config_files"
|
---|
| 8348 | config_headers="$ac_config_headers"
|
---|
[20853] | 8349 |
|
---|
[25149] | 8350 | _ACEOF
|
---|
[20853] | 8351 |
|
---|
[28325] | 8352 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 8353 | ac_cs_usage="\
|
---|
[23802] | 8354 | \`$as_me' instantiates files from templates according to the
|
---|
| 8355 | current configuration.
|
---|
[8756] | 8356 |
|
---|
[28325] | 8357 | Usage: $0 [OPTIONS] [FILE]...
|
---|
[8756] | 8358 |
|
---|
| 8359 | -h, --help print this help, then exit
|
---|
[25149] | 8360 | -V, --version print version number and configuration settings, then exit
|
---|
[28325] | 8361 | -q, --quiet do not print progress messages
|
---|
[8756] | 8362 | -d, --debug don't remove temporary files
|
---|
| 8363 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[28325] | 8364 | --file=FILE[:TEMPLATE]
|
---|
| 8365 | instantiate the configuration file FILE
|
---|
| 8366 | --header=FILE[:TEMPLATE]
|
---|
| 8367 | instantiate the configuration header FILE
|
---|
[8756] | 8368 |
|
---|
| 8369 | Configuration files:
|
---|
| 8370 | $config_files
|
---|
| 8371 |
|
---|
| 8372 | Configuration headers:
|
---|
| 8373 | $config_headers
|
---|
| 8374 |
|
---|
[23802] | 8375 | Report bugs to <[email protected]>."
|
---|
[25149] | 8376 |
|
---|
[23802] | 8377 | _ACEOF
|
---|
[28325] | 8378 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8756] | 8379 | ac_cs_version="\\
|
---|
| 8380 | config.status
|
---|
[28325] | 8381 | configured by $0, generated by GNU Autoconf 2.61,
|
---|
| 8382 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[8756] | 8383 |
|
---|
[28325] | 8384 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
[8756] | 8385 | This config.status script is free software; the Free Software Foundation
|
---|
| 8386 | gives unlimited permission to copy, distribute and modify it."
|
---|
[25149] | 8387 |
|
---|
| 8388 | ac_pwd='$ac_pwd'
|
---|
| 8389 | srcdir='$srcdir'
|
---|
| 8390 | INSTALL='$INSTALL'
|
---|
[8756] | 8391 | _ACEOF
|
---|
| 8392 |
|
---|
[28325] | 8393 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8394 | # If no file are specified by the user, then we need to provide default
|
---|
| 8395 | # value. By we need to know if files were specified by the user.
|
---|
[8756] | 8396 | ac_need_defaults=:
|
---|
| 8397 | while test $# != 0
|
---|
| 8398 | do
|
---|
| 8399 | case $1 in
|
---|
[23802] | 8400 | --*=*)
|
---|
[25149] | 8401 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 8402 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[8756] | 8403 | ac_shift=:
|
---|
| 8404 | ;;
|
---|
[25149] | 8405 | *)
|
---|
[8756] | 8406 | ac_option=$1
|
---|
| 8407 | ac_optarg=$2
|
---|
| 8408 | ac_shift=shift
|
---|
| 8409 | ;;
|
---|
| 8410 | esac
|
---|
| 8411 |
|
---|
| 8412 | case $ac_option in
|
---|
| 8413 | # Handling of the options.
|
---|
| 8414 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 8415 | ac_cs_recheck=: ;;
|
---|
[25149] | 8416 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
[28325] | 8417 | echo "$ac_cs_version"; exit ;;
|
---|
[25149] | 8418 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[8756] | 8419 | debug=: ;;
|
---|
| 8420 | --file | --fil | --fi | --f )
|
---|
| 8421 | $ac_shift
|
---|
[28325] | 8422 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[8756] | 8423 | ac_need_defaults=false;;
|
---|
| 8424 | --header | --heade | --head | --hea )
|
---|
| 8425 | $ac_shift
|
---|
[28325] | 8426 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[8756] | 8427 | ac_need_defaults=false;;
|
---|
[25149] | 8428 | --he | --h)
|
---|
| 8429 | # Conflict between --help and --header
|
---|
[28325] | 8430 | { echo "$as_me: error: ambiguous option: $1
|
---|
[25149] | 8431 | Try \`$0 --help' for more information." >&2
|
---|
| 8432 | { (exit 1); exit 1; }; };;
|
---|
| 8433 | --help | --hel | -h )
|
---|
[28325] | 8434 | echo "$ac_cs_usage"; exit ;;
|
---|
[8756] | 8435 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8436 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8437 | ac_cs_silent=: ;;
|
---|
| 8438 |
|
---|
| 8439 | # This is an error.
|
---|
[28325] | 8440 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
[25149] | 8441 | Try \`$0 --help' for more information." >&2
|
---|
[23802] | 8442 | { (exit 1); exit 1; }; } ;;
|
---|
[8756] | 8443 |
|
---|
[25149] | 8444 | *) ac_config_targets="$ac_config_targets $1"
|
---|
| 8445 | ac_need_defaults=false ;;
|
---|
[8756] | 8446 |
|
---|
| 8447 | esac
|
---|
| 8448 | shift
|
---|
[8200] | 8449 | done
|
---|
[8756] | 8450 |
|
---|
| 8451 | ac_configure_extra_args=
|
---|
| 8452 |
|
---|
| 8453 | if $ac_cs_silent; then
|
---|
| 8454 | exec 6>/dev/null
|
---|
| 8455 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 8456 | fi
|
---|
[562] | 8457 |
|
---|
[8756] | 8458 | _ACEOF
|
---|
[28325] | 8459 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8756] | 8460 | if \$ac_cs_recheck; then
|
---|
[28325] | 8461 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8462 | CONFIG_SHELL=$SHELL
|
---|
[25149] | 8463 | export CONFIG_SHELL
|
---|
[28325] | 8464 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[8756] | 8465 | fi
|
---|
[8200] | 8466 |
|
---|
[8756] | 8467 | _ACEOF
|
---|
[28325] | 8468 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[25149] | 8469 | exec 5>>config.log
|
---|
| 8470 | {
|
---|
| 8471 | echo
|
---|
| 8472 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8473 | ## Running $as_me. ##
|
---|
| 8474 | _ASBOX
|
---|
[28325] | 8475 | echo "$ac_log"
|
---|
[25149] | 8476 | } >&5
|
---|
[8756] | 8477 |
|
---|
[25149] | 8478 | _ACEOF
|
---|
[28325] | 8479 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[25149] | 8480 | _ACEOF
|
---|
[8756] | 8481 |
|
---|
[28325] | 8482 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20853] | 8483 |
|
---|
[25149] | 8484 | # Handling of arguments.
|
---|
[8756] | 8485 | for ac_config_target in $ac_config_targets
|
---|
| 8486 | do
|
---|
[25149] | 8487 | case $ac_config_target in
|
---|
| 8488 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8489 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8490 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 8491 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 8492 |
|
---|
[28325] | 8493 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8494 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
[23802] | 8495 | { (exit 1); exit 1; }; };;
|
---|
[562] | 8496 | esac
|
---|
[8756] | 8497 | done
|
---|
[562] | 8498 |
|
---|
[25149] | 8499 |
|
---|
[8756] | 8500 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8501 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8502 | # We use the long form for the default assignment because of an extremely
|
---|
| 8503 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8504 | if $ac_need_defaults; then
|
---|
| 8505 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8506 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8507 | fi
|
---|
[8200] | 8508 |
|
---|
[8756] | 8509 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[25149] | 8510 | # simply because there is no reason against having it here, and in addition,
|
---|
[8756] | 8511 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[25149] | 8512 | # Hook for its removal unless debugging.
|
---|
| 8513 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 8514 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[8756] | 8515 | $debug ||
|
---|
| 8516 | {
|
---|
[25149] | 8517 | tmp=
|
---|
| 8518 | trap 'exit_status=$?
|
---|
| 8519 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
| 8520 | ' 0
|
---|
[23802] | 8521 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[8756] | 8522 | }
|
---|
| 8523 | # Create a (secure) tmp directory for tmp files.
|
---|
| 8524 |
|
---|
| 8525 | {
|
---|
[25149] | 8526 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[8756] | 8527 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8528 | } ||
|
---|
| 8529 | {
|
---|
[25149] | 8530 | tmp=./conf$$-$RANDOM
|
---|
| 8531 | (umask 077 && mkdir "$tmp")
|
---|
[23802] | 8532 | } ||
|
---|
[8756] | 8533 | {
|
---|
[28325] | 8534 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[23802] | 8535 | { (exit 1); exit 1; }
|
---|
| 8536 | }
|
---|
[22378] | 8537 |
|
---|
[28325] | 8538 | #
|
---|
| 8539 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
| 8540 | #
|
---|
| 8541 |
|
---|
| 8542 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8543 | # This happens for instance when ./config.status config.h
|
---|
[25149] | 8544 | if test -n "$CONFIG_FILES"; then
|
---|
| 8545 |
|
---|
[28325] | 8546 | _ACEOF
|
---|
[25149] | 8547 |
|
---|
| 8548 |
|
---|
[8756] | 8549 |
|
---|
[25149] | 8550 | ac_delim='%!_!# '
|
---|
| 8551 | for ac_last_try in false false false false false :; do
|
---|
[28325] | 8552 | cat >conf$$subs.sed <<_ACEOF
|
---|
| 8553 | SHELL!$SHELL$ac_delim
|
---|
| 8554 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
| 8555 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
| 8556 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
| 8557 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
| 8558 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
| 8559 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
| 8560 | exec_prefix!$exec_prefix$ac_delim
|
---|
| 8561 | prefix!$prefix$ac_delim
|
---|
| 8562 | program_transform_name!$program_transform_name$ac_delim
|
---|
| 8563 | bindir!$bindir$ac_delim
|
---|
| 8564 | sbindir!$sbindir$ac_delim
|
---|
| 8565 | libexecdir!$libexecdir$ac_delim
|
---|
| 8566 | datarootdir!$datarootdir$ac_delim
|
---|
| 8567 | datadir!$datadir$ac_delim
|
---|
| 8568 | sysconfdir!$sysconfdir$ac_delim
|
---|
| 8569 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
| 8570 | localstatedir!$localstatedir$ac_delim
|
---|
| 8571 | includedir!$includedir$ac_delim
|
---|
| 8572 | oldincludedir!$oldincludedir$ac_delim
|
---|
| 8573 | docdir!$docdir$ac_delim
|
---|
| 8574 | infodir!$infodir$ac_delim
|
---|
| 8575 | htmldir!$htmldir$ac_delim
|
---|
| 8576 | dvidir!$dvidir$ac_delim
|
---|
| 8577 | pdfdir!$pdfdir$ac_delim
|
---|
| 8578 | psdir!$psdir$ac_delim
|
---|
| 8579 | libdir!$libdir$ac_delim
|
---|
| 8580 | localedir!$localedir$ac_delim
|
---|
| 8581 | mandir!$mandir$ac_delim
|
---|
| 8582 | DEFS!$DEFS$ac_delim
|
---|
| 8583 | ECHO_C!$ECHO_C$ac_delim
|
---|
| 8584 | ECHO_N!$ECHO_N$ac_delim
|
---|
| 8585 | ECHO_T!$ECHO_T$ac_delim
|
---|
| 8586 | LIBS!$LIBS$ac_delim
|
---|
| 8587 | build_alias!$build_alias$ac_delim
|
---|
| 8588 | host_alias!$host_alias$ac_delim
|
---|
| 8589 | target_alias!$target_alias$ac_delim
|
---|
| 8590 | PACKAGE!$PACKAGE$ac_delim
|
---|
| 8591 | VERSION!$VERSION$ac_delim
|
---|
| 8592 | USE_FASTCGI!$USE_FASTCGI$ac_delim
|
---|
| 8593 | USE_LANGACTION!$USE_LANGACTION$ac_delim
|
---|
| 8594 | USE_CORBA!$USE_CORBA$ac_delim
|
---|
| 8595 | MICO_DIR!$MICO_DIR$ac_delim
|
---|
| 8596 | ENABLE_JAVA!$ENABLE_JAVA$ac_delim
|
---|
| 8597 | USE_Z3950!$USE_Z3950$ac_delim
|
---|
| 8598 | USE_YAZ!$USE_YAZ$ac_delim
|
---|
| 8599 | USE_WVWARE!$USE_WVWARE$ac_delim
|
---|
| 8600 | USE_JDBM!$USE_JDBM$ac_delim
|
---|
| 8601 | USE_GDBM!$USE_GDBM$ac_delim
|
---|
| 8602 | ENABLE_ACCENTFOLD!$ENABLE_ACCENTFOLD$ac_delim
|
---|
| 8603 | USE_SQLITE!$USE_SQLITE$ac_delim
|
---|
| 8604 | USE_RSS!$USE_RSS$ac_delim
|
---|
| 8605 | USE_APACHE_HTTPD!$USE_APACHE_HTTPD$ac_delim
|
---|
| 8606 | ENABLE_JNI!$ENABLE_JNI$ac_delim
|
---|
| 8607 | ENABLE_MG!$ENABLE_MG$ac_delim
|
---|
| 8608 | ENABLE_MGPP!$ENABLE_MGPP$ac_delim
|
---|
| 8609 | ENABLE_LUCENE!$ENABLE_LUCENE$ac_delim
|
---|
| 8610 | ENABLE_GNOMELIB_EXT!$ENABLE_GNOMELIB_EXT$ac_delim
|
---|
| 8611 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
| 8612 | CFLAGS!$CFLAGS$ac_delim
|
---|
| 8613 | CC!$CC$ac_delim
|
---|
| 8614 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
| 8615 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
| 8616 | EXEEXT!$EXEEXT$ac_delim
|
---|
| 8617 | OBJEXT!$OBJEXT$ac_delim
|
---|
| 8618 | CXX!$CXX$ac_delim
|
---|
| 8619 | CXXFLAGS!$CXXFLAGS$ac_delim
|
---|
| 8620 | ac_ct_CXX!$ac_ct_CXX$ac_delim
|
---|
| 8621 | AWK!$AWK$ac_delim
|
---|
| 8622 | YACC!$YACC$ac_delim
|
---|
| 8623 | YFLAGS!$YFLAGS$ac_delim
|
---|
| 8624 | build!$build$ac_delim
|
---|
| 8625 | build_cpu!$build_cpu$ac_delim
|
---|
| 8626 | build_vendor!$build_vendor$ac_delim
|
---|
| 8627 | build_os!$build_os$ac_delim
|
---|
| 8628 | host!$host$ac_delim
|
---|
| 8629 | host_cpu!$host_cpu$ac_delim
|
---|
| 8630 | host_vendor!$host_vendor$ac_delim
|
---|
| 8631 | host_os!$host_os$ac_delim
|
---|
| 8632 | target!$target$ac_delim
|
---|
| 8633 | target_cpu!$target_cpu$ac_delim
|
---|
| 8634 | target_vendor!$target_vendor$ac_delim
|
---|
| 8635 | target_os!$target_os$ac_delim
|
---|
| 8636 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
| 8637 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
| 8638 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
| 8639 | LN_S!$LN_S$ac_delim
|
---|
| 8640 | SET_MAKE!$SET_MAKE$ac_delim
|
---|
| 8641 | RANLIB!$RANLIB$ac_delim
|
---|
| 8642 | ARCH_DEP_FLAGS!$ARCH_DEP_FLAGS$ac_delim
|
---|
| 8643 | MICO_VER!$MICO_VER$ac_delim
|
---|
| 8644 | CPP!$CPP$ac_delim
|
---|
| 8645 | GREP!$GREP$ac_delim
|
---|
| 8646 | EGREP!$EGREP$ac_delim
|
---|
| 8647 | U!$U$ac_delim
|
---|
| 8648 | ANSI2KNR!$ANSI2KNR$ac_delim
|
---|
| 8649 | ALLOCA!$ALLOCA$ac_delim
|
---|
| 8650 | _ACEOF
|
---|
[22378] | 8651 |
|
---|
[28325] | 8652 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
---|
[25149] | 8653 | break
|
---|
| 8654 | elif $ac_last_try; then
|
---|
[28325] | 8655 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
| 8656 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
[25149] | 8657 | { (exit 1); exit 1; }; }
|
---|
| 8658 | else
|
---|
| 8659 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 8660 | fi
|
---|
| 8661 | done
|
---|
[20853] | 8662 |
|
---|
[28325] | 8663 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
| 8664 | if test -n "$ac_eof"; then
|
---|
| 8665 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
| 8666 | ac_eof=`expr $ac_eof + 1`
|
---|
| 8667 | fi
|
---|
| 8668 |
|
---|
| 8669 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8670 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
| 8671 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[8756] | 8672 | _ACEOF
|
---|
[28325] | 8673 | sed '
|
---|
| 8674 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
| 8675 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
| 8676 | :n
|
---|
| 8677 | t n
|
---|
| 8678 | s/'"$ac_delim"'$/,g/; t
|
---|
| 8679 | s/$/\\/; p
|
---|
| 8680 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
| 8681 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
| 8682 | rm -f conf$$subs.sed
|
---|
| 8683 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8684 | CEOF$ac_eof
|
---|
| 8685 | _ACEOF
|
---|
[8756] | 8686 |
|
---|
[25149] | 8687 |
|
---|
[28325] | 8688 | ac_delim='%!_!# '
|
---|
| 8689 | for ac_last_try in false false false false false :; do
|
---|
| 8690 | cat >conf$$subs.sed <<_ACEOF
|
---|
| 8691 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
| 8692 | STATIC!$STATIC$ac_delim
|
---|
| 8693 | gsdlos!$gsdlos$ac_delim
|
---|
| 8694 | MODULEDIRS!$MODULEDIRS$ac_delim
|
---|
| 8695 | subdirs!$subdirs$ac_delim
|
---|
| 8696 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
| 8697 | _ACEOF
|
---|
[25149] | 8698 |
|
---|
[28325] | 8699 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
|
---|
| 8700 | break
|
---|
| 8701 | elif $ac_last_try; then
|
---|
| 8702 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
| 8703 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
[25149] | 8704 | { (exit 1); exit 1; }; }
|
---|
[28325] | 8705 | else
|
---|
| 8706 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 8707 | fi
|
---|
| 8708 | done
|
---|
| 8709 |
|
---|
| 8710 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
| 8711 | if test -n "$ac_eof"; then
|
---|
| 8712 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
| 8713 | ac_eof=`expr $ac_eof + 1`
|
---|
| 8714 | fi
|
---|
| 8715 |
|
---|
| 8716 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8717 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
---|
| 8718 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
---|
[25149] | 8719 | _ACEOF
|
---|
[28325] | 8720 | sed '
|
---|
| 8721 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
| 8722 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
| 8723 | :n
|
---|
| 8724 | t n
|
---|
| 8725 | s/'"$ac_delim"'$/,g/; t
|
---|
| 8726 | s/$/\\/; p
|
---|
| 8727 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
| 8728 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
| 8729 | rm -f conf$$subs.sed
|
---|
| 8730 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8731 | :end
|
---|
| 8732 | s/|#_!!_#|//g
|
---|
| 8733 | CEOF$ac_eof
|
---|
| 8734 | _ACEOF
|
---|
[25149] | 8735 |
|
---|
[28325] | 8736 |
|
---|
[25149] | 8737 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 8738 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 8739 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 8740 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 8741 | if test "x$srcdir" = x.; then
|
---|
| 8742 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 8743 | s/:*\$(srcdir):*/:/
|
---|
| 8744 | s/:*\${srcdir}:*/:/
|
---|
| 8745 | s/:*@srcdir@:*/:/
|
---|
| 8746 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
| 8747 | s/:*$//
|
---|
| 8748 | s/^[^=]*=[ ]*$//
|
---|
| 8749 | }'
|
---|
| 8750 | fi
|
---|
| 8751 |
|
---|
[28325] | 8752 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[23802] | 8753 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8754 |
|
---|
[25149] | 8755 |
|
---|
[28325] | 8756 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
---|
[25149] | 8757 | do
|
---|
| 8758 | case $ac_tag in
|
---|
| 8759 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[562] | 8760 | esac
|
---|
[25149] | 8761 | case $ac_mode$ac_tag in
|
---|
| 8762 | :[FHL]*:*);;
|
---|
[28325] | 8763 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
| 8764 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
[25149] | 8765 | { (exit 1); exit 1; }; };;
|
---|
| 8766 | :[FH]-) ac_tag=-:-;;
|
---|
| 8767 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 8768 | esac
|
---|
| 8769 | ac_save_IFS=$IFS
|
---|
| 8770 | IFS=:
|
---|
| 8771 | set x $ac_tag
|
---|
| 8772 | IFS=$ac_save_IFS
|
---|
| 8773 | shift
|
---|
| 8774 | ac_file=$1
|
---|
| 8775 | shift
|
---|
[562] | 8776 |
|
---|
[25149] | 8777 | case $ac_mode in
|
---|
| 8778 | :L) ac_source=$1;;
|
---|
| 8779 | :[FH])
|
---|
| 8780 | ac_file_inputs=
|
---|
| 8781 | for ac_f
|
---|
| 8782 | do
|
---|
| 8783 | case $ac_f in
|
---|
| 8784 | -) ac_f="$tmp/stdin";;
|
---|
| 8785 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 8786 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 8787 | # because $ac_f cannot contain `:'.
|
---|
| 8788 | test -f "$ac_f" ||
|
---|
| 8789 | case $ac_f in
|
---|
| 8790 | [\\/$]*) false;;
|
---|
| 8791 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 8792 | esac ||
|
---|
[28325] | 8793 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
| 8794 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
[25149] | 8795 | { (exit 1); exit 1; }; };;
|
---|
| 8796 | esac
|
---|
[28325] | 8797 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
[25149] | 8798 | done
|
---|
| 8799 |
|
---|
| 8800 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8801 | # use $as_me), people would be surprised to read:
|
---|
| 8802 | # /* config.h. Generated by config.status. */
|
---|
[28325] | 8803 | configure_input="Generated from "`IFS=:
|
---|
| 8804 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
[25149] | 8805 | if test x"$ac_file" != x-; then
|
---|
| 8806 | configure_input="$ac_file. $configure_input"
|
---|
[28325] | 8807 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8808 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[25149] | 8809 | fi
|
---|
| 8810 |
|
---|
| 8811 | case $ac_tag in
|
---|
[28325] | 8812 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
[25149] | 8813 | esac
|
---|
| 8814 | ;;
|
---|
| 8815 | esac
|
---|
| 8816 |
|
---|
| 8817 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[8756] | 8818 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8819 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8820 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[25149] | 8821 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[28325] | 8822 | echo X"$ac_file" |
|
---|
[25149] | 8823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 8824 | s//\1/
|
---|
| 8825 | q
|
---|
| 8826 | }
|
---|
| 8827 | /^X\(\/\/\)[^/].*/{
|
---|
| 8828 | s//\1/
|
---|
| 8829 | q
|
---|
| 8830 | }
|
---|
| 8831 | /^X\(\/\/\)$/{
|
---|
| 8832 | s//\1/
|
---|
| 8833 | q
|
---|
| 8834 | }
|
---|
| 8835 | /^X\(\/\).*/{
|
---|
| 8836 | s//\1/
|
---|
| 8837 | q
|
---|
| 8838 | }
|
---|
| 8839 | s/.*/./; q'`
|
---|
| 8840 | { as_dir="$ac_dir"
|
---|
| 8841 | case $as_dir in #(
|
---|
| 8842 | -*) as_dir=./$as_dir;;
|
---|
| 8843 | esac
|
---|
| 8844 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
[23802] | 8845 | as_dirs=
|
---|
[25149] | 8846 | while :; do
|
---|
| 8847 | case $as_dir in #(
|
---|
[28325] | 8848 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
[25149] | 8849 | *) as_qdir=$as_dir;;
|
---|
| 8850 | esac
|
---|
| 8851 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 8852 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
[23802] | 8853 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8854 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8855 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[25149] | 8856 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[28325] | 8857 | echo X"$as_dir" |
|
---|
[25149] | 8858 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 8859 | s//\1/
|
---|
| 8860 | q
|
---|
| 8861 | }
|
---|
| 8862 | /^X\(\/\/\)[^/].*/{
|
---|
| 8863 | s//\1/
|
---|
| 8864 | q
|
---|
| 8865 | }
|
---|
| 8866 | /^X\(\/\/\)$/{
|
---|
| 8867 | s//\1/
|
---|
| 8868 | q
|
---|
| 8869 | }
|
---|
| 8870 | /^X\(\/\).*/{
|
---|
| 8871 | s//\1/
|
---|
| 8872 | q
|
---|
| 8873 | }
|
---|
| 8874 | s/.*/./; q'`
|
---|
| 8875 | test -d "$as_dir" && break
|
---|
[23802] | 8876 | done
|
---|
[25149] | 8877 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
[28325] | 8878 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
| 8879 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
[23802] | 8880 | { (exit 1); exit 1; }; }; }
|
---|
[8756] | 8881 | ac_builddir=.
|
---|
| 8882 |
|
---|
[25149] | 8883 | case "$ac_dir" in
|
---|
| 8884 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 8885 | *)
|
---|
[28325] | 8886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[25149] | 8887 | # A ".." for each directory in $ac_dir_suffix.
|
---|
[28325] | 8888 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
[25149] | 8889 | case $ac_top_builddir_sub in
|
---|
| 8890 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 8891 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 8892 | esac ;;
|
---|
| 8893 | esac
|
---|
| 8894 | ac_abs_top_builddir=$ac_pwd
|
---|
| 8895 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 8896 | # for backward compatibility:
|
---|
| 8897 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8756] | 8898 |
|
---|
| 8899 | case $srcdir in
|
---|
[25149] | 8900 | .) # We are building in place.
|
---|
[8756] | 8901 | ac_srcdir=.
|
---|
[25149] | 8902 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 8903 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 8904 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 8905 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[25149] | 8906 | ac_top_srcdir=$srcdir
|
---|
| 8907 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 8908 | *) # Relative name.
|
---|
| 8909 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 8910 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 8911 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 8912 | esac
|
---|
[25149] | 8913 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[8756] | 8914 |
|
---|
| 8915 |
|
---|
[25149] | 8916 | case $ac_mode in
|
---|
| 8917 | :F)
|
---|
| 8918 | #
|
---|
| 8919 | # CONFIG_FILE
|
---|
| 8920 | #
|
---|
[8756] | 8921 |
|
---|
| 8922 | case $INSTALL in
|
---|
| 8923 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[25149] | 8924 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[8200] | 8925 | esac
|
---|
[25149] | 8926 | _ACEOF
|
---|
[562] | 8927 |
|
---|
[28325] | 8928 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[25149] | 8929 | # If the template does not know about datarootdir, expand it.
|
---|
| 8930 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 8931 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
[23802] | 8932 |
|
---|
[28325] | 8933 | case `sed -n '/datarootdir/ {
|
---|
[25149] | 8934 | p
|
---|
| 8935 | q
|
---|
| 8936 | }
|
---|
| 8937 | /@datadir@/p
|
---|
| 8938 | /@docdir@/p
|
---|
| 8939 | /@infodir@/p
|
---|
| 8940 | /@localedir@/p
|
---|
| 8941 | /@mandir@/p
|
---|
[28325] | 8942 | ' $ac_file_inputs` in
|
---|
[25149] | 8943 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 8944 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
[28325] | 8945 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 8946 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
[22378] | 8947 | _ACEOF
|
---|
[28325] | 8948 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[25149] | 8949 | ac_datarootdir_hack='
|
---|
| 8950 | s&@datadir@&$datadir&g
|
---|
| 8951 | s&@docdir@&$docdir&g
|
---|
| 8952 | s&@infodir@&$infodir&g
|
---|
| 8953 | s&@localedir@&$localedir&g
|
---|
| 8954 | s&@mandir@&$mandir&g
|
---|
| 8955 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 8956 | esac
|
---|
| 8957 | _ACEOF
|
---|
| 8958 |
|
---|
| 8959 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 8960 | # Shell code in configure.ac might set extrasub.
|
---|
| 8961 | # FIXME: do we really want to maintain this feature?
|
---|
[28325] | 8962 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8963 | sed "$ac_vpsub
|
---|
[8756] | 8964 | $extrasub
|
---|
| 8965 | _ACEOF
|
---|
[28325] | 8966 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 8967 | :t
|
---|
| 8968 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[28325] | 8969 | s&@configure_input@&$configure_input&;t t
|
---|
[25149] | 8970 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 8971 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 8972 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 8973 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 8974 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 8975 | s&@builddir@&$ac_builddir&;t t
|
---|
| 8976 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 8977 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 8978 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 8979 | $ac_datarootdir_hack
|
---|
[28325] | 8980 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
---|
[8756] | 8981 |
|
---|
[25149] | 8982 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 8983 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 8984 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
[28325] | 8985 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25149] | 8986 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
[28325] | 8987 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25149] | 8988 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
[8756] | 8989 |
|
---|
[25149] | 8990 | rm -f "$tmp/stdin"
|
---|
[8756] | 8991 | case $ac_file in
|
---|
[28325] | 8992 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
| 8993 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
| 8994 | esac
|
---|
[25149] | 8995 | ;;
|
---|
| 8996 | :H)
|
---|
| 8997 | #
|
---|
| 8998 | # CONFIG_HEADER
|
---|
| 8999 | #
|
---|
[28325] | 9000 | _ACEOF
|
---|
| 9001 |
|
---|
| 9002 | # Transform confdefs.h into a sed script `conftest.defines', that
|
---|
| 9003 | # substitutes the proper values into config.h.in to produce config.h.
|
---|
| 9004 | rm -f conftest.defines conftest.tail
|
---|
| 9005 | # First, append a space to every undef/define line, to ease matching.
|
---|
| 9006 | echo 's/$/ /' >conftest.defines
|
---|
| 9007 | # Then, protect against being on the right side of a sed subst, or in
|
---|
| 9008 | # an unquoted here document, in config.status. If some macros were
|
---|
| 9009 | # called several times there might be several #defines for the same
|
---|
| 9010 | # symbol, which is useless. But do not sort them, since the last
|
---|
| 9011 | # AC_DEFINE must be honored.
|
---|
| 9012 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 9013 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
---|
| 9014 | # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
---|
| 9015 | # PARAMS is the parameter list in the macro definition--in most cases, it's
|
---|
| 9016 | # just an empty string.
|
---|
| 9017 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
---|
| 9018 | ac_dB='\\)[ (].*,\\1define\\2'
|
---|
| 9019 | ac_dC=' '
|
---|
| 9020 | ac_dD=' ,'
|
---|
| 9021 |
|
---|
| 9022 | uniq confdefs.h |
|
---|
| 9023 | sed -n '
|
---|
| 9024 | t rset
|
---|
| 9025 | :rset
|
---|
| 9026 | s/^[ ]*#[ ]*define[ ][ ]*//
|
---|
| 9027 | t ok
|
---|
| 9028 | d
|
---|
| 9029 | :ok
|
---|
| 9030 | s/[\\&,]/\\&/g
|
---|
| 9031 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
---|
| 9032 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
---|
| 9033 | ' >>conftest.defines
|
---|
| 9034 |
|
---|
| 9035 | # Remove the space that was appended to ease matching.
|
---|
| 9036 | # Then replace #undef with comments. This is necessary, for
|
---|
| 9037 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 9038 | # on some systems where configure will not decide to define it.
|
---|
| 9039 | # (The regexp can be short, since the line contains either #define or #undef.)
|
---|
| 9040 | echo 's/ $//
|
---|
| 9041 | s,^[ #]*u.*,/* & */,' >>conftest.defines
|
---|
| 9042 |
|
---|
| 9043 | # Break up conftest.defines:
|
---|
| 9044 | ac_max_sed_lines=50
|
---|
| 9045 |
|
---|
| 9046 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
---|
| 9047 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
---|
| 9048 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
---|
| 9049 | # et cetera.
|
---|
| 9050 | ac_in='$ac_file_inputs'
|
---|
| 9051 | ac_out='"$tmp/out1"'
|
---|
| 9052 | ac_nxt='"$tmp/out2"'
|
---|
| 9053 |
|
---|
| 9054 | while :
|
---|
| 9055 | do
|
---|
| 9056 | # Write a here document:
|
---|
| 9057 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 9058 | # First, check the format of the line:
|
---|
| 9059 | cat >"\$tmp/defines.sed" <<\\CEOF
|
---|
| 9060 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
---|
| 9061 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
---|
| 9062 | b
|
---|
| 9063 | :def
|
---|
| 9064 | _ACEOF
|
---|
| 9065 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 9066 | echo 'CEOF
|
---|
| 9067 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
---|
| 9068 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
---|
| 9069 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
---|
| 9070 | grep . conftest.tail >/dev/null || break
|
---|
| 9071 | rm -f conftest.defines
|
---|
| 9072 | mv conftest.tail conftest.defines
|
---|
| 9073 | done
|
---|
| 9074 | rm -f conftest.defines conftest.tail
|
---|
| 9075 |
|
---|
| 9076 | echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
---|
| 9077 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[25149] | 9078 | if test x"$ac_file" != x-; then
|
---|
[28325] | 9079 | echo "/* $configure_input */" >"$tmp/config.h"
|
---|
| 9080 | cat "$ac_result" >>"$tmp/config.h"
|
---|
| 9081 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
---|
| 9082 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 9083 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[8756] | 9084 | else
|
---|
[28325] | 9085 | rm -f $ac_file
|
---|
| 9086 | mv "$tmp/config.h" $ac_file
|
---|
[687] | 9087 | fi
|
---|
[8756] | 9088 | else
|
---|
[28325] | 9089 | echo "/* $configure_input */"
|
---|
| 9090 | cat "$ac_result"
|
---|
[687] | 9091 | fi
|
---|
[28325] | 9092 | rm -f "$tmp/out12"
|
---|
[25149] | 9093 | ;;
|
---|
[8200] | 9094 |
|
---|
[687] | 9095 |
|
---|
[25149] | 9096 | esac
|
---|
| 9097 |
|
---|
| 9098 | done # for ac_tag
|
---|
| 9099 |
|
---|
| 9100 |
|
---|
[23802] | 9101 | { (exit 0); exit 0; }
|
---|
[8756] | 9102 | _ACEOF
|
---|
[23802] | 9103 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 9104 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 9105 |
|
---|
[8756] | 9106 |
|
---|
| 9107 | # configure is writing to config.log, and then calls config.status.
|
---|
| 9108 | # config.status does its own redirection, appending to config.log.
|
---|
| 9109 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 9110 | # by configure, so config.status won't be able to write to it; its
|
---|
| 9111 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 9112 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 9113 | # appended to by config.status. When coming back to configure, we
|
---|
| 9114 | # need to make the FD available again.
|
---|
| 9115 | if test "$no_create" != yes; then
|
---|
| 9116 | ac_cs_success=:
|
---|
| 9117 | ac_config_status_args=
|
---|
| 9118 | test "$silent" = yes &&
|
---|
| 9119 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 9120 | exec 5>/dev/null
|
---|
| 9121 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 9122 | exec 5>>config.log
|
---|
| 9123 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 9124 | # would make configure fail if this is the last instruction.
|
---|
[23802] | 9125 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
[8756] | 9126 | fi
|
---|
| 9127 |
|
---|
| 9128 | #
|
---|
| 9129 | # CONFIG_SUBDIRS section.
|
---|
| 9130 | #
|
---|
[1675] | 9131 | if test "$no_recursion" != yes; then
|
---|
[562] | 9132 |
|
---|
[28325] | 9133 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
[1675] | 9134 | ac_sub_configure_args=
|
---|
| 9135 | ac_prev=
|
---|
[25149] | 9136 | eval "set x $ac_configure_args"
|
---|
| 9137 | shift
|
---|
| 9138 | for ac_arg
|
---|
| 9139 | do
|
---|
[1675] | 9140 | if test -n "$ac_prev"; then
|
---|
| 9141 | ac_prev=
|
---|
| 9142 | continue
|
---|
| 9143 | fi
|
---|
[8756] | 9144 | case $ac_arg in
|
---|
[1675] | 9145 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 9146 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 9147 | ac_prev=cache_file ;;
|
---|
| 9148 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 9149 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 9150 | | --c=*)
|
---|
[1675] | 9151 | ;;
|
---|
[8756] | 9152 | --config-cache | -C)
|
---|
| 9153 | ;;
|
---|
[1675] | 9154 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 9155 | ac_prev=srcdir ;;
|
---|
| 9156 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 9157 | ;;
|
---|
[8756] | 9158 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 9159 | ac_prev=prefix ;;
|
---|
| 9160 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 9161 | ;;
|
---|
[25149] | 9162 | *)
|
---|
| 9163 | case $ac_arg in
|
---|
[28325] | 9164 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[25149] | 9165 | esac
|
---|
| 9166 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
|
---|
[1675] | 9167 | esac
|
---|
| 9168 | done
|
---|
[562] | 9169 |
|
---|
[8756] | 9170 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 9171 | # in subdir configurations.
|
---|
[25149] | 9172 | ac_arg="--prefix=$prefix"
|
---|
| 9173 | case $ac_arg in
|
---|
[28325] | 9174 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[25149] | 9175 | esac
|
---|
| 9176 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
[1570] | 9177 |
|
---|
[25149] | 9178 | # Pass --silent
|
---|
| 9179 | if test "$silent" = yes; then
|
---|
| 9180 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
| 9181 | fi
|
---|
| 9182 |
|
---|
[8756] | 9183 | ac_popdir=`pwd`
|
---|
| 9184 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 9185 |
|
---|
[1675] | 9186 | # Do not complain, so a configure script can configure whichever
|
---|
| 9187 | # parts of a large source tree are present.
|
---|
[25149] | 9188 | test -d "$srcdir/$ac_dir" || continue
|
---|
[1675] | 9189 |
|
---|
[25149] | 9190 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
[28325] | 9191 | echo "$as_me:$LINENO: $ac_msg" >&5
|
---|
| 9192 | echo "$ac_msg" >&6
|
---|
[25149] | 9193 | { as_dir="$ac_dir"
|
---|
| 9194 | case $as_dir in #(
|
---|
| 9195 | -*) as_dir=./$as_dir;;
|
---|
| 9196 | esac
|
---|
| 9197 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
[23802] | 9198 | as_dirs=
|
---|
[25149] | 9199 | while :; do
|
---|
| 9200 | case $as_dir in #(
|
---|
[28325] | 9201 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
[25149] | 9202 | *) as_qdir=$as_dir;;
|
---|
| 9203 | esac
|
---|
| 9204 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 9205 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
[23802] | 9206 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 9207 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 9208 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[25149] | 9209 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[28325] | 9210 | echo X"$as_dir" |
|
---|
[25149] | 9211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 9212 | s//\1/
|
---|
| 9213 | q
|
---|
| 9214 | }
|
---|
| 9215 | /^X\(\/\/\)[^/].*/{
|
---|
| 9216 | s//\1/
|
---|
| 9217 | q
|
---|
| 9218 | }
|
---|
| 9219 | /^X\(\/\/\)$/{
|
---|
| 9220 | s//\1/
|
---|
| 9221 | q
|
---|
| 9222 | }
|
---|
| 9223 | /^X\(\/\).*/{
|
---|
| 9224 | s//\1/
|
---|
| 9225 | q
|
---|
| 9226 | }
|
---|
| 9227 | s/.*/./; q'`
|
---|
| 9228 | test -d "$as_dir" && break
|
---|
[23802] | 9229 | done
|
---|
[25149] | 9230 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
[28325] | 9231 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
| 9232 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
[23802] | 9233 | { (exit 1); exit 1; }; }; }
|
---|
[8756] | 9234 | ac_builddir=.
|
---|
[1675] | 9235 |
|
---|
[25149] | 9236 | case "$ac_dir" in
|
---|
| 9237 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 9238 | *)
|
---|
[28325] | 9239 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[25149] | 9240 | # A ".." for each directory in $ac_dir_suffix.
|
---|
[28325] | 9241 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
[25149] | 9242 | case $ac_top_builddir_sub in
|
---|
| 9243 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 9244 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 9245 | esac ;;
|
---|
| 9246 | esac
|
---|
| 9247 | ac_abs_top_builddir=$ac_pwd
|
---|
| 9248 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 9249 | # for backward compatibility:
|
---|
| 9250 | ac_top_builddir=$ac_top_build_prefix
|
---|
[1675] | 9251 |
|
---|
[8756] | 9252 | case $srcdir in
|
---|
[25149] | 9253 | .) # We are building in place.
|
---|
[8756] | 9254 | ac_srcdir=.
|
---|
[25149] | 9255 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 9256 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 9257 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 9258 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[25149] | 9259 | ac_top_srcdir=$srcdir
|
---|
| 9260 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 9261 | *) # Relative name.
|
---|
| 9262 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 9263 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 9264 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 9265 | esac
|
---|
[25149] | 9266 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[1675] | 9267 |
|
---|
| 9268 |
|
---|
[25149] | 9269 | cd "$ac_dir"
|
---|
[8756] | 9270 |
|
---|
[1675] | 9271 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[25149] | 9272 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 9273 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
| 9274 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 9275 | ac_sub_configure=$ac_srcdir/configure
|
---|
| 9276 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
| 9277 | # This should be Cygnus configure.
|
---|
| 9278 | ac_sub_configure=$ac_aux_dir/configure
|
---|
[1675] | 9279 | else
|
---|
[28325] | 9280 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 9281 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 9282 | ac_sub_configure=
|
---|
| 9283 | fi
|
---|
| 9284 |
|
---|
| 9285 | # The recursion is here.
|
---|
| 9286 | if test -n "$ac_sub_configure"; then
|
---|
| 9287 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 9288 | case $cache_file in
|
---|
| 9289 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[25149] | 9290 | *) # Relative name.
|
---|
| 9291 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
[1675] | 9292 | esac
|
---|
| 9293 |
|
---|
[28325] | 9294 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 9295 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 9296 | # The eval makes quoting arguments work.
|
---|
[25149] | 9297 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
| 9298 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
[28325] | 9299 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 9300 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
[23802] | 9301 | { (exit 1); exit 1; }; }
|
---|
[1675] | 9302 | fi
|
---|
| 9303 |
|
---|
[25149] | 9304 | cd "$ac_popdir"
|
---|
[1675] | 9305 | done
|
---|
| 9306 | fi
|
---|
| 9307 |
|
---|
[8200] | 9308 |
|
---|
| 9309 |
|
---|