[1] | 1 | #! /bin/sh |
---|
| 2 | # From configure.in Revision: 12803 . |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 4 | # Generated by GNU Autoconf 2.61. |
---|
| 5 | # |
---|
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 7 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
| 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
| 13 | |
---|
| 14 | # Be more Bourne compatible |
---|
| 15 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 17 | emulate sh |
---|
| 18 | NULLCMD=: |
---|
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 20 | # is contrary to our usage. Disable this feature. |
---|
| 21 | alias -g '${1+"$@"}'='"$@"' |
---|
| 22 | setopt NO_GLOB_SUBST |
---|
| 23 | else |
---|
| 24 | case `(set -o) 2>/dev/null` in |
---|
| 25 | *posix*) set -o posix ;; |
---|
| 26 | esac |
---|
| 27 | |
---|
| 28 | fi |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | # PATH needs CR |
---|
| 34 | # Avoid depending upon Character Ranges. |
---|
| 35 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 36 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 37 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 38 | as_cr_digits='0123456789' |
---|
| 39 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 40 | |
---|
| 41 | # The user is always right. |
---|
| 42 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 43 | echo "#! /bin/sh" >conf$$.sh |
---|
| 44 | echo "exit 0" >>conf$$.sh |
---|
| 45 | chmod +x conf$$.sh |
---|
| 46 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 47 | PATH_SEPARATOR=';' |
---|
| 48 | else |
---|
| 49 | PATH_SEPARATOR=: |
---|
| 50 | fi |
---|
| 51 | rm -f conf$$.sh |
---|
| 52 | fi |
---|
| 53 | |
---|
| 54 | # Support unset when possible. |
---|
| 55 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 56 | as_unset=unset |
---|
| 57 | else |
---|
| 58 | as_unset=false |
---|
| 59 | fi |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | # IFS |
---|
| 63 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 64 | # there to prevent editors from complaining about space-tab. |
---|
| 65 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 66 | # splitting by setting IFS to empty value.) |
---|
| 67 | as_nl=' |
---|
| 68 | ' |
---|
| 69 | IFS=" "" $as_nl" |
---|
| 70 | |
---|
| 71 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 72 | case $0 in |
---|
| 73 | *[\\/]* ) as_myself=$0 ;; |
---|
| 74 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 75 | for as_dir in $PATH |
---|
| 76 | do |
---|
| 77 | IFS=$as_save_IFS |
---|
| 78 | test -z "$as_dir" && as_dir=. |
---|
| 79 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 80 | done |
---|
| 81 | IFS=$as_save_IFS |
---|
| 82 | |
---|
| 83 | ;; |
---|
| 84 | esac |
---|
| 85 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 86 | # in which case we are not to be found in the path. |
---|
| 87 | if test "x$as_myself" = x; then |
---|
| 88 | as_myself=$0 |
---|
| 89 | fi |
---|
| 90 | if test ! -f "$as_myself"; then |
---|
| 91 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 92 | { (exit 1); exit 1; } |
---|
| 93 | fi |
---|
| 94 | |
---|
| 95 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 96 | for as_var in ENV MAIL MAILPATH |
---|
| 97 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 98 | done |
---|
| 99 | PS1='$ ' |
---|
| 100 | PS2='> ' |
---|
| 101 | PS4='+ ' |
---|
| 102 | |
---|
| 103 | # NLS nuisances. |
---|
| 104 | for as_var in \ |
---|
| 105 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 106 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 107 | LC_TELEPHONE LC_TIME |
---|
| 108 | do |
---|
| 109 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 110 | eval $as_var=C; export $as_var |
---|
| 111 | else |
---|
| 112 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 113 | fi |
---|
| 114 | done |
---|
| 115 | |
---|
| 116 | # Required to use basename. |
---|
| 117 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 118 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 119 | as_expr=expr |
---|
| 120 | else |
---|
| 121 | as_expr=false |
---|
| 122 | fi |
---|
| 123 | |
---|
| 124 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 125 | as_basename=basename |
---|
| 126 | else |
---|
| 127 | as_basename=false |
---|
| 128 | fi |
---|
| 129 | |
---|
| 130 | |
---|
| 131 | # Name of the executable. |
---|
| 132 | as_me=`$as_basename -- "$0" || |
---|
| 133 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 134 | X"$0" : 'X\(//\)$' \| \ |
---|
| 135 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 136 | echo X/"$0" | |
---|
| 137 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 138 | s//\1/ |
---|
| 139 | q |
---|
| 140 | } |
---|
| 141 | /^X\/\(\/\/\)$/{ |
---|
| 142 | s//\1/ |
---|
| 143 | q |
---|
| 144 | } |
---|
| 145 | /^X\/\(\/\).*/{ |
---|
| 146 | s//\1/ |
---|
| 147 | q |
---|
| 148 | } |
---|
| 149 | s/.*/./; q'` |
---|
| 150 | |
---|
| 151 | # CDPATH. |
---|
| 152 | $as_unset CDPATH |
---|
| 153 | |
---|
| 154 | |
---|
| 155 | if test "x$CONFIG_SHELL" = x; then |
---|
| 156 | if (eval ":") 2>/dev/null; then |
---|
| 157 | as_have_required=yes |
---|
| 158 | else |
---|
| 159 | as_have_required=no |
---|
| 160 | fi |
---|
| 161 | |
---|
| 162 | if test $as_have_required = yes && (eval ": |
---|
| 163 | (as_func_return () { |
---|
| 164 | (exit \$1) |
---|
| 165 | } |
---|
| 166 | as_func_success () { |
---|
| 167 | as_func_return 0 |
---|
| 168 | } |
---|
| 169 | as_func_failure () { |
---|
| 170 | as_func_return 1 |
---|
| 171 | } |
---|
| 172 | as_func_ret_success () { |
---|
| 173 | return 0 |
---|
| 174 | } |
---|
| 175 | as_func_ret_failure () { |
---|
| 176 | return 1 |
---|
| 177 | } |
---|
| 178 | |
---|
| 179 | exitcode=0 |
---|
| 180 | if as_func_success; then |
---|
| 181 | : |
---|
| 182 | else |
---|
| 183 | exitcode=1 |
---|
| 184 | echo as_func_success failed. |
---|
| 185 | fi |
---|
| 186 | |
---|
| 187 | if as_func_failure; then |
---|
| 188 | exitcode=1 |
---|
| 189 | echo as_func_failure succeeded. |
---|
| 190 | fi |
---|
| 191 | |
---|
| 192 | if as_func_ret_success; then |
---|
| 193 | : |
---|
| 194 | else |
---|
| 195 | exitcode=1 |
---|
| 196 | echo as_func_ret_success failed. |
---|
| 197 | fi |
---|
| 198 | |
---|
| 199 | if as_func_ret_failure; then |
---|
| 200 | exitcode=1 |
---|
| 201 | echo as_func_ret_failure succeeded. |
---|
| 202 | fi |
---|
| 203 | |
---|
| 204 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 205 | : |
---|
| 206 | else |
---|
| 207 | exitcode=1 |
---|
| 208 | echo positional parameters were not saved. |
---|
| 209 | fi |
---|
| 210 | |
---|
| 211 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
| 212 | |
---|
| 213 | ( |
---|
| 214 | as_lineno_1=\$LINENO |
---|
| 215 | as_lineno_2=\$LINENO |
---|
| 216 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
| 217 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
| 218 | ") 2> /dev/null; then |
---|
| 219 | : |
---|
| 220 | else |
---|
| 221 | as_candidate_shells= |
---|
| 222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 223 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 224 | do |
---|
| 225 | IFS=$as_save_IFS |
---|
| 226 | test -z "$as_dir" && as_dir=. |
---|
| 227 | case $as_dir in |
---|
| 228 | /*) |
---|
| 229 | for as_base in sh bash ksh sh5; do |
---|
| 230 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
| 231 | done;; |
---|
| 232 | esac |
---|
| 233 | done |
---|
| 234 | IFS=$as_save_IFS |
---|
| 235 | |
---|
| 236 | |
---|
| 237 | for as_shell in $as_candidate_shells $SHELL; do |
---|
| 238 | # Try only shells that exist, to save several forks. |
---|
| 239 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 240 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
| 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 242 | emulate sh |
---|
| 243 | NULLCMD=: |
---|
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 245 | # is contrary to our usage. Disable this feature. |
---|
| 246 | alias -g '${1+"$@"}'='"$@"' |
---|
| 247 | setopt NO_GLOB_SUBST |
---|
| 248 | else |
---|
| 249 | case `(set -o) 2>/dev/null` in |
---|
| 250 | *posix*) set -o posix ;; |
---|
| 251 | esac |
---|
| 252 | |
---|
| 253 | fi |
---|
| 254 | |
---|
| 255 | |
---|
| 256 | : |
---|
| 257 | _ASEOF |
---|
| 258 | }; then |
---|
| 259 | CONFIG_SHELL=$as_shell |
---|
| 260 | as_have_required=yes |
---|
| 261 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
| 262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 263 | emulate sh |
---|
| 264 | NULLCMD=: |
---|
| 265 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 266 | # is contrary to our usage. Disable this feature. |
---|
| 267 | alias -g '${1+"$@"}'='"$@"' |
---|
| 268 | setopt NO_GLOB_SUBST |
---|
| 269 | else |
---|
| 270 | case `(set -o) 2>/dev/null` in |
---|
| 271 | *posix*) set -o posix ;; |
---|
| 272 | esac |
---|
| 273 | |
---|
| 274 | fi |
---|
| 275 | |
---|
| 276 | |
---|
| 277 | : |
---|
| 278 | (as_func_return () { |
---|
| 279 | (exit $1) |
---|
| 280 | } |
---|
| 281 | as_func_success () { |
---|
| 282 | as_func_return 0 |
---|
| 283 | } |
---|
| 284 | as_func_failure () { |
---|
| 285 | as_func_return 1 |
---|
| 286 | } |
---|
| 287 | as_func_ret_success () { |
---|
| 288 | return 0 |
---|
| 289 | } |
---|
| 290 | as_func_ret_failure () { |
---|
| 291 | return 1 |
---|
| 292 | } |
---|
| 293 | |
---|
| 294 | exitcode=0 |
---|
| 295 | if as_func_success; then |
---|
| 296 | : |
---|
| 297 | else |
---|
| 298 | exitcode=1 |
---|
| 299 | echo as_func_success failed. |
---|
| 300 | fi |
---|
| 301 | |
---|
| 302 | if as_func_failure; then |
---|
| 303 | exitcode=1 |
---|
| 304 | echo as_func_failure succeeded. |
---|
| 305 | fi |
---|
| 306 | |
---|
| 307 | if as_func_ret_success; then |
---|
| 308 | : |
---|
| 309 | else |
---|
| 310 | exitcode=1 |
---|
| 311 | echo as_func_ret_success failed. |
---|
| 312 | fi |
---|
| 313 | |
---|
| 314 | if as_func_ret_failure; then |
---|
| 315 | exitcode=1 |
---|
| 316 | echo as_func_ret_failure succeeded. |
---|
| 317 | fi |
---|
| 318 | |
---|
| 319 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
| 320 | : |
---|
| 321 | else |
---|
| 322 | exitcode=1 |
---|
| 323 | echo positional parameters were not saved. |
---|
| 324 | fi |
---|
| 325 | |
---|
| 326 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
| 327 | |
---|
| 328 | ( |
---|
| 329 | as_lineno_1=$LINENO |
---|
| 330 | as_lineno_2=$LINENO |
---|
| 331 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 332 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
| 333 | |
---|
| 334 | _ASEOF |
---|
| 335 | }; then |
---|
| 336 | break |
---|
| 337 | fi |
---|
| 338 | |
---|
| 339 | fi |
---|
| 340 | |
---|
| 341 | done |
---|
| 342 | |
---|
| 343 | if test "x$CONFIG_SHELL" != x; then |
---|
| 344 | for as_var in BASH_ENV ENV |
---|
| 345 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 346 | done |
---|
| 347 | export CONFIG_SHELL |
---|
| 348 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
| 349 | fi |
---|
| 350 | |
---|
| 351 | |
---|
| 352 | if test $as_have_required = no; then |
---|
| 353 | echo This script requires a shell more modern than all the |
---|
| 354 | echo shells that I found on your system. Please install a |
---|
| 355 | echo modern shell, or manually run the script under such a |
---|
| 356 | echo shell if you do have one. |
---|
| 357 | { (exit 1); exit 1; } |
---|
| 358 | fi |
---|
| 359 | |
---|
| 360 | |
---|
| 361 | fi |
---|
| 362 | |
---|
| 363 | fi |
---|
| 364 | |
---|
| 365 | |
---|
| 366 | |
---|
| 367 | (eval "as_func_return () { |
---|
| 368 | (exit \$1) |
---|
| 369 | } |
---|
| 370 | as_func_success () { |
---|
| 371 | as_func_return 0 |
---|
| 372 | } |
---|
| 373 | as_func_failure () { |
---|
| 374 | as_func_return 1 |
---|
| 375 | } |
---|
| 376 | as_func_ret_success () { |
---|
| 377 | return 0 |
---|
| 378 | } |
---|
| 379 | as_func_ret_failure () { |
---|
| 380 | return 1 |
---|
| 381 | } |
---|
| 382 | |
---|
| 383 | exitcode=0 |
---|
| 384 | if as_func_success; then |
---|
| 385 | : |
---|
| 386 | else |
---|
| 387 | exitcode=1 |
---|
| 388 | echo as_func_success failed. |
---|
| 389 | fi |
---|
| 390 | |
---|
| 391 | if as_func_failure; then |
---|
| 392 | exitcode=1 |
---|
| 393 | echo as_func_failure succeeded. |
---|
| 394 | fi |
---|
| 395 | |
---|
| 396 | if as_func_ret_success; then |
---|
| 397 | : |
---|
| 398 | else |
---|
| 399 | exitcode=1 |
---|
| 400 | echo as_func_ret_success failed. |
---|
| 401 | fi |
---|
| 402 | |
---|
| 403 | if as_func_ret_failure; then |
---|
| 404 | exitcode=1 |
---|
| 405 | echo as_func_ret_failure succeeded. |
---|
| 406 | fi |
---|
| 407 | |
---|
| 408 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 409 | : |
---|
| 410 | else |
---|
| 411 | exitcode=1 |
---|
| 412 | echo positional parameters were not saved. |
---|
| 413 | fi |
---|
| 414 | |
---|
| 415 | test \$exitcode = 0") || { |
---|
| 416 | echo No shell found that supports shell functions. |
---|
| 417 | echo Please tell autoconf@gnu.org about your system, |
---|
| 418 | echo including any error possibly output before this |
---|
| 419 | echo message |
---|
| 420 | } |
---|
| 421 | |
---|
| 422 | |
---|
| 423 | |
---|
| 424 | as_lineno_1=$LINENO |
---|
| 425 | as_lineno_2=$LINENO |
---|
| 426 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 427 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
| 428 | |
---|
| 429 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 430 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 431 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 432 | # does the real work. The second script uses 'N' to pair each |
---|
| 433 | # line-number line with the line containing $LINENO, and appends |
---|
| 434 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 435 | # case at line end. |
---|
| 436 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 437 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 438 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 439 | sed -n ' |
---|
| 440 | p |
---|
| 441 | /[$]LINENO/= |
---|
| 442 | ' <$as_myself | |
---|
| 443 | sed ' |
---|
| 444 | s/[$]LINENO.*/&-/ |
---|
| 445 | t lineno |
---|
| 446 | b |
---|
| 447 | :lineno |
---|
| 448 | N |
---|
| 449 | :loop |
---|
| 450 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 451 | t loop |
---|
| 452 | s/-\n.*// |
---|
| 453 | ' >$as_me.lineno && |
---|
| 454 | chmod +x "$as_me.lineno" || |
---|
| 455 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 456 | { (exit 1); exit 1; }; } |
---|
| 457 | |
---|
| 458 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 459 | # (the dirname of $[0] is not the place where we might find the |
---|
| 460 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 461 | . "./$as_me.lineno" |
---|
| 462 | # Exit status is that of the last command. |
---|
| 463 | exit |
---|
| 464 | } |
---|
| 465 | |
---|
| 466 | |
---|
| 467 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 468 | as_dirname=dirname |
---|
| 469 | else |
---|
| 470 | as_dirname=false |
---|
| 471 | fi |
---|
| 472 | |
---|
| 473 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 474 | case `echo -n x` in |
---|
| 475 | -n*) |
---|
| 476 | case `echo 'x\c'` in |
---|
| 477 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 478 | *) ECHO_C='\c';; |
---|
| 479 | esac;; |
---|
| 480 | *) |
---|
| 481 | ECHO_N='-n';; |
---|
| 482 | esac |
---|
| 483 | |
---|
| 484 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 485 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 486 | as_expr=expr |
---|
| 487 | else |
---|
| 488 | as_expr=false |
---|
| 489 | fi |
---|
| 490 | |
---|
| 491 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 492 | if test -d conf$$.dir; then |
---|
| 493 | rm -f conf$$.dir/conf$$.file |
---|
| 494 | else |
---|
| 495 | rm -f conf$$.dir |
---|
| 496 | mkdir conf$$.dir |
---|
| 497 | fi |
---|
| 498 | echo >conf$$.file |
---|
| 499 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 500 | as_ln_s='ln -s' |
---|
| 501 | # ... but there are two gotchas: |
---|
| 502 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 503 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 504 | # In both cases, we have to default to `cp -p'. |
---|
| 505 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 506 | as_ln_s='cp -p' |
---|
| 507 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 508 | as_ln_s=ln |
---|
| 509 | else |
---|
| 510 | as_ln_s='cp -p' |
---|
| 511 | fi |
---|
| 512 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 513 | rmdir conf$$.dir 2>/dev/null |
---|
| 514 | |
---|
| 515 | if mkdir -p . 2>/dev/null; then |
---|
| 516 | as_mkdir_p=: |
---|
| 517 | else |
---|
| 518 | test -d ./-p && rmdir ./-p |
---|
| 519 | as_mkdir_p=false |
---|
| 520 | fi |
---|
| 521 | |
---|
| 522 | if test -x / >/dev/null 2>&1; then |
---|
| 523 | as_test_x='test -x' |
---|
| 524 | else |
---|
| 525 | if ls -dL / >/dev/null 2>&1; then |
---|
| 526 | as_ls_L_option=L |
---|
| 527 | else |
---|
| 528 | as_ls_L_option= |
---|
| 529 | fi |
---|
| 530 | as_test_x=' |
---|
| 531 | eval sh -c '\'' |
---|
| 532 | if test -d "$1"; then |
---|
| 533 | test -d "$1/."; |
---|
| 534 | else |
---|
| 535 | case $1 in |
---|
| 536 | -*)set "./$1";; |
---|
| 537 | esac; |
---|
| 538 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
| 539 | ???[sx]*):;;*)false;;esac;fi |
---|
| 540 | '\'' sh |
---|
| 541 | ' |
---|
| 542 | fi |
---|
| 543 | as_executable_p=$as_test_x |
---|
| 544 | |
---|
| 545 | # Sed expression to map a string onto a valid CPP name. |
---|
| 546 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 547 | |
---|
| 548 | # Sed expression to map a string onto a valid variable name. |
---|
| 549 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 550 | |
---|
| 551 | |
---|
| 552 | |
---|
| 553 | exec 7<&0 </dev/null 6>&1 |
---|
| 554 | |
---|
| 555 | # Name of the host. |
---|
| 556 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 557 | # so uname gets run too. |
---|
| 558 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 559 | |
---|
| 560 | # |
---|
| 561 | # Initializations. |
---|
| 562 | # |
---|
| 563 | ac_default_prefix=/usr/local |
---|
| 564 | ac_clean_files= |
---|
| 565 | ac_config_libobj_dir=. |
---|
| 566 | LIBOBJS= |
---|
| 567 | cross_compiling=no |
---|
| 568 | subdirs= |
---|
| 569 | MFLAGS= |
---|
| 570 | MAKEFLAGS= |
---|
| 571 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 572 | |
---|
| 573 | # Identity of this package. |
---|
| 574 | PACKAGE_NAME= |
---|
| 575 | PACKAGE_TARNAME= |
---|
| 576 | PACKAGE_VERSION= |
---|
| 577 | PACKAGE_STRING= |
---|
| 578 | PACKAGE_BUGREPORT= |
---|
| 579 | |
---|
| 580 | ac_unique_file="eAthena" |
---|
| 581 | ac_unique_file="src/common/cbasetypes.h" |
---|
| 582 | # Factoring default headers for most tests. |
---|
| 583 | ac_includes_default="\ |
---|
| 584 | #include <stdio.h> |
---|
| 585 | #ifdef HAVE_SYS_TYPES_H |
---|
| 586 | # include <sys/types.h> |
---|
| 587 | #endif |
---|
| 588 | #ifdef HAVE_SYS_STAT_H |
---|
| 589 | # include <sys/stat.h> |
---|
| 590 | #endif |
---|
| 591 | #ifdef STDC_HEADERS |
---|
| 592 | # include <stdlib.h> |
---|
| 593 | # include <stddef.h> |
---|
| 594 | #else |
---|
| 595 | # ifdef HAVE_STDLIB_H |
---|
| 596 | # include <stdlib.h> |
---|
| 597 | # endif |
---|
| 598 | #endif |
---|
| 599 | #ifdef HAVE_STRING_H |
---|
| 600 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
| 601 | # include <memory.h> |
---|
| 602 | # endif |
---|
| 603 | # include <string.h> |
---|
| 604 | #endif |
---|
| 605 | #ifdef HAVE_STRINGS_H |
---|
| 606 | # include <strings.h> |
---|
| 607 | #endif |
---|
| 608 | #ifdef HAVE_INTTYPES_H |
---|
| 609 | # include <inttypes.h> |
---|
| 610 | #endif |
---|
| 611 | #ifdef HAVE_STDINT_H |
---|
| 612 | # include <stdint.h> |
---|
| 613 | #endif |
---|
| 614 | #ifdef HAVE_UNISTD_H |
---|
| 615 | # include <unistd.h> |
---|
| 616 | #endif" |
---|
| 617 | |
---|
| 618 | ac_subst_vars='SHELL |
---|
| 619 | PATH_SEPARATOR |
---|
| 620 | PACKAGE_NAME |
---|
| 621 | PACKAGE_TARNAME |
---|
| 622 | PACKAGE_VERSION |
---|
| 623 | PACKAGE_STRING |
---|
| 624 | PACKAGE_BUGREPORT |
---|
| 625 | exec_prefix |
---|
| 626 | prefix |
---|
| 627 | program_transform_name |
---|
| 628 | bindir |
---|
| 629 | sbindir |
---|
| 630 | libexecdir |
---|
| 631 | datarootdir |
---|
| 632 | datadir |
---|
| 633 | sysconfdir |
---|
| 634 | sharedstatedir |
---|
| 635 | localstatedir |
---|
| 636 | includedir |
---|
| 637 | oldincludedir |
---|
| 638 | docdir |
---|
| 639 | infodir |
---|
| 640 | htmldir |
---|
| 641 | dvidir |
---|
| 642 | pdfdir |
---|
| 643 | psdir |
---|
| 644 | libdir |
---|
| 645 | localedir |
---|
| 646 | mandir |
---|
| 647 | DEFS |
---|
| 648 | ECHO_C |
---|
| 649 | ECHO_N |
---|
| 650 | ECHO_T |
---|
| 651 | LIBS |
---|
| 652 | build_alias |
---|
| 653 | host_alias |
---|
| 654 | target_alias |
---|
| 655 | SET_MAKE |
---|
| 656 | CC |
---|
| 657 | CFLAGS |
---|
| 658 | LDFLAGS |
---|
| 659 | CPPFLAGS |
---|
| 660 | ac_ct_CC |
---|
| 661 | EXEEXT |
---|
| 662 | OBJEXT |
---|
| 663 | CPP |
---|
| 664 | GREP |
---|
| 665 | EGREP |
---|
| 666 | MYSQL_CONFIG_HOME |
---|
| 667 | HAVE_MYSQL |
---|
| 668 | MYSQL_VERSION |
---|
| 669 | MYSQL_CFLAGS |
---|
| 670 | MYSQL_LIBS |
---|
| 671 | HAVE_PCRE |
---|
| 672 | PCRE_LIBS |
---|
| 673 | PCRE_CFLAGS |
---|
| 674 | DLLEXT |
---|
| 675 | LIBOBJS |
---|
| 676 | LTLIBOBJS' |
---|
| 677 | ac_subst_files='' |
---|
| 678 | ac_precious_vars='build_alias |
---|
| 679 | host_alias |
---|
| 680 | target_alias |
---|
| 681 | CC |
---|
| 682 | CFLAGS |
---|
| 683 | LDFLAGS |
---|
| 684 | LIBS |
---|
| 685 | CPPFLAGS |
---|
| 686 | CPP' |
---|
| 687 | |
---|
| 688 | |
---|
| 689 | # Initialize some variables set by options. |
---|
| 690 | ac_init_help= |
---|
| 691 | ac_init_version=false |
---|
| 692 | # The variables have the same names as the options, with |
---|
| 693 | # dashes changed to underlines. |
---|
| 694 | cache_file=/dev/null |
---|
| 695 | exec_prefix=NONE |
---|
| 696 | no_create= |
---|
| 697 | no_recursion= |
---|
| 698 | prefix=NONE |
---|
| 699 | program_prefix=NONE |
---|
| 700 | program_suffix=NONE |
---|
| 701 | program_transform_name=s,x,x, |
---|
| 702 | silent= |
---|
| 703 | site= |
---|
| 704 | srcdir= |
---|
| 705 | verbose= |
---|
| 706 | x_includes=NONE |
---|
| 707 | x_libraries=NONE |
---|
| 708 | |
---|
| 709 | # Installation directory options. |
---|
| 710 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 711 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 712 | # by default will actually change. |
---|
| 713 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 714 | # (The list follows the same order as the GNU Coding Standards.) |
---|
| 715 | bindir='${exec_prefix}/bin' |
---|
| 716 | sbindir='${exec_prefix}/sbin' |
---|
| 717 | libexecdir='${exec_prefix}/libexec' |
---|
| 718 | datarootdir='${prefix}/share' |
---|
| 719 | datadir='${datarootdir}' |
---|
| 720 | sysconfdir='${prefix}/etc' |
---|
| 721 | sharedstatedir='${prefix}/com' |
---|
| 722 | localstatedir='${prefix}/var' |
---|
| 723 | includedir='${prefix}/include' |
---|
| 724 | oldincludedir='/usr/include' |
---|
| 725 | docdir='${datarootdir}/doc/${PACKAGE}' |
---|
| 726 | infodir='${datarootdir}/info' |
---|
| 727 | htmldir='${docdir}' |
---|
| 728 | dvidir='${docdir}' |
---|
| 729 | pdfdir='${docdir}' |
---|
| 730 | psdir='${docdir}' |
---|
| 731 | libdir='${exec_prefix}/lib' |
---|
| 732 | localedir='${datarootdir}/locale' |
---|
| 733 | mandir='${datarootdir}/man' |
---|
| 734 | |
---|
| 735 | ac_prev= |
---|
| 736 | ac_dashdash= |
---|
| 737 | for ac_option |
---|
| 738 | do |
---|
| 739 | # If the previous option needs an argument, assign it. |
---|
| 740 | if test -n "$ac_prev"; then |
---|
| 741 | eval $ac_prev=\$ac_option |
---|
| 742 | ac_prev= |
---|
| 743 | continue |
---|
| 744 | fi |
---|
| 745 | |
---|
| 746 | case $ac_option in |
---|
| 747 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 748 | *) ac_optarg=yes ;; |
---|
| 749 | esac |
---|
| 750 | |
---|
| 751 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 752 | |
---|
| 753 | case $ac_dashdash$ac_option in |
---|
| 754 | --) |
---|
| 755 | ac_dashdash=yes ;; |
---|
| 756 | |
---|
| 757 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 758 | ac_prev=bindir ;; |
---|
| 759 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 760 | bindir=$ac_optarg ;; |
---|
| 761 | |
---|
| 762 | -build | --build | --buil | --bui | --bu) |
---|
| 763 | ac_prev=build_alias ;; |
---|
| 764 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 765 | build_alias=$ac_optarg ;; |
---|
| 766 | |
---|
| 767 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 768 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 769 | ac_prev=cache_file ;; |
---|
| 770 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 771 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 772 | cache_file=$ac_optarg ;; |
---|
| 773 | |
---|
| 774 | --config-cache | -C) |
---|
| 775 | cache_file=config.cache ;; |
---|
| 776 | |
---|
| 777 | -datadir | --datadir | --datadi | --datad) |
---|
| 778 | ac_prev=datadir ;; |
---|
| 779 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
| 780 | datadir=$ac_optarg ;; |
---|
| 781 | |
---|
| 782 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 783 | | --dataroo | --dataro | --datar) |
---|
| 784 | ac_prev=datarootdir ;; |
---|
| 785 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 786 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 787 | datarootdir=$ac_optarg ;; |
---|
| 788 | |
---|
| 789 | -disable-* | --disable-*) |
---|
| 790 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 791 | # Reject names that are not valid shell variable names. |
---|
| 792 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 793 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 794 | { (exit 1); exit 1; }; } |
---|
| 795 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
| 796 | eval enable_$ac_feature=no ;; |
---|
| 797 | |
---|
| 798 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 799 | ac_prev=docdir ;; |
---|
| 800 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 801 | docdir=$ac_optarg ;; |
---|
| 802 | |
---|
| 803 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 804 | ac_prev=dvidir ;; |
---|
| 805 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 806 | dvidir=$ac_optarg ;; |
---|
| 807 | |
---|
| 808 | -enable-* | --enable-*) |
---|
| 809 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 810 | # Reject names that are not valid shell variable names. |
---|
| 811 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 812 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 813 | { (exit 1); exit 1; }; } |
---|
| 814 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
| 815 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
| 816 | |
---|
| 817 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 818 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 819 | | --exec | --exe | --ex) |
---|
| 820 | ac_prev=exec_prefix ;; |
---|
| 821 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 822 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 823 | | --exec=* | --exe=* | --ex=*) |
---|
| 824 | exec_prefix=$ac_optarg ;; |
---|
| 825 | |
---|
| 826 | -gas | --gas | --ga | --g) |
---|
| 827 | # Obsolete; use --with-gas. |
---|
| 828 | with_gas=yes ;; |
---|
| 829 | |
---|
| 830 | -help | --help | --hel | --he | -h) |
---|
| 831 | ac_init_help=long ;; |
---|
| 832 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 833 | ac_init_help=recursive ;; |
---|
| 834 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 835 | ac_init_help=short ;; |
---|
| 836 | |
---|
| 837 | -host | --host | --hos | --ho) |
---|
| 838 | ac_prev=host_alias ;; |
---|
| 839 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 840 | host_alias=$ac_optarg ;; |
---|
| 841 | |
---|
| 842 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 843 | ac_prev=htmldir ;; |
---|
| 844 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 845 | | --ht=*) |
---|
| 846 | htmldir=$ac_optarg ;; |
---|
| 847 | |
---|
| 848 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 849 | | --includ | --inclu | --incl | --inc) |
---|
| 850 | ac_prev=includedir ;; |
---|
| 851 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 852 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 853 | includedir=$ac_optarg ;; |
---|
| 854 | |
---|
| 855 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 856 | ac_prev=infodir ;; |
---|
| 857 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 858 | infodir=$ac_optarg ;; |
---|
| 859 | |
---|
| 860 | -libdir | --libdir | --libdi | --libd) |
---|
| 861 | ac_prev=libdir ;; |
---|
| 862 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 863 | libdir=$ac_optarg ;; |
---|
| 864 | |
---|
| 865 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 866 | | --libexe | --libex | --libe) |
---|
| 867 | ac_prev=libexecdir ;; |
---|
| 868 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 869 | | --libexe=* | --libex=* | --libe=*) |
---|
| 870 | libexecdir=$ac_optarg ;; |
---|
| 871 | |
---|
| 872 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 873 | ac_prev=localedir ;; |
---|
| 874 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 875 | localedir=$ac_optarg ;; |
---|
| 876 | |
---|
| 877 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 878 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
| 879 | ac_prev=localstatedir ;; |
---|
| 880 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 881 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
| 882 | localstatedir=$ac_optarg ;; |
---|
| 883 | |
---|
| 884 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 885 | ac_prev=mandir ;; |
---|
| 886 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 887 | mandir=$ac_optarg ;; |
---|
| 888 | |
---|
| 889 | -nfp | --nfp | --nf) |
---|
| 890 | # Obsolete; use --without-fp. |
---|
| 891 | with_fp=no ;; |
---|
| 892 | |
---|
| 893 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 894 | | --no-cr | --no-c | -n) |
---|
| 895 | no_create=yes ;; |
---|
| 896 | |
---|
| 897 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 898 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 899 | no_recursion=yes ;; |
---|
| 900 | |
---|
| 901 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 902 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 903 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 904 | ac_prev=oldincludedir ;; |
---|
| 905 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 906 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 907 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 908 | oldincludedir=$ac_optarg ;; |
---|
| 909 | |
---|
| 910 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 911 | ac_prev=prefix ;; |
---|
| 912 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 913 | prefix=$ac_optarg ;; |
---|
| 914 | |
---|
| 915 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 916 | | --program-pre | --program-pr | --program-p) |
---|
| 917 | ac_prev=program_prefix ;; |
---|
| 918 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 919 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 920 | program_prefix=$ac_optarg ;; |
---|
| 921 | |
---|
| 922 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 923 | | --program-suf | --program-su | --program-s) |
---|
| 924 | ac_prev=program_suffix ;; |
---|
| 925 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 926 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 927 | program_suffix=$ac_optarg ;; |
---|
| 928 | |
---|
| 929 | -program-transform-name | --program-transform-name \ |
---|
| 930 | | --program-transform-nam | --program-transform-na \ |
---|
| 931 | | --program-transform-n | --program-transform- \ |
---|
| 932 | | --program-transform | --program-transfor \ |
---|
| 933 | | --program-transfo | --program-transf \ |
---|
| 934 | | --program-trans | --program-tran \ |
---|
| 935 | | --progr-tra | --program-tr | --program-t) |
---|
| 936 | ac_prev=program_transform_name ;; |
---|
| 937 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 938 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 939 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 940 | | --program-transform=* | --program-transfor=* \ |
---|
| 941 | | --program-transfo=* | --program-transf=* \ |
---|
| 942 | | --program-trans=* | --program-tran=* \ |
---|
| 943 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 944 | program_transform_name=$ac_optarg ;; |
---|
| 945 | |
---|
| 946 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 947 | ac_prev=pdfdir ;; |
---|
| 948 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 949 | pdfdir=$ac_optarg ;; |
---|
| 950 | |
---|
| 951 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 952 | ac_prev=psdir ;; |
---|
| 953 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 954 | psdir=$ac_optarg ;; |
---|
| 955 | |
---|
| 956 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 957 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 958 | silent=yes ;; |
---|
| 959 | |
---|
| 960 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 961 | ac_prev=sbindir ;; |
---|
| 962 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 963 | | --sbi=* | --sb=*) |
---|
| 964 | sbindir=$ac_optarg ;; |
---|
| 965 | |
---|
| 966 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 967 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 968 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 969 | | --sha | --sh) |
---|
| 970 | ac_prev=sharedstatedir ;; |
---|
| 971 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 972 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 973 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 974 | | --sha=* | --sh=*) |
---|
| 975 | sharedstatedir=$ac_optarg ;; |
---|
| 976 | |
---|
| 977 | -site | --site | --sit) |
---|
| 978 | ac_prev=site ;; |
---|
| 979 | -site=* | --site=* | --sit=*) |
---|
| 980 | site=$ac_optarg ;; |
---|
| 981 | |
---|
| 982 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 983 | ac_prev=srcdir ;; |
---|
| 984 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 985 | srcdir=$ac_optarg ;; |
---|
| 986 | |
---|
| 987 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 988 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 989 | ac_prev=sysconfdir ;; |
---|
| 990 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 991 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 992 | sysconfdir=$ac_optarg ;; |
---|
| 993 | |
---|
| 994 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 995 | ac_prev=target_alias ;; |
---|
| 996 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 997 | target_alias=$ac_optarg ;; |
---|
| 998 | |
---|
| 999 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1000 | verbose=yes ;; |
---|
| 1001 | |
---|
| 1002 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1003 | ac_init_version=: ;; |
---|
| 1004 | |
---|
| 1005 | -with-* | --with-*) |
---|
| 1006 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 1007 | # Reject names that are not valid shell variable names. |
---|
| 1008 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1009 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 1010 | { (exit 1); exit 1; }; } |
---|
| 1011 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
| 1012 | eval with_$ac_package=\$ac_optarg ;; |
---|
| 1013 | |
---|
| 1014 | -without-* | --without-*) |
---|
| 1015 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 1016 | # Reject names that are not valid shell variable names. |
---|
| 1017 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1018 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 1019 | { (exit 1); exit 1; }; } |
---|
| 1020 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
| 1021 | eval with_$ac_package=no ;; |
---|
| 1022 | |
---|
| 1023 | --x) |
---|
| 1024 | # Obsolete; use --with-x. |
---|
| 1025 | with_x=yes ;; |
---|
| 1026 | |
---|
| 1027 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1028 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1029 | ac_prev=x_includes ;; |
---|
| 1030 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1031 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1032 | x_includes=$ac_optarg ;; |
---|
| 1033 | |
---|
| 1034 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1035 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1036 | ac_prev=x_libraries ;; |
---|
| 1037 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1038 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1039 | x_libraries=$ac_optarg ;; |
---|
| 1040 | |
---|
| 1041 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 1042 | Try \`$0 --help' for more information." >&2 |
---|
| 1043 | { (exit 1); exit 1; }; } |
---|
| 1044 | ;; |
---|
| 1045 | |
---|
| 1046 | *=*) |
---|
| 1047 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1048 | # Reject names that are not valid shell variable names. |
---|
| 1049 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 1050 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 1051 | { (exit 1); exit 1; }; } |
---|
| 1052 | eval $ac_envvar=\$ac_optarg |
---|
| 1053 | export $ac_envvar ;; |
---|
| 1054 | |
---|
| 1055 | *) |
---|
| 1056 | # FIXME: should be removed in autoconf 3.0. |
---|
| 1057 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 1058 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1059 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1060 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 1061 | ;; |
---|
| 1062 | |
---|
| 1063 | esac |
---|
| 1064 | done |
---|
| 1065 | |
---|
| 1066 | if test -n "$ac_prev"; then |
---|
| 1067 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 1068 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 1069 | { (exit 1); exit 1; }; } |
---|
| 1070 | fi |
---|
| 1071 | |
---|
| 1072 | # Be sure to have absolute directory names. |
---|
| 1073 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1074 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1075 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1076 | libdir localedir mandir |
---|
| 1077 | do |
---|
| 1078 | eval ac_val=\$$ac_var |
---|
| 1079 | case $ac_val in |
---|
| 1080 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1081 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
| 1082 | esac |
---|
| 1083 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 1084 | { (exit 1); exit 1; }; } |
---|
| 1085 | done |
---|
| 1086 | |
---|
| 1087 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1088 | # used to hold the argument of --host etc. |
---|
| 1089 | # FIXME: To remove some day. |
---|
| 1090 | build=$build_alias |
---|
| 1091 | host=$host_alias |
---|
| 1092 | target=$target_alias |
---|
| 1093 | |
---|
| 1094 | # FIXME: To remove some day. |
---|
| 1095 | if test "x$host_alias" != x; then |
---|
| 1096 | if test "x$build_alias" = x; then |
---|
| 1097 | cross_compiling=maybe |
---|
| 1098 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 1099 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 1100 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1101 | cross_compiling=yes |
---|
| 1102 | fi |
---|
| 1103 | fi |
---|
| 1104 | |
---|
| 1105 | ac_tool_prefix= |
---|
| 1106 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1107 | |
---|
| 1108 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1109 | |
---|
| 1110 | |
---|
| 1111 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1112 | ac_ls_di=`ls -di .` && |
---|
| 1113 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1114 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
| 1115 | { (exit 1); exit 1; }; } |
---|
| 1116 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1117 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
| 1118 | { (exit 1); exit 1; }; } |
---|
| 1119 | |
---|
| 1120 | |
---|
| 1121 | # Find the source files, if location was not specified. |
---|
| 1122 | if test -z "$srcdir"; then |
---|
| 1123 | ac_srcdir_defaulted=yes |
---|
| 1124 | # Try the directory containing this script, then the parent directory. |
---|
| 1125 | ac_confdir=`$as_dirname -- "$0" || |
---|
| 1126 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1127 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 1128 | X"$0" : 'X\(//\)$' \| \ |
---|
| 1129 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1130 | echo X"$0" | |
---|
| 1131 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1132 | s//\1/ |
---|
| 1133 | q |
---|
| 1134 | } |
---|
| 1135 | /^X\(\/\/\)[^/].*/{ |
---|
| 1136 | s//\1/ |
---|
| 1137 | q |
---|
| 1138 | } |
---|
| 1139 | /^X\(\/\/\)$/{ |
---|
| 1140 | s//\1/ |
---|
| 1141 | q |
---|
| 1142 | } |
---|
| 1143 | /^X\(\/\).*/{ |
---|
| 1144 | s//\1/ |
---|
| 1145 | q |
---|
| 1146 | } |
---|
| 1147 | s/.*/./; q'` |
---|
| 1148 | srcdir=$ac_confdir |
---|
| 1149 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1150 | srcdir=.. |
---|
| 1151 | fi |
---|
| 1152 | else |
---|
| 1153 | ac_srcdir_defaulted=no |
---|
| 1154 | fi |
---|
| 1155 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1156 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1157 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 1158 | { (exit 1); exit 1; }; } |
---|
| 1159 | fi |
---|
| 1160 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1161 | ac_abs_confdir=`( |
---|
| 1162 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
| 1163 | { (exit 1); exit 1; }; } |
---|
| 1164 | pwd)` |
---|
| 1165 | # When building in place, set srcdir=. |
---|
| 1166 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1167 | srcdir=. |
---|
| 1168 | fi |
---|
| 1169 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1170 | # Double slashes in file names in object file debugging info |
---|
| 1171 | # mess up M-x gdb in Emacs. |
---|
| 1172 | case $srcdir in |
---|
| 1173 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1174 | esac |
---|
| 1175 | for ac_var in $ac_precious_vars; do |
---|
| 1176 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1177 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1178 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1179 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1180 | done |
---|
| 1181 | |
---|
| 1182 | # |
---|
| 1183 | # Report the --help message. |
---|
| 1184 | # |
---|
| 1185 | if test "$ac_init_help" = "long"; then |
---|
| 1186 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1187 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1188 | cat <<_ACEOF |
---|
| 1189 | \`configure' configures this package to adapt to many kinds of systems. |
---|
| 1190 | |
---|
| 1191 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1192 | |
---|
| 1193 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1194 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1195 | |
---|
| 1196 | Defaults for the options are specified in brackets. |
---|
| 1197 | |
---|
| 1198 | Configuration: |
---|
| 1199 | -h, --help display this help and exit |
---|
| 1200 | --help=short display options specific to this package |
---|
| 1201 | --help=recursive display the short help of all the included packages |
---|
| 1202 | -V, --version display version information and exit |
---|
| 1203 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 1204 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1205 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1206 | -n, --no-create do not create output files |
---|
| 1207 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1208 | |
---|
| 1209 | Installation directories: |
---|
| 1210 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1211 | [$ac_default_prefix] |
---|
| 1212 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1213 | [PREFIX] |
---|
| 1214 | |
---|
| 1215 | By default, \`make install' will install all the files in |
---|
| 1216 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1217 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1218 | for instance \`--prefix=\$HOME'. |
---|
| 1219 | |
---|
| 1220 | For better control, use the options below. |
---|
| 1221 | |
---|
| 1222 | Fine tuning of the installation directories: |
---|
| 1223 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1224 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1225 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1226 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1227 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1228 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1229 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1230 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1231 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1232 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1233 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1234 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1235 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1236 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1237 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
---|
| 1238 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1239 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1240 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1241 | --psdir=DIR ps documentation [DOCDIR] |
---|
| 1242 | _ACEOF |
---|
| 1243 | |
---|
| 1244 | cat <<\_ACEOF |
---|
| 1245 | _ACEOF |
---|
| 1246 | fi |
---|
| 1247 | |
---|
| 1248 | if test -n "$ac_init_help"; then |
---|
| 1249 | |
---|
| 1250 | cat <<\_ACEOF |
---|
| 1251 | |
---|
| 1252 | Optional Features: |
---|
| 1253 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 1254 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 1255 | --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc, |
---|
| 1256 | gcollect, bcheck (defaults to builtin) |
---|
| 1257 | --enable-packetver=ARG Sets the PACKETVER define of the map-server. (see |
---|
| 1258 | src/map/clif.h) |
---|
| 1259 | --enable-mapregsql Makes map-wide script variables be saved to SQL |
---|
| 1260 | instead of TXT files in the sql map-server. |
---|
| 1261 | (disabled by default) |
---|
| 1262 | --enable-debug Compiles in debug mode. (disabled by default) |
---|
| 1263 | |
---|
| 1264 | Optional Packages: |
---|
| 1265 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1266 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 1267 | --with-mysql[=ARG] use MySQL client library, optionally specify the |
---|
| 1268 | path to the mysql_config executable (by default |
---|
| 1269 | mysql is used if found) |
---|
| 1270 | --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using |
---|
| 1271 | "mysql_config --include") |
---|
| 1272 | --with-MYSQL_LIBS=ARG specify MYSQL_LIBS manually (instead of using |
---|
| 1273 | "mysql_config --libs") |
---|
| 1274 | --with-pcre[=ARG] use PCRE library, optionally specify the full path |
---|
| 1275 | of pcre installation directory (by default pcre is |
---|
| 1276 | used if found) |
---|
| 1277 | --with-zlib=DIR root directory path of zlib installation (defaults |
---|
| 1278 | to /usr/local or /usr if not found in /usr/local). |
---|
| 1279 | Assumes that the header files are in DIR/include and |
---|
| 1280 | the library files are in DIR/lib |
---|
| 1281 | |
---|
| 1282 | Some influential environment variables: |
---|
| 1283 | CC C compiler command |
---|
| 1284 | CFLAGS C compiler flags |
---|
| 1285 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1286 | nonstandard directory <lib dir> |
---|
| 1287 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 1288 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
| 1289 | you have headers in a nonstandard directory <include dir> |
---|
| 1290 | CPP C preprocessor |
---|
| 1291 | |
---|
| 1292 | Use these variables to override the choices made by `configure' or to help |
---|
| 1293 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1294 | |
---|
| 1295 | _ACEOF |
---|
| 1296 | ac_status=$? |
---|
| 1297 | fi |
---|
| 1298 | |
---|
| 1299 | if test "$ac_init_help" = "recursive"; then |
---|
| 1300 | # If there are subdirs, report their specific --help. |
---|
| 1301 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 1302 | test -d "$ac_dir" || continue |
---|
| 1303 | ac_builddir=. |
---|
| 1304 | |
---|
| 1305 | case "$ac_dir" in |
---|
| 1306 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1307 | *) |
---|
| 1308 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 1309 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1310 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
| 1311 | case $ac_top_builddir_sub in |
---|
| 1312 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1313 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1314 | esac ;; |
---|
| 1315 | esac |
---|
| 1316 | ac_abs_top_builddir=$ac_pwd |
---|
| 1317 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1318 | # for backward compatibility: |
---|
| 1319 | ac_top_builddir=$ac_top_build_prefix |
---|
| 1320 | |
---|
| 1321 | case $srcdir in |
---|
| 1322 | .) # We are building in place. |
---|
| 1323 | ac_srcdir=. |
---|
| 1324 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1325 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1326 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 1327 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 1328 | ac_top_srcdir=$srcdir |
---|
| 1329 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1330 | *) # Relative name. |
---|
| 1331 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1332 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1333 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 1334 | esac |
---|
| 1335 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 1336 | |
---|
| 1337 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1338 | # Check for guested configure. |
---|
| 1339 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1340 | echo && |
---|
| 1341 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1342 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1343 | echo && |
---|
| 1344 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
| 1345 | else |
---|
| 1346 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 1347 | fi || ac_status=$? |
---|
| 1348 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
| 1349 | done |
---|
| 1350 | fi |
---|
| 1351 | |
---|
| 1352 | test -n "$ac_init_help" && exit $ac_status |
---|
| 1353 | if $ac_init_version; then |
---|
| 1354 | cat <<\_ACEOF |
---|
| 1355 | configure |
---|
| 1356 | generated by GNU Autoconf 2.61 |
---|
| 1357 | |
---|
| 1358 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 1359 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
| 1360 | This configure script is free software; the Free Software Foundation |
---|
| 1361 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1362 | _ACEOF |
---|
| 1363 | exit |
---|
| 1364 | fi |
---|
| 1365 | cat >config.log <<_ACEOF |
---|
| 1366 | This file contains any messages produced by compilers while |
---|
| 1367 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1368 | |
---|
| 1369 | It was created by $as_me, which was |
---|
| 1370 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
| 1371 | |
---|
| 1372 | $ $0 $@ |
---|
| 1373 | |
---|
| 1374 | _ACEOF |
---|
| 1375 | exec 5>>config.log |
---|
| 1376 | { |
---|
| 1377 | cat <<_ASUNAME |
---|
| 1378 | ## --------- ## |
---|
| 1379 | ## Platform. ## |
---|
| 1380 | ## --------- ## |
---|
| 1381 | |
---|
| 1382 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1383 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1384 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1385 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1386 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1387 | |
---|
| 1388 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1389 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1390 | |
---|
| 1391 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1392 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1393 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1394 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
| 1395 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1396 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1397 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1398 | |
---|
| 1399 | _ASUNAME |
---|
| 1400 | |
---|
| 1401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1402 | for as_dir in $PATH |
---|
| 1403 | do |
---|
| 1404 | IFS=$as_save_IFS |
---|
| 1405 | test -z "$as_dir" && as_dir=. |
---|
| 1406 | echo "PATH: $as_dir" |
---|
| 1407 | done |
---|
| 1408 | IFS=$as_save_IFS |
---|
| 1409 | |
---|
| 1410 | } >&5 |
---|
| 1411 | |
---|
| 1412 | cat >&5 <<_ACEOF |
---|
| 1413 | |
---|
| 1414 | |
---|
| 1415 | ## ----------- ## |
---|
| 1416 | ## Core tests. ## |
---|
| 1417 | ## ----------- ## |
---|
| 1418 | |
---|
| 1419 | _ACEOF |
---|
| 1420 | |
---|
| 1421 | |
---|
| 1422 | # Keep a trace of the command line. |
---|
| 1423 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1424 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1425 | # Also quote any args containing shell meta-characters. |
---|
| 1426 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1427 | ac_configure_args= |
---|
| 1428 | ac_configure_args0= |
---|
| 1429 | ac_configure_args1= |
---|
| 1430 | ac_must_keep_next=false |
---|
| 1431 | for ac_pass in 1 2 |
---|
| 1432 | do |
---|
| 1433 | for ac_arg |
---|
| 1434 | do |
---|
| 1435 | case $ac_arg in |
---|
| 1436 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1437 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1438 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1439 | continue ;; |
---|
| 1440 | *\'*) |
---|
| 1441 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1442 | esac |
---|
| 1443 | case $ac_pass in |
---|
| 1444 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1445 | 2) |
---|
| 1446 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1447 | if test $ac_must_keep_next = true; then |
---|
| 1448 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1449 | else |
---|
| 1450 | case $ac_arg in |
---|
| 1451 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1452 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1453 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1454 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1455 | case "$ac_configure_args0 " in |
---|
| 1456 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1457 | esac |
---|
| 1458 | ;; |
---|
| 1459 | -* ) ac_must_keep_next=true ;; |
---|
| 1460 | esac |
---|
| 1461 | fi |
---|
| 1462 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
| 1463 | ;; |
---|
| 1464 | esac |
---|
| 1465 | done |
---|
| 1466 | done |
---|
| 1467 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1468 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1469 | |
---|
| 1470 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1471 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1472 | # would cause problems or look ugly. |
---|
| 1473 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 1474 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
| 1475 | trap 'exit_status=$? |
---|
| 1476 | # Save into config.log some information that might help in debugging. |
---|
| 1477 | { |
---|
| 1478 | echo |
---|
| 1479 | |
---|
| 1480 | cat <<\_ASBOX |
---|
| 1481 | ## ---------------- ## |
---|
| 1482 | ## Cache variables. ## |
---|
| 1483 | ## ---------------- ## |
---|
| 1484 | _ASBOX |
---|
| 1485 | echo |
---|
| 1486 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1487 | ( |
---|
| 1488 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 1489 | eval ac_val=\$$ac_var |
---|
| 1490 | case $ac_val in #( |
---|
| 1491 | *${as_nl}*) |
---|
| 1492 | case $ac_var in #( |
---|
| 1493 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
| 1494 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
| 1495 | esac |
---|
| 1496 | case $ac_var in #( |
---|
| 1497 | _ | IFS | as_nl) ;; #( |
---|
| 1498 | *) $as_unset $ac_var ;; |
---|
| 1499 | esac ;; |
---|
| 1500 | esac |
---|
| 1501 | done |
---|
| 1502 | (set) 2>&1 | |
---|
| 1503 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 1504 | *${as_nl}ac_space=\ *) |
---|
| 1505 | sed -n \ |
---|
| 1506 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 1507 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 1508 | ;; #( |
---|
| 1509 | *) |
---|
| 1510 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 1511 | ;; |
---|
| 1512 | esac | |
---|
| 1513 | sort |
---|
| 1514 | ) |
---|
| 1515 | echo |
---|
| 1516 | |
---|
| 1517 | cat <<\_ASBOX |
---|
| 1518 | ## ----------------- ## |
---|
| 1519 | ## Output variables. ## |
---|
| 1520 | ## ----------------- ## |
---|
| 1521 | _ASBOX |
---|
| 1522 | echo |
---|
| 1523 | for ac_var in $ac_subst_vars |
---|
| 1524 | do |
---|
| 1525 | eval ac_val=\$$ac_var |
---|
| 1526 | case $ac_val in |
---|
| 1527 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1528 | esac |
---|
| 1529 | echo "$ac_var='\''$ac_val'\''" |
---|
| 1530 | done | sort |
---|
| 1531 | echo |
---|
| 1532 | |
---|
| 1533 | if test -n "$ac_subst_files"; then |
---|
| 1534 | cat <<\_ASBOX |
---|
| 1535 | ## ------------------- ## |
---|
| 1536 | ## File substitutions. ## |
---|
| 1537 | ## ------------------- ## |
---|
| 1538 | _ASBOX |
---|
| 1539 | echo |
---|
| 1540 | for ac_var in $ac_subst_files |
---|
| 1541 | do |
---|
| 1542 | eval ac_val=\$$ac_var |
---|
| 1543 | case $ac_val in |
---|
| 1544 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1545 | esac |
---|
| 1546 | echo "$ac_var='\''$ac_val'\''" |
---|
| 1547 | done | sort |
---|
| 1548 | echo |
---|
| 1549 | fi |
---|
| 1550 | |
---|
| 1551 | if test -s confdefs.h; then |
---|
| 1552 | cat <<\_ASBOX |
---|
| 1553 | ## ----------- ## |
---|
| 1554 | ## confdefs.h. ## |
---|
| 1555 | ## ----------- ## |
---|
| 1556 | _ASBOX |
---|
| 1557 | echo |
---|
| 1558 | cat confdefs.h |
---|
| 1559 | echo |
---|
| 1560 | fi |
---|
| 1561 | test "$ac_signal" != 0 && |
---|
| 1562 | echo "$as_me: caught signal $ac_signal" |
---|
| 1563 | echo "$as_me: exit $exit_status" |
---|
| 1564 | } >&5 |
---|
| 1565 | rm -f core *.core core.conftest.* && |
---|
| 1566 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1567 | exit $exit_status |
---|
| 1568 | ' 0 |
---|
| 1569 | for ac_signal in 1 2 13 15; do |
---|
| 1570 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1571 | done |
---|
| 1572 | ac_signal=0 |
---|
| 1573 | |
---|
| 1574 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1575 | rm -f -r conftest* confdefs.h |
---|
| 1576 | |
---|
| 1577 | # Predefined preprocessor variables. |
---|
| 1578 | |
---|
| 1579 | cat >>confdefs.h <<_ACEOF |
---|
| 1580 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1581 | _ACEOF |
---|
| 1582 | |
---|
| 1583 | |
---|
| 1584 | cat >>confdefs.h <<_ACEOF |
---|
| 1585 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1586 | _ACEOF |
---|
| 1587 | |
---|
| 1588 | |
---|
| 1589 | cat >>confdefs.h <<_ACEOF |
---|
| 1590 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1591 | _ACEOF |
---|
| 1592 | |
---|
| 1593 | |
---|
| 1594 | cat >>confdefs.h <<_ACEOF |
---|
| 1595 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1596 | _ACEOF |
---|
| 1597 | |
---|
| 1598 | |
---|
| 1599 | cat >>confdefs.h <<_ACEOF |
---|
| 1600 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1601 | _ACEOF |
---|
| 1602 | |
---|
| 1603 | |
---|
| 1604 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1605 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1606 | if test -n "$CONFIG_SITE"; then |
---|
| 1607 | set x "$CONFIG_SITE" |
---|
| 1608 | elif test "x$prefix" != xNONE; then |
---|
| 1609 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
| 1610 | else |
---|
| 1611 | set x "$ac_default_prefix/share/config.site" \ |
---|
| 1612 | "$ac_default_prefix/etc/config.site" |
---|
| 1613 | fi |
---|
| 1614 | shift |
---|
| 1615 | for ac_site_file |
---|
| 1616 | do |
---|
| 1617 | if test -r "$ac_site_file"; then |
---|
| 1618 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1619 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1620 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1621 | . "$ac_site_file" |
---|
| 1622 | fi |
---|
| 1623 | done |
---|
| 1624 | |
---|
| 1625 | if test -r "$cache_file"; then |
---|
| 1626 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1627 | # files actually), so we avoid doing that. |
---|
| 1628 | if test -f "$cache_file"; then |
---|
| 1629 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1630 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1631 | case $cache_file in |
---|
| 1632 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 1633 | *) . "./$cache_file";; |
---|
| 1634 | esac |
---|
| 1635 | fi |
---|
| 1636 | else |
---|
| 1637 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1638 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1639 | >$cache_file |
---|
| 1640 | fi |
---|
| 1641 | |
---|
| 1642 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1643 | # value. |
---|
| 1644 | ac_cache_corrupted=false |
---|
| 1645 | for ac_var in $ac_precious_vars; do |
---|
| 1646 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1647 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1648 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 1649 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
| 1650 | case $ac_old_set,$ac_new_set in |
---|
| 1651 | set,) |
---|
| 1652 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1653 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1654 | ac_cache_corrupted=: ;; |
---|
| 1655 | ,set) |
---|
| 1656 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1657 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1658 | ac_cache_corrupted=: ;; |
---|
| 1659 | ,);; |
---|
| 1660 | *) |
---|
| 1661 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1662 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1663 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1664 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1665 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1666 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1667 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1668 | ac_cache_corrupted=: |
---|
| 1669 | fi;; |
---|
| 1670 | esac |
---|
| 1671 | # Pass precious variables to config.status. |
---|
| 1672 | if test "$ac_new_set" = set; then |
---|
| 1673 | case $ac_new_val in |
---|
| 1674 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1675 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1676 | esac |
---|
| 1677 | case " $ac_configure_args " in |
---|
| 1678 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1679 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1680 | esac |
---|
| 1681 | fi |
---|
| 1682 | done |
---|
| 1683 | if $ac_cache_corrupted; then |
---|
| 1684 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1685 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1686 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1687 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1688 | { (exit 1); exit 1; }; } |
---|
| 1689 | fi |
---|
| 1690 | |
---|
| 1691 | |
---|
| 1692 | |
---|
| 1693 | |
---|
| 1694 | |
---|
| 1695 | |
---|
| 1696 | |
---|
| 1697 | |
---|
| 1698 | |
---|
| 1699 | |
---|
| 1700 | |
---|
| 1701 | |
---|
| 1702 | |
---|
| 1703 | |
---|
| 1704 | |
---|
| 1705 | |
---|
| 1706 | |
---|
| 1707 | ac_ext=c |
---|
| 1708 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1712 | |
---|
| 1713 | |
---|
| 1714 | |
---|
| 1715 | |
---|
| 1716 | |
---|
| 1717 | ac_config_files="$ac_config_files Makefile src/common/Makefile" |
---|
| 1718 | |
---|
| 1719 | ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile src/ladmin/Makefile" |
---|
| 1720 | |
---|
| 1721 | ac_config_files="$ac_config_files src/char_sql/Makefile src/login_sql/Makefile src/txt-converter/Makefile" |
---|
| 1722 | |
---|
| 1723 | ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile" |
---|
| 1724 | |
---|
| 1725 | |
---|
| 1726 | |
---|
| 1727 | # |
---|
| 1728 | # Memory managers |
---|
| 1729 | # |
---|
| 1730 | # Check whether --enable-manager was given. |
---|
| 1731 | if test "${enable_manager+set}" = set; then |
---|
| 1732 | enableval=$enable_manager; |
---|
| 1733 | enable_manager="$enableval" |
---|
| 1734 | case $enableval in |
---|
| 1735 | "no");; |
---|
| 1736 | "builtin");; |
---|
| 1737 | "memwatch");; |
---|
| 1738 | "dmalloc");; |
---|
| 1739 | "gcollect");; |
---|
| 1740 | "bcheck");; |
---|
| 1741 | *) { { echo "$as_me:$LINENO: error: unknown memory manager '$enableval'... stopping" >&5 |
---|
| 1742 | echo "$as_me: error: unknown memory manager '$enableval'... stopping" >&2;} |
---|
| 1743 | { (exit 1); exit 1; }; };; |
---|
| 1744 | esac |
---|
| 1745 | |
---|
| 1746 | else |
---|
| 1747 | enable_manager="builtin" |
---|
| 1748 | |
---|
| 1749 | fi |
---|
| 1750 | |
---|
| 1751 | |
---|
| 1752 | |
---|
| 1753 | # |
---|
| 1754 | # packetver |
---|
| 1755 | # |
---|
| 1756 | # Check whether --enable-packetver was given. |
---|
| 1757 | if test "${enable_packetver+set}" = set; then |
---|
| 1758 | enableval=$enable_packetver; enable_packetver="$enableval" |
---|
| 1759 | else |
---|
| 1760 | enable_packetver="" |
---|
| 1761 | |
---|
| 1762 | fi |
---|
| 1763 | |
---|
| 1764 | |
---|
| 1765 | |
---|
| 1766 | # |
---|
| 1767 | # mapregsql |
---|
| 1768 | # |
---|
| 1769 | # Check whether --enable-mapregsql was given. |
---|
| 1770 | if test "${enable_mapregsql+set}" = set; then |
---|
| 1771 | enableval=$enable_mapregsql; |
---|
| 1772 | enable_mapregsql="$enableval" |
---|
| 1773 | case $enableval in |
---|
| 1774 | no);; |
---|
| 1775 | yes);; |
---|
| 1776 | *) { { echo "$as_me:$LINENO: error: invalid argument --enable-mapregsql=$enableval... stopping" >&5 |
---|
| 1777 | echo "$as_me: error: invalid argument --enable-mapregsql=$enableval... stopping" >&2;} |
---|
| 1778 | { (exit 1); exit 1; }; };; |
---|
| 1779 | esac |
---|
| 1780 | |
---|
| 1781 | else |
---|
| 1782 | enable_mapregsql="no" |
---|
| 1783 | |
---|
| 1784 | fi |
---|
| 1785 | |
---|
| 1786 | |
---|
| 1787 | |
---|
| 1788 | # |
---|
| 1789 | # debug |
---|
| 1790 | # |
---|
| 1791 | # Check whether --enable-debug was given. |
---|
| 1792 | if test "${enable_debug+set}" = set; then |
---|
| 1793 | enableval=$enable_debug; |
---|
| 1794 | enable_debug="$enableval" |
---|
| 1795 | case $enableval in |
---|
| 1796 | no);; |
---|
| 1797 | yes);; |
---|
| 1798 | *) { { echo "$as_me:$LINENO: error: invalid argument --enable-debug=$enableval... stopping" >&5 |
---|
| 1799 | echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;} |
---|
| 1800 | { (exit 1); exit 1; }; };; |
---|
| 1801 | esac |
---|
| 1802 | |
---|
| 1803 | else |
---|
| 1804 | enable_debug="no" |
---|
| 1805 | |
---|
| 1806 | fi |
---|
| 1807 | |
---|
| 1808 | |
---|
| 1809 | |
---|
| 1810 | # |
---|
| 1811 | # Enable/disable MySql and optionally specify the path to mysql_config (optional library) |
---|
| 1812 | # |
---|
| 1813 | |
---|
| 1814 | # Check whether --with-mysql was given. |
---|
| 1815 | if test "${with_mysql+set}" = set; then |
---|
| 1816 | withval=$with_mysql; |
---|
| 1817 | if test "$withval" = "no" ; then |
---|
| 1818 | want_mysql="no" |
---|
| 1819 | else |
---|
| 1820 | want_mysql="yes" |
---|
| 1821 | require_mysql="yes" |
---|
| 1822 | if test "$withval" != "yes" ; then |
---|
| 1823 | if test ! -x "$withval" ; then |
---|
| 1824 | { { echo "$as_me:$LINENO: error: $withval is not an executable file" >&5 |
---|
| 1825 | echo "$as_me: error: $withval is not an executable file" >&2;} |
---|
| 1826 | { (exit 1); exit 1; }; } |
---|
| 1827 | fi |
---|
| 1828 | MYSQL_CONFIG_HOME="$withval" |
---|
| 1829 | fi |
---|
| 1830 | fi |
---|
| 1831 | |
---|
| 1832 | else |
---|
| 1833 | want_mysql="yes" require_mysql="no" |
---|
| 1834 | |
---|
| 1835 | fi |
---|
| 1836 | |
---|
| 1837 | |
---|
| 1838 | |
---|
| 1839 | # |
---|
| 1840 | # Manual MYSQL_CFLAGS (optional) |
---|
| 1841 | # |
---|
| 1842 | |
---|
| 1843 | # Check whether --with-MYSQL_CFLAGS was given. |
---|
| 1844 | if test "${with_MYSQL_CFLAGS+set}" = set; then |
---|
| 1845 | withval=$with_MYSQL_CFLAGS; |
---|
| 1846 | manual_MYSQL_CFLAGS="yes" |
---|
| 1847 | MYSQL_CFLAGS="$withval" |
---|
| 1848 | |
---|
| 1849 | else |
---|
| 1850 | manual_MYSQL_CFLAGS="no" |
---|
| 1851 | |
---|
| 1852 | fi |
---|
| 1853 | |
---|
| 1854 | |
---|
| 1855 | |
---|
| 1856 | # |
---|
| 1857 | # Manual MYSQL_LIBS (optional) |
---|
| 1858 | # |
---|
| 1859 | |
---|
| 1860 | # Check whether --with-MYSQL_LIBS was given. |
---|
| 1861 | if test "${with_MYSQL_LIBS+set}" = set; then |
---|
| 1862 | withval=$with_MYSQL_LIBS; |
---|
| 1863 | manual_MYSQL_LIBS="yes" |
---|
| 1864 | MYSQL_LIBS="$withval" |
---|
| 1865 | |
---|
| 1866 | else |
---|
| 1867 | manual_MYSQL_LIBS="no" |
---|
| 1868 | |
---|
| 1869 | fi |
---|
| 1870 | |
---|
| 1871 | |
---|
| 1872 | |
---|
| 1873 | # |
---|
| 1874 | # Enable/disable PCRE and optionally specify the path (optional library) |
---|
| 1875 | # |
---|
| 1876 | |
---|
| 1877 | # Check whether --with-pcre was given. |
---|
| 1878 | if test "${with_pcre+set}" = set; then |
---|
| 1879 | withval=$with_pcre; |
---|
| 1880 | if test "$withval" = "no" ; then |
---|
| 1881 | want_pcre="no" |
---|
| 1882 | else |
---|
| 1883 | want_pcre="yes" |
---|
| 1884 | require_pcre="yes" |
---|
| 1885 | if test "$withval" != "yes" ; then |
---|
| 1886 | if test ! -d "$withval" ; then |
---|
| 1887 | { { echo "$as_me:$LINENO: error: $withval is not a directoy" >&5 |
---|
| 1888 | echo "$as_me: error: $withval is not a directoy" >&2;} |
---|
| 1889 | { (exit 1); exit 1; }; } |
---|
| 1890 | fi |
---|
| 1891 | PCRE_HOME="$withval" |
---|
| 1892 | fi |
---|
| 1893 | fi |
---|
| 1894 | |
---|
| 1895 | else |
---|
| 1896 | want_pcre="yes" require_pcre="no" |
---|
| 1897 | |
---|
| 1898 | fi |
---|
| 1899 | |
---|
| 1900 | |
---|
| 1901 | |
---|
| 1902 | # |
---|
| 1903 | # Specify the path of the zlib library (required library) |
---|
| 1904 | # |
---|
| 1905 | |
---|
| 1906 | # Check whether --with-zlib was given. |
---|
| 1907 | if test "${with_zlib+set}" = set; then |
---|
| 1908 | withval=$with_zlib; |
---|
| 1909 | test -n "$withval" && ZLIB_HOME="$withval" |
---|
| 1910 | |
---|
| 1911 | else |
---|
| 1912 | |
---|
| 1913 | ZLIB_HOME=/usr/local |
---|
| 1914 | test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr |
---|
| 1915 | |
---|
| 1916 | |
---|
| 1917 | fi |
---|
| 1918 | |
---|
| 1919 | |
---|
| 1920 | |
---|
| 1921 | |
---|
| 1922 | ############################################################################### |
---|
| 1923 | # Check for programs and types. |
---|
| 1924 | # |
---|
| 1925 | |
---|
| 1926 | |
---|
| 1927 | |
---|
| 1928 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1929 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
---|
| 1930 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
| 1931 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1933 | else |
---|
| 1934 | cat >conftest.make <<\_ACEOF |
---|
| 1935 | SHELL = /bin/sh |
---|
| 1936 | all: |
---|
| 1937 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
| 1938 | _ACEOF |
---|
| 1939 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1940 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
| 1941 | *@@@%%%=?*=@@@%%%*) |
---|
| 1942 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
| 1943 | *) |
---|
| 1944 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
| 1945 | esac |
---|
| 1946 | rm -f conftest.make |
---|
| 1947 | fi |
---|
| 1948 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
| 1949 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1950 | echo "${ECHO_T}yes" >&6; } |
---|
| 1951 | SET_MAKE= |
---|
| 1952 | else |
---|
| 1953 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1954 | echo "${ECHO_T}no" >&6; } |
---|
| 1955 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1956 | fi |
---|
| 1957 | |
---|
| 1958 | ac_ext=c |
---|
| 1959 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1963 | if test -n "$ac_tool_prefix"; then |
---|
| 1964 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1965 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 1966 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 1968 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1970 | else |
---|
| 1971 | if test -n "$CC"; then |
---|
| 1972 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1973 | else |
---|
| 1974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1975 | for as_dir in $PATH |
---|
| 1976 | do |
---|
| 1977 | IFS=$as_save_IFS |
---|
| 1978 | test -z "$as_dir" && as_dir=. |
---|
| 1979 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 1981 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1983 | break 2 |
---|
| 1984 | fi |
---|
| 1985 | done |
---|
| 1986 | done |
---|
| 1987 | IFS=$as_save_IFS |
---|
| 1988 | |
---|
| 1989 | fi |
---|
| 1990 | fi |
---|
| 1991 | CC=$ac_cv_prog_CC |
---|
| 1992 | if test -n "$CC"; then |
---|
| 1993 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1994 | echo "${ECHO_T}$CC" >&6; } |
---|
| 1995 | else |
---|
| 1996 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1997 | echo "${ECHO_T}no" >&6; } |
---|
| 1998 | fi |
---|
| 1999 | |
---|
| 2000 | |
---|
| 2001 | fi |
---|
| 2002 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2003 | ac_ct_CC=$CC |
---|
| 2004 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2005 | set dummy gcc; ac_word=$2 |
---|
| 2006 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2008 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2010 | else |
---|
| 2011 | if test -n "$ac_ct_CC"; then |
---|
| 2012 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2013 | else |
---|
| 2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2015 | for as_dir in $PATH |
---|
| 2016 | do |
---|
| 2017 | IFS=$as_save_IFS |
---|
| 2018 | test -z "$as_dir" && as_dir=. |
---|
| 2019 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2021 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2022 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2023 | break 2 |
---|
| 2024 | fi |
---|
| 2025 | done |
---|
| 2026 | done |
---|
| 2027 | IFS=$as_save_IFS |
---|
| 2028 | |
---|
| 2029 | fi |
---|
| 2030 | fi |
---|
| 2031 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2032 | if test -n "$ac_ct_CC"; then |
---|
| 2033 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2034 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
| 2035 | else |
---|
| 2036 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2037 | echo "${ECHO_T}no" >&6; } |
---|
| 2038 | fi |
---|
| 2039 | |
---|
| 2040 | if test "x$ac_ct_CC" = x; then |
---|
| 2041 | CC="" |
---|
| 2042 | else |
---|
| 2043 | case $cross_compiling:$ac_tool_warned in |
---|
| 2044 | yes:) |
---|
| 2045 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2046 | whose name does not start with the host triplet. If you think this |
---|
| 2047 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2048 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2049 | whose name does not start with the host triplet. If you think this |
---|
| 2050 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2051 | ac_tool_warned=yes ;; |
---|
| 2052 | esac |
---|
| 2053 | CC=$ac_ct_CC |
---|
| 2054 | fi |
---|
| 2055 | else |
---|
| 2056 | CC="$ac_cv_prog_CC" |
---|
| 2057 | fi |
---|
| 2058 | |
---|
| 2059 | if test -z "$CC"; then |
---|
| 2060 | if test -n "$ac_tool_prefix"; then |
---|
| 2061 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2062 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2065 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2067 | else |
---|
| 2068 | if test -n "$CC"; then |
---|
| 2069 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2070 | else |
---|
| 2071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2072 | for as_dir in $PATH |
---|
| 2073 | do |
---|
| 2074 | IFS=$as_save_IFS |
---|
| 2075 | test -z "$as_dir" && as_dir=. |
---|
| 2076 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2078 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2080 | break 2 |
---|
| 2081 | fi |
---|
| 2082 | done |
---|
| 2083 | done |
---|
| 2084 | IFS=$as_save_IFS |
---|
| 2085 | |
---|
| 2086 | fi |
---|
| 2087 | fi |
---|
| 2088 | CC=$ac_cv_prog_CC |
---|
| 2089 | if test -n "$CC"; then |
---|
| 2090 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2091 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2092 | else |
---|
| 2093 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2094 | echo "${ECHO_T}no" >&6; } |
---|
| 2095 | fi |
---|
| 2096 | |
---|
| 2097 | |
---|
| 2098 | fi |
---|
| 2099 | fi |
---|
| 2100 | if test -z "$CC"; then |
---|
| 2101 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2102 | set dummy cc; ac_word=$2 |
---|
| 2103 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2105 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2107 | else |
---|
| 2108 | if test -n "$CC"; then |
---|
| 2109 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2110 | else |
---|
| 2111 | ac_prog_rejected=no |
---|
| 2112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2113 | for as_dir in $PATH |
---|
| 2114 | do |
---|
| 2115 | IFS=$as_save_IFS |
---|
| 2116 | test -z "$as_dir" && as_dir=. |
---|
| 2117 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2119 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2120 | ac_prog_rejected=yes |
---|
| 2121 | continue |
---|
| 2122 | fi |
---|
| 2123 | ac_cv_prog_CC="cc" |
---|
| 2124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2125 | break 2 |
---|
| 2126 | fi |
---|
| 2127 | done |
---|
| 2128 | done |
---|
| 2129 | IFS=$as_save_IFS |
---|
| 2130 | |
---|
| 2131 | if test $ac_prog_rejected = yes; then |
---|
| 2132 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2133 | set dummy $ac_cv_prog_CC |
---|
| 2134 | shift |
---|
| 2135 | if test $# != 0; then |
---|
| 2136 | # We chose a different compiler from the bogus one. |
---|
| 2137 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2138 | # first if we set CC to just the basename; use the full file name. |
---|
| 2139 | shift |
---|
| 2140 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2141 | fi |
---|
| 2142 | fi |
---|
| 2143 | fi |
---|
| 2144 | fi |
---|
| 2145 | CC=$ac_cv_prog_CC |
---|
| 2146 | if test -n "$CC"; then |
---|
| 2147 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2148 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2149 | else |
---|
| 2150 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2151 | echo "${ECHO_T}no" >&6; } |
---|
| 2152 | fi |
---|
| 2153 | |
---|
| 2154 | |
---|
| 2155 | fi |
---|
| 2156 | if test -z "$CC"; then |
---|
| 2157 | if test -n "$ac_tool_prefix"; then |
---|
| 2158 | for ac_prog in cl.exe |
---|
| 2159 | do |
---|
| 2160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2162 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2164 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2166 | else |
---|
| 2167 | if test -n "$CC"; then |
---|
| 2168 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2169 | else |
---|
| 2170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2171 | for as_dir in $PATH |
---|
| 2172 | do |
---|
| 2173 | IFS=$as_save_IFS |
---|
| 2174 | test -z "$as_dir" && as_dir=. |
---|
| 2175 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2177 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2179 | break 2 |
---|
| 2180 | fi |
---|
| 2181 | done |
---|
| 2182 | done |
---|
| 2183 | IFS=$as_save_IFS |
---|
| 2184 | |
---|
| 2185 | fi |
---|
| 2186 | fi |
---|
| 2187 | CC=$ac_cv_prog_CC |
---|
| 2188 | if test -n "$CC"; then |
---|
| 2189 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2190 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2191 | else |
---|
| 2192 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2193 | echo "${ECHO_T}no" >&6; } |
---|
| 2194 | fi |
---|
| 2195 | |
---|
| 2196 | |
---|
| 2197 | test -n "$CC" && break |
---|
| 2198 | done |
---|
| 2199 | fi |
---|
| 2200 | if test -z "$CC"; then |
---|
| 2201 | ac_ct_CC=$CC |
---|
| 2202 | for ac_prog in cl.exe |
---|
| 2203 | do |
---|
| 2204 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2205 | set dummy $ac_prog; ac_word=$2 |
---|
| 2206 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2208 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2210 | else |
---|
| 2211 | if test -n "$ac_ct_CC"; then |
---|
| 2212 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2213 | else |
---|
| 2214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2215 | for as_dir in $PATH |
---|
| 2216 | do |
---|
| 2217 | IFS=$as_save_IFS |
---|
| 2218 | test -z "$as_dir" && as_dir=. |
---|
| 2219 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2221 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2223 | break 2 |
---|
| 2224 | fi |
---|
| 2225 | done |
---|
| 2226 | done |
---|
| 2227 | IFS=$as_save_IFS |
---|
| 2228 | |
---|
| 2229 | fi |
---|
| 2230 | fi |
---|
| 2231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2232 | if test -n "$ac_ct_CC"; then |
---|
| 2233 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2234 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
| 2235 | else |
---|
| 2236 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2237 | echo "${ECHO_T}no" >&6; } |
---|
| 2238 | fi |
---|
| 2239 | |
---|
| 2240 | |
---|
| 2241 | test -n "$ac_ct_CC" && break |
---|
| 2242 | done |
---|
| 2243 | |
---|
| 2244 | if test "x$ac_ct_CC" = x; then |
---|
| 2245 | CC="" |
---|
| 2246 | else |
---|
| 2247 | case $cross_compiling:$ac_tool_warned in |
---|
| 2248 | yes:) |
---|
| 2249 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2250 | whose name does not start with the host triplet. If you think this |
---|
| 2251 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2252 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2253 | whose name does not start with the host triplet. If you think this |
---|
| 2254 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2255 | ac_tool_warned=yes ;; |
---|
| 2256 | esac |
---|
| 2257 | CC=$ac_ct_CC |
---|
| 2258 | fi |
---|
| 2259 | fi |
---|
| 2260 | |
---|
| 2261 | fi |
---|
| 2262 | |
---|
| 2263 | |
---|
| 2264 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2265 | See \`config.log' for more details." >&5 |
---|
| 2266 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2267 | See \`config.log' for more details." >&2;} |
---|
| 2268 | { (exit 1); exit 1; }; } |
---|
| 2269 | |
---|
| 2270 | # Provide some information about the compiler. |
---|
| 2271 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
| 2272 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2273 | { (ac_try="$ac_compiler --version >&5" |
---|
| 2274 | case "(($ac_try" in |
---|
| 2275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2276 | *) ac_try_echo=$ac_try;; |
---|
| 2277 | esac |
---|
| 2278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2279 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
| 2280 | ac_status=$? |
---|
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2282 | (exit $ac_status); } |
---|
| 2283 | { (ac_try="$ac_compiler -v >&5" |
---|
| 2284 | case "(($ac_try" in |
---|
| 2285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2286 | *) ac_try_echo=$ac_try;; |
---|
| 2287 | esac |
---|
| 2288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2289 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
| 2290 | ac_status=$? |
---|
| 2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2292 | (exit $ac_status); } |
---|
| 2293 | { (ac_try="$ac_compiler -V >&5" |
---|
| 2294 | case "(($ac_try" in |
---|
| 2295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2296 | *) ac_try_echo=$ac_try;; |
---|
| 2297 | esac |
---|
| 2298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2299 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
| 2300 | ac_status=$? |
---|
| 2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2302 | (exit $ac_status); } |
---|
| 2303 | |
---|
| 2304 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2305 | /* confdefs.h. */ |
---|
| 2306 | _ACEOF |
---|
| 2307 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2308 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2309 | /* end confdefs.h. */ |
---|
| 2310 | |
---|
| 2311 | int |
---|
| 2312 | main () |
---|
| 2313 | { |
---|
| 2314 | |
---|
| 2315 | ; |
---|
| 2316 | return 0; |
---|
| 2317 | } |
---|
| 2318 | _ACEOF |
---|
| 2319 | ac_clean_files_save=$ac_clean_files |
---|
| 2320 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 2321 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2322 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2323 | # of exeext. |
---|
| 2324 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
| 2325 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
---|
| 2326 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2327 | # |
---|
| 2328 | # List of possible output files, starting from the most likely. |
---|
| 2329 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
| 2330 | # only as a last resort. b.out is created by i960 compilers. |
---|
| 2331 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
| 2332 | # |
---|
| 2333 | # The IRIX 6 linker writes into existing files which may not be |
---|
| 2334 | # executable, retaining their permissions. Remove them first so a |
---|
| 2335 | # subsequent execution test works. |
---|
| 2336 | ac_rmfiles= |
---|
| 2337 | for ac_file in $ac_files |
---|
| 2338 | do |
---|
| 2339 | case $ac_file in |
---|
| 2340 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
| 2341 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2342 | esac |
---|
| 2343 | done |
---|
| 2344 | rm -f $ac_rmfiles |
---|
| 2345 | |
---|
| 2346 | if { (ac_try="$ac_link_default" |
---|
| 2347 | case "(($ac_try" in |
---|
| 2348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2349 | *) ac_try_echo=$ac_try;; |
---|
| 2350 | esac |
---|
| 2351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2352 | (eval "$ac_link_default") 2>&5 |
---|
| 2353 | ac_status=$? |
---|
| 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2355 | (exit $ac_status); }; then |
---|
| 2356 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2357 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2358 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2359 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2360 | # Autoconf. |
---|
| 2361 | for ac_file in $ac_files '' |
---|
| 2362 | do |
---|
| 2363 | test -f "$ac_file" || continue |
---|
| 2364 | case $ac_file in |
---|
| 2365 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
| 2366 | ;; |
---|
| 2367 | [ab].out ) |
---|
| 2368 | # We found the default executable, but exeext='' is most |
---|
| 2369 | # certainly right. |
---|
| 2370 | break;; |
---|
| 2371 | *.* ) |
---|
| 2372 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
| 2373 | then :; else |
---|
| 2374 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2375 | fi |
---|
| 2376 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2377 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2378 | # argument, so we may need to know it at that point already. |
---|
| 2379 | # Even if this section looks crufty: it has the advantage of |
---|
| 2380 | # actually working. |
---|
| 2381 | break;; |
---|
| 2382 | * ) |
---|
| 2383 | break;; |
---|
| 2384 | esac |
---|
| 2385 | done |
---|
| 2386 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2387 | |
---|
| 2388 | else |
---|
| 2389 | ac_file='' |
---|
| 2390 | fi |
---|
| 2391 | |
---|
| 2392 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2393 | echo "${ECHO_T}$ac_file" >&6; } |
---|
| 2394 | if test -z "$ac_file"; then |
---|
| 2395 | echo "$as_me: failed program was:" >&5 |
---|
| 2396 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2397 | |
---|
| 2398 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
| 2399 | See \`config.log' for more details." >&5 |
---|
| 2400 | echo "$as_me: error: C compiler cannot create executables |
---|
| 2401 | See \`config.log' for more details." >&2;} |
---|
| 2402 | { (exit 77); exit 77; }; } |
---|
| 2403 | fi |
---|
| 2404 | |
---|
| 2405 | ac_exeext=$ac_cv_exeext |
---|
| 2406 | |
---|
| 2407 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2408 | # the compiler is broken, or we cross compile. |
---|
| 2409 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 2410 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
---|
| 2411 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2412 | # If not cross compiling, check that we can run a simple program. |
---|
| 2413 | if test "$cross_compiling" != yes; then |
---|
| 2414 | if { ac_try='./$ac_file' |
---|
| 2415 | { (case "(($ac_try" in |
---|
| 2416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2417 | *) ac_try_echo=$ac_try;; |
---|
| 2418 | esac |
---|
| 2419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2420 | (eval "$ac_try") 2>&5 |
---|
| 2421 | ac_status=$? |
---|
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2423 | (exit $ac_status); }; }; then |
---|
| 2424 | cross_compiling=no |
---|
| 2425 | else |
---|
| 2426 | if test "$cross_compiling" = maybe; then |
---|
| 2427 | cross_compiling=yes |
---|
| 2428 | else |
---|
| 2429 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
| 2430 | If you meant to cross compile, use \`--host'. |
---|
| 2431 | See \`config.log' for more details." >&5 |
---|
| 2432 | echo "$as_me: error: cannot run C compiled programs. |
---|
| 2433 | If you meant to cross compile, use \`--host'. |
---|
| 2434 | See \`config.log' for more details." >&2;} |
---|
| 2435 | { (exit 1); exit 1; }; } |
---|
| 2436 | fi |
---|
| 2437 | fi |
---|
| 2438 | fi |
---|
| 2439 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2440 | echo "${ECHO_T}yes" >&6; } |
---|
| 2441 | |
---|
| 2442 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2443 | ac_clean_files=$ac_clean_files_save |
---|
| 2444 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2445 | # the compiler is broken, or we cross compile. |
---|
| 2446 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2447 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
| 2448 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2449 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
| 2450 | |
---|
| 2451 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2452 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
| 2453 | if { (ac_try="$ac_link" |
---|
| 2454 | case "(($ac_try" in |
---|
| 2455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2456 | *) ac_try_echo=$ac_try;; |
---|
| 2457 | esac |
---|
| 2458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2459 | (eval "$ac_link") 2>&5 |
---|
| 2460 | ac_status=$? |
---|
| 2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2462 | (exit $ac_status); }; then |
---|
| 2463 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2464 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2465 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2466 | # `rm'. |
---|
| 2467 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2468 | test -f "$ac_file" || continue |
---|
| 2469 | case $ac_file in |
---|
| 2470 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
| 2471 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2472 | break;; |
---|
| 2473 | * ) break;; |
---|
| 2474 | esac |
---|
| 2475 | done |
---|
| 2476 | else |
---|
| 2477 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2478 | See \`config.log' for more details." >&5 |
---|
| 2479 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2480 | See \`config.log' for more details." >&2;} |
---|
| 2481 | { (exit 1); exit 1; }; } |
---|
| 2482 | fi |
---|
| 2483 | |
---|
| 2484 | rm -f conftest$ac_cv_exeext |
---|
| 2485 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2486 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
| 2487 | |
---|
| 2488 | rm -f conftest.$ac_ext |
---|
| 2489 | EXEEXT=$ac_cv_exeext |
---|
| 2490 | ac_exeext=$EXEEXT |
---|
| 2491 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2492 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
| 2493 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2495 | else |
---|
| 2496 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2497 | /* confdefs.h. */ |
---|
| 2498 | _ACEOF |
---|
| 2499 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2500 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2501 | /* end confdefs.h. */ |
---|
| 2502 | |
---|
| 2503 | int |
---|
| 2504 | main () |
---|
| 2505 | { |
---|
| 2506 | |
---|
| 2507 | ; |
---|
| 2508 | return 0; |
---|
| 2509 | } |
---|
| 2510 | _ACEOF |
---|
| 2511 | rm -f conftest.o conftest.obj |
---|
| 2512 | if { (ac_try="$ac_compile" |
---|
| 2513 | case "(($ac_try" in |
---|
| 2514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2515 | *) ac_try_echo=$ac_try;; |
---|
| 2516 | esac |
---|
| 2517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2518 | (eval "$ac_compile") 2>&5 |
---|
| 2519 | ac_status=$? |
---|
| 2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2521 | (exit $ac_status); }; then |
---|
| 2522 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 2523 | test -f "$ac_file" || continue; |
---|
| 2524 | case $ac_file in |
---|
| 2525 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
| 2526 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2527 | break;; |
---|
| 2528 | esac |
---|
| 2529 | done |
---|
| 2530 | else |
---|
| 2531 | echo "$as_me: failed program was:" >&5 |
---|
| 2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2533 | |
---|
| 2534 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2535 | See \`config.log' for more details." >&5 |
---|
| 2536 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2537 | See \`config.log' for more details." >&2;} |
---|
| 2538 | { (exit 1); exit 1; }; } |
---|
| 2539 | fi |
---|
| 2540 | |
---|
| 2541 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2542 | fi |
---|
| 2543 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2544 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
| 2545 | OBJEXT=$ac_cv_objext |
---|
| 2546 | ac_objext=$OBJEXT |
---|
| 2547 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2548 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
| 2549 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2551 | else |
---|
| 2552 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2553 | /* confdefs.h. */ |
---|
| 2554 | _ACEOF |
---|
| 2555 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2557 | /* end confdefs.h. */ |
---|
| 2558 | |
---|
| 2559 | int |
---|
| 2560 | main () |
---|
| 2561 | { |
---|
| 2562 | #ifndef __GNUC__ |
---|
| 2563 | choke me |
---|
| 2564 | #endif |
---|
| 2565 | |
---|
| 2566 | ; |
---|
| 2567 | return 0; |
---|
| 2568 | } |
---|
| 2569 | _ACEOF |
---|
| 2570 | rm -f conftest.$ac_objext |
---|
| 2571 | if { (ac_try="$ac_compile" |
---|
| 2572 | case "(($ac_try" in |
---|
| 2573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2574 | *) ac_try_echo=$ac_try;; |
---|
| 2575 | esac |
---|
| 2576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2577 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2578 | ac_status=$? |
---|
| 2579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2580 | rm -f conftest.er1 |
---|
| 2581 | cat conftest.err >&5 |
---|
| 2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2583 | (exit $ac_status); } && { |
---|
| 2584 | test -z "$ac_c_werror_flag" || |
---|
| 2585 | test ! -s conftest.err |
---|
| 2586 | } && test -s conftest.$ac_objext; then |
---|
| 2587 | ac_compiler_gnu=yes |
---|
| 2588 | else |
---|
| 2589 | echo "$as_me: failed program was:" >&5 |
---|
| 2590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2591 | |
---|
| 2592 | ac_compiler_gnu=no |
---|
| 2593 | fi |
---|
| 2594 | |
---|
| 2595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2596 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2597 | |
---|
| 2598 | fi |
---|
| 2599 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2600 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
| 2601 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2602 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2603 | ac_save_CFLAGS=$CFLAGS |
---|
| 2604 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2605 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
| 2606 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2608 | else |
---|
| 2609 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 2610 | ac_c_werror_flag=yes |
---|
| 2611 | ac_cv_prog_cc_g=no |
---|
| 2612 | CFLAGS="-g" |
---|
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2614 | /* confdefs.h. */ |
---|
| 2615 | _ACEOF |
---|
| 2616 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2618 | /* end confdefs.h. */ |
---|
| 2619 | |
---|
| 2620 | int |
---|
| 2621 | main () |
---|
| 2622 | { |
---|
| 2623 | |
---|
| 2624 | ; |
---|
| 2625 | return 0; |
---|
| 2626 | } |
---|
| 2627 | _ACEOF |
---|
| 2628 | rm -f conftest.$ac_objext |
---|
| 2629 | if { (ac_try="$ac_compile" |
---|
| 2630 | case "(($ac_try" in |
---|
| 2631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2632 | *) ac_try_echo=$ac_try;; |
---|
| 2633 | esac |
---|
| 2634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2635 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2636 | ac_status=$? |
---|
| 2637 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2638 | rm -f conftest.er1 |
---|
| 2639 | cat conftest.err >&5 |
---|
| 2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2641 | (exit $ac_status); } && { |
---|
| 2642 | test -z "$ac_c_werror_flag" || |
---|
| 2643 | test ! -s conftest.err |
---|
| 2644 | } && test -s conftest.$ac_objext; then |
---|
| 2645 | ac_cv_prog_cc_g=yes |
---|
| 2646 | else |
---|
| 2647 | echo "$as_me: failed program was:" >&5 |
---|
| 2648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2649 | |
---|
| 2650 | CFLAGS="" |
---|
| 2651 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2652 | /* confdefs.h. */ |
---|
| 2653 | _ACEOF |
---|
| 2654 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2655 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2656 | /* end confdefs.h. */ |
---|
| 2657 | |
---|
| 2658 | int |
---|
| 2659 | main () |
---|
| 2660 | { |
---|
| 2661 | |
---|
| 2662 | ; |
---|
| 2663 | return 0; |
---|
| 2664 | } |
---|
| 2665 | _ACEOF |
---|
| 2666 | rm -f conftest.$ac_objext |
---|
| 2667 | if { (ac_try="$ac_compile" |
---|
| 2668 | case "(($ac_try" in |
---|
| 2669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2670 | *) ac_try_echo=$ac_try;; |
---|
| 2671 | esac |
---|
| 2672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2673 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2674 | ac_status=$? |
---|
| 2675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2676 | rm -f conftest.er1 |
---|
| 2677 | cat conftest.err >&5 |
---|
| 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2679 | (exit $ac_status); } && { |
---|
| 2680 | test -z "$ac_c_werror_flag" || |
---|
| 2681 | test ! -s conftest.err |
---|
| 2682 | } && test -s conftest.$ac_objext; then |
---|
| 2683 | : |
---|
| 2684 | else |
---|
| 2685 | echo "$as_me: failed program was:" >&5 |
---|
| 2686 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2687 | |
---|
| 2688 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 2689 | CFLAGS="-g" |
---|
| 2690 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2691 | /* confdefs.h. */ |
---|
| 2692 | _ACEOF |
---|
| 2693 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2694 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2695 | /* end confdefs.h. */ |
---|
| 2696 | |
---|
| 2697 | int |
---|
| 2698 | main () |
---|
| 2699 | { |
---|
| 2700 | |
---|
| 2701 | ; |
---|
| 2702 | return 0; |
---|
| 2703 | } |
---|
| 2704 | _ACEOF |
---|
| 2705 | rm -f conftest.$ac_objext |
---|
| 2706 | if { (ac_try="$ac_compile" |
---|
| 2707 | case "(($ac_try" in |
---|
| 2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2709 | *) ac_try_echo=$ac_try;; |
---|
| 2710 | esac |
---|
| 2711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2712 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2713 | ac_status=$? |
---|
| 2714 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2715 | rm -f conftest.er1 |
---|
| 2716 | cat conftest.err >&5 |
---|
| 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2718 | (exit $ac_status); } && { |
---|
| 2719 | test -z "$ac_c_werror_flag" || |
---|
| 2720 | test ! -s conftest.err |
---|
| 2721 | } && test -s conftest.$ac_objext; then |
---|
| 2722 | ac_cv_prog_cc_g=yes |
---|
| 2723 | else |
---|
| 2724 | echo "$as_me: failed program was:" >&5 |
---|
| 2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2726 | |
---|
| 2727 | |
---|
| 2728 | fi |
---|
| 2729 | |
---|
| 2730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2731 | fi |
---|
| 2732 | |
---|
| 2733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2734 | fi |
---|
| 2735 | |
---|
| 2736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2737 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 2738 | fi |
---|
| 2739 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2740 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
| 2741 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2742 | CFLAGS=$ac_save_CFLAGS |
---|
| 2743 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2744 | if test "$GCC" = yes; then |
---|
| 2745 | CFLAGS="-g -O2" |
---|
| 2746 | else |
---|
| 2747 | CFLAGS="-g" |
---|
| 2748 | fi |
---|
| 2749 | else |
---|
| 2750 | if test "$GCC" = yes; then |
---|
| 2751 | CFLAGS="-O2" |
---|
| 2752 | else |
---|
| 2753 | CFLAGS= |
---|
| 2754 | fi |
---|
| 2755 | fi |
---|
| 2756 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
| 2757 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
| 2758 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
| 2759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2760 | else |
---|
| 2761 | ac_cv_prog_cc_c89=no |
---|
| 2762 | ac_save_CC=$CC |
---|
| 2763 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2764 | /* confdefs.h. */ |
---|
| 2765 | _ACEOF |
---|
| 2766 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2768 | /* end confdefs.h. */ |
---|
| 2769 | #include <stdarg.h> |
---|
| 2770 | #include <stdio.h> |
---|
| 2771 | #include <sys/types.h> |
---|
| 2772 | #include <sys/stat.h> |
---|
| 2773 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2774 | struct buf { int x; }; |
---|
| 2775 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2776 | static char *e (p, i) |
---|
| 2777 | char **p; |
---|
| 2778 | int i; |
---|
| 2779 | { |
---|
| 2780 | return p[i]; |
---|
| 2781 | } |
---|
| 2782 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2783 | { |
---|
| 2784 | char *s; |
---|
| 2785 | va_list v; |
---|
| 2786 | va_start (v,p); |
---|
| 2787 | s = g (p, va_arg (v,int)); |
---|
| 2788 | va_end (v); |
---|
| 2789 | return s; |
---|
| 2790 | } |
---|
| 2791 | |
---|
| 2792 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2793 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2794 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2795 | as 'x'. The following induces an error, until -std is added to get |
---|
| 2796 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2797 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2798 | that's true only with -std. */ |
---|
| 2799 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2800 | |
---|
| 2801 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 2802 | inside strings and character constants. */ |
---|
| 2803 | #define FOO(x) 'x' |
---|
| 2804 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 2805 | |
---|
| 2806 | int test (int i, double x); |
---|
| 2807 | struct s1 {int (*f) (int a);}; |
---|
| 2808 | struct s2 {int (*f) (double a);}; |
---|
| 2809 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2810 | int argc; |
---|
| 2811 | char **argv; |
---|
| 2812 | int |
---|
| 2813 | main () |
---|
| 2814 | { |
---|
| 2815 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2816 | ; |
---|
| 2817 | return 0; |
---|
| 2818 | } |
---|
| 2819 | _ACEOF |
---|
| 2820 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 2821 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2822 | do |
---|
| 2823 | CC="$ac_save_CC $ac_arg" |
---|
| 2824 | rm -f conftest.$ac_objext |
---|
| 2825 | if { (ac_try="$ac_compile" |
---|
| 2826 | case "(($ac_try" in |
---|
| 2827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2828 | *) ac_try_echo=$ac_try;; |
---|
| 2829 | esac |
---|
| 2830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2831 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2832 | ac_status=$? |
---|
| 2833 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2834 | rm -f conftest.er1 |
---|
| 2835 | cat conftest.err >&5 |
---|
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2837 | (exit $ac_status); } && { |
---|
| 2838 | test -z "$ac_c_werror_flag" || |
---|
| 2839 | test ! -s conftest.err |
---|
| 2840 | } && test -s conftest.$ac_objext; then |
---|
| 2841 | ac_cv_prog_cc_c89=$ac_arg |
---|
| 2842 | else |
---|
| 2843 | echo "$as_me: failed program was:" >&5 |
---|
| 2844 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2845 | |
---|
| 2846 | |
---|
| 2847 | fi |
---|
| 2848 | |
---|
| 2849 | rm -f core conftest.err conftest.$ac_objext |
---|
| 2850 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
| 2851 | done |
---|
| 2852 | rm -f conftest.$ac_ext |
---|
| 2853 | CC=$ac_save_CC |
---|
| 2854 | |
---|
| 2855 | fi |
---|
| 2856 | # AC_CACHE_VAL |
---|
| 2857 | case "x$ac_cv_prog_cc_c89" in |
---|
| 2858 | x) |
---|
| 2859 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2860 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
| 2861 | xno) |
---|
| 2862 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
| 2863 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
| 2864 | *) |
---|
| 2865 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 2866 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 2867 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
| 2868 | esac |
---|
| 2869 | |
---|
| 2870 | |
---|
| 2871 | ac_ext=c |
---|
| 2872 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2876 | |
---|
| 2877 | ac_ext=c |
---|
| 2878 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2882 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 2883 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
---|
| 2884 | # On Suns, sometimes $CPP names a directory. |
---|
| 2885 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 2886 | CPP= |
---|
| 2887 | fi |
---|
| 2888 | if test -z "$CPP"; then |
---|
| 2889 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 2890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2891 | else |
---|
| 2892 | # Double quotes because CPP needs to be expanded |
---|
| 2893 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 2894 | do |
---|
| 2895 | ac_preproc_ok=false |
---|
| 2896 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2897 | do |
---|
| 2898 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2899 | # with a fresh cross-compiler works. |
---|
| 2900 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2901 | # <limits.h> exists even on freestanding compilers. |
---|
| 2902 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2903 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2904 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2905 | /* confdefs.h. */ |
---|
| 2906 | _ACEOF |
---|
| 2907 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2908 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2909 | /* end confdefs.h. */ |
---|
| 2910 | #ifdef __STDC__ |
---|
| 2911 | # include <limits.h> |
---|
| 2912 | #else |
---|
| 2913 | # include <assert.h> |
---|
| 2914 | #endif |
---|
| 2915 | Syntax error |
---|
| 2916 | _ACEOF |
---|
| 2917 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 2918 | case "(($ac_try" in |
---|
| 2919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2920 | *) ac_try_echo=$ac_try;; |
---|
| 2921 | esac |
---|
| 2922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 2924 | ac_status=$? |
---|
| 2925 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2926 | rm -f conftest.er1 |
---|
| 2927 | cat conftest.err >&5 |
---|
| 2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2929 | (exit $ac_status); } >/dev/null && { |
---|
| 2930 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 2931 | test ! -s conftest.err |
---|
| 2932 | }; then |
---|
| 2933 | : |
---|
| 2934 | else |
---|
| 2935 | echo "$as_me: failed program was:" >&5 |
---|
| 2936 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2937 | |
---|
| 2938 | # Broken: fails on valid input. |
---|
| 2939 | continue |
---|
| 2940 | fi |
---|
| 2941 | |
---|
| 2942 | rm -f conftest.err conftest.$ac_ext |
---|
| 2943 | |
---|
| 2944 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 2945 | # can be detected and how. |
---|
| 2946 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2947 | /* confdefs.h. */ |
---|
| 2948 | _ACEOF |
---|
| 2949 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2950 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2951 | /* end confdefs.h. */ |
---|
| 2952 | #include <ac_nonexistent.h> |
---|
| 2953 | _ACEOF |
---|
| 2954 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 2955 | case "(($ac_try" in |
---|
| 2956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2957 | *) ac_try_echo=$ac_try;; |
---|
| 2958 | esac |
---|
| 2959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2960 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 2961 | ac_status=$? |
---|
| 2962 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2963 | rm -f conftest.er1 |
---|
| 2964 | cat conftest.err >&5 |
---|
| 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2966 | (exit $ac_status); } >/dev/null && { |
---|
| 2967 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 2968 | test ! -s conftest.err |
---|
| 2969 | }; then |
---|
| 2970 | # Broken: success on invalid input. |
---|
| 2971 | continue |
---|
| 2972 | else |
---|
| 2973 | echo "$as_me: failed program was:" >&5 |
---|
| 2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2975 | |
---|
| 2976 | # Passes both tests. |
---|
| 2977 | ac_preproc_ok=: |
---|
| 2978 | break |
---|
| 2979 | fi |
---|
| 2980 | |
---|
| 2981 | rm -f conftest.err conftest.$ac_ext |
---|
| 2982 | |
---|
| 2983 | done |
---|
| 2984 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2985 | rm -f conftest.err conftest.$ac_ext |
---|
| 2986 | if $ac_preproc_ok; then |
---|
| 2987 | break |
---|
| 2988 | fi |
---|
| 2989 | |
---|
| 2990 | done |
---|
| 2991 | ac_cv_prog_CPP=$CPP |
---|
| 2992 | |
---|
| 2993 | fi |
---|
| 2994 | CPP=$ac_cv_prog_CPP |
---|
| 2995 | else |
---|
| 2996 | ac_cv_prog_CPP=$CPP |
---|
| 2997 | fi |
---|
| 2998 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 2999 | echo "${ECHO_T}$CPP" >&6; } |
---|
| 3000 | ac_preproc_ok=false |
---|
| 3001 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3002 | do |
---|
| 3003 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3004 | # with a fresh cross-compiler works. |
---|
| 3005 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3006 | # <limits.h> exists even on freestanding compilers. |
---|
| 3007 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3008 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3009 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3010 | /* confdefs.h. */ |
---|
| 3011 | _ACEOF |
---|
| 3012 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3013 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3014 | /* end confdefs.h. */ |
---|
| 3015 | #ifdef __STDC__ |
---|
| 3016 | # include <limits.h> |
---|
| 3017 | #else |
---|
| 3018 | # include <assert.h> |
---|
| 3019 | #endif |
---|
| 3020 | Syntax error |
---|
| 3021 | _ACEOF |
---|
| 3022 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 3023 | case "(($ac_try" in |
---|
| 3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3025 | *) ac_try_echo=$ac_try;; |
---|
| 3026 | esac |
---|
| 3027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 3029 | ac_status=$? |
---|
| 3030 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3031 | rm -f conftest.er1 |
---|
| 3032 | cat conftest.err >&5 |
---|
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3034 | (exit $ac_status); } >/dev/null && { |
---|
| 3035 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 3036 | test ! -s conftest.err |
---|
| 3037 | }; then |
---|
| 3038 | : |
---|
| 3039 | else |
---|
| 3040 | echo "$as_me: failed program was:" >&5 |
---|
| 3041 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3042 | |
---|
| 3043 | # Broken: fails on valid input. |
---|
| 3044 | continue |
---|
| 3045 | fi |
---|
| 3046 | |
---|
| 3047 | rm -f conftest.err conftest.$ac_ext |
---|
| 3048 | |
---|
| 3049 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3050 | # can be detected and how. |
---|
| 3051 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3052 | /* confdefs.h. */ |
---|
| 3053 | _ACEOF |
---|
| 3054 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3055 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3056 | /* end confdefs.h. */ |
---|
| 3057 | #include <ac_nonexistent.h> |
---|
| 3058 | _ACEOF |
---|
| 3059 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 3060 | case "(($ac_try" in |
---|
| 3061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3062 | *) ac_try_echo=$ac_try;; |
---|
| 3063 | esac |
---|
| 3064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3065 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 3066 | ac_status=$? |
---|
| 3067 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3068 | rm -f conftest.er1 |
---|
| 3069 | cat conftest.err >&5 |
---|
| 3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3071 | (exit $ac_status); } >/dev/null && { |
---|
| 3072 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 3073 | test ! -s conftest.err |
---|
| 3074 | }; then |
---|
| 3075 | # Broken: success on invalid input. |
---|
| 3076 | continue |
---|
| 3077 | else |
---|
| 3078 | echo "$as_me: failed program was:" >&5 |
---|
| 3079 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3080 | |
---|
| 3081 | # Passes both tests. |
---|
| 3082 | ac_preproc_ok=: |
---|
| 3083 | break |
---|
| 3084 | fi |
---|
| 3085 | |
---|
| 3086 | rm -f conftest.err conftest.$ac_ext |
---|
| 3087 | |
---|
| 3088 | done |
---|
| 3089 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3090 | rm -f conftest.err conftest.$ac_ext |
---|
| 3091 | if $ac_preproc_ok; then |
---|
| 3092 | : |
---|
| 3093 | else |
---|
| 3094 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3095 | See \`config.log' for more details." >&5 |
---|
| 3096 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3097 | See \`config.log' for more details." >&2;} |
---|
| 3098 | { (exit 1); exit 1; }; } |
---|
| 3099 | fi |
---|
| 3100 | |
---|
| 3101 | ac_ext=c |
---|
| 3102 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3106 | |
---|
| 3107 | ac_ext=c |
---|
| 3108 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3112 | |
---|
| 3113 | |
---|
| 3114 | |
---|
| 3115 | CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare" |
---|
| 3116 | CPPFLAGS="$CPPFLAGS -I../common" |
---|
| 3117 | |
---|
| 3118 | |
---|
| 3119 | |
---|
| 3120 | |
---|
| 3121 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
| 3122 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
| 3123 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
| 3124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3125 | else |
---|
| 3126 | # Extract the first word of "grep ggrep" to use in msg output |
---|
| 3127 | if test -z "$GREP"; then |
---|
| 3128 | set dummy grep ggrep; ac_prog_name=$2 |
---|
| 3129 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
| 3130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3131 | else |
---|
| 3132 | ac_path_GREP_found=false |
---|
| 3133 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3135 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3136 | do |
---|
| 3137 | IFS=$as_save_IFS |
---|
| 3138 | test -z "$as_dir" && as_dir=. |
---|
| 3139 | for ac_prog in grep ggrep; do |
---|
| 3140 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3141 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 3142 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
| 3143 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
| 3144 | # Check for GNU $ac_path_GREP |
---|
| 3145 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 3146 | *GNU*) |
---|
| 3147 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 3148 | *) |
---|
| 3149 | ac_count=0 |
---|
| 3150 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
| 3151 | while : |
---|
| 3152 | do |
---|
| 3153 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3154 | mv "conftest.tmp" "conftest.in" |
---|
| 3155 | cp "conftest.in" "conftest.nl" |
---|
| 3156 | echo 'GREP' >> "conftest.nl" |
---|
| 3157 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3158 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 3159 | ac_count=`expr $ac_count + 1` |
---|
| 3160 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 3161 | # Best one so far, save it but keep looking for a better one |
---|
| 3162 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 3163 | ac_path_GREP_max=$ac_count |
---|
| 3164 | fi |
---|
| 3165 | # 10*(2^10) chars as input seems more than enough |
---|
| 3166 | test $ac_count -gt 10 && break |
---|
| 3167 | done |
---|
| 3168 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3169 | esac |
---|
| 3170 | |
---|
| 3171 | |
---|
| 3172 | $ac_path_GREP_found && break 3 |
---|
| 3173 | done |
---|
| 3174 | done |
---|
| 3175 | |
---|
| 3176 | done |
---|
| 3177 | IFS=$as_save_IFS |
---|
| 3178 | |
---|
| 3179 | |
---|
| 3180 | fi |
---|
| 3181 | |
---|
| 3182 | GREP="$ac_cv_path_GREP" |
---|
| 3183 | if test -z "$GREP"; then |
---|
| 3184 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 3185 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 3186 | { (exit 1); exit 1; }; } |
---|
| 3187 | fi |
---|
| 3188 | |
---|
| 3189 | else |
---|
| 3190 | ac_cv_path_GREP=$GREP |
---|
| 3191 | fi |
---|
| 3192 | |
---|
| 3193 | |
---|
| 3194 | fi |
---|
| 3195 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
| 3196 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
| 3197 | GREP="$ac_cv_path_GREP" |
---|
| 3198 | |
---|
| 3199 | |
---|
| 3200 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3201 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
| 3202 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3204 | else |
---|
| 3205 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 3206 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 3207 | else |
---|
| 3208 | # Extract the first word of "egrep" to use in msg output |
---|
| 3209 | if test -z "$EGREP"; then |
---|
| 3210 | set dummy egrep; ac_prog_name=$2 |
---|
| 3211 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3213 | else |
---|
| 3214 | ac_path_EGREP_found=false |
---|
| 3215 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3217 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3218 | do |
---|
| 3219 | IFS=$as_save_IFS |
---|
| 3220 | test -z "$as_dir" && as_dir=. |
---|
| 3221 | for ac_prog in egrep; do |
---|
| 3222 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3223 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 3224 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
| 3225 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
| 3226 | # Check for GNU $ac_path_EGREP |
---|
| 3227 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 3228 | *GNU*) |
---|
| 3229 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 3230 | *) |
---|
| 3231 | ac_count=0 |
---|
| 3232 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
| 3233 | while : |
---|
| 3234 | do |
---|
| 3235 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3236 | mv "conftest.tmp" "conftest.in" |
---|
| 3237 | cp "conftest.in" "conftest.nl" |
---|
| 3238 | echo 'EGREP' >> "conftest.nl" |
---|
| 3239 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3240 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 3241 | ac_count=`expr $ac_count + 1` |
---|
| 3242 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 3243 | # Best one so far, save it but keep looking for a better one |
---|
| 3244 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 3245 | ac_path_EGREP_max=$ac_count |
---|
| 3246 | fi |
---|
| 3247 | # 10*(2^10) chars as input seems more than enough |
---|
| 3248 | test $ac_count -gt 10 && break |
---|
| 3249 | done |
---|
| 3250 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3251 | esac |
---|
| 3252 | |
---|
| 3253 | |
---|
| 3254 | $ac_path_EGREP_found && break 3 |
---|
| 3255 | done |
---|
| 3256 | done |
---|
| 3257 | |
---|
| 3258 | done |
---|
| 3259 | IFS=$as_save_IFS |
---|
| 3260 | |
---|
| 3261 | |
---|
| 3262 | fi |
---|
| 3263 | |
---|
| 3264 | EGREP="$ac_cv_path_EGREP" |
---|
| 3265 | if test -z "$EGREP"; then |
---|
| 3266 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 3267 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 3268 | { (exit 1); exit 1; }; } |
---|
| 3269 | fi |
---|
| 3270 | |
---|
| 3271 | else |
---|
| 3272 | ac_cv_path_EGREP=$EGREP |
---|
| 3273 | fi |
---|
| 3274 | |
---|
| 3275 | |
---|
| 3276 | fi |
---|
| 3277 | fi |
---|
| 3278 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
| 3279 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
| 3280 | EGREP="$ac_cv_path_EGREP" |
---|
| 3281 | |
---|
| 3282 | |
---|
| 3283 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3284 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
| 3285 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3287 | else |
---|
| 3288 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3289 | /* confdefs.h. */ |
---|
| 3290 | _ACEOF |
---|
| 3291 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3292 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3293 | /* end confdefs.h. */ |
---|
| 3294 | #include <stdlib.h> |
---|
| 3295 | #include <stdarg.h> |
---|
| 3296 | #include <string.h> |
---|
| 3297 | #include <float.h> |
---|
| 3298 | |
---|
| 3299 | int |
---|
| 3300 | main () |
---|
| 3301 | { |
---|
| 3302 | |
---|
| 3303 | ; |
---|
| 3304 | return 0; |
---|
| 3305 | } |
---|
| 3306 | _ACEOF |
---|
| 3307 | rm -f conftest.$ac_objext |
---|
| 3308 | if { (ac_try="$ac_compile" |
---|
| 3309 | case "(($ac_try" in |
---|
| 3310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3311 | *) ac_try_echo=$ac_try;; |
---|
| 3312 | esac |
---|
| 3313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3314 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3315 | ac_status=$? |
---|
| 3316 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3317 | rm -f conftest.er1 |
---|
| 3318 | cat conftest.err >&5 |
---|
| 3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3320 | (exit $ac_status); } && { |
---|
| 3321 | test -z "$ac_c_werror_flag" || |
---|
| 3322 | test ! -s conftest.err |
---|
| 3323 | } && test -s conftest.$ac_objext; then |
---|
| 3324 | ac_cv_header_stdc=yes |
---|
| 3325 | else |
---|
| 3326 | echo "$as_me: failed program was:" >&5 |
---|
| 3327 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3328 | |
---|
| 3329 | ac_cv_header_stdc=no |
---|
| 3330 | fi |
---|
| 3331 | |
---|
| 3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3333 | |
---|
| 3334 | if test $ac_cv_header_stdc = yes; then |
---|
| 3335 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3336 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3337 | /* confdefs.h. */ |
---|
| 3338 | _ACEOF |
---|
| 3339 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3340 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3341 | /* end confdefs.h. */ |
---|
| 3342 | #include <string.h> |
---|
| 3343 | |
---|
| 3344 | _ACEOF |
---|
| 3345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3346 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3347 | : |
---|
| 3348 | else |
---|
| 3349 | ac_cv_header_stdc=no |
---|
| 3350 | fi |
---|
| 3351 | rm -f conftest* |
---|
| 3352 | |
---|
| 3353 | fi |
---|
| 3354 | |
---|
| 3355 | if test $ac_cv_header_stdc = yes; then |
---|
| 3356 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3357 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3358 | /* confdefs.h. */ |
---|
| 3359 | _ACEOF |
---|
| 3360 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3362 | /* end confdefs.h. */ |
---|
| 3363 | #include <stdlib.h> |
---|
| 3364 | |
---|
| 3365 | _ACEOF |
---|
| 3366 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3367 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3368 | : |
---|
| 3369 | else |
---|
| 3370 | ac_cv_header_stdc=no |
---|
| 3371 | fi |
---|
| 3372 | rm -f conftest* |
---|
| 3373 | |
---|
| 3374 | fi |
---|
| 3375 | |
---|
| 3376 | if test $ac_cv_header_stdc = yes; then |
---|
| 3377 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3378 | if test "$cross_compiling" = yes; then |
---|
| 3379 | : |
---|
| 3380 | else |
---|
| 3381 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3382 | /* confdefs.h. */ |
---|
| 3383 | _ACEOF |
---|
| 3384 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3386 | /* end confdefs.h. */ |
---|
| 3387 | #include <ctype.h> |
---|
| 3388 | #include <stdlib.h> |
---|
| 3389 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3390 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3391 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3392 | #else |
---|
| 3393 | # define ISLOWER(c) \ |
---|
| 3394 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3395 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3396 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3397 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3398 | #endif |
---|
| 3399 | |
---|
| 3400 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3401 | int |
---|
| 3402 | main () |
---|
| 3403 | { |
---|
| 3404 | int i; |
---|
| 3405 | for (i = 0; i < 256; i++) |
---|
| 3406 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3407 | || toupper (i) != TOUPPER (i)) |
---|
| 3408 | return 2; |
---|
| 3409 | return 0; |
---|
| 3410 | } |
---|
| 3411 | _ACEOF |
---|
| 3412 | rm -f conftest$ac_exeext |
---|
| 3413 | if { (ac_try="$ac_link" |
---|
| 3414 | case "(($ac_try" in |
---|
| 3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3416 | *) ac_try_echo=$ac_try;; |
---|
| 3417 | esac |
---|
| 3418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3419 | (eval "$ac_link") 2>&5 |
---|
| 3420 | ac_status=$? |
---|
| 3421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3422 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3423 | { (case "(($ac_try" in |
---|
| 3424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3425 | *) ac_try_echo=$ac_try;; |
---|
| 3426 | esac |
---|
| 3427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3428 | (eval "$ac_try") 2>&5 |
---|
| 3429 | ac_status=$? |
---|
| 3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3431 | (exit $ac_status); }; }; then |
---|
| 3432 | : |
---|
| 3433 | else |
---|
| 3434 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3435 | echo "$as_me: failed program was:" >&5 |
---|
| 3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3437 | |
---|
| 3438 | ( exit $ac_status ) |
---|
| 3439 | ac_cv_header_stdc=no |
---|
| 3440 | fi |
---|
| 3441 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3442 | fi |
---|
| 3443 | |
---|
| 3444 | |
---|
| 3445 | fi |
---|
| 3446 | fi |
---|
| 3447 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3448 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
| 3449 | if test $ac_cv_header_stdc = yes; then |
---|
| 3450 | |
---|
| 3451 | cat >>confdefs.h <<\_ACEOF |
---|
| 3452 | #define STDC_HEADERS 1 |
---|
| 3453 | _ACEOF |
---|
| 3454 | |
---|
| 3455 | fi |
---|
| 3456 | |
---|
| 3457 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3458 | |
---|
| 3459 | |
---|
| 3460 | |
---|
| 3461 | |
---|
| 3462 | |
---|
| 3463 | |
---|
| 3464 | |
---|
| 3465 | |
---|
| 3466 | |
---|
| 3467 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3468 | inttypes.h stdint.h unistd.h |
---|
| 3469 | do |
---|
| 3470 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 3473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 3474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3475 | else |
---|
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3477 | /* confdefs.h. */ |
---|
| 3478 | _ACEOF |
---|
| 3479 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3481 | /* end confdefs.h. */ |
---|
| 3482 | $ac_includes_default |
---|
| 3483 | |
---|
| 3484 | #include <$ac_header> |
---|
| 3485 | _ACEOF |
---|
| 3486 | rm -f conftest.$ac_objext |
---|
| 3487 | if { (ac_try="$ac_compile" |
---|
| 3488 | case "(($ac_try" in |
---|
| 3489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3490 | *) ac_try_echo=$ac_try;; |
---|
| 3491 | esac |
---|
| 3492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3493 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3494 | ac_status=$? |
---|
| 3495 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3496 | rm -f conftest.er1 |
---|
| 3497 | cat conftest.err >&5 |
---|
| 3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3499 | (exit $ac_status); } && { |
---|
| 3500 | test -z "$ac_c_werror_flag" || |
---|
| 3501 | test ! -s conftest.err |
---|
| 3502 | } && test -s conftest.$ac_objext; then |
---|
| 3503 | eval "$as_ac_Header=yes" |
---|
| 3504 | else |
---|
| 3505 | echo "$as_me: failed program was:" >&5 |
---|
| 3506 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3507 | |
---|
| 3508 | eval "$as_ac_Header=no" |
---|
| 3509 | fi |
---|
| 3510 | |
---|
| 3511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3512 | fi |
---|
| 3513 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 3514 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 3515 | echo "${ECHO_T}$ac_res" >&6; } |
---|
| 3516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3517 | cat >>confdefs.h <<_ACEOF |
---|
| 3518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3519 | _ACEOF |
---|
| 3520 | |
---|
| 3521 | fi |
---|
| 3522 | |
---|
| 3523 | done |
---|
| 3524 | |
---|
| 3525 | |
---|
| 3526 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
---|
| 3527 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
---|
| 3528 | if test "${ac_cv_c_bigendian+set}" = set; then |
---|
| 3529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3530 | else |
---|
| 3531 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
| 3532 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3533 | /* confdefs.h. */ |
---|
| 3534 | _ACEOF |
---|
| 3535 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3537 | /* end confdefs.h. */ |
---|
| 3538 | #include <sys/types.h> |
---|
| 3539 | #include <sys/param.h> |
---|
| 3540 | |
---|
| 3541 | int |
---|
| 3542 | main () |
---|
| 3543 | { |
---|
| 3544 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
---|
| 3545 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
---|
| 3546 | bogus endian macros |
---|
| 3547 | #endif |
---|
| 3548 | |
---|
| 3549 | ; |
---|
| 3550 | return 0; |
---|
| 3551 | } |
---|
| 3552 | _ACEOF |
---|
| 3553 | rm -f conftest.$ac_objext |
---|
| 3554 | if { (ac_try="$ac_compile" |
---|
| 3555 | case "(($ac_try" in |
---|
| 3556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3557 | *) ac_try_echo=$ac_try;; |
---|
| 3558 | esac |
---|
| 3559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3560 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3561 | ac_status=$? |
---|
| 3562 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3563 | rm -f conftest.er1 |
---|
| 3564 | cat conftest.err >&5 |
---|
| 3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3566 | (exit $ac_status); } && { |
---|
| 3567 | test -z "$ac_c_werror_flag" || |
---|
| 3568 | test ! -s conftest.err |
---|
| 3569 | } && test -s conftest.$ac_objext; then |
---|
| 3570 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
| 3571 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3572 | /* confdefs.h. */ |
---|
| 3573 | _ACEOF |
---|
| 3574 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3575 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3576 | /* end confdefs.h. */ |
---|
| 3577 | #include <sys/types.h> |
---|
| 3578 | #include <sys/param.h> |
---|
| 3579 | |
---|
| 3580 | int |
---|
| 3581 | main () |
---|
| 3582 | { |
---|
| 3583 | #if BYTE_ORDER != BIG_ENDIAN |
---|
| 3584 | not big endian |
---|
| 3585 | #endif |
---|
| 3586 | |
---|
| 3587 | ; |
---|
| 3588 | return 0; |
---|
| 3589 | } |
---|
| 3590 | _ACEOF |
---|
| 3591 | rm -f conftest.$ac_objext |
---|
| 3592 | if { (ac_try="$ac_compile" |
---|
| 3593 | case "(($ac_try" in |
---|
| 3594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3595 | *) ac_try_echo=$ac_try;; |
---|
| 3596 | esac |
---|
| 3597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3598 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3599 | ac_status=$? |
---|
| 3600 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3601 | rm -f conftest.er1 |
---|
| 3602 | cat conftest.err >&5 |
---|
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3604 | (exit $ac_status); } && { |
---|
| 3605 | test -z "$ac_c_werror_flag" || |
---|
| 3606 | test ! -s conftest.err |
---|
| 3607 | } && test -s conftest.$ac_objext; then |
---|
| 3608 | ac_cv_c_bigendian=yes |
---|
| 3609 | else |
---|
| 3610 | echo "$as_me: failed program was:" >&5 |
---|
| 3611 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3612 | |
---|
| 3613 | ac_cv_c_bigendian=no |
---|
| 3614 | fi |
---|
| 3615 | |
---|
| 3616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3617 | else |
---|
| 3618 | echo "$as_me: failed program was:" >&5 |
---|
| 3619 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3620 | |
---|
| 3621 | # It does not; compile a test program. |
---|
| 3622 | if test "$cross_compiling" = yes; then |
---|
| 3623 | # try to guess the endianness by grepping values into an object file |
---|
| 3624 | ac_cv_c_bigendian=unknown |
---|
| 3625 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3626 | /* confdefs.h. */ |
---|
| 3627 | _ACEOF |
---|
| 3628 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3630 | /* end confdefs.h. */ |
---|
| 3631 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
| 3632 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
| 3633 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
---|
| 3634 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
| 3635 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
| 3636 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
---|
| 3637 | int |
---|
| 3638 | main () |
---|
| 3639 | { |
---|
| 3640 | _ascii (); _ebcdic (); |
---|
| 3641 | ; |
---|
| 3642 | return 0; |
---|
| 3643 | } |
---|
| 3644 | _ACEOF |
---|
| 3645 | rm -f conftest.$ac_objext |
---|
| 3646 | if { (ac_try="$ac_compile" |
---|
| 3647 | case "(($ac_try" in |
---|
| 3648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3649 | *) ac_try_echo=$ac_try;; |
---|
| 3650 | esac |
---|
| 3651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3652 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3653 | ac_status=$? |
---|
| 3654 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3655 | rm -f conftest.er1 |
---|
| 3656 | cat conftest.err >&5 |
---|
| 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3658 | (exit $ac_status); } && { |
---|
| 3659 | test -z "$ac_c_werror_flag" || |
---|
| 3660 | test ! -s conftest.err |
---|
| 3661 | } && test -s conftest.$ac_objext; then |
---|
| 3662 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
---|
| 3663 | ac_cv_c_bigendian=yes |
---|
| 3664 | fi |
---|
| 3665 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
| 3666 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
| 3667 | ac_cv_c_bigendian=no |
---|
| 3668 | else |
---|
| 3669 | # finding both strings is unlikely to happen, but who knows? |
---|
| 3670 | ac_cv_c_bigendian=unknown |
---|
| 3671 | fi |
---|
| 3672 | fi |
---|
| 3673 | else |
---|
| 3674 | echo "$as_me: failed program was:" >&5 |
---|
| 3675 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3676 | |
---|
| 3677 | |
---|
| 3678 | fi |
---|
| 3679 | |
---|
| 3680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3681 | else |
---|
| 3682 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3683 | /* confdefs.h. */ |
---|
| 3684 | _ACEOF |
---|
| 3685 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3686 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3687 | /* end confdefs.h. */ |
---|
| 3688 | $ac_includes_default |
---|
| 3689 | int |
---|
| 3690 | main () |
---|
| 3691 | { |
---|
| 3692 | |
---|
| 3693 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
| 3694 | union |
---|
| 3695 | { |
---|
| 3696 | long int l; |
---|
| 3697 | char c[sizeof (long int)]; |
---|
| 3698 | } u; |
---|
| 3699 | u.l = 1; |
---|
| 3700 | return u.c[sizeof (long int) - 1] == 1; |
---|
| 3701 | |
---|
| 3702 | ; |
---|
| 3703 | return 0; |
---|
| 3704 | } |
---|
| 3705 | _ACEOF |
---|
| 3706 | rm -f conftest$ac_exeext |
---|
| 3707 | if { (ac_try="$ac_link" |
---|
| 3708 | case "(($ac_try" in |
---|
| 3709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3710 | *) ac_try_echo=$ac_try;; |
---|
| 3711 | esac |
---|
| 3712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3713 | (eval "$ac_link") 2>&5 |
---|
| 3714 | ac_status=$? |
---|
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3717 | { (case "(($ac_try" in |
---|
| 3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3719 | *) ac_try_echo=$ac_try;; |
---|
| 3720 | esac |
---|
| 3721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3722 | (eval "$ac_try") 2>&5 |
---|
| 3723 | ac_status=$? |
---|
| 3724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3725 | (exit $ac_status); }; }; then |
---|
| 3726 | ac_cv_c_bigendian=no |
---|
| 3727 | else |
---|
| 3728 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3729 | echo "$as_me: failed program was:" >&5 |
---|
| 3730 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3731 | |
---|
| 3732 | ( exit $ac_status ) |
---|
| 3733 | ac_cv_c_bigendian=yes |
---|
| 3734 | fi |
---|
| 3735 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3736 | fi |
---|
| 3737 | |
---|
| 3738 | |
---|
| 3739 | fi |
---|
| 3740 | |
---|
| 3741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3742 | fi |
---|
| 3743 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
---|
| 3744 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
---|
| 3745 | case $ac_cv_c_bigendian in |
---|
| 3746 | yes) |
---|
| 3747 | { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5 |
---|
| 3748 | echo "$as_me: error: bigendian is not supported... stopping" >&2;} |
---|
| 3749 | { (exit 1); exit 1; }; } ;; |
---|
| 3750 | no) |
---|
| 3751 | ;; |
---|
| 3752 | *) |
---|
| 3753 | { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5 |
---|
| 3754 | echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;} |
---|
| 3755 | ;; |
---|
| 3756 | esac |
---|
| 3757 | |
---|
| 3758 | |
---|
| 3759 | |
---|
| 3760 | { echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5 |
---|
| 3761 | echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6; } |
---|
| 3762 | pointers_fit_in_ints="no" |
---|
| 3763 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3764 | /* confdefs.h. */ |
---|
| 3765 | _ACEOF |
---|
| 3766 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3768 | /* end confdefs.h. */ |
---|
| 3769 | static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1]; |
---|
| 3770 | int |
---|
| 3771 | main () |
---|
| 3772 | { |
---|
| 3773 | |
---|
| 3774 | ; |
---|
| 3775 | return 0; |
---|
| 3776 | } |
---|
| 3777 | _ACEOF |
---|
| 3778 | rm -f conftest.$ac_objext |
---|
| 3779 | if { (ac_try="$ac_compile" |
---|
| 3780 | case "(($ac_try" in |
---|
| 3781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3782 | *) ac_try_echo=$ac_try;; |
---|
| 3783 | esac |
---|
| 3784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3785 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3786 | ac_status=$? |
---|
| 3787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3788 | rm -f conftest.er1 |
---|
| 3789 | cat conftest.err >&5 |
---|
| 3790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3791 | (exit $ac_status); } && { |
---|
| 3792 | test -z "$ac_c_werror_flag" || |
---|
| 3793 | test ! -s conftest.err |
---|
| 3794 | } && test -s conftest.$ac_objext; then |
---|
| 3795 | pointers_fit_in_ints="yes" |
---|
| 3796 | else |
---|
| 3797 | echo "$as_me: failed program was:" >&5 |
---|
| 3798 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3799 | |
---|
| 3800 | |
---|
| 3801 | |
---|
| 3802 | fi |
---|
| 3803 | |
---|
| 3804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3805 | if test "$pointers_fit_in_ints" = "no" ; then |
---|
| 3806 | CFLAGS="$CFLAGS -m32" |
---|
| 3807 | LDFLAGS="$LDFLAGS -m32" |
---|
| 3808 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3809 | /* confdefs.h. */ |
---|
| 3810 | _ACEOF |
---|
| 3811 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3812 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3813 | /* end confdefs.h. */ |
---|
| 3814 | static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1]; |
---|
| 3815 | int |
---|
| 3816 | main () |
---|
| 3817 | { |
---|
| 3818 | |
---|
| 3819 | ; |
---|
| 3820 | return 0; |
---|
| 3821 | } |
---|
| 3822 | _ACEOF |
---|
| 3823 | rm -f conftest.$ac_objext |
---|
| 3824 | if { (ac_try="$ac_compile" |
---|
| 3825 | case "(($ac_try" in |
---|
| 3826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3827 | *) ac_try_echo=$ac_try;; |
---|
| 3828 | esac |
---|
| 3829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3830 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3831 | ac_status=$? |
---|
| 3832 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3833 | rm -f conftest.er1 |
---|
| 3834 | cat conftest.err >&5 |
---|
| 3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3836 | (exit $ac_status); } && { |
---|
| 3837 | test -z "$ac_c_werror_flag" || |
---|
| 3838 | test ! -s conftest.err |
---|
| 3839 | } && test -s conftest.$ac_objext; then |
---|
| 3840 | pointers_fit_in_ints="yes (with -m32)" |
---|
| 3841 | else |
---|
| 3842 | echo "$as_me: failed program was:" >&5 |
---|
| 3843 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3844 | |
---|
| 3845 | |
---|
| 3846 | |
---|
| 3847 | fi |
---|
| 3848 | |
---|
| 3849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3850 | fi |
---|
| 3851 | { echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5 |
---|
| 3852 | echo "${ECHO_T}$pointers_fit_in_ints" >&6; } |
---|
| 3853 | if test "$pointers_fit_in_ints" = "no" ; then |
---|
| 3854 | { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5 |
---|
| 3855 | echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;} |
---|
| 3856 | { (exit 1); exit 1; }; } |
---|
| 3857 | fi |
---|
| 3858 | |
---|
| 3859 | |
---|
| 3860 | { echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5 |
---|
| 3861 | echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6; } |
---|
| 3862 | OLD_CFLAGS="$CFLAGS" |
---|
| 3863 | CFLAGS="$CFLAGS -Wno-unused-parameter" |
---|
| 3864 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3865 | int foo; |
---|
| 3866 | _ACEOF |
---|
| 3867 | rm -f conftest.$ac_objext |
---|
| 3868 | if { (ac_try="$ac_compile" |
---|
| 3869 | case "(($ac_try" in |
---|
| 3870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3871 | *) ac_try_echo=$ac_try;; |
---|
| 3872 | esac |
---|
| 3873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3874 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3875 | ac_status=$? |
---|
| 3876 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3877 | rm -f conftest.er1 |
---|
| 3878 | cat conftest.err >&5 |
---|
| 3879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3880 | (exit $ac_status); } && { |
---|
| 3881 | test -z "$ac_c_werror_flag" || |
---|
| 3882 | test ! -s conftest.err |
---|
| 3883 | } && test -s conftest.$ac_objext; then |
---|
| 3884 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3885 | echo "${ECHO_T}yes" >&6; } |
---|
| 3886 | else |
---|
| 3887 | echo "$as_me: failed program was:" >&5 |
---|
| 3888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3889 | |
---|
| 3890 | |
---|
| 3891 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3892 | echo "${ECHO_T}no" >&6; } |
---|
| 3893 | CFLAGS="$OLD_CFLAGS" |
---|
| 3894 | |
---|
| 3895 | |
---|
| 3896 | fi |
---|
| 3897 | |
---|
| 3898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3899 | |
---|
| 3900 | |
---|
| 3901 | { echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5 |
---|
| 3902 | echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6; } |
---|
| 3903 | OLD_CFLAGS="$CFLAGS" |
---|
| 3904 | CFLAGS="$CFLAGS -Wno-pointer-sign" |
---|
| 3905 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3906 | int foo; |
---|
| 3907 | _ACEOF |
---|
| 3908 | rm -f conftest.$ac_objext |
---|
| 3909 | if { (ac_try="$ac_compile" |
---|
| 3910 | case "(($ac_try" in |
---|
| 3911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3912 | *) ac_try_echo=$ac_try;; |
---|
| 3913 | esac |
---|
| 3914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3915 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3916 | ac_status=$? |
---|
| 3917 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3918 | rm -f conftest.er1 |
---|
| 3919 | cat conftest.err >&5 |
---|
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3921 | (exit $ac_status); } && { |
---|
| 3922 | test -z "$ac_c_werror_flag" || |
---|
| 3923 | test ! -s conftest.err |
---|
| 3924 | } && test -s conftest.$ac_objext; then |
---|
| 3925 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3926 | echo "${ECHO_T}yes" >&6; } |
---|
| 3927 | else |
---|
| 3928 | echo "$as_me: failed program was:" >&5 |
---|
| 3929 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3930 | |
---|
| 3931 | |
---|
| 3932 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3933 | echo "${ECHO_T}no" >&6; } |
---|
| 3934 | CFLAGS="$OLD_CFLAGS" |
---|
| 3935 | |
---|
| 3936 | |
---|
| 3937 | fi |
---|
| 3938 | |
---|
| 3939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3940 | |
---|
| 3941 | |
---|
| 3942 | { echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5 |
---|
| 3943 | echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6; } |
---|
| 3944 | OLD_CFLAGS="$CFLAGS" |
---|
| 3945 | CFLAGS="$CFLAGS -Wno-switch" |
---|
| 3946 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3947 | int foo; |
---|
| 3948 | _ACEOF |
---|
| 3949 | rm -f conftest.$ac_objext |
---|
| 3950 | if { (ac_try="$ac_compile" |
---|
| 3951 | case "(($ac_try" in |
---|
| 3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3953 | *) ac_try_echo=$ac_try;; |
---|
| 3954 | esac |
---|
| 3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3956 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3957 | ac_status=$? |
---|
| 3958 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3959 | rm -f conftest.er1 |
---|
| 3960 | cat conftest.err >&5 |
---|
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3962 | (exit $ac_status); } && { |
---|
| 3963 | test -z "$ac_c_werror_flag" || |
---|
| 3964 | test ! -s conftest.err |
---|
| 3965 | } && test -s conftest.$ac_objext; then |
---|
| 3966 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3967 | echo "${ECHO_T}yes" >&6; } |
---|
| 3968 | else |
---|
| 3969 | echo "$as_me: failed program was:" >&5 |
---|
| 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3971 | |
---|
| 3972 | |
---|
| 3973 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3974 | echo "${ECHO_T}no" >&6; } |
---|
| 3975 | CFLAGS="$OLD_CFLAGS" |
---|
| 3976 | |
---|
| 3977 | |
---|
| 3978 | fi |
---|
| 3979 | |
---|
| 3980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3981 | |
---|
| 3982 | |
---|
| 3983 | |
---|
| 3984 | ############################################################################### |
---|
| 3985 | # Check for libraries and header files. |
---|
| 3986 | # |
---|
| 3987 | |
---|
| 3988 | |
---|
| 3989 | # |
---|
| 3990 | # setrlimit - used to set the socket limit |
---|
| 3991 | # |
---|
| 3992 | { echo "$as_me:$LINENO: checking for setrlimit" >&5 |
---|
| 3993 | echo $ECHO_N "checking for setrlimit... $ECHO_C" >&6; } |
---|
| 3994 | if test "${ac_cv_func_setrlimit+set}" = set; then |
---|
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3996 | else |
---|
| 3997 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3998 | /* confdefs.h. */ |
---|
| 3999 | _ACEOF |
---|
| 4000 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4001 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4002 | /* end confdefs.h. */ |
---|
| 4003 | /* Define setrlimit to an innocuous variant, in case <limits.h> declares setrlimit. |
---|
| 4004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 4005 | #define setrlimit innocuous_setrlimit |
---|
| 4006 | |
---|
| 4007 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 4008 | which can conflict with char setrlimit (); below. |
---|
| 4009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4010 | <limits.h> exists even on freestanding compilers. */ |
---|
| 4011 | |
---|
| 4012 | #ifdef __STDC__ |
---|
| 4013 | # include <limits.h> |
---|
| 4014 | #else |
---|
| 4015 | # include <assert.h> |
---|
| 4016 | #endif |
---|
| 4017 | |
---|
| 4018 | #undef setrlimit |
---|
| 4019 | |
---|
| 4020 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4021 | Use char because int might match the return type of a GCC |
---|
| 4022 | builtin and then its argument prototype would still apply. */ |
---|
| 4023 | #ifdef __cplusplus |
---|
| 4024 | extern "C" |
---|
| 4025 | #endif |
---|
| 4026 | char setrlimit (); |
---|
| 4027 | /* The GNU C library defines this for functions which it implements |
---|
| 4028 | to always fail with ENOSYS. Some functions are actually named |
---|
| 4029 | something starting with __ and the normal name is an alias. */ |
---|
| 4030 | #if defined __stub_setrlimit || defined __stub___setrlimit |
---|
| 4031 | choke me |
---|
| 4032 | #endif |
---|
| 4033 | |
---|
| 4034 | int |
---|
| 4035 | main () |
---|
| 4036 | { |
---|
| 4037 | return setrlimit (); |
---|
| 4038 | ; |
---|
| 4039 | return 0; |
---|
| 4040 | } |
---|
| 4041 | _ACEOF |
---|
| 4042 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4043 | if { (ac_try="$ac_link" |
---|
| 4044 | case "(($ac_try" in |
---|
| 4045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4046 | *) ac_try_echo=$ac_try;; |
---|
| 4047 | esac |
---|
| 4048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4049 | (eval "$ac_link") 2>conftest.er1 |
---|
| 4050 | ac_status=$? |
---|
| 4051 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4052 | rm -f conftest.er1 |
---|
| 4053 | cat conftest.err >&5 |
---|
| 4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4055 | (exit $ac_status); } && { |
---|
| 4056 | test -z "$ac_c_werror_flag" || |
---|
| 4057 | test ! -s conftest.err |
---|
| 4058 | } && test -s conftest$ac_exeext && |
---|
| 4059 | $as_test_x conftest$ac_exeext; then |
---|
| 4060 | ac_cv_func_setrlimit=yes |
---|
| 4061 | else |
---|
| 4062 | echo "$as_me: failed program was:" >&5 |
---|
| 4063 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4064 | |
---|
| 4065 | ac_cv_func_setrlimit=no |
---|
| 4066 | fi |
---|
| 4067 | |
---|
| 4068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4069 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4070 | fi |
---|
| 4071 | { echo "$as_me:$LINENO: result: $ac_cv_func_setrlimit" >&5 |
---|
| 4072 | echo "${ECHO_T}$ac_cv_func_setrlimit" >&6; } |
---|
| 4073 | if test $ac_cv_func_setrlimit = yes; then |
---|
| 4074 | CFLAGS="$CFLAGS -DHAVE_SETRLIMIT" |
---|
| 4075 | fi |
---|
| 4076 | |
---|
| 4077 | |
---|
| 4078 | |
---|
| 4079 | |
---|
| 4080 | # |
---|
| 4081 | # Memory manager |
---|
| 4082 | # |
---|
| 4083 | case $enable_manager in |
---|
| 4084 | "no") |
---|
| 4085 | CFLAGS="$CFLAGS -DNO_MEMMGR" |
---|
| 4086 | ;; |
---|
| 4087 | "builtin") |
---|
| 4088 | # enabled by default |
---|
| 4089 | ;; |
---|
| 4090 | "memwatch") |
---|
| 4091 | CFLAGS="$CFLAGS -DMEMWATCH" |
---|
| 4092 | if test "${ac_cv_header_memwatch_h+set}" = set; then |
---|
| 4093 | { echo "$as_me:$LINENO: checking for memwatch.h" >&5 |
---|
| 4094 | echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6; } |
---|
| 4095 | if test "${ac_cv_header_memwatch_h+set}" = set; then |
---|
| 4096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4097 | fi |
---|
| 4098 | { echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5 |
---|
| 4099 | echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6; } |
---|
| 4100 | else |
---|
| 4101 | # Is the header compilable? |
---|
| 4102 | { echo "$as_me:$LINENO: checking memwatch.h usability" >&5 |
---|
| 4103 | echo $ECHO_N "checking memwatch.h usability... $ECHO_C" >&6; } |
---|
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4105 | /* confdefs.h. */ |
---|
| 4106 | _ACEOF |
---|
| 4107 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4108 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4109 | /* end confdefs.h. */ |
---|
| 4110 | $ac_includes_default |
---|
| 4111 | #include <memwatch.h> |
---|
| 4112 | _ACEOF |
---|
| 4113 | rm -f conftest.$ac_objext |
---|
| 4114 | if { (ac_try="$ac_compile" |
---|
| 4115 | case "(($ac_try" in |
---|
| 4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4117 | *) ac_try_echo=$ac_try;; |
---|
| 4118 | esac |
---|
| 4119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4120 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4121 | ac_status=$? |
---|
| 4122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4123 | rm -f conftest.er1 |
---|
| 4124 | cat conftest.err >&5 |
---|
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4126 | (exit $ac_status); } && { |
---|
| 4127 | test -z "$ac_c_werror_flag" || |
---|
| 4128 | test ! -s conftest.err |
---|
| 4129 | } && test -s conftest.$ac_objext; then |
---|
| 4130 | ac_header_compiler=yes |
---|
| 4131 | else |
---|
| 4132 | echo "$as_me: failed program was:" >&5 |
---|
| 4133 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4134 | |
---|
| 4135 | ac_header_compiler=no |
---|
| 4136 | fi |
---|
| 4137 | |
---|
| 4138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4139 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4140 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4141 | |
---|
| 4142 | # Is the header present? |
---|
| 4143 | { echo "$as_me:$LINENO: checking memwatch.h presence" >&5 |
---|
| 4144 | echo $ECHO_N "checking memwatch.h presence... $ECHO_C" >&6; } |
---|
| 4145 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4146 | /* confdefs.h. */ |
---|
| 4147 | _ACEOF |
---|
| 4148 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4150 | /* end confdefs.h. */ |
---|
| 4151 | #include <memwatch.h> |
---|
| 4152 | _ACEOF |
---|
| 4153 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4154 | case "(($ac_try" in |
---|
| 4155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4156 | *) ac_try_echo=$ac_try;; |
---|
| 4157 | esac |
---|
| 4158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4159 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4160 | ac_status=$? |
---|
| 4161 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4162 | rm -f conftest.er1 |
---|
| 4163 | cat conftest.err >&5 |
---|
| 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4165 | (exit $ac_status); } >/dev/null && { |
---|
| 4166 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4167 | test ! -s conftest.err |
---|
| 4168 | }; then |
---|
| 4169 | ac_header_preproc=yes |
---|
| 4170 | else |
---|
| 4171 | echo "$as_me: failed program was:" >&5 |
---|
| 4172 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4173 | |
---|
| 4174 | ac_header_preproc=no |
---|
| 4175 | fi |
---|
| 4176 | |
---|
| 4177 | rm -f conftest.err conftest.$ac_ext |
---|
| 4178 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4179 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
| 4180 | |
---|
| 4181 | # So? What about this header? |
---|
| 4182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4183 | yes:no: ) |
---|
| 4184 | { echo "$as_me:$LINENO: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4185 | echo "$as_me: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4186 | { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the compiler's result" >&5 |
---|
| 4187 | echo "$as_me: WARNING: memwatch.h: proceeding with the compiler's result" >&2;} |
---|
| 4188 | ac_header_preproc=yes |
---|
| 4189 | ;; |
---|
| 4190 | no:yes:* ) |
---|
| 4191 | { echo "$as_me:$LINENO: WARNING: memwatch.h: present but cannot be compiled" >&5 |
---|
| 4192 | echo "$as_me: WARNING: memwatch.h: present but cannot be compiled" >&2;} |
---|
| 4193 | { echo "$as_me:$LINENO: WARNING: memwatch.h: check for missing prerequisite headers?" >&5 |
---|
| 4194 | echo "$as_me: WARNING: memwatch.h: check for missing prerequisite headers?" >&2;} |
---|
| 4195 | { echo "$as_me:$LINENO: WARNING: memwatch.h: see the Autoconf documentation" >&5 |
---|
| 4196 | echo "$as_me: WARNING: memwatch.h: see the Autoconf documentation" >&2;} |
---|
| 4197 | { echo "$as_me:$LINENO: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4198 | echo "$as_me: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4199 | { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the preprocessor's result" >&5 |
---|
| 4200 | echo "$as_me: WARNING: memwatch.h: proceeding with the preprocessor's result" >&2;} |
---|
| 4201 | { echo "$as_me:$LINENO: WARNING: memwatch.h: in the future, the compiler will take precedence" >&5 |
---|
| 4202 | echo "$as_me: WARNING: memwatch.h: in the future, the compiler will take precedence" >&2;} |
---|
| 4203 | |
---|
| 4204 | ;; |
---|
| 4205 | esac |
---|
| 4206 | { echo "$as_me:$LINENO: checking for memwatch.h" >&5 |
---|
| 4207 | echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6; } |
---|
| 4208 | if test "${ac_cv_header_memwatch_h+set}" = set; then |
---|
| 4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4210 | else |
---|
| 4211 | ac_cv_header_memwatch_h=$ac_header_preproc |
---|
| 4212 | fi |
---|
| 4213 | { echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5 |
---|
| 4214 | echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6; } |
---|
| 4215 | |
---|
| 4216 | fi |
---|
| 4217 | if test $ac_cv_header_memwatch_h = yes; then |
---|
| 4218 | : |
---|
| 4219 | else |
---|
| 4220 | { { echo "$as_me:$LINENO: error: memwatch header not found... stopping" >&5 |
---|
| 4221 | echo "$as_me: error: memwatch header not found... stopping" >&2;} |
---|
| 4222 | { (exit 1); exit 1; }; } |
---|
| 4223 | fi |
---|
| 4224 | |
---|
| 4225 | |
---|
| 4226 | ;; |
---|
| 4227 | "dmalloc") |
---|
| 4228 | CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK" |
---|
| 4229 | LIBS="$LIBS -ldmalloc" |
---|
| 4230 | if test "${ac_cv_header_dmalloc_h+set}" = set; then |
---|
| 4231 | { echo "$as_me:$LINENO: checking for dmalloc.h" >&5 |
---|
| 4232 | echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; } |
---|
| 4233 | if test "${ac_cv_header_dmalloc_h+set}" = set; then |
---|
| 4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4235 | fi |
---|
| 4236 | { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5 |
---|
| 4237 | echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; } |
---|
| 4238 | else |
---|
| 4239 | # Is the header compilable? |
---|
| 4240 | { echo "$as_me:$LINENO: checking dmalloc.h usability" >&5 |
---|
| 4241 | echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6; } |
---|
| 4242 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4243 | /* confdefs.h. */ |
---|
| 4244 | _ACEOF |
---|
| 4245 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4247 | /* end confdefs.h. */ |
---|
| 4248 | $ac_includes_default |
---|
| 4249 | #include <dmalloc.h> |
---|
| 4250 | _ACEOF |
---|
| 4251 | rm -f conftest.$ac_objext |
---|
| 4252 | if { (ac_try="$ac_compile" |
---|
| 4253 | case "(($ac_try" in |
---|
| 4254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4255 | *) ac_try_echo=$ac_try;; |
---|
| 4256 | esac |
---|
| 4257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4258 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4259 | ac_status=$? |
---|
| 4260 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4261 | rm -f conftest.er1 |
---|
| 4262 | cat conftest.err >&5 |
---|
| 4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4264 | (exit $ac_status); } && { |
---|
| 4265 | test -z "$ac_c_werror_flag" || |
---|
| 4266 | test ! -s conftest.err |
---|
| 4267 | } && test -s conftest.$ac_objext; then |
---|
| 4268 | ac_header_compiler=yes |
---|
| 4269 | else |
---|
| 4270 | echo "$as_me: failed program was:" >&5 |
---|
| 4271 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4272 | |
---|
| 4273 | ac_header_compiler=no |
---|
| 4274 | fi |
---|
| 4275 | |
---|
| 4276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4277 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4278 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4279 | |
---|
| 4280 | # Is the header present? |
---|
| 4281 | { echo "$as_me:$LINENO: checking dmalloc.h presence" >&5 |
---|
| 4282 | echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6; } |
---|
| 4283 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4284 | /* confdefs.h. */ |
---|
| 4285 | _ACEOF |
---|
| 4286 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4287 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4288 | /* end confdefs.h. */ |
---|
| 4289 | #include <dmalloc.h> |
---|
| 4290 | _ACEOF |
---|
| 4291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4292 | case "(($ac_try" in |
---|
| 4293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4294 | *) ac_try_echo=$ac_try;; |
---|
| 4295 | esac |
---|
| 4296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4298 | ac_status=$? |
---|
| 4299 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4300 | rm -f conftest.er1 |
---|
| 4301 | cat conftest.err >&5 |
---|
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4303 | (exit $ac_status); } >/dev/null && { |
---|
| 4304 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4305 | test ! -s conftest.err |
---|
| 4306 | }; then |
---|
| 4307 | ac_header_preproc=yes |
---|
| 4308 | else |
---|
| 4309 | echo "$as_me: failed program was:" >&5 |
---|
| 4310 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4311 | |
---|
| 4312 | ac_header_preproc=no |
---|
| 4313 | fi |
---|
| 4314 | |
---|
| 4315 | rm -f conftest.err conftest.$ac_ext |
---|
| 4316 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4317 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
| 4318 | |
---|
| 4319 | # So? What about this header? |
---|
| 4320 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4321 | yes:no: ) |
---|
| 4322 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4323 | echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4324 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5 |
---|
| 4325 | echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;} |
---|
| 4326 | ac_header_preproc=yes |
---|
| 4327 | ;; |
---|
| 4328 | no:yes:* ) |
---|
| 4329 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5 |
---|
| 4330 | echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;} |
---|
| 4331 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5 |
---|
| 4332 | echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;} |
---|
| 4333 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5 |
---|
| 4334 | echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;} |
---|
| 4335 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4336 | echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4337 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5 |
---|
| 4338 | echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;} |
---|
| 4339 | { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5 |
---|
| 4340 | echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;} |
---|
| 4341 | |
---|
| 4342 | ;; |
---|
| 4343 | esac |
---|
| 4344 | { echo "$as_me:$LINENO: checking for dmalloc.h" >&5 |
---|
| 4345 | echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; } |
---|
| 4346 | if test "${ac_cv_header_dmalloc_h+set}" = set; then |
---|
| 4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4348 | else |
---|
| 4349 | ac_cv_header_dmalloc_h=$ac_header_preproc |
---|
| 4350 | fi |
---|
| 4351 | { echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5 |
---|
| 4352 | echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; } |
---|
| 4353 | |
---|
| 4354 | fi |
---|
| 4355 | if test $ac_cv_header_dmalloc_h = yes; then |
---|
| 4356 | : |
---|
| 4357 | else |
---|
| 4358 | { { echo "$as_me:$LINENO: error: dmalloc header not found... stopping" >&5 |
---|
| 4359 | echo "$as_me: error: dmalloc header not found... stopping" >&2;} |
---|
| 4360 | { (exit 1); exit 1; }; } |
---|
| 4361 | fi |
---|
| 4362 | |
---|
| 4363 | |
---|
| 4364 | ;; |
---|
| 4365 | "gcollect") |
---|
| 4366 | CFLAGS="$CFLAGS -DGCOLLECT" |
---|
| 4367 | LIBS="$LIBS -lgc" |
---|
| 4368 | if test "${ac_cv_header_gc_h+set}" = set; then |
---|
| 4369 | { echo "$as_me:$LINENO: checking for gc.h" >&5 |
---|
| 4370 | echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; } |
---|
| 4371 | if test "${ac_cv_header_gc_h+set}" = set; then |
---|
| 4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4373 | fi |
---|
| 4374 | { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5 |
---|
| 4375 | echo "${ECHO_T}$ac_cv_header_gc_h" >&6; } |
---|
| 4376 | else |
---|
| 4377 | # Is the header compilable? |
---|
| 4378 | { echo "$as_me:$LINENO: checking gc.h usability" >&5 |
---|
| 4379 | echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6; } |
---|
| 4380 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4381 | /* confdefs.h. */ |
---|
| 4382 | _ACEOF |
---|
| 4383 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4384 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4385 | /* end confdefs.h. */ |
---|
| 4386 | $ac_includes_default |
---|
| 4387 | #include <gc.h> |
---|
| 4388 | _ACEOF |
---|
| 4389 | rm -f conftest.$ac_objext |
---|
| 4390 | if { (ac_try="$ac_compile" |
---|
| 4391 | case "(($ac_try" in |
---|
| 4392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4393 | *) ac_try_echo=$ac_try;; |
---|
| 4394 | esac |
---|
| 4395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4396 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4397 | ac_status=$? |
---|
| 4398 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4399 | rm -f conftest.er1 |
---|
| 4400 | cat conftest.err >&5 |
---|
| 4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4402 | (exit $ac_status); } && { |
---|
| 4403 | test -z "$ac_c_werror_flag" || |
---|
| 4404 | test ! -s conftest.err |
---|
| 4405 | } && test -s conftest.$ac_objext; then |
---|
| 4406 | ac_header_compiler=yes |
---|
| 4407 | else |
---|
| 4408 | echo "$as_me: failed program was:" >&5 |
---|
| 4409 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4410 | |
---|
| 4411 | ac_header_compiler=no |
---|
| 4412 | fi |
---|
| 4413 | |
---|
| 4414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4415 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4416 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4417 | |
---|
| 4418 | # Is the header present? |
---|
| 4419 | { echo "$as_me:$LINENO: checking gc.h presence" >&5 |
---|
| 4420 | echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6; } |
---|
| 4421 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4422 | /* confdefs.h. */ |
---|
| 4423 | _ACEOF |
---|
| 4424 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4425 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4426 | /* end confdefs.h. */ |
---|
| 4427 | #include <gc.h> |
---|
| 4428 | _ACEOF |
---|
| 4429 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4430 | case "(($ac_try" in |
---|
| 4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4432 | *) ac_try_echo=$ac_try;; |
---|
| 4433 | esac |
---|
| 4434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4435 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4436 | ac_status=$? |
---|
| 4437 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4438 | rm -f conftest.er1 |
---|
| 4439 | cat conftest.err >&5 |
---|
| 4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4441 | (exit $ac_status); } >/dev/null && { |
---|
| 4442 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4443 | test ! -s conftest.err |
---|
| 4444 | }; then |
---|
| 4445 | ac_header_preproc=yes |
---|
| 4446 | else |
---|
| 4447 | echo "$as_me: failed program was:" >&5 |
---|
| 4448 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4449 | |
---|
| 4450 | ac_header_preproc=no |
---|
| 4451 | fi |
---|
| 4452 | |
---|
| 4453 | rm -f conftest.err conftest.$ac_ext |
---|
| 4454 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4455 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
| 4456 | |
---|
| 4457 | # So? What about this header? |
---|
| 4458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4459 | yes:no: ) |
---|
| 4460 | { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4461 | echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4462 | { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5 |
---|
| 4463 | echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;} |
---|
| 4464 | ac_header_preproc=yes |
---|
| 4465 | ;; |
---|
| 4466 | no:yes:* ) |
---|
| 4467 | { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5 |
---|
| 4468 | echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;} |
---|
| 4469 | { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5 |
---|
| 4470 | echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;} |
---|
| 4471 | { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5 |
---|
| 4472 | echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;} |
---|
| 4473 | { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4474 | echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4475 | { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5 |
---|
| 4476 | echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;} |
---|
| 4477 | { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5 |
---|
| 4478 | echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;} |
---|
| 4479 | |
---|
| 4480 | ;; |
---|
| 4481 | esac |
---|
| 4482 | { echo "$as_me:$LINENO: checking for gc.h" >&5 |
---|
| 4483 | echo $ECHO_N "checking for gc.h... $ECHO_C" >&6; } |
---|
| 4484 | if test "${ac_cv_header_gc_h+set}" = set; then |
---|
| 4485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4486 | else |
---|
| 4487 | ac_cv_header_gc_h=$ac_header_preproc |
---|
| 4488 | fi |
---|
| 4489 | { echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5 |
---|
| 4490 | echo "${ECHO_T}$ac_cv_header_gc_h" >&6; } |
---|
| 4491 | |
---|
| 4492 | fi |
---|
| 4493 | if test $ac_cv_header_gc_h = yes; then |
---|
| 4494 | : |
---|
| 4495 | else |
---|
| 4496 | { { echo "$as_me:$LINENO: error: gcollect header not found... stopping" >&5 |
---|
| 4497 | echo "$as_me: error: gcollect header not found... stopping" >&2;} |
---|
| 4498 | { (exit 1); exit 1; }; } |
---|
| 4499 | fi |
---|
| 4500 | |
---|
| 4501 | |
---|
| 4502 | ;; |
---|
| 4503 | "bcheck") |
---|
| 4504 | CFLAGS="$CFLAGS -DBCHECK" |
---|
| 4505 | ;; |
---|
| 4506 | esac |
---|
| 4507 | |
---|
| 4508 | |
---|
| 4509 | # |
---|
| 4510 | # Packetver |
---|
| 4511 | # |
---|
| 4512 | if test -n "$enable_packetver" ; then |
---|
| 4513 | CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver" |
---|
| 4514 | fi |
---|
| 4515 | |
---|
| 4516 | |
---|
| 4517 | # |
---|
| 4518 | # Mapregsql |
---|
| 4519 | # |
---|
| 4520 | if test "$enable_mapregsql" = "yes" ; then |
---|
| 4521 | CFLAGS="$CFLAGS -DMAPREGSQL" |
---|
| 4522 | fi |
---|
| 4523 | |
---|
| 4524 | |
---|
| 4525 | # |
---|
| 4526 | # Debug |
---|
| 4527 | # |
---|
| 4528 | if test "$enable_debug" = "yes" ; then |
---|
| 4529 | CFLAGS="$CFLAGS -g -DDEBUG" |
---|
| 4530 | fi |
---|
| 4531 | |
---|
| 4532 | |
---|
| 4533 | # |
---|
| 4534 | # zlib library (required) |
---|
| 4535 | # |
---|
| 4536 | if test -n "${ZLIB_HOME}" ; then |
---|
| 4537 | LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
---|
| 4538 | CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
---|
| 4539 | fi |
---|
| 4540 | |
---|
| 4541 | { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
---|
| 4542 | echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } |
---|
| 4543 | if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
---|
| 4544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4545 | else |
---|
| 4546 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4547 | LIBS="-lz $LIBS" |
---|
| 4548 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4549 | /* confdefs.h. */ |
---|
| 4550 | _ACEOF |
---|
| 4551 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4552 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4553 | /* end confdefs.h. */ |
---|
| 4554 | |
---|
| 4555 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4556 | Use char because int might match the return type of a GCC |
---|
| 4557 | builtin and then its argument prototype would still apply. */ |
---|
| 4558 | #ifdef __cplusplus |
---|
| 4559 | extern "C" |
---|
| 4560 | #endif |
---|
| 4561 | char inflateEnd (); |
---|
| 4562 | int |
---|
| 4563 | main () |
---|
| 4564 | { |
---|
| 4565 | return inflateEnd (); |
---|
| 4566 | ; |
---|
| 4567 | return 0; |
---|
| 4568 | } |
---|
| 4569 | _ACEOF |
---|
| 4570 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4571 | if { (ac_try="$ac_link" |
---|
| 4572 | case "(($ac_try" in |
---|
| 4573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4574 | *) ac_try_echo=$ac_try;; |
---|
| 4575 | esac |
---|
| 4576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4577 | (eval "$ac_link") 2>conftest.er1 |
---|
| 4578 | ac_status=$? |
---|
| 4579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4580 | rm -f conftest.er1 |
---|
| 4581 | cat conftest.err >&5 |
---|
| 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4583 | (exit $ac_status); } && { |
---|
| 4584 | test -z "$ac_c_werror_flag" || |
---|
| 4585 | test ! -s conftest.err |
---|
| 4586 | } && test -s conftest$ac_exeext && |
---|
| 4587 | $as_test_x conftest$ac_exeext; then |
---|
| 4588 | ac_cv_lib_z_inflateEnd=yes |
---|
| 4589 | else |
---|
| 4590 | echo "$as_me: failed program was:" >&5 |
---|
| 4591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4592 | |
---|
| 4593 | ac_cv_lib_z_inflateEnd=no |
---|
| 4594 | fi |
---|
| 4595 | |
---|
| 4596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4597 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4598 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4599 | fi |
---|
| 4600 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
---|
| 4601 | echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } |
---|
| 4602 | if test $ac_cv_lib_z_inflateEnd = yes; then |
---|
| 4603 | cat >>confdefs.h <<_ACEOF |
---|
| 4604 | #define HAVE_LIBZ 1 |
---|
| 4605 | _ACEOF |
---|
| 4606 | |
---|
| 4607 | LIBS="-lz $LIBS" |
---|
| 4608 | |
---|
| 4609 | else |
---|
| 4610 | { { echo "$as_me:$LINENO: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&5 |
---|
| 4611 | echo "$as_me: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&2;} |
---|
| 4612 | { (exit 1); exit 1; }; } |
---|
| 4613 | fi |
---|
| 4614 | |
---|
| 4615 | if test "${ac_cv_header_zlib_h+set}" = set; then |
---|
| 4616 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
---|
| 4617 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
---|
| 4618 | if test "${ac_cv_header_zlib_h+set}" = set; then |
---|
| 4619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4620 | fi |
---|
| 4621 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
---|
| 4622 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
---|
| 4623 | else |
---|
| 4624 | # Is the header compilable? |
---|
| 4625 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
---|
| 4626 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } |
---|
| 4627 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4628 | /* confdefs.h. */ |
---|
| 4629 | _ACEOF |
---|
| 4630 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4631 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4632 | /* end confdefs.h. */ |
---|
| 4633 | $ac_includes_default |
---|
| 4634 | #include <zlib.h> |
---|
| 4635 | _ACEOF |
---|
| 4636 | rm -f conftest.$ac_objext |
---|
| 4637 | if { (ac_try="$ac_compile" |
---|
| 4638 | case "(($ac_try" in |
---|
| 4639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4640 | *) ac_try_echo=$ac_try;; |
---|
| 4641 | esac |
---|
| 4642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4643 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4644 | ac_status=$? |
---|
| 4645 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4646 | rm -f conftest.er1 |
---|
| 4647 | cat conftest.err >&5 |
---|
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4649 | (exit $ac_status); } && { |
---|
| 4650 | test -z "$ac_c_werror_flag" || |
---|
| 4651 | test ! -s conftest.err |
---|
| 4652 | } && test -s conftest.$ac_objext; then |
---|
| 4653 | ac_header_compiler=yes |
---|
| 4654 | else |
---|
| 4655 | echo "$as_me: failed program was:" >&5 |
---|
| 4656 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4657 | |
---|
| 4658 | ac_header_compiler=no |
---|
| 4659 | fi |
---|
| 4660 | |
---|
| 4661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4662 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4663 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4664 | |
---|
| 4665 | # Is the header present? |
---|
| 4666 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
---|
| 4667 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } |
---|
| 4668 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4669 | /* confdefs.h. */ |
---|
| 4670 | _ACEOF |
---|
| 4671 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4673 | /* end confdefs.h. */ |
---|
| 4674 | #include <zlib.h> |
---|
| 4675 | _ACEOF |
---|
| 4676 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4677 | case "(($ac_try" in |
---|
| 4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4679 | *) ac_try_echo=$ac_try;; |
---|
| 4680 | esac |
---|
| 4681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4683 | ac_status=$? |
---|
| 4684 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4685 | rm -f conftest.er1 |
---|
| 4686 | cat conftest.err >&5 |
---|
| 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4688 | (exit $ac_status); } >/dev/null && { |
---|
| 4689 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4690 | test ! -s conftest.err |
---|
| 4691 | }; then |
---|
| 4692 | ac_header_preproc=yes |
---|
| 4693 | else |
---|
| 4694 | echo "$as_me: failed program was:" >&5 |
---|
| 4695 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4696 | |
---|
| 4697 | ac_header_preproc=no |
---|
| 4698 | fi |
---|
| 4699 | |
---|
| 4700 | rm -f conftest.err conftest.$ac_ext |
---|
| 4701 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4702 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
| 4703 | |
---|
| 4704 | # So? What about this header? |
---|
| 4705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4706 | yes:no: ) |
---|
| 4707 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4708 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4709 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
---|
| 4710 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
---|
| 4711 | ac_header_preproc=yes |
---|
| 4712 | ;; |
---|
| 4713 | no:yes:* ) |
---|
| 4714 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
---|
| 4715 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
---|
| 4716 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
---|
| 4717 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
---|
| 4718 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
---|
| 4719 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
---|
| 4720 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4721 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4722 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
---|
| 4723 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
---|
| 4724 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
---|
| 4725 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
---|
| 4726 | |
---|
| 4727 | ;; |
---|
| 4728 | esac |
---|
| 4729 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
---|
| 4730 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
---|
| 4731 | if test "${ac_cv_header_zlib_h+set}" = set; then |
---|
| 4732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4733 | else |
---|
| 4734 | ac_cv_header_zlib_h=$ac_header_preproc |
---|
| 4735 | fi |
---|
| 4736 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
---|
| 4737 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
---|
| 4738 | |
---|
| 4739 | fi |
---|
| 4740 | if test $ac_cv_header_zlib_h = yes; then |
---|
| 4741 | : |
---|
| 4742 | else |
---|
| 4743 | { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5 |
---|
| 4744 | echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;} |
---|
| 4745 | { (exit 1); exit 1; }; } |
---|
| 4746 | fi |
---|
| 4747 | |
---|
| 4748 | |
---|
| 4749 | |
---|
| 4750 | |
---|
| 4751 | # |
---|
| 4752 | # math library (required) |
---|
| 4753 | # |
---|
| 4754 | |
---|
| 4755 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
---|
| 4756 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } |
---|
| 4757 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
---|
| 4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4759 | else |
---|
| 4760 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4761 | LIBS="-lm $LIBS" |
---|
| 4762 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4763 | /* confdefs.h. */ |
---|
| 4764 | _ACEOF |
---|
| 4765 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4766 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4767 | /* end confdefs.h. */ |
---|
| 4768 | |
---|
| 4769 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4770 | Use char because int might match the return type of a GCC |
---|
| 4771 | builtin and then its argument prototype would still apply. */ |
---|
| 4772 | #ifdef __cplusplus |
---|
| 4773 | extern "C" |
---|
| 4774 | #endif |
---|
| 4775 | char sqrt (); |
---|
| 4776 | int |
---|
| 4777 | main () |
---|
| 4778 | { |
---|
| 4779 | return sqrt (); |
---|
| 4780 | ; |
---|
| 4781 | return 0; |
---|
| 4782 | } |
---|
| 4783 | _ACEOF |
---|
| 4784 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4785 | if { (ac_try="$ac_link" |
---|
| 4786 | case "(($ac_try" in |
---|
| 4787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4788 | *) ac_try_echo=$ac_try;; |
---|
| 4789 | esac |
---|
| 4790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4791 | (eval "$ac_link") 2>conftest.er1 |
---|
| 4792 | ac_status=$? |
---|
| 4793 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4794 | rm -f conftest.er1 |
---|
| 4795 | cat conftest.err >&5 |
---|
| 4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4797 | (exit $ac_status); } && { |
---|
| 4798 | test -z "$ac_c_werror_flag" || |
---|
| 4799 | test ! -s conftest.err |
---|
| 4800 | } && test -s conftest$ac_exeext && |
---|
| 4801 | $as_test_x conftest$ac_exeext; then |
---|
| 4802 | ac_cv_lib_m_sqrt=yes |
---|
| 4803 | else |
---|
| 4804 | echo "$as_me: failed program was:" >&5 |
---|
| 4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4806 | |
---|
| 4807 | ac_cv_lib_m_sqrt=no |
---|
| 4808 | fi |
---|
| 4809 | |
---|
| 4810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4811 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4812 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4813 | fi |
---|
| 4814 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
---|
| 4815 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } |
---|
| 4816 | if test $ac_cv_lib_m_sqrt = yes; then |
---|
| 4817 | cat >>confdefs.h <<_ACEOF |
---|
| 4818 | #define HAVE_LIBM 1 |
---|
| 4819 | _ACEOF |
---|
| 4820 | |
---|
| 4821 | LIBS="-lm $LIBS" |
---|
| 4822 | |
---|
| 4823 | else |
---|
| 4824 | { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5 |
---|
| 4825 | echo "$as_me: error: math library not found... stopping" >&2;} |
---|
| 4826 | { (exit 1); exit 1; }; } |
---|
| 4827 | fi |
---|
| 4828 | |
---|
| 4829 | |
---|
| 4830 | |
---|
| 4831 | # |
---|
| 4832 | # clock_gettime (rt on Debian) |
---|
| 4833 | # |
---|
| 4834 | |
---|
| 4835 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
---|
| 4836 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
---|
| 4837 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
---|
| 4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4839 | else |
---|
| 4840 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4841 | LIBS="-lrt $LIBS" |
---|
| 4842 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4843 | /* confdefs.h. */ |
---|
| 4844 | _ACEOF |
---|
| 4845 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4846 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4847 | /* end confdefs.h. */ |
---|
| 4848 | |
---|
| 4849 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4850 | Use char because int might match the return type of a GCC |
---|
| 4851 | builtin and then its argument prototype would still apply. */ |
---|
| 4852 | #ifdef __cplusplus |
---|
| 4853 | extern "C" |
---|
| 4854 | #endif |
---|
| 4855 | char clock_gettime (); |
---|
| 4856 | int |
---|
| 4857 | main () |
---|
| 4858 | { |
---|
| 4859 | return clock_gettime (); |
---|
| 4860 | ; |
---|
| 4861 | return 0; |
---|
| 4862 | } |
---|
| 4863 | _ACEOF |
---|
| 4864 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4865 | if { (ac_try="$ac_link" |
---|
| 4866 | case "(($ac_try" in |
---|
| 4867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4868 | *) ac_try_echo=$ac_try;; |
---|
| 4869 | esac |
---|
| 4870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4871 | (eval "$ac_link") 2>conftest.er1 |
---|
| 4872 | ac_status=$? |
---|
| 4873 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4874 | rm -f conftest.er1 |
---|
| 4875 | cat conftest.err >&5 |
---|
| 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4877 | (exit $ac_status); } && { |
---|
| 4878 | test -z "$ac_c_werror_flag" || |
---|
| 4879 | test ! -s conftest.err |
---|
| 4880 | } && test -s conftest$ac_exeext && |
---|
| 4881 | $as_test_x conftest$ac_exeext; then |
---|
| 4882 | ac_cv_lib_rt_clock_gettime=yes |
---|
| 4883 | else |
---|
| 4884 | echo "$as_me: failed program was:" >&5 |
---|
| 4885 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4886 | |
---|
| 4887 | ac_cv_lib_rt_clock_gettime=no |
---|
| 4888 | fi |
---|
| 4889 | |
---|
| 4890 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4891 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4892 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4893 | fi |
---|
| 4894 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
---|
| 4895 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
---|
| 4896 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
---|
| 4897 | cat >>confdefs.h <<_ACEOF |
---|
| 4898 | #define HAVE_LIBRT 1 |
---|
| 4899 | _ACEOF |
---|
| 4900 | |
---|
| 4901 | LIBS="-lrt $LIBS" |
---|
| 4902 | |
---|
| 4903 | fi |
---|
| 4904 | |
---|
| 4905 | |
---|
| 4906 | |
---|
| 4907 | # |
---|
| 4908 | # MySQL library (optional) |
---|
| 4909 | # |
---|
| 4910 | |
---|
| 4911 | if test "$want_mysql" = "no" ; then |
---|
| 4912 | MYSQL_VERSION="" |
---|
| 4913 | MYSQL_CFLAGS="" |
---|
| 4914 | MYSQL_LIBS="" |
---|
| 4915 | { echo "$as_me:$LINENO: ignoring MySQL (optional)" >&5 |
---|
| 4916 | echo "$as_me: ignoring MySQL (optional)" >&6;} |
---|
| 4917 | else |
---|
| 4918 | if test -z "$MYSQL_CONFIG_HOME"; then |
---|
| 4919 | # Extract the first word of "mysql_config", so it can be a program name with args. |
---|
| 4920 | set dummy mysql_config; ac_word=$2 |
---|
| 4921 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 4923 | if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then |
---|
| 4924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4925 | else |
---|
| 4926 | case $MYSQL_CONFIG_HOME in |
---|
| 4927 | [\\/]* | ?:[\\/]*) |
---|
| 4928 | ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path. |
---|
| 4929 | ;; |
---|
| 4930 | *) |
---|
| 4931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4932 | for as_dir in $PATH |
---|
| 4933 | do |
---|
| 4934 | IFS=$as_save_IFS |
---|
| 4935 | test -z "$as_dir" && as_dir=. |
---|
| 4936 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 4938 | ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4940 | break 2 |
---|
| 4941 | fi |
---|
| 4942 | done |
---|
| 4943 | done |
---|
| 4944 | IFS=$as_save_IFS |
---|
| 4945 | |
---|
| 4946 | test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no" |
---|
| 4947 | ;; |
---|
| 4948 | esac |
---|
| 4949 | fi |
---|
| 4950 | MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME |
---|
| 4951 | if test -n "$MYSQL_CONFIG_HOME"; then |
---|
| 4952 | { echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5 |
---|
| 4953 | echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6; } |
---|
| 4954 | else |
---|
| 4955 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4956 | echo "${ECHO_T}no" >&6; } |
---|
| 4957 | fi |
---|
| 4958 | |
---|
| 4959 | |
---|
| 4960 | fi |
---|
| 4961 | |
---|
| 4962 | if test "$MYSQL_CONFIG_HOME" != "no" ; then |
---|
| 4963 | MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`" |
---|
| 4964 | if test "$manual_MYSQL_CFLAGS" = "no" ; then |
---|
| 4965 | MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`" |
---|
| 4966 | fi |
---|
| 4967 | if test "$manual_MYSQL_LIBS" = "no" ; then |
---|
| 4968 | MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`" |
---|
| 4969 | fi |
---|
| 4970 | else |
---|
| 4971 | MYSQL_VERSION="unknown" |
---|
| 4972 | fi |
---|
| 4973 | |
---|
| 4974 | MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS" |
---|
| 4975 | MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS" |
---|
| 4976 | { echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5 |
---|
| 4977 | echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6; } |
---|
| 4978 | if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then |
---|
| 4979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4980 | else |
---|
| 4981 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4982 | LIBS="-lmysqlclient $LIBS" |
---|
| 4983 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4984 | /* confdefs.h. */ |
---|
| 4985 | _ACEOF |
---|
| 4986 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4987 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4988 | /* end confdefs.h. */ |
---|
| 4989 | |
---|
| 4990 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4991 | Use char because int might match the return type of a GCC |
---|
| 4992 | builtin and then its argument prototype would still apply. */ |
---|
| 4993 | #ifdef __cplusplus |
---|
| 4994 | extern "C" |
---|
| 4995 | #endif |
---|
| 4996 | char mysql_init (); |
---|
| 4997 | int |
---|
| 4998 | main () |
---|
| 4999 | { |
---|
| 5000 | return mysql_init (); |
---|
| 5001 | ; |
---|
| 5002 | return 0; |
---|
| 5003 | } |
---|
| 5004 | _ACEOF |
---|
| 5005 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5006 | if { (ac_try="$ac_link" |
---|
| 5007 | case "(($ac_try" in |
---|
| 5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5009 | *) ac_try_echo=$ac_try;; |
---|
| 5010 | esac |
---|
| 5011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 5012 | (eval "$ac_link") 2>conftest.er1 |
---|
| 5013 | ac_status=$? |
---|
| 5014 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5015 | rm -f conftest.er1 |
---|
| 5016 | cat conftest.err >&5 |
---|
| 5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5018 | (exit $ac_status); } && { |
---|
| 5019 | test -z "$ac_c_werror_flag" || |
---|
| 5020 | test ! -s conftest.err |
---|
| 5021 | } && test -s conftest$ac_exeext && |
---|
| 5022 | $as_test_x conftest$ac_exeext; then |
---|
| 5023 | ac_cv_lib_mysqlclient_mysql_init=yes |
---|
| 5024 | else |
---|
| 5025 | echo "$as_me: failed program was:" >&5 |
---|
| 5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5027 | |
---|
| 5028 | ac_cv_lib_mysqlclient_mysql_init=no |
---|
| 5029 | fi |
---|
| 5030 | |
---|
| 5031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 5032 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5033 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5034 | fi |
---|
| 5035 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 |
---|
| 5036 | echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6; } |
---|
| 5037 | if test $ac_cv_lib_mysqlclient_mysql_init = yes; then |
---|
| 5038 | HAVE_MYSQL="yes" |
---|
| 5039 | fi |
---|
| 5040 | |
---|
| 5041 | if test "${ac_cv_header_mysql_h+set}" = set; then |
---|
| 5042 | { echo "$as_me:$LINENO: checking for mysql.h" >&5 |
---|
| 5043 | echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6; } |
---|
| 5044 | if test "${ac_cv_header_mysql_h+set}" = set; then |
---|
| 5045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5046 | fi |
---|
| 5047 | { echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5 |
---|
| 5048 | echo "${ECHO_T}$ac_cv_header_mysql_h" >&6; } |
---|
| 5049 | else |
---|
| 5050 | # Is the header compilable? |
---|
| 5051 | { echo "$as_me:$LINENO: checking mysql.h usability" >&5 |
---|
| 5052 | echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6; } |
---|
| 5053 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5054 | /* confdefs.h. */ |
---|
| 5055 | _ACEOF |
---|
| 5056 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5057 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5058 | /* end confdefs.h. */ |
---|
| 5059 | $ac_includes_default |
---|
| 5060 | #include <mysql.h> |
---|
| 5061 | _ACEOF |
---|
| 5062 | rm -f conftest.$ac_objext |
---|
| 5063 | if { (ac_try="$ac_compile" |
---|
| 5064 | case "(($ac_try" in |
---|
| 5065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5066 | *) ac_try_echo=$ac_try;; |
---|
| 5067 | esac |
---|
| 5068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 5069 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 5070 | ac_status=$? |
---|
| 5071 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5072 | rm -f conftest.er1 |
---|
| 5073 | cat conftest.err >&5 |
---|
| 5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5075 | (exit $ac_status); } && { |
---|
| 5076 | test -z "$ac_c_werror_flag" || |
---|
| 5077 | test ! -s conftest.err |
---|
| 5078 | } && test -s conftest.$ac_objext; then |
---|
| 5079 | ac_header_compiler=yes |
---|
| 5080 | else |
---|
| 5081 | echo "$as_me: failed program was:" >&5 |
---|
| 5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5083 | |
---|
| 5084 | ac_header_compiler=no |
---|
| 5085 | fi |
---|
| 5086 | |
---|
| 5087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5088 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5089 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 5090 | |
---|
| 5091 | # Is the header present? |
---|
| 5092 | { echo "$as_me:$LINENO: checking mysql.h presence" >&5 |
---|
| 5093 | echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6; } |
---|
| 5094 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5095 | /* confdefs.h. */ |
---|
| 5096 | _ACEOF |
---|
| 5097 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5098 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5099 | /* end confdefs.h. */ |
---|
| 5100 | #include <mysql.h> |
---|
| 5101 | _ACEOF |
---|
| 5102 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 5103 | case "(($ac_try" in |
---|
| 5104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5105 | *) ac_try_echo=$ac_try;; |
---|
| 5106 | esac |
---|
| 5107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 5108 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 5109 | ac_status=$? |
---|
| 5110 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5111 | rm -f conftest.er1 |
---|
| 5112 | cat conftest.err >&5 |
---|
| 5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5114 | (exit $ac_status); } >/dev/null && { |
---|
| 5115 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 5116 | test ! -s conftest.err |
---|
| 5117 | }; then |
---|
| 5118 | ac_header_preproc=yes |
---|
| 5119 | else |
---|
| 5120 | echo "$as_me: failed program was:" >&5 |
---|
| 5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5122 | |
---|
| 5123 | ac_header_preproc=no |
---|
| 5124 | fi |
---|
| 5125 | |
---|
| 5126 | rm -f conftest.err conftest.$ac_ext |
---|
| 5127 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5128 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
| 5129 | |
---|
| 5130 | # So? What about this header? |
---|
| 5131 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5132 | yes:no: ) |
---|
| 5133 | { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5134 | echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5135 | { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5 |
---|
| 5136 | echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;} |
---|
| 5137 | ac_header_preproc=yes |
---|
| 5138 | ;; |
---|
| 5139 | no:yes:* ) |
---|
| 5140 | { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5 |
---|
| 5141 | echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;} |
---|
| 5142 | { echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5 |
---|
| 5143 | echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;} |
---|
| 5144 | { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5 |
---|
| 5145 | echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;} |
---|
| 5146 | { echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5147 | echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5148 | { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5 |
---|
| 5149 | echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;} |
---|
| 5150 | { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5 |
---|
| 5151 | echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;} |
---|
| 5152 | |
---|
| 5153 | ;; |
---|
| 5154 | esac |
---|
| 5155 | { echo "$as_me:$LINENO: checking for mysql.h" >&5 |
---|
| 5156 | echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6; } |
---|
| 5157 | if test "${ac_cv_header_mysql_h+set}" = set; then |
---|
| 5158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5159 | else |
---|
| 5160 | ac_cv_header_mysql_h=$ac_header_preproc |
---|
| 5161 | fi |
---|
| 5162 | { echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5 |
---|
| 5163 | echo "${ECHO_T}$ac_cv_header_mysql_h" >&6; } |
---|
| 5164 | |
---|
| 5165 | fi |
---|
| 5166 | if test $ac_cv_header_mysql_h = yes; then |
---|
| 5167 | : |
---|
| 5168 | else |
---|
| 5169 | HAVE_MYSQL="" |
---|
| 5170 | fi |
---|
| 5171 | |
---|
| 5172 | |
---|
| 5173 | CPPFLAGS="$MYSQL_OLD_CPPFLAGS" |
---|
| 5174 | LDFLAGS="$MYSQL_OLD_LDFLAGS" |
---|
| 5175 | |
---|
| 5176 | { echo "$as_me:$LINENO: checking MySQL library (optional)" >&5 |
---|
| 5177 | echo $ECHO_N "checking MySQL library (optional)... $ECHO_C" >&6; } |
---|
| 5178 | if test "$HAVE_MYSQL" = "yes" ; then |
---|
| 5179 | { echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5 |
---|
| 5180 | echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6; } |
---|
| 5181 | else |
---|
| 5182 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5183 | echo "${ECHO_T}no" >&6; } |
---|
| 5184 | if test "$require_mysql" = "yes" ; then |
---|
| 5185 | { { echo "$as_me:$LINENO: error: MySQL not found or incompatible (requested)" >&5 |
---|
| 5186 | echo "$as_me: error: MySQL not found or incompatible (requested)" >&2;} |
---|
| 5187 | { (exit 1); exit 1; }; } |
---|
| 5188 | else |
---|
| 5189 | { echo "$as_me:$LINENO: disabling MySQL (optional)" >&5 |
---|
| 5190 | echo "$as_me: disabling MySQL (optional)" >&6;} |
---|
| 5191 | MYSQL_VERSION="" |
---|
| 5192 | MYSQL_CFLAGS="" |
---|
| 5193 | MYSQL_LIBS="" |
---|
| 5194 | fi |
---|
| 5195 | fi |
---|
| 5196 | fi |
---|
| 5197 | |
---|
| 5198 | |
---|
| 5199 | |
---|
| 5200 | |
---|
| 5201 | |
---|
| 5202 | |
---|
| 5203 | |
---|
| 5204 | # |
---|
| 5205 | # PCRE library (optional) |
---|
| 5206 | # |
---|
| 5207 | ##TODO PCRE version |
---|
| 5208 | PCRE_LIBS="" |
---|
| 5209 | PCRE_CFLAGS="" |
---|
| 5210 | |
---|
| 5211 | if test "$want_pcre" = "no" ; then |
---|
| 5212 | { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5 |
---|
| 5213 | echo "$as_me: ignoring PCRE (optional)" >&6;} |
---|
| 5214 | else |
---|
| 5215 | if test -z "$PCRE_HOME" ; then |
---|
| 5216 | { echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5 |
---|
| 5217 | echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6; } |
---|
| 5218 | if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then |
---|
| 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5220 | else |
---|
| 5221 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5222 | LIBS="-lpcre $LIBS" |
---|
| 5223 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5224 | /* confdefs.h. */ |
---|
| 5225 | _ACEOF |
---|
| 5226 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5227 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5228 | /* end confdefs.h. */ |
---|
| 5229 | |
---|
| 5230 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5231 | Use char because int might match the return type of a GCC |
---|
| 5232 | builtin and then its argument prototype would still apply. */ |
---|
| 5233 | #ifdef __cplusplus |
---|
| 5234 | extern "C" |
---|
| 5235 | #endif |
---|
| 5236 | char pcre_study (); |
---|
| 5237 | int |
---|
| 5238 | main () |
---|
| 5239 | { |
---|
| 5240 | return pcre_study (); |
---|
| 5241 | ; |
---|
| 5242 | return 0; |
---|
| 5243 | } |
---|
| 5244 | _ACEOF |
---|
| 5245 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5246 | if { (ac_try="$ac_link" |
---|
| 5247 | case "(($ac_try" in |
---|
| 5248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5249 | *) ac_try_echo=$ac_try;; |
---|
| 5250 | esac |
---|
| 5251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 5252 | (eval "$ac_link") 2>conftest.er1 |
---|
| 5253 | ac_status=$? |
---|
| 5254 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5255 | rm -f conftest.er1 |
---|
| 5256 | cat conftest.err >&5 |
---|
| 5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5258 | (exit $ac_status); } && { |
---|
| 5259 | test -z "$ac_c_werror_flag" || |
---|
| 5260 | test ! -s conftest.err |
---|
| 5261 | } && test -s conftest$ac_exeext && |
---|
| 5262 | $as_test_x conftest$ac_exeext; then |
---|
| 5263 | ac_cv_lib_pcre_pcre_study=yes |
---|
| 5264 | else |
---|
| 5265 | echo "$as_me: failed program was:" >&5 |
---|
| 5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5267 | |
---|
| 5268 | ac_cv_lib_pcre_pcre_study=no |
---|
| 5269 | fi |
---|
| 5270 | |
---|
| 5271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 5272 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5273 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5274 | fi |
---|
| 5275 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5 |
---|
| 5276 | echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6; } |
---|
| 5277 | if test $ac_cv_lib_pcre_pcre_study = yes; then |
---|
| 5278 | HAVE_PCRE="yes" |
---|
| 5279 | fi |
---|
| 5280 | |
---|
| 5281 | if test "$HAVE_PCRE" = "yes" ; then |
---|
| 5282 | PCRE_LIBS="-lpcre" |
---|
| 5283 | fi |
---|
| 5284 | else |
---|
| 5285 | PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib" |
---|
| 5286 | PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include" |
---|
| 5287 | { echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5 |
---|
| 5288 | echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6; } |
---|
| 5289 | if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then |
---|
| 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5291 | else |
---|
| 5292 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5293 | LIBS="-lpcre $LIBS" |
---|
| 5294 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5295 | /* confdefs.h. */ |
---|
| 5296 | _ACEOF |
---|
| 5297 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5299 | /* end confdefs.h. */ |
---|
| 5300 | |
---|
| 5301 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5302 | Use char because int might match the return type of a GCC |
---|
| 5303 | builtin and then its argument prototype would still apply. */ |
---|
| 5304 | #ifdef __cplusplus |
---|
| 5305 | extern "C" |
---|
| 5306 | #endif |
---|
| 5307 | char pcre_compile (); |
---|
| 5308 | int |
---|
| 5309 | main () |
---|
| 5310 | { |
---|
| 5311 | return pcre_compile (); |
---|
| 5312 | ; |
---|
| 5313 | return 0; |
---|
| 5314 | } |
---|
| 5315 | _ACEOF |
---|
| 5316 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5317 | if { (ac_try="$ac_link" |
---|
| 5318 | case "(($ac_try" in |
---|
| 5319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5320 | *) ac_try_echo=$ac_try;; |
---|
| 5321 | esac |
---|
| 5322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 5323 | (eval "$ac_link") 2>conftest.er1 |
---|
| 5324 | ac_status=$? |
---|
| 5325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5326 | rm -f conftest.er1 |
---|
| 5327 | cat conftest.err >&5 |
---|
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5329 | (exit $ac_status); } && { |
---|
| 5330 | test -z "$ac_c_werror_flag" || |
---|
| 5331 | test ! -s conftest.err |
---|
| 5332 | } && test -s conftest$ac_exeext && |
---|
| 5333 | $as_test_x conftest$ac_exeext; then |
---|
| 5334 | ac_cv_lib_pcre_pcre_compile=yes |
---|
| 5335 | else |
---|
| 5336 | echo "$as_me: failed program was:" >&5 |
---|
| 5337 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5338 | |
---|
| 5339 | ac_cv_lib_pcre_pcre_compile=no |
---|
| 5340 | fi |
---|
| 5341 | |
---|
| 5342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 5343 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5344 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5345 | fi |
---|
| 5346 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5 |
---|
| 5347 | echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6; } |
---|
| 5348 | if test $ac_cv_lib_pcre_pcre_compile = yes; then |
---|
| 5349 | HAVE_PCRE="yes" |
---|
| 5350 | fi |
---|
| 5351 | |
---|
| 5352 | CPPFLAGS="$PCRE_OLD_CPPFLAGS" |
---|
| 5353 | LDFLAGS="$PCRE_OLD_LDFLAGS" |
---|
| 5354 | if test "$HAVE_PCRE" = "yes" ; then |
---|
| 5355 | PCRE_LIBS="-L$PCRE_HOME/lib -lpcre" |
---|
| 5356 | test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include" |
---|
| 5357 | fi |
---|
| 5358 | fi |
---|
| 5359 | { echo "$as_me:$LINENO: checking PCRE library (optional)" >&5 |
---|
| 5360 | echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6; } |
---|
| 5361 | if test "$HAVE_PCRE" = "yes" ; then |
---|
| 5362 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5363 | echo "${ECHO_T}yes" >&6; } |
---|
| 5364 | else |
---|
| 5365 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5366 | echo "${ECHO_T}no" >&6; } |
---|
| 5367 | if test "$require_pcre" = "yes" ; then |
---|
| 5368 | { { echo "$as_me:$LINENO: error: PCRE not found or incompatible (requested)" >&5 |
---|
| 5369 | echo "$as_me: error: PCRE not found or incompatible (requested)" >&2;} |
---|
| 5370 | { (exit 1); exit 1; }; } |
---|
| 5371 | else |
---|
| 5372 | { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5 |
---|
| 5373 | echo "$as_me: disabling PCRE (optional)" >&6;} |
---|
| 5374 | fi |
---|
| 5375 | fi |
---|
| 5376 | fi |
---|
| 5377 | |
---|
| 5378 | |
---|
| 5379 | |
---|
| 5380 | |
---|
| 5381 | |
---|
| 5382 | |
---|
| 5383 | # |
---|
| 5384 | # Host specific stuff |
---|
| 5385 | # |
---|
| 5386 | { echo "$as_me:$LINENO: checking host OS" >&5 |
---|
| 5387 | echo $ECHO_N "checking host OS... $ECHO_C" >&6; } |
---|
| 5388 | host_os="`uname`" |
---|
| 5389 | { echo "$as_me:$LINENO: result: $host_os" >&5 |
---|
| 5390 | echo "${ECHO_T}$host_os" >&6; } |
---|
| 5391 | fd_setsize="" |
---|
| 5392 | DLLEXT=".so" |
---|
| 5393 | case $host_os in |
---|
| 5394 | Solaris* ) |
---|
| 5395 | LIBS="$LIBS -lsocket -lnsl -ldl" |
---|
| 5396 | ;; |
---|
| 5397 | Linux* ) |
---|
| 5398 | LIBS="$LIBS -ldl" |
---|
| 5399 | ;; |
---|
| 5400 | FreeBSD*) |
---|
| 5401 | CPPFLAGS="$CPPFLAGS -D__FREEBSD__" |
---|
| 5402 | ;; |
---|
| 5403 | NetBSD*) |
---|
| 5404 | CPPFLAGS="$CPPFLAGS -D__NETBSD__" |
---|
| 5405 | ;; |
---|
| 5406 | CYGWIN*) |
---|
| 5407 | CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN" |
---|
| 5408 | fd_setsize="done" |
---|
| 5409 | DLLEXT=".dll" |
---|
| 5410 | ;; |
---|
| 5411 | esac |
---|
| 5412 | |
---|
| 5413 | |
---|
| 5414 | { echo "$as_me:$LINENO: checking for MinGW" >&5 |
---|
| 5415 | echo $ECHO_N "checking for MinGW... $ECHO_C" >&6; } |
---|
| 5416 | if test -n "`$CC --version | grep -i mingw`" ; then |
---|
| 5417 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5418 | echo "${ECHO_T}yes" >&6; } |
---|
| 5419 | CPPFLAGS="$CPPFLAGS -DMINGW" |
---|
| 5420 | if test -z "$fd_setsize" ; then |
---|
| 5421 | CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096" |
---|
| 5422 | fi |
---|
| 5423 | LIBS="$LIBS -lws2_32" |
---|
| 5424 | else |
---|
| 5425 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5426 | echo "${ECHO_T}no" >&6; } |
---|
| 5427 | fi |
---|
| 5428 | |
---|
| 5429 | |
---|
| 5430 | |
---|
| 5431 | ############################################################################### |
---|
| 5432 | cat >confcache <<\_ACEOF |
---|
| 5433 | # This file is a shell script that caches the results of configure |
---|
| 5434 | # tests run on this system so they can be shared between configure |
---|
| 5435 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 5436 | # It is not useful on other systems. If it contains results you don't |
---|
| 5437 | # want to keep, you may remove or edit it. |
---|
| 5438 | # |
---|
| 5439 | # config.status only pays attention to the cache file if you give it |
---|
| 5440 | # the --recheck option to rerun configure. |
---|
| 5441 | # |
---|
| 5442 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 5443 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 5444 | # following values. |
---|
| 5445 | |
---|
| 5446 | _ACEOF |
---|
| 5447 | |
---|
| 5448 | # The following way of writing the cache mishandles newlines in values, |
---|
| 5449 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 5450 | # So, we kill variables containing newlines. |
---|
| 5451 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 5452 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 5453 | ( |
---|
| 5454 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 5455 | eval ac_val=\$$ac_var |
---|
| 5456 | case $ac_val in #( |
---|
| 5457 | *${as_nl}*) |
---|
| 5458 | case $ac_var in #( |
---|
| 5459 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
| 5460 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
| 5461 | esac |
---|
| 5462 | case $ac_var in #( |
---|
| 5463 | _ | IFS | as_nl) ;; #( |
---|
| 5464 | *) $as_unset $ac_var ;; |
---|
| 5465 | esac ;; |
---|
| 5466 | esac |
---|
| 5467 | done |
---|
| 5468 | |
---|
| 5469 | (set) 2>&1 | |
---|
| 5470 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 5471 | *${as_nl}ac_space=\ *) |
---|
| 5472 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 5473 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 5474 | sed -n \ |
---|
| 5475 | "s/'/'\\\\''/g; |
---|
| 5476 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 5477 | ;; #( |
---|
| 5478 | *) |
---|
| 5479 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 5480 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 5481 | ;; |
---|
| 5482 | esac | |
---|
| 5483 | sort |
---|
| 5484 | ) | |
---|
| 5485 | sed ' |
---|
| 5486 | /^ac_cv_env_/b end |
---|
| 5487 | t clear |
---|
| 5488 | :clear |
---|
| 5489 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 5490 | t end |
---|
| 5491 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 5492 | :end' >>confcache |
---|
| 5493 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 5494 | if test -w "$cache_file"; then |
---|
| 5495 | test "x$cache_file" != "x/dev/null" && |
---|
| 5496 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
| 5497 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
| 5498 | cat confcache >$cache_file |
---|
| 5499 | else |
---|
| 5500 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
| 5501 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
| 5502 | fi |
---|
| 5503 | fi |
---|
| 5504 | rm -f confcache |
---|
| 5505 | |
---|
| 5506 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 5507 | # Let make expand exec_prefix. |
---|
| 5508 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 5509 | |
---|
| 5510 | # Transform confdefs.h into DEFS. |
---|
| 5511 | # Protect against shell expansion while executing Makefile rules. |
---|
| 5512 | # Protect against Makefile macro expansion. |
---|
| 5513 | # |
---|
| 5514 | # If the first sed substitution is executed (which looks for macros that |
---|
| 5515 | # take arguments), then branch to the quote section. Otherwise, |
---|
| 5516 | # look for a macro that doesn't take arguments. |
---|
| 5517 | ac_script=' |
---|
| 5518 | t clear |
---|
| 5519 | :clear |
---|
| 5520 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
| 5521 | t quote |
---|
| 5522 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
| 5523 | t quote |
---|
| 5524 | b any |
---|
| 5525 | :quote |
---|
| 5526 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
| 5527 | s/\[/\\&/g |
---|
| 5528 | s/\]/\\&/g |
---|
| 5529 | s/\$/$$/g |
---|
| 5530 | H |
---|
| 5531 | :any |
---|
| 5532 | ${ |
---|
| 5533 | g |
---|
| 5534 | s/^\n// |
---|
| 5535 | s/\n/ /g |
---|
| 5536 | p |
---|
| 5537 | } |
---|
| 5538 | ' |
---|
| 5539 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
| 5540 | |
---|
| 5541 | |
---|
| 5542 | ac_libobjs= |
---|
| 5543 | ac_ltlibobjs= |
---|
| 5544 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 5545 | # 1. Remove the extension, and $U if already installed. |
---|
| 5546 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 5547 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
| 5548 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 5549 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 5550 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 5551 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
| 5552 | done |
---|
| 5553 | LIBOBJS=$ac_libobjs |
---|
| 5554 | |
---|
| 5555 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 5556 | |
---|
| 5557 | |
---|
| 5558 | |
---|
| 5559 | : ${CONFIG_STATUS=./config.status} |
---|
| 5560 | ac_clean_files_save=$ac_clean_files |
---|
| 5561 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 5562 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 5563 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 5564 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 5565 | #! $SHELL |
---|
| 5566 | # Generated by $as_me. |
---|
| 5567 | # Run this file to recreate the current configuration. |
---|
| 5568 | # Compiler output produced by configure, useful for debugging |
---|
| 5569 | # configure, is in config.log if it exists. |
---|
| 5570 | |
---|
| 5571 | debug=false |
---|
| 5572 | ac_cs_recheck=false |
---|
| 5573 | ac_cs_silent=false |
---|
| 5574 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 5575 | _ACEOF |
---|
| 5576 | |
---|
| 5577 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5578 | ## --------------------- ## |
---|
| 5579 | ## M4sh Initialization. ## |
---|
| 5580 | ## --------------------- ## |
---|
| 5581 | |
---|
| 5582 | # Be more Bourne compatible |
---|
| 5583 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 5584 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 5585 | emulate sh |
---|
| 5586 | NULLCMD=: |
---|
| 5587 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 5588 | # is contrary to our usage. Disable this feature. |
---|
| 5589 | alias -g '${1+"$@"}'='"$@"' |
---|
| 5590 | setopt NO_GLOB_SUBST |
---|
| 5591 | else |
---|
| 5592 | case `(set -o) 2>/dev/null` in |
---|
| 5593 | *posix*) set -o posix ;; |
---|
| 5594 | esac |
---|
| 5595 | |
---|
| 5596 | fi |
---|
| 5597 | |
---|
| 5598 | |
---|
| 5599 | |
---|
| 5600 | |
---|
| 5601 | # PATH needs CR |
---|
| 5602 | # Avoid depending upon Character Ranges. |
---|
| 5603 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 5604 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 5605 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 5606 | as_cr_digits='0123456789' |
---|
| 5607 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 5608 | |
---|
| 5609 | # The user is always right. |
---|
| 5610 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 5611 | echo "#! /bin/sh" >conf$$.sh |
---|
| 5612 | echo "exit 0" >>conf$$.sh |
---|
| 5613 | chmod +x conf$$.sh |
---|
| 5614 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 5615 | PATH_SEPARATOR=';' |
---|
| 5616 | else |
---|
| 5617 | PATH_SEPARATOR=: |
---|
| 5618 | fi |
---|
| 5619 | rm -f conf$$.sh |
---|
| 5620 | fi |
---|
| 5621 | |
---|
| 5622 | # Support unset when possible. |
---|
| 5623 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 5624 | as_unset=unset |
---|
| 5625 | else |
---|
| 5626 | as_unset=false |
---|
| 5627 | fi |
---|
| 5628 | |
---|
| 5629 | |
---|
| 5630 | # IFS |
---|
| 5631 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 5632 | # there to prevent editors from complaining about space-tab. |
---|
| 5633 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 5634 | # splitting by setting IFS to empty value.) |
---|
| 5635 | as_nl=' |
---|
| 5636 | ' |
---|
| 5637 | IFS=" "" $as_nl" |
---|
| 5638 | |
---|
| 5639 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 5640 | case $0 in |
---|
| 5641 | *[\\/]* ) as_myself=$0 ;; |
---|
| 5642 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5643 | for as_dir in $PATH |
---|
| 5644 | do |
---|
| 5645 | IFS=$as_save_IFS |
---|
| 5646 | test -z "$as_dir" && as_dir=. |
---|
| 5647 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 5648 | done |
---|
| 5649 | IFS=$as_save_IFS |
---|
| 5650 | |
---|
| 5651 | ;; |
---|
| 5652 | esac |
---|
| 5653 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 5654 | # in which case we are not to be found in the path. |
---|
| 5655 | if test "x$as_myself" = x; then |
---|
| 5656 | as_myself=$0 |
---|
| 5657 | fi |
---|
| 5658 | if test ! -f "$as_myself"; then |
---|
| 5659 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 5660 | { (exit 1); exit 1; } |
---|
| 5661 | fi |
---|
| 5662 | |
---|
| 5663 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 5664 | for as_var in ENV MAIL MAILPATH |
---|
| 5665 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 5666 | done |
---|
| 5667 | PS1='$ ' |
---|
| 5668 | PS2='> ' |
---|
| 5669 | PS4='+ ' |
---|
| 5670 | |
---|
| 5671 | # NLS nuisances. |
---|
| 5672 | for as_var in \ |
---|
| 5673 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 5674 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 5675 | LC_TELEPHONE LC_TIME |
---|
| 5676 | do |
---|
| 5677 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 5678 | eval $as_var=C; export $as_var |
---|
| 5679 | else |
---|
| 5680 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 5681 | fi |
---|
| 5682 | done |
---|
| 5683 | |
---|
| 5684 | # Required to use basename. |
---|
| 5685 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 5686 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 5687 | as_expr=expr |
---|
| 5688 | else |
---|
| 5689 | as_expr=false |
---|
| 5690 | fi |
---|
| 5691 | |
---|
| 5692 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 5693 | as_basename=basename |
---|
| 5694 | else |
---|
| 5695 | as_basename=false |
---|
| 5696 | fi |
---|
| 5697 | |
---|
| 5698 | |
---|
| 5699 | # Name of the executable. |
---|
| 5700 | as_me=`$as_basename -- "$0" || |
---|
| 5701 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5702 | X"$0" : 'X\(//\)$' \| \ |
---|
| 5703 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5704 | echo X/"$0" | |
---|
| 5705 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 5706 | s//\1/ |
---|
| 5707 | q |
---|
| 5708 | } |
---|
| 5709 | /^X\/\(\/\/\)$/{ |
---|
| 5710 | s//\1/ |
---|
| 5711 | q |
---|
| 5712 | } |
---|
| 5713 | /^X\/\(\/\).*/{ |
---|
| 5714 | s//\1/ |
---|
| 5715 | q |
---|
| 5716 | } |
---|
| 5717 | s/.*/./; q'` |
---|
| 5718 | |
---|
| 5719 | # CDPATH. |
---|
| 5720 | $as_unset CDPATH |
---|
| 5721 | |
---|
| 5722 | |
---|
| 5723 | |
---|
| 5724 | as_lineno_1=$LINENO |
---|
| 5725 | as_lineno_2=$LINENO |
---|
| 5726 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 5727 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
| 5728 | |
---|
| 5729 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 5730 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 5731 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 5732 | # does the real work. The second script uses 'N' to pair each |
---|
| 5733 | # line-number line with the line containing $LINENO, and appends |
---|
| 5734 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 5735 | # case at line end. |
---|
| 5736 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 5737 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 5738 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 5739 | sed -n ' |
---|
| 5740 | p |
---|
| 5741 | /[$]LINENO/= |
---|
| 5742 | ' <$as_myself | |
---|
| 5743 | sed ' |
---|
| 5744 | s/[$]LINENO.*/&-/ |
---|
| 5745 | t lineno |
---|
| 5746 | b |
---|
| 5747 | :lineno |
---|
| 5748 | N |
---|
| 5749 | :loop |
---|
| 5750 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 5751 | t loop |
---|
| 5752 | s/-\n.*// |
---|
| 5753 | ' >$as_me.lineno && |
---|
| 5754 | chmod +x "$as_me.lineno" || |
---|
| 5755 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 5756 | { (exit 1); exit 1; }; } |
---|
| 5757 | |
---|
| 5758 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 5759 | # (the dirname of $[0] is not the place where we might find the |
---|
| 5760 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 5761 | . "./$as_me.lineno" |
---|
| 5762 | # Exit status is that of the last command. |
---|
| 5763 | exit |
---|
| 5764 | } |
---|
| 5765 | |
---|
| 5766 | |
---|
| 5767 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 5768 | as_dirname=dirname |
---|
| 5769 | else |
---|
| 5770 | as_dirname=false |
---|
| 5771 | fi |
---|
| 5772 | |
---|
| 5773 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 5774 | case `echo -n x` in |
---|
| 5775 | -n*) |
---|
| 5776 | case `echo 'x\c'` in |
---|
| 5777 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 5778 | *) ECHO_C='\c';; |
---|
| 5779 | esac;; |
---|
| 5780 | *) |
---|
| 5781 | ECHO_N='-n';; |
---|
| 5782 | esac |
---|
| 5783 | |
---|
| 5784 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 5785 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 5786 | as_expr=expr |
---|
| 5787 | else |
---|
| 5788 | as_expr=false |
---|
| 5789 | fi |
---|
| 5790 | |
---|
| 5791 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5792 | if test -d conf$$.dir; then |
---|
| 5793 | rm -f conf$$.dir/conf$$.file |
---|
| 5794 | else |
---|
| 5795 | rm -f conf$$.dir |
---|
| 5796 | mkdir conf$$.dir |
---|
| 5797 | fi |
---|
| 5798 | echo >conf$$.file |
---|
| 5799 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 5800 | as_ln_s='ln -s' |
---|
| 5801 | # ... but there are two gotchas: |
---|
| 5802 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 5803 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 5804 | # In both cases, we have to default to `cp -p'. |
---|
| 5805 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 5806 | as_ln_s='cp -p' |
---|
| 5807 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 5808 | as_ln_s=ln |
---|
| 5809 | else |
---|
| 5810 | as_ln_s='cp -p' |
---|
| 5811 | fi |
---|
| 5812 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 5813 | rmdir conf$$.dir 2>/dev/null |
---|
| 5814 | |
---|
| 5815 | if mkdir -p . 2>/dev/null; then |
---|
| 5816 | as_mkdir_p=: |
---|
| 5817 | else |
---|
| 5818 | test -d ./-p && rmdir ./-p |
---|
| 5819 | as_mkdir_p=false |
---|
| 5820 | fi |
---|
| 5821 | |
---|
| 5822 | if test -x / >/dev/null 2>&1; then |
---|
| 5823 | as_test_x='test -x' |
---|
| 5824 | else |
---|
| 5825 | if ls -dL / >/dev/null 2>&1; then |
---|
| 5826 | as_ls_L_option=L |
---|
| 5827 | else |
---|
| 5828 | as_ls_L_option= |
---|
| 5829 | fi |
---|
| 5830 | as_test_x=' |
---|
| 5831 | eval sh -c '\'' |
---|
| 5832 | if test -d "$1"; then |
---|
| 5833 | test -d "$1/."; |
---|
| 5834 | else |
---|
| 5835 | case $1 in |
---|
| 5836 | -*)set "./$1";; |
---|
| 5837 | esac; |
---|
| 5838 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
| 5839 | ???[sx]*):;;*)false;;esac;fi |
---|
| 5840 | '\'' sh |
---|
| 5841 | ' |
---|
| 5842 | fi |
---|
| 5843 | as_executable_p=$as_test_x |
---|
| 5844 | |
---|
| 5845 | # Sed expression to map a string onto a valid CPP name. |
---|
| 5846 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5847 | |
---|
| 5848 | # Sed expression to map a string onto a valid variable name. |
---|
| 5849 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5850 | |
---|
| 5851 | |
---|
| 5852 | exec 6>&1 |
---|
| 5853 | |
---|
| 5854 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
| 5855 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 5856 | # values after options handling. |
---|
| 5857 | ac_log=" |
---|
| 5858 | This file was extended by $as_me, which was |
---|
| 5859 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
| 5860 | |
---|
| 5861 | CONFIG_FILES = $CONFIG_FILES |
---|
| 5862 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 5863 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 5864 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 5865 | $ $0 $@ |
---|
| 5866 | |
---|
| 5867 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 5868 | " |
---|
| 5869 | |
---|
| 5870 | _ACEOF |
---|
| 5871 | |
---|
| 5872 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5873 | # Files that config.status was made for. |
---|
| 5874 | config_files="$ac_config_files" |
---|
| 5875 | |
---|
| 5876 | _ACEOF |
---|
| 5877 | |
---|
| 5878 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5879 | ac_cs_usage="\ |
---|
| 5880 | \`$as_me' instantiates files from templates according to the |
---|
| 5881 | current configuration. |
---|
| 5882 | |
---|
| 5883 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 5884 | |
---|
| 5885 | -h, --help print this help, then exit |
---|
| 5886 | -V, --version print version number and configuration settings, then exit |
---|
| 5887 | -q, --quiet do not print progress messages |
---|
| 5888 | -d, --debug don't remove temporary files |
---|
| 5889 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 5890 | --file=FILE[:TEMPLATE] |
---|
| 5891 | instantiate the configuration file FILE |
---|
| 5892 | |
---|
| 5893 | Configuration files: |
---|
| 5894 | $config_files |
---|
| 5895 | |
---|
| 5896 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 5897 | |
---|
| 5898 | _ACEOF |
---|
| 5899 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5900 | ac_cs_version="\\ |
---|
| 5901 | config.status |
---|
| 5902 | configured by $0, generated by GNU Autoconf 2.61, |
---|
| 5903 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 5904 | |
---|
| 5905 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
| 5906 | This config.status script is free software; the Free Software Foundation |
---|
| 5907 | gives unlimited permission to copy, distribute and modify it." |
---|
| 5908 | |
---|
| 5909 | ac_pwd='$ac_pwd' |
---|
| 5910 | srcdir='$srcdir' |
---|
| 5911 | _ACEOF |
---|
| 5912 | |
---|
| 5913 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5914 | # If no file are specified by the user, then we need to provide default |
---|
| 5915 | # value. By we need to know if files were specified by the user. |
---|
| 5916 | ac_need_defaults=: |
---|
| 5917 | while test $# != 0 |
---|
| 5918 | do |
---|
| 5919 | case $1 in |
---|
| 5920 | --*=*) |
---|
| 5921 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 5922 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
| 5923 | ac_shift=: |
---|
| 5924 | ;; |
---|
| 5925 | *) |
---|
| 5926 | ac_option=$1 |
---|
| 5927 | ac_optarg=$2 |
---|
| 5928 | ac_shift=shift |
---|
| 5929 | ;; |
---|
| 5930 | esac |
---|
| 5931 | |
---|
| 5932 | case $ac_option in |
---|
| 5933 | # Handling of the options. |
---|
| 5934 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 5935 | ac_cs_recheck=: ;; |
---|
| 5936 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 5937 | echo "$ac_cs_version"; exit ;; |
---|
| 5938 | --debug | --debu | --deb | --de | --d | -d ) |
---|
| 5939 | debug=: ;; |
---|
| 5940 | --file | --fil | --fi | --f ) |
---|
| 5941 | $ac_shift |
---|
| 5942 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 5943 | ac_need_defaults=false;; |
---|
| 5944 | --he | --h | --help | --hel | -h ) |
---|
| 5945 | echo "$ac_cs_usage"; exit ;; |
---|
| 5946 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 5947 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 5948 | ac_cs_silent=: ;; |
---|
| 5949 | |
---|
| 5950 | # This is an error. |
---|
| 5951 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
| 5952 | Try \`$0 --help' for more information." >&2 |
---|
| 5953 | { (exit 1); exit 1; }; } ;; |
---|
| 5954 | |
---|
| 5955 | *) ac_config_targets="$ac_config_targets $1" |
---|
| 5956 | ac_need_defaults=false ;; |
---|
| 5957 | |
---|
| 5958 | esac |
---|
| 5959 | shift |
---|
| 5960 | done |
---|
| 5961 | |
---|
| 5962 | ac_configure_extra_args= |
---|
| 5963 | |
---|
| 5964 | if $ac_cs_silent; then |
---|
| 5965 | exec 6>/dev/null |
---|
| 5966 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 5967 | fi |
---|
| 5968 | |
---|
| 5969 | _ACEOF |
---|
| 5970 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5971 | if \$ac_cs_recheck; then |
---|
| 5972 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 5973 | CONFIG_SHELL=$SHELL |
---|
| 5974 | export CONFIG_SHELL |
---|
| 5975 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 5976 | fi |
---|
| 5977 | |
---|
| 5978 | _ACEOF |
---|
| 5979 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5980 | exec 5>>config.log |
---|
| 5981 | { |
---|
| 5982 | echo |
---|
| 5983 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 5984 | ## Running $as_me. ## |
---|
| 5985 | _ASBOX |
---|
| 5986 | echo "$ac_log" |
---|
| 5987 | } >&5 |
---|
| 5988 | |
---|
| 5989 | _ACEOF |
---|
| 5990 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5991 | _ACEOF |
---|
| 5992 | |
---|
| 5993 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5994 | |
---|
| 5995 | # Handling of arguments. |
---|
| 5996 | for ac_config_target in $ac_config_targets |
---|
| 5997 | do |
---|
| 5998 | case $ac_config_target in |
---|
| 5999 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 6000 | "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; |
---|
| 6001 | "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;; |
---|
| 6002 | "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;; |
---|
| 6003 | "src/ladmin/Makefile") CONFIG_FILES="$CONFIG_FILES src/ladmin/Makefile" ;; |
---|
| 6004 | "src/char_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/char_sql/Makefile" ;; |
---|
| 6005 | "src/login_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/login_sql/Makefile" ;; |
---|
| 6006 | "src/txt-converter/Makefile") CONFIG_FILES="$CONFIG_FILES src/txt-converter/Makefile" ;; |
---|
| 6007 | "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;; |
---|
| 6008 | "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; |
---|
| 6009 | "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;; |
---|
| 6010 | |
---|
| 6011 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6012 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6013 | { (exit 1); exit 1; }; };; |
---|
| 6014 | esac |
---|
| 6015 | done |
---|
| 6016 | |
---|
| 6017 | |
---|
| 6018 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6019 | # then the envvar interface is used. Set only those that are not. |
---|
| 6020 | # We use the long form for the default assignment because of an extremely |
---|
| 6021 | # bizarre bug on SunOS 4.1.3. |
---|
| 6022 | if $ac_need_defaults; then |
---|
| 6023 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6024 | fi |
---|
| 6025 | |
---|
| 6026 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6027 | # simply because there is no reason against having it here, and in addition, |
---|
| 6028 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6029 | # Hook for its removal unless debugging. |
---|
| 6030 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 6031 | # after its creation but before its name has been assigned to `$tmp'. |
---|
| 6032 | $debug || |
---|
| 6033 | { |
---|
| 6034 | tmp= |
---|
| 6035 | trap 'exit_status=$? |
---|
| 6036 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
| 6037 | ' 0 |
---|
| 6038 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6039 | } |
---|
| 6040 | # Create a (secure) tmp directory for tmp files. |
---|
| 6041 | |
---|
| 6042 | { |
---|
| 6043 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
| 6044 | test -n "$tmp" && test -d "$tmp" |
---|
| 6045 | } || |
---|
| 6046 | { |
---|
| 6047 | tmp=./conf$$-$RANDOM |
---|
| 6048 | (umask 077 && mkdir "$tmp") |
---|
| 6049 | } || |
---|
| 6050 | { |
---|
| 6051 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6052 | { (exit 1); exit 1; } |
---|
| 6053 | } |
---|
| 6054 | |
---|
| 6055 | # |
---|
| 6056 | # Set up the sed scripts for CONFIG_FILES section. |
---|
| 6057 | # |
---|
| 6058 | |
---|
| 6059 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6060 | # This happens for instance when ./config.status config.h |
---|
| 6061 | if test -n "$CONFIG_FILES"; then |
---|
| 6062 | |
---|
| 6063 | _ACEOF |
---|
| 6064 | |
---|
| 6065 | |
---|
| 6066 | |
---|
| 6067 | ac_delim='%!_!# ' |
---|
| 6068 | for ac_last_try in false false false false false :; do |
---|
| 6069 | cat >conf$$subs.sed <<_ACEOF |
---|
| 6070 | SHELL!$SHELL$ac_delim |
---|
| 6071 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
| 6072 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
| 6073 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
| 6074 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
| 6075 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
| 6076 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
| 6077 | exec_prefix!$exec_prefix$ac_delim |
---|
| 6078 | prefix!$prefix$ac_delim |
---|
| 6079 | program_transform_name!$program_transform_name$ac_delim |
---|
| 6080 | bindir!$bindir$ac_delim |
---|
| 6081 | sbindir!$sbindir$ac_delim |
---|
| 6082 | libexecdir!$libexecdir$ac_delim |
---|
| 6083 | datarootdir!$datarootdir$ac_delim |
---|
| 6084 | datadir!$datadir$ac_delim |
---|
| 6085 | sysconfdir!$sysconfdir$ac_delim |
---|
| 6086 | sharedstatedir!$sharedstatedir$ac_delim |
---|
| 6087 | localstatedir!$localstatedir$ac_delim |
---|
| 6088 | includedir!$includedir$ac_delim |
---|
| 6089 | oldincludedir!$oldincludedir$ac_delim |
---|
| 6090 | docdir!$docdir$ac_delim |
---|
| 6091 | infodir!$infodir$ac_delim |
---|
| 6092 | htmldir!$htmldir$ac_delim |
---|
| 6093 | dvidir!$dvidir$ac_delim |
---|
| 6094 | pdfdir!$pdfdir$ac_delim |
---|
| 6095 | psdir!$psdir$ac_delim |
---|
| 6096 | libdir!$libdir$ac_delim |
---|
| 6097 | localedir!$localedir$ac_delim |
---|
| 6098 | mandir!$mandir$ac_delim |
---|
| 6099 | DEFS!$DEFS$ac_delim |
---|
| 6100 | ECHO_C!$ECHO_C$ac_delim |
---|
| 6101 | ECHO_N!$ECHO_N$ac_delim |
---|
| 6102 | ECHO_T!$ECHO_T$ac_delim |
---|
| 6103 | LIBS!$LIBS$ac_delim |
---|
| 6104 | build_alias!$build_alias$ac_delim |
---|
| 6105 | host_alias!$host_alias$ac_delim |
---|
| 6106 | target_alias!$target_alias$ac_delim |
---|
| 6107 | SET_MAKE!$SET_MAKE$ac_delim |
---|
| 6108 | CC!$CC$ac_delim |
---|
| 6109 | CFLAGS!$CFLAGS$ac_delim |
---|
| 6110 | LDFLAGS!$LDFLAGS$ac_delim |
---|
| 6111 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
| 6112 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
| 6113 | EXEEXT!$EXEEXT$ac_delim |
---|
| 6114 | OBJEXT!$OBJEXT$ac_delim |
---|
| 6115 | CPP!$CPP$ac_delim |
---|
| 6116 | GREP!$GREP$ac_delim |
---|
| 6117 | EGREP!$EGREP$ac_delim |
---|
| 6118 | MYSQL_CONFIG_HOME!$MYSQL_CONFIG_HOME$ac_delim |
---|
| 6119 | HAVE_MYSQL!$HAVE_MYSQL$ac_delim |
---|
| 6120 | MYSQL_VERSION!$MYSQL_VERSION$ac_delim |
---|
| 6121 | MYSQL_CFLAGS!$MYSQL_CFLAGS$ac_delim |
---|
| 6122 | MYSQL_LIBS!$MYSQL_LIBS$ac_delim |
---|
| 6123 | HAVE_PCRE!$HAVE_PCRE$ac_delim |
---|
| 6124 | PCRE_LIBS!$PCRE_LIBS$ac_delim |
---|
| 6125 | PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim |
---|
| 6126 | DLLEXT!$DLLEXT$ac_delim |
---|
| 6127 | LIBOBJS!$LIBOBJS$ac_delim |
---|
| 6128 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
| 6129 | _ACEOF |
---|
| 6130 | |
---|
| 6131 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then |
---|
| 6132 | break |
---|
| 6133 | elif $ac_last_try; then |
---|
| 6134 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
| 6135 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
| 6136 | { (exit 1); exit 1; }; } |
---|
| 6137 | else |
---|
| 6138 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 6139 | fi |
---|
| 6140 | done |
---|
| 6141 | |
---|
| 6142 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
| 6143 | if test -n "$ac_eof"; then |
---|
| 6144 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
| 6145 | ac_eof=`expr $ac_eof + 1` |
---|
| 6146 | fi |
---|
| 6147 | |
---|
| 6148 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6149 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
| 6150 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
| 6151 | _ACEOF |
---|
| 6152 | sed ' |
---|
| 6153 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
| 6154 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
| 6155 | :n |
---|
| 6156 | t n |
---|
| 6157 | s/'"$ac_delim"'$/,g/; t |
---|
| 6158 | s/$/\\/; p |
---|
| 6159 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
| 6160 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
| 6161 | rm -f conf$$subs.sed |
---|
| 6162 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6163 | :end |
---|
| 6164 | s/|#_!!_#|//g |
---|
| 6165 | CEOF$ac_eof |
---|
| 6166 | _ACEOF |
---|
| 6167 | |
---|
| 6168 | |
---|
| 6169 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6170 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6171 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6172 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6173 | if test "x$srcdir" = x.; then |
---|
| 6174 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 6175 | s/:*\$(srcdir):*/:/ |
---|
| 6176 | s/:*\${srcdir}:*/:/ |
---|
| 6177 | s/:*@srcdir@:*/:/ |
---|
| 6178 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
| 6179 | s/:*$// |
---|
| 6180 | s/^[^=]*=[ ]*$// |
---|
| 6181 | }' |
---|
| 6182 | fi |
---|
| 6183 | |
---|
| 6184 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6185 | fi # test -n "$CONFIG_FILES" |
---|
| 6186 | |
---|
| 6187 | |
---|
| 6188 | for ac_tag in :F $CONFIG_FILES |
---|
| 6189 | do |
---|
| 6190 | case $ac_tag in |
---|
| 6191 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
| 6192 | esac |
---|
| 6193 | case $ac_mode$ac_tag in |
---|
| 6194 | :[FHL]*:*);; |
---|
| 6195 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
| 6196 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
| 6197 | { (exit 1); exit 1; }; };; |
---|
| 6198 | :[FH]-) ac_tag=-:-;; |
---|
| 6199 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 6200 | esac |
---|
| 6201 | ac_save_IFS=$IFS |
---|
| 6202 | IFS=: |
---|
| 6203 | set x $ac_tag |
---|
| 6204 | IFS=$ac_save_IFS |
---|
| 6205 | shift |
---|
| 6206 | ac_file=$1 |
---|
| 6207 | shift |
---|
| 6208 | |
---|
| 6209 | case $ac_mode in |
---|
| 6210 | :L) ac_source=$1;; |
---|
| 6211 | :[FH]) |
---|
| 6212 | ac_file_inputs= |
---|
| 6213 | for ac_f |
---|
| 6214 | do |
---|
| 6215 | case $ac_f in |
---|
| 6216 | -) ac_f="$tmp/stdin";; |
---|
| 6217 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 6218 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 6219 | # because $ac_f cannot contain `:'. |
---|
| 6220 | test -f "$ac_f" || |
---|
| 6221 | case $ac_f in |
---|
| 6222 | [\\/$]*) false;; |
---|
| 6223 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 6224 | esac || |
---|
| 6225 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
| 6226 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
| 6227 | { (exit 1); exit 1; }; };; |
---|
| 6228 | esac |
---|
| 6229 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
| 6230 | done |
---|
| 6231 | |
---|
| 6232 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6233 | # use $as_me), people would be surprised to read: |
---|
| 6234 | # /* config.h. Generated by config.status. */ |
---|
| 6235 | configure_input="Generated from "`IFS=: |
---|
| 6236 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
| 6237 | if test x"$ac_file" != x-; then |
---|
| 6238 | configure_input="$ac_file. $configure_input" |
---|
| 6239 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6240 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6241 | fi |
---|
| 6242 | |
---|
| 6243 | case $ac_tag in |
---|
| 6244 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
| 6245 | esac |
---|
| 6246 | ;; |
---|
| 6247 | esac |
---|
| 6248 | |
---|
| 6249 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
| 6250 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6251 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6252 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6253 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6254 | echo X"$ac_file" | |
---|
| 6255 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 6256 | s//\1/ |
---|
| 6257 | q |
---|
| 6258 | } |
---|
| 6259 | /^X\(\/\/\)[^/].*/{ |
---|
| 6260 | s//\1/ |
---|
| 6261 | q |
---|
| 6262 | } |
---|
| 6263 | /^X\(\/\/\)$/{ |
---|
| 6264 | s//\1/ |
---|
| 6265 | q |
---|
| 6266 | } |
---|
| 6267 | /^X\(\/\).*/{ |
---|
| 6268 | s//\1/ |
---|
| 6269 | q |
---|
| 6270 | } |
---|
| 6271 | s/.*/./; q'` |
---|
| 6272 | { as_dir="$ac_dir" |
---|
| 6273 | case $as_dir in #( |
---|
| 6274 | -*) as_dir=./$as_dir;; |
---|
| 6275 | esac |
---|
| 6276 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
| 6277 | as_dirs= |
---|
| 6278 | while :; do |
---|
| 6279 | case $as_dir in #( |
---|
| 6280 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
| 6281 | *) as_qdir=$as_dir;; |
---|
| 6282 | esac |
---|
| 6283 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 6284 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 6285 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6286 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6287 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6288 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6289 | echo X"$as_dir" | |
---|
| 6290 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 6291 | s//\1/ |
---|
| 6292 | q |
---|
| 6293 | } |
---|
| 6294 | /^X\(\/\/\)[^/].*/{ |
---|
| 6295 | s//\1/ |
---|
| 6296 | q |
---|
| 6297 | } |
---|
| 6298 | /^X\(\/\/\)$/{ |
---|
| 6299 | s//\1/ |
---|
| 6300 | q |
---|
| 6301 | } |
---|
| 6302 | /^X\(\/\).*/{ |
---|
| 6303 | s//\1/ |
---|
| 6304 | q |
---|
| 6305 | } |
---|
| 6306 | s/.*/./; q'` |
---|
| 6307 | test -d "$as_dir" && break |
---|
| 6308 | done |
---|
| 6309 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 6310 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
| 6311 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
| 6312 | { (exit 1); exit 1; }; }; } |
---|
| 6313 | ac_builddir=. |
---|
| 6314 | |
---|
| 6315 | case "$ac_dir" in |
---|
| 6316 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 6317 | *) |
---|
| 6318 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 6319 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 6320 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
| 6321 | case $ac_top_builddir_sub in |
---|
| 6322 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 6323 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 6324 | esac ;; |
---|
| 6325 | esac |
---|
| 6326 | ac_abs_top_builddir=$ac_pwd |
---|
| 6327 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 6328 | # for backward compatibility: |
---|
| 6329 | ac_top_builddir=$ac_top_build_prefix |
---|
| 6330 | |
---|
| 6331 | case $srcdir in |
---|
| 6332 | .) # We are building in place. |
---|
| 6333 | ac_srcdir=. |
---|
| 6334 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 6335 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 6336 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 6337 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6338 | ac_top_srcdir=$srcdir |
---|
| 6339 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 6340 | *) # Relative name. |
---|
| 6341 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 6342 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 6343 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 6344 | esac |
---|
| 6345 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 6346 | |
---|
| 6347 | |
---|
| 6348 | case $ac_mode in |
---|
| 6349 | :F) |
---|
| 6350 | # |
---|
| 6351 | # CONFIG_FILE |
---|
| 6352 | # |
---|
| 6353 | |
---|
| 6354 | _ACEOF |
---|
| 6355 | |
---|
| 6356 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6357 | # If the template does not know about datarootdir, expand it. |
---|
| 6358 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 6359 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
| 6360 | |
---|
| 6361 | case `sed -n '/datarootdir/ { |
---|
| 6362 | p |
---|
| 6363 | q |
---|
| 6364 | } |
---|
| 6365 | /@datadir@/p |
---|
| 6366 | /@docdir@/p |
---|
| 6367 | /@infodir@/p |
---|
| 6368 | /@localedir@/p |
---|
| 6369 | /@mandir@/p |
---|
| 6370 | ' $ac_file_inputs` in |
---|
| 6371 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 6372 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 6373 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 6374 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
| 6375 | _ACEOF |
---|
| 6376 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6377 | ac_datarootdir_hack=' |
---|
| 6378 | s&@datadir@&$datadir&g |
---|
| 6379 | s&@docdir@&$docdir&g |
---|
| 6380 | s&@infodir@&$infodir&g |
---|
| 6381 | s&@localedir@&$localedir&g |
---|
| 6382 | s&@mandir@&$mandir&g |
---|
| 6383 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 6384 | esac |
---|
| 6385 | _ACEOF |
---|
| 6386 | |
---|
| 6387 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 6388 | # Shell code in configure.ac might set extrasub. |
---|
| 6389 | # FIXME: do we really want to maintain this feature? |
---|
| 6390 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6391 | sed "$ac_vpsub |
---|
| 6392 | $extrasub |
---|
| 6393 | _ACEOF |
---|
| 6394 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6395 | :t |
---|
| 6396 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6397 | s&@configure_input@&$configure_input&;t t |
---|
| 6398 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 6399 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 6400 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 6401 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 6402 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 6403 | s&@builddir@&$ac_builddir&;t t |
---|
| 6404 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 6405 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 6406 | $ac_datarootdir_hack |
---|
| 6407 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
---|
| 6408 | |
---|
| 6409 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 6410 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
| 6411 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
| 6412 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 6413 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
| 6414 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 6415 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
| 6416 | |
---|
| 6417 | rm -f "$tmp/stdin" |
---|
| 6418 | case $ac_file in |
---|
| 6419 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
| 6420 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
| 6421 | esac |
---|
| 6422 | ;; |
---|
| 6423 | |
---|
| 6424 | |
---|
| 6425 | |
---|
| 6426 | esac |
---|
| 6427 | |
---|
| 6428 | done # for ac_tag |
---|
| 6429 | |
---|
| 6430 | |
---|
| 6431 | { (exit 0); exit 0; } |
---|
| 6432 | _ACEOF |
---|
| 6433 | chmod +x $CONFIG_STATUS |
---|
| 6434 | ac_clean_files=$ac_clean_files_save |
---|
| 6435 | |
---|
| 6436 | |
---|
| 6437 | # configure is writing to config.log, and then calls config.status. |
---|
| 6438 | # config.status does its own redirection, appending to config.log. |
---|
| 6439 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 6440 | # by configure, so config.status won't be able to write to it; its |
---|
| 6441 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 6442 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 6443 | # appended to by config.status. When coming back to configure, we |
---|
| 6444 | # need to make the FD available again. |
---|
| 6445 | if test "$no_create" != yes; then |
---|
| 6446 | ac_cs_success=: |
---|
| 6447 | ac_config_status_args= |
---|
| 6448 | test "$silent" = yes && |
---|
| 6449 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 6450 | exec 5>/dev/null |
---|
| 6451 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 6452 | exec 5>>config.log |
---|
| 6453 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 6454 | # would make configure fail if this is the last instruction. |
---|
| 6455 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 6456 | fi |
---|
| 6457 | |
---|