[14] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[101] | 3 | # Generated by GNU Autoconf 2.63. |
---|
[14] | 4 | # |
---|
[101] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
---|
[14] | 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 | |
---|
[101] | 13 | # Be more Bourne compatible |
---|
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[14] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
[101] | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
[14] | 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
[101] | 21 | setopt NO_GLOB_SUBST |
---|
| 22 | else |
---|
| 23 | case `(set -o) 2>/dev/null` in |
---|
| 24 | *posix*) set -o posix ;; |
---|
| 25 | esac |
---|
| 26 | |
---|
[14] | 27 | fi |
---|
| 28 | |
---|
[101] | 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | # PATH needs CR |
---|
| 33 | # Avoid depending upon Character Ranges. |
---|
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 37 | as_cr_digits='0123456789' |
---|
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 39 | |
---|
| 40 | as_nl=' |
---|
| 41 | ' |
---|
| 42 | export as_nl |
---|
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 48 | as_echo='printf %s\n' |
---|
| 49 | as_echo_n='printf %s' |
---|
| 50 | else |
---|
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 53 | as_echo_n='/usr/ucb/echo -n' |
---|
| 54 | else |
---|
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 56 | as_echo_n_body='eval |
---|
| 57 | arg=$1; |
---|
| 58 | case $arg in |
---|
| 59 | *"$as_nl"*) |
---|
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 62 | esac; |
---|
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 64 | ' |
---|
| 65 | export as_echo_n_body |
---|
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
| 67 | fi |
---|
| 68 | export as_echo_body |
---|
| 69 | as_echo='sh -c $as_echo_body as_echo' |
---|
| 70 | fi |
---|
| 71 | |
---|
| 72 | # The user is always right. |
---|
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 74 | PATH_SEPARATOR=: |
---|
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 77 | PATH_SEPARATOR=';' |
---|
| 78 | } |
---|
| 79 | fi |
---|
| 80 | |
---|
[14] | 81 | # Support unset when possible. |
---|
[101] | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
[14] | 83 | as_unset=unset |
---|
| 84 | else |
---|
| 85 | as_unset=false |
---|
| 86 | fi |
---|
| 87 | |
---|
| 88 | |
---|
[101] | 89 | # IFS |
---|
| 90 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 91 | # there to prevent editors from complaining about space-tab. |
---|
| 92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 93 | # splitting by setting IFS to empty value.) |
---|
| 94 | IFS=" "" $as_nl" |
---|
| 95 | |
---|
| 96 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 97 | case $0 in |
---|
| 98 | *[\\/]* ) as_myself=$0 ;; |
---|
| 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 100 | for as_dir in $PATH |
---|
| 101 | do |
---|
| 102 | IFS=$as_save_IFS |
---|
| 103 | test -z "$as_dir" && as_dir=. |
---|
| 104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 105 | done |
---|
| 106 | IFS=$as_save_IFS |
---|
| 107 | |
---|
| 108 | ;; |
---|
| 109 | esac |
---|
| 110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 111 | # in which case we are not to be found in the path. |
---|
| 112 | if test "x$as_myself" = x; then |
---|
| 113 | as_myself=$0 |
---|
| 114 | fi |
---|
| 115 | if test ! -f "$as_myself"; then |
---|
| 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 117 | { (exit 1); exit 1; } |
---|
| 118 | fi |
---|
| 119 | |
---|
[14] | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
[101] | 121 | for as_var in ENV MAIL MAILPATH |
---|
| 122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 123 | done |
---|
[14] | 124 | PS1='$ ' |
---|
| 125 | PS2='> ' |
---|
| 126 | PS4='+ ' |
---|
| 127 | |
---|
| 128 | # NLS nuisances. |
---|
[101] | 129 | LC_ALL=C |
---|
| 130 | export LC_ALL |
---|
| 131 | LANGUAGE=C |
---|
| 132 | export LANGUAGE |
---|
[14] | 133 | |
---|
| 134 | # Required to use basename. |
---|
[101] | 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[14] | 137 | as_expr=expr |
---|
| 138 | else |
---|
| 139 | as_expr=false |
---|
| 140 | fi |
---|
| 141 | |
---|
[101] | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
[14] | 143 | as_basename=basename |
---|
| 144 | else |
---|
| 145 | as_basename=false |
---|
| 146 | fi |
---|
| 147 | |
---|
| 148 | |
---|
| 149 | # Name of the executable. |
---|
[101] | 150 | as_me=`$as_basename -- "$0" || |
---|
[14] | 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 152 | X"$0" : 'X\(//\)$' \| \ |
---|
[101] | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 154 | $as_echo X/"$0" | |
---|
| 155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 156 | s//\1/ |
---|
| 157 | q |
---|
| 158 | } |
---|
| 159 | /^X\/\(\/\/\)$/{ |
---|
| 160 | s//\1/ |
---|
| 161 | q |
---|
| 162 | } |
---|
| 163 | /^X\/\(\/\).*/{ |
---|
| 164 | s//\1/ |
---|
| 165 | q |
---|
| 166 | } |
---|
| 167 | s/.*/./; q'` |
---|
[14] | 168 | |
---|
[101] | 169 | # CDPATH. |
---|
| 170 | $as_unset CDPATH |
---|
[14] | 171 | |
---|
| 172 | |
---|
[101] | 173 | if test "x$CONFIG_SHELL" = x; then |
---|
| 174 | if (eval ":") 2>/dev/null; then |
---|
| 175 | as_have_required=yes |
---|
| 176 | else |
---|
| 177 | as_have_required=no |
---|
[14] | 178 | fi |
---|
| 179 | |
---|
[101] | 180 | if test $as_have_required = yes && (eval ": |
---|
| 181 | (as_func_return () { |
---|
| 182 | (exit \$1) |
---|
| 183 | } |
---|
| 184 | as_func_success () { |
---|
| 185 | as_func_return 0 |
---|
| 186 | } |
---|
| 187 | as_func_failure () { |
---|
| 188 | as_func_return 1 |
---|
| 189 | } |
---|
| 190 | as_func_ret_success () { |
---|
| 191 | return 0 |
---|
| 192 | } |
---|
| 193 | as_func_ret_failure () { |
---|
| 194 | return 1 |
---|
| 195 | } |
---|
[14] | 196 | |
---|
[101] | 197 | exitcode=0 |
---|
| 198 | if as_func_success; then |
---|
| 199 | : |
---|
| 200 | else |
---|
| 201 | exitcode=1 |
---|
| 202 | echo as_func_success failed. |
---|
| 203 | fi |
---|
[14] | 204 | |
---|
[101] | 205 | if as_func_failure; then |
---|
| 206 | exitcode=1 |
---|
| 207 | echo as_func_failure succeeded. |
---|
| 208 | fi |
---|
| 209 | |
---|
| 210 | if as_func_ret_success; then |
---|
| 211 | : |
---|
| 212 | else |
---|
| 213 | exitcode=1 |
---|
| 214 | echo as_func_ret_success failed. |
---|
| 215 | fi |
---|
| 216 | |
---|
| 217 | if as_func_ret_failure; then |
---|
| 218 | exitcode=1 |
---|
| 219 | echo as_func_ret_failure succeeded. |
---|
| 220 | fi |
---|
| 221 | |
---|
| 222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 223 | : |
---|
| 224 | else |
---|
| 225 | exitcode=1 |
---|
| 226 | echo positional parameters were not saved. |
---|
| 227 | fi |
---|
| 228 | |
---|
| 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
| 230 | |
---|
| 231 | ( |
---|
| 232 | as_lineno_1=\$LINENO |
---|
| 233 | as_lineno_2=\$LINENO |
---|
| 234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
| 235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
| 236 | ") 2> /dev/null; then |
---|
| 237 | : |
---|
| 238 | else |
---|
| 239 | as_candidate_shells= |
---|
[14] | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 242 | do |
---|
| 243 | IFS=$as_save_IFS |
---|
| 244 | test -z "$as_dir" && as_dir=. |
---|
[101] | 245 | case $as_dir in |
---|
[14] | 246 | /*) |
---|
[101] | 247 | for as_base in sh bash ksh sh5; do |
---|
| 248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
| 249 | done;; |
---|
| 250 | esac |
---|
| 251 | done |
---|
| 252 | IFS=$as_save_IFS |
---|
| 253 | |
---|
| 254 | |
---|
| 255 | for as_shell in $as_candidate_shells $SHELL; do |
---|
| 256 | # Try only shells that exist, to save several forks. |
---|
| 257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 260 | emulate sh |
---|
| 261 | NULLCMD=: |
---|
| 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 263 | # is contrary to our usage. Disable this feature. |
---|
| 264 | alias -g '${1+"$@"}'='"$@"' |
---|
| 265 | setopt NO_GLOB_SUBST |
---|
| 266 | else |
---|
| 267 | case `(set -o) 2>/dev/null` in |
---|
| 268 | *posix*) set -o posix ;; |
---|
| 269 | esac |
---|
| 270 | |
---|
| 271 | fi |
---|
| 272 | |
---|
| 273 | |
---|
| 274 | : |
---|
| 275 | _ASEOF |
---|
| 276 | }; then |
---|
| 277 | CONFIG_SHELL=$as_shell |
---|
| 278 | as_have_required=yes |
---|
| 279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
| 280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 281 | emulate sh |
---|
| 282 | NULLCMD=: |
---|
| 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 284 | # is contrary to our usage. Disable this feature. |
---|
| 285 | alias -g '${1+"$@"}'='"$@"' |
---|
| 286 | setopt NO_GLOB_SUBST |
---|
| 287 | else |
---|
| 288 | case `(set -o) 2>/dev/null` in |
---|
| 289 | *posix*) set -o posix ;; |
---|
| 290 | esac |
---|
| 291 | |
---|
| 292 | fi |
---|
| 293 | |
---|
| 294 | |
---|
| 295 | : |
---|
| 296 | (as_func_return () { |
---|
| 297 | (exit $1) |
---|
| 298 | } |
---|
| 299 | as_func_success () { |
---|
| 300 | as_func_return 0 |
---|
| 301 | } |
---|
| 302 | as_func_failure () { |
---|
| 303 | as_func_return 1 |
---|
| 304 | } |
---|
| 305 | as_func_ret_success () { |
---|
| 306 | return 0 |
---|
| 307 | } |
---|
| 308 | as_func_ret_failure () { |
---|
| 309 | return 1 |
---|
| 310 | } |
---|
| 311 | |
---|
| 312 | exitcode=0 |
---|
| 313 | if as_func_success; then |
---|
| 314 | : |
---|
| 315 | else |
---|
| 316 | exitcode=1 |
---|
| 317 | echo as_func_success failed. |
---|
| 318 | fi |
---|
| 319 | |
---|
| 320 | if as_func_failure; then |
---|
| 321 | exitcode=1 |
---|
| 322 | echo as_func_failure succeeded. |
---|
| 323 | fi |
---|
| 324 | |
---|
| 325 | if as_func_ret_success; then |
---|
| 326 | : |
---|
| 327 | else |
---|
| 328 | exitcode=1 |
---|
| 329 | echo as_func_ret_success failed. |
---|
| 330 | fi |
---|
| 331 | |
---|
| 332 | if as_func_ret_failure; then |
---|
| 333 | exitcode=1 |
---|
| 334 | echo as_func_ret_failure succeeded. |
---|
| 335 | fi |
---|
| 336 | |
---|
| 337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
| 338 | : |
---|
| 339 | else |
---|
| 340 | exitcode=1 |
---|
| 341 | echo positional parameters were not saved. |
---|
| 342 | fi |
---|
| 343 | |
---|
| 344 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
| 345 | |
---|
| 346 | ( |
---|
[14] | 347 | as_lineno_1=$LINENO |
---|
| 348 | as_lineno_2=$LINENO |
---|
| 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
[101] | 350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
[14] | 351 | |
---|
[101] | 352 | _ASEOF |
---|
| 353 | }; then |
---|
| 354 | break |
---|
| 355 | fi |
---|
| 356 | |
---|
| 357 | fi |
---|
| 358 | |
---|
| 359 | done |
---|
| 360 | |
---|
| 361 | if test "x$CONFIG_SHELL" != x; then |
---|
| 362 | for as_var in BASH_ENV ENV |
---|
| 363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 364 | done |
---|
| 365 | export CONFIG_SHELL |
---|
| 366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
| 367 | fi |
---|
| 368 | |
---|
| 369 | |
---|
| 370 | if test $as_have_required = no; then |
---|
| 371 | echo This script requires a shell more modern than all the |
---|
| 372 | echo shells that I found on your system. Please install a |
---|
| 373 | echo modern shell, or manually run the script under such a |
---|
| 374 | echo shell if you do have one. |
---|
| 375 | { (exit 1); exit 1; } |
---|
| 376 | fi |
---|
| 377 | |
---|
| 378 | |
---|
| 379 | fi |
---|
| 380 | |
---|
| 381 | fi |
---|
| 382 | |
---|
| 383 | |
---|
| 384 | |
---|
| 385 | (eval "as_func_return () { |
---|
| 386 | (exit \$1) |
---|
| 387 | } |
---|
| 388 | as_func_success () { |
---|
| 389 | as_func_return 0 |
---|
| 390 | } |
---|
| 391 | as_func_failure () { |
---|
| 392 | as_func_return 1 |
---|
| 393 | } |
---|
| 394 | as_func_ret_success () { |
---|
| 395 | return 0 |
---|
| 396 | } |
---|
| 397 | as_func_ret_failure () { |
---|
| 398 | return 1 |
---|
| 399 | } |
---|
| 400 | |
---|
| 401 | exitcode=0 |
---|
| 402 | if as_func_success; then |
---|
| 403 | : |
---|
| 404 | else |
---|
| 405 | exitcode=1 |
---|
| 406 | echo as_func_success failed. |
---|
| 407 | fi |
---|
| 408 | |
---|
| 409 | if as_func_failure; then |
---|
| 410 | exitcode=1 |
---|
| 411 | echo as_func_failure succeeded. |
---|
| 412 | fi |
---|
| 413 | |
---|
| 414 | if as_func_ret_success; then |
---|
| 415 | : |
---|
| 416 | else |
---|
| 417 | exitcode=1 |
---|
| 418 | echo as_func_ret_success failed. |
---|
| 419 | fi |
---|
| 420 | |
---|
| 421 | if as_func_ret_failure; then |
---|
| 422 | exitcode=1 |
---|
| 423 | echo as_func_ret_failure succeeded. |
---|
| 424 | fi |
---|
| 425 | |
---|
| 426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 427 | : |
---|
| 428 | else |
---|
| 429 | exitcode=1 |
---|
| 430 | echo positional parameters were not saved. |
---|
| 431 | fi |
---|
| 432 | |
---|
| 433 | test \$exitcode = 0") || { |
---|
| 434 | echo No shell found that supports shell functions. |
---|
| 435 | echo Please tell bug-autoconf@gnu.org about your system, |
---|
| 436 | echo including any error possibly output before this message. |
---|
| 437 | echo This can help us improve future autoconf versions. |
---|
| 438 | echo Configuration will now proceed without shell functions. |
---|
| 439 | } |
---|
| 440 | |
---|
| 441 | |
---|
| 442 | |
---|
| 443 | as_lineno_1=$LINENO |
---|
| 444 | as_lineno_2=$LINENO |
---|
| 445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
| 447 | |
---|
[14] | 448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 449 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
[101] | 450 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 451 | # does the real work. The second script uses 'N' to pair each |
---|
| 452 | # line-number line with the line containing $LINENO, and appends |
---|
| 453 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 454 | # case at line end. |
---|
[14] | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
[101] | 456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 458 | sed -n ' |
---|
| 459 | p |
---|
| 460 | /[$]LINENO/= |
---|
| 461 | ' <$as_myself | |
---|
[14] | 462 | sed ' |
---|
[101] | 463 | s/[$]LINENO.*/&-/ |
---|
| 464 | t lineno |
---|
| 465 | b |
---|
| 466 | :lineno |
---|
[14] | 467 | N |
---|
[101] | 468 | :loop |
---|
| 469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
[14] | 470 | t loop |
---|
[101] | 471 | s/-\n.*// |
---|
[14] | 472 | ' >$as_me.lineno && |
---|
[101] | 473 | chmod +x "$as_me.lineno" || |
---|
| 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
[14] | 475 | { (exit 1); exit 1; }; } |
---|
| 476 | |
---|
| 477 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 478 | # (the dirname of $[0] is not the place where we might find the |
---|
[101] | 479 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 480 | . "./$as_me.lineno" |
---|
[14] | 481 | # Exit status is that of the last command. |
---|
| 482 | exit |
---|
| 483 | } |
---|
| 484 | |
---|
| 485 | |
---|
[101] | 486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 487 | as_dirname=dirname |
---|
| 488 | else |
---|
| 489 | as_dirname=false |
---|
| 490 | fi |
---|
| 491 | |
---|
| 492 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 493 | case `echo -n x` in |
---|
| 494 | -n*) |
---|
| 495 | case `echo 'x\c'` in |
---|
| 496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 497 | *) ECHO_C='\c';; |
---|
| 498 | esac;; |
---|
| 499 | *) |
---|
| 500 | ECHO_N='-n';; |
---|
[14] | 501 | esac |
---|
[101] | 502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[14] | 504 | as_expr=expr |
---|
| 505 | else |
---|
| 506 | as_expr=false |
---|
| 507 | fi |
---|
| 508 | |
---|
| 509 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[101] | 510 | if test -d conf$$.dir; then |
---|
| 511 | rm -f conf$$.dir/conf$$.file |
---|
| 512 | else |
---|
| 513 | rm -f conf$$.dir |
---|
| 514 | mkdir conf$$.dir 2>/dev/null |
---|
| 515 | fi |
---|
| 516 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 518 | as_ln_s='ln -s' |
---|
| 519 | # ... but there are two gotchas: |
---|
| 520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 522 | # In both cases, we have to default to `cp -p'. |
---|
| 523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 524 | as_ln_s='cp -p' |
---|
| 525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 526 | as_ln_s=ln |
---|
| 527 | else |
---|
[14] | 528 | as_ln_s='cp -p' |
---|
| 529 | fi |
---|
| 530 | else |
---|
| 531 | as_ln_s='cp -p' |
---|
| 532 | fi |
---|
[101] | 533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 534 | rmdir conf$$.dir 2>/dev/null |
---|
[14] | 535 | |
---|
| 536 | if mkdir -p . 2>/dev/null; then |
---|
| 537 | as_mkdir_p=: |
---|
| 538 | else |
---|
[101] | 539 | test -d ./-p && rmdir ./-p |
---|
[14] | 540 | as_mkdir_p=false |
---|
| 541 | fi |
---|
| 542 | |
---|
[101] | 543 | if test -x / >/dev/null 2>&1; then |
---|
| 544 | as_test_x='test -x' |
---|
| 545 | else |
---|
| 546 | if ls -dL / >/dev/null 2>&1; then |
---|
| 547 | as_ls_L_option=L |
---|
| 548 | else |
---|
| 549 | as_ls_L_option= |
---|
| 550 | fi |
---|
| 551 | as_test_x=' |
---|
| 552 | eval sh -c '\'' |
---|
| 553 | if test -d "$1"; then |
---|
| 554 | test -d "$1/."; |
---|
| 555 | else |
---|
| 556 | case $1 in |
---|
| 557 | -*)set "./$1";; |
---|
| 558 | esac; |
---|
| 559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
| 560 | ???[sx]*):;;*)false;;esac;fi |
---|
| 561 | '\'' sh |
---|
| 562 | ' |
---|
| 563 | fi |
---|
| 564 | as_executable_p=$as_test_x |
---|
[14] | 565 | |
---|
| 566 | # Sed expression to map a string onto a valid CPP name. |
---|
[101] | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[14] | 568 | |
---|
| 569 | # Sed expression to map a string onto a valid variable name. |
---|
[101] | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[14] | 571 | |
---|
| 572 | |
---|
| 573 | |
---|
[101] | 574 | exec 7<&0 </dev/null 6>&1 |
---|
[14] | 575 | |
---|
| 576 | # Name of the host. |
---|
| 577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 578 | # so uname gets run too. |
---|
| 579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 580 | |
---|
| 581 | # |
---|
| 582 | # Initializations. |
---|
| 583 | # |
---|
| 584 | ac_default_prefix=/usr/local |
---|
[101] | 585 | ac_clean_files= |
---|
[14] | 586 | ac_config_libobj_dir=. |
---|
[101] | 587 | LIBOBJS= |
---|
[14] | 588 | cross_compiling=no |
---|
| 589 | subdirs= |
---|
| 590 | MFLAGS= |
---|
| 591 | MAKEFLAGS= |
---|
| 592 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 593 | |
---|
| 594 | # Identity of this package. |
---|
| 595 | PACKAGE_NAME= |
---|
| 596 | PACKAGE_TARNAME= |
---|
| 597 | PACKAGE_VERSION= |
---|
| 598 | PACKAGE_STRING= |
---|
| 599 | PACKAGE_BUGREPORT= |
---|
| 600 | |
---|
| 601 | ac_unique_file="src/cmd/cmd.h" |
---|
| 602 | # Factoring default headers for most tests. |
---|
| 603 | ac_includes_default="\ |
---|
| 604 | #include <stdio.h> |
---|
[101] | 605 | #ifdef HAVE_SYS_TYPES_H |
---|
[14] | 606 | # include <sys/types.h> |
---|
| 607 | #endif |
---|
[101] | 608 | #ifdef HAVE_SYS_STAT_H |
---|
[14] | 609 | # include <sys/stat.h> |
---|
| 610 | #endif |
---|
[101] | 611 | #ifdef STDC_HEADERS |
---|
[14] | 612 | # include <stdlib.h> |
---|
| 613 | # include <stddef.h> |
---|
| 614 | #else |
---|
[101] | 615 | # ifdef HAVE_STDLIB_H |
---|
[14] | 616 | # include <stdlib.h> |
---|
| 617 | # endif |
---|
| 618 | #endif |
---|
[101] | 619 | #ifdef HAVE_STRING_H |
---|
| 620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
[14] | 621 | # include <memory.h> |
---|
| 622 | # endif |
---|
| 623 | # include <string.h> |
---|
| 624 | #endif |
---|
[101] | 625 | #ifdef HAVE_STRINGS_H |
---|
[14] | 626 | # include <strings.h> |
---|
| 627 | #endif |
---|
[101] | 628 | #ifdef HAVE_INTTYPES_H |
---|
[14] | 629 | # include <inttypes.h> |
---|
| 630 | #endif |
---|
[101] | 631 | #ifdef HAVE_STDINT_H |
---|
| 632 | # include <stdint.h> |
---|
| 633 | #endif |
---|
| 634 | #ifdef HAVE_UNISTD_H |
---|
[14] | 635 | # include <unistd.h> |
---|
| 636 | #endif" |
---|
| 637 | |
---|
[101] | 638 | ac_subst_vars='LTLIBOBJS |
---|
| 639 | AWK |
---|
| 640 | LIBOBJS |
---|
| 641 | LIBDIRS |
---|
| 642 | EGREP |
---|
| 643 | GREP |
---|
| 644 | CPP |
---|
| 645 | YFLAGS |
---|
| 646 | YACC |
---|
| 647 | LEXLIB |
---|
| 648 | LEX_OUTPUT_ROOT |
---|
| 649 | LEX |
---|
| 650 | PLINKER |
---|
| 651 | LINKER |
---|
| 652 | INSTALL_DATA |
---|
| 653 | INSTALL_SCRIPT |
---|
| 654 | INSTALL_PROGRAM |
---|
| 655 | OBJEXT |
---|
| 656 | EXEEXT |
---|
| 657 | ac_ct_CC |
---|
| 658 | CPPFLAGS |
---|
| 659 | LDFLAGS |
---|
| 660 | CFLAGS |
---|
| 661 | CC |
---|
| 662 | target_os |
---|
| 663 | target_vendor |
---|
| 664 | target_cpu |
---|
| 665 | target |
---|
| 666 | host_os |
---|
| 667 | host_vendor |
---|
| 668 | host_cpu |
---|
| 669 | host |
---|
| 670 | build_os |
---|
| 671 | build_vendor |
---|
| 672 | build_cpu |
---|
| 673 | build |
---|
| 674 | RANLIB |
---|
| 675 | AR |
---|
| 676 | ZCHAFF |
---|
| 677 | BDDLIB |
---|
| 678 | local_srcdir |
---|
| 679 | vislibdir |
---|
| 680 | gluincdir |
---|
| 681 | glulibdir |
---|
| 682 | target_alias |
---|
| 683 | host_alias |
---|
| 684 | build_alias |
---|
| 685 | LIBS |
---|
| 686 | ECHO_T |
---|
| 687 | ECHO_N |
---|
| 688 | ECHO_C |
---|
| 689 | DEFS |
---|
| 690 | mandir |
---|
| 691 | localedir |
---|
| 692 | libdir |
---|
| 693 | psdir |
---|
| 694 | pdfdir |
---|
| 695 | dvidir |
---|
| 696 | htmldir |
---|
| 697 | infodir |
---|
| 698 | docdir |
---|
| 699 | oldincludedir |
---|
| 700 | includedir |
---|
| 701 | localstatedir |
---|
| 702 | sharedstatedir |
---|
| 703 | sysconfdir |
---|
| 704 | datadir |
---|
| 705 | datarootdir |
---|
| 706 | libexecdir |
---|
| 707 | sbindir |
---|
| 708 | bindir |
---|
| 709 | program_transform_name |
---|
| 710 | prefix |
---|
| 711 | exec_prefix |
---|
| 712 | PACKAGE_BUGREPORT |
---|
| 713 | PACKAGE_STRING |
---|
| 714 | PACKAGE_VERSION |
---|
| 715 | PACKAGE_TARNAME |
---|
| 716 | PACKAGE_NAME |
---|
| 717 | PATH_SEPARATOR |
---|
| 718 | SHELL' |
---|
[14] | 719 | ac_subst_files='' |
---|
[101] | 720 | ac_user_opts=' |
---|
| 721 | enable_option_checking |
---|
| 722 | with_glu_libdir |
---|
| 723 | with_glu_incdir |
---|
| 724 | with_vis_libdir |
---|
| 725 | with_local_srcdir |
---|
| 726 | with_bdd |
---|
| 727 | enable_gcc |
---|
| 728 | enable_64 |
---|
| 729 | with_comp_mode |
---|
| 730 | ' |
---|
| 731 | ac_precious_vars='build_alias |
---|
| 732 | host_alias |
---|
| 733 | target_alias |
---|
| 734 | CC |
---|
| 735 | CFLAGS |
---|
| 736 | LDFLAGS |
---|
| 737 | LIBS |
---|
| 738 | CPPFLAGS |
---|
| 739 | YACC |
---|
| 740 | YFLAGS |
---|
| 741 | CPP' |
---|
[14] | 742 | |
---|
[101] | 743 | |
---|
[14] | 744 | # Initialize some variables set by options. |
---|
| 745 | ac_init_help= |
---|
| 746 | ac_init_version=false |
---|
[101] | 747 | ac_unrecognized_opts= |
---|
| 748 | ac_unrecognized_sep= |
---|
[14] | 749 | # The variables have the same names as the options, with |
---|
| 750 | # dashes changed to underlines. |
---|
| 751 | cache_file=/dev/null |
---|
| 752 | exec_prefix=NONE |
---|
| 753 | no_create= |
---|
| 754 | no_recursion= |
---|
| 755 | prefix=NONE |
---|
| 756 | program_prefix=NONE |
---|
| 757 | program_suffix=NONE |
---|
| 758 | program_transform_name=s,x,x, |
---|
| 759 | silent= |
---|
| 760 | site= |
---|
| 761 | srcdir= |
---|
| 762 | verbose= |
---|
| 763 | x_includes=NONE |
---|
| 764 | x_libraries=NONE |
---|
| 765 | |
---|
| 766 | # Installation directory options. |
---|
| 767 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 768 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 769 | # by default will actually change. |
---|
| 770 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
[101] | 771 | # (The list follows the same order as the GNU Coding Standards.) |
---|
[14] | 772 | bindir='${exec_prefix}/bin' |
---|
| 773 | sbindir='${exec_prefix}/sbin' |
---|
| 774 | libexecdir='${exec_prefix}/libexec' |
---|
[101] | 775 | datarootdir='${prefix}/share' |
---|
| 776 | datadir='${datarootdir}' |
---|
[14] | 777 | sysconfdir='${prefix}/etc' |
---|
| 778 | sharedstatedir='${prefix}/com' |
---|
| 779 | localstatedir='${prefix}/var' |
---|
| 780 | includedir='${prefix}/include' |
---|
| 781 | oldincludedir='/usr/include' |
---|
[101] | 782 | docdir='${datarootdir}/doc/${PACKAGE}' |
---|
| 783 | infodir='${datarootdir}/info' |
---|
| 784 | htmldir='${docdir}' |
---|
| 785 | dvidir='${docdir}' |
---|
| 786 | pdfdir='${docdir}' |
---|
| 787 | psdir='${docdir}' |
---|
| 788 | libdir='${exec_prefix}/lib' |
---|
| 789 | localedir='${datarootdir}/locale' |
---|
| 790 | mandir='${datarootdir}/man' |
---|
[14] | 791 | |
---|
| 792 | ac_prev= |
---|
[101] | 793 | ac_dashdash= |
---|
[14] | 794 | for ac_option |
---|
| 795 | do |
---|
| 796 | # If the previous option needs an argument, assign it. |
---|
| 797 | if test -n "$ac_prev"; then |
---|
[101] | 798 | eval $ac_prev=\$ac_option |
---|
[14] | 799 | ac_prev= |
---|
| 800 | continue |
---|
| 801 | fi |
---|
| 802 | |
---|
[101] | 803 | case $ac_option in |
---|
| 804 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 805 | *) ac_optarg=yes ;; |
---|
| 806 | esac |
---|
[14] | 807 | |
---|
| 808 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 809 | |
---|
[101] | 810 | case $ac_dashdash$ac_option in |
---|
| 811 | --) |
---|
| 812 | ac_dashdash=yes ;; |
---|
[14] | 813 | |
---|
| 814 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 815 | ac_prev=bindir ;; |
---|
| 816 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 817 | bindir=$ac_optarg ;; |
---|
| 818 | |
---|
| 819 | -build | --build | --buil | --bui | --bu) |
---|
| 820 | ac_prev=build_alias ;; |
---|
| 821 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 822 | build_alias=$ac_optarg ;; |
---|
| 823 | |
---|
| 824 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 825 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 826 | ac_prev=cache_file ;; |
---|
| 827 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 828 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 829 | cache_file=$ac_optarg ;; |
---|
| 830 | |
---|
| 831 | --config-cache | -C) |
---|
| 832 | cache_file=config.cache ;; |
---|
| 833 | |
---|
[101] | 834 | -datadir | --datadir | --datadi | --datad) |
---|
[14] | 835 | ac_prev=datadir ;; |
---|
[101] | 836 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
[14] | 837 | datadir=$ac_optarg ;; |
---|
| 838 | |
---|
[101] | 839 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 840 | | --dataroo | --dataro | --datar) |
---|
| 841 | ac_prev=datarootdir ;; |
---|
| 842 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 843 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 844 | datarootdir=$ac_optarg ;; |
---|
| 845 | |
---|
[14] | 846 | -disable-* | --disable-*) |
---|
[101] | 847 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
[14] | 848 | # Reject names that are not valid shell variable names. |
---|
[101] | 849 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 850 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
---|
[14] | 851 | { (exit 1); exit 1; }; } |
---|
[101] | 852 | ac_useropt_orig=$ac_useropt |
---|
| 853 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 854 | case $ac_user_opts in |
---|
| 855 | *" |
---|
| 856 | "enable_$ac_useropt" |
---|
| 857 | "*) ;; |
---|
| 858 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
| 859 | ac_unrecognized_sep=', ';; |
---|
| 860 | esac |
---|
| 861 | eval enable_$ac_useropt=no ;; |
---|
[14] | 862 | |
---|
[101] | 863 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 864 | ac_prev=docdir ;; |
---|
| 865 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 866 | docdir=$ac_optarg ;; |
---|
| 867 | |
---|
| 868 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 869 | ac_prev=dvidir ;; |
---|
| 870 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 871 | dvidir=$ac_optarg ;; |
---|
| 872 | |
---|
[14] | 873 | -enable-* | --enable-*) |
---|
[101] | 874 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
[14] | 875 | # Reject names that are not valid shell variable names. |
---|
[101] | 876 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 877 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
---|
[14] | 878 | { (exit 1); exit 1; }; } |
---|
[101] | 879 | ac_useropt_orig=$ac_useropt |
---|
| 880 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 881 | case $ac_user_opts in |
---|
| 882 | *" |
---|
| 883 | "enable_$ac_useropt" |
---|
| 884 | "*) ;; |
---|
| 885 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
| 886 | ac_unrecognized_sep=', ';; |
---|
[14] | 887 | esac |
---|
[101] | 888 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
[14] | 889 | |
---|
| 890 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 891 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 892 | | --exec | --exe | --ex) |
---|
| 893 | ac_prev=exec_prefix ;; |
---|
| 894 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 895 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 896 | | --exec=* | --exe=* | --ex=*) |
---|
| 897 | exec_prefix=$ac_optarg ;; |
---|
| 898 | |
---|
| 899 | -gas | --gas | --ga | --g) |
---|
| 900 | # Obsolete; use --with-gas. |
---|
| 901 | with_gas=yes ;; |
---|
| 902 | |
---|
| 903 | -help | --help | --hel | --he | -h) |
---|
| 904 | ac_init_help=long ;; |
---|
| 905 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 906 | ac_init_help=recursive ;; |
---|
| 907 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 908 | ac_init_help=short ;; |
---|
| 909 | |
---|
| 910 | -host | --host | --hos | --ho) |
---|
| 911 | ac_prev=host_alias ;; |
---|
| 912 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 913 | host_alias=$ac_optarg ;; |
---|
| 914 | |
---|
[101] | 915 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 916 | ac_prev=htmldir ;; |
---|
| 917 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 918 | | --ht=*) |
---|
| 919 | htmldir=$ac_optarg ;; |
---|
| 920 | |
---|
[14] | 921 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 922 | | --includ | --inclu | --incl | --inc) |
---|
| 923 | ac_prev=includedir ;; |
---|
| 924 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 925 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 926 | includedir=$ac_optarg ;; |
---|
| 927 | |
---|
| 928 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 929 | ac_prev=infodir ;; |
---|
| 930 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 931 | infodir=$ac_optarg ;; |
---|
| 932 | |
---|
| 933 | -libdir | --libdir | --libdi | --libd) |
---|
| 934 | ac_prev=libdir ;; |
---|
| 935 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 936 | libdir=$ac_optarg ;; |
---|
| 937 | |
---|
| 938 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 939 | | --libexe | --libex | --libe) |
---|
| 940 | ac_prev=libexecdir ;; |
---|
| 941 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 942 | | --libexe=* | --libex=* | --libe=*) |
---|
| 943 | libexecdir=$ac_optarg ;; |
---|
| 944 | |
---|
[101] | 945 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 946 | ac_prev=localedir ;; |
---|
| 947 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 948 | localedir=$ac_optarg ;; |
---|
| 949 | |
---|
[14] | 950 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
[101] | 951 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
[14] | 952 | ac_prev=localstatedir ;; |
---|
| 953 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
[101] | 954 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
[14] | 955 | localstatedir=$ac_optarg ;; |
---|
| 956 | |
---|
| 957 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 958 | ac_prev=mandir ;; |
---|
| 959 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 960 | mandir=$ac_optarg ;; |
---|
| 961 | |
---|
| 962 | -nfp | --nfp | --nf) |
---|
| 963 | # Obsolete; use --without-fp. |
---|
| 964 | with_fp=no ;; |
---|
| 965 | |
---|
| 966 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 967 | | --no-cr | --no-c | -n) |
---|
| 968 | no_create=yes ;; |
---|
| 969 | |
---|
| 970 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 971 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 972 | no_recursion=yes ;; |
---|
| 973 | |
---|
| 974 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 975 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 976 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 977 | ac_prev=oldincludedir ;; |
---|
| 978 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 979 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 980 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 981 | oldincludedir=$ac_optarg ;; |
---|
| 982 | |
---|
| 983 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 984 | ac_prev=prefix ;; |
---|
| 985 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 986 | prefix=$ac_optarg ;; |
---|
| 987 | |
---|
| 988 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 989 | | --program-pre | --program-pr | --program-p) |
---|
| 990 | ac_prev=program_prefix ;; |
---|
| 991 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 992 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 993 | program_prefix=$ac_optarg ;; |
---|
| 994 | |
---|
| 995 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 996 | | --program-suf | --program-su | --program-s) |
---|
| 997 | ac_prev=program_suffix ;; |
---|
| 998 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 999 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 1000 | program_suffix=$ac_optarg ;; |
---|
| 1001 | |
---|
| 1002 | -program-transform-name | --program-transform-name \ |
---|
| 1003 | | --program-transform-nam | --program-transform-na \ |
---|
| 1004 | | --program-transform-n | --program-transform- \ |
---|
| 1005 | | --program-transform | --program-transfor \ |
---|
| 1006 | | --program-transfo | --program-transf \ |
---|
| 1007 | | --program-trans | --program-tran \ |
---|
| 1008 | | --progr-tra | --program-tr | --program-t) |
---|
| 1009 | ac_prev=program_transform_name ;; |
---|
| 1010 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 1011 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 1012 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 1013 | | --program-transform=* | --program-transfor=* \ |
---|
| 1014 | | --program-transfo=* | --program-transf=* \ |
---|
| 1015 | | --program-trans=* | --program-tran=* \ |
---|
| 1016 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 1017 | program_transform_name=$ac_optarg ;; |
---|
| 1018 | |
---|
[101] | 1019 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 1020 | ac_prev=pdfdir ;; |
---|
| 1021 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 1022 | pdfdir=$ac_optarg ;; |
---|
| 1023 | |
---|
| 1024 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 1025 | ac_prev=psdir ;; |
---|
| 1026 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 1027 | psdir=$ac_optarg ;; |
---|
| 1028 | |
---|
[14] | 1029 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1030 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1031 | silent=yes ;; |
---|
| 1032 | |
---|
| 1033 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 1034 | ac_prev=sbindir ;; |
---|
| 1035 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 1036 | | --sbi=* | --sb=*) |
---|
| 1037 | sbindir=$ac_optarg ;; |
---|
| 1038 | |
---|
| 1039 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 1040 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 1041 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 1042 | | --sha | --sh) |
---|
| 1043 | ac_prev=sharedstatedir ;; |
---|
| 1044 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 1045 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 1046 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 1047 | | --sha=* | --sh=*) |
---|
| 1048 | sharedstatedir=$ac_optarg ;; |
---|
| 1049 | |
---|
| 1050 | -site | --site | --sit) |
---|
| 1051 | ac_prev=site ;; |
---|
| 1052 | -site=* | --site=* | --sit=*) |
---|
| 1053 | site=$ac_optarg ;; |
---|
| 1054 | |
---|
| 1055 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1056 | ac_prev=srcdir ;; |
---|
| 1057 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1058 | srcdir=$ac_optarg ;; |
---|
| 1059 | |
---|
| 1060 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 1061 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 1062 | ac_prev=sysconfdir ;; |
---|
| 1063 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1064 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1065 | sysconfdir=$ac_optarg ;; |
---|
| 1066 | |
---|
| 1067 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1068 | ac_prev=target_alias ;; |
---|
| 1069 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1070 | target_alias=$ac_optarg ;; |
---|
| 1071 | |
---|
| 1072 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1073 | verbose=yes ;; |
---|
| 1074 | |
---|
| 1075 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1076 | ac_init_version=: ;; |
---|
| 1077 | |
---|
| 1078 | -with-* | --with-*) |
---|
[101] | 1079 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
[14] | 1080 | # Reject names that are not valid shell variable names. |
---|
[101] | 1081 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1082 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
---|
[14] | 1083 | { (exit 1); exit 1; }; } |
---|
[101] | 1084 | ac_useropt_orig=$ac_useropt |
---|
| 1085 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1086 | case $ac_user_opts in |
---|
| 1087 | *" |
---|
| 1088 | "with_$ac_useropt" |
---|
| 1089 | "*) ;; |
---|
| 1090 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
| 1091 | ac_unrecognized_sep=', ';; |
---|
[14] | 1092 | esac |
---|
[101] | 1093 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
[14] | 1094 | |
---|
| 1095 | -without-* | --without-*) |
---|
[101] | 1096 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
[14] | 1097 | # Reject names that are not valid shell variable names. |
---|
[101] | 1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1099 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
---|
[14] | 1100 | { (exit 1); exit 1; }; } |
---|
[101] | 1101 | ac_useropt_orig=$ac_useropt |
---|
| 1102 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1103 | case $ac_user_opts in |
---|
| 1104 | *" |
---|
| 1105 | "with_$ac_useropt" |
---|
| 1106 | "*) ;; |
---|
| 1107 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
| 1108 | ac_unrecognized_sep=', ';; |
---|
| 1109 | esac |
---|
| 1110 | eval with_$ac_useropt=no ;; |
---|
[14] | 1111 | |
---|
| 1112 | --x) |
---|
| 1113 | # Obsolete; use --with-x. |
---|
| 1114 | with_x=yes ;; |
---|
| 1115 | |
---|
| 1116 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1117 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1118 | ac_prev=x_includes ;; |
---|
| 1119 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1120 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1121 | x_includes=$ac_optarg ;; |
---|
| 1122 | |
---|
| 1123 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1124 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1125 | ac_prev=x_libraries ;; |
---|
| 1126 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1127 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1128 | x_libraries=$ac_optarg ;; |
---|
| 1129 | |
---|
[101] | 1130 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
---|
[14] | 1131 | Try \`$0 --help' for more information." >&2 |
---|
| 1132 | { (exit 1); exit 1; }; } |
---|
| 1133 | ;; |
---|
| 1134 | |
---|
| 1135 | *=*) |
---|
| 1136 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1137 | # Reject names that are not valid shell variable names. |
---|
| 1138 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
[101] | 1139 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
[14] | 1140 | { (exit 1); exit 1; }; } |
---|
[101] | 1141 | eval $ac_envvar=\$ac_optarg |
---|
[14] | 1142 | export $ac_envvar ;; |
---|
| 1143 | |
---|
| 1144 | *) |
---|
| 1145 | # FIXME: should be removed in autoconf 3.0. |
---|
[101] | 1146 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
[14] | 1147 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[101] | 1148 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
[14] | 1149 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 1150 | ;; |
---|
| 1151 | |
---|
| 1152 | esac |
---|
| 1153 | done |
---|
| 1154 | |
---|
| 1155 | if test -n "$ac_prev"; then |
---|
| 1156 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
[101] | 1157 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
[14] | 1158 | { (exit 1); exit 1; }; } |
---|
| 1159 | fi |
---|
| 1160 | |
---|
[101] | 1161 | if test -n "$ac_unrecognized_opts"; then |
---|
| 1162 | case $enable_option_checking in |
---|
| 1163 | no) ;; |
---|
| 1164 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
---|
| 1165 | { (exit 1); exit 1; }; } ;; |
---|
| 1166 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
[14] | 1167 | esac |
---|
[101] | 1168 | fi |
---|
[14] | 1169 | |
---|
[101] | 1170 | # Check all directory arguments for consistency. |
---|
| 1171 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1172 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1173 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1174 | libdir localedir mandir |
---|
[14] | 1175 | do |
---|
[101] | 1176 | eval ac_val=\$$ac_var |
---|
| 1177 | # Remove trailing slashes. |
---|
[14] | 1178 | case $ac_val in |
---|
[101] | 1179 | */ ) |
---|
| 1180 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
| 1181 | eval $ac_var=\$ac_val;; |
---|
[14] | 1182 | esac |
---|
[101] | 1183 | # Be sure to have absolute directory names. |
---|
| 1184 | case $ac_val in |
---|
| 1185 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1186 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
| 1187 | esac |
---|
| 1188 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 1189 | { (exit 1); exit 1; }; } |
---|
[14] | 1190 | done |
---|
| 1191 | |
---|
| 1192 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1193 | # used to hold the argument of --host etc. |
---|
| 1194 | # FIXME: To remove some day. |
---|
| 1195 | build=$build_alias |
---|
| 1196 | host=$host_alias |
---|
| 1197 | target=$target_alias |
---|
| 1198 | |
---|
| 1199 | # FIXME: To remove some day. |
---|
| 1200 | if test "x$host_alias" != x; then |
---|
| 1201 | if test "x$build_alias" = x; then |
---|
| 1202 | cross_compiling=maybe |
---|
[101] | 1203 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
[14] | 1204 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 1205 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1206 | cross_compiling=yes |
---|
| 1207 | fi |
---|
| 1208 | fi |
---|
| 1209 | |
---|
| 1210 | ac_tool_prefix= |
---|
| 1211 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1212 | |
---|
| 1213 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1214 | |
---|
| 1215 | |
---|
[101] | 1216 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1217 | ac_ls_di=`ls -di .` && |
---|
| 1218 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1219 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
---|
| 1220 | { (exit 1); exit 1; }; } |
---|
| 1221 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1222 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
| 1223 | { (exit 1); exit 1; }; } |
---|
| 1224 | |
---|
| 1225 | |
---|
[14] | 1226 | # Find the source files, if location was not specified. |
---|
| 1227 | if test -z "$srcdir"; then |
---|
| 1228 | ac_srcdir_defaulted=yes |
---|
[101] | 1229 | # Try the directory containing this script, then the parent directory. |
---|
| 1230 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
| 1231 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1232 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
| 1233 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
| 1234 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1235 | $as_echo X"$as_myself" | |
---|
| 1236 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1237 | s//\1/ |
---|
| 1238 | q |
---|
| 1239 | } |
---|
| 1240 | /^X\(\/\/\)[^/].*/{ |
---|
| 1241 | s//\1/ |
---|
| 1242 | q |
---|
| 1243 | } |
---|
| 1244 | /^X\(\/\/\)$/{ |
---|
| 1245 | s//\1/ |
---|
| 1246 | q |
---|
| 1247 | } |
---|
| 1248 | /^X\(\/\).*/{ |
---|
| 1249 | s//\1/ |
---|
| 1250 | q |
---|
| 1251 | } |
---|
| 1252 | s/.*/./; q'` |
---|
[14] | 1253 | srcdir=$ac_confdir |
---|
[101] | 1254 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
[14] | 1255 | srcdir=.. |
---|
| 1256 | fi |
---|
| 1257 | else |
---|
| 1258 | ac_srcdir_defaulted=no |
---|
| 1259 | fi |
---|
[101] | 1260 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1261 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1262 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
[14] | 1263 | { (exit 1); exit 1; }; } |
---|
[101] | 1264 | fi |
---|
| 1265 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1266 | ac_abs_confdir=`( |
---|
| 1267 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
---|
[14] | 1268 | { (exit 1); exit 1; }; } |
---|
[101] | 1269 | pwd)` |
---|
| 1270 | # When building in place, set srcdir=. |
---|
| 1271 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1272 | srcdir=. |
---|
[14] | 1273 | fi |
---|
[101] | 1274 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1275 | # Double slashes in file names in object file debugging info |
---|
| 1276 | # mess up M-x gdb in Emacs. |
---|
| 1277 | case $srcdir in |
---|
| 1278 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1279 | esac |
---|
| 1280 | for ac_var in $ac_precious_vars; do |
---|
| 1281 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1282 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1283 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1284 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1285 | done |
---|
[14] | 1286 | |
---|
| 1287 | # |
---|
| 1288 | # Report the --help message. |
---|
| 1289 | # |
---|
| 1290 | if test "$ac_init_help" = "long"; then |
---|
| 1291 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1292 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1293 | cat <<_ACEOF |
---|
| 1294 | \`configure' configures this package to adapt to many kinds of systems. |
---|
| 1295 | |
---|
| 1296 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1297 | |
---|
| 1298 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1299 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1300 | |
---|
| 1301 | Defaults for the options are specified in brackets. |
---|
| 1302 | |
---|
| 1303 | Configuration: |
---|
| 1304 | -h, --help display this help and exit |
---|
| 1305 | --help=short display options specific to this package |
---|
| 1306 | --help=recursive display the short help of all the included packages |
---|
| 1307 | -V, --version display version information and exit |
---|
| 1308 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 1309 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1310 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1311 | -n, --no-create do not create output files |
---|
| 1312 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1313 | |
---|
| 1314 | Installation directories: |
---|
| 1315 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1316 | [$ac_default_prefix] |
---|
| 1317 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1318 | [PREFIX] |
---|
| 1319 | |
---|
| 1320 | By default, \`make install' will install all the files in |
---|
| 1321 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1322 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1323 | for instance \`--prefix=\$HOME'. |
---|
| 1324 | |
---|
| 1325 | For better control, use the options below. |
---|
| 1326 | |
---|
| 1327 | Fine tuning of the installation directories: |
---|
[101] | 1328 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1329 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1330 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1331 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1332 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1333 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1334 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1335 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1336 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1337 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1338 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1339 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1340 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1341 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1342 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
---|
| 1343 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1344 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1345 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1346 | --psdir=DIR ps documentation [DOCDIR] |
---|
[14] | 1347 | _ACEOF |
---|
| 1348 | |
---|
| 1349 | cat <<\_ACEOF |
---|
| 1350 | |
---|
| 1351 | System types: |
---|
| 1352 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 1353 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 1354 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
| 1355 | _ACEOF |
---|
| 1356 | fi |
---|
| 1357 | |
---|
| 1358 | if test -n "$ac_init_help"; then |
---|
| 1359 | |
---|
| 1360 | cat <<\_ACEOF |
---|
| 1361 | |
---|
| 1362 | Optional Features: |
---|
[101] | 1363 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
[14] | 1364 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 1365 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 1366 | --enable-gcc Allow use of gcc if available |
---|
| 1367 | --enable-64 Use 64-bit pointers on 64-bit Alpha machines |
---|
| 1368 | |
---|
| 1369 | Optional Packages: |
---|
| 1370 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1371 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 1372 | --with-glu-libdir=<libdir> Specify directories to search for the GLU library. |
---|
| 1373 | Expects to find <libdir>/libglu.a |
---|
| 1374 | --with-glu-incdir=<incdir> Specify directories to search for the GLU headers |
---|
| 1375 | --with-vis-libdir=<libdir> Specify directories to search for the VIS |
---|
| 1376 | and headers. Defaults to \".\". |
---|
| 1377 | Expects to find <libdir>/libvis.a |
---|
| 1378 | --with-local-srcdir=<srcdir> Specify the root directory to search for |
---|
| 1379 | source for packages (the PKGS list). |
---|
| 1380 | Expects to find, e.g., <srcdir>/tbl/tbl.c |
---|
| 1381 | --with-bdd=<bddPackage> Specify the BDD library to link against. |
---|
| 1382 | Defaults to --with-bdd=cu. |
---|
| 1383 | --with-comp-mode=<mode> Specify a special compilation mode: |
---|
| 1384 | optimize (the default): Produce optimized |
---|
| 1385 | code, with symbol table information |
---|
| 1386 | if supported on the platform/compiler, |
---|
| 1387 | and without asserts. |
---|
| 1388 | debug: Produce unoptimized code with symbol table |
---|
| 1389 | information and asserts enabled |
---|
| 1390 | purify: Unoptimized code linked with purify |
---|
| 1391 | quantify: Optimized code without asserts |
---|
| 1392 | linked with quantify |
---|
| 1393 | |
---|
| 1394 | Some influential environment variables: |
---|
| 1395 | CC C compiler command |
---|
| 1396 | CFLAGS C compiler flags |
---|
| 1397 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1398 | nonstandard directory <lib dir> |
---|
[101] | 1399 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 1400 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
| 1401 | you have headers in a nonstandard directory <include dir> |
---|
| 1402 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
---|
| 1403 | the first program found out of: `bison -y', `byacc', `yacc'. |
---|
| 1404 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
| 1405 | This script will default YFLAGS to the empty string to avoid a |
---|
| 1406 | default value of `-d' given by some make applications. |
---|
[14] | 1407 | CPP C preprocessor |
---|
| 1408 | |
---|
| 1409 | Use these variables to override the choices made by `configure' or to help |
---|
| 1410 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1411 | |
---|
| 1412 | _ACEOF |
---|
[101] | 1413 | ac_status=$? |
---|
[14] | 1414 | fi |
---|
| 1415 | |
---|
| 1416 | if test "$ac_init_help" = "recursive"; then |
---|
| 1417 | # If there are subdirs, report their specific --help. |
---|
| 1418 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
[101] | 1419 | test -d "$ac_dir" || |
---|
| 1420 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
| 1421 | continue |
---|
[14] | 1422 | ac_builddir=. |
---|
| 1423 | |
---|
[101] | 1424 | case "$ac_dir" in |
---|
| 1425 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1426 | *) |
---|
| 1427 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 1428 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1429 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 1430 | case $ac_top_builddir_sub in |
---|
| 1431 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1432 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1433 | esac ;; |
---|
| 1434 | esac |
---|
| 1435 | ac_abs_top_builddir=$ac_pwd |
---|
| 1436 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1437 | # for backward compatibility: |
---|
| 1438 | ac_top_builddir=$ac_top_build_prefix |
---|
[14] | 1439 | |
---|
| 1440 | case $srcdir in |
---|
[101] | 1441 | .) # We are building in place. |
---|
[14] | 1442 | ac_srcdir=. |
---|
[101] | 1443 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1444 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1445 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[14] | 1446 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[101] | 1447 | ac_top_srcdir=$srcdir |
---|
| 1448 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1449 | *) # Relative name. |
---|
| 1450 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1451 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1452 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[14] | 1453 | esac |
---|
[101] | 1454 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[14] | 1455 | |
---|
[101] | 1456 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1457 | # Check for guested configure. |
---|
| 1458 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1459 | echo && |
---|
| 1460 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1461 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1462 | echo && |
---|
| 1463 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
[14] | 1464 | else |
---|
[101] | 1465 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 1466 | fi || ac_status=$? |
---|
| 1467 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
[14] | 1468 | done |
---|
| 1469 | fi |
---|
| 1470 | |
---|
[101] | 1471 | test -n "$ac_init_help" && exit $ac_status |
---|
[14] | 1472 | if $ac_init_version; then |
---|
| 1473 | cat <<\_ACEOF |
---|
[101] | 1474 | configure |
---|
| 1475 | generated by GNU Autoconf 2.63 |
---|
[14] | 1476 | |
---|
[101] | 1477 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 1478 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
---|
[14] | 1479 | This configure script is free software; the Free Software Foundation |
---|
| 1480 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1481 | _ACEOF |
---|
[101] | 1482 | exit |
---|
[14] | 1483 | fi |
---|
[101] | 1484 | cat >config.log <<_ACEOF |
---|
[14] | 1485 | This file contains any messages produced by compilers while |
---|
| 1486 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1487 | |
---|
| 1488 | It was created by $as_me, which was |
---|
[101] | 1489 | generated by GNU Autoconf 2.63. Invocation command line was |
---|
[14] | 1490 | |
---|
| 1491 | $ $0 $@ |
---|
| 1492 | |
---|
| 1493 | _ACEOF |
---|
[101] | 1494 | exec 5>>config.log |
---|
[14] | 1495 | { |
---|
| 1496 | cat <<_ASUNAME |
---|
| 1497 | ## --------- ## |
---|
| 1498 | ## Platform. ## |
---|
| 1499 | ## --------- ## |
---|
| 1500 | |
---|
| 1501 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1502 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1503 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1504 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1505 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1506 | |
---|
| 1507 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1508 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1509 | |
---|
| 1510 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1511 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1512 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
[101] | 1513 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
[14] | 1514 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1515 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1516 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1517 | |
---|
| 1518 | _ASUNAME |
---|
| 1519 | |
---|
| 1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1521 | for as_dir in $PATH |
---|
| 1522 | do |
---|
| 1523 | IFS=$as_save_IFS |
---|
| 1524 | test -z "$as_dir" && as_dir=. |
---|
[101] | 1525 | $as_echo "PATH: $as_dir" |
---|
[14] | 1526 | done |
---|
[101] | 1527 | IFS=$as_save_IFS |
---|
[14] | 1528 | |
---|
| 1529 | } >&5 |
---|
| 1530 | |
---|
| 1531 | cat >&5 <<_ACEOF |
---|
| 1532 | |
---|
| 1533 | |
---|
| 1534 | ## ----------- ## |
---|
| 1535 | ## Core tests. ## |
---|
| 1536 | ## ----------- ## |
---|
| 1537 | |
---|
| 1538 | _ACEOF |
---|
| 1539 | |
---|
| 1540 | |
---|
| 1541 | # Keep a trace of the command line. |
---|
| 1542 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1543 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1544 | # Also quote any args containing shell meta-characters. |
---|
| 1545 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1546 | ac_configure_args= |
---|
| 1547 | ac_configure_args0= |
---|
| 1548 | ac_configure_args1= |
---|
| 1549 | ac_must_keep_next=false |
---|
| 1550 | for ac_pass in 1 2 |
---|
| 1551 | do |
---|
| 1552 | for ac_arg |
---|
| 1553 | do |
---|
| 1554 | case $ac_arg in |
---|
| 1555 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1556 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1557 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1558 | continue ;; |
---|
[101] | 1559 | *\'*) |
---|
| 1560 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[14] | 1561 | esac |
---|
| 1562 | case $ac_pass in |
---|
| 1563 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1564 | 2) |
---|
| 1565 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1566 | if test $ac_must_keep_next = true; then |
---|
[101] | 1567 | ac_must_keep_next=false # Got value, back to normal. |
---|
[14] | 1568 | else |
---|
[101] | 1569 | case $ac_arg in |
---|
| 1570 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1571 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1572 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1573 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1574 | case "$ac_configure_args0 " in |
---|
| 1575 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1576 | esac |
---|
| 1577 | ;; |
---|
| 1578 | -* ) ac_must_keep_next=true ;; |
---|
| 1579 | esac |
---|
[14] | 1580 | fi |
---|
[101] | 1581 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
[14] | 1582 | ;; |
---|
| 1583 | esac |
---|
| 1584 | done |
---|
| 1585 | done |
---|
| 1586 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1587 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1588 | |
---|
| 1589 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1590 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1591 | # would cause problems or look ugly. |
---|
[101] | 1592 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 1593 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
[14] | 1594 | trap 'exit_status=$? |
---|
| 1595 | # Save into config.log some information that might help in debugging. |
---|
| 1596 | { |
---|
| 1597 | echo |
---|
| 1598 | |
---|
| 1599 | cat <<\_ASBOX |
---|
| 1600 | ## ---------------- ## |
---|
| 1601 | ## Cache variables. ## |
---|
| 1602 | ## ---------------- ## |
---|
| 1603 | _ASBOX |
---|
| 1604 | echo |
---|
| 1605 | # The following way of writing the cache mishandles newlines in values, |
---|
[101] | 1606 | ( |
---|
| 1607 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 1608 | eval ac_val=\$$ac_var |
---|
| 1609 | case $ac_val in #( |
---|
| 1610 | *${as_nl}*) |
---|
| 1611 | case $ac_var in #( |
---|
| 1612 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 1613 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 1614 | esac |
---|
| 1615 | case $ac_var in #( |
---|
| 1616 | _ | IFS | as_nl) ;; #( |
---|
| 1617 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 1618 | *) $as_unset $ac_var ;; |
---|
| 1619 | esac ;; |
---|
| 1620 | esac |
---|
| 1621 | done |
---|
[14] | 1622 | (set) 2>&1 | |
---|
[101] | 1623 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 1624 | *${as_nl}ac_space=\ *) |
---|
[14] | 1625 | sed -n \ |
---|
[101] | 1626 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 1627 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 1628 | ;; #( |
---|
[14] | 1629 | *) |
---|
[101] | 1630 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[14] | 1631 | ;; |
---|
[101] | 1632 | esac | |
---|
| 1633 | sort |
---|
| 1634 | ) |
---|
[14] | 1635 | echo |
---|
| 1636 | |
---|
| 1637 | cat <<\_ASBOX |
---|
| 1638 | ## ----------------- ## |
---|
| 1639 | ## Output variables. ## |
---|
| 1640 | ## ----------------- ## |
---|
| 1641 | _ASBOX |
---|
| 1642 | echo |
---|
| 1643 | for ac_var in $ac_subst_vars |
---|
| 1644 | do |
---|
[101] | 1645 | eval ac_val=\$$ac_var |
---|
| 1646 | case $ac_val in |
---|
| 1647 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1648 | esac |
---|
| 1649 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
[14] | 1650 | done | sort |
---|
| 1651 | echo |
---|
| 1652 | |
---|
| 1653 | if test -n "$ac_subst_files"; then |
---|
| 1654 | cat <<\_ASBOX |
---|
[101] | 1655 | ## ------------------- ## |
---|
| 1656 | ## File substitutions. ## |
---|
| 1657 | ## ------------------- ## |
---|
[14] | 1658 | _ASBOX |
---|
| 1659 | echo |
---|
| 1660 | for ac_var in $ac_subst_files |
---|
| 1661 | do |
---|
[101] | 1662 | eval ac_val=\$$ac_var |
---|
| 1663 | case $ac_val in |
---|
| 1664 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1665 | esac |
---|
| 1666 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
[14] | 1667 | done | sort |
---|
| 1668 | echo |
---|
| 1669 | fi |
---|
| 1670 | |
---|
| 1671 | if test -s confdefs.h; then |
---|
| 1672 | cat <<\_ASBOX |
---|
| 1673 | ## ----------- ## |
---|
| 1674 | ## confdefs.h. ## |
---|
| 1675 | ## ----------- ## |
---|
| 1676 | _ASBOX |
---|
| 1677 | echo |
---|
[101] | 1678 | cat confdefs.h |
---|
[14] | 1679 | echo |
---|
| 1680 | fi |
---|
| 1681 | test "$ac_signal" != 0 && |
---|
[101] | 1682 | $as_echo "$as_me: caught signal $ac_signal" |
---|
| 1683 | $as_echo "$as_me: exit $exit_status" |
---|
[14] | 1684 | } >&5 |
---|
[101] | 1685 | rm -f core *.core core.conftest.* && |
---|
| 1686 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
[14] | 1687 | exit $exit_status |
---|
[101] | 1688 | ' 0 |
---|
[14] | 1689 | for ac_signal in 1 2 13 15; do |
---|
| 1690 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1691 | done |
---|
| 1692 | ac_signal=0 |
---|
| 1693 | |
---|
| 1694 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
[101] | 1695 | rm -f -r conftest* confdefs.h |
---|
[14] | 1696 | |
---|
| 1697 | # Predefined preprocessor variables. |
---|
| 1698 | |
---|
| 1699 | cat >>confdefs.h <<_ACEOF |
---|
| 1700 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1701 | _ACEOF |
---|
| 1702 | |
---|
| 1703 | |
---|
| 1704 | cat >>confdefs.h <<_ACEOF |
---|
| 1705 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1706 | _ACEOF |
---|
| 1707 | |
---|
| 1708 | |
---|
| 1709 | cat >>confdefs.h <<_ACEOF |
---|
| 1710 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1711 | _ACEOF |
---|
| 1712 | |
---|
| 1713 | |
---|
| 1714 | cat >>confdefs.h <<_ACEOF |
---|
| 1715 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1716 | _ACEOF |
---|
| 1717 | |
---|
| 1718 | |
---|
| 1719 | cat >>confdefs.h <<_ACEOF |
---|
| 1720 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1721 | _ACEOF |
---|
| 1722 | |
---|
| 1723 | |
---|
| 1724 | # Let the site file select an alternate cache file if it wants to. |
---|
[101] | 1725 | # Prefer an explicitly selected file to automatically selected ones. |
---|
| 1726 | ac_site_file1=NONE |
---|
| 1727 | ac_site_file2=NONE |
---|
| 1728 | if test -n "$CONFIG_SITE"; then |
---|
| 1729 | ac_site_file1=$CONFIG_SITE |
---|
| 1730 | elif test "x$prefix" != xNONE; then |
---|
| 1731 | ac_site_file1=$prefix/share/config.site |
---|
| 1732 | ac_site_file2=$prefix/etc/config.site |
---|
| 1733 | else |
---|
| 1734 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
| 1735 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
[14] | 1736 | fi |
---|
[101] | 1737 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
| 1738 | do |
---|
| 1739 | test "x$ac_site_file" = xNONE && continue |
---|
[14] | 1740 | if test -r "$ac_site_file"; then |
---|
[101] | 1741 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1742 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
[14] | 1743 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1744 | . "$ac_site_file" |
---|
| 1745 | fi |
---|
| 1746 | done |
---|
| 1747 | |
---|
| 1748 | if test -r "$cache_file"; then |
---|
| 1749 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1750 | # files actually), so we avoid doing that. |
---|
| 1751 | if test -f "$cache_file"; then |
---|
[101] | 1752 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1753 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
[14] | 1754 | case $cache_file in |
---|
[101] | 1755 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 1756 | *) . "./$cache_file";; |
---|
[14] | 1757 | esac |
---|
| 1758 | fi |
---|
| 1759 | else |
---|
[101] | 1760 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1761 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
[14] | 1762 | >$cache_file |
---|
| 1763 | fi |
---|
| 1764 | |
---|
| 1765 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1766 | # value. |
---|
| 1767 | ac_cache_corrupted=false |
---|
[101] | 1768 | for ac_var in $ac_precious_vars; do |
---|
[14] | 1769 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1770 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
[101] | 1771 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 1772 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
[14] | 1773 | case $ac_old_set,$ac_new_set in |
---|
| 1774 | set,) |
---|
[101] | 1775 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1776 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
[14] | 1777 | ac_cache_corrupted=: ;; |
---|
| 1778 | ,set) |
---|
[101] | 1779 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1780 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
[14] | 1781 | ac_cache_corrupted=: ;; |
---|
| 1782 | ,);; |
---|
| 1783 | *) |
---|
| 1784 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
[101] | 1785 | # differences in whitespace do not lead to failure. |
---|
| 1786 | ac_old_val_w=`echo x $ac_old_val` |
---|
| 1787 | ac_new_val_w=`echo x $ac_new_val` |
---|
| 1788 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
| 1789 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1790 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1791 | ac_cache_corrupted=: |
---|
| 1792 | else |
---|
| 1793 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
| 1794 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
| 1795 | eval $ac_var=\$ac_old_val |
---|
| 1796 | fi |
---|
| 1797 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
---|
| 1798 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
| 1799 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
---|
| 1800 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
[14] | 1801 | fi;; |
---|
| 1802 | esac |
---|
| 1803 | # Pass precious variables to config.status. |
---|
| 1804 | if test "$ac_new_set" = set; then |
---|
| 1805 | case $ac_new_val in |
---|
[101] | 1806 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[14] | 1807 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1808 | esac |
---|
| 1809 | case " $ac_configure_args " in |
---|
| 1810 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1811 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1812 | esac |
---|
| 1813 | fi |
---|
| 1814 | done |
---|
| 1815 | if $ac_cache_corrupted; then |
---|
[101] | 1816 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 1817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 1818 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1819 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1820 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1821 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
[14] | 1822 | { (exit 1); exit 1; }; } |
---|
| 1823 | fi |
---|
| 1824 | |
---|
| 1825 | |
---|
| 1826 | |
---|
| 1827 | |
---|
| 1828 | |
---|
| 1829 | |
---|
| 1830 | |
---|
| 1831 | |
---|
| 1832 | |
---|
| 1833 | |
---|
| 1834 | |
---|
| 1835 | |
---|
| 1836 | |
---|
| 1837 | |
---|
| 1838 | |
---|
| 1839 | |
---|
| 1840 | |
---|
[101] | 1841 | ac_ext=c |
---|
| 1842 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[14] | 1846 | |
---|
| 1847 | |
---|
| 1848 | |
---|
| 1849 | # Look for install.sh, config.guess, and config.sub in the "helpers" dir |
---|
| 1850 | ac_aux_dir= |
---|
[101] | 1851 | for ac_dir in helpers "$srcdir"/helpers; do |
---|
| 1852 | if test -f "$ac_dir/install-sh"; then |
---|
[14] | 1853 | ac_aux_dir=$ac_dir |
---|
| 1854 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1855 | break |
---|
[101] | 1856 | elif test -f "$ac_dir/install.sh"; then |
---|
[14] | 1857 | ac_aux_dir=$ac_dir |
---|
| 1858 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1859 | break |
---|
[101] | 1860 | elif test -f "$ac_dir/shtool"; then |
---|
[14] | 1861 | ac_aux_dir=$ac_dir |
---|
| 1862 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1863 | break |
---|
| 1864 | fi |
---|
| 1865 | done |
---|
| 1866 | if test -z "$ac_aux_dir"; then |
---|
[101] | 1867 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers \"$srcdir\"/helpers" >&5 |
---|
| 1868 | $as_echo "$as_me: error: cannot find install-sh or install.sh in helpers \"$srcdir\"/helpers" >&2;} |
---|
[14] | 1869 | { (exit 1); exit 1; }; } |
---|
| 1870 | fi |
---|
| 1871 | |
---|
[101] | 1872 | # These three variables are undocumented and unsupported, |
---|
| 1873 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 1874 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 1875 | # whose full name contains unusual characters. |
---|
| 1876 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
| 1877 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
| 1878 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
[14] | 1879 | |
---|
[101] | 1880 | |
---|
| 1881 | |
---|
[14] | 1882 | #---------------------------------------------------------------------- |
---|
| 1883 | # Configuration options |
---|
| 1884 | #---------------------------------------------------------------------- |
---|
| 1885 | |
---|
| 1886 | # Give the configurer a chance to set the location of the GLU tree |
---|
| 1887 | |
---|
| 1888 | |
---|
| 1889 | |
---|
[101] | 1890 | # Check whether --with-glu-libdir was given. |
---|
[14] | 1891 | if test "${with_glu_libdir+set}" = set; then |
---|
[101] | 1892 | withval=$with_glu_libdir; glulibdir=$withval |
---|
[14] | 1893 | else |
---|
| 1894 | glulibdir="" |
---|
[101] | 1895 | fi |
---|
[14] | 1896 | |
---|
| 1897 | |
---|
| 1898 | |
---|
[101] | 1899 | |
---|
| 1900 | # Check whether --with-glu-incdir was given. |
---|
[14] | 1901 | if test "${with_glu_incdir+set}" = set; then |
---|
[101] | 1902 | withval=$with_glu_incdir; gluincdir=$withval |
---|
[14] | 1903 | else |
---|
| 1904 | gluincdir="" |
---|
[101] | 1905 | fi |
---|
[14] | 1906 | |
---|
[101] | 1907 | |
---|
[14] | 1908 | # Give the configurer a chance to set a different location for the VIS |
---|
| 1909 | # headers and library |
---|
| 1910 | |
---|
| 1911 | |
---|
| 1912 | |
---|
[101] | 1913 | # Check whether --with-vis-libdir was given. |
---|
[14] | 1914 | if test "${with_vis_libdir+set}" = set; then |
---|
[101] | 1915 | withval=$with_vis_libdir; vislibdir=$withval |
---|
[14] | 1916 | else |
---|
| 1917 | vislibdir="." |
---|
[101] | 1918 | fi |
---|
[14] | 1919 | |
---|
[101] | 1920 | |
---|
[14] | 1921 | # Give the configurer a chance to set a different location for the VIS |
---|
| 1922 | # source. When specified, "srcdir" points to "master" source, and |
---|
| 1923 | # "local_srcdir" points to the source under local development. |
---|
| 1924 | |
---|
| 1925 | |
---|
| 1926 | |
---|
[101] | 1927 | # Check whether --with-local-srcdir was given. |
---|
[14] | 1928 | if test "${with_local_srcdir+set}" = set; then |
---|
[101] | 1929 | withval=$with_local_srcdir; local_srcdir=$withval |
---|
[14] | 1930 | else |
---|
| 1931 | local_srcdir=$srcdir |
---|
[101] | 1932 | fi |
---|
[14] | 1933 | |
---|
[101] | 1934 | |
---|
[14] | 1935 | # Give the configurer a chance to set the BDD library |
---|
| 1936 | |
---|
| 1937 | |
---|
| 1938 | |
---|
[101] | 1939 | # Check whether --with-bdd was given. |
---|
[14] | 1940 | if test "${with_bdd+set}" = set; then |
---|
[101] | 1941 | withval=$with_bdd; BDDLIB=$withval |
---|
[14] | 1942 | else |
---|
| 1943 | BDDLIB=cu |
---|
[101] | 1944 | fi |
---|
[14] | 1945 | |
---|
[101] | 1946 | |
---|
[14] | 1947 | #---------------------------------------------------------------------- |
---|
| 1948 | # Checks for programs we need |
---|
| 1949 | #---------------------------------------------------------------------- |
---|
| 1950 | # Extract the first word of "zchaff", so it can be a program name with args. |
---|
| 1951 | set dummy zchaff; ac_word=$2 |
---|
[101] | 1952 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1953 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 1954 | if test "${ac_cv_path_ZCHAFF+set}" = set; then |
---|
[101] | 1955 | $as_echo_n "(cached) " >&6 |
---|
[14] | 1956 | else |
---|
| 1957 | case $ZCHAFF in |
---|
| 1958 | [\\/]* | ?:[\\/]*) |
---|
| 1959 | ac_cv_path_ZCHAFF="$ZCHAFF" # Let the user override the test with a path. |
---|
| 1960 | ;; |
---|
| 1961 | *) |
---|
| 1962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1963 | for as_dir in $PATH |
---|
| 1964 | do |
---|
| 1965 | IFS=$as_save_IFS |
---|
| 1966 | test -z "$as_dir" && as_dir=. |
---|
| 1967 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 1968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 1969 | ac_cv_path_ZCHAFF="$as_dir/$ac_word$ac_exec_ext" |
---|
[101] | 1970 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 1971 | break 2 |
---|
| 1972 | fi |
---|
| 1973 | done |
---|
| 1974 | done |
---|
[101] | 1975 | IFS=$as_save_IFS |
---|
[14] | 1976 | |
---|
| 1977 | ;; |
---|
| 1978 | esac |
---|
| 1979 | fi |
---|
| 1980 | ZCHAFF=$ac_cv_path_ZCHAFF |
---|
| 1981 | if test -n "$ZCHAFF"; then |
---|
[101] | 1982 | { $as_echo "$as_me:$LINENO: result: $ZCHAFF" >&5 |
---|
| 1983 | $as_echo "$ZCHAFF" >&6; } |
---|
[14] | 1984 | else |
---|
[101] | 1985 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1986 | $as_echo "no" >&6; } |
---|
[14] | 1987 | fi |
---|
| 1988 | |
---|
[101] | 1989 | |
---|
[14] | 1990 | # Extract the first word of "ar", so it can be a program name with args. |
---|
| 1991 | set dummy ar; ac_word=$2 |
---|
[101] | 1992 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1993 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 1994 | if test "${ac_cv_path_AR+set}" = set; then |
---|
[101] | 1995 | $as_echo_n "(cached) " >&6 |
---|
[14] | 1996 | else |
---|
| 1997 | case $AR in |
---|
| 1998 | [\\/]* | ?:[\\/]*) |
---|
| 1999 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
| 2000 | ;; |
---|
| 2001 | *) |
---|
| 2002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2003 | for as_dir in $PATH |
---|
| 2004 | do |
---|
| 2005 | IFS=$as_save_IFS |
---|
| 2006 | test -z "$as_dir" && as_dir=. |
---|
| 2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2009 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
[101] | 2010 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2011 | break 2 |
---|
| 2012 | fi |
---|
| 2013 | done |
---|
| 2014 | done |
---|
[101] | 2015 | IFS=$as_save_IFS |
---|
[14] | 2016 | |
---|
| 2017 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
| 2018 | ;; |
---|
| 2019 | esac |
---|
| 2020 | fi |
---|
| 2021 | AR=$ac_cv_path_AR |
---|
| 2022 | if test -n "$AR"; then |
---|
[101] | 2023 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
---|
| 2024 | $as_echo "$AR" >&6; } |
---|
[14] | 2025 | else |
---|
[101] | 2026 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2027 | $as_echo "no" >&6; } |
---|
[14] | 2028 | fi |
---|
| 2029 | |
---|
[101] | 2030 | |
---|
[14] | 2031 | if test -n "$ac_tool_prefix"; then |
---|
| 2032 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2033 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
[101] | 2034 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2035 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2036 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
[101] | 2037 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2038 | else |
---|
| 2039 | if test -n "$RANLIB"; then |
---|
| 2040 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2041 | else |
---|
| 2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2043 | for as_dir in $PATH |
---|
| 2044 | do |
---|
| 2045 | IFS=$as_save_IFS |
---|
| 2046 | test -z "$as_dir" && as_dir=. |
---|
| 2047 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2049 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
[101] | 2050 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2051 | break 2 |
---|
| 2052 | fi |
---|
| 2053 | done |
---|
| 2054 | done |
---|
[101] | 2055 | IFS=$as_save_IFS |
---|
[14] | 2056 | |
---|
| 2057 | fi |
---|
| 2058 | fi |
---|
| 2059 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2060 | if test -n "$RANLIB"; then |
---|
[101] | 2061 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2062 | $as_echo "$RANLIB" >&6; } |
---|
[14] | 2063 | else |
---|
[101] | 2064 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2065 | $as_echo "no" >&6; } |
---|
[14] | 2066 | fi |
---|
| 2067 | |
---|
[101] | 2068 | |
---|
[14] | 2069 | fi |
---|
| 2070 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2071 | ac_ct_RANLIB=$RANLIB |
---|
| 2072 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2073 | set dummy ranlib; ac_word=$2 |
---|
[101] | 2074 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2075 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2076 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
[101] | 2077 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2078 | else |
---|
| 2079 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2080 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2081 | else |
---|
| 2082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2083 | for as_dir in $PATH |
---|
| 2084 | do |
---|
| 2085 | IFS=$as_save_IFS |
---|
| 2086 | test -z "$as_dir" && as_dir=. |
---|
| 2087 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2089 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
[101] | 2090 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2091 | break 2 |
---|
| 2092 | fi |
---|
| 2093 | done |
---|
| 2094 | done |
---|
[101] | 2095 | IFS=$as_save_IFS |
---|
[14] | 2096 | |
---|
| 2097 | fi |
---|
| 2098 | fi |
---|
| 2099 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2100 | if test -n "$ac_ct_RANLIB"; then |
---|
[101] | 2101 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 2102 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
[14] | 2103 | else |
---|
[101] | 2104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2105 | $as_echo "no" >&6; } |
---|
[14] | 2106 | fi |
---|
| 2107 | |
---|
[101] | 2108 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 2109 | RANLIB=":" |
---|
| 2110 | else |
---|
| 2111 | case $cross_compiling:$ac_tool_warned in |
---|
| 2112 | yes:) |
---|
| 2113 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2114 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2115 | ac_tool_warned=yes ;; |
---|
| 2116 | esac |
---|
| 2117 | RANLIB=$ac_ct_RANLIB |
---|
| 2118 | fi |
---|
[14] | 2119 | else |
---|
| 2120 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2121 | fi |
---|
| 2122 | |
---|
| 2123 | |
---|
| 2124 | # Make sure we can run config.sub. |
---|
[101] | 2125 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
| 2126 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
---|
| 2127 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
---|
[14] | 2128 | { (exit 1); exit 1; }; } |
---|
| 2129 | |
---|
[101] | 2130 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 2131 | $as_echo_n "checking build system type... " >&6; } |
---|
[14] | 2132 | if test "${ac_cv_build+set}" = set; then |
---|
[101] | 2133 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2134 | else |
---|
[101] | 2135 | ac_build_alias=$build_alias |
---|
| 2136 | test "x$ac_build_alias" = x && |
---|
| 2137 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
| 2138 | test "x$ac_build_alias" = x && |
---|
| 2139 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 2140 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
[14] | 2141 | { (exit 1); exit 1; }; } |
---|
[101] | 2142 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
| 2143 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
---|
| 2144 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
---|
[14] | 2145 | { (exit 1); exit 1; }; } |
---|
| 2146 | |
---|
| 2147 | fi |
---|
[101] | 2148 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 2149 | $as_echo "$ac_cv_build" >&6; } |
---|
| 2150 | case $ac_cv_build in |
---|
| 2151 | *-*-*) ;; |
---|
| 2152 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
---|
| 2153 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
---|
| 2154 | { (exit 1); exit 1; }; };; |
---|
| 2155 | esac |
---|
[14] | 2156 | build=$ac_cv_build |
---|
[101] | 2157 | ac_save_IFS=$IFS; IFS='-' |
---|
| 2158 | set x $ac_cv_build |
---|
| 2159 | shift |
---|
| 2160 | build_cpu=$1 |
---|
| 2161 | build_vendor=$2 |
---|
| 2162 | shift; shift |
---|
| 2163 | # Remember, the first character of IFS is used to create $*, |
---|
| 2164 | # except with old shells: |
---|
| 2165 | build_os=$* |
---|
| 2166 | IFS=$ac_save_IFS |
---|
| 2167 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
[14] | 2168 | |
---|
| 2169 | |
---|
[101] | 2170 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 2171 | $as_echo_n "checking host system type... " >&6; } |
---|
[14] | 2172 | if test "${ac_cv_host+set}" = set; then |
---|
[101] | 2173 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2174 | else |
---|
[101] | 2175 | if test "x$host_alias" = x; then |
---|
| 2176 | ac_cv_host=$ac_cv_build |
---|
| 2177 | else |
---|
| 2178 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
| 2179 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
---|
| 2180 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
---|
[14] | 2181 | { (exit 1); exit 1; }; } |
---|
[101] | 2182 | fi |
---|
[14] | 2183 | |
---|
| 2184 | fi |
---|
[101] | 2185 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 2186 | $as_echo "$ac_cv_host" >&6; } |
---|
| 2187 | case $ac_cv_host in |
---|
| 2188 | *-*-*) ;; |
---|
| 2189 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
---|
| 2190 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
---|
| 2191 | { (exit 1); exit 1; }; };; |
---|
| 2192 | esac |
---|
[14] | 2193 | host=$ac_cv_host |
---|
[101] | 2194 | ac_save_IFS=$IFS; IFS='-' |
---|
| 2195 | set x $ac_cv_host |
---|
| 2196 | shift |
---|
| 2197 | host_cpu=$1 |
---|
| 2198 | host_vendor=$2 |
---|
| 2199 | shift; shift |
---|
| 2200 | # Remember, the first character of IFS is used to create $*, |
---|
| 2201 | # except with old shells: |
---|
| 2202 | host_os=$* |
---|
| 2203 | IFS=$ac_save_IFS |
---|
| 2204 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
[14] | 2205 | |
---|
| 2206 | |
---|
[101] | 2207 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 2208 | $as_echo_n "checking target system type... " >&6; } |
---|
[14] | 2209 | if test "${ac_cv_target+set}" = set; then |
---|
[101] | 2210 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2211 | else |
---|
[101] | 2212 | if test "x$target_alias" = x; then |
---|
| 2213 | ac_cv_target=$ac_cv_host |
---|
| 2214 | else |
---|
| 2215 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
| 2216 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
---|
| 2217 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
---|
[14] | 2218 | { (exit 1); exit 1; }; } |
---|
[101] | 2219 | fi |
---|
[14] | 2220 | |
---|
| 2221 | fi |
---|
[101] | 2222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 2223 | $as_echo "$ac_cv_target" >&6; } |
---|
| 2224 | case $ac_cv_target in |
---|
| 2225 | *-*-*) ;; |
---|
| 2226 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
---|
| 2227 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} |
---|
| 2228 | { (exit 1); exit 1; }; };; |
---|
| 2229 | esac |
---|
[14] | 2230 | target=$ac_cv_target |
---|
[101] | 2231 | ac_save_IFS=$IFS; IFS='-' |
---|
| 2232 | set x $ac_cv_target |
---|
| 2233 | shift |
---|
| 2234 | target_cpu=$1 |
---|
| 2235 | target_vendor=$2 |
---|
| 2236 | shift; shift |
---|
| 2237 | # Remember, the first character of IFS is used to create $*, |
---|
| 2238 | # except with old shells: |
---|
| 2239 | target_os=$* |
---|
| 2240 | IFS=$ac_save_IFS |
---|
| 2241 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
[14] | 2242 | |
---|
| 2243 | |
---|
| 2244 | # The aliases save the names the user supplied, while $host etc. |
---|
| 2245 | # will get canonicalized. |
---|
| 2246 | test -n "$target_alias" && |
---|
| 2247 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 2248 | NONENONEs,x,x, && |
---|
| 2249 | program_prefix=${target_alias}- |
---|
| 2250 | |
---|
| 2251 | |
---|
| 2252 | # Determine the name of the C compiler we're going to use |
---|
| 2253 | |
---|
[101] | 2254 | # Check whether --enable-gcc was given. |
---|
[14] | 2255 | if test "${enable_gcc+set}" = set; then |
---|
[101] | 2256 | enableval=$enable_gcc; gcc_ok=$enableval |
---|
[14] | 2257 | else |
---|
| 2258 | gcc_ok=no |
---|
[101] | 2259 | fi |
---|
[14] | 2260 | |
---|
[101] | 2261 | |
---|
[14] | 2262 | # We cannot set CC=g++ directly because many configuration test programs |
---|
| 2263 | # do not compile with g++. Hence, when the user specifies --enable-gcc=g++, |
---|
| 2264 | # we set CC=gcc during configuration, and then CC=g++ at the end. |
---|
| 2265 | # The same applies to icpc and icc. |
---|
| 2266 | if test "$gcc_ok" != no; then |
---|
| 2267 | case "$gcc_ok" in |
---|
| 2268 | yes | g++) |
---|
| 2269 | CC=gcc ;; |
---|
| 2270 | icpc) |
---|
| 2271 | CC=icc ;; |
---|
| 2272 | *) |
---|
| 2273 | CC=$gcc_ok |
---|
| 2274 | esac |
---|
| 2275 | else |
---|
| 2276 | if test -z "$CC" ; then |
---|
| 2277 | # Balakrishna Kumthekar <kumtheka@colorado.edu> |
---|
| 2278 | # As we do not support cc on RS6000, Cygwin and SunOS. |
---|
| 2279 | case "$target" in |
---|
| 2280 | rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*) |
---|
| 2281 | CC=gcc ;; |
---|
| 2282 | *) |
---|
| 2283 | CC=cc ;; |
---|
| 2284 | esac |
---|
| 2285 | fi |
---|
| 2286 | fi |
---|
| 2287 | ac_ext=c |
---|
| 2288 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2292 | if test -n "$ac_tool_prefix"; then |
---|
| 2293 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2294 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
[101] | 2295 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2296 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2297 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
[101] | 2298 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2299 | else |
---|
| 2300 | if test -n "$CC"; then |
---|
| 2301 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2302 | else |
---|
| 2303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2304 | for as_dir in $PATH |
---|
| 2305 | do |
---|
| 2306 | IFS=$as_save_IFS |
---|
| 2307 | test -z "$as_dir" && as_dir=. |
---|
| 2308 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2310 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
[101] | 2311 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2312 | break 2 |
---|
| 2313 | fi |
---|
| 2314 | done |
---|
| 2315 | done |
---|
[101] | 2316 | IFS=$as_save_IFS |
---|
[14] | 2317 | |
---|
| 2318 | fi |
---|
| 2319 | fi |
---|
| 2320 | CC=$ac_cv_prog_CC |
---|
| 2321 | if test -n "$CC"; then |
---|
[101] | 2322 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2323 | $as_echo "$CC" >&6; } |
---|
[14] | 2324 | else |
---|
[101] | 2325 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2326 | $as_echo "no" >&6; } |
---|
[14] | 2327 | fi |
---|
| 2328 | |
---|
[101] | 2329 | |
---|
[14] | 2330 | fi |
---|
| 2331 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2332 | ac_ct_CC=$CC |
---|
| 2333 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2334 | set dummy gcc; ac_word=$2 |
---|
[101] | 2335 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2336 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2337 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
[101] | 2338 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2339 | else |
---|
| 2340 | if test -n "$ac_ct_CC"; then |
---|
| 2341 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2342 | else |
---|
| 2343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2344 | for as_dir in $PATH |
---|
| 2345 | do |
---|
| 2346 | IFS=$as_save_IFS |
---|
| 2347 | test -z "$as_dir" && as_dir=. |
---|
| 2348 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2350 | ac_cv_prog_ac_ct_CC="gcc" |
---|
[101] | 2351 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2352 | break 2 |
---|
| 2353 | fi |
---|
| 2354 | done |
---|
| 2355 | done |
---|
[101] | 2356 | IFS=$as_save_IFS |
---|
[14] | 2357 | |
---|
| 2358 | fi |
---|
| 2359 | fi |
---|
| 2360 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2361 | if test -n "$ac_ct_CC"; then |
---|
[101] | 2362 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2363 | $as_echo "$ac_ct_CC" >&6; } |
---|
[14] | 2364 | else |
---|
[101] | 2365 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2366 | $as_echo "no" >&6; } |
---|
[14] | 2367 | fi |
---|
| 2368 | |
---|
[101] | 2369 | if test "x$ac_ct_CC" = x; then |
---|
| 2370 | CC="" |
---|
| 2371 | else |
---|
| 2372 | case $cross_compiling:$ac_tool_warned in |
---|
| 2373 | yes:) |
---|
| 2374 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2375 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2376 | ac_tool_warned=yes ;; |
---|
| 2377 | esac |
---|
| 2378 | CC=$ac_ct_CC |
---|
| 2379 | fi |
---|
[14] | 2380 | else |
---|
| 2381 | CC="$ac_cv_prog_CC" |
---|
| 2382 | fi |
---|
| 2383 | |
---|
| 2384 | if test -z "$CC"; then |
---|
[101] | 2385 | if test -n "$ac_tool_prefix"; then |
---|
| 2386 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
[14] | 2387 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
[101] | 2388 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2389 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2390 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
[101] | 2391 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2392 | else |
---|
| 2393 | if test -n "$CC"; then |
---|
| 2394 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2395 | else |
---|
| 2396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2397 | for as_dir in $PATH |
---|
| 2398 | do |
---|
| 2399 | IFS=$as_save_IFS |
---|
| 2400 | test -z "$as_dir" && as_dir=. |
---|
| 2401 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2403 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
[101] | 2404 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2405 | break 2 |
---|
| 2406 | fi |
---|
| 2407 | done |
---|
| 2408 | done |
---|
[101] | 2409 | IFS=$as_save_IFS |
---|
[14] | 2410 | |
---|
| 2411 | fi |
---|
| 2412 | fi |
---|
| 2413 | CC=$ac_cv_prog_CC |
---|
| 2414 | if test -n "$CC"; then |
---|
[101] | 2415 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2416 | $as_echo "$CC" >&6; } |
---|
[14] | 2417 | else |
---|
[101] | 2418 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2419 | $as_echo "no" >&6; } |
---|
[14] | 2420 | fi |
---|
| 2421 | |
---|
[101] | 2422 | |
---|
[14] | 2423 | fi |
---|
| 2424 | fi |
---|
| 2425 | if test -z "$CC"; then |
---|
| 2426 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2427 | set dummy cc; ac_word=$2 |
---|
[101] | 2428 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2429 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2430 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
[101] | 2431 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2432 | else |
---|
| 2433 | if test -n "$CC"; then |
---|
| 2434 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2435 | else |
---|
| 2436 | ac_prog_rejected=no |
---|
| 2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2438 | for as_dir in $PATH |
---|
| 2439 | do |
---|
| 2440 | IFS=$as_save_IFS |
---|
| 2441 | test -z "$as_dir" && as_dir=. |
---|
| 2442 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2444 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2445 | ac_prog_rejected=yes |
---|
| 2446 | continue |
---|
| 2447 | fi |
---|
| 2448 | ac_cv_prog_CC="cc" |
---|
[101] | 2449 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2450 | break 2 |
---|
| 2451 | fi |
---|
| 2452 | done |
---|
| 2453 | done |
---|
[101] | 2454 | IFS=$as_save_IFS |
---|
[14] | 2455 | |
---|
| 2456 | if test $ac_prog_rejected = yes; then |
---|
| 2457 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2458 | set dummy $ac_cv_prog_CC |
---|
| 2459 | shift |
---|
| 2460 | if test $# != 0; then |
---|
| 2461 | # We chose a different compiler from the bogus one. |
---|
| 2462 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2463 | # first if we set CC to just the basename; use the full file name. |
---|
| 2464 | shift |
---|
| 2465 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2466 | fi |
---|
| 2467 | fi |
---|
| 2468 | fi |
---|
| 2469 | fi |
---|
| 2470 | CC=$ac_cv_prog_CC |
---|
| 2471 | if test -n "$CC"; then |
---|
[101] | 2472 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2473 | $as_echo "$CC" >&6; } |
---|
[14] | 2474 | else |
---|
[101] | 2475 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2476 | $as_echo "no" >&6; } |
---|
[14] | 2477 | fi |
---|
| 2478 | |
---|
[101] | 2479 | |
---|
[14] | 2480 | fi |
---|
| 2481 | if test -z "$CC"; then |
---|
| 2482 | if test -n "$ac_tool_prefix"; then |
---|
[101] | 2483 | for ac_prog in cl.exe |
---|
[14] | 2484 | do |
---|
| 2485 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2486 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[101] | 2487 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2488 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2489 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
[101] | 2490 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2491 | else |
---|
| 2492 | if test -n "$CC"; then |
---|
| 2493 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2494 | else |
---|
| 2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2496 | for as_dir in $PATH |
---|
| 2497 | do |
---|
| 2498 | IFS=$as_save_IFS |
---|
| 2499 | test -z "$as_dir" && as_dir=. |
---|
| 2500 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2502 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
[101] | 2503 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2504 | break 2 |
---|
| 2505 | fi |
---|
| 2506 | done |
---|
| 2507 | done |
---|
[101] | 2508 | IFS=$as_save_IFS |
---|
[14] | 2509 | |
---|
| 2510 | fi |
---|
| 2511 | fi |
---|
| 2512 | CC=$ac_cv_prog_CC |
---|
| 2513 | if test -n "$CC"; then |
---|
[101] | 2514 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2515 | $as_echo "$CC" >&6; } |
---|
[14] | 2516 | else |
---|
[101] | 2517 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2518 | $as_echo "no" >&6; } |
---|
[14] | 2519 | fi |
---|
| 2520 | |
---|
[101] | 2521 | |
---|
[14] | 2522 | test -n "$CC" && break |
---|
| 2523 | done |
---|
| 2524 | fi |
---|
| 2525 | if test -z "$CC"; then |
---|
| 2526 | ac_ct_CC=$CC |
---|
[101] | 2527 | for ac_prog in cl.exe |
---|
[14] | 2528 | do |
---|
| 2529 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2530 | set dummy $ac_prog; ac_word=$2 |
---|
[101] | 2531 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2532 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 2533 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
[101] | 2534 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2535 | else |
---|
| 2536 | if test -n "$ac_ct_CC"; then |
---|
| 2537 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2538 | else |
---|
| 2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2540 | for as_dir in $PATH |
---|
| 2541 | do |
---|
| 2542 | IFS=$as_save_IFS |
---|
| 2543 | test -z "$as_dir" && as_dir=. |
---|
| 2544 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 2545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 2546 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
[101] | 2547 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 2548 | break 2 |
---|
| 2549 | fi |
---|
| 2550 | done |
---|
| 2551 | done |
---|
[101] | 2552 | IFS=$as_save_IFS |
---|
[14] | 2553 | |
---|
| 2554 | fi |
---|
| 2555 | fi |
---|
| 2556 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2557 | if test -n "$ac_ct_CC"; then |
---|
[101] | 2558 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2559 | $as_echo "$ac_ct_CC" >&6; } |
---|
[14] | 2560 | else |
---|
[101] | 2561 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2562 | $as_echo "no" >&6; } |
---|
[14] | 2563 | fi |
---|
| 2564 | |
---|
[101] | 2565 | |
---|
[14] | 2566 | test -n "$ac_ct_CC" && break |
---|
| 2567 | done |
---|
| 2568 | |
---|
[101] | 2569 | if test "x$ac_ct_CC" = x; then |
---|
| 2570 | CC="" |
---|
| 2571 | else |
---|
| 2572 | case $cross_compiling:$ac_tool_warned in |
---|
| 2573 | yes:) |
---|
| 2574 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2576 | ac_tool_warned=yes ;; |
---|
| 2577 | esac |
---|
| 2578 | CC=$ac_ct_CC |
---|
| 2579 | fi |
---|
[14] | 2580 | fi |
---|
| 2581 | |
---|
| 2582 | fi |
---|
| 2583 | |
---|
| 2584 | |
---|
[101] | 2585 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 2586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2587 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
[14] | 2588 | See \`config.log' for more details." >&5 |
---|
[101] | 2589 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
[14] | 2590 | See \`config.log' for more details." >&2;} |
---|
[101] | 2591 | { (exit 1); exit 1; }; }; } |
---|
[14] | 2592 | |
---|
| 2593 | # Provide some information about the compiler. |
---|
[101] | 2594 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
| 2595 | set X $ac_compile |
---|
| 2596 | ac_compiler=$2 |
---|
| 2597 | { (ac_try="$ac_compiler --version >&5" |
---|
| 2598 | case "(($ac_try" in |
---|
| 2599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2600 | *) ac_try_echo=$ac_try;; |
---|
| 2601 | esac |
---|
| 2602 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2603 | $as_echo "$ac_try_echo") >&5 |
---|
| 2604 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
[14] | 2605 | ac_status=$? |
---|
[101] | 2606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2607 | (exit $ac_status); } |
---|
[101] | 2608 | { (ac_try="$ac_compiler -v >&5" |
---|
| 2609 | case "(($ac_try" in |
---|
| 2610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2611 | *) ac_try_echo=$ac_try;; |
---|
| 2612 | esac |
---|
| 2613 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2614 | $as_echo "$ac_try_echo") >&5 |
---|
| 2615 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
[14] | 2616 | ac_status=$? |
---|
[101] | 2617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2618 | (exit $ac_status); } |
---|
[101] | 2619 | { (ac_try="$ac_compiler -V >&5" |
---|
| 2620 | case "(($ac_try" in |
---|
| 2621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2622 | *) ac_try_echo=$ac_try;; |
---|
| 2623 | esac |
---|
| 2624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2625 | $as_echo "$ac_try_echo") >&5 |
---|
| 2626 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
[14] | 2627 | ac_status=$? |
---|
[101] | 2628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2629 | (exit $ac_status); } |
---|
| 2630 | |
---|
| 2631 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2632 | /* confdefs.h. */ |
---|
| 2633 | _ACEOF |
---|
| 2634 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2636 | /* end confdefs.h. */ |
---|
| 2637 | |
---|
| 2638 | int |
---|
| 2639 | main () |
---|
| 2640 | { |
---|
| 2641 | |
---|
| 2642 | ; |
---|
| 2643 | return 0; |
---|
| 2644 | } |
---|
| 2645 | _ACEOF |
---|
| 2646 | ac_clean_files_save=$ac_clean_files |
---|
[101] | 2647 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
[14] | 2648 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2649 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2650 | # of exeext. |
---|
[101] | 2651 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
| 2652 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
| 2653 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2654 | |
---|
| 2655 | # The possible output files: |
---|
| 2656 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
| 2657 | |
---|
| 2658 | ac_rmfiles= |
---|
| 2659 | for ac_file in $ac_files |
---|
| 2660 | do |
---|
| 2661 | case $ac_file in |
---|
| 2662 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 2663 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2664 | esac |
---|
| 2665 | done |
---|
| 2666 | rm -f $ac_rmfiles |
---|
| 2667 | |
---|
| 2668 | if { (ac_try="$ac_link_default" |
---|
| 2669 | case "(($ac_try" in |
---|
| 2670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2671 | *) ac_try_echo=$ac_try;; |
---|
| 2672 | esac |
---|
| 2673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2674 | $as_echo "$ac_try_echo") >&5 |
---|
| 2675 | (eval "$ac_link_default") 2>&5 |
---|
[14] | 2676 | ac_status=$? |
---|
[101] | 2677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2678 | (exit $ac_status); }; then |
---|
[101] | 2679 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2680 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2681 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2682 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2683 | # Autoconf. |
---|
| 2684 | for ac_file in $ac_files '' |
---|
[14] | 2685 | do |
---|
| 2686 | test -f "$ac_file" || continue |
---|
| 2687 | case $ac_file in |
---|
[101] | 2688 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
| 2689 | ;; |
---|
[14] | 2690 | [ab].out ) |
---|
[101] | 2691 | # We found the default executable, but exeext='' is most |
---|
| 2692 | # certainly right. |
---|
| 2693 | break;; |
---|
[14] | 2694 | *.* ) |
---|
[101] | 2695 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
| 2696 | then :; else |
---|
| 2697 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2698 | fi |
---|
| 2699 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2700 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2701 | # argument, so we may need to know it at that point already. |
---|
| 2702 | # Even if this section looks crufty: it has the advantage of |
---|
| 2703 | # actually working. |
---|
| 2704 | break;; |
---|
[14] | 2705 | * ) |
---|
[101] | 2706 | break;; |
---|
[14] | 2707 | esac |
---|
| 2708 | done |
---|
[101] | 2709 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2710 | |
---|
[14] | 2711 | else |
---|
[101] | 2712 | ac_file='' |
---|
| 2713 | fi |
---|
| 2714 | |
---|
| 2715 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2716 | $as_echo "$ac_file" >&6; } |
---|
| 2717 | if test -z "$ac_file"; then |
---|
| 2718 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 2719 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2720 | |
---|
[101] | 2721 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 2722 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2723 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
[14] | 2724 | See \`config.log' for more details." >&5 |
---|
[101] | 2725 | $as_echo "$as_me: error: C compiler cannot create executables |
---|
[14] | 2726 | See \`config.log' for more details." >&2;} |
---|
[101] | 2727 | { (exit 77); exit 77; }; }; } |
---|
[14] | 2728 | fi |
---|
| 2729 | |
---|
| 2730 | ac_exeext=$ac_cv_exeext |
---|
| 2731 | |
---|
[101] | 2732 | # Check that the compiler produces executables we can run. If not, either |
---|
[14] | 2733 | # the compiler is broken, or we cross compile. |
---|
[101] | 2734 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 2735 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
[14] | 2736 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2737 | # If not cross compiling, check that we can run a simple program. |
---|
| 2738 | if test "$cross_compiling" != yes; then |
---|
| 2739 | if { ac_try='./$ac_file' |
---|
[101] | 2740 | { (case "(($ac_try" in |
---|
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2742 | *) ac_try_echo=$ac_try;; |
---|
| 2743 | esac |
---|
| 2744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2745 | $as_echo "$ac_try_echo") >&5 |
---|
| 2746 | (eval "$ac_try") 2>&5 |
---|
[14] | 2747 | ac_status=$? |
---|
[101] | 2748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2749 | (exit $ac_status); }; }; then |
---|
| 2750 | cross_compiling=no |
---|
| 2751 | else |
---|
| 2752 | if test "$cross_compiling" = maybe; then |
---|
| 2753 | cross_compiling=yes |
---|
| 2754 | else |
---|
[101] | 2755 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 2756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2757 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
[14] | 2758 | If you meant to cross compile, use \`--host'. |
---|
| 2759 | See \`config.log' for more details." >&5 |
---|
[101] | 2760 | $as_echo "$as_me: error: cannot run C compiled programs. |
---|
[14] | 2761 | If you meant to cross compile, use \`--host'. |
---|
| 2762 | See \`config.log' for more details." >&2;} |
---|
[101] | 2763 | { (exit 1); exit 1; }; }; } |
---|
[14] | 2764 | fi |
---|
| 2765 | fi |
---|
| 2766 | fi |
---|
[101] | 2767 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2768 | $as_echo "yes" >&6; } |
---|
[14] | 2769 | |
---|
[101] | 2770 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
[14] | 2771 | ac_clean_files=$ac_clean_files_save |
---|
[101] | 2772 | # Check that the compiler produces executables we can run. If not, either |
---|
[14] | 2773 | # the compiler is broken, or we cross compile. |
---|
[101] | 2774 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2775 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
| 2776 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2777 | $as_echo "$cross_compiling" >&6; } |
---|
[14] | 2778 | |
---|
[101] | 2779 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2780 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
| 2781 | if { (ac_try="$ac_link" |
---|
| 2782 | case "(($ac_try" in |
---|
| 2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2784 | *) ac_try_echo=$ac_try;; |
---|
| 2785 | esac |
---|
| 2786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2787 | $as_echo "$ac_try_echo") >&5 |
---|
| 2788 | (eval "$ac_link") 2>&5 |
---|
[14] | 2789 | ac_status=$? |
---|
[101] | 2790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2791 | (exit $ac_status); }; then |
---|
| 2792 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2793 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2794 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2795 | # `rm'. |
---|
| 2796 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2797 | test -f "$ac_file" || continue |
---|
| 2798 | case $ac_file in |
---|
[101] | 2799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
[14] | 2800 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
[101] | 2801 | break;; |
---|
[14] | 2802 | * ) break;; |
---|
| 2803 | esac |
---|
| 2804 | done |
---|
| 2805 | else |
---|
[101] | 2806 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 2807 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2808 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
[14] | 2809 | See \`config.log' for more details." >&5 |
---|
[101] | 2810 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
[14] | 2811 | See \`config.log' for more details." >&2;} |
---|
[101] | 2812 | { (exit 1); exit 1; }; }; } |
---|
[14] | 2813 | fi |
---|
| 2814 | |
---|
| 2815 | rm -f conftest$ac_cv_exeext |
---|
[101] | 2816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2817 | $as_echo "$ac_cv_exeext" >&6; } |
---|
[14] | 2818 | |
---|
| 2819 | rm -f conftest.$ac_ext |
---|
| 2820 | EXEEXT=$ac_cv_exeext |
---|
| 2821 | ac_exeext=$EXEEXT |
---|
[101] | 2822 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2823 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
[14] | 2824 | if test "${ac_cv_objext+set}" = set; then |
---|
[101] | 2825 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2826 | else |
---|
| 2827 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2828 | /* confdefs.h. */ |
---|
| 2829 | _ACEOF |
---|
| 2830 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2831 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2832 | /* end confdefs.h. */ |
---|
| 2833 | |
---|
| 2834 | int |
---|
| 2835 | main () |
---|
| 2836 | { |
---|
| 2837 | |
---|
| 2838 | ; |
---|
| 2839 | return 0; |
---|
| 2840 | } |
---|
| 2841 | _ACEOF |
---|
| 2842 | rm -f conftest.o conftest.obj |
---|
[101] | 2843 | if { (ac_try="$ac_compile" |
---|
| 2844 | case "(($ac_try" in |
---|
| 2845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2846 | *) ac_try_echo=$ac_try;; |
---|
| 2847 | esac |
---|
| 2848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2849 | $as_echo "$ac_try_echo") >&5 |
---|
| 2850 | (eval "$ac_compile") 2>&5 |
---|
[14] | 2851 | ac_status=$? |
---|
[101] | 2852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 2853 | (exit $ac_status); }; then |
---|
[101] | 2854 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 2855 | test -f "$ac_file" || continue; |
---|
[14] | 2856 | case $ac_file in |
---|
[101] | 2857 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
[14] | 2858 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2859 | break;; |
---|
| 2860 | esac |
---|
| 2861 | done |
---|
| 2862 | else |
---|
[101] | 2863 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 2864 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2865 | |
---|
[101] | 2866 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 2867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2868 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
[14] | 2869 | See \`config.log' for more details." >&5 |
---|
[101] | 2870 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
[14] | 2871 | See \`config.log' for more details." >&2;} |
---|
[101] | 2872 | { (exit 1); exit 1; }; }; } |
---|
[14] | 2873 | fi |
---|
| 2874 | |
---|
| 2875 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2876 | fi |
---|
[101] | 2877 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2878 | $as_echo "$ac_cv_objext" >&6; } |
---|
[14] | 2879 | OBJEXT=$ac_cv_objext |
---|
| 2880 | ac_objext=$OBJEXT |
---|
[101] | 2881 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2882 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
[14] | 2883 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
[101] | 2884 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2885 | else |
---|
| 2886 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2887 | /* confdefs.h. */ |
---|
| 2888 | _ACEOF |
---|
| 2889 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2890 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2891 | /* end confdefs.h. */ |
---|
| 2892 | |
---|
| 2893 | int |
---|
| 2894 | main () |
---|
| 2895 | { |
---|
| 2896 | #ifndef __GNUC__ |
---|
| 2897 | choke me |
---|
| 2898 | #endif |
---|
| 2899 | |
---|
| 2900 | ; |
---|
| 2901 | return 0; |
---|
| 2902 | } |
---|
| 2903 | _ACEOF |
---|
| 2904 | rm -f conftest.$ac_objext |
---|
[101] | 2905 | if { (ac_try="$ac_compile" |
---|
| 2906 | case "(($ac_try" in |
---|
| 2907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2908 | *) ac_try_echo=$ac_try;; |
---|
| 2909 | esac |
---|
| 2910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2911 | $as_echo "$ac_try_echo") >&5 |
---|
| 2912 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 2913 | ac_status=$? |
---|
[101] | 2914 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2915 | rm -f conftest.er1 |
---|
| 2916 | cat conftest.err >&5 |
---|
| 2917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2918 | (exit $ac_status); } && { |
---|
| 2919 | test -z "$ac_c_werror_flag" || |
---|
| 2920 | test ! -s conftest.err |
---|
| 2921 | } && test -s conftest.$ac_objext; then |
---|
[14] | 2922 | ac_compiler_gnu=yes |
---|
| 2923 | else |
---|
[101] | 2924 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 2925 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2926 | |
---|
[101] | 2927 | ac_compiler_gnu=no |
---|
[14] | 2928 | fi |
---|
[101] | 2929 | |
---|
| 2930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 2931 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2932 | |
---|
| 2933 | fi |
---|
[101] | 2934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2935 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 2936 | if test $ac_compiler_gnu = yes; then |
---|
| 2937 | GCC=yes |
---|
| 2938 | else |
---|
| 2939 | GCC= |
---|
| 2940 | fi |
---|
[14] | 2941 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2942 | ac_save_CFLAGS=$CFLAGS |
---|
[101] | 2943 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2944 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
[14] | 2945 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
[101] | 2946 | $as_echo_n "(cached) " >&6 |
---|
[14] | 2947 | else |
---|
[101] | 2948 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 2949 | ac_c_werror_flag=yes |
---|
| 2950 | ac_cv_prog_cc_g=no |
---|
| 2951 | CFLAGS="-g" |
---|
| 2952 | cat >conftest.$ac_ext <<_ACEOF |
---|
[14] | 2953 | /* confdefs.h. */ |
---|
| 2954 | _ACEOF |
---|
| 2955 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2956 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2957 | /* end confdefs.h. */ |
---|
| 2958 | |
---|
| 2959 | int |
---|
| 2960 | main () |
---|
| 2961 | { |
---|
| 2962 | |
---|
| 2963 | ; |
---|
| 2964 | return 0; |
---|
| 2965 | } |
---|
| 2966 | _ACEOF |
---|
| 2967 | rm -f conftest.$ac_objext |
---|
[101] | 2968 | if { (ac_try="$ac_compile" |
---|
| 2969 | case "(($ac_try" in |
---|
| 2970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2971 | *) ac_try_echo=$ac_try;; |
---|
| 2972 | esac |
---|
| 2973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 2974 | $as_echo "$ac_try_echo") >&5 |
---|
| 2975 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 2976 | ac_status=$? |
---|
[101] | 2977 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2978 | rm -f conftest.er1 |
---|
| 2979 | cat conftest.err >&5 |
---|
| 2980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2981 | (exit $ac_status); } && { |
---|
| 2982 | test -z "$ac_c_werror_flag" || |
---|
| 2983 | test ! -s conftest.err |
---|
| 2984 | } && test -s conftest.$ac_objext; then |
---|
| 2985 | ac_cv_prog_cc_g=yes |
---|
| 2986 | else |
---|
| 2987 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2989 | |
---|
| 2990 | CFLAGS="" |
---|
| 2991 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2992 | /* confdefs.h. */ |
---|
| 2993 | _ACEOF |
---|
| 2994 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2995 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2996 | /* end confdefs.h. */ |
---|
| 2997 | |
---|
| 2998 | int |
---|
| 2999 | main () |
---|
| 3000 | { |
---|
| 3001 | |
---|
| 3002 | ; |
---|
| 3003 | return 0; |
---|
| 3004 | } |
---|
| 3005 | _ACEOF |
---|
| 3006 | rm -f conftest.$ac_objext |
---|
| 3007 | if { (ac_try="$ac_compile" |
---|
| 3008 | case "(($ac_try" in |
---|
| 3009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3010 | *) ac_try_echo=$ac_try;; |
---|
| 3011 | esac |
---|
| 3012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3013 | $as_echo "$ac_try_echo") >&5 |
---|
| 3014 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 3015 | ac_status=$? |
---|
[101] | 3016 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3017 | rm -f conftest.er1 |
---|
| 3018 | cat conftest.err >&5 |
---|
| 3019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3020 | (exit $ac_status); } && { |
---|
| 3021 | test -z "$ac_c_werror_flag" || |
---|
| 3022 | test ! -s conftest.err |
---|
| 3023 | } && test -s conftest.$ac_objext; then |
---|
| 3024 | : |
---|
| 3025 | else |
---|
| 3026 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3028 | |
---|
| 3029 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3030 | CFLAGS="-g" |
---|
| 3031 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3032 | /* confdefs.h. */ |
---|
| 3033 | _ACEOF |
---|
| 3034 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3035 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3036 | /* end confdefs.h. */ |
---|
| 3037 | |
---|
| 3038 | int |
---|
| 3039 | main () |
---|
| 3040 | { |
---|
| 3041 | |
---|
| 3042 | ; |
---|
| 3043 | return 0; |
---|
| 3044 | } |
---|
| 3045 | _ACEOF |
---|
| 3046 | rm -f conftest.$ac_objext |
---|
| 3047 | if { (ac_try="$ac_compile" |
---|
| 3048 | case "(($ac_try" in |
---|
| 3049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3050 | *) ac_try_echo=$ac_try;; |
---|
| 3051 | esac |
---|
| 3052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3053 | $as_echo "$ac_try_echo") >&5 |
---|
| 3054 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3055 | ac_status=$? |
---|
| 3056 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3057 | rm -f conftest.er1 |
---|
| 3058 | cat conftest.err >&5 |
---|
| 3059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3060 | (exit $ac_status); } && { |
---|
| 3061 | test -z "$ac_c_werror_flag" || |
---|
| 3062 | test ! -s conftest.err |
---|
| 3063 | } && test -s conftest.$ac_objext; then |
---|
[14] | 3064 | ac_cv_prog_cc_g=yes |
---|
| 3065 | else |
---|
[101] | 3066 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3067 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3068 | |
---|
[101] | 3069 | |
---|
[14] | 3070 | fi |
---|
[101] | 3071 | |
---|
| 3072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 3073 | fi |
---|
[101] | 3074 | |
---|
| 3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3076 | fi |
---|
| 3077 | |
---|
| 3078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3079 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3080 | fi |
---|
| 3081 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3082 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
[14] | 3083 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3084 | CFLAGS=$ac_save_CFLAGS |
---|
| 3085 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3086 | if test "$GCC" = yes; then |
---|
| 3087 | CFLAGS="-g -O2" |
---|
| 3088 | else |
---|
| 3089 | CFLAGS="-g" |
---|
| 3090 | fi |
---|
| 3091 | else |
---|
| 3092 | if test "$GCC" = yes; then |
---|
| 3093 | CFLAGS="-O2" |
---|
| 3094 | else |
---|
| 3095 | CFLAGS= |
---|
| 3096 | fi |
---|
| 3097 | fi |
---|
[101] | 3098 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
| 3099 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
| 3100 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
| 3101 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3102 | else |
---|
[101] | 3103 | ac_cv_prog_cc_c89=no |
---|
[14] | 3104 | ac_save_CC=$CC |
---|
| 3105 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3106 | /* confdefs.h. */ |
---|
| 3107 | _ACEOF |
---|
| 3108 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3110 | /* end confdefs.h. */ |
---|
| 3111 | #include <stdarg.h> |
---|
| 3112 | #include <stdio.h> |
---|
| 3113 | #include <sys/types.h> |
---|
| 3114 | #include <sys/stat.h> |
---|
| 3115 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3116 | struct buf { int x; }; |
---|
| 3117 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3118 | static char *e (p, i) |
---|
| 3119 | char **p; |
---|
| 3120 | int i; |
---|
| 3121 | { |
---|
| 3122 | return p[i]; |
---|
| 3123 | } |
---|
| 3124 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3125 | { |
---|
| 3126 | char *s; |
---|
| 3127 | va_list v; |
---|
| 3128 | va_start (v,p); |
---|
| 3129 | s = g (p, va_arg (v,int)); |
---|
| 3130 | va_end (v); |
---|
| 3131 | return s; |
---|
| 3132 | } |
---|
[101] | 3133 | |
---|
| 3134 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3135 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3136 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3137 | as 'x'. The following induces an error, until -std is added to get |
---|
| 3138 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3139 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3140 | that's true only with -std. */ |
---|
| 3141 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3142 | |
---|
| 3143 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 3144 | inside strings and character constants. */ |
---|
| 3145 | #define FOO(x) 'x' |
---|
| 3146 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 3147 | |
---|
[14] | 3148 | int test (int i, double x); |
---|
| 3149 | struct s1 {int (*f) (int a);}; |
---|
| 3150 | struct s2 {int (*f) (double a);}; |
---|
| 3151 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3152 | int argc; |
---|
| 3153 | char **argv; |
---|
| 3154 | int |
---|
| 3155 | main () |
---|
| 3156 | { |
---|
| 3157 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3158 | ; |
---|
| 3159 | return 0; |
---|
| 3160 | } |
---|
| 3161 | _ACEOF |
---|
[101] | 3162 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3163 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
[14] | 3164 | do |
---|
| 3165 | CC="$ac_save_CC $ac_arg" |
---|
| 3166 | rm -f conftest.$ac_objext |
---|
[101] | 3167 | if { (ac_try="$ac_compile" |
---|
| 3168 | case "(($ac_try" in |
---|
| 3169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3170 | *) ac_try_echo=$ac_try;; |
---|
| 3171 | esac |
---|
| 3172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3173 | $as_echo "$ac_try_echo") >&5 |
---|
| 3174 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 3175 | ac_status=$? |
---|
[101] | 3176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3177 | rm -f conftest.er1 |
---|
| 3178 | cat conftest.err >&5 |
---|
| 3179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3180 | (exit $ac_status); } && { |
---|
| 3181 | test -z "$ac_c_werror_flag" || |
---|
| 3182 | test ! -s conftest.err |
---|
| 3183 | } && test -s conftest.$ac_objext; then |
---|
| 3184 | ac_cv_prog_cc_c89=$ac_arg |
---|
[14] | 3185 | else |
---|
[101] | 3186 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3187 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3188 | |
---|
[101] | 3189 | |
---|
[14] | 3190 | fi |
---|
[101] | 3191 | |
---|
| 3192 | rm -f core conftest.err conftest.$ac_objext |
---|
| 3193 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
[14] | 3194 | done |
---|
[101] | 3195 | rm -f conftest.$ac_ext |
---|
[14] | 3196 | CC=$ac_save_CC |
---|
| 3197 | |
---|
| 3198 | fi |
---|
[101] | 3199 | # AC_CACHE_VAL |
---|
| 3200 | case "x$ac_cv_prog_cc_c89" in |
---|
| 3201 | x) |
---|
| 3202 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3203 | $as_echo "none needed" >&6; } ;; |
---|
| 3204 | xno) |
---|
| 3205 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
| 3206 | $as_echo "unsupported" >&6; } ;; |
---|
[14] | 3207 | *) |
---|
[101] | 3208 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 3209 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3210 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
[14] | 3211 | esac |
---|
| 3212 | |
---|
| 3213 | |
---|
| 3214 | ac_ext=c |
---|
| 3215 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3219 | |
---|
| 3220 | |
---|
[101] | 3221 | # Check whether --enable-64 was given. |
---|
[14] | 3222 | if test "${enable_64+set}" = set; then |
---|
[101] | 3223 | enableval=$enable_64; use_sixty_four=$enableval |
---|
[14] | 3224 | else |
---|
| 3225 | use_sixty_four=no |
---|
[101] | 3226 | fi |
---|
[14] | 3227 | |
---|
[101] | 3228 | |
---|
[14] | 3229 | # Gcc does not support 32-bit pointers on the Alphas. |
---|
| 3230 | if test "$gcc_ok" != no; then |
---|
| 3231 | use_sixty_four=yes |
---|
| 3232 | fi |
---|
| 3233 | |
---|
| 3234 | |
---|
| 3235 | # Roderick Bloem (rbloem@colorado.edu): making a special case for |
---|
| 3236 | # ultrix install, since it's annoying about setting groupids. |
---|
| 3237 | case "$target" in |
---|
| 3238 | mips-dec-ultrix*) |
---|
| 3239 | INSTALL="helpers/install-sh -c" |
---|
| 3240 | INSTALL_PROGRAM="\${INSTALL}" |
---|
| 3241 | INSTALL_DATA="\${INSTALL} -m 644";; |
---|
| 3242 | |
---|
| 3243 | *) |
---|
| 3244 | # Find a good install program. We prefer a C program (faster), |
---|
| 3245 | # so one script is as good as another. But avoid the broken or |
---|
| 3246 | # incompatible versions: |
---|
| 3247 | # SysV /etc/install, /usr/sbin/install |
---|
| 3248 | # SunOS /usr/etc/install |
---|
| 3249 | # IRIX /sbin/install |
---|
| 3250 | # AIX /bin/install |
---|
| 3251 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 3252 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 3253 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 3254 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
[101] | 3255 | # OS/2's system install, which has a completely different semantic |
---|
[14] | 3256 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
[101] | 3257 | # Reject install programs that cannot install multiple files. |
---|
| 3258 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 3259 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
[14] | 3260 | if test -z "$INSTALL"; then |
---|
| 3261 | if test "${ac_cv_path_install+set}" = set; then |
---|
[101] | 3262 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3263 | else |
---|
| 3264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3265 | for as_dir in $PATH |
---|
| 3266 | do |
---|
| 3267 | IFS=$as_save_IFS |
---|
| 3268 | test -z "$as_dir" && as_dir=. |
---|
| 3269 | # Account for people who put trailing slashes in PATH elements. |
---|
| 3270 | case $as_dir/ in |
---|
| 3271 | ./ | .// | /cC/* | \ |
---|
| 3272 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
[101] | 3273 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
[14] | 3274 | /usr/ucb/* ) ;; |
---|
| 3275 | *) |
---|
| 3276 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 3277 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 3278 | # by default. |
---|
| 3279 | for ac_prog in ginstall scoinst install; do |
---|
| 3280 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 3281 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
| 3282 | if test $ac_prog = install && |
---|
| 3283 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 3284 | # AIX install. It has an incompatible calling convention. |
---|
| 3285 | : |
---|
| 3286 | elif test $ac_prog = install && |
---|
| 3287 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 3288 | # program-specific install script used by HP pwplus--don't use. |
---|
| 3289 | : |
---|
| 3290 | else |
---|
| 3291 | rm -rf conftest.one conftest.two conftest.dir |
---|
| 3292 | echo one > conftest.one |
---|
| 3293 | echo two > conftest.two |
---|
| 3294 | mkdir conftest.dir |
---|
| 3295 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
| 3296 | test -s conftest.one && test -s conftest.two && |
---|
| 3297 | test -s conftest.dir/conftest.one && |
---|
| 3298 | test -s conftest.dir/conftest.two |
---|
| 3299 | then |
---|
| 3300 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 3301 | break 3 |
---|
| 3302 | fi |
---|
| 3303 | fi |
---|
| 3304 | fi |
---|
[14] | 3305 | done |
---|
| 3306 | done |
---|
| 3307 | ;; |
---|
| 3308 | esac |
---|
[101] | 3309 | |
---|
[14] | 3310 | done |
---|
[101] | 3311 | IFS=$as_save_IFS |
---|
[14] | 3312 | |
---|
[101] | 3313 | rm -rf conftest.one conftest.two conftest.dir |
---|
[14] | 3314 | |
---|
| 3315 | fi |
---|
| 3316 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 3317 | INSTALL=$ac_cv_path_install |
---|
| 3318 | else |
---|
[101] | 3319 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 3320 | # value for INSTALL within a source directory, because that will |
---|
[14] | 3321 | # break other packages using the cache if that directory is |
---|
[101] | 3322 | # removed, or if the value is a relative name. |
---|
[14] | 3323 | INSTALL=$ac_install_sh |
---|
| 3324 | fi |
---|
| 3325 | fi |
---|
[101] | 3326 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 3327 | $as_echo "$INSTALL" >&6; } |
---|
[14] | 3328 | |
---|
| 3329 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 3330 | # It thinks the first close brace ends the variable substitution. |
---|
| 3331 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 3332 | |
---|
| 3333 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 3334 | |
---|
| 3335 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 3336 | ;; |
---|
| 3337 | esac |
---|
| 3338 | |
---|
| 3339 | # Determine the compiler flags to use |
---|
| 3340 | |
---|
| 3341 | DEBUG_CFLAGS="-g" |
---|
| 3342 | DEBUG_LDFLAGS="" |
---|
| 3343 | |
---|
| 3344 | case "$target" in |
---|
| 3345 | |
---|
| 3346 | i686-pc-linux-gnu) |
---|
| 3347 | # Linux with Intel compiler |
---|
| 3348 | # -ansi: ANSI C conformance |
---|
| 3349 | # -ip: inter-procedural optimization |
---|
| 3350 | OPTIMIZE_CFLAGS="-g -O3 -ansi -ip" |
---|
| 3351 | ;; |
---|
| 3352 | |
---|
| 3353 | sparc-sun-solaris* | i386-pc-solaris*) |
---|
| 3354 | # Sparc and X86 Solaris: |
---|
| 3355 | # -xO3: Highest safe level of optimization |
---|
| 3356 | # -native: Optimize for the native processor (if supported) |
---|
| 3357 | # -dalign: Generate double-word load/store for performance |
---|
| 3358 | # (only for SPARC) |
---|
| 3359 | # and other arcane compilation flags. |
---|
| 3360 | if test "$GCC" = yes; then |
---|
| 3361 | OPTIMIZE_CFLAGS="-O" |
---|
| 3362 | else |
---|
| 3363 | case "$target" in |
---|
| 3364 | sparc-sun-solaris*) |
---|
| 3365 | ALIGN=" -dalign" ;; |
---|
| 3366 | *) |
---|
| 3367 | ALIGN="" ;; |
---|
| 3368 | esac |
---|
[101] | 3369 | { $as_echo "$as_me:$LINENO: checking for -native" >&5 |
---|
| 3370 | $as_echo_n "checking for -native... " >&6; } |
---|
[14] | 3371 | CFLAGS="-xO3 -native$ALIGN" |
---|
| 3372 | |
---|
| 3373 | if test "${ac_cv_have_native+set}" = set; then |
---|
[101] | 3374 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3375 | else |
---|
| 3376 | if test "$cross_compiling" = yes; then |
---|
| 3377 | ac_cv_have_native=no |
---|
| 3378 | else |
---|
| 3379 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3380 | /* confdefs.h. */ |
---|
| 3381 | _ACEOF |
---|
| 3382 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3384 | /* end confdefs.h. */ |
---|
| 3385 | |
---|
| 3386 | main(){exit(0);} |
---|
| 3387 | |
---|
| 3388 | _ACEOF |
---|
| 3389 | rm -f conftest$ac_exeext |
---|
[101] | 3390 | if { (ac_try="$ac_link" |
---|
| 3391 | case "(($ac_try" in |
---|
| 3392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3393 | *) ac_try_echo=$ac_try;; |
---|
| 3394 | esac |
---|
| 3395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3396 | $as_echo "$ac_try_echo") >&5 |
---|
| 3397 | (eval "$ac_link") 2>&5 |
---|
[14] | 3398 | ac_status=$? |
---|
[101] | 3399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 3400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[101] | 3401 | { (case "(($ac_try" in |
---|
| 3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3403 | *) ac_try_echo=$ac_try;; |
---|
| 3404 | esac |
---|
| 3405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3406 | $as_echo "$ac_try_echo") >&5 |
---|
| 3407 | (eval "$ac_try") 2>&5 |
---|
[14] | 3408 | ac_status=$? |
---|
[101] | 3409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 3410 | (exit $ac_status); }; }; then |
---|
| 3411 | ac_cv_have_native=yes |
---|
| 3412 | else |
---|
[101] | 3413 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3414 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3416 | |
---|
| 3417 | ( exit $ac_status ) |
---|
| 3418 | ac_cv_have_native=no |
---|
| 3419 | fi |
---|
[101] | 3420 | rm -rf conftest.dSYM |
---|
| 3421 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 3422 | fi |
---|
[101] | 3423 | |
---|
| 3424 | |
---|
[14] | 3425 | fi |
---|
| 3426 | |
---|
| 3427 | if test $ac_cv_have_native = yes ; then |
---|
[101] | 3428 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
| 3429 | $as_echo "working" >&6; } |
---|
[14] | 3430 | OPTIMIZE_CFLAGS="-xO3 -native$ALIGN" |
---|
| 3431 | else |
---|
[101] | 3432 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 3433 | $as_echo "broken" >&6; } |
---|
| 3434 | { $as_echo "$as_me:$LINENO: checking for fallback optimization flags" >&5 |
---|
| 3435 | $as_echo_n "checking for fallback optimization flags... " >&6; } |
---|
[14] | 3436 | CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
| 3437 | if test "${ac_cv_have_fallback+set}" = set; then |
---|
[101] | 3438 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3439 | else |
---|
| 3440 | if test "$cross_compiling" = yes; then |
---|
| 3441 | ac_cv_have_fallback=no |
---|
| 3442 | else |
---|
| 3443 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3444 | /* confdefs.h. */ |
---|
| 3445 | _ACEOF |
---|
| 3446 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3447 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3448 | /* end confdefs.h. */ |
---|
| 3449 | |
---|
| 3450 | main(){exit(0);} |
---|
| 3451 | |
---|
| 3452 | _ACEOF |
---|
| 3453 | rm -f conftest$ac_exeext |
---|
[101] | 3454 | if { (ac_try="$ac_link" |
---|
| 3455 | case "(($ac_try" in |
---|
| 3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3457 | *) ac_try_echo=$ac_try;; |
---|
| 3458 | esac |
---|
| 3459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3460 | $as_echo "$ac_try_echo") >&5 |
---|
| 3461 | (eval "$ac_link") 2>&5 |
---|
[14] | 3462 | ac_status=$? |
---|
[101] | 3463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 3464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[101] | 3465 | { (case "(($ac_try" in |
---|
| 3466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3467 | *) ac_try_echo=$ac_try;; |
---|
| 3468 | esac |
---|
| 3469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3470 | $as_echo "$ac_try_echo") >&5 |
---|
| 3471 | (eval "$ac_try") 2>&5 |
---|
[14] | 3472 | ac_status=$? |
---|
[101] | 3473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 3474 | (exit $ac_status); }; }; then |
---|
| 3475 | ac_cv_have_fallback=yes |
---|
| 3476 | else |
---|
[101] | 3477 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3478 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3479 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3480 | |
---|
| 3481 | ( exit $ac_status ) |
---|
| 3482 | ac_cv_have_fallback=no |
---|
| 3483 | fi |
---|
[101] | 3484 | rm -rf conftest.dSYM |
---|
| 3485 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 3486 | fi |
---|
[101] | 3487 | |
---|
| 3488 | |
---|
[14] | 3489 | fi |
---|
| 3490 | |
---|
| 3491 | if test $ac_cv_have_fallback = yes ; then |
---|
[101] | 3492 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
| 3493 | $as_echo "working" >&6; } |
---|
[14] | 3494 | OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
| 3495 | else |
---|
[101] | 3496 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 3497 | $as_echo "broken" >&6; } |
---|
[14] | 3498 | OPTIMIZE_CFLAGS="-O" |
---|
| 3499 | fi |
---|
| 3500 | fi |
---|
| 3501 | fi |
---|
| 3502 | ;; |
---|
| 3503 | |
---|
| 3504 | mips-dec-ultrix*) |
---|
| 3505 | # MIPS-based DECstations running Ultrix: |
---|
| 3506 | # -std1: Produce non-ANSI code warnings, and define __STDC__ |
---|
| 3507 | # -O: Use the global "ucode" optimizer |
---|
| 3508 | # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks |
---|
| 3509 | OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;; |
---|
| 3510 | |
---|
| 3511 | alpha-dec-osf*) |
---|
| 3512 | # DEC Alpha running OSF: |
---|
| 3513 | |
---|
| 3514 | # 64-bit mode: |
---|
| 3515 | # -g3: Produce symbol table information for optimized code |
---|
| 3516 | # -O4: Enable every optimization |
---|
| 3517 | # -std: Enforce the ANSI standard with extensions, define __STDC__ |
---|
| 3518 | # -ieee_with_no_inexact: Disable (potentially slow) signaling |
---|
| 3519 | # for inexact floating-point results |
---|
| 3520 | # -tune host: Tune instructions for the compilation host machine |
---|
| 3521 | OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host" |
---|
| 3522 | DEBUG_CFLAGS="-g -std -ieee_with_no_inexact" |
---|
| 3523 | |
---|
| 3524 | # -non_shared: Do not use shared libraries |
---|
| 3525 | # -om: Generate an OMAGIC file for the om optimizer |
---|
| 3526 | OPTIMIZE_LDFLAGS="-non_shared" |
---|
| 3527 | |
---|
| 3528 | if test "$use_sixty_four" = "no"; then |
---|
| 3529 | # 32-bit mode: |
---|
| 3530 | # -xtaso: Make the compiler respond to #pragma pointer_size directives |
---|
| 3531 | OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso" |
---|
| 3532 | DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso" |
---|
| 3533 | |
---|
| 3534 | # -taso: Load the executable into the lower 31-bit address space |
---|
| 3535 | OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso" |
---|
| 3536 | DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso" |
---|
| 3537 | |
---|
| 3538 | cat >>confdefs.h <<\_ACEOF |
---|
| 3539 | #define SIZEOF_VOID_P 4 |
---|
| 3540 | _ACEOF |
---|
| 3541 | |
---|
| 3542 | ac_sizeof_voidp=4 |
---|
| 3543 | fi |
---|
| 3544 | ;; |
---|
| 3545 | |
---|
| 3546 | hppa*-*-hpux*) |
---|
| 3547 | # HP running HPUX |
---|
| 3548 | # -Aa: Behave as an ANSI compiler |
---|
| 3549 | # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header |
---|
| 3550 | # files (e.g., this means sys/resource.h has struct rusage) |
---|
| 3551 | # +Onolimit: removes resource restrictions for optimization |
---|
| 3552 | OPTIMIZE_CFLAGS="-O -Aa +Onolimit -D_HPUX_SOURCE" |
---|
| 3553 | DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;; |
---|
| 3554 | |
---|
| 3555 | *) |
---|
| 3556 | # Other systems: |
---|
| 3557 | OPTIMIZE_CFLAGS="-O" ;; |
---|
| 3558 | |
---|
| 3559 | esac |
---|
| 3560 | |
---|
| 3561 | if test "$GCC" = yes; then |
---|
| 3562 | case "$target" in |
---|
| 3563 | i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32 | i386-*-freebsd*) |
---|
[101] | 3564 | { $as_echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5 |
---|
| 3565 | $as_echo_n "checking for -mcpu and -malign compiler options... " >&6; } |
---|
[14] | 3566 | CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
| 3567 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3568 | /* confdefs.h. */ |
---|
| 3569 | _ACEOF |
---|
| 3570 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3571 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3572 | /* end confdefs.h. */ |
---|
| 3573 | |
---|
| 3574 | int |
---|
| 3575 | main () |
---|
| 3576 | { |
---|
| 3577 | |
---|
| 3578 | ; |
---|
| 3579 | return 0; |
---|
| 3580 | } |
---|
| 3581 | _ACEOF |
---|
| 3582 | rm -f conftest.$ac_objext |
---|
[101] | 3583 | if { (ac_try="$ac_compile" |
---|
| 3584 | case "(($ac_try" in |
---|
| 3585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3586 | *) ac_try_echo=$ac_try;; |
---|
| 3587 | esac |
---|
| 3588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3589 | $as_echo "$ac_try_echo") >&5 |
---|
| 3590 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 3591 | ac_status=$? |
---|
[101] | 3592 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3593 | rm -f conftest.er1 |
---|
| 3594 | cat conftest.err >&5 |
---|
| 3595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3596 | (exit $ac_status); } && { |
---|
| 3597 | test -z "$ac_c_werror_flag" || |
---|
| 3598 | test ! -s conftest.err |
---|
| 3599 | } && test -s conftest.$ac_objext; then |
---|
[14] | 3600 | ac_have_mcpu=yes |
---|
| 3601 | else |
---|
[101] | 3602 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3603 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3604 | |
---|
[101] | 3605 | ac_have_mcpu=no |
---|
[14] | 3606 | fi |
---|
[101] | 3607 | |
---|
| 3608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 3609 | if test "$ac_have_mcpu" = yes; then |
---|
[101] | 3610 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
| 3611 | $as_echo "working" >&6; } |
---|
[14] | 3612 | OPTIMIZE_CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
| 3613 | else |
---|
[101] | 3614 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 3615 | $as_echo "broken" >&6; } |
---|
[14] | 3616 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 3617 | fi |
---|
| 3618 | ;; |
---|
| 3619 | sparc-sun-solaris*) |
---|
[101] | 3620 | { $as_echo "$as_me:$LINENO: checking for -mtune compiler option" >&5 |
---|
| 3621 | $as_echo_n "checking for -mtune compiler option... " >&6; } |
---|
[14] | 3622 | CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
| 3623 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3624 | /* confdefs.h. */ |
---|
| 3625 | _ACEOF |
---|
| 3626 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3627 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3628 | /* end confdefs.h. */ |
---|
| 3629 | |
---|
| 3630 | int |
---|
| 3631 | main () |
---|
| 3632 | { |
---|
| 3633 | |
---|
| 3634 | ; |
---|
| 3635 | return 0; |
---|
| 3636 | } |
---|
| 3637 | _ACEOF |
---|
| 3638 | rm -f conftest.$ac_objext |
---|
[101] | 3639 | if { (ac_try="$ac_compile" |
---|
| 3640 | case "(($ac_try" in |
---|
| 3641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3642 | *) ac_try_echo=$ac_try;; |
---|
| 3643 | esac |
---|
| 3644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3645 | $as_echo "$ac_try_echo") >&5 |
---|
| 3646 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 3647 | ac_status=$? |
---|
[101] | 3648 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3649 | rm -f conftest.er1 |
---|
| 3650 | cat conftest.err >&5 |
---|
| 3651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3652 | (exit $ac_status); } && { |
---|
| 3653 | test -z "$ac_c_werror_flag" || |
---|
| 3654 | test ! -s conftest.err |
---|
| 3655 | } && test -s conftest.$ac_objext; then |
---|
[14] | 3656 | ac_have_mtune=yes |
---|
| 3657 | else |
---|
[101] | 3658 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3659 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3660 | |
---|
[101] | 3661 | ac_have_mtune=no |
---|
[14] | 3662 | fi |
---|
[101] | 3663 | |
---|
| 3664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 3665 | if test "$ac_have_mtune" = yes; then |
---|
[101] | 3666 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
| 3667 | $as_echo "working" >&6; } |
---|
[14] | 3668 | OPTIMIZE_CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
| 3669 | else |
---|
[101] | 3670 | { $as_echo "$as_me:$LINENO: result: not working" >&5 |
---|
| 3671 | $as_echo "not working" >&6; } |
---|
[14] | 3672 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 3673 | fi |
---|
| 3674 | ;; |
---|
| 3675 | *) |
---|
| 3676 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 3677 | ;; |
---|
| 3678 | esac |
---|
| 3679 | OPTIMIZE_LDFLAGS="" |
---|
| 3680 | DEBUG_CFLAGS="-g" |
---|
| 3681 | DEBUG_LDFLAGS="" |
---|
| 3682 | fi |
---|
| 3683 | |
---|
| 3684 | |
---|
[101] | 3685 | # Check whether --with-comp-mode was given. |
---|
[14] | 3686 | if test "${with_comp_mode+set}" = set; then |
---|
[101] | 3687 | withval=$with_comp_mode; comp_mode=$withval |
---|
[14] | 3688 | else |
---|
| 3689 | comp_mode=optimize |
---|
[101] | 3690 | fi |
---|
[14] | 3691 | |
---|
| 3692 | |
---|
| 3693 | |
---|
[101] | 3694 | |
---|
[14] | 3695 | LINKER="$CC" |
---|
| 3696 | |
---|
| 3697 | case "$comp_mode" in |
---|
| 3698 | debug) |
---|
| 3699 | CFLAGS="$DEBUG_CFLAGS" |
---|
| 3700 | LDFLAGS="$DEBUG_LDFLAGS" ;; |
---|
| 3701 | purify) |
---|
| 3702 | CFLAGS="$DEBUG_CFLAGS" |
---|
| 3703 | LDFLAGS="$DEBUG_LDFLAGS" |
---|
| 3704 | cat >>confdefs.h <<\_ACEOF |
---|
| 3705 | #define PURIFY 1 |
---|
| 3706 | _ACEOF |
---|
| 3707 | |
---|
| 3708 | LINKER="purify -cache-dir=/tmp $CC" |
---|
| 3709 | PLINKER="purify -log-file=./purify.log -cachedir=/tmp $CC" ;; |
---|
| 3710 | quantify) |
---|
| 3711 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
| 3712 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
| 3713 | cat >>confdefs.h <<\_ACEOF |
---|
| 3714 | #define QUANTIFY 1 |
---|
| 3715 | _ACEOF |
---|
| 3716 | |
---|
| 3717 | cat >>confdefs.h <<\_ACEOF |
---|
| 3718 | #define NDEBUG 1 |
---|
| 3719 | _ACEOF |
---|
| 3720 | |
---|
| 3721 | LINKER="quantify $CC" ;; |
---|
| 3722 | optimize | *) |
---|
| 3723 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
| 3724 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
| 3725 | cat >>confdefs.h <<\_ACEOF |
---|
| 3726 | #define NDEBUG 1 |
---|
| 3727 | _ACEOF |
---|
| 3728 | ;; |
---|
| 3729 | esac |
---|
| 3730 | |
---|
| 3731 | for ac_prog in flex lex |
---|
| 3732 | do |
---|
| 3733 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3734 | set dummy $ac_prog; ac_word=$2 |
---|
[101] | 3735 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3736 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 3737 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
[101] | 3738 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3739 | else |
---|
| 3740 | if test -n "$LEX"; then |
---|
| 3741 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
| 3742 | else |
---|
| 3743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3744 | for as_dir in $PATH |
---|
| 3745 | do |
---|
| 3746 | IFS=$as_save_IFS |
---|
| 3747 | test -z "$as_dir" && as_dir=. |
---|
| 3748 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 3749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 3750 | ac_cv_prog_LEX="$ac_prog" |
---|
[101] | 3751 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 3752 | break 2 |
---|
| 3753 | fi |
---|
| 3754 | done |
---|
| 3755 | done |
---|
[101] | 3756 | IFS=$as_save_IFS |
---|
[14] | 3757 | |
---|
| 3758 | fi |
---|
| 3759 | fi |
---|
| 3760 | LEX=$ac_cv_prog_LEX |
---|
| 3761 | if test -n "$LEX"; then |
---|
[101] | 3762 | { $as_echo "$as_me:$LINENO: result: $LEX" >&5 |
---|
| 3763 | $as_echo "$LEX" >&6; } |
---|
[14] | 3764 | else |
---|
[101] | 3765 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3766 | $as_echo "no" >&6; } |
---|
[14] | 3767 | fi |
---|
| 3768 | |
---|
[101] | 3769 | |
---|
[14] | 3770 | test -n "$LEX" && break |
---|
| 3771 | done |
---|
| 3772 | test -n "$LEX" || LEX=":" |
---|
| 3773 | |
---|
[101] | 3774 | if test "x$LEX" != "x:"; then |
---|
| 3775 | cat >conftest.l <<_ACEOF |
---|
| 3776 | %% |
---|
| 3777 | a { ECHO; } |
---|
| 3778 | b { REJECT; } |
---|
| 3779 | c { yymore (); } |
---|
| 3780 | d { yyless (1); } |
---|
| 3781 | e { yyless (input () != 0); } |
---|
| 3782 | f { unput (yytext[0]); } |
---|
| 3783 | . { BEGIN INITIAL; } |
---|
| 3784 | %% |
---|
| 3785 | #ifdef YYTEXT_POINTER |
---|
| 3786 | extern char *yytext; |
---|
[14] | 3787 | #endif |
---|
| 3788 | int |
---|
[101] | 3789 | main (void) |
---|
[14] | 3790 | { |
---|
[101] | 3791 | return ! yylex () + ! yywrap (); |
---|
[14] | 3792 | } |
---|
| 3793 | _ACEOF |
---|
[101] | 3794 | { (ac_try="$LEX conftest.l" |
---|
| 3795 | case "(($ac_try" in |
---|
| 3796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3797 | *) ac_try_echo=$ac_try;; |
---|
| 3798 | esac |
---|
| 3799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3800 | $as_echo "$ac_try_echo") >&5 |
---|
| 3801 | (eval "$LEX conftest.l") 2>&5 |
---|
[14] | 3802 | ac_status=$? |
---|
[101] | 3803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3804 | (exit $ac_status); } |
---|
| 3805 | { $as_echo "$as_me:$LINENO: checking lex output file root" >&5 |
---|
| 3806 | $as_echo_n "checking lex output file root... " >&6; } |
---|
| 3807 | if test "${ac_cv_prog_lex_root+set}" = set; then |
---|
| 3808 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3809 | else |
---|
| 3810 | |
---|
[101] | 3811 | if test -f lex.yy.c; then |
---|
| 3812 | ac_cv_prog_lex_root=lex.yy |
---|
| 3813 | elif test -f lexyy.c; then |
---|
| 3814 | ac_cv_prog_lex_root=lexyy |
---|
| 3815 | else |
---|
| 3816 | { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
---|
| 3817 | $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
---|
| 3818 | { (exit 1); exit 1; }; } |
---|
[14] | 3819 | fi |
---|
| 3820 | fi |
---|
[101] | 3821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
---|
| 3822 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
| 3823 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
| 3824 | |
---|
| 3825 | if test -z "${LEXLIB+set}"; then |
---|
| 3826 | { $as_echo "$as_me:$LINENO: checking lex library" >&5 |
---|
| 3827 | $as_echo_n "checking lex library... " >&6; } |
---|
| 3828 | if test "${ac_cv_lib_lex+set}" = set; then |
---|
| 3829 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3830 | else |
---|
| 3831 | |
---|
[101] | 3832 | ac_save_LIBS=$LIBS |
---|
| 3833 | ac_cv_lib_lex='none needed' |
---|
| 3834 | for ac_lib in '' -lfl -ll; do |
---|
| 3835 | LIBS="$ac_lib $ac_save_LIBS" |
---|
| 3836 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3837 | `cat $LEX_OUTPUT_ROOT.c` |
---|
[14] | 3838 | _ACEOF |
---|
| 3839 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 3840 | if { (ac_try="$ac_link" |
---|
| 3841 | case "(($ac_try" in |
---|
| 3842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3843 | *) ac_try_echo=$ac_try;; |
---|
| 3844 | esac |
---|
| 3845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3846 | $as_echo "$ac_try_echo") >&5 |
---|
| 3847 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 3848 | ac_status=$? |
---|
[101] | 3849 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3850 | rm -f conftest.er1 |
---|
| 3851 | cat conftest.err >&5 |
---|
| 3852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3853 | (exit $ac_status); } && { |
---|
| 3854 | test -z "$ac_c_werror_flag" || |
---|
| 3855 | test ! -s conftest.err |
---|
| 3856 | } && test -s conftest$ac_exeext && { |
---|
| 3857 | test "$cross_compiling" = yes || |
---|
| 3858 | $as_test_x conftest$ac_exeext |
---|
| 3859 | }; then |
---|
| 3860 | ac_cv_lib_lex=$ac_lib |
---|
[14] | 3861 | else |
---|
[101] | 3862 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3863 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3864 | |
---|
| 3865 | |
---|
| 3866 | fi |
---|
| 3867 | |
---|
[101] | 3868 | rm -rf conftest.dSYM |
---|
| 3869 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3870 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3871 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
| 3872 | done |
---|
| 3873 | LIBS=$ac_save_LIBS |
---|
[14] | 3874 | |
---|
| 3875 | fi |
---|
[101] | 3876 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
---|
| 3877 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
| 3878 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
[14] | 3879 | fi |
---|
| 3880 | |
---|
[101] | 3881 | |
---|
| 3882 | { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
---|
| 3883 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
[14] | 3884 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
---|
[101] | 3885 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3886 | else |
---|
| 3887 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
[101] | 3888 | # default is implementation-dependent. Figure out which it is, since |
---|
[14] | 3889 | # not all implementations provide the %pointer and %array declarations. |
---|
| 3890 | ac_cv_prog_lex_yytext_pointer=no |
---|
| 3891 | ac_save_LIBS=$LIBS |
---|
[101] | 3892 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
[14] | 3893 | cat >conftest.$ac_ext <<_ACEOF |
---|
[101] | 3894 | #define YYTEXT_POINTER 1 |
---|
[14] | 3895 | `cat $LEX_OUTPUT_ROOT.c` |
---|
| 3896 | _ACEOF |
---|
| 3897 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 3898 | if { (ac_try="$ac_link" |
---|
| 3899 | case "(($ac_try" in |
---|
| 3900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3901 | *) ac_try_echo=$ac_try;; |
---|
| 3902 | esac |
---|
| 3903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 3904 | $as_echo "$ac_try_echo") >&5 |
---|
| 3905 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 3906 | ac_status=$? |
---|
[101] | 3907 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3908 | rm -f conftest.er1 |
---|
| 3909 | cat conftest.err >&5 |
---|
| 3910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3911 | (exit $ac_status); } && { |
---|
| 3912 | test -z "$ac_c_werror_flag" || |
---|
| 3913 | test ! -s conftest.err |
---|
| 3914 | } && test -s conftest$ac_exeext && { |
---|
| 3915 | test "$cross_compiling" = yes || |
---|
| 3916 | $as_test_x conftest$ac_exeext |
---|
| 3917 | }; then |
---|
[14] | 3918 | ac_cv_prog_lex_yytext_pointer=yes |
---|
| 3919 | else |
---|
[101] | 3920 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 3921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3922 | |
---|
[101] | 3923 | |
---|
[14] | 3924 | fi |
---|
[101] | 3925 | |
---|
| 3926 | rm -rf conftest.dSYM |
---|
| 3927 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 3928 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 3929 | LIBS=$ac_save_LIBS |
---|
| 3930 | |
---|
| 3931 | fi |
---|
[101] | 3932 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
| 3933 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
[14] | 3934 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
| 3935 | |
---|
| 3936 | cat >>confdefs.h <<\_ACEOF |
---|
| 3937 | #define YYTEXT_POINTER 1 |
---|
| 3938 | _ACEOF |
---|
| 3939 | |
---|
| 3940 | fi |
---|
[101] | 3941 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
[14] | 3942 | |
---|
| 3943 | fi |
---|
[101] | 3944 | { $as_echo "$as_me:$LINENO: checking if $LEX accepts the -o and -P options" >&5 |
---|
| 3945 | $as_echo_n "checking if $LEX accepts the -o and -P options... " >&6; } |
---|
[14] | 3946 | |
---|
| 3947 | if test "${ac_cv_flex_accepts_op+set}" = set; then |
---|
[101] | 3948 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3949 | else |
---|
| 3950 | ac_cv_flex_accepts_op=yes ; |
---|
| 3951 | echo "%%\ |
---|
| 3952 | %%" | $LEX -Ptest -o/dev/null >/dev/null 2>&1 || ac_cv_flex_accepts_op=no |
---|
| 3953 | fi |
---|
| 3954 | |
---|
| 3955 | if test $ac_cv_flex_accepts_op = yes ; then |
---|
[101] | 3956 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3957 | $as_echo "yes" >&6; } |
---|
[14] | 3958 | else |
---|
[101] | 3959 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3960 | $as_echo "no" >&6; } |
---|
| 3961 | { $as_echo "$as_me:$LINENO: WARNING: You either need a newer version of flex, or need to modify |
---|
[14] | 3962 | the defintion of LEX in the Makefile to point to a version that does |
---|
| 3963 | accept -p -t and -o." >&5 |
---|
[101] | 3964 | $as_echo "$as_me: WARNING: You either need a newer version of flex, or need to modify |
---|
[14] | 3965 | the defintion of LEX in the Makefile to point to a version that does |
---|
| 3966 | accept -p -t and -o." >&2;} |
---|
| 3967 | fi |
---|
| 3968 | |
---|
| 3969 | for ac_prog in 'bison -y' byacc |
---|
| 3970 | do |
---|
| 3971 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3972 | set dummy $ac_prog; ac_word=$2 |
---|
[101] | 3973 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3974 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 3975 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
[101] | 3976 | $as_echo_n "(cached) " >&6 |
---|
[14] | 3977 | else |
---|
| 3978 | if test -n "$YACC"; then |
---|
| 3979 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
| 3980 | else |
---|
| 3981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3982 | for as_dir in $PATH |
---|
| 3983 | do |
---|
| 3984 | IFS=$as_save_IFS |
---|
| 3985 | test -z "$as_dir" && as_dir=. |
---|
| 3986 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 3987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 3988 | ac_cv_prog_YACC="$ac_prog" |
---|
[101] | 3989 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 3990 | break 2 |
---|
| 3991 | fi |
---|
| 3992 | done |
---|
| 3993 | done |
---|
[101] | 3994 | IFS=$as_save_IFS |
---|
[14] | 3995 | |
---|
| 3996 | fi |
---|
| 3997 | fi |
---|
| 3998 | YACC=$ac_cv_prog_YACC |
---|
| 3999 | if test -n "$YACC"; then |
---|
[101] | 4000 | { $as_echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
| 4001 | $as_echo "$YACC" >&6; } |
---|
[14] | 4002 | else |
---|
[101] | 4003 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4004 | $as_echo "no" >&6; } |
---|
[14] | 4005 | fi |
---|
| 4006 | |
---|
[101] | 4007 | |
---|
[14] | 4008 | test -n "$YACC" && break |
---|
| 4009 | done |
---|
| 4010 | test -n "$YACC" || YACC="yacc" |
---|
| 4011 | |
---|
[101] | 4012 | { $as_echo "$as_me:$LINENO: checking if $YACC accepts the -p, -t, and -o options" >&5 |
---|
| 4013 | $as_echo_n "checking if $YACC accepts the -p, -t, and -o options... " >&6; } |
---|
[14] | 4014 | if test "${ac_cv_yacc_accepts_pto+set}" = set; then |
---|
[101] | 4015 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4016 | else |
---|
| 4017 | ac_cv_yacc_accepts_pto=yes ; |
---|
| 4018 | echo "%token terminal\ |
---|
| 4019 | %%\ |
---|
| 4020 | nonterminal: terminal\ |
---|
| 4021 | %%" > config.in |
---|
| 4022 | $YACC -ptest -o /dev/null config.in >/dev/null 2>&1 || ac_cv_yacc_accepts_pto=no |
---|
| 4023 | rm -f config.in |
---|
| 4024 | fi |
---|
| 4025 | |
---|
| 4026 | if test $ac_cv_yacc_accepts_pto = yes ; then |
---|
[101] | 4027 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 4028 | $as_echo "yes" >&6; } |
---|
[14] | 4029 | else |
---|
[101] | 4030 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4031 | $as_echo "no" >&6; } |
---|
| 4032 | { $as_echo "$as_me:$LINENO: WARNING: You either need a newer version of bison, or need to modify |
---|
[14] | 4033 | the defintion of YACC in the Makefile to point to a version that does |
---|
| 4034 | accept -p -t and -o." >&5 |
---|
[101] | 4035 | $as_echo "$as_me: WARNING: You either need a newer version of bison, or need to modify |
---|
[14] | 4036 | the defintion of YACC in the Makefile to point to a version that does |
---|
| 4037 | accept -p -t and -o." >&2;} |
---|
| 4038 | fi |
---|
| 4039 | |
---|
| 4040 | #---------------------------------------------------------------------- |
---|
| 4041 | # Checks for headers and libraries |
---|
| 4042 | #---------------------------------------------------------------------- |
---|
| 4043 | ac_ext=c |
---|
| 4044 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[101] | 4048 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 4049 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
[14] | 4050 | # On Suns, sometimes $CPP names a directory. |
---|
| 4051 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 4052 | CPP= |
---|
| 4053 | fi |
---|
| 4054 | if test -z "$CPP"; then |
---|
| 4055 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[101] | 4056 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4057 | else |
---|
| 4058 | # Double quotes because CPP needs to be expanded |
---|
| 4059 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 4060 | do |
---|
| 4061 | ac_preproc_ok=false |
---|
| 4062 | for ac_c_preproc_warn_flag in '' yes |
---|
| 4063 | do |
---|
| 4064 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 4065 | # with a fresh cross-compiler works. |
---|
| 4066 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4067 | # <limits.h> exists even on freestanding compilers. |
---|
| 4068 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 4069 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 4070 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4071 | /* confdefs.h. */ |
---|
| 4072 | _ACEOF |
---|
| 4073 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4074 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4075 | /* end confdefs.h. */ |
---|
| 4076 | #ifdef __STDC__ |
---|
| 4077 | # include <limits.h> |
---|
| 4078 | #else |
---|
| 4079 | # include <assert.h> |
---|
| 4080 | #endif |
---|
[101] | 4081 | Syntax error |
---|
[14] | 4082 | _ACEOF |
---|
[101] | 4083 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4084 | case "(($ac_try" in |
---|
| 4085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4086 | *) ac_try_echo=$ac_try;; |
---|
| 4087 | esac |
---|
| 4088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4089 | $as_echo "$ac_try_echo") >&5 |
---|
| 4090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 4091 | ac_status=$? |
---|
| 4092 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4093 | rm -f conftest.er1 |
---|
| 4094 | cat conftest.err >&5 |
---|
[101] | 4095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4096 | (exit $ac_status); } >/dev/null && { |
---|
| 4097 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4098 | test ! -s conftest.err |
---|
| 4099 | }; then |
---|
[14] | 4100 | : |
---|
| 4101 | else |
---|
[101] | 4102 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4104 | |
---|
| 4105 | # Broken: fails on valid input. |
---|
| 4106 | continue |
---|
| 4107 | fi |
---|
[101] | 4108 | |
---|
[14] | 4109 | rm -f conftest.err conftest.$ac_ext |
---|
| 4110 | |
---|
[101] | 4111 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[14] | 4112 | # can be detected and how. |
---|
| 4113 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4114 | /* confdefs.h. */ |
---|
| 4115 | _ACEOF |
---|
| 4116 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4117 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4118 | /* end confdefs.h. */ |
---|
| 4119 | #include <ac_nonexistent.h> |
---|
| 4120 | _ACEOF |
---|
[101] | 4121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4122 | case "(($ac_try" in |
---|
| 4123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4124 | *) ac_try_echo=$ac_try;; |
---|
| 4125 | esac |
---|
| 4126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4127 | $as_echo "$ac_try_echo") >&5 |
---|
| 4128 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 4129 | ac_status=$? |
---|
| 4130 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4131 | rm -f conftest.er1 |
---|
| 4132 | cat conftest.err >&5 |
---|
[101] | 4133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4134 | (exit $ac_status); } >/dev/null && { |
---|
| 4135 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4136 | test ! -s conftest.err |
---|
| 4137 | }; then |
---|
[14] | 4138 | # Broken: success on invalid input. |
---|
| 4139 | continue |
---|
| 4140 | else |
---|
[101] | 4141 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4142 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4143 | |
---|
| 4144 | # Passes both tests. |
---|
| 4145 | ac_preproc_ok=: |
---|
| 4146 | break |
---|
| 4147 | fi |
---|
[101] | 4148 | |
---|
[14] | 4149 | rm -f conftest.err conftest.$ac_ext |
---|
| 4150 | |
---|
| 4151 | done |
---|
| 4152 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 4153 | rm -f conftest.err conftest.$ac_ext |
---|
| 4154 | if $ac_preproc_ok; then |
---|
| 4155 | break |
---|
| 4156 | fi |
---|
| 4157 | |
---|
| 4158 | done |
---|
| 4159 | ac_cv_prog_CPP=$CPP |
---|
| 4160 | |
---|
| 4161 | fi |
---|
| 4162 | CPP=$ac_cv_prog_CPP |
---|
| 4163 | else |
---|
| 4164 | ac_cv_prog_CPP=$CPP |
---|
| 4165 | fi |
---|
[101] | 4166 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 4167 | $as_echo "$CPP" >&6; } |
---|
[14] | 4168 | ac_preproc_ok=false |
---|
| 4169 | for ac_c_preproc_warn_flag in '' yes |
---|
| 4170 | do |
---|
| 4171 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 4172 | # with a fresh cross-compiler works. |
---|
| 4173 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4174 | # <limits.h> exists even on freestanding compilers. |
---|
| 4175 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 4176 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 4177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4178 | /* confdefs.h. */ |
---|
| 4179 | _ACEOF |
---|
| 4180 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4182 | /* end confdefs.h. */ |
---|
| 4183 | #ifdef __STDC__ |
---|
| 4184 | # include <limits.h> |
---|
| 4185 | #else |
---|
| 4186 | # include <assert.h> |
---|
| 4187 | #endif |
---|
[101] | 4188 | Syntax error |
---|
[14] | 4189 | _ACEOF |
---|
[101] | 4190 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4191 | case "(($ac_try" in |
---|
| 4192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4193 | *) ac_try_echo=$ac_try;; |
---|
| 4194 | esac |
---|
| 4195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4196 | $as_echo "$ac_try_echo") >&5 |
---|
| 4197 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 4198 | ac_status=$? |
---|
| 4199 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4200 | rm -f conftest.er1 |
---|
| 4201 | cat conftest.err >&5 |
---|
[101] | 4202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4203 | (exit $ac_status); } >/dev/null && { |
---|
| 4204 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4205 | test ! -s conftest.err |
---|
| 4206 | }; then |
---|
[14] | 4207 | : |
---|
| 4208 | else |
---|
[101] | 4209 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4211 | |
---|
| 4212 | # Broken: fails on valid input. |
---|
| 4213 | continue |
---|
| 4214 | fi |
---|
[101] | 4215 | |
---|
[14] | 4216 | rm -f conftest.err conftest.$ac_ext |
---|
| 4217 | |
---|
[101] | 4218 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[14] | 4219 | # can be detected and how. |
---|
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4221 | /* confdefs.h. */ |
---|
| 4222 | _ACEOF |
---|
| 4223 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4225 | /* end confdefs.h. */ |
---|
| 4226 | #include <ac_nonexistent.h> |
---|
| 4227 | _ACEOF |
---|
[101] | 4228 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4229 | case "(($ac_try" in |
---|
| 4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4231 | *) ac_try_echo=$ac_try;; |
---|
| 4232 | esac |
---|
| 4233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4234 | $as_echo "$ac_try_echo") >&5 |
---|
| 4235 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 4236 | ac_status=$? |
---|
| 4237 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4238 | rm -f conftest.er1 |
---|
| 4239 | cat conftest.err >&5 |
---|
[101] | 4240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4241 | (exit $ac_status); } >/dev/null && { |
---|
| 4242 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 4243 | test ! -s conftest.err |
---|
| 4244 | }; then |
---|
[14] | 4245 | # Broken: success on invalid input. |
---|
| 4246 | continue |
---|
| 4247 | else |
---|
[101] | 4248 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4249 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4250 | |
---|
| 4251 | # Passes both tests. |
---|
| 4252 | ac_preproc_ok=: |
---|
| 4253 | break |
---|
| 4254 | fi |
---|
[101] | 4255 | |
---|
[14] | 4256 | rm -f conftest.err conftest.$ac_ext |
---|
| 4257 | |
---|
| 4258 | done |
---|
| 4259 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 4260 | rm -f conftest.err conftest.$ac_ext |
---|
| 4261 | if $ac_preproc_ok; then |
---|
| 4262 | : |
---|
| 4263 | else |
---|
[101] | 4264 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
| 4265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 4266 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
[14] | 4267 | See \`config.log' for more details." >&5 |
---|
[101] | 4268 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
[14] | 4269 | See \`config.log' for more details." >&2;} |
---|
[101] | 4270 | { (exit 1); exit 1; }; }; } |
---|
[14] | 4271 | fi |
---|
| 4272 | |
---|
| 4273 | ac_ext=c |
---|
| 4274 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4278 | |
---|
| 4279 | |
---|
[101] | 4280 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
| 4281 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
| 4282 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
| 4283 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4284 | else |
---|
[101] | 4285 | if test -z "$GREP"; then |
---|
| 4286 | ac_path_GREP_found=false |
---|
| 4287 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 4288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4289 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 4290 | do |
---|
| 4291 | IFS=$as_save_IFS |
---|
| 4292 | test -z "$as_dir" && as_dir=. |
---|
| 4293 | for ac_prog in grep ggrep; do |
---|
| 4294 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4295 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 4296 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
| 4297 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
| 4298 | # Check for GNU $ac_path_GREP |
---|
| 4299 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 4300 | *GNU*) |
---|
| 4301 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 4302 | *) |
---|
| 4303 | ac_count=0 |
---|
| 4304 | $as_echo_n 0123456789 >"conftest.in" |
---|
| 4305 | while : |
---|
| 4306 | do |
---|
| 4307 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4308 | mv "conftest.tmp" "conftest.in" |
---|
| 4309 | cp "conftest.in" "conftest.nl" |
---|
| 4310 | $as_echo 'GREP' >> "conftest.nl" |
---|
| 4311 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4312 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 4313 | ac_count=`expr $ac_count + 1` |
---|
| 4314 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 4315 | # Best one so far, save it but keep looking for a better one |
---|
| 4316 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 4317 | ac_path_GREP_max=$ac_count |
---|
[14] | 4318 | fi |
---|
[101] | 4319 | # 10*(2^10) chars as input seems more than enough |
---|
| 4320 | test $ac_count -gt 10 && break |
---|
| 4321 | done |
---|
| 4322 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4323 | esac |
---|
| 4324 | |
---|
| 4325 | $ac_path_GREP_found && break 3 |
---|
| 4326 | done |
---|
| 4327 | done |
---|
| 4328 | done |
---|
| 4329 | IFS=$as_save_IFS |
---|
| 4330 | if test -z "$ac_cv_path_GREP"; then |
---|
| 4331 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 4332 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 4333 | { (exit 1); exit 1; }; } |
---|
| 4334 | fi |
---|
| 4335 | else |
---|
| 4336 | ac_cv_path_GREP=$GREP |
---|
[14] | 4337 | fi |
---|
| 4338 | |
---|
[101] | 4339 | fi |
---|
| 4340 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
| 4341 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
| 4342 | GREP="$ac_cv_path_GREP" |
---|
[14] | 4343 | |
---|
[101] | 4344 | |
---|
| 4345 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 4346 | $as_echo_n "checking for egrep... " >&6; } |
---|
| 4347 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 4348 | $as_echo_n "(cached) " >&6 |
---|
| 4349 | else |
---|
| 4350 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 4351 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 4352 | else |
---|
| 4353 | if test -z "$EGREP"; then |
---|
| 4354 | ac_path_EGREP_found=false |
---|
| 4355 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4357 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 4358 | do |
---|
| 4359 | IFS=$as_save_IFS |
---|
| 4360 | test -z "$as_dir" && as_dir=. |
---|
| 4361 | for ac_prog in egrep; do |
---|
| 4362 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4363 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 4364 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
| 4365 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
| 4366 | # Check for GNU $ac_path_EGREP |
---|
| 4367 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 4368 | *GNU*) |
---|
| 4369 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 4370 | *) |
---|
| 4371 | ac_count=0 |
---|
| 4372 | $as_echo_n 0123456789 >"conftest.in" |
---|
| 4373 | while : |
---|
| 4374 | do |
---|
| 4375 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 4376 | mv "conftest.tmp" "conftest.in" |
---|
| 4377 | cp "conftest.in" "conftest.nl" |
---|
| 4378 | $as_echo 'EGREP' >> "conftest.nl" |
---|
| 4379 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 4380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 4381 | ac_count=`expr $ac_count + 1` |
---|
| 4382 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 4383 | # Best one so far, save it but keep looking for a better one |
---|
| 4384 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 4385 | ac_path_EGREP_max=$ac_count |
---|
| 4386 | fi |
---|
| 4387 | # 10*(2^10) chars as input seems more than enough |
---|
| 4388 | test $ac_count -gt 10 && break |
---|
| 4389 | done |
---|
| 4390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 4391 | esac |
---|
| 4392 | |
---|
| 4393 | $ac_path_EGREP_found && break 3 |
---|
| 4394 | done |
---|
| 4395 | done |
---|
| 4396 | done |
---|
| 4397 | IFS=$as_save_IFS |
---|
| 4398 | if test -z "$ac_cv_path_EGREP"; then |
---|
| 4399 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 4400 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 4401 | { (exit 1); exit 1; }; } |
---|
| 4402 | fi |
---|
| 4403 | else |
---|
| 4404 | ac_cv_path_EGREP=$EGREP |
---|
| 4405 | fi |
---|
| 4406 | |
---|
| 4407 | fi |
---|
| 4408 | fi |
---|
| 4409 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
| 4410 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
| 4411 | EGREP="$ac_cv_path_EGREP" |
---|
| 4412 | |
---|
| 4413 | |
---|
| 4414 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 4415 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
[14] | 4416 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
[101] | 4417 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4418 | else |
---|
| 4419 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4420 | /* confdefs.h. */ |
---|
| 4421 | _ACEOF |
---|
| 4422 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4424 | /* end confdefs.h. */ |
---|
| 4425 | #include <stdlib.h> |
---|
| 4426 | #include <stdarg.h> |
---|
| 4427 | #include <string.h> |
---|
| 4428 | #include <float.h> |
---|
| 4429 | |
---|
| 4430 | int |
---|
| 4431 | main () |
---|
| 4432 | { |
---|
| 4433 | |
---|
| 4434 | ; |
---|
| 4435 | return 0; |
---|
| 4436 | } |
---|
| 4437 | _ACEOF |
---|
| 4438 | rm -f conftest.$ac_objext |
---|
[101] | 4439 | if { (ac_try="$ac_compile" |
---|
| 4440 | case "(($ac_try" in |
---|
| 4441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4442 | *) ac_try_echo=$ac_try;; |
---|
| 4443 | esac |
---|
| 4444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4445 | $as_echo "$ac_try_echo") >&5 |
---|
| 4446 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 4447 | ac_status=$? |
---|
[101] | 4448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4449 | rm -f conftest.er1 |
---|
| 4450 | cat conftest.err >&5 |
---|
| 4451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4452 | (exit $ac_status); } && { |
---|
| 4453 | test -z "$ac_c_werror_flag" || |
---|
| 4454 | test ! -s conftest.err |
---|
| 4455 | } && test -s conftest.$ac_objext; then |
---|
[14] | 4456 | ac_cv_header_stdc=yes |
---|
| 4457 | else |
---|
[101] | 4458 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4460 | |
---|
[101] | 4461 | ac_cv_header_stdc=no |
---|
[14] | 4462 | fi |
---|
| 4463 | |
---|
[101] | 4464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4465 | |
---|
[14] | 4466 | if test $ac_cv_header_stdc = yes; then |
---|
| 4467 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 4468 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4469 | /* confdefs.h. */ |
---|
| 4470 | _ACEOF |
---|
| 4471 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4472 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4473 | /* end confdefs.h. */ |
---|
| 4474 | #include <string.h> |
---|
| 4475 | |
---|
| 4476 | _ACEOF |
---|
| 4477 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4478 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 4479 | : |
---|
| 4480 | else |
---|
| 4481 | ac_cv_header_stdc=no |
---|
| 4482 | fi |
---|
| 4483 | rm -f conftest* |
---|
| 4484 | |
---|
| 4485 | fi |
---|
| 4486 | |
---|
| 4487 | if test $ac_cv_header_stdc = yes; then |
---|
| 4488 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 4489 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4490 | /* confdefs.h. */ |
---|
| 4491 | _ACEOF |
---|
| 4492 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4493 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4494 | /* end confdefs.h. */ |
---|
| 4495 | #include <stdlib.h> |
---|
| 4496 | |
---|
| 4497 | _ACEOF |
---|
| 4498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4499 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 4500 | : |
---|
| 4501 | else |
---|
| 4502 | ac_cv_header_stdc=no |
---|
| 4503 | fi |
---|
| 4504 | rm -f conftest* |
---|
| 4505 | |
---|
| 4506 | fi |
---|
| 4507 | |
---|
| 4508 | if test $ac_cv_header_stdc = yes; then |
---|
| 4509 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 4510 | if test "$cross_compiling" = yes; then |
---|
| 4511 | : |
---|
| 4512 | else |
---|
| 4513 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4514 | /* confdefs.h. */ |
---|
| 4515 | _ACEOF |
---|
| 4516 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4517 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4518 | /* end confdefs.h. */ |
---|
| 4519 | #include <ctype.h> |
---|
[101] | 4520 | #include <stdlib.h> |
---|
[14] | 4521 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 4522 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 4523 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 4524 | #else |
---|
| 4525 | # define ISLOWER(c) \ |
---|
[101] | 4526 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 4527 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 4528 | || ('s' <= (c) && (c) <= 'z')) |
---|
[14] | 4529 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 4530 | #endif |
---|
| 4531 | |
---|
| 4532 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 4533 | int |
---|
| 4534 | main () |
---|
| 4535 | { |
---|
| 4536 | int i; |
---|
| 4537 | for (i = 0; i < 256; i++) |
---|
| 4538 | if (XOR (islower (i), ISLOWER (i)) |
---|
[101] | 4539 | || toupper (i) != TOUPPER (i)) |
---|
| 4540 | return 2; |
---|
| 4541 | return 0; |
---|
[14] | 4542 | } |
---|
| 4543 | _ACEOF |
---|
| 4544 | rm -f conftest$ac_exeext |
---|
[101] | 4545 | if { (ac_try="$ac_link" |
---|
| 4546 | case "(($ac_try" in |
---|
| 4547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4548 | *) ac_try_echo=$ac_try;; |
---|
| 4549 | esac |
---|
| 4550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4551 | $as_echo "$ac_try_echo") >&5 |
---|
| 4552 | (eval "$ac_link") 2>&5 |
---|
[14] | 4553 | ac_status=$? |
---|
[101] | 4554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 4555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[101] | 4556 | { (case "(($ac_try" in |
---|
| 4557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4558 | *) ac_try_echo=$ac_try;; |
---|
| 4559 | esac |
---|
| 4560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4561 | $as_echo "$ac_try_echo") >&5 |
---|
| 4562 | (eval "$ac_try") 2>&5 |
---|
[14] | 4563 | ac_status=$? |
---|
[101] | 4564 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 4565 | (exit $ac_status); }; }; then |
---|
| 4566 | : |
---|
| 4567 | else |
---|
[101] | 4568 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4569 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4571 | |
---|
| 4572 | ( exit $ac_status ) |
---|
| 4573 | ac_cv_header_stdc=no |
---|
| 4574 | fi |
---|
[101] | 4575 | rm -rf conftest.dSYM |
---|
| 4576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 4577 | fi |
---|
[101] | 4578 | |
---|
| 4579 | |
---|
[14] | 4580 | fi |
---|
| 4581 | fi |
---|
[101] | 4582 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 4583 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
[14] | 4584 | if test $ac_cv_header_stdc = yes; then |
---|
| 4585 | |
---|
| 4586 | cat >>confdefs.h <<\_ACEOF |
---|
| 4587 | #define STDC_HEADERS 1 |
---|
| 4588 | _ACEOF |
---|
| 4589 | |
---|
| 4590 | fi |
---|
| 4591 | |
---|
| 4592 | |
---|
| 4593 | |
---|
| 4594 | |
---|
| 4595 | # add -lucb to LIBS and -L/usr/ucblib to LIBDIRS |
---|
| 4596 | # if there's a libucb.a available |
---|
| 4597 | # (Solaris needs this for signals) |
---|
| 4598 | |
---|
| 4599 | ac_save_ldflags="$LDFLAGS" |
---|
| 4600 | LDFLAGS=-L/usr/ucblib |
---|
[101] | 4601 | { $as_echo "$as_me:$LINENO: checking for main in -lucb" >&5 |
---|
| 4602 | $as_echo_n "checking for main in -lucb... " >&6; } |
---|
[14] | 4603 | if test "${ac_cv_lib_ucb_main+set}" = set; then |
---|
[101] | 4604 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4605 | else |
---|
| 4606 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4607 | LIBS="-lucb $LIBS" |
---|
| 4608 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4609 | /* confdefs.h. */ |
---|
| 4610 | _ACEOF |
---|
| 4611 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4613 | /* end confdefs.h. */ |
---|
| 4614 | |
---|
| 4615 | |
---|
| 4616 | int |
---|
| 4617 | main () |
---|
| 4618 | { |
---|
[101] | 4619 | return main (); |
---|
[14] | 4620 | ; |
---|
| 4621 | return 0; |
---|
| 4622 | } |
---|
| 4623 | _ACEOF |
---|
| 4624 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 4625 | if { (ac_try="$ac_link" |
---|
| 4626 | case "(($ac_try" in |
---|
| 4627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4628 | *) ac_try_echo=$ac_try;; |
---|
| 4629 | esac |
---|
| 4630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4631 | $as_echo "$ac_try_echo") >&5 |
---|
| 4632 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 4633 | ac_status=$? |
---|
[101] | 4634 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4635 | rm -f conftest.er1 |
---|
| 4636 | cat conftest.err >&5 |
---|
| 4637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4638 | (exit $ac_status); } && { |
---|
| 4639 | test -z "$ac_c_werror_flag" || |
---|
| 4640 | test ! -s conftest.err |
---|
| 4641 | } && test -s conftest$ac_exeext && { |
---|
| 4642 | test "$cross_compiling" = yes || |
---|
| 4643 | $as_test_x conftest$ac_exeext |
---|
| 4644 | }; then |
---|
[14] | 4645 | ac_cv_lib_ucb_main=yes |
---|
| 4646 | else |
---|
[101] | 4647 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4649 | |
---|
[101] | 4650 | ac_cv_lib_ucb_main=no |
---|
[14] | 4651 | fi |
---|
[101] | 4652 | |
---|
| 4653 | rm -rf conftest.dSYM |
---|
| 4654 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4655 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 4656 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4657 | fi |
---|
[101] | 4658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_main" >&5 |
---|
| 4659 | $as_echo "$ac_cv_lib_ucb_main" >&6; } |
---|
| 4660 | if test "x$ac_cv_lib_ucb_main" = x""yes; then |
---|
[14] | 4661 | LIBDIRS="$LIBDIRS -L/usr/ucblib" |
---|
| 4662 | fi |
---|
| 4663 | |
---|
| 4664 | LDFLAGS="$ac_save_ldflags" |
---|
| 4665 | |
---|
| 4666 | # add -lbsd if there's a libbsd.a available |
---|
| 4667 | # (e.g., Linux needs this for bsd_ioctl) |
---|
| 4668 | |
---|
[101] | 4669 | { $as_echo "$as_me:$LINENO: checking for main in -lbsd" >&5 |
---|
| 4670 | $as_echo_n "checking for main in -lbsd... " >&6; } |
---|
[14] | 4671 | if test "${ac_cv_lib_bsd_main+set}" = set; then |
---|
[101] | 4672 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4673 | else |
---|
| 4674 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4675 | LIBS="-lbsd $LIBS" |
---|
| 4676 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4677 | /* confdefs.h. */ |
---|
| 4678 | _ACEOF |
---|
| 4679 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4680 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4681 | /* end confdefs.h. */ |
---|
| 4682 | |
---|
| 4683 | |
---|
| 4684 | int |
---|
| 4685 | main () |
---|
| 4686 | { |
---|
[101] | 4687 | return main (); |
---|
[14] | 4688 | ; |
---|
| 4689 | return 0; |
---|
| 4690 | } |
---|
| 4691 | _ACEOF |
---|
| 4692 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 4693 | if { (ac_try="$ac_link" |
---|
| 4694 | case "(($ac_try" in |
---|
| 4695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4696 | *) ac_try_echo=$ac_try;; |
---|
| 4697 | esac |
---|
| 4698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4699 | $as_echo "$ac_try_echo") >&5 |
---|
| 4700 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 4701 | ac_status=$? |
---|
[101] | 4702 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4703 | rm -f conftest.er1 |
---|
| 4704 | cat conftest.err >&5 |
---|
| 4705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4706 | (exit $ac_status); } && { |
---|
| 4707 | test -z "$ac_c_werror_flag" || |
---|
| 4708 | test ! -s conftest.err |
---|
| 4709 | } && test -s conftest$ac_exeext && { |
---|
| 4710 | test "$cross_compiling" = yes || |
---|
| 4711 | $as_test_x conftest$ac_exeext |
---|
| 4712 | }; then |
---|
[14] | 4713 | ac_cv_lib_bsd_main=yes |
---|
| 4714 | else |
---|
[101] | 4715 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4717 | |
---|
[101] | 4718 | ac_cv_lib_bsd_main=no |
---|
[14] | 4719 | fi |
---|
[101] | 4720 | |
---|
| 4721 | rm -rf conftest.dSYM |
---|
| 4722 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4723 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 4724 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4725 | fi |
---|
[101] | 4726 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5 |
---|
| 4727 | $as_echo "$ac_cv_lib_bsd_main" >&6; } |
---|
| 4728 | if test "x$ac_cv_lib_bsd_main" = x""yes; then |
---|
[14] | 4729 | cat >>confdefs.h <<_ACEOF |
---|
| 4730 | #define HAVE_LIBBSD 1 |
---|
| 4731 | _ACEOF |
---|
| 4732 | |
---|
| 4733 | LIBS="-lbsd $LIBS" |
---|
| 4734 | |
---|
| 4735 | fi |
---|
| 4736 | |
---|
| 4737 | |
---|
| 4738 | # Check if libreadline exists and the function readline can be used. |
---|
| 4739 | # This implies checking for the availability of libtermcap or of a |
---|
| 4740 | # suitable replacement. (We only look for libncurses.) |
---|
| 4741 | if test "${vis_cv_termcap_lib+set}" = set; then |
---|
[101] | 4742 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4743 | else |
---|
[101] | 4744 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
---|
| 4745 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } |
---|
[14] | 4746 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
---|
[101] | 4747 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4748 | else |
---|
| 4749 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4750 | LIBS="-ltermcap $LIBS" |
---|
| 4751 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4752 | /* confdefs.h. */ |
---|
| 4753 | _ACEOF |
---|
| 4754 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4755 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4756 | /* end confdefs.h. */ |
---|
| 4757 | |
---|
[101] | 4758 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4759 | Use char because int might match the return type of a GCC |
---|
| 4760 | builtin and then its argument prototype would still apply. */ |
---|
[14] | 4761 | #ifdef __cplusplus |
---|
| 4762 | extern "C" |
---|
| 4763 | #endif |
---|
| 4764 | char tgetent (); |
---|
| 4765 | int |
---|
| 4766 | main () |
---|
| 4767 | { |
---|
[101] | 4768 | return tgetent (); |
---|
[14] | 4769 | ; |
---|
| 4770 | return 0; |
---|
| 4771 | } |
---|
| 4772 | _ACEOF |
---|
| 4773 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 4774 | if { (ac_try="$ac_link" |
---|
| 4775 | case "(($ac_try" in |
---|
| 4776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4777 | *) ac_try_echo=$ac_try;; |
---|
| 4778 | esac |
---|
| 4779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4780 | $as_echo "$ac_try_echo") >&5 |
---|
| 4781 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 4782 | ac_status=$? |
---|
[101] | 4783 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4784 | rm -f conftest.er1 |
---|
| 4785 | cat conftest.err >&5 |
---|
| 4786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4787 | (exit $ac_status); } && { |
---|
| 4788 | test -z "$ac_c_werror_flag" || |
---|
| 4789 | test ! -s conftest.err |
---|
| 4790 | } && test -s conftest$ac_exeext && { |
---|
| 4791 | test "$cross_compiling" = yes || |
---|
| 4792 | $as_test_x conftest$ac_exeext |
---|
| 4793 | }; then |
---|
[14] | 4794 | ac_cv_lib_termcap_tgetent=yes |
---|
| 4795 | else |
---|
[101] | 4796 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4797 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4798 | |
---|
[101] | 4799 | ac_cv_lib_termcap_tgetent=no |
---|
[14] | 4800 | fi |
---|
[101] | 4801 | |
---|
| 4802 | rm -rf conftest.dSYM |
---|
| 4803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4804 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 4805 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4806 | fi |
---|
[101] | 4807 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
---|
| 4808 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } |
---|
| 4809 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then |
---|
[14] | 4810 | vis_cv_termcap_lib=-ltermcap |
---|
| 4811 | else |
---|
[101] | 4812 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
---|
| 4813 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } |
---|
[14] | 4814 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
---|
[101] | 4815 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4816 | else |
---|
| 4817 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4818 | LIBS="-lncurses $LIBS" |
---|
| 4819 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4820 | /* confdefs.h. */ |
---|
| 4821 | _ACEOF |
---|
| 4822 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4824 | /* end confdefs.h. */ |
---|
| 4825 | |
---|
[101] | 4826 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4827 | Use char because int might match the return type of a GCC |
---|
| 4828 | builtin and then its argument prototype would still apply. */ |
---|
[14] | 4829 | #ifdef __cplusplus |
---|
| 4830 | extern "C" |
---|
| 4831 | #endif |
---|
| 4832 | char tgetent (); |
---|
| 4833 | int |
---|
| 4834 | main () |
---|
| 4835 | { |
---|
[101] | 4836 | return tgetent (); |
---|
[14] | 4837 | ; |
---|
| 4838 | return 0; |
---|
| 4839 | } |
---|
| 4840 | _ACEOF |
---|
| 4841 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 4842 | if { (ac_try="$ac_link" |
---|
| 4843 | case "(($ac_try" in |
---|
| 4844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4845 | *) ac_try_echo=$ac_try;; |
---|
| 4846 | esac |
---|
| 4847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4848 | $as_echo "$ac_try_echo") >&5 |
---|
| 4849 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 4850 | ac_status=$? |
---|
[101] | 4851 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4852 | rm -f conftest.er1 |
---|
| 4853 | cat conftest.err >&5 |
---|
| 4854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4855 | (exit $ac_status); } && { |
---|
| 4856 | test -z "$ac_c_werror_flag" || |
---|
| 4857 | test ! -s conftest.err |
---|
| 4858 | } && test -s conftest$ac_exeext && { |
---|
| 4859 | test "$cross_compiling" = yes || |
---|
| 4860 | $as_test_x conftest$ac_exeext |
---|
| 4861 | }; then |
---|
[14] | 4862 | ac_cv_lib_ncurses_tgetent=yes |
---|
| 4863 | else |
---|
[101] | 4864 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4865 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4866 | |
---|
[101] | 4867 | ac_cv_lib_ncurses_tgetent=no |
---|
[14] | 4868 | fi |
---|
[101] | 4869 | |
---|
| 4870 | rm -rf conftest.dSYM |
---|
| 4871 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4872 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 4873 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4874 | fi |
---|
[101] | 4875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
---|
| 4876 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } |
---|
| 4877 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then |
---|
[14] | 4878 | vis_cv_termcap_lib=-lncurses |
---|
| 4879 | else |
---|
| 4880 | bash_cv_termcap_lib=none |
---|
| 4881 | fi |
---|
| 4882 | |
---|
| 4883 | fi |
---|
| 4884 | |
---|
| 4885 | fi |
---|
| 4886 | |
---|
| 4887 | if test "$vis_cv_termcap_lib" != none; then |
---|
[101] | 4888 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
---|
| 4889 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
---|
[14] | 4890 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
---|
[101] | 4891 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4892 | else |
---|
| 4893 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4894 | LIBS="-lreadline $vis_cv_termcap_lib $LIBS" |
---|
| 4895 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4896 | /* confdefs.h. */ |
---|
| 4897 | _ACEOF |
---|
| 4898 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4899 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4900 | /* end confdefs.h. */ |
---|
| 4901 | |
---|
[101] | 4902 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4903 | Use char because int might match the return type of a GCC |
---|
| 4904 | builtin and then its argument prototype would still apply. */ |
---|
[14] | 4905 | #ifdef __cplusplus |
---|
| 4906 | extern "C" |
---|
| 4907 | #endif |
---|
| 4908 | char readline (); |
---|
| 4909 | int |
---|
| 4910 | main () |
---|
| 4911 | { |
---|
[101] | 4912 | return readline (); |
---|
[14] | 4913 | ; |
---|
| 4914 | return 0; |
---|
| 4915 | } |
---|
| 4916 | _ACEOF |
---|
| 4917 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 4918 | if { (ac_try="$ac_link" |
---|
| 4919 | case "(($ac_try" in |
---|
| 4920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4921 | *) ac_try_echo=$ac_try;; |
---|
| 4922 | esac |
---|
| 4923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 4924 | $as_echo "$ac_try_echo") >&5 |
---|
| 4925 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 4926 | ac_status=$? |
---|
[101] | 4927 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4928 | rm -f conftest.er1 |
---|
| 4929 | cat conftest.err >&5 |
---|
| 4930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4931 | (exit $ac_status); } && { |
---|
| 4932 | test -z "$ac_c_werror_flag" || |
---|
| 4933 | test ! -s conftest.err |
---|
| 4934 | } && test -s conftest$ac_exeext && { |
---|
| 4935 | test "$cross_compiling" = yes || |
---|
| 4936 | $as_test_x conftest$ac_exeext |
---|
| 4937 | }; then |
---|
[14] | 4938 | ac_cv_lib_readline_readline=yes |
---|
| 4939 | else |
---|
[101] | 4940 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 4941 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4942 | |
---|
[101] | 4943 | ac_cv_lib_readline_readline=no |
---|
[14] | 4944 | fi |
---|
[101] | 4945 | |
---|
| 4946 | rm -rf conftest.dSYM |
---|
| 4947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 4948 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 4949 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4950 | fi |
---|
[101] | 4951 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
---|
| 4952 | $as_echo "$ac_cv_lib_readline_readline" >&6; } |
---|
| 4953 | if test "x$ac_cv_lib_readline_readline" = x""yes; then |
---|
[14] | 4954 | ac_readline_flag=1 |
---|
| 4955 | else |
---|
| 4956 | ac_readline_flag=0 |
---|
| 4957 | fi |
---|
| 4958 | |
---|
| 4959 | if test $ac_readline_flag = 1 ; then |
---|
| 4960 | LIBS="$LIBS -lreadline $vis_cv_termcap_lib" ; cat >>confdefs.h <<\_ACEOF |
---|
| 4961 | #define HAVE_LIBREADLINE 1 |
---|
| 4962 | _ACEOF |
---|
| 4963 | |
---|
| 4964 | fi |
---|
| 4965 | fi |
---|
| 4966 | |
---|
| 4967 | # Check for the dirent header file, which is quite a mess |
---|
| 4968 | |
---|
| 4969 | |
---|
| 4970 | |
---|
| 4971 | |
---|
| 4972 | |
---|
| 4973 | ac_header_dirent=no |
---|
| 4974 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
[101] | 4975 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
| 4976 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
| 4977 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
---|
| 4978 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 4979 | $as_echo_n "(cached) " >&6 |
---|
[14] | 4980 | else |
---|
| 4981 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4982 | /* confdefs.h. */ |
---|
| 4983 | _ACEOF |
---|
| 4984 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4985 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4986 | /* end confdefs.h. */ |
---|
| 4987 | #include <sys/types.h> |
---|
| 4988 | #include <$ac_hdr> |
---|
| 4989 | |
---|
| 4990 | int |
---|
| 4991 | main () |
---|
| 4992 | { |
---|
| 4993 | if ((DIR *) 0) |
---|
| 4994 | return 0; |
---|
| 4995 | ; |
---|
| 4996 | return 0; |
---|
| 4997 | } |
---|
| 4998 | _ACEOF |
---|
| 4999 | rm -f conftest.$ac_objext |
---|
[101] | 5000 | if { (ac_try="$ac_compile" |
---|
| 5001 | case "(($ac_try" in |
---|
| 5002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5003 | *) ac_try_echo=$ac_try;; |
---|
| 5004 | esac |
---|
| 5005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5006 | $as_echo "$ac_try_echo") >&5 |
---|
| 5007 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5008 | ac_status=$? |
---|
[101] | 5009 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5010 | rm -f conftest.er1 |
---|
| 5011 | cat conftest.err >&5 |
---|
| 5012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5013 | (exit $ac_status); } && { |
---|
| 5014 | test -z "$ac_c_werror_flag" || |
---|
| 5015 | test ! -s conftest.err |
---|
| 5016 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5017 | eval "$as_ac_Header=yes" |
---|
| 5018 | else |
---|
[101] | 5019 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5021 | |
---|
[101] | 5022 | eval "$as_ac_Header=no" |
---|
[14] | 5023 | fi |
---|
[101] | 5024 | |
---|
| 5025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 5026 | fi |
---|
[101] | 5027 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5028 | $as_echo "$as_val"'` |
---|
| 5029 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 5030 | $as_echo "$ac_res" >&6; } |
---|
| 5031 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5032 | $as_echo "$as_val"'` |
---|
| 5033 | if test "x$as_val" = x""yes; then |
---|
[14] | 5034 | cat >>confdefs.h <<_ACEOF |
---|
[101] | 5035 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
[14] | 5036 | _ACEOF |
---|
| 5037 | |
---|
| 5038 | ac_header_dirent=$ac_hdr; break |
---|
| 5039 | fi |
---|
| 5040 | |
---|
| 5041 | done |
---|
| 5042 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
| 5043 | if test $ac_header_dirent = dirent.h; then |
---|
[101] | 5044 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
| 5045 | $as_echo_n "checking for library containing opendir... " >&6; } |
---|
[14] | 5046 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
[101] | 5047 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5048 | else |
---|
| 5049 | ac_func_search_save_LIBS=$LIBS |
---|
| 5050 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5051 | /* confdefs.h. */ |
---|
| 5052 | _ACEOF |
---|
| 5053 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5055 | /* end confdefs.h. */ |
---|
| 5056 | |
---|
[101] | 5057 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5058 | Use char because int might match the return type of a GCC |
---|
| 5059 | builtin and then its argument prototype would still apply. */ |
---|
[14] | 5060 | #ifdef __cplusplus |
---|
| 5061 | extern "C" |
---|
| 5062 | #endif |
---|
| 5063 | char opendir (); |
---|
| 5064 | int |
---|
| 5065 | main () |
---|
| 5066 | { |
---|
[101] | 5067 | return opendir (); |
---|
[14] | 5068 | ; |
---|
| 5069 | return 0; |
---|
| 5070 | } |
---|
| 5071 | _ACEOF |
---|
[101] | 5072 | for ac_lib in '' dir; do |
---|
| 5073 | if test -z "$ac_lib"; then |
---|
| 5074 | ac_res="none required" |
---|
| 5075 | else |
---|
| 5076 | ac_res=-l$ac_lib |
---|
| 5077 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
| 5078 | fi |
---|
| 5079 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5080 | if { (ac_try="$ac_link" |
---|
| 5081 | case "(($ac_try" in |
---|
| 5082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5083 | *) ac_try_echo=$ac_try;; |
---|
| 5084 | esac |
---|
| 5085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5086 | $as_echo "$ac_try_echo") >&5 |
---|
| 5087 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 5088 | ac_status=$? |
---|
[101] | 5089 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5090 | rm -f conftest.er1 |
---|
| 5091 | cat conftest.err >&5 |
---|
| 5092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5093 | (exit $ac_status); } && { |
---|
| 5094 | test -z "$ac_c_werror_flag" || |
---|
| 5095 | test ! -s conftest.err |
---|
| 5096 | } && test -s conftest$ac_exeext && { |
---|
| 5097 | test "$cross_compiling" = yes || |
---|
| 5098 | $as_test_x conftest$ac_exeext |
---|
| 5099 | }; then |
---|
| 5100 | ac_cv_search_opendir=$ac_res |
---|
[14] | 5101 | else |
---|
[101] | 5102 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5104 | |
---|
[101] | 5105 | |
---|
[14] | 5106 | fi |
---|
| 5107 | |
---|
[101] | 5108 | rm -rf conftest.dSYM |
---|
| 5109 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 5110 | conftest$ac_exeext |
---|
| 5111 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
| 5112 | break |
---|
| 5113 | fi |
---|
| 5114 | done |
---|
| 5115 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
| 5116 | : |
---|
[14] | 5117 | else |
---|
[101] | 5118 | ac_cv_search_opendir=no |
---|
[14] | 5119 | fi |
---|
[101] | 5120 | rm conftest.$ac_ext |
---|
[14] | 5121 | LIBS=$ac_func_search_save_LIBS |
---|
| 5122 | fi |
---|
[101] | 5123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
| 5124 | $as_echo "$ac_cv_search_opendir" >&6; } |
---|
| 5125 | ac_res=$ac_cv_search_opendir |
---|
| 5126 | if test "$ac_res" != no; then |
---|
| 5127 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
[14] | 5128 | |
---|
| 5129 | fi |
---|
| 5130 | |
---|
| 5131 | else |
---|
[101] | 5132 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
| 5133 | $as_echo_n "checking for library containing opendir... " >&6; } |
---|
[14] | 5134 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
[101] | 5135 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5136 | else |
---|
| 5137 | ac_func_search_save_LIBS=$LIBS |
---|
| 5138 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5139 | /* confdefs.h. */ |
---|
| 5140 | _ACEOF |
---|
| 5141 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5142 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5143 | /* end confdefs.h. */ |
---|
| 5144 | |
---|
[101] | 5145 | /* Override any GCC internal prototype to avoid an error. |
---|
| 5146 | Use char because int might match the return type of a GCC |
---|
| 5147 | builtin and then its argument prototype would still apply. */ |
---|
[14] | 5148 | #ifdef __cplusplus |
---|
| 5149 | extern "C" |
---|
| 5150 | #endif |
---|
| 5151 | char opendir (); |
---|
| 5152 | int |
---|
| 5153 | main () |
---|
| 5154 | { |
---|
[101] | 5155 | return opendir (); |
---|
[14] | 5156 | ; |
---|
| 5157 | return 0; |
---|
| 5158 | } |
---|
| 5159 | _ACEOF |
---|
[101] | 5160 | for ac_lib in '' x; do |
---|
| 5161 | if test -z "$ac_lib"; then |
---|
| 5162 | ac_res="none required" |
---|
| 5163 | else |
---|
| 5164 | ac_res=-l$ac_lib |
---|
| 5165 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
| 5166 | fi |
---|
| 5167 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5168 | if { (ac_try="$ac_link" |
---|
| 5169 | case "(($ac_try" in |
---|
| 5170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5171 | *) ac_try_echo=$ac_try;; |
---|
| 5172 | esac |
---|
| 5173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5174 | $as_echo "$ac_try_echo") >&5 |
---|
| 5175 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 5176 | ac_status=$? |
---|
[101] | 5177 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5178 | rm -f conftest.er1 |
---|
| 5179 | cat conftest.err >&5 |
---|
| 5180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5181 | (exit $ac_status); } && { |
---|
| 5182 | test -z "$ac_c_werror_flag" || |
---|
| 5183 | test ! -s conftest.err |
---|
| 5184 | } && test -s conftest$ac_exeext && { |
---|
| 5185 | test "$cross_compiling" = yes || |
---|
| 5186 | $as_test_x conftest$ac_exeext |
---|
| 5187 | }; then |
---|
| 5188 | ac_cv_search_opendir=$ac_res |
---|
[14] | 5189 | else |
---|
[101] | 5190 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5192 | |
---|
[101] | 5193 | |
---|
[14] | 5194 | fi |
---|
| 5195 | |
---|
[101] | 5196 | rm -rf conftest.dSYM |
---|
| 5197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 5198 | conftest$ac_exeext |
---|
| 5199 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
| 5200 | break |
---|
| 5201 | fi |
---|
| 5202 | done |
---|
| 5203 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
| 5204 | : |
---|
[14] | 5205 | else |
---|
[101] | 5206 | ac_cv_search_opendir=no |
---|
[14] | 5207 | fi |
---|
[101] | 5208 | rm conftest.$ac_ext |
---|
[14] | 5209 | LIBS=$ac_func_search_save_LIBS |
---|
| 5210 | fi |
---|
[101] | 5211 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
| 5212 | $as_echo "$ac_cv_search_opendir" >&6; } |
---|
| 5213 | ac_res=$ac_cv_search_opendir |
---|
| 5214 | if test "$ac_res" != no; then |
---|
| 5215 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
[14] | 5216 | |
---|
| 5217 | fi |
---|
| 5218 | |
---|
| 5219 | fi |
---|
| 5220 | |
---|
| 5221 | |
---|
| 5222 | # Check for these system header files |
---|
| 5223 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 5224 | |
---|
| 5225 | |
---|
| 5226 | |
---|
| 5227 | |
---|
| 5228 | |
---|
| 5229 | |
---|
| 5230 | |
---|
| 5231 | |
---|
| 5232 | |
---|
| 5233 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
[101] | 5234 | inttypes.h stdint.h unistd.h |
---|
[14] | 5235 | do |
---|
[101] | 5236 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5237 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5238 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
| 5239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5240 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5241 | else |
---|
| 5242 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5243 | /* confdefs.h. */ |
---|
| 5244 | _ACEOF |
---|
| 5245 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5247 | /* end confdefs.h. */ |
---|
| 5248 | $ac_includes_default |
---|
| 5249 | |
---|
| 5250 | #include <$ac_header> |
---|
| 5251 | _ACEOF |
---|
| 5252 | rm -f conftest.$ac_objext |
---|
[101] | 5253 | if { (ac_try="$ac_compile" |
---|
| 5254 | case "(($ac_try" in |
---|
| 5255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5256 | *) ac_try_echo=$ac_try;; |
---|
| 5257 | esac |
---|
| 5258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5259 | $as_echo "$ac_try_echo") >&5 |
---|
| 5260 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5261 | ac_status=$? |
---|
[101] | 5262 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5263 | rm -f conftest.er1 |
---|
| 5264 | cat conftest.err >&5 |
---|
| 5265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5266 | (exit $ac_status); } && { |
---|
| 5267 | test -z "$ac_c_werror_flag" || |
---|
| 5268 | test ! -s conftest.err |
---|
| 5269 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5270 | eval "$as_ac_Header=yes" |
---|
| 5271 | else |
---|
[101] | 5272 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5273 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5274 | |
---|
[101] | 5275 | eval "$as_ac_Header=no" |
---|
[14] | 5276 | fi |
---|
[101] | 5277 | |
---|
| 5278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 5279 | fi |
---|
[101] | 5280 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5281 | $as_echo "$as_val"'` |
---|
| 5282 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 5283 | $as_echo "$ac_res" >&6; } |
---|
| 5284 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5285 | $as_echo "$as_val"'` |
---|
| 5286 | if test "x$as_val" = x""yes; then |
---|
[14] | 5287 | cat >>confdefs.h <<_ACEOF |
---|
[101] | 5288 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[14] | 5289 | _ACEOF |
---|
| 5290 | |
---|
| 5291 | fi |
---|
| 5292 | |
---|
| 5293 | done |
---|
| 5294 | |
---|
| 5295 | |
---|
| 5296 | |
---|
| 5297 | |
---|
| 5298 | |
---|
| 5299 | |
---|
| 5300 | |
---|
| 5301 | |
---|
| 5302 | |
---|
| 5303 | for ac_header in sys/termios.h sys/ioctl.h sys/time.h signal.h sys/signal.h readline/readline.h readline/history.h |
---|
| 5304 | do |
---|
[101] | 5305 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5306 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5307 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5308 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
| 5309 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5310 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5311 | fi |
---|
[101] | 5312 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5313 | $as_echo "$as_val"'` |
---|
| 5314 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 5315 | $as_echo "$ac_res" >&6; } |
---|
[14] | 5316 | else |
---|
| 5317 | # Is the header compilable? |
---|
[101] | 5318 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5319 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
[14] | 5320 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5321 | /* confdefs.h. */ |
---|
| 5322 | _ACEOF |
---|
| 5323 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5324 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5325 | /* end confdefs.h. */ |
---|
| 5326 | $ac_includes_default |
---|
| 5327 | #include <$ac_header> |
---|
| 5328 | _ACEOF |
---|
| 5329 | rm -f conftest.$ac_objext |
---|
[101] | 5330 | if { (ac_try="$ac_compile" |
---|
| 5331 | case "(($ac_try" in |
---|
| 5332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5333 | *) ac_try_echo=$ac_try;; |
---|
| 5334 | esac |
---|
| 5335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5336 | $as_echo "$ac_try_echo") >&5 |
---|
| 5337 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5338 | ac_status=$? |
---|
[101] | 5339 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5340 | rm -f conftest.er1 |
---|
| 5341 | cat conftest.err >&5 |
---|
| 5342 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5343 | (exit $ac_status); } && { |
---|
| 5344 | test -z "$ac_c_werror_flag" || |
---|
| 5345 | test ! -s conftest.err |
---|
| 5346 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5347 | ac_header_compiler=yes |
---|
| 5348 | else |
---|
[101] | 5349 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5350 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5351 | |
---|
[101] | 5352 | ac_header_compiler=no |
---|
[14] | 5353 | fi |
---|
| 5354 | |
---|
[101] | 5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5356 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5357 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 5358 | |
---|
[14] | 5359 | # Is the header present? |
---|
[101] | 5360 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5361 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
[14] | 5362 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5363 | /* confdefs.h. */ |
---|
| 5364 | _ACEOF |
---|
| 5365 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5366 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5367 | /* end confdefs.h. */ |
---|
| 5368 | #include <$ac_header> |
---|
| 5369 | _ACEOF |
---|
[101] | 5370 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 5371 | case "(($ac_try" in |
---|
| 5372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5373 | *) ac_try_echo=$ac_try;; |
---|
| 5374 | esac |
---|
| 5375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5376 | $as_echo "$ac_try_echo") >&5 |
---|
| 5377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 5378 | ac_status=$? |
---|
| 5379 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5380 | rm -f conftest.er1 |
---|
| 5381 | cat conftest.err >&5 |
---|
[101] | 5382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5383 | (exit $ac_status); } >/dev/null && { |
---|
| 5384 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 5385 | test ! -s conftest.err |
---|
| 5386 | }; then |
---|
[14] | 5387 | ac_header_preproc=yes |
---|
| 5388 | else |
---|
[101] | 5389 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5391 | |
---|
| 5392 | ac_header_preproc=no |
---|
| 5393 | fi |
---|
[101] | 5394 | |
---|
[14] | 5395 | rm -f conftest.err conftest.$ac_ext |
---|
[101] | 5396 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5397 | $as_echo "$ac_header_preproc" >&6; } |
---|
[14] | 5398 | |
---|
| 5399 | # So? What about this header? |
---|
[101] | 5400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5401 | yes:no: ) |
---|
| 5402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5403 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5405 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5406 | ac_header_preproc=yes |
---|
[14] | 5407 | ;; |
---|
[101] | 5408 | no:yes:* ) |
---|
| 5409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5410 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5412 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5414 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5415 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5416 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5417 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5418 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5420 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5421 | |
---|
[14] | 5422 | ;; |
---|
| 5423 | esac |
---|
[101] | 5424 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5425 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
| 5426 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5427 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5428 | else |
---|
[101] | 5429 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
[14] | 5430 | fi |
---|
[101] | 5431 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5432 | $as_echo "$as_val"'` |
---|
| 5433 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 5434 | $as_echo "$ac_res" >&6; } |
---|
[14] | 5435 | |
---|
| 5436 | fi |
---|
[101] | 5437 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5438 | $as_echo "$as_val"'` |
---|
| 5439 | if test "x$as_val" = x""yes; then |
---|
[14] | 5440 | cat >>confdefs.h <<_ACEOF |
---|
[101] | 5441 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[14] | 5442 | _ACEOF |
---|
| 5443 | |
---|
| 5444 | fi |
---|
| 5445 | |
---|
| 5446 | done |
---|
| 5447 | |
---|
| 5448 | |
---|
| 5449 | # This is for Linux |
---|
| 5450 | |
---|
| 5451 | for ac_header in bsd/sgtty.h |
---|
| 5452 | do |
---|
[101] | 5453 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5454 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5455 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5456 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
| 5457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5458 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5459 | fi |
---|
[101] | 5460 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5461 | $as_echo "$as_val"'` |
---|
| 5462 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 5463 | $as_echo "$ac_res" >&6; } |
---|
[14] | 5464 | else |
---|
| 5465 | # Is the header compilable? |
---|
[101] | 5466 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5467 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
[14] | 5468 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5469 | /* confdefs.h. */ |
---|
| 5470 | _ACEOF |
---|
| 5471 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5472 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5473 | /* end confdefs.h. */ |
---|
| 5474 | $ac_includes_default |
---|
| 5475 | #include <$ac_header> |
---|
| 5476 | _ACEOF |
---|
| 5477 | rm -f conftest.$ac_objext |
---|
[101] | 5478 | if { (ac_try="$ac_compile" |
---|
| 5479 | case "(($ac_try" in |
---|
| 5480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5481 | *) ac_try_echo=$ac_try;; |
---|
| 5482 | esac |
---|
| 5483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5484 | $as_echo "$ac_try_echo") >&5 |
---|
| 5485 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5486 | ac_status=$? |
---|
[101] | 5487 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5488 | rm -f conftest.er1 |
---|
| 5489 | cat conftest.err >&5 |
---|
| 5490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5491 | (exit $ac_status); } && { |
---|
| 5492 | test -z "$ac_c_werror_flag" || |
---|
| 5493 | test ! -s conftest.err |
---|
| 5494 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5495 | ac_header_compiler=yes |
---|
| 5496 | else |
---|
[101] | 5497 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5498 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5499 | |
---|
[101] | 5500 | ac_header_compiler=no |
---|
[14] | 5501 | fi |
---|
| 5502 | |
---|
[101] | 5503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5504 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5505 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 5506 | |
---|
[14] | 5507 | # Is the header present? |
---|
[101] | 5508 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5509 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
[14] | 5510 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5511 | /* confdefs.h. */ |
---|
| 5512 | _ACEOF |
---|
| 5513 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5515 | /* end confdefs.h. */ |
---|
| 5516 | #include <$ac_header> |
---|
| 5517 | _ACEOF |
---|
[101] | 5518 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 5519 | case "(($ac_try" in |
---|
| 5520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5521 | *) ac_try_echo=$ac_try;; |
---|
| 5522 | esac |
---|
| 5523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5524 | $as_echo "$ac_try_echo") >&5 |
---|
| 5525 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 5526 | ac_status=$? |
---|
| 5527 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5528 | rm -f conftest.er1 |
---|
| 5529 | cat conftest.err >&5 |
---|
[101] | 5530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5531 | (exit $ac_status); } >/dev/null && { |
---|
| 5532 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 5533 | test ! -s conftest.err |
---|
| 5534 | }; then |
---|
[14] | 5535 | ac_header_preproc=yes |
---|
| 5536 | else |
---|
[101] | 5537 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5538 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5539 | |
---|
| 5540 | ac_header_preproc=no |
---|
| 5541 | fi |
---|
[101] | 5542 | |
---|
[14] | 5543 | rm -f conftest.err conftest.$ac_ext |
---|
[101] | 5544 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5545 | $as_echo "$ac_header_preproc" >&6; } |
---|
[14] | 5546 | |
---|
| 5547 | # So? What about this header? |
---|
[101] | 5548 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5549 | yes:no: ) |
---|
| 5550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5551 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5552 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5553 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5554 | ac_header_preproc=yes |
---|
[14] | 5555 | ;; |
---|
[101] | 5556 | no:yes:* ) |
---|
| 5557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5558 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5560 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5562 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5564 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5565 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5566 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5567 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5568 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5569 | |
---|
[14] | 5570 | ;; |
---|
| 5571 | esac |
---|
[101] | 5572 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5573 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
| 5574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 5575 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5576 | else |
---|
[101] | 5577 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
[14] | 5578 | fi |
---|
[101] | 5579 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5580 | $as_echo "$as_val"'` |
---|
| 5581 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 5582 | $as_echo "$ac_res" >&6; } |
---|
[14] | 5583 | |
---|
| 5584 | fi |
---|
[101] | 5585 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
| 5586 | $as_echo "$as_val"'` |
---|
| 5587 | if test "x$as_val" = x""yes; then |
---|
[14] | 5588 | cat >>confdefs.h <<_ACEOF |
---|
[101] | 5589 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
[14] | 5590 | _ACEOF |
---|
| 5591 | |
---|
| 5592 | fi |
---|
| 5593 | |
---|
| 5594 | done |
---|
| 5595 | |
---|
| 5596 | |
---|
| 5597 | # Some systems want both sys/ioctl.h and sys/termios.h, but others can |
---|
| 5598 | # only have one -- check for that |
---|
| 5599 | |
---|
[101] | 5600 | { $as_echo "$as_me:$LINENO: checking whether sys/termios.h and sys/ioctl.h should both be included" >&5 |
---|
| 5601 | $as_echo_n "checking whether sys/termios.h and sys/ioctl.h should both be included... " >&6; } |
---|
[14] | 5602 | |
---|
| 5603 | if test "${ac_cv_ioctl_with_termios+set}" = set; then |
---|
[101] | 5604 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5605 | else |
---|
| 5606 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5607 | /* confdefs.h. */ |
---|
| 5608 | _ACEOF |
---|
| 5609 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5611 | /* end confdefs.h. */ |
---|
| 5612 | |
---|
| 5613 | #include <sys/termios.h> |
---|
| 5614 | #include <sys/ioctl.h> |
---|
| 5615 | |
---|
| 5616 | _ACEOF |
---|
[101] | 5617 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 5618 | case "(($ac_try" in |
---|
| 5619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5620 | *) ac_try_echo=$ac_try;; |
---|
| 5621 | esac |
---|
| 5622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5623 | $as_echo "$ac_try_echo") >&5 |
---|
| 5624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[14] | 5625 | ac_status=$? |
---|
| 5626 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5627 | rm -f conftest.er1 |
---|
| 5628 | cat conftest.err >&5 |
---|
[101] | 5629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5630 | (exit $ac_status); } >/dev/null && { |
---|
| 5631 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 5632 | test ! -s conftest.err |
---|
| 5633 | }; then |
---|
[14] | 5634 | ac_cv_ioctl_with_termios=1 |
---|
| 5635 | else |
---|
[101] | 5636 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5638 | |
---|
| 5639 | ac_cv_ioctl_with_termios=0 |
---|
| 5640 | fi |
---|
[101] | 5641 | |
---|
[14] | 5642 | rm -f conftest.err conftest.$ac_ext |
---|
| 5643 | fi |
---|
| 5644 | |
---|
| 5645 | if test $ac_cv_ioctl_with_termios = 1 ; then |
---|
[101] | 5646 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5647 | $as_echo "yes" >&6; } ; cat >>confdefs.h <<\_ACEOF |
---|
[14] | 5648 | #define IOCTL_WITH_TERMIOS 1 |
---|
| 5649 | _ACEOF |
---|
| 5650 | |
---|
| 5651 | else |
---|
[101] | 5652 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5653 | $as_echo "no" >&6; } |
---|
[14] | 5654 | fi |
---|
| 5655 | |
---|
| 5656 | # cmdFile.c wants to be able to use TIOCGETC to do file completion, |
---|
| 5657 | # but some systems (e.g., HPUX) don't have this |
---|
| 5658 | # |
---|
| 5659 | |
---|
[101] | 5660 | { $as_echo "$as_me:$LINENO: checking for TIOCGETC" >&5 |
---|
| 5661 | $as_echo_n "checking for TIOCGETC... " >&6; } |
---|
[14] | 5662 | |
---|
| 5663 | if test "${ac_cv_have_ioctl_with_tiocgetc+set}" = set; then |
---|
[101] | 5664 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5665 | else |
---|
| 5666 | if test $ac_cv_ioctl_with_termios = 1 ; then |
---|
| 5667 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5668 | /* confdefs.h. */ |
---|
| 5669 | _ACEOF |
---|
| 5670 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5671 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5672 | /* end confdefs.h. */ |
---|
| 5673 | #include <sys/termios.h> |
---|
| 5674 | #include <sys/ioctl.h> |
---|
| 5675 | #ifdef TIOCGETC |
---|
| 5676 | yes |
---|
| 5677 | #endif |
---|
| 5678 | _ACEOF |
---|
| 5679 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5680 | $EGREP "yes" >/dev/null 2>&1; then |
---|
| 5681 | ac_cv_have_ioctl_with_tiocgetc=yes |
---|
| 5682 | else |
---|
| 5683 | ac_cv_have_ioctl_with_tiocgetc=no |
---|
| 5684 | fi |
---|
| 5685 | rm -f conftest* |
---|
| 5686 | |
---|
| 5687 | else |
---|
| 5688 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5689 | /* confdefs.h. */ |
---|
| 5690 | _ACEOF |
---|
| 5691 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5692 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5693 | /* end confdefs.h. */ |
---|
| 5694 | #include <sys/ioctl.h> |
---|
| 5695 | #ifdef TIOCGETC |
---|
| 5696 | yes |
---|
| 5697 | #endif |
---|
| 5698 | _ACEOF |
---|
| 5699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5700 | $EGREP "yes" >/dev/null 2>&1; then |
---|
| 5701 | ac_cv_have_ioctl_with_tiocgetc=yes |
---|
| 5702 | else |
---|
| 5703 | ac_cv_have_ioctl_with_tiocgetc=no |
---|
| 5704 | fi |
---|
| 5705 | rm -f conftest* |
---|
| 5706 | |
---|
| 5707 | fi |
---|
| 5708 | fi |
---|
| 5709 | |
---|
| 5710 | if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then |
---|
[101] | 5711 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5712 | $as_echo "yes" >&6; } ; cat >>confdefs.h <<\_ACEOF |
---|
[14] | 5713 | #define HAVE_IOCTL_WITH_TIOCGETC 1 |
---|
| 5714 | _ACEOF |
---|
| 5715 | |
---|
| 5716 | else |
---|
[101] | 5717 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5718 | $as_echo "no" >&6; } |
---|
[14] | 5719 | fi |
---|
| 5720 | |
---|
| 5721 | # # cmdFile.c wants to turn off interrupts, but some systems don't |
---|
| 5722 | # # seem to know how to do that using TIOCLBIS |
---|
| 5723 | # # |
---|
| 5724 | # # This is probably fairly fragile, and it's probably cmdFile.c that should |
---|
| 5725 | # # be fixed |
---|
| 5726 | # # |
---|
| 5727 | # # This has been very unreliable (e.g., on Solaris), so the facility has |
---|
| 5728 | # # been turned off |
---|
| 5729 | # |
---|
| 5730 | # if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then |
---|
| 5731 | # |
---|
| 5732 | # AC_MSG_CHECKING(for TIOCLBIS) |
---|
| 5733 | # |
---|
| 5734 | # AC_CACHE_VAL(ac_cv_have_term_interrupts, |
---|
| 5735 | # [AC_EGREP_CPP(yes, |
---|
| 5736 | # [#include <sys/ioctl.h> |
---|
| 5737 | # #include <sys/termios.h> |
---|
| 5738 | # #ifdef TIOCLBIS |
---|
| 5739 | # yes |
---|
| 5740 | # #endif |
---|
| 5741 | # ], ac_cv_have_term_interrupts=1, |
---|
| 5742 | # ac_cv_have_term_interrupts=0 )]) |
---|
| 5743 | # |
---|
| 5744 | # if test $ac_cv_have_term_interrupts = 1 ; then |
---|
| 5745 | # AC_MSG_RESULT(yes) ; AC_DEFINE(HAVE_TERM_INTERRUPTS) |
---|
| 5746 | # else |
---|
| 5747 | # AC_MSG_RESULT(no) |
---|
| 5748 | # fi |
---|
| 5749 | # |
---|
| 5750 | # fi # ac_cv_have_ioctl_with_tiocgetc |
---|
| 5751 | |
---|
| 5752 | #---------------------------------------------------------------------- |
---|
| 5753 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 5754 | #---------------------------------------------------------------------- |
---|
| 5755 | |
---|
| 5756 | # Check to see if the compiler understands "const" |
---|
| 5757 | # #define it empty otherwise |
---|
[101] | 5758 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
| 5759 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
[14] | 5760 | if test "${ac_cv_c_const+set}" = set; then |
---|
[101] | 5761 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5762 | else |
---|
| 5763 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5764 | /* confdefs.h. */ |
---|
| 5765 | _ACEOF |
---|
| 5766 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5768 | /* end confdefs.h. */ |
---|
| 5769 | |
---|
| 5770 | int |
---|
| 5771 | main () |
---|
| 5772 | { |
---|
| 5773 | /* FIXME: Include the comments suggested by Paul. */ |
---|
| 5774 | #ifndef __cplusplus |
---|
| 5775 | /* Ultrix mips cc rejects this. */ |
---|
| 5776 | typedef int charset[2]; |
---|
[101] | 5777 | const charset cs; |
---|
[14] | 5778 | /* SunOS 4.1.1 cc rejects this. */ |
---|
[101] | 5779 | char const *const *pcpcc; |
---|
| 5780 | char **ppc; |
---|
[14] | 5781 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 5782 | struct point {int x, y;}; |
---|
| 5783 | static struct point const zero = {0,0}; |
---|
| 5784 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 5785 | It does not let you subtract one const X* pointer from another in |
---|
| 5786 | an arm of an if-expression whose if-part is not a constant |
---|
| 5787 | expression */ |
---|
| 5788 | const char *g = "string"; |
---|
[101] | 5789 | pcpcc = &g + (g ? g-g : 0); |
---|
[14] | 5790 | /* HPUX 7.0 cc rejects these. */ |
---|
[101] | 5791 | ++pcpcc; |
---|
| 5792 | ppc = (char**) pcpcc; |
---|
| 5793 | pcpcc = (char const *const *) ppc; |
---|
[14] | 5794 | { /* SCO 3.2v4 cc rejects this. */ |
---|
| 5795 | char *t; |
---|
| 5796 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 5797 | |
---|
| 5798 | *t++ = 0; |
---|
[101] | 5799 | if (s) return 0; |
---|
[14] | 5800 | } |
---|
| 5801 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 5802 | int x[] = {25, 17}; |
---|
| 5803 | const int *foo = &x[0]; |
---|
| 5804 | ++foo; |
---|
| 5805 | } |
---|
| 5806 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 5807 | typedef const int *iptr; |
---|
| 5808 | iptr p = 0; |
---|
| 5809 | ++p; |
---|
| 5810 | } |
---|
| 5811 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
| 5812 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
| 5813 | struct s { int j; const int *ap[3]; }; |
---|
| 5814 | struct s *b; b->j = 5; |
---|
| 5815 | } |
---|
| 5816 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 5817 | const int foo = 10; |
---|
[101] | 5818 | if (!foo) return 0; |
---|
[14] | 5819 | } |
---|
[101] | 5820 | return !cs[0] && !zero.x; |
---|
[14] | 5821 | #endif |
---|
| 5822 | |
---|
| 5823 | ; |
---|
| 5824 | return 0; |
---|
| 5825 | } |
---|
| 5826 | _ACEOF |
---|
| 5827 | rm -f conftest.$ac_objext |
---|
[101] | 5828 | if { (ac_try="$ac_compile" |
---|
| 5829 | case "(($ac_try" in |
---|
| 5830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5831 | *) ac_try_echo=$ac_try;; |
---|
| 5832 | esac |
---|
| 5833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5834 | $as_echo "$ac_try_echo") >&5 |
---|
| 5835 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5836 | ac_status=$? |
---|
[101] | 5837 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5838 | rm -f conftest.er1 |
---|
| 5839 | cat conftest.err >&5 |
---|
| 5840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5841 | (exit $ac_status); } && { |
---|
| 5842 | test -z "$ac_c_werror_flag" || |
---|
| 5843 | test ! -s conftest.err |
---|
| 5844 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5845 | ac_cv_c_const=yes |
---|
| 5846 | else |
---|
[101] | 5847 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5849 | |
---|
[101] | 5850 | ac_cv_c_const=no |
---|
[14] | 5851 | fi |
---|
[101] | 5852 | |
---|
| 5853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 5854 | fi |
---|
[101] | 5855 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
| 5856 | $as_echo "$ac_cv_c_const" >&6; } |
---|
[14] | 5857 | if test $ac_cv_c_const = no; then |
---|
| 5858 | |
---|
| 5859 | cat >>confdefs.h <<\_ACEOF |
---|
[101] | 5860 | #define const /**/ |
---|
[14] | 5861 | _ACEOF |
---|
| 5862 | |
---|
| 5863 | fi |
---|
| 5864 | |
---|
| 5865 | |
---|
| 5866 | # Sort out "time.h" nonsense |
---|
[101] | 5867 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
| 5868 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
---|
[14] | 5869 | if test "${ac_cv_header_time+set}" = set; then |
---|
[101] | 5870 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5871 | else |
---|
| 5872 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5873 | /* confdefs.h. */ |
---|
| 5874 | _ACEOF |
---|
| 5875 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5876 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5877 | /* end confdefs.h. */ |
---|
| 5878 | #include <sys/types.h> |
---|
| 5879 | #include <sys/time.h> |
---|
| 5880 | #include <time.h> |
---|
| 5881 | |
---|
| 5882 | int |
---|
| 5883 | main () |
---|
| 5884 | { |
---|
| 5885 | if ((struct tm *) 0) |
---|
| 5886 | return 0; |
---|
| 5887 | ; |
---|
| 5888 | return 0; |
---|
| 5889 | } |
---|
| 5890 | _ACEOF |
---|
| 5891 | rm -f conftest.$ac_objext |
---|
[101] | 5892 | if { (ac_try="$ac_compile" |
---|
| 5893 | case "(($ac_try" in |
---|
| 5894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5895 | *) ac_try_echo=$ac_try;; |
---|
| 5896 | esac |
---|
| 5897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5898 | $as_echo "$ac_try_echo") >&5 |
---|
| 5899 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5900 | ac_status=$? |
---|
[101] | 5901 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5902 | rm -f conftest.er1 |
---|
| 5903 | cat conftest.err >&5 |
---|
| 5904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5905 | (exit $ac_status); } && { |
---|
| 5906 | test -z "$ac_c_werror_flag" || |
---|
| 5907 | test ! -s conftest.err |
---|
| 5908 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5909 | ac_cv_header_time=yes |
---|
| 5910 | else |
---|
[101] | 5911 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5912 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5913 | |
---|
[101] | 5914 | ac_cv_header_time=no |
---|
[14] | 5915 | fi |
---|
[101] | 5916 | |
---|
| 5917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 5918 | fi |
---|
[101] | 5919 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
| 5920 | $as_echo "$ac_cv_header_time" >&6; } |
---|
[14] | 5921 | if test $ac_cv_header_time = yes; then |
---|
| 5922 | |
---|
| 5923 | cat >>confdefs.h <<\_ACEOF |
---|
| 5924 | #define TIME_WITH_SYS_TIME 1 |
---|
| 5925 | _ACEOF |
---|
| 5926 | |
---|
| 5927 | fi |
---|
| 5928 | |
---|
| 5929 | |
---|
[101] | 5930 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
| 5931 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
---|
[14] | 5932 | if test "${ac_cv_struct_tm+set}" = set; then |
---|
[101] | 5933 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5934 | else |
---|
| 5935 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5936 | /* confdefs.h. */ |
---|
| 5937 | _ACEOF |
---|
| 5938 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5940 | /* end confdefs.h. */ |
---|
| 5941 | #include <sys/types.h> |
---|
| 5942 | #include <time.h> |
---|
| 5943 | |
---|
| 5944 | int |
---|
| 5945 | main () |
---|
| 5946 | { |
---|
[101] | 5947 | struct tm tm; |
---|
| 5948 | int *p = &tm.tm_sec; |
---|
| 5949 | return !p; |
---|
[14] | 5950 | ; |
---|
| 5951 | return 0; |
---|
| 5952 | } |
---|
| 5953 | _ACEOF |
---|
| 5954 | rm -f conftest.$ac_objext |
---|
[101] | 5955 | if { (ac_try="$ac_compile" |
---|
| 5956 | case "(($ac_try" in |
---|
| 5957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 5958 | *) ac_try_echo=$ac_try;; |
---|
| 5959 | esac |
---|
| 5960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 5961 | $as_echo "$ac_try_echo") >&5 |
---|
| 5962 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 5963 | ac_status=$? |
---|
[101] | 5964 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5965 | rm -f conftest.er1 |
---|
| 5966 | cat conftest.err >&5 |
---|
| 5967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5968 | (exit $ac_status); } && { |
---|
| 5969 | test -z "$ac_c_werror_flag" || |
---|
| 5970 | test ! -s conftest.err |
---|
| 5971 | } && test -s conftest.$ac_objext; then |
---|
[14] | 5972 | ac_cv_struct_tm=time.h |
---|
| 5973 | else |
---|
[101] | 5974 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 5975 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5976 | |
---|
[101] | 5977 | ac_cv_struct_tm=sys/time.h |
---|
[14] | 5978 | fi |
---|
[101] | 5979 | |
---|
| 5980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 5981 | fi |
---|
[101] | 5982 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
---|
| 5983 | $as_echo "$ac_cv_struct_tm" >&6; } |
---|
[14] | 5984 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
| 5985 | |
---|
| 5986 | cat >>confdefs.h <<\_ACEOF |
---|
| 5987 | #define TM_IN_SYS_TIME 1 |
---|
| 5988 | _ACEOF |
---|
| 5989 | |
---|
| 5990 | fi |
---|
| 5991 | |
---|
| 5992 | |
---|
| 5993 | # Set RETSIGTYPE to the proper return type for a signal handler (void or int) |
---|
[101] | 5994 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
| 5995 | $as_echo_n "checking return type of signal handlers... " >&6; } |
---|
[14] | 5996 | if test "${ac_cv_type_signal+set}" = set; then |
---|
[101] | 5997 | $as_echo_n "(cached) " >&6 |
---|
[14] | 5998 | else |
---|
| 5999 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6000 | /* confdefs.h. */ |
---|
| 6001 | _ACEOF |
---|
| 6002 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6003 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6004 | /* end confdefs.h. */ |
---|
| 6005 | #include <sys/types.h> |
---|
| 6006 | #include <signal.h> |
---|
| 6007 | |
---|
| 6008 | int |
---|
| 6009 | main () |
---|
| 6010 | { |
---|
[101] | 6011 | return *(signal (0, 0)) (0) == 1; |
---|
[14] | 6012 | ; |
---|
| 6013 | return 0; |
---|
| 6014 | } |
---|
| 6015 | _ACEOF |
---|
| 6016 | rm -f conftest.$ac_objext |
---|
[101] | 6017 | if { (ac_try="$ac_compile" |
---|
| 6018 | case "(($ac_try" in |
---|
| 6019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6020 | *) ac_try_echo=$ac_try;; |
---|
| 6021 | esac |
---|
| 6022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 6023 | $as_echo "$ac_try_echo") >&5 |
---|
| 6024 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 6025 | ac_status=$? |
---|
[101] | 6026 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6027 | rm -f conftest.er1 |
---|
| 6028 | cat conftest.err >&5 |
---|
| 6029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6030 | (exit $ac_status); } && { |
---|
| 6031 | test -z "$ac_c_werror_flag" || |
---|
| 6032 | test ! -s conftest.err |
---|
| 6033 | } && test -s conftest.$ac_objext; then |
---|
| 6034 | ac_cv_type_signal=int |
---|
[14] | 6035 | else |
---|
[101] | 6036 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6038 | |
---|
[101] | 6039 | ac_cv_type_signal=void |
---|
[14] | 6040 | fi |
---|
[101] | 6041 | |
---|
| 6042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 6043 | fi |
---|
[101] | 6044 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
| 6045 | $as_echo "$ac_cv_type_signal" >&6; } |
---|
[14] | 6046 | |
---|
| 6047 | cat >>confdefs.h <<_ACEOF |
---|
| 6048 | #define RETSIGTYPE $ac_cv_type_signal |
---|
| 6049 | _ACEOF |
---|
| 6050 | |
---|
| 6051 | |
---|
| 6052 | |
---|
| 6053 | # Roderick Bloem (rbloem@colorado.edu) : On Irix we need ttold |
---|
| 6054 | case "$target" in |
---|
| 6055 | mips-sgi-irix*) |
---|
| 6056 | cat >>confdefs.h <<\_ACEOF |
---|
| 6057 | #define NEED_TTOLD 1 |
---|
| 6058 | _ACEOF |
---|
| 6059 | ;; |
---|
| 6060 | esac |
---|
| 6061 | |
---|
| 6062 | #---------------------------------------------------------------------- |
---|
| 6063 | # Checks for library functions. |
---|
| 6064 | #---------------------------------------------------------------------- |
---|
| 6065 | |
---|
| 6066 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
[101] | 6067 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
| 6068 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
---|
[14] | 6069 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
[101] | 6070 | $as_echo_n "(cached) " >&6 |
---|
[14] | 6071 | else |
---|
| 6072 | ac_pattern="Autoconf.*'x'" |
---|
| 6073 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6074 | /* confdefs.h. */ |
---|
| 6075 | _ACEOF |
---|
| 6076 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6078 | /* end confdefs.h. */ |
---|
| 6079 | #include <sgtty.h> |
---|
| 6080 | Autoconf TIOCGETP |
---|
| 6081 | _ACEOF |
---|
| 6082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6083 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
| 6084 | ac_cv_prog_gcc_traditional=yes |
---|
| 6085 | else |
---|
| 6086 | ac_cv_prog_gcc_traditional=no |
---|
| 6087 | fi |
---|
| 6088 | rm -f conftest* |
---|
| 6089 | |
---|
| 6090 | |
---|
| 6091 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
| 6092 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6093 | /* confdefs.h. */ |
---|
| 6094 | _ACEOF |
---|
| 6095 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6097 | /* end confdefs.h. */ |
---|
| 6098 | #include <termio.h> |
---|
| 6099 | Autoconf TCGETA |
---|
| 6100 | _ACEOF |
---|
| 6101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6102 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
| 6103 | ac_cv_prog_gcc_traditional=yes |
---|
| 6104 | fi |
---|
| 6105 | rm -f conftest* |
---|
| 6106 | |
---|
| 6107 | fi |
---|
| 6108 | fi |
---|
[101] | 6109 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
| 6110 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
---|
[14] | 6111 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
| 6112 | CC="$CC -traditional" |
---|
| 6113 | fi |
---|
| 6114 | fi |
---|
| 6115 | |
---|
[101] | 6116 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
---|
| 6117 | $as_echo_n "checking for working memcmp... " >&6; } |
---|
[14] | 6118 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
---|
[101] | 6119 | $as_echo_n "(cached) " >&6 |
---|
[14] | 6120 | else |
---|
| 6121 | if test "$cross_compiling" = yes; then |
---|
| 6122 | ac_cv_func_memcmp_working=no |
---|
| 6123 | else |
---|
| 6124 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6125 | /* confdefs.h. */ |
---|
| 6126 | _ACEOF |
---|
| 6127 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6128 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6129 | /* end confdefs.h. */ |
---|
[101] | 6130 | $ac_includes_default |
---|
[14] | 6131 | int |
---|
| 6132 | main () |
---|
| 6133 | { |
---|
| 6134 | |
---|
| 6135 | /* Some versions of memcmp are not 8-bit clean. */ |
---|
[101] | 6136 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
---|
[14] | 6137 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
---|
[101] | 6138 | return 1; |
---|
[14] | 6139 | |
---|
| 6140 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
---|
| 6141 | or more and with at least one buffer not starting on a 4-byte boundary. |
---|
| 6142 | William Lewis provided this test program. */ |
---|
| 6143 | { |
---|
| 6144 | char foo[21]; |
---|
| 6145 | char bar[21]; |
---|
| 6146 | int i; |
---|
| 6147 | for (i = 0; i < 4; i++) |
---|
| 6148 | { |
---|
[101] | 6149 | char *a = foo + i; |
---|
| 6150 | char *b = bar + i; |
---|
| 6151 | strcpy (a, "--------01111111"); |
---|
| 6152 | strcpy (b, "--------10000000"); |
---|
| 6153 | if (memcmp (a, b, 16) >= 0) |
---|
| 6154 | return 1; |
---|
[14] | 6155 | } |
---|
[101] | 6156 | return 0; |
---|
[14] | 6157 | } |
---|
| 6158 | |
---|
| 6159 | ; |
---|
| 6160 | return 0; |
---|
| 6161 | } |
---|
| 6162 | _ACEOF |
---|
| 6163 | rm -f conftest$ac_exeext |
---|
[101] | 6164 | if { (ac_try="$ac_link" |
---|
| 6165 | case "(($ac_try" in |
---|
| 6166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6167 | *) ac_try_echo=$ac_try;; |
---|
| 6168 | esac |
---|
| 6169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 6170 | $as_echo "$ac_try_echo") >&5 |
---|
| 6171 | (eval "$ac_link") 2>&5 |
---|
[14] | 6172 | ac_status=$? |
---|
[101] | 6173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 6174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[101] | 6175 | { (case "(($ac_try" in |
---|
| 6176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6177 | *) ac_try_echo=$ac_try;; |
---|
| 6178 | esac |
---|
| 6179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 6180 | $as_echo "$ac_try_echo") >&5 |
---|
| 6181 | (eval "$ac_try") 2>&5 |
---|
[14] | 6182 | ac_status=$? |
---|
[101] | 6183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[14] | 6184 | (exit $ac_status); }; }; then |
---|
| 6185 | ac_cv_func_memcmp_working=yes |
---|
| 6186 | else |
---|
[101] | 6187 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6188 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 6189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6190 | |
---|
| 6191 | ( exit $ac_status ) |
---|
| 6192 | ac_cv_func_memcmp_working=no |
---|
| 6193 | fi |
---|
[101] | 6194 | rm -rf conftest.dSYM |
---|
| 6195 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 6196 | fi |
---|
[101] | 6197 | |
---|
| 6198 | |
---|
[14] | 6199 | fi |
---|
[101] | 6200 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
---|
| 6201 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
---|
| 6202 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
---|
| 6203 | *" memcmp.$ac_objext "* ) ;; |
---|
| 6204 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
---|
| 6205 | ;; |
---|
| 6206 | esac |
---|
[14] | 6207 | |
---|
[101] | 6208 | |
---|
| 6209 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
| 6210 | $as_echo_n "checking return type of signal handlers... " >&6; } |
---|
[14] | 6211 | if test "${ac_cv_type_signal+set}" = set; then |
---|
[101] | 6212 | $as_echo_n "(cached) " >&6 |
---|
[14] | 6213 | else |
---|
| 6214 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6215 | /* confdefs.h. */ |
---|
| 6216 | _ACEOF |
---|
| 6217 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6218 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6219 | /* end confdefs.h. */ |
---|
| 6220 | #include <sys/types.h> |
---|
| 6221 | #include <signal.h> |
---|
| 6222 | |
---|
| 6223 | int |
---|
| 6224 | main () |
---|
| 6225 | { |
---|
[101] | 6226 | return *(signal (0, 0)) (0) == 1; |
---|
[14] | 6227 | ; |
---|
| 6228 | return 0; |
---|
| 6229 | } |
---|
| 6230 | _ACEOF |
---|
| 6231 | rm -f conftest.$ac_objext |
---|
[101] | 6232 | if { (ac_try="$ac_compile" |
---|
| 6233 | case "(($ac_try" in |
---|
| 6234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6235 | *) ac_try_echo=$ac_try;; |
---|
| 6236 | esac |
---|
| 6237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 6238 | $as_echo "$ac_try_echo") >&5 |
---|
| 6239 | (eval "$ac_compile") 2>conftest.er1 |
---|
[14] | 6240 | ac_status=$? |
---|
[101] | 6241 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6242 | rm -f conftest.er1 |
---|
| 6243 | cat conftest.err >&5 |
---|
| 6244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6245 | (exit $ac_status); } && { |
---|
| 6246 | test -z "$ac_c_werror_flag" || |
---|
| 6247 | test ! -s conftest.err |
---|
| 6248 | } && test -s conftest.$ac_objext; then |
---|
| 6249 | ac_cv_type_signal=int |
---|
[14] | 6250 | else |
---|
[101] | 6251 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 6252 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6253 | |
---|
[101] | 6254 | ac_cv_type_signal=void |
---|
[14] | 6255 | fi |
---|
[101] | 6256 | |
---|
| 6257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[14] | 6258 | fi |
---|
[101] | 6259 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
| 6260 | $as_echo "$ac_cv_type_signal" >&6; } |
---|
[14] | 6261 | |
---|
| 6262 | cat >>confdefs.h <<_ACEOF |
---|
| 6263 | #define RETSIGTYPE $ac_cv_type_signal |
---|
| 6264 | _ACEOF |
---|
| 6265 | |
---|
| 6266 | |
---|
| 6267 | |
---|
| 6268 | |
---|
| 6269 | |
---|
| 6270 | |
---|
| 6271 | |
---|
| 6272 | |
---|
| 6273 | |
---|
| 6274 | |
---|
| 6275 | for ac_func in gettimeofday strchr strstr setvbuf getenv unlink mkstemp close |
---|
| 6276 | do |
---|
[101] | 6277 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 6278 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 6279 | $as_echo_n "checking for $ac_func... " >&6; } |
---|
| 6280 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 6281 | $as_echo_n "(cached) " >&6 |
---|
[14] | 6282 | else |
---|
| 6283 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6284 | /* confdefs.h. */ |
---|
| 6285 | _ACEOF |
---|
| 6286 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6287 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6288 | /* end confdefs.h. */ |
---|
[101] | 6289 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 6290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 6291 | #define $ac_func innocuous_$ac_func |
---|
| 6292 | |
---|
[14] | 6293 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 6294 | which can conflict with char $ac_func (); below. |
---|
| 6295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6296 | <limits.h> exists even on freestanding compilers. */ |
---|
[101] | 6297 | |
---|
[14] | 6298 | #ifdef __STDC__ |
---|
| 6299 | # include <limits.h> |
---|
| 6300 | #else |
---|
| 6301 | # include <assert.h> |
---|
| 6302 | #endif |
---|
[101] | 6303 | |
---|
| 6304 | #undef $ac_func |
---|
| 6305 | |
---|
| 6306 | /* Override any GCC internal prototype to avoid an error. |
---|
| 6307 | Use char because int might match the return type of a GCC |
---|
| 6308 | builtin and then its argument prototype would still apply. */ |
---|
[14] | 6309 | #ifdef __cplusplus |
---|
| 6310 | extern "C" |
---|
| 6311 | #endif |
---|
| 6312 | char $ac_func (); |
---|
| 6313 | /* The GNU C library defines this for functions which it implements |
---|
| 6314 | to always fail with ENOSYS. Some functions are actually named |
---|
| 6315 | something starting with __ and the normal name is an alias. */ |
---|
[101] | 6316 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
[14] | 6317 | choke me |
---|
| 6318 | #endif |
---|
| 6319 | |
---|
| 6320 | int |
---|
| 6321 | main () |
---|
| 6322 | { |
---|
[101] | 6323 | return $ac_func (); |
---|
[14] | 6324 | ; |
---|
| 6325 | return 0; |
---|
| 6326 | } |
---|
| 6327 | _ACEOF |
---|
| 6328 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
[101] | 6329 | if { (ac_try="$ac_link" |
---|
| 6330 | case "(($ac_try" in |
---|
| 6331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6332 | *) ac_try_echo=$ac_try;; |
---|
| 6333 | esac |
---|
| 6334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
| 6335 | $as_echo "$ac_try_echo") >&5 |
---|
| 6336 | (eval "$ac_link") 2>conftest.er1 |
---|
[14] | 6337 | ac_status=$? |
---|
[101] | 6338 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6339 | rm -f conftest.er1 |
---|
| 6340 | cat conftest.err >&5 |
---|
| 6341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6342 | (exit $ac_status); } && { |
---|
| 6343 | test -z "$ac_c_werror_flag" || |
---|
| 6344 | test ! -s conftest.err |
---|
| 6345 | } && test -s conftest$ac_exeext && { |
---|
| 6346 | test "$cross_compiling" = yes || |
---|
| 6347 | $as_test_x conftest$ac_exeext |
---|
| 6348 | }; then |
---|
[14] | 6349 | eval "$as_ac_var=yes" |
---|
| 6350 | else |
---|
[101] | 6351 | $as_echo "$as_me: failed program was:" >&5 |
---|
[14] | 6352 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6353 | |
---|
[101] | 6354 | eval "$as_ac_var=no" |
---|
[14] | 6355 | fi |
---|
[101] | 6356 | |
---|
| 6357 | rm -rf conftest.dSYM |
---|
| 6358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
| 6359 | conftest$ac_exeext conftest.$ac_ext |
---|
[14] | 6360 | fi |
---|
[101] | 6361 | ac_res=`eval 'as_val=${'$as_ac_var'} |
---|
| 6362 | $as_echo "$as_val"'` |
---|
| 6363 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 6364 | $as_echo "$ac_res" >&6; } |
---|
| 6365 | as_val=`eval 'as_val=${'$as_ac_var'} |
---|
| 6366 | $as_echo "$as_val"'` |
---|
| 6367 | if test "x$as_val" = x""yes; then |
---|
[14] | 6368 | cat >>confdefs.h <<_ACEOF |
---|
[101] | 6369 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
[14] | 6370 | _ACEOF |
---|
| 6371 | |
---|
| 6372 | fi |
---|
| 6373 | done |
---|
| 6374 | |
---|
| 6375 | |
---|
| 6376 | #----------------------------------------------------------------------- |
---|
| 6377 | # Check for mawk, gawk, nawk, awk in that order |
---|
| 6378 | #----------------------------------------------------------------------- |
---|
| 6379 | for ac_prog in gawk mawk nawk awk |
---|
| 6380 | do |
---|
| 6381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 6382 | set dummy $ac_prog; ac_word=$2 |
---|
[101] | 6383 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 6384 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
[14] | 6385 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
[101] | 6386 | $as_echo_n "(cached) " >&6 |
---|
[14] | 6387 | else |
---|
| 6388 | if test -n "$AWK"; then |
---|
| 6389 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 6390 | else |
---|
| 6391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6392 | for as_dir in $PATH |
---|
| 6393 | do |
---|
| 6394 | IFS=$as_save_IFS |
---|
| 6395 | test -z "$as_dir" && as_dir=. |
---|
| 6396 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[101] | 6397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[14] | 6398 | ac_cv_prog_AWK="$ac_prog" |
---|
[101] | 6399 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
[14] | 6400 | break 2 |
---|
| 6401 | fi |
---|
| 6402 | done |
---|
| 6403 | done |
---|
[101] | 6404 | IFS=$as_save_IFS |
---|
[14] | 6405 | |
---|
| 6406 | fi |
---|
| 6407 | fi |
---|
| 6408 | AWK=$ac_cv_prog_AWK |
---|
| 6409 | if test -n "$AWK"; then |
---|
[101] | 6410 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 6411 | $as_echo "$AWK" >&6; } |
---|
[14] | 6412 | else |
---|
[101] | 6413 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
| 6414 | $as_echo "no" >&6; } |
---|
[14] | 6415 | fi |
---|
| 6416 | |
---|
[101] | 6417 | |
---|
[14] | 6418 | test -n "$AWK" && break |
---|
| 6419 | done |
---|
| 6420 | |
---|
| 6421 | |
---|
| 6422 | #---------------------------------------------------------------------- |
---|
| 6423 | # Create the Makefile from Makefile.in |
---|
| 6424 | #---------------------------------------------------------------------- |
---|
| 6425 | if test "$gcc_ok" = "g++"; then |
---|
| 6426 | CC=$gcc_ok |
---|
| 6427 | fi |
---|
[101] | 6428 | ac_config_files="$ac_config_files Makefile" |
---|
| 6429 | |
---|
[14] | 6430 | cat >confcache <<\_ACEOF |
---|
| 6431 | # This file is a shell script that caches the results of configure |
---|
| 6432 | # tests run on this system so they can be shared between configure |
---|
| 6433 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6434 | # It is not useful on other systems. If it contains results you don't |
---|
| 6435 | # want to keep, you may remove or edit it. |
---|
| 6436 | # |
---|
| 6437 | # config.status only pays attention to the cache file if you give it |
---|
| 6438 | # the --recheck option to rerun configure. |
---|
| 6439 | # |
---|
| 6440 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6441 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6442 | # following values. |
---|
| 6443 | |
---|
| 6444 | _ACEOF |
---|
| 6445 | |
---|
| 6446 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6447 | # but we know of no workaround that is simple, portable, and efficient. |
---|
[101] | 6448 | # So, we kill variables containing newlines. |
---|
[14] | 6449 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6450 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
[101] | 6451 | ( |
---|
| 6452 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 6453 | eval ac_val=\$$ac_var |
---|
| 6454 | case $ac_val in #( |
---|
| 6455 | *${as_nl}*) |
---|
| 6456 | case $ac_var in #( |
---|
| 6457 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 6458 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 6459 | esac |
---|
| 6460 | case $ac_var in #( |
---|
| 6461 | _ | IFS | as_nl) ;; #( |
---|
| 6462 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 6463 | *) $as_unset $ac_var ;; |
---|
| 6464 | esac ;; |
---|
| 6465 | esac |
---|
| 6466 | done |
---|
| 6467 | |
---|
[14] | 6468 | (set) 2>&1 | |
---|
[101] | 6469 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 6470 | *${as_nl}ac_space=\ *) |
---|
[14] | 6471 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6472 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6473 | sed -n \ |
---|
[101] | 6474 | "s/'/'\\\\''/g; |
---|
| 6475 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 6476 | ;; #( |
---|
[14] | 6477 | *) |
---|
| 6478 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
[101] | 6479 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[14] | 6480 | ;; |
---|
[101] | 6481 | esac | |
---|
| 6482 | sort |
---|
| 6483 | ) | |
---|
[14] | 6484 | sed ' |
---|
[101] | 6485 | /^ac_cv_env_/b end |
---|
[14] | 6486 | t clear |
---|
[101] | 6487 | :clear |
---|
[14] | 6488 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6489 | t end |
---|
[101] | 6490 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6491 | :end' >>confcache |
---|
| 6492 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 6493 | if test -w "$cache_file"; then |
---|
| 6494 | test "x$cache_file" != "x/dev/null" && |
---|
| 6495 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
| 6496 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
[14] | 6497 | cat confcache >$cache_file |
---|
| 6498 | else |
---|
[101] | 6499 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
| 6500 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
[14] | 6501 | fi |
---|
| 6502 | fi |
---|
| 6503 | rm -f confcache |
---|
| 6504 | |
---|
| 6505 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6506 | # Let make expand exec_prefix. |
---|
| 6507 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6508 | |
---|
| 6509 | # Transform confdefs.h into DEFS. |
---|
| 6510 | # Protect against shell expansion while executing Makefile rules. |
---|
| 6511 | # Protect against Makefile macro expansion. |
---|
| 6512 | # |
---|
| 6513 | # If the first sed substitution is executed (which looks for macros that |
---|
[101] | 6514 | # take arguments), then branch to the quote section. Otherwise, |
---|
[14] | 6515 | # look for a macro that doesn't take arguments. |
---|
[101] | 6516 | ac_script=' |
---|
| 6517 | :mline |
---|
| 6518 | /\\$/{ |
---|
| 6519 | N |
---|
| 6520 | s,\\\n,, |
---|
| 6521 | b mline |
---|
| 6522 | } |
---|
[14] | 6523 | t clear |
---|
[101] | 6524 | :clear |
---|
| 6525 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
[14] | 6526 | t quote |
---|
[101] | 6527 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
[14] | 6528 | t quote |
---|
[101] | 6529 | b any |
---|
| 6530 | :quote |
---|
| 6531 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
| 6532 | s/\[/\\&/g |
---|
| 6533 | s/\]/\\&/g |
---|
| 6534 | s/\$/$$/g |
---|
| 6535 | H |
---|
| 6536 | :any |
---|
| 6537 | ${ |
---|
| 6538 | g |
---|
| 6539 | s/^\n// |
---|
| 6540 | s/\n/ /g |
---|
| 6541 | p |
---|
| 6542 | } |
---|
| 6543 | ' |
---|
| 6544 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
[14] | 6545 | |
---|
| 6546 | |
---|
| 6547 | ac_libobjs= |
---|
| 6548 | ac_ltlibobjs= |
---|
| 6549 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6550 | # 1. Remove the extension, and $U if already installed. |
---|
[101] | 6551 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 6552 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
| 6553 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 6554 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 6555 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 6556 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
[14] | 6557 | done |
---|
| 6558 | LIBOBJS=$ac_libobjs |
---|
| 6559 | |
---|
| 6560 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6561 | |
---|
| 6562 | |
---|
| 6563 | |
---|
| 6564 | : ${CONFIG_STATUS=./config.status} |
---|
[101] | 6565 | ac_write_fail=0 |
---|
[14] | 6566 | ac_clean_files_save=$ac_clean_files |
---|
| 6567 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
[101] | 6568 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6569 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6570 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[14] | 6571 | #! $SHELL |
---|
| 6572 | # Generated by $as_me. |
---|
| 6573 | # Run this file to recreate the current configuration. |
---|
| 6574 | # Compiler output produced by configure, useful for debugging |
---|
| 6575 | # configure, is in config.log if it exists. |
---|
| 6576 | |
---|
| 6577 | debug=false |
---|
| 6578 | ac_cs_recheck=false |
---|
| 6579 | ac_cs_silent=false |
---|
| 6580 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6581 | _ACEOF |
---|
| 6582 | |
---|
[101] | 6583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[14] | 6584 | ## --------------------- ## |
---|
| 6585 | ## M4sh Initialization. ## |
---|
| 6586 | ## --------------------- ## |
---|
| 6587 | |
---|
[101] | 6588 | # Be more Bourne compatible |
---|
| 6589 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[14] | 6590 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6591 | emulate sh |
---|
| 6592 | NULLCMD=: |
---|
[101] | 6593 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
[14] | 6594 | # is contrary to our usage. Disable this feature. |
---|
| 6595 | alias -g '${1+"$@"}'='"$@"' |
---|
[101] | 6596 | setopt NO_GLOB_SUBST |
---|
| 6597 | else |
---|
| 6598 | case `(set -o) 2>/dev/null` in |
---|
| 6599 | *posix*) set -o posix ;; |
---|
| 6600 | esac |
---|
| 6601 | |
---|
[14] | 6602 | fi |
---|
| 6603 | |
---|
[101] | 6604 | |
---|
| 6605 | |
---|
| 6606 | |
---|
| 6607 | # PATH needs CR |
---|
| 6608 | # Avoid depending upon Character Ranges. |
---|
| 6609 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6610 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6611 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6612 | as_cr_digits='0123456789' |
---|
| 6613 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6614 | |
---|
| 6615 | as_nl=' |
---|
| 6616 | ' |
---|
| 6617 | export as_nl |
---|
| 6618 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 6619 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 6620 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 6621 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 6622 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 6623 | as_echo='printf %s\n' |
---|
| 6624 | as_echo_n='printf %s' |
---|
| 6625 | else |
---|
| 6626 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 6627 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 6628 | as_echo_n='/usr/ucb/echo -n' |
---|
| 6629 | else |
---|
| 6630 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 6631 | as_echo_n_body='eval |
---|
| 6632 | arg=$1; |
---|
| 6633 | case $arg in |
---|
| 6634 | *"$as_nl"*) |
---|
| 6635 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 6636 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 6637 | esac; |
---|
| 6638 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 6639 | ' |
---|
| 6640 | export as_echo_n_body |
---|
| 6641 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
| 6642 | fi |
---|
| 6643 | export as_echo_body |
---|
| 6644 | as_echo='sh -c $as_echo_body as_echo' |
---|
| 6645 | fi |
---|
| 6646 | |
---|
| 6647 | # The user is always right. |
---|
| 6648 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6649 | PATH_SEPARATOR=: |
---|
| 6650 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 6651 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 6652 | PATH_SEPARATOR=';' |
---|
| 6653 | } |
---|
| 6654 | fi |
---|
| 6655 | |
---|
[14] | 6656 | # Support unset when possible. |
---|
[101] | 6657 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
[14] | 6658 | as_unset=unset |
---|
| 6659 | else |
---|
| 6660 | as_unset=false |
---|
| 6661 | fi |
---|
| 6662 | |
---|
| 6663 | |
---|
[101] | 6664 | # IFS |
---|
| 6665 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 6666 | # there to prevent editors from complaining about space-tab. |
---|
| 6667 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 6668 | # splitting by setting IFS to empty value.) |
---|
| 6669 | IFS=" "" $as_nl" |
---|
| 6670 | |
---|
| 6671 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 6672 | case $0 in |
---|
| 6673 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6674 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6675 | for as_dir in $PATH |
---|
| 6676 | do |
---|
| 6677 | IFS=$as_save_IFS |
---|
| 6678 | test -z "$as_dir" && as_dir=. |
---|
| 6679 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6680 | done |
---|
| 6681 | IFS=$as_save_IFS |
---|
| 6682 | |
---|
| 6683 | ;; |
---|
| 6684 | esac |
---|
| 6685 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6686 | # in which case we are not to be found in the path. |
---|
| 6687 | if test "x$as_myself" = x; then |
---|
| 6688 | as_myself=$0 |
---|
| 6689 | fi |
---|
| 6690 | if test ! -f "$as_myself"; then |
---|
| 6691 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 6692 | { (exit 1); exit 1; } |
---|
| 6693 | fi |
---|
| 6694 | |
---|
[14] | 6695 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
[101] | 6696 | for as_var in ENV MAIL MAILPATH |
---|
| 6697 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 6698 | done |
---|
[14] | 6699 | PS1='$ ' |
---|
| 6700 | PS2='> ' |
---|
| 6701 | PS4='+ ' |
---|
| 6702 | |
---|
| 6703 | # NLS nuisances. |
---|
[101] | 6704 | LC_ALL=C |
---|
| 6705 | export LC_ALL |
---|
| 6706 | LANGUAGE=C |
---|
| 6707 | export LANGUAGE |
---|
[14] | 6708 | |
---|
| 6709 | # Required to use basename. |
---|
[101] | 6710 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 6711 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[14] | 6712 | as_expr=expr |
---|
| 6713 | else |
---|
| 6714 | as_expr=false |
---|
| 6715 | fi |
---|
| 6716 | |
---|
[101] | 6717 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
[14] | 6718 | as_basename=basename |
---|
| 6719 | else |
---|
| 6720 | as_basename=false |
---|
| 6721 | fi |
---|
| 6722 | |
---|
| 6723 | |
---|
| 6724 | # Name of the executable. |
---|
[101] | 6725 | as_me=`$as_basename -- "$0" || |
---|
[14] | 6726 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6727 | X"$0" : 'X\(//\)$' \| \ |
---|
[101] | 6728 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 6729 | $as_echo X/"$0" | |
---|
| 6730 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 6731 | s//\1/ |
---|
| 6732 | q |
---|
| 6733 | } |
---|
| 6734 | /^X\/\(\/\/\)$/{ |
---|
| 6735 | s//\1/ |
---|
| 6736 | q |
---|
| 6737 | } |
---|
| 6738 | /^X\/\(\/\).*/{ |
---|
| 6739 | s//\1/ |
---|
| 6740 | q |
---|
| 6741 | } |
---|
| 6742 | s/.*/./; q'` |
---|
[14] | 6743 | |
---|
[101] | 6744 | # CDPATH. |
---|
| 6745 | $as_unset CDPATH |
---|
[14] | 6746 | |
---|
| 6747 | |
---|
| 6748 | |
---|
| 6749 | as_lineno_1=$LINENO |
---|
| 6750 | as_lineno_2=$LINENO |
---|
| 6751 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
[101] | 6752 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
[14] | 6753 | |
---|
| 6754 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6755 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
[101] | 6756 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 6757 | # does the real work. The second script uses 'N' to pair each |
---|
| 6758 | # line-number line with the line containing $LINENO, and appends |
---|
| 6759 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 6760 | # case at line end. |
---|
[14] | 6761 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
[101] | 6762 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 6763 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 6764 | sed -n ' |
---|
| 6765 | p |
---|
| 6766 | /[$]LINENO/= |
---|
| 6767 | ' <$as_myself | |
---|
[14] | 6768 | sed ' |
---|
[101] | 6769 | s/[$]LINENO.*/&-/ |
---|
| 6770 | t lineno |
---|
| 6771 | b |
---|
| 6772 | :lineno |
---|
[14] | 6773 | N |
---|
[101] | 6774 | :loop |
---|
| 6775 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
[14] | 6776 | t loop |
---|
[101] | 6777 | s/-\n.*// |
---|
[14] | 6778 | ' >$as_me.lineno && |
---|
[101] | 6779 | chmod +x "$as_me.lineno" || |
---|
| 6780 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
[14] | 6781 | { (exit 1); exit 1; }; } |
---|
| 6782 | |
---|
| 6783 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6784 | # (the dirname of $[0] is not the place where we might find the |
---|
[101] | 6785 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 6786 | . "./$as_me.lineno" |
---|
[14] | 6787 | # Exit status is that of the last command. |
---|
| 6788 | exit |
---|
| 6789 | } |
---|
| 6790 | |
---|
| 6791 | |
---|
[101] | 6792 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 6793 | as_dirname=dirname |
---|
| 6794 | else |
---|
| 6795 | as_dirname=false |
---|
| 6796 | fi |
---|
| 6797 | |
---|
| 6798 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 6799 | case `echo -n x` in |
---|
| 6800 | -n*) |
---|
| 6801 | case `echo 'x\c'` in |
---|
| 6802 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 6803 | *) ECHO_C='\c';; |
---|
| 6804 | esac;; |
---|
| 6805 | *) |
---|
| 6806 | ECHO_N='-n';; |
---|
[14] | 6807 | esac |
---|
[101] | 6808 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 6809 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[14] | 6810 | as_expr=expr |
---|
| 6811 | else |
---|
| 6812 | as_expr=false |
---|
| 6813 | fi |
---|
| 6814 | |
---|
| 6815 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[101] | 6816 | if test -d conf$$.dir; then |
---|
| 6817 | rm -f conf$$.dir/conf$$.file |
---|
| 6818 | else |
---|
| 6819 | rm -f conf$$.dir |
---|
| 6820 | mkdir conf$$.dir 2>/dev/null |
---|
| 6821 | fi |
---|
| 6822 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 6823 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6824 | as_ln_s='ln -s' |
---|
| 6825 | # ... but there are two gotchas: |
---|
| 6826 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 6827 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 6828 | # In both cases, we have to default to `cp -p'. |
---|
| 6829 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 6830 | as_ln_s='cp -p' |
---|
| 6831 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6832 | as_ln_s=ln |
---|
| 6833 | else |
---|
[14] | 6834 | as_ln_s='cp -p' |
---|
| 6835 | fi |
---|
| 6836 | else |
---|
| 6837 | as_ln_s='cp -p' |
---|
| 6838 | fi |
---|
[101] | 6839 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 6840 | rmdir conf$$.dir 2>/dev/null |
---|
[14] | 6841 | |
---|
| 6842 | if mkdir -p . 2>/dev/null; then |
---|
| 6843 | as_mkdir_p=: |
---|
| 6844 | else |
---|
[101] | 6845 | test -d ./-p && rmdir ./-p |
---|
[14] | 6846 | as_mkdir_p=false |
---|
| 6847 | fi |
---|
| 6848 | |
---|
[101] | 6849 | if test -x / >/dev/null 2>&1; then |
---|
| 6850 | as_test_x='test -x' |
---|
| 6851 | else |
---|
| 6852 | if ls -dL / >/dev/null 2>&1; then |
---|
| 6853 | as_ls_L_option=L |
---|
| 6854 | else |
---|
| 6855 | as_ls_L_option= |
---|
| 6856 | fi |
---|
| 6857 | as_test_x=' |
---|
| 6858 | eval sh -c '\'' |
---|
| 6859 | if test -d "$1"; then |
---|
| 6860 | test -d "$1/."; |
---|
| 6861 | else |
---|
| 6862 | case $1 in |
---|
| 6863 | -*)set "./$1";; |
---|
| 6864 | esac; |
---|
| 6865 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
| 6866 | ???[sx]*):;;*)false;;esac;fi |
---|
| 6867 | '\'' sh |
---|
| 6868 | ' |
---|
| 6869 | fi |
---|
| 6870 | as_executable_p=$as_test_x |
---|
[14] | 6871 | |
---|
| 6872 | # Sed expression to map a string onto a valid CPP name. |
---|
[101] | 6873 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[14] | 6874 | |
---|
| 6875 | # Sed expression to map a string onto a valid variable name. |
---|
[101] | 6876 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[14] | 6877 | |
---|
| 6878 | |
---|
| 6879 | exec 6>&1 |
---|
| 6880 | |
---|
[101] | 6881 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
[14] | 6882 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
[101] | 6883 | # values after options handling. |
---|
| 6884 | ac_log=" |
---|
[14] | 6885 | This file was extended by $as_me, which was |
---|
[101] | 6886 | generated by GNU Autoconf 2.63. Invocation command line was |
---|
[14] | 6887 | |
---|
| 6888 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6889 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6890 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6891 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6892 | $ $0 $@ |
---|
| 6893 | |
---|
[101] | 6894 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 6895 | " |
---|
| 6896 | |
---|
[14] | 6897 | _ACEOF |
---|
| 6898 | |
---|
[101] | 6899 | case $ac_config_files in *" |
---|
| 6900 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
| 6901 | esac |
---|
[14] | 6902 | |
---|
| 6903 | |
---|
| 6904 | |
---|
[101] | 6905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 6906 | # Files that config.status was made for. |
---|
| 6907 | config_files="$ac_config_files" |
---|
[14] | 6908 | |
---|
[101] | 6909 | _ACEOF |
---|
[14] | 6910 | |
---|
[101] | 6911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[14] | 6912 | ac_cs_usage="\ |
---|
| 6913 | \`$as_me' instantiates files from templates according to the |
---|
| 6914 | current configuration. |
---|
| 6915 | |
---|
[101] | 6916 | Usage: $0 [OPTION]... [FILE]... |
---|
[14] | 6917 | |
---|
| 6918 | -h, --help print this help, then exit |
---|
[101] | 6919 | -V, --version print version number and configuration settings, then exit |
---|
| 6920 | -q, --quiet, --silent |
---|
| 6921 | do not print progress messages |
---|
[14] | 6922 | -d, --debug don't remove temporary files |
---|
| 6923 | --recheck update $as_me by reconfiguring in the same conditions |
---|
[101] | 6924 | --file=FILE[:TEMPLATE] |
---|
[14] | 6925 | instantiate the configuration file FILE |
---|
| 6926 | |
---|
| 6927 | Configuration files: |
---|
| 6928 | $config_files |
---|
| 6929 | |
---|
| 6930 | Report bugs to <bug-autoconf@gnu.org>." |
---|
[101] | 6931 | |
---|
[14] | 6932 | _ACEOF |
---|
[101] | 6933 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[14] | 6934 | ac_cs_version="\\ |
---|
| 6935 | config.status |
---|
[101] | 6936 | configured by $0, generated by GNU Autoconf 2.63, |
---|
| 6937 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
[14] | 6938 | |
---|
[101] | 6939 | Copyright (C) 2008 Free Software Foundation, Inc. |
---|
[14] | 6940 | This config.status script is free software; the Free Software Foundation |
---|
| 6941 | gives unlimited permission to copy, distribute and modify it." |
---|
[101] | 6942 | |
---|
| 6943 | ac_pwd='$ac_pwd' |
---|
| 6944 | srcdir='$srcdir' |
---|
| 6945 | INSTALL='$INSTALL' |
---|
| 6946 | AWK='$AWK' |
---|
| 6947 | test -n "\$AWK" || AWK=awk |
---|
[14] | 6948 | _ACEOF |
---|
| 6949 | |
---|
[101] | 6950 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 6951 | # The default lists apply if the user does not specify any file. |
---|
[14] | 6952 | ac_need_defaults=: |
---|
| 6953 | while test $# != 0 |
---|
| 6954 | do |
---|
| 6955 | case $1 in |
---|
| 6956 | --*=*) |
---|
[101] | 6957 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 6958 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
[14] | 6959 | ac_shift=: |
---|
| 6960 | ;; |
---|
[101] | 6961 | *) |
---|
[14] | 6962 | ac_option=$1 |
---|
| 6963 | ac_optarg=$2 |
---|
| 6964 | ac_shift=shift |
---|
| 6965 | ;; |
---|
| 6966 | esac |
---|
| 6967 | |
---|
| 6968 | case $ac_option in |
---|
| 6969 | # Handling of the options. |
---|
| 6970 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6971 | ac_cs_recheck=: ;; |
---|
[101] | 6972 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 6973 | $as_echo "$ac_cs_version"; exit ;; |
---|
| 6974 | --debug | --debu | --deb | --de | --d | -d ) |
---|
[14] | 6975 | debug=: ;; |
---|
| 6976 | --file | --fil | --fi | --f ) |
---|
| 6977 | $ac_shift |
---|
[101] | 6978 | case $ac_optarg in |
---|
| 6979 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 6980 | esac |
---|
| 6981 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
---|
[14] | 6982 | ac_need_defaults=false;; |
---|
[101] | 6983 | --he | --h | --help | --hel | -h ) |
---|
| 6984 | $as_echo "$ac_cs_usage"; exit ;; |
---|
[14] | 6985 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6986 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6987 | ac_cs_silent=: ;; |
---|
| 6988 | |
---|
| 6989 | # This is an error. |
---|
[101] | 6990 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
---|
| 6991 | Try \`$0 --help' for more information." >&2 |
---|
[14] | 6992 | { (exit 1); exit 1; }; } ;; |
---|
| 6993 | |
---|
[101] | 6994 | *) ac_config_targets="$ac_config_targets $1" |
---|
| 6995 | ac_need_defaults=false ;; |
---|
[14] | 6996 | |
---|
| 6997 | esac |
---|
| 6998 | shift |
---|
| 6999 | done |
---|
| 7000 | |
---|
| 7001 | ac_configure_extra_args= |
---|
| 7002 | |
---|
| 7003 | if $ac_cs_silent; then |
---|
| 7004 | exec 6>/dev/null |
---|
| 7005 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 7006 | fi |
---|
| 7007 | |
---|
| 7008 | _ACEOF |
---|
[101] | 7009 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
[14] | 7010 | if \$ac_cs_recheck; then |
---|
[101] | 7011 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 7012 | shift |
---|
| 7013 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
| 7014 | CONFIG_SHELL='$SHELL' |
---|
| 7015 | export CONFIG_SHELL |
---|
| 7016 | exec "\$@" |
---|
[14] | 7017 | fi |
---|
| 7018 | |
---|
| 7019 | _ACEOF |
---|
[101] | 7020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7021 | exec 5>>config.log |
---|
| 7022 | { |
---|
| 7023 | echo |
---|
| 7024 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 7025 | ## Running $as_me. ## |
---|
| 7026 | _ASBOX |
---|
| 7027 | $as_echo "$ac_log" |
---|
| 7028 | } >&5 |
---|
[14] | 7029 | |
---|
[101] | 7030 | _ACEOF |
---|
| 7031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7032 | _ACEOF |
---|
[14] | 7033 | |
---|
[101] | 7034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[14] | 7035 | |
---|
[101] | 7036 | # Handling of arguments. |
---|
[14] | 7037 | for ac_config_target in $ac_config_targets |
---|
| 7038 | do |
---|
[101] | 7039 | case $ac_config_target in |
---|
| 7040 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 7041 | |
---|
| 7042 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 7043 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
[14] | 7044 | { (exit 1); exit 1; }; };; |
---|
| 7045 | esac |
---|
| 7046 | done |
---|
| 7047 | |
---|
[101] | 7048 | |
---|
[14] | 7049 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 7050 | # then the envvar interface is used. Set only those that are not. |
---|
| 7051 | # We use the long form for the default assignment because of an extremely |
---|
| 7052 | # bizarre bug on SunOS 4.1.3. |
---|
| 7053 | if $ac_need_defaults; then |
---|
| 7054 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 7055 | fi |
---|
| 7056 | |
---|
| 7057 | # Have a temporary directory for convenience. Make it in the build tree |
---|
[101] | 7058 | # simply because there is no reason against having it here, and in addition, |
---|
[14] | 7059 | # creating and moving files from /tmp can sometimes cause problems. |
---|
[101] | 7060 | # Hook for its removal unless debugging. |
---|
| 7061 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 7062 | # after its creation but before its name has been assigned to `$tmp'. |
---|
[14] | 7063 | $debug || |
---|
| 7064 | { |
---|
[101] | 7065 | tmp= |
---|
| 7066 | trap 'exit_status=$? |
---|
| 7067 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
| 7068 | ' 0 |
---|
[14] | 7069 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 7070 | } |
---|
| 7071 | # Create a (secure) tmp directory for tmp files. |
---|
| 7072 | |
---|
| 7073 | { |
---|
[101] | 7074 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
[14] | 7075 | test -n "$tmp" && test -d "$tmp" |
---|
| 7076 | } || |
---|
| 7077 | { |
---|
[101] | 7078 | tmp=./conf$$-$RANDOM |
---|
| 7079 | (umask 077 && mkdir "$tmp") |
---|
[14] | 7080 | } || |
---|
| 7081 | { |
---|
[101] | 7082 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
---|
[14] | 7083 | { (exit 1); exit 1; } |
---|
| 7084 | } |
---|
| 7085 | |
---|
[101] | 7086 | # Set up the scripts for CONFIG_FILES section. |
---|
| 7087 | # No need to generate them if there are no CONFIG_FILES. |
---|
| 7088 | # This happens for instance with `./config.status config.h'. |
---|
| 7089 | if test -n "$CONFIG_FILES"; then |
---|
| 7090 | |
---|
| 7091 | |
---|
| 7092 | ac_cr=' |
---|
| 7093 | ' |
---|
| 7094 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
| 7095 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
| 7096 | ac_cs_awk_cr='\\r' |
---|
| 7097 | else |
---|
| 7098 | ac_cs_awk_cr=$ac_cr |
---|
| 7099 | fi |
---|
| 7100 | |
---|
| 7101 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
---|
[14] | 7102 | _ACEOF |
---|
| 7103 | |
---|
| 7104 | |
---|
[101] | 7105 | { |
---|
| 7106 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
| 7107 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
| 7108 | echo "_ACEOF" |
---|
| 7109 | } >conf$$subs.sh || |
---|
| 7110 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
| 7111 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
| 7112 | { (exit 1); exit 1; }; } |
---|
| 7113 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
---|
| 7114 | ac_delim='%!_!# ' |
---|
| 7115 | for ac_last_try in false false false false false :; do |
---|
| 7116 | . ./conf$$subs.sh || |
---|
| 7117 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
| 7118 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
| 7119 | { (exit 1); exit 1; }; } |
---|
[14] | 7120 | |
---|
[101] | 7121 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
| 7122 | if test $ac_delim_n = $ac_delim_num; then |
---|
| 7123 | break |
---|
| 7124 | elif $ac_last_try; then |
---|
| 7125 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
| 7126 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
| 7127 | { (exit 1); exit 1; }; } |
---|
| 7128 | else |
---|
| 7129 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 7130 | fi |
---|
| 7131 | done |
---|
| 7132 | rm -f conf$$subs.sh |
---|
[14] | 7133 | |
---|
[101] | 7134 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7135 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
---|
[14] | 7136 | _ACEOF |
---|
[101] | 7137 | sed -n ' |
---|
| 7138 | h |
---|
| 7139 | s/^/S["/; s/!.*/"]=/ |
---|
| 7140 | p |
---|
| 7141 | g |
---|
| 7142 | s/^[^!]*!// |
---|
| 7143 | :repl |
---|
| 7144 | t repl |
---|
| 7145 | s/'"$ac_delim"'$// |
---|
| 7146 | t delim |
---|
| 7147 | :nl |
---|
| 7148 | h |
---|
| 7149 | s/\(.\{148\}\).*/\1/ |
---|
| 7150 | t more1 |
---|
| 7151 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
| 7152 | p |
---|
| 7153 | n |
---|
| 7154 | b repl |
---|
| 7155 | :more1 |
---|
| 7156 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 7157 | p |
---|
| 7158 | g |
---|
| 7159 | s/.\{148\}// |
---|
| 7160 | t nl |
---|
| 7161 | :delim |
---|
| 7162 | h |
---|
| 7163 | s/\(.\{148\}\).*/\1/ |
---|
| 7164 | t more2 |
---|
| 7165 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
| 7166 | p |
---|
| 7167 | b |
---|
| 7168 | :more2 |
---|
| 7169 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 7170 | p |
---|
| 7171 | g |
---|
| 7172 | s/.\{148\}// |
---|
| 7173 | t delim |
---|
| 7174 | ' <conf$$subs.awk | sed ' |
---|
| 7175 | /^[^""]/{ |
---|
| 7176 | N |
---|
| 7177 | s/\n// |
---|
| 7178 | } |
---|
| 7179 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 7180 | rm -f conf$$subs.awk |
---|
| 7181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7182 | _ACAWK |
---|
| 7183 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
---|
| 7184 | for (key in S) S_is_set[key] = 1 |
---|
| 7185 | FS = "" |
---|
[14] | 7186 | |
---|
[101] | 7187 | } |
---|
| 7188 | { |
---|
| 7189 | line = $ 0 |
---|
| 7190 | nfields = split(line, field, "@") |
---|
| 7191 | substed = 0 |
---|
| 7192 | len = length(field[1]) |
---|
| 7193 | for (i = 2; i < nfields; i++) { |
---|
| 7194 | key = field[i] |
---|
| 7195 | keylen = length(key) |
---|
| 7196 | if (S_is_set[key]) { |
---|
| 7197 | value = S[key] |
---|
| 7198 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
| 7199 | len += length(value) + length(field[++i]) |
---|
| 7200 | substed = 1 |
---|
| 7201 | } else |
---|
| 7202 | len += 1 + keylen |
---|
| 7203 | } |
---|
| 7204 | |
---|
| 7205 | print line |
---|
| 7206 | } |
---|
| 7207 | |
---|
| 7208 | _ACAWK |
---|
| 7209 | _ACEOF |
---|
| 7210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7211 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
| 7212 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
| 7213 | else |
---|
| 7214 | cat |
---|
| 7215 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
---|
| 7216 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
---|
| 7217 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
---|
| 7218 | { (exit 1); exit 1; }; } |
---|
| 7219 | _ACEOF |
---|
| 7220 | |
---|
| 7221 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 7222 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 7223 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 7224 | # (actually we leave an empty line to preserve line numbers). |
---|
| 7225 | if test "x$srcdir" = x.; then |
---|
| 7226 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 7227 | s/:*\$(srcdir):*/:/ |
---|
| 7228 | s/:*\${srcdir}:*/:/ |
---|
| 7229 | s/:*@srcdir@:*/:/ |
---|
| 7230 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
| 7231 | s/:*$// |
---|
| 7232 | s/^[^=]*=[ ]*$// |
---|
| 7233 | }' |
---|
| 7234 | fi |
---|
| 7235 | |
---|
| 7236 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[14] | 7237 | fi # test -n "$CONFIG_FILES" |
---|
| 7238 | |
---|
[101] | 7239 | |
---|
| 7240 | eval set X " :F $CONFIG_FILES " |
---|
| 7241 | shift |
---|
| 7242 | for ac_tag |
---|
| 7243 | do |
---|
| 7244 | case $ac_tag in |
---|
| 7245 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
[14] | 7246 | esac |
---|
[101] | 7247 | case $ac_mode$ac_tag in |
---|
| 7248 | :[FHL]*:*);; |
---|
| 7249 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
---|
| 7250 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
---|
| 7251 | { (exit 1); exit 1; }; };; |
---|
| 7252 | :[FH]-) ac_tag=-:-;; |
---|
| 7253 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 7254 | esac |
---|
| 7255 | ac_save_IFS=$IFS |
---|
| 7256 | IFS=: |
---|
| 7257 | set x $ac_tag |
---|
| 7258 | IFS=$ac_save_IFS |
---|
| 7259 | shift |
---|
| 7260 | ac_file=$1 |
---|
| 7261 | shift |
---|
[14] | 7262 | |
---|
[101] | 7263 | case $ac_mode in |
---|
| 7264 | :L) ac_source=$1;; |
---|
| 7265 | :[FH]) |
---|
| 7266 | ac_file_inputs= |
---|
| 7267 | for ac_f |
---|
| 7268 | do |
---|
| 7269 | case $ac_f in |
---|
| 7270 | -) ac_f="$tmp/stdin";; |
---|
| 7271 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 7272 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 7273 | # because $ac_f cannot contain `:'. |
---|
| 7274 | test -f "$ac_f" || |
---|
| 7275 | case $ac_f in |
---|
| 7276 | [\\/$]*) false;; |
---|
| 7277 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 7278 | esac || |
---|
| 7279 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
| 7280 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
| 7281 | { (exit 1); exit 1; }; };; |
---|
| 7282 | esac |
---|
| 7283 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
| 7284 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
---|
| 7285 | done |
---|
| 7286 | |
---|
| 7287 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7288 | # use $as_me), people would be surprised to read: |
---|
| 7289 | # /* config.h. Generated by config.status. */ |
---|
| 7290 | configure_input='Generated from '` |
---|
| 7291 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
| 7292 | `' by configure.' |
---|
| 7293 | if test x"$ac_file" != x-; then |
---|
| 7294 | configure_input="$ac_file. $configure_input" |
---|
| 7295 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7296 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
| 7297 | fi |
---|
| 7298 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
| 7299 | case $configure_input in #( |
---|
| 7300 | *\&* | *\|* | *\\* ) |
---|
| 7301 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
| 7302 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
| 7303 | *) ac_sed_conf_input=$configure_input;; |
---|
| 7304 | esac |
---|
| 7305 | |
---|
| 7306 | case $ac_tag in |
---|
| 7307 | *:-:* | *:-) cat >"$tmp/stdin" \ |
---|
| 7308 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
| 7309 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
| 7310 | { (exit 1); exit 1; }; } ;; |
---|
| 7311 | esac |
---|
| 7312 | ;; |
---|
| 7313 | esac |
---|
| 7314 | |
---|
| 7315 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
[14] | 7316 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[101] | 7317 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7318 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7319 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 7320 | $as_echo X"$ac_file" | |
---|
| 7321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 7322 | s//\1/ |
---|
| 7323 | q |
---|
| 7324 | } |
---|
| 7325 | /^X\(\/\/\)[^/].*/{ |
---|
| 7326 | s//\1/ |
---|
| 7327 | q |
---|
| 7328 | } |
---|
| 7329 | /^X\(\/\/\)$/{ |
---|
| 7330 | s//\1/ |
---|
| 7331 | q |
---|
| 7332 | } |
---|
| 7333 | /^X\(\/\).*/{ |
---|
| 7334 | s//\1/ |
---|
| 7335 | q |
---|
| 7336 | } |
---|
| 7337 | s/.*/./; q'` |
---|
| 7338 | { as_dir="$ac_dir" |
---|
| 7339 | case $as_dir in #( |
---|
| 7340 | -*) as_dir=./$as_dir;; |
---|
| 7341 | esac |
---|
| 7342 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
[14] | 7343 | as_dirs= |
---|
[101] | 7344 | while :; do |
---|
| 7345 | case $as_dir in #( |
---|
| 7346 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 7347 | *) as_qdir=$as_dir;; |
---|
| 7348 | esac |
---|
| 7349 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 7350 | as_dir=`$as_dirname -- "$as_dir" || |
---|
[14] | 7351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[101] | 7352 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7353 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7354 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 7355 | $as_echo X"$as_dir" | |
---|
| 7356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 7357 | s//\1/ |
---|
| 7358 | q |
---|
| 7359 | } |
---|
| 7360 | /^X\(\/\/\)[^/].*/{ |
---|
| 7361 | s//\1/ |
---|
| 7362 | q |
---|
| 7363 | } |
---|
| 7364 | /^X\(\/\/\)$/{ |
---|
| 7365 | s//\1/ |
---|
| 7366 | q |
---|
| 7367 | } |
---|
| 7368 | /^X\(\/\).*/{ |
---|
| 7369 | s//\1/ |
---|
| 7370 | q |
---|
| 7371 | } |
---|
| 7372 | s/.*/./; q'` |
---|
| 7373 | test -d "$as_dir" && break |
---|
[14] | 7374 | done |
---|
[101] | 7375 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 7376 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
| 7377 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
[14] | 7378 | { (exit 1); exit 1; }; }; } |
---|
| 7379 | ac_builddir=. |
---|
| 7380 | |
---|
[101] | 7381 | case "$ac_dir" in |
---|
| 7382 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7383 | *) |
---|
| 7384 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 7385 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 7386 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 7387 | case $ac_top_builddir_sub in |
---|
| 7388 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 7389 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 7390 | esac ;; |
---|
| 7391 | esac |
---|
| 7392 | ac_abs_top_builddir=$ac_pwd |
---|
| 7393 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 7394 | # for backward compatibility: |
---|
| 7395 | ac_top_builddir=$ac_top_build_prefix |
---|
[14] | 7396 | |
---|
| 7397 | case $srcdir in |
---|
[101] | 7398 | .) # We are building in place. |
---|
[14] | 7399 | ac_srcdir=. |
---|
[101] | 7400 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 7401 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 7402 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[14] | 7403 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[101] | 7404 | ac_top_srcdir=$srcdir |
---|
| 7405 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 7406 | *) # Relative name. |
---|
| 7407 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 7408 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 7409 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[14] | 7410 | esac |
---|
[101] | 7411 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[14] | 7412 | |
---|
| 7413 | |
---|
[101] | 7414 | case $ac_mode in |
---|
| 7415 | :F) |
---|
| 7416 | # |
---|
| 7417 | # CONFIG_FILE |
---|
| 7418 | # |
---|
| 7419 | |
---|
[14] | 7420 | case $INSTALL in |
---|
| 7421 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
[101] | 7422 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
[14] | 7423 | esac |
---|
[101] | 7424 | _ACEOF |
---|
[14] | 7425 | |
---|
[101] | 7426 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 7427 | # If the template does not know about datarootdir, expand it. |
---|
| 7428 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 7429 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
[14] | 7430 | |
---|
[101] | 7431 | ac_sed_dataroot=' |
---|
| 7432 | /datarootdir/ { |
---|
| 7433 | p |
---|
| 7434 | q |
---|
| 7435 | } |
---|
| 7436 | /@datadir@/p |
---|
| 7437 | /@docdir@/p |
---|
| 7438 | /@infodir@/p |
---|
| 7439 | /@localedir@/p |
---|
| 7440 | /@mandir@/p |
---|
| 7441 | ' |
---|
| 7442 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
| 7443 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 7444 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 7445 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 7446 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
[14] | 7447 | _ACEOF |
---|
[101] | 7448 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7449 | ac_datarootdir_hack=' |
---|
| 7450 | s&@datadir@&$datadir&g |
---|
| 7451 | s&@docdir@&$docdir&g |
---|
| 7452 | s&@infodir@&$infodir&g |
---|
| 7453 | s&@localedir@&$localedir&g |
---|
| 7454 | s&@mandir@&$mandir&g |
---|
| 7455 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 7456 | esac |
---|
| 7457 | _ACEOF |
---|
| 7458 | |
---|
| 7459 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 7460 | # Shell code in configure.ac might set extrasub. |
---|
| 7461 | # FIXME: do we really want to maintain this feature? |
---|
| 7462 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 7463 | ac_sed_extra="$ac_vpsub |
---|
[14] | 7464 | $extrasub |
---|
| 7465 | _ACEOF |
---|
[101] | 7466 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
[14] | 7467 | :t |
---|
| 7468 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
[101] | 7469 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
| 7470 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 7471 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
| 7472 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 7473 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 7474 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 7475 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 7476 | s&@builddir@&$ac_builddir&;t t |
---|
| 7477 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 7478 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 7479 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
| 7480 | $ac_datarootdir_hack |
---|
| 7481 | " |
---|
| 7482 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
---|
| 7483 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
| 7484 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
| 7485 | { (exit 1); exit 1; }; } |
---|
[14] | 7486 | |
---|
[101] | 7487 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 7488 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
| 7489 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
| 7490 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 7491 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
| 7492 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 7493 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
[14] | 7494 | |
---|
[101] | 7495 | rm -f "$tmp/stdin" |
---|
| 7496 | case $ac_file in |
---|
| 7497 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
---|
| 7498 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
---|
| 7499 | esac \ |
---|
| 7500 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
| 7501 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
| 7502 | { (exit 1); exit 1; }; } |
---|
| 7503 | ;; |
---|
[14] | 7504 | |
---|
[101] | 7505 | |
---|
| 7506 | |
---|
| 7507 | esac |
---|
| 7508 | |
---|
| 7509 | done # for ac_tag |
---|
| 7510 | |
---|
| 7511 | |
---|
[14] | 7512 | { (exit 0); exit 0; } |
---|
| 7513 | _ACEOF |
---|
| 7514 | chmod +x $CONFIG_STATUS |
---|
| 7515 | ac_clean_files=$ac_clean_files_save |
---|
| 7516 | |
---|
[101] | 7517 | test $ac_write_fail = 0 || |
---|
| 7518 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
---|
| 7519 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
---|
| 7520 | { (exit 1); exit 1; }; } |
---|
[14] | 7521 | |
---|
[101] | 7522 | |
---|
[14] | 7523 | # configure is writing to config.log, and then calls config.status. |
---|
| 7524 | # config.status does its own redirection, appending to config.log. |
---|
| 7525 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7526 | # by configure, so config.status won't be able to write to it; its |
---|
| 7527 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7528 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7529 | # appended to by config.status. When coming back to configure, we |
---|
| 7530 | # need to make the FD available again. |
---|
| 7531 | if test "$no_create" != yes; then |
---|
| 7532 | ac_cs_success=: |
---|
| 7533 | ac_config_status_args= |
---|
| 7534 | test "$silent" = yes && |
---|
| 7535 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7536 | exec 5>/dev/null |
---|
| 7537 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7538 | exec 5>>config.log |
---|
| 7539 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7540 | # would make configure fail if this is the last instruction. |
---|
| 7541 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 7542 | fi |
---|
[101] | 7543 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
| 7544 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
| 7545 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
| 7546 | fi |
---|
[14] | 7547 | |
---|