| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.64. |
| 4 | # |
| 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
| 7 | # Foundation, Inc. |
| 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
| 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
| 30 | esac |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (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 | |
| 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
| 90 | case $0 in #(( |
| 91 | *[\\/]* ) as_myself=$0 ;; |
| 92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 93 | for as_dir in $PATH |
| 94 | do |
| 95 | IFS=$as_save_IFS |
| 96 | test -z "$as_dir" && as_dir=. |
| 97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 98 | done |
| 99 | IFS=$as_save_IFS |
| 100 | |
| 101 | ;; |
| 102 | esac |
| 103 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 104 | # in which case we are not to be found in the path. |
| 105 | if test "x$as_myself" = x; then |
| 106 | as_myself=$0 |
| 107 | fi |
| 108 | if test ! -f "$as_myself"; then |
| 109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 110 | exit 1 |
| 111 | fi |
| 112 | |
| 113 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 115 | # suppresses any "Segmentation fault" message there. '((' could |
| 116 | # trigger a bug in pdksh 5.2.14. |
| 117 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 118 | do eval test x\${$as_var+set} = xset \ |
| 119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 120 | done |
| 121 | PS1='$ ' |
| 122 | PS2='> ' |
| 123 | PS4='+ ' |
| 124 | |
| 125 | # NLS nuisances. |
| 126 | LC_ALL=C |
| 127 | export LC_ALL |
| 128 | LANGUAGE=C |
| 129 | export LANGUAGE |
| 130 | |
| 131 | # CDPATH. |
| 132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 133 | |
| 134 | if test "x$CONFIG_SHELL" = x; then |
| 135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 136 | emulate sh |
| 137 | NULLCMD=: |
| 138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 139 | # is contrary to our usage. Disable this feature. |
| 140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 141 | setopt NO_GLOB_SUBST |
| 142 | else |
| 143 | case \`(set -o) 2>/dev/null\` in #( |
| 144 | *posix*) : |
| 145 | set -o posix ;; #( |
| 146 | *) : |
| 147 | ;; |
| 148 | esac |
| 149 | fi |
| 150 | " |
| 151 | as_required="as_fn_return () { (exit \$1); } |
| 152 | as_fn_success () { as_fn_return 0; } |
| 153 | as_fn_failure () { as_fn_return 1; } |
| 154 | as_fn_ret_success () { return 0; } |
| 155 | as_fn_ret_failure () { return 1; } |
| 156 | |
| 157 | exitcode=0 |
| 158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 163 | |
| 164 | else |
| 165 | exitcode=1; echo positional parameters were not saved. |
| 166 | fi |
| 167 | test x\$exitcode = x0 || exit 1" |
| 168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 172 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 173 | if (eval "$as_required") 2>/dev/null; then : |
| 174 | as_have_required=yes |
| 175 | else |
| 176 | as_have_required=no |
| 177 | fi |
| 178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 179 | |
| 180 | else |
| 181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 182 | as_found=false |
| 183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 184 | do |
| 185 | IFS=$as_save_IFS |
| 186 | test -z "$as_dir" && as_dir=. |
| 187 | as_found=: |
| 188 | case $as_dir in #( |
| 189 | /*) |
| 190 | for as_base in sh bash ksh sh5; do |
| 191 | # Try only shells that exist, to save several forks. |
| 192 | as_shell=$as_dir/$as_base |
| 193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 195 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | break 2 |
| 198 | fi |
| 199 | fi |
| 200 | done;; |
| 201 | esac |
| 202 | as_found=false |
| 203 | done |
| 204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 206 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 207 | fi; } |
| 208 | IFS=$as_save_IFS |
| 209 | |
| 210 | |
| 211 | if test "x$CONFIG_SHELL" != x; then : |
| 212 | # We cannot yet assume a decent shell, so we have to provide a |
| 213 | # neutralization value for shells without unset; and this also |
| 214 | # works around shells that cannot unset nonexistent variables. |
| 215 | BASH_ENV=/dev/null |
| 216 | ENV=/dev/null |
| 217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 218 | export CONFIG_SHELL |
| 219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 220 | fi |
| 221 | |
| 222 | if test x$as_have_required = xno; then : |
| 223 | $as_echo "$0: This script requires a shell more modern than all" |
| 224 | $as_echo "$0: the shells that I found on your system." |
| 225 | if test x${ZSH_VERSION+set} = xset ; then |
| 226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 228 | else |
| 229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 230 | $0: including any error possibly output before this |
| 231 | $0: message. Then install a modern shell, or manually run |
| 232 | $0: the script under such a shell if you do have one." |
| 233 | fi |
| 234 | exit 1 |
| 235 | fi |
| 236 | fi |
| 237 | fi |
| 238 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 239 | export SHELL |
| 240 | # Unset more variables known to interfere with behavior of common tools. |
| 241 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 242 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 243 | |
| 244 | ## --------------------- ## |
| 245 | ## M4sh Shell Functions. ## |
| 246 | ## --------------------- ## |
| 247 | # as_fn_unset VAR |
| 248 | # --------------- |
| 249 | # Portably unset VAR. |
| 250 | as_fn_unset () |
| 251 | { |
| 252 | { eval $1=; unset $1;} |
| 253 | } |
| 254 | as_unset=as_fn_unset |
| 255 | |
| 256 | # as_fn_set_status STATUS |
| 257 | # ----------------------- |
| 258 | # Set $? to STATUS, without forking. |
| 259 | as_fn_set_status () |
| 260 | { |
| 261 | return $1 |
| 262 | } # as_fn_set_status |
| 263 | |
| 264 | # as_fn_exit STATUS |
| 265 | # ----------------- |
| 266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 267 | as_fn_exit () |
| 268 | { |
| 269 | set +e |
| 270 | as_fn_set_status $1 |
| 271 | exit $1 |
| 272 | } # as_fn_exit |
| 273 | |
| 274 | # as_fn_mkdir_p |
| 275 | # ------------- |
| 276 | # Create "$as_dir" as a directory, including parents if necessary. |
| 277 | as_fn_mkdir_p () |
| 278 | { |
| 279 | |
| 280 | case $as_dir in #( |
| 281 | -*) as_dir=./$as_dir;; |
| 282 | esac |
| 283 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 284 | as_dirs= |
| 285 | while :; do |
| 286 | case $as_dir in #( |
| 287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 288 | *) as_qdir=$as_dir;; |
| 289 | esac |
| 290 | as_dirs="'$as_qdir' $as_dirs" |
| 291 | as_dir=`$as_dirname -- "$as_dir" || |
| 292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 293 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 294 | X"$as_dir" : 'X\(//\)$' \| \ |
| 295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 296 | $as_echo X"$as_dir" | |
| 297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 298 | s//\1/ |
| 299 | q |
| 300 | } |
| 301 | /^X\(\/\/\)[^/].*/{ |
| 302 | s//\1/ |
| 303 | q |
| 304 | } |
| 305 | /^X\(\/\/\)$/{ |
| 306 | s//\1/ |
| 307 | q |
| 308 | } |
| 309 | /^X\(\/\).*/{ |
| 310 | s//\1/ |
| 311 | q |
| 312 | } |
| 313 | s/.*/./; q'` |
| 314 | test -d "$as_dir" && break |
| 315 | done |
| 316 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 318 | |
| 319 | |
| 320 | } # as_fn_mkdir_p |
| 321 | # as_fn_append VAR VALUE |
| 322 | # ---------------------- |
| 323 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 324 | # advantage of any shell optimizations that allow amortized linear growth over |
| 325 | # repeated appends, instead of the typical quadratic growth present in naive |
| 326 | # implementations. |
| 327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 328 | eval 'as_fn_append () |
| 329 | { |
| 330 | eval $1+=\$2 |
| 331 | }' |
| 332 | else |
| 333 | as_fn_append () |
| 334 | { |
| 335 | eval $1=\$$1\$2 |
| 336 | } |
| 337 | fi # as_fn_append |
| 338 | |
| 339 | # as_fn_arith ARG... |
| 340 | # ------------------ |
| 341 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 343 | # must be portable across $(()) and expr. |
| 344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 345 | eval 'as_fn_arith () |
| 346 | { |
| 347 | as_val=$(( $* )) |
| 348 | }' |
| 349 | else |
| 350 | as_fn_arith () |
| 351 | { |
| 352 | as_val=`expr "$@" || test $? -eq 1` |
| 353 | } |
| 354 | fi # as_fn_arith |
| 355 | |
| 356 | |
| 357 | # as_fn_error ERROR [LINENO LOG_FD] |
| 358 | # --------------------------------- |
| 359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 361 | # script with status $?, using 1 if that was 0. |
| 362 | as_fn_error () |
| 363 | { |
| 364 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 365 | if test "$3"; then |
| 366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 368 | fi |
| 369 | $as_echo "$as_me: error: $1" >&2 |
| 370 | as_fn_exit $as_status |
| 371 | } # as_fn_error |
| 372 | |
| 373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 375 | as_expr=expr |
| 376 | else |
| 377 | as_expr=false |
| 378 | fi |
| 379 | |
| 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 381 | as_basename=basename |
| 382 | else |
| 383 | as_basename=false |
| 384 | fi |
| 385 | |
| 386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 387 | as_dirname=dirname |
| 388 | else |
| 389 | as_dirname=false |
| 390 | fi |
| 391 | |
| 392 | as_me=`$as_basename -- "$0" || |
| 393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 394 | X"$0" : 'X\(//\)$' \| \ |
| 395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 396 | $as_echo X/"$0" | |
| 397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 398 | s//\1/ |
| 399 | q |
| 400 | } |
| 401 | /^X\/\(\/\/\)$/{ |
| 402 | s//\1/ |
| 403 | q |
| 404 | } |
| 405 | /^X\/\(\/\).*/{ |
| 406 | s//\1/ |
| 407 | q |
| 408 | } |
| 409 | s/.*/./; q'` |
| 410 | |
| 411 | # Avoid depending upon Character Ranges. |
| 412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 415 | as_cr_digits='0123456789' |
| 416 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 424 | sed -n ' |
| 425 | p |
| 426 | /[$]LINENO/= |
| 427 | ' <$as_myself | |
| 428 | sed ' |
| 429 | s/[$]LINENO.*/&-/ |
| 430 | t lineno |
| 431 | b |
| 432 | :lineno |
| 433 | N |
| 434 | :loop |
| 435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 436 | t loop |
| 437 | s/-\n.*// |
| 438 | ' >$as_me.lineno && |
| 439 | chmod +x "$as_me.lineno" || |
| 440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 441 | |
| 442 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 443 | # (the dirname of $[0] is not the place where we might find the |
| 444 | # original and so on. Autoconf is especially sensitive to this). |
| 445 | . "./$as_me.lineno" |
| 446 | # Exit status is that of the last command. |
| 447 | exit |
| 448 | } |
| 449 | |
| 450 | ECHO_C= ECHO_N= ECHO_T= |
| 451 | case `echo -n x` in #((((( |
| 452 | -n*) |
| 453 | case `echo 'xy\c'` in |
| 454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 455 | xy) ECHO_C='\c';; |
| 456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 457 | ECHO_T=' ';; |
| 458 | esac;; |
| 459 | *) |
| 460 | ECHO_N='-n';; |
| 461 | esac |
| 462 | |
| 463 | rm -f conf$$ conf$$.exe conf$$.file |
| 464 | if test -d conf$$.dir; then |
| 465 | rm -f conf$$.dir/conf$$.file |
| 466 | else |
| 467 | rm -f conf$$.dir |
| 468 | mkdir conf$$.dir 2>/dev/null |
| 469 | fi |
| 470 | if (echo >conf$$.file) 2>/dev/null; then |
| 471 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 472 | as_ln_s='ln -s' |
| 473 | # ... but there are two gotchas: |
| 474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 476 | # In both cases, we have to default to `cp -p'. |
| 477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 478 | as_ln_s='cp -p' |
| 479 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 480 | as_ln_s=ln |
| 481 | else |
| 482 | as_ln_s='cp -p' |
| 483 | fi |
| 484 | else |
| 485 | as_ln_s='cp -p' |
| 486 | fi |
| 487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 488 | rmdir conf$$.dir 2>/dev/null |
| 489 | |
| 490 | if mkdir -p . 2>/dev/null; then |
| 491 | as_mkdir_p='mkdir -p "$as_dir"' |
| 492 | else |
| 493 | test -d ./-p && rmdir ./-p |
| 494 | as_mkdir_p=false |
| 495 | fi |
| 496 | |
| 497 | if test -x / >/dev/null 2>&1; then |
| 498 | as_test_x='test -x' |
| 499 | else |
| 500 | if ls -dL / >/dev/null 2>&1; then |
| 501 | as_ls_L_option=L |
| 502 | else |
| 503 | as_ls_L_option= |
| 504 | fi |
| 505 | as_test_x=' |
| 506 | eval sh -c '\'' |
| 507 | if test -d "$1"; then |
| 508 | test -d "$1/."; |
| 509 | else |
| 510 | case $1 in #( |
| 511 | -*)set "./$1";; |
| 512 | esac; |
| 513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 514 | ???[sx]*):;;*)false;;esac;fi |
| 515 | '\'' sh |
| 516 | ' |
| 517 | fi |
| 518 | as_executable_p=$as_test_x |
| 519 | |
| 520 | # Sed expression to map a string onto a valid CPP name. |
| 521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 522 | |
| 523 | # Sed expression to map a string onto a valid variable name. |
| 524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 525 | |
| 526 | |
| 527 | exec 7<&0 </dev/null 6>&1 |
| 528 | |
| 529 | # Name of the host. |
| 530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 531 | # so uname gets run too. |
| 532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 533 | |
| 534 | # |
| 535 | # Initializations. |
| 536 | # |
| 537 | ac_default_prefix=/usr/local |
| 538 | ac_clean_files= |
| 539 | ac_config_libobj_dir=. |
| 540 | LIBOBJS= |
| 541 | cross_compiling=no |
| 542 | subdirs= |
| 543 | MFLAGS= |
| 544 | MAKEFLAGS= |
| 545 | |
| 546 | # Identity of this package. |
| 547 | PACKAGE_NAME= |
| 548 | PACKAGE_TARNAME= |
| 549 | PACKAGE_VERSION= |
| 550 | PACKAGE_STRING= |
| 551 | PACKAGE_BUGREPORT= |
| 552 | PACKAGE_URL= |
| 553 | |
| 554 | ac_unique_file="server.c" |
| 555 | # Factoring default headers for most tests. |
| 556 | ac_includes_default="\ |
| 557 | #include <stdio.h> |
| 558 | #ifdef HAVE_SYS_TYPES_H |
| 559 | # include <sys/types.h> |
| 560 | #endif |
| 561 | #ifdef HAVE_SYS_STAT_H |
| 562 | # include <sys/stat.h> |
| 563 | #endif |
| 564 | #ifdef STDC_HEADERS |
| 565 | # include <stdlib.h> |
| 566 | # include <stddef.h> |
| 567 | #else |
| 568 | # ifdef HAVE_STDLIB_H |
| 569 | # include <stdlib.h> |
| 570 | # endif |
| 571 | #endif |
| 572 | #ifdef HAVE_STRING_H |
| 573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 574 | # include <memory.h> |
| 575 | # endif |
| 576 | # include <string.h> |
| 577 | #endif |
| 578 | #ifdef HAVE_STRINGS_H |
| 579 | # include <strings.h> |
| 580 | #endif |
| 581 | #ifdef HAVE_INTTYPES_H |
| 582 | # include <inttypes.h> |
| 583 | #endif |
| 584 | #ifdef HAVE_STDINT_H |
| 585 | # include <stdint.h> |
| 586 | #endif |
| 587 | #ifdef HAVE_UNISTD_H |
| 588 | # include <unistd.h> |
| 589 | #endif" |
| 590 | |
| 591 | ac_subst_vars='LTLIBOBJS |
| 592 | LIBOBJS |
| 593 | GNULIB_STDINT_H |
| 594 | extra_libraries |
| 595 | IPA_DEPFILES |
| 596 | srv_xmlfiles |
| 597 | srv_xmlbuiltin |
| 598 | GDBSERVER_LIBS |
| 599 | GDBSERVER_DEPFILES |
| 600 | RDYNAMIC |
| 601 | REPORT_BUGS_TEXI |
| 602 | REPORT_BUGS_TO |
| 603 | PKGVERSION |
| 604 | WERROR_CFLAGS |
| 605 | WARN_CFLAGS |
| 606 | ustinc |
| 607 | ustlibs |
| 608 | ALLOCA |
| 609 | SET_MAKE |
| 610 | GMAKE_FALSE |
| 611 | GMAKE_TRUE |
| 612 | MAKE |
| 613 | CCDEPMODE |
| 614 | DEPDIR |
| 615 | am__leading_dot |
| 616 | host_noncanonical |
| 617 | target_noncanonical |
| 618 | RANLIB |
| 619 | AR |
| 620 | INSTALL_DATA |
| 621 | INSTALL_SCRIPT |
| 622 | INSTALL_PROGRAM |
| 623 | target_os |
| 624 | target_vendor |
| 625 | target_cpu |
| 626 | target |
| 627 | host_os |
| 628 | host_vendor |
| 629 | host_cpu |
| 630 | host |
| 631 | build_os |
| 632 | build_vendor |
| 633 | build_cpu |
| 634 | build |
| 635 | EGREP |
| 636 | GREP |
| 637 | CPP |
| 638 | OBJEXT |
| 639 | EXEEXT |
| 640 | ac_ct_CC |
| 641 | CPPFLAGS |
| 642 | LDFLAGS |
| 643 | CFLAGS |
| 644 | CC |
| 645 | MAINT |
| 646 | MAINTAINER_MODE_FALSE |
| 647 | MAINTAINER_MODE_TRUE |
| 648 | target_alias |
| 649 | host_alias |
| 650 | build_alias |
| 651 | LIBS |
| 652 | ECHO_T |
| 653 | ECHO_N |
| 654 | ECHO_C |
| 655 | DEFS |
| 656 | mandir |
| 657 | localedir |
| 658 | libdir |
| 659 | psdir |
| 660 | pdfdir |
| 661 | dvidir |
| 662 | htmldir |
| 663 | infodir |
| 664 | docdir |
| 665 | oldincludedir |
| 666 | includedir |
| 667 | localstatedir |
| 668 | sharedstatedir |
| 669 | sysconfdir |
| 670 | datadir |
| 671 | datarootdir |
| 672 | libexecdir |
| 673 | sbindir |
| 674 | bindir |
| 675 | program_transform_name |
| 676 | prefix |
| 677 | exec_prefix |
| 678 | PACKAGE_URL |
| 679 | PACKAGE_BUGREPORT |
| 680 | PACKAGE_STRING |
| 681 | PACKAGE_VERSION |
| 682 | PACKAGE_TARNAME |
| 683 | PACKAGE_NAME |
| 684 | PATH_SEPARATOR |
| 685 | SHELL' |
| 686 | ac_subst_files='' |
| 687 | ac_user_opts=' |
| 688 | enable_option_checking |
| 689 | enable_maintainer_mode |
| 690 | enable_largefile |
| 691 | enable_libmcheck |
| 692 | with_ust |
| 693 | with_ust_include |
| 694 | with_ust_lib |
| 695 | enable_werror |
| 696 | with_pkgversion |
| 697 | with_bugurl |
| 698 | with_libthread_db |
| 699 | enable_inprocess_agent |
| 700 | ' |
| 701 | ac_precious_vars='build_alias |
| 702 | host_alias |
| 703 | target_alias |
| 704 | CC |
| 705 | CFLAGS |
| 706 | LDFLAGS |
| 707 | LIBS |
| 708 | CPPFLAGS |
| 709 | CPP' |
| 710 | |
| 711 | |
| 712 | # Initialize some variables set by options. |
| 713 | ac_init_help= |
| 714 | ac_init_version=false |
| 715 | ac_unrecognized_opts= |
| 716 | ac_unrecognized_sep= |
| 717 | # The variables have the same names as the options, with |
| 718 | # dashes changed to underlines. |
| 719 | cache_file=/dev/null |
| 720 | exec_prefix=NONE |
| 721 | no_create= |
| 722 | no_recursion= |
| 723 | prefix=NONE |
| 724 | program_prefix=NONE |
| 725 | program_suffix=NONE |
| 726 | program_transform_name=s,x,x, |
| 727 | silent= |
| 728 | site= |
| 729 | srcdir= |
| 730 | verbose= |
| 731 | x_includes=NONE |
| 732 | x_libraries=NONE |
| 733 | |
| 734 | # Installation directory options. |
| 735 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 736 | # and all the variables that are supposed to be based on exec_prefix |
| 737 | # by default will actually change. |
| 738 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 739 | # (The list follows the same order as the GNU Coding Standards.) |
| 740 | bindir='${exec_prefix}/bin' |
| 741 | sbindir='${exec_prefix}/sbin' |
| 742 | libexecdir='${exec_prefix}/libexec' |
| 743 | datarootdir='${prefix}/share' |
| 744 | datadir='${datarootdir}' |
| 745 | sysconfdir='${prefix}/etc' |
| 746 | sharedstatedir='${prefix}/com' |
| 747 | localstatedir='${prefix}/var' |
| 748 | includedir='${prefix}/include' |
| 749 | oldincludedir='/usr/include' |
| 750 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 751 | infodir='${datarootdir}/info' |
| 752 | htmldir='${docdir}' |
| 753 | dvidir='${docdir}' |
| 754 | pdfdir='${docdir}' |
| 755 | psdir='${docdir}' |
| 756 | libdir='${exec_prefix}/lib' |
| 757 | localedir='${datarootdir}/locale' |
| 758 | mandir='${datarootdir}/man' |
| 759 | |
| 760 | ac_prev= |
| 761 | ac_dashdash= |
| 762 | for ac_option |
| 763 | do |
| 764 | # If the previous option needs an argument, assign it. |
| 765 | if test -n "$ac_prev"; then |
| 766 | eval $ac_prev=\$ac_option |
| 767 | ac_prev= |
| 768 | continue |
| 769 | fi |
| 770 | |
| 771 | case $ac_option in |
| 772 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 773 | *) ac_optarg=yes ;; |
| 774 | esac |
| 775 | |
| 776 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 777 | |
| 778 | case $ac_dashdash$ac_option in |
| 779 | --) |
| 780 | ac_dashdash=yes ;; |
| 781 | |
| 782 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 783 | ac_prev=bindir ;; |
| 784 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 785 | bindir=$ac_optarg ;; |
| 786 | |
| 787 | -build | --build | --buil | --bui | --bu) |
| 788 | ac_prev=build_alias ;; |
| 789 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 790 | build_alias=$ac_optarg ;; |
| 791 | |
| 792 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 793 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 794 | ac_prev=cache_file ;; |
| 795 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 796 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 797 | cache_file=$ac_optarg ;; |
| 798 | |
| 799 | --config-cache | -C) |
| 800 | cache_file=config.cache ;; |
| 801 | |
| 802 | -datadir | --datadir | --datadi | --datad) |
| 803 | ac_prev=datadir ;; |
| 804 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 805 | datadir=$ac_optarg ;; |
| 806 | |
| 807 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 808 | | --dataroo | --dataro | --datar) |
| 809 | ac_prev=datarootdir ;; |
| 810 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 811 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 812 | datarootdir=$ac_optarg ;; |
| 813 | |
| 814 | -disable-* | --disable-*) |
| 815 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 816 | # Reject names that are not valid shell variable names. |
| 817 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 818 | as_fn_error "invalid feature name: $ac_useropt" |
| 819 | ac_useropt_orig=$ac_useropt |
| 820 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 821 | case $ac_user_opts in |
| 822 | *" |
| 823 | "enable_$ac_useropt" |
| 824 | "*) ;; |
| 825 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 826 | ac_unrecognized_sep=', ';; |
| 827 | esac |
| 828 | eval enable_$ac_useropt=no ;; |
| 829 | |
| 830 | -docdir | --docdir | --docdi | --doc | --do) |
| 831 | ac_prev=docdir ;; |
| 832 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 833 | docdir=$ac_optarg ;; |
| 834 | |
| 835 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 836 | ac_prev=dvidir ;; |
| 837 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 838 | dvidir=$ac_optarg ;; |
| 839 | |
| 840 | -enable-* | --enable-*) |
| 841 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 842 | # Reject names that are not valid shell variable names. |
| 843 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 844 | as_fn_error "invalid feature name: $ac_useropt" |
| 845 | ac_useropt_orig=$ac_useropt |
| 846 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 847 | case $ac_user_opts in |
| 848 | *" |
| 849 | "enable_$ac_useropt" |
| 850 | "*) ;; |
| 851 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 852 | ac_unrecognized_sep=', ';; |
| 853 | esac |
| 854 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 855 | |
| 856 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 857 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 858 | | --exec | --exe | --ex) |
| 859 | ac_prev=exec_prefix ;; |
| 860 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 861 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 862 | | --exec=* | --exe=* | --ex=*) |
| 863 | exec_prefix=$ac_optarg ;; |
| 864 | |
| 865 | -gas | --gas | --ga | --g) |
| 866 | # Obsolete; use --with-gas. |
| 867 | with_gas=yes ;; |
| 868 | |
| 869 | -help | --help | --hel | --he | -h) |
| 870 | ac_init_help=long ;; |
| 871 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 872 | ac_init_help=recursive ;; |
| 873 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 874 | ac_init_help=short ;; |
| 875 | |
| 876 | -host | --host | --hos | --ho) |
| 877 | ac_prev=host_alias ;; |
| 878 | -host=* | --host=* | --hos=* | --ho=*) |
| 879 | host_alias=$ac_optarg ;; |
| 880 | |
| 881 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 882 | ac_prev=htmldir ;; |
| 883 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 884 | | --ht=*) |
| 885 | htmldir=$ac_optarg ;; |
| 886 | |
| 887 | -includedir | --includedir | --includedi | --included | --include \ |
| 888 | | --includ | --inclu | --incl | --inc) |
| 889 | ac_prev=includedir ;; |
| 890 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 891 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 892 | includedir=$ac_optarg ;; |
| 893 | |
| 894 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 895 | ac_prev=infodir ;; |
| 896 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 897 | infodir=$ac_optarg ;; |
| 898 | |
| 899 | -libdir | --libdir | --libdi | --libd) |
| 900 | ac_prev=libdir ;; |
| 901 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 902 | libdir=$ac_optarg ;; |
| 903 | |
| 904 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 905 | | --libexe | --libex | --libe) |
| 906 | ac_prev=libexecdir ;; |
| 907 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 908 | | --libexe=* | --libex=* | --libe=*) |
| 909 | libexecdir=$ac_optarg ;; |
| 910 | |
| 911 | -localedir | --localedir | --localedi | --localed | --locale) |
| 912 | ac_prev=localedir ;; |
| 913 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 914 | localedir=$ac_optarg ;; |
| 915 | |
| 916 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 917 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 918 | ac_prev=localstatedir ;; |
| 919 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 920 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 921 | localstatedir=$ac_optarg ;; |
| 922 | |
| 923 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 924 | ac_prev=mandir ;; |
| 925 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 926 | mandir=$ac_optarg ;; |
| 927 | |
| 928 | -nfp | --nfp | --nf) |
| 929 | # Obsolete; use --without-fp. |
| 930 | with_fp=no ;; |
| 931 | |
| 932 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 933 | | --no-cr | --no-c | -n) |
| 934 | no_create=yes ;; |
| 935 | |
| 936 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 937 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 938 | no_recursion=yes ;; |
| 939 | |
| 940 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 941 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 942 | | --oldin | --oldi | --old | --ol | --o) |
| 943 | ac_prev=oldincludedir ;; |
| 944 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 945 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 946 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 947 | oldincludedir=$ac_optarg ;; |
| 948 | |
| 949 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 950 | ac_prev=prefix ;; |
| 951 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 952 | prefix=$ac_optarg ;; |
| 953 | |
| 954 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 955 | | --program-pre | --program-pr | --program-p) |
| 956 | ac_prev=program_prefix ;; |
| 957 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 958 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 959 | program_prefix=$ac_optarg ;; |
| 960 | |
| 961 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 962 | | --program-suf | --program-su | --program-s) |
| 963 | ac_prev=program_suffix ;; |
| 964 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 965 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 966 | program_suffix=$ac_optarg ;; |
| 967 | |
| 968 | -program-transform-name | --program-transform-name \ |
| 969 | | --program-transform-nam | --program-transform-na \ |
| 970 | | --program-transform-n | --program-transform- \ |
| 971 | | --program-transform | --program-transfor \ |
| 972 | | --program-transfo | --program-transf \ |
| 973 | | --program-trans | --program-tran \ |
| 974 | | --progr-tra | --program-tr | --program-t) |
| 975 | ac_prev=program_transform_name ;; |
| 976 | -program-transform-name=* | --program-transform-name=* \ |
| 977 | | --program-transform-nam=* | --program-transform-na=* \ |
| 978 | | --program-transform-n=* | --program-transform-=* \ |
| 979 | | --program-transform=* | --program-transfor=* \ |
| 980 | | --program-transfo=* | --program-transf=* \ |
| 981 | | --program-trans=* | --program-tran=* \ |
| 982 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 983 | program_transform_name=$ac_optarg ;; |
| 984 | |
| 985 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 986 | ac_prev=pdfdir ;; |
| 987 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 988 | pdfdir=$ac_optarg ;; |
| 989 | |
| 990 | -psdir | --psdir | --psdi | --psd | --ps) |
| 991 | ac_prev=psdir ;; |
| 992 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 993 | psdir=$ac_optarg ;; |
| 994 | |
| 995 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 996 | | -silent | --silent | --silen | --sile | --sil) |
| 997 | silent=yes ;; |
| 998 | |
| 999 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1000 | ac_prev=sbindir ;; |
| 1001 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1002 | | --sbi=* | --sb=*) |
| 1003 | sbindir=$ac_optarg ;; |
| 1004 | |
| 1005 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1006 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1007 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1008 | | --sha | --sh) |
| 1009 | ac_prev=sharedstatedir ;; |
| 1010 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1011 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1012 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1013 | | --sha=* | --sh=*) |
| 1014 | sharedstatedir=$ac_optarg ;; |
| 1015 | |
| 1016 | -site | --site | --sit) |
| 1017 | ac_prev=site ;; |
| 1018 | -site=* | --site=* | --sit=*) |
| 1019 | site=$ac_optarg ;; |
| 1020 | |
| 1021 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1022 | ac_prev=srcdir ;; |
| 1023 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1024 | srcdir=$ac_optarg ;; |
| 1025 | |
| 1026 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1027 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1028 | ac_prev=sysconfdir ;; |
| 1029 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1030 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1031 | sysconfdir=$ac_optarg ;; |
| 1032 | |
| 1033 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1034 | ac_prev=target_alias ;; |
| 1035 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1036 | target_alias=$ac_optarg ;; |
| 1037 | |
| 1038 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1039 | verbose=yes ;; |
| 1040 | |
| 1041 | -version | --version | --versio | --versi | --vers | -V) |
| 1042 | ac_init_version=: ;; |
| 1043 | |
| 1044 | -with-* | --with-*) |
| 1045 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1046 | # Reject names that are not valid shell variable names. |
| 1047 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1048 | as_fn_error "invalid package name: $ac_useropt" |
| 1049 | ac_useropt_orig=$ac_useropt |
| 1050 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1051 | case $ac_user_opts in |
| 1052 | *" |
| 1053 | "with_$ac_useropt" |
| 1054 | "*) ;; |
| 1055 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1056 | ac_unrecognized_sep=', ';; |
| 1057 | esac |
| 1058 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1059 | |
| 1060 | -without-* | --without-*) |
| 1061 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1062 | # Reject names that are not valid shell variable names. |
| 1063 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1064 | as_fn_error "invalid package name: $ac_useropt" |
| 1065 | ac_useropt_orig=$ac_useropt |
| 1066 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1067 | case $ac_user_opts in |
| 1068 | *" |
| 1069 | "with_$ac_useropt" |
| 1070 | "*) ;; |
| 1071 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1072 | ac_unrecognized_sep=', ';; |
| 1073 | esac |
| 1074 | eval with_$ac_useropt=no ;; |
| 1075 | |
| 1076 | --x) |
| 1077 | # Obsolete; use --with-x. |
| 1078 | with_x=yes ;; |
| 1079 | |
| 1080 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1081 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1082 | ac_prev=x_includes ;; |
| 1083 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1084 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1085 | x_includes=$ac_optarg ;; |
| 1086 | |
| 1087 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1088 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1089 | ac_prev=x_libraries ;; |
| 1090 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1091 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1092 | x_libraries=$ac_optarg ;; |
| 1093 | |
| 1094 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1095 | Try \`$0 --help' for more information." |
| 1096 | ;; |
| 1097 | |
| 1098 | *=*) |
| 1099 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1100 | # Reject names that are not valid shell variable names. |
| 1101 | case $ac_envvar in #( |
| 1102 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1103 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1104 | esac |
| 1105 | eval $ac_envvar=\$ac_optarg |
| 1106 | export $ac_envvar ;; |
| 1107 | |
| 1108 | *) |
| 1109 | # FIXME: should be removed in autoconf 3.0. |
| 1110 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1111 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1112 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1113 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1114 | ;; |
| 1115 | |
| 1116 | esac |
| 1117 | done |
| 1118 | |
| 1119 | if test -n "$ac_prev"; then |
| 1120 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1121 | as_fn_error "missing argument to $ac_option" |
| 1122 | fi |
| 1123 | |
| 1124 | if test -n "$ac_unrecognized_opts"; then |
| 1125 | case $enable_option_checking in |
| 1126 | no) ;; |
| 1127 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1128 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1129 | esac |
| 1130 | fi |
| 1131 | |
| 1132 | # Check all directory arguments for consistency. |
| 1133 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1134 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1135 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1136 | libdir localedir mandir |
| 1137 | do |
| 1138 | eval ac_val=\$$ac_var |
| 1139 | # Remove trailing slashes. |
| 1140 | case $ac_val in |
| 1141 | */ ) |
| 1142 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1143 | eval $ac_var=\$ac_val;; |
| 1144 | esac |
| 1145 | # Be sure to have absolute directory names. |
| 1146 | case $ac_val in |
| 1147 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1148 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1149 | esac |
| 1150 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1151 | done |
| 1152 | |
| 1153 | # There might be people who depend on the old broken behavior: `$host' |
| 1154 | # used to hold the argument of --host etc. |
| 1155 | # FIXME: To remove some day. |
| 1156 | build=$build_alias |
| 1157 | host=$host_alias |
| 1158 | target=$target_alias |
| 1159 | |
| 1160 | # FIXME: To remove some day. |
| 1161 | if test "x$host_alias" != x; then |
| 1162 | if test "x$build_alias" = x; then |
| 1163 | cross_compiling=maybe |
| 1164 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1165 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1166 | elif test "x$build_alias" != "x$host_alias"; then |
| 1167 | cross_compiling=yes |
| 1168 | fi |
| 1169 | fi |
| 1170 | |
| 1171 | ac_tool_prefix= |
| 1172 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1173 | |
| 1174 | test "$silent" = yes && exec 6>/dev/null |
| 1175 | |
| 1176 | |
| 1177 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1178 | ac_ls_di=`ls -di .` && |
| 1179 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1180 | as_fn_error "working directory cannot be determined" |
| 1181 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1182 | as_fn_error "pwd does not report name of working directory" |
| 1183 | |
| 1184 | |
| 1185 | # Find the source files, if location was not specified. |
| 1186 | if test -z "$srcdir"; then |
| 1187 | ac_srcdir_defaulted=yes |
| 1188 | # Try the directory containing this script, then the parent directory. |
| 1189 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1190 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1191 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1192 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1193 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1194 | $as_echo X"$as_myself" | |
| 1195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1196 | s//\1/ |
| 1197 | q |
| 1198 | } |
| 1199 | /^X\(\/\/\)[^/].*/{ |
| 1200 | s//\1/ |
| 1201 | q |
| 1202 | } |
| 1203 | /^X\(\/\/\)$/{ |
| 1204 | s//\1/ |
| 1205 | q |
| 1206 | } |
| 1207 | /^X\(\/\).*/{ |
| 1208 | s//\1/ |
| 1209 | q |
| 1210 | } |
| 1211 | s/.*/./; q'` |
| 1212 | srcdir=$ac_confdir |
| 1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1214 | srcdir=.. |
| 1215 | fi |
| 1216 | else |
| 1217 | ac_srcdir_defaulted=no |
| 1218 | fi |
| 1219 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1220 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1221 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1222 | fi |
| 1223 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1224 | ac_abs_confdir=`( |
| 1225 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1226 | pwd)` |
| 1227 | # When building in place, set srcdir=. |
| 1228 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1229 | srcdir=. |
| 1230 | fi |
| 1231 | # Remove unnecessary trailing slashes from srcdir. |
| 1232 | # Double slashes in file names in object file debugging info |
| 1233 | # mess up M-x gdb in Emacs. |
| 1234 | case $srcdir in |
| 1235 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1236 | esac |
| 1237 | for ac_var in $ac_precious_vars; do |
| 1238 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1239 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1240 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1241 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1242 | done |
| 1243 | |
| 1244 | # |
| 1245 | # Report the --help message. |
| 1246 | # |
| 1247 | if test "$ac_init_help" = "long"; then |
| 1248 | # Omit some internal or obsolete options to make the list less imposing. |
| 1249 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1250 | cat <<_ACEOF |
| 1251 | \`configure' configures this package to adapt to many kinds of systems. |
| 1252 | |
| 1253 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1254 | |
| 1255 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1256 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1257 | |
| 1258 | Defaults for the options are specified in brackets. |
| 1259 | |
| 1260 | Configuration: |
| 1261 | -h, --help display this help and exit |
| 1262 | --help=short display options specific to this package |
| 1263 | --help=recursive display the short help of all the included packages |
| 1264 | -V, --version display version information and exit |
| 1265 | -q, --quiet, --silent do not print \`checking...' messages |
| 1266 | --cache-file=FILE cache test results in FILE [disabled] |
| 1267 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1268 | -n, --no-create do not create output files |
| 1269 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1270 | |
| 1271 | Installation directories: |
| 1272 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1273 | [$ac_default_prefix] |
| 1274 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1275 | [PREFIX] |
| 1276 | |
| 1277 | By default, \`make install' will install all the files in |
| 1278 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1279 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1280 | for instance \`--prefix=\$HOME'. |
| 1281 | |
| 1282 | For better control, use the options below. |
| 1283 | |
| 1284 | Fine tuning of the installation directories: |
| 1285 | --bindir=DIR user executables [EPREFIX/bin] |
| 1286 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1287 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1288 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1289 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1290 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1291 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1292 | --includedir=DIR C header files [PREFIX/include] |
| 1293 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1294 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1295 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1296 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1297 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1298 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1299 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1300 | --htmldir=DIR html documentation [DOCDIR] |
| 1301 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1302 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1303 | --psdir=DIR ps documentation [DOCDIR] |
| 1304 | _ACEOF |
| 1305 | |
| 1306 | cat <<\_ACEOF |
| 1307 | |
| 1308 | Program names: |
| 1309 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1310 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1311 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1312 | |
| 1313 | System types: |
| 1314 | --build=BUILD configure for building on BUILD [guessed] |
| 1315 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1316 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1317 | _ACEOF |
| 1318 | fi |
| 1319 | |
| 1320 | if test -n "$ac_init_help"; then |
| 1321 | |
| 1322 | cat <<\_ACEOF |
| 1323 | |
| 1324 | Optional Features: |
| 1325 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1326 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1327 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1328 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1329 | (and sometimes confusing) to the casual installer |
| 1330 | --disable-largefile omit support for large files |
| 1331 | --enable-libmcheck Try linking with -lmcheck if available |
| 1332 | --enable-werror treat compile warnings as errors |
| 1333 | --enable-inprocess-agent |
| 1334 | inprocess agent |
| 1335 | |
| 1336 | Optional Packages: |
| 1337 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1338 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1339 | --with-ust=PATH Specify prefix directory for the installed UST package |
| 1340 | Equivalent to --with-ust-include=PATH/include |
| 1341 | plus --with-ust-lib=PATH/lib |
| 1342 | --with-ust-include=PATH Specify directory for installed UST include files |
| 1343 | --with-ust-lib=PATH Specify the directory for the installed UST library |
| 1344 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
| 1345 | --with-bugurl=URL Direct users to URL to report a bug |
| 1346 | --with-libthread-db=PATH |
| 1347 | use given libthread_db directly |
| 1348 | |
| 1349 | Some influential environment variables: |
| 1350 | CC C compiler command |
| 1351 | CFLAGS C compiler flags |
| 1352 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1353 | nonstandard directory <lib dir> |
| 1354 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1355 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1356 | you have headers in a nonstandard directory <include dir> |
| 1357 | CPP C preprocessor |
| 1358 | |
| 1359 | Use these variables to override the choices made by `configure' or to help |
| 1360 | it to find libraries and programs with nonstandard names/locations. |
| 1361 | |
| 1362 | Report bugs to the package provider. |
| 1363 | _ACEOF |
| 1364 | ac_status=$? |
| 1365 | fi |
| 1366 | |
| 1367 | if test "$ac_init_help" = "recursive"; then |
| 1368 | # If there are subdirs, report their specific --help. |
| 1369 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1370 | test -d "$ac_dir" || |
| 1371 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1372 | continue |
| 1373 | ac_builddir=. |
| 1374 | |
| 1375 | case "$ac_dir" in |
| 1376 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1377 | *) |
| 1378 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1379 | # A ".." for each directory in $ac_dir_suffix. |
| 1380 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1381 | case $ac_top_builddir_sub in |
| 1382 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1383 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1384 | esac ;; |
| 1385 | esac |
| 1386 | ac_abs_top_builddir=$ac_pwd |
| 1387 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1388 | # for backward compatibility: |
| 1389 | ac_top_builddir=$ac_top_build_prefix |
| 1390 | |
| 1391 | case $srcdir in |
| 1392 | .) # We are building in place. |
| 1393 | ac_srcdir=. |
| 1394 | ac_top_srcdir=$ac_top_builddir_sub |
| 1395 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1396 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1397 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1398 | ac_top_srcdir=$srcdir |
| 1399 | ac_abs_top_srcdir=$srcdir ;; |
| 1400 | *) # Relative name. |
| 1401 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1402 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1403 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1404 | esac |
| 1405 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1406 | |
| 1407 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1408 | # Check for guested configure. |
| 1409 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1410 | echo && |
| 1411 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1412 | elif test -f "$ac_srcdir/configure"; then |
| 1413 | echo && |
| 1414 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1415 | else |
| 1416 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1417 | fi || ac_status=$? |
| 1418 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1419 | done |
| 1420 | fi |
| 1421 | |
| 1422 | test -n "$ac_init_help" && exit $ac_status |
| 1423 | if $ac_init_version; then |
| 1424 | cat <<\_ACEOF |
| 1425 | configure |
| 1426 | generated by GNU Autoconf 2.64 |
| 1427 | |
| 1428 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 1429 | This configure script is free software; the Free Software Foundation |
| 1430 | gives unlimited permission to copy, distribute and modify it. |
| 1431 | _ACEOF |
| 1432 | exit |
| 1433 | fi |
| 1434 | |
| 1435 | ## ------------------------ ## |
| 1436 | ## Autoconf initialization. ## |
| 1437 | ## ------------------------ ## |
| 1438 | |
| 1439 | # ac_fn_c_try_compile LINENO |
| 1440 | # -------------------------- |
| 1441 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1442 | ac_fn_c_try_compile () |
| 1443 | { |
| 1444 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1445 | rm -f conftest.$ac_objext |
| 1446 | if { { ac_try="$ac_compile" |
| 1447 | case "(($ac_try" in |
| 1448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1449 | *) ac_try_echo=$ac_try;; |
| 1450 | esac |
| 1451 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1452 | $as_echo "$ac_try_echo"; } >&5 |
| 1453 | (eval "$ac_compile") 2>conftest.err |
| 1454 | ac_status=$? |
| 1455 | if test -s conftest.err; then |
| 1456 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1457 | cat conftest.er1 >&5 |
| 1458 | mv -f conftest.er1 conftest.err |
| 1459 | fi |
| 1460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1461 | test $ac_status = 0; } && { |
| 1462 | test -z "$ac_c_werror_flag" || |
| 1463 | test ! -s conftest.err |
| 1464 | } && test -s conftest.$ac_objext; then : |
| 1465 | ac_retval=0 |
| 1466 | else |
| 1467 | $as_echo "$as_me: failed program was:" >&5 |
| 1468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1469 | |
| 1470 | ac_retval=1 |
| 1471 | fi |
| 1472 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1473 | return $ac_retval |
| 1474 | |
| 1475 | } # ac_fn_c_try_compile |
| 1476 | |
| 1477 | # ac_fn_c_try_cpp LINENO |
| 1478 | # ---------------------- |
| 1479 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1480 | ac_fn_c_try_cpp () |
| 1481 | { |
| 1482 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1483 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1484 | case "(($ac_try" in |
| 1485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1486 | *) ac_try_echo=$ac_try;; |
| 1487 | esac |
| 1488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1489 | $as_echo "$ac_try_echo"; } >&5 |
| 1490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1491 | ac_status=$? |
| 1492 | if test -s conftest.err; then |
| 1493 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1494 | cat conftest.er1 >&5 |
| 1495 | mv -f conftest.er1 conftest.err |
| 1496 | fi |
| 1497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1498 | test $ac_status = 0; } >/dev/null && { |
| 1499 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1500 | test ! -s conftest.err |
| 1501 | }; then : |
| 1502 | ac_retval=0 |
| 1503 | else |
| 1504 | $as_echo "$as_me: failed program was:" >&5 |
| 1505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1506 | |
| 1507 | ac_retval=1 |
| 1508 | fi |
| 1509 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1510 | return $ac_retval |
| 1511 | |
| 1512 | } # ac_fn_c_try_cpp |
| 1513 | |
| 1514 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1515 | # ------------------------------------------------------- |
| 1516 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1517 | # the include files in INCLUDES and setting the cache variable VAR |
| 1518 | # accordingly. |
| 1519 | ac_fn_c_check_header_mongrel () |
| 1520 | { |
| 1521 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1522 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1524 | $as_echo_n "checking for $2... " >&6; } |
| 1525 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1526 | $as_echo_n "(cached) " >&6 |
| 1527 | fi |
| 1528 | eval ac_res=\$$3 |
| 1529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1530 | $as_echo "$ac_res" >&6; } |
| 1531 | else |
| 1532 | # Is the header compilable? |
| 1533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1534 | $as_echo_n "checking $2 usability... " >&6; } |
| 1535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1536 | /* end confdefs.h. */ |
| 1537 | $4 |
| 1538 | #include <$2> |
| 1539 | _ACEOF |
| 1540 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1541 | ac_header_compiler=yes |
| 1542 | else |
| 1543 | ac_header_compiler=no |
| 1544 | fi |
| 1545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1547 | $as_echo "$ac_header_compiler" >&6; } |
| 1548 | |
| 1549 | # Is the header present? |
| 1550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1551 | $as_echo_n "checking $2 presence... " >&6; } |
| 1552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1553 | /* end confdefs.h. */ |
| 1554 | #include <$2> |
| 1555 | _ACEOF |
| 1556 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1557 | ac_header_preproc=yes |
| 1558 | else |
| 1559 | ac_header_preproc=no |
| 1560 | fi |
| 1561 | rm -f conftest.err conftest.$ac_ext |
| 1562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1563 | $as_echo "$ac_header_preproc" >&6; } |
| 1564 | |
| 1565 | # So? What about this header? |
| 1566 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1567 | yes:no: ) |
| 1568 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1569 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1571 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1572 | ;; |
| 1573 | no:yes:* ) |
| 1574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1575 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1577 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1579 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1581 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1583 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1584 | ;; |
| 1585 | esac |
| 1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1587 | $as_echo_n "checking for $2... " >&6; } |
| 1588 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1589 | $as_echo_n "(cached) " >&6 |
| 1590 | else |
| 1591 | eval "$3=\$ac_header_compiler" |
| 1592 | fi |
| 1593 | eval ac_res=\$$3 |
| 1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1595 | $as_echo "$ac_res" >&6; } |
| 1596 | fi |
| 1597 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1598 | |
| 1599 | } # ac_fn_c_check_header_mongrel |
| 1600 | |
| 1601 | # ac_fn_c_try_run LINENO |
| 1602 | # ---------------------- |
| 1603 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1604 | # that executables *can* be run. |
| 1605 | ac_fn_c_try_run () |
| 1606 | { |
| 1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1608 | if { { ac_try="$ac_link" |
| 1609 | case "(($ac_try" in |
| 1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1611 | *) ac_try_echo=$ac_try;; |
| 1612 | esac |
| 1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1614 | $as_echo "$ac_try_echo"; } >&5 |
| 1615 | (eval "$ac_link") 2>&5 |
| 1616 | ac_status=$? |
| 1617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1618 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1619 | { { case "(($ac_try" in |
| 1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1621 | *) ac_try_echo=$ac_try;; |
| 1622 | esac |
| 1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1624 | $as_echo "$ac_try_echo"; } >&5 |
| 1625 | (eval "$ac_try") 2>&5 |
| 1626 | ac_status=$? |
| 1627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1628 | test $ac_status = 0; }; }; then : |
| 1629 | ac_retval=0 |
| 1630 | else |
| 1631 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1632 | $as_echo "$as_me: failed program was:" >&5 |
| 1633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1634 | |
| 1635 | ac_retval=$ac_status |
| 1636 | fi |
| 1637 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1638 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1639 | return $ac_retval |
| 1640 | |
| 1641 | } # ac_fn_c_try_run |
| 1642 | |
| 1643 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1644 | # ------------------------------------------------------- |
| 1645 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1646 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1647 | ac_fn_c_check_header_compile () |
| 1648 | { |
| 1649 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1651 | $as_echo_n "checking for $2... " >&6; } |
| 1652 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1653 | $as_echo_n "(cached) " >&6 |
| 1654 | else |
| 1655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1656 | /* end confdefs.h. */ |
| 1657 | $4 |
| 1658 | #include <$2> |
| 1659 | _ACEOF |
| 1660 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1661 | eval "$3=yes" |
| 1662 | else |
| 1663 | eval "$3=no" |
| 1664 | fi |
| 1665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1666 | fi |
| 1667 | eval ac_res=\$$3 |
| 1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1669 | $as_echo "$ac_res" >&6; } |
| 1670 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1671 | |
| 1672 | } # ac_fn_c_check_header_compile |
| 1673 | |
| 1674 | # ac_fn_c_try_link LINENO |
| 1675 | # ----------------------- |
| 1676 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1677 | ac_fn_c_try_link () |
| 1678 | { |
| 1679 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1680 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1681 | if { { ac_try="$ac_link" |
| 1682 | case "(($ac_try" in |
| 1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1684 | *) ac_try_echo=$ac_try;; |
| 1685 | esac |
| 1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1687 | $as_echo "$ac_try_echo"; } >&5 |
| 1688 | (eval "$ac_link") 2>conftest.err |
| 1689 | ac_status=$? |
| 1690 | if test -s conftest.err; then |
| 1691 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1692 | cat conftest.er1 >&5 |
| 1693 | mv -f conftest.er1 conftest.err |
| 1694 | fi |
| 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1696 | test $ac_status = 0; } && { |
| 1697 | test -z "$ac_c_werror_flag" || |
| 1698 | test ! -s conftest.err |
| 1699 | } && test -s conftest$ac_exeext && { |
| 1700 | test "$cross_compiling" = yes || |
| 1701 | $as_test_x conftest$ac_exeext |
| 1702 | }; then : |
| 1703 | ac_retval=0 |
| 1704 | else |
| 1705 | $as_echo "$as_me: failed program was:" >&5 |
| 1706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1707 | |
| 1708 | ac_retval=1 |
| 1709 | fi |
| 1710 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1711 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1712 | # interfere with the next link command; also delete a directory that is |
| 1713 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1714 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1715 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1716 | return $ac_retval |
| 1717 | |
| 1718 | } # ac_fn_c_try_link |
| 1719 | |
| 1720 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1721 | # ---------------------------------- |
| 1722 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1723 | ac_fn_c_check_func () |
| 1724 | { |
| 1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1727 | $as_echo_n "checking for $2... " >&6; } |
| 1728 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1729 | $as_echo_n "(cached) " >&6 |
| 1730 | else |
| 1731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1732 | /* end confdefs.h. */ |
| 1733 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1735 | #define $2 innocuous_$2 |
| 1736 | |
| 1737 | /* System header to define __stub macros and hopefully few prototypes, |
| 1738 | which can conflict with char $2 (); below. |
| 1739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1740 | <limits.h> exists even on freestanding compilers. */ |
| 1741 | |
| 1742 | #ifdef __STDC__ |
| 1743 | # include <limits.h> |
| 1744 | #else |
| 1745 | # include <assert.h> |
| 1746 | #endif |
| 1747 | |
| 1748 | #undef $2 |
| 1749 | |
| 1750 | /* Override any GCC internal prototype to avoid an error. |
| 1751 | Use char because int might match the return type of a GCC |
| 1752 | builtin and then its argument prototype would still apply. */ |
| 1753 | #ifdef __cplusplus |
| 1754 | extern "C" |
| 1755 | #endif |
| 1756 | char $2 (); |
| 1757 | /* The GNU C library defines this for functions which it implements |
| 1758 | to always fail with ENOSYS. Some functions are actually named |
| 1759 | something starting with __ and the normal name is an alias. */ |
| 1760 | #if defined __stub_$2 || defined __stub___$2 |
| 1761 | choke me |
| 1762 | #endif |
| 1763 | |
| 1764 | int |
| 1765 | main () |
| 1766 | { |
| 1767 | return $2 (); |
| 1768 | ; |
| 1769 | return 0; |
| 1770 | } |
| 1771 | _ACEOF |
| 1772 | if ac_fn_c_try_link "$LINENO"; then : |
| 1773 | eval "$3=yes" |
| 1774 | else |
| 1775 | eval "$3=no" |
| 1776 | fi |
| 1777 | rm -f core conftest.err conftest.$ac_objext \ |
| 1778 | conftest$ac_exeext conftest.$ac_ext |
| 1779 | fi |
| 1780 | eval ac_res=\$$3 |
| 1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1782 | $as_echo "$ac_res" >&6; } |
| 1783 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1784 | |
| 1785 | } # ac_fn_c_check_func |
| 1786 | |
| 1787 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 1788 | # ------------------------------------ |
| 1789 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 1790 | ac_fn_c_check_decl () |
| 1791 | { |
| 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1793 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1794 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1796 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1797 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1798 | $as_echo_n "(cached) " >&6 |
| 1799 | else |
| 1800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1801 | /* end confdefs.h. */ |
| 1802 | $4 |
| 1803 | int |
| 1804 | main () |
| 1805 | { |
| 1806 | #ifndef $as_decl_name |
| 1807 | #ifdef __cplusplus |
| 1808 | (void) $as_decl_use; |
| 1809 | #else |
| 1810 | (void) $as_decl_name; |
| 1811 | #endif |
| 1812 | #endif |
| 1813 | |
| 1814 | ; |
| 1815 | return 0; |
| 1816 | } |
| 1817 | _ACEOF |
| 1818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1819 | eval "$3=yes" |
| 1820 | else |
| 1821 | eval "$3=no" |
| 1822 | fi |
| 1823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1824 | fi |
| 1825 | eval ac_res=\$$3 |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1827 | $as_echo "$ac_res" >&6; } |
| 1828 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1829 | |
| 1830 | } # ac_fn_c_check_decl |
| 1831 | |
| 1832 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1833 | # ------------------------------------------- |
| 1834 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1835 | # variable VAR accordingly. |
| 1836 | ac_fn_c_check_type () |
| 1837 | { |
| 1838 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1840 | $as_echo_n "checking for $2... " >&6; } |
| 1841 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1842 | $as_echo_n "(cached) " >&6 |
| 1843 | else |
| 1844 | eval "$3=no" |
| 1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1846 | /* end confdefs.h. */ |
| 1847 | $4 |
| 1848 | int |
| 1849 | main () |
| 1850 | { |
| 1851 | if (sizeof ($2)) |
| 1852 | return 0; |
| 1853 | ; |
| 1854 | return 0; |
| 1855 | } |
| 1856 | _ACEOF |
| 1857 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1859 | /* end confdefs.h. */ |
| 1860 | $4 |
| 1861 | int |
| 1862 | main () |
| 1863 | { |
| 1864 | if (sizeof (($2))) |
| 1865 | return 0; |
| 1866 | ; |
| 1867 | return 0; |
| 1868 | } |
| 1869 | _ACEOF |
| 1870 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1871 | |
| 1872 | else |
| 1873 | eval "$3=yes" |
| 1874 | fi |
| 1875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1876 | fi |
| 1877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1878 | fi |
| 1879 | eval ac_res=\$$3 |
| 1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1881 | $as_echo "$ac_res" >&6; } |
| 1882 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1883 | |
| 1884 | } # ac_fn_c_check_type |
| 1885 | cat >config.log <<_ACEOF |
| 1886 | This file contains any messages produced by compilers while |
| 1887 | running configure, to aid debugging if configure makes a mistake. |
| 1888 | |
| 1889 | It was created by $as_me, which was |
| 1890 | generated by GNU Autoconf 2.64. Invocation command line was |
| 1891 | |
| 1892 | $ $0 $@ |
| 1893 | |
| 1894 | _ACEOF |
| 1895 | exec 5>>config.log |
| 1896 | { |
| 1897 | cat <<_ASUNAME |
| 1898 | ## --------- ## |
| 1899 | ## Platform. ## |
| 1900 | ## --------- ## |
| 1901 | |
| 1902 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1903 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1904 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1905 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1906 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1907 | |
| 1908 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1909 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1910 | |
| 1911 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1912 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1913 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1914 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1915 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1916 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1917 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1918 | |
| 1919 | _ASUNAME |
| 1920 | |
| 1921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1922 | for as_dir in $PATH |
| 1923 | do |
| 1924 | IFS=$as_save_IFS |
| 1925 | test -z "$as_dir" && as_dir=. |
| 1926 | $as_echo "PATH: $as_dir" |
| 1927 | done |
| 1928 | IFS=$as_save_IFS |
| 1929 | |
| 1930 | } >&5 |
| 1931 | |
| 1932 | cat >&5 <<_ACEOF |
| 1933 | |
| 1934 | |
| 1935 | ## ----------- ## |
| 1936 | ## Core tests. ## |
| 1937 | ## ----------- ## |
| 1938 | |
| 1939 | _ACEOF |
| 1940 | |
| 1941 | |
| 1942 | # Keep a trace of the command line. |
| 1943 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1944 | # Strip out --silent because we don't want to record it for future runs. |
| 1945 | # Also quote any args containing shell meta-characters. |
| 1946 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1947 | ac_configure_args= |
| 1948 | ac_configure_args0= |
| 1949 | ac_configure_args1= |
| 1950 | ac_must_keep_next=false |
| 1951 | for ac_pass in 1 2 |
| 1952 | do |
| 1953 | for ac_arg |
| 1954 | do |
| 1955 | case $ac_arg in |
| 1956 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1957 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1958 | | -silent | --silent | --silen | --sile | --sil) |
| 1959 | continue ;; |
| 1960 | *\'*) |
| 1961 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1962 | esac |
| 1963 | case $ac_pass in |
| 1964 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1965 | 2) |
| 1966 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1967 | if test $ac_must_keep_next = true; then |
| 1968 | ac_must_keep_next=false # Got value, back to normal. |
| 1969 | else |
| 1970 | case $ac_arg in |
| 1971 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1972 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1973 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1974 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1975 | case "$ac_configure_args0 " in |
| 1976 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1977 | esac |
| 1978 | ;; |
| 1979 | -* ) ac_must_keep_next=true ;; |
| 1980 | esac |
| 1981 | fi |
| 1982 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1983 | ;; |
| 1984 | esac |
| 1985 | done |
| 1986 | done |
| 1987 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1988 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1989 | |
| 1990 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1991 | # config.log. We remove comments because anyway the quotes in there |
| 1992 | # would cause problems or look ugly. |
| 1993 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1994 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1995 | trap 'exit_status=$? |
| 1996 | # Save into config.log some information that might help in debugging. |
| 1997 | { |
| 1998 | echo |
| 1999 | |
| 2000 | cat <<\_ASBOX |
| 2001 | ## ---------------- ## |
| 2002 | ## Cache variables. ## |
| 2003 | ## ---------------- ## |
| 2004 | _ASBOX |
| 2005 | echo |
| 2006 | # The following way of writing the cache mishandles newlines in values, |
| 2007 | ( |
| 2008 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2009 | eval ac_val=\$$ac_var |
| 2010 | case $ac_val in #( |
| 2011 | *${as_nl}*) |
| 2012 | case $ac_var in #( |
| 2013 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2014 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2015 | esac |
| 2016 | case $ac_var in #( |
| 2017 | _ | IFS | as_nl) ;; #( |
| 2018 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2019 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2020 | esac ;; |
| 2021 | esac |
| 2022 | done |
| 2023 | (set) 2>&1 | |
| 2024 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2025 | *${as_nl}ac_space=\ *) |
| 2026 | sed -n \ |
| 2027 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2028 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2029 | ;; #( |
| 2030 | *) |
| 2031 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2032 | ;; |
| 2033 | esac | |
| 2034 | sort |
| 2035 | ) |
| 2036 | echo |
| 2037 | |
| 2038 | cat <<\_ASBOX |
| 2039 | ## ----------------- ## |
| 2040 | ## Output variables. ## |
| 2041 | ## ----------------- ## |
| 2042 | _ASBOX |
| 2043 | echo |
| 2044 | for ac_var in $ac_subst_vars |
| 2045 | do |
| 2046 | eval ac_val=\$$ac_var |
| 2047 | case $ac_val in |
| 2048 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2049 | esac |
| 2050 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2051 | done | sort |
| 2052 | echo |
| 2053 | |
| 2054 | if test -n "$ac_subst_files"; then |
| 2055 | cat <<\_ASBOX |
| 2056 | ## ------------------- ## |
| 2057 | ## File substitutions. ## |
| 2058 | ## ------------------- ## |
| 2059 | _ASBOX |
| 2060 | echo |
| 2061 | for ac_var in $ac_subst_files |
| 2062 | do |
| 2063 | eval ac_val=\$$ac_var |
| 2064 | case $ac_val in |
| 2065 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2066 | esac |
| 2067 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2068 | done | sort |
| 2069 | echo |
| 2070 | fi |
| 2071 | |
| 2072 | if test -s confdefs.h; then |
| 2073 | cat <<\_ASBOX |
| 2074 | ## ----------- ## |
| 2075 | ## confdefs.h. ## |
| 2076 | ## ----------- ## |
| 2077 | _ASBOX |
| 2078 | echo |
| 2079 | cat confdefs.h |
| 2080 | echo |
| 2081 | fi |
| 2082 | test "$ac_signal" != 0 && |
| 2083 | $as_echo "$as_me: caught signal $ac_signal" |
| 2084 | $as_echo "$as_me: exit $exit_status" |
| 2085 | } >&5 |
| 2086 | rm -f core *.core core.conftest.* && |
| 2087 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2088 | exit $exit_status |
| 2089 | ' 0 |
| 2090 | for ac_signal in 1 2 13 15; do |
| 2091 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2092 | done |
| 2093 | ac_signal=0 |
| 2094 | |
| 2095 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2096 | rm -f -r conftest* confdefs.h |
| 2097 | |
| 2098 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2099 | |
| 2100 | # Predefined preprocessor variables. |
| 2101 | |
| 2102 | cat >>confdefs.h <<_ACEOF |
| 2103 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2104 | _ACEOF |
| 2105 | |
| 2106 | cat >>confdefs.h <<_ACEOF |
| 2107 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2108 | _ACEOF |
| 2109 | |
| 2110 | cat >>confdefs.h <<_ACEOF |
| 2111 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2112 | _ACEOF |
| 2113 | |
| 2114 | cat >>confdefs.h <<_ACEOF |
| 2115 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2116 | _ACEOF |
| 2117 | |
| 2118 | cat >>confdefs.h <<_ACEOF |
| 2119 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2120 | _ACEOF |
| 2121 | |
| 2122 | cat >>confdefs.h <<_ACEOF |
| 2123 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2124 | _ACEOF |
| 2125 | |
| 2126 | |
| 2127 | # Let the site file select an alternate cache file if it wants to. |
| 2128 | # Prefer an explicitly selected file to automatically selected ones. |
| 2129 | ac_site_file1=NONE |
| 2130 | ac_site_file2=NONE |
| 2131 | if test -n "$CONFIG_SITE"; then |
| 2132 | ac_site_file1=$CONFIG_SITE |
| 2133 | elif test "x$prefix" != xNONE; then |
| 2134 | ac_site_file1=$prefix/share/config.site |
| 2135 | ac_site_file2=$prefix/etc/config.site |
| 2136 | else |
| 2137 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2138 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2139 | fi |
| 2140 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2141 | do |
| 2142 | test "x$ac_site_file" = xNONE && continue |
| 2143 | if test -r "$ac_site_file"; then |
| 2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2145 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2146 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2147 | . "$ac_site_file" |
| 2148 | fi |
| 2149 | done |
| 2150 | |
| 2151 | if test -r "$cache_file"; then |
| 2152 | # Some versions of bash will fail to source /dev/null (special |
| 2153 | # files actually), so we avoid doing that. |
| 2154 | if test -f "$cache_file"; then |
| 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2156 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2157 | case $cache_file in |
| 2158 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2159 | *) . "./$cache_file";; |
| 2160 | esac |
| 2161 | fi |
| 2162 | else |
| 2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2164 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2165 | >$cache_file |
| 2166 | fi |
| 2167 | |
| 2168 | # Check that the precious variables saved in the cache have kept the same |
| 2169 | # value. |
| 2170 | ac_cache_corrupted=false |
| 2171 | for ac_var in $ac_precious_vars; do |
| 2172 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2173 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2174 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2175 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2176 | case $ac_old_set,$ac_new_set in |
| 2177 | set,) |
| 2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2179 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2180 | ac_cache_corrupted=: ;; |
| 2181 | ,set) |
| 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2183 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2184 | ac_cache_corrupted=: ;; |
| 2185 | ,);; |
| 2186 | *) |
| 2187 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2188 | # differences in whitespace do not lead to failure. |
| 2189 | ac_old_val_w=`echo x $ac_old_val` |
| 2190 | ac_new_val_w=`echo x $ac_new_val` |
| 2191 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2193 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2194 | ac_cache_corrupted=: |
| 2195 | else |
| 2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2197 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2198 | eval $ac_var=\$ac_old_val |
| 2199 | fi |
| 2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2201 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2203 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2204 | fi;; |
| 2205 | esac |
| 2206 | # Pass precious variables to config.status. |
| 2207 | if test "$ac_new_set" = set; then |
| 2208 | case $ac_new_val in |
| 2209 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2210 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2211 | esac |
| 2212 | case " $ac_configure_args " in |
| 2213 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2214 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2215 | esac |
| 2216 | fi |
| 2217 | done |
| 2218 | if $ac_cache_corrupted; then |
| 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2220 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2222 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2223 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2224 | fi |
| 2225 | ## -------------------- ## |
| 2226 | ## Main body of script. ## |
| 2227 | ## -------------------- ## |
| 2228 | |
| 2229 | ac_ext=c |
| 2230 | ac_cpp='$CPP $CPPFLAGS' |
| 2231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2234 | |
| 2235 | |
| 2236 | |
| 2237 | |
| 2238 | |
| 2239 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 2240 | |
| 2241 | |
| 2242 | |
| 2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2244 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2245 | # Check whether --enable-maintainer-mode was given. |
| 2246 | if test "${enable_maintainer_mode+set}" = set; then : |
| 2247 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2248 | else |
| 2249 | USE_MAINTAINER_MODE=no |
| 2250 | fi |
| 2251 | |
| 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2253 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2254 | if test $USE_MAINTAINER_MODE = yes; then |
| 2255 | MAINTAINER_MODE_TRUE= |
| 2256 | MAINTAINER_MODE_FALSE='#' |
| 2257 | else |
| 2258 | MAINTAINER_MODE_TRUE='#' |
| 2259 | MAINTAINER_MODE_FALSE= |
| 2260 | fi |
| 2261 | |
| 2262 | MAINT=$MAINTAINER_MODE_TRUE |
| 2263 | |
| 2264 | |
| 2265 | |
| 2266 | ac_ext=c |
| 2267 | ac_cpp='$CPP $CPPFLAGS' |
| 2268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2271 | if test -n "$ac_tool_prefix"; then |
| 2272 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2273 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2275 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2276 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2277 | $as_echo_n "(cached) " >&6 |
| 2278 | else |
| 2279 | if test -n "$CC"; then |
| 2280 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2281 | else |
| 2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2283 | for as_dir in $PATH |
| 2284 | do |
| 2285 | IFS=$as_save_IFS |
| 2286 | test -z "$as_dir" && as_dir=. |
| 2287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2289 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2291 | break 2 |
| 2292 | fi |
| 2293 | done |
| 2294 | done |
| 2295 | IFS=$as_save_IFS |
| 2296 | |
| 2297 | fi |
| 2298 | fi |
| 2299 | CC=$ac_cv_prog_CC |
| 2300 | if test -n "$CC"; then |
| 2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2302 | $as_echo "$CC" >&6; } |
| 2303 | else |
| 2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2305 | $as_echo "no" >&6; } |
| 2306 | fi |
| 2307 | |
| 2308 | |
| 2309 | fi |
| 2310 | if test -z "$ac_cv_prog_CC"; then |
| 2311 | ac_ct_CC=$CC |
| 2312 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2313 | set dummy gcc; ac_word=$2 |
| 2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2315 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2316 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2317 | $as_echo_n "(cached) " >&6 |
| 2318 | else |
| 2319 | if test -n "$ac_ct_CC"; then |
| 2320 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2321 | else |
| 2322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2323 | for as_dir in $PATH |
| 2324 | do |
| 2325 | IFS=$as_save_IFS |
| 2326 | test -z "$as_dir" && as_dir=. |
| 2327 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2329 | ac_cv_prog_ac_ct_CC="gcc" |
| 2330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2331 | break 2 |
| 2332 | fi |
| 2333 | done |
| 2334 | done |
| 2335 | IFS=$as_save_IFS |
| 2336 | |
| 2337 | fi |
| 2338 | fi |
| 2339 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2340 | if test -n "$ac_ct_CC"; then |
| 2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2342 | $as_echo "$ac_ct_CC" >&6; } |
| 2343 | else |
| 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2345 | $as_echo "no" >&6; } |
| 2346 | fi |
| 2347 | |
| 2348 | if test "x$ac_ct_CC" = x; then |
| 2349 | CC="" |
| 2350 | else |
| 2351 | case $cross_compiling:$ac_tool_warned in |
| 2352 | yes:) |
| 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2355 | ac_tool_warned=yes ;; |
| 2356 | esac |
| 2357 | CC=$ac_ct_CC |
| 2358 | fi |
| 2359 | else |
| 2360 | CC="$ac_cv_prog_CC" |
| 2361 | fi |
| 2362 | |
| 2363 | if test -z "$CC"; then |
| 2364 | if test -n "$ac_tool_prefix"; then |
| 2365 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2366 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2368 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2369 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2370 | $as_echo_n "(cached) " >&6 |
| 2371 | else |
| 2372 | if test -n "$CC"; then |
| 2373 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2374 | else |
| 2375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2376 | for as_dir in $PATH |
| 2377 | do |
| 2378 | IFS=$as_save_IFS |
| 2379 | test -z "$as_dir" && as_dir=. |
| 2380 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2382 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2384 | break 2 |
| 2385 | fi |
| 2386 | done |
| 2387 | done |
| 2388 | IFS=$as_save_IFS |
| 2389 | |
| 2390 | fi |
| 2391 | fi |
| 2392 | CC=$ac_cv_prog_CC |
| 2393 | if test -n "$CC"; then |
| 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2395 | $as_echo "$CC" >&6; } |
| 2396 | else |
| 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2398 | $as_echo "no" >&6; } |
| 2399 | fi |
| 2400 | |
| 2401 | |
| 2402 | fi |
| 2403 | fi |
| 2404 | if test -z "$CC"; then |
| 2405 | # Extract the first word of "cc", so it can be a program name with args. |
| 2406 | set dummy cc; ac_word=$2 |
| 2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2408 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2409 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2410 | $as_echo_n "(cached) " >&6 |
| 2411 | else |
| 2412 | if test -n "$CC"; then |
| 2413 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2414 | else |
| 2415 | ac_prog_rejected=no |
| 2416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2417 | for as_dir in $PATH |
| 2418 | do |
| 2419 | IFS=$as_save_IFS |
| 2420 | test -z "$as_dir" && as_dir=. |
| 2421 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2423 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2424 | ac_prog_rejected=yes |
| 2425 | continue |
| 2426 | fi |
| 2427 | ac_cv_prog_CC="cc" |
| 2428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2429 | break 2 |
| 2430 | fi |
| 2431 | done |
| 2432 | done |
| 2433 | IFS=$as_save_IFS |
| 2434 | |
| 2435 | if test $ac_prog_rejected = yes; then |
| 2436 | # We found a bogon in the path, so make sure we never use it. |
| 2437 | set dummy $ac_cv_prog_CC |
| 2438 | shift |
| 2439 | if test $# != 0; then |
| 2440 | # We chose a different compiler from the bogus one. |
| 2441 | # However, it has the same basename, so the bogon will be chosen |
| 2442 | # first if we set CC to just the basename; use the full file name. |
| 2443 | shift |
| 2444 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2445 | fi |
| 2446 | fi |
| 2447 | fi |
| 2448 | fi |
| 2449 | CC=$ac_cv_prog_CC |
| 2450 | if test -n "$CC"; then |
| 2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2452 | $as_echo "$CC" >&6; } |
| 2453 | else |
| 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2455 | $as_echo "no" >&6; } |
| 2456 | fi |
| 2457 | |
| 2458 | |
| 2459 | fi |
| 2460 | if test -z "$CC"; then |
| 2461 | if test -n "$ac_tool_prefix"; then |
| 2462 | for ac_prog in cl.exe |
| 2463 | do |
| 2464 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2465 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2467 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2468 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2469 | $as_echo_n "(cached) " >&6 |
| 2470 | else |
| 2471 | if test -n "$CC"; then |
| 2472 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2473 | else |
| 2474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2475 | for as_dir in $PATH |
| 2476 | do |
| 2477 | IFS=$as_save_IFS |
| 2478 | test -z "$as_dir" && as_dir=. |
| 2479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2481 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2483 | break 2 |
| 2484 | fi |
| 2485 | done |
| 2486 | done |
| 2487 | IFS=$as_save_IFS |
| 2488 | |
| 2489 | fi |
| 2490 | fi |
| 2491 | CC=$ac_cv_prog_CC |
| 2492 | if test -n "$CC"; then |
| 2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2494 | $as_echo "$CC" >&6; } |
| 2495 | else |
| 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2497 | $as_echo "no" >&6; } |
| 2498 | fi |
| 2499 | |
| 2500 | |
| 2501 | test -n "$CC" && break |
| 2502 | done |
| 2503 | fi |
| 2504 | if test -z "$CC"; then |
| 2505 | ac_ct_CC=$CC |
| 2506 | for ac_prog in cl.exe |
| 2507 | do |
| 2508 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2509 | set dummy $ac_prog; ac_word=$2 |
| 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2511 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2512 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2513 | $as_echo_n "(cached) " >&6 |
| 2514 | else |
| 2515 | if test -n "$ac_ct_CC"; then |
| 2516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2517 | else |
| 2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2519 | for as_dir in $PATH |
| 2520 | do |
| 2521 | IFS=$as_save_IFS |
| 2522 | test -z "$as_dir" && as_dir=. |
| 2523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2525 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2527 | break 2 |
| 2528 | fi |
| 2529 | done |
| 2530 | done |
| 2531 | IFS=$as_save_IFS |
| 2532 | |
| 2533 | fi |
| 2534 | fi |
| 2535 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2536 | if test -n "$ac_ct_CC"; then |
| 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2538 | $as_echo "$ac_ct_CC" >&6; } |
| 2539 | else |
| 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2541 | $as_echo "no" >&6; } |
| 2542 | fi |
| 2543 | |
| 2544 | |
| 2545 | test -n "$ac_ct_CC" && break |
| 2546 | done |
| 2547 | |
| 2548 | if test "x$ac_ct_CC" = x; then |
| 2549 | CC="" |
| 2550 | else |
| 2551 | case $cross_compiling:$ac_tool_warned in |
| 2552 | yes:) |
| 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2554 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2555 | ac_tool_warned=yes ;; |
| 2556 | esac |
| 2557 | CC=$ac_ct_CC |
| 2558 | fi |
| 2559 | fi |
| 2560 | |
| 2561 | fi |
| 2562 | |
| 2563 | |
| 2564 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2566 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2567 | See \`config.log' for more details." "$LINENO" 5; } |
| 2568 | |
| 2569 | # Provide some information about the compiler. |
| 2570 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2571 | set X $ac_compile |
| 2572 | ac_compiler=$2 |
| 2573 | for ac_option in --version -v -V -qversion; do |
| 2574 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2575 | case "(($ac_try" in |
| 2576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2577 | *) ac_try_echo=$ac_try;; |
| 2578 | esac |
| 2579 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2580 | $as_echo "$ac_try_echo"; } >&5 |
| 2581 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2582 | ac_status=$? |
| 2583 | if test -s conftest.err; then |
| 2584 | sed '10a\ |
| 2585 | ... rest of stderr output deleted ... |
| 2586 | 10q' conftest.err >conftest.er1 |
| 2587 | cat conftest.er1 >&5 |
| 2588 | rm -f conftest.er1 conftest.err |
| 2589 | fi |
| 2590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2591 | test $ac_status = 0; } |
| 2592 | done |
| 2593 | |
| 2594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2595 | /* end confdefs.h. */ |
| 2596 | |
| 2597 | int |
| 2598 | main () |
| 2599 | { |
| 2600 | |
| 2601 | ; |
| 2602 | return 0; |
| 2603 | } |
| 2604 | _ACEOF |
| 2605 | ac_clean_files_save=$ac_clean_files |
| 2606 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
| 2607 | # Try to create an executable without -o first, disregard a.out. |
| 2608 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2609 | # of exeext. |
| 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2611 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2612 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2613 | |
| 2614 | # The possible output files: |
| 2615 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2616 | |
| 2617 | ac_rmfiles= |
| 2618 | for ac_file in $ac_files |
| 2619 | do |
| 2620 | case $ac_file in |
| 2621 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2622 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2623 | esac |
| 2624 | done |
| 2625 | rm -f $ac_rmfiles |
| 2626 | |
| 2627 | if { { ac_try="$ac_link_default" |
| 2628 | case "(($ac_try" in |
| 2629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2630 | *) ac_try_echo=$ac_try;; |
| 2631 | esac |
| 2632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2633 | $as_echo "$ac_try_echo"; } >&5 |
| 2634 | (eval "$ac_link_default") 2>&5 |
| 2635 | ac_status=$? |
| 2636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2637 | test $ac_status = 0; }; then : |
| 2638 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2639 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2640 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2641 | # so that the user can short-circuit this test for compilers unknown to |
| 2642 | # Autoconf. |
| 2643 | for ac_file in $ac_files '' |
| 2644 | do |
| 2645 | test -f "$ac_file" || continue |
| 2646 | case $ac_file in |
| 2647 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2648 | ;; |
| 2649 | [ab].out ) |
| 2650 | # We found the default executable, but exeext='' is most |
| 2651 | # certainly right. |
| 2652 | break;; |
| 2653 | *.* ) |
| 2654 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2655 | then :; else |
| 2656 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2657 | fi |
| 2658 | # We set ac_cv_exeext here because the later test for it is not |
| 2659 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2660 | # argument, so we may need to know it at that point already. |
| 2661 | # Even if this section looks crufty: it has the advantage of |
| 2662 | # actually working. |
| 2663 | break;; |
| 2664 | * ) |
| 2665 | break;; |
| 2666 | esac |
| 2667 | done |
| 2668 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2669 | |
| 2670 | else |
| 2671 | ac_file='' |
| 2672 | fi |
| 2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2674 | $as_echo "$ac_file" >&6; } |
| 2675 | if test -z "$ac_file"; then : |
| 2676 | $as_echo "$as_me: failed program was:" >&5 |
| 2677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2678 | |
| 2679 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2680 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2681 | { as_fn_set_status 77 |
| 2682 | as_fn_error "C compiler cannot create executables |
| 2683 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 2684 | fi |
| 2685 | ac_exeext=$ac_cv_exeext |
| 2686 | |
| 2687 | # Check that the compiler produces executables we can run. If not, either |
| 2688 | # the compiler is broken, or we cross compile. |
| 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2690 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2691 | # If not cross compiling, check that we can run a simple program. |
| 2692 | if test "$cross_compiling" != yes; then |
| 2693 | if { ac_try='./$ac_file' |
| 2694 | { { case "(($ac_try" in |
| 2695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2696 | *) ac_try_echo=$ac_try;; |
| 2697 | esac |
| 2698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2699 | $as_echo "$ac_try_echo"; } >&5 |
| 2700 | (eval "$ac_try") 2>&5 |
| 2701 | ac_status=$? |
| 2702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2703 | test $ac_status = 0; }; }; then |
| 2704 | cross_compiling=no |
| 2705 | else |
| 2706 | if test "$cross_compiling" = maybe; then |
| 2707 | cross_compiling=yes |
| 2708 | else |
| 2709 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2711 | as_fn_error "cannot run C compiled programs. |
| 2712 | If you meant to cross compile, use \`--host'. |
| 2713 | See \`config.log' for more details." "$LINENO" 5; } |
| 2714 | fi |
| 2715 | fi |
| 2716 | fi |
| 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2718 | $as_echo "yes" >&6; } |
| 2719 | |
| 2720 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
| 2721 | ac_clean_files=$ac_clean_files_save |
| 2722 | # Check that the compiler produces executables we can run. If not, either |
| 2723 | # the compiler is broken, or we cross compile. |
| 2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2725 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2727 | $as_echo "$cross_compiling" >&6; } |
| 2728 | |
| 2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2730 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2731 | if { { ac_try="$ac_link" |
| 2732 | case "(($ac_try" in |
| 2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2734 | *) ac_try_echo=$ac_try;; |
| 2735 | esac |
| 2736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2737 | $as_echo "$ac_try_echo"; } >&5 |
| 2738 | (eval "$ac_link") 2>&5 |
| 2739 | ac_status=$? |
| 2740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2741 | test $ac_status = 0; }; then : |
| 2742 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2743 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2744 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2745 | # `rm'. |
| 2746 | for ac_file in conftest.exe conftest conftest.*; do |
| 2747 | test -f "$ac_file" || continue |
| 2748 | case $ac_file in |
| 2749 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2750 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2751 | break;; |
| 2752 | * ) break;; |
| 2753 | esac |
| 2754 | done |
| 2755 | else |
| 2756 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2757 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2758 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2759 | See \`config.log' for more details." "$LINENO" 5; } |
| 2760 | fi |
| 2761 | rm -f conftest$ac_cv_exeext |
| 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2763 | $as_echo "$ac_cv_exeext" >&6; } |
| 2764 | |
| 2765 | rm -f conftest.$ac_ext |
| 2766 | EXEEXT=$ac_cv_exeext |
| 2767 | ac_exeext=$EXEEXT |
| 2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2769 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2770 | if test "${ac_cv_objext+set}" = set; then : |
| 2771 | $as_echo_n "(cached) " >&6 |
| 2772 | else |
| 2773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2774 | /* end confdefs.h. */ |
| 2775 | |
| 2776 | int |
| 2777 | main () |
| 2778 | { |
| 2779 | |
| 2780 | ; |
| 2781 | return 0; |
| 2782 | } |
| 2783 | _ACEOF |
| 2784 | rm -f conftest.o conftest.obj |
| 2785 | if { { ac_try="$ac_compile" |
| 2786 | case "(($ac_try" in |
| 2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2788 | *) ac_try_echo=$ac_try;; |
| 2789 | esac |
| 2790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2791 | $as_echo "$ac_try_echo"; } >&5 |
| 2792 | (eval "$ac_compile") 2>&5 |
| 2793 | ac_status=$? |
| 2794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2795 | test $ac_status = 0; }; then : |
| 2796 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2797 | test -f "$ac_file" || continue; |
| 2798 | case $ac_file in |
| 2799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2800 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2801 | break;; |
| 2802 | esac |
| 2803 | done |
| 2804 | else |
| 2805 | $as_echo "$as_me: failed program was:" >&5 |
| 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2807 | |
| 2808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2810 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2811 | See \`config.log' for more details." "$LINENO" 5; } |
| 2812 | fi |
| 2813 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2814 | fi |
| 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2816 | $as_echo "$ac_cv_objext" >&6; } |
| 2817 | OBJEXT=$ac_cv_objext |
| 2818 | ac_objext=$OBJEXT |
| 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2820 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2821 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2822 | $as_echo_n "(cached) " >&6 |
| 2823 | else |
| 2824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2825 | /* end confdefs.h. */ |
| 2826 | |
| 2827 | int |
| 2828 | main () |
| 2829 | { |
| 2830 | #ifndef __GNUC__ |
| 2831 | choke me |
| 2832 | #endif |
| 2833 | |
| 2834 | ; |
| 2835 | return 0; |
| 2836 | } |
| 2837 | _ACEOF |
| 2838 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2839 | ac_compiler_gnu=yes |
| 2840 | else |
| 2841 | ac_compiler_gnu=no |
| 2842 | fi |
| 2843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2844 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2845 | |
| 2846 | fi |
| 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2848 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2849 | if test $ac_compiler_gnu = yes; then |
| 2850 | GCC=yes |
| 2851 | else |
| 2852 | GCC= |
| 2853 | fi |
| 2854 | ac_test_CFLAGS=${CFLAGS+set} |
| 2855 | ac_save_CFLAGS=$CFLAGS |
| 2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2857 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2858 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 2859 | $as_echo_n "(cached) " >&6 |
| 2860 | else |
| 2861 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2862 | ac_c_werror_flag=yes |
| 2863 | ac_cv_prog_cc_g=no |
| 2864 | CFLAGS="-g" |
| 2865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2866 | /* end confdefs.h. */ |
| 2867 | |
| 2868 | int |
| 2869 | main () |
| 2870 | { |
| 2871 | |
| 2872 | ; |
| 2873 | return 0; |
| 2874 | } |
| 2875 | _ACEOF |
| 2876 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2877 | ac_cv_prog_cc_g=yes |
| 2878 | else |
| 2879 | CFLAGS="" |
| 2880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2881 | /* end confdefs.h. */ |
| 2882 | |
| 2883 | int |
| 2884 | main () |
| 2885 | { |
| 2886 | |
| 2887 | ; |
| 2888 | return 0; |
| 2889 | } |
| 2890 | _ACEOF |
| 2891 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2892 | |
| 2893 | else |
| 2894 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2895 | CFLAGS="-g" |
| 2896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2897 | /* end confdefs.h. */ |
| 2898 | |
| 2899 | int |
| 2900 | main () |
| 2901 | { |
| 2902 | |
| 2903 | ; |
| 2904 | return 0; |
| 2905 | } |
| 2906 | _ACEOF |
| 2907 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2908 | ac_cv_prog_cc_g=yes |
| 2909 | fi |
| 2910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2911 | fi |
| 2912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2913 | fi |
| 2914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2915 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2916 | fi |
| 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2918 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 2919 | if test "$ac_test_CFLAGS" = set; then |
| 2920 | CFLAGS=$ac_save_CFLAGS |
| 2921 | elif test $ac_cv_prog_cc_g = yes; then |
| 2922 | if test "$GCC" = yes; then |
| 2923 | CFLAGS="-g -O2" |
| 2924 | else |
| 2925 | CFLAGS="-g" |
| 2926 | fi |
| 2927 | else |
| 2928 | if test "$GCC" = yes; then |
| 2929 | CFLAGS="-O2" |
| 2930 | else |
| 2931 | CFLAGS= |
| 2932 | fi |
| 2933 | fi |
| 2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 2935 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2936 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 2937 | $as_echo_n "(cached) " >&6 |
| 2938 | else |
| 2939 | ac_cv_prog_cc_c89=no |
| 2940 | ac_save_CC=$CC |
| 2941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2942 | /* end confdefs.h. */ |
| 2943 | #include <stdarg.h> |
| 2944 | #include <stdio.h> |
| 2945 | #include <sys/types.h> |
| 2946 | #include <sys/stat.h> |
| 2947 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2948 | struct buf { int x; }; |
| 2949 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2950 | static char *e (p, i) |
| 2951 | char **p; |
| 2952 | int i; |
| 2953 | { |
| 2954 | return p[i]; |
| 2955 | } |
| 2956 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2957 | { |
| 2958 | char *s; |
| 2959 | va_list v; |
| 2960 | va_start (v,p); |
| 2961 | s = g (p, va_arg (v,int)); |
| 2962 | va_end (v); |
| 2963 | return s; |
| 2964 | } |
| 2965 | |
| 2966 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2967 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2968 | These don't provoke an error unfortunately, instead are silently treated |
| 2969 | as 'x'. The following induces an error, until -std is added to get |
| 2970 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2971 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2972 | that's true only with -std. */ |
| 2973 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2974 | |
| 2975 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2976 | inside strings and character constants. */ |
| 2977 | #define FOO(x) 'x' |
| 2978 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2979 | |
| 2980 | int test (int i, double x); |
| 2981 | struct s1 {int (*f) (int a);}; |
| 2982 | struct s2 {int (*f) (double a);}; |
| 2983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2984 | int argc; |
| 2985 | char **argv; |
| 2986 | int |
| 2987 | main () |
| 2988 | { |
| 2989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2990 | ; |
| 2991 | return 0; |
| 2992 | } |
| 2993 | _ACEOF |
| 2994 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2995 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2996 | do |
| 2997 | CC="$ac_save_CC $ac_arg" |
| 2998 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2999 | ac_cv_prog_cc_c89=$ac_arg |
| 3000 | fi |
| 3001 | rm -f core conftest.err conftest.$ac_objext |
| 3002 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3003 | done |
| 3004 | rm -f conftest.$ac_ext |
| 3005 | CC=$ac_save_CC |
| 3006 | |
| 3007 | fi |
| 3008 | # AC_CACHE_VAL |
| 3009 | case "x$ac_cv_prog_cc_c89" in |
| 3010 | x) |
| 3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3012 | $as_echo "none needed" >&6; } ;; |
| 3013 | xno) |
| 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3015 | $as_echo "unsupported" >&6; } ;; |
| 3016 | *) |
| 3017 | CC="$CC $ac_cv_prog_cc_c89" |
| 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3019 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3020 | esac |
| 3021 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3022 | |
| 3023 | fi |
| 3024 | |
| 3025 | ac_ext=c |
| 3026 | ac_cpp='$CPP $CPPFLAGS' |
| 3027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3030 | |
| 3031 | |
| 3032 | ac_ext=c |
| 3033 | ac_cpp='$CPP $CPPFLAGS' |
| 3034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3038 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3039 | # On Suns, sometimes $CPP names a directory. |
| 3040 | if test -n "$CPP" && test -d "$CPP"; then |
| 3041 | CPP= |
| 3042 | fi |
| 3043 | if test -z "$CPP"; then |
| 3044 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3045 | $as_echo_n "(cached) " >&6 |
| 3046 | else |
| 3047 | # Double quotes because CPP needs to be expanded |
| 3048 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3049 | do |
| 3050 | ac_preproc_ok=false |
| 3051 | for ac_c_preproc_warn_flag in '' yes |
| 3052 | do |
| 3053 | # Use a header file that comes with gcc, so configuring glibc |
| 3054 | # with a fresh cross-compiler works. |
| 3055 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3056 | # <limits.h> exists even on freestanding compilers. |
| 3057 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3058 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3060 | /* end confdefs.h. */ |
| 3061 | #ifdef __STDC__ |
| 3062 | # include <limits.h> |
| 3063 | #else |
| 3064 | # include <assert.h> |
| 3065 | #endif |
| 3066 | Syntax error |
| 3067 | _ACEOF |
| 3068 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3069 | |
| 3070 | else |
| 3071 | # Broken: fails on valid input. |
| 3072 | continue |
| 3073 | fi |
| 3074 | rm -f conftest.err conftest.$ac_ext |
| 3075 | |
| 3076 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3077 | # can be detected and how. |
| 3078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3079 | /* end confdefs.h. */ |
| 3080 | #include <ac_nonexistent.h> |
| 3081 | _ACEOF |
| 3082 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3083 | # Broken: success on invalid input. |
| 3084 | continue |
| 3085 | else |
| 3086 | # Passes both tests. |
| 3087 | ac_preproc_ok=: |
| 3088 | break |
| 3089 | fi |
| 3090 | rm -f conftest.err conftest.$ac_ext |
| 3091 | |
| 3092 | done |
| 3093 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3094 | rm -f conftest.err conftest.$ac_ext |
| 3095 | if $ac_preproc_ok; then : |
| 3096 | break |
| 3097 | fi |
| 3098 | |
| 3099 | done |
| 3100 | ac_cv_prog_CPP=$CPP |
| 3101 | |
| 3102 | fi |
| 3103 | CPP=$ac_cv_prog_CPP |
| 3104 | else |
| 3105 | ac_cv_prog_CPP=$CPP |
| 3106 | fi |
| 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3108 | $as_echo "$CPP" >&6; } |
| 3109 | ac_preproc_ok=false |
| 3110 | for ac_c_preproc_warn_flag in '' yes |
| 3111 | do |
| 3112 | # Use a header file that comes with gcc, so configuring glibc |
| 3113 | # with a fresh cross-compiler works. |
| 3114 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3115 | # <limits.h> exists even on freestanding compilers. |
| 3116 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3117 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3119 | /* end confdefs.h. */ |
| 3120 | #ifdef __STDC__ |
| 3121 | # include <limits.h> |
| 3122 | #else |
| 3123 | # include <assert.h> |
| 3124 | #endif |
| 3125 | Syntax error |
| 3126 | _ACEOF |
| 3127 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3128 | |
| 3129 | else |
| 3130 | # Broken: fails on valid input. |
| 3131 | continue |
| 3132 | fi |
| 3133 | rm -f conftest.err conftest.$ac_ext |
| 3134 | |
| 3135 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3136 | # can be detected and how. |
| 3137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3138 | /* end confdefs.h. */ |
| 3139 | #include <ac_nonexistent.h> |
| 3140 | _ACEOF |
| 3141 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3142 | # Broken: success on invalid input. |
| 3143 | continue |
| 3144 | else |
| 3145 | # Passes both tests. |
| 3146 | ac_preproc_ok=: |
| 3147 | break |
| 3148 | fi |
| 3149 | rm -f conftest.err conftest.$ac_ext |
| 3150 | |
| 3151 | done |
| 3152 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3153 | rm -f conftest.err conftest.$ac_ext |
| 3154 | if $ac_preproc_ok; then : |
| 3155 | |
| 3156 | else |
| 3157 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3158 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3159 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 3160 | See \`config.log' for more details." "$LINENO" 5; } |
| 3161 | fi |
| 3162 | |
| 3163 | ac_ext=c |
| 3164 | ac_cpp='$CPP $CPPFLAGS' |
| 3165 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3166 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3168 | |
| 3169 | |
| 3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3171 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3172 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 3173 | $as_echo_n "(cached) " >&6 |
| 3174 | else |
| 3175 | if test -z "$GREP"; then |
| 3176 | ac_path_GREP_found=false |
| 3177 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3179 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3180 | do |
| 3181 | IFS=$as_save_IFS |
| 3182 | test -z "$as_dir" && as_dir=. |
| 3183 | for ac_prog in grep ggrep; do |
| 3184 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3185 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3186 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3187 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3188 | # Check for GNU $ac_path_GREP |
| 3189 | case `"$ac_path_GREP" --version 2>&1` in |
| 3190 | *GNU*) |
| 3191 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3192 | *) |
| 3193 | ac_count=0 |
| 3194 | $as_echo_n 0123456789 >"conftest.in" |
| 3195 | while : |
| 3196 | do |
| 3197 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3198 | mv "conftest.tmp" "conftest.in" |
| 3199 | cp "conftest.in" "conftest.nl" |
| 3200 | $as_echo 'GREP' >> "conftest.nl" |
| 3201 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3202 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3203 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3204 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3205 | # Best one so far, save it but keep looking for a better one |
| 3206 | ac_cv_path_GREP="$ac_path_GREP" |
| 3207 | ac_path_GREP_max=$ac_count |
| 3208 | fi |
| 3209 | # 10*(2^10) chars as input seems more than enough |
| 3210 | test $ac_count -gt 10 && break |
| 3211 | done |
| 3212 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3213 | esac |
| 3214 | |
| 3215 | $ac_path_GREP_found && break 3 |
| 3216 | done |
| 3217 | done |
| 3218 | done |
| 3219 | IFS=$as_save_IFS |
| 3220 | if test -z "$ac_cv_path_GREP"; then |
| 3221 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3222 | fi |
| 3223 | else |
| 3224 | ac_cv_path_GREP=$GREP |
| 3225 | fi |
| 3226 | |
| 3227 | fi |
| 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3229 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3230 | GREP="$ac_cv_path_GREP" |
| 3231 | |
| 3232 | |
| 3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3234 | $as_echo_n "checking for egrep... " >&6; } |
| 3235 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 3236 | $as_echo_n "(cached) " >&6 |
| 3237 | else |
| 3238 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3239 | then ac_cv_path_EGREP="$GREP -E" |
| 3240 | else |
| 3241 | if test -z "$EGREP"; then |
| 3242 | ac_path_EGREP_found=false |
| 3243 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3245 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3246 | do |
| 3247 | IFS=$as_save_IFS |
| 3248 | test -z "$as_dir" && as_dir=. |
| 3249 | for ac_prog in egrep; do |
| 3250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3251 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3252 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3253 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3254 | # Check for GNU $ac_path_EGREP |
| 3255 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3256 | *GNU*) |
| 3257 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3258 | *) |
| 3259 | ac_count=0 |
| 3260 | $as_echo_n 0123456789 >"conftest.in" |
| 3261 | while : |
| 3262 | do |
| 3263 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3264 | mv "conftest.tmp" "conftest.in" |
| 3265 | cp "conftest.in" "conftest.nl" |
| 3266 | $as_echo 'EGREP' >> "conftest.nl" |
| 3267 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3268 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3269 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3270 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3271 | # Best one so far, save it but keep looking for a better one |
| 3272 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3273 | ac_path_EGREP_max=$ac_count |
| 3274 | fi |
| 3275 | # 10*(2^10) chars as input seems more than enough |
| 3276 | test $ac_count -gt 10 && break |
| 3277 | done |
| 3278 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3279 | esac |
| 3280 | |
| 3281 | $ac_path_EGREP_found && break 3 |
| 3282 | done |
| 3283 | done |
| 3284 | done |
| 3285 | IFS=$as_save_IFS |
| 3286 | if test -z "$ac_cv_path_EGREP"; then |
| 3287 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3288 | fi |
| 3289 | else |
| 3290 | ac_cv_path_EGREP=$EGREP |
| 3291 | fi |
| 3292 | |
| 3293 | fi |
| 3294 | fi |
| 3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3296 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3297 | EGREP="$ac_cv_path_EGREP" |
| 3298 | |
| 3299 | |
| 3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3301 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3302 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 3303 | $as_echo_n "(cached) " >&6 |
| 3304 | else |
| 3305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3306 | /* end confdefs.h. */ |
| 3307 | #include <stdlib.h> |
| 3308 | #include <stdarg.h> |
| 3309 | #include <string.h> |
| 3310 | #include <float.h> |
| 3311 | |
| 3312 | int |
| 3313 | main () |
| 3314 | { |
| 3315 | |
| 3316 | ; |
| 3317 | return 0; |
| 3318 | } |
| 3319 | _ACEOF |
| 3320 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3321 | ac_cv_header_stdc=yes |
| 3322 | else |
| 3323 | ac_cv_header_stdc=no |
| 3324 | fi |
| 3325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3326 | |
| 3327 | if test $ac_cv_header_stdc = yes; then |
| 3328 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3330 | /* end confdefs.h. */ |
| 3331 | #include <string.h> |
| 3332 | |
| 3333 | _ACEOF |
| 3334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3335 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3336 | |
| 3337 | else |
| 3338 | ac_cv_header_stdc=no |
| 3339 | fi |
| 3340 | rm -f conftest* |
| 3341 | |
| 3342 | fi |
| 3343 | |
| 3344 | if test $ac_cv_header_stdc = yes; then |
| 3345 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3347 | /* end confdefs.h. */ |
| 3348 | #include <stdlib.h> |
| 3349 | |
| 3350 | _ACEOF |
| 3351 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3352 | $EGREP "free" >/dev/null 2>&1; then : |
| 3353 | |
| 3354 | else |
| 3355 | ac_cv_header_stdc=no |
| 3356 | fi |
| 3357 | rm -f conftest* |
| 3358 | |
| 3359 | fi |
| 3360 | |
| 3361 | if test $ac_cv_header_stdc = yes; then |
| 3362 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3363 | if test "$cross_compiling" = yes; then : |
| 3364 | : |
| 3365 | else |
| 3366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3367 | /* end confdefs.h. */ |
| 3368 | #include <ctype.h> |
| 3369 | #include <stdlib.h> |
| 3370 | #if ((' ' & 0x0FF) == 0x020) |
| 3371 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3372 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3373 | #else |
| 3374 | # define ISLOWER(c) \ |
| 3375 | (('a' <= (c) && (c) <= 'i') \ |
| 3376 | || ('j' <= (c) && (c) <= 'r') \ |
| 3377 | || ('s' <= (c) && (c) <= 'z')) |
| 3378 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3379 | #endif |
| 3380 | |
| 3381 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3382 | int |
| 3383 | main () |
| 3384 | { |
| 3385 | int i; |
| 3386 | for (i = 0; i < 256; i++) |
| 3387 | if (XOR (islower (i), ISLOWER (i)) |
| 3388 | || toupper (i) != TOUPPER (i)) |
| 3389 | return 2; |
| 3390 | return 0; |
| 3391 | } |
| 3392 | _ACEOF |
| 3393 | if ac_fn_c_try_run "$LINENO"; then : |
| 3394 | |
| 3395 | else |
| 3396 | ac_cv_header_stdc=no |
| 3397 | fi |
| 3398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3399 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3400 | fi |
| 3401 | |
| 3402 | fi |
| 3403 | fi |
| 3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3405 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3406 | if test $ac_cv_header_stdc = yes; then |
| 3407 | |
| 3408 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3409 | |
| 3410 | fi |
| 3411 | |
| 3412 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3413 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3414 | inttypes.h stdint.h unistd.h |
| 3415 | do : |
| 3416 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3417 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3418 | " |
| 3419 | eval as_val=\$$as_ac_Header |
| 3420 | if test "x$as_val" = x""yes; then : |
| 3421 | cat >>confdefs.h <<_ACEOF |
| 3422 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3423 | _ACEOF |
| 3424 | |
| 3425 | fi |
| 3426 | |
| 3427 | done |
| 3428 | |
| 3429 | |
| 3430 | |
| 3431 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 3432 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 3433 | MINIX=yes |
| 3434 | else |
| 3435 | MINIX= |
| 3436 | fi |
| 3437 | |
| 3438 | |
| 3439 | if test "$MINIX" = yes; then |
| 3440 | |
| 3441 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 3442 | |
| 3443 | |
| 3444 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 3445 | |
| 3446 | |
| 3447 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 3448 | |
| 3449 | fi |
| 3450 | |
| 3451 | |
| 3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 3453 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 3454 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 3455 | $as_echo_n "(cached) " >&6 |
| 3456 | else |
| 3457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3458 | /* end confdefs.h. */ |
| 3459 | |
| 3460 | # define __EXTENSIONS__ 1 |
| 3461 | $ac_includes_default |
| 3462 | int |
| 3463 | main () |
| 3464 | { |
| 3465 | |
| 3466 | ; |
| 3467 | return 0; |
| 3468 | } |
| 3469 | _ACEOF |
| 3470 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3471 | ac_cv_safe_to_define___extensions__=yes |
| 3472 | else |
| 3473 | ac_cv_safe_to_define___extensions__=no |
| 3474 | fi |
| 3475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3476 | fi |
| 3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 3478 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 3479 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 3480 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 3481 | |
| 3482 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 3483 | |
| 3484 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 3485 | |
| 3486 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 3487 | |
| 3488 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 3489 | |
| 3490 | |
| 3491 | |
| 3492 | # Check whether --enable-largefile was given. |
| 3493 | if test "${enable_largefile+set}" = set; then : |
| 3494 | enableval=$enable_largefile; |
| 3495 | fi |
| 3496 | |
| 3497 | if test "$enable_largefile" != no; then |
| 3498 | |
| 3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 3500 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 3501 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 3502 | $as_echo_n "(cached) " >&6 |
| 3503 | else |
| 3504 | ac_cv_sys_largefile_CC=no |
| 3505 | if test "$GCC" != yes; then |
| 3506 | ac_save_CC=$CC |
| 3507 | while :; do |
| 3508 | # IRIX 6.2 and later do not support large files by default, |
| 3509 | # so use the C compiler's -n32 option if that helps. |
| 3510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3511 | /* end confdefs.h. */ |
| 3512 | #include <sys/types.h> |
| 3513 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 3514 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 3515 | since some C++ compilers masquerading as C compilers |
| 3516 | incorrectly reject 9223372036854775807. */ |
| 3517 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 3518 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 3519 | && LARGE_OFF_T % 2147483647 == 1) |
| 3520 | ? 1 : -1]; |
| 3521 | int |
| 3522 | main () |
| 3523 | { |
| 3524 | |
| 3525 | ; |
| 3526 | return 0; |
| 3527 | } |
| 3528 | _ACEOF |
| 3529 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3530 | break |
| 3531 | fi |
| 3532 | rm -f core conftest.err conftest.$ac_objext |
| 3533 | CC="$CC -n32" |
| 3534 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3535 | ac_cv_sys_largefile_CC=' -n32'; break |
| 3536 | fi |
| 3537 | rm -f core conftest.err conftest.$ac_objext |
| 3538 | break |
| 3539 | done |
| 3540 | CC=$ac_save_CC |
| 3541 | rm -f conftest.$ac_ext |
| 3542 | fi |
| 3543 | fi |
| 3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 3545 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 3546 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 3547 | CC=$CC$ac_cv_sys_largefile_CC |
| 3548 | fi |
| 3549 | |
| 3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 3551 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 3552 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 3553 | $as_echo_n "(cached) " >&6 |
| 3554 | else |
| 3555 | while :; do |
| 3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3557 | /* end confdefs.h. */ |
| 3558 | #include <sys/types.h> |
| 3559 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 3560 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 3561 | since some C++ compilers masquerading as C compilers |
| 3562 | incorrectly reject 9223372036854775807. */ |
| 3563 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 3564 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 3565 | && LARGE_OFF_T % 2147483647 == 1) |
| 3566 | ? 1 : -1]; |
| 3567 | int |
| 3568 | main () |
| 3569 | { |
| 3570 | |
| 3571 | ; |
| 3572 | return 0; |
| 3573 | } |
| 3574 | _ACEOF |
| 3575 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3576 | ac_cv_sys_file_offset_bits=no; break |
| 3577 | fi |
| 3578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3580 | /* end confdefs.h. */ |
| 3581 | #define _FILE_OFFSET_BITS 64 |
| 3582 | #include <sys/types.h> |
| 3583 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 3584 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 3585 | since some C++ compilers masquerading as C compilers |
| 3586 | incorrectly reject 9223372036854775807. */ |
| 3587 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 3588 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 3589 | && LARGE_OFF_T % 2147483647 == 1) |
| 3590 | ? 1 : -1]; |
| 3591 | int |
| 3592 | main () |
| 3593 | { |
| 3594 | |
| 3595 | ; |
| 3596 | return 0; |
| 3597 | } |
| 3598 | _ACEOF |
| 3599 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3600 | ac_cv_sys_file_offset_bits=64; break |
| 3601 | fi |
| 3602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3603 | ac_cv_sys_file_offset_bits=unknown |
| 3604 | break |
| 3605 | done |
| 3606 | fi |
| 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 3608 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 3609 | case $ac_cv_sys_file_offset_bits in #( |
| 3610 | no | unknown) ;; |
| 3611 | *) |
| 3612 | cat >>confdefs.h <<_ACEOF |
| 3613 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 3614 | _ACEOF |
| 3615 | ;; |
| 3616 | esac |
| 3617 | rm -rf conftest* |
| 3618 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 3620 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 3621 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| 3622 | $as_echo_n "(cached) " >&6 |
| 3623 | else |
| 3624 | while :; do |
| 3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3626 | /* end confdefs.h. */ |
| 3627 | #include <sys/types.h> |
| 3628 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 3629 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 3630 | since some C++ compilers masquerading as C compilers |
| 3631 | incorrectly reject 9223372036854775807. */ |
| 3632 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 3633 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 3634 | && LARGE_OFF_T % 2147483647 == 1) |
| 3635 | ? 1 : -1]; |
| 3636 | int |
| 3637 | main () |
| 3638 | { |
| 3639 | |
| 3640 | ; |
| 3641 | return 0; |
| 3642 | } |
| 3643 | _ACEOF |
| 3644 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3645 | ac_cv_sys_large_files=no; break |
| 3646 | fi |
| 3647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3649 | /* end confdefs.h. */ |
| 3650 | #define _LARGE_FILES 1 |
| 3651 | #include <sys/types.h> |
| 3652 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 3653 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 3654 | since some C++ compilers masquerading as C compilers |
| 3655 | incorrectly reject 9223372036854775807. */ |
| 3656 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 3657 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 3658 | && LARGE_OFF_T % 2147483647 == 1) |
| 3659 | ? 1 : -1]; |
| 3660 | int |
| 3661 | main () |
| 3662 | { |
| 3663 | |
| 3664 | ; |
| 3665 | return 0; |
| 3666 | } |
| 3667 | _ACEOF |
| 3668 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3669 | ac_cv_sys_large_files=1; break |
| 3670 | fi |
| 3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3672 | ac_cv_sys_large_files=unknown |
| 3673 | break |
| 3674 | done |
| 3675 | fi |
| 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 3677 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 3678 | case $ac_cv_sys_large_files in #( |
| 3679 | no | unknown) ;; |
| 3680 | *) |
| 3681 | cat >>confdefs.h <<_ACEOF |
| 3682 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 3683 | _ACEOF |
| 3684 | ;; |
| 3685 | esac |
| 3686 | rm -rf conftest* |
| 3687 | fi |
| 3688 | fi |
| 3689 | |
| 3690 | |
| 3691 | ac_aux_dir= |
| 3692 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3693 | for ac_t in install-sh install.sh shtool; do |
| 3694 | if test -f "$ac_dir/$ac_t"; then |
| 3695 | ac_aux_dir=$ac_dir |
| 3696 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3697 | break 2 |
| 3698 | fi |
| 3699 | done |
| 3700 | done |
| 3701 | if test -z "$ac_aux_dir"; then |
| 3702 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3703 | fi |
| 3704 | |
| 3705 | # These three variables are undocumented and unsupported, |
| 3706 | # and are intended to be withdrawn in a future Autoconf release. |
| 3707 | # They can cause serious problems if a builder's source tree is in a directory |
| 3708 | # whose full name contains unusual characters. |
| 3709 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3710 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3711 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3712 | |
| 3713 | |
| 3714 | # Make sure we can run config.sub. |
| 3715 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3716 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3717 | |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3719 | $as_echo_n "checking build system type... " >&6; } |
| 3720 | if test "${ac_cv_build+set}" = set; then : |
| 3721 | $as_echo_n "(cached) " >&6 |
| 3722 | else |
| 3723 | ac_build_alias=$build_alias |
| 3724 | test "x$ac_build_alias" = x && |
| 3725 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3726 | test "x$ac_build_alias" = x && |
| 3727 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3728 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3729 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3730 | |
| 3731 | fi |
| 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3733 | $as_echo "$ac_cv_build" >&6; } |
| 3734 | case $ac_cv_build in |
| 3735 | *-*-*) ;; |
| 3736 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 3737 | esac |
| 3738 | build=$ac_cv_build |
| 3739 | ac_save_IFS=$IFS; IFS='-' |
| 3740 | set x $ac_cv_build |
| 3741 | shift |
| 3742 | build_cpu=$1 |
| 3743 | build_vendor=$2 |
| 3744 | shift; shift |
| 3745 | # Remember, the first character of IFS is used to create $*, |
| 3746 | # except with old shells: |
| 3747 | build_os=$* |
| 3748 | IFS=$ac_save_IFS |
| 3749 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3750 | |
| 3751 | |
| 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3753 | $as_echo_n "checking host system type... " >&6; } |
| 3754 | if test "${ac_cv_host+set}" = set; then : |
| 3755 | $as_echo_n "(cached) " >&6 |
| 3756 | else |
| 3757 | if test "x$host_alias" = x; then |
| 3758 | ac_cv_host=$ac_cv_build |
| 3759 | else |
| 3760 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3761 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3762 | fi |
| 3763 | |
| 3764 | fi |
| 3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3766 | $as_echo "$ac_cv_host" >&6; } |
| 3767 | case $ac_cv_host in |
| 3768 | *-*-*) ;; |
| 3769 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 3770 | esac |
| 3771 | host=$ac_cv_host |
| 3772 | ac_save_IFS=$IFS; IFS='-' |
| 3773 | set x $ac_cv_host |
| 3774 | shift |
| 3775 | host_cpu=$1 |
| 3776 | host_vendor=$2 |
| 3777 | shift; shift |
| 3778 | # Remember, the first character of IFS is used to create $*, |
| 3779 | # except with old shells: |
| 3780 | host_os=$* |
| 3781 | IFS=$ac_save_IFS |
| 3782 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3783 | |
| 3784 | |
| 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 3786 | $as_echo_n "checking target system type... " >&6; } |
| 3787 | if test "${ac_cv_target+set}" = set; then : |
| 3788 | $as_echo_n "(cached) " >&6 |
| 3789 | else |
| 3790 | if test "x$target_alias" = x; then |
| 3791 | ac_cv_target=$ac_cv_host |
| 3792 | else |
| 3793 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3794 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 3795 | fi |
| 3796 | |
| 3797 | fi |
| 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 3799 | $as_echo "$ac_cv_target" >&6; } |
| 3800 | case $ac_cv_target in |
| 3801 | *-*-*) ;; |
| 3802 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
| 3803 | esac |
| 3804 | target=$ac_cv_target |
| 3805 | ac_save_IFS=$IFS; IFS='-' |
| 3806 | set x $ac_cv_target |
| 3807 | shift |
| 3808 | target_cpu=$1 |
| 3809 | target_vendor=$2 |
| 3810 | shift; shift |
| 3811 | # Remember, the first character of IFS is used to create $*, |
| 3812 | # except with old shells: |
| 3813 | target_os=$* |
| 3814 | IFS=$ac_save_IFS |
| 3815 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3816 | |
| 3817 | |
| 3818 | # The aliases save the names the user supplied, while $host etc. |
| 3819 | # will get canonicalized. |
| 3820 | test -n "$target_alias" && |
| 3821 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3822 | NONENONEs,x,x, && |
| 3823 | program_prefix=${target_alias}- |
| 3824 | |
| 3825 | |
| 3826 | # Find a good install program. We prefer a C program (faster), |
| 3827 | # so one script is as good as another. But avoid the broken or |
| 3828 | # incompatible versions: |
| 3829 | # SysV /etc/install, /usr/sbin/install |
| 3830 | # SunOS /usr/etc/install |
| 3831 | # IRIX /sbin/install |
| 3832 | # AIX /bin/install |
| 3833 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3834 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3835 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3836 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3837 | # OS/2's system install, which has a completely different semantic |
| 3838 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3839 | # Reject install programs that cannot install multiple files. |
| 3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3841 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3842 | if test -z "$INSTALL"; then |
| 3843 | if test "${ac_cv_path_install+set}" = set; then : |
| 3844 | $as_echo_n "(cached) " >&6 |
| 3845 | else |
| 3846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3847 | for as_dir in $PATH |
| 3848 | do |
| 3849 | IFS=$as_save_IFS |
| 3850 | test -z "$as_dir" && as_dir=. |
| 3851 | # Account for people who put trailing slashes in PATH elements. |
| 3852 | case $as_dir/ in #(( |
| 3853 | ./ | .// | /[cC]/* | \ |
| 3854 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3855 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3856 | /usr/ucb/* ) ;; |
| 3857 | *) |
| 3858 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3859 | # Don't use installbsd from OSF since it installs stuff as root |
| 3860 | # by default. |
| 3861 | for ac_prog in ginstall scoinst install; do |
| 3862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3863 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3864 | if test $ac_prog = install && |
| 3865 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3866 | # AIX install. It has an incompatible calling convention. |
| 3867 | : |
| 3868 | elif test $ac_prog = install && |
| 3869 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3870 | # program-specific install script used by HP pwplus--don't use. |
| 3871 | : |
| 3872 | else |
| 3873 | rm -rf conftest.one conftest.two conftest.dir |
| 3874 | echo one > conftest.one |
| 3875 | echo two > conftest.two |
| 3876 | mkdir conftest.dir |
| 3877 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3878 | test -s conftest.one && test -s conftest.two && |
| 3879 | test -s conftest.dir/conftest.one && |
| 3880 | test -s conftest.dir/conftest.two |
| 3881 | then |
| 3882 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3883 | break 3 |
| 3884 | fi |
| 3885 | fi |
| 3886 | fi |
| 3887 | done |
| 3888 | done |
| 3889 | ;; |
| 3890 | esac |
| 3891 | |
| 3892 | done |
| 3893 | IFS=$as_save_IFS |
| 3894 | |
| 3895 | rm -rf conftest.one conftest.two conftest.dir |
| 3896 | |
| 3897 | fi |
| 3898 | if test "${ac_cv_path_install+set}" = set; then |
| 3899 | INSTALL=$ac_cv_path_install |
| 3900 | else |
| 3901 | # As a last resort, use the slow shell script. Don't cache a |
| 3902 | # value for INSTALL within a source directory, because that will |
| 3903 | # break other packages using the cache if that directory is |
| 3904 | # removed, or if the value is a relative name. |
| 3905 | INSTALL=$ac_install_sh |
| 3906 | fi |
| 3907 | fi |
| 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3909 | $as_echo "$INSTALL" >&6; } |
| 3910 | |
| 3911 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3912 | # It thinks the first close brace ends the variable substitution. |
| 3913 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3914 | |
| 3915 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3916 | |
| 3917 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3918 | |
| 3919 | if test -n "$ac_tool_prefix"; then |
| 3920 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 3921 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3923 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3924 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 3925 | $as_echo_n "(cached) " >&6 |
| 3926 | else |
| 3927 | if test -n "$AR"; then |
| 3928 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3929 | else |
| 3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3931 | for as_dir in $PATH |
| 3932 | do |
| 3933 | IFS=$as_save_IFS |
| 3934 | test -z "$as_dir" && as_dir=. |
| 3935 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3937 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3939 | break 2 |
| 3940 | fi |
| 3941 | done |
| 3942 | done |
| 3943 | IFS=$as_save_IFS |
| 3944 | |
| 3945 | fi |
| 3946 | fi |
| 3947 | AR=$ac_cv_prog_AR |
| 3948 | if test -n "$AR"; then |
| 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 3950 | $as_echo "$AR" >&6; } |
| 3951 | else |
| 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3953 | $as_echo "no" >&6; } |
| 3954 | fi |
| 3955 | |
| 3956 | |
| 3957 | fi |
| 3958 | if test -z "$ac_cv_prog_AR"; then |
| 3959 | ac_ct_AR=$AR |
| 3960 | # Extract the first word of "ar", so it can be a program name with args. |
| 3961 | set dummy ar; ac_word=$2 |
| 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3963 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3964 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 3965 | $as_echo_n "(cached) " >&6 |
| 3966 | else |
| 3967 | if test -n "$ac_ct_AR"; then |
| 3968 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 3969 | else |
| 3970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3971 | for as_dir in $PATH |
| 3972 | do |
| 3973 | IFS=$as_save_IFS |
| 3974 | test -z "$as_dir" && as_dir=. |
| 3975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3977 | ac_cv_prog_ac_ct_AR="ar" |
| 3978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3979 | break 2 |
| 3980 | fi |
| 3981 | done |
| 3982 | done |
| 3983 | IFS=$as_save_IFS |
| 3984 | |
| 3985 | fi |
| 3986 | fi |
| 3987 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 3988 | if test -n "$ac_ct_AR"; then |
| 3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 3990 | $as_echo "$ac_ct_AR" >&6; } |
| 3991 | else |
| 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3993 | $as_echo "no" >&6; } |
| 3994 | fi |
| 3995 | |
| 3996 | if test "x$ac_ct_AR" = x; then |
| 3997 | AR="" |
| 3998 | else |
| 3999 | case $cross_compiling:$ac_tool_warned in |
| 4000 | yes:) |
| 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4003 | ac_tool_warned=yes ;; |
| 4004 | esac |
| 4005 | AR=$ac_ct_AR |
| 4006 | fi |
| 4007 | else |
| 4008 | AR="$ac_cv_prog_AR" |
| 4009 | fi |
| 4010 | |
| 4011 | if test -n "$ac_tool_prefix"; then |
| 4012 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4013 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4015 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4016 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 4017 | $as_echo_n "(cached) " >&6 |
| 4018 | else |
| 4019 | if test -n "$RANLIB"; then |
| 4020 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4021 | else |
| 4022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4023 | for as_dir in $PATH |
| 4024 | do |
| 4025 | IFS=$as_save_IFS |
| 4026 | test -z "$as_dir" && as_dir=. |
| 4027 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4029 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4031 | break 2 |
| 4032 | fi |
| 4033 | done |
| 4034 | done |
| 4035 | IFS=$as_save_IFS |
| 4036 | |
| 4037 | fi |
| 4038 | fi |
| 4039 | RANLIB=$ac_cv_prog_RANLIB |
| 4040 | if test -n "$RANLIB"; then |
| 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4042 | $as_echo "$RANLIB" >&6; } |
| 4043 | else |
| 4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4045 | $as_echo "no" >&6; } |
| 4046 | fi |
| 4047 | |
| 4048 | |
| 4049 | fi |
| 4050 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4051 | ac_ct_RANLIB=$RANLIB |
| 4052 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4053 | set dummy ranlib; ac_word=$2 |
| 4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4055 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4056 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 4057 | $as_echo_n "(cached) " >&6 |
| 4058 | else |
| 4059 | if test -n "$ac_ct_RANLIB"; then |
| 4060 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4061 | else |
| 4062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4063 | for as_dir in $PATH |
| 4064 | do |
| 4065 | IFS=$as_save_IFS |
| 4066 | test -z "$as_dir" && as_dir=. |
| 4067 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4069 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4071 | break 2 |
| 4072 | fi |
| 4073 | done |
| 4074 | done |
| 4075 | IFS=$as_save_IFS |
| 4076 | |
| 4077 | fi |
| 4078 | fi |
| 4079 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4080 | if test -n "$ac_ct_RANLIB"; then |
| 4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4082 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4083 | else |
| 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4085 | $as_echo "no" >&6; } |
| 4086 | fi |
| 4087 | |
| 4088 | if test "x$ac_ct_RANLIB" = x; then |
| 4089 | RANLIB=":" |
| 4090 | else |
| 4091 | case $cross_compiling:$ac_tool_warned in |
| 4092 | yes:) |
| 4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4094 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4095 | ac_tool_warned=yes ;; |
| 4096 | esac |
| 4097 | RANLIB=$ac_ct_RANLIB |
| 4098 | fi |
| 4099 | else |
| 4100 | RANLIB="$ac_cv_prog_RANLIB" |
| 4101 | fi |
| 4102 | |
| 4103 | |
| 4104 | test "$program_prefix" != NONE && |
| 4105 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 4106 | # Use a double $ so make ignores it. |
| 4107 | test "$program_suffix" != NONE && |
| 4108 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 4109 | # Double any \ or $. |
| 4110 | # By default was `s,x,x', remove it if useless. |
| 4111 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 4112 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 4113 | |
| 4114 | |
| 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4116 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4117 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4118 | $as_echo_n "(cached) " >&6 |
| 4119 | else |
| 4120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4121 | /* end confdefs.h. */ |
| 4122 | #include <stdlib.h> |
| 4123 | #include <stdarg.h> |
| 4124 | #include <string.h> |
| 4125 | #include <float.h> |
| 4126 | |
| 4127 | int |
| 4128 | main () |
| 4129 | { |
| 4130 | |
| 4131 | ; |
| 4132 | return 0; |
| 4133 | } |
| 4134 | _ACEOF |
| 4135 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4136 | ac_cv_header_stdc=yes |
| 4137 | else |
| 4138 | ac_cv_header_stdc=no |
| 4139 | fi |
| 4140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4141 | |
| 4142 | if test $ac_cv_header_stdc = yes; then |
| 4143 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4145 | /* end confdefs.h. */ |
| 4146 | #include <string.h> |
| 4147 | |
| 4148 | _ACEOF |
| 4149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4150 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4151 | |
| 4152 | else |
| 4153 | ac_cv_header_stdc=no |
| 4154 | fi |
| 4155 | rm -f conftest* |
| 4156 | |
| 4157 | fi |
| 4158 | |
| 4159 | if test $ac_cv_header_stdc = yes; then |
| 4160 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4162 | /* end confdefs.h. */ |
| 4163 | #include <stdlib.h> |
| 4164 | |
| 4165 | _ACEOF |
| 4166 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4167 | $EGREP "free" >/dev/null 2>&1; then : |
| 4168 | |
| 4169 | else |
| 4170 | ac_cv_header_stdc=no |
| 4171 | fi |
| 4172 | rm -f conftest* |
| 4173 | |
| 4174 | fi |
| 4175 | |
| 4176 | if test $ac_cv_header_stdc = yes; then |
| 4177 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4178 | if test "$cross_compiling" = yes; then : |
| 4179 | : |
| 4180 | else |
| 4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4182 | /* end confdefs.h. */ |
| 4183 | #include <ctype.h> |
| 4184 | #include <stdlib.h> |
| 4185 | #if ((' ' & 0x0FF) == 0x020) |
| 4186 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4187 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4188 | #else |
| 4189 | # define ISLOWER(c) \ |
| 4190 | (('a' <= (c) && (c) <= 'i') \ |
| 4191 | || ('j' <= (c) && (c) <= 'r') \ |
| 4192 | || ('s' <= (c) && (c) <= 'z')) |
| 4193 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4194 | #endif |
| 4195 | |
| 4196 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4197 | int |
| 4198 | main () |
| 4199 | { |
| 4200 | int i; |
| 4201 | for (i = 0; i < 256; i++) |
| 4202 | if (XOR (islower (i), ISLOWER (i)) |
| 4203 | || toupper (i) != TOUPPER (i)) |
| 4204 | return 2; |
| 4205 | return 0; |
| 4206 | } |
| 4207 | _ACEOF |
| 4208 | if ac_fn_c_try_run "$LINENO"; then : |
| 4209 | |
| 4210 | else |
| 4211 | ac_cv_header_stdc=no |
| 4212 | fi |
| 4213 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4214 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4215 | fi |
| 4216 | |
| 4217 | fi |
| 4218 | fi |
| 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4220 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4221 | if test $ac_cv_header_stdc = yes; then |
| 4222 | |
| 4223 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4224 | |
| 4225 | fi |
| 4226 | |
| 4227 | |
| 4228 | # Set the 'development' global. |
| 4229 | . $srcdir/../../bfd/development.sh |
| 4230 | |
| 4231 | # Enable -lmcheck by default (it provides cheap-enough memory |
| 4232 | # mangling), but turn it off for releases. |
| 4233 | if $development; then |
| 4234 | libmcheck_default=yes |
| 4235 | else |
| 4236 | libmcheck_default=no |
| 4237 | fi |
| 4238 | |
| 4239 | # Check whether --enable-libmcheck was given. |
| 4240 | if test "${enable_libmcheck+set}" = set; then : |
| 4241 | enableval=$enable_libmcheck; case "${enableval}" in |
| 4242 | yes | y) ENABLE_LIBMCHECK="yes" ;; |
| 4243 | no | n) ENABLE_LIBMCHECK="no" ;; |
| 4244 | *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;; |
| 4245 | esac |
| 4246 | fi |
| 4247 | |
| 4248 | |
| 4249 | if test -z "${ENABLE_LIBMCHECK}"; then |
| 4250 | ENABLE_LIBMCHECK=${libmcheck_default} |
| 4251 | fi |
| 4252 | |
| 4253 | if test "$ENABLE_LIBMCHECK" = "yes" ; then |
| 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5 |
| 4255 | $as_echo_n "checking for main in -lmcheck... " >&6; } |
| 4256 | if test "${ac_cv_lib_mcheck_main+set}" = set; then : |
| 4257 | $as_echo_n "(cached) " >&6 |
| 4258 | else |
| 4259 | ac_check_lib_save_LIBS=$LIBS |
| 4260 | LIBS="-lmcheck $LIBS" |
| 4261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4262 | /* end confdefs.h. */ |
| 4263 | |
| 4264 | |
| 4265 | int |
| 4266 | main () |
| 4267 | { |
| 4268 | return main (); |
| 4269 | ; |
| 4270 | return 0; |
| 4271 | } |
| 4272 | _ACEOF |
| 4273 | if ac_fn_c_try_link "$LINENO"; then : |
| 4274 | ac_cv_lib_mcheck_main=yes |
| 4275 | else |
| 4276 | ac_cv_lib_mcheck_main=no |
| 4277 | fi |
| 4278 | rm -f core conftest.err conftest.$ac_objext \ |
| 4279 | conftest$ac_exeext conftest.$ac_ext |
| 4280 | LIBS=$ac_check_lib_save_LIBS |
| 4281 | fi |
| 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5 |
| 4283 | $as_echo "$ac_cv_lib_mcheck_main" >&6; } |
| 4284 | if test "x$ac_cv_lib_mcheck_main" = x""yes; then : |
| 4285 | cat >>confdefs.h <<_ACEOF |
| 4286 | #define HAVE_LIBMCHECK 1 |
| 4287 | _ACEOF |
| 4288 | |
| 4289 | LIBS="-lmcheck $LIBS" |
| 4290 | |
| 4291 | fi |
| 4292 | |
| 4293 | fi |
| 4294 | |
| 4295 | |
| 4296 | case ${build_alias} in |
| 4297 | "") build_noncanonical=${build} ;; |
| 4298 | *) build_noncanonical=${build_alias} ;; |
| 4299 | esac |
| 4300 | |
| 4301 | case ${host_alias} in |
| 4302 | "") host_noncanonical=${build_noncanonical} ;; |
| 4303 | *) host_noncanonical=${host_alias} ;; |
| 4304 | esac |
| 4305 | |
| 4306 | case ${target_alias} in |
| 4307 | "") target_noncanonical=${host_noncanonical} ;; |
| 4308 | *) target_noncanonical=${target_alias} ;; |
| 4309 | esac |
| 4310 | |
| 4311 | |
| 4312 | |
| 4313 | |
| 4314 | |
| 4315 | |
| 4316 | # Dependency checking. |
| 4317 | rm -rf .tst 2>/dev/null |
| 4318 | mkdir .tst 2>/dev/null |
| 4319 | if test -d .tst; then |
| 4320 | am__leading_dot=. |
| 4321 | else |
| 4322 | am__leading_dot=_ |
| 4323 | fi |
| 4324 | rmdir .tst 2>/dev/null |
| 4325 | |
| 4326 | DEPDIR="${am__leading_dot}deps" |
| 4327 | |
| 4328 | ac_config_commands="$ac_config_commands depdir" |
| 4329 | |
| 4330 | |
| 4331 | depcc="$CC" am_compiler_list= |
| 4332 | |
| 4333 | am_depcomp=$ac_aux_dir/depcomp |
| 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4335 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4336 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 4337 | $as_echo_n "(cached) " >&6 |
| 4338 | else |
| 4339 | if test -f "$am_depcomp"; then |
| 4340 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4341 | # making bogus files that we don't know about and never remove. For |
| 4342 | # instance it was reported that on HP-UX the gcc test will end up |
| 4343 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4344 | # in D'. |
| 4345 | mkdir conftest.dir |
| 4346 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4347 | # using a relative directory. |
| 4348 | cp "$am_depcomp" conftest.dir |
| 4349 | cd conftest.dir |
| 4350 | # We will build objects and dependencies in a subdirectory because |
| 4351 | # it helps to detect inapplicable dependency modes. For instance |
| 4352 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4353 | # side effect of compilation, but ICC will put the dependencies in |
| 4354 | # the current directory while Tru64 will put them in the object |
| 4355 | # directory. |
| 4356 | mkdir sub |
| 4357 | |
| 4358 | am_cv_CC_dependencies_compiler_type=none |
| 4359 | if test "$am_compiler_list" = ""; then |
| 4360 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4361 | fi |
| 4362 | for depmode in $am_compiler_list; do |
| 4363 | if test $depmode = none; then break; fi |
| 4364 | |
| 4365 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 |
| 4366 | # Setup a source with many dependencies, because some compilers |
| 4367 | # like to wrap large dependency lists on column 80 (with \), and |
| 4368 | # we should not choose a depcomp mode which is confused by this. |
| 4369 | # |
| 4370 | # We need to recreate these files for each test, as the compiler may |
| 4371 | # overwrite some of them when testing with obscure command lines. |
| 4372 | # This happens at least with the AIX C compiler. |
| 4373 | : > sub/conftest.c |
| 4374 | for i in 1 2 3 4 5 6; do |
| 4375 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4376 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4377 | # Solaris 8's {/usr,}/bin/sh. |
| 4378 | touch sub/conftst$i.h |
| 4379 | done |
| 4380 | echo "include sub/conftest.Po" > confmf |
| 4381 | |
| 4382 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4383 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4384 | # handle `-M -o', and we need to detect this. |
| 4385 | depcmd="depmode=$depmode \ |
| 4386 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4387 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4388 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" |
| 4389 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 |
| 4390 | if env $depcmd > conftest.err 2>&1 && |
| 4391 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && |
| 4392 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && |
| 4393 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then |
| 4394 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4395 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4396 | # that says an option was ignored or not supported. |
| 4397 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4398 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4399 | # The diagnosis changed in icc 8.0: |
| 4400 | # icc: Command line remark: option '-MP' not supported |
| 4401 | if (grep 'ignoring option' conftest.err || |
| 4402 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4403 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4404 | $as_echo "$as_me:$LINENO: success" >&5 |
| 4405 | break |
| 4406 | fi |
| 4407 | fi |
| 4408 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 |
| 4409 | sed -e 's/^/| /' < conftest.err >&5 |
| 4410 | done |
| 4411 | |
| 4412 | cd .. |
| 4413 | rm -rf conftest.dir |
| 4414 | else |
| 4415 | am_cv_CC_dependencies_compiler_type=none |
| 4416 | fi |
| 4417 | |
| 4418 | fi |
| 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4420 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4421 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone |
| 4422 | then as_fn_error "no usable dependency style found" "$LINENO" 5 |
| 4423 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4424 | |
| 4425 | fi |
| 4426 | |
| 4427 | |
| 4428 | # Check for the 'make' the user wants to use. |
| 4429 | for ac_prog in make |
| 4430 | do |
| 4431 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4432 | set dummy $ac_prog; ac_word=$2 |
| 4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4434 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4435 | if test "${ac_cv_prog_MAKE+set}" = set; then : |
| 4436 | $as_echo_n "(cached) " >&6 |
| 4437 | else |
| 4438 | if test -n "$MAKE"; then |
| 4439 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. |
| 4440 | else |
| 4441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4442 | for as_dir in $PATH |
| 4443 | do |
| 4444 | IFS=$as_save_IFS |
| 4445 | test -z "$as_dir" && as_dir=. |
| 4446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4448 | ac_cv_prog_MAKE="$ac_prog" |
| 4449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4450 | break 2 |
| 4451 | fi |
| 4452 | done |
| 4453 | done |
| 4454 | IFS=$as_save_IFS |
| 4455 | |
| 4456 | fi |
| 4457 | fi |
| 4458 | MAKE=$ac_cv_prog_MAKE |
| 4459 | if test -n "$MAKE"; then |
| 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 |
| 4461 | $as_echo "$MAKE" >&6; } |
| 4462 | else |
| 4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4464 | $as_echo "no" >&6; } |
| 4465 | fi |
| 4466 | |
| 4467 | |
| 4468 | test -n "$MAKE" && break |
| 4469 | done |
| 4470 | |
| 4471 | MAKE_IS_GNU= |
| 4472 | case "`$MAKE --version 2>&1 | sed 1q`" in |
| 4473 | *GNU*) |
| 4474 | MAKE_IS_GNU=yes |
| 4475 | ;; |
| 4476 | esac |
| 4477 | if test "$MAKE_IS_GNU" = yes; then |
| 4478 | GMAKE_TRUE= |
| 4479 | GMAKE_FALSE='#' |
| 4480 | else |
| 4481 | GMAKE_TRUE='#' |
| 4482 | GMAKE_FALSE= |
| 4483 | fi |
| 4484 | |
| 4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4486 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4487 | set x ${MAKE-make} |
| 4488 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4489 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 4490 | $as_echo_n "(cached) " >&6 |
| 4491 | else |
| 4492 | cat >conftest.make <<\_ACEOF |
| 4493 | SHELL = /bin/sh |
| 4494 | all: |
| 4495 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 4496 | _ACEOF |
| 4497 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 4498 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4499 | *@@@%%%=?*=@@@%%%*) |
| 4500 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4501 | *) |
| 4502 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4503 | esac |
| 4504 | rm -f conftest.make |
| 4505 | fi |
| 4506 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4508 | $as_echo "yes" >&6; } |
| 4509 | SET_MAKE= |
| 4510 | else |
| 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4512 | $as_echo "no" >&6; } |
| 4513 | SET_MAKE="MAKE=${MAKE-make}" |
| 4514 | fi |
| 4515 | |
| 4516 | |
| 4517 | gnulib_extra_configure_args= |
| 4518 | # If large-file support is disabled, make sure gnulib does the same. |
| 4519 | if test "$enable_largefile" = no; then |
| 4520 | gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile" |
| 4521 | fi |
| 4522 | |
| 4523 | # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect |
| 4524 | # to find the the source subdir to be configured directly under |
| 4525 | # gdbserver/. We need to build gnulib under some other directory not |
| 4526 | # "gnulib", to avoid the problem of both GDB and GDBserver wanting to |
| 4527 | # build it in the same directory, when building in the source dir. |
| 4528 | |
| 4529 | in_src="../gnulib" |
| 4530 | in_build="build-gnulib-gdbserver" |
| 4531 | in_extra_args="$gnulib_extra_configure_args" |
| 4532 | |
| 4533 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 4534 | # so they do not pile up. |
| 4535 | ac_sub_configure_args= |
| 4536 | ac_prev= |
| 4537 | eval "set x $ac_configure_args" |
| 4538 | shift |
| 4539 | for ac_arg |
| 4540 | do |
| 4541 | if test -n "$ac_prev"; then |
| 4542 | ac_prev= |
| 4543 | continue |
| 4544 | fi |
| 4545 | case $ac_arg in |
| 4546 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 4547 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 4548 | ac_prev=cache_file ;; |
| 4549 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 4550 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 4551 | | --c=*) |
| 4552 | ;; |
| 4553 | --config-cache | -C) |
| 4554 | ;; |
| 4555 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 4556 | ac_prev=srcdir ;; |
| 4557 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 4558 | ;; |
| 4559 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 4560 | ac_prev=prefix ;; |
| 4561 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 4562 | ;; |
| 4563 | --disable-option-checking) |
| 4564 | ;; |
| 4565 | *) |
| 4566 | case $ac_arg in |
| 4567 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4568 | esac |
| 4569 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
| 4570 | esac |
| 4571 | done |
| 4572 | |
| 4573 | # Always prepend --prefix to ensure using the same prefix |
| 4574 | # in subdir configurations. |
| 4575 | ac_arg="--prefix=$prefix" |
| 4576 | case $ac_arg in |
| 4577 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4578 | esac |
| 4579 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 4580 | |
| 4581 | # Pass --silent |
| 4582 | if test "$silent" = yes; then |
| 4583 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 4584 | fi |
| 4585 | |
| 4586 | # Always prepend --disable-option-checking to silence warnings, since |
| 4587 | # different subdirs can have different --enable and --with options. |
| 4588 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
| 4589 | |
| 4590 | ac_popdir=`pwd` |
| 4591 | ac_dir=$in_build |
| 4592 | |
| 4593 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 4594 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 4595 | $as_echo "$ac_msg" >&6 |
| 4596 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 4597 | |
| 4598 | case $srcdir in |
| 4599 | [\\/]* | ?:[\\/]* ) |
| 4600 | ac_srcdir=$srcdir/$in_src ;; |
| 4601 | *) # Relative name. |
| 4602 | ac_srcdir=../$srcdir/$in_src ;; |
| 4603 | esac |
| 4604 | |
| 4605 | cd "$ac_dir" |
| 4606 | |
| 4607 | ac_sub_configure=$ac_srcdir/configure |
| 4608 | |
| 4609 | # Make the cache file name correct relative to the subdirectory. |
| 4610 | case $cache_file in |
| 4611 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 4612 | *) # Relative name. |
| 4613 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 4614 | esac |
| 4615 | |
| 4616 | if test -n "$in_extra_args"; then |
| 4617 | # Add the extra args at the end. |
| 4618 | ac_sub_configure_args="$ac_sub_configure_args $in_extra_args" |
| 4619 | fi |
| 4620 | |
| 4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 4622 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 4623 | # The eval makes quoting arguments work. |
| 4624 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 4625 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
| 4626 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
| 4627 | |
| 4628 | cd "$ac_popdir" |
| 4629 | |
| 4630 | |
| 4631 | |
| 4632 | in_src="../../libiberty" |
| 4633 | in_build="build-libiberty-gdbserver" |
| 4634 | in_extra_args= |
| 4635 | |
| 4636 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 4637 | # so they do not pile up. |
| 4638 | ac_sub_configure_args= |
| 4639 | ac_prev= |
| 4640 | eval "set x $ac_configure_args" |
| 4641 | shift |
| 4642 | for ac_arg |
| 4643 | do |
| 4644 | if test -n "$ac_prev"; then |
| 4645 | ac_prev= |
| 4646 | continue |
| 4647 | fi |
| 4648 | case $ac_arg in |
| 4649 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 4650 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 4651 | ac_prev=cache_file ;; |
| 4652 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 4653 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 4654 | | --c=*) |
| 4655 | ;; |
| 4656 | --config-cache | -C) |
| 4657 | ;; |
| 4658 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 4659 | ac_prev=srcdir ;; |
| 4660 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 4661 | ;; |
| 4662 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 4663 | ac_prev=prefix ;; |
| 4664 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 4665 | ;; |
| 4666 | --disable-option-checking) |
| 4667 | ;; |
| 4668 | *) |
| 4669 | case $ac_arg in |
| 4670 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4671 | esac |
| 4672 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
| 4673 | esac |
| 4674 | done |
| 4675 | |
| 4676 | # Always prepend --prefix to ensure using the same prefix |
| 4677 | # in subdir configurations. |
| 4678 | ac_arg="--prefix=$prefix" |
| 4679 | case $ac_arg in |
| 4680 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4681 | esac |
| 4682 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 4683 | |
| 4684 | # Pass --silent |
| 4685 | if test "$silent" = yes; then |
| 4686 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 4687 | fi |
| 4688 | |
| 4689 | # Always prepend --disable-option-checking to silence warnings, since |
| 4690 | # different subdirs can have different --enable and --with options. |
| 4691 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
| 4692 | |
| 4693 | ac_popdir=`pwd` |
| 4694 | ac_dir=$in_build |
| 4695 | |
| 4696 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 4697 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 4698 | $as_echo "$ac_msg" >&6 |
| 4699 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 4700 | |
| 4701 | case $srcdir in |
| 4702 | [\\/]* | ?:[\\/]* ) |
| 4703 | ac_srcdir=$srcdir/$in_src ;; |
| 4704 | *) # Relative name. |
| 4705 | ac_srcdir=../$srcdir/$in_src ;; |
| 4706 | esac |
| 4707 | |
| 4708 | cd "$ac_dir" |
| 4709 | |
| 4710 | ac_sub_configure=$ac_srcdir/configure |
| 4711 | |
| 4712 | # Make the cache file name correct relative to the subdirectory. |
| 4713 | case $cache_file in |
| 4714 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 4715 | *) # Relative name. |
| 4716 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 4717 | esac |
| 4718 | |
| 4719 | if test -n "$in_extra_args"; then |
| 4720 | # Add the extra args at the end. |
| 4721 | ac_sub_configure_args="$ac_sub_configure_args $in_extra_args" |
| 4722 | fi |
| 4723 | |
| 4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 4725 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 4726 | # The eval makes quoting arguments work. |
| 4727 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 4728 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
| 4729 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
| 4730 | |
| 4731 | cd "$ac_popdir" |
| 4732 | |
| 4733 | |
| 4734 | for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h |
| 4735 | do : |
| 4736 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4737 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4738 | eval as_val=\$$as_ac_Header |
| 4739 | if test "x$as_val" = x""yes; then : |
| 4740 | cat >>confdefs.h <<_ACEOF |
| 4741 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4742 | _ACEOF |
| 4743 | |
| 4744 | fi |
| 4745 | |
| 4746 | done |
| 4747 | |
| 4748 | for ac_func in getauxval pread pwrite pread64 |
| 4749 | do : |
| 4750 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4751 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4752 | eval as_val=\$$as_ac_var |
| 4753 | if test "x$as_val" = x""yes; then : |
| 4754 | cat >>confdefs.h <<_ACEOF |
| 4755 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4756 | _ACEOF |
| 4757 | |
| 4758 | fi |
| 4759 | done |
| 4760 | |
| 4761 | |
| 4762 | |
| 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4764 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4765 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4766 | $as_echo_n "(cached) " >&6 |
| 4767 | else |
| 4768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4769 | /* end confdefs.h. */ |
| 4770 | #include <stdlib.h> |
| 4771 | #include <stdarg.h> |
| 4772 | #include <string.h> |
| 4773 | #include <float.h> |
| 4774 | |
| 4775 | int |
| 4776 | main () |
| 4777 | { |
| 4778 | |
| 4779 | ; |
| 4780 | return 0; |
| 4781 | } |
| 4782 | _ACEOF |
| 4783 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4784 | ac_cv_header_stdc=yes |
| 4785 | else |
| 4786 | ac_cv_header_stdc=no |
| 4787 | fi |
| 4788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4789 | |
| 4790 | if test $ac_cv_header_stdc = yes; then |
| 4791 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4793 | /* end confdefs.h. */ |
| 4794 | #include <string.h> |
| 4795 | |
| 4796 | _ACEOF |
| 4797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4798 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4799 | |
| 4800 | else |
| 4801 | ac_cv_header_stdc=no |
| 4802 | fi |
| 4803 | rm -f conftest* |
| 4804 | |
| 4805 | fi |
| 4806 | |
| 4807 | if test $ac_cv_header_stdc = yes; then |
| 4808 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4810 | /* end confdefs.h. */ |
| 4811 | #include <stdlib.h> |
| 4812 | |
| 4813 | _ACEOF |
| 4814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4815 | $EGREP "free" >/dev/null 2>&1; then : |
| 4816 | |
| 4817 | else |
| 4818 | ac_cv_header_stdc=no |
| 4819 | fi |
| 4820 | rm -f conftest* |
| 4821 | |
| 4822 | fi |
| 4823 | |
| 4824 | if test $ac_cv_header_stdc = yes; then |
| 4825 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4826 | if test "$cross_compiling" = yes; then : |
| 4827 | : |
| 4828 | else |
| 4829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4830 | /* end confdefs.h. */ |
| 4831 | #include <ctype.h> |
| 4832 | #include <stdlib.h> |
| 4833 | #if ((' ' & 0x0FF) == 0x020) |
| 4834 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4835 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4836 | #else |
| 4837 | # define ISLOWER(c) \ |
| 4838 | (('a' <= (c) && (c) <= 'i') \ |
| 4839 | || ('j' <= (c) && (c) <= 'r') \ |
| 4840 | || ('s' <= (c) && (c) <= 'z')) |
| 4841 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4842 | #endif |
| 4843 | |
| 4844 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4845 | int |
| 4846 | main () |
| 4847 | { |
| 4848 | int i; |
| 4849 | for (i = 0; i < 256; i++) |
| 4850 | if (XOR (islower (i), ISLOWER (i)) |
| 4851 | || toupper (i) != TOUPPER (i)) |
| 4852 | return 2; |
| 4853 | return 0; |
| 4854 | } |
| 4855 | _ACEOF |
| 4856 | if ac_fn_c_try_run "$LINENO"; then : |
| 4857 | |
| 4858 | else |
| 4859 | ac_cv_header_stdc=no |
| 4860 | fi |
| 4861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4862 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4863 | fi |
| 4864 | |
| 4865 | fi |
| 4866 | fi |
| 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4868 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4869 | if test $ac_cv_header_stdc = yes; then |
| 4870 | |
| 4871 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4872 | |
| 4873 | fi |
| 4874 | |
| 4875 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 4876 | # for constant arguments. Useless! |
| 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 4878 | $as_echo_n "checking for working alloca.h... " >&6; } |
| 4879 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
| 4880 | $as_echo_n "(cached) " >&6 |
| 4881 | else |
| 4882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4883 | /* end confdefs.h. */ |
| 4884 | #include <alloca.h> |
| 4885 | int |
| 4886 | main () |
| 4887 | { |
| 4888 | char *p = (char *) alloca (2 * sizeof (int)); |
| 4889 | if (p) return 0; |
| 4890 | ; |
| 4891 | return 0; |
| 4892 | } |
| 4893 | _ACEOF |
| 4894 | if ac_fn_c_try_link "$LINENO"; then : |
| 4895 | ac_cv_working_alloca_h=yes |
| 4896 | else |
| 4897 | ac_cv_working_alloca_h=no |
| 4898 | fi |
| 4899 | rm -f core conftest.err conftest.$ac_objext \ |
| 4900 | conftest$ac_exeext conftest.$ac_ext |
| 4901 | fi |
| 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 4903 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
| 4904 | if test $ac_cv_working_alloca_h = yes; then |
| 4905 | |
| 4906 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 4907 | |
| 4908 | fi |
| 4909 | |
| 4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 4911 | $as_echo_n "checking for alloca... " >&6; } |
| 4912 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
| 4913 | $as_echo_n "(cached) " >&6 |
| 4914 | else |
| 4915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4916 | /* end confdefs.h. */ |
| 4917 | #ifdef __GNUC__ |
| 4918 | # define alloca __builtin_alloca |
| 4919 | #else |
| 4920 | # ifdef _MSC_VER |
| 4921 | # include <malloc.h> |
| 4922 | # define alloca _alloca |
| 4923 | # else |
| 4924 | # ifdef HAVE_ALLOCA_H |
| 4925 | # include <alloca.h> |
| 4926 | # else |
| 4927 | # ifdef _AIX |
| 4928 | #pragma alloca |
| 4929 | # else |
| 4930 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 4931 | char *alloca (); |
| 4932 | # endif |
| 4933 | # endif |
| 4934 | # endif |
| 4935 | # endif |
| 4936 | #endif |
| 4937 | |
| 4938 | int |
| 4939 | main () |
| 4940 | { |
| 4941 | char *p = (char *) alloca (1); |
| 4942 | if (p) return 0; |
| 4943 | ; |
| 4944 | return 0; |
| 4945 | } |
| 4946 | _ACEOF |
| 4947 | if ac_fn_c_try_link "$LINENO"; then : |
| 4948 | ac_cv_func_alloca_works=yes |
| 4949 | else |
| 4950 | ac_cv_func_alloca_works=no |
| 4951 | fi |
| 4952 | rm -f core conftest.err conftest.$ac_objext \ |
| 4953 | conftest$ac_exeext conftest.$ac_ext |
| 4954 | fi |
| 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 4956 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
| 4957 | |
| 4958 | if test $ac_cv_func_alloca_works = yes; then |
| 4959 | |
| 4960 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 4961 | |
| 4962 | else |
| 4963 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 4964 | # that cause trouble. Some versions do not even contain alloca or |
| 4965 | # contain a buggy version. If you still want to use their alloca, |
| 4966 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 4967 | |
| 4968 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 4969 | |
| 4970 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 4971 | |
| 4972 | |
| 4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 4974 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
| 4975 | if test "${ac_cv_os_cray+set}" = set; then : |
| 4976 | $as_echo_n "(cached) " >&6 |
| 4977 | else |
| 4978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4979 | /* end confdefs.h. */ |
| 4980 | #if defined CRAY && ! defined CRAY2 |
| 4981 | webecray |
| 4982 | #else |
| 4983 | wenotbecray |
| 4984 | #endif |
| 4985 | |
| 4986 | _ACEOF |
| 4987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4988 | $EGREP "webecray" >/dev/null 2>&1; then : |
| 4989 | ac_cv_os_cray=yes |
| 4990 | else |
| 4991 | ac_cv_os_cray=no |
| 4992 | fi |
| 4993 | rm -f conftest* |
| 4994 | |
| 4995 | fi |
| 4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 4997 | $as_echo "$ac_cv_os_cray" >&6; } |
| 4998 | if test $ac_cv_os_cray = yes; then |
| 4999 | for ac_func in _getb67 GETB67 getb67; do |
| 5000 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5001 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5002 | eval as_val=\$$as_ac_var |
| 5003 | if test "x$as_val" = x""yes; then : |
| 5004 | |
| 5005 | cat >>confdefs.h <<_ACEOF |
| 5006 | #define CRAY_STACKSEG_END $ac_func |
| 5007 | _ACEOF |
| 5008 | |
| 5009 | break |
| 5010 | fi |
| 5011 | |
| 5012 | done |
| 5013 | fi |
| 5014 | |
| 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 5016 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
| 5017 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
| 5018 | $as_echo_n "(cached) " >&6 |
| 5019 | else |
| 5020 | if test "$cross_compiling" = yes; then : |
| 5021 | ac_cv_c_stack_direction=0 |
| 5022 | else |
| 5023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5024 | /* end confdefs.h. */ |
| 5025 | $ac_includes_default |
| 5026 | int |
| 5027 | find_stack_direction () |
| 5028 | { |
| 5029 | static char *addr = 0; |
| 5030 | auto char dummy; |
| 5031 | if (addr == 0) |
| 5032 | { |
| 5033 | addr = &dummy; |
| 5034 | return find_stack_direction (); |
| 5035 | } |
| 5036 | else |
| 5037 | return (&dummy > addr) ? 1 : -1; |
| 5038 | } |
| 5039 | |
| 5040 | int |
| 5041 | main () |
| 5042 | { |
| 5043 | return find_stack_direction () < 0; |
| 5044 | } |
| 5045 | _ACEOF |
| 5046 | if ac_fn_c_try_run "$LINENO"; then : |
| 5047 | ac_cv_c_stack_direction=1 |
| 5048 | else |
| 5049 | ac_cv_c_stack_direction=-1 |
| 5050 | fi |
| 5051 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5052 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5053 | fi |
| 5054 | |
| 5055 | fi |
| 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 5057 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
| 5058 | cat >>confdefs.h <<_ACEOF |
| 5059 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5060 | _ACEOF |
| 5061 | |
| 5062 | |
| 5063 | fi |
| 5064 | |
| 5065 | |
| 5066 | |
| 5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 5068 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 5069 | if test "${am_cv_langinfo_codeset+set}" = set; then : |
| 5070 | $as_echo_n "(cached) " >&6 |
| 5071 | else |
| 5072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5073 | /* end confdefs.h. */ |
| 5074 | #include <langinfo.h> |
| 5075 | int |
| 5076 | main () |
| 5077 | { |
| 5078 | char* cs = nl_langinfo(CODESET); |
| 5079 | ; |
| 5080 | return 0; |
| 5081 | } |
| 5082 | _ACEOF |
| 5083 | if ac_fn_c_try_link "$LINENO"; then : |
| 5084 | am_cv_langinfo_codeset=yes |
| 5085 | else |
| 5086 | am_cv_langinfo_codeset=no |
| 5087 | fi |
| 5088 | rm -f core conftest.err conftest.$ac_objext \ |
| 5089 | conftest$ac_exeext conftest.$ac_ext |
| 5090 | |
| 5091 | fi |
| 5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 5093 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 5094 | if test $am_cv_langinfo_codeset = yes; then |
| 5095 | |
| 5096 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 5097 | |
| 5098 | fi |
| 5099 | |
| 5100 | |
| 5101 | for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h |
| 5102 | do : |
| 5103 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5104 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5105 | eval as_val=\$$as_ac_Header |
| 5106 | if test "x$as_val" = x""yes; then : |
| 5107 | cat >>confdefs.h <<_ACEOF |
| 5108 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5109 | _ACEOF |
| 5110 | |
| 5111 | fi |
| 5112 | |
| 5113 | done |
| 5114 | |
| 5115 | |
| 5116 | for ac_func in fdwalk getrlimit pipe pipe2 socketpair |
| 5117 | do : |
| 5118 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5119 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5120 | eval as_val=\$$as_ac_var |
| 5121 | if test "x$as_val" = x""yes; then : |
| 5122 | cat >>confdefs.h <<_ACEOF |
| 5123 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5124 | _ACEOF |
| 5125 | |
| 5126 | fi |
| 5127 | done |
| 5128 | |
| 5129 | |
| 5130 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" |
| 5131 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : |
| 5132 | ac_have_decl=1 |
| 5133 | else |
| 5134 | ac_have_decl=0 |
| 5135 | fi |
| 5136 | |
| 5137 | cat >>confdefs.h <<_ACEOF |
| 5138 | #define HAVE_DECL_STRERROR $ac_have_decl |
| 5139 | _ACEOF |
| 5140 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
| 5141 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : |
| 5142 | ac_have_decl=1 |
| 5143 | else |
| 5144 | ac_have_decl=0 |
| 5145 | fi |
| 5146 | |
| 5147 | cat >>confdefs.h <<_ACEOF |
| 5148 | #define HAVE_DECL_STRSTR $ac_have_decl |
| 5149 | _ACEOF |
| 5150 | |
| 5151 | |
| 5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 |
| 5153 | $as_echo_n "checking for sigsetjmp... " >&6; } |
| 5154 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then : |
| 5155 | $as_echo_n "(cached) " >&6 |
| 5156 | else |
| 5157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5158 | /* end confdefs.h. */ |
| 5159 | |
| 5160 | #include <setjmp.h> |
| 5161 | |
| 5162 | int |
| 5163 | main () |
| 5164 | { |
| 5165 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
| 5166 | ; |
| 5167 | return 0; |
| 5168 | } |
| 5169 | _ACEOF |
| 5170 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5171 | gdb_cv_func_sigsetjmp=yes |
| 5172 | else |
| 5173 | gdb_cv_func_sigsetjmp=no |
| 5174 | fi |
| 5175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5176 | fi |
| 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 |
| 5178 | $as_echo "$gdb_cv_func_sigsetjmp" >&6; } |
| 5179 | if test $gdb_cv_func_sigsetjmp = yes; then |
| 5180 | |
| 5181 | $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h |
| 5182 | |
| 5183 | fi |
| 5184 | |
| 5185 | |
| 5186 | # Check for UST |
| 5187 | ustlibs="" |
| 5188 | ustinc="" |
| 5189 | |
| 5190 | |
| 5191 | # Check whether --with-ust was given. |
| 5192 | if test "${with_ust+set}" = set; then : |
| 5193 | withval=$with_ust; |
| 5194 | fi |
| 5195 | |
| 5196 | |
| 5197 | # Check whether --with-ust_include was given. |
| 5198 | if test "${with_ust_include+set}" = set; then : |
| 5199 | withval=$with_ust_include; |
| 5200 | fi |
| 5201 | |
| 5202 | |
| 5203 | # Check whether --with-ust_lib was given. |
| 5204 | if test "${with_ust_lib+set}" = set; then : |
| 5205 | withval=$with_ust_lib; |
| 5206 | fi |
| 5207 | |
| 5208 | |
| 5209 | case $with_ust in |
| 5210 | no) |
| 5211 | ustlibs= |
| 5212 | ustinc= |
| 5213 | ;; |
| 5214 | "" | yes) |
| 5215 | ustlibs=" -lust " |
| 5216 | ustinc="" |
| 5217 | ;; |
| 5218 | *) |
| 5219 | ustlibs="-L$with_ust/lib -lust" |
| 5220 | ustinc="-I$with_ust/include " |
| 5221 | ;; |
| 5222 | esac |
| 5223 | if test "x$with_ust_include" != x; then |
| 5224 | ustinc="-I$with_ust_include " |
| 5225 | fi |
| 5226 | if test "x$with_ust_lib" != x; then |
| 5227 | ustlibs="-L$with_ust_lib -lust" |
| 5228 | fi |
| 5229 | |
| 5230 | if test "x$with_ust" != "xno"; then |
| 5231 | saved_CFLAGS="$CFLAGS" |
| 5232 | CFLAGS="$CFLAGS $ustinc" |
| 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5 |
| 5234 | $as_echo_n "checking for ust... " >&6; } |
| 5235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5236 | /* end confdefs.h. */ |
| 5237 | |
| 5238 | #define CONFIG_UST_GDB_INTEGRATION |
| 5239 | #include <ust/ust.h> |
| 5240 | |
| 5241 | int |
| 5242 | main () |
| 5243 | { |
| 5244 | |
| 5245 | ; |
| 5246 | return 0; |
| 5247 | } |
| 5248 | _ACEOF |
| 5249 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5251 | $as_echo "yes" >&6; }; |
| 5252 | $as_echo "#define HAVE_UST 1" >>confdefs.h |
| 5253 | |
| 5254 | else |
| 5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5256 | $as_echo "no" >&6; }; ustlibs= ; ustinc= |
| 5257 | fi |
| 5258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5259 | CFLAGS="$saved_CFLAGS" |
| 5260 | fi |
| 5261 | |
| 5262 | # Flags needed for UST |
| 5263 | |
| 5264 | |
| 5265 | |
| 5266 | # Check whether --enable-werror was given. |
| 5267 | if test "${enable_werror+set}" = set; then : |
| 5268 | enableval=$enable_werror; case "${enableval}" in |
| 5269 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 5270 | no | n) ERROR_ON_WARNING="no" ;; |
| 5271 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
| 5272 | esac |
| 5273 | fi |
| 5274 | |
| 5275 | |
| 5276 | # Enable -Werror by default when using gcc. Turn it off for releases. |
| 5277 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then |
| 5278 | ERROR_ON_WARNING=yes |
| 5279 | fi |
| 5280 | |
| 5281 | WERROR_CFLAGS="" |
| 5282 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 5283 | WERROR_CFLAGS="-Werror" |
| 5284 | fi |
| 5285 | |
| 5286 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
| 5287 | -Wformat-nonliteral -Wno-char-subscripts -Wempty-body" |
| 5288 | |
| 5289 | WARN_CFLAGS="" |
| 5290 | if test "x$GCC" = xyes |
| 5291 | then |
| 5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 |
| 5293 | $as_echo_n "checking compiler warning flags... " >&6; } |
| 5294 | # Separate out the -Werror flag as some files just cannot be |
| 5295 | # compiled with it enabled. |
| 5296 | for w in ${build_warnings}; do |
| 5297 | case $w in |
| 5298 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 5299 | *) # Check that GCC accepts it |
| 5300 | saved_CFLAGS="$CFLAGS" |
| 5301 | CFLAGS="$CFLAGS $w" |
| 5302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5303 | /* end confdefs.h. */ |
| 5304 | |
| 5305 | int |
| 5306 | main () |
| 5307 | { |
| 5308 | |
| 5309 | ; |
| 5310 | return 0; |
| 5311 | } |
| 5312 | _ACEOF |
| 5313 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5314 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 5315 | fi |
| 5316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5317 | CFLAGS="$saved_CFLAGS" |
| 5318 | esac |
| 5319 | done |
| 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
| 5321 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } |
| 5322 | fi |
| 5323 | |
| 5324 | |
| 5325 | |
| 5326 | old_LIBS="$LIBS" |
| 5327 | LIBS="$LIBS -ldl" |
| 5328 | for ac_func in dladdr |
| 5329 | do : |
| 5330 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
| 5331 | if test "x$ac_cv_func_dladdr" = x""yes; then : |
| 5332 | cat >>confdefs.h <<_ACEOF |
| 5333 | #define HAVE_DLADDR 1 |
| 5334 | _ACEOF |
| 5335 | |
| 5336 | fi |
| 5337 | done |
| 5338 | |
| 5339 | LIBS="$old_LIBS" |
| 5340 | |
| 5341 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" |
| 5342 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : |
| 5343 | ac_have_decl=1 |
| 5344 | else |
| 5345 | ac_have_decl=0 |
| 5346 | fi |
| 5347 | |
| 5348 | cat >>confdefs.h <<_ACEOF |
| 5349 | #define HAVE_DECL_STRERROR $ac_have_decl |
| 5350 | _ACEOF |
| 5351 | ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default" |
| 5352 | if test "x$ac_cv_have_decl_perror" = x""yes; then : |
| 5353 | ac_have_decl=1 |
| 5354 | else |
| 5355 | ac_have_decl=0 |
| 5356 | fi |
| 5357 | |
| 5358 | cat >>confdefs.h <<_ACEOF |
| 5359 | #define HAVE_DECL_PERROR $ac_have_decl |
| 5360 | _ACEOF |
| 5361 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
| 5362 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : |
| 5363 | ac_have_decl=1 |
| 5364 | else |
| 5365 | ac_have_decl=0 |
| 5366 | fi |
| 5367 | |
| 5368 | cat >>confdefs.h <<_ACEOF |
| 5369 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
| 5370 | _ACEOF |
| 5371 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
| 5372 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : |
| 5373 | ac_have_decl=1 |
| 5374 | else |
| 5375 | ac_have_decl=0 |
| 5376 | fi |
| 5377 | |
| 5378 | cat >>confdefs.h <<_ACEOF |
| 5379 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| 5380 | _ACEOF |
| 5381 | |
| 5382 | |
| 5383 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
| 5384 | #include <sys/socket.h> |
| 5385 | |
| 5386 | " |
| 5387 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
| 5388 | |
| 5389 | cat >>confdefs.h <<_ACEOF |
| 5390 | #define HAVE_SOCKLEN_T 1 |
| 5391 | _ACEOF |
| 5392 | |
| 5393 | |
| 5394 | fi |
| 5395 | |
| 5396 | |
| 5397 | ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h> |
| 5398 | |
| 5399 | " |
| 5400 | if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then : |
| 5401 | |
| 5402 | cat >>confdefs.h <<_ACEOF |
| 5403 | #define HAVE_ELF32_AUXV_T 1 |
| 5404 | _ACEOF |
| 5405 | |
| 5406 | |
| 5407 | fi |
| 5408 | ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h> |
| 5409 | |
| 5410 | " |
| 5411 | if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then : |
| 5412 | |
| 5413 | cat >>confdefs.h <<_ACEOF |
| 5414 | #define HAVE_ELF64_AUXV_T 1 |
| 5415 | _ACEOF |
| 5416 | |
| 5417 | |
| 5418 | fi |
| 5419 | |
| 5420 | |
| 5421 | |
| 5422 | |
| 5423 | # Check whether --with-pkgversion was given. |
| 5424 | if test "${with_pkgversion+set}" = set; then : |
| 5425 | withval=$with_pkgversion; case "$withval" in |
| 5426 | yes) as_fn_error "package version not specified" "$LINENO" 5 ;; |
| 5427 | no) PKGVERSION= ;; |
| 5428 | *) PKGVERSION="($withval) " ;; |
| 5429 | esac |
| 5430 | else |
| 5431 | PKGVERSION="(GDB) " |
| 5432 | |
| 5433 | fi |
| 5434 | |
| 5435 | |
| 5436 | |
| 5437 | |
| 5438 | |
| 5439 | # Check whether --with-bugurl was given. |
| 5440 | if test "${with_bugurl+set}" = set; then : |
| 5441 | withval=$with_bugurl; case "$withval" in |
| 5442 | yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; |
| 5443 | no) BUGURL= |
| 5444 | ;; |
| 5445 | *) BUGURL="$withval" |
| 5446 | ;; |
| 5447 | esac |
| 5448 | else |
| 5449 | BUGURL="http://www.gnu.org/software/gdb/bugs/" |
| 5450 | |
| 5451 | fi |
| 5452 | |
| 5453 | case ${BUGURL} in |
| 5454 | "") |
| 5455 | REPORT_BUGS_TO= |
| 5456 | REPORT_BUGS_TEXI= |
| 5457 | ;; |
| 5458 | *) |
| 5459 | REPORT_BUGS_TO="<$BUGURL>" |
| 5460 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} |
| 5461 | ;; |
| 5462 | esac; |
| 5463 | |
| 5464 | |
| 5465 | |
| 5466 | |
| 5467 | cat >>confdefs.h <<_ACEOF |
| 5468 | #define PKGVERSION "$PKGVERSION" |
| 5469 | _ACEOF |
| 5470 | |
| 5471 | |
| 5472 | cat >>confdefs.h <<_ACEOF |
| 5473 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" |
| 5474 | _ACEOF |
| 5475 | |
| 5476 | |
| 5477 | # Check for various supplementary target information (beyond the |
| 5478 | # triplet) which might affect the choices in configure.srv. |
| 5479 | case "${target}" in |
| 5480 | i[34567]86-*-linux*) |
| 5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5 |
| 5482 | $as_echo_n "checking if building for x86-64... " >&6; } |
| 5483 | if test "${gdb_cv_i386_is_x86_64+set}" = set; then : |
| 5484 | $as_echo_n "(cached) " >&6 |
| 5485 | else |
| 5486 | save_CPPFLAGS="$CPPFLAGS" |
| 5487 | CPPFLAGS="$CPPFLAGS $CFLAGS" |
| 5488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5489 | /* end confdefs.h. */ |
| 5490 | |
| 5491 | #if __x86_64__ |
| 5492 | got it |
| 5493 | #endif |
| 5494 | |
| 5495 | _ACEOF |
| 5496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5497 | $EGREP "got it" >/dev/null 2>&1; then : |
| 5498 | gdb_cv_i386_is_x86_64=yes |
| 5499 | else |
| 5500 | gdb_cv_i386_is_x86_64=no |
| 5501 | fi |
| 5502 | rm -f conftest* |
| 5503 | |
| 5504 | CPPFLAGS="$save_CPPFLAGS" |
| 5505 | fi |
| 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5 |
| 5507 | $as_echo "$gdb_cv_i386_is_x86_64" >&6; } |
| 5508 | ;; |
| 5509 | m68k-*-*) |
| 5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5 |
| 5511 | $as_echo_n "checking if building for Coldfire... " >&6; } |
| 5512 | if test "${gdb_cv_m68k_is_coldfire+set}" = set; then : |
| 5513 | $as_echo_n "(cached) " >&6 |
| 5514 | else |
| 5515 | save_CPPFLAGS="$CPPFLAGS" |
| 5516 | CPPFLAGS="$CPPFLAGS $CFLAGS" |
| 5517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5518 | /* end confdefs.h. */ |
| 5519 | |
| 5520 | #ifdef __mcoldfire__ |
| 5521 | got it |
| 5522 | #endif |
| 5523 | |
| 5524 | _ACEOF |
| 5525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5526 | $EGREP "got it" >/dev/null 2>&1; then : |
| 5527 | gdb_cv_m68k_is_coldfire=yes |
| 5528 | else |
| 5529 | gdb_cv_m68k_is_coldfire=no |
| 5530 | fi |
| 5531 | rm -f conftest* |
| 5532 | |
| 5533 | CPPFLAGS="$save_CPPFLAGS" |
| 5534 | fi |
| 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5 |
| 5536 | $as_echo "$gdb_cv_m68k_is_coldfire" >&6; } |
| 5537 | ;; |
| 5538 | esac |
| 5539 | |
| 5540 | . ${srcdir}/configure.srv |
| 5541 | |
| 5542 | if test "${srv_mingwce}" = "yes"; then |
| 5543 | LIBS="$LIBS -lws2" |
| 5544 | elif test "${srv_mingw}" = "yes"; then |
| 5545 | LIBS="$LIBS -lws2_32" |
| 5546 | elif test "${srv_qnx}" = "yes"; then |
| 5547 | LIBS="$LIBS -lsocket" |
| 5548 | elif test "${srv_lynxos}" = "yes"; then |
| 5549 | LIBS="$LIBS -lnetinet" |
| 5550 | fi |
| 5551 | |
| 5552 | if test "${srv_mingw}" = "yes"; then |
| 5553 | |
| 5554 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
| 5555 | |
| 5556 | fi |
| 5557 | |
| 5558 | if test "${srv_linux_usrregs}" = "yes"; then |
| 5559 | |
| 5560 | $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h |
| 5561 | |
| 5562 | fi |
| 5563 | |
| 5564 | if test "${srv_linux_regsets}" = "yes"; then |
| 5565 | |
| 5566 | $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h |
| 5567 | |
| 5568 | |
| 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 |
| 5570 | $as_echo_n "checking for PTRACE_GETREGS... " >&6; } |
| 5571 | if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then : |
| 5572 | $as_echo_n "(cached) " >&6 |
| 5573 | else |
| 5574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5575 | /* end confdefs.h. */ |
| 5576 | #include <sys/ptrace.h> |
| 5577 | int |
| 5578 | main () |
| 5579 | { |
| 5580 | PTRACE_GETREGS; |
| 5581 | ; |
| 5582 | return 0; |
| 5583 | } |
| 5584 | _ACEOF |
| 5585 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5586 | gdbsrv_cv_have_ptrace_getregs=yes |
| 5587 | else |
| 5588 | gdbsrv_cv_have_ptrace_getregs=no |
| 5589 | fi |
| 5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5591 | fi |
| 5592 | |
| 5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5 |
| 5594 | $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; } |
| 5595 | if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then |
| 5596 | |
| 5597 | $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h |
| 5598 | |
| 5599 | fi |
| 5600 | |
| 5601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 |
| 5602 | $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } |
| 5603 | if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then : |
| 5604 | $as_echo_n "(cached) " >&6 |
| 5605 | else |
| 5606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5607 | /* end confdefs.h. */ |
| 5608 | #include <sys/ptrace.h> |
| 5609 | int |
| 5610 | main () |
| 5611 | { |
| 5612 | PTRACE_GETFPXREGS; |
| 5613 | ; |
| 5614 | return 0; |
| 5615 | } |
| 5616 | _ACEOF |
| 5617 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5618 | gdbsrv_cv_have_ptrace_getfpxregs=yes |
| 5619 | else |
| 5620 | gdbsrv_cv_have_ptrace_getfpxregs=no |
| 5621 | fi |
| 5622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5623 | fi |
| 5624 | |
| 5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5 |
| 5626 | $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; } |
| 5627 | if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then |
| 5628 | |
| 5629 | $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h |
| 5630 | |
| 5631 | fi |
| 5632 | fi |
| 5633 | |
| 5634 | if test "${srv_linux_btrace}" = "yes"; then |
| 5635 | |
| 5636 | $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h |
| 5637 | |
| 5638 | fi |
| 5639 | |
| 5640 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 |
| 5642 | $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } |
| 5643 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then : |
| 5644 | $as_echo_n "(cached) " >&6 |
| 5645 | else |
| 5646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5647 | /* end confdefs.h. */ |
| 5648 | |
| 5649 | #define _SYSCALL32 |
| 5650 | /* Needed for new procfs interface on sparc-solaris. */ |
| 5651 | #define _STRUCTURED_PROC 1 |
| 5652 | #include <sys/procfs.h> |
| 5653 | int |
| 5654 | main () |
| 5655 | { |
| 5656 | lwpid_t avar |
| 5657 | ; |
| 5658 | return 0; |
| 5659 | } |
| 5660 | _ACEOF |
| 5661 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5662 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 5663 | else |
| 5664 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 5665 | |
| 5666 | fi |
| 5667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5668 | fi |
| 5669 | |
| 5670 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 5671 | |
| 5672 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h |
| 5673 | |
| 5674 | fi |
| 5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
| 5676 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } |
| 5677 | |
| 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 |
| 5679 | $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } |
| 5680 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then : |
| 5681 | $as_echo_n "(cached) " >&6 |
| 5682 | else |
| 5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5684 | /* end confdefs.h. */ |
| 5685 | |
| 5686 | #define _SYSCALL32 |
| 5687 | /* Needed for new procfs interface on sparc-solaris. */ |
| 5688 | #define _STRUCTURED_PROC 1 |
| 5689 | #include <sys/procfs.h> |
| 5690 | int |
| 5691 | main () |
| 5692 | { |
| 5693 | psaddr_t avar |
| 5694 | ; |
| 5695 | return 0; |
| 5696 | } |
| 5697 | _ACEOF |
| 5698 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5699 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 5700 | else |
| 5701 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 5702 | |
| 5703 | fi |
| 5704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5705 | fi |
| 5706 | |
| 5707 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 5708 | |
| 5709 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h |
| 5710 | |
| 5711 | fi |
| 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
| 5713 | $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } |
| 5714 | |
| 5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 |
| 5716 | $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } |
| 5717 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then : |
| 5718 | $as_echo_n "(cached) " >&6 |
| 5719 | else |
| 5720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5721 | /* end confdefs.h. */ |
| 5722 | |
| 5723 | #define _SYSCALL32 |
| 5724 | /* Needed for new procfs interface on sparc-solaris. */ |
| 5725 | #define _STRUCTURED_PROC 1 |
| 5726 | #include <sys/procfs.h> |
| 5727 | int |
| 5728 | main () |
| 5729 | { |
| 5730 | prgregset_t avar |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5736 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 5737 | else |
| 5738 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 5739 | |
| 5740 | fi |
| 5741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5742 | fi |
| 5743 | |
| 5744 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 5745 | |
| 5746 | $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h |
| 5747 | |
| 5748 | fi |
| 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
| 5750 | $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } |
| 5751 | |
| 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 |
| 5753 | $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } |
| 5754 | if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then : |
| 5755 | $as_echo_n "(cached) " >&6 |
| 5756 | else |
| 5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5758 | /* end confdefs.h. */ |
| 5759 | |
| 5760 | #define _SYSCALL32 |
| 5761 | /* Needed for new procfs interface on sparc-solaris. */ |
| 5762 | #define _STRUCTURED_PROC 1 |
| 5763 | #include <sys/procfs.h> |
| 5764 | int |
| 5765 | main () |
| 5766 | { |
| 5767 | elf_fpregset_t avar |
| 5768 | ; |
| 5769 | return 0; |
| 5770 | } |
| 5771 | _ACEOF |
| 5772 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5773 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes |
| 5774 | else |
| 5775 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=no |
| 5776 | |
| 5777 | fi |
| 5778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5779 | fi |
| 5780 | |
| 5781 | if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then |
| 5782 | |
| 5783 | $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h |
| 5784 | |
| 5785 | fi |
| 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 |
| 5787 | $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } |
| 5788 | |
| 5789 | fi |
| 5790 | |
| 5791 | if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then |
| 5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5 |
| 5793 | $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; } |
| 5794 | if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then : |
| 5795 | $as_echo_n "(cached) " >&6 |
| 5796 | else |
| 5797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5798 | /* end confdefs.h. */ |
| 5799 | |
| 5800 | #include <thread_db.h> |
| 5801 | int |
| 5802 | main () |
| 5803 | { |
| 5804 | lwpid_t avar |
| 5805 | ; |
| 5806 | return 0; |
| 5807 | } |
| 5808 | _ACEOF |
| 5809 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5810 | gdbserver_cv_have_thread_db_type_lwpid_t=yes |
| 5811 | else |
| 5812 | gdbserver_cv_have_thread_db_type_lwpid_t=no |
| 5813 | |
| 5814 | fi |
| 5815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5816 | fi |
| 5817 | |
| 5818 | if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then |
| 5819 | |
| 5820 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h |
| 5821 | |
| 5822 | fi |
| 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5 |
| 5824 | $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; } |
| 5825 | |
| 5826 | fi |
| 5827 | |
| 5828 | if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then |
| 5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5 |
| 5830 | $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; } |
| 5831 | if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then : |
| 5832 | $as_echo_n "(cached) " >&6 |
| 5833 | else |
| 5834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5835 | /* end confdefs.h. */ |
| 5836 | |
| 5837 | #include <thread_db.h> |
| 5838 | int |
| 5839 | main () |
| 5840 | { |
| 5841 | psaddr_t avar |
| 5842 | ; |
| 5843 | return 0; |
| 5844 | } |
| 5845 | _ACEOF |
| 5846 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5847 | gdbserver_cv_have_thread_db_type_psaddr_t=yes |
| 5848 | else |
| 5849 | gdbserver_cv_have_thread_db_type_psaddr_t=no |
| 5850 | |
| 5851 | fi |
| 5852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5853 | fi |
| 5854 | |
| 5855 | if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then |
| 5856 | |
| 5857 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h |
| 5858 | |
| 5859 | fi |
| 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5 |
| 5861 | $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; } |
| 5862 | |
| 5863 | fi |
| 5864 | |
| 5865 | old_LIBS="$LIBS" |
| 5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 5867 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 5868 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 5869 | $as_echo_n "(cached) " >&6 |
| 5870 | else |
| 5871 | ac_check_lib_save_LIBS=$LIBS |
| 5872 | LIBS="-ldl $LIBS" |
| 5873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5874 | /* end confdefs.h. */ |
| 5875 | |
| 5876 | /* Override any GCC internal prototype to avoid an error. |
| 5877 | Use char because int might match the return type of a GCC |
| 5878 | builtin and then its argument prototype would still apply. */ |
| 5879 | #ifdef __cplusplus |
| 5880 | extern "C" |
| 5881 | #endif |
| 5882 | char dlopen (); |
| 5883 | int |
| 5884 | main () |
| 5885 | { |
| 5886 | return dlopen (); |
| 5887 | ; |
| 5888 | return 0; |
| 5889 | } |
| 5890 | _ACEOF |
| 5891 | if ac_fn_c_try_link "$LINENO"; then : |
| 5892 | ac_cv_lib_dl_dlopen=yes |
| 5893 | else |
| 5894 | ac_cv_lib_dl_dlopen=no |
| 5895 | fi |
| 5896 | rm -f core conftest.err conftest.$ac_objext \ |
| 5897 | conftest$ac_exeext conftest.$ac_ext |
| 5898 | LIBS=$ac_check_lib_save_LIBS |
| 5899 | fi |
| 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 5901 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 5902 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 5903 | cat >>confdefs.h <<_ACEOF |
| 5904 | #define HAVE_LIBDL 1 |
| 5905 | _ACEOF |
| 5906 | |
| 5907 | LIBS="-ldl $LIBS" |
| 5908 | |
| 5909 | fi |
| 5910 | |
| 5911 | LIBS="$old_LIBS" |
| 5912 | |
| 5913 | srv_thread_depfiles= |
| 5914 | srv_libs= |
| 5915 | |
| 5916 | if test "$srv_linux_thread_db" = "yes"; then |
| 5917 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
| 5918 | srv_libs="-ldl" |
| 5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5 |
| 5920 | $as_echo_n "checking for the dynamic export flag... " >&6; } |
| 5921 | old_LDFLAGS="$LDFLAGS" |
| 5922 | # Older GNU ld supports --export-dynamic but --dynamic-list may not be |
| 5923 | # supported there. |
| 5924 | RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" |
| 5925 | LDFLAGS="$LDFLAGS $RDYNAMIC" |
| 5926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5927 | /* end confdefs.h. */ |
| 5928 | |
| 5929 | int |
| 5930 | main () |
| 5931 | { |
| 5932 | |
| 5933 | ; |
| 5934 | return 0; |
| 5935 | } |
| 5936 | _ACEOF |
| 5937 | if ac_fn_c_try_link "$LINENO"; then : |
| 5938 | found="-Wl,--dynamic-list" |
| 5939 | RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' |
| 5940 | else |
| 5941 | RDYNAMIC="-rdynamic" |
| 5942 | LDFLAGS="$old_LDFLAGS $RDYNAMIC" |
| 5943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5944 | /* end confdefs.h. */ |
| 5945 | |
| 5946 | int |
| 5947 | main () |
| 5948 | { |
| 5949 | |
| 5950 | ; |
| 5951 | return 0; |
| 5952 | } |
| 5953 | _ACEOF |
| 5954 | if ac_fn_c_try_link "$LINENO"; then : |
| 5955 | found="-rdynamic" |
| 5956 | else |
| 5957 | found="no" |
| 5958 | RDYNAMIC="" |
| 5959 | fi |
| 5960 | rm -f core conftest.err conftest.$ac_objext \ |
| 5961 | conftest$ac_exeext conftest.$ac_ext |
| 5962 | fi |
| 5963 | rm -f core conftest.err conftest.$ac_objext \ |
| 5964 | conftest$ac_exeext conftest.$ac_ext |
| 5965 | |
| 5966 | LDFLAGS="$old_LDFLAGS" |
| 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
| 5968 | $as_echo "$found" >&6; } |
| 5969 | else |
| 5970 | srv_libs="-lthread_db" |
| 5971 | fi |
| 5972 | |
| 5973 | srv_thread_depfiles="thread-db.o proc-service.o" |
| 5974 | |
| 5975 | $as_echo "#define USE_THREAD_DB 1" >>confdefs.h |
| 5976 | |
| 5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5 |
| 5978 | $as_echo_n "checking for TD_VERSION... " >&6; } |
| 5979 | if test "${gdbsrv_cv_have_td_version+set}" = set; then : |
| 5980 | $as_echo_n "(cached) " >&6 |
| 5981 | else |
| 5982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5983 | /* end confdefs.h. */ |
| 5984 | #include <thread_db.h> |
| 5985 | int |
| 5986 | main () |
| 5987 | { |
| 5988 | TD_VERSION; |
| 5989 | ; |
| 5990 | return 0; |
| 5991 | } |
| 5992 | _ACEOF |
| 5993 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5994 | gdbsrv_cv_have_td_version=yes |
| 5995 | else |
| 5996 | gdbsrv_cv_have_td_version=no |
| 5997 | fi |
| 5998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5999 | fi |
| 6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5 |
| 6001 | $as_echo "$gdbsrv_cv_have_td_version" >&6; } |
| 6002 | if test $gdbsrv_cv_have_td_version = yes; then |
| 6003 | |
| 6004 | $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h |
| 6005 | |
| 6006 | fi |
| 6007 | fi |
| 6008 | |
| 6009 | |
| 6010 | # Check whether --with-libthread-db was given. |
| 6011 | if test "${with_libthread_db+set}" = set; then : |
| 6012 | withval=$with_libthread_db; srv_libthread_db_path="${withval}" |
| 6013 | srv_libs="$srv_libthread_db_path" |
| 6014 | |
| 6015 | fi |
| 6016 | |
| 6017 | |
| 6018 | if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then |
| 6019 | |
| 6020 | $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h |
| 6021 | |
| 6022 | fi |
| 6023 | |
| 6024 | if test "$srv_xmlfiles" != ""; then |
| 6025 | srv_xmlbuiltin="xml-builtin.o" |
| 6026 | |
| 6027 | $as_echo "#define USE_XML 1" >>confdefs.h |
| 6028 | |
| 6029 | |
| 6030 | tmp_xmlfiles=$srv_xmlfiles |
| 6031 | srv_xmlfiles="" |
| 6032 | for f in $tmp_xmlfiles; do |
| 6033 | srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f" |
| 6034 | done |
| 6035 | fi |
| 6036 | |
| 6037 | GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles" |
| 6038 | GDBSERVER_LIBS="$srv_libs" |
| 6039 | |
| 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 |
| 6041 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } |
| 6042 | if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then : |
| 6043 | $as_echo_n "(cached) " >&6 |
| 6044 | else |
| 6045 | |
| 6046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6047 | /* end confdefs.h. */ |
| 6048 | |
| 6049 | int |
| 6050 | main () |
| 6051 | { |
| 6052 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); |
| 6053 | ; |
| 6054 | return 0; |
| 6055 | } |
| 6056 | _ACEOF |
| 6057 | if ac_fn_c_try_link "$LINENO"; then : |
| 6058 | gdbsrv_cv_have_sync_builtins=yes |
| 6059 | else |
| 6060 | gdbsrv_cv_have_sync_builtins=no |
| 6061 | fi |
| 6062 | rm -f core conftest.err conftest.$ac_objext \ |
| 6063 | conftest$ac_exeext conftest.$ac_ext |
| 6064 | fi |
| 6065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5 |
| 6066 | $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; } |
| 6067 | if test $gdbsrv_cv_have_sync_builtins = yes; then |
| 6068 | |
| 6069 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h |
| 6070 | |
| 6071 | fi |
| 6072 | |
| 6073 | saved_cflags="$CFLAGS" |
| 6074 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6076 | /* end confdefs.h. */ |
| 6077 | |
| 6078 | int |
| 6079 | main () |
| 6080 | { |
| 6081 | |
| 6082 | ; |
| 6083 | return 0; |
| 6084 | } |
| 6085 | _ACEOF |
| 6086 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6087 | gdbsrv_cv_have_visibility_hidden=yes |
| 6088 | else |
| 6089 | gdbsrv_cv_have_visibility_hidden=no |
| 6090 | fi |
| 6091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6092 | CFLAGS="$saved_cflags" |
| 6093 | |
| 6094 | ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> |
| 6095 | " |
| 6096 | if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then : |
| 6097 | ac_have_decl=1 |
| 6098 | else |
| 6099 | ac_have_decl=0 |
| 6100 | fi |
| 6101 | |
| 6102 | cat >>confdefs.h <<_ACEOF |
| 6103 | #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl |
| 6104 | _ACEOF |
| 6105 | |
| 6106 | |
| 6107 | if test "$cross_compiling" = yes; then : |
| 6108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6109 | /* end confdefs.h. */ |
| 6110 | #include <sys/personality.h> |
| 6111 | int |
| 6112 | main () |
| 6113 | { |
| 6114 | |
| 6115 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
| 6116 | # define ADDR_NO_RANDOMIZE 0x0040000 |
| 6117 | # endif |
| 6118 | /* Test the flag could be set and stays set. */ |
| 6119 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); |
| 6120 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) |
| 6121 | return 1 |
| 6122 | ; |
| 6123 | return 0; |
| 6124 | } |
| 6125 | _ACEOF |
| 6126 | if ac_fn_c_try_link "$LINENO"; then : |
| 6127 | gdbsrv_cv_have_personality=true |
| 6128 | else |
| 6129 | gdbsrv_cv_have_personality=false |
| 6130 | fi |
| 6131 | rm -f core conftest.err conftest.$ac_objext \ |
| 6132 | conftest$ac_exeext conftest.$ac_ext |
| 6133 | else |
| 6134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6135 | /* end confdefs.h. */ |
| 6136 | #include <sys/personality.h> |
| 6137 | int |
| 6138 | main () |
| 6139 | { |
| 6140 | |
| 6141 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
| 6142 | # define ADDR_NO_RANDOMIZE 0x0040000 |
| 6143 | # endif |
| 6144 | /* Test the flag could be set and stays set. */ |
| 6145 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); |
| 6146 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) |
| 6147 | return 1 |
| 6148 | ; |
| 6149 | return 0; |
| 6150 | } |
| 6151 | _ACEOF |
| 6152 | if ac_fn_c_try_run "$LINENO"; then : |
| 6153 | gdbsrv_cv_have_personality=true |
| 6154 | else |
| 6155 | gdbsrv_cv_have_personality=false |
| 6156 | fi |
| 6157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6158 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6159 | fi |
| 6160 | |
| 6161 | if $gdbsrv_cv_have_personality |
| 6162 | then |
| 6163 | |
| 6164 | $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h |
| 6165 | |
| 6166 | fi |
| 6167 | |
| 6168 | |
| 6169 | IPA_DEPFILES="" |
| 6170 | extra_libraries="" |
| 6171 | |
| 6172 | # check whether to enable the inprocess agent |
| 6173 | if test "$ipa_obj" != "" \ |
| 6174 | -a "$gdbsrv_cv_have_sync_builtins" = yes \ |
| 6175 | -a "$gdbsrv_cv_have_visibility_hidden" = yes; then |
| 6176 | have_ipa=true |
| 6177 | else |
| 6178 | have_ipa=false |
| 6179 | fi |
| 6180 | |
| 6181 | # Check whether --enable-inprocess-agent was given. |
| 6182 | if test "${enable_inprocess_agent+set}" = set; then : |
| 6183 | enableval=$enable_inprocess_agent; case "$enableval" in |
| 6184 | yes) want_ipa=true ;; |
| 6185 | no) want_ipa=false ;; |
| 6186 | *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;; |
| 6187 | esac |
| 6188 | else |
| 6189 | want_ipa=$have_ipa |
| 6190 | fi |
| 6191 | |
| 6192 | |
| 6193 | if $want_ipa ; then |
| 6194 | if $have_ipa ; then |
| 6195 | IPA_DEPFILES="$ipa_obj" |
| 6196 | extra_libraries="$extra_libraries libinproctrace.so" |
| 6197 | else |
| 6198 | as_fn_error "inprocess agent not supported for this target" "$LINENO" 5 |
| 6199 | fi |
| 6200 | fi |
| 6201 | |
| 6202 | |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 | GNULIB=build-gnulib-gdbserver/import |
| 6210 | |
| 6211 | GNULIB_STDINT_H= |
| 6212 | if test x"$STDINT_H" != x; then |
| 6213 | GNULIB_STDINT_H=$GNULIB/$STDINT_H |
| 6214 | fi |
| 6215 | |
| 6216 | |
| 6217 | ac_config_files="$ac_config_files Makefile" |
| 6218 | |
| 6219 | ac_config_commands="$ac_config_commands default" |
| 6220 | |
| 6221 | cat >confcache <<\_ACEOF |
| 6222 | # This file is a shell script that caches the results of configure |
| 6223 | # tests run on this system so they can be shared between configure |
| 6224 | # scripts and configure runs, see configure's option --config-cache. |
| 6225 | # It is not useful on other systems. If it contains results you don't |
| 6226 | # want to keep, you may remove or edit it. |
| 6227 | # |
| 6228 | # config.status only pays attention to the cache file if you give it |
| 6229 | # the --recheck option to rerun configure. |
| 6230 | # |
| 6231 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 6232 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6233 | # following values. |
| 6234 | |
| 6235 | _ACEOF |
| 6236 | |
| 6237 | # The following way of writing the cache mishandles newlines in values, |
| 6238 | # but we know of no workaround that is simple, portable, and efficient. |
| 6239 | # So, we kill variables containing newlines. |
| 6240 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6241 | # and sets the high bit in the cache file unless we assign to the vars. |
| 6242 | ( |
| 6243 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 6244 | eval ac_val=\$$ac_var |
| 6245 | case $ac_val in #( |
| 6246 | *${as_nl}*) |
| 6247 | case $ac_var in #( |
| 6248 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 6249 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 6250 | esac |
| 6251 | case $ac_var in #( |
| 6252 | _ | IFS | as_nl) ;; #( |
| 6253 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 6254 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 6255 | esac ;; |
| 6256 | esac |
| 6257 | done |
| 6258 | |
| 6259 | (set) 2>&1 | |
| 6260 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 6261 | *${as_nl}ac_space=\ *) |
| 6262 | # `set' does not quote correctly, so add quotes: double-quote |
| 6263 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 6264 | sed -n \ |
| 6265 | "s/'/'\\\\''/g; |
| 6266 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 6267 | ;; #( |
| 6268 | *) |
| 6269 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6270 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 6271 | ;; |
| 6272 | esac | |
| 6273 | sort |
| 6274 | ) | |
| 6275 | sed ' |
| 6276 | /^ac_cv_env_/b end |
| 6277 | t clear |
| 6278 | :clear |
| 6279 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6280 | t end |
| 6281 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6282 | :end' >>confcache |
| 6283 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6284 | if test -w "$cache_file"; then |
| 6285 | test "x$cache_file" != "x/dev/null" && |
| 6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6287 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 6288 | cat confcache >$cache_file |
| 6289 | else |
| 6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6291 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 6292 | fi |
| 6293 | fi |
| 6294 | rm -f confcache |
| 6295 | |
| 6296 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6297 | # Let make expand exec_prefix. |
| 6298 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6299 | |
| 6300 | DEFS=-DHAVE_CONFIG_H |
| 6301 | |
| 6302 | ac_libobjs= |
| 6303 | ac_ltlibobjs= |
| 6304 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6305 | # 1. Remove the extension, and $U if already installed. |
| 6306 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 6307 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 6308 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6309 | # will be set to the directory where LIBOBJS objects are built. |
| 6310 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6311 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 6312 | done |
| 6313 | LIBOBJS=$ac_libobjs |
| 6314 | |
| 6315 | LTLIBOBJS=$ac_ltlibobjs |
| 6316 | |
| 6317 | |
| 6318 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 6319 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
| 6320 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6321 | fi |
| 6322 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
| 6323 | as_fn_error "conditional \"GMAKE\" was never defined. |
| 6324 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 6325 | fi |
| 6326 | |
| 6327 | : ${CONFIG_STATUS=./config.status} |
| 6328 | ac_write_fail=0 |
| 6329 | ac_clean_files_save=$ac_clean_files |
| 6330 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6332 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6333 | as_write_fail=0 |
| 6334 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 6335 | #! $SHELL |
| 6336 | # Generated by $as_me. |
| 6337 | # Run this file to recreate the current configuration. |
| 6338 | # Compiler output produced by configure, useful for debugging |
| 6339 | # configure, is in config.log if it exists. |
| 6340 | |
| 6341 | debug=false |
| 6342 | ac_cs_recheck=false |
| 6343 | ac_cs_silent=false |
| 6344 | |
| 6345 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6346 | export SHELL |
| 6347 | _ASEOF |
| 6348 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6349 | ## -------------------- ## |
| 6350 | ## M4sh Initialization. ## |
| 6351 | ## -------------------- ## |
| 6352 | |
| 6353 | # Be more Bourne compatible |
| 6354 | DUALCASE=1; export DUALCASE # for MKS sh |
| 6355 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 6356 | emulate sh |
| 6357 | NULLCMD=: |
| 6358 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 6359 | # is contrary to our usage. Disable this feature. |
| 6360 | alias -g '${1+"$@"}'='"$@"' |
| 6361 | setopt NO_GLOB_SUBST |
| 6362 | else |
| 6363 | case `(set -o) 2>/dev/null` in #( |
| 6364 | *posix*) : |
| 6365 | set -o posix ;; #( |
| 6366 | *) : |
| 6367 | ;; |
| 6368 | esac |
| 6369 | fi |
| 6370 | |
| 6371 | |
| 6372 | as_nl=' |
| 6373 | ' |
| 6374 | export as_nl |
| 6375 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6376 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6377 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6378 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6379 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6380 | # but without wasting forks for bash or zsh. |
| 6381 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6382 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6383 | as_echo='print -r --' |
| 6384 | as_echo_n='print -rn --' |
| 6385 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6386 | as_echo='printf %s\n' |
| 6387 | as_echo_n='printf %s' |
| 6388 | else |
| 6389 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6390 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6391 | as_echo_n='/usr/ucb/echo -n' |
| 6392 | else |
| 6393 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6394 | as_echo_n_body='eval |
| 6395 | arg=$1; |
| 6396 | case $arg in #( |
| 6397 | *"$as_nl"*) |
| 6398 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6399 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6400 | esac; |
| 6401 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6402 | ' |
| 6403 | export as_echo_n_body |
| 6404 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6405 | fi |
| 6406 | export as_echo_body |
| 6407 | as_echo='sh -c $as_echo_body as_echo' |
| 6408 | fi |
| 6409 | |
| 6410 | # The user is always right. |
| 6411 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6412 | PATH_SEPARATOR=: |
| 6413 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6414 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6415 | PATH_SEPARATOR=';' |
| 6416 | } |
| 6417 | fi |
| 6418 | |
| 6419 | |
| 6420 | # IFS |
| 6421 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6422 | # there to prevent editors from complaining about space-tab. |
| 6423 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6424 | # splitting by setting IFS to empty value.) |
| 6425 | IFS=" "" $as_nl" |
| 6426 | |
| 6427 | # Find who we are. Look in the path if we contain no directory separator. |
| 6428 | case $0 in #(( |
| 6429 | *[\\/]* ) as_myself=$0 ;; |
| 6430 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6431 | for as_dir in $PATH |
| 6432 | do |
| 6433 | IFS=$as_save_IFS |
| 6434 | test -z "$as_dir" && as_dir=. |
| 6435 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6436 | done |
| 6437 | IFS=$as_save_IFS |
| 6438 | |
| 6439 | ;; |
| 6440 | esac |
| 6441 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6442 | # in which case we are not to be found in the path. |
| 6443 | if test "x$as_myself" = x; then |
| 6444 | as_myself=$0 |
| 6445 | fi |
| 6446 | if test ! -f "$as_myself"; then |
| 6447 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6448 | exit 1 |
| 6449 | fi |
| 6450 | |
| 6451 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6452 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6453 | # suppresses any "Segmentation fault" message there. '((' could |
| 6454 | # trigger a bug in pdksh 5.2.14. |
| 6455 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6456 | do eval test x\${$as_var+set} = xset \ |
| 6457 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 6458 | done |
| 6459 | PS1='$ ' |
| 6460 | PS2='> ' |
| 6461 | PS4='+ ' |
| 6462 | |
| 6463 | # NLS nuisances. |
| 6464 | LC_ALL=C |
| 6465 | export LC_ALL |
| 6466 | LANGUAGE=C |
| 6467 | export LANGUAGE |
| 6468 | |
| 6469 | # CDPATH. |
| 6470 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6471 | |
| 6472 | |
| 6473 | # as_fn_error ERROR [LINENO LOG_FD] |
| 6474 | # --------------------------------- |
| 6475 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6476 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 6477 | # script with status $?, using 1 if that was 0. |
| 6478 | as_fn_error () |
| 6479 | { |
| 6480 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 6481 | if test "$3"; then |
| 6482 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6483 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 6484 | fi |
| 6485 | $as_echo "$as_me: error: $1" >&2 |
| 6486 | as_fn_exit $as_status |
| 6487 | } # as_fn_error |
| 6488 | |
| 6489 | |
| 6490 | # as_fn_set_status STATUS |
| 6491 | # ----------------------- |
| 6492 | # Set $? to STATUS, without forking. |
| 6493 | as_fn_set_status () |
| 6494 | { |
| 6495 | return $1 |
| 6496 | } # as_fn_set_status |
| 6497 | |
| 6498 | # as_fn_exit STATUS |
| 6499 | # ----------------- |
| 6500 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6501 | as_fn_exit () |
| 6502 | { |
| 6503 | set +e |
| 6504 | as_fn_set_status $1 |
| 6505 | exit $1 |
| 6506 | } # as_fn_exit |
| 6507 | |
| 6508 | # as_fn_unset VAR |
| 6509 | # --------------- |
| 6510 | # Portably unset VAR. |
| 6511 | as_fn_unset () |
| 6512 | { |
| 6513 | { eval $1=; unset $1;} |
| 6514 | } |
| 6515 | as_unset=as_fn_unset |
| 6516 | # as_fn_append VAR VALUE |
| 6517 | # ---------------------- |
| 6518 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6519 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6520 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6521 | # implementations. |
| 6522 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6523 | eval 'as_fn_append () |
| 6524 | { |
| 6525 | eval $1+=\$2 |
| 6526 | }' |
| 6527 | else |
| 6528 | as_fn_append () |
| 6529 | { |
| 6530 | eval $1=\$$1\$2 |
| 6531 | } |
| 6532 | fi # as_fn_append |
| 6533 | |
| 6534 | # as_fn_arith ARG... |
| 6535 | # ------------------ |
| 6536 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6537 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6538 | # must be portable across $(()) and expr. |
| 6539 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6540 | eval 'as_fn_arith () |
| 6541 | { |
| 6542 | as_val=$(( $* )) |
| 6543 | }' |
| 6544 | else |
| 6545 | as_fn_arith () |
| 6546 | { |
| 6547 | as_val=`expr "$@" || test $? -eq 1` |
| 6548 | } |
| 6549 | fi # as_fn_arith |
| 6550 | |
| 6551 | |
| 6552 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6553 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 6554 | as_expr=expr |
| 6555 | else |
| 6556 | as_expr=false |
| 6557 | fi |
| 6558 | |
| 6559 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 6560 | as_basename=basename |
| 6561 | else |
| 6562 | as_basename=false |
| 6563 | fi |
| 6564 | |
| 6565 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 6566 | as_dirname=dirname |
| 6567 | else |
| 6568 | as_dirname=false |
| 6569 | fi |
| 6570 | |
| 6571 | as_me=`$as_basename -- "$0" || |
| 6572 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6573 | X"$0" : 'X\(//\)$' \| \ |
| 6574 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 6575 | $as_echo X/"$0" | |
| 6576 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6577 | s//\1/ |
| 6578 | q |
| 6579 | } |
| 6580 | /^X\/\(\/\/\)$/{ |
| 6581 | s//\1/ |
| 6582 | q |
| 6583 | } |
| 6584 | /^X\/\(\/\).*/{ |
| 6585 | s//\1/ |
| 6586 | q |
| 6587 | } |
| 6588 | s/.*/./; q'` |
| 6589 | |
| 6590 | # Avoid depending upon Character Ranges. |
| 6591 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6592 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6593 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6594 | as_cr_digits='0123456789' |
| 6595 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 6596 | |
| 6597 | ECHO_C= ECHO_N= ECHO_T= |
| 6598 | case `echo -n x` in #((((( |
| 6599 | -n*) |
| 6600 | case `echo 'xy\c'` in |
| 6601 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 6602 | xy) ECHO_C='\c';; |
| 6603 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 6604 | ECHO_T=' ';; |
| 6605 | esac;; |
| 6606 | *) |
| 6607 | ECHO_N='-n';; |
| 6608 | esac |
| 6609 | |
| 6610 | rm -f conf$$ conf$$.exe conf$$.file |
| 6611 | if test -d conf$$.dir; then |
| 6612 | rm -f conf$$.dir/conf$$.file |
| 6613 | else |
| 6614 | rm -f conf$$.dir |
| 6615 | mkdir conf$$.dir 2>/dev/null |
| 6616 | fi |
| 6617 | if (echo >conf$$.file) 2>/dev/null; then |
| 6618 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6619 | as_ln_s='ln -s' |
| 6620 | # ... but there are two gotchas: |
| 6621 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 6622 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 6623 | # In both cases, we have to default to `cp -p'. |
| 6624 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 6625 | as_ln_s='cp -p' |
| 6626 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6627 | as_ln_s=ln |
| 6628 | else |
| 6629 | as_ln_s='cp -p' |
| 6630 | fi |
| 6631 | else |
| 6632 | as_ln_s='cp -p' |
| 6633 | fi |
| 6634 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6635 | rmdir conf$$.dir 2>/dev/null |
| 6636 | |
| 6637 | |
| 6638 | # as_fn_mkdir_p |
| 6639 | # ------------- |
| 6640 | # Create "$as_dir" as a directory, including parents if necessary. |
| 6641 | as_fn_mkdir_p () |
| 6642 | { |
| 6643 | |
| 6644 | case $as_dir in #( |
| 6645 | -*) as_dir=./$as_dir;; |
| 6646 | esac |
| 6647 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 6648 | as_dirs= |
| 6649 | while :; do |
| 6650 | case $as_dir in #( |
| 6651 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6652 | *) as_qdir=$as_dir;; |
| 6653 | esac |
| 6654 | as_dirs="'$as_qdir' $as_dirs" |
| 6655 | as_dir=`$as_dirname -- "$as_dir" || |
| 6656 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6657 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6658 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6659 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6660 | $as_echo X"$as_dir" | |
| 6661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6662 | s//\1/ |
| 6663 | q |
| 6664 | } |
| 6665 | /^X\(\/\/\)[^/].*/{ |
| 6666 | s//\1/ |
| 6667 | q |
| 6668 | } |
| 6669 | /^X\(\/\/\)$/{ |
| 6670 | s//\1/ |
| 6671 | q |
| 6672 | } |
| 6673 | /^X\(\/\).*/{ |
| 6674 | s//\1/ |
| 6675 | q |
| 6676 | } |
| 6677 | s/.*/./; q'` |
| 6678 | test -d "$as_dir" && break |
| 6679 | done |
| 6680 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6681 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 6682 | |
| 6683 | |
| 6684 | } # as_fn_mkdir_p |
| 6685 | if mkdir -p . 2>/dev/null; then |
| 6686 | as_mkdir_p='mkdir -p "$as_dir"' |
| 6687 | else |
| 6688 | test -d ./-p && rmdir ./-p |
| 6689 | as_mkdir_p=false |
| 6690 | fi |
| 6691 | |
| 6692 | if test -x / >/dev/null 2>&1; then |
| 6693 | as_test_x='test -x' |
| 6694 | else |
| 6695 | if ls -dL / >/dev/null 2>&1; then |
| 6696 | as_ls_L_option=L |
| 6697 | else |
| 6698 | as_ls_L_option= |
| 6699 | fi |
| 6700 | as_test_x=' |
| 6701 | eval sh -c '\'' |
| 6702 | if test -d "$1"; then |
| 6703 | test -d "$1/."; |
| 6704 | else |
| 6705 | case $1 in #( |
| 6706 | -*)set "./$1";; |
| 6707 | esac; |
| 6708 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 6709 | ???[sx]*):;;*)false;;esac;fi |
| 6710 | '\'' sh |
| 6711 | ' |
| 6712 | fi |
| 6713 | as_executable_p=$as_test_x |
| 6714 | |
| 6715 | # Sed expression to map a string onto a valid CPP name. |
| 6716 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 6717 | |
| 6718 | # Sed expression to map a string onto a valid variable name. |
| 6719 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 6720 | |
| 6721 | |
| 6722 | exec 6>&1 |
| 6723 | ## ----------------------------------- ## |
| 6724 | ## Main body of $CONFIG_STATUS script. ## |
| 6725 | ## ----------------------------------- ## |
| 6726 | _ASEOF |
| 6727 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 6728 | |
| 6729 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6730 | # Save the log message, to keep $0 and so on meaningful, and to |
| 6731 | # report actual input values of CONFIG_FILES etc. instead of their |
| 6732 | # values after options handling. |
| 6733 | ac_log=" |
| 6734 | This file was extended by $as_me, which was |
| 6735 | generated by GNU Autoconf 2.64. Invocation command line was |
| 6736 | |
| 6737 | CONFIG_FILES = $CONFIG_FILES |
| 6738 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6739 | CONFIG_LINKS = $CONFIG_LINKS |
| 6740 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6741 | $ $0 $@ |
| 6742 | |
| 6743 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6744 | " |
| 6745 | |
| 6746 | _ACEOF |
| 6747 | |
| 6748 | case $ac_config_files in *" |
| 6749 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6750 | esac |
| 6751 | |
| 6752 | case $ac_config_headers in *" |
| 6753 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6754 | esac |
| 6755 | |
| 6756 | |
| 6757 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6758 | # Files that config.status was made for. |
| 6759 | config_files="$ac_config_files" |
| 6760 | config_headers="$ac_config_headers" |
| 6761 | config_commands="$ac_config_commands" |
| 6762 | |
| 6763 | _ACEOF |
| 6764 | |
| 6765 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6766 | ac_cs_usage="\ |
| 6767 | \`$as_me' instantiates files and other configuration actions |
| 6768 | from templates according to the current configuration. Unless the files |
| 6769 | and actions are specified as TAGs, all are instantiated by default. |
| 6770 | |
| 6771 | Usage: $0 [OPTION]... [TAG]... |
| 6772 | |
| 6773 | -h, --help print this help, then exit |
| 6774 | -V, --version print version number and configuration settings, then exit |
| 6775 | -q, --quiet, --silent |
| 6776 | do not print progress messages |
| 6777 | -d, --debug don't remove temporary files |
| 6778 | --recheck update $as_me by reconfiguring in the same conditions |
| 6779 | --file=FILE[:TEMPLATE] |
| 6780 | instantiate the configuration file FILE |
| 6781 | --header=FILE[:TEMPLATE] |
| 6782 | instantiate the configuration header FILE |
| 6783 | |
| 6784 | Configuration files: |
| 6785 | $config_files |
| 6786 | |
| 6787 | Configuration headers: |
| 6788 | $config_headers |
| 6789 | |
| 6790 | Configuration commands: |
| 6791 | $config_commands |
| 6792 | |
| 6793 | Report bugs to the package provider." |
| 6794 | |
| 6795 | _ACEOF |
| 6796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6797 | ac_cs_version="\\ |
| 6798 | config.status |
| 6799 | configured by $0, generated by GNU Autoconf 2.64, |
| 6800 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 6801 | |
| 6802 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 6803 | This config.status script is free software; the Free Software Foundation |
| 6804 | gives unlimited permission to copy, distribute and modify it." |
| 6805 | |
| 6806 | ac_pwd='$ac_pwd' |
| 6807 | srcdir='$srcdir' |
| 6808 | INSTALL='$INSTALL' |
| 6809 | test -n "\$AWK" || AWK=awk |
| 6810 | _ACEOF |
| 6811 | |
| 6812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6813 | # The default lists apply if the user does not specify any file. |
| 6814 | ac_need_defaults=: |
| 6815 | while test $# != 0 |
| 6816 | do |
| 6817 | case $1 in |
| 6818 | --*=*) |
| 6819 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6820 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 6821 | ac_shift=: |
| 6822 | ;; |
| 6823 | *) |
| 6824 | ac_option=$1 |
| 6825 | ac_optarg=$2 |
| 6826 | ac_shift=shift |
| 6827 | ;; |
| 6828 | esac |
| 6829 | |
| 6830 | case $ac_option in |
| 6831 | # Handling of the options. |
| 6832 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6833 | ac_cs_recheck=: ;; |
| 6834 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 6835 | $as_echo "$ac_cs_version"; exit ;; |
| 6836 | --debug | --debu | --deb | --de | --d | -d ) |
| 6837 | debug=: ;; |
| 6838 | --file | --fil | --fi | --f ) |
| 6839 | $ac_shift |
| 6840 | case $ac_optarg in |
| 6841 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6842 | esac |
| 6843 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 6844 | ac_need_defaults=false;; |
| 6845 | --header | --heade | --head | --hea ) |
| 6846 | $ac_shift |
| 6847 | case $ac_optarg in |
| 6848 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6849 | esac |
| 6850 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 6851 | ac_need_defaults=false;; |
| 6852 | --he | --h) |
| 6853 | # Conflict between --help and --header |
| 6854 | as_fn_error "ambiguous option: \`$1' |
| 6855 | Try \`$0 --help' for more information.";; |
| 6856 | --help | --hel | -h ) |
| 6857 | $as_echo "$ac_cs_usage"; exit ;; |
| 6858 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6859 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6860 | ac_cs_silent=: ;; |
| 6861 | |
| 6862 | # This is an error. |
| 6863 | -*) as_fn_error "unrecognized option: \`$1' |
| 6864 | Try \`$0 --help' for more information." ;; |
| 6865 | |
| 6866 | *) as_fn_append ac_config_targets " $1" |
| 6867 | ac_need_defaults=false ;; |
| 6868 | |
| 6869 | esac |
| 6870 | shift |
| 6871 | done |
| 6872 | |
| 6873 | ac_configure_extra_args= |
| 6874 | |
| 6875 | if $ac_cs_silent; then |
| 6876 | exec 6>/dev/null |
| 6877 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6878 | fi |
| 6879 | |
| 6880 | _ACEOF |
| 6881 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6882 | if \$ac_cs_recheck; then |
| 6883 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6884 | shift |
| 6885 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6886 | CONFIG_SHELL='$SHELL' |
| 6887 | export CONFIG_SHELL |
| 6888 | exec "\$@" |
| 6889 | fi |
| 6890 | |
| 6891 | _ACEOF |
| 6892 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6893 | exec 5>>config.log |
| 6894 | { |
| 6895 | echo |
| 6896 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6897 | ## Running $as_me. ## |
| 6898 | _ASBOX |
| 6899 | $as_echo "$ac_log" |
| 6900 | } >&5 |
| 6901 | |
| 6902 | _ACEOF |
| 6903 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6904 | # |
| 6905 | # INIT-COMMANDS |
| 6906 | # |
| 6907 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
| 6908 | |
| 6909 | _ACEOF |
| 6910 | |
| 6911 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6912 | |
| 6913 | # Handling of arguments. |
| 6914 | for ac_config_target in $ac_config_targets |
| 6915 | do |
| 6916 | case $ac_config_target in |
| 6917 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 6918 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
| 6919 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6920 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 6921 | |
| 6922 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 6923 | esac |
| 6924 | done |
| 6925 | |
| 6926 | |
| 6927 | # If the user did not use the arguments to specify the items to instantiate, |
| 6928 | # then the envvar interface is used. Set only those that are not. |
| 6929 | # We use the long form for the default assignment because of an extremely |
| 6930 | # bizarre bug on SunOS 4.1.3. |
| 6931 | if $ac_need_defaults; then |
| 6932 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6933 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6934 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 6935 | fi |
| 6936 | |
| 6937 | # Have a temporary directory for convenience. Make it in the build tree |
| 6938 | # simply because there is no reason against having it here, and in addition, |
| 6939 | # creating and moving files from /tmp can sometimes cause problems. |
| 6940 | # Hook for its removal unless debugging. |
| 6941 | # Note that there is a small window in which the directory will not be cleaned: |
| 6942 | # after its creation but before its name has been assigned to `$tmp'. |
| 6943 | $debug || |
| 6944 | { |
| 6945 | tmp= |
| 6946 | trap 'exit_status=$? |
| 6947 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 6948 | ' 0 |
| 6949 | trap 'as_fn_exit 1' 1 2 13 15 |
| 6950 | } |
| 6951 | # Create a (secure) tmp directory for tmp files. |
| 6952 | |
| 6953 | { |
| 6954 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 6955 | test -n "$tmp" && test -d "$tmp" |
| 6956 | } || |
| 6957 | { |
| 6958 | tmp=./conf$$-$RANDOM |
| 6959 | (umask 077 && mkdir "$tmp") |
| 6960 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 6961 | |
| 6962 | # Set up the scripts for CONFIG_FILES section. |
| 6963 | # No need to generate them if there are no CONFIG_FILES. |
| 6964 | # This happens for instance with `./config.status config.h'. |
| 6965 | if test -n "$CONFIG_FILES"; then |
| 6966 | |
| 6967 | |
| 6968 | ac_cr=`echo X | tr X '\015'` |
| 6969 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6970 | # But we know of no other shell where ac_cr would be empty at this |
| 6971 | # point, so we can use a bashism as a fallback. |
| 6972 | if test "x$ac_cr" = x; then |
| 6973 | eval ac_cr=\$\'\\r\' |
| 6974 | fi |
| 6975 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6976 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6977 | ac_cs_awk_cr='\r' |
| 6978 | else |
| 6979 | ac_cs_awk_cr=$ac_cr |
| 6980 | fi |
| 6981 | |
| 6982 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 6983 | _ACEOF |
| 6984 | |
| 6985 | |
| 6986 | { |
| 6987 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6988 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6989 | echo "_ACEOF" |
| 6990 | } >conf$$subs.sh || |
| 6991 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6992 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 6993 | ac_delim='%!_!# ' |
| 6994 | for ac_last_try in false false false false false :; do |
| 6995 | . ./conf$$subs.sh || |
| 6996 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6997 | |
| 6998 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6999 | if test $ac_delim_n = $ac_delim_num; then |
| 7000 | break |
| 7001 | elif $ac_last_try; then |
| 7002 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7003 | else |
| 7004 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7005 | fi |
| 7006 | done |
| 7007 | rm -f conf$$subs.sh |
| 7008 | |
| 7009 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7010 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 7011 | _ACEOF |
| 7012 | sed -n ' |
| 7013 | h |
| 7014 | s/^/S["/; s/!.*/"]=/ |
| 7015 | p |
| 7016 | g |
| 7017 | s/^[^!]*!// |
| 7018 | :repl |
| 7019 | t repl |
| 7020 | s/'"$ac_delim"'$// |
| 7021 | t delim |
| 7022 | :nl |
| 7023 | h |
| 7024 | s/\(.\{148\}\).*/\1/ |
| 7025 | t more1 |
| 7026 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7027 | p |
| 7028 | n |
| 7029 | b repl |
| 7030 | :more1 |
| 7031 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7032 | p |
| 7033 | g |
| 7034 | s/.\{148\}// |
| 7035 | t nl |
| 7036 | :delim |
| 7037 | h |
| 7038 | s/\(.\{148\}\).*/\1/ |
| 7039 | t more2 |
| 7040 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7041 | p |
| 7042 | b |
| 7043 | :more2 |
| 7044 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7045 | p |
| 7046 | g |
| 7047 | s/.\{148\}// |
| 7048 | t delim |
| 7049 | ' <conf$$subs.awk | sed ' |
| 7050 | /^[^""]/{ |
| 7051 | N |
| 7052 | s/\n// |
| 7053 | } |
| 7054 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7055 | rm -f conf$$subs.awk |
| 7056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7057 | _ACAWK |
| 7058 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 7059 | for (key in S) S_is_set[key] = 1 |
| 7060 | FS = "\a" |
| 7061 | |
| 7062 | } |
| 7063 | { |
| 7064 | line = $ 0 |
| 7065 | nfields = split(line, field, "@") |
| 7066 | substed = 0 |
| 7067 | len = length(field[1]) |
| 7068 | for (i = 2; i < nfields; i++) { |
| 7069 | key = field[i] |
| 7070 | keylen = length(key) |
| 7071 | if (S_is_set[key]) { |
| 7072 | value = S[key] |
| 7073 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7074 | len += length(value) + length(field[++i]) |
| 7075 | substed = 1 |
| 7076 | } else |
| 7077 | len += 1 + keylen |
| 7078 | } |
| 7079 | |
| 7080 | print line |
| 7081 | } |
| 7082 | |
| 7083 | _ACAWK |
| 7084 | _ACEOF |
| 7085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7086 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7087 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7088 | else |
| 7089 | cat |
| 7090 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7091 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 7092 | _ACEOF |
| 7093 | |
| 7094 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7095 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7096 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7097 | # (actually we leave an empty line to preserve line numbers). |
| 7098 | if test "x$srcdir" = x.; then |
| 7099 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7100 | s/:*\$(srcdir):*/:/ |
| 7101 | s/:*\${srcdir}:*/:/ |
| 7102 | s/:*@srcdir@:*/:/ |
| 7103 | s/^\([^=]*=[ ]*\):*/\1/ |
| 7104 | s/:*$// |
| 7105 | s/^[^=]*=[ ]*$// |
| 7106 | }' |
| 7107 | fi |
| 7108 | |
| 7109 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7110 | fi # test -n "$CONFIG_FILES" |
| 7111 | |
| 7112 | # Set up the scripts for CONFIG_HEADERS section. |
| 7113 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7114 | # This happens for instance with `./config.status Makefile'. |
| 7115 | if test -n "$CONFIG_HEADERS"; then |
| 7116 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 7117 | BEGIN { |
| 7118 | _ACEOF |
| 7119 | |
| 7120 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7121 | # here-document in config.status, that substitutes the proper values into |
| 7122 | # config.h.in to produce config.h. |
| 7123 | |
| 7124 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7125 | # handling of long lines. |
| 7126 | ac_delim='%!_!# ' |
| 7127 | for ac_last_try in false false :; do |
| 7128 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 7129 | if test -z "$ac_t"; then |
| 7130 | break |
| 7131 | elif $ac_last_try; then |
| 7132 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 7133 | else |
| 7134 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7135 | fi |
| 7136 | done |
| 7137 | |
| 7138 | # For the awk script, D is an array of macro values keyed by name, |
| 7139 | # likewise P contains macro parameters if any. Preserve backslash |
| 7140 | # newline sequences. |
| 7141 | |
| 7142 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7143 | sed -n ' |
| 7144 | s/.\{148\}/&'"$ac_delim"'/g |
| 7145 | t rset |
| 7146 | :rset |
| 7147 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7148 | t def |
| 7149 | d |
| 7150 | :def |
| 7151 | s/\\$// |
| 7152 | t bsnl |
| 7153 | s/["\\]/\\&/g |
| 7154 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7155 | D["\1"]=" \3"/p |
| 7156 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7157 | d |
| 7158 | :bsnl |
| 7159 | s/["\\]/\\&/g |
| 7160 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7161 | D["\1"]=" \3\\\\\\n"\\/p |
| 7162 | t cont |
| 7163 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7164 | t cont |
| 7165 | d |
| 7166 | :cont |
| 7167 | n |
| 7168 | s/.\{148\}/&'"$ac_delim"'/g |
| 7169 | t clear |
| 7170 | :clear |
| 7171 | s/\\$// |
| 7172 | t bsnlc |
| 7173 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7174 | d |
| 7175 | :bsnlc |
| 7176 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7177 | b cont |
| 7178 | ' <confdefs.h | sed ' |
| 7179 | s/'"$ac_delim"'/"\\\ |
| 7180 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7181 | |
| 7182 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7183 | for (key in D) D_is_set[key] = 1 |
| 7184 | FS = "\a" |
| 7185 | } |
| 7186 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7187 | line = \$ 0 |
| 7188 | split(line, arg, " ") |
| 7189 | if (arg[1] == "#") { |
| 7190 | defundef = arg[2] |
| 7191 | mac1 = arg[3] |
| 7192 | } else { |
| 7193 | defundef = substr(arg[1], 2) |
| 7194 | mac1 = arg[2] |
| 7195 | } |
| 7196 | split(mac1, mac2, "(") #) |
| 7197 | macro = mac2[1] |
| 7198 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 7199 | if (D_is_set[macro]) { |
| 7200 | # Preserve the white space surrounding the "#". |
| 7201 | print prefix "define", macro P[macro] D[macro] |
| 7202 | next |
| 7203 | } else { |
| 7204 | # Replace #undef with comments. This is necessary, for example, |
| 7205 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 7206 | # on some systems where configure will not decide to define it. |
| 7207 | if (defundef == "undef") { |
| 7208 | print "/*", prefix defundef, macro, "*/" |
| 7209 | next |
| 7210 | } |
| 7211 | } |
| 7212 | } |
| 7213 | { print } |
| 7214 | _ACAWK |
| 7215 | _ACEOF |
| 7216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7217 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 7218 | fi # test -n "$CONFIG_HEADERS" |
| 7219 | |
| 7220 | |
| 7221 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 7222 | shift |
| 7223 | for ac_tag |
| 7224 | do |
| 7225 | case $ac_tag in |
| 7226 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 7227 | esac |
| 7228 | case $ac_mode$ac_tag in |
| 7229 | :[FHL]*:*);; |
| 7230 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 7231 | :[FH]-) ac_tag=-:-;; |
| 7232 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 7233 | esac |
| 7234 | ac_save_IFS=$IFS |
| 7235 | IFS=: |
| 7236 | set x $ac_tag |
| 7237 | IFS=$ac_save_IFS |
| 7238 | shift |
| 7239 | ac_file=$1 |
| 7240 | shift |
| 7241 | |
| 7242 | case $ac_mode in |
| 7243 | :L) ac_source=$1;; |
| 7244 | :[FH]) |
| 7245 | ac_file_inputs= |
| 7246 | for ac_f |
| 7247 | do |
| 7248 | case $ac_f in |
| 7249 | -) ac_f="$tmp/stdin";; |
| 7250 | *) # Look for the file first in the build tree, then in the source tree |
| 7251 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7252 | # because $ac_f cannot contain `:'. |
| 7253 | test -f "$ac_f" || |
| 7254 | case $ac_f in |
| 7255 | [\\/$]*) false;; |
| 7256 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7257 | esac || |
| 7258 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 7259 | esac |
| 7260 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7261 | as_fn_append ac_file_inputs " '$ac_f'" |
| 7262 | done |
| 7263 | |
| 7264 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7265 | # use $as_me), people would be surprised to read: |
| 7266 | # /* config.h. Generated by config.status. */ |
| 7267 | configure_input='Generated from '` |
| 7268 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7269 | `' by configure.' |
| 7270 | if test x"$ac_file" != x-; then |
| 7271 | configure_input="$ac_file. $configure_input" |
| 7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7273 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 7274 | fi |
| 7275 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7276 | case $configure_input in #( |
| 7277 | *\&* | *\|* | *\\* ) |
| 7278 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7279 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7280 | *) ac_sed_conf_input=$configure_input;; |
| 7281 | esac |
| 7282 | |
| 7283 | case $ac_tag in |
| 7284 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 7285 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 7286 | esac |
| 7287 | ;; |
| 7288 | esac |
| 7289 | |
| 7290 | ac_dir=`$as_dirname -- "$ac_file" || |
| 7291 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7292 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7293 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7294 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 7295 | $as_echo X"$ac_file" | |
| 7296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7297 | s//\1/ |
| 7298 | q |
| 7299 | } |
| 7300 | /^X\(\/\/\)[^/].*/{ |
| 7301 | s//\1/ |
| 7302 | q |
| 7303 | } |
| 7304 | /^X\(\/\/\)$/{ |
| 7305 | s//\1/ |
| 7306 | q |
| 7307 | } |
| 7308 | /^X\(\/\).*/{ |
| 7309 | s//\1/ |
| 7310 | q |
| 7311 | } |
| 7312 | s/.*/./; q'` |
| 7313 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 7314 | ac_builddir=. |
| 7315 | |
| 7316 | case "$ac_dir" in |
| 7317 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7318 | *) |
| 7319 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 7320 | # A ".." for each directory in $ac_dir_suffix. |
| 7321 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 7322 | case $ac_top_builddir_sub in |
| 7323 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7324 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7325 | esac ;; |
| 7326 | esac |
| 7327 | ac_abs_top_builddir=$ac_pwd |
| 7328 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7329 | # for backward compatibility: |
| 7330 | ac_top_builddir=$ac_top_build_prefix |
| 7331 | |
| 7332 | case $srcdir in |
| 7333 | .) # We are building in place. |
| 7334 | ac_srcdir=. |
| 7335 | ac_top_srcdir=$ac_top_builddir_sub |
| 7336 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7337 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 7338 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7339 | ac_top_srcdir=$srcdir |
| 7340 | ac_abs_top_srcdir=$srcdir ;; |
| 7341 | *) # Relative name. |
| 7342 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7343 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7344 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 7345 | esac |
| 7346 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 7347 | |
| 7348 | |
| 7349 | case $ac_mode in |
| 7350 | :F) |
| 7351 | # |
| 7352 | # CONFIG_FILE |
| 7353 | # |
| 7354 | |
| 7355 | case $INSTALL in |
| 7356 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7357 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 7358 | esac |
| 7359 | _ACEOF |
| 7360 | |
| 7361 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7362 | # If the template does not know about datarootdir, expand it. |
| 7363 | # FIXME: This hack should be removed a few years after 2.60. |
| 7364 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 7365 | ac_sed_dataroot=' |
| 7366 | /datarootdir/ { |
| 7367 | p |
| 7368 | q |
| 7369 | } |
| 7370 | /@datadir@/p |
| 7371 | /@docdir@/p |
| 7372 | /@infodir@/p |
| 7373 | /@localedir@/p |
| 7374 | /@mandir@/p' |
| 7375 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 7376 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7377 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7379 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 7380 | _ACEOF |
| 7381 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7382 | ac_datarootdir_hack=' |
| 7383 | s&@datadir@&$datadir&g |
| 7384 | s&@docdir@&$docdir&g |
| 7385 | s&@infodir@&$infodir&g |
| 7386 | s&@localedir@&$localedir&g |
| 7387 | s&@mandir@&$mandir&g |
| 7388 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 7389 | esac |
| 7390 | _ACEOF |
| 7391 | |
| 7392 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7393 | # Shell code in configure.ac might set extrasub. |
| 7394 | # FIXME: do we really want to maintain this feature? |
| 7395 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7396 | ac_sed_extra="$ac_vpsub |
| 7397 | $extrasub |
| 7398 | _ACEOF |
| 7399 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7400 | :t |
| 7401 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7402 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 7403 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 7404 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 7405 | s&@srcdir@&$ac_srcdir&;t t |
| 7406 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7407 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7408 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7409 | s&@builddir@&$ac_builddir&;t t |
| 7410 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7411 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7412 | s&@INSTALL@&$ac_INSTALL&;t t |
| 7413 | $ac_datarootdir_hack |
| 7414 | " |
| 7415 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 7416 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7417 | |
| 7418 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 7419 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 7420 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 7422 | which seems to be undefined. Please make sure it is defined." >&5 |
| 7423 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 7424 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 7425 | |
| 7426 | rm -f "$tmp/stdin" |
| 7427 | case $ac_file in |
| 7428 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 7429 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 7430 | esac \ |
| 7431 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7432 | ;; |
| 7433 | :H) |
| 7434 | # |
| 7435 | # CONFIG_HEADER |
| 7436 | # |
| 7437 | if test x"$ac_file" != x-; then |
| 7438 | { |
| 7439 | $as_echo "/* $configure_input */" \ |
| 7440 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 7441 | } >"$tmp/config.h" \ |
| 7442 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7443 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7445 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 7446 | else |
| 7447 | rm -f "$ac_file" |
| 7448 | mv "$tmp/config.h" "$ac_file" \ |
| 7449 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7450 | fi |
| 7451 | else |
| 7452 | $as_echo "/* $configure_input */" \ |
| 7453 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 7454 | || as_fn_error "could not create -" "$LINENO" 5 |
| 7455 | fi |
| 7456 | ;; |
| 7457 | |
| 7458 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 7459 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 7460 | ;; |
| 7461 | esac |
| 7462 | |
| 7463 | |
| 7464 | case $ac_file$ac_mode in |
| 7465 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
| 7466 | "default":C) case x$CONFIG_HEADERS in |
| 7467 | xconfig.h:config.in) |
| 7468 | echo > stamp-h ;; |
| 7469 | esac |
| 7470 | ;; |
| 7471 | |
| 7472 | esac |
| 7473 | done # for ac_tag |
| 7474 | |
| 7475 | |
| 7476 | as_fn_exit 0 |
| 7477 | _ACEOF |
| 7478 | ac_clean_files=$ac_clean_files_save |
| 7479 | |
| 7480 | test $ac_write_fail = 0 || |
| 7481 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 7482 | |
| 7483 | |
| 7484 | # configure is writing to config.log, and then calls config.status. |
| 7485 | # config.status does its own redirection, appending to config.log. |
| 7486 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7487 | # by configure, so config.status won't be able to write to it; its |
| 7488 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7489 | # effectively closing config.log, so it can be properly (re)opened and |
| 7490 | # appended to by config.status. When coming back to configure, we |
| 7491 | # need to make the FD available again. |
| 7492 | if test "$no_create" != yes; then |
| 7493 | ac_cs_success=: |
| 7494 | ac_config_status_args= |
| 7495 | test "$silent" = yes && |
| 7496 | ac_config_status_args="$ac_config_status_args --quiet" |
| 7497 | exec 5>/dev/null |
| 7498 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 7499 | exec 5>>config.log |
| 7500 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7501 | # would make configure fail if this is the last instruction. |
| 7502 | $ac_cs_success || as_fn_exit $? |
| 7503 | fi |
| 7504 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 7506 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 7507 | fi |
| 7508 | |