[13] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.60a for libenet 6-6-2007. |
---|
| 4 | # |
---|
| 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | ## --------------------- ## |
---|
| 10 | ## M4sh Initialization. ## |
---|
| 11 | ## --------------------- ## |
---|
| 12 | |
---|
| 13 | # Be Bourne compatible |
---|
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 15 | emulate sh |
---|
| 16 | NULLCMD=: |
---|
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 18 | # is contrary to our usage. Disable this feature. |
---|
| 19 | alias -g '${1+"$@"}'='"$@"' |
---|
| 20 | setopt NO_GLOB_SUBST |
---|
| 21 | else |
---|
| 22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
---|
| 23 | fi |
---|
| 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
---|
| 25 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | # PATH needs CR |
---|
| 29 | # Avoid depending upon Character Ranges. |
---|
| 30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 33 | as_cr_digits='0123456789' |
---|
| 34 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 35 | |
---|
| 36 | # The user is always right. |
---|
| 37 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 38 | echo "#! /bin/sh" >conf$$.sh |
---|
| 39 | echo "exit 0" >>conf$$.sh |
---|
| 40 | chmod +x conf$$.sh |
---|
| 41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 42 | PATH_SEPARATOR=';' |
---|
| 43 | else |
---|
| 44 | PATH_SEPARATOR=: |
---|
| 45 | fi |
---|
| 46 | rm -f conf$$.sh |
---|
| 47 | fi |
---|
| 48 | |
---|
| 49 | # Support unset when possible. |
---|
| 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 51 | as_unset=unset |
---|
| 52 | else |
---|
| 53 | as_unset=false |
---|
| 54 | fi |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | # IFS |
---|
| 58 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 59 | # there to prevent editors from complaining about space-tab. |
---|
| 60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 61 | # splitting by setting IFS to empty value.) |
---|
| 62 | as_nl=' |
---|
| 63 | ' |
---|
| 64 | IFS=" "" $as_nl" |
---|
| 65 | |
---|
| 66 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 67 | case $0 in |
---|
| 68 | *[\\/]* ) as_myself=$0 ;; |
---|
| 69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 70 | for as_dir in $PATH |
---|
| 71 | do |
---|
| 72 | IFS=$as_save_IFS |
---|
| 73 | test -z "$as_dir" && as_dir=. |
---|
| 74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 75 | done |
---|
| 76 | IFS=$as_save_IFS |
---|
| 77 | |
---|
| 78 | ;; |
---|
| 79 | esac |
---|
| 80 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 81 | # in which case we are not to be found in the path. |
---|
| 82 | if test "x$as_myself" = x; then |
---|
| 83 | as_myself=$0 |
---|
| 84 | fi |
---|
| 85 | if test ! -f "$as_myself"; then |
---|
| 86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 87 | { (exit 1); exit 1; } |
---|
| 88 | fi |
---|
| 89 | |
---|
| 90 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 91 | for as_var in ENV MAIL MAILPATH |
---|
| 92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 93 | done |
---|
| 94 | PS1='$ ' |
---|
| 95 | PS2='> ' |
---|
| 96 | PS4='+ ' |
---|
| 97 | |
---|
| 98 | # NLS nuisances. |
---|
| 99 | for as_var in \ |
---|
| 100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 102 | LC_TELEPHONE LC_TIME |
---|
| 103 | do |
---|
| 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 105 | eval $as_var=C; export $as_var |
---|
| 106 | else |
---|
| 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 108 | fi |
---|
| 109 | done |
---|
| 110 | |
---|
| 111 | # Required to use basename. |
---|
| 112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 114 | as_expr=expr |
---|
| 115 | else |
---|
| 116 | as_expr=false |
---|
| 117 | fi |
---|
| 118 | |
---|
| 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 120 | as_basename=basename |
---|
| 121 | else |
---|
| 122 | as_basename=false |
---|
| 123 | fi |
---|
| 124 | |
---|
| 125 | |
---|
| 126 | # Name of the executable. |
---|
| 127 | as_me=`$as_basename -- "$0" || |
---|
| 128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 129 | X"$0" : 'X\(//\)$' \| \ |
---|
| 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 131 | echo X/"$0" | |
---|
| 132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 133 | s//\1/ |
---|
| 134 | q |
---|
| 135 | } |
---|
| 136 | /^X\/\(\/\/\)$/{ |
---|
| 137 | s//\1/ |
---|
| 138 | q |
---|
| 139 | } |
---|
| 140 | /^X\/\(\/\).*/{ |
---|
| 141 | s//\1/ |
---|
| 142 | q |
---|
| 143 | } |
---|
| 144 | s/.*/./; q'` |
---|
| 145 | |
---|
| 146 | # CDPATH. |
---|
| 147 | $as_unset CDPATH |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | if test "x$CONFIG_SHELL" = x; then |
---|
| 151 | if (eval ":") 2>/dev/null; then |
---|
| 152 | as_have_required=yes |
---|
| 153 | else |
---|
| 154 | as_have_required=no |
---|
| 155 | fi |
---|
| 156 | |
---|
| 157 | if test $as_have_required = yes && (eval ": |
---|
| 158 | (as_func_return () { |
---|
| 159 | (exit \$1) |
---|
| 160 | } |
---|
| 161 | as_func_success () { |
---|
| 162 | as_func_return 0 |
---|
| 163 | } |
---|
| 164 | as_func_failure () { |
---|
| 165 | as_func_return 1 |
---|
| 166 | } |
---|
| 167 | as_func_ret_success () { |
---|
| 168 | return 0 |
---|
| 169 | } |
---|
| 170 | as_func_ret_failure () { |
---|
| 171 | return 1 |
---|
| 172 | } |
---|
| 173 | |
---|
| 174 | exitcode=0 |
---|
| 175 | if as_func_success; then |
---|
| 176 | : |
---|
| 177 | else |
---|
| 178 | exitcode=1 |
---|
| 179 | echo as_func_success failed. |
---|
| 180 | fi |
---|
| 181 | |
---|
| 182 | if as_func_failure; then |
---|
| 183 | exitcode=1 |
---|
| 184 | echo as_func_failure succeeded. |
---|
| 185 | fi |
---|
| 186 | |
---|
| 187 | if as_func_ret_success; then |
---|
| 188 | : |
---|
| 189 | else |
---|
| 190 | exitcode=1 |
---|
| 191 | echo as_func_ret_success failed. |
---|
| 192 | fi |
---|
| 193 | |
---|
| 194 | if as_func_ret_failure; then |
---|
| 195 | exitcode=1 |
---|
| 196 | echo as_func_ret_failure succeeded. |
---|
| 197 | fi |
---|
| 198 | |
---|
| 199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 200 | : |
---|
| 201 | else |
---|
| 202 | exitcode=1 |
---|
| 203 | echo positional parameters were not saved. |
---|
| 204 | fi |
---|
| 205 | |
---|
| 206 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
| 207 | |
---|
| 208 | ( |
---|
| 209 | as_lineno_1=\$LINENO |
---|
| 210 | as_lineno_2=\$LINENO |
---|
| 211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
| 212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
| 213 | ") 2> /dev/null; then |
---|
| 214 | : |
---|
| 215 | else |
---|
| 216 | as_candidate_shells= |
---|
| 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 219 | do |
---|
| 220 | IFS=$as_save_IFS |
---|
| 221 | test -z "$as_dir" && as_dir=. |
---|
| 222 | case $as_dir in |
---|
| 223 | /*) |
---|
| 224 | for as_base in sh bash ksh sh5; do |
---|
| 225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
| 226 | done;; |
---|
| 227 | esac |
---|
| 228 | done |
---|
| 229 | IFS=$as_save_IFS |
---|
| 230 | |
---|
| 231 | |
---|
| 232 | for as_shell in $as_candidate_shells $SHELL; do |
---|
| 233 | # Try only shells that exist, to save several forks. |
---|
| 234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 235 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
| 236 | # Be Bourne compatible |
---|
| 237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 238 | emulate sh |
---|
| 239 | NULLCMD=: |
---|
| 240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 241 | # is contrary to our usage. Disable this feature. |
---|
| 242 | alias -g '${1+"$@"}'='"$@"' |
---|
| 243 | setopt NO_GLOB_SUBST |
---|
| 244 | else |
---|
| 245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
---|
| 246 | fi |
---|
| 247 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
---|
| 248 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 249 | |
---|
| 250 | : |
---|
| 251 | _ASEOF |
---|
| 252 | }; then |
---|
| 253 | CONFIG_SHELL=$as_shell |
---|
| 254 | as_have_required=yes |
---|
| 255 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
| 256 | # Be Bourne compatible |
---|
| 257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 258 | emulate sh |
---|
| 259 | NULLCMD=: |
---|
| 260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 261 | # is contrary to our usage. Disable this feature. |
---|
| 262 | alias -g '${1+"$@"}'='"$@"' |
---|
| 263 | setopt NO_GLOB_SUBST |
---|
| 264 | else |
---|
| 265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
---|
| 266 | fi |
---|
| 267 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
---|
| 268 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 269 | |
---|
| 270 | : |
---|
| 271 | (as_func_return () { |
---|
| 272 | (exit $1) |
---|
| 273 | } |
---|
| 274 | as_func_success () { |
---|
| 275 | as_func_return 0 |
---|
| 276 | } |
---|
| 277 | as_func_failure () { |
---|
| 278 | as_func_return 1 |
---|
| 279 | } |
---|
| 280 | as_func_ret_success () { |
---|
| 281 | return 0 |
---|
| 282 | } |
---|
| 283 | as_func_ret_failure () { |
---|
| 284 | return 1 |
---|
| 285 | } |
---|
| 286 | |
---|
| 287 | exitcode=0 |
---|
| 288 | if as_func_success; then |
---|
| 289 | : |
---|
| 290 | else |
---|
| 291 | exitcode=1 |
---|
| 292 | echo as_func_success failed. |
---|
| 293 | fi |
---|
| 294 | |
---|
| 295 | if as_func_failure; then |
---|
| 296 | exitcode=1 |
---|
| 297 | echo as_func_failure succeeded. |
---|
| 298 | fi |
---|
| 299 | |
---|
| 300 | if as_func_ret_success; then |
---|
| 301 | : |
---|
| 302 | else |
---|
| 303 | exitcode=1 |
---|
| 304 | echo as_func_ret_success failed. |
---|
| 305 | fi |
---|
| 306 | |
---|
| 307 | if as_func_ret_failure; then |
---|
| 308 | exitcode=1 |
---|
| 309 | echo as_func_ret_failure succeeded. |
---|
| 310 | fi |
---|
| 311 | |
---|
| 312 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
| 313 | : |
---|
| 314 | else |
---|
| 315 | exitcode=1 |
---|
| 316 | echo positional parameters were not saved. |
---|
| 317 | fi |
---|
| 318 | |
---|
| 319 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
| 320 | |
---|
| 321 | ( |
---|
| 322 | as_lineno_1=$LINENO |
---|
| 323 | as_lineno_2=$LINENO |
---|
| 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
| 326 | |
---|
| 327 | _ASEOF |
---|
| 328 | }; then |
---|
| 329 | break |
---|
| 330 | fi |
---|
| 331 | |
---|
| 332 | fi |
---|
| 333 | |
---|
| 334 | done |
---|
| 335 | |
---|
| 336 | if test "x$CONFIG_SHELL" != x; then |
---|
| 337 | for as_var in BASH_ENV ENV |
---|
| 338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 339 | done |
---|
| 340 | export CONFIG_SHELL |
---|
| 341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
| 342 | fi |
---|
| 343 | |
---|
| 344 | |
---|
| 345 | if test $as_have_required = no; then |
---|
| 346 | echo This script requires a shell more modern than all the |
---|
| 347 | echo shells that I found on your system. Please install a |
---|
| 348 | echo modern shell, or manually run the script under such a |
---|
| 349 | echo shell if you do have one. |
---|
| 350 | { (exit 1); exit 1; } |
---|
| 351 | fi |
---|
| 352 | |
---|
| 353 | |
---|
| 354 | fi |
---|
| 355 | |
---|
| 356 | fi |
---|
| 357 | |
---|
| 358 | |
---|
| 359 | |
---|
| 360 | (eval "as_func_return () { |
---|
| 361 | (exit \$1) |
---|
| 362 | } |
---|
| 363 | as_func_success () { |
---|
| 364 | as_func_return 0 |
---|
| 365 | } |
---|
| 366 | as_func_failure () { |
---|
| 367 | as_func_return 1 |
---|
| 368 | } |
---|
| 369 | as_func_ret_success () { |
---|
| 370 | return 0 |
---|
| 371 | } |
---|
| 372 | as_func_ret_failure () { |
---|
| 373 | return 1 |
---|
| 374 | } |
---|
| 375 | |
---|
| 376 | exitcode=0 |
---|
| 377 | if as_func_success; then |
---|
| 378 | : |
---|
| 379 | else |
---|
| 380 | exitcode=1 |
---|
| 381 | echo as_func_success failed. |
---|
| 382 | fi |
---|
| 383 | |
---|
| 384 | if as_func_failure; then |
---|
| 385 | exitcode=1 |
---|
| 386 | echo as_func_failure succeeded. |
---|
| 387 | fi |
---|
| 388 | |
---|
| 389 | if as_func_ret_success; then |
---|
| 390 | : |
---|
| 391 | else |
---|
| 392 | exitcode=1 |
---|
| 393 | echo as_func_ret_success failed. |
---|
| 394 | fi |
---|
| 395 | |
---|
| 396 | if as_func_ret_failure; then |
---|
| 397 | exitcode=1 |
---|
| 398 | echo as_func_ret_failure succeeded. |
---|
| 399 | fi |
---|
| 400 | |
---|
| 401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 402 | : |
---|
| 403 | else |
---|
| 404 | exitcode=1 |
---|
| 405 | echo positional parameters were not saved. |
---|
| 406 | fi |
---|
| 407 | |
---|
| 408 | test \$exitcode = 0") || { |
---|
| 409 | echo No shell found that supports shell functions. |
---|
| 410 | echo Please tell autoconf@gnu.org about your system, |
---|
| 411 | echo including any error possibly output before this |
---|
| 412 | echo message |
---|
| 413 | } |
---|
| 414 | |
---|
| 415 | |
---|
| 416 | |
---|
| 417 | as_lineno_1=$LINENO |
---|
| 418 | as_lineno_2=$LINENO |
---|
| 419 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
| 421 | |
---|
| 422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 423 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 424 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 425 | # does the real work. The second script uses 'N' to pair each |
---|
| 426 | # line-number line with the line containing $LINENO, and appends |
---|
| 427 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 428 | # case at line end. |
---|
| 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 431 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 432 | sed -n ' |
---|
| 433 | p |
---|
| 434 | /[$]LINENO/= |
---|
| 435 | ' <$as_myself | |
---|
| 436 | sed ' |
---|
| 437 | s/[$]LINENO.*/&-/ |
---|
| 438 | t lineno |
---|
| 439 | b |
---|
| 440 | :lineno |
---|
| 441 | N |
---|
| 442 | :loop |
---|
| 443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 444 | t loop |
---|
| 445 | s/-\n.*// |
---|
| 446 | ' >$as_me.lineno && |
---|
| 447 | chmod +x "$as_me.lineno" || |
---|
| 448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 449 | { (exit 1); exit 1; }; } |
---|
| 450 | |
---|
| 451 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 452 | # (the dirname of $[0] is not the place where we might find the |
---|
| 453 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 454 | . "./$as_me.lineno" |
---|
| 455 | # Exit status is that of the last command. |
---|
| 456 | exit |
---|
| 457 | } |
---|
| 458 | |
---|
| 459 | |
---|
| 460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 461 | as_dirname=dirname |
---|
| 462 | else |
---|
| 463 | as_dirname=false |
---|
| 464 | fi |
---|
| 465 | |
---|
| 466 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 467 | case `echo -n x` in |
---|
| 468 | -n*) |
---|
| 469 | case `echo 'x\c'` in |
---|
| 470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 471 | *) ECHO_C='\c';; |
---|
| 472 | esac;; |
---|
| 473 | *) |
---|
| 474 | ECHO_N='-n';; |
---|
| 475 | esac |
---|
| 476 | |
---|
| 477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 479 | as_expr=expr |
---|
| 480 | else |
---|
| 481 | as_expr=false |
---|
| 482 | fi |
---|
| 483 | |
---|
| 484 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 485 | if test -d conf$$.dir; then |
---|
| 486 | rm -f conf$$.dir/conf$$.file |
---|
| 487 | else |
---|
| 488 | rm -f conf$$.dir |
---|
| 489 | mkdir conf$$.dir |
---|
| 490 | fi |
---|
| 491 | echo >conf$$.file |
---|
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 493 | as_ln_s='ln -s' |
---|
| 494 | # ... but there are two gotchas: |
---|
| 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 497 | # In both cases, we have to default to `cp -p'. |
---|
| 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 499 | as_ln_s='cp -p' |
---|
| 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 501 | as_ln_s=ln |
---|
| 502 | else |
---|
| 503 | as_ln_s='cp -p' |
---|
| 504 | fi |
---|
| 505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 506 | rmdir conf$$.dir 2>/dev/null |
---|
| 507 | |
---|
| 508 | if mkdir -p . 2>/dev/null; then |
---|
| 509 | as_mkdir_p=: |
---|
| 510 | else |
---|
| 511 | test -d ./-p && rmdir ./-p |
---|
| 512 | as_mkdir_p=false |
---|
| 513 | fi |
---|
| 514 | |
---|
| 515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
---|
| 516 | # systems may use methods other than mode bits to determine executability. |
---|
| 517 | cat >conf$$.file <<_ASEOF |
---|
| 518 | #! /bin/sh |
---|
| 519 | exit 0 |
---|
| 520 | _ASEOF |
---|
| 521 | chmod +x conf$$.file |
---|
| 522 | if test -x conf$$.file >/dev/null 2>&1; then |
---|
| 523 | as_executable_p="test -x" |
---|
| 524 | else |
---|
| 525 | as_executable_p=: |
---|
| 526 | fi |
---|
| 527 | rm -f conf$$.file |
---|
| 528 | |
---|
| 529 | # Sed expression to map a string onto a valid CPP name. |
---|
| 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 531 | |
---|
| 532 | # Sed expression to map a string onto a valid variable name. |
---|
| 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 534 | |
---|
| 535 | |
---|
| 536 | |
---|
| 537 | exec 7<&0 </dev/null 6>&1 |
---|
| 538 | |
---|
| 539 | # Name of the host. |
---|
| 540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 541 | # so uname gets run too. |
---|
| 542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 543 | |
---|
| 544 | # |
---|
| 545 | # Initializations. |
---|
| 546 | # |
---|
| 547 | ac_default_prefix=/usr/local |
---|
| 548 | ac_clean_files= |
---|
| 549 | ac_config_libobj_dir=. |
---|
| 550 | LIBOBJS= |
---|
| 551 | cross_compiling=no |
---|
| 552 | subdirs= |
---|
| 553 | MFLAGS= |
---|
| 554 | MAKEFLAGS= |
---|
| 555 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 556 | |
---|
| 557 | # Identity of this package. |
---|
| 558 | PACKAGE_NAME='libenet' |
---|
| 559 | PACKAGE_TARNAME='libenet' |
---|
| 560 | PACKAGE_VERSION='6-6-2007' |
---|
| 561 | PACKAGE_STRING='libenet 6-6-2007' |
---|
| 562 | PACKAGE_BUGREPORT='' |
---|
| 563 | |
---|
| 564 | ac_subst_vars='SHELL |
---|
| 565 | PATH_SEPARATOR |
---|
| 566 | PACKAGE_NAME |
---|
| 567 | PACKAGE_TARNAME |
---|
| 568 | PACKAGE_VERSION |
---|
| 569 | PACKAGE_STRING |
---|
| 570 | PACKAGE_BUGREPORT |
---|
| 571 | exec_prefix |
---|
| 572 | prefix |
---|
| 573 | program_transform_name |
---|
| 574 | bindir |
---|
| 575 | sbindir |
---|
| 576 | libexecdir |
---|
| 577 | datarootdir |
---|
| 578 | datadir |
---|
| 579 | sysconfdir |
---|
| 580 | sharedstatedir |
---|
| 581 | localstatedir |
---|
| 582 | includedir |
---|
| 583 | oldincludedir |
---|
| 584 | docdir |
---|
| 585 | infodir |
---|
| 586 | htmldir |
---|
| 587 | dvidir |
---|
| 588 | pdfdir |
---|
| 589 | psdir |
---|
| 590 | libdir |
---|
| 591 | localedir |
---|
| 592 | mandir |
---|
| 593 | DEFS |
---|
| 594 | ECHO_C |
---|
| 595 | ECHO_N |
---|
| 596 | ECHO_T |
---|
| 597 | LIBS |
---|
| 598 | build_alias |
---|
| 599 | host_alias |
---|
| 600 | target_alias |
---|
| 601 | INSTALL_PROGRAM |
---|
| 602 | INSTALL_SCRIPT |
---|
| 603 | INSTALL_DATA |
---|
| 604 | CYGPATH_W |
---|
| 605 | PACKAGE |
---|
| 606 | VERSION |
---|
| 607 | ACLOCAL |
---|
| 608 | AUTOCONF |
---|
| 609 | AUTOMAKE |
---|
| 610 | AUTOHEADER |
---|
| 611 | MAKEINFO |
---|
| 612 | install_sh |
---|
| 613 | STRIP |
---|
| 614 | INSTALL_STRIP_PROGRAM |
---|
| 615 | mkdir_p |
---|
| 616 | AWK |
---|
| 617 | SET_MAKE |
---|
| 618 | am__leading_dot |
---|
| 619 | AMTAR |
---|
| 620 | am__tar |
---|
| 621 | am__untar |
---|
| 622 | CC |
---|
| 623 | CFLAGS |
---|
| 624 | LDFLAGS |
---|
| 625 | CPPFLAGS |
---|
| 626 | ac_ct_CC |
---|
| 627 | EXEEXT |
---|
| 628 | OBJEXT |
---|
| 629 | DEPDIR |
---|
| 630 | am__include |
---|
| 631 | am__quote |
---|
| 632 | AMDEP_TRUE |
---|
| 633 | AMDEP_FALSE |
---|
| 634 | AMDEPBACKSLASH |
---|
| 635 | CCDEPMODE |
---|
| 636 | am__fastdepCC_TRUE |
---|
| 637 | am__fastdepCC_FALSE |
---|
| 638 | RANLIB |
---|
| 639 | CPP |
---|
| 640 | GREP |
---|
| 641 | EGREP |
---|
| 642 | LIBOBJS |
---|
| 643 | LTLIBOBJS' |
---|
| 644 | ac_subst_files='' |
---|
| 645 | ac_precious_vars='build_alias |
---|
| 646 | host_alias |
---|
| 647 | target_alias |
---|
| 648 | CC |
---|
| 649 | CFLAGS |
---|
| 650 | LDFLAGS |
---|
| 651 | CPPFLAGS |
---|
| 652 | CPP' |
---|
| 653 | |
---|
| 654 | |
---|
| 655 | # Initialize some variables set by options. |
---|
| 656 | ac_init_help= |
---|
| 657 | ac_init_version=false |
---|
| 658 | # The variables have the same names as the options, with |
---|
| 659 | # dashes changed to underlines. |
---|
| 660 | cache_file=/dev/null |
---|
| 661 | exec_prefix=NONE |
---|
| 662 | no_create= |
---|
| 663 | no_recursion= |
---|
| 664 | prefix=NONE |
---|
| 665 | program_prefix=NONE |
---|
| 666 | program_suffix=NONE |
---|
| 667 | program_transform_name=s,x,x, |
---|
| 668 | silent= |
---|
| 669 | site= |
---|
| 670 | srcdir= |
---|
| 671 | verbose= |
---|
| 672 | x_includes=NONE |
---|
| 673 | x_libraries=NONE |
---|
| 674 | |
---|
| 675 | # Installation directory options. |
---|
| 676 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 677 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 678 | # by default will actually change. |
---|
| 679 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 680 | # (The list follows the same order as the GNU Coding Standards.) |
---|
| 681 | bindir='${exec_prefix}/bin' |
---|
| 682 | sbindir='${exec_prefix}/sbin' |
---|
| 683 | libexecdir='${exec_prefix}/libexec' |
---|
| 684 | datarootdir='${prefix}/share' |
---|
| 685 | datadir='${datarootdir}' |
---|
| 686 | sysconfdir='${prefix}/etc' |
---|
| 687 | sharedstatedir='${prefix}/com' |
---|
| 688 | localstatedir='${prefix}/var' |
---|
| 689 | includedir='${prefix}/include' |
---|
| 690 | oldincludedir='/usr/include' |
---|
| 691 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 692 | infodir='${datarootdir}/info' |
---|
| 693 | htmldir='${docdir}' |
---|
| 694 | dvidir='${docdir}' |
---|
| 695 | pdfdir='${docdir}' |
---|
| 696 | psdir='${docdir}' |
---|
| 697 | libdir='${exec_prefix}/lib' |
---|
| 698 | localedir='${datarootdir}/locale' |
---|
| 699 | mandir='${datarootdir}/man' |
---|
| 700 | |
---|
| 701 | ac_prev= |
---|
| 702 | ac_dashdash= |
---|
| 703 | for ac_option |
---|
| 704 | do |
---|
| 705 | # If the previous option needs an argument, assign it. |
---|
| 706 | if test -n "$ac_prev"; then |
---|
| 707 | eval $ac_prev=\$ac_option |
---|
| 708 | ac_prev= |
---|
| 709 | continue |
---|
| 710 | fi |
---|
| 711 | |
---|
| 712 | case $ac_option in |
---|
| 713 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 714 | *) ac_optarg=yes ;; |
---|
| 715 | esac |
---|
| 716 | |
---|
| 717 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 718 | |
---|
| 719 | case $ac_dashdash$ac_option in |
---|
| 720 | --) |
---|
| 721 | ac_dashdash=yes ;; |
---|
| 722 | |
---|
| 723 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 724 | ac_prev=bindir ;; |
---|
| 725 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 726 | bindir=$ac_optarg ;; |
---|
| 727 | |
---|
| 728 | -build | --build | --buil | --bui | --bu) |
---|
| 729 | ac_prev=build_alias ;; |
---|
| 730 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 731 | build_alias=$ac_optarg ;; |
---|
| 732 | |
---|
| 733 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 734 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 735 | ac_prev=cache_file ;; |
---|
| 736 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 737 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 738 | cache_file=$ac_optarg ;; |
---|
| 739 | |
---|
| 740 | --config-cache | -C) |
---|
| 741 | cache_file=config.cache ;; |
---|
| 742 | |
---|
| 743 | -datadir | --datadir | --datadi | --datad) |
---|
| 744 | ac_prev=datadir ;; |
---|
| 745 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
| 746 | datadir=$ac_optarg ;; |
---|
| 747 | |
---|
| 748 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 749 | | --dataroo | --dataro | --datar) |
---|
| 750 | ac_prev=datarootdir ;; |
---|
| 751 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 752 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 753 | datarootdir=$ac_optarg ;; |
---|
| 754 | |
---|
| 755 | -disable-* | --disable-*) |
---|
| 756 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 757 | # Reject names that are not valid shell variable names. |
---|
| 758 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 759 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 760 | { (exit 1); exit 1; }; } |
---|
| 761 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 762 | eval enable_$ac_feature=no ;; |
---|
| 763 | |
---|
| 764 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 765 | ac_prev=docdir ;; |
---|
| 766 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 767 | docdir=$ac_optarg ;; |
---|
| 768 | |
---|
| 769 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 770 | ac_prev=dvidir ;; |
---|
| 771 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 772 | dvidir=$ac_optarg ;; |
---|
| 773 | |
---|
| 774 | -enable-* | --enable-*) |
---|
| 775 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 776 | # Reject names that are not valid shell variable names. |
---|
| 777 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 778 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 779 | { (exit 1); exit 1; }; } |
---|
| 780 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 781 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
| 782 | |
---|
| 783 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 784 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 785 | | --exec | --exe | --ex) |
---|
| 786 | ac_prev=exec_prefix ;; |
---|
| 787 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 788 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 789 | | --exec=* | --exe=* | --ex=*) |
---|
| 790 | exec_prefix=$ac_optarg ;; |
---|
| 791 | |
---|
| 792 | -gas | --gas | --ga | --g) |
---|
| 793 | # Obsolete; use --with-gas. |
---|
| 794 | with_gas=yes ;; |
---|
| 795 | |
---|
| 796 | -help | --help | --hel | --he | -h) |
---|
| 797 | ac_init_help=long ;; |
---|
| 798 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 799 | ac_init_help=recursive ;; |
---|
| 800 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 801 | ac_init_help=short ;; |
---|
| 802 | |
---|
| 803 | -host | --host | --hos | --ho) |
---|
| 804 | ac_prev=host_alias ;; |
---|
| 805 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 806 | host_alias=$ac_optarg ;; |
---|
| 807 | |
---|
| 808 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 809 | ac_prev=htmldir ;; |
---|
| 810 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 811 | | --ht=*) |
---|
| 812 | htmldir=$ac_optarg ;; |
---|
| 813 | |
---|
| 814 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 815 | | --includ | --inclu | --incl | --inc) |
---|
| 816 | ac_prev=includedir ;; |
---|
| 817 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 818 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 819 | includedir=$ac_optarg ;; |
---|
| 820 | |
---|
| 821 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 822 | ac_prev=infodir ;; |
---|
| 823 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 824 | infodir=$ac_optarg ;; |
---|
| 825 | |
---|
| 826 | -libdir | --libdir | --libdi | --libd) |
---|
| 827 | ac_prev=libdir ;; |
---|
| 828 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 829 | libdir=$ac_optarg ;; |
---|
| 830 | |
---|
| 831 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 832 | | --libexe | --libex | --libe) |
---|
| 833 | ac_prev=libexecdir ;; |
---|
| 834 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 835 | | --libexe=* | --libex=* | --libe=*) |
---|
| 836 | libexecdir=$ac_optarg ;; |
---|
| 837 | |
---|
| 838 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 839 | ac_prev=localedir ;; |
---|
| 840 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 841 | localedir=$ac_optarg ;; |
---|
| 842 | |
---|
| 843 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 844 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
| 845 | ac_prev=localstatedir ;; |
---|
| 846 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 847 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
| 848 | localstatedir=$ac_optarg ;; |
---|
| 849 | |
---|
| 850 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 851 | ac_prev=mandir ;; |
---|
| 852 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 853 | mandir=$ac_optarg ;; |
---|
| 854 | |
---|
| 855 | -nfp | --nfp | --nf) |
---|
| 856 | # Obsolete; use --without-fp. |
---|
| 857 | with_fp=no ;; |
---|
| 858 | |
---|
| 859 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 860 | | --no-cr | --no-c | -n) |
---|
| 861 | no_create=yes ;; |
---|
| 862 | |
---|
| 863 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 864 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 865 | no_recursion=yes ;; |
---|
| 866 | |
---|
| 867 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 868 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 869 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 870 | ac_prev=oldincludedir ;; |
---|
| 871 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 872 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 873 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 874 | oldincludedir=$ac_optarg ;; |
---|
| 875 | |
---|
| 876 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 877 | ac_prev=prefix ;; |
---|
| 878 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 879 | prefix=$ac_optarg ;; |
---|
| 880 | |
---|
| 881 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 882 | | --program-pre | --program-pr | --program-p) |
---|
| 883 | ac_prev=program_prefix ;; |
---|
| 884 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 885 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 886 | program_prefix=$ac_optarg ;; |
---|
| 887 | |
---|
| 888 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 889 | | --program-suf | --program-su | --program-s) |
---|
| 890 | ac_prev=program_suffix ;; |
---|
| 891 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 892 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 893 | program_suffix=$ac_optarg ;; |
---|
| 894 | |
---|
| 895 | -program-transform-name | --program-transform-name \ |
---|
| 896 | | --program-transform-nam | --program-transform-na \ |
---|
| 897 | | --program-transform-n | --program-transform- \ |
---|
| 898 | | --program-transform | --program-transfor \ |
---|
| 899 | | --program-transfo | --program-transf \ |
---|
| 900 | | --program-trans | --program-tran \ |
---|
| 901 | | --progr-tra | --program-tr | --program-t) |
---|
| 902 | ac_prev=program_transform_name ;; |
---|
| 903 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 904 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 905 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 906 | | --program-transform=* | --program-transfor=* \ |
---|
| 907 | | --program-transfo=* | --program-transf=* \ |
---|
| 908 | | --program-trans=* | --program-tran=* \ |
---|
| 909 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 910 | program_transform_name=$ac_optarg ;; |
---|
| 911 | |
---|
| 912 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 913 | ac_prev=pdfdir ;; |
---|
| 914 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 915 | pdfdir=$ac_optarg ;; |
---|
| 916 | |
---|
| 917 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 918 | ac_prev=psdir ;; |
---|
| 919 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 920 | psdir=$ac_optarg ;; |
---|
| 921 | |
---|
| 922 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 923 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 924 | silent=yes ;; |
---|
| 925 | |
---|
| 926 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 927 | ac_prev=sbindir ;; |
---|
| 928 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 929 | | --sbi=* | --sb=*) |
---|
| 930 | sbindir=$ac_optarg ;; |
---|
| 931 | |
---|
| 932 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 933 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 934 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 935 | | --sha | --sh) |
---|
| 936 | ac_prev=sharedstatedir ;; |
---|
| 937 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 938 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 939 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 940 | | --sha=* | --sh=*) |
---|
| 941 | sharedstatedir=$ac_optarg ;; |
---|
| 942 | |
---|
| 943 | -site | --site | --sit) |
---|
| 944 | ac_prev=site ;; |
---|
| 945 | -site=* | --site=* | --sit=*) |
---|
| 946 | site=$ac_optarg ;; |
---|
| 947 | |
---|
| 948 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 949 | ac_prev=srcdir ;; |
---|
| 950 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 951 | srcdir=$ac_optarg ;; |
---|
| 952 | |
---|
| 953 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 954 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 955 | ac_prev=sysconfdir ;; |
---|
| 956 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 957 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 958 | sysconfdir=$ac_optarg ;; |
---|
| 959 | |
---|
| 960 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 961 | ac_prev=target_alias ;; |
---|
| 962 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 963 | target_alias=$ac_optarg ;; |
---|
| 964 | |
---|
| 965 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 966 | verbose=yes ;; |
---|
| 967 | |
---|
| 968 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 969 | ac_init_version=: ;; |
---|
| 970 | |
---|
| 971 | -with-* | --with-*) |
---|
| 972 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 973 | # Reject names that are not valid shell variable names. |
---|
| 974 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 975 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 976 | { (exit 1); exit 1; }; } |
---|
| 977 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 978 | eval with_$ac_package=\$ac_optarg ;; |
---|
| 979 | |
---|
| 980 | -without-* | --without-*) |
---|
| 981 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 982 | # Reject names that are not valid shell variable names. |
---|
| 983 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 984 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 985 | { (exit 1); exit 1; }; } |
---|
| 986 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 987 | eval with_$ac_package=no ;; |
---|
| 988 | |
---|
| 989 | --x) |
---|
| 990 | # Obsolete; use --with-x. |
---|
| 991 | with_x=yes ;; |
---|
| 992 | |
---|
| 993 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 994 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 995 | ac_prev=x_includes ;; |
---|
| 996 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 997 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 998 | x_includes=$ac_optarg ;; |
---|
| 999 | |
---|
| 1000 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1001 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1002 | ac_prev=x_libraries ;; |
---|
| 1003 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1004 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1005 | x_libraries=$ac_optarg ;; |
---|
| 1006 | |
---|
| 1007 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 1008 | Try \`$0 --help' for more information." >&2 |
---|
| 1009 | { (exit 1); exit 1; }; } |
---|
| 1010 | ;; |
---|
| 1011 | |
---|
| 1012 | *=*) |
---|
| 1013 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1014 | # Reject names that are not valid shell variable names. |
---|
| 1015 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 1016 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 1017 | { (exit 1); exit 1; }; } |
---|
| 1018 | eval $ac_envvar=\$ac_optarg |
---|
| 1019 | export $ac_envvar ;; |
---|
| 1020 | |
---|
| 1021 | *) |
---|
| 1022 | # FIXME: should be removed in autoconf 3.0. |
---|
| 1023 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 1024 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1025 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1026 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 1027 | ;; |
---|
| 1028 | |
---|
| 1029 | esac |
---|
| 1030 | done |
---|
| 1031 | |
---|
| 1032 | if test -n "$ac_prev"; then |
---|
| 1033 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 1034 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 1035 | { (exit 1); exit 1; }; } |
---|
| 1036 | fi |
---|
| 1037 | |
---|
| 1038 | # Be sure to have absolute directory names. |
---|
| 1039 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1040 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1041 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1042 | libdir localedir mandir |
---|
| 1043 | do |
---|
| 1044 | eval ac_val=\$$ac_var |
---|
| 1045 | case $ac_val in |
---|
| 1046 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1047 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
| 1048 | esac |
---|
| 1049 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 1050 | { (exit 1); exit 1; }; } |
---|
| 1051 | done |
---|
| 1052 | |
---|
| 1053 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1054 | # used to hold the argument of --host etc. |
---|
| 1055 | # FIXME: To remove some day. |
---|
| 1056 | build=$build_alias |
---|
| 1057 | host=$host_alias |
---|
| 1058 | target=$target_alias |
---|
| 1059 | |
---|
| 1060 | # FIXME: To remove some day. |
---|
| 1061 | if test "x$host_alias" != x; then |
---|
| 1062 | if test "x$build_alias" = x; then |
---|
| 1063 | cross_compiling=maybe |
---|
| 1064 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 1065 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 1066 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1067 | cross_compiling=yes |
---|
| 1068 | fi |
---|
| 1069 | fi |
---|
| 1070 | |
---|
| 1071 | ac_tool_prefix= |
---|
| 1072 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1073 | |
---|
| 1074 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1075 | |
---|
| 1076 | |
---|
| 1077 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1078 | ac_ls_di=`ls -di .` && |
---|
| 1079 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1080 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
| 1081 | { (exit 1); exit 1; }; } |
---|
| 1082 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1083 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
| 1084 | { (exit 1); exit 1; }; } |
---|
| 1085 | |
---|
| 1086 | |
---|
| 1087 | # Find the source files, if location was not specified. |
---|
| 1088 | if test -z "$srcdir"; then |
---|
| 1089 | ac_srcdir_defaulted=yes |
---|
| 1090 | # Try the directory containing this script, then the parent directory. |
---|
| 1091 | ac_confdir=`$as_dirname -- "$0" || |
---|
| 1092 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1093 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 1094 | X"$0" : 'X\(//\)$' \| \ |
---|
| 1095 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1096 | echo X"$0" | |
---|
| 1097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1098 | s//\1/ |
---|
| 1099 | q |
---|
| 1100 | } |
---|
| 1101 | /^X\(\/\/\)[^/].*/{ |
---|
| 1102 | s//\1/ |
---|
| 1103 | q |
---|
| 1104 | } |
---|
| 1105 | /^X\(\/\/\)$/{ |
---|
| 1106 | s//\1/ |
---|
| 1107 | q |
---|
| 1108 | } |
---|
| 1109 | /^X\(\/\).*/{ |
---|
| 1110 | s//\1/ |
---|
| 1111 | q |
---|
| 1112 | } |
---|
| 1113 | s/.*/./; q'` |
---|
| 1114 | srcdir=$ac_confdir |
---|
| 1115 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1116 | srcdir=.. |
---|
| 1117 | fi |
---|
| 1118 | else |
---|
| 1119 | ac_srcdir_defaulted=no |
---|
| 1120 | fi |
---|
| 1121 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1122 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1123 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 1124 | { (exit 1); exit 1; }; } |
---|
| 1125 | fi |
---|
| 1126 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1127 | ac_abs_confdir=`( |
---|
| 1128 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
| 1129 | { (exit 1); exit 1; }; } |
---|
| 1130 | pwd)` |
---|
| 1131 | # When building in place, set srcdir=. |
---|
| 1132 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1133 | srcdir=. |
---|
| 1134 | fi |
---|
| 1135 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1136 | # Double slashes in file names in object file debugging info |
---|
| 1137 | # mess up M-x gdb in Emacs. |
---|
| 1138 | case $srcdir in |
---|
| 1139 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1140 | esac |
---|
| 1141 | for ac_var in $ac_precious_vars; do |
---|
| 1142 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1143 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1144 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1145 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1146 | done |
---|
| 1147 | |
---|
| 1148 | # |
---|
| 1149 | # Report the --help message. |
---|
| 1150 | # |
---|
| 1151 | if test "$ac_init_help" = "long"; then |
---|
| 1152 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1153 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1154 | cat <<_ACEOF |
---|
| 1155 | \`configure' configures libenet 6-6-2007 to adapt to many kinds of systems. |
---|
| 1156 | |
---|
| 1157 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1158 | |
---|
| 1159 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1160 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1161 | |
---|
| 1162 | Defaults for the options are specified in brackets. |
---|
| 1163 | |
---|
| 1164 | Configuration: |
---|
| 1165 | -h, --help display this help and exit |
---|
| 1166 | --help=short display options specific to this package |
---|
| 1167 | --help=recursive display the short help of all the included packages |
---|
| 1168 | -V, --version display version information and exit |
---|
| 1169 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 1170 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1171 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1172 | -n, --no-create do not create output files |
---|
| 1173 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1174 | |
---|
| 1175 | Installation directories: |
---|
| 1176 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1177 | [$ac_default_prefix] |
---|
| 1178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1179 | [PREFIX] |
---|
| 1180 | |
---|
| 1181 | By default, \`make install' will install all the files in |
---|
| 1182 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1183 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1184 | for instance \`--prefix=\$HOME'. |
---|
| 1185 | |
---|
| 1186 | For better control, use the options below. |
---|
| 1187 | |
---|
| 1188 | Fine tuning of the installation directories: |
---|
| 1189 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1190 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1191 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1192 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1193 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1194 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1195 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1196 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1197 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1198 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1199 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1200 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1201 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1202 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1203 | --docdir=DIR documentation root [DATAROOTDIR/doc/libenet] |
---|
| 1204 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1205 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1206 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1207 | --psdir=DIR ps documentation [DOCDIR] |
---|
| 1208 | _ACEOF |
---|
| 1209 | |
---|
| 1210 | cat <<\_ACEOF |
---|
| 1211 | |
---|
| 1212 | Program names: |
---|
| 1213 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 1214 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 1215 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
| 1216 | _ACEOF |
---|
| 1217 | fi |
---|
| 1218 | |
---|
| 1219 | if test -n "$ac_init_help"; then |
---|
| 1220 | case $ac_init_help in |
---|
| 1221 | short | recursive ) echo "Configuration of libenet 6-6-2007:";; |
---|
| 1222 | esac |
---|
| 1223 | cat <<\_ACEOF |
---|
| 1224 | |
---|
| 1225 | Optional Features: |
---|
| 1226 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 1227 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 1228 | --disable-dependency-tracking speeds up one-time build |
---|
| 1229 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
| 1230 | --enable-crc32 enable CRC32 packet verification |
---|
| 1231 | |
---|
| 1232 | Some influential environment variables: |
---|
| 1233 | CC C compiler command |
---|
| 1234 | CFLAGS C compiler flags |
---|
| 1235 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1236 | nonstandard directory <lib dir> |
---|
| 1237 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
| 1238 | you have headers in a nonstandard directory <include dir> |
---|
| 1239 | CPP C preprocessor |
---|
| 1240 | |
---|
| 1241 | Use these variables to override the choices made by `configure' or to help |
---|
| 1242 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1243 | |
---|
| 1244 | _ACEOF |
---|
| 1245 | ac_status=$? |
---|
| 1246 | fi |
---|
| 1247 | |
---|
| 1248 | if test "$ac_init_help" = "recursive"; then |
---|
| 1249 | # If there are subdirs, report their specific --help. |
---|
| 1250 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 1251 | test -d "$ac_dir" || continue |
---|
| 1252 | ac_builddir=. |
---|
| 1253 | |
---|
| 1254 | case "$ac_dir" in |
---|
| 1255 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1256 | *) |
---|
| 1257 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 1258 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1259 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
| 1260 | case $ac_top_builddir_sub in |
---|
| 1261 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1262 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1263 | esac ;; |
---|
| 1264 | esac |
---|
| 1265 | ac_abs_top_builddir=$ac_pwd |
---|
| 1266 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1267 | # for backward compatibility: |
---|
| 1268 | ac_top_builddir=$ac_top_build_prefix |
---|
| 1269 | |
---|
| 1270 | case $srcdir in |
---|
| 1271 | .) # We are building in place. |
---|
| 1272 | ac_srcdir=. |
---|
| 1273 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1274 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1275 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 1276 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 1277 | ac_top_srcdir=$srcdir |
---|
| 1278 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1279 | *) # Relative name. |
---|
| 1280 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1281 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1282 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 1283 | esac |
---|
| 1284 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 1285 | |
---|
| 1286 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1287 | # Check for guested configure. |
---|
| 1288 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1289 | echo && |
---|
| 1290 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1291 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1292 | echo && |
---|
| 1293 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
| 1294 | else |
---|
| 1295 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 1296 | fi || ac_status=$? |
---|
| 1297 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
| 1298 | done |
---|
| 1299 | fi |
---|
| 1300 | |
---|
| 1301 | test -n "$ac_init_help" && exit $ac_status |
---|
| 1302 | if $ac_init_version; then |
---|
| 1303 | cat <<\_ACEOF |
---|
| 1304 | libenet configure 6-6-2007 |
---|
| 1305 | generated by GNU Autoconf 2.60a |
---|
| 1306 | |
---|
| 1307 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 1308 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
| 1309 | This configure script is free software; the Free Software Foundation |
---|
| 1310 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1311 | _ACEOF |
---|
| 1312 | exit |
---|
| 1313 | fi |
---|
| 1314 | cat >config.log <<_ACEOF |
---|
| 1315 | This file contains any messages produced by compilers while |
---|
| 1316 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1317 | |
---|
| 1318 | It was created by libenet $as_me 6-6-2007, which was |
---|
| 1319 | generated by GNU Autoconf 2.60a. Invocation command line was |
---|
| 1320 | |
---|
| 1321 | $ $0 $@ |
---|
| 1322 | |
---|
| 1323 | _ACEOF |
---|
| 1324 | exec 5>>config.log |
---|
| 1325 | { |
---|
| 1326 | cat <<_ASUNAME |
---|
| 1327 | ## --------- ## |
---|
| 1328 | ## Platform. ## |
---|
| 1329 | ## --------- ## |
---|
| 1330 | |
---|
| 1331 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1332 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1333 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1334 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1335 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1336 | |
---|
| 1337 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1338 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1339 | |
---|
| 1340 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1341 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1342 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1343 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
| 1344 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1345 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1346 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1347 | |
---|
| 1348 | _ASUNAME |
---|
| 1349 | |
---|
| 1350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1351 | for as_dir in $PATH |
---|
| 1352 | do |
---|
| 1353 | IFS=$as_save_IFS |
---|
| 1354 | test -z "$as_dir" && as_dir=. |
---|
| 1355 | echo "PATH: $as_dir" |
---|
| 1356 | done |
---|
| 1357 | IFS=$as_save_IFS |
---|
| 1358 | |
---|
| 1359 | } >&5 |
---|
| 1360 | |
---|
| 1361 | cat >&5 <<_ACEOF |
---|
| 1362 | |
---|
| 1363 | |
---|
| 1364 | ## ----------- ## |
---|
| 1365 | ## Core tests. ## |
---|
| 1366 | ## ----------- ## |
---|
| 1367 | |
---|
| 1368 | _ACEOF |
---|
| 1369 | |
---|
| 1370 | |
---|
| 1371 | # Keep a trace of the command line. |
---|
| 1372 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1373 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1374 | # Also quote any args containing shell meta-characters. |
---|
| 1375 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1376 | ac_configure_args= |
---|
| 1377 | ac_configure_args0= |
---|
| 1378 | ac_configure_args1= |
---|
| 1379 | ac_must_keep_next=false |
---|
| 1380 | for ac_pass in 1 2 |
---|
| 1381 | do |
---|
| 1382 | for ac_arg |
---|
| 1383 | do |
---|
| 1384 | case $ac_arg in |
---|
| 1385 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1386 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1387 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1388 | continue ;; |
---|
| 1389 | *\'*) |
---|
| 1390 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1391 | esac |
---|
| 1392 | case $ac_pass in |
---|
| 1393 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1394 | 2) |
---|
| 1395 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1396 | if test $ac_must_keep_next = true; then |
---|
| 1397 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1398 | else |
---|
| 1399 | case $ac_arg in |
---|
| 1400 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1401 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1402 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1403 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1404 | case "$ac_configure_args0 " in |
---|
| 1405 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1406 | esac |
---|
| 1407 | ;; |
---|
| 1408 | -* ) ac_must_keep_next=true ;; |
---|
| 1409 | esac |
---|
| 1410 | fi |
---|
| 1411 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
| 1412 | ;; |
---|
| 1413 | esac |
---|
| 1414 | done |
---|
| 1415 | done |
---|
| 1416 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1417 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1418 | |
---|
| 1419 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1420 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1421 | # would cause problems or look ugly. |
---|
| 1422 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 1423 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
| 1424 | trap 'exit_status=$? |
---|
| 1425 | # Save into config.log some information that might help in debugging. |
---|
| 1426 | { |
---|
| 1427 | echo |
---|
| 1428 | |
---|
| 1429 | cat <<\_ASBOX |
---|
| 1430 | ## ---------------- ## |
---|
| 1431 | ## Cache variables. ## |
---|
| 1432 | ## ---------------- ## |
---|
| 1433 | _ASBOX |
---|
| 1434 | echo |
---|
| 1435 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1436 | ( |
---|
| 1437 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 1438 | eval ac_val=\$$ac_var |
---|
| 1439 | case $ac_val in #( |
---|
| 1440 | *${as_nl}*) |
---|
| 1441 | case $ac_var in #( |
---|
| 1442 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
| 1443 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
| 1444 | esac |
---|
| 1445 | case $ac_var in #( |
---|
| 1446 | _ | IFS | as_nl) ;; #( |
---|
| 1447 | *) $as_unset $ac_var ;; |
---|
| 1448 | esac ;; |
---|
| 1449 | esac |
---|
| 1450 | done |
---|
| 1451 | (set) 2>&1 | |
---|
| 1452 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 1453 | *${as_nl}ac_space=\ *) |
---|
| 1454 | sed -n \ |
---|
| 1455 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 1456 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 1457 | ;; #( |
---|
| 1458 | *) |
---|
| 1459 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 1460 | ;; |
---|
| 1461 | esac | |
---|
| 1462 | sort |
---|
| 1463 | ) |
---|
| 1464 | echo |
---|
| 1465 | |
---|
| 1466 | cat <<\_ASBOX |
---|
| 1467 | ## ----------------- ## |
---|
| 1468 | ## Output variables. ## |
---|
| 1469 | ## ----------------- ## |
---|
| 1470 | _ASBOX |
---|
| 1471 | echo |
---|
| 1472 | for ac_var in $ac_subst_vars |
---|
| 1473 | do |
---|
| 1474 | eval ac_val=\$$ac_var |
---|
| 1475 | case $ac_val in |
---|
| 1476 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1477 | esac |
---|
| 1478 | echo "$ac_var='\''$ac_val'\''" |
---|
| 1479 | done | sort |
---|
| 1480 | echo |
---|
| 1481 | |
---|
| 1482 | if test -n "$ac_subst_files"; then |
---|
| 1483 | cat <<\_ASBOX |
---|
| 1484 | ## ------------------- ## |
---|
| 1485 | ## File substitutions. ## |
---|
| 1486 | ## ------------------- ## |
---|
| 1487 | _ASBOX |
---|
| 1488 | echo |
---|
| 1489 | for ac_var in $ac_subst_files |
---|
| 1490 | do |
---|
| 1491 | eval ac_val=\$$ac_var |
---|
| 1492 | case $ac_val in |
---|
| 1493 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1494 | esac |
---|
| 1495 | echo "$ac_var='\''$ac_val'\''" |
---|
| 1496 | done | sort |
---|
| 1497 | echo |
---|
| 1498 | fi |
---|
| 1499 | |
---|
| 1500 | if test -s confdefs.h; then |
---|
| 1501 | cat <<\_ASBOX |
---|
| 1502 | ## ----------- ## |
---|
| 1503 | ## confdefs.h. ## |
---|
| 1504 | ## ----------- ## |
---|
| 1505 | _ASBOX |
---|
| 1506 | echo |
---|
| 1507 | cat confdefs.h |
---|
| 1508 | echo |
---|
| 1509 | fi |
---|
| 1510 | test "$ac_signal" != 0 && |
---|
| 1511 | echo "$as_me: caught signal $ac_signal" |
---|
| 1512 | echo "$as_me: exit $exit_status" |
---|
| 1513 | } >&5 |
---|
| 1514 | rm -f core *.core core.conftest.* && |
---|
| 1515 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1516 | exit $exit_status |
---|
| 1517 | ' 0 |
---|
| 1518 | for ac_signal in 1 2 13 15; do |
---|
| 1519 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1520 | done |
---|
| 1521 | ac_signal=0 |
---|
| 1522 | |
---|
| 1523 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1524 | rm -f -r conftest* confdefs.h |
---|
| 1525 | |
---|
| 1526 | # Predefined preprocessor variables. |
---|
| 1527 | |
---|
| 1528 | cat >>confdefs.h <<_ACEOF |
---|
| 1529 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1530 | _ACEOF |
---|
| 1531 | |
---|
| 1532 | |
---|
| 1533 | cat >>confdefs.h <<_ACEOF |
---|
| 1534 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1535 | _ACEOF |
---|
| 1536 | |
---|
| 1537 | |
---|
| 1538 | cat >>confdefs.h <<_ACEOF |
---|
| 1539 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1540 | _ACEOF |
---|
| 1541 | |
---|
| 1542 | |
---|
| 1543 | cat >>confdefs.h <<_ACEOF |
---|
| 1544 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1545 | _ACEOF |
---|
| 1546 | |
---|
| 1547 | |
---|
| 1548 | cat >>confdefs.h <<_ACEOF |
---|
| 1549 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1550 | _ACEOF |
---|
| 1551 | |
---|
| 1552 | |
---|
| 1553 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1554 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1555 | if test -n "$CONFIG_SITE"; then |
---|
| 1556 | set x "$CONFIG_SITE" |
---|
| 1557 | elif test "x$prefix" != xNONE; then |
---|
| 1558 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
| 1559 | else |
---|
| 1560 | set x "$ac_default_prefix/share/config.site" \ |
---|
| 1561 | "$ac_default_prefix/etc/config.site" |
---|
| 1562 | fi |
---|
| 1563 | shift |
---|
| 1564 | for ac_site_file |
---|
| 1565 | do |
---|
| 1566 | if test -r "$ac_site_file"; then |
---|
| 1567 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1568 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1569 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1570 | . "$ac_site_file" |
---|
| 1571 | fi |
---|
| 1572 | done |
---|
| 1573 | |
---|
| 1574 | if test -r "$cache_file"; then |
---|
| 1575 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1576 | # files actually), so we avoid doing that. |
---|
| 1577 | if test -f "$cache_file"; then |
---|
| 1578 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1579 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1580 | case $cache_file in |
---|
| 1581 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 1582 | *) . "./$cache_file";; |
---|
| 1583 | esac |
---|
| 1584 | fi |
---|
| 1585 | else |
---|
| 1586 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1587 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1588 | >$cache_file |
---|
| 1589 | fi |
---|
| 1590 | |
---|
| 1591 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1592 | # value. |
---|
| 1593 | ac_cache_corrupted=false |
---|
| 1594 | for ac_var in $ac_precious_vars; do |
---|
| 1595 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1596 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1597 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 1598 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
| 1599 | case $ac_old_set,$ac_new_set in |
---|
| 1600 | set,) |
---|
| 1601 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1602 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1603 | ac_cache_corrupted=: ;; |
---|
| 1604 | ,set) |
---|
| 1605 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1606 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1607 | ac_cache_corrupted=: ;; |
---|
| 1608 | ,);; |
---|
| 1609 | *) |
---|
| 1610 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1611 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1612 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1613 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1614 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1615 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1616 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1617 | ac_cache_corrupted=: |
---|
| 1618 | fi;; |
---|
| 1619 | esac |
---|
| 1620 | # Pass precious variables to config.status. |
---|
| 1621 | if test "$ac_new_set" = set; then |
---|
| 1622 | case $ac_new_val in |
---|
| 1623 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1624 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1625 | esac |
---|
| 1626 | case " $ac_configure_args " in |
---|
| 1627 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1628 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1629 | esac |
---|
| 1630 | fi |
---|
| 1631 | done |
---|
| 1632 | if $ac_cache_corrupted; then |
---|
| 1633 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1634 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1635 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1636 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1637 | { (exit 1); exit 1; }; } |
---|
| 1638 | fi |
---|
| 1639 | |
---|
| 1640 | |
---|
| 1641 | |
---|
| 1642 | |
---|
| 1643 | |
---|
| 1644 | |
---|
| 1645 | |
---|
| 1646 | |
---|
| 1647 | |
---|
| 1648 | |
---|
| 1649 | |
---|
| 1650 | |
---|
| 1651 | |
---|
| 1652 | |
---|
| 1653 | |
---|
| 1654 | |
---|
| 1655 | |
---|
| 1656 | |
---|
| 1657 | |
---|
| 1658 | |
---|
| 1659 | |
---|
| 1660 | |
---|
| 1661 | |
---|
| 1662 | |
---|
| 1663 | |
---|
| 1664 | ac_ext=c |
---|
| 1665 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1669 | |
---|
| 1670 | |
---|
| 1671 | am__api_version="1.9" |
---|
| 1672 | ac_aux_dir= |
---|
| 1673 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
| 1674 | if test -f "$ac_dir/install-sh"; then |
---|
| 1675 | ac_aux_dir=$ac_dir |
---|
| 1676 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1677 | break |
---|
| 1678 | elif test -f "$ac_dir/install.sh"; then |
---|
| 1679 | ac_aux_dir=$ac_dir |
---|
| 1680 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1681 | break |
---|
| 1682 | elif test -f "$ac_dir/shtool"; then |
---|
| 1683 | ac_aux_dir=$ac_dir |
---|
| 1684 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1685 | break |
---|
| 1686 | fi |
---|
| 1687 | done |
---|
| 1688 | if test -z "$ac_aux_dir"; then |
---|
| 1689 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
---|
| 1690 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
---|
| 1691 | { (exit 1); exit 1; }; } |
---|
| 1692 | fi |
---|
| 1693 | |
---|
| 1694 | # These three variables are undocumented and unsupported, |
---|
| 1695 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 1696 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 1697 | # whose full name contains unusual characters. |
---|
| 1698 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
| 1699 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
| 1700 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
| 1701 | |
---|
| 1702 | |
---|
| 1703 | # Find a good install program. We prefer a C program (faster), |
---|
| 1704 | # so one script is as good as another. But avoid the broken or |
---|
| 1705 | # incompatible versions: |
---|
| 1706 | # SysV /etc/install, /usr/sbin/install |
---|
| 1707 | # SunOS /usr/etc/install |
---|
| 1708 | # IRIX /sbin/install |
---|
| 1709 | # AIX /bin/install |
---|
| 1710 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1711 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1712 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1713 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1714 | # OS/2's system install, which has a completely different semantic |
---|
| 1715 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1716 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1717 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
| 1718 | if test -z "$INSTALL"; then |
---|
| 1719 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1721 | else |
---|
| 1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1723 | for as_dir in $PATH |
---|
| 1724 | do |
---|
| 1725 | IFS=$as_save_IFS |
---|
| 1726 | test -z "$as_dir" && as_dir=. |
---|
| 1727 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1728 | case $as_dir/ in |
---|
| 1729 | ./ | .// | /cC/* | \ |
---|
| 1730 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1731 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1732 | /usr/ucb/* ) ;; |
---|
| 1733 | *) |
---|
| 1734 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1735 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1736 | # by default. |
---|
| 1737 | for ac_prog in ginstall scoinst install; do |
---|
| 1738 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1739 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
| 1740 | if test $ac_prog = install && |
---|
| 1741 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1742 | # AIX install. It has an incompatible calling convention. |
---|
| 1743 | : |
---|
| 1744 | elif test $ac_prog = install && |
---|
| 1745 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1746 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1747 | : |
---|
| 1748 | else |
---|
| 1749 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1750 | break 3 |
---|
| 1751 | fi |
---|
| 1752 | fi |
---|
| 1753 | done |
---|
| 1754 | done |
---|
| 1755 | ;; |
---|
| 1756 | esac |
---|
| 1757 | done |
---|
| 1758 | IFS=$as_save_IFS |
---|
| 1759 | |
---|
| 1760 | |
---|
| 1761 | fi |
---|
| 1762 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1763 | INSTALL=$ac_cv_path_install |
---|
| 1764 | else |
---|
| 1765 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 1766 | # value for INSTALL within a source directory, because that will |
---|
| 1767 | # break other packages using the cache if that directory is |
---|
| 1768 | # removed, or if the value is a relative name. |
---|
| 1769 | INSTALL=$ac_install_sh |
---|
| 1770 | fi |
---|
| 1771 | fi |
---|
| 1772 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1773 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
| 1774 | |
---|
| 1775 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1776 | # It thinks the first close brace ends the variable substitution. |
---|
| 1777 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1778 | |
---|
| 1779 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1780 | |
---|
| 1781 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1782 | |
---|
| 1783 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1784 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
---|
| 1785 | # Just in case |
---|
| 1786 | sleep 1 |
---|
| 1787 | echo timestamp > conftest.file |
---|
| 1788 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1789 | # arguments. Must try -L first in case configure is actually a |
---|
| 1790 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1791 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1792 | # directory). |
---|
| 1793 | if ( |
---|
| 1794 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1795 | if test "$*" = "X"; then |
---|
| 1796 | # -L didn't work. |
---|
| 1797 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1798 | fi |
---|
| 1799 | rm -f conftest.file |
---|
| 1800 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1801 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1802 | |
---|
| 1803 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1804 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1805 | # broken ls alias from the environment. This has actually |
---|
| 1806 | # happened. Such a system could not be considered "sane". |
---|
| 1807 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1808 | alias in your environment" >&5 |
---|
| 1809 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1810 | alias in your environment" >&2;} |
---|
| 1811 | { (exit 1); exit 1; }; } |
---|
| 1812 | fi |
---|
| 1813 | |
---|
| 1814 | test "$2" = conftest.file |
---|
| 1815 | ) |
---|
| 1816 | then |
---|
| 1817 | # Ok. |
---|
| 1818 | : |
---|
| 1819 | else |
---|
| 1820 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1821 | Check your system clock" >&5 |
---|
| 1822 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1823 | Check your system clock" >&2;} |
---|
| 1824 | { (exit 1); exit 1; }; } |
---|
| 1825 | fi |
---|
| 1826 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1827 | echo "${ECHO_T}yes" >&6; } |
---|
| 1828 | test "$program_prefix" != NONE && |
---|
| 1829 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
| 1830 | # Use a double $ so make ignores it. |
---|
| 1831 | test "$program_suffix" != NONE && |
---|
| 1832 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
| 1833 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1834 | # By default was `s,x,x', remove it if useless. |
---|
| 1835 | cat <<\_ACEOF >conftest.sed |
---|
| 1836 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1837 | _ACEOF |
---|
| 1838 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1839 | rm -f conftest.sed |
---|
| 1840 | |
---|
| 1841 | # expand $ac_aux_dir to an absolute path |
---|
| 1842 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1843 | |
---|
| 1844 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1845 | # Use eval to expand $SHELL |
---|
| 1846 | if eval "$MISSING --run true"; then |
---|
| 1847 | am_missing_run="$MISSING --run " |
---|
| 1848 | else |
---|
| 1849 | am_missing_run= |
---|
| 1850 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1851 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1852 | fi |
---|
| 1853 | |
---|
| 1854 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
| 1855 | # We used to keeping the `.' as first argument, in order to |
---|
| 1856 | # allow $(mkdir_p) to be used without argument. As in |
---|
| 1857 | # $(mkdir_p) $(somedir) |
---|
| 1858 | # where $(somedir) is conditionally defined. However this is wrong |
---|
| 1859 | # for two reasons: |
---|
| 1860 | # 1. if the package is installed by a user who cannot write `.' |
---|
| 1861 | # make install will fail, |
---|
| 1862 | # 2. the above comment should most certainly read |
---|
| 1863 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
| 1864 | # so it does not work when $(somedir) is undefined and |
---|
| 1865 | # $(DESTDIR) is not. |
---|
| 1866 | # To support the latter case, we have to write |
---|
| 1867 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
| 1868 | # so the `.' trick is pointless. |
---|
| 1869 | mkdir_p='mkdir -p --' |
---|
| 1870 | else |
---|
| 1871 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1872 | # recognize any option. It will interpret all options as |
---|
| 1873 | # directories to create, and then abort because `.' already |
---|
| 1874 | # exists. |
---|
| 1875 | for d in ./-p ./--version; |
---|
| 1876 | do |
---|
| 1877 | test -d $d && rmdir $d |
---|
| 1878 | done |
---|
| 1879 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1880 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1881 | mkdir_p='$(mkinstalldirs)' |
---|
| 1882 | else |
---|
| 1883 | mkdir_p='$(install_sh) -d' |
---|
| 1884 | fi |
---|
| 1885 | fi |
---|
| 1886 | |
---|
| 1887 | for ac_prog in gawk mawk nawk awk |
---|
| 1888 | do |
---|
| 1889 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1890 | set dummy $ac_prog; ac_word=$2 |
---|
| 1891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 1893 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1895 | else |
---|
| 1896 | if test -n "$AWK"; then |
---|
| 1897 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1898 | else |
---|
| 1899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1900 | for as_dir in $PATH |
---|
| 1901 | do |
---|
| 1902 | IFS=$as_save_IFS |
---|
| 1903 | test -z "$as_dir" && as_dir=. |
---|
| 1904 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 1906 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1908 | break 2 |
---|
| 1909 | fi |
---|
| 1910 | done |
---|
| 1911 | done |
---|
| 1912 | IFS=$as_save_IFS |
---|
| 1913 | |
---|
| 1914 | fi |
---|
| 1915 | fi |
---|
| 1916 | AWK=$ac_cv_prog_AWK |
---|
| 1917 | if test -n "$AWK"; then |
---|
| 1918 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1919 | echo "${ECHO_T}$AWK" >&6; } |
---|
| 1920 | else |
---|
| 1921 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1922 | echo "${ECHO_T}no" >&6; } |
---|
| 1923 | fi |
---|
| 1924 | |
---|
| 1925 | |
---|
| 1926 | test -n "$AWK" && break |
---|
| 1927 | done |
---|
| 1928 | |
---|
| 1929 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1930 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
---|
| 1931 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
| 1932 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 1933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1934 | else |
---|
| 1935 | cat >conftest.make <<\_ACEOF |
---|
| 1936 | SHELL = /bin/sh |
---|
| 1937 | all: |
---|
| 1938 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
| 1939 | _ACEOF |
---|
| 1940 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1941 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
| 1942 | *@@@%%%=?*=@@@%%%*) |
---|
| 1943 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
| 1944 | *) |
---|
| 1945 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
| 1946 | esac |
---|
| 1947 | rm -f conftest.make |
---|
| 1948 | fi |
---|
| 1949 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
| 1950 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1951 | echo "${ECHO_T}yes" >&6; } |
---|
| 1952 | SET_MAKE= |
---|
| 1953 | else |
---|
| 1954 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1955 | echo "${ECHO_T}no" >&6; } |
---|
| 1956 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1957 | fi |
---|
| 1958 | |
---|
| 1959 | rm -rf .tst 2>/dev/null |
---|
| 1960 | mkdir .tst 2>/dev/null |
---|
| 1961 | if test -d .tst; then |
---|
| 1962 | am__leading_dot=. |
---|
| 1963 | else |
---|
| 1964 | am__leading_dot=_ |
---|
| 1965 | fi |
---|
| 1966 | rmdir .tst 2>/dev/null |
---|
| 1967 | |
---|
| 1968 | # test to see if srcdir already configured |
---|
| 1969 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1970 | test -f $srcdir/config.status; then |
---|
| 1971 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1972 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1973 | { (exit 1); exit 1; }; } |
---|
| 1974 | fi |
---|
| 1975 | |
---|
| 1976 | # test whether we have cygpath |
---|
| 1977 | if test -z "$CYGPATH_W"; then |
---|
| 1978 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1979 | CYGPATH_W='cygpath -w' |
---|
| 1980 | else |
---|
| 1981 | CYGPATH_W=echo |
---|
| 1982 | fi |
---|
| 1983 | fi |
---|
| 1984 | |
---|
| 1985 | |
---|
| 1986 | # Define the identity of the package. |
---|
| 1987 | PACKAGE=libenet.a |
---|
| 1988 | VERSION=6-6-2007 |
---|
| 1989 | |
---|
| 1990 | |
---|
| 1991 | cat >>confdefs.h <<_ACEOF |
---|
| 1992 | #define PACKAGE "$PACKAGE" |
---|
| 1993 | _ACEOF |
---|
| 1994 | |
---|
| 1995 | |
---|
| 1996 | cat >>confdefs.h <<_ACEOF |
---|
| 1997 | #define VERSION "$VERSION" |
---|
| 1998 | _ACEOF |
---|
| 1999 | |
---|
| 2000 | # Some tools Automake needs. |
---|
| 2001 | |
---|
| 2002 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 2003 | |
---|
| 2004 | |
---|
| 2005 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 2006 | |
---|
| 2007 | |
---|
| 2008 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 2009 | |
---|
| 2010 | |
---|
| 2011 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 2012 | |
---|
| 2013 | |
---|
| 2014 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 2015 | |
---|
| 2016 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 2017 | |
---|
| 2018 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 2019 | # run `make install-strip'. However `strip' might not be the right |
---|
| 2020 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 2021 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 2022 | if test "$cross_compiling" != no; then |
---|
| 2023 | if test -n "$ac_tool_prefix"; then |
---|
| 2024 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 2025 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 2026 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2028 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 2029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2030 | else |
---|
| 2031 | if test -n "$STRIP"; then |
---|
| 2032 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 2033 | else |
---|
| 2034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2035 | for as_dir in $PATH |
---|
| 2036 | do |
---|
| 2037 | IFS=$as_save_IFS |
---|
| 2038 | test -z "$as_dir" && as_dir=. |
---|
| 2039 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2041 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 2042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2043 | break 2 |
---|
| 2044 | fi |
---|
| 2045 | done |
---|
| 2046 | done |
---|
| 2047 | IFS=$as_save_IFS |
---|
| 2048 | |
---|
| 2049 | fi |
---|
| 2050 | fi |
---|
| 2051 | STRIP=$ac_cv_prog_STRIP |
---|
| 2052 | if test -n "$STRIP"; then |
---|
| 2053 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 2054 | echo "${ECHO_T}$STRIP" >&6; } |
---|
| 2055 | else |
---|
| 2056 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2057 | echo "${ECHO_T}no" >&6; } |
---|
| 2058 | fi |
---|
| 2059 | |
---|
| 2060 | |
---|
| 2061 | fi |
---|
| 2062 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 2063 | ac_ct_STRIP=$STRIP |
---|
| 2064 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 2065 | set dummy strip; ac_word=$2 |
---|
| 2066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2068 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 2069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2070 | else |
---|
| 2071 | if test -n "$ac_ct_STRIP"; then |
---|
| 2072 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 2073 | else |
---|
| 2074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2075 | for as_dir in $PATH |
---|
| 2076 | do |
---|
| 2077 | IFS=$as_save_IFS |
---|
| 2078 | test -z "$as_dir" && as_dir=. |
---|
| 2079 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2081 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 2082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2083 | break 2 |
---|
| 2084 | fi |
---|
| 2085 | done |
---|
| 2086 | done |
---|
| 2087 | IFS=$as_save_IFS |
---|
| 2088 | |
---|
| 2089 | fi |
---|
| 2090 | fi |
---|
| 2091 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 2092 | if test -n "$ac_ct_STRIP"; then |
---|
| 2093 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 2094 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
---|
| 2095 | else |
---|
| 2096 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2097 | echo "${ECHO_T}no" >&6; } |
---|
| 2098 | fi |
---|
| 2099 | |
---|
| 2100 | if test "x$ac_ct_STRIP" = x; then |
---|
| 2101 | STRIP=":" |
---|
| 2102 | else |
---|
| 2103 | case $cross_compiling:$ac_tool_warned in |
---|
| 2104 | yes:) |
---|
| 2105 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2106 | whose name does not start with the host triplet. If you think this |
---|
| 2107 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2108 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2109 | whose name does not start with the host triplet. If you think this |
---|
| 2110 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2111 | ac_tool_warned=yes ;; |
---|
| 2112 | esac |
---|
| 2113 | STRIP=$ac_ct_STRIP |
---|
| 2114 | fi |
---|
| 2115 | else |
---|
| 2116 | STRIP="$ac_cv_prog_STRIP" |
---|
| 2117 | fi |
---|
| 2118 | |
---|
| 2119 | fi |
---|
| 2120 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 2121 | |
---|
| 2122 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 2123 | # some platforms. |
---|
| 2124 | # Always define AMTAR for backward compatibility. |
---|
| 2125 | |
---|
| 2126 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 2127 | |
---|
| 2128 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
| 2129 | |
---|
| 2130 | |
---|
| 2131 | |
---|
| 2132 | |
---|
| 2133 | |
---|
| 2134 | |
---|
| 2135 | ac_ext=c |
---|
| 2136 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2140 | if test -n "$ac_tool_prefix"; then |
---|
| 2141 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2142 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2143 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2145 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2147 | else |
---|
| 2148 | if test -n "$CC"; then |
---|
| 2149 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2150 | else |
---|
| 2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2152 | for as_dir in $PATH |
---|
| 2153 | do |
---|
| 2154 | IFS=$as_save_IFS |
---|
| 2155 | test -z "$as_dir" && as_dir=. |
---|
| 2156 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2158 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2160 | break 2 |
---|
| 2161 | fi |
---|
| 2162 | done |
---|
| 2163 | done |
---|
| 2164 | IFS=$as_save_IFS |
---|
| 2165 | |
---|
| 2166 | fi |
---|
| 2167 | fi |
---|
| 2168 | CC=$ac_cv_prog_CC |
---|
| 2169 | if test -n "$CC"; then |
---|
| 2170 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2171 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2172 | else |
---|
| 2173 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2174 | echo "${ECHO_T}no" >&6; } |
---|
| 2175 | fi |
---|
| 2176 | |
---|
| 2177 | |
---|
| 2178 | fi |
---|
| 2179 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2180 | ac_ct_CC=$CC |
---|
| 2181 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2182 | set dummy gcc; ac_word=$2 |
---|
| 2183 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2185 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2187 | else |
---|
| 2188 | if test -n "$ac_ct_CC"; then |
---|
| 2189 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2190 | else |
---|
| 2191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2192 | for as_dir in $PATH |
---|
| 2193 | do |
---|
| 2194 | IFS=$as_save_IFS |
---|
| 2195 | test -z "$as_dir" && as_dir=. |
---|
| 2196 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2198 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2200 | break 2 |
---|
| 2201 | fi |
---|
| 2202 | done |
---|
| 2203 | done |
---|
| 2204 | IFS=$as_save_IFS |
---|
| 2205 | |
---|
| 2206 | fi |
---|
| 2207 | fi |
---|
| 2208 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2209 | if test -n "$ac_ct_CC"; then |
---|
| 2210 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2211 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
| 2212 | else |
---|
| 2213 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2214 | echo "${ECHO_T}no" >&6; } |
---|
| 2215 | fi |
---|
| 2216 | |
---|
| 2217 | if test "x$ac_ct_CC" = x; then |
---|
| 2218 | CC="" |
---|
| 2219 | else |
---|
| 2220 | case $cross_compiling:$ac_tool_warned in |
---|
| 2221 | yes:) |
---|
| 2222 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2223 | whose name does not start with the host triplet. If you think this |
---|
| 2224 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2225 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2226 | whose name does not start with the host triplet. If you think this |
---|
| 2227 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2228 | ac_tool_warned=yes ;; |
---|
| 2229 | esac |
---|
| 2230 | CC=$ac_ct_CC |
---|
| 2231 | fi |
---|
| 2232 | else |
---|
| 2233 | CC="$ac_cv_prog_CC" |
---|
| 2234 | fi |
---|
| 2235 | |
---|
| 2236 | if test -z "$CC"; then |
---|
| 2237 | if test -n "$ac_tool_prefix"; then |
---|
| 2238 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2239 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2240 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2242 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2244 | else |
---|
| 2245 | if test -n "$CC"; then |
---|
| 2246 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2247 | else |
---|
| 2248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2249 | for as_dir in $PATH |
---|
| 2250 | do |
---|
| 2251 | IFS=$as_save_IFS |
---|
| 2252 | test -z "$as_dir" && as_dir=. |
---|
| 2253 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2255 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2257 | break 2 |
---|
| 2258 | fi |
---|
| 2259 | done |
---|
| 2260 | done |
---|
| 2261 | IFS=$as_save_IFS |
---|
| 2262 | |
---|
| 2263 | fi |
---|
| 2264 | fi |
---|
| 2265 | CC=$ac_cv_prog_CC |
---|
| 2266 | if test -n "$CC"; then |
---|
| 2267 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2268 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2269 | else |
---|
| 2270 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2271 | echo "${ECHO_T}no" >&6; } |
---|
| 2272 | fi |
---|
| 2273 | |
---|
| 2274 | |
---|
| 2275 | fi |
---|
| 2276 | fi |
---|
| 2277 | if test -z "$CC"; then |
---|
| 2278 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2279 | set dummy cc; ac_word=$2 |
---|
| 2280 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2282 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2284 | else |
---|
| 2285 | if test -n "$CC"; then |
---|
| 2286 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2287 | else |
---|
| 2288 | ac_prog_rejected=no |
---|
| 2289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2290 | for as_dir in $PATH |
---|
| 2291 | do |
---|
| 2292 | IFS=$as_save_IFS |
---|
| 2293 | test -z "$as_dir" && as_dir=. |
---|
| 2294 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2296 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2297 | ac_prog_rejected=yes |
---|
| 2298 | continue |
---|
| 2299 | fi |
---|
| 2300 | ac_cv_prog_CC="cc" |
---|
| 2301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2302 | break 2 |
---|
| 2303 | fi |
---|
| 2304 | done |
---|
| 2305 | done |
---|
| 2306 | IFS=$as_save_IFS |
---|
| 2307 | |
---|
| 2308 | if test $ac_prog_rejected = yes; then |
---|
| 2309 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2310 | set dummy $ac_cv_prog_CC |
---|
| 2311 | shift |
---|
| 2312 | if test $# != 0; then |
---|
| 2313 | # We chose a different compiler from the bogus one. |
---|
| 2314 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2315 | # first if we set CC to just the basename; use the full file name. |
---|
| 2316 | shift |
---|
| 2317 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2318 | fi |
---|
| 2319 | fi |
---|
| 2320 | fi |
---|
| 2321 | fi |
---|
| 2322 | CC=$ac_cv_prog_CC |
---|
| 2323 | if test -n "$CC"; then |
---|
| 2324 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2325 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2326 | else |
---|
| 2327 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2328 | echo "${ECHO_T}no" >&6; } |
---|
| 2329 | fi |
---|
| 2330 | |
---|
| 2331 | |
---|
| 2332 | fi |
---|
| 2333 | if test -z "$CC"; then |
---|
| 2334 | if test -n "$ac_tool_prefix"; then |
---|
| 2335 | for ac_prog in cl.exe |
---|
| 2336 | do |
---|
| 2337 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2338 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2341 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2343 | else |
---|
| 2344 | if test -n "$CC"; then |
---|
| 2345 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2346 | else |
---|
| 2347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2348 | for as_dir in $PATH |
---|
| 2349 | do |
---|
| 2350 | IFS=$as_save_IFS |
---|
| 2351 | test -z "$as_dir" && as_dir=. |
---|
| 2352 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2354 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2356 | break 2 |
---|
| 2357 | fi |
---|
| 2358 | done |
---|
| 2359 | done |
---|
| 2360 | IFS=$as_save_IFS |
---|
| 2361 | |
---|
| 2362 | fi |
---|
| 2363 | fi |
---|
| 2364 | CC=$ac_cv_prog_CC |
---|
| 2365 | if test -n "$CC"; then |
---|
| 2366 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2367 | echo "${ECHO_T}$CC" >&6; } |
---|
| 2368 | else |
---|
| 2369 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2370 | echo "${ECHO_T}no" >&6; } |
---|
| 2371 | fi |
---|
| 2372 | |
---|
| 2373 | |
---|
| 2374 | test -n "$CC" && break |
---|
| 2375 | done |
---|
| 2376 | fi |
---|
| 2377 | if test -z "$CC"; then |
---|
| 2378 | ac_ct_CC=$CC |
---|
| 2379 | for ac_prog in cl.exe |
---|
| 2380 | do |
---|
| 2381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2382 | set dummy $ac_prog; ac_word=$2 |
---|
| 2383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2385 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2387 | else |
---|
| 2388 | if test -n "$ac_ct_CC"; then |
---|
| 2389 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2390 | else |
---|
| 2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2392 | for as_dir in $PATH |
---|
| 2393 | do |
---|
| 2394 | IFS=$as_save_IFS |
---|
| 2395 | test -z "$as_dir" && as_dir=. |
---|
| 2396 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2398 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2400 | break 2 |
---|
| 2401 | fi |
---|
| 2402 | done |
---|
| 2403 | done |
---|
| 2404 | IFS=$as_save_IFS |
---|
| 2405 | |
---|
| 2406 | fi |
---|
| 2407 | fi |
---|
| 2408 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2409 | if test -n "$ac_ct_CC"; then |
---|
| 2410 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2411 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
| 2412 | else |
---|
| 2413 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2414 | echo "${ECHO_T}no" >&6; } |
---|
| 2415 | fi |
---|
| 2416 | |
---|
| 2417 | |
---|
| 2418 | test -n "$ac_ct_CC" && break |
---|
| 2419 | done |
---|
| 2420 | |
---|
| 2421 | if test "x$ac_ct_CC" = x; then |
---|
| 2422 | CC="" |
---|
| 2423 | else |
---|
| 2424 | case $cross_compiling:$ac_tool_warned in |
---|
| 2425 | yes:) |
---|
| 2426 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2427 | whose name does not start with the host triplet. If you think this |
---|
| 2428 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2429 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2430 | whose name does not start with the host triplet. If you think this |
---|
| 2431 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2432 | ac_tool_warned=yes ;; |
---|
| 2433 | esac |
---|
| 2434 | CC=$ac_ct_CC |
---|
| 2435 | fi |
---|
| 2436 | fi |
---|
| 2437 | |
---|
| 2438 | fi |
---|
| 2439 | |
---|
| 2440 | |
---|
| 2441 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2442 | See \`config.log' for more details." >&5 |
---|
| 2443 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2444 | See \`config.log' for more details." >&2;} |
---|
| 2445 | { (exit 1); exit 1; }; } |
---|
| 2446 | |
---|
| 2447 | # Provide some information about the compiler. |
---|
| 2448 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
| 2449 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2450 | { (ac_try="$ac_compiler --version >&5" |
---|
| 2451 | case "(($ac_try" in |
---|
| 2452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2453 | *) ac_try_echo=$ac_try;; |
---|
| 2454 | esac |
---|
| 2455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2456 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
| 2457 | ac_status=$? |
---|
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2459 | (exit $ac_status); } |
---|
| 2460 | { (ac_try="$ac_compiler -v >&5" |
---|
| 2461 | case "(($ac_try" in |
---|
| 2462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2463 | *) ac_try_echo=$ac_try;; |
---|
| 2464 | esac |
---|
| 2465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2466 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
| 2467 | ac_status=$? |
---|
| 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2469 | (exit $ac_status); } |
---|
| 2470 | { (ac_try="$ac_compiler -V >&5" |
---|
| 2471 | case "(($ac_try" in |
---|
| 2472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2473 | *) ac_try_echo=$ac_try;; |
---|
| 2474 | esac |
---|
| 2475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2476 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
| 2477 | ac_status=$? |
---|
| 2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2479 | (exit $ac_status); } |
---|
| 2480 | |
---|
| 2481 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2482 | /* confdefs.h. */ |
---|
| 2483 | _ACEOF |
---|
| 2484 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2485 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2486 | /* end confdefs.h. */ |
---|
| 2487 | |
---|
| 2488 | int |
---|
| 2489 | main () |
---|
| 2490 | { |
---|
| 2491 | |
---|
| 2492 | ; |
---|
| 2493 | return 0; |
---|
| 2494 | } |
---|
| 2495 | _ACEOF |
---|
| 2496 | ac_clean_files_save=$ac_clean_files |
---|
| 2497 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 2498 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2499 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2500 | # of exeext. |
---|
| 2501 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
| 2502 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
---|
| 2503 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2504 | # |
---|
| 2505 | # List of possible output files, starting from the most likely. |
---|
| 2506 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
| 2507 | # only as a last resort. b.out is created by i960 compilers. |
---|
| 2508 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
| 2509 | # |
---|
| 2510 | # The IRIX 6 linker writes into existing files which may not be |
---|
| 2511 | # executable, retaining their permissions. Remove them first so a |
---|
| 2512 | # subsequent execution test works. |
---|
| 2513 | ac_rmfiles= |
---|
| 2514 | for ac_file in $ac_files |
---|
| 2515 | do |
---|
| 2516 | case $ac_file in |
---|
| 2517 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
| 2518 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2519 | esac |
---|
| 2520 | done |
---|
| 2521 | rm -f $ac_rmfiles |
---|
| 2522 | |
---|
| 2523 | if { (ac_try="$ac_link_default" |
---|
| 2524 | case "(($ac_try" in |
---|
| 2525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2526 | *) ac_try_echo=$ac_try;; |
---|
| 2527 | esac |
---|
| 2528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2529 | (eval "$ac_link_default") 2>&5 |
---|
| 2530 | ac_status=$? |
---|
| 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2532 | (exit $ac_status); }; then |
---|
| 2533 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2534 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2535 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2536 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2537 | # Autoconf. |
---|
| 2538 | for ac_file in $ac_files '' |
---|
| 2539 | do |
---|
| 2540 | test -f "$ac_file" || continue |
---|
| 2541 | case $ac_file in |
---|
| 2542 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
| 2543 | ;; |
---|
| 2544 | [ab].out ) |
---|
| 2545 | # We found the default executable, but exeext='' is most |
---|
| 2546 | # certainly right. |
---|
| 2547 | break;; |
---|
| 2548 | *.* ) |
---|
| 2549 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
| 2550 | then :; else |
---|
| 2551 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2552 | fi |
---|
| 2553 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2554 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2555 | # argument, so we may need to know it at that point already. |
---|
| 2556 | # Even if this section looks crufty: it has the advantage of |
---|
| 2557 | # actually working. |
---|
| 2558 | break;; |
---|
| 2559 | * ) |
---|
| 2560 | break;; |
---|
| 2561 | esac |
---|
| 2562 | done |
---|
| 2563 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2564 | |
---|
| 2565 | else |
---|
| 2566 | ac_file='' |
---|
| 2567 | fi |
---|
| 2568 | |
---|
| 2569 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2570 | echo "${ECHO_T}$ac_file" >&6; } |
---|
| 2571 | if test -z "$ac_file"; then |
---|
| 2572 | echo "$as_me: failed program was:" >&5 |
---|
| 2573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2574 | |
---|
| 2575 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
| 2576 | See \`config.log' for more details." >&5 |
---|
| 2577 | echo "$as_me: error: C compiler cannot create executables |
---|
| 2578 | See \`config.log' for more details." >&2;} |
---|
| 2579 | { (exit 77); exit 77; }; } |
---|
| 2580 | fi |
---|
| 2581 | |
---|
| 2582 | ac_exeext=$ac_cv_exeext |
---|
| 2583 | |
---|
| 2584 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2585 | # the compiler is broken, or we cross compile. |
---|
| 2586 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 2587 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
---|
| 2588 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2589 | # If not cross compiling, check that we can run a simple program. |
---|
| 2590 | if test "$cross_compiling" != yes; then |
---|
| 2591 | if { ac_try='./$ac_file' |
---|
| 2592 | { (case "(($ac_try" in |
---|
| 2593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2594 | *) ac_try_echo=$ac_try;; |
---|
| 2595 | esac |
---|
| 2596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2597 | (eval "$ac_try") 2>&5 |
---|
| 2598 | ac_status=$? |
---|
| 2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2600 | (exit $ac_status); }; }; then |
---|
| 2601 | cross_compiling=no |
---|
| 2602 | else |
---|
| 2603 | if test "$cross_compiling" = maybe; then |
---|
| 2604 | cross_compiling=yes |
---|
| 2605 | else |
---|
| 2606 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
| 2607 | If you meant to cross compile, use \`--host'. |
---|
| 2608 | See \`config.log' for more details." >&5 |
---|
| 2609 | echo "$as_me: error: cannot run C compiled programs. |
---|
| 2610 | If you meant to cross compile, use \`--host'. |
---|
| 2611 | See \`config.log' for more details." >&2;} |
---|
| 2612 | { (exit 1); exit 1; }; } |
---|
| 2613 | fi |
---|
| 2614 | fi |
---|
| 2615 | fi |
---|
| 2616 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2617 | echo "${ECHO_T}yes" >&6; } |
---|
| 2618 | |
---|
| 2619 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2620 | ac_clean_files=$ac_clean_files_save |
---|
| 2621 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2622 | # the compiler is broken, or we cross compile. |
---|
| 2623 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2624 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
| 2625 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2626 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
| 2627 | |
---|
| 2628 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2629 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
| 2630 | if { (ac_try="$ac_link" |
---|
| 2631 | case "(($ac_try" in |
---|
| 2632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2633 | *) ac_try_echo=$ac_try;; |
---|
| 2634 | esac |
---|
| 2635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2636 | (eval "$ac_link") 2>&5 |
---|
| 2637 | ac_status=$? |
---|
| 2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2639 | (exit $ac_status); }; then |
---|
| 2640 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2641 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2642 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2643 | # `rm'. |
---|
| 2644 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2645 | test -f "$ac_file" || continue |
---|
| 2646 | case $ac_file in |
---|
| 2647 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
| 2648 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2649 | break;; |
---|
| 2650 | * ) break;; |
---|
| 2651 | esac |
---|
| 2652 | done |
---|
| 2653 | else |
---|
| 2654 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2655 | See \`config.log' for more details." >&5 |
---|
| 2656 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2657 | See \`config.log' for more details." >&2;} |
---|
| 2658 | { (exit 1); exit 1; }; } |
---|
| 2659 | fi |
---|
| 2660 | |
---|
| 2661 | rm -f conftest$ac_cv_exeext |
---|
| 2662 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2663 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
| 2664 | |
---|
| 2665 | rm -f conftest.$ac_ext |
---|
| 2666 | EXEEXT=$ac_cv_exeext |
---|
| 2667 | ac_exeext=$EXEEXT |
---|
| 2668 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2669 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
| 2670 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2672 | else |
---|
| 2673 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2674 | /* confdefs.h. */ |
---|
| 2675 | _ACEOF |
---|
| 2676 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2678 | /* end confdefs.h. */ |
---|
| 2679 | |
---|
| 2680 | int |
---|
| 2681 | main () |
---|
| 2682 | { |
---|
| 2683 | |
---|
| 2684 | ; |
---|
| 2685 | return 0; |
---|
| 2686 | } |
---|
| 2687 | _ACEOF |
---|
| 2688 | rm -f conftest.o conftest.obj |
---|
| 2689 | if { (ac_try="$ac_compile" |
---|
| 2690 | case "(($ac_try" in |
---|
| 2691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2692 | *) ac_try_echo=$ac_try;; |
---|
| 2693 | esac |
---|
| 2694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2695 | (eval "$ac_compile") 2>&5 |
---|
| 2696 | ac_status=$? |
---|
| 2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2698 | (exit $ac_status); }; then |
---|
| 2699 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 2700 | test -f "$ac_file" || continue; |
---|
| 2701 | case $ac_file in |
---|
| 2702 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
| 2703 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2704 | break;; |
---|
| 2705 | esac |
---|
| 2706 | done |
---|
| 2707 | else |
---|
| 2708 | echo "$as_me: failed program was:" >&5 |
---|
| 2709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2710 | |
---|
| 2711 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2712 | See \`config.log' for more details." >&5 |
---|
| 2713 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2714 | See \`config.log' for more details." >&2;} |
---|
| 2715 | { (exit 1); exit 1; }; } |
---|
| 2716 | fi |
---|
| 2717 | |
---|
| 2718 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2719 | fi |
---|
| 2720 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2721 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
| 2722 | OBJEXT=$ac_cv_objext |
---|
| 2723 | ac_objext=$OBJEXT |
---|
| 2724 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2725 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
| 2726 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2728 | else |
---|
| 2729 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2730 | /* confdefs.h. */ |
---|
| 2731 | _ACEOF |
---|
| 2732 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2733 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2734 | /* end confdefs.h. */ |
---|
| 2735 | |
---|
| 2736 | int |
---|
| 2737 | main () |
---|
| 2738 | { |
---|
| 2739 | #ifndef __GNUC__ |
---|
| 2740 | choke me |
---|
| 2741 | #endif |
---|
| 2742 | |
---|
| 2743 | ; |
---|
| 2744 | return 0; |
---|
| 2745 | } |
---|
| 2746 | _ACEOF |
---|
| 2747 | rm -f conftest.$ac_objext |
---|
| 2748 | if { (ac_try="$ac_compile" |
---|
| 2749 | case "(($ac_try" in |
---|
| 2750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2751 | *) ac_try_echo=$ac_try;; |
---|
| 2752 | esac |
---|
| 2753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2754 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2755 | ac_status=$? |
---|
| 2756 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2757 | rm -f conftest.er1 |
---|
| 2758 | cat conftest.err >&5 |
---|
| 2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2760 | (exit $ac_status); } && |
---|
| 2761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 2762 | { (case "(($ac_try" in |
---|
| 2763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2764 | *) ac_try_echo=$ac_try;; |
---|
| 2765 | esac |
---|
| 2766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2767 | (eval "$ac_try") 2>&5 |
---|
| 2768 | ac_status=$? |
---|
| 2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2770 | (exit $ac_status); }; } && |
---|
| 2771 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2772 | { (case "(($ac_try" in |
---|
| 2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2774 | *) ac_try_echo=$ac_try;; |
---|
| 2775 | esac |
---|
| 2776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2777 | (eval "$ac_try") 2>&5 |
---|
| 2778 | ac_status=$? |
---|
| 2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2780 | (exit $ac_status); }; }; then |
---|
| 2781 | ac_compiler_gnu=yes |
---|
| 2782 | else |
---|
| 2783 | echo "$as_me: failed program was:" >&5 |
---|
| 2784 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2785 | |
---|
| 2786 | ac_compiler_gnu=no |
---|
| 2787 | fi |
---|
| 2788 | |
---|
| 2789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2790 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2791 | |
---|
| 2792 | fi |
---|
| 2793 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2794 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
| 2795 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2796 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2797 | ac_save_CFLAGS=$CFLAGS |
---|
| 2798 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2799 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
| 2800 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2802 | else |
---|
| 2803 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 2804 | ac_c_werror_flag=yes |
---|
| 2805 | ac_cv_prog_cc_g=no |
---|
| 2806 | CFLAGS="-g" |
---|
| 2807 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2808 | /* confdefs.h. */ |
---|
| 2809 | _ACEOF |
---|
| 2810 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2811 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2812 | /* end confdefs.h. */ |
---|
| 2813 | |
---|
| 2814 | int |
---|
| 2815 | main () |
---|
| 2816 | { |
---|
| 2817 | |
---|
| 2818 | ; |
---|
| 2819 | return 0; |
---|
| 2820 | } |
---|
| 2821 | _ACEOF |
---|
| 2822 | rm -f conftest.$ac_objext |
---|
| 2823 | if { (ac_try="$ac_compile" |
---|
| 2824 | case "(($ac_try" in |
---|
| 2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2826 | *) ac_try_echo=$ac_try;; |
---|
| 2827 | esac |
---|
| 2828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2829 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2830 | ac_status=$? |
---|
| 2831 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2832 | rm -f conftest.er1 |
---|
| 2833 | cat conftest.err >&5 |
---|
| 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2835 | (exit $ac_status); } && |
---|
| 2836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 2837 | { (case "(($ac_try" in |
---|
| 2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2839 | *) ac_try_echo=$ac_try;; |
---|
| 2840 | esac |
---|
| 2841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2842 | (eval "$ac_try") 2>&5 |
---|
| 2843 | ac_status=$? |
---|
| 2844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2845 | (exit $ac_status); }; } && |
---|
| 2846 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2847 | { (case "(($ac_try" in |
---|
| 2848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2849 | *) ac_try_echo=$ac_try;; |
---|
| 2850 | esac |
---|
| 2851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2852 | (eval "$ac_try") 2>&5 |
---|
| 2853 | ac_status=$? |
---|
| 2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2855 | (exit $ac_status); }; }; then |
---|
| 2856 | ac_cv_prog_cc_g=yes |
---|
| 2857 | else |
---|
| 2858 | echo "$as_me: failed program was:" >&5 |
---|
| 2859 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2860 | |
---|
| 2861 | CFLAGS="" |
---|
| 2862 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2863 | /* confdefs.h. */ |
---|
| 2864 | _ACEOF |
---|
| 2865 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2867 | /* end confdefs.h. */ |
---|
| 2868 | |
---|
| 2869 | int |
---|
| 2870 | main () |
---|
| 2871 | { |
---|
| 2872 | |
---|
| 2873 | ; |
---|
| 2874 | return 0; |
---|
| 2875 | } |
---|
| 2876 | _ACEOF |
---|
| 2877 | rm -f conftest.$ac_objext |
---|
| 2878 | if { (ac_try="$ac_compile" |
---|
| 2879 | case "(($ac_try" in |
---|
| 2880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2881 | *) ac_try_echo=$ac_try;; |
---|
| 2882 | esac |
---|
| 2883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2884 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2885 | ac_status=$? |
---|
| 2886 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2887 | rm -f conftest.er1 |
---|
| 2888 | cat conftest.err >&5 |
---|
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2890 | (exit $ac_status); } && |
---|
| 2891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 2892 | { (case "(($ac_try" in |
---|
| 2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2894 | *) ac_try_echo=$ac_try;; |
---|
| 2895 | esac |
---|
| 2896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2897 | (eval "$ac_try") 2>&5 |
---|
| 2898 | ac_status=$? |
---|
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2900 | (exit $ac_status); }; } && |
---|
| 2901 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2902 | { (case "(($ac_try" in |
---|
| 2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2904 | *) ac_try_echo=$ac_try;; |
---|
| 2905 | esac |
---|
| 2906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2907 | (eval "$ac_try") 2>&5 |
---|
| 2908 | ac_status=$? |
---|
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2910 | (exit $ac_status); }; }; then |
---|
| 2911 | : |
---|
| 2912 | else |
---|
| 2913 | echo "$as_me: failed program was:" >&5 |
---|
| 2914 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2915 | |
---|
| 2916 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 2917 | CFLAGS="-g" |
---|
| 2918 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2919 | /* confdefs.h. */ |
---|
| 2920 | _ACEOF |
---|
| 2921 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2922 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2923 | /* end confdefs.h. */ |
---|
| 2924 | |
---|
| 2925 | int |
---|
| 2926 | main () |
---|
| 2927 | { |
---|
| 2928 | |
---|
| 2929 | ; |
---|
| 2930 | return 0; |
---|
| 2931 | } |
---|
| 2932 | _ACEOF |
---|
| 2933 | rm -f conftest.$ac_objext |
---|
| 2934 | if { (ac_try="$ac_compile" |
---|
| 2935 | case "(($ac_try" in |
---|
| 2936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2937 | *) ac_try_echo=$ac_try;; |
---|
| 2938 | esac |
---|
| 2939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2940 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 2941 | ac_status=$? |
---|
| 2942 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2943 | rm -f conftest.er1 |
---|
| 2944 | cat conftest.err >&5 |
---|
| 2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2946 | (exit $ac_status); } && |
---|
| 2947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 2948 | { (case "(($ac_try" in |
---|
| 2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2950 | *) ac_try_echo=$ac_try;; |
---|
| 2951 | esac |
---|
| 2952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2953 | (eval "$ac_try") 2>&5 |
---|
| 2954 | ac_status=$? |
---|
| 2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2956 | (exit $ac_status); }; } && |
---|
| 2957 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2958 | { (case "(($ac_try" in |
---|
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2960 | *) ac_try_echo=$ac_try;; |
---|
| 2961 | esac |
---|
| 2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2963 | (eval "$ac_try") 2>&5 |
---|
| 2964 | ac_status=$? |
---|
| 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2966 | (exit $ac_status); }; }; then |
---|
| 2967 | ac_cv_prog_cc_g=yes |
---|
| 2968 | else |
---|
| 2969 | echo "$as_me: failed program was:" >&5 |
---|
| 2970 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2971 | |
---|
| 2972 | |
---|
| 2973 | fi |
---|
| 2974 | |
---|
| 2975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2976 | fi |
---|
| 2977 | |
---|
| 2978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2979 | fi |
---|
| 2980 | |
---|
| 2981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2982 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 2983 | fi |
---|
| 2984 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2985 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
| 2986 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2987 | CFLAGS=$ac_save_CFLAGS |
---|
| 2988 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2989 | if test "$GCC" = yes; then |
---|
| 2990 | CFLAGS="-g -O2" |
---|
| 2991 | else |
---|
| 2992 | CFLAGS="-g" |
---|
| 2993 | fi |
---|
| 2994 | else |
---|
| 2995 | if test "$GCC" = yes; then |
---|
| 2996 | CFLAGS="-O2" |
---|
| 2997 | else |
---|
| 2998 | CFLAGS= |
---|
| 2999 | fi |
---|
| 3000 | fi |
---|
| 3001 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
| 3002 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
| 3003 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
| 3004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3005 | else |
---|
| 3006 | ac_cv_prog_cc_c89=no |
---|
| 3007 | ac_save_CC=$CC |
---|
| 3008 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3009 | /* confdefs.h. */ |
---|
| 3010 | _ACEOF |
---|
| 3011 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3012 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3013 | /* end confdefs.h. */ |
---|
| 3014 | #include <stdarg.h> |
---|
| 3015 | #include <stdio.h> |
---|
| 3016 | #include <sys/types.h> |
---|
| 3017 | #include <sys/stat.h> |
---|
| 3018 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3019 | struct buf { int x; }; |
---|
| 3020 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3021 | static char *e (p, i) |
---|
| 3022 | char **p; |
---|
| 3023 | int i; |
---|
| 3024 | { |
---|
| 3025 | return p[i]; |
---|
| 3026 | } |
---|
| 3027 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3028 | { |
---|
| 3029 | char *s; |
---|
| 3030 | va_list v; |
---|
| 3031 | va_start (v,p); |
---|
| 3032 | s = g (p, va_arg (v,int)); |
---|
| 3033 | va_end (v); |
---|
| 3034 | return s; |
---|
| 3035 | } |
---|
| 3036 | |
---|
| 3037 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3038 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3039 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3040 | as 'x'. The following induces an error, until -std is added to get |
---|
| 3041 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3042 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3043 | that's true only with -std. */ |
---|
| 3044 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3045 | |
---|
| 3046 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 3047 | inside strings and character constants. */ |
---|
| 3048 | #define FOO(x) 'x' |
---|
| 3049 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 3050 | |
---|
| 3051 | int test (int i, double x); |
---|
| 3052 | struct s1 {int (*f) (int a);}; |
---|
| 3053 | struct s2 {int (*f) (double a);}; |
---|
| 3054 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3055 | int argc; |
---|
| 3056 | char **argv; |
---|
| 3057 | int |
---|
| 3058 | main () |
---|
| 3059 | { |
---|
| 3060 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3061 | ; |
---|
| 3062 | return 0; |
---|
| 3063 | } |
---|
| 3064 | _ACEOF |
---|
| 3065 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3066 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3067 | do |
---|
| 3068 | CC="$ac_save_CC $ac_arg" |
---|
| 3069 | rm -f conftest.$ac_objext |
---|
| 3070 | if { (ac_try="$ac_compile" |
---|
| 3071 | case "(($ac_try" in |
---|
| 3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3073 | *) ac_try_echo=$ac_try;; |
---|
| 3074 | esac |
---|
| 3075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3076 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3077 | ac_status=$? |
---|
| 3078 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3079 | rm -f conftest.er1 |
---|
| 3080 | cat conftest.err >&5 |
---|
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3082 | (exit $ac_status); } && |
---|
| 3083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3084 | { (case "(($ac_try" in |
---|
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3086 | *) ac_try_echo=$ac_try;; |
---|
| 3087 | esac |
---|
| 3088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3089 | (eval "$ac_try") 2>&5 |
---|
| 3090 | ac_status=$? |
---|
| 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3092 | (exit $ac_status); }; } && |
---|
| 3093 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3094 | { (case "(($ac_try" in |
---|
| 3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3096 | *) ac_try_echo=$ac_try;; |
---|
| 3097 | esac |
---|
| 3098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3099 | (eval "$ac_try") 2>&5 |
---|
| 3100 | ac_status=$? |
---|
| 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3102 | (exit $ac_status); }; }; then |
---|
| 3103 | ac_cv_prog_cc_c89=$ac_arg |
---|
| 3104 | else |
---|
| 3105 | echo "$as_me: failed program was:" >&5 |
---|
| 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3107 | |
---|
| 3108 | |
---|
| 3109 | fi |
---|
| 3110 | |
---|
| 3111 | rm -f core conftest.err conftest.$ac_objext |
---|
| 3112 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
| 3113 | done |
---|
| 3114 | rm -f conftest.$ac_ext |
---|
| 3115 | CC=$ac_save_CC |
---|
| 3116 | |
---|
| 3117 | fi |
---|
| 3118 | # AC_CACHE_VAL |
---|
| 3119 | case "x$ac_cv_prog_cc_c89" in |
---|
| 3120 | x) |
---|
| 3121 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3122 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
| 3123 | xno) |
---|
| 3124 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
| 3125 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
| 3126 | *) |
---|
| 3127 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 3128 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3129 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
| 3130 | esac |
---|
| 3131 | |
---|
| 3132 | |
---|
| 3133 | ac_ext=c |
---|
| 3134 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3138 | DEPDIR="${am__leading_dot}deps" |
---|
| 3139 | |
---|
| 3140 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 3141 | |
---|
| 3142 | |
---|
| 3143 | am_make=${MAKE-make} |
---|
| 3144 | cat > confinc << 'END' |
---|
| 3145 | am__doit: |
---|
| 3146 | @echo done |
---|
| 3147 | .PHONY: am__doit |
---|
| 3148 | END |
---|
| 3149 | # If we don't find an include directive, just comment out the code. |
---|
| 3150 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 3151 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
---|
| 3152 | am__include="#" |
---|
| 3153 | am__quote= |
---|
| 3154 | _am_result=none |
---|
| 3155 | # First try GNU make style include. |
---|
| 3156 | echo "include confinc" > confmf |
---|
| 3157 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 3158 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 3159 | # In particular we don't look at `^make:' because GNU make might |
---|
| 3160 | # be invoked under some other name (usually "gmake"), in which |
---|
| 3161 | # case it prints its new name instead of `make'. |
---|
| 3162 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 3163 | am__include=include |
---|
| 3164 | am__quote= |
---|
| 3165 | _am_result=GNU |
---|
| 3166 | fi |
---|
| 3167 | # Now try BSD make style include. |
---|
| 3168 | if test "$am__include" = "#"; then |
---|
| 3169 | echo '.include "confinc"' > confmf |
---|
| 3170 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 3171 | am__include=.include |
---|
| 3172 | am__quote="\"" |
---|
| 3173 | _am_result=BSD |
---|
| 3174 | fi |
---|
| 3175 | fi |
---|
| 3176 | |
---|
| 3177 | |
---|
| 3178 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 3179 | echo "${ECHO_T}$_am_result" >&6; } |
---|
| 3180 | rm -f confinc confmf |
---|
| 3181 | |
---|
| 3182 | # Check whether --enable-dependency-tracking was given. |
---|
| 3183 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 3184 | enableval=$enable_dependency_tracking; |
---|
| 3185 | fi |
---|
| 3186 | |
---|
| 3187 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 3188 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 3189 | AMDEPBACKSLASH='\' |
---|
| 3190 | fi |
---|
| 3191 | |
---|
| 3192 | |
---|
| 3193 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 3194 | AMDEP_TRUE= |
---|
| 3195 | AMDEP_FALSE='#' |
---|
| 3196 | else |
---|
| 3197 | AMDEP_TRUE='#' |
---|
| 3198 | AMDEP_FALSE= |
---|
| 3199 | fi |
---|
| 3200 | |
---|
| 3201 | |
---|
| 3202 | |
---|
| 3203 | |
---|
| 3204 | depcc="$CC" am_compiler_list= |
---|
| 3205 | |
---|
| 3206 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3207 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
---|
| 3208 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3210 | else |
---|
| 3211 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3212 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3213 | # making bogus files that we don't know about and never remove. For |
---|
| 3214 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3215 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3216 | # in D'. |
---|
| 3217 | mkdir conftest.dir |
---|
| 3218 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3219 | # using a relative directory. |
---|
| 3220 | cp "$am_depcomp" conftest.dir |
---|
| 3221 | cd conftest.dir |
---|
| 3222 | # We will build objects and dependencies in a subdirectory because |
---|
| 3223 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3224 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3225 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3226 | # the current directory while Tru64 will put them in the object |
---|
| 3227 | # directory. |
---|
| 3228 | mkdir sub |
---|
| 3229 | |
---|
| 3230 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3231 | if test "$am_compiler_list" = ""; then |
---|
| 3232 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3233 | fi |
---|
| 3234 | for depmode in $am_compiler_list; do |
---|
| 3235 | # Setup a source with many dependencies, because some compilers |
---|
| 3236 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3237 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3238 | # |
---|
| 3239 | # We need to recreate these files for each test, as the compiler may |
---|
| 3240 | # overwrite some of them when testing with obscure command lines. |
---|
| 3241 | # This happens at least with the AIX C compiler. |
---|
| 3242 | : > sub/conftest.c |
---|
| 3243 | for i in 1 2 3 4 5 6; do |
---|
| 3244 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
| 3245 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3246 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3247 | touch sub/conftst$i.h |
---|
| 3248 | done |
---|
| 3249 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3250 | |
---|
| 3251 | case $depmode in |
---|
| 3252 | nosideeffect) |
---|
| 3253 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3254 | # only be used when explicitly requested |
---|
| 3255 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3256 | continue |
---|
| 3257 | else |
---|
| 3258 | break |
---|
| 3259 | fi |
---|
| 3260 | ;; |
---|
| 3261 | none) break ;; |
---|
| 3262 | esac |
---|
| 3263 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3264 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3265 | # handle `-M -o', and we need to detect this. |
---|
| 3266 | if depmode=$depmode \ |
---|
| 3267 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3268 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3269 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3270 | >/dev/null 2>conftest.err && |
---|
| 3271 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3272 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3273 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3274 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
| 3275 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3276 | # that says an option was ignored or not supported. |
---|
| 3277 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3278 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3279 | # The diagnosis changed in icc 8.0: |
---|
| 3280 | # icc: Command line remark: option '-MP' not supported |
---|
| 3281 | if (grep 'ignoring option' conftest.err || |
---|
| 3282 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
| 3283 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3284 | break |
---|
| 3285 | fi |
---|
| 3286 | fi |
---|
| 3287 | done |
---|
| 3288 | |
---|
| 3289 | cd .. |
---|
| 3290 | rm -rf conftest.dir |
---|
| 3291 | else |
---|
| 3292 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3293 | fi |
---|
| 3294 | |
---|
| 3295 | fi |
---|
| 3296 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3297 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
| 3298 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3299 | |
---|
| 3300 | |
---|
| 3301 | |
---|
| 3302 | if |
---|
| 3303 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3304 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3305 | am__fastdepCC_TRUE= |
---|
| 3306 | am__fastdepCC_FALSE='#' |
---|
| 3307 | else |
---|
| 3308 | am__fastdepCC_TRUE='#' |
---|
| 3309 | am__fastdepCC_FALSE= |
---|
| 3310 | fi |
---|
| 3311 | |
---|
| 3312 | |
---|
| 3313 | if test -n "$ac_tool_prefix"; then |
---|
| 3314 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 3315 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 3316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 3318 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3320 | else |
---|
| 3321 | if test -n "$RANLIB"; then |
---|
| 3322 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 3323 | else |
---|
| 3324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3325 | for as_dir in $PATH |
---|
| 3326 | do |
---|
| 3327 | IFS=$as_save_IFS |
---|
| 3328 | test -z "$as_dir" && as_dir=. |
---|
| 3329 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 3331 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 3332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3333 | break 2 |
---|
| 3334 | fi |
---|
| 3335 | done |
---|
| 3336 | done |
---|
| 3337 | IFS=$as_save_IFS |
---|
| 3338 | |
---|
| 3339 | fi |
---|
| 3340 | fi |
---|
| 3341 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 3342 | if test -n "$RANLIB"; then |
---|
| 3343 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 3344 | echo "${ECHO_T}$RANLIB" >&6; } |
---|
| 3345 | else |
---|
| 3346 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3347 | echo "${ECHO_T}no" >&6; } |
---|
| 3348 | fi |
---|
| 3349 | |
---|
| 3350 | |
---|
| 3351 | fi |
---|
| 3352 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 3353 | ac_ct_RANLIB=$RANLIB |
---|
| 3354 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 3355 | set dummy ranlib; ac_word=$2 |
---|
| 3356 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 3358 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3360 | else |
---|
| 3361 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3362 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 3363 | else |
---|
| 3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3365 | for as_dir in $PATH |
---|
| 3366 | do |
---|
| 3367 | IFS=$as_save_IFS |
---|
| 3368 | test -z "$as_dir" && as_dir=. |
---|
| 3369 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 3371 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 3372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3373 | break 2 |
---|
| 3374 | fi |
---|
| 3375 | done |
---|
| 3376 | done |
---|
| 3377 | IFS=$as_save_IFS |
---|
| 3378 | |
---|
| 3379 | fi |
---|
| 3380 | fi |
---|
| 3381 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 3382 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3383 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 3384 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
---|
| 3385 | else |
---|
| 3386 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3387 | echo "${ECHO_T}no" >&6; } |
---|
| 3388 | fi |
---|
| 3389 | |
---|
| 3390 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 3391 | RANLIB=":" |
---|
| 3392 | else |
---|
| 3393 | case $cross_compiling:$ac_tool_warned in |
---|
| 3394 | yes:) |
---|
| 3395 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 3396 | whose name does not start with the host triplet. If you think this |
---|
| 3397 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 3398 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 3399 | whose name does not start with the host triplet. If you think this |
---|
| 3400 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 3401 | ac_tool_warned=yes ;; |
---|
| 3402 | esac |
---|
| 3403 | RANLIB=$ac_ct_RANLIB |
---|
| 3404 | fi |
---|
| 3405 | else |
---|
| 3406 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 3407 | fi |
---|
| 3408 | |
---|
| 3409 | |
---|
| 3410 | |
---|
| 3411 | { echo "$as_me:$LINENO: checking for gethostbyaddr_r" >&5 |
---|
| 3412 | echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6; } |
---|
| 3413 | if test "${ac_cv_func_gethostbyaddr_r+set}" = set; then |
---|
| 3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3415 | else |
---|
| 3416 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3417 | /* confdefs.h. */ |
---|
| 3418 | _ACEOF |
---|
| 3419 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3420 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3421 | /* end confdefs.h. */ |
---|
| 3422 | /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r. |
---|
| 3423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 3424 | #define gethostbyaddr_r innocuous_gethostbyaddr_r |
---|
| 3425 | |
---|
| 3426 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3427 | which can conflict with char gethostbyaddr_r (); below. |
---|
| 3428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3429 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3430 | |
---|
| 3431 | #ifdef __STDC__ |
---|
| 3432 | # include <limits.h> |
---|
| 3433 | #else |
---|
| 3434 | # include <assert.h> |
---|
| 3435 | #endif |
---|
| 3436 | |
---|
| 3437 | #undef gethostbyaddr_r |
---|
| 3438 | |
---|
| 3439 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3440 | Use char because int might match the return type of a GCC |
---|
| 3441 | builtin and then its argument prototype would still apply. */ |
---|
| 3442 | #ifdef __cplusplus |
---|
| 3443 | extern "C" |
---|
| 3444 | #endif |
---|
| 3445 | char gethostbyaddr_r (); |
---|
| 3446 | /* The GNU C library defines this for functions which it implements |
---|
| 3447 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3448 | something starting with __ and the normal name is an alias. */ |
---|
| 3449 | #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r |
---|
| 3450 | choke me |
---|
| 3451 | #endif |
---|
| 3452 | |
---|
| 3453 | int |
---|
| 3454 | main () |
---|
| 3455 | { |
---|
| 3456 | return gethostbyaddr_r (); |
---|
| 3457 | ; |
---|
| 3458 | return 0; |
---|
| 3459 | } |
---|
| 3460 | _ACEOF |
---|
| 3461 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3462 | if { (ac_try="$ac_link" |
---|
| 3463 | case "(($ac_try" in |
---|
| 3464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3465 | *) ac_try_echo=$ac_try;; |
---|
| 3466 | esac |
---|
| 3467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3468 | (eval "$ac_link") 2>conftest.er1 |
---|
| 3469 | ac_status=$? |
---|
| 3470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3471 | rm -f conftest.er1 |
---|
| 3472 | cat conftest.err >&5 |
---|
| 3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3474 | (exit $ac_status); } && |
---|
| 3475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3476 | { (case "(($ac_try" in |
---|
| 3477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3478 | *) ac_try_echo=$ac_try;; |
---|
| 3479 | esac |
---|
| 3480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3481 | (eval "$ac_try") 2>&5 |
---|
| 3482 | ac_status=$? |
---|
| 3483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3484 | (exit $ac_status); }; } && |
---|
| 3485 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3486 | { (case "(($ac_try" in |
---|
| 3487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3488 | *) ac_try_echo=$ac_try;; |
---|
| 3489 | esac |
---|
| 3490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3491 | (eval "$ac_try") 2>&5 |
---|
| 3492 | ac_status=$? |
---|
| 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3494 | (exit $ac_status); }; }; then |
---|
| 3495 | ac_cv_func_gethostbyaddr_r=yes |
---|
| 3496 | else |
---|
| 3497 | echo "$as_me: failed program was:" >&5 |
---|
| 3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3499 | |
---|
| 3500 | ac_cv_func_gethostbyaddr_r=no |
---|
| 3501 | fi |
---|
| 3502 | |
---|
| 3503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3504 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3505 | fi |
---|
| 3506 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_r" >&5 |
---|
| 3507 | echo "${ECHO_T}$ac_cv_func_gethostbyaddr_r" >&6; } |
---|
| 3508 | if test $ac_cv_func_gethostbyaddr_r = yes; then |
---|
| 3509 | cat >>confdefs.h <<\_ACEOF |
---|
| 3510 | #define HAS_GETHOSTBYADDR_R 1 |
---|
| 3511 | _ACEOF |
---|
| 3512 | |
---|
| 3513 | fi |
---|
| 3514 | |
---|
| 3515 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
---|
| 3516 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
---|
| 3517 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
---|
| 3518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3519 | else |
---|
| 3520 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3521 | /* confdefs.h. */ |
---|
| 3522 | _ACEOF |
---|
| 3523 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3524 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3525 | /* end confdefs.h. */ |
---|
| 3526 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
---|
| 3527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 3528 | #define gethostbyname_r innocuous_gethostbyname_r |
---|
| 3529 | |
---|
| 3530 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3531 | which can conflict with char gethostbyname_r (); below. |
---|
| 3532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3533 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3534 | |
---|
| 3535 | #ifdef __STDC__ |
---|
| 3536 | # include <limits.h> |
---|
| 3537 | #else |
---|
| 3538 | # include <assert.h> |
---|
| 3539 | #endif |
---|
| 3540 | |
---|
| 3541 | #undef gethostbyname_r |
---|
| 3542 | |
---|
| 3543 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3544 | Use char because int might match the return type of a GCC |
---|
| 3545 | builtin and then its argument prototype would still apply. */ |
---|
| 3546 | #ifdef __cplusplus |
---|
| 3547 | extern "C" |
---|
| 3548 | #endif |
---|
| 3549 | char gethostbyname_r (); |
---|
| 3550 | /* The GNU C library defines this for functions which it implements |
---|
| 3551 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3552 | something starting with __ and the normal name is an alias. */ |
---|
| 3553 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
---|
| 3554 | choke me |
---|
| 3555 | #endif |
---|
| 3556 | |
---|
| 3557 | int |
---|
| 3558 | main () |
---|
| 3559 | { |
---|
| 3560 | return gethostbyname_r (); |
---|
| 3561 | ; |
---|
| 3562 | return 0; |
---|
| 3563 | } |
---|
| 3564 | _ACEOF |
---|
| 3565 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3566 | if { (ac_try="$ac_link" |
---|
| 3567 | case "(($ac_try" in |
---|
| 3568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3569 | *) ac_try_echo=$ac_try;; |
---|
| 3570 | esac |
---|
| 3571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3572 | (eval "$ac_link") 2>conftest.er1 |
---|
| 3573 | ac_status=$? |
---|
| 3574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3575 | rm -f conftest.er1 |
---|
| 3576 | cat conftest.err >&5 |
---|
| 3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3578 | (exit $ac_status); } && |
---|
| 3579 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3580 | { (case "(($ac_try" in |
---|
| 3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3582 | *) ac_try_echo=$ac_try;; |
---|
| 3583 | esac |
---|
| 3584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3585 | (eval "$ac_try") 2>&5 |
---|
| 3586 | ac_status=$? |
---|
| 3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3588 | (exit $ac_status); }; } && |
---|
| 3589 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3590 | { (case "(($ac_try" in |
---|
| 3591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3592 | *) ac_try_echo=$ac_try;; |
---|
| 3593 | esac |
---|
| 3594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3595 | (eval "$ac_try") 2>&5 |
---|
| 3596 | ac_status=$? |
---|
| 3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3598 | (exit $ac_status); }; }; then |
---|
| 3599 | ac_cv_func_gethostbyname_r=yes |
---|
| 3600 | else |
---|
| 3601 | echo "$as_me: failed program was:" >&5 |
---|
| 3602 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3603 | |
---|
| 3604 | ac_cv_func_gethostbyname_r=no |
---|
| 3605 | fi |
---|
| 3606 | |
---|
| 3607 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3608 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3609 | fi |
---|
| 3610 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
---|
| 3611 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
---|
| 3612 | if test $ac_cv_func_gethostbyname_r = yes; then |
---|
| 3613 | cat >>confdefs.h <<\_ACEOF |
---|
| 3614 | #define HAS_GETHOSTBYNAME_R 1 |
---|
| 3615 | _ACEOF |
---|
| 3616 | |
---|
| 3617 | fi |
---|
| 3618 | |
---|
| 3619 | { echo "$as_me:$LINENO: checking for poll" >&5 |
---|
| 3620 | echo $ECHO_N "checking for poll... $ECHO_C" >&6; } |
---|
| 3621 | if test "${ac_cv_func_poll+set}" = set; then |
---|
| 3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3623 | else |
---|
| 3624 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3625 | /* confdefs.h. */ |
---|
| 3626 | _ACEOF |
---|
| 3627 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3628 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3629 | /* end confdefs.h. */ |
---|
| 3630 | /* Define poll to an innocuous variant, in case <limits.h> declares poll. |
---|
| 3631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 3632 | #define poll innocuous_poll |
---|
| 3633 | |
---|
| 3634 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3635 | which can conflict with char poll (); below. |
---|
| 3636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3637 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3638 | |
---|
| 3639 | #ifdef __STDC__ |
---|
| 3640 | # include <limits.h> |
---|
| 3641 | #else |
---|
| 3642 | # include <assert.h> |
---|
| 3643 | #endif |
---|
| 3644 | |
---|
| 3645 | #undef poll |
---|
| 3646 | |
---|
| 3647 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3648 | Use char because int might match the return type of a GCC |
---|
| 3649 | builtin and then its argument prototype would still apply. */ |
---|
| 3650 | #ifdef __cplusplus |
---|
| 3651 | extern "C" |
---|
| 3652 | #endif |
---|
| 3653 | char poll (); |
---|
| 3654 | /* The GNU C library defines this for functions which it implements |
---|
| 3655 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3656 | something starting with __ and the normal name is an alias. */ |
---|
| 3657 | #if defined __stub_poll || defined __stub___poll |
---|
| 3658 | choke me |
---|
| 3659 | #endif |
---|
| 3660 | |
---|
| 3661 | int |
---|
| 3662 | main () |
---|
| 3663 | { |
---|
| 3664 | return poll (); |
---|
| 3665 | ; |
---|
| 3666 | return 0; |
---|
| 3667 | } |
---|
| 3668 | _ACEOF |
---|
| 3669 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3670 | if { (ac_try="$ac_link" |
---|
| 3671 | case "(($ac_try" in |
---|
| 3672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3673 | *) ac_try_echo=$ac_try;; |
---|
| 3674 | esac |
---|
| 3675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3676 | (eval "$ac_link") 2>conftest.er1 |
---|
| 3677 | ac_status=$? |
---|
| 3678 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3679 | rm -f conftest.er1 |
---|
| 3680 | cat conftest.err >&5 |
---|
| 3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3682 | (exit $ac_status); } && |
---|
| 3683 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3684 | { (case "(($ac_try" in |
---|
| 3685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3686 | *) ac_try_echo=$ac_try;; |
---|
| 3687 | esac |
---|
| 3688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3689 | (eval "$ac_try") 2>&5 |
---|
| 3690 | ac_status=$? |
---|
| 3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3692 | (exit $ac_status); }; } && |
---|
| 3693 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3694 | { (case "(($ac_try" in |
---|
| 3695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3696 | *) ac_try_echo=$ac_try;; |
---|
| 3697 | esac |
---|
| 3698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3699 | (eval "$ac_try") 2>&5 |
---|
| 3700 | ac_status=$? |
---|
| 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3702 | (exit $ac_status); }; }; then |
---|
| 3703 | ac_cv_func_poll=yes |
---|
| 3704 | else |
---|
| 3705 | echo "$as_me: failed program was:" >&5 |
---|
| 3706 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3707 | |
---|
| 3708 | ac_cv_func_poll=no |
---|
| 3709 | fi |
---|
| 3710 | |
---|
| 3711 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3712 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3713 | fi |
---|
| 3714 | { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 |
---|
| 3715 | echo "${ECHO_T}$ac_cv_func_poll" >&6; } |
---|
| 3716 | if test $ac_cv_func_poll = yes; then |
---|
| 3717 | cat >>confdefs.h <<\_ACEOF |
---|
| 3718 | #define HAS_POLL 1 |
---|
| 3719 | _ACEOF |
---|
| 3720 | |
---|
| 3721 | fi |
---|
| 3722 | |
---|
| 3723 | { echo "$as_me:$LINENO: checking for fcntl" >&5 |
---|
| 3724 | echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; } |
---|
| 3725 | if test "${ac_cv_func_fcntl+set}" = set; then |
---|
| 3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3727 | else |
---|
| 3728 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3729 | /* confdefs.h. */ |
---|
| 3730 | _ACEOF |
---|
| 3731 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3732 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3733 | /* end confdefs.h. */ |
---|
| 3734 | /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl. |
---|
| 3735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 3736 | #define fcntl innocuous_fcntl |
---|
| 3737 | |
---|
| 3738 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3739 | which can conflict with char fcntl (); below. |
---|
| 3740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3741 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3742 | |
---|
| 3743 | #ifdef __STDC__ |
---|
| 3744 | # include <limits.h> |
---|
| 3745 | #else |
---|
| 3746 | # include <assert.h> |
---|
| 3747 | #endif |
---|
| 3748 | |
---|
| 3749 | #undef fcntl |
---|
| 3750 | |
---|
| 3751 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3752 | Use char because int might match the return type of a GCC |
---|
| 3753 | builtin and then its argument prototype would still apply. */ |
---|
| 3754 | #ifdef __cplusplus |
---|
| 3755 | extern "C" |
---|
| 3756 | #endif |
---|
| 3757 | char fcntl (); |
---|
| 3758 | /* The GNU C library defines this for functions which it implements |
---|
| 3759 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3760 | something starting with __ and the normal name is an alias. */ |
---|
| 3761 | #if defined __stub_fcntl || defined __stub___fcntl |
---|
| 3762 | choke me |
---|
| 3763 | #endif |
---|
| 3764 | |
---|
| 3765 | int |
---|
| 3766 | main () |
---|
| 3767 | { |
---|
| 3768 | return fcntl (); |
---|
| 3769 | ; |
---|
| 3770 | return 0; |
---|
| 3771 | } |
---|
| 3772 | _ACEOF |
---|
| 3773 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3774 | if { (ac_try="$ac_link" |
---|
| 3775 | case "(($ac_try" in |
---|
| 3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3777 | *) ac_try_echo=$ac_try;; |
---|
| 3778 | esac |
---|
| 3779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3780 | (eval "$ac_link") 2>conftest.er1 |
---|
| 3781 | ac_status=$? |
---|
| 3782 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3783 | rm -f conftest.er1 |
---|
| 3784 | cat conftest.err >&5 |
---|
| 3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3786 | (exit $ac_status); } && |
---|
| 3787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3788 | { (case "(($ac_try" in |
---|
| 3789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3790 | *) ac_try_echo=$ac_try;; |
---|
| 3791 | esac |
---|
| 3792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3793 | (eval "$ac_try") 2>&5 |
---|
| 3794 | ac_status=$? |
---|
| 3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3796 | (exit $ac_status); }; } && |
---|
| 3797 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3798 | { (case "(($ac_try" in |
---|
| 3799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3800 | *) ac_try_echo=$ac_try;; |
---|
| 3801 | esac |
---|
| 3802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3803 | (eval "$ac_try") 2>&5 |
---|
| 3804 | ac_status=$? |
---|
| 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3806 | (exit $ac_status); }; }; then |
---|
| 3807 | ac_cv_func_fcntl=yes |
---|
| 3808 | else |
---|
| 3809 | echo "$as_me: failed program was:" >&5 |
---|
| 3810 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3811 | |
---|
| 3812 | ac_cv_func_fcntl=no |
---|
| 3813 | fi |
---|
| 3814 | |
---|
| 3815 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3816 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3817 | fi |
---|
| 3818 | { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5 |
---|
| 3819 | echo "${ECHO_T}$ac_cv_func_fcntl" >&6; } |
---|
| 3820 | if test $ac_cv_func_fcntl = yes; then |
---|
| 3821 | cat >>confdefs.h <<\_ACEOF |
---|
| 3822 | #define HAS_FCNTL 1 |
---|
| 3823 | _ACEOF |
---|
| 3824 | |
---|
| 3825 | fi |
---|
| 3826 | |
---|
| 3827 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
---|
| 3828 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
---|
| 3829 | if test "${ac_cv_func_inet_pton+set}" = set; then |
---|
| 3830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3831 | else |
---|
| 3832 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3833 | /* confdefs.h. */ |
---|
| 3834 | _ACEOF |
---|
| 3835 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3836 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3837 | /* end confdefs.h. */ |
---|
| 3838 | /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton. |
---|
| 3839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 3840 | #define inet_pton innocuous_inet_pton |
---|
| 3841 | |
---|
| 3842 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3843 | which can conflict with char inet_pton (); below. |
---|
| 3844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3845 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3846 | |
---|
| 3847 | #ifdef __STDC__ |
---|
| 3848 | # include <limits.h> |
---|
| 3849 | #else |
---|
| 3850 | # include <assert.h> |
---|
| 3851 | #endif |
---|
| 3852 | |
---|
| 3853 | #undef inet_pton |
---|
| 3854 | |
---|
| 3855 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3856 | Use char because int might match the return type of a GCC |
---|
| 3857 | builtin and then its argument prototype would still apply. */ |
---|
| 3858 | #ifdef __cplusplus |
---|
| 3859 | extern "C" |
---|
| 3860 | #endif |
---|
| 3861 | char inet_pton (); |
---|
| 3862 | /* The GNU C library defines this for functions which it implements |
---|
| 3863 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3864 | something starting with __ and the normal name is an alias. */ |
---|
| 3865 | #if defined __stub_inet_pton || defined __stub___inet_pton |
---|
| 3866 | choke me |
---|
| 3867 | #endif |
---|
| 3868 | |
---|
| 3869 | int |
---|
| 3870 | main () |
---|
| 3871 | { |
---|
| 3872 | return inet_pton (); |
---|
| 3873 | ; |
---|
| 3874 | return 0; |
---|
| 3875 | } |
---|
| 3876 | _ACEOF |
---|
| 3877 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3878 | if { (ac_try="$ac_link" |
---|
| 3879 | case "(($ac_try" in |
---|
| 3880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3881 | *) ac_try_echo=$ac_try;; |
---|
| 3882 | esac |
---|
| 3883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3884 | (eval "$ac_link") 2>conftest.er1 |
---|
| 3885 | ac_status=$? |
---|
| 3886 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3887 | rm -f conftest.er1 |
---|
| 3888 | cat conftest.err >&5 |
---|
| 3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3890 | (exit $ac_status); } && |
---|
| 3891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3892 | { (case "(($ac_try" in |
---|
| 3893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3894 | *) ac_try_echo=$ac_try;; |
---|
| 3895 | esac |
---|
| 3896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3897 | (eval "$ac_try") 2>&5 |
---|
| 3898 | ac_status=$? |
---|
| 3899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3900 | (exit $ac_status); }; } && |
---|
| 3901 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3902 | { (case "(($ac_try" in |
---|
| 3903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3904 | *) ac_try_echo=$ac_try;; |
---|
| 3905 | esac |
---|
| 3906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3907 | (eval "$ac_try") 2>&5 |
---|
| 3908 | ac_status=$? |
---|
| 3909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3910 | (exit $ac_status); }; }; then |
---|
| 3911 | ac_cv_func_inet_pton=yes |
---|
| 3912 | else |
---|
| 3913 | echo "$as_me: failed program was:" >&5 |
---|
| 3914 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3915 | |
---|
| 3916 | ac_cv_func_inet_pton=no |
---|
| 3917 | fi |
---|
| 3918 | |
---|
| 3919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3920 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3921 | fi |
---|
| 3922 | { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5 |
---|
| 3923 | echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; } |
---|
| 3924 | if test $ac_cv_func_inet_pton = yes; then |
---|
| 3925 | cat >>confdefs.h <<\_ACEOF |
---|
| 3926 | #define HAS_INET_PTON 1 |
---|
| 3927 | _ACEOF |
---|
| 3928 | |
---|
| 3929 | fi |
---|
| 3930 | |
---|
| 3931 | { echo "$as_me:$LINENO: checking for inet_ntop" >&5 |
---|
| 3932 | echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; } |
---|
| 3933 | if test "${ac_cv_func_inet_ntop+set}" = set; then |
---|
| 3934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3935 | else |
---|
| 3936 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3937 | /* confdefs.h. */ |
---|
| 3938 | _ACEOF |
---|
| 3939 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3940 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3941 | /* end confdefs.h. */ |
---|
| 3942 | /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop. |
---|
| 3943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 3944 | #define inet_ntop innocuous_inet_ntop |
---|
| 3945 | |
---|
| 3946 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3947 | which can conflict with char inet_ntop (); below. |
---|
| 3948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3949 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3950 | |
---|
| 3951 | #ifdef __STDC__ |
---|
| 3952 | # include <limits.h> |
---|
| 3953 | #else |
---|
| 3954 | # include <assert.h> |
---|
| 3955 | #endif |
---|
| 3956 | |
---|
| 3957 | #undef inet_ntop |
---|
| 3958 | |
---|
| 3959 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3960 | Use char because int might match the return type of a GCC |
---|
| 3961 | builtin and then its argument prototype would still apply. */ |
---|
| 3962 | #ifdef __cplusplus |
---|
| 3963 | extern "C" |
---|
| 3964 | #endif |
---|
| 3965 | char inet_ntop (); |
---|
| 3966 | /* The GNU C library defines this for functions which it implements |
---|
| 3967 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3968 | something starting with __ and the normal name is an alias. */ |
---|
| 3969 | #if defined __stub_inet_ntop || defined __stub___inet_ntop |
---|
| 3970 | choke me |
---|
| 3971 | #endif |
---|
| 3972 | |
---|
| 3973 | int |
---|
| 3974 | main () |
---|
| 3975 | { |
---|
| 3976 | return inet_ntop (); |
---|
| 3977 | ; |
---|
| 3978 | return 0; |
---|
| 3979 | } |
---|
| 3980 | _ACEOF |
---|
| 3981 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3982 | if { (ac_try="$ac_link" |
---|
| 3983 | case "(($ac_try" in |
---|
| 3984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3985 | *) ac_try_echo=$ac_try;; |
---|
| 3986 | esac |
---|
| 3987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3988 | (eval "$ac_link") 2>conftest.er1 |
---|
| 3989 | ac_status=$? |
---|
| 3990 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3991 | rm -f conftest.er1 |
---|
| 3992 | cat conftest.err >&5 |
---|
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3994 | (exit $ac_status); } && |
---|
| 3995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3996 | { (case "(($ac_try" in |
---|
| 3997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3998 | *) ac_try_echo=$ac_try;; |
---|
| 3999 | esac |
---|
| 4000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4001 | (eval "$ac_try") 2>&5 |
---|
| 4002 | ac_status=$? |
---|
| 4003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4004 | (exit $ac_status); }; } && |
---|
| 4005 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4006 | { (case "(($ac_try" in |
---|
| 4007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4008 | *) ac_try_echo=$ac_try;; |
---|
| 4009 | esac |
---|
| 4010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4011 | (eval "$ac_try") 2>&5 |
---|
| 4012 | ac_status=$? |
---|
| 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4014 | (exit $ac_status); }; }; then |
---|
| 4015 | ac_cv_func_inet_ntop=yes |
---|
| 4016 | else |
---|
| 4017 | echo "$as_me: failed program was:" >&5 |
---|
| 4018 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4019 | |
---|
| 4020 | ac_cv_func_inet_ntop=no |
---|
| 4021 | fi |
---|
| 4022 | |
---|
| 4023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4024 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4025 | fi |
---|
| 4026 | { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5 |
---|
| 4027 | echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; } |
---|
| 4028 | if test $ac_cv_func_inet_ntop = yes; then |
---|
| 4029 | cat >>confdefs.h <<\_ACEOF |
---|
| 4030 | #define HAS_INET_NTOP 1 |
---|
| 4031 | _ACEOF |
---|
| 4032 | |
---|
| 4033 | fi |
---|
| 4034 | |
---|
| 4035 | |
---|
| 4036 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_flags" >&5 |
---|
| 4037 | echo $ECHO_N "checking for struct msghdr.msg_flags... $ECHO_C" >&6; } |
---|
| 4038 | if test "${ac_cv_member_struct_msghdr_msg_flags+set}" = set; then |
---|
| 4039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4040 | else |
---|
| 4041 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4042 | /* confdefs.h. */ |
---|
| 4043 | _ACEOF |
---|
| 4044 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4045 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4046 | /* end confdefs.h. */ |
---|
| 4047 | #include <sys/socket.h> |
---|
| 4048 | |
---|
| 4049 | int |
---|
| 4050 | main () |
---|
| 4051 | { |
---|
| 4052 | static struct msghdr ac_aggr; |
---|
| 4053 | if (ac_aggr.msg_flags) |
---|
| 4054 | return 0; |
---|
| 4055 | ; |
---|
| 4056 | return 0; |
---|
| 4057 | } |
---|
| 4058 | _ACEOF |
---|
| 4059 | rm -f conftest.$ac_objext |
---|
| 4060 | if { (ac_try="$ac_compile" |
---|
| 4061 | case "(($ac_try" in |
---|
| 4062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4063 | *) ac_try_echo=$ac_try;; |
---|
| 4064 | esac |
---|
| 4065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4066 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4067 | ac_status=$? |
---|
| 4068 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4069 | rm -f conftest.er1 |
---|
| 4070 | cat conftest.err >&5 |
---|
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4072 | (exit $ac_status); } && |
---|
| 4073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 4074 | { (case "(($ac_try" in |
---|
| 4075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4076 | *) ac_try_echo=$ac_try;; |
---|
| 4077 | esac |
---|
| 4078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4079 | (eval "$ac_try") 2>&5 |
---|
| 4080 | ac_status=$? |
---|
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4082 | (exit $ac_status); }; } && |
---|
| 4083 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4084 | { (case "(($ac_try" in |
---|
| 4085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4086 | *) ac_try_echo=$ac_try;; |
---|
| 4087 | esac |
---|
| 4088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4089 | (eval "$ac_try") 2>&5 |
---|
| 4090 | ac_status=$? |
---|
| 4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4092 | (exit $ac_status); }; }; then |
---|
| 4093 | ac_cv_member_struct_msghdr_msg_flags=yes |
---|
| 4094 | else |
---|
| 4095 | echo "$as_me: failed program was:" >&5 |
---|
| 4096 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4097 | |
---|
| 4098 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4099 | /* confdefs.h. */ |
---|
| 4100 | _ACEOF |
---|
| 4101 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4102 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4103 | /* end confdefs.h. */ |
---|
| 4104 | #include <sys/socket.h> |
---|
| 4105 | |
---|
| 4106 | int |
---|
| 4107 | main () |
---|
| 4108 | { |
---|
| 4109 | static struct msghdr ac_aggr; |
---|
| 4110 | if (sizeof ac_aggr.msg_flags) |
---|
| 4111 | return 0; |
---|
| 4112 | ; |
---|
| 4113 | return 0; |
---|
| 4114 | } |
---|
| 4115 | _ACEOF |
---|
| 4116 | rm -f conftest.$ac_objext |
---|
| 4117 | if { (ac_try="$ac_compile" |
---|
| 4118 | case "(($ac_try" in |
---|
| 4119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4120 | *) ac_try_echo=$ac_try;; |
---|
| 4121 | esac |
---|
| 4122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4123 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4124 | ac_status=$? |
---|
| 4125 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4126 | rm -f conftest.er1 |
---|
| 4127 | cat conftest.err >&5 |
---|
| 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4129 | (exit $ac_status); } && |
---|
| 4130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 4131 | { (case "(($ac_try" in |
---|
| 4132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4133 | *) ac_try_echo=$ac_try;; |
---|
| 4134 | esac |
---|
| 4135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4136 | (eval "$ac_try") 2>&5 |
---|
| 4137 | ac_status=$? |
---|
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4139 | (exit $ac_status); }; } && |
---|
| 4140 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4141 | { (case "(($ac_try" in |
---|
| 4142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4143 | *) ac_try_echo=$ac_try;; |
---|
| 4144 | esac |
---|
| 4145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4146 | (eval "$ac_try") 2>&5 |
---|
| 4147 | ac_status=$? |
---|
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4149 | (exit $ac_status); }; }; then |
---|
| 4150 | ac_cv_member_struct_msghdr_msg_flags=yes |
---|
| 4151 | else |
---|
| 4152 | echo "$as_me: failed program was:" >&5 |
---|
| 4153 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4154 | |
---|
| 4155 | ac_cv_member_struct_msghdr_msg_flags=no |
---|
| 4156 | fi |
---|
| 4157 | |
---|
| 4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4159 | fi |
---|
| 4160 | |
---|
| 4161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4162 | fi |
---|
| 4163 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_flags" >&5 |
---|
| 4164 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_flags" >&6; } |
---|
| 4165 | if test $ac_cv_member_struct_msghdr_msg_flags = yes; then |
---|
| 4166 | cat >>confdefs.h <<\_ACEOF |
---|
| 4167 | #define HAS_MSGHDR_FLAGS 1 |
---|
| 4168 | _ACEOF |
---|
| 4169 | |
---|
| 4170 | fi |
---|
| 4171 | |
---|
| 4172 | |
---|
| 4173 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
---|
| 4174 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
---|
| 4175 | if test "${ac_cv_type_socklen_t+set}" = set; then |
---|
| 4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4177 | else |
---|
| 4178 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4179 | /* confdefs.h. */ |
---|
| 4180 | _ACEOF |
---|
| 4181 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4182 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4183 | /* end confdefs.h. */ |
---|
| 4184 | #include <sys/types.h> |
---|
| 4185 | #include <sys/socket.h> |
---|
| 4186 | |
---|
| 4187 | |
---|
| 4188 | typedef socklen_t ac__type_new_; |
---|
| 4189 | int |
---|
| 4190 | main () |
---|
| 4191 | { |
---|
| 4192 | if ((ac__type_new_ *) 0) |
---|
| 4193 | return 0; |
---|
| 4194 | if (sizeof (ac__type_new_)) |
---|
| 4195 | return 0; |
---|
| 4196 | ; |
---|
| 4197 | return 0; |
---|
| 4198 | } |
---|
| 4199 | _ACEOF |
---|
| 4200 | rm -f conftest.$ac_objext |
---|
| 4201 | if { (ac_try="$ac_compile" |
---|
| 4202 | case "(($ac_try" in |
---|
| 4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4204 | *) ac_try_echo=$ac_try;; |
---|
| 4205 | esac |
---|
| 4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4207 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4208 | ac_status=$? |
---|
| 4209 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4210 | rm -f conftest.er1 |
---|
| 4211 | cat conftest.err >&5 |
---|
| 4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4213 | (exit $ac_status); } && |
---|
| 4214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 4215 | { (case "(($ac_try" in |
---|
| 4216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4217 | *) ac_try_echo=$ac_try;; |
---|
| 4218 | esac |
---|
| 4219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4220 | (eval "$ac_try") 2>&5 |
---|
| 4221 | ac_status=$? |
---|
| 4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4223 | (exit $ac_status); }; } && |
---|
| 4224 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4225 | { (case "(($ac_try" in |
---|
| 4226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4227 | *) ac_try_echo=$ac_try;; |
---|
| 4228 | esac |
---|
| 4229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4230 | (eval "$ac_try") 2>&5 |
---|
| 4231 | ac_status=$? |
---|
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4233 | (exit $ac_status); }; }; then |
---|
| 4234 | ac_cv_type_socklen_t=yes |
---|
| 4235 | else |
---|
| 4236 | echo "$as_me: failed program was:" >&5 |
---|
| 4237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4238 | |
---|
| 4239 | ac_cv_type_socklen_t=no |
---|
| 4240 | fi |
---|
| 4241 | |
---|
| 4242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4243 | fi |
---|
| 4244 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
---|
| 4245 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
---|
| 4246 | if test $ac_cv_type_socklen_t = yes; then |
---|
| 4247 | cat >>confdefs.h <<\_ACEOF |
---|
| 4248 | #define HAS_SOCKLEN_T 1 |
---|
| 4249 | _ACEOF |
---|
| 4250 | |
---|
| 4251 | fi |
---|
| 4252 | |
---|
| 4253 | |
---|
| 4254 | ac_ext=c |
---|
| 4255 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4259 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 4260 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
---|
| 4261 | # On Suns, sometimes $CPP names a directory. |
---|
| 4262 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 4263 | CPP= |
---|
| 4264 | fi |
---|
| 4265 | if test -z "$CPP"; then |
---|
| 4266 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4268 | else |
---|
| 4269 | # Double quotes because CPP needs to be expanded |
---|
| 4270 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 4271 | do |
---|
| 4272 | ac_preproc_ok=false |
---|
| 4273 | for ac_c_preproc_warn_flag in '' yes |
---|
| 4274 | do |
---|
| 4275 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 4276 | # with a fresh cross-compiler works. |
---|
| 4277 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4278 | # <limits.h> exists even on freestanding compilers. |
---|
| 4279 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 4280 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 4281 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4282 | /* confdefs.h. */ |
---|
| 4283 | _ACEOF |
---|
| 4284 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4285 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4286 | /* end confdefs.h. */ |
---|
| 4287 | #ifdef __STDC__ |
---|
| 4288 | # include <limits.h> |
---|
| 4289 | #else |
---|
| 4290 | # include <assert.h> |
---|
| 4291 | #endif |
---|
| 4292 | Syntax error |
---|
| 4293 | _ACEOF |
---|
| 4294 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4295 | case "(($ac_try" in |
---|
| 4296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4297 | *) ac_try_echo=$ac_try;; |
---|
| 4298 | esac |
---|
| 4299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4301 | ac_status=$? |
---|
| 4302 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4303 | rm -f conftest.er1 |
---|
| 4304 | cat conftest.err >&5 |
---|
| 4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4306 | (exit $ac_status); } >/dev/null; then |
---|
| 4307 | if test -s conftest.err; then |
---|
| 4308 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4310 | else |
---|
| 4311 | ac_cpp_err= |
---|
| 4312 | fi |
---|
| 4313 | else |
---|
| 4314 | ac_cpp_err=yes |
---|
| 4315 | fi |
---|
| 4316 | if test -z "$ac_cpp_err"; then |
---|
| 4317 | : |
---|
| 4318 | else |
---|
| 4319 | echo "$as_me: failed program was:" >&5 |
---|
| 4320 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4321 | |
---|
| 4322 | # Broken: fails on valid input. |
---|
| 4323 | continue |
---|
| 4324 | fi |
---|
| 4325 | |
---|
| 4326 | rm -f conftest.err conftest.$ac_ext |
---|
| 4327 | |
---|
| 4328 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 4329 | # can be detected and how. |
---|
| 4330 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4331 | /* confdefs.h. */ |
---|
| 4332 | _ACEOF |
---|
| 4333 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4334 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4335 | /* end confdefs.h. */ |
---|
| 4336 | #include <ac_nonexistent.h> |
---|
| 4337 | _ACEOF |
---|
| 4338 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4339 | case "(($ac_try" in |
---|
| 4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4341 | *) ac_try_echo=$ac_try;; |
---|
| 4342 | esac |
---|
| 4343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4345 | ac_status=$? |
---|
| 4346 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4347 | rm -f conftest.er1 |
---|
| 4348 | cat conftest.err >&5 |
---|
| 4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4350 | (exit $ac_status); } >/dev/null; then |
---|
| 4351 | if test -s conftest.err; then |
---|
| 4352 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4353 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4354 | else |
---|
| 4355 | ac_cpp_err= |
---|
| 4356 | fi |
---|
| 4357 | else |
---|
| 4358 | ac_cpp_err=yes |
---|
| 4359 | fi |
---|
| 4360 | if test -z "$ac_cpp_err"; then |
---|
| 4361 | # Broken: success on invalid input. |
---|
| 4362 | continue |
---|
| 4363 | else |
---|
| 4364 | echo "$as_me: failed program was:" >&5 |
---|
| 4365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4366 | |
---|
| 4367 | # Passes both tests. |
---|
| 4368 | ac_preproc_ok=: |
---|
| 4369 | break |
---|
| 4370 | fi |
---|
| 4371 | |
---|
| 4372 | rm -f conftest.err conftest.$ac_ext |
---|
| 4373 | |
---|
| 4374 | done |
---|
| 4375 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 4376 | rm -f conftest.err conftest.$ac_ext |
---|
| 4377 | if $ac_preproc_ok; then |
---|
| 4378 | break |
---|
| 4379 | fi |
---|
| 4380 | |
---|
| 4381 | done |
---|
| 4382 | ac_cv_prog_CPP=$CPP |
---|
| 4383 | |
---|
| 4384 | fi |
---|
| 4385 | CPP=$ac_cv_prog_CPP |
---|
| 4386 | else |
---|
| 4387 | ac_cv_prog_CPP=$CPP |
---|
| 4388 | fi |
---|
| 4389 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 4390 | echo "${ECHO_T}$CPP" >&6; } |
---|
| 4391 | ac_preproc_ok=false |
---|
| 4392 | for ac_c_preproc_warn_flag in '' yes |
---|
| 4393 | do |
---|
| 4394 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 4395 | # with a fresh cross-compiler works. |
---|
| 4396 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4397 | # <limits.h> exists even on freestanding compilers. |
---|
| 4398 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 4399 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 4400 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4401 | /* confdefs.h. */ |
---|
| 4402 | _ACEOF |
---|
| 4403 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4404 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4405 | /* end confdefs.h. */ |
---|
| 4406 | #ifdef __STDC__ |
---|
| 4407 | # include <limits.h> |
---|
| 4408 | #else |
---|
| 4409 | # include <assert.h> |
---|
| 4410 | #endif |
---|
| 4411 | Syntax error |
---|
| 4412 | _ACEOF |
---|
| 4413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4414 | case "(($ac_try" in |
---|
| 4415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4416 | *) ac_try_echo=$ac_try;; |
---|
| 4417 | esac |
---|
| 4418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4420 | ac_status=$? |
---|
| 4421 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4422 | rm -f conftest.er1 |
---|
| 4423 | cat conftest.err >&5 |
---|
| 4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4425 | (exit $ac_status); } >/dev/null; then |
---|
| 4426 | if test -s conftest.err; then |
---|
| 4427 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4429 | else |
---|
| 4430 | ac_cpp_err= |
---|
| 4431 | fi |
---|
| 4432 | else |
---|
| 4433 | ac_cpp_err=yes |
---|
| 4434 | fi |
---|
| 4435 | if test -z "$ac_cpp_err"; then |
---|
| 4436 | : |
---|
| 4437 | else |
---|
| 4438 | echo "$as_me: failed program was:" >&5 |
---|
| 4439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4440 | |
---|
| 4441 | # Broken: fails on valid input. |
---|
| 4442 | continue |
---|
| 4443 | fi |
---|
| 4444 | |
---|
| 4445 | rm -f conftest.err conftest.$ac_ext |
---|
| 4446 | |
---|
| 4447 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 4448 | # can be detected and how. |
---|
| 4449 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4450 | /* confdefs.h. */ |
---|
| 4451 | _ACEOF |
---|
| 4452 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4454 | /* end confdefs.h. */ |
---|
| 4455 | #include <ac_nonexistent.h> |
---|
| 4456 | _ACEOF |
---|
| 4457 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4458 | case "(($ac_try" in |
---|
| 4459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4460 | *) ac_try_echo=$ac_try;; |
---|
| 4461 | esac |
---|
| 4462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4463 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
| 4464 | ac_status=$? |
---|
| 4465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4466 | rm -f conftest.er1 |
---|
| 4467 | cat conftest.err >&5 |
---|
| 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4469 | (exit $ac_status); } >/dev/null; then |
---|
| 4470 | if test -s conftest.err; then |
---|
| 4471 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4473 | else |
---|
| 4474 | ac_cpp_err= |
---|
| 4475 | fi |
---|
| 4476 | else |
---|
| 4477 | ac_cpp_err=yes |
---|
| 4478 | fi |
---|
| 4479 | if test -z "$ac_cpp_err"; then |
---|
| 4480 | # Broken: success on invalid input. |
---|
| 4481 | continue |
---|
| 4482 | else |
---|
| 4483 | echo "$as_me: failed program was:" >&5 |
---|
| 4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4485 | |
---|
| 4486 | # Passes both tests. |
---|
| 4487 | ac_preproc_ok=: |
---|
| 4488 | break |
---|
| 4489 | fi |
---|
| 4490 | |
---|
| 4491 | rm -f conftest.err conftest.$ac_ext |
---|
| 4492 | |
---|
| 4493 | done |
---|
| 4494 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 4495 | rm -f conftest.err conftest.$ac_ext |
---|
| 4496 | if $ac_preproc_ok; then |
---|
| 4497 | : |
---|
| 4498 | else |
---|
| 4499 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 4500 | See \`config.log' for more details." >&5 |
---|
| 4501 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 4502 | See \`config.log' for more details." >&2;} |
---|
| 4503 | { (exit 1); exit 1; }; } |
---|
| 4504 | fi |
---|
| 4505 | |
---|
| 4506 | ac_ext=c |
---|
| 4507 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4511 | |
---|
| 4512 | |
---|
| 4513 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
| 4514 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
| 4515 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
| 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4517 | else |
---|
| 4518 | # Extract the first word of "grep ggrep" to use in msg output |
---|
| 4519 | if test -z "$GREP"; then |
---|
| 4520 | set dummy grep ggrep; ac_prog_name=$2 |
---|
| 4521 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4523 | else |
---|
| 4524 | ac_path_GREP_found=false |
---|
| 4525 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4527 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 4528 | do |
---|
| 4529 | IFS=$as_save_IFS |
---|
| 4530 | test -z "$as_dir" && as_dir=. |
---|
| 4531 | for ac_prog in grep ggrep; do |
---|
| 4532 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4533 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 4534 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
---|
| 4535 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
| 4536 | # Check for GNU $ac_path_GREP |
---|
| 4537 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 4538 | *GNU*) |
---|
| 4539 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 4540 | *) |
---|
| 4541 | ac_count=0 |
---|
| 4542 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
| 4543 | while : |
---|
| 4544 | do |
---|
| 4545 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4546 | mv "conftest.tmp" "conftest.in" |
---|
| 4547 | cp "conftest.in" "conftest.nl" |
---|
| 4548 | echo 'GREP' >> "conftest.nl" |
---|
| 4549 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4550 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 4551 | ac_count=`expr $ac_count + 1` |
---|
| 4552 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 4553 | # Best one so far, save it but keep looking for a better one |
---|
| 4554 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 4555 | ac_path_GREP_max=$ac_count |
---|
| 4556 | fi |
---|
| 4557 | # 10*(2^10) chars as input seems more than enough |
---|
| 4558 | test $ac_count -gt 10 && break |
---|
| 4559 | done |
---|
| 4560 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4561 | esac |
---|
| 4562 | |
---|
| 4563 | |
---|
| 4564 | $ac_path_GREP_found && break 3 |
---|
| 4565 | done |
---|
| 4566 | done |
---|
| 4567 | |
---|
| 4568 | done |
---|
| 4569 | IFS=$as_save_IFS |
---|
| 4570 | |
---|
| 4571 | |
---|
| 4572 | fi |
---|
| 4573 | |
---|
| 4574 | GREP="$ac_cv_path_GREP" |
---|
| 4575 | if test -z "$GREP"; then |
---|
| 4576 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 4577 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 4578 | { (exit 1); exit 1; }; } |
---|
| 4579 | fi |
---|
| 4580 | |
---|
| 4581 | else |
---|
| 4582 | ac_cv_path_GREP=$GREP |
---|
| 4583 | fi |
---|
| 4584 | |
---|
| 4585 | |
---|
| 4586 | fi |
---|
| 4587 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
| 4588 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
| 4589 | GREP="$ac_cv_path_GREP" |
---|
| 4590 | |
---|
| 4591 | |
---|
| 4592 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 4593 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
| 4594 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4596 | else |
---|
| 4597 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 4598 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 4599 | else |
---|
| 4600 | # Extract the first word of "egrep" to use in msg output |
---|
| 4601 | if test -z "$EGREP"; then |
---|
| 4602 | set dummy egrep; ac_prog_name=$2 |
---|
| 4603 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4605 | else |
---|
| 4606 | ac_path_EGREP_found=false |
---|
| 4607 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4609 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 4610 | do |
---|
| 4611 | IFS=$as_save_IFS |
---|
| 4612 | test -z "$as_dir" && as_dir=. |
---|
| 4613 | for ac_prog in egrep; do |
---|
| 4614 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4615 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 4616 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
---|
| 4617 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
| 4618 | # Check for GNU $ac_path_EGREP |
---|
| 4619 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 4620 | *GNU*) |
---|
| 4621 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 4622 | *) |
---|
| 4623 | ac_count=0 |
---|
| 4624 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
| 4625 | while : |
---|
| 4626 | do |
---|
| 4627 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4628 | mv "conftest.tmp" "conftest.in" |
---|
| 4629 | cp "conftest.in" "conftest.nl" |
---|
| 4630 | echo 'EGREP' >> "conftest.nl" |
---|
| 4631 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4632 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 4633 | ac_count=`expr $ac_count + 1` |
---|
| 4634 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 4635 | # Best one so far, save it but keep looking for a better one |
---|
| 4636 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 4637 | ac_path_EGREP_max=$ac_count |
---|
| 4638 | fi |
---|
| 4639 | # 10*(2^10) chars as input seems more than enough |
---|
| 4640 | test $ac_count -gt 10 && break |
---|
| 4641 | done |
---|
| 4642 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4643 | esac |
---|
| 4644 | |
---|
| 4645 | |
---|
| 4646 | $ac_path_EGREP_found && break 3 |
---|
| 4647 | done |
---|
| 4648 | done |
---|
| 4649 | |
---|
| 4650 | done |
---|
| 4651 | IFS=$as_save_IFS |
---|
| 4652 | |
---|
| 4653 | |
---|
| 4654 | fi |
---|
| 4655 | |
---|
| 4656 | EGREP="$ac_cv_path_EGREP" |
---|
| 4657 | if test -z "$EGREP"; then |
---|
| 4658 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 4659 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 4660 | { (exit 1); exit 1; }; } |
---|
| 4661 | fi |
---|
| 4662 | |
---|
| 4663 | else |
---|
| 4664 | ac_cv_path_EGREP=$EGREP |
---|
| 4665 | fi |
---|
| 4666 | |
---|
| 4667 | |
---|
| 4668 | fi |
---|
| 4669 | fi |
---|
| 4670 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
| 4671 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
| 4672 | EGREP="$ac_cv_path_EGREP" |
---|
| 4673 | |
---|
| 4674 | |
---|
| 4675 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4676 | /* confdefs.h. */ |
---|
| 4677 | _ACEOF |
---|
| 4678 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4680 | /* end confdefs.h. */ |
---|
| 4681 | #include </usr/include/sys/socket.h> |
---|
| 4682 | |
---|
| 4683 | _ACEOF |
---|
| 4684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4685 | $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then |
---|
| 4686 | cat >>confdefs.h <<\_ACEOF |
---|
| 4687 | #define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN |
---|
| 4688 | _ACEOF |
---|
| 4689 | |
---|
| 4690 | fi |
---|
| 4691 | rm -f conftest* |
---|
| 4692 | |
---|
| 4693 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4694 | /* confdefs.h. */ |
---|
| 4695 | _ACEOF |
---|
| 4696 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4697 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4698 | /* end confdefs.h. */ |
---|
| 4699 | #include <socket.h> |
---|
| 4700 | |
---|
| 4701 | _ACEOF |
---|
| 4702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4703 | $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then |
---|
| 4704 | cat >>confdefs.h <<\_ACEOF |
---|
| 4705 | #define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN |
---|
| 4706 | _ACEOF |
---|
| 4707 | |
---|
| 4708 | fi |
---|
| 4709 | rm -f conftest* |
---|
| 4710 | |
---|
| 4711 | |
---|
| 4712 | { echo "$as_me:$LINENO: checking whether to use CRC32" >&5 |
---|
| 4713 | echo $ECHO_N "checking whether to use CRC32... $ECHO_C" >&6; } |
---|
| 4714 | # Check whether --enable-crc32 was given. |
---|
| 4715 | if test "${enable_crc32+set}" = set; then |
---|
| 4716 | enableval=$enable_crc32; if test "$enableval" = yes; then |
---|
| 4717 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 4718 | echo "${ECHO_T}yes" >&6; } |
---|
| 4719 | cat >>confdefs.h <<\_ACEOF |
---|
| 4720 | #define USE_CRC32 1 |
---|
| 4721 | _ACEOF |
---|
| 4722 | |
---|
| 4723 | else |
---|
| 4724 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4725 | echo "${ECHO_T}no" >&6; } |
---|
| 4726 | fi |
---|
| 4727 | else |
---|
| 4728 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4729 | echo "${ECHO_T}no" >&6; } |
---|
| 4730 | fi |
---|
| 4731 | |
---|
| 4732 | |
---|
| 4733 | ac_config_files="$ac_config_files Makefile include/Makefile include/enet/Makefile" |
---|
| 4734 | |
---|
| 4735 | cat >confcache <<\_ACEOF |
---|
| 4736 | # This file is a shell script that caches the results of configure |
---|
| 4737 | # tests run on this system so they can be shared between configure |
---|
| 4738 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 4739 | # It is not useful on other systems. If it contains results you don't |
---|
| 4740 | # want to keep, you may remove or edit it. |
---|
| 4741 | # |
---|
| 4742 | # config.status only pays attention to the cache file if you give it |
---|
| 4743 | # the --recheck option to rerun configure. |
---|
| 4744 | # |
---|
| 4745 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 4746 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 4747 | # following values. |
---|
| 4748 | |
---|
| 4749 | _ACEOF |
---|
| 4750 | |
---|
| 4751 | # The following way of writing the cache mishandles newlines in values, |
---|
| 4752 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 4753 | # So, we kill variables containing newlines. |
---|
| 4754 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 4755 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 4756 | ( |
---|
| 4757 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 4758 | eval ac_val=\$$ac_var |
---|
| 4759 | case $ac_val in #( |
---|
| 4760 | *${as_nl}*) |
---|
| 4761 | case $ac_var in #( |
---|
| 4762 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
| 4763 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
| 4764 | esac |
---|
| 4765 | case $ac_var in #( |
---|
| 4766 | _ | IFS | as_nl) ;; #( |
---|
| 4767 | *) $as_unset $ac_var ;; |
---|
| 4768 | esac ;; |
---|
| 4769 | esac |
---|
| 4770 | done |
---|
| 4771 | |
---|
| 4772 | (set) 2>&1 | |
---|
| 4773 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 4774 | *${as_nl}ac_space=\ *) |
---|
| 4775 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 4776 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 4777 | sed -n \ |
---|
| 4778 | "s/'/'\\\\''/g; |
---|
| 4779 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 4780 | ;; #( |
---|
| 4781 | *) |
---|
| 4782 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 4783 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 4784 | ;; |
---|
| 4785 | esac | |
---|
| 4786 | sort |
---|
| 4787 | ) | |
---|
| 4788 | sed ' |
---|
| 4789 | /^ac_cv_env_/b end |
---|
| 4790 | t clear |
---|
| 4791 | :clear |
---|
| 4792 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 4793 | t end |
---|
| 4794 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 4795 | :end' >>confcache |
---|
| 4796 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 4797 | if test -w "$cache_file"; then |
---|
| 4798 | test "x$cache_file" != "x/dev/null" && |
---|
| 4799 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
| 4800 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
| 4801 | cat confcache >$cache_file |
---|
| 4802 | else |
---|
| 4803 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
| 4804 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
| 4805 | fi |
---|
| 4806 | fi |
---|
| 4807 | rm -f confcache |
---|
| 4808 | |
---|
| 4809 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 4810 | # Let make expand exec_prefix. |
---|
| 4811 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 4812 | |
---|
| 4813 | # Transform confdefs.h into DEFS. |
---|
| 4814 | # Protect against shell expansion while executing Makefile rules. |
---|
| 4815 | # Protect against Makefile macro expansion. |
---|
| 4816 | # |
---|
| 4817 | # If the first sed substitution is executed (which looks for macros that |
---|
| 4818 | # take arguments), then branch to the quote section. Otherwise, |
---|
| 4819 | # look for a macro that doesn't take arguments. |
---|
| 4820 | ac_script=' |
---|
| 4821 | t clear |
---|
| 4822 | :clear |
---|
| 4823 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
| 4824 | t quote |
---|
| 4825 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
| 4826 | t quote |
---|
| 4827 | b any |
---|
| 4828 | :quote |
---|
| 4829 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
| 4830 | s/\[/\\&/g |
---|
| 4831 | s/\]/\\&/g |
---|
| 4832 | s/\$/$$/g |
---|
| 4833 | H |
---|
| 4834 | :any |
---|
| 4835 | ${ |
---|
| 4836 | g |
---|
| 4837 | s/^\n// |
---|
| 4838 | s/\n/ /g |
---|
| 4839 | p |
---|
| 4840 | } |
---|
| 4841 | ' |
---|
| 4842 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
| 4843 | |
---|
| 4844 | |
---|
| 4845 | ac_libobjs= |
---|
| 4846 | ac_ltlibobjs= |
---|
| 4847 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 4848 | # 1. Remove the extension, and $U if already installed. |
---|
| 4849 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 4850 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
| 4851 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 4852 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 4853 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 4854 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
| 4855 | done |
---|
| 4856 | LIBOBJS=$ac_libobjs |
---|
| 4857 | |
---|
| 4858 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 4859 | |
---|
| 4860 | |
---|
| 4861 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 4862 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 4863 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 4864 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 4865 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 4866 | { (exit 1); exit 1; }; } |
---|
| 4867 | fi |
---|
| 4868 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 4869 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 4870 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 4871 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 4872 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 4873 | { (exit 1); exit 1; }; } |
---|
| 4874 | fi |
---|
| 4875 | |
---|
| 4876 | : ${CONFIG_STATUS=./config.status} |
---|
| 4877 | ac_clean_files_save=$ac_clean_files |
---|
| 4878 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 4879 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 4880 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 4881 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 4882 | #! $SHELL |
---|
| 4883 | # Generated by $as_me. |
---|
| 4884 | # Run this file to recreate the current configuration. |
---|
| 4885 | # Compiler output produced by configure, useful for debugging |
---|
| 4886 | # configure, is in config.log if it exists. |
---|
| 4887 | |
---|
| 4888 | debug=false |
---|
| 4889 | ac_cs_recheck=false |
---|
| 4890 | ac_cs_silent=false |
---|
| 4891 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 4892 | _ACEOF |
---|
| 4893 | |
---|
| 4894 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4895 | ## --------------------- ## |
---|
| 4896 | ## M4sh Initialization. ## |
---|
| 4897 | ## --------------------- ## |
---|
| 4898 | |
---|
| 4899 | # Be Bourne compatible |
---|
| 4900 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 4901 | emulate sh |
---|
| 4902 | NULLCMD=: |
---|
| 4903 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 4904 | # is contrary to our usage. Disable this feature. |
---|
| 4905 | alias -g '${1+"$@"}'='"$@"' |
---|
| 4906 | setopt NO_GLOB_SUBST |
---|
| 4907 | else |
---|
| 4908 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
---|
| 4909 | fi |
---|
| 4910 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
---|
| 4911 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 4912 | |
---|
| 4913 | |
---|
| 4914 | # PATH needs CR |
---|
| 4915 | # Avoid depending upon Character Ranges. |
---|
| 4916 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 4917 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 4918 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 4919 | as_cr_digits='0123456789' |
---|
| 4920 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 4921 | |
---|
| 4922 | # The user is always right. |
---|
| 4923 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 4924 | echo "#! /bin/sh" >conf$$.sh |
---|
| 4925 | echo "exit 0" >>conf$$.sh |
---|
| 4926 | chmod +x conf$$.sh |
---|
| 4927 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 4928 | PATH_SEPARATOR=';' |
---|
| 4929 | else |
---|
| 4930 | PATH_SEPARATOR=: |
---|
| 4931 | fi |
---|
| 4932 | rm -f conf$$.sh |
---|
| 4933 | fi |
---|
| 4934 | |
---|
| 4935 | # Support unset when possible. |
---|
| 4936 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 4937 | as_unset=unset |
---|
| 4938 | else |
---|
| 4939 | as_unset=false |
---|
| 4940 | fi |
---|
| 4941 | |
---|
| 4942 | |
---|
| 4943 | # IFS |
---|
| 4944 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 4945 | # there to prevent editors from complaining about space-tab. |
---|
| 4946 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 4947 | # splitting by setting IFS to empty value.) |
---|
| 4948 | as_nl=' |
---|
| 4949 | ' |
---|
| 4950 | IFS=" "" $as_nl" |
---|
| 4951 | |
---|
| 4952 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 4953 | case $0 in |
---|
| 4954 | *[\\/]* ) as_myself=$0 ;; |
---|
| 4955 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4956 | for as_dir in $PATH |
---|
| 4957 | do |
---|
| 4958 | IFS=$as_save_IFS |
---|
| 4959 | test -z "$as_dir" && as_dir=. |
---|
| 4960 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 4961 | done |
---|
| 4962 | IFS=$as_save_IFS |
---|
| 4963 | |
---|
| 4964 | ;; |
---|
| 4965 | esac |
---|
| 4966 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 4967 | # in which case we are not to be found in the path. |
---|
| 4968 | if test "x$as_myself" = x; then |
---|
| 4969 | as_myself=$0 |
---|
| 4970 | fi |
---|
| 4971 | if test ! -f "$as_myself"; then |
---|
| 4972 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 4973 | { (exit 1); exit 1; } |
---|
| 4974 | fi |
---|
| 4975 | |
---|
| 4976 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 4977 | for as_var in ENV MAIL MAILPATH |
---|
| 4978 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 4979 | done |
---|
| 4980 | PS1='$ ' |
---|
| 4981 | PS2='> ' |
---|
| 4982 | PS4='+ ' |
---|
| 4983 | |
---|
| 4984 | # NLS nuisances. |
---|
| 4985 | for as_var in \ |
---|
| 4986 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 4987 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 4988 | LC_TELEPHONE LC_TIME |
---|
| 4989 | do |
---|
| 4990 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 4991 | eval $as_var=C; export $as_var |
---|
| 4992 | else |
---|
| 4993 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 4994 | fi |
---|
| 4995 | done |
---|
| 4996 | |
---|
| 4997 | # Required to use basename. |
---|
| 4998 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 4999 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 5000 | as_expr=expr |
---|
| 5001 | else |
---|
| 5002 | as_expr=false |
---|
| 5003 | fi |
---|
| 5004 | |
---|
| 5005 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 5006 | as_basename=basename |
---|
| 5007 | else |
---|
| 5008 | as_basename=false |
---|
| 5009 | fi |
---|
| 5010 | |
---|
| 5011 | |
---|
| 5012 | # Name of the executable. |
---|
| 5013 | as_me=`$as_basename -- "$0" || |
---|
| 5014 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5015 | X"$0" : 'X\(//\)$' \| \ |
---|
| 5016 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5017 | echo X/"$0" | |
---|
| 5018 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 5019 | s//\1/ |
---|
| 5020 | q |
---|
| 5021 | } |
---|
| 5022 | /^X\/\(\/\/\)$/{ |
---|
| 5023 | s//\1/ |
---|
| 5024 | q |
---|
| 5025 | } |
---|
| 5026 | /^X\/\(\/\).*/{ |
---|
| 5027 | s//\1/ |
---|
| 5028 | q |
---|
| 5029 | } |
---|
| 5030 | s/.*/./; q'` |
---|
| 5031 | |
---|
| 5032 | # CDPATH. |
---|
| 5033 | $as_unset CDPATH |
---|
| 5034 | |
---|
| 5035 | |
---|
| 5036 | |
---|
| 5037 | as_lineno_1=$LINENO |
---|
| 5038 | as_lineno_2=$LINENO |
---|
| 5039 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 5040 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
| 5041 | |
---|
| 5042 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 5043 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 5044 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 5045 | # does the real work. The second script uses 'N' to pair each |
---|
| 5046 | # line-number line with the line containing $LINENO, and appends |
---|
| 5047 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 5048 | # case at line end. |
---|
| 5049 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 5050 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 5051 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 5052 | sed -n ' |
---|
| 5053 | p |
---|
| 5054 | /[$]LINENO/= |
---|
| 5055 | ' <$as_myself | |
---|
| 5056 | sed ' |
---|
| 5057 | s/[$]LINENO.*/&-/ |
---|
| 5058 | t lineno |
---|
| 5059 | b |
---|
| 5060 | :lineno |
---|
| 5061 | N |
---|
| 5062 | :loop |
---|
| 5063 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 5064 | t loop |
---|
| 5065 | s/-\n.*// |
---|
| 5066 | ' >$as_me.lineno && |
---|
| 5067 | chmod +x "$as_me.lineno" || |
---|
| 5068 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 5069 | { (exit 1); exit 1; }; } |
---|
| 5070 | |
---|
| 5071 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 5072 | # (the dirname of $[0] is not the place where we might find the |
---|
| 5073 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 5074 | . "./$as_me.lineno" |
---|
| 5075 | # Exit status is that of the last command. |
---|
| 5076 | exit |
---|
| 5077 | } |
---|
| 5078 | |
---|
| 5079 | |
---|
| 5080 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 5081 | as_dirname=dirname |
---|
| 5082 | else |
---|
| 5083 | as_dirname=false |
---|
| 5084 | fi |
---|
| 5085 | |
---|
| 5086 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 5087 | case `echo -n x` in |
---|
| 5088 | -n*) |
---|
| 5089 | case `echo 'x\c'` in |
---|
| 5090 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 5091 | *) ECHO_C='\c';; |
---|
| 5092 | esac;; |
---|
| 5093 | *) |
---|
| 5094 | ECHO_N='-n';; |
---|
| 5095 | esac |
---|
| 5096 | |
---|
| 5097 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 5098 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 5099 | as_expr=expr |
---|
| 5100 | else |
---|
| 5101 | as_expr=false |
---|
| 5102 | fi |
---|
| 5103 | |
---|
| 5104 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5105 | if test -d conf$$.dir; then |
---|
| 5106 | rm -f conf$$.dir/conf$$.file |
---|
| 5107 | else |
---|
| 5108 | rm -f conf$$.dir |
---|
| 5109 | mkdir conf$$.dir |
---|
| 5110 | fi |
---|
| 5111 | echo >conf$$.file |
---|
| 5112 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 5113 | as_ln_s='ln -s' |
---|
| 5114 | # ... but there are two gotchas: |
---|
| 5115 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 5116 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 5117 | # In both cases, we have to default to `cp -p'. |
---|
| 5118 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 5119 | as_ln_s='cp -p' |
---|
| 5120 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 5121 | as_ln_s=ln |
---|
| 5122 | else |
---|
| 5123 | as_ln_s='cp -p' |
---|
| 5124 | fi |
---|
| 5125 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 5126 | rmdir conf$$.dir 2>/dev/null |
---|
| 5127 | |
---|
| 5128 | if mkdir -p . 2>/dev/null; then |
---|
| 5129 | as_mkdir_p=: |
---|
| 5130 | else |
---|
| 5131 | test -d ./-p && rmdir ./-p |
---|
| 5132 | as_mkdir_p=false |
---|
| 5133 | fi |
---|
| 5134 | |
---|
| 5135 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
---|
| 5136 | # systems may use methods other than mode bits to determine executability. |
---|
| 5137 | cat >conf$$.file <<_ASEOF |
---|
| 5138 | #! /bin/sh |
---|
| 5139 | exit 0 |
---|
| 5140 | _ASEOF |
---|
| 5141 | chmod +x conf$$.file |
---|
| 5142 | if test -x conf$$.file >/dev/null 2>&1; then |
---|
| 5143 | as_executable_p="test -x" |
---|
| 5144 | else |
---|
| 5145 | as_executable_p=: |
---|
| 5146 | fi |
---|
| 5147 | rm -f conf$$.file |
---|
| 5148 | |
---|
| 5149 | # Sed expression to map a string onto a valid CPP name. |
---|
| 5150 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5151 | |
---|
| 5152 | # Sed expression to map a string onto a valid variable name. |
---|
| 5153 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5154 | |
---|
| 5155 | |
---|
| 5156 | exec 6>&1 |
---|
| 5157 | |
---|
| 5158 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
| 5159 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 5160 | # values after options handling. |
---|
| 5161 | ac_log=" |
---|
| 5162 | This file was extended by libenet $as_me 6-6-2007, which was |
---|
| 5163 | generated by GNU Autoconf 2.60a. Invocation command line was |
---|
| 5164 | |
---|
| 5165 | CONFIG_FILES = $CONFIG_FILES |
---|
| 5166 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 5167 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 5168 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 5169 | $ $0 $@ |
---|
| 5170 | |
---|
| 5171 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 5172 | " |
---|
| 5173 | |
---|
| 5174 | _ACEOF |
---|
| 5175 | |
---|
| 5176 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5177 | # Files that config.status was made for. |
---|
| 5178 | config_files="$ac_config_files" |
---|
| 5179 | config_commands="$ac_config_commands" |
---|
| 5180 | |
---|
| 5181 | _ACEOF |
---|
| 5182 | |
---|
| 5183 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5184 | ac_cs_usage="\ |
---|
| 5185 | \`$as_me' instantiates files from templates according to the |
---|
| 5186 | current configuration. |
---|
| 5187 | |
---|
| 5188 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 5189 | |
---|
| 5190 | -h, --help print this help, then exit |
---|
| 5191 | -V, --version print version number and configuration settings, then exit |
---|
| 5192 | -q, --quiet do not print progress messages |
---|
| 5193 | -d, --debug don't remove temporary files |
---|
| 5194 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 5195 | --file=FILE[:TEMPLATE] |
---|
| 5196 | instantiate the configuration file FILE |
---|
| 5197 | |
---|
| 5198 | Configuration files: |
---|
| 5199 | $config_files |
---|
| 5200 | |
---|
| 5201 | Configuration commands: |
---|
| 5202 | $config_commands |
---|
| 5203 | |
---|
| 5204 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 5205 | |
---|
| 5206 | _ACEOF |
---|
| 5207 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5208 | ac_cs_version="\\ |
---|
| 5209 | libenet config.status 6-6-2007 |
---|
| 5210 | configured by $0, generated by GNU Autoconf 2.60a, |
---|
| 5211 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 5212 | |
---|
| 5213 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
| 5214 | This config.status script is free software; the Free Software Foundation |
---|
| 5215 | gives unlimited permission to copy, distribute and modify it." |
---|
| 5216 | |
---|
| 5217 | ac_pwd='$ac_pwd' |
---|
| 5218 | srcdir='$srcdir' |
---|
| 5219 | INSTALL='$INSTALL' |
---|
| 5220 | _ACEOF |
---|
| 5221 | |
---|
| 5222 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5223 | # If no file are specified by the user, then we need to provide default |
---|
| 5224 | # value. By we need to know if files were specified by the user. |
---|
| 5225 | ac_need_defaults=: |
---|
| 5226 | while test $# != 0 |
---|
| 5227 | do |
---|
| 5228 | case $1 in |
---|
| 5229 | --*=*) |
---|
| 5230 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 5231 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
| 5232 | ac_shift=: |
---|
| 5233 | ;; |
---|
| 5234 | *) |
---|
| 5235 | ac_option=$1 |
---|
| 5236 | ac_optarg=$2 |
---|
| 5237 | ac_shift=shift |
---|
| 5238 | ;; |
---|
| 5239 | esac |
---|
| 5240 | |
---|
| 5241 | case $ac_option in |
---|
| 5242 | # Handling of the options. |
---|
| 5243 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 5244 | ac_cs_recheck=: ;; |
---|
| 5245 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 5246 | echo "$ac_cs_version"; exit ;; |
---|
| 5247 | --debug | --debu | --deb | --de | --d | -d ) |
---|
| 5248 | debug=: ;; |
---|
| 5249 | --file | --fil | --fi | --f ) |
---|
| 5250 | $ac_shift |
---|
| 5251 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 5252 | ac_need_defaults=false;; |
---|
| 5253 | --he | --h | --help | --hel | -h ) |
---|
| 5254 | echo "$ac_cs_usage"; exit ;; |
---|
| 5255 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 5256 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 5257 | ac_cs_silent=: ;; |
---|
| 5258 | |
---|
| 5259 | # This is an error. |
---|
| 5260 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
| 5261 | Try \`$0 --help' for more information." >&2 |
---|
| 5262 | { (exit 1); exit 1; }; } ;; |
---|
| 5263 | |
---|
| 5264 | *) ac_config_targets="$ac_config_targets $1" |
---|
| 5265 | ac_need_defaults=false ;; |
---|
| 5266 | |
---|
| 5267 | esac |
---|
| 5268 | shift |
---|
| 5269 | done |
---|
| 5270 | |
---|
| 5271 | ac_configure_extra_args= |
---|
| 5272 | |
---|
| 5273 | if $ac_cs_silent; then |
---|
| 5274 | exec 6>/dev/null |
---|
| 5275 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 5276 | fi |
---|
| 5277 | |
---|
| 5278 | _ACEOF |
---|
| 5279 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5280 | if \$ac_cs_recheck; then |
---|
| 5281 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 5282 | CONFIG_SHELL=$SHELL |
---|
| 5283 | export CONFIG_SHELL |
---|
| 5284 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 5285 | fi |
---|
| 5286 | |
---|
| 5287 | _ACEOF |
---|
| 5288 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5289 | exec 5>>config.log |
---|
| 5290 | { |
---|
| 5291 | echo |
---|
| 5292 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 5293 | ## Running $as_me. ## |
---|
| 5294 | _ASBOX |
---|
| 5295 | echo "$ac_log" |
---|
| 5296 | } >&5 |
---|
| 5297 | |
---|
| 5298 | _ACEOF |
---|
| 5299 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5300 | # |
---|
| 5301 | # INIT-COMMANDS |
---|
| 5302 | # |
---|
| 5303 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 5304 | |
---|
| 5305 | _ACEOF |
---|
| 5306 | |
---|
| 5307 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5308 | |
---|
| 5309 | # Handling of arguments. |
---|
| 5310 | for ac_config_target in $ac_config_targets |
---|
| 5311 | do |
---|
| 5312 | case $ac_config_target in |
---|
| 5313 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 5314 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 5315 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
---|
| 5316 | "include/enet/Makefile") CONFIG_FILES="$CONFIG_FILES include/enet/Makefile" ;; |
---|
| 5317 | |
---|
| 5318 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 5319 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 5320 | { (exit 1); exit 1; }; };; |
---|
| 5321 | esac |
---|
| 5322 | done |
---|
| 5323 | |
---|
| 5324 | |
---|
| 5325 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 5326 | # then the envvar interface is used. Set only those that are not. |
---|
| 5327 | # We use the long form for the default assignment because of an extremely |
---|
| 5328 | # bizarre bug on SunOS 4.1.3. |
---|
| 5329 | if $ac_need_defaults; then |
---|
| 5330 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 5331 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 5332 | fi |
---|
| 5333 | |
---|
| 5334 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 5335 | # simply because there is no reason against having it here, and in addition, |
---|
| 5336 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 5337 | # Hook for its removal unless debugging. |
---|
| 5338 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 5339 | # after its creation but before its name has been assigned to `$tmp'. |
---|
| 5340 | $debug || |
---|
| 5341 | { |
---|
| 5342 | tmp= |
---|
| 5343 | trap 'exit_status=$? |
---|
| 5344 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
| 5345 | ' 0 |
---|
| 5346 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 5347 | } |
---|
| 5348 | # Create a (secure) tmp directory for tmp files. |
---|
| 5349 | |
---|
| 5350 | { |
---|
| 5351 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
| 5352 | test -n "$tmp" && test -d "$tmp" |
---|
| 5353 | } || |
---|
| 5354 | { |
---|
| 5355 | tmp=./conf$$-$RANDOM |
---|
| 5356 | (umask 077 && mkdir "$tmp") |
---|
| 5357 | } || |
---|
| 5358 | { |
---|
| 5359 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 5360 | { (exit 1); exit 1; } |
---|
| 5361 | } |
---|
| 5362 | |
---|
| 5363 | # |
---|
| 5364 | # Set up the sed scripts for CONFIG_FILES section. |
---|
| 5365 | # |
---|
| 5366 | |
---|
| 5367 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 5368 | # This happens for instance when ./config.status config.h |
---|
| 5369 | if test -n "$CONFIG_FILES"; then |
---|
| 5370 | |
---|
| 5371 | _ACEOF |
---|
| 5372 | |
---|
| 5373 | |
---|
| 5374 | |
---|
| 5375 | ac_delim='%!_!# ' |
---|
| 5376 | for ac_last_try in false false false false false :; do |
---|
| 5377 | cat >conf$$subs.sed <<_ACEOF |
---|
| 5378 | SHELL!$SHELL$ac_delim |
---|
| 5379 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
| 5380 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
| 5381 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
| 5382 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
| 5383 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
| 5384 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
| 5385 | exec_prefix!$exec_prefix$ac_delim |
---|
| 5386 | prefix!$prefix$ac_delim |
---|
| 5387 | program_transform_name!$program_transform_name$ac_delim |
---|
| 5388 | bindir!$bindir$ac_delim |
---|
| 5389 | sbindir!$sbindir$ac_delim |
---|
| 5390 | libexecdir!$libexecdir$ac_delim |
---|
| 5391 | datarootdir!$datarootdir$ac_delim |
---|
| 5392 | datadir!$datadir$ac_delim |
---|
| 5393 | sysconfdir!$sysconfdir$ac_delim |
---|
| 5394 | sharedstatedir!$sharedstatedir$ac_delim |
---|
| 5395 | localstatedir!$localstatedir$ac_delim |
---|
| 5396 | includedir!$includedir$ac_delim |
---|
| 5397 | oldincludedir!$oldincludedir$ac_delim |
---|
| 5398 | docdir!$docdir$ac_delim |
---|
| 5399 | infodir!$infodir$ac_delim |
---|
| 5400 | htmldir!$htmldir$ac_delim |
---|
| 5401 | dvidir!$dvidir$ac_delim |
---|
| 5402 | pdfdir!$pdfdir$ac_delim |
---|
| 5403 | psdir!$psdir$ac_delim |
---|
| 5404 | libdir!$libdir$ac_delim |
---|
| 5405 | localedir!$localedir$ac_delim |
---|
| 5406 | mandir!$mandir$ac_delim |
---|
| 5407 | DEFS!$DEFS$ac_delim |
---|
| 5408 | ECHO_C!$ECHO_C$ac_delim |
---|
| 5409 | ECHO_N!$ECHO_N$ac_delim |
---|
| 5410 | ECHO_T!$ECHO_T$ac_delim |
---|
| 5411 | LIBS!$LIBS$ac_delim |
---|
| 5412 | build_alias!$build_alias$ac_delim |
---|
| 5413 | host_alias!$host_alias$ac_delim |
---|
| 5414 | target_alias!$target_alias$ac_delim |
---|
| 5415 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
---|
| 5416 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
---|
| 5417 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
---|
| 5418 | CYGPATH_W!$CYGPATH_W$ac_delim |
---|
| 5419 | PACKAGE!$PACKAGE$ac_delim |
---|
| 5420 | VERSION!$VERSION$ac_delim |
---|
| 5421 | ACLOCAL!$ACLOCAL$ac_delim |
---|
| 5422 | AUTOCONF!$AUTOCONF$ac_delim |
---|
| 5423 | AUTOMAKE!$AUTOMAKE$ac_delim |
---|
| 5424 | AUTOHEADER!$AUTOHEADER$ac_delim |
---|
| 5425 | MAKEINFO!$MAKEINFO$ac_delim |
---|
| 5426 | install_sh!$install_sh$ac_delim |
---|
| 5427 | STRIP!$STRIP$ac_delim |
---|
| 5428 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
---|
| 5429 | mkdir_p!$mkdir_p$ac_delim |
---|
| 5430 | AWK!$AWK$ac_delim |
---|
| 5431 | SET_MAKE!$SET_MAKE$ac_delim |
---|
| 5432 | am__leading_dot!$am__leading_dot$ac_delim |
---|
| 5433 | AMTAR!$AMTAR$ac_delim |
---|
| 5434 | am__tar!$am__tar$ac_delim |
---|
| 5435 | am__untar!$am__untar$ac_delim |
---|
| 5436 | CC!$CC$ac_delim |
---|
| 5437 | CFLAGS!$CFLAGS$ac_delim |
---|
| 5438 | LDFLAGS!$LDFLAGS$ac_delim |
---|
| 5439 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
| 5440 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
| 5441 | EXEEXT!$EXEEXT$ac_delim |
---|
| 5442 | OBJEXT!$OBJEXT$ac_delim |
---|
| 5443 | DEPDIR!$DEPDIR$ac_delim |
---|
| 5444 | am__include!$am__include$ac_delim |
---|
| 5445 | am__quote!$am__quote$ac_delim |
---|
| 5446 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
---|
| 5447 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
---|
| 5448 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
---|
| 5449 | CCDEPMODE!$CCDEPMODE$ac_delim |
---|
| 5450 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
---|
| 5451 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
---|
| 5452 | RANLIB!$RANLIB$ac_delim |
---|
| 5453 | CPP!$CPP$ac_delim |
---|
| 5454 | GREP!$GREP$ac_delim |
---|
| 5455 | EGREP!$EGREP$ac_delim |
---|
| 5456 | LIBOBJS!$LIBOBJS$ac_delim |
---|
| 5457 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
| 5458 | _ACEOF |
---|
| 5459 | |
---|
| 5460 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then |
---|
| 5461 | break |
---|
| 5462 | elif $ac_last_try; then |
---|
| 5463 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
| 5464 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
| 5465 | { (exit 1); exit 1; }; } |
---|
| 5466 | else |
---|
| 5467 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 5468 | fi |
---|
| 5469 | done |
---|
| 5470 | |
---|
| 5471 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
| 5472 | if test -n "$ac_eof"; then |
---|
| 5473 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
| 5474 | ac_eof=`expr $ac_eof + 1` |
---|
| 5475 | fi |
---|
| 5476 | |
---|
| 5477 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5478 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
| 5479 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
| 5480 | _ACEOF |
---|
| 5481 | sed ' |
---|
| 5482 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
| 5483 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
| 5484 | :n |
---|
| 5485 | t n |
---|
| 5486 | s/'"$ac_delim"'$/,g/; t |
---|
| 5487 | s/$/\\/; p |
---|
| 5488 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
| 5489 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
| 5490 | rm -f conf$$subs.sed |
---|
| 5491 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5492 | :end |
---|
| 5493 | s/|#_!!_#|//g |
---|
| 5494 | CEOF$ac_eof |
---|
| 5495 | _ACEOF |
---|
| 5496 | |
---|
| 5497 | |
---|
| 5498 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 5499 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 5500 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 5501 | # (actually we leave an empty line to preserve line numbers). |
---|
| 5502 | if test "x$srcdir" = x.; then |
---|
| 5503 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 5504 | s/:*\$(srcdir):*/:/ |
---|
| 5505 | s/:*\${srcdir}:*/:/ |
---|
| 5506 | s/:*@srcdir@:*/:/ |
---|
| 5507 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
| 5508 | s/:*$// |
---|
| 5509 | s/^[^=]*=[ ]*$// |
---|
| 5510 | }' |
---|
| 5511 | fi |
---|
| 5512 | |
---|
| 5513 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5514 | fi # test -n "$CONFIG_FILES" |
---|
| 5515 | |
---|
| 5516 | |
---|
| 5517 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
---|
| 5518 | do |
---|
| 5519 | case $ac_tag in |
---|
| 5520 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
| 5521 | esac |
---|
| 5522 | case $ac_mode$ac_tag in |
---|
| 5523 | :[FHL]*:*);; |
---|
| 5524 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
| 5525 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
| 5526 | { (exit 1); exit 1; }; };; |
---|
| 5527 | :[FH]-) ac_tag=-:-;; |
---|
| 5528 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 5529 | esac |
---|
| 5530 | ac_save_IFS=$IFS |
---|
| 5531 | IFS=: |
---|
| 5532 | set x $ac_tag |
---|
| 5533 | IFS=$ac_save_IFS |
---|
| 5534 | shift |
---|
| 5535 | ac_file=$1 |
---|
| 5536 | shift |
---|
| 5537 | |
---|
| 5538 | case $ac_mode in |
---|
| 5539 | :L) ac_source=$1;; |
---|
| 5540 | :[FH]) |
---|
| 5541 | ac_file_inputs= |
---|
| 5542 | for ac_f |
---|
| 5543 | do |
---|
| 5544 | case $ac_f in |
---|
| 5545 | -) ac_f="$tmp/stdin";; |
---|
| 5546 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 5547 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 5548 | # because $ac_f cannot contain `:'. |
---|
| 5549 | test -f "$ac_f" || |
---|
| 5550 | case $ac_f in |
---|
| 5551 | [\\/$]*) false;; |
---|
| 5552 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 5553 | esac || |
---|
| 5554 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
| 5555 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
| 5556 | { (exit 1); exit 1; }; };; |
---|
| 5557 | esac |
---|
| 5558 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
| 5559 | done |
---|
| 5560 | |
---|
| 5561 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 5562 | # use $as_me), people would be surprised to read: |
---|
| 5563 | # /* config.h. Generated by config.status. */ |
---|
| 5564 | configure_input="Generated from "`IFS=: |
---|
| 5565 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
| 5566 | if test x"$ac_file" != x-; then |
---|
| 5567 | configure_input="$ac_file. $configure_input" |
---|
| 5568 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 5569 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 5570 | fi |
---|
| 5571 | |
---|
| 5572 | case $ac_tag in |
---|
| 5573 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
| 5574 | esac |
---|
| 5575 | ;; |
---|
| 5576 | esac |
---|
| 5577 | |
---|
| 5578 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
| 5579 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5580 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 5581 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 5582 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5583 | echo X"$ac_file" | |
---|
| 5584 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5585 | s//\1/ |
---|
| 5586 | q |
---|
| 5587 | } |
---|
| 5588 | /^X\(\/\/\)[^/].*/{ |
---|
| 5589 | s//\1/ |
---|
| 5590 | q |
---|
| 5591 | } |
---|
| 5592 | /^X\(\/\/\)$/{ |
---|
| 5593 | s//\1/ |
---|
| 5594 | q |
---|
| 5595 | } |
---|
| 5596 | /^X\(\/\).*/{ |
---|
| 5597 | s//\1/ |
---|
| 5598 | q |
---|
| 5599 | } |
---|
| 5600 | s/.*/./; q'` |
---|
| 5601 | { as_dir="$ac_dir" |
---|
| 5602 | case $as_dir in #( |
---|
| 5603 | -*) as_dir=./$as_dir;; |
---|
| 5604 | esac |
---|
| 5605 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
| 5606 | as_dirs= |
---|
| 5607 | while :; do |
---|
| 5608 | case $as_dir in #( |
---|
| 5609 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
| 5610 | *) as_qdir=$as_dir;; |
---|
| 5611 | esac |
---|
| 5612 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 5613 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 5614 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5615 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 5616 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 5617 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5618 | echo X"$as_dir" | |
---|
| 5619 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5620 | s//\1/ |
---|
| 5621 | q |
---|
| 5622 | } |
---|
| 5623 | /^X\(\/\/\)[^/].*/{ |
---|
| 5624 | s//\1/ |
---|
| 5625 | q |
---|
| 5626 | } |
---|
| 5627 | /^X\(\/\/\)$/{ |
---|
| 5628 | s//\1/ |
---|
| 5629 | q |
---|
| 5630 | } |
---|
| 5631 | /^X\(\/\).*/{ |
---|
| 5632 | s//\1/ |
---|
| 5633 | q |
---|
| 5634 | } |
---|
| 5635 | s/.*/./; q'` |
---|
| 5636 | test -d "$as_dir" && break |
---|
| 5637 | done |
---|
| 5638 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 5639 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
| 5640 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
| 5641 | { (exit 1); exit 1; }; }; } |
---|
| 5642 | ac_builddir=. |
---|
| 5643 | |
---|
| 5644 | case "$ac_dir" in |
---|
| 5645 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 5646 | *) |
---|
| 5647 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 5648 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 5649 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
| 5650 | case $ac_top_builddir_sub in |
---|
| 5651 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 5652 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 5653 | esac ;; |
---|
| 5654 | esac |
---|
| 5655 | ac_abs_top_builddir=$ac_pwd |
---|
| 5656 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 5657 | # for backward compatibility: |
---|
| 5658 | ac_top_builddir=$ac_top_build_prefix |
---|
| 5659 | |
---|
| 5660 | case $srcdir in |
---|
| 5661 | .) # We are building in place. |
---|
| 5662 | ac_srcdir=. |
---|
| 5663 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 5664 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 5665 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 5666 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 5667 | ac_top_srcdir=$srcdir |
---|
| 5668 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 5669 | *) # Relative name. |
---|
| 5670 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 5671 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 5672 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 5673 | esac |
---|
| 5674 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 5675 | |
---|
| 5676 | |
---|
| 5677 | case $ac_mode in |
---|
| 5678 | :F) |
---|
| 5679 | # |
---|
| 5680 | # CONFIG_FILE |
---|
| 5681 | # |
---|
| 5682 | |
---|
| 5683 | case $INSTALL in |
---|
| 5684 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 5685 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
| 5686 | esac |
---|
| 5687 | _ACEOF |
---|
| 5688 | |
---|
| 5689 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5690 | # If the template does not know about datarootdir, expand it. |
---|
| 5691 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 5692 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
| 5693 | |
---|
| 5694 | case `sed -n '/datarootdir/ { |
---|
| 5695 | p |
---|
| 5696 | q |
---|
| 5697 | } |
---|
| 5698 | /@datadir@/p |
---|
| 5699 | /@docdir@/p |
---|
| 5700 | /@infodir@/p |
---|
| 5701 | /@localedir@/p |
---|
| 5702 | /@mandir@/p |
---|
| 5703 | ' $ac_file_inputs` in |
---|
| 5704 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 5705 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 5706 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 5707 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
| 5708 | _ACEOF |
---|
| 5709 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5710 | ac_datarootdir_hack=' |
---|
| 5711 | s&@datadir@&$datadir&g |
---|
| 5712 | s&@docdir@&$docdir&g |
---|
| 5713 | s&@infodir@&$infodir&g |
---|
| 5714 | s&@localedir@&$localedir&g |
---|
| 5715 | s&@mandir@&$mandir&g |
---|
| 5716 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 5717 | esac |
---|
| 5718 | _ACEOF |
---|
| 5719 | |
---|
| 5720 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 5721 | # Shell code in configure.ac might set extrasub. |
---|
| 5722 | # FIXME: do we really want to maintain this feature? |
---|
| 5723 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5724 | sed "$ac_vpsub |
---|
| 5725 | $extrasub |
---|
| 5726 | _ACEOF |
---|
| 5727 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5728 | :t |
---|
| 5729 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 5730 | s&@configure_input@&$configure_input&;t t |
---|
| 5731 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 5732 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 5733 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 5734 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 5735 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 5736 | s&@builddir@&$ac_builddir&;t t |
---|
| 5737 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 5738 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 5739 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
| 5740 | $ac_datarootdir_hack |
---|
| 5741 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
---|
| 5742 | |
---|
| 5743 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 5744 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
| 5745 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
| 5746 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 5747 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
| 5748 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 5749 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
| 5750 | |
---|
| 5751 | rm -f "$tmp/stdin" |
---|
| 5752 | case $ac_file in |
---|
| 5753 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
| 5754 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
| 5755 | esac |
---|
| 5756 | ;; |
---|
| 5757 | |
---|
| 5758 | |
---|
| 5759 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
---|
| 5760 | echo "$as_me: executing $ac_file commands" >&6;} |
---|
| 5761 | ;; |
---|
| 5762 | esac |
---|
| 5763 | |
---|
| 5764 | |
---|
| 5765 | case $ac_file$ac_mode in |
---|
| 5766 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 5767 | # Strip MF so we end up with the name of the file. |
---|
| 5768 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 5769 | # Check whether this is an Automake generated Makefile or not. |
---|
| 5770 | # We used to match only the files named `Makefile.in', but |
---|
| 5771 | # some people rename them; so instead we look at the file content. |
---|
| 5772 | # Grep'ing the first line is not enough: some people post-process |
---|
| 5773 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 5774 | # So let's grep whole file. |
---|
| 5775 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 5776 | dirpart=`$as_dirname -- "$mf" || |
---|
| 5777 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5778 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 5779 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 5780 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5781 | echo X"$mf" | |
---|
| 5782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5783 | s//\1/ |
---|
| 5784 | q |
---|
| 5785 | } |
---|
| 5786 | /^X\(\/\/\)[^/].*/{ |
---|
| 5787 | s//\1/ |
---|
| 5788 | q |
---|
| 5789 | } |
---|
| 5790 | /^X\(\/\/\)$/{ |
---|
| 5791 | s//\1/ |
---|
| 5792 | q |
---|
| 5793 | } |
---|
| 5794 | /^X\(\/\).*/{ |
---|
| 5795 | s//\1/ |
---|
| 5796 | q |
---|
| 5797 | } |
---|
| 5798 | s/.*/./; q'` |
---|
| 5799 | else |
---|
| 5800 | continue |
---|
| 5801 | fi |
---|
| 5802 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
| 5803 | # from the Makefile without running `make'. |
---|
| 5804 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
| 5805 | test -z "$DEPDIR" && continue |
---|
| 5806 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
| 5807 | test -z "am__include" && continue |
---|
| 5808 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
| 5809 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
| 5810 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
| 5811 | # Find all dependency output files, they are included files with |
---|
| 5812 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
| 5813 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
| 5814 | # expansion. |
---|
| 5815 | for file in `sed -n " |
---|
| 5816 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
| 5817 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 5818 | # Make sure the directory exists. |
---|
| 5819 | test -f "$dirpart/$file" && continue |
---|
| 5820 | fdir=`$as_dirname -- "$file" || |
---|
| 5821 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5822 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 5823 | X"$file" : 'X\(//\)$' \| \ |
---|
| 5824 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5825 | echo X"$file" | |
---|
| 5826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5827 | s//\1/ |
---|
| 5828 | q |
---|
| 5829 | } |
---|
| 5830 | /^X\(\/\/\)[^/].*/{ |
---|
| 5831 | s//\1/ |
---|
| 5832 | q |
---|
| 5833 | } |
---|
| 5834 | /^X\(\/\/\)$/{ |
---|
| 5835 | s//\1/ |
---|
| 5836 | q |
---|
| 5837 | } |
---|
| 5838 | /^X\(\/\).*/{ |
---|
| 5839 | s//\1/ |
---|
| 5840 | q |
---|
| 5841 | } |
---|
| 5842 | s/.*/./; q'` |
---|
| 5843 | { as_dir=$dirpart/$fdir |
---|
| 5844 | case $as_dir in #( |
---|
| 5845 | -*) as_dir=./$as_dir;; |
---|
| 5846 | esac |
---|
| 5847 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
| 5848 | as_dirs= |
---|
| 5849 | while :; do |
---|
| 5850 | case $as_dir in #( |
---|
| 5851 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
| 5852 | *) as_qdir=$as_dir;; |
---|
| 5853 | esac |
---|
| 5854 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 5855 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 5856 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5857 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 5858 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 5859 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 5860 | echo X"$as_dir" | |
---|
| 5861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5862 | s//\1/ |
---|
| 5863 | q |
---|
| 5864 | } |
---|
| 5865 | /^X\(\/\/\)[^/].*/{ |
---|
| 5866 | s//\1/ |
---|
| 5867 | q |
---|
| 5868 | } |
---|
| 5869 | /^X\(\/\/\)$/{ |
---|
| 5870 | s//\1/ |
---|
| 5871 | q |
---|
| 5872 | } |
---|
| 5873 | /^X\(\/\).*/{ |
---|
| 5874 | s//\1/ |
---|
| 5875 | q |
---|
| 5876 | } |
---|
| 5877 | s/.*/./; q'` |
---|
| 5878 | test -d "$as_dir" && break |
---|
| 5879 | done |
---|
| 5880 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 5881 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
| 5882 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
| 5883 | { (exit 1); exit 1; }; }; } |
---|
| 5884 | # echo "creating $dirpart/$file" |
---|
| 5885 | echo '# dummy' > "$dirpart/$file" |
---|
| 5886 | done |
---|
| 5887 | done |
---|
| 5888 | ;; |
---|
| 5889 | |
---|
| 5890 | esac |
---|
| 5891 | done # for ac_tag |
---|
| 5892 | |
---|
| 5893 | |
---|
| 5894 | { (exit 0); exit 0; } |
---|
| 5895 | _ACEOF |
---|
| 5896 | chmod +x $CONFIG_STATUS |
---|
| 5897 | ac_clean_files=$ac_clean_files_save |
---|
| 5898 | |
---|
| 5899 | |
---|
| 5900 | # configure is writing to config.log, and then calls config.status. |
---|
| 5901 | # config.status does its own redirection, appending to config.log. |
---|
| 5902 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 5903 | # by configure, so config.status won't be able to write to it; its |
---|
| 5904 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 5905 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 5906 | # appended to by config.status. When coming back to configure, we |
---|
| 5907 | # need to make the FD available again. |
---|
| 5908 | if test "$no_create" != yes; then |
---|
| 5909 | ac_cs_success=: |
---|
| 5910 | ac_config_status_args= |
---|
| 5911 | test "$silent" = yes && |
---|
| 5912 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 5913 | exec 5>/dev/null |
---|
| 5914 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 5915 | exec 5>>config.log |
---|
| 5916 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 5917 | # would make configure fail if this is the last instruction. |
---|
| 5918 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 5919 | fi |
---|
| 5920 | |
---|
| 5921 | |
---|