| 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 | ac_config_libobj_dir=../gnulib |
| 556 | # Factoring default headers for most tests. |
| 557 | ac_includes_default="\ |
| 558 | #include <stdio.h> |
| 559 | #ifdef HAVE_SYS_TYPES_H |
| 560 | # include <sys/types.h> |
| 561 | #endif |
| 562 | #ifdef HAVE_SYS_STAT_H |
| 563 | # include <sys/stat.h> |
| 564 | #endif |
| 565 | #ifdef STDC_HEADERS |
| 566 | # include <stdlib.h> |
| 567 | # include <stddef.h> |
| 568 | #else |
| 569 | # ifdef HAVE_STDLIB_H |
| 570 | # include <stdlib.h> |
| 571 | # endif |
| 572 | #endif |
| 573 | #ifdef HAVE_STRING_H |
| 574 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 575 | # include <memory.h> |
| 576 | # endif |
| 577 | # include <string.h> |
| 578 | #endif |
| 579 | #ifdef HAVE_STRINGS_H |
| 580 | # include <strings.h> |
| 581 | #endif |
| 582 | #ifdef HAVE_INTTYPES_H |
| 583 | # include <inttypes.h> |
| 584 | #endif |
| 585 | #ifdef HAVE_STDINT_H |
| 586 | # include <stdint.h> |
| 587 | #endif |
| 588 | #ifdef HAVE_UNISTD_H |
| 589 | # include <unistd.h> |
| 590 | #endif" |
| 591 | |
| 592 | ac_subst_vars='LTLIBOBJS |
| 593 | extra_libraries |
| 594 | IPA_DEPFILES |
| 595 | srv_xmlfiles |
| 596 | srv_xmlbuiltin |
| 597 | USE_THREAD_DB |
| 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 | LIBOBJS |
| 609 | ALLOCA |
| 610 | INSTALL_DATA |
| 611 | INSTALL_SCRIPT |
| 612 | INSTALL_PROGRAM |
| 613 | target_os |
| 614 | target_vendor |
| 615 | target_cpu |
| 616 | target |
| 617 | host_os |
| 618 | host_vendor |
| 619 | host_cpu |
| 620 | host |
| 621 | build_os |
| 622 | build_vendor |
| 623 | build_cpu |
| 624 | build |
| 625 | EGREP |
| 626 | GREP |
| 627 | CPP |
| 628 | OBJEXT |
| 629 | EXEEXT |
| 630 | ac_ct_CC |
| 631 | CPPFLAGS |
| 632 | LDFLAGS |
| 633 | CFLAGS |
| 634 | CC |
| 635 | target_alias |
| 636 | host_alias |
| 637 | build_alias |
| 638 | LIBS |
| 639 | ECHO_T |
| 640 | ECHO_N |
| 641 | ECHO_C |
| 642 | DEFS |
| 643 | mandir |
| 644 | localedir |
| 645 | libdir |
| 646 | psdir |
| 647 | pdfdir |
| 648 | dvidir |
| 649 | htmldir |
| 650 | infodir |
| 651 | docdir |
| 652 | oldincludedir |
| 653 | includedir |
| 654 | localstatedir |
| 655 | sharedstatedir |
| 656 | sysconfdir |
| 657 | datadir |
| 658 | datarootdir |
| 659 | libexecdir |
| 660 | sbindir |
| 661 | bindir |
| 662 | program_transform_name |
| 663 | prefix |
| 664 | exec_prefix |
| 665 | PACKAGE_URL |
| 666 | PACKAGE_BUGREPORT |
| 667 | PACKAGE_STRING |
| 668 | PACKAGE_VERSION |
| 669 | PACKAGE_TARNAME |
| 670 | PACKAGE_NAME |
| 671 | PATH_SEPARATOR |
| 672 | SHELL' |
| 673 | ac_subst_files='' |
| 674 | ac_user_opts=' |
| 675 | enable_option_checking |
| 676 | with_ust |
| 677 | with_ust_include |
| 678 | with_ust_lib |
| 679 | enable_werror |
| 680 | with_pkgversion |
| 681 | with_bugurl |
| 682 | with_libthread_db |
| 683 | ' |
| 684 | ac_precious_vars='build_alias |
| 685 | host_alias |
| 686 | target_alias |
| 687 | CC |
| 688 | CFLAGS |
| 689 | LDFLAGS |
| 690 | LIBS |
| 691 | CPPFLAGS |
| 692 | CPP' |
| 693 | |
| 694 | |
| 695 | # Initialize some variables set by options. |
| 696 | ac_init_help= |
| 697 | ac_init_version=false |
| 698 | ac_unrecognized_opts= |
| 699 | ac_unrecognized_sep= |
| 700 | # The variables have the same names as the options, with |
| 701 | # dashes changed to underlines. |
| 702 | cache_file=/dev/null |
| 703 | exec_prefix=NONE |
| 704 | no_create= |
| 705 | no_recursion= |
| 706 | prefix=NONE |
| 707 | program_prefix=NONE |
| 708 | program_suffix=NONE |
| 709 | program_transform_name=s,x,x, |
| 710 | silent= |
| 711 | site= |
| 712 | srcdir= |
| 713 | verbose= |
| 714 | x_includes=NONE |
| 715 | x_libraries=NONE |
| 716 | |
| 717 | # Installation directory options. |
| 718 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 719 | # and all the variables that are supposed to be based on exec_prefix |
| 720 | # by default will actually change. |
| 721 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 722 | # (The list follows the same order as the GNU Coding Standards.) |
| 723 | bindir='${exec_prefix}/bin' |
| 724 | sbindir='${exec_prefix}/sbin' |
| 725 | libexecdir='${exec_prefix}/libexec' |
| 726 | datarootdir='${prefix}/share' |
| 727 | datadir='${datarootdir}' |
| 728 | sysconfdir='${prefix}/etc' |
| 729 | sharedstatedir='${prefix}/com' |
| 730 | localstatedir='${prefix}/var' |
| 731 | includedir='${prefix}/include' |
| 732 | oldincludedir='/usr/include' |
| 733 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 734 | infodir='${datarootdir}/info' |
| 735 | htmldir='${docdir}' |
| 736 | dvidir='${docdir}' |
| 737 | pdfdir='${docdir}' |
| 738 | psdir='${docdir}' |
| 739 | libdir='${exec_prefix}/lib' |
| 740 | localedir='${datarootdir}/locale' |
| 741 | mandir='${datarootdir}/man' |
| 742 | |
| 743 | ac_prev= |
| 744 | ac_dashdash= |
| 745 | for ac_option |
| 746 | do |
| 747 | # If the previous option needs an argument, assign it. |
| 748 | if test -n "$ac_prev"; then |
| 749 | eval $ac_prev=\$ac_option |
| 750 | ac_prev= |
| 751 | continue |
| 752 | fi |
| 753 | |
| 754 | case $ac_option in |
| 755 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 756 | *) ac_optarg=yes ;; |
| 757 | esac |
| 758 | |
| 759 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 760 | |
| 761 | case $ac_dashdash$ac_option in |
| 762 | --) |
| 763 | ac_dashdash=yes ;; |
| 764 | |
| 765 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 766 | ac_prev=bindir ;; |
| 767 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 768 | bindir=$ac_optarg ;; |
| 769 | |
| 770 | -build | --build | --buil | --bui | --bu) |
| 771 | ac_prev=build_alias ;; |
| 772 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 773 | build_alias=$ac_optarg ;; |
| 774 | |
| 775 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 776 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 777 | ac_prev=cache_file ;; |
| 778 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 779 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 780 | cache_file=$ac_optarg ;; |
| 781 | |
| 782 | --config-cache | -C) |
| 783 | cache_file=config.cache ;; |
| 784 | |
| 785 | -datadir | --datadir | --datadi | --datad) |
| 786 | ac_prev=datadir ;; |
| 787 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 788 | datadir=$ac_optarg ;; |
| 789 | |
| 790 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 791 | | --dataroo | --dataro | --datar) |
| 792 | ac_prev=datarootdir ;; |
| 793 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 794 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 795 | datarootdir=$ac_optarg ;; |
| 796 | |
| 797 | -disable-* | --disable-*) |
| 798 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 799 | # Reject names that are not valid shell variable names. |
| 800 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 801 | as_fn_error "invalid feature name: $ac_useropt" |
| 802 | ac_useropt_orig=$ac_useropt |
| 803 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 804 | case $ac_user_opts in |
| 805 | *" |
| 806 | "enable_$ac_useropt" |
| 807 | "*) ;; |
| 808 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 809 | ac_unrecognized_sep=', ';; |
| 810 | esac |
| 811 | eval enable_$ac_useropt=no ;; |
| 812 | |
| 813 | -docdir | --docdir | --docdi | --doc | --do) |
| 814 | ac_prev=docdir ;; |
| 815 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 816 | docdir=$ac_optarg ;; |
| 817 | |
| 818 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 819 | ac_prev=dvidir ;; |
| 820 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 821 | dvidir=$ac_optarg ;; |
| 822 | |
| 823 | -enable-* | --enable-*) |
| 824 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 825 | # Reject names that are not valid shell variable names. |
| 826 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 827 | as_fn_error "invalid feature name: $ac_useropt" |
| 828 | ac_useropt_orig=$ac_useropt |
| 829 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 830 | case $ac_user_opts in |
| 831 | *" |
| 832 | "enable_$ac_useropt" |
| 833 | "*) ;; |
| 834 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 835 | ac_unrecognized_sep=', ';; |
| 836 | esac |
| 837 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 838 | |
| 839 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 840 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 841 | | --exec | --exe | --ex) |
| 842 | ac_prev=exec_prefix ;; |
| 843 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 844 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 845 | | --exec=* | --exe=* | --ex=*) |
| 846 | exec_prefix=$ac_optarg ;; |
| 847 | |
| 848 | -gas | --gas | --ga | --g) |
| 849 | # Obsolete; use --with-gas. |
| 850 | with_gas=yes ;; |
| 851 | |
| 852 | -help | --help | --hel | --he | -h) |
| 853 | ac_init_help=long ;; |
| 854 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 855 | ac_init_help=recursive ;; |
| 856 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 857 | ac_init_help=short ;; |
| 858 | |
| 859 | -host | --host | --hos | --ho) |
| 860 | ac_prev=host_alias ;; |
| 861 | -host=* | --host=* | --hos=* | --ho=*) |
| 862 | host_alias=$ac_optarg ;; |
| 863 | |
| 864 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 865 | ac_prev=htmldir ;; |
| 866 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 867 | | --ht=*) |
| 868 | htmldir=$ac_optarg ;; |
| 869 | |
| 870 | -includedir | --includedir | --includedi | --included | --include \ |
| 871 | | --includ | --inclu | --incl | --inc) |
| 872 | ac_prev=includedir ;; |
| 873 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 874 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 875 | includedir=$ac_optarg ;; |
| 876 | |
| 877 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 878 | ac_prev=infodir ;; |
| 879 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 880 | infodir=$ac_optarg ;; |
| 881 | |
| 882 | -libdir | --libdir | --libdi | --libd) |
| 883 | ac_prev=libdir ;; |
| 884 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 885 | libdir=$ac_optarg ;; |
| 886 | |
| 887 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 888 | | --libexe | --libex | --libe) |
| 889 | ac_prev=libexecdir ;; |
| 890 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 891 | | --libexe=* | --libex=* | --libe=*) |
| 892 | libexecdir=$ac_optarg ;; |
| 893 | |
| 894 | -localedir | --localedir | --localedi | --localed | --locale) |
| 895 | ac_prev=localedir ;; |
| 896 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 897 | localedir=$ac_optarg ;; |
| 898 | |
| 899 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 900 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 901 | ac_prev=localstatedir ;; |
| 902 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 903 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 904 | localstatedir=$ac_optarg ;; |
| 905 | |
| 906 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 907 | ac_prev=mandir ;; |
| 908 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 909 | mandir=$ac_optarg ;; |
| 910 | |
| 911 | -nfp | --nfp | --nf) |
| 912 | # Obsolete; use --without-fp. |
| 913 | with_fp=no ;; |
| 914 | |
| 915 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 916 | | --no-cr | --no-c | -n) |
| 917 | no_create=yes ;; |
| 918 | |
| 919 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 920 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 921 | no_recursion=yes ;; |
| 922 | |
| 923 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 924 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 925 | | --oldin | --oldi | --old | --ol | --o) |
| 926 | ac_prev=oldincludedir ;; |
| 927 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 928 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 929 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 930 | oldincludedir=$ac_optarg ;; |
| 931 | |
| 932 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 933 | ac_prev=prefix ;; |
| 934 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 935 | prefix=$ac_optarg ;; |
| 936 | |
| 937 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 938 | | --program-pre | --program-pr | --program-p) |
| 939 | ac_prev=program_prefix ;; |
| 940 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 941 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 942 | program_prefix=$ac_optarg ;; |
| 943 | |
| 944 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 945 | | --program-suf | --program-su | --program-s) |
| 946 | ac_prev=program_suffix ;; |
| 947 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 948 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 949 | program_suffix=$ac_optarg ;; |
| 950 | |
| 951 | -program-transform-name | --program-transform-name \ |
| 952 | | --program-transform-nam | --program-transform-na \ |
| 953 | | --program-transform-n | --program-transform- \ |
| 954 | | --program-transform | --program-transfor \ |
| 955 | | --program-transfo | --program-transf \ |
| 956 | | --program-trans | --program-tran \ |
| 957 | | --progr-tra | --program-tr | --program-t) |
| 958 | ac_prev=program_transform_name ;; |
| 959 | -program-transform-name=* | --program-transform-name=* \ |
| 960 | | --program-transform-nam=* | --program-transform-na=* \ |
| 961 | | --program-transform-n=* | --program-transform-=* \ |
| 962 | | --program-transform=* | --program-transfor=* \ |
| 963 | | --program-transfo=* | --program-transf=* \ |
| 964 | | --program-trans=* | --program-tran=* \ |
| 965 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 966 | program_transform_name=$ac_optarg ;; |
| 967 | |
| 968 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 969 | ac_prev=pdfdir ;; |
| 970 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 971 | pdfdir=$ac_optarg ;; |
| 972 | |
| 973 | -psdir | --psdir | --psdi | --psd | --ps) |
| 974 | ac_prev=psdir ;; |
| 975 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 976 | psdir=$ac_optarg ;; |
| 977 | |
| 978 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 979 | | -silent | --silent | --silen | --sile | --sil) |
| 980 | silent=yes ;; |
| 981 | |
| 982 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 983 | ac_prev=sbindir ;; |
| 984 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 985 | | --sbi=* | --sb=*) |
| 986 | sbindir=$ac_optarg ;; |
| 987 | |
| 988 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 989 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 990 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 991 | | --sha | --sh) |
| 992 | ac_prev=sharedstatedir ;; |
| 993 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 994 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 995 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 996 | | --sha=* | --sh=*) |
| 997 | sharedstatedir=$ac_optarg ;; |
| 998 | |
| 999 | -site | --site | --sit) |
| 1000 | ac_prev=site ;; |
| 1001 | -site=* | --site=* | --sit=*) |
| 1002 | site=$ac_optarg ;; |
| 1003 | |
| 1004 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1005 | ac_prev=srcdir ;; |
| 1006 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1007 | srcdir=$ac_optarg ;; |
| 1008 | |
| 1009 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1010 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1011 | ac_prev=sysconfdir ;; |
| 1012 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1013 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1014 | sysconfdir=$ac_optarg ;; |
| 1015 | |
| 1016 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1017 | ac_prev=target_alias ;; |
| 1018 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1019 | target_alias=$ac_optarg ;; |
| 1020 | |
| 1021 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1022 | verbose=yes ;; |
| 1023 | |
| 1024 | -version | --version | --versio | --versi | --vers | -V) |
| 1025 | ac_init_version=: ;; |
| 1026 | |
| 1027 | -with-* | --with-*) |
| 1028 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1029 | # Reject names that are not valid shell variable names. |
| 1030 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1031 | as_fn_error "invalid package name: $ac_useropt" |
| 1032 | ac_useropt_orig=$ac_useropt |
| 1033 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1034 | case $ac_user_opts in |
| 1035 | *" |
| 1036 | "with_$ac_useropt" |
| 1037 | "*) ;; |
| 1038 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1039 | ac_unrecognized_sep=', ';; |
| 1040 | esac |
| 1041 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1042 | |
| 1043 | -without-* | --without-*) |
| 1044 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1045 | # Reject names that are not valid shell variable names. |
| 1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1047 | as_fn_error "invalid package name: $ac_useropt" |
| 1048 | ac_useropt_orig=$ac_useropt |
| 1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1050 | case $ac_user_opts in |
| 1051 | *" |
| 1052 | "with_$ac_useropt" |
| 1053 | "*) ;; |
| 1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1055 | ac_unrecognized_sep=', ';; |
| 1056 | esac |
| 1057 | eval with_$ac_useropt=no ;; |
| 1058 | |
| 1059 | --x) |
| 1060 | # Obsolete; use --with-x. |
| 1061 | with_x=yes ;; |
| 1062 | |
| 1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1064 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1065 | ac_prev=x_includes ;; |
| 1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1068 | x_includes=$ac_optarg ;; |
| 1069 | |
| 1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1072 | ac_prev=x_libraries ;; |
| 1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1075 | x_libraries=$ac_optarg ;; |
| 1076 | |
| 1077 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1078 | Try \`$0 --help' for more information." |
| 1079 | ;; |
| 1080 | |
| 1081 | *=*) |
| 1082 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1083 | # Reject names that are not valid shell variable names. |
| 1084 | case $ac_envvar in #( |
| 1085 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1086 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1087 | esac |
| 1088 | eval $ac_envvar=\$ac_optarg |
| 1089 | export $ac_envvar ;; |
| 1090 | |
| 1091 | *) |
| 1092 | # FIXME: should be removed in autoconf 3.0. |
| 1093 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1095 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1096 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1097 | ;; |
| 1098 | |
| 1099 | esac |
| 1100 | done |
| 1101 | |
| 1102 | if test -n "$ac_prev"; then |
| 1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1104 | as_fn_error "missing argument to $ac_option" |
| 1105 | fi |
| 1106 | |
| 1107 | if test -n "$ac_unrecognized_opts"; then |
| 1108 | case $enable_option_checking in |
| 1109 | no) ;; |
| 1110 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1111 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1112 | esac |
| 1113 | fi |
| 1114 | |
| 1115 | # Check all directory arguments for consistency. |
| 1116 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1117 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1118 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1119 | libdir localedir mandir |
| 1120 | do |
| 1121 | eval ac_val=\$$ac_var |
| 1122 | # Remove trailing slashes. |
| 1123 | case $ac_val in |
| 1124 | */ ) |
| 1125 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1126 | eval $ac_var=\$ac_val;; |
| 1127 | esac |
| 1128 | # Be sure to have absolute directory names. |
| 1129 | case $ac_val in |
| 1130 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1131 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1132 | esac |
| 1133 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1134 | done |
| 1135 | |
| 1136 | # There might be people who depend on the old broken behavior: `$host' |
| 1137 | # used to hold the argument of --host etc. |
| 1138 | # FIXME: To remove some day. |
| 1139 | build=$build_alias |
| 1140 | host=$host_alias |
| 1141 | target=$target_alias |
| 1142 | |
| 1143 | # FIXME: To remove some day. |
| 1144 | if test "x$host_alias" != x; then |
| 1145 | if test "x$build_alias" = x; then |
| 1146 | cross_compiling=maybe |
| 1147 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1148 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1149 | elif test "x$build_alias" != "x$host_alias"; then |
| 1150 | cross_compiling=yes |
| 1151 | fi |
| 1152 | fi |
| 1153 | |
| 1154 | ac_tool_prefix= |
| 1155 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1156 | |
| 1157 | test "$silent" = yes && exec 6>/dev/null |
| 1158 | |
| 1159 | |
| 1160 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1161 | ac_ls_di=`ls -di .` && |
| 1162 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1163 | as_fn_error "working directory cannot be determined" |
| 1164 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1165 | as_fn_error "pwd does not report name of working directory" |
| 1166 | |
| 1167 | |
| 1168 | # Find the source files, if location was not specified. |
| 1169 | if test -z "$srcdir"; then |
| 1170 | ac_srcdir_defaulted=yes |
| 1171 | # Try the directory containing this script, then the parent directory. |
| 1172 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1173 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1174 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1175 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1176 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1177 | $as_echo X"$as_myself" | |
| 1178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1179 | s//\1/ |
| 1180 | q |
| 1181 | } |
| 1182 | /^X\(\/\/\)[^/].*/{ |
| 1183 | s//\1/ |
| 1184 | q |
| 1185 | } |
| 1186 | /^X\(\/\/\)$/{ |
| 1187 | s//\1/ |
| 1188 | q |
| 1189 | } |
| 1190 | /^X\(\/\).*/{ |
| 1191 | s//\1/ |
| 1192 | q |
| 1193 | } |
| 1194 | s/.*/./; q'` |
| 1195 | srcdir=$ac_confdir |
| 1196 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1197 | srcdir=.. |
| 1198 | fi |
| 1199 | else |
| 1200 | ac_srcdir_defaulted=no |
| 1201 | fi |
| 1202 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1203 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1204 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1205 | fi |
| 1206 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1207 | ac_abs_confdir=`( |
| 1208 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1209 | pwd)` |
| 1210 | # When building in place, set srcdir=. |
| 1211 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1212 | srcdir=. |
| 1213 | fi |
| 1214 | # Remove unnecessary trailing slashes from srcdir. |
| 1215 | # Double slashes in file names in object file debugging info |
| 1216 | # mess up M-x gdb in Emacs. |
| 1217 | case $srcdir in |
| 1218 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1219 | esac |
| 1220 | for ac_var in $ac_precious_vars; do |
| 1221 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1222 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1223 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1224 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1225 | done |
| 1226 | |
| 1227 | # |
| 1228 | # Report the --help message. |
| 1229 | # |
| 1230 | if test "$ac_init_help" = "long"; then |
| 1231 | # Omit some internal or obsolete options to make the list less imposing. |
| 1232 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1233 | cat <<_ACEOF |
| 1234 | \`configure' configures this package to adapt to many kinds of systems. |
| 1235 | |
| 1236 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1237 | |
| 1238 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1239 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1240 | |
| 1241 | Defaults for the options are specified in brackets. |
| 1242 | |
| 1243 | Configuration: |
| 1244 | -h, --help display this help and exit |
| 1245 | --help=short display options specific to this package |
| 1246 | --help=recursive display the short help of all the included packages |
| 1247 | -V, --version display version information and exit |
| 1248 | -q, --quiet, --silent do not print \`checking...' messages |
| 1249 | --cache-file=FILE cache test results in FILE [disabled] |
| 1250 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1251 | -n, --no-create do not create output files |
| 1252 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1253 | |
| 1254 | Installation directories: |
| 1255 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1256 | [$ac_default_prefix] |
| 1257 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1258 | [PREFIX] |
| 1259 | |
| 1260 | By default, \`make install' will install all the files in |
| 1261 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1262 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1263 | for instance \`--prefix=\$HOME'. |
| 1264 | |
| 1265 | For better control, use the options below. |
| 1266 | |
| 1267 | Fine tuning of the installation directories: |
| 1268 | --bindir=DIR user executables [EPREFIX/bin] |
| 1269 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1270 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1271 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1272 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1273 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1274 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1275 | --includedir=DIR C header files [PREFIX/include] |
| 1276 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1277 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1278 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1279 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1280 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1281 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1282 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1283 | --htmldir=DIR html documentation [DOCDIR] |
| 1284 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1285 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1286 | --psdir=DIR ps documentation [DOCDIR] |
| 1287 | _ACEOF |
| 1288 | |
| 1289 | cat <<\_ACEOF |
| 1290 | |
| 1291 | Program names: |
| 1292 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1293 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1294 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1295 | |
| 1296 | System types: |
| 1297 | --build=BUILD configure for building on BUILD [guessed] |
| 1298 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1299 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1300 | _ACEOF |
| 1301 | fi |
| 1302 | |
| 1303 | if test -n "$ac_init_help"; then |
| 1304 | |
| 1305 | cat <<\_ACEOF |
| 1306 | |
| 1307 | Optional Features: |
| 1308 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1309 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1310 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1311 | --enable-werror treat compile warnings as errors |
| 1312 | |
| 1313 | Optional Packages: |
| 1314 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1315 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1316 | --with-ust=PATH Specify prefix directory for the installed UST package |
| 1317 | Equivalent to --with-ust-include=PATH/include |
| 1318 | plus --with-ust-lib=PATH/lib |
| 1319 | --with-ust-include=PATH Specify directory for installed UST include files |
| 1320 | --with-ust-lib=PATH Specify the directory for the installed UST library |
| 1321 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
| 1322 | --with-bugurl=URL Direct users to URL to report a bug |
| 1323 | --with-libthread-db=PATH |
| 1324 | use given libthread_db directly |
| 1325 | |
| 1326 | Some influential environment variables: |
| 1327 | CC C compiler command |
| 1328 | CFLAGS C compiler flags |
| 1329 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1330 | nonstandard directory <lib dir> |
| 1331 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1332 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1333 | you have headers in a nonstandard directory <include dir> |
| 1334 | CPP C preprocessor |
| 1335 | |
| 1336 | Use these variables to override the choices made by `configure' or to help |
| 1337 | it to find libraries and programs with nonstandard names/locations. |
| 1338 | |
| 1339 | Report bugs to the package provider. |
| 1340 | _ACEOF |
| 1341 | ac_status=$? |
| 1342 | fi |
| 1343 | |
| 1344 | if test "$ac_init_help" = "recursive"; then |
| 1345 | # If there are subdirs, report their specific --help. |
| 1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1347 | test -d "$ac_dir" || |
| 1348 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1349 | continue |
| 1350 | ac_builddir=. |
| 1351 | |
| 1352 | case "$ac_dir" in |
| 1353 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1354 | *) |
| 1355 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1356 | # A ".." for each directory in $ac_dir_suffix. |
| 1357 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1358 | case $ac_top_builddir_sub in |
| 1359 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1360 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1361 | esac ;; |
| 1362 | esac |
| 1363 | ac_abs_top_builddir=$ac_pwd |
| 1364 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1365 | # for backward compatibility: |
| 1366 | ac_top_builddir=$ac_top_build_prefix |
| 1367 | |
| 1368 | case $srcdir in |
| 1369 | .) # We are building in place. |
| 1370 | ac_srcdir=. |
| 1371 | ac_top_srcdir=$ac_top_builddir_sub |
| 1372 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1373 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1374 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1375 | ac_top_srcdir=$srcdir |
| 1376 | ac_abs_top_srcdir=$srcdir ;; |
| 1377 | *) # Relative name. |
| 1378 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1379 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1380 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1381 | esac |
| 1382 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1383 | |
| 1384 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1385 | # Check for guested configure. |
| 1386 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1387 | echo && |
| 1388 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1389 | elif test -f "$ac_srcdir/configure"; then |
| 1390 | echo && |
| 1391 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1392 | else |
| 1393 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1394 | fi || ac_status=$? |
| 1395 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1396 | done |
| 1397 | fi |
| 1398 | |
| 1399 | test -n "$ac_init_help" && exit $ac_status |
| 1400 | if $ac_init_version; then |
| 1401 | cat <<\_ACEOF |
| 1402 | configure |
| 1403 | generated by GNU Autoconf 2.64 |
| 1404 | |
| 1405 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 1406 | This configure script is free software; the Free Software Foundation |
| 1407 | gives unlimited permission to copy, distribute and modify it. |
| 1408 | _ACEOF |
| 1409 | exit |
| 1410 | fi |
| 1411 | |
| 1412 | ## ------------------------ ## |
| 1413 | ## Autoconf initialization. ## |
| 1414 | ## ------------------------ ## |
| 1415 | |
| 1416 | # ac_fn_c_try_compile LINENO |
| 1417 | # -------------------------- |
| 1418 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1419 | ac_fn_c_try_compile () |
| 1420 | { |
| 1421 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1422 | rm -f conftest.$ac_objext |
| 1423 | if { { ac_try="$ac_compile" |
| 1424 | case "(($ac_try" in |
| 1425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1426 | *) ac_try_echo=$ac_try;; |
| 1427 | esac |
| 1428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1429 | $as_echo "$ac_try_echo"; } >&5 |
| 1430 | (eval "$ac_compile") 2>conftest.err |
| 1431 | ac_status=$? |
| 1432 | if test -s conftest.err; then |
| 1433 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1434 | cat conftest.er1 >&5 |
| 1435 | mv -f conftest.er1 conftest.err |
| 1436 | fi |
| 1437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1438 | test $ac_status = 0; } && { |
| 1439 | test -z "$ac_c_werror_flag" || |
| 1440 | test ! -s conftest.err |
| 1441 | } && test -s conftest.$ac_objext; then : |
| 1442 | ac_retval=0 |
| 1443 | else |
| 1444 | $as_echo "$as_me: failed program was:" >&5 |
| 1445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1446 | |
| 1447 | ac_retval=1 |
| 1448 | fi |
| 1449 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1450 | return $ac_retval |
| 1451 | |
| 1452 | } # ac_fn_c_try_compile |
| 1453 | |
| 1454 | # ac_fn_c_try_cpp LINENO |
| 1455 | # ---------------------- |
| 1456 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1457 | ac_fn_c_try_cpp () |
| 1458 | { |
| 1459 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1460 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1461 | case "(($ac_try" in |
| 1462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1463 | *) ac_try_echo=$ac_try;; |
| 1464 | esac |
| 1465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1466 | $as_echo "$ac_try_echo"; } >&5 |
| 1467 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1468 | ac_status=$? |
| 1469 | if test -s conftest.err; then |
| 1470 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1471 | cat conftest.er1 >&5 |
| 1472 | mv -f conftest.er1 conftest.err |
| 1473 | fi |
| 1474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1475 | test $ac_status = 0; } >/dev/null && { |
| 1476 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1477 | test ! -s conftest.err |
| 1478 | }; then : |
| 1479 | ac_retval=0 |
| 1480 | else |
| 1481 | $as_echo "$as_me: failed program was:" >&5 |
| 1482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1483 | |
| 1484 | ac_retval=1 |
| 1485 | fi |
| 1486 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1487 | return $ac_retval |
| 1488 | |
| 1489 | } # ac_fn_c_try_cpp |
| 1490 | |
| 1491 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1492 | # ------------------------------------------------------- |
| 1493 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1494 | # the include files in INCLUDES and setting the cache variable VAR |
| 1495 | # accordingly. |
| 1496 | ac_fn_c_check_header_mongrel () |
| 1497 | { |
| 1498 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1499 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1501 | $as_echo_n "checking for $2... " >&6; } |
| 1502 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1503 | $as_echo_n "(cached) " >&6 |
| 1504 | fi |
| 1505 | eval ac_res=\$$3 |
| 1506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1507 | $as_echo "$ac_res" >&6; } |
| 1508 | else |
| 1509 | # Is the header compilable? |
| 1510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1511 | $as_echo_n "checking $2 usability... " >&6; } |
| 1512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1513 | /* end confdefs.h. */ |
| 1514 | $4 |
| 1515 | #include <$2> |
| 1516 | _ACEOF |
| 1517 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1518 | ac_header_compiler=yes |
| 1519 | else |
| 1520 | ac_header_compiler=no |
| 1521 | fi |
| 1522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1524 | $as_echo "$ac_header_compiler" >&6; } |
| 1525 | |
| 1526 | # Is the header present? |
| 1527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1528 | $as_echo_n "checking $2 presence... " >&6; } |
| 1529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1530 | /* end confdefs.h. */ |
| 1531 | #include <$2> |
| 1532 | _ACEOF |
| 1533 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1534 | ac_header_preproc=yes |
| 1535 | else |
| 1536 | ac_header_preproc=no |
| 1537 | fi |
| 1538 | rm -f conftest.err conftest.$ac_ext |
| 1539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1540 | $as_echo "$ac_header_preproc" >&6; } |
| 1541 | |
| 1542 | # So? What about this header? |
| 1543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1544 | yes:no: ) |
| 1545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1546 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1548 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1549 | ;; |
| 1550 | no:yes:* ) |
| 1551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1552 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1554 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1556 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1558 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1560 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1561 | ;; |
| 1562 | esac |
| 1563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1564 | $as_echo_n "checking for $2... " >&6; } |
| 1565 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1566 | $as_echo_n "(cached) " >&6 |
| 1567 | else |
| 1568 | eval "$3=\$ac_header_compiler" |
| 1569 | fi |
| 1570 | eval ac_res=\$$3 |
| 1571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1572 | $as_echo "$ac_res" >&6; } |
| 1573 | fi |
| 1574 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1575 | |
| 1576 | } # ac_fn_c_check_header_mongrel |
| 1577 | |
| 1578 | # ac_fn_c_try_run LINENO |
| 1579 | # ---------------------- |
| 1580 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1581 | # that executables *can* be run. |
| 1582 | ac_fn_c_try_run () |
| 1583 | { |
| 1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1585 | if { { ac_try="$ac_link" |
| 1586 | case "(($ac_try" in |
| 1587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1588 | *) ac_try_echo=$ac_try;; |
| 1589 | esac |
| 1590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1591 | $as_echo "$ac_try_echo"; } >&5 |
| 1592 | (eval "$ac_link") 2>&5 |
| 1593 | ac_status=$? |
| 1594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1595 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1596 | { { case "(($ac_try" in |
| 1597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1598 | *) ac_try_echo=$ac_try;; |
| 1599 | esac |
| 1600 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1601 | $as_echo "$ac_try_echo"; } >&5 |
| 1602 | (eval "$ac_try") 2>&5 |
| 1603 | ac_status=$? |
| 1604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1605 | test $ac_status = 0; }; }; then : |
| 1606 | ac_retval=0 |
| 1607 | else |
| 1608 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1609 | $as_echo "$as_me: failed program was:" >&5 |
| 1610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1611 | |
| 1612 | ac_retval=$ac_status |
| 1613 | fi |
| 1614 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1615 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1616 | return $ac_retval |
| 1617 | |
| 1618 | } # ac_fn_c_try_run |
| 1619 | |
| 1620 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1621 | # ------------------------------------------------------- |
| 1622 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1623 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1624 | ac_fn_c_check_header_compile () |
| 1625 | { |
| 1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1628 | $as_echo_n "checking for $2... " >&6; } |
| 1629 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1630 | $as_echo_n "(cached) " >&6 |
| 1631 | else |
| 1632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1633 | /* end confdefs.h. */ |
| 1634 | $4 |
| 1635 | #include <$2> |
| 1636 | _ACEOF |
| 1637 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1638 | eval "$3=yes" |
| 1639 | else |
| 1640 | eval "$3=no" |
| 1641 | fi |
| 1642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1643 | fi |
| 1644 | eval ac_res=\$$3 |
| 1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1646 | $as_echo "$ac_res" >&6; } |
| 1647 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1648 | |
| 1649 | } # ac_fn_c_check_header_compile |
| 1650 | |
| 1651 | # ac_fn_c_try_link LINENO |
| 1652 | # ----------------------- |
| 1653 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1654 | ac_fn_c_try_link () |
| 1655 | { |
| 1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1657 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1658 | if { { ac_try="$ac_link" |
| 1659 | case "(($ac_try" in |
| 1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1661 | *) ac_try_echo=$ac_try;; |
| 1662 | esac |
| 1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1664 | $as_echo "$ac_try_echo"; } >&5 |
| 1665 | (eval "$ac_link") 2>conftest.err |
| 1666 | ac_status=$? |
| 1667 | if test -s conftest.err; then |
| 1668 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1669 | cat conftest.er1 >&5 |
| 1670 | mv -f conftest.er1 conftest.err |
| 1671 | fi |
| 1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1673 | test $ac_status = 0; } && { |
| 1674 | test -z "$ac_c_werror_flag" || |
| 1675 | test ! -s conftest.err |
| 1676 | } && test -s conftest$ac_exeext && { |
| 1677 | test "$cross_compiling" = yes || |
| 1678 | $as_test_x conftest$ac_exeext |
| 1679 | }; then : |
| 1680 | ac_retval=0 |
| 1681 | else |
| 1682 | $as_echo "$as_me: failed program was:" >&5 |
| 1683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1684 | |
| 1685 | ac_retval=1 |
| 1686 | fi |
| 1687 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1688 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1689 | # interfere with the next link command; also delete a directory that is |
| 1690 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1691 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1692 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1693 | return $ac_retval |
| 1694 | |
| 1695 | } # ac_fn_c_try_link |
| 1696 | |
| 1697 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1698 | # ---------------------------------- |
| 1699 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1700 | ac_fn_c_check_func () |
| 1701 | { |
| 1702 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1704 | $as_echo_n "checking for $2... " >&6; } |
| 1705 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1706 | $as_echo_n "(cached) " >&6 |
| 1707 | else |
| 1708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1709 | /* end confdefs.h. */ |
| 1710 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1711 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1712 | #define $2 innocuous_$2 |
| 1713 | |
| 1714 | /* System header to define __stub macros and hopefully few prototypes, |
| 1715 | which can conflict with char $2 (); below. |
| 1716 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1717 | <limits.h> exists even on freestanding compilers. */ |
| 1718 | |
| 1719 | #ifdef __STDC__ |
| 1720 | # include <limits.h> |
| 1721 | #else |
| 1722 | # include <assert.h> |
| 1723 | #endif |
| 1724 | |
| 1725 | #undef $2 |
| 1726 | |
| 1727 | /* Override any GCC internal prototype to avoid an error. |
| 1728 | Use char because int might match the return type of a GCC |
| 1729 | builtin and then its argument prototype would still apply. */ |
| 1730 | #ifdef __cplusplus |
| 1731 | extern "C" |
| 1732 | #endif |
| 1733 | char $2 (); |
| 1734 | /* The GNU C library defines this for functions which it implements |
| 1735 | to always fail with ENOSYS. Some functions are actually named |
| 1736 | something starting with __ and the normal name is an alias. */ |
| 1737 | #if defined __stub_$2 || defined __stub___$2 |
| 1738 | choke me |
| 1739 | #endif |
| 1740 | |
| 1741 | int |
| 1742 | main () |
| 1743 | { |
| 1744 | return $2 (); |
| 1745 | ; |
| 1746 | return 0; |
| 1747 | } |
| 1748 | _ACEOF |
| 1749 | if ac_fn_c_try_link "$LINENO"; then : |
| 1750 | eval "$3=yes" |
| 1751 | else |
| 1752 | eval "$3=no" |
| 1753 | fi |
| 1754 | rm -f core conftest.err conftest.$ac_objext \ |
| 1755 | conftest$ac_exeext conftest.$ac_ext |
| 1756 | fi |
| 1757 | eval ac_res=\$$3 |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1759 | $as_echo "$ac_res" >&6; } |
| 1760 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1761 | |
| 1762 | } # ac_fn_c_check_func |
| 1763 | |
| 1764 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 1765 | # ------------------------------------ |
| 1766 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 1767 | ac_fn_c_check_decl () |
| 1768 | { |
| 1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1770 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1771 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1773 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1774 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1775 | $as_echo_n "(cached) " >&6 |
| 1776 | else |
| 1777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1778 | /* end confdefs.h. */ |
| 1779 | $4 |
| 1780 | int |
| 1781 | main () |
| 1782 | { |
| 1783 | #ifndef $as_decl_name |
| 1784 | #ifdef __cplusplus |
| 1785 | (void) $as_decl_use; |
| 1786 | #else |
| 1787 | (void) $as_decl_name; |
| 1788 | #endif |
| 1789 | #endif |
| 1790 | |
| 1791 | ; |
| 1792 | return 0; |
| 1793 | } |
| 1794 | _ACEOF |
| 1795 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1796 | eval "$3=yes" |
| 1797 | else |
| 1798 | eval "$3=no" |
| 1799 | fi |
| 1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1801 | fi |
| 1802 | eval ac_res=\$$3 |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1804 | $as_echo "$ac_res" >&6; } |
| 1805 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1806 | |
| 1807 | } # ac_fn_c_check_decl |
| 1808 | |
| 1809 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1810 | # ------------------------------------------- |
| 1811 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1812 | # variable VAR accordingly. |
| 1813 | ac_fn_c_check_type () |
| 1814 | { |
| 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1817 | $as_echo_n "checking for $2... " >&6; } |
| 1818 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1819 | $as_echo_n "(cached) " >&6 |
| 1820 | else |
| 1821 | eval "$3=no" |
| 1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1823 | /* end confdefs.h. */ |
| 1824 | $4 |
| 1825 | int |
| 1826 | main () |
| 1827 | { |
| 1828 | if (sizeof ($2)) |
| 1829 | return 0; |
| 1830 | ; |
| 1831 | return 0; |
| 1832 | } |
| 1833 | _ACEOF |
| 1834 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1836 | /* end confdefs.h. */ |
| 1837 | $4 |
| 1838 | int |
| 1839 | main () |
| 1840 | { |
| 1841 | if (sizeof (($2))) |
| 1842 | return 0; |
| 1843 | ; |
| 1844 | return 0; |
| 1845 | } |
| 1846 | _ACEOF |
| 1847 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1848 | |
| 1849 | else |
| 1850 | eval "$3=yes" |
| 1851 | fi |
| 1852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1853 | fi |
| 1854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1855 | fi |
| 1856 | eval ac_res=\$$3 |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1858 | $as_echo "$ac_res" >&6; } |
| 1859 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1860 | |
| 1861 | } # ac_fn_c_check_type |
| 1862 | cat >config.log <<_ACEOF |
| 1863 | This file contains any messages produced by compilers while |
| 1864 | running configure, to aid debugging if configure makes a mistake. |
| 1865 | |
| 1866 | It was created by $as_me, which was |
| 1867 | generated by GNU Autoconf 2.64. Invocation command line was |
| 1868 | |
| 1869 | $ $0 $@ |
| 1870 | |
| 1871 | _ACEOF |
| 1872 | exec 5>>config.log |
| 1873 | { |
| 1874 | cat <<_ASUNAME |
| 1875 | ## --------- ## |
| 1876 | ## Platform. ## |
| 1877 | ## --------- ## |
| 1878 | |
| 1879 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1880 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1881 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1882 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1883 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1884 | |
| 1885 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1886 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1887 | |
| 1888 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1889 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1890 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1891 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1892 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1893 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1894 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1895 | |
| 1896 | _ASUNAME |
| 1897 | |
| 1898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1899 | for as_dir in $PATH |
| 1900 | do |
| 1901 | IFS=$as_save_IFS |
| 1902 | test -z "$as_dir" && as_dir=. |
| 1903 | $as_echo "PATH: $as_dir" |
| 1904 | done |
| 1905 | IFS=$as_save_IFS |
| 1906 | |
| 1907 | } >&5 |
| 1908 | |
| 1909 | cat >&5 <<_ACEOF |
| 1910 | |
| 1911 | |
| 1912 | ## ----------- ## |
| 1913 | ## Core tests. ## |
| 1914 | ## ----------- ## |
| 1915 | |
| 1916 | _ACEOF |
| 1917 | |
| 1918 | |
| 1919 | # Keep a trace of the command line. |
| 1920 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1921 | # Strip out --silent because we don't want to record it for future runs. |
| 1922 | # Also quote any args containing shell meta-characters. |
| 1923 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1924 | ac_configure_args= |
| 1925 | ac_configure_args0= |
| 1926 | ac_configure_args1= |
| 1927 | ac_must_keep_next=false |
| 1928 | for ac_pass in 1 2 |
| 1929 | do |
| 1930 | for ac_arg |
| 1931 | do |
| 1932 | case $ac_arg in |
| 1933 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1934 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1935 | | -silent | --silent | --silen | --sile | --sil) |
| 1936 | continue ;; |
| 1937 | *\'*) |
| 1938 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1939 | esac |
| 1940 | case $ac_pass in |
| 1941 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1942 | 2) |
| 1943 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1944 | if test $ac_must_keep_next = true; then |
| 1945 | ac_must_keep_next=false # Got value, back to normal. |
| 1946 | else |
| 1947 | case $ac_arg in |
| 1948 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1949 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1950 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1951 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1952 | case "$ac_configure_args0 " in |
| 1953 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1954 | esac |
| 1955 | ;; |
| 1956 | -* ) ac_must_keep_next=true ;; |
| 1957 | esac |
| 1958 | fi |
| 1959 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1960 | ;; |
| 1961 | esac |
| 1962 | done |
| 1963 | done |
| 1964 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1965 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1966 | |
| 1967 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1968 | # config.log. We remove comments because anyway the quotes in there |
| 1969 | # would cause problems or look ugly. |
| 1970 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1971 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1972 | trap 'exit_status=$? |
| 1973 | # Save into config.log some information that might help in debugging. |
| 1974 | { |
| 1975 | echo |
| 1976 | |
| 1977 | cat <<\_ASBOX |
| 1978 | ## ---------------- ## |
| 1979 | ## Cache variables. ## |
| 1980 | ## ---------------- ## |
| 1981 | _ASBOX |
| 1982 | echo |
| 1983 | # The following way of writing the cache mishandles newlines in values, |
| 1984 | ( |
| 1985 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1986 | eval ac_val=\$$ac_var |
| 1987 | case $ac_val in #( |
| 1988 | *${as_nl}*) |
| 1989 | case $ac_var in #( |
| 1990 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1991 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1992 | esac |
| 1993 | case $ac_var in #( |
| 1994 | _ | IFS | as_nl) ;; #( |
| 1995 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1996 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1997 | esac ;; |
| 1998 | esac |
| 1999 | done |
| 2000 | (set) 2>&1 | |
| 2001 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2002 | *${as_nl}ac_space=\ *) |
| 2003 | sed -n \ |
| 2004 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2005 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2006 | ;; #( |
| 2007 | *) |
| 2008 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2009 | ;; |
| 2010 | esac | |
| 2011 | sort |
| 2012 | ) |
| 2013 | echo |
| 2014 | |
| 2015 | cat <<\_ASBOX |
| 2016 | ## ----------------- ## |
| 2017 | ## Output variables. ## |
| 2018 | ## ----------------- ## |
| 2019 | _ASBOX |
| 2020 | echo |
| 2021 | for ac_var in $ac_subst_vars |
| 2022 | do |
| 2023 | eval ac_val=\$$ac_var |
| 2024 | case $ac_val in |
| 2025 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2026 | esac |
| 2027 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2028 | done | sort |
| 2029 | echo |
| 2030 | |
| 2031 | if test -n "$ac_subst_files"; then |
| 2032 | cat <<\_ASBOX |
| 2033 | ## ------------------- ## |
| 2034 | ## File substitutions. ## |
| 2035 | ## ------------------- ## |
| 2036 | _ASBOX |
| 2037 | echo |
| 2038 | for ac_var in $ac_subst_files |
| 2039 | do |
| 2040 | eval ac_val=\$$ac_var |
| 2041 | case $ac_val in |
| 2042 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2043 | esac |
| 2044 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2045 | done | sort |
| 2046 | echo |
| 2047 | fi |
| 2048 | |
| 2049 | if test -s confdefs.h; then |
| 2050 | cat <<\_ASBOX |
| 2051 | ## ----------- ## |
| 2052 | ## confdefs.h. ## |
| 2053 | ## ----------- ## |
| 2054 | _ASBOX |
| 2055 | echo |
| 2056 | cat confdefs.h |
| 2057 | echo |
| 2058 | fi |
| 2059 | test "$ac_signal" != 0 && |
| 2060 | $as_echo "$as_me: caught signal $ac_signal" |
| 2061 | $as_echo "$as_me: exit $exit_status" |
| 2062 | } >&5 |
| 2063 | rm -f core *.core core.conftest.* && |
| 2064 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2065 | exit $exit_status |
| 2066 | ' 0 |
| 2067 | for ac_signal in 1 2 13 15; do |
| 2068 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2069 | done |
| 2070 | ac_signal=0 |
| 2071 | |
| 2072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2073 | rm -f -r conftest* confdefs.h |
| 2074 | |
| 2075 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2076 | |
| 2077 | # Predefined preprocessor variables. |
| 2078 | |
| 2079 | cat >>confdefs.h <<_ACEOF |
| 2080 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2081 | _ACEOF |
| 2082 | |
| 2083 | cat >>confdefs.h <<_ACEOF |
| 2084 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2085 | _ACEOF |
| 2086 | |
| 2087 | cat >>confdefs.h <<_ACEOF |
| 2088 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2089 | _ACEOF |
| 2090 | |
| 2091 | cat >>confdefs.h <<_ACEOF |
| 2092 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2093 | _ACEOF |
| 2094 | |
| 2095 | cat >>confdefs.h <<_ACEOF |
| 2096 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2097 | _ACEOF |
| 2098 | |
| 2099 | cat >>confdefs.h <<_ACEOF |
| 2100 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2101 | _ACEOF |
| 2102 | |
| 2103 | |
| 2104 | # Let the site file select an alternate cache file if it wants to. |
| 2105 | # Prefer an explicitly selected file to automatically selected ones. |
| 2106 | ac_site_file1=NONE |
| 2107 | ac_site_file2=NONE |
| 2108 | if test -n "$CONFIG_SITE"; then |
| 2109 | ac_site_file1=$CONFIG_SITE |
| 2110 | elif test "x$prefix" != xNONE; then |
| 2111 | ac_site_file1=$prefix/share/config.site |
| 2112 | ac_site_file2=$prefix/etc/config.site |
| 2113 | else |
| 2114 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2115 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2116 | fi |
| 2117 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2118 | do |
| 2119 | test "x$ac_site_file" = xNONE && continue |
| 2120 | if test -r "$ac_site_file"; then |
| 2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2122 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2123 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2124 | . "$ac_site_file" |
| 2125 | fi |
| 2126 | done |
| 2127 | |
| 2128 | if test -r "$cache_file"; then |
| 2129 | # Some versions of bash will fail to source /dev/null (special |
| 2130 | # files actually), so we avoid doing that. |
| 2131 | if test -f "$cache_file"; then |
| 2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2133 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2134 | case $cache_file in |
| 2135 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2136 | *) . "./$cache_file";; |
| 2137 | esac |
| 2138 | fi |
| 2139 | else |
| 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2141 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2142 | >$cache_file |
| 2143 | fi |
| 2144 | |
| 2145 | # Check that the precious variables saved in the cache have kept the same |
| 2146 | # value. |
| 2147 | ac_cache_corrupted=false |
| 2148 | for ac_var in $ac_precious_vars; do |
| 2149 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2150 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2151 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2152 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2153 | case $ac_old_set,$ac_new_set in |
| 2154 | set,) |
| 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2156 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2157 | ac_cache_corrupted=: ;; |
| 2158 | ,set) |
| 2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2160 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2161 | ac_cache_corrupted=: ;; |
| 2162 | ,);; |
| 2163 | *) |
| 2164 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2165 | # differences in whitespace do not lead to failure. |
| 2166 | ac_old_val_w=`echo x $ac_old_val` |
| 2167 | ac_new_val_w=`echo x $ac_new_val` |
| 2168 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2170 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2171 | ac_cache_corrupted=: |
| 2172 | else |
| 2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2174 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2175 | eval $ac_var=\$ac_old_val |
| 2176 | fi |
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2178 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2180 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2181 | fi;; |
| 2182 | esac |
| 2183 | # Pass precious variables to config.status. |
| 2184 | if test "$ac_new_set" = set; then |
| 2185 | case $ac_new_val in |
| 2186 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2187 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2188 | esac |
| 2189 | case " $ac_configure_args " in |
| 2190 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2191 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2192 | esac |
| 2193 | fi |
| 2194 | done |
| 2195 | if $ac_cache_corrupted; then |
| 2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2199 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2200 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2201 | fi |
| 2202 | ## -------------------- ## |
| 2203 | ## Main body of script. ## |
| 2204 | ## -------------------- ## |
| 2205 | |
| 2206 | ac_ext=c |
| 2207 | ac_cpp='$CPP $CPPFLAGS' |
| 2208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2211 | |
| 2212 | |
| 2213 | |
| 2214 | |
| 2215 | |
| 2216 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 2217 | |
| 2218 | |
| 2219 | |
| 2220 | ac_ext=c |
| 2221 | ac_cpp='$CPP $CPPFLAGS' |
| 2222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2225 | if test -n "$ac_tool_prefix"; then |
| 2226 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2227 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2229 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2230 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2231 | $as_echo_n "(cached) " >&6 |
| 2232 | else |
| 2233 | if test -n "$CC"; then |
| 2234 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2235 | else |
| 2236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2237 | for as_dir in $PATH |
| 2238 | do |
| 2239 | IFS=$as_save_IFS |
| 2240 | test -z "$as_dir" && as_dir=. |
| 2241 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2243 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2245 | break 2 |
| 2246 | fi |
| 2247 | done |
| 2248 | done |
| 2249 | IFS=$as_save_IFS |
| 2250 | |
| 2251 | fi |
| 2252 | fi |
| 2253 | CC=$ac_cv_prog_CC |
| 2254 | if test -n "$CC"; then |
| 2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2256 | $as_echo "$CC" >&6; } |
| 2257 | else |
| 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2259 | $as_echo "no" >&6; } |
| 2260 | fi |
| 2261 | |
| 2262 | |
| 2263 | fi |
| 2264 | if test -z "$ac_cv_prog_CC"; then |
| 2265 | ac_ct_CC=$CC |
| 2266 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2267 | set dummy gcc; ac_word=$2 |
| 2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2269 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2270 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2271 | $as_echo_n "(cached) " >&6 |
| 2272 | else |
| 2273 | if test -n "$ac_ct_CC"; then |
| 2274 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2275 | else |
| 2276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2277 | for as_dir in $PATH |
| 2278 | do |
| 2279 | IFS=$as_save_IFS |
| 2280 | test -z "$as_dir" && as_dir=. |
| 2281 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2283 | ac_cv_prog_ac_ct_CC="gcc" |
| 2284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2285 | break 2 |
| 2286 | fi |
| 2287 | done |
| 2288 | done |
| 2289 | IFS=$as_save_IFS |
| 2290 | |
| 2291 | fi |
| 2292 | fi |
| 2293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2294 | if test -n "$ac_ct_CC"; then |
| 2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2296 | $as_echo "$ac_ct_CC" >&6; } |
| 2297 | else |
| 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2299 | $as_echo "no" >&6; } |
| 2300 | fi |
| 2301 | |
| 2302 | if test "x$ac_ct_CC" = x; then |
| 2303 | CC="" |
| 2304 | else |
| 2305 | case $cross_compiling:$ac_tool_warned in |
| 2306 | yes:) |
| 2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2308 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2309 | ac_tool_warned=yes ;; |
| 2310 | esac |
| 2311 | CC=$ac_ct_CC |
| 2312 | fi |
| 2313 | else |
| 2314 | CC="$ac_cv_prog_CC" |
| 2315 | fi |
| 2316 | |
| 2317 | if test -z "$CC"; then |
| 2318 | if test -n "$ac_tool_prefix"; then |
| 2319 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2320 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2322 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2323 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2324 | $as_echo_n "(cached) " >&6 |
| 2325 | else |
| 2326 | if test -n "$CC"; then |
| 2327 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2328 | else |
| 2329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2330 | for as_dir in $PATH |
| 2331 | do |
| 2332 | IFS=$as_save_IFS |
| 2333 | test -z "$as_dir" && as_dir=. |
| 2334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2336 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2338 | break 2 |
| 2339 | fi |
| 2340 | done |
| 2341 | done |
| 2342 | IFS=$as_save_IFS |
| 2343 | |
| 2344 | fi |
| 2345 | fi |
| 2346 | CC=$ac_cv_prog_CC |
| 2347 | if test -n "$CC"; then |
| 2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2349 | $as_echo "$CC" >&6; } |
| 2350 | else |
| 2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2352 | $as_echo "no" >&6; } |
| 2353 | fi |
| 2354 | |
| 2355 | |
| 2356 | fi |
| 2357 | fi |
| 2358 | if test -z "$CC"; then |
| 2359 | # Extract the first word of "cc", so it can be a program name with args. |
| 2360 | set dummy cc; ac_word=$2 |
| 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2362 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2363 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2364 | $as_echo_n "(cached) " >&6 |
| 2365 | else |
| 2366 | if test -n "$CC"; then |
| 2367 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2368 | else |
| 2369 | ac_prog_rejected=no |
| 2370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2371 | for as_dir in $PATH |
| 2372 | do |
| 2373 | IFS=$as_save_IFS |
| 2374 | test -z "$as_dir" && as_dir=. |
| 2375 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2377 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2378 | ac_prog_rejected=yes |
| 2379 | continue |
| 2380 | fi |
| 2381 | ac_cv_prog_CC="cc" |
| 2382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2383 | break 2 |
| 2384 | fi |
| 2385 | done |
| 2386 | done |
| 2387 | IFS=$as_save_IFS |
| 2388 | |
| 2389 | if test $ac_prog_rejected = yes; then |
| 2390 | # We found a bogon in the path, so make sure we never use it. |
| 2391 | set dummy $ac_cv_prog_CC |
| 2392 | shift |
| 2393 | if test $# != 0; then |
| 2394 | # We chose a different compiler from the bogus one. |
| 2395 | # However, it has the same basename, so the bogon will be chosen |
| 2396 | # first if we set CC to just the basename; use the full file name. |
| 2397 | shift |
| 2398 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2399 | fi |
| 2400 | fi |
| 2401 | fi |
| 2402 | fi |
| 2403 | CC=$ac_cv_prog_CC |
| 2404 | if test -n "$CC"; then |
| 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2406 | $as_echo "$CC" >&6; } |
| 2407 | else |
| 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2409 | $as_echo "no" >&6; } |
| 2410 | fi |
| 2411 | |
| 2412 | |
| 2413 | fi |
| 2414 | if test -z "$CC"; then |
| 2415 | if test -n "$ac_tool_prefix"; then |
| 2416 | for ac_prog in cl.exe |
| 2417 | do |
| 2418 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2419 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2421 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2422 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2423 | $as_echo_n "(cached) " >&6 |
| 2424 | else |
| 2425 | if test -n "$CC"; then |
| 2426 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2427 | else |
| 2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2429 | for as_dir in $PATH |
| 2430 | do |
| 2431 | IFS=$as_save_IFS |
| 2432 | test -z "$as_dir" && as_dir=. |
| 2433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2435 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2437 | break 2 |
| 2438 | fi |
| 2439 | done |
| 2440 | done |
| 2441 | IFS=$as_save_IFS |
| 2442 | |
| 2443 | fi |
| 2444 | fi |
| 2445 | CC=$ac_cv_prog_CC |
| 2446 | if test -n "$CC"; then |
| 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2448 | $as_echo "$CC" >&6; } |
| 2449 | else |
| 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2451 | $as_echo "no" >&6; } |
| 2452 | fi |
| 2453 | |
| 2454 | |
| 2455 | test -n "$CC" && break |
| 2456 | done |
| 2457 | fi |
| 2458 | if test -z "$CC"; then |
| 2459 | ac_ct_CC=$CC |
| 2460 | for ac_prog in cl.exe |
| 2461 | do |
| 2462 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2463 | set dummy $ac_prog; ac_word=$2 |
| 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2465 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2466 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2467 | $as_echo_n "(cached) " >&6 |
| 2468 | else |
| 2469 | if test -n "$ac_ct_CC"; then |
| 2470 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2471 | else |
| 2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2473 | for as_dir in $PATH |
| 2474 | do |
| 2475 | IFS=$as_save_IFS |
| 2476 | test -z "$as_dir" && as_dir=. |
| 2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2479 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2481 | break 2 |
| 2482 | fi |
| 2483 | done |
| 2484 | done |
| 2485 | IFS=$as_save_IFS |
| 2486 | |
| 2487 | fi |
| 2488 | fi |
| 2489 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2490 | if test -n "$ac_ct_CC"; then |
| 2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2492 | $as_echo "$ac_ct_CC" >&6; } |
| 2493 | else |
| 2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2495 | $as_echo "no" >&6; } |
| 2496 | fi |
| 2497 | |
| 2498 | |
| 2499 | test -n "$ac_ct_CC" && break |
| 2500 | done |
| 2501 | |
| 2502 | if test "x$ac_ct_CC" = x; then |
| 2503 | CC="" |
| 2504 | else |
| 2505 | case $cross_compiling:$ac_tool_warned in |
| 2506 | yes:) |
| 2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2508 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2509 | ac_tool_warned=yes ;; |
| 2510 | esac |
| 2511 | CC=$ac_ct_CC |
| 2512 | fi |
| 2513 | fi |
| 2514 | |
| 2515 | fi |
| 2516 | |
| 2517 | |
| 2518 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2519 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2520 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2521 | See \`config.log' for more details." "$LINENO" 5; } |
| 2522 | |
| 2523 | # Provide some information about the compiler. |
| 2524 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2525 | set X $ac_compile |
| 2526 | ac_compiler=$2 |
| 2527 | for ac_option in --version -v -V -qversion; do |
| 2528 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2529 | case "(($ac_try" in |
| 2530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2531 | *) ac_try_echo=$ac_try;; |
| 2532 | esac |
| 2533 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2534 | $as_echo "$ac_try_echo"; } >&5 |
| 2535 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2536 | ac_status=$? |
| 2537 | if test -s conftest.err; then |
| 2538 | sed '10a\ |
| 2539 | ... rest of stderr output deleted ... |
| 2540 | 10q' conftest.err >conftest.er1 |
| 2541 | cat conftest.er1 >&5 |
| 2542 | rm -f conftest.er1 conftest.err |
| 2543 | fi |
| 2544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2545 | test $ac_status = 0; } |
| 2546 | done |
| 2547 | |
| 2548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2549 | /* end confdefs.h. */ |
| 2550 | |
| 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | ac_clean_files_save=$ac_clean_files |
| 2560 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
| 2561 | # Try to create an executable without -o first, disregard a.out. |
| 2562 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2563 | # of exeext. |
| 2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2565 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2566 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2567 | |
| 2568 | # The possible output files: |
| 2569 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2570 | |
| 2571 | ac_rmfiles= |
| 2572 | for ac_file in $ac_files |
| 2573 | do |
| 2574 | case $ac_file in |
| 2575 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2576 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2577 | esac |
| 2578 | done |
| 2579 | rm -f $ac_rmfiles |
| 2580 | |
| 2581 | if { { ac_try="$ac_link_default" |
| 2582 | case "(($ac_try" in |
| 2583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2584 | *) ac_try_echo=$ac_try;; |
| 2585 | esac |
| 2586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2587 | $as_echo "$ac_try_echo"; } >&5 |
| 2588 | (eval "$ac_link_default") 2>&5 |
| 2589 | ac_status=$? |
| 2590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2591 | test $ac_status = 0; }; then : |
| 2592 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2593 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2594 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2595 | # so that the user can short-circuit this test for compilers unknown to |
| 2596 | # Autoconf. |
| 2597 | for ac_file in $ac_files '' |
| 2598 | do |
| 2599 | test -f "$ac_file" || continue |
| 2600 | case $ac_file in |
| 2601 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2602 | ;; |
| 2603 | [ab].out ) |
| 2604 | # We found the default executable, but exeext='' is most |
| 2605 | # certainly right. |
| 2606 | break;; |
| 2607 | *.* ) |
| 2608 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2609 | then :; else |
| 2610 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2611 | fi |
| 2612 | # We set ac_cv_exeext here because the later test for it is not |
| 2613 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2614 | # argument, so we may need to know it at that point already. |
| 2615 | # Even if this section looks crufty: it has the advantage of |
| 2616 | # actually working. |
| 2617 | break;; |
| 2618 | * ) |
| 2619 | break;; |
| 2620 | esac |
| 2621 | done |
| 2622 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2623 | |
| 2624 | else |
| 2625 | ac_file='' |
| 2626 | fi |
| 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2628 | $as_echo "$ac_file" >&6; } |
| 2629 | if test -z "$ac_file"; then : |
| 2630 | $as_echo "$as_me: failed program was:" >&5 |
| 2631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2632 | |
| 2633 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2634 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2635 | { as_fn_set_status 77 |
| 2636 | as_fn_error "C compiler cannot create executables |
| 2637 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 2638 | fi |
| 2639 | ac_exeext=$ac_cv_exeext |
| 2640 | |
| 2641 | # Check that the compiler produces executables we can run. If not, either |
| 2642 | # the compiler is broken, or we cross compile. |
| 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2644 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2645 | # If not cross compiling, check that we can run a simple program. |
| 2646 | if test "$cross_compiling" != yes; then |
| 2647 | if { ac_try='./$ac_file' |
| 2648 | { { case "(($ac_try" in |
| 2649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2650 | *) ac_try_echo=$ac_try;; |
| 2651 | esac |
| 2652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2653 | $as_echo "$ac_try_echo"; } >&5 |
| 2654 | (eval "$ac_try") 2>&5 |
| 2655 | ac_status=$? |
| 2656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2657 | test $ac_status = 0; }; }; then |
| 2658 | cross_compiling=no |
| 2659 | else |
| 2660 | if test "$cross_compiling" = maybe; then |
| 2661 | cross_compiling=yes |
| 2662 | else |
| 2663 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2664 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2665 | as_fn_error "cannot run C compiled programs. |
| 2666 | If you meant to cross compile, use \`--host'. |
| 2667 | See \`config.log' for more details." "$LINENO" 5; } |
| 2668 | fi |
| 2669 | fi |
| 2670 | fi |
| 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2672 | $as_echo "yes" >&6; } |
| 2673 | |
| 2674 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
| 2675 | ac_clean_files=$ac_clean_files_save |
| 2676 | # Check that the compiler produces executables we can run. If not, either |
| 2677 | # the compiler is broken, or we cross compile. |
| 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2679 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2681 | $as_echo "$cross_compiling" >&6; } |
| 2682 | |
| 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2684 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2685 | if { { ac_try="$ac_link" |
| 2686 | case "(($ac_try" in |
| 2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2688 | *) ac_try_echo=$ac_try;; |
| 2689 | esac |
| 2690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2691 | $as_echo "$ac_try_echo"; } >&5 |
| 2692 | (eval "$ac_link") 2>&5 |
| 2693 | ac_status=$? |
| 2694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2695 | test $ac_status = 0; }; then : |
| 2696 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2697 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2698 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2699 | # `rm'. |
| 2700 | for ac_file in conftest.exe conftest conftest.*; do |
| 2701 | test -f "$ac_file" || continue |
| 2702 | case $ac_file in |
| 2703 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2704 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2705 | break;; |
| 2706 | * ) break;; |
| 2707 | esac |
| 2708 | done |
| 2709 | else |
| 2710 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2712 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2713 | See \`config.log' for more details." "$LINENO" 5; } |
| 2714 | fi |
| 2715 | rm -f conftest$ac_cv_exeext |
| 2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2717 | $as_echo "$ac_cv_exeext" >&6; } |
| 2718 | |
| 2719 | rm -f conftest.$ac_ext |
| 2720 | EXEEXT=$ac_cv_exeext |
| 2721 | ac_exeext=$EXEEXT |
| 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2723 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2724 | if test "${ac_cv_objext+set}" = set; then : |
| 2725 | $as_echo_n "(cached) " >&6 |
| 2726 | else |
| 2727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2728 | /* end confdefs.h. */ |
| 2729 | |
| 2730 | int |
| 2731 | main () |
| 2732 | { |
| 2733 | |
| 2734 | ; |
| 2735 | return 0; |
| 2736 | } |
| 2737 | _ACEOF |
| 2738 | rm -f conftest.o conftest.obj |
| 2739 | if { { ac_try="$ac_compile" |
| 2740 | case "(($ac_try" in |
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2742 | *) ac_try_echo=$ac_try;; |
| 2743 | esac |
| 2744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2745 | $as_echo "$ac_try_echo"; } >&5 |
| 2746 | (eval "$ac_compile") 2>&5 |
| 2747 | ac_status=$? |
| 2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2749 | test $ac_status = 0; }; then : |
| 2750 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2751 | test -f "$ac_file" || continue; |
| 2752 | case $ac_file in |
| 2753 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2754 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2755 | break;; |
| 2756 | esac |
| 2757 | done |
| 2758 | else |
| 2759 | $as_echo "$as_me: failed program was:" >&5 |
| 2760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2761 | |
| 2762 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2763 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2764 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2765 | See \`config.log' for more details." "$LINENO" 5; } |
| 2766 | fi |
| 2767 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2768 | fi |
| 2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2770 | $as_echo "$ac_cv_objext" >&6; } |
| 2771 | OBJEXT=$ac_cv_objext |
| 2772 | ac_objext=$OBJEXT |
| 2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2774 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2775 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2776 | $as_echo_n "(cached) " >&6 |
| 2777 | else |
| 2778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2779 | /* end confdefs.h. */ |
| 2780 | |
| 2781 | int |
| 2782 | main () |
| 2783 | { |
| 2784 | #ifndef __GNUC__ |
| 2785 | choke me |
| 2786 | #endif |
| 2787 | |
| 2788 | ; |
| 2789 | return 0; |
| 2790 | } |
| 2791 | _ACEOF |
| 2792 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2793 | ac_compiler_gnu=yes |
| 2794 | else |
| 2795 | ac_compiler_gnu=no |
| 2796 | fi |
| 2797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2798 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2799 | |
| 2800 | fi |
| 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2802 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2803 | if test $ac_compiler_gnu = yes; then |
| 2804 | GCC=yes |
| 2805 | else |
| 2806 | GCC= |
| 2807 | fi |
| 2808 | ac_test_CFLAGS=${CFLAGS+set} |
| 2809 | ac_save_CFLAGS=$CFLAGS |
| 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2811 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2812 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 2813 | $as_echo_n "(cached) " >&6 |
| 2814 | else |
| 2815 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2816 | ac_c_werror_flag=yes |
| 2817 | ac_cv_prog_cc_g=no |
| 2818 | CFLAGS="-g" |
| 2819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2820 | /* end confdefs.h. */ |
| 2821 | |
| 2822 | int |
| 2823 | main () |
| 2824 | { |
| 2825 | |
| 2826 | ; |
| 2827 | return 0; |
| 2828 | } |
| 2829 | _ACEOF |
| 2830 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2831 | ac_cv_prog_cc_g=yes |
| 2832 | else |
| 2833 | CFLAGS="" |
| 2834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2835 | /* end confdefs.h. */ |
| 2836 | |
| 2837 | int |
| 2838 | main () |
| 2839 | { |
| 2840 | |
| 2841 | ; |
| 2842 | return 0; |
| 2843 | } |
| 2844 | _ACEOF |
| 2845 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2846 | |
| 2847 | else |
| 2848 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2849 | CFLAGS="-g" |
| 2850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2851 | /* end confdefs.h. */ |
| 2852 | |
| 2853 | int |
| 2854 | main () |
| 2855 | { |
| 2856 | |
| 2857 | ; |
| 2858 | return 0; |
| 2859 | } |
| 2860 | _ACEOF |
| 2861 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2862 | ac_cv_prog_cc_g=yes |
| 2863 | fi |
| 2864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2865 | fi |
| 2866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2867 | fi |
| 2868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2869 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2870 | fi |
| 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2872 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 2873 | if test "$ac_test_CFLAGS" = set; then |
| 2874 | CFLAGS=$ac_save_CFLAGS |
| 2875 | elif test $ac_cv_prog_cc_g = yes; then |
| 2876 | if test "$GCC" = yes; then |
| 2877 | CFLAGS="-g -O2" |
| 2878 | else |
| 2879 | CFLAGS="-g" |
| 2880 | fi |
| 2881 | else |
| 2882 | if test "$GCC" = yes; then |
| 2883 | CFLAGS="-O2" |
| 2884 | else |
| 2885 | CFLAGS= |
| 2886 | fi |
| 2887 | fi |
| 2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 2889 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2890 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 2891 | $as_echo_n "(cached) " >&6 |
| 2892 | else |
| 2893 | ac_cv_prog_cc_c89=no |
| 2894 | ac_save_CC=$CC |
| 2895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2896 | /* end confdefs.h. */ |
| 2897 | #include <stdarg.h> |
| 2898 | #include <stdio.h> |
| 2899 | #include <sys/types.h> |
| 2900 | #include <sys/stat.h> |
| 2901 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2902 | struct buf { int x; }; |
| 2903 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2904 | static char *e (p, i) |
| 2905 | char **p; |
| 2906 | int i; |
| 2907 | { |
| 2908 | return p[i]; |
| 2909 | } |
| 2910 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2911 | { |
| 2912 | char *s; |
| 2913 | va_list v; |
| 2914 | va_start (v,p); |
| 2915 | s = g (p, va_arg (v,int)); |
| 2916 | va_end (v); |
| 2917 | return s; |
| 2918 | } |
| 2919 | |
| 2920 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2921 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2922 | These don't provoke an error unfortunately, instead are silently treated |
| 2923 | as 'x'. The following induces an error, until -std is added to get |
| 2924 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2925 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2926 | that's true only with -std. */ |
| 2927 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2928 | |
| 2929 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2930 | inside strings and character constants. */ |
| 2931 | #define FOO(x) 'x' |
| 2932 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2933 | |
| 2934 | int test (int i, double x); |
| 2935 | struct s1 {int (*f) (int a);}; |
| 2936 | struct s2 {int (*f) (double a);}; |
| 2937 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2938 | int argc; |
| 2939 | char **argv; |
| 2940 | int |
| 2941 | main () |
| 2942 | { |
| 2943 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2944 | ; |
| 2945 | return 0; |
| 2946 | } |
| 2947 | _ACEOF |
| 2948 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2949 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2950 | do |
| 2951 | CC="$ac_save_CC $ac_arg" |
| 2952 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2953 | ac_cv_prog_cc_c89=$ac_arg |
| 2954 | fi |
| 2955 | rm -f core conftest.err conftest.$ac_objext |
| 2956 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 2957 | done |
| 2958 | rm -f conftest.$ac_ext |
| 2959 | CC=$ac_save_CC |
| 2960 | |
| 2961 | fi |
| 2962 | # AC_CACHE_VAL |
| 2963 | case "x$ac_cv_prog_cc_c89" in |
| 2964 | x) |
| 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 2966 | $as_echo "none needed" >&6; } ;; |
| 2967 | xno) |
| 2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 2969 | $as_echo "unsupported" >&6; } ;; |
| 2970 | *) |
| 2971 | CC="$CC $ac_cv_prog_cc_c89" |
| 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 2973 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 2974 | esac |
| 2975 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 2976 | |
| 2977 | fi |
| 2978 | |
| 2979 | ac_ext=c |
| 2980 | ac_cpp='$CPP $CPPFLAGS' |
| 2981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2984 | |
| 2985 | |
| 2986 | ac_ext=c |
| 2987 | ac_cpp='$CPP $CPPFLAGS' |
| 2988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 2992 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 2993 | # On Suns, sometimes $CPP names a directory. |
| 2994 | if test -n "$CPP" && test -d "$CPP"; then |
| 2995 | CPP= |
| 2996 | fi |
| 2997 | if test -z "$CPP"; then |
| 2998 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 2999 | $as_echo_n "(cached) " >&6 |
| 3000 | else |
| 3001 | # Double quotes because CPP needs to be expanded |
| 3002 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3003 | do |
| 3004 | ac_preproc_ok=false |
| 3005 | for ac_c_preproc_warn_flag in '' yes |
| 3006 | do |
| 3007 | # Use a header file that comes with gcc, so configuring glibc |
| 3008 | # with a fresh cross-compiler works. |
| 3009 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3010 | # <limits.h> exists even on freestanding compilers. |
| 3011 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3012 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3014 | /* end confdefs.h. */ |
| 3015 | #ifdef __STDC__ |
| 3016 | # include <limits.h> |
| 3017 | #else |
| 3018 | # include <assert.h> |
| 3019 | #endif |
| 3020 | Syntax error |
| 3021 | _ACEOF |
| 3022 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3023 | |
| 3024 | else |
| 3025 | # Broken: fails on valid input. |
| 3026 | continue |
| 3027 | fi |
| 3028 | rm -f conftest.err conftest.$ac_ext |
| 3029 | |
| 3030 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3031 | # can be detected and how. |
| 3032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3033 | /* end confdefs.h. */ |
| 3034 | #include <ac_nonexistent.h> |
| 3035 | _ACEOF |
| 3036 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3037 | # Broken: success on invalid input. |
| 3038 | continue |
| 3039 | else |
| 3040 | # Passes both tests. |
| 3041 | ac_preproc_ok=: |
| 3042 | break |
| 3043 | fi |
| 3044 | rm -f conftest.err conftest.$ac_ext |
| 3045 | |
| 3046 | done |
| 3047 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3048 | rm -f conftest.err conftest.$ac_ext |
| 3049 | if $ac_preproc_ok; then : |
| 3050 | break |
| 3051 | fi |
| 3052 | |
| 3053 | done |
| 3054 | ac_cv_prog_CPP=$CPP |
| 3055 | |
| 3056 | fi |
| 3057 | CPP=$ac_cv_prog_CPP |
| 3058 | else |
| 3059 | ac_cv_prog_CPP=$CPP |
| 3060 | fi |
| 3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3062 | $as_echo "$CPP" >&6; } |
| 3063 | ac_preproc_ok=false |
| 3064 | for ac_c_preproc_warn_flag in '' yes |
| 3065 | do |
| 3066 | # Use a header file that comes with gcc, so configuring glibc |
| 3067 | # with a fresh cross-compiler works. |
| 3068 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3069 | # <limits.h> exists even on freestanding compilers. |
| 3070 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3071 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3073 | /* end confdefs.h. */ |
| 3074 | #ifdef __STDC__ |
| 3075 | # include <limits.h> |
| 3076 | #else |
| 3077 | # include <assert.h> |
| 3078 | #endif |
| 3079 | Syntax error |
| 3080 | _ACEOF |
| 3081 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3082 | |
| 3083 | else |
| 3084 | # Broken: fails on valid input. |
| 3085 | continue |
| 3086 | fi |
| 3087 | rm -f conftest.err conftest.$ac_ext |
| 3088 | |
| 3089 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3090 | # can be detected and how. |
| 3091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3092 | /* end confdefs.h. */ |
| 3093 | #include <ac_nonexistent.h> |
| 3094 | _ACEOF |
| 3095 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3096 | # Broken: success on invalid input. |
| 3097 | continue |
| 3098 | else |
| 3099 | # Passes both tests. |
| 3100 | ac_preproc_ok=: |
| 3101 | break |
| 3102 | fi |
| 3103 | rm -f conftest.err conftest.$ac_ext |
| 3104 | |
| 3105 | done |
| 3106 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3107 | rm -f conftest.err conftest.$ac_ext |
| 3108 | if $ac_preproc_ok; then : |
| 3109 | |
| 3110 | else |
| 3111 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3112 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3113 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 3114 | See \`config.log' for more details." "$LINENO" 5; } |
| 3115 | fi |
| 3116 | |
| 3117 | ac_ext=c |
| 3118 | ac_cpp='$CPP $CPPFLAGS' |
| 3119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3122 | |
| 3123 | |
| 3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3125 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3126 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 3127 | $as_echo_n "(cached) " >&6 |
| 3128 | else |
| 3129 | if test -z "$GREP"; then |
| 3130 | ac_path_GREP_found=false |
| 3131 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3133 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3134 | do |
| 3135 | IFS=$as_save_IFS |
| 3136 | test -z "$as_dir" && as_dir=. |
| 3137 | for ac_prog in grep ggrep; do |
| 3138 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3139 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3140 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3141 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3142 | # Check for GNU $ac_path_GREP |
| 3143 | case `"$ac_path_GREP" --version 2>&1` in |
| 3144 | *GNU*) |
| 3145 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3146 | *) |
| 3147 | ac_count=0 |
| 3148 | $as_echo_n 0123456789 >"conftest.in" |
| 3149 | while : |
| 3150 | do |
| 3151 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3152 | mv "conftest.tmp" "conftest.in" |
| 3153 | cp "conftest.in" "conftest.nl" |
| 3154 | $as_echo 'GREP' >> "conftest.nl" |
| 3155 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3156 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3157 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3158 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3159 | # Best one so far, save it but keep looking for a better one |
| 3160 | ac_cv_path_GREP="$ac_path_GREP" |
| 3161 | ac_path_GREP_max=$ac_count |
| 3162 | fi |
| 3163 | # 10*(2^10) chars as input seems more than enough |
| 3164 | test $ac_count -gt 10 && break |
| 3165 | done |
| 3166 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3167 | esac |
| 3168 | |
| 3169 | $ac_path_GREP_found && break 3 |
| 3170 | done |
| 3171 | done |
| 3172 | done |
| 3173 | IFS=$as_save_IFS |
| 3174 | if test -z "$ac_cv_path_GREP"; then |
| 3175 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3176 | fi |
| 3177 | else |
| 3178 | ac_cv_path_GREP=$GREP |
| 3179 | fi |
| 3180 | |
| 3181 | fi |
| 3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3183 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3184 | GREP="$ac_cv_path_GREP" |
| 3185 | |
| 3186 | |
| 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3188 | $as_echo_n "checking for egrep... " >&6; } |
| 3189 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 3190 | $as_echo_n "(cached) " >&6 |
| 3191 | else |
| 3192 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3193 | then ac_cv_path_EGREP="$GREP -E" |
| 3194 | else |
| 3195 | if test -z "$EGREP"; then |
| 3196 | ac_path_EGREP_found=false |
| 3197 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3199 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3200 | do |
| 3201 | IFS=$as_save_IFS |
| 3202 | test -z "$as_dir" && as_dir=. |
| 3203 | for ac_prog in egrep; do |
| 3204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3205 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3206 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3207 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3208 | # Check for GNU $ac_path_EGREP |
| 3209 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3210 | *GNU*) |
| 3211 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3212 | *) |
| 3213 | ac_count=0 |
| 3214 | $as_echo_n 0123456789 >"conftest.in" |
| 3215 | while : |
| 3216 | do |
| 3217 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3218 | mv "conftest.tmp" "conftest.in" |
| 3219 | cp "conftest.in" "conftest.nl" |
| 3220 | $as_echo 'EGREP' >> "conftest.nl" |
| 3221 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3222 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3223 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3224 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3225 | # Best one so far, save it but keep looking for a better one |
| 3226 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3227 | ac_path_EGREP_max=$ac_count |
| 3228 | fi |
| 3229 | # 10*(2^10) chars as input seems more than enough |
| 3230 | test $ac_count -gt 10 && break |
| 3231 | done |
| 3232 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3233 | esac |
| 3234 | |
| 3235 | $ac_path_EGREP_found && break 3 |
| 3236 | done |
| 3237 | done |
| 3238 | done |
| 3239 | IFS=$as_save_IFS |
| 3240 | if test -z "$ac_cv_path_EGREP"; then |
| 3241 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3242 | fi |
| 3243 | else |
| 3244 | ac_cv_path_EGREP=$EGREP |
| 3245 | fi |
| 3246 | |
| 3247 | fi |
| 3248 | fi |
| 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3250 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3251 | EGREP="$ac_cv_path_EGREP" |
| 3252 | |
| 3253 | |
| 3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3255 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3256 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 3257 | $as_echo_n "(cached) " >&6 |
| 3258 | else |
| 3259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3260 | /* end confdefs.h. */ |
| 3261 | #include <stdlib.h> |
| 3262 | #include <stdarg.h> |
| 3263 | #include <string.h> |
| 3264 | #include <float.h> |
| 3265 | |
| 3266 | int |
| 3267 | main () |
| 3268 | { |
| 3269 | |
| 3270 | ; |
| 3271 | return 0; |
| 3272 | } |
| 3273 | _ACEOF |
| 3274 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3275 | ac_cv_header_stdc=yes |
| 3276 | else |
| 3277 | ac_cv_header_stdc=no |
| 3278 | fi |
| 3279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3280 | |
| 3281 | if test $ac_cv_header_stdc = yes; then |
| 3282 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3284 | /* end confdefs.h. */ |
| 3285 | #include <string.h> |
| 3286 | |
| 3287 | _ACEOF |
| 3288 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3289 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3290 | |
| 3291 | else |
| 3292 | ac_cv_header_stdc=no |
| 3293 | fi |
| 3294 | rm -f conftest* |
| 3295 | |
| 3296 | fi |
| 3297 | |
| 3298 | if test $ac_cv_header_stdc = yes; then |
| 3299 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3301 | /* end confdefs.h. */ |
| 3302 | #include <stdlib.h> |
| 3303 | |
| 3304 | _ACEOF |
| 3305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3306 | $EGREP "free" >/dev/null 2>&1; then : |
| 3307 | |
| 3308 | else |
| 3309 | ac_cv_header_stdc=no |
| 3310 | fi |
| 3311 | rm -f conftest* |
| 3312 | |
| 3313 | fi |
| 3314 | |
| 3315 | if test $ac_cv_header_stdc = yes; then |
| 3316 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3317 | if test "$cross_compiling" = yes; then : |
| 3318 | : |
| 3319 | else |
| 3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3321 | /* end confdefs.h. */ |
| 3322 | #include <ctype.h> |
| 3323 | #include <stdlib.h> |
| 3324 | #if ((' ' & 0x0FF) == 0x020) |
| 3325 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3326 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3327 | #else |
| 3328 | # define ISLOWER(c) \ |
| 3329 | (('a' <= (c) && (c) <= 'i') \ |
| 3330 | || ('j' <= (c) && (c) <= 'r') \ |
| 3331 | || ('s' <= (c) && (c) <= 'z')) |
| 3332 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3333 | #endif |
| 3334 | |
| 3335 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3336 | int |
| 3337 | main () |
| 3338 | { |
| 3339 | int i; |
| 3340 | for (i = 0; i < 256; i++) |
| 3341 | if (XOR (islower (i), ISLOWER (i)) |
| 3342 | || toupper (i) != TOUPPER (i)) |
| 3343 | return 2; |
| 3344 | return 0; |
| 3345 | } |
| 3346 | _ACEOF |
| 3347 | if ac_fn_c_try_run "$LINENO"; then : |
| 3348 | |
| 3349 | else |
| 3350 | ac_cv_header_stdc=no |
| 3351 | fi |
| 3352 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3353 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3354 | fi |
| 3355 | |
| 3356 | fi |
| 3357 | fi |
| 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3359 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3360 | if test $ac_cv_header_stdc = yes; then |
| 3361 | |
| 3362 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3363 | |
| 3364 | fi |
| 3365 | |
| 3366 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3367 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3368 | inttypes.h stdint.h unistd.h |
| 3369 | do : |
| 3370 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3371 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3372 | " |
| 3373 | eval as_val=\$$as_ac_Header |
| 3374 | if test "x$as_val" = x""yes; then : |
| 3375 | cat >>confdefs.h <<_ACEOF |
| 3376 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3377 | _ACEOF |
| 3378 | |
| 3379 | fi |
| 3380 | |
| 3381 | done |
| 3382 | |
| 3383 | |
| 3384 | |
| 3385 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 3386 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 3387 | MINIX=yes |
| 3388 | else |
| 3389 | MINIX= |
| 3390 | fi |
| 3391 | |
| 3392 | |
| 3393 | if test "$MINIX" = yes; then |
| 3394 | |
| 3395 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 3396 | |
| 3397 | |
| 3398 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 3399 | |
| 3400 | |
| 3401 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 3402 | |
| 3403 | fi |
| 3404 | |
| 3405 | |
| 3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 3407 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 3408 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 3409 | $as_echo_n "(cached) " >&6 |
| 3410 | else |
| 3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3412 | /* end confdefs.h. */ |
| 3413 | |
| 3414 | # define __EXTENSIONS__ 1 |
| 3415 | $ac_includes_default |
| 3416 | int |
| 3417 | main () |
| 3418 | { |
| 3419 | |
| 3420 | ; |
| 3421 | return 0; |
| 3422 | } |
| 3423 | _ACEOF |
| 3424 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3425 | ac_cv_safe_to_define___extensions__=yes |
| 3426 | else |
| 3427 | ac_cv_safe_to_define___extensions__=no |
| 3428 | fi |
| 3429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3430 | fi |
| 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 3432 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 3433 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 3434 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 3435 | |
| 3436 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 3437 | |
| 3438 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 3439 | |
| 3440 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 3441 | |
| 3442 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 3443 | |
| 3444 | |
| 3445 | |
| 3446 | |
| 3447 | ac_aux_dir= |
| 3448 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3449 | for ac_t in install-sh install.sh shtool; do |
| 3450 | if test -f "$ac_dir/$ac_t"; then |
| 3451 | ac_aux_dir=$ac_dir |
| 3452 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3453 | break 2 |
| 3454 | fi |
| 3455 | done |
| 3456 | done |
| 3457 | if test -z "$ac_aux_dir"; then |
| 3458 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3459 | fi |
| 3460 | |
| 3461 | # These three variables are undocumented and unsupported, |
| 3462 | # and are intended to be withdrawn in a future Autoconf release. |
| 3463 | # They can cause serious problems if a builder's source tree is in a directory |
| 3464 | # whose full name contains unusual characters. |
| 3465 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3466 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3467 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3468 | |
| 3469 | |
| 3470 | # Make sure we can run config.sub. |
| 3471 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3472 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3473 | |
| 3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3475 | $as_echo_n "checking build system type... " >&6; } |
| 3476 | if test "${ac_cv_build+set}" = set; then : |
| 3477 | $as_echo_n "(cached) " >&6 |
| 3478 | else |
| 3479 | ac_build_alias=$build_alias |
| 3480 | test "x$ac_build_alias" = x && |
| 3481 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3482 | test "x$ac_build_alias" = x && |
| 3483 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3484 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3485 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3486 | |
| 3487 | fi |
| 3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3489 | $as_echo "$ac_cv_build" >&6; } |
| 3490 | case $ac_cv_build in |
| 3491 | *-*-*) ;; |
| 3492 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 3493 | esac |
| 3494 | build=$ac_cv_build |
| 3495 | ac_save_IFS=$IFS; IFS='-' |
| 3496 | set x $ac_cv_build |
| 3497 | shift |
| 3498 | build_cpu=$1 |
| 3499 | build_vendor=$2 |
| 3500 | shift; shift |
| 3501 | # Remember, the first character of IFS is used to create $*, |
| 3502 | # except with old shells: |
| 3503 | build_os=$* |
| 3504 | IFS=$ac_save_IFS |
| 3505 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3506 | |
| 3507 | |
| 3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3509 | $as_echo_n "checking host system type... " >&6; } |
| 3510 | if test "${ac_cv_host+set}" = set; then : |
| 3511 | $as_echo_n "(cached) " >&6 |
| 3512 | else |
| 3513 | if test "x$host_alias" = x; then |
| 3514 | ac_cv_host=$ac_cv_build |
| 3515 | else |
| 3516 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3517 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3518 | fi |
| 3519 | |
| 3520 | fi |
| 3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3522 | $as_echo "$ac_cv_host" >&6; } |
| 3523 | case $ac_cv_host in |
| 3524 | *-*-*) ;; |
| 3525 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 3526 | esac |
| 3527 | host=$ac_cv_host |
| 3528 | ac_save_IFS=$IFS; IFS='-' |
| 3529 | set x $ac_cv_host |
| 3530 | shift |
| 3531 | host_cpu=$1 |
| 3532 | host_vendor=$2 |
| 3533 | shift; shift |
| 3534 | # Remember, the first character of IFS is used to create $*, |
| 3535 | # except with old shells: |
| 3536 | host_os=$* |
| 3537 | IFS=$ac_save_IFS |
| 3538 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3539 | |
| 3540 | |
| 3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 3542 | $as_echo_n "checking target system type... " >&6; } |
| 3543 | if test "${ac_cv_target+set}" = set; then : |
| 3544 | $as_echo_n "(cached) " >&6 |
| 3545 | else |
| 3546 | if test "x$target_alias" = x; then |
| 3547 | ac_cv_target=$ac_cv_host |
| 3548 | else |
| 3549 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3550 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 3551 | fi |
| 3552 | |
| 3553 | fi |
| 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 3555 | $as_echo "$ac_cv_target" >&6; } |
| 3556 | case $ac_cv_target in |
| 3557 | *-*-*) ;; |
| 3558 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
| 3559 | esac |
| 3560 | target=$ac_cv_target |
| 3561 | ac_save_IFS=$IFS; IFS='-' |
| 3562 | set x $ac_cv_target |
| 3563 | shift |
| 3564 | target_cpu=$1 |
| 3565 | target_vendor=$2 |
| 3566 | shift; shift |
| 3567 | # Remember, the first character of IFS is used to create $*, |
| 3568 | # except with old shells: |
| 3569 | target_os=$* |
| 3570 | IFS=$ac_save_IFS |
| 3571 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3572 | |
| 3573 | |
| 3574 | # The aliases save the names the user supplied, while $host etc. |
| 3575 | # will get canonicalized. |
| 3576 | test -n "$target_alias" && |
| 3577 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3578 | NONENONEs,x,x, && |
| 3579 | program_prefix=${target_alias}- |
| 3580 | |
| 3581 | |
| 3582 | # Find a good install program. We prefer a C program (faster), |
| 3583 | # so one script is as good as another. But avoid the broken or |
| 3584 | # incompatible versions: |
| 3585 | # SysV /etc/install, /usr/sbin/install |
| 3586 | # SunOS /usr/etc/install |
| 3587 | # IRIX /sbin/install |
| 3588 | # AIX /bin/install |
| 3589 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3590 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3591 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3592 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3593 | # OS/2's system install, which has a completely different semantic |
| 3594 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3595 | # Reject install programs that cannot install multiple files. |
| 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3597 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3598 | if test -z "$INSTALL"; then |
| 3599 | if test "${ac_cv_path_install+set}" = set; then : |
| 3600 | $as_echo_n "(cached) " >&6 |
| 3601 | else |
| 3602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3603 | for as_dir in $PATH |
| 3604 | do |
| 3605 | IFS=$as_save_IFS |
| 3606 | test -z "$as_dir" && as_dir=. |
| 3607 | # Account for people who put trailing slashes in PATH elements. |
| 3608 | case $as_dir/ in #(( |
| 3609 | ./ | .// | /[cC]/* | \ |
| 3610 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3611 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3612 | /usr/ucb/* ) ;; |
| 3613 | *) |
| 3614 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3615 | # Don't use installbsd from OSF since it installs stuff as root |
| 3616 | # by default. |
| 3617 | for ac_prog in ginstall scoinst install; do |
| 3618 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3619 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3620 | if test $ac_prog = install && |
| 3621 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3622 | # AIX install. It has an incompatible calling convention. |
| 3623 | : |
| 3624 | elif test $ac_prog = install && |
| 3625 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3626 | # program-specific install script used by HP pwplus--don't use. |
| 3627 | : |
| 3628 | else |
| 3629 | rm -rf conftest.one conftest.two conftest.dir |
| 3630 | echo one > conftest.one |
| 3631 | echo two > conftest.two |
| 3632 | mkdir conftest.dir |
| 3633 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3634 | test -s conftest.one && test -s conftest.two && |
| 3635 | test -s conftest.dir/conftest.one && |
| 3636 | test -s conftest.dir/conftest.two |
| 3637 | then |
| 3638 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3639 | break 3 |
| 3640 | fi |
| 3641 | fi |
| 3642 | fi |
| 3643 | done |
| 3644 | done |
| 3645 | ;; |
| 3646 | esac |
| 3647 | |
| 3648 | done |
| 3649 | IFS=$as_save_IFS |
| 3650 | |
| 3651 | rm -rf conftest.one conftest.two conftest.dir |
| 3652 | |
| 3653 | fi |
| 3654 | if test "${ac_cv_path_install+set}" = set; then |
| 3655 | INSTALL=$ac_cv_path_install |
| 3656 | else |
| 3657 | # As a last resort, use the slow shell script. Don't cache a |
| 3658 | # value for INSTALL within a source directory, because that will |
| 3659 | # break other packages using the cache if that directory is |
| 3660 | # removed, or if the value is a relative name. |
| 3661 | INSTALL=$ac_install_sh |
| 3662 | fi |
| 3663 | fi |
| 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3665 | $as_echo "$INSTALL" >&6; } |
| 3666 | |
| 3667 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3668 | # It thinks the first close brace ends the variable substitution. |
| 3669 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3670 | |
| 3671 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3672 | |
| 3673 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3674 | |
| 3675 | |
| 3676 | test "$program_prefix" != NONE && |
| 3677 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3678 | # Use a double $ so make ignores it. |
| 3679 | test "$program_suffix" != NONE && |
| 3680 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3681 | # Double any \ or $. |
| 3682 | # By default was `s,x,x', remove it if useless. |
| 3683 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3684 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3685 | |
| 3686 | |
| 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3688 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3689 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 3690 | $as_echo_n "(cached) " >&6 |
| 3691 | else |
| 3692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3693 | /* end confdefs.h. */ |
| 3694 | #include <stdlib.h> |
| 3695 | #include <stdarg.h> |
| 3696 | #include <string.h> |
| 3697 | #include <float.h> |
| 3698 | |
| 3699 | int |
| 3700 | main () |
| 3701 | { |
| 3702 | |
| 3703 | ; |
| 3704 | return 0; |
| 3705 | } |
| 3706 | _ACEOF |
| 3707 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3708 | ac_cv_header_stdc=yes |
| 3709 | else |
| 3710 | ac_cv_header_stdc=no |
| 3711 | fi |
| 3712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3713 | |
| 3714 | if test $ac_cv_header_stdc = yes; then |
| 3715 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3717 | /* end confdefs.h. */ |
| 3718 | #include <string.h> |
| 3719 | |
| 3720 | _ACEOF |
| 3721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3722 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3723 | |
| 3724 | else |
| 3725 | ac_cv_header_stdc=no |
| 3726 | fi |
| 3727 | rm -f conftest* |
| 3728 | |
| 3729 | fi |
| 3730 | |
| 3731 | if test $ac_cv_header_stdc = yes; then |
| 3732 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3734 | /* end confdefs.h. */ |
| 3735 | #include <stdlib.h> |
| 3736 | |
| 3737 | _ACEOF |
| 3738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3739 | $EGREP "free" >/dev/null 2>&1; then : |
| 3740 | |
| 3741 | else |
| 3742 | ac_cv_header_stdc=no |
| 3743 | fi |
| 3744 | rm -f conftest* |
| 3745 | |
| 3746 | fi |
| 3747 | |
| 3748 | if test $ac_cv_header_stdc = yes; then |
| 3749 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3750 | if test "$cross_compiling" = yes; then : |
| 3751 | : |
| 3752 | else |
| 3753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3754 | /* end confdefs.h. */ |
| 3755 | #include <ctype.h> |
| 3756 | #include <stdlib.h> |
| 3757 | #if ((' ' & 0x0FF) == 0x020) |
| 3758 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3759 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3760 | #else |
| 3761 | # define ISLOWER(c) \ |
| 3762 | (('a' <= (c) && (c) <= 'i') \ |
| 3763 | || ('j' <= (c) && (c) <= 'r') \ |
| 3764 | || ('s' <= (c) && (c) <= 'z')) |
| 3765 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3766 | #endif |
| 3767 | |
| 3768 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3769 | int |
| 3770 | main () |
| 3771 | { |
| 3772 | int i; |
| 3773 | for (i = 0; i < 256; i++) |
| 3774 | if (XOR (islower (i), ISLOWER (i)) |
| 3775 | || toupper (i) != TOUPPER (i)) |
| 3776 | return 2; |
| 3777 | return 0; |
| 3778 | } |
| 3779 | _ACEOF |
| 3780 | if ac_fn_c_try_run "$LINENO"; then : |
| 3781 | |
| 3782 | else |
| 3783 | ac_cv_header_stdc=no |
| 3784 | fi |
| 3785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3786 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3787 | fi |
| 3788 | |
| 3789 | fi |
| 3790 | fi |
| 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3792 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3793 | if test $ac_cv_header_stdc = yes; then |
| 3794 | |
| 3795 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3796 | |
| 3797 | fi |
| 3798 | |
| 3799 | |
| 3800 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 3801 | # for constant arguments. Useless! |
| 3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 3803 | $as_echo_n "checking for working alloca.h... " >&6; } |
| 3804 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
| 3805 | $as_echo_n "(cached) " >&6 |
| 3806 | else |
| 3807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3808 | /* end confdefs.h. */ |
| 3809 | #include <alloca.h> |
| 3810 | int |
| 3811 | main () |
| 3812 | { |
| 3813 | char *p = (char *) alloca (2 * sizeof (int)); |
| 3814 | if (p) return 0; |
| 3815 | ; |
| 3816 | return 0; |
| 3817 | } |
| 3818 | _ACEOF |
| 3819 | if ac_fn_c_try_link "$LINENO"; then : |
| 3820 | ac_cv_working_alloca_h=yes |
| 3821 | else |
| 3822 | ac_cv_working_alloca_h=no |
| 3823 | fi |
| 3824 | rm -f core conftest.err conftest.$ac_objext \ |
| 3825 | conftest$ac_exeext conftest.$ac_ext |
| 3826 | fi |
| 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 3828 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
| 3829 | if test $ac_cv_working_alloca_h = yes; then |
| 3830 | |
| 3831 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 3832 | |
| 3833 | fi |
| 3834 | |
| 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 3836 | $as_echo_n "checking for alloca... " >&6; } |
| 3837 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
| 3838 | $as_echo_n "(cached) " >&6 |
| 3839 | else |
| 3840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3841 | /* end confdefs.h. */ |
| 3842 | #ifdef __GNUC__ |
| 3843 | # define alloca __builtin_alloca |
| 3844 | #else |
| 3845 | # ifdef _MSC_VER |
| 3846 | # include <malloc.h> |
| 3847 | # define alloca _alloca |
| 3848 | # else |
| 3849 | # ifdef HAVE_ALLOCA_H |
| 3850 | # include <alloca.h> |
| 3851 | # else |
| 3852 | # ifdef _AIX |
| 3853 | #pragma alloca |
| 3854 | # else |
| 3855 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 3856 | char *alloca (); |
| 3857 | # endif |
| 3858 | # endif |
| 3859 | # endif |
| 3860 | # endif |
| 3861 | #endif |
| 3862 | |
| 3863 | int |
| 3864 | main () |
| 3865 | { |
| 3866 | char *p = (char *) alloca (1); |
| 3867 | if (p) return 0; |
| 3868 | ; |
| 3869 | return 0; |
| 3870 | } |
| 3871 | _ACEOF |
| 3872 | if ac_fn_c_try_link "$LINENO"; then : |
| 3873 | ac_cv_func_alloca_works=yes |
| 3874 | else |
| 3875 | ac_cv_func_alloca_works=no |
| 3876 | fi |
| 3877 | rm -f core conftest.err conftest.$ac_objext \ |
| 3878 | conftest$ac_exeext conftest.$ac_ext |
| 3879 | fi |
| 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 3881 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
| 3882 | |
| 3883 | if test $ac_cv_func_alloca_works = yes; then |
| 3884 | |
| 3885 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 3886 | |
| 3887 | else |
| 3888 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 3889 | # that cause trouble. Some versions do not even contain alloca or |
| 3890 | # contain a buggy version. If you still want to use their alloca, |
| 3891 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 3892 | |
| 3893 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 3894 | |
| 3895 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 3896 | |
| 3897 | |
| 3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 3899 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
| 3900 | if test "${ac_cv_os_cray+set}" = set; then : |
| 3901 | $as_echo_n "(cached) " >&6 |
| 3902 | else |
| 3903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3904 | /* end confdefs.h. */ |
| 3905 | #if defined CRAY && ! defined CRAY2 |
| 3906 | webecray |
| 3907 | #else |
| 3908 | wenotbecray |
| 3909 | #endif |
| 3910 | |
| 3911 | _ACEOF |
| 3912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3913 | $EGREP "webecray" >/dev/null 2>&1; then : |
| 3914 | ac_cv_os_cray=yes |
| 3915 | else |
| 3916 | ac_cv_os_cray=no |
| 3917 | fi |
| 3918 | rm -f conftest* |
| 3919 | |
| 3920 | fi |
| 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 3922 | $as_echo "$ac_cv_os_cray" >&6; } |
| 3923 | if test $ac_cv_os_cray = yes; then |
| 3924 | for ac_func in _getb67 GETB67 getb67; do |
| 3925 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3926 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 3927 | eval as_val=\$$as_ac_var |
| 3928 | if test "x$as_val" = x""yes; then : |
| 3929 | |
| 3930 | cat >>confdefs.h <<_ACEOF |
| 3931 | #define CRAY_STACKSEG_END $ac_func |
| 3932 | _ACEOF |
| 3933 | |
| 3934 | break |
| 3935 | fi |
| 3936 | |
| 3937 | done |
| 3938 | fi |
| 3939 | |
| 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 3941 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
| 3942 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
| 3943 | $as_echo_n "(cached) " >&6 |
| 3944 | else |
| 3945 | if test "$cross_compiling" = yes; then : |
| 3946 | ac_cv_c_stack_direction=0 |
| 3947 | else |
| 3948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3949 | /* end confdefs.h. */ |
| 3950 | $ac_includes_default |
| 3951 | int |
| 3952 | find_stack_direction () |
| 3953 | { |
| 3954 | static char *addr = 0; |
| 3955 | auto char dummy; |
| 3956 | if (addr == 0) |
| 3957 | { |
| 3958 | addr = &dummy; |
| 3959 | return find_stack_direction (); |
| 3960 | } |
| 3961 | else |
| 3962 | return (&dummy > addr) ? 1 : -1; |
| 3963 | } |
| 3964 | |
| 3965 | int |
| 3966 | main () |
| 3967 | { |
| 3968 | return find_stack_direction () < 0; |
| 3969 | } |
| 3970 | _ACEOF |
| 3971 | if ac_fn_c_try_run "$LINENO"; then : |
| 3972 | ac_cv_c_stack_direction=1 |
| 3973 | else |
| 3974 | ac_cv_c_stack_direction=-1 |
| 3975 | fi |
| 3976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3977 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3978 | fi |
| 3979 | |
| 3980 | fi |
| 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 3982 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
| 3983 | cat >>confdefs.h <<_ACEOF |
| 3984 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 3985 | _ACEOF |
| 3986 | |
| 3987 | |
| 3988 | fi |
| 3989 | |
| 3990 | for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h |
| 3991 | do : |
| 3992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3993 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 3994 | eval as_val=\$$as_ac_Header |
| 3995 | if test "x$as_val" = x""yes; then : |
| 3996 | cat >>confdefs.h <<_ACEOF |
| 3997 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3998 | _ACEOF |
| 3999 | |
| 4000 | fi |
| 4001 | |
| 4002 | done |
| 4003 | |
| 4004 | for ac_func in pread pwrite pread64 |
| 4005 | do : |
| 4006 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4007 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4008 | eval as_val=\$$as_ac_var |
| 4009 | if test "x$as_val" = x""yes; then : |
| 4010 | cat >>confdefs.h <<_ACEOF |
| 4011 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4012 | _ACEOF |
| 4013 | |
| 4014 | fi |
| 4015 | done |
| 4016 | |
| 4017 | for ac_func in memmem |
| 4018 | do : |
| 4019 | ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" |
| 4020 | if test "x$ac_cv_func_memmem" = x""yes; then : |
| 4021 | cat >>confdefs.h <<_ACEOF |
| 4022 | #define HAVE_MEMMEM 1 |
| 4023 | _ACEOF |
| 4024 | |
| 4025 | else |
| 4026 | case " $LIBOBJS " in |
| 4027 | *" $ac_func.$ac_objext "* ) ;; |
| 4028 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 4029 | ;; |
| 4030 | esac |
| 4031 | |
| 4032 | fi |
| 4033 | done |
| 4034 | |
| 4035 | |
| 4036 | |
| 4037 | # Check for UST |
| 4038 | ustlibs="" |
| 4039 | ustinc="" |
| 4040 | |
| 4041 | |
| 4042 | # Check whether --with-ust was given. |
| 4043 | if test "${with_ust+set}" = set; then : |
| 4044 | withval=$with_ust; |
| 4045 | fi |
| 4046 | |
| 4047 | |
| 4048 | # Check whether --with-ust_include was given. |
| 4049 | if test "${with_ust_include+set}" = set; then : |
| 4050 | withval=$with_ust_include; |
| 4051 | fi |
| 4052 | |
| 4053 | |
| 4054 | # Check whether --with-ust_lib was given. |
| 4055 | if test "${with_ust_lib+set}" = set; then : |
| 4056 | withval=$with_ust_lib; |
| 4057 | fi |
| 4058 | |
| 4059 | |
| 4060 | case $with_ust in |
| 4061 | no) |
| 4062 | ustlibs= |
| 4063 | ustinc= |
| 4064 | ;; |
| 4065 | "" | yes) |
| 4066 | ustlibs=" -lust " |
| 4067 | ustinc="" |
| 4068 | ;; |
| 4069 | *) |
| 4070 | ustlibs="-L$with_ust/lib -lust" |
| 4071 | ustinc="-I$with_ust/include " |
| 4072 | ;; |
| 4073 | esac |
| 4074 | if test "x$with_ust_include" != x; then |
| 4075 | ustinc="-I$with_ust_include " |
| 4076 | fi |
| 4077 | if test "x$with_ust_lib" != x; then |
| 4078 | ustlibs="-L$with_ust_lib -lust" |
| 4079 | fi |
| 4080 | |
| 4081 | if test "x$with_ust" != "xno"; then |
| 4082 | saved_CFLAGS="$CFLAGS" |
| 4083 | CFLAGS="$CFLAGS $ustinc" |
| 4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5 |
| 4085 | $as_echo_n "checking for ust... " >&6; } |
| 4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4087 | /* end confdefs.h. */ |
| 4088 | |
| 4089 | #define CONFIG_UST_GDB_INTEGRATION |
| 4090 | #include <ust/ust.h> |
| 4091 | |
| 4092 | int |
| 4093 | main () |
| 4094 | { |
| 4095 | |
| 4096 | ; |
| 4097 | return 0; |
| 4098 | } |
| 4099 | _ACEOF |
| 4100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4102 | $as_echo "yes" >&6; }; |
| 4103 | $as_echo "#define HAVE_UST 1" >>confdefs.h |
| 4104 | |
| 4105 | else |
| 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4107 | $as_echo "no" >&6; }; ustlibs= ; ustinc= |
| 4108 | fi |
| 4109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4110 | CFLAGS="$saved_CFLAGS" |
| 4111 | fi |
| 4112 | |
| 4113 | # Flags needed for UST |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | # Check whether --enable-werror was given. |
| 4118 | if test "${enable_werror+set}" = set; then : |
| 4119 | enableval=$enable_werror; case "${enableval}" in |
| 4120 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 4121 | no | n) ERROR_ON_WARNING="no" ;; |
| 4122 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
| 4123 | esac |
| 4124 | fi |
| 4125 | |
| 4126 | |
| 4127 | # Enable -Werror by default when using gcc |
| 4128 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 4129 | ERROR_ON_WARNING=yes |
| 4130 | fi |
| 4131 | |
| 4132 | WERROR_CFLAGS="" |
| 4133 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 4134 | WERROR_CFLAGS="-Werror" |
| 4135 | fi |
| 4136 | |
| 4137 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
| 4138 | -Wformat-nonliteral -Wno-char-subscripts" |
| 4139 | |
| 4140 | WARN_CFLAGS="" |
| 4141 | if test "x$GCC" = xyes |
| 4142 | then |
| 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 |
| 4144 | $as_echo_n "checking compiler warning flags... " >&6; } |
| 4145 | # Separate out the -Werror flag as some files just cannot be |
| 4146 | # compiled with it enabled. |
| 4147 | for w in ${build_warnings}; do |
| 4148 | case $w in |
| 4149 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 4150 | *) # Check that GCC accepts it |
| 4151 | saved_CFLAGS="$CFLAGS" |
| 4152 | CFLAGS="$CFLAGS $w" |
| 4153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4154 | /* end confdefs.h. */ |
| 4155 | |
| 4156 | int |
| 4157 | main () |
| 4158 | { |
| 4159 | |
| 4160 | ; |
| 4161 | return 0; |
| 4162 | } |
| 4163 | _ACEOF |
| 4164 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4165 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 4166 | fi |
| 4167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4168 | CFLAGS="$saved_CFLAGS" |
| 4169 | esac |
| 4170 | done |
| 4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
| 4172 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } |
| 4173 | fi |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | old_LIBS="$LIBS" |
| 4178 | LIBS="$LIBS -ldl" |
| 4179 | for ac_func in dladdr |
| 4180 | do : |
| 4181 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
| 4182 | if test "x$ac_cv_func_dladdr" = x""yes; then : |
| 4183 | cat >>confdefs.h <<_ACEOF |
| 4184 | #define HAVE_DLADDR 1 |
| 4185 | _ACEOF |
| 4186 | |
| 4187 | fi |
| 4188 | done |
| 4189 | |
| 4190 | LIBS="$old_LIBS" |
| 4191 | |
| 4192 | have_errno=no |
| 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5 |
| 4194 | $as_echo_n "checking for errno... " >&6; } |
| 4195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4196 | /* end confdefs.h. */ |
| 4197 | |
| 4198 | #if HAVE_ERRNO_H |
| 4199 | #include <errno.h> |
| 4200 | #endif |
| 4201 | int |
| 4202 | main () |
| 4203 | { |
| 4204 | static int x; x = errno; |
| 4205 | ; |
| 4206 | return 0; |
| 4207 | } |
| 4208 | _ACEOF |
| 4209 | if ac_fn_c_try_link "$LINENO"; then : |
| 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5 |
| 4211 | $as_echo "yes - in errno.h" >&6; }; |
| 4212 | $as_echo "#define HAVE_ERRNO 1" >>confdefs.h |
| 4213 | have_errno=yes |
| 4214 | fi |
| 4215 | rm -f core conftest.err conftest.$ac_objext \ |
| 4216 | conftest$ac_exeext conftest.$ac_ext |
| 4217 | if test $have_errno = no; then |
| 4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4219 | /* end confdefs.h. */ |
| 4220 | |
| 4221 | #if HAVE_ERRNO_H |
| 4222 | #include <errno.h> |
| 4223 | #endif |
| 4224 | int |
| 4225 | main () |
| 4226 | { |
| 4227 | extern int errno; static int x; x = errno; |
| 4228 | ; |
| 4229 | return 0; |
| 4230 | } |
| 4231 | _ACEOF |
| 4232 | if ac_fn_c_try_link "$LINENO"; then : |
| 4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5 |
| 4234 | $as_echo "yes - must define" >&6; }; |
| 4235 | $as_echo "#define HAVE_ERRNO 1" >>confdefs.h |
| 4236 | |
| 4237 | $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h |
| 4238 | |
| 4239 | else |
| 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4241 | $as_echo "no" >&6; } |
| 4242 | fi |
| 4243 | rm -f core conftest.err conftest.$ac_objext \ |
| 4244 | conftest$ac_exeext conftest.$ac_ext |
| 4245 | fi |
| 4246 | |
| 4247 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" |
| 4248 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : |
| 4249 | ac_have_decl=1 |
| 4250 | else |
| 4251 | ac_have_decl=0 |
| 4252 | fi |
| 4253 | |
| 4254 | cat >>confdefs.h <<_ACEOF |
| 4255 | #define HAVE_DECL_STRERROR $ac_have_decl |
| 4256 | _ACEOF |
| 4257 | ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default" |
| 4258 | if test "x$ac_cv_have_decl_perror" = x""yes; then : |
| 4259 | ac_have_decl=1 |
| 4260 | else |
| 4261 | ac_have_decl=0 |
| 4262 | fi |
| 4263 | |
| 4264 | cat >>confdefs.h <<_ACEOF |
| 4265 | #define HAVE_DECL_PERROR $ac_have_decl |
| 4266 | _ACEOF |
| 4267 | ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" |
| 4268 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : |
| 4269 | ac_have_decl=1 |
| 4270 | else |
| 4271 | ac_have_decl=0 |
| 4272 | fi |
| 4273 | |
| 4274 | cat >>confdefs.h <<_ACEOF |
| 4275 | #define HAVE_DECL_MEMMEM $ac_have_decl |
| 4276 | _ACEOF |
| 4277 | |
| 4278 | |
| 4279 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
| 4280 | #include <sys/socket.h> |
| 4281 | |
| 4282 | " |
| 4283 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
| 4284 | |
| 4285 | cat >>confdefs.h <<_ACEOF |
| 4286 | #define HAVE_SOCKLEN_T 1 |
| 4287 | _ACEOF |
| 4288 | |
| 4289 | |
| 4290 | fi |
| 4291 | |
| 4292 | |
| 4293 | |
| 4294 | |
| 4295 | # Check whether --with-pkgversion was given. |
| 4296 | if test "${with_pkgversion+set}" = set; then : |
| 4297 | withval=$with_pkgversion; case "$withval" in |
| 4298 | yes) as_fn_error "package version not specified" "$LINENO" 5 ;; |
| 4299 | no) PKGVERSION= ;; |
| 4300 | *) PKGVERSION="($withval) " ;; |
| 4301 | esac |
| 4302 | else |
| 4303 | PKGVERSION="(GDB) " |
| 4304 | |
| 4305 | fi |
| 4306 | |
| 4307 | |
| 4308 | |
| 4309 | |
| 4310 | |
| 4311 | # Check whether --with-bugurl was given. |
| 4312 | if test "${with_bugurl+set}" = set; then : |
| 4313 | withval=$with_bugurl; case "$withval" in |
| 4314 | yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; |
| 4315 | no) BUGURL= |
| 4316 | ;; |
| 4317 | *) BUGURL="$withval" |
| 4318 | ;; |
| 4319 | esac |
| 4320 | else |
| 4321 | BUGURL="http://www.gnu.org/software/gdb/bugs/" |
| 4322 | |
| 4323 | fi |
| 4324 | |
| 4325 | case ${BUGURL} in |
| 4326 | "") |
| 4327 | REPORT_BUGS_TO= |
| 4328 | REPORT_BUGS_TEXI= |
| 4329 | ;; |
| 4330 | *) |
| 4331 | REPORT_BUGS_TO="<$BUGURL>" |
| 4332 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} |
| 4333 | ;; |
| 4334 | esac; |
| 4335 | |
| 4336 | |
| 4337 | |
| 4338 | |
| 4339 | cat >>confdefs.h <<_ACEOF |
| 4340 | #define PKGVERSION "$PKGVERSION" |
| 4341 | _ACEOF |
| 4342 | |
| 4343 | |
| 4344 | cat >>confdefs.h <<_ACEOF |
| 4345 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" |
| 4346 | _ACEOF |
| 4347 | |
| 4348 | |
| 4349 | # Check for various supplementary target information (beyond the |
| 4350 | # triplet) which might affect the choices in configure.srv. |
| 4351 | case "${target}" in |
| 4352 | i[34567]86-*-linux*) |
| 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5 |
| 4354 | $as_echo_n "checking if building for x86-64... " >&6; } |
| 4355 | if test "${gdb_cv_i386_is_x86_64+set}" = set; then : |
| 4356 | $as_echo_n "(cached) " >&6 |
| 4357 | else |
| 4358 | save_CPPFLAGS="$CPPFLAGS" |
| 4359 | CPPFLAGS="$CPPFLAGS $CFLAGS" |
| 4360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4361 | /* end confdefs.h. */ |
| 4362 | |
| 4363 | #if __x86_64__ |
| 4364 | got it |
| 4365 | #endif |
| 4366 | |
| 4367 | _ACEOF |
| 4368 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4369 | $EGREP "got it" >/dev/null 2>&1; then : |
| 4370 | gdb_cv_i386_is_x86_64=yes |
| 4371 | else |
| 4372 | gdb_cv_i386_is_x86_64=no |
| 4373 | fi |
| 4374 | rm -f conftest* |
| 4375 | |
| 4376 | CPPFLAGS="$save_CPPFLAGS" |
| 4377 | fi |
| 4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5 |
| 4379 | $as_echo "$gdb_cv_i386_is_x86_64" >&6; } |
| 4380 | ;; |
| 4381 | m68k-*-*) |
| 4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5 |
| 4383 | $as_echo_n "checking if building for Coldfire... " >&6; } |
| 4384 | if test "${gdb_cv_m68k_is_coldfire+set}" = set; then : |
| 4385 | $as_echo_n "(cached) " >&6 |
| 4386 | else |
| 4387 | save_CPPFLAGS="$CPPFLAGS" |
| 4388 | CPPFLAGS="$CPPFLAGS $CFLAGS" |
| 4389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4390 | /* end confdefs.h. */ |
| 4391 | |
| 4392 | #ifdef __mcoldfire__ |
| 4393 | got it |
| 4394 | #endif |
| 4395 | |
| 4396 | _ACEOF |
| 4397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4398 | $EGREP "got it" >/dev/null 2>&1; then : |
| 4399 | gdb_cv_m68k_is_coldfire=yes |
| 4400 | else |
| 4401 | gdb_cv_m68k_is_coldfire=no |
| 4402 | fi |
| 4403 | rm -f conftest* |
| 4404 | |
| 4405 | CPPFLAGS="$save_CPPFLAGS" |
| 4406 | fi |
| 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5 |
| 4408 | $as_echo "$gdb_cv_m68k_is_coldfire" >&6; } |
| 4409 | ;; |
| 4410 | esac |
| 4411 | |
| 4412 | . ${srcdir}/configure.srv |
| 4413 | |
| 4414 | if test "${srv_mingwce}" = "yes"; then |
| 4415 | LIBS="$LIBS -lws2" |
| 4416 | elif test "${srv_mingw}" = "yes"; then |
| 4417 | LIBS="$LIBS -lws2_32" |
| 4418 | elif test "${srv_qnx}" = "yes"; then |
| 4419 | LIBS="$LIBS -lsocket" |
| 4420 | fi |
| 4421 | |
| 4422 | if test "${srv_mingw}" = "yes"; then |
| 4423 | |
| 4424 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
| 4425 | |
| 4426 | fi |
| 4427 | |
| 4428 | if test "${srv_linux_usrregs}" = "yes"; then |
| 4429 | |
| 4430 | $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h |
| 4431 | |
| 4432 | fi |
| 4433 | |
| 4434 | if test "${srv_linux_regsets}" = "yes"; then |
| 4435 | |
| 4436 | $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h |
| 4437 | |
| 4438 | |
| 4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 |
| 4440 | $as_echo_n "checking for PTRACE_GETREGS... " >&6; } |
| 4441 | if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then : |
| 4442 | $as_echo_n "(cached) " >&6 |
| 4443 | else |
| 4444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4445 | /* end confdefs.h. */ |
| 4446 | #include <sys/ptrace.h> |
| 4447 | int |
| 4448 | main () |
| 4449 | { |
| 4450 | PTRACE_GETREGS; |
| 4451 | ; |
| 4452 | return 0; |
| 4453 | } |
| 4454 | _ACEOF |
| 4455 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4456 | gdbsrv_cv_have_ptrace_getregs=yes |
| 4457 | else |
| 4458 | gdbsrv_cv_have_ptrace_getregs=no |
| 4459 | fi |
| 4460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4461 | fi |
| 4462 | |
| 4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5 |
| 4464 | $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; } |
| 4465 | if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then |
| 4466 | |
| 4467 | $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h |
| 4468 | |
| 4469 | fi |
| 4470 | |
| 4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 |
| 4472 | $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } |
| 4473 | if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then : |
| 4474 | $as_echo_n "(cached) " >&6 |
| 4475 | else |
| 4476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4477 | /* end confdefs.h. */ |
| 4478 | #include <sys/ptrace.h> |
| 4479 | int |
| 4480 | main () |
| 4481 | { |
| 4482 | PTRACE_GETFPXREGS; |
| 4483 | ; |
| 4484 | return 0; |
| 4485 | } |
| 4486 | _ACEOF |
| 4487 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4488 | gdbsrv_cv_have_ptrace_getfpxregs=yes |
| 4489 | else |
| 4490 | gdbsrv_cv_have_ptrace_getfpxregs=no |
| 4491 | fi |
| 4492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4493 | fi |
| 4494 | |
| 4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5 |
| 4496 | $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; } |
| 4497 | if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then |
| 4498 | |
| 4499 | $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h |
| 4500 | |
| 4501 | fi |
| 4502 | fi |
| 4503 | |
| 4504 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 |
| 4506 | $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } |
| 4507 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then : |
| 4508 | $as_echo_n "(cached) " >&6 |
| 4509 | else |
| 4510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4511 | /* end confdefs.h. */ |
| 4512 | |
| 4513 | #define _SYSCALL32 |
| 4514 | /* Needed for new procfs interface on sparc-solaris. */ |
| 4515 | #define _STRUCTURED_PROC 1 |
| 4516 | #include <sys/procfs.h> |
| 4517 | int |
| 4518 | main () |
| 4519 | { |
| 4520 | lwpid_t avar |
| 4521 | ; |
| 4522 | return 0; |
| 4523 | } |
| 4524 | _ACEOF |
| 4525 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4526 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 4527 | else |
| 4528 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 4529 | |
| 4530 | fi |
| 4531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4532 | fi |
| 4533 | |
| 4534 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 4535 | |
| 4536 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h |
| 4537 | |
| 4538 | fi |
| 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
| 4540 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } |
| 4541 | |
| 4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 |
| 4543 | $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } |
| 4544 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then : |
| 4545 | $as_echo_n "(cached) " >&6 |
| 4546 | else |
| 4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4548 | /* end confdefs.h. */ |
| 4549 | |
| 4550 | #define _SYSCALL32 |
| 4551 | /* Needed for new procfs interface on sparc-solaris. */ |
| 4552 | #define _STRUCTURED_PROC 1 |
| 4553 | #include <sys/procfs.h> |
| 4554 | int |
| 4555 | main () |
| 4556 | { |
| 4557 | psaddr_t avar |
| 4558 | ; |
| 4559 | return 0; |
| 4560 | } |
| 4561 | _ACEOF |
| 4562 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4563 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 4564 | else |
| 4565 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 4566 | |
| 4567 | fi |
| 4568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4569 | fi |
| 4570 | |
| 4571 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 4572 | |
| 4573 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h |
| 4574 | |
| 4575 | fi |
| 4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
| 4577 | $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } |
| 4578 | |
| 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 |
| 4580 | $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } |
| 4581 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then : |
| 4582 | $as_echo_n "(cached) " >&6 |
| 4583 | else |
| 4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4585 | /* end confdefs.h. */ |
| 4586 | |
| 4587 | #define _SYSCALL32 |
| 4588 | /* Needed for new procfs interface on sparc-solaris. */ |
| 4589 | #define _STRUCTURED_PROC 1 |
| 4590 | #include <sys/procfs.h> |
| 4591 | int |
| 4592 | main () |
| 4593 | { |
| 4594 | prgregset_t avar |
| 4595 | ; |
| 4596 | return 0; |
| 4597 | } |
| 4598 | _ACEOF |
| 4599 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4600 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 4601 | else |
| 4602 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 4603 | |
| 4604 | fi |
| 4605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4606 | fi |
| 4607 | |
| 4608 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 4609 | |
| 4610 | $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h |
| 4611 | |
| 4612 | fi |
| 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
| 4614 | $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } |
| 4615 | |
| 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 |
| 4617 | $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } |
| 4618 | if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then : |
| 4619 | $as_echo_n "(cached) " >&6 |
| 4620 | else |
| 4621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4622 | /* end confdefs.h. */ |
| 4623 | |
| 4624 | #define _SYSCALL32 |
| 4625 | /* Needed for new procfs interface on sparc-solaris. */ |
| 4626 | #define _STRUCTURED_PROC 1 |
| 4627 | #include <sys/procfs.h> |
| 4628 | int |
| 4629 | main () |
| 4630 | { |
| 4631 | elf_fpregset_t avar |
| 4632 | ; |
| 4633 | return 0; |
| 4634 | } |
| 4635 | _ACEOF |
| 4636 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4637 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes |
| 4638 | else |
| 4639 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=no |
| 4640 | |
| 4641 | fi |
| 4642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4643 | fi |
| 4644 | |
| 4645 | if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then |
| 4646 | |
| 4647 | $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h |
| 4648 | |
| 4649 | fi |
| 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 |
| 4651 | $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } |
| 4652 | |
| 4653 | fi |
| 4654 | |
| 4655 | old_LIBS="$LIBS" |
| 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 4657 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 4658 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 4659 | $as_echo_n "(cached) " >&6 |
| 4660 | else |
| 4661 | ac_check_lib_save_LIBS=$LIBS |
| 4662 | LIBS="-ldl $LIBS" |
| 4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4664 | /* end confdefs.h. */ |
| 4665 | |
| 4666 | /* Override any GCC internal prototype to avoid an error. |
| 4667 | Use char because int might match the return type of a GCC |
| 4668 | builtin and then its argument prototype would still apply. */ |
| 4669 | #ifdef __cplusplus |
| 4670 | extern "C" |
| 4671 | #endif |
| 4672 | char dlopen (); |
| 4673 | int |
| 4674 | main () |
| 4675 | { |
| 4676 | return dlopen (); |
| 4677 | ; |
| 4678 | return 0; |
| 4679 | } |
| 4680 | _ACEOF |
| 4681 | if ac_fn_c_try_link "$LINENO"; then : |
| 4682 | ac_cv_lib_dl_dlopen=yes |
| 4683 | else |
| 4684 | ac_cv_lib_dl_dlopen=no |
| 4685 | fi |
| 4686 | rm -f core conftest.err conftest.$ac_objext \ |
| 4687 | conftest$ac_exeext conftest.$ac_ext |
| 4688 | LIBS=$ac_check_lib_save_LIBS |
| 4689 | fi |
| 4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 4691 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 4692 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 4693 | cat >>confdefs.h <<_ACEOF |
| 4694 | #define HAVE_LIBDL 1 |
| 4695 | _ACEOF |
| 4696 | |
| 4697 | LIBS="-ldl $LIBS" |
| 4698 | |
| 4699 | fi |
| 4700 | |
| 4701 | LIBS="$old_LIBS" |
| 4702 | |
| 4703 | srv_thread_depfiles= |
| 4704 | srv_libs= |
| 4705 | USE_THREAD_DB= |
| 4706 | |
| 4707 | if test "$srv_linux_thread_db" = "yes"; then |
| 4708 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
| 4709 | srv_libs="-ldl" |
| 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5 |
| 4711 | $as_echo_n "checking for the dynamic export flag... " >&6; } |
| 4712 | old_LDFLAGS="$LDFLAGS" |
| 4713 | # Older GNU ld supports --export-dynamic but --dynamic-list may not be |
| 4714 | # supported there. |
| 4715 | RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" |
| 4716 | LDFLAGS="$LDFLAGS $RDYNAMIC" |
| 4717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4718 | /* end confdefs.h. */ |
| 4719 | |
| 4720 | int |
| 4721 | main () |
| 4722 | { |
| 4723 | |
| 4724 | ; |
| 4725 | return 0; |
| 4726 | } |
| 4727 | _ACEOF |
| 4728 | if ac_fn_c_try_link "$LINENO"; then : |
| 4729 | found="-Wl,--dynamic-list" |
| 4730 | RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' |
| 4731 | else |
| 4732 | RDYNAMIC="-rdynamic" |
| 4733 | LDFLAGS="$old_LDFLAGS $RDYNAMIC" |
| 4734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4735 | /* end confdefs.h. */ |
| 4736 | |
| 4737 | int |
| 4738 | main () |
| 4739 | { |
| 4740 | |
| 4741 | ; |
| 4742 | return 0; |
| 4743 | } |
| 4744 | _ACEOF |
| 4745 | if ac_fn_c_try_link "$LINENO"; then : |
| 4746 | found="-rdynamic" |
| 4747 | else |
| 4748 | found="no" |
| 4749 | RDYNAMIC="" |
| 4750 | fi |
| 4751 | rm -f core conftest.err conftest.$ac_objext \ |
| 4752 | conftest$ac_exeext conftest.$ac_ext |
| 4753 | fi |
| 4754 | rm -f core conftest.err conftest.$ac_objext \ |
| 4755 | conftest$ac_exeext conftest.$ac_ext |
| 4756 | |
| 4757 | LDFLAGS="$old_LDFLAGS" |
| 4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
| 4759 | $as_echo "$found" >&6; } |
| 4760 | else |
| 4761 | srv_libs="-lthread_db" |
| 4762 | fi |
| 4763 | |
| 4764 | srv_thread_depfiles="thread-db.o proc-service.o" |
| 4765 | USE_THREAD_DB="-DUSE_THREAD_DB" |
| 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5 |
| 4767 | $as_echo_n "checking for TD_VERSION... " >&6; } |
| 4768 | if test "${gdbsrv_cv_have_td_version+set}" = set; then : |
| 4769 | $as_echo_n "(cached) " >&6 |
| 4770 | else |
| 4771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4772 | /* end confdefs.h. */ |
| 4773 | #include <thread_db.h> |
| 4774 | int |
| 4775 | main () |
| 4776 | { |
| 4777 | TD_VERSION; |
| 4778 | ; |
| 4779 | return 0; |
| 4780 | } |
| 4781 | _ACEOF |
| 4782 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4783 | gdbsrv_cv_have_td_version=yes |
| 4784 | else |
| 4785 | gdbsrv_cv_have_td_version=no |
| 4786 | fi |
| 4787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4788 | fi |
| 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5 |
| 4790 | $as_echo "$gdbsrv_cv_have_td_version" >&6; } |
| 4791 | if test $gdbsrv_cv_have_td_version = yes; then |
| 4792 | |
| 4793 | $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h |
| 4794 | |
| 4795 | fi |
| 4796 | fi |
| 4797 | |
| 4798 | |
| 4799 | # Check whether --with-libthread-db was given. |
| 4800 | if test "${with_libthread_db+set}" = set; then : |
| 4801 | withval=$with_libthread_db; srv_libthread_db_path="${withval}" |
| 4802 | srv_libs="$srv_libthread_db_path" |
| 4803 | |
| 4804 | fi |
| 4805 | |
| 4806 | |
| 4807 | if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then |
| 4808 | |
| 4809 | $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h |
| 4810 | |
| 4811 | fi |
| 4812 | |
| 4813 | if test "$srv_xmlfiles" != ""; then |
| 4814 | srv_xmlbuiltin="xml-builtin.o" |
| 4815 | |
| 4816 | $as_echo "#define USE_XML 1" >>confdefs.h |
| 4817 | |
| 4818 | |
| 4819 | tmp_xmlfiles=$srv_xmlfiles |
| 4820 | srv_xmlfiles="" |
| 4821 | for f in $tmp_xmlfiles; do |
| 4822 | srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f" |
| 4823 | done |
| 4824 | fi |
| 4825 | |
| 4826 | GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles" |
| 4827 | GDBSERVER_LIBS="$srv_libs" |
| 4828 | |
| 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 |
| 4830 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } |
| 4831 | if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then : |
| 4832 | $as_echo_n "(cached) " >&6 |
| 4833 | else |
| 4834 | |
| 4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4836 | /* end confdefs.h. */ |
| 4837 | |
| 4838 | int |
| 4839 | main () |
| 4840 | { |
| 4841 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); |
| 4842 | ; |
| 4843 | return 0; |
| 4844 | } |
| 4845 | _ACEOF |
| 4846 | if ac_fn_c_try_link "$LINENO"; then : |
| 4847 | gdbsrv_cv_have_sync_builtins=yes |
| 4848 | else |
| 4849 | gdbsrv_cv_have_sync_builtins=no |
| 4850 | fi |
| 4851 | rm -f core conftest.err conftest.$ac_objext \ |
| 4852 | conftest$ac_exeext conftest.$ac_ext |
| 4853 | fi |
| 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5 |
| 4855 | $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; } |
| 4856 | if test $gdbsrv_cv_have_sync_builtins = yes; then |
| 4857 | |
| 4858 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h |
| 4859 | |
| 4860 | fi |
| 4861 | |
| 4862 | saved_cflags="$CFLAGS" |
| 4863 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 4864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4865 | /* end confdefs.h. */ |
| 4866 | |
| 4867 | int |
| 4868 | main () |
| 4869 | { |
| 4870 | |
| 4871 | ; |
| 4872 | return 0; |
| 4873 | } |
| 4874 | _ACEOF |
| 4875 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4876 | gdbsrv_cv_have_visibility_hidden=yes |
| 4877 | else |
| 4878 | gdbsrv_cv_have_visibility_hidden=no |
| 4879 | fi |
| 4880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4881 | CFLAGS="$saved_cflags" |
| 4882 | |
| 4883 | IPA_DEPFILES="" |
| 4884 | |
| 4885 | # Rather than allowing to build a broken IPA, we simply disable it if |
| 4886 | # we don't find a compiler supporting all the features we need. |
| 4887 | if test "$ipa_obj" != "" \ |
| 4888 | -a "$gdbsrv_cv_have_sync_builtins" = yes \ |
| 4889 | -a "$gdbsrv_cv_have_visibility_hidden" = yes; then |
| 4890 | IPA_DEPFILES="$ipa_obj" |
| 4891 | extra_libraries="libinproctrace.so" |
| 4892 | fi |
| 4893 | |
| 4894 | |
| 4895 | |
| 4896 | |
| 4897 | |
| 4898 | |
| 4899 | |
| 4900 | |
| 4901 | |
| 4902 | ac_config_files="$ac_config_files Makefile" |
| 4903 | |
| 4904 | ac_config_commands="$ac_config_commands default" |
| 4905 | |
| 4906 | cat >confcache <<\_ACEOF |
| 4907 | # This file is a shell script that caches the results of configure |
| 4908 | # tests run on this system so they can be shared between configure |
| 4909 | # scripts and configure runs, see configure's option --config-cache. |
| 4910 | # It is not useful on other systems. If it contains results you don't |
| 4911 | # want to keep, you may remove or edit it. |
| 4912 | # |
| 4913 | # config.status only pays attention to the cache file if you give it |
| 4914 | # the --recheck option to rerun configure. |
| 4915 | # |
| 4916 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4917 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4918 | # following values. |
| 4919 | |
| 4920 | _ACEOF |
| 4921 | |
| 4922 | # The following way of writing the cache mishandles newlines in values, |
| 4923 | # but we know of no workaround that is simple, portable, and efficient. |
| 4924 | # So, we kill variables containing newlines. |
| 4925 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4926 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4927 | ( |
| 4928 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 4929 | eval ac_val=\$$ac_var |
| 4930 | case $ac_val in #( |
| 4931 | *${as_nl}*) |
| 4932 | case $ac_var in #( |
| 4933 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 4934 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 4935 | esac |
| 4936 | case $ac_var in #( |
| 4937 | _ | IFS | as_nl) ;; #( |
| 4938 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 4939 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 4940 | esac ;; |
| 4941 | esac |
| 4942 | done |
| 4943 | |
| 4944 | (set) 2>&1 | |
| 4945 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 4946 | *${as_nl}ac_space=\ *) |
| 4947 | # `set' does not quote correctly, so add quotes: double-quote |
| 4948 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 4949 | sed -n \ |
| 4950 | "s/'/'\\\\''/g; |
| 4951 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 4952 | ;; #( |
| 4953 | *) |
| 4954 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4955 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 4956 | ;; |
| 4957 | esac | |
| 4958 | sort |
| 4959 | ) | |
| 4960 | sed ' |
| 4961 | /^ac_cv_env_/b end |
| 4962 | t clear |
| 4963 | :clear |
| 4964 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4965 | t end |
| 4966 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4967 | :end' >>confcache |
| 4968 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 4969 | if test -w "$cache_file"; then |
| 4970 | test "x$cache_file" != "x/dev/null" && |
| 4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 4972 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 4973 | cat confcache >$cache_file |
| 4974 | else |
| 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 4976 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 4977 | fi |
| 4978 | fi |
| 4979 | rm -f confcache |
| 4980 | |
| 4981 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4982 | # Let make expand exec_prefix. |
| 4983 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4984 | |
| 4985 | DEFS=-DHAVE_CONFIG_H |
| 4986 | |
| 4987 | ac_libobjs= |
| 4988 | ac_ltlibobjs= |
| 4989 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 4990 | # 1. Remove the extension, and $U if already installed. |
| 4991 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 4992 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 4993 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 4994 | # will be set to the directory where LIBOBJS objects are built. |
| 4995 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 4996 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 4997 | done |
| 4998 | LIBOBJS=$ac_libobjs |
| 4999 | |
| 5000 | LTLIBOBJS=$ac_ltlibobjs |
| 5001 | |
| 5002 | |
| 5003 | |
| 5004 | : ${CONFIG_STATUS=./config.status} |
| 5005 | ac_write_fail=0 |
| 5006 | ac_clean_files_save=$ac_clean_files |
| 5007 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5009 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5010 | as_write_fail=0 |
| 5011 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 5012 | #! $SHELL |
| 5013 | # Generated by $as_me. |
| 5014 | # Run this file to recreate the current configuration. |
| 5015 | # Compiler output produced by configure, useful for debugging |
| 5016 | # configure, is in config.log if it exists. |
| 5017 | |
| 5018 | debug=false |
| 5019 | ac_cs_recheck=false |
| 5020 | ac_cs_silent=false |
| 5021 | |
| 5022 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5023 | export SHELL |
| 5024 | _ASEOF |
| 5025 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5026 | ## -------------------- ## |
| 5027 | ## M4sh Initialization. ## |
| 5028 | ## -------------------- ## |
| 5029 | |
| 5030 | # Be more Bourne compatible |
| 5031 | DUALCASE=1; export DUALCASE # for MKS sh |
| 5032 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 5033 | emulate sh |
| 5034 | NULLCMD=: |
| 5035 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 5036 | # is contrary to our usage. Disable this feature. |
| 5037 | alias -g '${1+"$@"}'='"$@"' |
| 5038 | setopt NO_GLOB_SUBST |
| 5039 | else |
| 5040 | case `(set -o) 2>/dev/null` in #( |
| 5041 | *posix*) : |
| 5042 | set -o posix ;; #( |
| 5043 | *) : |
| 5044 | ;; |
| 5045 | esac |
| 5046 | fi |
| 5047 | |
| 5048 | |
| 5049 | as_nl=' |
| 5050 | ' |
| 5051 | export as_nl |
| 5052 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5053 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5054 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5055 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5056 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5057 | # but without wasting forks for bash or zsh. |
| 5058 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5059 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5060 | as_echo='print -r --' |
| 5061 | as_echo_n='print -rn --' |
| 5062 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5063 | as_echo='printf %s\n' |
| 5064 | as_echo_n='printf %s' |
| 5065 | else |
| 5066 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5067 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5068 | as_echo_n='/usr/ucb/echo -n' |
| 5069 | else |
| 5070 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5071 | as_echo_n_body='eval |
| 5072 | arg=$1; |
| 5073 | case $arg in #( |
| 5074 | *"$as_nl"*) |
| 5075 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5076 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5077 | esac; |
| 5078 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5079 | ' |
| 5080 | export as_echo_n_body |
| 5081 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5082 | fi |
| 5083 | export as_echo_body |
| 5084 | as_echo='sh -c $as_echo_body as_echo' |
| 5085 | fi |
| 5086 | |
| 5087 | # The user is always right. |
| 5088 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5089 | PATH_SEPARATOR=: |
| 5090 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5091 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5092 | PATH_SEPARATOR=';' |
| 5093 | } |
| 5094 | fi |
| 5095 | |
| 5096 | |
| 5097 | # IFS |
| 5098 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5099 | # there to prevent editors from complaining about space-tab. |
| 5100 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5101 | # splitting by setting IFS to empty value.) |
| 5102 | IFS=" "" $as_nl" |
| 5103 | |
| 5104 | # Find who we are. Look in the path if we contain no directory separator. |
| 5105 | case $0 in #(( |
| 5106 | *[\\/]* ) as_myself=$0 ;; |
| 5107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5108 | for as_dir in $PATH |
| 5109 | do |
| 5110 | IFS=$as_save_IFS |
| 5111 | test -z "$as_dir" && as_dir=. |
| 5112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5113 | done |
| 5114 | IFS=$as_save_IFS |
| 5115 | |
| 5116 | ;; |
| 5117 | esac |
| 5118 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5119 | # in which case we are not to be found in the path. |
| 5120 | if test "x$as_myself" = x; then |
| 5121 | as_myself=$0 |
| 5122 | fi |
| 5123 | if test ! -f "$as_myself"; then |
| 5124 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5125 | exit 1 |
| 5126 | fi |
| 5127 | |
| 5128 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5129 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5130 | # suppresses any "Segmentation fault" message there. '((' could |
| 5131 | # trigger a bug in pdksh 5.2.14. |
| 5132 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5133 | do eval test x\${$as_var+set} = xset \ |
| 5134 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5135 | done |
| 5136 | PS1='$ ' |
| 5137 | PS2='> ' |
| 5138 | PS4='+ ' |
| 5139 | |
| 5140 | # NLS nuisances. |
| 5141 | LC_ALL=C |
| 5142 | export LC_ALL |
| 5143 | LANGUAGE=C |
| 5144 | export LANGUAGE |
| 5145 | |
| 5146 | # CDPATH. |
| 5147 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5148 | |
| 5149 | |
| 5150 | # as_fn_error ERROR [LINENO LOG_FD] |
| 5151 | # --------------------------------- |
| 5152 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5153 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5154 | # script with status $?, using 1 if that was 0. |
| 5155 | as_fn_error () |
| 5156 | { |
| 5157 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 5158 | if test "$3"; then |
| 5159 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5160 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 5161 | fi |
| 5162 | $as_echo "$as_me: error: $1" >&2 |
| 5163 | as_fn_exit $as_status |
| 5164 | } # as_fn_error |
| 5165 | |
| 5166 | |
| 5167 | # as_fn_set_status STATUS |
| 5168 | # ----------------------- |
| 5169 | # Set $? to STATUS, without forking. |
| 5170 | as_fn_set_status () |
| 5171 | { |
| 5172 | return $1 |
| 5173 | } # as_fn_set_status |
| 5174 | |
| 5175 | # as_fn_exit STATUS |
| 5176 | # ----------------- |
| 5177 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5178 | as_fn_exit () |
| 5179 | { |
| 5180 | set +e |
| 5181 | as_fn_set_status $1 |
| 5182 | exit $1 |
| 5183 | } # as_fn_exit |
| 5184 | |
| 5185 | # as_fn_unset VAR |
| 5186 | # --------------- |
| 5187 | # Portably unset VAR. |
| 5188 | as_fn_unset () |
| 5189 | { |
| 5190 | { eval $1=; unset $1;} |
| 5191 | } |
| 5192 | as_unset=as_fn_unset |
| 5193 | # as_fn_append VAR VALUE |
| 5194 | # ---------------------- |
| 5195 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5196 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5197 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5198 | # implementations. |
| 5199 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5200 | eval 'as_fn_append () |
| 5201 | { |
| 5202 | eval $1+=\$2 |
| 5203 | }' |
| 5204 | else |
| 5205 | as_fn_append () |
| 5206 | { |
| 5207 | eval $1=\$$1\$2 |
| 5208 | } |
| 5209 | fi # as_fn_append |
| 5210 | |
| 5211 | # as_fn_arith ARG... |
| 5212 | # ------------------ |
| 5213 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5214 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5215 | # must be portable across $(()) and expr. |
| 5216 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5217 | eval 'as_fn_arith () |
| 5218 | { |
| 5219 | as_val=$(( $* )) |
| 5220 | }' |
| 5221 | else |
| 5222 | as_fn_arith () |
| 5223 | { |
| 5224 | as_val=`expr "$@" || test $? -eq 1` |
| 5225 | } |
| 5226 | fi # as_fn_arith |
| 5227 | |
| 5228 | |
| 5229 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5230 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5231 | as_expr=expr |
| 5232 | else |
| 5233 | as_expr=false |
| 5234 | fi |
| 5235 | |
| 5236 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5237 | as_basename=basename |
| 5238 | else |
| 5239 | as_basename=false |
| 5240 | fi |
| 5241 | |
| 5242 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5243 | as_dirname=dirname |
| 5244 | else |
| 5245 | as_dirname=false |
| 5246 | fi |
| 5247 | |
| 5248 | as_me=`$as_basename -- "$0" || |
| 5249 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5250 | X"$0" : 'X\(//\)$' \| \ |
| 5251 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5252 | $as_echo X/"$0" | |
| 5253 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5254 | s//\1/ |
| 5255 | q |
| 5256 | } |
| 5257 | /^X\/\(\/\/\)$/{ |
| 5258 | s//\1/ |
| 5259 | q |
| 5260 | } |
| 5261 | /^X\/\(\/\).*/{ |
| 5262 | s//\1/ |
| 5263 | q |
| 5264 | } |
| 5265 | s/.*/./; q'` |
| 5266 | |
| 5267 | # Avoid depending upon Character Ranges. |
| 5268 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5269 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5270 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5271 | as_cr_digits='0123456789' |
| 5272 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5273 | |
| 5274 | ECHO_C= ECHO_N= ECHO_T= |
| 5275 | case `echo -n x` in #((((( |
| 5276 | -n*) |
| 5277 | case `echo 'xy\c'` in |
| 5278 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5279 | xy) ECHO_C='\c';; |
| 5280 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5281 | ECHO_T=' ';; |
| 5282 | esac;; |
| 5283 | *) |
| 5284 | ECHO_N='-n';; |
| 5285 | esac |
| 5286 | |
| 5287 | rm -f conf$$ conf$$.exe conf$$.file |
| 5288 | if test -d conf$$.dir; then |
| 5289 | rm -f conf$$.dir/conf$$.file |
| 5290 | else |
| 5291 | rm -f conf$$.dir |
| 5292 | mkdir conf$$.dir 2>/dev/null |
| 5293 | fi |
| 5294 | if (echo >conf$$.file) 2>/dev/null; then |
| 5295 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5296 | as_ln_s='ln -s' |
| 5297 | # ... but there are two gotchas: |
| 5298 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5299 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5300 | # In both cases, we have to default to `cp -p'. |
| 5301 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5302 | as_ln_s='cp -p' |
| 5303 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5304 | as_ln_s=ln |
| 5305 | else |
| 5306 | as_ln_s='cp -p' |
| 5307 | fi |
| 5308 | else |
| 5309 | as_ln_s='cp -p' |
| 5310 | fi |
| 5311 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5312 | rmdir conf$$.dir 2>/dev/null |
| 5313 | |
| 5314 | |
| 5315 | # as_fn_mkdir_p |
| 5316 | # ------------- |
| 5317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5318 | as_fn_mkdir_p () |
| 5319 | { |
| 5320 | |
| 5321 | case $as_dir in #( |
| 5322 | -*) as_dir=./$as_dir;; |
| 5323 | esac |
| 5324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5325 | as_dirs= |
| 5326 | while :; do |
| 5327 | case $as_dir in #( |
| 5328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5329 | *) as_qdir=$as_dir;; |
| 5330 | esac |
| 5331 | as_dirs="'$as_qdir' $as_dirs" |
| 5332 | as_dir=`$as_dirname -- "$as_dir" || |
| 5333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5337 | $as_echo X"$as_dir" | |
| 5338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5339 | s//\1/ |
| 5340 | q |
| 5341 | } |
| 5342 | /^X\(\/\/\)[^/].*/{ |
| 5343 | s//\1/ |
| 5344 | q |
| 5345 | } |
| 5346 | /^X\(\/\/\)$/{ |
| 5347 | s//\1/ |
| 5348 | q |
| 5349 | } |
| 5350 | /^X\(\/\).*/{ |
| 5351 | s//\1/ |
| 5352 | q |
| 5353 | } |
| 5354 | s/.*/./; q'` |
| 5355 | test -d "$as_dir" && break |
| 5356 | done |
| 5357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5358 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 5359 | |
| 5360 | |
| 5361 | } # as_fn_mkdir_p |
| 5362 | if mkdir -p . 2>/dev/null; then |
| 5363 | as_mkdir_p='mkdir -p "$as_dir"' |
| 5364 | else |
| 5365 | test -d ./-p && rmdir ./-p |
| 5366 | as_mkdir_p=false |
| 5367 | fi |
| 5368 | |
| 5369 | if test -x / >/dev/null 2>&1; then |
| 5370 | as_test_x='test -x' |
| 5371 | else |
| 5372 | if ls -dL / >/dev/null 2>&1; then |
| 5373 | as_ls_L_option=L |
| 5374 | else |
| 5375 | as_ls_L_option= |
| 5376 | fi |
| 5377 | as_test_x=' |
| 5378 | eval sh -c '\'' |
| 5379 | if test -d "$1"; then |
| 5380 | test -d "$1/."; |
| 5381 | else |
| 5382 | case $1 in #( |
| 5383 | -*)set "./$1";; |
| 5384 | esac; |
| 5385 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 5386 | ???[sx]*):;;*)false;;esac;fi |
| 5387 | '\'' sh |
| 5388 | ' |
| 5389 | fi |
| 5390 | as_executable_p=$as_test_x |
| 5391 | |
| 5392 | # Sed expression to map a string onto a valid CPP name. |
| 5393 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 5394 | |
| 5395 | # Sed expression to map a string onto a valid variable name. |
| 5396 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 5397 | |
| 5398 | |
| 5399 | exec 6>&1 |
| 5400 | ## ----------------------------------- ## |
| 5401 | ## Main body of $CONFIG_STATUS script. ## |
| 5402 | ## ----------------------------------- ## |
| 5403 | _ASEOF |
| 5404 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 5405 | |
| 5406 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5407 | # Save the log message, to keep $0 and so on meaningful, and to |
| 5408 | # report actual input values of CONFIG_FILES etc. instead of their |
| 5409 | # values after options handling. |
| 5410 | ac_log=" |
| 5411 | This file was extended by $as_me, which was |
| 5412 | generated by GNU Autoconf 2.64. Invocation command line was |
| 5413 | |
| 5414 | CONFIG_FILES = $CONFIG_FILES |
| 5415 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5416 | CONFIG_LINKS = $CONFIG_LINKS |
| 5417 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5418 | $ $0 $@ |
| 5419 | |
| 5420 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5421 | " |
| 5422 | |
| 5423 | _ACEOF |
| 5424 | |
| 5425 | case $ac_config_files in *" |
| 5426 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5427 | esac |
| 5428 | |
| 5429 | case $ac_config_headers in *" |
| 5430 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5431 | esac |
| 5432 | |
| 5433 | |
| 5434 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5435 | # Files that config.status was made for. |
| 5436 | config_files="$ac_config_files" |
| 5437 | config_headers="$ac_config_headers" |
| 5438 | config_commands="$ac_config_commands" |
| 5439 | |
| 5440 | _ACEOF |
| 5441 | |
| 5442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5443 | ac_cs_usage="\ |
| 5444 | \`$as_me' instantiates files and other configuration actions |
| 5445 | from templates according to the current configuration. Unless the files |
| 5446 | and actions are specified as TAGs, all are instantiated by default. |
| 5447 | |
| 5448 | Usage: $0 [OPTION]... [TAG]... |
| 5449 | |
| 5450 | -h, --help print this help, then exit |
| 5451 | -V, --version print version number and configuration settings, then exit |
| 5452 | -q, --quiet, --silent |
| 5453 | do not print progress messages |
| 5454 | -d, --debug don't remove temporary files |
| 5455 | --recheck update $as_me by reconfiguring in the same conditions |
| 5456 | --file=FILE[:TEMPLATE] |
| 5457 | instantiate the configuration file FILE |
| 5458 | --header=FILE[:TEMPLATE] |
| 5459 | instantiate the configuration header FILE |
| 5460 | |
| 5461 | Configuration files: |
| 5462 | $config_files |
| 5463 | |
| 5464 | Configuration headers: |
| 5465 | $config_headers |
| 5466 | |
| 5467 | Configuration commands: |
| 5468 | $config_commands |
| 5469 | |
| 5470 | Report bugs to the package provider." |
| 5471 | |
| 5472 | _ACEOF |
| 5473 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5474 | ac_cs_version="\\ |
| 5475 | config.status |
| 5476 | configured by $0, generated by GNU Autoconf 2.64, |
| 5477 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 5478 | |
| 5479 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 5480 | This config.status script is free software; the Free Software Foundation |
| 5481 | gives unlimited permission to copy, distribute and modify it." |
| 5482 | |
| 5483 | ac_pwd='$ac_pwd' |
| 5484 | srcdir='$srcdir' |
| 5485 | INSTALL='$INSTALL' |
| 5486 | test -n "\$AWK" || AWK=awk |
| 5487 | _ACEOF |
| 5488 | |
| 5489 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5490 | # The default lists apply if the user does not specify any file. |
| 5491 | ac_need_defaults=: |
| 5492 | while test $# != 0 |
| 5493 | do |
| 5494 | case $1 in |
| 5495 | --*=*) |
| 5496 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5497 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 5498 | ac_shift=: |
| 5499 | ;; |
| 5500 | *) |
| 5501 | ac_option=$1 |
| 5502 | ac_optarg=$2 |
| 5503 | ac_shift=shift |
| 5504 | ;; |
| 5505 | esac |
| 5506 | |
| 5507 | case $ac_option in |
| 5508 | # Handling of the options. |
| 5509 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5510 | ac_cs_recheck=: ;; |
| 5511 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 5512 | $as_echo "$ac_cs_version"; exit ;; |
| 5513 | --debug | --debu | --deb | --de | --d | -d ) |
| 5514 | debug=: ;; |
| 5515 | --file | --fil | --fi | --f ) |
| 5516 | $ac_shift |
| 5517 | case $ac_optarg in |
| 5518 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5519 | esac |
| 5520 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 5521 | ac_need_defaults=false;; |
| 5522 | --header | --heade | --head | --hea ) |
| 5523 | $ac_shift |
| 5524 | case $ac_optarg in |
| 5525 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5526 | esac |
| 5527 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 5528 | ac_need_defaults=false;; |
| 5529 | --he | --h) |
| 5530 | # Conflict between --help and --header |
| 5531 | as_fn_error "ambiguous option: \`$1' |
| 5532 | Try \`$0 --help' for more information.";; |
| 5533 | --help | --hel | -h ) |
| 5534 | $as_echo "$ac_cs_usage"; exit ;; |
| 5535 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5536 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5537 | ac_cs_silent=: ;; |
| 5538 | |
| 5539 | # This is an error. |
| 5540 | -*) as_fn_error "unrecognized option: \`$1' |
| 5541 | Try \`$0 --help' for more information." ;; |
| 5542 | |
| 5543 | *) as_fn_append ac_config_targets " $1" |
| 5544 | ac_need_defaults=false ;; |
| 5545 | |
| 5546 | esac |
| 5547 | shift |
| 5548 | done |
| 5549 | |
| 5550 | ac_configure_extra_args= |
| 5551 | |
| 5552 | if $ac_cs_silent; then |
| 5553 | exec 6>/dev/null |
| 5554 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5555 | fi |
| 5556 | |
| 5557 | _ACEOF |
| 5558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5559 | if \$ac_cs_recheck; then |
| 5560 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5561 | shift |
| 5562 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5563 | CONFIG_SHELL='$SHELL' |
| 5564 | export CONFIG_SHELL |
| 5565 | exec "\$@" |
| 5566 | fi |
| 5567 | |
| 5568 | _ACEOF |
| 5569 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5570 | exec 5>>config.log |
| 5571 | { |
| 5572 | echo |
| 5573 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5574 | ## Running $as_me. ## |
| 5575 | _ASBOX |
| 5576 | $as_echo "$ac_log" |
| 5577 | } >&5 |
| 5578 | |
| 5579 | _ACEOF |
| 5580 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5581 | _ACEOF |
| 5582 | |
| 5583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5584 | |
| 5585 | # Handling of arguments. |
| 5586 | for ac_config_target in $ac_config_targets |
| 5587 | do |
| 5588 | case $ac_config_target in |
| 5589 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 5590 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5591 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 5592 | |
| 5593 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 5594 | esac |
| 5595 | done |
| 5596 | |
| 5597 | |
| 5598 | # If the user did not use the arguments to specify the items to instantiate, |
| 5599 | # then the envvar interface is used. Set only those that are not. |
| 5600 | # We use the long form for the default assignment because of an extremely |
| 5601 | # bizarre bug on SunOS 4.1.3. |
| 5602 | if $ac_need_defaults; then |
| 5603 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5604 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5605 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 5606 | fi |
| 5607 | |
| 5608 | # Have a temporary directory for convenience. Make it in the build tree |
| 5609 | # simply because there is no reason against having it here, and in addition, |
| 5610 | # creating and moving files from /tmp can sometimes cause problems. |
| 5611 | # Hook for its removal unless debugging. |
| 5612 | # Note that there is a small window in which the directory will not be cleaned: |
| 5613 | # after its creation but before its name has been assigned to `$tmp'. |
| 5614 | $debug || |
| 5615 | { |
| 5616 | tmp= |
| 5617 | trap 'exit_status=$? |
| 5618 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 5619 | ' 0 |
| 5620 | trap 'as_fn_exit 1' 1 2 13 15 |
| 5621 | } |
| 5622 | # Create a (secure) tmp directory for tmp files. |
| 5623 | |
| 5624 | { |
| 5625 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 5626 | test -n "$tmp" && test -d "$tmp" |
| 5627 | } || |
| 5628 | { |
| 5629 | tmp=./conf$$-$RANDOM |
| 5630 | (umask 077 && mkdir "$tmp") |
| 5631 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 5632 | |
| 5633 | # Set up the scripts for CONFIG_FILES section. |
| 5634 | # No need to generate them if there are no CONFIG_FILES. |
| 5635 | # This happens for instance with `./config.status config.h'. |
| 5636 | if test -n "$CONFIG_FILES"; then |
| 5637 | |
| 5638 | |
| 5639 | ac_cr=`echo X | tr X '\015'` |
| 5640 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 5641 | # But we know of no other shell where ac_cr would be empty at this |
| 5642 | # point, so we can use a bashism as a fallback. |
| 5643 | if test "x$ac_cr" = x; then |
| 5644 | eval ac_cr=\$\'\\r\' |
| 5645 | fi |
| 5646 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 5647 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 5648 | ac_cs_awk_cr='\r' |
| 5649 | else |
| 5650 | ac_cs_awk_cr=$ac_cr |
| 5651 | fi |
| 5652 | |
| 5653 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 5654 | _ACEOF |
| 5655 | |
| 5656 | |
| 5657 | { |
| 5658 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 5659 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 5660 | echo "_ACEOF" |
| 5661 | } >conf$$subs.sh || |
| 5662 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5663 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 5664 | ac_delim='%!_!# ' |
| 5665 | for ac_last_try in false false false false false :; do |
| 5666 | . ./conf$$subs.sh || |
| 5667 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5668 | |
| 5669 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 5670 | if test $ac_delim_n = $ac_delim_num; then |
| 5671 | break |
| 5672 | elif $ac_last_try; then |
| 5673 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5674 | else |
| 5675 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5676 | fi |
| 5677 | done |
| 5678 | rm -f conf$$subs.sh |
| 5679 | |
| 5680 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5681 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 5682 | _ACEOF |
| 5683 | sed -n ' |
| 5684 | h |
| 5685 | s/^/S["/; s/!.*/"]=/ |
| 5686 | p |
| 5687 | g |
| 5688 | s/^[^!]*!// |
| 5689 | :repl |
| 5690 | t repl |
| 5691 | s/'"$ac_delim"'$// |
| 5692 | t delim |
| 5693 | :nl |
| 5694 | h |
| 5695 | s/\(.\{148\}\).*/\1/ |
| 5696 | t more1 |
| 5697 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 5698 | p |
| 5699 | n |
| 5700 | b repl |
| 5701 | :more1 |
| 5702 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5703 | p |
| 5704 | g |
| 5705 | s/.\{148\}// |
| 5706 | t nl |
| 5707 | :delim |
| 5708 | h |
| 5709 | s/\(.\{148\}\).*/\1/ |
| 5710 | t more2 |
| 5711 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 5712 | p |
| 5713 | b |
| 5714 | :more2 |
| 5715 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5716 | p |
| 5717 | g |
| 5718 | s/.\{148\}// |
| 5719 | t delim |
| 5720 | ' <conf$$subs.awk | sed ' |
| 5721 | /^[^""]/{ |
| 5722 | N |
| 5723 | s/\n// |
| 5724 | } |
| 5725 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5726 | rm -f conf$$subs.awk |
| 5727 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5728 | _ACAWK |
| 5729 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 5730 | for (key in S) S_is_set[key] = 1 |
| 5731 | FS = "\a" |
| 5732 | |
| 5733 | } |
| 5734 | { |
| 5735 | line = $ 0 |
| 5736 | nfields = split(line, field, "@") |
| 5737 | substed = 0 |
| 5738 | len = length(field[1]) |
| 5739 | for (i = 2; i < nfields; i++) { |
| 5740 | key = field[i] |
| 5741 | keylen = length(key) |
| 5742 | if (S_is_set[key]) { |
| 5743 | value = S[key] |
| 5744 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 5745 | len += length(value) + length(field[++i]) |
| 5746 | substed = 1 |
| 5747 | } else |
| 5748 | len += 1 + keylen |
| 5749 | } |
| 5750 | |
| 5751 | print line |
| 5752 | } |
| 5753 | |
| 5754 | _ACAWK |
| 5755 | _ACEOF |
| 5756 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5757 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 5758 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 5759 | else |
| 5760 | cat |
| 5761 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 5762 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 5763 | _ACEOF |
| 5764 | |
| 5765 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 5766 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 5767 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5768 | # (actually we leave an empty line to preserve line numbers). |
| 5769 | if test "x$srcdir" = x.; then |
| 5770 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 5771 | s/:*\$(srcdir):*/:/ |
| 5772 | s/:*\${srcdir}:*/:/ |
| 5773 | s/:*@srcdir@:*/:/ |
| 5774 | s/^\([^=]*=[ ]*\):*/\1/ |
| 5775 | s/:*$// |
| 5776 | s/^[^=]*=[ ]*$// |
| 5777 | }' |
| 5778 | fi |
| 5779 | |
| 5780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5781 | fi # test -n "$CONFIG_FILES" |
| 5782 | |
| 5783 | # Set up the scripts for CONFIG_HEADERS section. |
| 5784 | # No need to generate them if there are no CONFIG_HEADERS. |
| 5785 | # This happens for instance with `./config.status Makefile'. |
| 5786 | if test -n "$CONFIG_HEADERS"; then |
| 5787 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 5788 | BEGIN { |
| 5789 | _ACEOF |
| 5790 | |
| 5791 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 5792 | # here-document in config.status, that substitutes the proper values into |
| 5793 | # config.h.in to produce config.h. |
| 5794 | |
| 5795 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 5796 | # handling of long lines. |
| 5797 | ac_delim='%!_!# ' |
| 5798 | for ac_last_try in false false :; do |
| 5799 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 5800 | if test -z "$ac_t"; then |
| 5801 | break |
| 5802 | elif $ac_last_try; then |
| 5803 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 5804 | else |
| 5805 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5806 | fi |
| 5807 | done |
| 5808 | |
| 5809 | # For the awk script, D is an array of macro values keyed by name, |
| 5810 | # likewise P contains macro parameters if any. Preserve backslash |
| 5811 | # newline sequences. |
| 5812 | |
| 5813 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 5814 | sed -n ' |
| 5815 | s/.\{148\}/&'"$ac_delim"'/g |
| 5816 | t rset |
| 5817 | :rset |
| 5818 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 5819 | t def |
| 5820 | d |
| 5821 | :def |
| 5822 | s/\\$// |
| 5823 | t bsnl |
| 5824 | s/["\\]/\\&/g |
| 5825 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5826 | D["\1"]=" \3"/p |
| 5827 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 5828 | d |
| 5829 | :bsnl |
| 5830 | s/["\\]/\\&/g |
| 5831 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5832 | D["\1"]=" \3\\\\\\n"\\/p |
| 5833 | t cont |
| 5834 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 5835 | t cont |
| 5836 | d |
| 5837 | :cont |
| 5838 | n |
| 5839 | s/.\{148\}/&'"$ac_delim"'/g |
| 5840 | t clear |
| 5841 | :clear |
| 5842 | s/\\$// |
| 5843 | t bsnlc |
| 5844 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 5845 | d |
| 5846 | :bsnlc |
| 5847 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 5848 | b cont |
| 5849 | ' <confdefs.h | sed ' |
| 5850 | s/'"$ac_delim"'/"\\\ |
| 5851 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5852 | |
| 5853 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5854 | for (key in D) D_is_set[key] = 1 |
| 5855 | FS = "\a" |
| 5856 | } |
| 5857 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 5858 | line = \$ 0 |
| 5859 | split(line, arg, " ") |
| 5860 | if (arg[1] == "#") { |
| 5861 | defundef = arg[2] |
| 5862 | mac1 = arg[3] |
| 5863 | } else { |
| 5864 | defundef = substr(arg[1], 2) |
| 5865 | mac1 = arg[2] |
| 5866 | } |
| 5867 | split(mac1, mac2, "(") #) |
| 5868 | macro = mac2[1] |
| 5869 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 5870 | if (D_is_set[macro]) { |
| 5871 | # Preserve the white space surrounding the "#". |
| 5872 | print prefix "define", macro P[macro] D[macro] |
| 5873 | next |
| 5874 | } else { |
| 5875 | # Replace #undef with comments. This is necessary, for example, |
| 5876 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 5877 | # on some systems where configure will not decide to define it. |
| 5878 | if (defundef == "undef") { |
| 5879 | print "/*", prefix defundef, macro, "*/" |
| 5880 | next |
| 5881 | } |
| 5882 | } |
| 5883 | } |
| 5884 | { print } |
| 5885 | _ACAWK |
| 5886 | _ACEOF |
| 5887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5888 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 5889 | fi # test -n "$CONFIG_HEADERS" |
| 5890 | |
| 5891 | |
| 5892 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 5893 | shift |
| 5894 | for ac_tag |
| 5895 | do |
| 5896 | case $ac_tag in |
| 5897 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 5898 | esac |
| 5899 | case $ac_mode$ac_tag in |
| 5900 | :[FHL]*:*);; |
| 5901 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 5902 | :[FH]-) ac_tag=-:-;; |
| 5903 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 5904 | esac |
| 5905 | ac_save_IFS=$IFS |
| 5906 | IFS=: |
| 5907 | set x $ac_tag |
| 5908 | IFS=$ac_save_IFS |
| 5909 | shift |
| 5910 | ac_file=$1 |
| 5911 | shift |
| 5912 | |
| 5913 | case $ac_mode in |
| 5914 | :L) ac_source=$1;; |
| 5915 | :[FH]) |
| 5916 | ac_file_inputs= |
| 5917 | for ac_f |
| 5918 | do |
| 5919 | case $ac_f in |
| 5920 | -) ac_f="$tmp/stdin";; |
| 5921 | *) # Look for the file first in the build tree, then in the source tree |
| 5922 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 5923 | # because $ac_f cannot contain `:'. |
| 5924 | test -f "$ac_f" || |
| 5925 | case $ac_f in |
| 5926 | [\\/$]*) false;; |
| 5927 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 5928 | esac || |
| 5929 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 5930 | esac |
| 5931 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 5932 | as_fn_append ac_file_inputs " '$ac_f'" |
| 5933 | done |
| 5934 | |
| 5935 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 5936 | # use $as_me), people would be surprised to read: |
| 5937 | # /* config.h. Generated by config.status. */ |
| 5938 | configure_input='Generated from '` |
| 5939 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 5940 | `' by configure.' |
| 5941 | if test x"$ac_file" != x-; then |
| 5942 | configure_input="$ac_file. $configure_input" |
| 5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 5944 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 5945 | fi |
| 5946 | # Neutralize special characters interpreted by sed in replacement strings. |
| 5947 | case $configure_input in #( |
| 5948 | *\&* | *\|* | *\\* ) |
| 5949 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 5950 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 5951 | *) ac_sed_conf_input=$configure_input;; |
| 5952 | esac |
| 5953 | |
| 5954 | case $ac_tag in |
| 5955 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 5956 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 5957 | esac |
| 5958 | ;; |
| 5959 | esac |
| 5960 | |
| 5961 | ac_dir=`$as_dirname -- "$ac_file" || |
| 5962 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5963 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 5964 | X"$ac_file" : 'X\(//\)$' \| \ |
| 5965 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 5966 | $as_echo X"$ac_file" | |
| 5967 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5968 | s//\1/ |
| 5969 | q |
| 5970 | } |
| 5971 | /^X\(\/\/\)[^/].*/{ |
| 5972 | s//\1/ |
| 5973 | q |
| 5974 | } |
| 5975 | /^X\(\/\/\)$/{ |
| 5976 | s//\1/ |
| 5977 | q |
| 5978 | } |
| 5979 | /^X\(\/\).*/{ |
| 5980 | s//\1/ |
| 5981 | q |
| 5982 | } |
| 5983 | s/.*/./; q'` |
| 5984 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 5985 | ac_builddir=. |
| 5986 | |
| 5987 | case "$ac_dir" in |
| 5988 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 5989 | *) |
| 5990 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 5991 | # A ".." for each directory in $ac_dir_suffix. |
| 5992 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 5993 | case $ac_top_builddir_sub in |
| 5994 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 5995 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 5996 | esac ;; |
| 5997 | esac |
| 5998 | ac_abs_top_builddir=$ac_pwd |
| 5999 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6000 | # for backward compatibility: |
| 6001 | ac_top_builddir=$ac_top_build_prefix |
| 6002 | |
| 6003 | case $srcdir in |
| 6004 | .) # We are building in place. |
| 6005 | ac_srcdir=. |
| 6006 | ac_top_srcdir=$ac_top_builddir_sub |
| 6007 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6008 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 6009 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6010 | ac_top_srcdir=$srcdir |
| 6011 | ac_abs_top_srcdir=$srcdir ;; |
| 6012 | *) # Relative name. |
| 6013 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6014 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6015 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 6016 | esac |
| 6017 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 6018 | |
| 6019 | |
| 6020 | case $ac_mode in |
| 6021 | :F) |
| 6022 | # |
| 6023 | # CONFIG_FILE |
| 6024 | # |
| 6025 | |
| 6026 | case $INSTALL in |
| 6027 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 6028 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 6029 | esac |
| 6030 | _ACEOF |
| 6031 | |
| 6032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6033 | # If the template does not know about datarootdir, expand it. |
| 6034 | # FIXME: This hack should be removed a few years after 2.60. |
| 6035 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6036 | ac_sed_dataroot=' |
| 6037 | /datarootdir/ { |
| 6038 | p |
| 6039 | q |
| 6040 | } |
| 6041 | /@datadir@/p |
| 6042 | /@docdir@/p |
| 6043 | /@infodir@/p |
| 6044 | /@localedir@/p |
| 6045 | /@mandir@/p' |
| 6046 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6047 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6048 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6050 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6051 | _ACEOF |
| 6052 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6053 | ac_datarootdir_hack=' |
| 6054 | s&@datadir@&$datadir&g |
| 6055 | s&@docdir@&$docdir&g |
| 6056 | s&@infodir@&$infodir&g |
| 6057 | s&@localedir@&$localedir&g |
| 6058 | s&@mandir@&$mandir&g |
| 6059 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6060 | esac |
| 6061 | _ACEOF |
| 6062 | |
| 6063 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6064 | # Shell code in configure.ac might set extrasub. |
| 6065 | # FIXME: do we really want to maintain this feature? |
| 6066 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6067 | ac_sed_extra="$ac_vpsub |
| 6068 | $extrasub |
| 6069 | _ACEOF |
| 6070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6071 | :t |
| 6072 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6073 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6074 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6075 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6076 | s&@srcdir@&$ac_srcdir&;t t |
| 6077 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6078 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6079 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6080 | s&@builddir@&$ac_builddir&;t t |
| 6081 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6082 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6083 | s&@INSTALL@&$ac_INSTALL&;t t |
| 6084 | $ac_datarootdir_hack |
| 6085 | " |
| 6086 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 6087 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 6088 | |
| 6089 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6090 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 6091 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6093 | which seems to be undefined. Please make sure it is defined." >&5 |
| 6094 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6095 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 6096 | |
| 6097 | rm -f "$tmp/stdin" |
| 6098 | case $ac_file in |
| 6099 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 6100 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 6101 | esac \ |
| 6102 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 6103 | ;; |
| 6104 | :H) |
| 6105 | # |
| 6106 | # CONFIG_HEADER |
| 6107 | # |
| 6108 | if test x"$ac_file" != x-; then |
| 6109 | { |
| 6110 | $as_echo "/* $configure_input */" \ |
| 6111 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 6112 | } >"$tmp/config.h" \ |
| 6113 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 6114 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6116 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 6117 | else |
| 6118 | rm -f "$ac_file" |
| 6119 | mv "$tmp/config.h" "$ac_file" \ |
| 6120 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 6121 | fi |
| 6122 | else |
| 6123 | $as_echo "/* $configure_input */" \ |
| 6124 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 6125 | || as_fn_error "could not create -" "$LINENO" 5 |
| 6126 | fi |
| 6127 | ;; |
| 6128 | |
| 6129 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 6130 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 6131 | ;; |
| 6132 | esac |
| 6133 | |
| 6134 | |
| 6135 | case $ac_file$ac_mode in |
| 6136 | "default":C) case x$CONFIG_HEADERS in |
| 6137 | xconfig.h:config.in) |
| 6138 | echo > stamp-h ;; |
| 6139 | esac |
| 6140 | ;; |
| 6141 | |
| 6142 | esac |
| 6143 | done # for ac_tag |
| 6144 | |
| 6145 | |
| 6146 | as_fn_exit 0 |
| 6147 | _ACEOF |
| 6148 | ac_clean_files=$ac_clean_files_save |
| 6149 | |
| 6150 | test $ac_write_fail = 0 || |
| 6151 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6152 | |
| 6153 | |
| 6154 | # configure is writing to config.log, and then calls config.status. |
| 6155 | # config.status does its own redirection, appending to config.log. |
| 6156 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6157 | # by configure, so config.status won't be able to write to it; its |
| 6158 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6159 | # effectively closing config.log, so it can be properly (re)opened and |
| 6160 | # appended to by config.status. When coming back to configure, we |
| 6161 | # need to make the FD available again. |
| 6162 | if test "$no_create" != yes; then |
| 6163 | ac_cs_success=: |
| 6164 | ac_config_status_args= |
| 6165 | test "$silent" = yes && |
| 6166 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6167 | exec 5>/dev/null |
| 6168 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6169 | exec 5>>config.log |
| 6170 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6171 | # would make configure fail if this is the last instruction. |
| 6172 | $ac_cs_success || as_fn_exit $? |
| 6173 | fi |
| 6174 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6176 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 6177 | fi |
| 6178 | |