| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.64 for gold 0.1. |
| 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='gold' |
| 548 | PACKAGE_TARNAME='gold' |
| 549 | PACKAGE_VERSION='0.1' |
| 550 | PACKAGE_STRING='gold 0.1' |
| 551 | PACKAGE_BUGREPORT='' |
| 552 | PACKAGE_URL='' |
| 553 | |
| 554 | ac_unique_file="gold.cc" |
| 555 | # Factoring default headers for most tests. |
| 556 | ac_includes_default="\ |
| 557 | #include <stdio.h> |
| 558 | #ifdef HAVE_SYS_TYPES_H |
| 559 | # include <sys/types.h> |
| 560 | #endif |
| 561 | #ifdef HAVE_SYS_STAT_H |
| 562 | # include <sys/stat.h> |
| 563 | #endif |
| 564 | #ifdef STDC_HEADERS |
| 565 | # include <stdlib.h> |
| 566 | # include <stddef.h> |
| 567 | #else |
| 568 | # ifdef HAVE_STDLIB_H |
| 569 | # include <stdlib.h> |
| 570 | # endif |
| 571 | #endif |
| 572 | #ifdef HAVE_STRING_H |
| 573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 574 | # include <memory.h> |
| 575 | # endif |
| 576 | # include <string.h> |
| 577 | #endif |
| 578 | #ifdef HAVE_STRINGS_H |
| 579 | # include <strings.h> |
| 580 | #endif |
| 581 | #ifdef HAVE_INTTYPES_H |
| 582 | # include <inttypes.h> |
| 583 | #endif |
| 584 | #ifdef HAVE_STDINT_H |
| 585 | # include <stdint.h> |
| 586 | #endif |
| 587 | #ifdef HAVE_UNISTD_H |
| 588 | # include <unistd.h> |
| 589 | #endif" |
| 590 | |
| 591 | ac_subst_vars='am__EXEEXT_FALSE |
| 592 | am__EXEEXT_TRUE |
| 593 | LTLIBOBJS |
| 594 | MAINT |
| 595 | MAINTAINER_MODE_FALSE |
| 596 | MAINTAINER_MODE_TRUE |
| 597 | DLOPEN_LIBS |
| 598 | CXXCPP |
| 599 | HAVE_NO_USE_LINKER_PLUGIN_FALSE |
| 600 | HAVE_NO_USE_LINKER_PLUGIN_TRUE |
| 601 | HAVE_PUBNAMES_FALSE |
| 602 | HAVE_PUBNAMES_TRUE |
| 603 | zlibinc |
| 604 | zlibdir |
| 605 | LIBOBJS |
| 606 | LFS_CFLAGS |
| 607 | GOLD_LDADD |
| 608 | GOLD_LDFLAGS |
| 609 | WARN_CXXFLAGS |
| 610 | WARN_WRITE_STRINGS |
| 611 | NO_WERROR |
| 612 | WARN_CFLAGS_FOR_BUILD |
| 613 | WARN_CFLAGS |
| 614 | IFUNC_STATIC_FALSE |
| 615 | IFUNC_STATIC_TRUE |
| 616 | IFUNC_FALSE |
| 617 | IFUNC_TRUE |
| 618 | RANDOM_SEED_CFLAGS |
| 619 | TLS_DESCRIPTORS_FALSE |
| 620 | TLS_DESCRIPTORS_TRUE |
| 621 | TLS_GNU2_DIALECT_FALSE |
| 622 | TLS_GNU2_DIALECT_TRUE |
| 623 | OMP_SUPPORT_FALSE |
| 624 | OMP_SUPPORT_TRUE |
| 625 | STATIC_TLS_FALSE |
| 626 | STATIC_TLS_TRUE |
| 627 | TLS_FALSE |
| 628 | TLS_TRUE |
| 629 | MERGE_CONSTANTS_FLAG |
| 630 | MCMODEL_MEDIUM_FALSE |
| 631 | MCMODEL_MEDIUM_TRUE |
| 632 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE |
| 633 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE |
| 634 | HAVE_STATIC_FALSE |
| 635 | HAVE_STATIC_TRUE |
| 636 | NATIVE_OR_CROSS_LINKER_FALSE |
| 637 | NATIVE_OR_CROSS_LINKER_TRUE |
| 638 | GCC_FALSE |
| 639 | GCC_TRUE |
| 640 | NATIVE_LINKER_FALSE |
| 641 | NATIVE_LINKER_TRUE |
| 642 | MSGMERGE |
| 643 | MSGFMT |
| 644 | MKINSTALLDIRS |
| 645 | CATOBJEXT |
| 646 | GENCAT |
| 647 | INSTOBJEXT |
| 648 | DATADIRNAME |
| 649 | CATALOGS |
| 650 | POSUB |
| 651 | GMSGFMT |
| 652 | XGETTEXT |
| 653 | INCINTL |
| 654 | LIBINTL_DEP |
| 655 | LIBINTL |
| 656 | USE_NLS |
| 657 | EGREP |
| 658 | GREP |
| 659 | CPP |
| 660 | LN_S |
| 661 | RANLIB |
| 662 | YFLAGS |
| 663 | YACC |
| 664 | am__fastdepCXX_FALSE |
| 665 | am__fastdepCXX_TRUE |
| 666 | CXXDEPMODE |
| 667 | ac_ct_CXX |
| 668 | CXXFLAGS |
| 669 | CXX |
| 670 | am__fastdepCC_FALSE |
| 671 | am__fastdepCC_TRUE |
| 672 | CCDEPMODE |
| 673 | am__nodep |
| 674 | AMDEPBACKSLASH |
| 675 | AMDEP_FALSE |
| 676 | AMDEP_TRUE |
| 677 | am__quote |
| 678 | am__include |
| 679 | DEPDIR |
| 680 | OBJEXT |
| 681 | EXEEXT |
| 682 | ac_ct_CC |
| 683 | CPPFLAGS |
| 684 | LDFLAGS |
| 685 | CFLAGS |
| 686 | CC |
| 687 | NM |
| 688 | TARGETOBJS |
| 689 | DEFAULT_TARGET |
| 690 | DEFAULT_TARGET_MIPS_FALSE |
| 691 | DEFAULT_TARGET_MIPS_TRUE |
| 692 | DEFAULT_TARGET_TILEGX_FALSE |
| 693 | DEFAULT_TARGET_TILEGX_TRUE |
| 694 | DEFAULT_TARGET_X86_64_OR_X32_FALSE |
| 695 | DEFAULT_TARGET_X86_64_OR_X32_TRUE |
| 696 | DEFAULT_TARGET_X32_FALSE |
| 697 | DEFAULT_TARGET_X32_TRUE |
| 698 | DEFAULT_TARGET_X86_64_FALSE |
| 699 | DEFAULT_TARGET_X86_64_TRUE |
| 700 | DEFAULT_TARGET_S390_FALSE |
| 701 | DEFAULT_TARGET_S390_TRUE |
| 702 | DEFAULT_TARGET_SPARC_FALSE |
| 703 | DEFAULT_TARGET_SPARC_TRUE |
| 704 | DEFAULT_TARGET_POWERPC_FALSE |
| 705 | DEFAULT_TARGET_POWERPC_TRUE |
| 706 | DEFAULT_TARGET_I386_FALSE |
| 707 | DEFAULT_TARGET_I386_TRUE |
| 708 | DEFAULT_TARGET_ARM_FALSE |
| 709 | DEFAULT_TARGET_ARM_TRUE |
| 710 | DEFAULT_TARGET_AARCH64_FALSE |
| 711 | DEFAULT_TARGET_AARCH64_TRUE |
| 712 | PLUGINS_FALSE |
| 713 | PLUGINS_TRUE |
| 714 | THREADS_FALSE |
| 715 | THREADS_TRUE |
| 716 | installed_linker |
| 717 | install_as_default |
| 718 | am__untar |
| 719 | am__tar |
| 720 | AMTAR |
| 721 | am__leading_dot |
| 722 | SET_MAKE |
| 723 | AWK |
| 724 | mkdir_p |
| 725 | MKDIR_P |
| 726 | INSTALL_STRIP_PROGRAM |
| 727 | STRIP |
| 728 | install_sh |
| 729 | MAKEINFO |
| 730 | AUTOHEADER |
| 731 | AUTOMAKE |
| 732 | AUTOCONF |
| 733 | ACLOCAL |
| 734 | VERSION |
| 735 | PACKAGE |
| 736 | CYGPATH_W |
| 737 | am__isrc |
| 738 | INSTALL_DATA |
| 739 | INSTALL_SCRIPT |
| 740 | INSTALL_PROGRAM |
| 741 | target_os |
| 742 | target_vendor |
| 743 | target_cpu |
| 744 | target |
| 745 | host_os |
| 746 | host_vendor |
| 747 | host_cpu |
| 748 | host |
| 749 | build_os |
| 750 | build_vendor |
| 751 | build_cpu |
| 752 | build |
| 753 | target_alias |
| 754 | host_alias |
| 755 | build_alias |
| 756 | LIBS |
| 757 | ECHO_T |
| 758 | ECHO_N |
| 759 | ECHO_C |
| 760 | DEFS |
| 761 | mandir |
| 762 | localedir |
| 763 | libdir |
| 764 | psdir |
| 765 | pdfdir |
| 766 | dvidir |
| 767 | htmldir |
| 768 | infodir |
| 769 | docdir |
| 770 | oldincludedir |
| 771 | includedir |
| 772 | localstatedir |
| 773 | sharedstatedir |
| 774 | sysconfdir |
| 775 | datadir |
| 776 | datarootdir |
| 777 | libexecdir |
| 778 | sbindir |
| 779 | bindir |
| 780 | program_transform_name |
| 781 | prefix |
| 782 | exec_prefix |
| 783 | PACKAGE_URL |
| 784 | PACKAGE_BUGREPORT |
| 785 | PACKAGE_STRING |
| 786 | PACKAGE_VERSION |
| 787 | PACKAGE_TARNAME |
| 788 | PACKAGE_NAME |
| 789 | PATH_SEPARATOR |
| 790 | SHELL' |
| 791 | ac_subst_files='' |
| 792 | ac_user_opts=' |
| 793 | enable_option_checking |
| 794 | with_sysroot |
| 795 | enable_gold |
| 796 | enable_threads |
| 797 | enable_plugins |
| 798 | enable_relro |
| 799 | enable_targets |
| 800 | with_lib_path |
| 801 | enable_dependency_tracking |
| 802 | enable_nls |
| 803 | enable_werror |
| 804 | enable_build_warnings |
| 805 | with_gold_ldflags |
| 806 | with_gold_ldadd |
| 807 | with_system_zlib |
| 808 | enable_maintainer_mode |
| 809 | ' |
| 810 | ac_precious_vars='build_alias |
| 811 | host_alias |
| 812 | target_alias |
| 813 | CC |
| 814 | CFLAGS |
| 815 | LDFLAGS |
| 816 | LIBS |
| 817 | CPPFLAGS |
| 818 | CXX |
| 819 | CXXFLAGS |
| 820 | CCC |
| 821 | YACC |
| 822 | YFLAGS |
| 823 | CPP |
| 824 | CXXCPP' |
| 825 | |
| 826 | |
| 827 | # Initialize some variables set by options. |
| 828 | ac_init_help= |
| 829 | ac_init_version=false |
| 830 | ac_unrecognized_opts= |
| 831 | ac_unrecognized_sep= |
| 832 | # The variables have the same names as the options, with |
| 833 | # dashes changed to underlines. |
| 834 | cache_file=/dev/null |
| 835 | exec_prefix=NONE |
| 836 | no_create= |
| 837 | no_recursion= |
| 838 | prefix=NONE |
| 839 | program_prefix=NONE |
| 840 | program_suffix=NONE |
| 841 | program_transform_name=s,x,x, |
| 842 | silent= |
| 843 | site= |
| 844 | srcdir= |
| 845 | verbose= |
| 846 | x_includes=NONE |
| 847 | x_libraries=NONE |
| 848 | |
| 849 | # Installation directory options. |
| 850 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 851 | # and all the variables that are supposed to be based on exec_prefix |
| 852 | # by default will actually change. |
| 853 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 854 | # (The list follows the same order as the GNU Coding Standards.) |
| 855 | bindir='${exec_prefix}/bin' |
| 856 | sbindir='${exec_prefix}/sbin' |
| 857 | libexecdir='${exec_prefix}/libexec' |
| 858 | datarootdir='${prefix}/share' |
| 859 | datadir='${datarootdir}' |
| 860 | sysconfdir='${prefix}/etc' |
| 861 | sharedstatedir='${prefix}/com' |
| 862 | localstatedir='${prefix}/var' |
| 863 | includedir='${prefix}/include' |
| 864 | oldincludedir='/usr/include' |
| 865 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 866 | infodir='${datarootdir}/info' |
| 867 | htmldir='${docdir}' |
| 868 | dvidir='${docdir}' |
| 869 | pdfdir='${docdir}' |
| 870 | psdir='${docdir}' |
| 871 | libdir='${exec_prefix}/lib' |
| 872 | localedir='${datarootdir}/locale' |
| 873 | mandir='${datarootdir}/man' |
| 874 | |
| 875 | ac_prev= |
| 876 | ac_dashdash= |
| 877 | for ac_option |
| 878 | do |
| 879 | # If the previous option needs an argument, assign it. |
| 880 | if test -n "$ac_prev"; then |
| 881 | eval $ac_prev=\$ac_option |
| 882 | ac_prev= |
| 883 | continue |
| 884 | fi |
| 885 | |
| 886 | case $ac_option in |
| 887 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 888 | *) ac_optarg=yes ;; |
| 889 | esac |
| 890 | |
| 891 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 892 | |
| 893 | case $ac_dashdash$ac_option in |
| 894 | --) |
| 895 | ac_dashdash=yes ;; |
| 896 | |
| 897 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 898 | ac_prev=bindir ;; |
| 899 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 900 | bindir=$ac_optarg ;; |
| 901 | |
| 902 | -build | --build | --buil | --bui | --bu) |
| 903 | ac_prev=build_alias ;; |
| 904 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 905 | build_alias=$ac_optarg ;; |
| 906 | |
| 907 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 908 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 909 | ac_prev=cache_file ;; |
| 910 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 911 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 912 | cache_file=$ac_optarg ;; |
| 913 | |
| 914 | --config-cache | -C) |
| 915 | cache_file=config.cache ;; |
| 916 | |
| 917 | -datadir | --datadir | --datadi | --datad) |
| 918 | ac_prev=datadir ;; |
| 919 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 920 | datadir=$ac_optarg ;; |
| 921 | |
| 922 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 923 | | --dataroo | --dataro | --datar) |
| 924 | ac_prev=datarootdir ;; |
| 925 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 926 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 927 | datarootdir=$ac_optarg ;; |
| 928 | |
| 929 | -disable-* | --disable-*) |
| 930 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 931 | # Reject names that are not valid shell variable names. |
| 932 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 933 | as_fn_error "invalid feature name: $ac_useropt" |
| 934 | ac_useropt_orig=$ac_useropt |
| 935 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 936 | case $ac_user_opts in |
| 937 | *" |
| 938 | "enable_$ac_useropt" |
| 939 | "*) ;; |
| 940 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 941 | ac_unrecognized_sep=', ';; |
| 942 | esac |
| 943 | eval enable_$ac_useropt=no ;; |
| 944 | |
| 945 | -docdir | --docdir | --docdi | --doc | --do) |
| 946 | ac_prev=docdir ;; |
| 947 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 948 | docdir=$ac_optarg ;; |
| 949 | |
| 950 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 951 | ac_prev=dvidir ;; |
| 952 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 953 | dvidir=$ac_optarg ;; |
| 954 | |
| 955 | -enable-* | --enable-*) |
| 956 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 957 | # Reject names that are not valid shell variable names. |
| 958 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 959 | as_fn_error "invalid feature name: $ac_useropt" |
| 960 | ac_useropt_orig=$ac_useropt |
| 961 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 962 | case $ac_user_opts in |
| 963 | *" |
| 964 | "enable_$ac_useropt" |
| 965 | "*) ;; |
| 966 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 967 | ac_unrecognized_sep=', ';; |
| 968 | esac |
| 969 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 970 | |
| 971 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 972 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 973 | | --exec | --exe | --ex) |
| 974 | ac_prev=exec_prefix ;; |
| 975 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 976 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 977 | | --exec=* | --exe=* | --ex=*) |
| 978 | exec_prefix=$ac_optarg ;; |
| 979 | |
| 980 | -gas | --gas | --ga | --g) |
| 981 | # Obsolete; use --with-gas. |
| 982 | with_gas=yes ;; |
| 983 | |
| 984 | -help | --help | --hel | --he | -h) |
| 985 | ac_init_help=long ;; |
| 986 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 987 | ac_init_help=recursive ;; |
| 988 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 989 | ac_init_help=short ;; |
| 990 | |
| 991 | -host | --host | --hos | --ho) |
| 992 | ac_prev=host_alias ;; |
| 993 | -host=* | --host=* | --hos=* | --ho=*) |
| 994 | host_alias=$ac_optarg ;; |
| 995 | |
| 996 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 997 | ac_prev=htmldir ;; |
| 998 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 999 | | --ht=*) |
| 1000 | htmldir=$ac_optarg ;; |
| 1001 | |
| 1002 | -includedir | --includedir | --includedi | --included | --include \ |
| 1003 | | --includ | --inclu | --incl | --inc) |
| 1004 | ac_prev=includedir ;; |
| 1005 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1006 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1007 | includedir=$ac_optarg ;; |
| 1008 | |
| 1009 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1010 | ac_prev=infodir ;; |
| 1011 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1012 | infodir=$ac_optarg ;; |
| 1013 | |
| 1014 | -libdir | --libdir | --libdi | --libd) |
| 1015 | ac_prev=libdir ;; |
| 1016 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1017 | libdir=$ac_optarg ;; |
| 1018 | |
| 1019 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1020 | | --libexe | --libex | --libe) |
| 1021 | ac_prev=libexecdir ;; |
| 1022 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1023 | | --libexe=* | --libex=* | --libe=*) |
| 1024 | libexecdir=$ac_optarg ;; |
| 1025 | |
| 1026 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1027 | ac_prev=localedir ;; |
| 1028 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1029 | localedir=$ac_optarg ;; |
| 1030 | |
| 1031 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1032 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1033 | ac_prev=localstatedir ;; |
| 1034 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1035 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1036 | localstatedir=$ac_optarg ;; |
| 1037 | |
| 1038 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1039 | ac_prev=mandir ;; |
| 1040 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1041 | mandir=$ac_optarg ;; |
| 1042 | |
| 1043 | -nfp | --nfp | --nf) |
| 1044 | # Obsolete; use --without-fp. |
| 1045 | with_fp=no ;; |
| 1046 | |
| 1047 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1048 | | --no-cr | --no-c | -n) |
| 1049 | no_create=yes ;; |
| 1050 | |
| 1051 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1052 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1053 | no_recursion=yes ;; |
| 1054 | |
| 1055 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1056 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1057 | | --oldin | --oldi | --old | --ol | --o) |
| 1058 | ac_prev=oldincludedir ;; |
| 1059 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1060 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1061 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1062 | oldincludedir=$ac_optarg ;; |
| 1063 | |
| 1064 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1065 | ac_prev=prefix ;; |
| 1066 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1067 | prefix=$ac_optarg ;; |
| 1068 | |
| 1069 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1070 | | --program-pre | --program-pr | --program-p) |
| 1071 | ac_prev=program_prefix ;; |
| 1072 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1073 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1074 | program_prefix=$ac_optarg ;; |
| 1075 | |
| 1076 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1077 | | --program-suf | --program-su | --program-s) |
| 1078 | ac_prev=program_suffix ;; |
| 1079 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1080 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1081 | program_suffix=$ac_optarg ;; |
| 1082 | |
| 1083 | -program-transform-name | --program-transform-name \ |
| 1084 | | --program-transform-nam | --program-transform-na \ |
| 1085 | | --program-transform-n | --program-transform- \ |
| 1086 | | --program-transform | --program-transfor \ |
| 1087 | | --program-transfo | --program-transf \ |
| 1088 | | --program-trans | --program-tran \ |
| 1089 | | --progr-tra | --program-tr | --program-t) |
| 1090 | ac_prev=program_transform_name ;; |
| 1091 | -program-transform-name=* | --program-transform-name=* \ |
| 1092 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1093 | | --program-transform-n=* | --program-transform-=* \ |
| 1094 | | --program-transform=* | --program-transfor=* \ |
| 1095 | | --program-transfo=* | --program-transf=* \ |
| 1096 | | --program-trans=* | --program-tran=* \ |
| 1097 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1098 | program_transform_name=$ac_optarg ;; |
| 1099 | |
| 1100 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1101 | ac_prev=pdfdir ;; |
| 1102 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1103 | pdfdir=$ac_optarg ;; |
| 1104 | |
| 1105 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1106 | ac_prev=psdir ;; |
| 1107 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1108 | psdir=$ac_optarg ;; |
| 1109 | |
| 1110 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1111 | | -silent | --silent | --silen | --sile | --sil) |
| 1112 | silent=yes ;; |
| 1113 | |
| 1114 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1115 | ac_prev=sbindir ;; |
| 1116 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1117 | | --sbi=* | --sb=*) |
| 1118 | sbindir=$ac_optarg ;; |
| 1119 | |
| 1120 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1121 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1122 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1123 | | --sha | --sh) |
| 1124 | ac_prev=sharedstatedir ;; |
| 1125 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1126 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1127 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1128 | | --sha=* | --sh=*) |
| 1129 | sharedstatedir=$ac_optarg ;; |
| 1130 | |
| 1131 | -site | --site | --sit) |
| 1132 | ac_prev=site ;; |
| 1133 | -site=* | --site=* | --sit=*) |
| 1134 | site=$ac_optarg ;; |
| 1135 | |
| 1136 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1137 | ac_prev=srcdir ;; |
| 1138 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1139 | srcdir=$ac_optarg ;; |
| 1140 | |
| 1141 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1142 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1143 | ac_prev=sysconfdir ;; |
| 1144 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1145 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1146 | sysconfdir=$ac_optarg ;; |
| 1147 | |
| 1148 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1149 | ac_prev=target_alias ;; |
| 1150 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1151 | target_alias=$ac_optarg ;; |
| 1152 | |
| 1153 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1154 | verbose=yes ;; |
| 1155 | |
| 1156 | -version | --version | --versio | --versi | --vers | -V) |
| 1157 | ac_init_version=: ;; |
| 1158 | |
| 1159 | -with-* | --with-*) |
| 1160 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1161 | # Reject names that are not valid shell variable names. |
| 1162 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1163 | as_fn_error "invalid package name: $ac_useropt" |
| 1164 | ac_useropt_orig=$ac_useropt |
| 1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1166 | case $ac_user_opts in |
| 1167 | *" |
| 1168 | "with_$ac_useropt" |
| 1169 | "*) ;; |
| 1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1171 | ac_unrecognized_sep=', ';; |
| 1172 | esac |
| 1173 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1174 | |
| 1175 | -without-* | --without-*) |
| 1176 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1177 | # Reject names that are not valid shell variable names. |
| 1178 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1179 | as_fn_error "invalid package name: $ac_useropt" |
| 1180 | ac_useropt_orig=$ac_useropt |
| 1181 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1182 | case $ac_user_opts in |
| 1183 | *" |
| 1184 | "with_$ac_useropt" |
| 1185 | "*) ;; |
| 1186 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1187 | ac_unrecognized_sep=', ';; |
| 1188 | esac |
| 1189 | eval with_$ac_useropt=no ;; |
| 1190 | |
| 1191 | --x) |
| 1192 | # Obsolete; use --with-x. |
| 1193 | with_x=yes ;; |
| 1194 | |
| 1195 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1196 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1197 | ac_prev=x_includes ;; |
| 1198 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1199 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1200 | x_includes=$ac_optarg ;; |
| 1201 | |
| 1202 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1203 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1204 | ac_prev=x_libraries ;; |
| 1205 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1206 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1207 | x_libraries=$ac_optarg ;; |
| 1208 | |
| 1209 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1210 | Try \`$0 --help' for more information." |
| 1211 | ;; |
| 1212 | |
| 1213 | *=*) |
| 1214 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1215 | # Reject names that are not valid shell variable names. |
| 1216 | case $ac_envvar in #( |
| 1217 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1218 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1219 | esac |
| 1220 | eval $ac_envvar=\$ac_optarg |
| 1221 | export $ac_envvar ;; |
| 1222 | |
| 1223 | *) |
| 1224 | # FIXME: should be removed in autoconf 3.0. |
| 1225 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1226 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1227 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1228 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1229 | ;; |
| 1230 | |
| 1231 | esac |
| 1232 | done |
| 1233 | |
| 1234 | if test -n "$ac_prev"; then |
| 1235 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1236 | as_fn_error "missing argument to $ac_option" |
| 1237 | fi |
| 1238 | |
| 1239 | if test -n "$ac_unrecognized_opts"; then |
| 1240 | case $enable_option_checking in |
| 1241 | no) ;; |
| 1242 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1243 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1244 | esac |
| 1245 | fi |
| 1246 | |
| 1247 | # Check all directory arguments for consistency. |
| 1248 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1249 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1250 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1251 | libdir localedir mandir |
| 1252 | do |
| 1253 | eval ac_val=\$$ac_var |
| 1254 | # Remove trailing slashes. |
| 1255 | case $ac_val in |
| 1256 | */ ) |
| 1257 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1258 | eval $ac_var=\$ac_val;; |
| 1259 | esac |
| 1260 | # Be sure to have absolute directory names. |
| 1261 | case $ac_val in |
| 1262 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1263 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1264 | esac |
| 1265 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1266 | done |
| 1267 | |
| 1268 | # There might be people who depend on the old broken behavior: `$host' |
| 1269 | # used to hold the argument of --host etc. |
| 1270 | # FIXME: To remove some day. |
| 1271 | build=$build_alias |
| 1272 | host=$host_alias |
| 1273 | target=$target_alias |
| 1274 | |
| 1275 | # FIXME: To remove some day. |
| 1276 | if test "x$host_alias" != x; then |
| 1277 | if test "x$build_alias" = x; then |
| 1278 | cross_compiling=maybe |
| 1279 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1280 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1281 | elif test "x$build_alias" != "x$host_alias"; then |
| 1282 | cross_compiling=yes |
| 1283 | fi |
| 1284 | fi |
| 1285 | |
| 1286 | ac_tool_prefix= |
| 1287 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1288 | |
| 1289 | test "$silent" = yes && exec 6>/dev/null |
| 1290 | |
| 1291 | |
| 1292 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1293 | ac_ls_di=`ls -di .` && |
| 1294 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1295 | as_fn_error "working directory cannot be determined" |
| 1296 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1297 | as_fn_error "pwd does not report name of working directory" |
| 1298 | |
| 1299 | |
| 1300 | # Find the source files, if location was not specified. |
| 1301 | if test -z "$srcdir"; then |
| 1302 | ac_srcdir_defaulted=yes |
| 1303 | # Try the directory containing this script, then the parent directory. |
| 1304 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1305 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1306 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1307 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1308 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1309 | $as_echo X"$as_myself" | |
| 1310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1311 | s//\1/ |
| 1312 | q |
| 1313 | } |
| 1314 | /^X\(\/\/\)[^/].*/{ |
| 1315 | s//\1/ |
| 1316 | q |
| 1317 | } |
| 1318 | /^X\(\/\/\)$/{ |
| 1319 | s//\1/ |
| 1320 | q |
| 1321 | } |
| 1322 | /^X\(\/\).*/{ |
| 1323 | s//\1/ |
| 1324 | q |
| 1325 | } |
| 1326 | s/.*/./; q'` |
| 1327 | srcdir=$ac_confdir |
| 1328 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1329 | srcdir=.. |
| 1330 | fi |
| 1331 | else |
| 1332 | ac_srcdir_defaulted=no |
| 1333 | fi |
| 1334 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1335 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1336 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1337 | fi |
| 1338 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1339 | ac_abs_confdir=`( |
| 1340 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1341 | pwd)` |
| 1342 | # When building in place, set srcdir=. |
| 1343 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1344 | srcdir=. |
| 1345 | fi |
| 1346 | # Remove unnecessary trailing slashes from srcdir. |
| 1347 | # Double slashes in file names in object file debugging info |
| 1348 | # mess up M-x gdb in Emacs. |
| 1349 | case $srcdir in |
| 1350 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1351 | esac |
| 1352 | for ac_var in $ac_precious_vars; do |
| 1353 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1354 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1355 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1356 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1357 | done |
| 1358 | |
| 1359 | # |
| 1360 | # Report the --help message. |
| 1361 | # |
| 1362 | if test "$ac_init_help" = "long"; then |
| 1363 | # Omit some internal or obsolete options to make the list less imposing. |
| 1364 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1365 | cat <<_ACEOF |
| 1366 | \`configure' configures gold 0.1 to adapt to many kinds of systems. |
| 1367 | |
| 1368 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1369 | |
| 1370 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1371 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1372 | |
| 1373 | Defaults for the options are specified in brackets. |
| 1374 | |
| 1375 | Configuration: |
| 1376 | -h, --help display this help and exit |
| 1377 | --help=short display options specific to this package |
| 1378 | --help=recursive display the short help of all the included packages |
| 1379 | -V, --version display version information and exit |
| 1380 | -q, --quiet, --silent do not print \`checking...' messages |
| 1381 | --cache-file=FILE cache test results in FILE [disabled] |
| 1382 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1383 | -n, --no-create do not create output files |
| 1384 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1385 | |
| 1386 | Installation directories: |
| 1387 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1388 | [$ac_default_prefix] |
| 1389 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1390 | [PREFIX] |
| 1391 | |
| 1392 | By default, \`make install' will install all the files in |
| 1393 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1394 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1395 | for instance \`--prefix=\$HOME'. |
| 1396 | |
| 1397 | For better control, use the options below. |
| 1398 | |
| 1399 | Fine tuning of the installation directories: |
| 1400 | --bindir=DIR user executables [EPREFIX/bin] |
| 1401 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1402 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1403 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1404 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1405 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1406 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1407 | --includedir=DIR C header files [PREFIX/include] |
| 1408 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1409 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1410 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1411 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1412 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1413 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1414 | --docdir=DIR documentation root [DATAROOTDIR/doc/gold] |
| 1415 | --htmldir=DIR html documentation [DOCDIR] |
| 1416 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1417 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1418 | --psdir=DIR ps documentation [DOCDIR] |
| 1419 | _ACEOF |
| 1420 | |
| 1421 | cat <<\_ACEOF |
| 1422 | |
| 1423 | Program names: |
| 1424 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1425 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1426 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1427 | |
| 1428 | System types: |
| 1429 | --build=BUILD configure for building on BUILD [guessed] |
| 1430 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1431 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1432 | _ACEOF |
| 1433 | fi |
| 1434 | |
| 1435 | if test -n "$ac_init_help"; then |
| 1436 | case $ac_init_help in |
| 1437 | short | recursive ) echo "Configuration of gold 0.1:";; |
| 1438 | esac |
| 1439 | cat <<\_ACEOF |
| 1440 | |
| 1441 | Optional Features: |
| 1442 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1443 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1444 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1445 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
| 1446 | --enable-threads multi-threaded linking |
| 1447 | --enable-plugins linker plugins |
| 1448 | --enable-relro enable -z relro in ELF linker by default |
| 1449 | --enable-targets alternative target configurations |
| 1450 | --disable-dependency-tracking speeds up one-time build |
| 1451 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1452 | --disable-nls do not use Native Language Support |
| 1453 | --enable-werror treat compile warnings as errors |
| 1454 | --enable-build-warnings enable build-time compiler warnings |
| 1455 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1456 | (and sometimes confusing) to the casual installer |
| 1457 | |
| 1458 | Optional Packages: |
| 1459 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1460 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1461 | --with-sysroot=DIR search for usr/lib et al within DIR |
| 1462 | --with-lib-path=dir1:dir2... set default LIB_PATH |
| 1463 | --with-gold-ldflags=FLAGS additional link flags for gold |
| 1464 | --with-gold-ldadd=LIBS additional libraries for gold |
| 1465 | --with-system-zlib use installed libz |
| 1466 | |
| 1467 | Some influential environment variables: |
| 1468 | CC C compiler command |
| 1469 | CFLAGS C compiler flags |
| 1470 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1471 | nonstandard directory <lib dir> |
| 1472 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1473 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1474 | you have headers in a nonstandard directory <include dir> |
| 1475 | CXX C++ compiler command |
| 1476 | CXXFLAGS C++ compiler flags |
| 1477 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1478 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1479 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1480 | This script will default YFLAGS to the empty string to avoid a |
| 1481 | default value of `-d' given by some make applications. |
| 1482 | CPP C preprocessor |
| 1483 | CXXCPP C++ preprocessor |
| 1484 | |
| 1485 | Use these variables to override the choices made by `configure' or to help |
| 1486 | it to find libraries and programs with nonstandard names/locations. |
| 1487 | |
| 1488 | Report bugs to the package provider. |
| 1489 | _ACEOF |
| 1490 | ac_status=$? |
| 1491 | fi |
| 1492 | |
| 1493 | if test "$ac_init_help" = "recursive"; then |
| 1494 | # If there are subdirs, report their specific --help. |
| 1495 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1496 | test -d "$ac_dir" || |
| 1497 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1498 | continue |
| 1499 | ac_builddir=. |
| 1500 | |
| 1501 | case "$ac_dir" in |
| 1502 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1503 | *) |
| 1504 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1505 | # A ".." for each directory in $ac_dir_suffix. |
| 1506 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1507 | case $ac_top_builddir_sub in |
| 1508 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1509 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1510 | esac ;; |
| 1511 | esac |
| 1512 | ac_abs_top_builddir=$ac_pwd |
| 1513 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1514 | # for backward compatibility: |
| 1515 | ac_top_builddir=$ac_top_build_prefix |
| 1516 | |
| 1517 | case $srcdir in |
| 1518 | .) # We are building in place. |
| 1519 | ac_srcdir=. |
| 1520 | ac_top_srcdir=$ac_top_builddir_sub |
| 1521 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1522 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1523 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1524 | ac_top_srcdir=$srcdir |
| 1525 | ac_abs_top_srcdir=$srcdir ;; |
| 1526 | *) # Relative name. |
| 1527 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1528 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1529 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1530 | esac |
| 1531 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1532 | |
| 1533 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1534 | # Check for guested configure. |
| 1535 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1536 | echo && |
| 1537 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1538 | elif test -f "$ac_srcdir/configure"; then |
| 1539 | echo && |
| 1540 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1541 | else |
| 1542 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1543 | fi || ac_status=$? |
| 1544 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1545 | done |
| 1546 | fi |
| 1547 | |
| 1548 | test -n "$ac_init_help" && exit $ac_status |
| 1549 | if $ac_init_version; then |
| 1550 | cat <<\_ACEOF |
| 1551 | gold configure 0.1 |
| 1552 | generated by GNU Autoconf 2.64 |
| 1553 | |
| 1554 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 1555 | This configure script is free software; the Free Software Foundation |
| 1556 | gives unlimited permission to copy, distribute and modify it. |
| 1557 | _ACEOF |
| 1558 | exit |
| 1559 | fi |
| 1560 | |
| 1561 | ## ------------------------ ## |
| 1562 | ## Autoconf initialization. ## |
| 1563 | ## ------------------------ ## |
| 1564 | |
| 1565 | # ac_fn_c_try_compile LINENO |
| 1566 | # -------------------------- |
| 1567 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1568 | ac_fn_c_try_compile () |
| 1569 | { |
| 1570 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1571 | rm -f conftest.$ac_objext |
| 1572 | if { { ac_try="$ac_compile" |
| 1573 | case "(($ac_try" in |
| 1574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1575 | *) ac_try_echo=$ac_try;; |
| 1576 | esac |
| 1577 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1578 | $as_echo "$ac_try_echo"; } >&5 |
| 1579 | (eval "$ac_compile") 2>conftest.err |
| 1580 | ac_status=$? |
| 1581 | if test -s conftest.err; then |
| 1582 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1583 | cat conftest.er1 >&5 |
| 1584 | mv -f conftest.er1 conftest.err |
| 1585 | fi |
| 1586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1587 | test $ac_status = 0; } && { |
| 1588 | test -z "$ac_c_werror_flag" || |
| 1589 | test ! -s conftest.err |
| 1590 | } && test -s conftest.$ac_objext; then : |
| 1591 | ac_retval=0 |
| 1592 | else |
| 1593 | $as_echo "$as_me: failed program was:" >&5 |
| 1594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1595 | |
| 1596 | ac_retval=1 |
| 1597 | fi |
| 1598 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1599 | return $ac_retval |
| 1600 | |
| 1601 | } # ac_fn_c_try_compile |
| 1602 | |
| 1603 | # ac_fn_cxx_try_compile LINENO |
| 1604 | # ---------------------------- |
| 1605 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1606 | ac_fn_cxx_try_compile () |
| 1607 | { |
| 1608 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1609 | rm -f conftest.$ac_objext |
| 1610 | if { { ac_try="$ac_compile" |
| 1611 | case "(($ac_try" in |
| 1612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1613 | *) ac_try_echo=$ac_try;; |
| 1614 | esac |
| 1615 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1616 | $as_echo "$ac_try_echo"; } >&5 |
| 1617 | (eval "$ac_compile") 2>conftest.err |
| 1618 | ac_status=$? |
| 1619 | if test -s conftest.err; then |
| 1620 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1621 | cat conftest.er1 >&5 |
| 1622 | mv -f conftest.er1 conftest.err |
| 1623 | fi |
| 1624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1625 | test $ac_status = 0; } && { |
| 1626 | test -z "$ac_cxx_werror_flag" || |
| 1627 | test ! -s conftest.err |
| 1628 | } && test -s conftest.$ac_objext; then : |
| 1629 | ac_retval=0 |
| 1630 | else |
| 1631 | $as_echo "$as_me: failed program was:" >&5 |
| 1632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1633 | |
| 1634 | ac_retval=1 |
| 1635 | fi |
| 1636 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1637 | return $ac_retval |
| 1638 | |
| 1639 | } # ac_fn_cxx_try_compile |
| 1640 | |
| 1641 | # ac_fn_c_try_cpp LINENO |
| 1642 | # ---------------------- |
| 1643 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1644 | ac_fn_c_try_cpp () |
| 1645 | { |
| 1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1647 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1648 | case "(($ac_try" in |
| 1649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1650 | *) ac_try_echo=$ac_try;; |
| 1651 | esac |
| 1652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1653 | $as_echo "$ac_try_echo"; } >&5 |
| 1654 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1655 | ac_status=$? |
| 1656 | if test -s conftest.err; then |
| 1657 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1658 | cat conftest.er1 >&5 |
| 1659 | mv -f conftest.er1 conftest.err |
| 1660 | fi |
| 1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1662 | test $ac_status = 0; } >/dev/null && { |
| 1663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1664 | test ! -s conftest.err |
| 1665 | }; then : |
| 1666 | ac_retval=0 |
| 1667 | else |
| 1668 | $as_echo "$as_me: failed program was:" >&5 |
| 1669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1670 | |
| 1671 | ac_retval=1 |
| 1672 | fi |
| 1673 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1674 | return $ac_retval |
| 1675 | |
| 1676 | } # ac_fn_c_try_cpp |
| 1677 | |
| 1678 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1679 | # ------------------------------------------------------- |
| 1680 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1681 | # the include files in INCLUDES and setting the cache variable VAR |
| 1682 | # accordingly. |
| 1683 | ac_fn_c_check_header_mongrel () |
| 1684 | { |
| 1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1686 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1688 | $as_echo_n "checking for $2... " >&6; } |
| 1689 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1690 | $as_echo_n "(cached) " >&6 |
| 1691 | fi |
| 1692 | eval ac_res=\$$3 |
| 1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1694 | $as_echo "$ac_res" >&6; } |
| 1695 | else |
| 1696 | # Is the header compilable? |
| 1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1698 | $as_echo_n "checking $2 usability... " >&6; } |
| 1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1700 | /* end confdefs.h. */ |
| 1701 | $4 |
| 1702 | #include <$2> |
| 1703 | _ACEOF |
| 1704 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1705 | ac_header_compiler=yes |
| 1706 | else |
| 1707 | ac_header_compiler=no |
| 1708 | fi |
| 1709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1711 | $as_echo "$ac_header_compiler" >&6; } |
| 1712 | |
| 1713 | # Is the header present? |
| 1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1715 | $as_echo_n "checking $2 presence... " >&6; } |
| 1716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1717 | /* end confdefs.h. */ |
| 1718 | #include <$2> |
| 1719 | _ACEOF |
| 1720 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1721 | ac_header_preproc=yes |
| 1722 | else |
| 1723 | ac_header_preproc=no |
| 1724 | fi |
| 1725 | rm -f conftest.err conftest.$ac_ext |
| 1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1727 | $as_echo "$ac_header_preproc" >&6; } |
| 1728 | |
| 1729 | # So? What about this header? |
| 1730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1731 | yes:no: ) |
| 1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1733 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1735 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1736 | ;; |
| 1737 | no:yes:* ) |
| 1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1739 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1741 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1743 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1745 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1747 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1748 | ;; |
| 1749 | esac |
| 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1751 | $as_echo_n "checking for $2... " >&6; } |
| 1752 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1753 | $as_echo_n "(cached) " >&6 |
| 1754 | else |
| 1755 | eval "$3=\$ac_header_compiler" |
| 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 | fi |
| 1761 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1762 | |
| 1763 | } # ac_fn_c_check_header_mongrel |
| 1764 | |
| 1765 | # ac_fn_c_try_run LINENO |
| 1766 | # ---------------------- |
| 1767 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1768 | # that executables *can* be run. |
| 1769 | ac_fn_c_try_run () |
| 1770 | { |
| 1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1772 | if { { ac_try="$ac_link" |
| 1773 | case "(($ac_try" in |
| 1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1775 | *) ac_try_echo=$ac_try;; |
| 1776 | esac |
| 1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1778 | $as_echo "$ac_try_echo"; } >&5 |
| 1779 | (eval "$ac_link") 2>&5 |
| 1780 | ac_status=$? |
| 1781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1782 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1783 | { { case "(($ac_try" in |
| 1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1785 | *) ac_try_echo=$ac_try;; |
| 1786 | esac |
| 1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1788 | $as_echo "$ac_try_echo"; } >&5 |
| 1789 | (eval "$ac_try") 2>&5 |
| 1790 | ac_status=$? |
| 1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1792 | test $ac_status = 0; }; }; then : |
| 1793 | ac_retval=0 |
| 1794 | else |
| 1795 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1796 | $as_echo "$as_me: failed program was:" >&5 |
| 1797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1798 | |
| 1799 | ac_retval=$ac_status |
| 1800 | fi |
| 1801 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1802 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1803 | return $ac_retval |
| 1804 | |
| 1805 | } # ac_fn_c_try_run |
| 1806 | |
| 1807 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1808 | # ------------------------------------------------------- |
| 1809 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1810 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1811 | ac_fn_c_check_header_compile () |
| 1812 | { |
| 1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1815 | $as_echo_n "checking for $2... " >&6; } |
| 1816 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1817 | $as_echo_n "(cached) " >&6 |
| 1818 | else |
| 1819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1820 | /* end confdefs.h. */ |
| 1821 | $4 |
| 1822 | #include <$2> |
| 1823 | _ACEOF |
| 1824 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1825 | eval "$3=yes" |
| 1826 | else |
| 1827 | eval "$3=no" |
| 1828 | fi |
| 1829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1830 | fi |
| 1831 | eval ac_res=\$$3 |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1833 | $as_echo "$ac_res" >&6; } |
| 1834 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1835 | |
| 1836 | } # ac_fn_c_check_header_compile |
| 1837 | |
| 1838 | # ac_fn_c_try_link LINENO |
| 1839 | # ----------------------- |
| 1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1841 | ac_fn_c_try_link () |
| 1842 | { |
| 1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1844 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1845 | if { { ac_try="$ac_link" |
| 1846 | case "(($ac_try" in |
| 1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1848 | *) ac_try_echo=$ac_try;; |
| 1849 | esac |
| 1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1851 | $as_echo "$ac_try_echo"; } >&5 |
| 1852 | (eval "$ac_link") 2>conftest.err |
| 1853 | ac_status=$? |
| 1854 | if test -s conftest.err; then |
| 1855 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1856 | cat conftest.er1 >&5 |
| 1857 | mv -f conftest.er1 conftest.err |
| 1858 | fi |
| 1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1860 | test $ac_status = 0; } && { |
| 1861 | test -z "$ac_c_werror_flag" || |
| 1862 | test ! -s conftest.err |
| 1863 | } && test -s conftest$ac_exeext && { |
| 1864 | test "$cross_compiling" = yes || |
| 1865 | $as_test_x conftest$ac_exeext |
| 1866 | }; then : |
| 1867 | ac_retval=0 |
| 1868 | else |
| 1869 | $as_echo "$as_me: failed program was:" >&5 |
| 1870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1871 | |
| 1872 | ac_retval=1 |
| 1873 | fi |
| 1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1876 | # interfere with the next link command; also delete a directory that is |
| 1877 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1879 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1880 | return $ac_retval |
| 1881 | |
| 1882 | } # ac_fn_c_try_link |
| 1883 | |
| 1884 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1885 | # ---------------------------------- |
| 1886 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1887 | ac_fn_c_check_func () |
| 1888 | { |
| 1889 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1891 | $as_echo_n "checking for $2... " >&6; } |
| 1892 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1893 | $as_echo_n "(cached) " >&6 |
| 1894 | else |
| 1895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1896 | /* end confdefs.h. */ |
| 1897 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1899 | #define $2 innocuous_$2 |
| 1900 | |
| 1901 | /* System header to define __stub macros and hopefully few prototypes, |
| 1902 | which can conflict with char $2 (); below. |
| 1903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1904 | <limits.h> exists even on freestanding compilers. */ |
| 1905 | |
| 1906 | #ifdef __STDC__ |
| 1907 | # include <limits.h> |
| 1908 | #else |
| 1909 | # include <assert.h> |
| 1910 | #endif |
| 1911 | |
| 1912 | #undef $2 |
| 1913 | |
| 1914 | /* Override any GCC internal prototype to avoid an error. |
| 1915 | Use char because int might match the return type of a GCC |
| 1916 | builtin and then its argument prototype would still apply. */ |
| 1917 | #ifdef __cplusplus |
| 1918 | extern "C" |
| 1919 | #endif |
| 1920 | char $2 (); |
| 1921 | /* The GNU C library defines this for functions which it implements |
| 1922 | to always fail with ENOSYS. Some functions are actually named |
| 1923 | something starting with __ and the normal name is an alias. */ |
| 1924 | #if defined __stub_$2 || defined __stub___$2 |
| 1925 | choke me |
| 1926 | #endif |
| 1927 | |
| 1928 | int |
| 1929 | main () |
| 1930 | { |
| 1931 | return $2 (); |
| 1932 | ; |
| 1933 | return 0; |
| 1934 | } |
| 1935 | _ACEOF |
| 1936 | if ac_fn_c_try_link "$LINENO"; then : |
| 1937 | eval "$3=yes" |
| 1938 | else |
| 1939 | eval "$3=no" |
| 1940 | fi |
| 1941 | rm -f core conftest.err conftest.$ac_objext \ |
| 1942 | conftest$ac_exeext conftest.$ac_ext |
| 1943 | fi |
| 1944 | eval ac_res=\$$3 |
| 1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1946 | $as_echo "$ac_res" >&6; } |
| 1947 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1948 | |
| 1949 | } # ac_fn_c_check_func |
| 1950 | |
| 1951 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 1952 | # ------------------------------------ |
| 1953 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 1954 | ac_fn_c_check_decl () |
| 1955 | { |
| 1956 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1957 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1958 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1960 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1961 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1962 | $as_echo_n "(cached) " >&6 |
| 1963 | else |
| 1964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1965 | /* end confdefs.h. */ |
| 1966 | $4 |
| 1967 | int |
| 1968 | main () |
| 1969 | { |
| 1970 | #ifndef $as_decl_name |
| 1971 | #ifdef __cplusplus |
| 1972 | (void) $as_decl_use; |
| 1973 | #else |
| 1974 | (void) $as_decl_name; |
| 1975 | #endif |
| 1976 | #endif |
| 1977 | |
| 1978 | ; |
| 1979 | return 0; |
| 1980 | } |
| 1981 | _ACEOF |
| 1982 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1983 | eval "$3=yes" |
| 1984 | else |
| 1985 | eval "$3=no" |
| 1986 | fi |
| 1987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1988 | fi |
| 1989 | eval ac_res=\$$3 |
| 1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1991 | $as_echo "$ac_res" >&6; } |
| 1992 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1993 | |
| 1994 | } # ac_fn_c_check_decl |
| 1995 | |
| 1996 | # ac_fn_cxx_try_cpp LINENO |
| 1997 | # ------------------------ |
| 1998 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1999 | ac_fn_cxx_try_cpp () |
| 2000 | { |
| 2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2002 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2003 | case "(($ac_try" in |
| 2004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2005 | *) ac_try_echo=$ac_try;; |
| 2006 | esac |
| 2007 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2008 | $as_echo "$ac_try_echo"; } >&5 |
| 2009 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2010 | ac_status=$? |
| 2011 | if test -s conftest.err; then |
| 2012 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2013 | cat conftest.er1 >&5 |
| 2014 | mv -f conftest.er1 conftest.err |
| 2015 | fi |
| 2016 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2017 | test $ac_status = 0; } >/dev/null && { |
| 2018 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2019 | test ! -s conftest.err |
| 2020 | }; then : |
| 2021 | ac_retval=0 |
| 2022 | else |
| 2023 | $as_echo "$as_me: failed program was:" >&5 |
| 2024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2025 | |
| 2026 | ac_retval=1 |
| 2027 | fi |
| 2028 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2029 | return $ac_retval |
| 2030 | |
| 2031 | } # ac_fn_cxx_try_cpp |
| 2032 | |
| 2033 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2034 | # --------------------------------------------------------- |
| 2035 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2036 | # the include files in INCLUDES and setting the cache variable VAR |
| 2037 | # accordingly. |
| 2038 | ac_fn_cxx_check_header_mongrel () |
| 2039 | { |
| 2040 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2041 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2043 | $as_echo_n "checking for $2... " >&6; } |
| 2044 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2045 | $as_echo_n "(cached) " >&6 |
| 2046 | fi |
| 2047 | eval ac_res=\$$3 |
| 2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2049 | $as_echo "$ac_res" >&6; } |
| 2050 | else |
| 2051 | # Is the header compilable? |
| 2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2053 | $as_echo_n "checking $2 usability... " >&6; } |
| 2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2055 | /* end confdefs.h. */ |
| 2056 | $4 |
| 2057 | #include <$2> |
| 2058 | _ACEOF |
| 2059 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2060 | ac_header_compiler=yes |
| 2061 | else |
| 2062 | ac_header_compiler=no |
| 2063 | fi |
| 2064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2066 | $as_echo "$ac_header_compiler" >&6; } |
| 2067 | |
| 2068 | # Is the header present? |
| 2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2070 | $as_echo_n "checking $2 presence... " >&6; } |
| 2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2072 | /* end confdefs.h. */ |
| 2073 | #include <$2> |
| 2074 | _ACEOF |
| 2075 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2076 | ac_header_preproc=yes |
| 2077 | else |
| 2078 | ac_header_preproc=no |
| 2079 | fi |
| 2080 | rm -f conftest.err conftest.$ac_ext |
| 2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2082 | $as_echo "$ac_header_preproc" >&6; } |
| 2083 | |
| 2084 | # So? What about this header? |
| 2085 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 2086 | yes:no: ) |
| 2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2088 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2090 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2091 | ;; |
| 2092 | no:yes:* ) |
| 2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2094 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2096 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2098 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2100 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2102 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2103 | ;; |
| 2104 | esac |
| 2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2106 | $as_echo_n "checking for $2... " >&6; } |
| 2107 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2108 | $as_echo_n "(cached) " >&6 |
| 2109 | else |
| 2110 | eval "$3=\$ac_header_compiler" |
| 2111 | fi |
| 2112 | eval ac_res=\$$3 |
| 2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2114 | $as_echo "$ac_res" >&6; } |
| 2115 | fi |
| 2116 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2117 | |
| 2118 | } # ac_fn_cxx_check_header_mongrel |
| 2119 | |
| 2120 | # ac_fn_cxx_try_link LINENO |
| 2121 | # ------------------------- |
| 2122 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2123 | ac_fn_cxx_try_link () |
| 2124 | { |
| 2125 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2127 | if { { ac_try="$ac_link" |
| 2128 | case "(($ac_try" in |
| 2129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2130 | *) ac_try_echo=$ac_try;; |
| 2131 | esac |
| 2132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2133 | $as_echo "$ac_try_echo"; } >&5 |
| 2134 | (eval "$ac_link") 2>conftest.err |
| 2135 | ac_status=$? |
| 2136 | if test -s conftest.err; then |
| 2137 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2138 | cat conftest.er1 >&5 |
| 2139 | mv -f conftest.er1 conftest.err |
| 2140 | fi |
| 2141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2142 | test $ac_status = 0; } && { |
| 2143 | test -z "$ac_cxx_werror_flag" || |
| 2144 | test ! -s conftest.err |
| 2145 | } && test -s conftest$ac_exeext && { |
| 2146 | test "$cross_compiling" = yes || |
| 2147 | $as_test_x conftest$ac_exeext |
| 2148 | }; then : |
| 2149 | ac_retval=0 |
| 2150 | else |
| 2151 | $as_echo "$as_me: failed program was:" >&5 |
| 2152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2153 | |
| 2154 | ac_retval=1 |
| 2155 | fi |
| 2156 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2157 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2158 | # interfere with the next link command; also delete a directory that is |
| 2159 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2160 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2161 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2162 | return $ac_retval |
| 2163 | |
| 2164 | } # ac_fn_cxx_try_link |
| 2165 | |
| 2166 | # ac_fn_cxx_check_func LINENO FUNC VAR |
| 2167 | # ------------------------------------ |
| 2168 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2169 | ac_fn_cxx_check_func () |
| 2170 | { |
| 2171 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2173 | $as_echo_n "checking for $2... " >&6; } |
| 2174 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2175 | $as_echo_n "(cached) " >&6 |
| 2176 | else |
| 2177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2178 | /* end confdefs.h. */ |
| 2179 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2180 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2181 | #define $2 innocuous_$2 |
| 2182 | |
| 2183 | /* System header to define __stub macros and hopefully few prototypes, |
| 2184 | which can conflict with char $2 (); below. |
| 2185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2186 | <limits.h> exists even on freestanding compilers. */ |
| 2187 | |
| 2188 | #ifdef __STDC__ |
| 2189 | # include <limits.h> |
| 2190 | #else |
| 2191 | # include <assert.h> |
| 2192 | #endif |
| 2193 | |
| 2194 | #undef $2 |
| 2195 | |
| 2196 | /* Override any GCC internal prototype to avoid an error. |
| 2197 | Use char because int might match the return type of a GCC |
| 2198 | builtin and then its argument prototype would still apply. */ |
| 2199 | #ifdef __cplusplus |
| 2200 | extern "C" |
| 2201 | #endif |
| 2202 | char $2 (); |
| 2203 | /* The GNU C library defines this for functions which it implements |
| 2204 | to always fail with ENOSYS. Some functions are actually named |
| 2205 | something starting with __ and the normal name is an alias. */ |
| 2206 | #if defined __stub_$2 || defined __stub___$2 |
| 2207 | choke me |
| 2208 | #endif |
| 2209 | |
| 2210 | int |
| 2211 | main () |
| 2212 | { |
| 2213 | return $2 (); |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 2219 | eval "$3=yes" |
| 2220 | else |
| 2221 | eval "$3=no" |
| 2222 | fi |
| 2223 | rm -f core conftest.err conftest.$ac_objext \ |
| 2224 | conftest$ac_exeext conftest.$ac_ext |
| 2225 | fi |
| 2226 | eval ac_res=\$$3 |
| 2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2228 | $as_echo "$ac_res" >&6; } |
| 2229 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2230 | |
| 2231 | } # ac_fn_cxx_check_func |
| 2232 | |
| 2233 | # ac_fn_cxx_check_decl LINENO SYMBOL VAR |
| 2234 | # -------------------------------------- |
| 2235 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2236 | ac_fn_cxx_check_decl () |
| 2237 | { |
| 2238 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2239 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2240 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2242 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2243 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2244 | $as_echo_n "(cached) " >&6 |
| 2245 | else |
| 2246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2247 | /* end confdefs.h. */ |
| 2248 | $4 |
| 2249 | int |
| 2250 | main () |
| 2251 | { |
| 2252 | #ifndef $as_decl_name |
| 2253 | #ifdef __cplusplus |
| 2254 | (void) $as_decl_use; |
| 2255 | #else |
| 2256 | (void) $as_decl_name; |
| 2257 | #endif |
| 2258 | #endif |
| 2259 | |
| 2260 | ; |
| 2261 | return 0; |
| 2262 | } |
| 2263 | _ACEOF |
| 2264 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2265 | eval "$3=yes" |
| 2266 | else |
| 2267 | eval "$3=no" |
| 2268 | fi |
| 2269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2270 | fi |
| 2271 | eval ac_res=\$$3 |
| 2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2273 | $as_echo "$ac_res" >&6; } |
| 2274 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2275 | |
| 2276 | } # ac_fn_cxx_check_decl |
| 2277 | cat >config.log <<_ACEOF |
| 2278 | This file contains any messages produced by compilers while |
| 2279 | running configure, to aid debugging if configure makes a mistake. |
| 2280 | |
| 2281 | It was created by gold $as_me 0.1, which was |
| 2282 | generated by GNU Autoconf 2.64. Invocation command line was |
| 2283 | |
| 2284 | $ $0 $@ |
| 2285 | |
| 2286 | _ACEOF |
| 2287 | exec 5>>config.log |
| 2288 | { |
| 2289 | cat <<_ASUNAME |
| 2290 | ## --------- ## |
| 2291 | ## Platform. ## |
| 2292 | ## --------- ## |
| 2293 | |
| 2294 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2295 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2296 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2297 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2298 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2299 | |
| 2300 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2301 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2302 | |
| 2303 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2304 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2305 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2306 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2307 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2308 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2309 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2310 | |
| 2311 | _ASUNAME |
| 2312 | |
| 2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2314 | for as_dir in $PATH |
| 2315 | do |
| 2316 | IFS=$as_save_IFS |
| 2317 | test -z "$as_dir" && as_dir=. |
| 2318 | $as_echo "PATH: $as_dir" |
| 2319 | done |
| 2320 | IFS=$as_save_IFS |
| 2321 | |
| 2322 | } >&5 |
| 2323 | |
| 2324 | cat >&5 <<_ACEOF |
| 2325 | |
| 2326 | |
| 2327 | ## ----------- ## |
| 2328 | ## Core tests. ## |
| 2329 | ## ----------- ## |
| 2330 | |
| 2331 | _ACEOF |
| 2332 | |
| 2333 | |
| 2334 | # Keep a trace of the command line. |
| 2335 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2336 | # Strip out --silent because we don't want to record it for future runs. |
| 2337 | # Also quote any args containing shell meta-characters. |
| 2338 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2339 | ac_configure_args= |
| 2340 | ac_configure_args0= |
| 2341 | ac_configure_args1= |
| 2342 | ac_must_keep_next=false |
| 2343 | for ac_pass in 1 2 |
| 2344 | do |
| 2345 | for ac_arg |
| 2346 | do |
| 2347 | case $ac_arg in |
| 2348 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2349 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2350 | | -silent | --silent | --silen | --sile | --sil) |
| 2351 | continue ;; |
| 2352 | *\'*) |
| 2353 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2354 | esac |
| 2355 | case $ac_pass in |
| 2356 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2357 | 2) |
| 2358 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2359 | if test $ac_must_keep_next = true; then |
| 2360 | ac_must_keep_next=false # Got value, back to normal. |
| 2361 | else |
| 2362 | case $ac_arg in |
| 2363 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2364 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2365 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2366 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2367 | case "$ac_configure_args0 " in |
| 2368 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2369 | esac |
| 2370 | ;; |
| 2371 | -* ) ac_must_keep_next=true ;; |
| 2372 | esac |
| 2373 | fi |
| 2374 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2375 | ;; |
| 2376 | esac |
| 2377 | done |
| 2378 | done |
| 2379 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2380 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2381 | |
| 2382 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2383 | # config.log. We remove comments because anyway the quotes in there |
| 2384 | # would cause problems or look ugly. |
| 2385 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2386 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2387 | trap 'exit_status=$? |
| 2388 | # Save into config.log some information that might help in debugging. |
| 2389 | { |
| 2390 | echo |
| 2391 | |
| 2392 | cat <<\_ASBOX |
| 2393 | ## ---------------- ## |
| 2394 | ## Cache variables. ## |
| 2395 | ## ---------------- ## |
| 2396 | _ASBOX |
| 2397 | echo |
| 2398 | # The following way of writing the cache mishandles newlines in values, |
| 2399 | ( |
| 2400 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2401 | eval ac_val=\$$ac_var |
| 2402 | case $ac_val in #( |
| 2403 | *${as_nl}*) |
| 2404 | case $ac_var in #( |
| 2405 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2406 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2407 | esac |
| 2408 | case $ac_var in #( |
| 2409 | _ | IFS | as_nl) ;; #( |
| 2410 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2411 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2412 | esac ;; |
| 2413 | esac |
| 2414 | done |
| 2415 | (set) 2>&1 | |
| 2416 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2417 | *${as_nl}ac_space=\ *) |
| 2418 | sed -n \ |
| 2419 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2420 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2421 | ;; #( |
| 2422 | *) |
| 2423 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2424 | ;; |
| 2425 | esac | |
| 2426 | sort |
| 2427 | ) |
| 2428 | echo |
| 2429 | |
| 2430 | cat <<\_ASBOX |
| 2431 | ## ----------------- ## |
| 2432 | ## Output variables. ## |
| 2433 | ## ----------------- ## |
| 2434 | _ASBOX |
| 2435 | echo |
| 2436 | for ac_var in $ac_subst_vars |
| 2437 | do |
| 2438 | eval ac_val=\$$ac_var |
| 2439 | case $ac_val in |
| 2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2441 | esac |
| 2442 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2443 | done | sort |
| 2444 | echo |
| 2445 | |
| 2446 | if test -n "$ac_subst_files"; then |
| 2447 | cat <<\_ASBOX |
| 2448 | ## ------------------- ## |
| 2449 | ## File substitutions. ## |
| 2450 | ## ------------------- ## |
| 2451 | _ASBOX |
| 2452 | echo |
| 2453 | for ac_var in $ac_subst_files |
| 2454 | do |
| 2455 | eval ac_val=\$$ac_var |
| 2456 | case $ac_val in |
| 2457 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2458 | esac |
| 2459 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2460 | done | sort |
| 2461 | echo |
| 2462 | fi |
| 2463 | |
| 2464 | if test -s confdefs.h; then |
| 2465 | cat <<\_ASBOX |
| 2466 | ## ----------- ## |
| 2467 | ## confdefs.h. ## |
| 2468 | ## ----------- ## |
| 2469 | _ASBOX |
| 2470 | echo |
| 2471 | cat confdefs.h |
| 2472 | echo |
| 2473 | fi |
| 2474 | test "$ac_signal" != 0 && |
| 2475 | $as_echo "$as_me: caught signal $ac_signal" |
| 2476 | $as_echo "$as_me: exit $exit_status" |
| 2477 | } >&5 |
| 2478 | rm -f core *.core core.conftest.* && |
| 2479 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2480 | exit $exit_status |
| 2481 | ' 0 |
| 2482 | for ac_signal in 1 2 13 15; do |
| 2483 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2484 | done |
| 2485 | ac_signal=0 |
| 2486 | |
| 2487 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2488 | rm -f -r conftest* confdefs.h |
| 2489 | |
| 2490 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2491 | |
| 2492 | # Predefined preprocessor variables. |
| 2493 | |
| 2494 | cat >>confdefs.h <<_ACEOF |
| 2495 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2496 | _ACEOF |
| 2497 | |
| 2498 | cat >>confdefs.h <<_ACEOF |
| 2499 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2500 | _ACEOF |
| 2501 | |
| 2502 | cat >>confdefs.h <<_ACEOF |
| 2503 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2504 | _ACEOF |
| 2505 | |
| 2506 | cat >>confdefs.h <<_ACEOF |
| 2507 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2508 | _ACEOF |
| 2509 | |
| 2510 | cat >>confdefs.h <<_ACEOF |
| 2511 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2512 | _ACEOF |
| 2513 | |
| 2514 | cat >>confdefs.h <<_ACEOF |
| 2515 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2516 | _ACEOF |
| 2517 | |
| 2518 | |
| 2519 | # Let the site file select an alternate cache file if it wants to. |
| 2520 | # Prefer an explicitly selected file to automatically selected ones. |
| 2521 | ac_site_file1=NONE |
| 2522 | ac_site_file2=NONE |
| 2523 | if test -n "$CONFIG_SITE"; then |
| 2524 | ac_site_file1=$CONFIG_SITE |
| 2525 | elif test "x$prefix" != xNONE; then |
| 2526 | ac_site_file1=$prefix/share/config.site |
| 2527 | ac_site_file2=$prefix/etc/config.site |
| 2528 | else |
| 2529 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2530 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2531 | fi |
| 2532 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2533 | do |
| 2534 | test "x$ac_site_file" = xNONE && continue |
| 2535 | if test -r "$ac_site_file"; then |
| 2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2537 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2538 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2539 | . "$ac_site_file" |
| 2540 | fi |
| 2541 | done |
| 2542 | |
| 2543 | if test -r "$cache_file"; then |
| 2544 | # Some versions of bash will fail to source /dev/null (special |
| 2545 | # files actually), so we avoid doing that. |
| 2546 | if test -f "$cache_file"; then |
| 2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2548 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2549 | case $cache_file in |
| 2550 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2551 | *) . "./$cache_file";; |
| 2552 | esac |
| 2553 | fi |
| 2554 | else |
| 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2556 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2557 | >$cache_file |
| 2558 | fi |
| 2559 | |
| 2560 | # Check that the precious variables saved in the cache have kept the same |
| 2561 | # value. |
| 2562 | ac_cache_corrupted=false |
| 2563 | for ac_var in $ac_precious_vars; do |
| 2564 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2565 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2566 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2567 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2568 | case $ac_old_set,$ac_new_set in |
| 2569 | set,) |
| 2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2571 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2572 | ac_cache_corrupted=: ;; |
| 2573 | ,set) |
| 2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2575 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2576 | ac_cache_corrupted=: ;; |
| 2577 | ,);; |
| 2578 | *) |
| 2579 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2580 | # differences in whitespace do not lead to failure. |
| 2581 | ac_old_val_w=`echo x $ac_old_val` |
| 2582 | ac_new_val_w=`echo x $ac_new_val` |
| 2583 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2585 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2586 | ac_cache_corrupted=: |
| 2587 | else |
| 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2589 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2590 | eval $ac_var=\$ac_old_val |
| 2591 | fi |
| 2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2593 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2595 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2596 | fi;; |
| 2597 | esac |
| 2598 | # Pass precious variables to config.status. |
| 2599 | if test "$ac_new_set" = set; then |
| 2600 | case $ac_new_val in |
| 2601 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2602 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2603 | esac |
| 2604 | case " $ac_configure_args " in |
| 2605 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2606 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2607 | esac |
| 2608 | fi |
| 2609 | done |
| 2610 | if $ac_cache_corrupted; then |
| 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2614 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2615 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2616 | fi |
| 2617 | ## -------------------- ## |
| 2618 | ## Main body of script. ## |
| 2619 | ## -------------------- ## |
| 2620 | |
| 2621 | ac_ext=c |
| 2622 | ac_cpp='$CPP $CPPFLAGS' |
| 2623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2626 | |
| 2627 | |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | |
| 2632 | |
| 2633 | ac_aux_dir= |
| 2634 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2635 | for ac_t in install-sh install.sh shtool; do |
| 2636 | if test -f "$ac_dir/$ac_t"; then |
| 2637 | ac_aux_dir=$ac_dir |
| 2638 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2639 | break 2 |
| 2640 | fi |
| 2641 | done |
| 2642 | done |
| 2643 | if test -z "$ac_aux_dir"; then |
| 2644 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2645 | fi |
| 2646 | |
| 2647 | # These three variables are undocumented and unsupported, |
| 2648 | # and are intended to be withdrawn in a future Autoconf release. |
| 2649 | # They can cause serious problems if a builder's source tree is in a directory |
| 2650 | # whose full name contains unusual characters. |
| 2651 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2652 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2653 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2654 | |
| 2655 | |
| 2656 | # Make sure we can run config.sub. |
| 2657 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2658 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2659 | |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2661 | $as_echo_n "checking build system type... " >&6; } |
| 2662 | if test "${ac_cv_build+set}" = set; then : |
| 2663 | $as_echo_n "(cached) " >&6 |
| 2664 | else |
| 2665 | ac_build_alias=$build_alias |
| 2666 | test "x$ac_build_alias" = x && |
| 2667 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2668 | test "x$ac_build_alias" = x && |
| 2669 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2670 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2671 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2672 | |
| 2673 | fi |
| 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2675 | $as_echo "$ac_cv_build" >&6; } |
| 2676 | case $ac_cv_build in |
| 2677 | *-*-*) ;; |
| 2678 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 2679 | esac |
| 2680 | build=$ac_cv_build |
| 2681 | ac_save_IFS=$IFS; IFS='-' |
| 2682 | set x $ac_cv_build |
| 2683 | shift |
| 2684 | build_cpu=$1 |
| 2685 | build_vendor=$2 |
| 2686 | shift; shift |
| 2687 | # Remember, the first character of IFS is used to create $*, |
| 2688 | # except with old shells: |
| 2689 | build_os=$* |
| 2690 | IFS=$ac_save_IFS |
| 2691 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2692 | |
| 2693 | |
| 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2695 | $as_echo_n "checking host system type... " >&6; } |
| 2696 | if test "${ac_cv_host+set}" = set; then : |
| 2697 | $as_echo_n "(cached) " >&6 |
| 2698 | else |
| 2699 | if test "x$host_alias" = x; then |
| 2700 | ac_cv_host=$ac_cv_build |
| 2701 | else |
| 2702 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2703 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2704 | fi |
| 2705 | |
| 2706 | fi |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2708 | $as_echo "$ac_cv_host" >&6; } |
| 2709 | case $ac_cv_host in |
| 2710 | *-*-*) ;; |
| 2711 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 2712 | esac |
| 2713 | host=$ac_cv_host |
| 2714 | ac_save_IFS=$IFS; IFS='-' |
| 2715 | set x $ac_cv_host |
| 2716 | shift |
| 2717 | host_cpu=$1 |
| 2718 | host_vendor=$2 |
| 2719 | shift; shift |
| 2720 | # Remember, the first character of IFS is used to create $*, |
| 2721 | # except with old shells: |
| 2722 | host_os=$* |
| 2723 | IFS=$ac_save_IFS |
| 2724 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2725 | |
| 2726 | |
| 2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2728 | $as_echo_n "checking target system type... " >&6; } |
| 2729 | if test "${ac_cv_target+set}" = set; then : |
| 2730 | $as_echo_n "(cached) " >&6 |
| 2731 | else |
| 2732 | if test "x$target_alias" = x; then |
| 2733 | ac_cv_target=$ac_cv_host |
| 2734 | else |
| 2735 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2736 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 2737 | fi |
| 2738 | |
| 2739 | fi |
| 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2741 | $as_echo "$ac_cv_target" >&6; } |
| 2742 | case $ac_cv_target in |
| 2743 | *-*-*) ;; |
| 2744 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
| 2745 | esac |
| 2746 | target=$ac_cv_target |
| 2747 | ac_save_IFS=$IFS; IFS='-' |
| 2748 | set x $ac_cv_target |
| 2749 | shift |
| 2750 | target_cpu=$1 |
| 2751 | target_vendor=$2 |
| 2752 | shift; shift |
| 2753 | # Remember, the first character of IFS is used to create $*, |
| 2754 | # except with old shells: |
| 2755 | target_os=$* |
| 2756 | IFS=$ac_save_IFS |
| 2757 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 2758 | |
| 2759 | |
| 2760 | # The aliases save the names the user supplied, while $host etc. |
| 2761 | # will get canonicalized. |
| 2762 | test -n "$target_alias" && |
| 2763 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2764 | NONENONEs,x,x, && |
| 2765 | program_prefix=${target_alias}- |
| 2766 | |
| 2767 | am__api_version='1.11' |
| 2768 | |
| 2769 | # Find a good install program. We prefer a C program (faster), |
| 2770 | # so one script is as good as another. But avoid the broken or |
| 2771 | # incompatible versions: |
| 2772 | # SysV /etc/install, /usr/sbin/install |
| 2773 | # SunOS /usr/etc/install |
| 2774 | # IRIX /sbin/install |
| 2775 | # AIX /bin/install |
| 2776 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2777 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2778 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2779 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2780 | # OS/2's system install, which has a completely different semantic |
| 2781 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2782 | # Reject install programs that cannot install multiple files. |
| 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2784 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2785 | if test -z "$INSTALL"; then |
| 2786 | if test "${ac_cv_path_install+set}" = set; then : |
| 2787 | $as_echo_n "(cached) " >&6 |
| 2788 | else |
| 2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2790 | for as_dir in $PATH |
| 2791 | do |
| 2792 | IFS=$as_save_IFS |
| 2793 | test -z "$as_dir" && as_dir=. |
| 2794 | # Account for people who put trailing slashes in PATH elements. |
| 2795 | case $as_dir/ in #(( |
| 2796 | ./ | .// | /[cC]/* | \ |
| 2797 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2798 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2799 | /usr/ucb/* ) ;; |
| 2800 | *) |
| 2801 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2802 | # Don't use installbsd from OSF since it installs stuff as root |
| 2803 | # by default. |
| 2804 | for ac_prog in ginstall scoinst install; do |
| 2805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2806 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 2807 | if test $ac_prog = install && |
| 2808 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2809 | # AIX install. It has an incompatible calling convention. |
| 2810 | : |
| 2811 | elif test $ac_prog = install && |
| 2812 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2813 | # program-specific install script used by HP pwplus--don't use. |
| 2814 | : |
| 2815 | else |
| 2816 | rm -rf conftest.one conftest.two conftest.dir |
| 2817 | echo one > conftest.one |
| 2818 | echo two > conftest.two |
| 2819 | mkdir conftest.dir |
| 2820 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2821 | test -s conftest.one && test -s conftest.two && |
| 2822 | test -s conftest.dir/conftest.one && |
| 2823 | test -s conftest.dir/conftest.two |
| 2824 | then |
| 2825 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2826 | break 3 |
| 2827 | fi |
| 2828 | fi |
| 2829 | fi |
| 2830 | done |
| 2831 | done |
| 2832 | ;; |
| 2833 | esac |
| 2834 | |
| 2835 | done |
| 2836 | IFS=$as_save_IFS |
| 2837 | |
| 2838 | rm -rf conftest.one conftest.two conftest.dir |
| 2839 | |
| 2840 | fi |
| 2841 | if test "${ac_cv_path_install+set}" = set; then |
| 2842 | INSTALL=$ac_cv_path_install |
| 2843 | else |
| 2844 | # As a last resort, use the slow shell script. Don't cache a |
| 2845 | # value for INSTALL within a source directory, because that will |
| 2846 | # break other packages using the cache if that directory is |
| 2847 | # removed, or if the value is a relative name. |
| 2848 | INSTALL=$ac_install_sh |
| 2849 | fi |
| 2850 | fi |
| 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2852 | $as_echo "$INSTALL" >&6; } |
| 2853 | |
| 2854 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2855 | # It thinks the first close brace ends the variable substitution. |
| 2856 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2857 | |
| 2858 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2859 | |
| 2860 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2861 | |
| 2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2863 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2864 | # Just in case |
| 2865 | sleep 1 |
| 2866 | echo timestamp > conftest.file |
| 2867 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2868 | # name. Accept space and tab only in the latter. |
| 2869 | am_lf=' |
| 2870 | ' |
| 2871 | case `pwd` in |
| 2872 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2873 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 2874 | esac |
| 2875 | case $srcdir in |
| 2876 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2877 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 2878 | esac |
| 2879 | |
| 2880 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2881 | # arguments. Must try -L first in case configure is actually a |
| 2882 | # symlink; some systems play weird games with the mod time of symlinks |
| 2883 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2884 | # directory). |
| 2885 | if ( |
| 2886 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2887 | if test "$*" = "X"; then |
| 2888 | # -L didn't work. |
| 2889 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2890 | fi |
| 2891 | rm -f conftest.file |
| 2892 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2893 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2894 | |
| 2895 | # If neither matched, then we have a broken ls. This can happen |
| 2896 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2897 | # broken ls alias from the environment. This has actually |
| 2898 | # happened. Such a system could not be considered "sane". |
| 2899 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 2900 | alias in your environment" "$LINENO" 5 |
| 2901 | fi |
| 2902 | |
| 2903 | test "$2" = conftest.file |
| 2904 | ) |
| 2905 | then |
| 2906 | # Ok. |
| 2907 | : |
| 2908 | else |
| 2909 | as_fn_error "newly created file is older than distributed files! |
| 2910 | Check your system clock" "$LINENO" 5 |
| 2911 | fi |
| 2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2913 | $as_echo "yes" >&6; } |
| 2914 | test "$program_prefix" != NONE && |
| 2915 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2916 | # Use a double $ so make ignores it. |
| 2917 | test "$program_suffix" != NONE && |
| 2918 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2919 | # Double any \ or $. |
| 2920 | # By default was `s,x,x', remove it if useless. |
| 2921 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2922 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2923 | |
| 2924 | # expand $ac_aux_dir to an absolute path |
| 2925 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2926 | |
| 2927 | if test x"${MISSING+set}" != xset; then |
| 2928 | case $am_aux_dir in |
| 2929 | *\ * | *\ *) |
| 2930 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2931 | *) |
| 2932 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2933 | esac |
| 2934 | fi |
| 2935 | # Use eval to expand $SHELL |
| 2936 | if eval "$MISSING --run true"; then |
| 2937 | am_missing_run="$MISSING --run " |
| 2938 | else |
| 2939 | am_missing_run= |
| 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2941 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2942 | fi |
| 2943 | |
| 2944 | if test x"${install_sh}" != xset; then |
| 2945 | case $am_aux_dir in |
| 2946 | *\ * | *\ *) |
| 2947 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2948 | *) |
| 2949 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2950 | esac |
| 2951 | fi |
| 2952 | |
| 2953 | # Installed binaries are usually stripped using `strip' when the user |
| 2954 | # run `make install-strip'. However `strip' might not be the right |
| 2955 | # tool to use in cross-compilation environments, therefore Automake |
| 2956 | # will honor the `STRIP' environment variable to overrule this program. |
| 2957 | if test "$cross_compiling" != no; then |
| 2958 | if test -n "$ac_tool_prefix"; then |
| 2959 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2960 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2963 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2964 | $as_echo_n "(cached) " >&6 |
| 2965 | else |
| 2966 | if test -n "$STRIP"; then |
| 2967 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2968 | else |
| 2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2970 | for as_dir in $PATH |
| 2971 | do |
| 2972 | IFS=$as_save_IFS |
| 2973 | test -z "$as_dir" && as_dir=. |
| 2974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2976 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2978 | break 2 |
| 2979 | fi |
| 2980 | done |
| 2981 | done |
| 2982 | IFS=$as_save_IFS |
| 2983 | |
| 2984 | fi |
| 2985 | fi |
| 2986 | STRIP=$ac_cv_prog_STRIP |
| 2987 | if test -n "$STRIP"; then |
| 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2989 | $as_echo "$STRIP" >&6; } |
| 2990 | else |
| 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2992 | $as_echo "no" >&6; } |
| 2993 | fi |
| 2994 | |
| 2995 | |
| 2996 | fi |
| 2997 | if test -z "$ac_cv_prog_STRIP"; then |
| 2998 | ac_ct_STRIP=$STRIP |
| 2999 | # Extract the first word of "strip", so it can be a program name with args. |
| 3000 | set dummy strip; ac_word=$2 |
| 3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3002 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3003 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 3004 | $as_echo_n "(cached) " >&6 |
| 3005 | else |
| 3006 | if test -n "$ac_ct_STRIP"; then |
| 3007 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3008 | else |
| 3009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3010 | for as_dir in $PATH |
| 3011 | do |
| 3012 | IFS=$as_save_IFS |
| 3013 | test -z "$as_dir" && as_dir=. |
| 3014 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3016 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3018 | break 2 |
| 3019 | fi |
| 3020 | done |
| 3021 | done |
| 3022 | IFS=$as_save_IFS |
| 3023 | |
| 3024 | fi |
| 3025 | fi |
| 3026 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3027 | if test -n "$ac_ct_STRIP"; then |
| 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3029 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3030 | else |
| 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3032 | $as_echo "no" >&6; } |
| 3033 | fi |
| 3034 | |
| 3035 | if test "x$ac_ct_STRIP" = x; then |
| 3036 | STRIP=":" |
| 3037 | else |
| 3038 | case $cross_compiling:$ac_tool_warned in |
| 3039 | yes:) |
| 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3041 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3042 | ac_tool_warned=yes ;; |
| 3043 | esac |
| 3044 | STRIP=$ac_ct_STRIP |
| 3045 | fi |
| 3046 | else |
| 3047 | STRIP="$ac_cv_prog_STRIP" |
| 3048 | fi |
| 3049 | |
| 3050 | fi |
| 3051 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3052 | |
| 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3054 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3055 | if test -z "$MKDIR_P"; then |
| 3056 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 3057 | $as_echo_n "(cached) " >&6 |
| 3058 | else |
| 3059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3060 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3061 | do |
| 3062 | IFS=$as_save_IFS |
| 3063 | test -z "$as_dir" && as_dir=. |
| 3064 | for ac_prog in mkdir gmkdir; do |
| 3065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3066 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3067 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3068 | 'mkdir (GNU coreutils) '* | \ |
| 3069 | 'mkdir (coreutils) '* | \ |
| 3070 | 'mkdir (fileutils) '4.1*) |
| 3071 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3072 | break 3;; |
| 3073 | esac |
| 3074 | done |
| 3075 | done |
| 3076 | done |
| 3077 | IFS=$as_save_IFS |
| 3078 | |
| 3079 | fi |
| 3080 | |
| 3081 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3082 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3083 | else |
| 3084 | # As a last resort, use the slow shell script. Don't cache a |
| 3085 | # value for MKDIR_P within a source directory, because that will |
| 3086 | # break other packages using the cache if that directory is |
| 3087 | # removed, or if the value is a relative name. |
| 3088 | test -d ./--version && rmdir ./--version |
| 3089 | MKDIR_P="$ac_install_sh -d" |
| 3090 | fi |
| 3091 | fi |
| 3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3093 | $as_echo "$MKDIR_P" >&6; } |
| 3094 | |
| 3095 | mkdir_p="$MKDIR_P" |
| 3096 | case $mkdir_p in |
| 3097 | [\\/$]* | ?:[\\/]*) ;; |
| 3098 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3099 | esac |
| 3100 | |
| 3101 | for ac_prog in gawk mawk nawk awk |
| 3102 | do |
| 3103 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3104 | set dummy $ac_prog; ac_word=$2 |
| 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3106 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3107 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 3108 | $as_echo_n "(cached) " >&6 |
| 3109 | else |
| 3110 | if test -n "$AWK"; then |
| 3111 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3112 | else |
| 3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3114 | for as_dir in $PATH |
| 3115 | do |
| 3116 | IFS=$as_save_IFS |
| 3117 | test -z "$as_dir" && as_dir=. |
| 3118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3120 | ac_cv_prog_AWK="$ac_prog" |
| 3121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3122 | break 2 |
| 3123 | fi |
| 3124 | done |
| 3125 | done |
| 3126 | IFS=$as_save_IFS |
| 3127 | |
| 3128 | fi |
| 3129 | fi |
| 3130 | AWK=$ac_cv_prog_AWK |
| 3131 | if test -n "$AWK"; then |
| 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3133 | $as_echo "$AWK" >&6; } |
| 3134 | else |
| 3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3136 | $as_echo "no" >&6; } |
| 3137 | fi |
| 3138 | |
| 3139 | |
| 3140 | test -n "$AWK" && break |
| 3141 | done |
| 3142 | |
| 3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3144 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3145 | set x ${MAKE-make} |
| 3146 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3147 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 3148 | $as_echo_n "(cached) " >&6 |
| 3149 | else |
| 3150 | cat >conftest.make <<\_ACEOF |
| 3151 | SHELL = /bin/sh |
| 3152 | all: |
| 3153 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3154 | _ACEOF |
| 3155 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3156 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3157 | *@@@%%%=?*=@@@%%%*) |
| 3158 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3159 | *) |
| 3160 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3161 | esac |
| 3162 | rm -f conftest.make |
| 3163 | fi |
| 3164 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3166 | $as_echo "yes" >&6; } |
| 3167 | SET_MAKE= |
| 3168 | else |
| 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3170 | $as_echo "no" >&6; } |
| 3171 | SET_MAKE="MAKE=${MAKE-make}" |
| 3172 | fi |
| 3173 | |
| 3174 | rm -rf .tst 2>/dev/null |
| 3175 | mkdir .tst 2>/dev/null |
| 3176 | if test -d .tst; then |
| 3177 | am__leading_dot=. |
| 3178 | else |
| 3179 | am__leading_dot=_ |
| 3180 | fi |
| 3181 | rmdir .tst 2>/dev/null |
| 3182 | |
| 3183 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3184 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3185 | # is not polluted with repeated "-I." |
| 3186 | am__isrc=' -I$(srcdir)' |
| 3187 | # test to see if srcdir already configured |
| 3188 | if test -f $srcdir/config.status; then |
| 3189 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3190 | fi |
| 3191 | fi |
| 3192 | |
| 3193 | # test whether we have cygpath |
| 3194 | if test -z "$CYGPATH_W"; then |
| 3195 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3196 | CYGPATH_W='cygpath -w' |
| 3197 | else |
| 3198 | CYGPATH_W=echo |
| 3199 | fi |
| 3200 | fi |
| 3201 | |
| 3202 | |
| 3203 | # Define the identity of the package. |
| 3204 | PACKAGE='gold' |
| 3205 | VERSION='0.1' |
| 3206 | |
| 3207 | |
| 3208 | cat >>confdefs.h <<_ACEOF |
| 3209 | #define PACKAGE "$PACKAGE" |
| 3210 | _ACEOF |
| 3211 | |
| 3212 | |
| 3213 | cat >>confdefs.h <<_ACEOF |
| 3214 | #define VERSION "$VERSION" |
| 3215 | _ACEOF |
| 3216 | |
| 3217 | # Some tools Automake needs. |
| 3218 | |
| 3219 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3220 | |
| 3221 | |
| 3222 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3223 | |
| 3224 | |
| 3225 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3226 | |
| 3227 | |
| 3228 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3229 | |
| 3230 | |
| 3231 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3232 | |
| 3233 | # We need awk for the "check" target. The system "awk" is bad on |
| 3234 | # some platforms. |
| 3235 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3236 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3237 | AMTAR='$${TAR-tar}' |
| 3238 | |
| 3239 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3240 | |
| 3241 | |
| 3242 | |
| 3243 | |
| 3244 | |
| 3245 | |
| 3246 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 3247 | |
| 3248 | |
| 3249 | # PR 14072 |
| 3250 | |
| 3251 | |
| 3252 | |
| 3253 | # Check whether --with-sysroot was given. |
| 3254 | if test "${with_sysroot+set}" = set; then : |
| 3255 | withval=$with_sysroot; sysroot=$withval |
| 3256 | else |
| 3257 | sysroot=no |
| 3258 | fi |
| 3259 | |
| 3260 | |
| 3261 | if test "$sysroot" = "yes"; then |
| 3262 | sysroot='${exec_prefix}/${target_alias}/sys-root' |
| 3263 | elif test "$sysroot" = "no"; then |
| 3264 | sysroot= |
| 3265 | fi |
| 3266 | |
| 3267 | sysroot_relocatable=0 |
| 3268 | if test -n "$sysroot"; then |
| 3269 | case "$sysroot" in |
| 3270 | "${prefix}" | "${prefix}/"* | \ |
| 3271 | "${exec_prefix}" | "${exec_prefix}/"* | \ |
| 3272 | '${prefix}' | '${prefix}/'*| \ |
| 3273 | '${exec_prefix}' | '${exec_prefix}/'*) |
| 3274 | sysroot_relocatable=1 |
| 3275 | ;; |
| 3276 | esac |
| 3277 | fi |
| 3278 | |
| 3279 | |
| 3280 | cat >>confdefs.h <<_ACEOF |
| 3281 | #define TARGET_SYSTEM_ROOT "$sysroot" |
| 3282 | _ACEOF |
| 3283 | |
| 3284 | |
| 3285 | cat >>confdefs.h <<_ACEOF |
| 3286 | #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable |
| 3287 | _ACEOF |
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | installed_linker=ld.gold |
| 3292 | # Check whether --enable-gold was given. |
| 3293 | if test "${enable_gold+set}" = set; then : |
| 3294 | enableval=$enable_gold; case "${enableval}" in |
| 3295 | default) |
| 3296 | install_as_default=yes |
| 3297 | ;; |
| 3298 | yes) |
| 3299 | if test x${enable_ld} = xno; then |
| 3300 | install_as_default=yes |
| 3301 | fi |
| 3302 | ;; |
| 3303 | esac |
| 3304 | else |
| 3305 | install_as_default=no |
| 3306 | fi |
| 3307 | |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | # Check whether --enable-threads was given. |
| 3312 | if test "${enable_threads+set}" = set; then : |
| 3313 | enableval=$enable_threads; case "${enableval}" in |
| 3314 | yes | "") threads=yes ;; |
| 3315 | no) threads=no ;; |
| 3316 | *) threads=yes ;; |
| 3317 | esac |
| 3318 | else |
| 3319 | threads=no |
| 3320 | fi |
| 3321 | |
| 3322 | if test "$threads" = "yes"; then |
| 3323 | |
| 3324 | $as_echo "#define ENABLE_THREADS 1" >>confdefs.h |
| 3325 | |
| 3326 | fi |
| 3327 | if test "$threads" = "yes"; then |
| 3328 | THREADS_TRUE= |
| 3329 | THREADS_FALSE='#' |
| 3330 | else |
| 3331 | THREADS_TRUE='#' |
| 3332 | THREADS_FALSE= |
| 3333 | fi |
| 3334 | |
| 3335 | |
| 3336 | # Check whether --enable-plugins was given. |
| 3337 | if test "${enable_plugins+set}" = set; then : |
| 3338 | enableval=$enable_plugins; case "${enableval}" in |
| 3339 | yes | "") plugins=yes ;; |
| 3340 | no) plugins=no ;; |
| 3341 | *) plugins=yes ;; |
| 3342 | esac |
| 3343 | else |
| 3344 | plugins=no |
| 3345 | fi |
| 3346 | |
| 3347 | if test "$plugins" = "yes"; then |
| 3348 | |
| 3349 | $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h |
| 3350 | |
| 3351 | fi |
| 3352 | if test "$plugins" = "yes"; then |
| 3353 | PLUGINS_TRUE= |
| 3354 | PLUGINS_FALSE='#' |
| 3355 | else |
| 3356 | PLUGINS_TRUE='#' |
| 3357 | PLUGINS_FALSE= |
| 3358 | fi |
| 3359 | |
| 3360 | |
| 3361 | # Decide if -z relro should be enabled in ELF linker by default. |
| 3362 | ac_default_ld_z_relro=unset |
| 3363 | # Provide a configure time option to override our default. |
| 3364 | # Check whether --enable-relro was given. |
| 3365 | if test "${enable_relro+set}" = set; then : |
| 3366 | enableval=$enable_relro; case "${enableval}" in |
| 3367 | yes) ac_default_ld_z_relro=1 ;; |
| 3368 | no) ac_default_ld_z_relro=0 ;; |
| 3369 | esac |
| 3370 | fi |
| 3371 | if test "${ac_default_ld_z_relro}" = unset; then |
| 3372 | ac_default_ld_z_relro=1 |
| 3373 | fi |
| 3374 | |
| 3375 | cat >>confdefs.h <<_ACEOF |
| 3376 | #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro |
| 3377 | _ACEOF |
| 3378 | |
| 3379 | |
| 3380 | # Check whether --enable-targets was given. |
| 3381 | if test "${enable_targets+set}" = set; then : |
| 3382 | enableval=$enable_targets; case "${enableval}" in |
| 3383 | yes | "") |
| 3384 | as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5 |
| 3385 | ;; |
| 3386 | no) |
| 3387 | enable_targets= |
| 3388 | ;; |
| 3389 | *) |
| 3390 | enable_targets=$enableval |
| 3391 | ;; |
| 3392 | esac |
| 3393 | else |
| 3394 | # For now, enable all targets by default |
| 3395 | enable_targets=all |
| 3396 | |
| 3397 | fi |
| 3398 | |
| 3399 | |
| 3400 | # Canonicalize the enabled targets. |
| 3401 | if test -n "$enable_targets"; then |
| 3402 | for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do |
| 3403 | result=`$ac_config_sub $targ 2>/dev/null` |
| 3404 | if test -n "$result"; then |
| 3405 | canon_targets="$canon_targets $result" |
| 3406 | else |
| 3407 | # Permit unrecognized target names, like "all". |
| 3408 | canon_targets="$canon_targets $targ" |
| 3409 | fi |
| 3410 | done |
| 3411 | fi |
| 3412 | |
| 3413 | # See which specific instantiations we need. |
| 3414 | targetobjs= |
| 3415 | all_targets= |
| 3416 | default_machine= |
| 3417 | default_size= |
| 3418 | default_big_endian= |
| 3419 | default_osabi=ELFOSABI_NONE |
| 3420 | targ_32_little= |
| 3421 | targ_32_big= |
| 3422 | targ_64_little= |
| 3423 | targ_64_big= |
| 3424 | for targ in $target $canon_targets; do |
| 3425 | if test "$targ" = "all"; then |
| 3426 | targ_32_little=yes |
| 3427 | targ_32_big=yes |
| 3428 | targ_64_little=yes |
| 3429 | targ_64_big=yes |
| 3430 | all_targets=yes |
| 3431 | else |
| 3432 | . ${srcdir}/configure.tgt |
| 3433 | |
| 3434 | if test "$targ_obj" = "UNKNOWN"; then |
| 3435 | as_fn_error "\"unsupported target $targ\"" "$LINENO" 5 |
| 3436 | else |
| 3437 | targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" |
| 3438 | if test "$targ_extra_obj" != ""; then |
| 3439 | targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" |
| 3440 | fi |
| 3441 | if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then |
| 3442 | if test "$targ_big_endian" = "true" \ |
| 3443 | -o "$targ_extra_big_endian" = "true"; then |
| 3444 | targ_32_big=yes |
| 3445 | fi |
| 3446 | if test "$targ_big_endian" = "false" \ |
| 3447 | -o "$targ_extra_big_endian" = "false"; then |
| 3448 | targ_32_little=yes |
| 3449 | fi |
| 3450 | fi |
| 3451 | if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then |
| 3452 | if test "$targ_big_endian" = "true" \ |
| 3453 | -o "$targ_extra_big_endian" = "true"; then |
| 3454 | targ_64_big=yes |
| 3455 | fi |
| 3456 | if test "$targ_big_endian" = "false" \ |
| 3457 | -o "$targ_extra_big_endian" = "false"; then |
| 3458 | targ_64_little=yes |
| 3459 | fi |
| 3460 | fi |
| 3461 | |
| 3462 | if test "$target" = "$targ"; then |
| 3463 | default_machine=$targ_machine |
| 3464 | default_size=$targ_size |
| 3465 | default_big_endian=$targ_big_endian |
| 3466 | default_osabi=$targ_osabi |
| 3467 | |
| 3468 | if test "$targ_obj" = "aarch64"; then |
| 3469 | DEFAULT_TARGET_AARCH64_TRUE= |
| 3470 | DEFAULT_TARGET_AARCH64_FALSE='#' |
| 3471 | else |
| 3472 | DEFAULT_TARGET_AARCH64_TRUE='#' |
| 3473 | DEFAULT_TARGET_AARCH64_FALSE= |
| 3474 | fi |
| 3475 | |
| 3476 | if test "$targ_obj" = "arm"; then |
| 3477 | DEFAULT_TARGET_ARM_TRUE= |
| 3478 | DEFAULT_TARGET_ARM_FALSE='#' |
| 3479 | else |
| 3480 | DEFAULT_TARGET_ARM_TRUE='#' |
| 3481 | DEFAULT_TARGET_ARM_FALSE= |
| 3482 | fi |
| 3483 | |
| 3484 | if test "$targ_obj" = "i386"; then |
| 3485 | DEFAULT_TARGET_I386_TRUE= |
| 3486 | DEFAULT_TARGET_I386_FALSE='#' |
| 3487 | else |
| 3488 | DEFAULT_TARGET_I386_TRUE='#' |
| 3489 | DEFAULT_TARGET_I386_FALSE= |
| 3490 | fi |
| 3491 | |
| 3492 | if test "$targ_obj" = "powerpc"; then |
| 3493 | DEFAULT_TARGET_POWERPC_TRUE= |
| 3494 | DEFAULT_TARGET_POWERPC_FALSE='#' |
| 3495 | else |
| 3496 | DEFAULT_TARGET_POWERPC_TRUE='#' |
| 3497 | DEFAULT_TARGET_POWERPC_FALSE= |
| 3498 | fi |
| 3499 | |
| 3500 | if test "$targ_obj" = "sparc"; then |
| 3501 | DEFAULT_TARGET_SPARC_TRUE= |
| 3502 | DEFAULT_TARGET_SPARC_FALSE='#' |
| 3503 | else |
| 3504 | DEFAULT_TARGET_SPARC_TRUE='#' |
| 3505 | DEFAULT_TARGET_SPARC_FALSE= |
| 3506 | fi |
| 3507 | |
| 3508 | if test "$targ_obj" = "s390"; then |
| 3509 | DEFAULT_TARGET_S390_TRUE= |
| 3510 | DEFAULT_TARGET_S390_FALSE='#' |
| 3511 | else |
| 3512 | DEFAULT_TARGET_S390_TRUE='#' |
| 3513 | DEFAULT_TARGET_S390_FALSE= |
| 3514 | fi |
| 3515 | |
| 3516 | target_x86_64=no |
| 3517 | target_x32=no |
| 3518 | if test "$targ_obj" = "x86_64"; then |
| 3519 | case "$target" in |
| 3520 | x86_64*-linux-gnux32) |
| 3521 | target_x32=yes |
| 3522 | default_size=32 |
| 3523 | ;; |
| 3524 | *) |
| 3525 | target_x86_64=yes |
| 3526 | ;; |
| 3527 | esac |
| 3528 | fi |
| 3529 | if test "$target_x86_64" = "yes"; then |
| 3530 | DEFAULT_TARGET_X86_64_TRUE= |
| 3531 | DEFAULT_TARGET_X86_64_FALSE='#' |
| 3532 | else |
| 3533 | DEFAULT_TARGET_X86_64_TRUE='#' |
| 3534 | DEFAULT_TARGET_X86_64_FALSE= |
| 3535 | fi |
| 3536 | |
| 3537 | if test "$target_x32" = "yes"; then |
| 3538 | DEFAULT_TARGET_X32_TRUE= |
| 3539 | DEFAULT_TARGET_X32_FALSE='#' |
| 3540 | else |
| 3541 | DEFAULT_TARGET_X32_TRUE='#' |
| 3542 | DEFAULT_TARGET_X32_FALSE= |
| 3543 | fi |
| 3544 | |
| 3545 | if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then |
| 3546 | DEFAULT_TARGET_X86_64_OR_X32_TRUE= |
| 3547 | DEFAULT_TARGET_X86_64_OR_X32_FALSE='#' |
| 3548 | else |
| 3549 | DEFAULT_TARGET_X86_64_OR_X32_TRUE='#' |
| 3550 | DEFAULT_TARGET_X86_64_OR_X32_FALSE= |
| 3551 | fi |
| 3552 | |
| 3553 | if test "$targ_obj" = "tilegx"; then |
| 3554 | DEFAULT_TARGET_TILEGX_TRUE= |
| 3555 | DEFAULT_TARGET_TILEGX_FALSE='#' |
| 3556 | else |
| 3557 | DEFAULT_TARGET_TILEGX_TRUE='#' |
| 3558 | DEFAULT_TARGET_TILEGX_FALSE= |
| 3559 | fi |
| 3560 | |
| 3561 | if test "$targ_obj" = "mips"; then |
| 3562 | DEFAULT_TARGET_MIPS_TRUE= |
| 3563 | DEFAULT_TARGET_MIPS_FALSE='#' |
| 3564 | else |
| 3565 | DEFAULT_TARGET_MIPS_TRUE='#' |
| 3566 | DEFAULT_TARGET_MIPS_FALSE= |
| 3567 | fi |
| 3568 | |
| 3569 | DEFAULT_TARGET=${targ_obj} |
| 3570 | |
| 3571 | fi |
| 3572 | fi |
| 3573 | fi |
| 3574 | done |
| 3575 | |
| 3576 | # Remove any duplicates. |
| 3577 | to="" |
| 3578 | for t in $targetobjs; do |
| 3579 | case " $to " in |
| 3580 | *" $t "*) ;; |
| 3581 | *) to="$to $t" ;; |
| 3582 | esac |
| 3583 | done |
| 3584 | targetobjs=$to |
| 3585 | |
| 3586 | if test -n "$targ_32_little"; then |
| 3587 | |
| 3588 | $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h |
| 3589 | |
| 3590 | fi |
| 3591 | if test -n "$targ_32_big"; then |
| 3592 | |
| 3593 | $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h |
| 3594 | |
| 3595 | fi |
| 3596 | if test -n "$targ_64_little"; then |
| 3597 | |
| 3598 | $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h |
| 3599 | |
| 3600 | fi |
| 3601 | if test -n "$targ_64_big"; then |
| 3602 | |
| 3603 | $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h |
| 3604 | |
| 3605 | fi |
| 3606 | |
| 3607 | if test -n "$all_targets"; then |
| 3608 | TARGETOBJS='$(ALL_TARGETOBJS)' |
| 3609 | else |
| 3610 | TARGETOBJS="$targetobjs" |
| 3611 | fi |
| 3612 | |
| 3613 | |
| 3614 | |
| 3615 | cat >>confdefs.h <<_ACEOF |
| 3616 | #define GOLD_DEFAULT_MACHINE $default_machine |
| 3617 | _ACEOF |
| 3618 | |
| 3619 | |
| 3620 | cat >>confdefs.h <<_ACEOF |
| 3621 | #define GOLD_DEFAULT_SIZE $default_size |
| 3622 | _ACEOF |
| 3623 | |
| 3624 | |
| 3625 | cat >>confdefs.h <<_ACEOF |
| 3626 | #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian |
| 3627 | _ACEOF |
| 3628 | |
| 3629 | |
| 3630 | cat >>confdefs.h <<_ACEOF |
| 3631 | #define GOLD_DEFAULT_OSABI $default_osabi |
| 3632 | _ACEOF |
| 3633 | |
| 3634 | |
| 3635 | |
| 3636 | # Check whether --with-lib-path was given. |
| 3637 | if test "${with_lib_path+set}" = set; then : |
| 3638 | withval=$with_lib_path; case "$withval" in |
| 3639 | yes) LIB_PATH='"/lib:/usr/lib"' ;; |
| 3640 | no) LIB_PATH='""' ;; |
| 3641 | *) LIB_PATH='"'"$withval"'"' ;; |
| 3642 | esac |
| 3643 | else |
| 3644 | LIB_PATH='"::DEFAULT::"' |
| 3645 | fi |
| 3646 | |
| 3647 | |
| 3648 | cat >>confdefs.h <<_ACEOF |
| 3649 | #define LIB_PATH $LIB_PATH |
| 3650 | _ACEOF |
| 3651 | |
| 3652 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
| 3653 | |
| 3654 | $as_echo "#define NATIVE_LINKER 1" >>confdefs.h |
| 3655 | |
| 3656 | fi |
| 3657 | |
| 3658 | if test -n "$ac_tool_prefix"; then |
| 3659 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. |
| 3660 | set dummy ${ac_tool_prefix}nm; ac_word=$2 |
| 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3662 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3663 | if test "${ac_cv_prog_NM+set}" = set; then : |
| 3664 | $as_echo_n "(cached) " >&6 |
| 3665 | else |
| 3666 | if test -n "$NM"; then |
| 3667 | ac_cv_prog_NM="$NM" # Let the user override the test. |
| 3668 | else |
| 3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3670 | for as_dir in $PATH |
| 3671 | do |
| 3672 | IFS=$as_save_IFS |
| 3673 | test -z "$as_dir" && as_dir=. |
| 3674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3676 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
| 3677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3678 | break 2 |
| 3679 | fi |
| 3680 | done |
| 3681 | done |
| 3682 | IFS=$as_save_IFS |
| 3683 | |
| 3684 | fi |
| 3685 | fi |
| 3686 | NM=$ac_cv_prog_NM |
| 3687 | if test -n "$NM"; then |
| 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
| 3689 | $as_echo "$NM" >&6; } |
| 3690 | else |
| 3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3692 | $as_echo "no" >&6; } |
| 3693 | fi |
| 3694 | |
| 3695 | |
| 3696 | fi |
| 3697 | if test -z "$ac_cv_prog_NM"; then |
| 3698 | ac_ct_NM=$NM |
| 3699 | # Extract the first word of "nm", so it can be a program name with args. |
| 3700 | set dummy nm; ac_word=$2 |
| 3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3702 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3703 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : |
| 3704 | $as_echo_n "(cached) " >&6 |
| 3705 | else |
| 3706 | if test -n "$ac_ct_NM"; then |
| 3707 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. |
| 3708 | else |
| 3709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3710 | for as_dir in $PATH |
| 3711 | do |
| 3712 | IFS=$as_save_IFS |
| 3713 | test -z "$as_dir" && as_dir=. |
| 3714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3716 | ac_cv_prog_ac_ct_NM="nm" |
| 3717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3718 | break 2 |
| 3719 | fi |
| 3720 | done |
| 3721 | done |
| 3722 | IFS=$as_save_IFS |
| 3723 | |
| 3724 | fi |
| 3725 | fi |
| 3726 | ac_ct_NM=$ac_cv_prog_ac_ct_NM |
| 3727 | if test -n "$ac_ct_NM"; then |
| 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
| 3729 | $as_echo "$ac_ct_NM" >&6; } |
| 3730 | else |
| 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3732 | $as_echo "no" >&6; } |
| 3733 | fi |
| 3734 | |
| 3735 | if test "x$ac_ct_NM" = x; then |
| 3736 | NM="" |
| 3737 | else |
| 3738 | case $cross_compiling:$ac_tool_warned in |
| 3739 | yes:) |
| 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3741 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3742 | ac_tool_warned=yes ;; |
| 3743 | esac |
| 3744 | NM=$ac_ct_NM |
| 3745 | fi |
| 3746 | else |
| 3747 | NM="$ac_cv_prog_NM" |
| 3748 | fi |
| 3749 | |
| 3750 | |
| 3751 | ac_ext=c |
| 3752 | ac_cpp='$CPP $CPPFLAGS' |
| 3753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3756 | if test -n "$ac_tool_prefix"; then |
| 3757 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3758 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3760 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3761 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3762 | $as_echo_n "(cached) " >&6 |
| 3763 | else |
| 3764 | if test -n "$CC"; then |
| 3765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3766 | else |
| 3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3768 | for as_dir in $PATH |
| 3769 | do |
| 3770 | IFS=$as_save_IFS |
| 3771 | test -z "$as_dir" && as_dir=. |
| 3772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3774 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3776 | break 2 |
| 3777 | fi |
| 3778 | done |
| 3779 | done |
| 3780 | IFS=$as_save_IFS |
| 3781 | |
| 3782 | fi |
| 3783 | fi |
| 3784 | CC=$ac_cv_prog_CC |
| 3785 | if test -n "$CC"; then |
| 3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3787 | $as_echo "$CC" >&6; } |
| 3788 | else |
| 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3790 | $as_echo "no" >&6; } |
| 3791 | fi |
| 3792 | |
| 3793 | |
| 3794 | fi |
| 3795 | if test -z "$ac_cv_prog_CC"; then |
| 3796 | ac_ct_CC=$CC |
| 3797 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3798 | set dummy gcc; ac_word=$2 |
| 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3800 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3801 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3802 | $as_echo_n "(cached) " >&6 |
| 3803 | else |
| 3804 | if test -n "$ac_ct_CC"; then |
| 3805 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3806 | else |
| 3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3808 | for as_dir in $PATH |
| 3809 | do |
| 3810 | IFS=$as_save_IFS |
| 3811 | test -z "$as_dir" && as_dir=. |
| 3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3814 | ac_cv_prog_ac_ct_CC="gcc" |
| 3815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3816 | break 2 |
| 3817 | fi |
| 3818 | done |
| 3819 | done |
| 3820 | IFS=$as_save_IFS |
| 3821 | |
| 3822 | fi |
| 3823 | fi |
| 3824 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3825 | if test -n "$ac_ct_CC"; then |
| 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3827 | $as_echo "$ac_ct_CC" >&6; } |
| 3828 | else |
| 3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3830 | $as_echo "no" >&6; } |
| 3831 | fi |
| 3832 | |
| 3833 | if test "x$ac_ct_CC" = x; then |
| 3834 | CC="" |
| 3835 | else |
| 3836 | case $cross_compiling:$ac_tool_warned in |
| 3837 | yes:) |
| 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3839 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3840 | ac_tool_warned=yes ;; |
| 3841 | esac |
| 3842 | CC=$ac_ct_CC |
| 3843 | fi |
| 3844 | else |
| 3845 | CC="$ac_cv_prog_CC" |
| 3846 | fi |
| 3847 | |
| 3848 | if test -z "$CC"; then |
| 3849 | if test -n "$ac_tool_prefix"; then |
| 3850 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3851 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3853 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3854 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3855 | $as_echo_n "(cached) " >&6 |
| 3856 | else |
| 3857 | if test -n "$CC"; then |
| 3858 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3859 | else |
| 3860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3861 | for as_dir in $PATH |
| 3862 | do |
| 3863 | IFS=$as_save_IFS |
| 3864 | test -z "$as_dir" && as_dir=. |
| 3865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3867 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3869 | break 2 |
| 3870 | fi |
| 3871 | done |
| 3872 | done |
| 3873 | IFS=$as_save_IFS |
| 3874 | |
| 3875 | fi |
| 3876 | fi |
| 3877 | CC=$ac_cv_prog_CC |
| 3878 | if test -n "$CC"; then |
| 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3880 | $as_echo "$CC" >&6; } |
| 3881 | else |
| 3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3883 | $as_echo "no" >&6; } |
| 3884 | fi |
| 3885 | |
| 3886 | |
| 3887 | fi |
| 3888 | fi |
| 3889 | if test -z "$CC"; then |
| 3890 | # Extract the first word of "cc", so it can be a program name with args. |
| 3891 | set dummy cc; ac_word=$2 |
| 3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3893 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3894 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3895 | $as_echo_n "(cached) " >&6 |
| 3896 | else |
| 3897 | if test -n "$CC"; then |
| 3898 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3899 | else |
| 3900 | ac_prog_rejected=no |
| 3901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3902 | for as_dir in $PATH |
| 3903 | do |
| 3904 | IFS=$as_save_IFS |
| 3905 | test -z "$as_dir" && as_dir=. |
| 3906 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3908 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3909 | ac_prog_rejected=yes |
| 3910 | continue |
| 3911 | fi |
| 3912 | ac_cv_prog_CC="cc" |
| 3913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3914 | break 2 |
| 3915 | fi |
| 3916 | done |
| 3917 | done |
| 3918 | IFS=$as_save_IFS |
| 3919 | |
| 3920 | if test $ac_prog_rejected = yes; then |
| 3921 | # We found a bogon in the path, so make sure we never use it. |
| 3922 | set dummy $ac_cv_prog_CC |
| 3923 | shift |
| 3924 | if test $# != 0; then |
| 3925 | # We chose a different compiler from the bogus one. |
| 3926 | # However, it has the same basename, so the bogon will be chosen |
| 3927 | # first if we set CC to just the basename; use the full file name. |
| 3928 | shift |
| 3929 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3930 | fi |
| 3931 | fi |
| 3932 | fi |
| 3933 | fi |
| 3934 | CC=$ac_cv_prog_CC |
| 3935 | if test -n "$CC"; then |
| 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3937 | $as_echo "$CC" >&6; } |
| 3938 | else |
| 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3940 | $as_echo "no" >&6; } |
| 3941 | fi |
| 3942 | |
| 3943 | |
| 3944 | fi |
| 3945 | if test -z "$CC"; then |
| 3946 | if test -n "$ac_tool_prefix"; then |
| 3947 | for ac_prog in cl.exe |
| 3948 | do |
| 3949 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3950 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3952 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3953 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3954 | $as_echo_n "(cached) " >&6 |
| 3955 | else |
| 3956 | if test -n "$CC"; then |
| 3957 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3958 | else |
| 3959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3960 | for as_dir in $PATH |
| 3961 | do |
| 3962 | IFS=$as_save_IFS |
| 3963 | test -z "$as_dir" && as_dir=. |
| 3964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3966 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3968 | break 2 |
| 3969 | fi |
| 3970 | done |
| 3971 | done |
| 3972 | IFS=$as_save_IFS |
| 3973 | |
| 3974 | fi |
| 3975 | fi |
| 3976 | CC=$ac_cv_prog_CC |
| 3977 | if test -n "$CC"; then |
| 3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3979 | $as_echo "$CC" >&6; } |
| 3980 | else |
| 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3982 | $as_echo "no" >&6; } |
| 3983 | fi |
| 3984 | |
| 3985 | |
| 3986 | test -n "$CC" && break |
| 3987 | done |
| 3988 | fi |
| 3989 | if test -z "$CC"; then |
| 3990 | ac_ct_CC=$CC |
| 3991 | for ac_prog in cl.exe |
| 3992 | do |
| 3993 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3994 | set dummy $ac_prog; ac_word=$2 |
| 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3996 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3997 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3998 | $as_echo_n "(cached) " >&6 |
| 3999 | else |
| 4000 | if test -n "$ac_ct_CC"; then |
| 4001 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4002 | else |
| 4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4004 | for as_dir in $PATH |
| 4005 | do |
| 4006 | IFS=$as_save_IFS |
| 4007 | test -z "$as_dir" && as_dir=. |
| 4008 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4010 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4012 | break 2 |
| 4013 | fi |
| 4014 | done |
| 4015 | done |
| 4016 | IFS=$as_save_IFS |
| 4017 | |
| 4018 | fi |
| 4019 | fi |
| 4020 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4021 | if test -n "$ac_ct_CC"; then |
| 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4023 | $as_echo "$ac_ct_CC" >&6; } |
| 4024 | else |
| 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4026 | $as_echo "no" >&6; } |
| 4027 | fi |
| 4028 | |
| 4029 | |
| 4030 | test -n "$ac_ct_CC" && break |
| 4031 | done |
| 4032 | |
| 4033 | if test "x$ac_ct_CC" = x; then |
| 4034 | CC="" |
| 4035 | else |
| 4036 | case $cross_compiling:$ac_tool_warned in |
| 4037 | yes:) |
| 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4039 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4040 | ac_tool_warned=yes ;; |
| 4041 | esac |
| 4042 | CC=$ac_ct_CC |
| 4043 | fi |
| 4044 | fi |
| 4045 | |
| 4046 | fi |
| 4047 | |
| 4048 | |
| 4049 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4051 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4052 | See \`config.log' for more details." "$LINENO" 5; } |
| 4053 | |
| 4054 | # Provide some information about the compiler. |
| 4055 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4056 | set X $ac_compile |
| 4057 | ac_compiler=$2 |
| 4058 | for ac_option in --version -v -V -qversion; do |
| 4059 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4060 | case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4065 | $as_echo "$ac_try_echo"; } >&5 |
| 4066 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4067 | ac_status=$? |
| 4068 | if test -s conftest.err; then |
| 4069 | sed '10a\ |
| 4070 | ... rest of stderr output deleted ... |
| 4071 | 10q' conftest.err >conftest.er1 |
| 4072 | cat conftest.er1 >&5 |
| 4073 | rm -f conftest.er1 conftest.err |
| 4074 | fi |
| 4075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4076 | test $ac_status = 0; } |
| 4077 | done |
| 4078 | |
| 4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4080 | /* end confdefs.h. */ |
| 4081 | |
| 4082 | int |
| 4083 | main () |
| 4084 | { |
| 4085 | |
| 4086 | ; |
| 4087 | return 0; |
| 4088 | } |
| 4089 | _ACEOF |
| 4090 | ac_clean_files_save=$ac_clean_files |
| 4091 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
| 4092 | # Try to create an executable without -o first, disregard a.out. |
| 4093 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4094 | # of exeext. |
| 4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4096 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4097 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4098 | |
| 4099 | # The possible output files: |
| 4100 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4101 | |
| 4102 | ac_rmfiles= |
| 4103 | for ac_file in $ac_files |
| 4104 | do |
| 4105 | case $ac_file in |
| 4106 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4107 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4108 | esac |
| 4109 | done |
| 4110 | rm -f $ac_rmfiles |
| 4111 | |
| 4112 | if { { ac_try="$ac_link_default" |
| 4113 | case "(($ac_try" in |
| 4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4115 | *) ac_try_echo=$ac_try;; |
| 4116 | esac |
| 4117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4118 | $as_echo "$ac_try_echo"; } >&5 |
| 4119 | (eval "$ac_link_default") 2>&5 |
| 4120 | ac_status=$? |
| 4121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4122 | test $ac_status = 0; }; then : |
| 4123 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4124 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4125 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4126 | # so that the user can short-circuit this test for compilers unknown to |
| 4127 | # Autoconf. |
| 4128 | for ac_file in $ac_files '' |
| 4129 | do |
| 4130 | test -f "$ac_file" || continue |
| 4131 | case $ac_file in |
| 4132 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4133 | ;; |
| 4134 | [ab].out ) |
| 4135 | # We found the default executable, but exeext='' is most |
| 4136 | # certainly right. |
| 4137 | break;; |
| 4138 | *.* ) |
| 4139 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 4140 | then :; else |
| 4141 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4142 | fi |
| 4143 | # We set ac_cv_exeext here because the later test for it is not |
| 4144 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4145 | # argument, so we may need to know it at that point already. |
| 4146 | # Even if this section looks crufty: it has the advantage of |
| 4147 | # actually working. |
| 4148 | break;; |
| 4149 | * ) |
| 4150 | break;; |
| 4151 | esac |
| 4152 | done |
| 4153 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4154 | |
| 4155 | else |
| 4156 | ac_file='' |
| 4157 | fi |
| 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4159 | $as_echo "$ac_file" >&6; } |
| 4160 | if test -z "$ac_file"; then : |
| 4161 | $as_echo "$as_me: failed program was:" >&5 |
| 4162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4163 | |
| 4164 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4166 | { as_fn_set_status 77 |
| 4167 | as_fn_error "C compiler cannot create executables |
| 4168 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 4169 | fi |
| 4170 | ac_exeext=$ac_cv_exeext |
| 4171 | |
| 4172 | # Check that the compiler produces executables we can run. If not, either |
| 4173 | # the compiler is broken, or we cross compile. |
| 4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4175 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 4176 | # If not cross compiling, check that we can run a simple program. |
| 4177 | if test "$cross_compiling" != yes; then |
| 4178 | if { ac_try='./$ac_file' |
| 4179 | { { case "(($ac_try" in |
| 4180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4181 | *) ac_try_echo=$ac_try;; |
| 4182 | esac |
| 4183 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4184 | $as_echo "$ac_try_echo"; } >&5 |
| 4185 | (eval "$ac_try") 2>&5 |
| 4186 | ac_status=$? |
| 4187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4188 | test $ac_status = 0; }; }; then |
| 4189 | cross_compiling=no |
| 4190 | else |
| 4191 | if test "$cross_compiling" = maybe; then |
| 4192 | cross_compiling=yes |
| 4193 | else |
| 4194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4196 | as_fn_error "cannot run C compiled programs. |
| 4197 | If you meant to cross compile, use \`--host'. |
| 4198 | See \`config.log' for more details." "$LINENO" 5; } |
| 4199 | fi |
| 4200 | fi |
| 4201 | fi |
| 4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4203 | $as_echo "yes" >&6; } |
| 4204 | |
| 4205 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
| 4206 | ac_clean_files=$ac_clean_files_save |
| 4207 | # Check that the compiler produces executables we can run. If not, either |
| 4208 | # the compiler is broken, or we cross compile. |
| 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4210 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4212 | $as_echo "$cross_compiling" >&6; } |
| 4213 | |
| 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4215 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 4216 | if { { ac_try="$ac_link" |
| 4217 | case "(($ac_try" in |
| 4218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4219 | *) ac_try_echo=$ac_try;; |
| 4220 | esac |
| 4221 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4222 | $as_echo "$ac_try_echo"; } >&5 |
| 4223 | (eval "$ac_link") 2>&5 |
| 4224 | ac_status=$? |
| 4225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4226 | test $ac_status = 0; }; then : |
| 4227 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4228 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4229 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4230 | # `rm'. |
| 4231 | for ac_file in conftest.exe conftest conftest.*; do |
| 4232 | test -f "$ac_file" || continue |
| 4233 | case $ac_file in |
| 4234 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4235 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4236 | break;; |
| 4237 | * ) break;; |
| 4238 | esac |
| 4239 | done |
| 4240 | else |
| 4241 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4242 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4243 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 4244 | See \`config.log' for more details." "$LINENO" 5; } |
| 4245 | fi |
| 4246 | rm -f conftest$ac_cv_exeext |
| 4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4248 | $as_echo "$ac_cv_exeext" >&6; } |
| 4249 | |
| 4250 | rm -f conftest.$ac_ext |
| 4251 | EXEEXT=$ac_cv_exeext |
| 4252 | ac_exeext=$EXEEXT |
| 4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4254 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 4255 | if test "${ac_cv_objext+set}" = set; then : |
| 4256 | $as_echo_n "(cached) " >&6 |
| 4257 | else |
| 4258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4259 | /* end confdefs.h. */ |
| 4260 | |
| 4261 | int |
| 4262 | main () |
| 4263 | { |
| 4264 | |
| 4265 | ; |
| 4266 | return 0; |
| 4267 | } |
| 4268 | _ACEOF |
| 4269 | rm -f conftest.o conftest.obj |
| 4270 | if { { ac_try="$ac_compile" |
| 4271 | case "(($ac_try" in |
| 4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4273 | *) ac_try_echo=$ac_try;; |
| 4274 | esac |
| 4275 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4276 | $as_echo "$ac_try_echo"; } >&5 |
| 4277 | (eval "$ac_compile") 2>&5 |
| 4278 | ac_status=$? |
| 4279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4280 | test $ac_status = 0; }; then : |
| 4281 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4282 | test -f "$ac_file" || continue; |
| 4283 | case $ac_file in |
| 4284 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4285 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4286 | break;; |
| 4287 | esac |
| 4288 | done |
| 4289 | else |
| 4290 | $as_echo "$as_me: failed program was:" >&5 |
| 4291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4292 | |
| 4293 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4294 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4295 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 4296 | See \`config.log' for more details." "$LINENO" 5; } |
| 4297 | fi |
| 4298 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4299 | fi |
| 4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4301 | $as_echo "$ac_cv_objext" >&6; } |
| 4302 | OBJEXT=$ac_cv_objext |
| 4303 | ac_objext=$OBJEXT |
| 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4305 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4306 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 4307 | $as_echo_n "(cached) " >&6 |
| 4308 | else |
| 4309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4310 | /* end confdefs.h. */ |
| 4311 | |
| 4312 | int |
| 4313 | main () |
| 4314 | { |
| 4315 | #ifndef __GNUC__ |
| 4316 | choke me |
| 4317 | #endif |
| 4318 | |
| 4319 | ; |
| 4320 | return 0; |
| 4321 | } |
| 4322 | _ACEOF |
| 4323 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4324 | ac_compiler_gnu=yes |
| 4325 | else |
| 4326 | ac_compiler_gnu=no |
| 4327 | fi |
| 4328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4329 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4330 | |
| 4331 | fi |
| 4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4333 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4334 | if test $ac_compiler_gnu = yes; then |
| 4335 | GCC=yes |
| 4336 | else |
| 4337 | GCC= |
| 4338 | fi |
| 4339 | ac_test_CFLAGS=${CFLAGS+set} |
| 4340 | ac_save_CFLAGS=$CFLAGS |
| 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4342 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4343 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4344 | $as_echo_n "(cached) " >&6 |
| 4345 | else |
| 4346 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4347 | ac_c_werror_flag=yes |
| 4348 | ac_cv_prog_cc_g=no |
| 4349 | CFLAGS="-g" |
| 4350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4351 | /* end confdefs.h. */ |
| 4352 | |
| 4353 | int |
| 4354 | main () |
| 4355 | { |
| 4356 | |
| 4357 | ; |
| 4358 | return 0; |
| 4359 | } |
| 4360 | _ACEOF |
| 4361 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4362 | ac_cv_prog_cc_g=yes |
| 4363 | else |
| 4364 | CFLAGS="" |
| 4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4366 | /* end confdefs.h. */ |
| 4367 | |
| 4368 | int |
| 4369 | main () |
| 4370 | { |
| 4371 | |
| 4372 | ; |
| 4373 | return 0; |
| 4374 | } |
| 4375 | _ACEOF |
| 4376 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4377 | |
| 4378 | else |
| 4379 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4380 | CFLAGS="-g" |
| 4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4382 | /* end confdefs.h. */ |
| 4383 | |
| 4384 | int |
| 4385 | main () |
| 4386 | { |
| 4387 | |
| 4388 | ; |
| 4389 | return 0; |
| 4390 | } |
| 4391 | _ACEOF |
| 4392 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4393 | ac_cv_prog_cc_g=yes |
| 4394 | fi |
| 4395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4396 | fi |
| 4397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4398 | fi |
| 4399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4400 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4401 | fi |
| 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4403 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4404 | if test "$ac_test_CFLAGS" = set; then |
| 4405 | CFLAGS=$ac_save_CFLAGS |
| 4406 | elif test $ac_cv_prog_cc_g = yes; then |
| 4407 | if test "$GCC" = yes; then |
| 4408 | CFLAGS="-g -O2" |
| 4409 | else |
| 4410 | CFLAGS="-g" |
| 4411 | fi |
| 4412 | else |
| 4413 | if test "$GCC" = yes; then |
| 4414 | CFLAGS="-O2" |
| 4415 | else |
| 4416 | CFLAGS= |
| 4417 | fi |
| 4418 | fi |
| 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4420 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4421 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4422 | $as_echo_n "(cached) " >&6 |
| 4423 | else |
| 4424 | ac_cv_prog_cc_c89=no |
| 4425 | ac_save_CC=$CC |
| 4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4427 | /* end confdefs.h. */ |
| 4428 | #include <stdarg.h> |
| 4429 | #include <stdio.h> |
| 4430 | #include <sys/types.h> |
| 4431 | #include <sys/stat.h> |
| 4432 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4433 | struct buf { int x; }; |
| 4434 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4435 | static char *e (p, i) |
| 4436 | char **p; |
| 4437 | int i; |
| 4438 | { |
| 4439 | return p[i]; |
| 4440 | } |
| 4441 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4442 | { |
| 4443 | char *s; |
| 4444 | va_list v; |
| 4445 | va_start (v,p); |
| 4446 | s = g (p, va_arg (v,int)); |
| 4447 | va_end (v); |
| 4448 | return s; |
| 4449 | } |
| 4450 | |
| 4451 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4452 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4453 | These don't provoke an error unfortunately, instead are silently treated |
| 4454 | as 'x'. The following induces an error, until -std is added to get |
| 4455 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4456 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4457 | that's true only with -std. */ |
| 4458 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4459 | |
| 4460 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4461 | inside strings and character constants. */ |
| 4462 | #define FOO(x) 'x' |
| 4463 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4464 | |
| 4465 | int test (int i, double x); |
| 4466 | struct s1 {int (*f) (int a);}; |
| 4467 | struct s2 {int (*f) (double a);}; |
| 4468 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4469 | int argc; |
| 4470 | char **argv; |
| 4471 | int |
| 4472 | main () |
| 4473 | { |
| 4474 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4475 | ; |
| 4476 | return 0; |
| 4477 | } |
| 4478 | _ACEOF |
| 4479 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4480 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4481 | do |
| 4482 | CC="$ac_save_CC $ac_arg" |
| 4483 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4484 | ac_cv_prog_cc_c89=$ac_arg |
| 4485 | fi |
| 4486 | rm -f core conftest.err conftest.$ac_objext |
| 4487 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4488 | done |
| 4489 | rm -f conftest.$ac_ext |
| 4490 | CC=$ac_save_CC |
| 4491 | |
| 4492 | fi |
| 4493 | # AC_CACHE_VAL |
| 4494 | case "x$ac_cv_prog_cc_c89" in |
| 4495 | x) |
| 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4497 | $as_echo "none needed" >&6; } ;; |
| 4498 | xno) |
| 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4500 | $as_echo "unsupported" >&6; } ;; |
| 4501 | *) |
| 4502 | CC="$CC $ac_cv_prog_cc_c89" |
| 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4504 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4505 | esac |
| 4506 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4507 | |
| 4508 | fi |
| 4509 | |
| 4510 | ac_ext=c |
| 4511 | ac_cpp='$CPP $CPPFLAGS' |
| 4512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4515 | DEPDIR="${am__leading_dot}deps" |
| 4516 | |
| 4517 | ac_config_commands="$ac_config_commands depfiles" |
| 4518 | |
| 4519 | |
| 4520 | am_make=${MAKE-make} |
| 4521 | cat > confinc << 'END' |
| 4522 | am__doit: |
| 4523 | @echo this is the am__doit target |
| 4524 | .PHONY: am__doit |
| 4525 | END |
| 4526 | # If we don't find an include directive, just comment out the code. |
| 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4528 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4529 | am__include="#" |
| 4530 | am__quote= |
| 4531 | _am_result=none |
| 4532 | # First try GNU make style include. |
| 4533 | echo "include confinc" > confmf |
| 4534 | # Ignore all kinds of additional output from `make'. |
| 4535 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4536 | *the\ am__doit\ target*) |
| 4537 | am__include=include |
| 4538 | am__quote= |
| 4539 | _am_result=GNU |
| 4540 | ;; |
| 4541 | esac |
| 4542 | # Now try BSD make style include. |
| 4543 | if test "$am__include" = "#"; then |
| 4544 | echo '.include "confinc"' > confmf |
| 4545 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4546 | *the\ am__doit\ target*) |
| 4547 | am__include=.include |
| 4548 | am__quote="\"" |
| 4549 | _am_result=BSD |
| 4550 | ;; |
| 4551 | esac |
| 4552 | fi |
| 4553 | |
| 4554 | |
| 4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4556 | $as_echo "$_am_result" >&6; } |
| 4557 | rm -f confinc confmf |
| 4558 | |
| 4559 | # Check whether --enable-dependency-tracking was given. |
| 4560 | if test "${enable_dependency_tracking+set}" = set; then : |
| 4561 | enableval=$enable_dependency_tracking; |
| 4562 | fi |
| 4563 | |
| 4564 | if test "x$enable_dependency_tracking" != xno; then |
| 4565 | am_depcomp="$ac_aux_dir/depcomp" |
| 4566 | AMDEPBACKSLASH='\' |
| 4567 | am__nodep='_no' |
| 4568 | fi |
| 4569 | if test "x$enable_dependency_tracking" != xno; then |
| 4570 | AMDEP_TRUE= |
| 4571 | AMDEP_FALSE='#' |
| 4572 | else |
| 4573 | AMDEP_TRUE='#' |
| 4574 | AMDEP_FALSE= |
| 4575 | fi |
| 4576 | |
| 4577 | |
| 4578 | |
| 4579 | depcc="$CC" am_compiler_list= |
| 4580 | |
| 4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4582 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4583 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 4584 | $as_echo_n "(cached) " >&6 |
| 4585 | else |
| 4586 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4587 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4588 | # making bogus files that we don't know about and never remove. For |
| 4589 | # instance it was reported that on HP-UX the gcc test will end up |
| 4590 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4591 | # in D'. |
| 4592 | rm -rf conftest.dir |
| 4593 | mkdir conftest.dir |
| 4594 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4595 | # using a relative directory. |
| 4596 | cp "$am_depcomp" conftest.dir |
| 4597 | cd conftest.dir |
| 4598 | # We will build objects and dependencies in a subdirectory because |
| 4599 | # it helps to detect inapplicable dependency modes. For instance |
| 4600 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4601 | # side effect of compilation, but ICC will put the dependencies in |
| 4602 | # the current directory while Tru64 will put them in the object |
| 4603 | # directory. |
| 4604 | mkdir sub |
| 4605 | |
| 4606 | am_cv_CC_dependencies_compiler_type=none |
| 4607 | if test "$am_compiler_list" = ""; then |
| 4608 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4609 | fi |
| 4610 | am__universal=false |
| 4611 | case " $depcc " in #( |
| 4612 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4613 | esac |
| 4614 | |
| 4615 | for depmode in $am_compiler_list; do |
| 4616 | # Setup a source with many dependencies, because some compilers |
| 4617 | # like to wrap large dependency lists on column 80 (with \), and |
| 4618 | # we should not choose a depcomp mode which is confused by this. |
| 4619 | # |
| 4620 | # We need to recreate these files for each test, as the compiler may |
| 4621 | # overwrite some of them when testing with obscure command lines. |
| 4622 | # This happens at least with the AIX C compiler. |
| 4623 | : > sub/conftest.c |
| 4624 | for i in 1 2 3 4 5 6; do |
| 4625 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4626 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4627 | # Solaris 8's {/usr,}/bin/sh. |
| 4628 | touch sub/conftst$i.h |
| 4629 | done |
| 4630 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4631 | |
| 4632 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4633 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4634 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4635 | # versions had trouble with output in subdirs |
| 4636 | am__obj=sub/conftest.${OBJEXT-o} |
| 4637 | am__minus_obj="-o $am__obj" |
| 4638 | case $depmode in |
| 4639 | gcc) |
| 4640 | # This depmode causes a compiler race in universal mode. |
| 4641 | test "$am__universal" = false || continue |
| 4642 | ;; |
| 4643 | nosideeffect) |
| 4644 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4645 | # only be used when explicitly requested |
| 4646 | if test "x$enable_dependency_tracking" = xyes; then |
| 4647 | continue |
| 4648 | else |
| 4649 | break |
| 4650 | fi |
| 4651 | ;; |
| 4652 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4653 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4654 | # not run yet. These depmodes are late enough in the game, and |
| 4655 | # so weak that their functioning should not be impacted. |
| 4656 | am__obj=conftest.${OBJEXT-o} |
| 4657 | am__minus_obj= |
| 4658 | ;; |
| 4659 | none) break ;; |
| 4660 | esac |
| 4661 | if depmode=$depmode \ |
| 4662 | source=sub/conftest.c object=$am__obj \ |
| 4663 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4664 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4665 | >/dev/null 2>conftest.err && |
| 4666 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4667 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4668 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4669 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4670 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4671 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4672 | # that says an option was ignored or not supported. |
| 4673 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4674 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4675 | # The diagnosis changed in icc 8.0: |
| 4676 | # icc: Command line remark: option '-MP' not supported |
| 4677 | if (grep 'ignoring option' conftest.err || |
| 4678 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4679 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4680 | break |
| 4681 | fi |
| 4682 | fi |
| 4683 | done |
| 4684 | |
| 4685 | cd .. |
| 4686 | rm -rf conftest.dir |
| 4687 | else |
| 4688 | am_cv_CC_dependencies_compiler_type=none |
| 4689 | fi |
| 4690 | |
| 4691 | fi |
| 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4693 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4694 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4695 | |
| 4696 | if |
| 4697 | test "x$enable_dependency_tracking" != xno \ |
| 4698 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4699 | am__fastdepCC_TRUE= |
| 4700 | am__fastdepCC_FALSE='#' |
| 4701 | else |
| 4702 | am__fastdepCC_TRUE='#' |
| 4703 | am__fastdepCC_FALSE= |
| 4704 | fi |
| 4705 | |
| 4706 | |
| 4707 | ac_ext=cpp |
| 4708 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4709 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4710 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4711 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4712 | if test -z "$CXX"; then |
| 4713 | if test -n "$CCC"; then |
| 4714 | CXX=$CCC |
| 4715 | else |
| 4716 | if test -n "$ac_tool_prefix"; then |
| 4717 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 4718 | do |
| 4719 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4720 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4722 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4723 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4724 | $as_echo_n "(cached) " >&6 |
| 4725 | else |
| 4726 | if test -n "$CXX"; then |
| 4727 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4728 | else |
| 4729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4730 | for as_dir in $PATH |
| 4731 | do |
| 4732 | IFS=$as_save_IFS |
| 4733 | test -z "$as_dir" && as_dir=. |
| 4734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4736 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4738 | break 2 |
| 4739 | fi |
| 4740 | done |
| 4741 | done |
| 4742 | IFS=$as_save_IFS |
| 4743 | |
| 4744 | fi |
| 4745 | fi |
| 4746 | CXX=$ac_cv_prog_CXX |
| 4747 | if test -n "$CXX"; then |
| 4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4749 | $as_echo "$CXX" >&6; } |
| 4750 | else |
| 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4752 | $as_echo "no" >&6; } |
| 4753 | fi |
| 4754 | |
| 4755 | |
| 4756 | test -n "$CXX" && break |
| 4757 | done |
| 4758 | fi |
| 4759 | if test -z "$CXX"; then |
| 4760 | ac_ct_CXX=$CXX |
| 4761 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 4762 | do |
| 4763 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4764 | set dummy $ac_prog; ac_word=$2 |
| 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4766 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4767 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4768 | $as_echo_n "(cached) " >&6 |
| 4769 | else |
| 4770 | if test -n "$ac_ct_CXX"; then |
| 4771 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4772 | else |
| 4773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4774 | for as_dir in $PATH |
| 4775 | do |
| 4776 | IFS=$as_save_IFS |
| 4777 | test -z "$as_dir" && as_dir=. |
| 4778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4780 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4782 | break 2 |
| 4783 | fi |
| 4784 | done |
| 4785 | done |
| 4786 | IFS=$as_save_IFS |
| 4787 | |
| 4788 | fi |
| 4789 | fi |
| 4790 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4791 | if test -n "$ac_ct_CXX"; then |
| 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4793 | $as_echo "$ac_ct_CXX" >&6; } |
| 4794 | else |
| 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4796 | $as_echo "no" >&6; } |
| 4797 | fi |
| 4798 | |
| 4799 | |
| 4800 | test -n "$ac_ct_CXX" && break |
| 4801 | done |
| 4802 | |
| 4803 | if test "x$ac_ct_CXX" = x; then |
| 4804 | CXX="g++" |
| 4805 | else |
| 4806 | case $cross_compiling:$ac_tool_warned in |
| 4807 | yes:) |
| 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4809 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4810 | ac_tool_warned=yes ;; |
| 4811 | esac |
| 4812 | CXX=$ac_ct_CXX |
| 4813 | fi |
| 4814 | fi |
| 4815 | |
| 4816 | fi |
| 4817 | fi |
| 4818 | # Provide some information about the compiler. |
| 4819 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4820 | set X $ac_compile |
| 4821 | ac_compiler=$2 |
| 4822 | for ac_option in --version -v -V -qversion; do |
| 4823 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4824 | case "(($ac_try" in |
| 4825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4826 | *) ac_try_echo=$ac_try;; |
| 4827 | esac |
| 4828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4829 | $as_echo "$ac_try_echo"; } >&5 |
| 4830 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4831 | ac_status=$? |
| 4832 | if test -s conftest.err; then |
| 4833 | sed '10a\ |
| 4834 | ... rest of stderr output deleted ... |
| 4835 | 10q' conftest.err >conftest.er1 |
| 4836 | cat conftest.er1 >&5 |
| 4837 | rm -f conftest.er1 conftest.err |
| 4838 | fi |
| 4839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4840 | test $ac_status = 0; } |
| 4841 | done |
| 4842 | |
| 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4844 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4845 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4846 | $as_echo_n "(cached) " >&6 |
| 4847 | else |
| 4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4849 | /* end confdefs.h. */ |
| 4850 | |
| 4851 | int |
| 4852 | main () |
| 4853 | { |
| 4854 | #ifndef __GNUC__ |
| 4855 | choke me |
| 4856 | #endif |
| 4857 | |
| 4858 | ; |
| 4859 | return 0; |
| 4860 | } |
| 4861 | _ACEOF |
| 4862 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4863 | ac_compiler_gnu=yes |
| 4864 | else |
| 4865 | ac_compiler_gnu=no |
| 4866 | fi |
| 4867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4868 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4869 | |
| 4870 | fi |
| 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4872 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4873 | if test $ac_compiler_gnu = yes; then |
| 4874 | GXX=yes |
| 4875 | else |
| 4876 | GXX= |
| 4877 | fi |
| 4878 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4879 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4881 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4882 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4883 | $as_echo_n "(cached) " >&6 |
| 4884 | else |
| 4885 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4886 | ac_cxx_werror_flag=yes |
| 4887 | ac_cv_prog_cxx_g=no |
| 4888 | CXXFLAGS="-g" |
| 4889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4890 | /* end confdefs.h. */ |
| 4891 | |
| 4892 | int |
| 4893 | main () |
| 4894 | { |
| 4895 | |
| 4896 | ; |
| 4897 | return 0; |
| 4898 | } |
| 4899 | _ACEOF |
| 4900 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4901 | ac_cv_prog_cxx_g=yes |
| 4902 | else |
| 4903 | CXXFLAGS="" |
| 4904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4905 | /* end confdefs.h. */ |
| 4906 | |
| 4907 | int |
| 4908 | main () |
| 4909 | { |
| 4910 | |
| 4911 | ; |
| 4912 | return 0; |
| 4913 | } |
| 4914 | _ACEOF |
| 4915 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4916 | |
| 4917 | else |
| 4918 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4919 | CXXFLAGS="-g" |
| 4920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4921 | /* end confdefs.h. */ |
| 4922 | |
| 4923 | int |
| 4924 | main () |
| 4925 | { |
| 4926 | |
| 4927 | ; |
| 4928 | return 0; |
| 4929 | } |
| 4930 | _ACEOF |
| 4931 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4932 | ac_cv_prog_cxx_g=yes |
| 4933 | fi |
| 4934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4935 | fi |
| 4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4937 | fi |
| 4938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4939 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4940 | fi |
| 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4942 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 4943 | if test "$ac_test_CXXFLAGS" = set; then |
| 4944 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4945 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4946 | if test "$GXX" = yes; then |
| 4947 | CXXFLAGS="-g -O2" |
| 4948 | else |
| 4949 | CXXFLAGS="-g" |
| 4950 | fi |
| 4951 | else |
| 4952 | if test "$GXX" = yes; then |
| 4953 | CXXFLAGS="-O2" |
| 4954 | else |
| 4955 | CXXFLAGS= |
| 4956 | fi |
| 4957 | fi |
| 4958 | ac_ext=c |
| 4959 | ac_cpp='$CPP $CPPFLAGS' |
| 4960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4963 | |
| 4964 | depcc="$CXX" am_compiler_list= |
| 4965 | |
| 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4967 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4968 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4969 | $as_echo_n "(cached) " >&6 |
| 4970 | else |
| 4971 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4972 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4973 | # making bogus files that we don't know about and never remove. For |
| 4974 | # instance it was reported that on HP-UX the gcc test will end up |
| 4975 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4976 | # in D'. |
| 4977 | rm -rf conftest.dir |
| 4978 | mkdir conftest.dir |
| 4979 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4980 | # using a relative directory. |
| 4981 | cp "$am_depcomp" conftest.dir |
| 4982 | cd conftest.dir |
| 4983 | # We will build objects and dependencies in a subdirectory because |
| 4984 | # it helps to detect inapplicable dependency modes. For instance |
| 4985 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4986 | # side effect of compilation, but ICC will put the dependencies in |
| 4987 | # the current directory while Tru64 will put them in the object |
| 4988 | # directory. |
| 4989 | mkdir sub |
| 4990 | |
| 4991 | am_cv_CXX_dependencies_compiler_type=none |
| 4992 | if test "$am_compiler_list" = ""; then |
| 4993 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4994 | fi |
| 4995 | am__universal=false |
| 4996 | case " $depcc " in #( |
| 4997 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4998 | esac |
| 4999 | |
| 5000 | for depmode in $am_compiler_list; do |
| 5001 | # Setup a source with many dependencies, because some compilers |
| 5002 | # like to wrap large dependency lists on column 80 (with \), and |
| 5003 | # we should not choose a depcomp mode which is confused by this. |
| 5004 | # |
| 5005 | # We need to recreate these files for each test, as the compiler may |
| 5006 | # overwrite some of them when testing with obscure command lines. |
| 5007 | # This happens at least with the AIX C compiler. |
| 5008 | : > sub/conftest.c |
| 5009 | for i in 1 2 3 4 5 6; do |
| 5010 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5011 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5012 | # Solaris 8's {/usr,}/bin/sh. |
| 5013 | touch sub/conftst$i.h |
| 5014 | done |
| 5015 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5016 | |
| 5017 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5018 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5019 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5020 | # versions had trouble with output in subdirs |
| 5021 | am__obj=sub/conftest.${OBJEXT-o} |
| 5022 | am__minus_obj="-o $am__obj" |
| 5023 | case $depmode in |
| 5024 | gcc) |
| 5025 | # This depmode causes a compiler race in universal mode. |
| 5026 | test "$am__universal" = false || continue |
| 5027 | ;; |
| 5028 | nosideeffect) |
| 5029 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5030 | # only be used when explicitly requested |
| 5031 | if test "x$enable_dependency_tracking" = xyes; then |
| 5032 | continue |
| 5033 | else |
| 5034 | break |
| 5035 | fi |
| 5036 | ;; |
| 5037 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5038 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5039 | # not run yet. These depmodes are late enough in the game, and |
| 5040 | # so weak that their functioning should not be impacted. |
| 5041 | am__obj=conftest.${OBJEXT-o} |
| 5042 | am__minus_obj= |
| 5043 | ;; |
| 5044 | none) break ;; |
| 5045 | esac |
| 5046 | if depmode=$depmode \ |
| 5047 | source=sub/conftest.c object=$am__obj \ |
| 5048 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5049 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5050 | >/dev/null 2>conftest.err && |
| 5051 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5052 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5053 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5054 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5055 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5056 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5057 | # that says an option was ignored or not supported. |
| 5058 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5059 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5060 | # The diagnosis changed in icc 8.0: |
| 5061 | # icc: Command line remark: option '-MP' not supported |
| 5062 | if (grep 'ignoring option' conftest.err || |
| 5063 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5064 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5065 | break |
| 5066 | fi |
| 5067 | fi |
| 5068 | done |
| 5069 | |
| 5070 | cd .. |
| 5071 | rm -rf conftest.dir |
| 5072 | else |
| 5073 | am_cv_CXX_dependencies_compiler_type=none |
| 5074 | fi |
| 5075 | |
| 5076 | fi |
| 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5078 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 5079 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5080 | |
| 5081 | if |
| 5082 | test "x$enable_dependency_tracking" != xno \ |
| 5083 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5084 | am__fastdepCXX_TRUE= |
| 5085 | am__fastdepCXX_FALSE='#' |
| 5086 | else |
| 5087 | am__fastdepCXX_TRUE='#' |
| 5088 | am__fastdepCXX_FALSE= |
| 5089 | fi |
| 5090 | |
| 5091 | |
| 5092 | for ac_prog in 'bison -y' byacc |
| 5093 | do |
| 5094 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5095 | set dummy $ac_prog; ac_word=$2 |
| 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5097 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5098 | if test "${ac_cv_prog_YACC+set}" = set; then : |
| 5099 | $as_echo_n "(cached) " >&6 |
| 5100 | else |
| 5101 | if test -n "$YACC"; then |
| 5102 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 5103 | else |
| 5104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5105 | for as_dir in $PATH |
| 5106 | do |
| 5107 | IFS=$as_save_IFS |
| 5108 | test -z "$as_dir" && as_dir=. |
| 5109 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5111 | ac_cv_prog_YACC="$ac_prog" |
| 5112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5113 | break 2 |
| 5114 | fi |
| 5115 | done |
| 5116 | done |
| 5117 | IFS=$as_save_IFS |
| 5118 | |
| 5119 | fi |
| 5120 | fi |
| 5121 | YACC=$ac_cv_prog_YACC |
| 5122 | if test -n "$YACC"; then |
| 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
| 5124 | $as_echo "$YACC" >&6; } |
| 5125 | else |
| 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5127 | $as_echo "no" >&6; } |
| 5128 | fi |
| 5129 | |
| 5130 | |
| 5131 | test -n "$YACC" && break |
| 5132 | done |
| 5133 | test -n "$YACC" || YACC="yacc" |
| 5134 | |
| 5135 | if test -n "$ac_tool_prefix"; then |
| 5136 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5137 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5139 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5140 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5141 | $as_echo_n "(cached) " >&6 |
| 5142 | else |
| 5143 | if test -n "$RANLIB"; then |
| 5144 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5145 | else |
| 5146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5147 | for as_dir in $PATH |
| 5148 | do |
| 5149 | IFS=$as_save_IFS |
| 5150 | test -z "$as_dir" && as_dir=. |
| 5151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5153 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5155 | break 2 |
| 5156 | fi |
| 5157 | done |
| 5158 | done |
| 5159 | IFS=$as_save_IFS |
| 5160 | |
| 5161 | fi |
| 5162 | fi |
| 5163 | RANLIB=$ac_cv_prog_RANLIB |
| 5164 | if test -n "$RANLIB"; then |
| 5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5166 | $as_echo "$RANLIB" >&6; } |
| 5167 | else |
| 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5169 | $as_echo "no" >&6; } |
| 5170 | fi |
| 5171 | |
| 5172 | |
| 5173 | fi |
| 5174 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5175 | ac_ct_RANLIB=$RANLIB |
| 5176 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5177 | set dummy ranlib; ac_word=$2 |
| 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5179 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5180 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 5181 | $as_echo_n "(cached) " >&6 |
| 5182 | else |
| 5183 | if test -n "$ac_ct_RANLIB"; then |
| 5184 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5185 | else |
| 5186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5187 | for as_dir in $PATH |
| 5188 | do |
| 5189 | IFS=$as_save_IFS |
| 5190 | test -z "$as_dir" && as_dir=. |
| 5191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5193 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5195 | break 2 |
| 5196 | fi |
| 5197 | done |
| 5198 | done |
| 5199 | IFS=$as_save_IFS |
| 5200 | |
| 5201 | fi |
| 5202 | fi |
| 5203 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5204 | if test -n "$ac_ct_RANLIB"; then |
| 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5206 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5207 | else |
| 5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5209 | $as_echo "no" >&6; } |
| 5210 | fi |
| 5211 | |
| 5212 | if test "x$ac_ct_RANLIB" = x; then |
| 5213 | RANLIB=":" |
| 5214 | else |
| 5215 | case $cross_compiling:$ac_tool_warned in |
| 5216 | yes:) |
| 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5218 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5219 | ac_tool_warned=yes ;; |
| 5220 | esac |
| 5221 | RANLIB=$ac_ct_RANLIB |
| 5222 | fi |
| 5223 | else |
| 5224 | RANLIB="$ac_cv_prog_RANLIB" |
| 5225 | fi |
| 5226 | |
| 5227 | |
| 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5229 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 5230 | LN_S=$as_ln_s |
| 5231 | if test "$LN_S" = "ln -s"; then |
| 5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5233 | $as_echo "yes" >&6; } |
| 5234 | else |
| 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5236 | $as_echo "no, using $LN_S" >&6; } |
| 5237 | fi |
| 5238 | |
| 5239 | |
| 5240 | |
| 5241 | ac_ext=c |
| 5242 | ac_cpp='$CPP $CPPFLAGS' |
| 5243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5247 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5248 | # On Suns, sometimes $CPP names a directory. |
| 5249 | if test -n "$CPP" && test -d "$CPP"; then |
| 5250 | CPP= |
| 5251 | fi |
| 5252 | if test -z "$CPP"; then |
| 5253 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 5254 | $as_echo_n "(cached) " >&6 |
| 5255 | else |
| 5256 | # Double quotes because CPP needs to be expanded |
| 5257 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5258 | do |
| 5259 | ac_preproc_ok=false |
| 5260 | for ac_c_preproc_warn_flag in '' yes |
| 5261 | do |
| 5262 | # Use a header file that comes with gcc, so configuring glibc |
| 5263 | # with a fresh cross-compiler works. |
| 5264 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5265 | # <limits.h> exists even on freestanding compilers. |
| 5266 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5267 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5269 | /* end confdefs.h. */ |
| 5270 | #ifdef __STDC__ |
| 5271 | # include <limits.h> |
| 5272 | #else |
| 5273 | # include <assert.h> |
| 5274 | #endif |
| 5275 | Syntax error |
| 5276 | _ACEOF |
| 5277 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5278 | |
| 5279 | else |
| 5280 | # Broken: fails on valid input. |
| 5281 | continue |
| 5282 | fi |
| 5283 | rm -f conftest.err conftest.$ac_ext |
| 5284 | |
| 5285 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5286 | # can be detected and how. |
| 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5288 | /* end confdefs.h. */ |
| 5289 | #include <ac_nonexistent.h> |
| 5290 | _ACEOF |
| 5291 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5292 | # Broken: success on invalid input. |
| 5293 | continue |
| 5294 | else |
| 5295 | # Passes both tests. |
| 5296 | ac_preproc_ok=: |
| 5297 | break |
| 5298 | fi |
| 5299 | rm -f conftest.err conftest.$ac_ext |
| 5300 | |
| 5301 | done |
| 5302 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5303 | rm -f conftest.err conftest.$ac_ext |
| 5304 | if $ac_preproc_ok; then : |
| 5305 | break |
| 5306 | fi |
| 5307 | |
| 5308 | done |
| 5309 | ac_cv_prog_CPP=$CPP |
| 5310 | |
| 5311 | fi |
| 5312 | CPP=$ac_cv_prog_CPP |
| 5313 | else |
| 5314 | ac_cv_prog_CPP=$CPP |
| 5315 | fi |
| 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5317 | $as_echo "$CPP" >&6; } |
| 5318 | ac_preproc_ok=false |
| 5319 | for ac_c_preproc_warn_flag in '' yes |
| 5320 | do |
| 5321 | # Use a header file that comes with gcc, so configuring glibc |
| 5322 | # with a fresh cross-compiler works. |
| 5323 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5324 | # <limits.h> exists even on freestanding compilers. |
| 5325 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5326 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5328 | /* end confdefs.h. */ |
| 5329 | #ifdef __STDC__ |
| 5330 | # include <limits.h> |
| 5331 | #else |
| 5332 | # include <assert.h> |
| 5333 | #endif |
| 5334 | Syntax error |
| 5335 | _ACEOF |
| 5336 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5337 | |
| 5338 | else |
| 5339 | # Broken: fails on valid input. |
| 5340 | continue |
| 5341 | fi |
| 5342 | rm -f conftest.err conftest.$ac_ext |
| 5343 | |
| 5344 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5345 | # can be detected and how. |
| 5346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5347 | /* end confdefs.h. */ |
| 5348 | #include <ac_nonexistent.h> |
| 5349 | _ACEOF |
| 5350 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5351 | # Broken: success on invalid input. |
| 5352 | continue |
| 5353 | else |
| 5354 | # Passes both tests. |
| 5355 | ac_preproc_ok=: |
| 5356 | break |
| 5357 | fi |
| 5358 | rm -f conftest.err conftest.$ac_ext |
| 5359 | |
| 5360 | done |
| 5361 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5362 | rm -f conftest.err conftest.$ac_ext |
| 5363 | if $ac_preproc_ok; then : |
| 5364 | |
| 5365 | else |
| 5366 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5367 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5368 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5369 | See \`config.log' for more details." "$LINENO" 5; } |
| 5370 | fi |
| 5371 | |
| 5372 | ac_ext=c |
| 5373 | ac_cpp='$CPP $CPPFLAGS' |
| 5374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5377 | |
| 5378 | |
| 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5380 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 5381 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 5382 | $as_echo_n "(cached) " >&6 |
| 5383 | else |
| 5384 | if test -z "$GREP"; then |
| 5385 | ac_path_GREP_found=false |
| 5386 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5388 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5389 | do |
| 5390 | IFS=$as_save_IFS |
| 5391 | test -z "$as_dir" && as_dir=. |
| 5392 | for ac_prog in grep ggrep; do |
| 5393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5394 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5395 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5396 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5397 | # Check for GNU $ac_path_GREP |
| 5398 | case `"$ac_path_GREP" --version 2>&1` in |
| 5399 | *GNU*) |
| 5400 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5401 | *) |
| 5402 | ac_count=0 |
| 5403 | $as_echo_n 0123456789 >"conftest.in" |
| 5404 | while : |
| 5405 | do |
| 5406 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5407 | mv "conftest.tmp" "conftest.in" |
| 5408 | cp "conftest.in" "conftest.nl" |
| 5409 | $as_echo 'GREP' >> "conftest.nl" |
| 5410 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5411 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5412 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5413 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5414 | # Best one so far, save it but keep looking for a better one |
| 5415 | ac_cv_path_GREP="$ac_path_GREP" |
| 5416 | ac_path_GREP_max=$ac_count |
| 5417 | fi |
| 5418 | # 10*(2^10) chars as input seems more than enough |
| 5419 | test $ac_count -gt 10 && break |
| 5420 | done |
| 5421 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5422 | esac |
| 5423 | |
| 5424 | $ac_path_GREP_found && break 3 |
| 5425 | done |
| 5426 | done |
| 5427 | done |
| 5428 | IFS=$as_save_IFS |
| 5429 | if test -z "$ac_cv_path_GREP"; then |
| 5430 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5431 | fi |
| 5432 | else |
| 5433 | ac_cv_path_GREP=$GREP |
| 5434 | fi |
| 5435 | |
| 5436 | fi |
| 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5438 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5439 | GREP="$ac_cv_path_GREP" |
| 5440 | |
| 5441 | |
| 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5443 | $as_echo_n "checking for egrep... " >&6; } |
| 5444 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 5445 | $as_echo_n "(cached) " >&6 |
| 5446 | else |
| 5447 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5448 | then ac_cv_path_EGREP="$GREP -E" |
| 5449 | else |
| 5450 | if test -z "$EGREP"; then |
| 5451 | ac_path_EGREP_found=false |
| 5452 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5454 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5455 | do |
| 5456 | IFS=$as_save_IFS |
| 5457 | test -z "$as_dir" && as_dir=. |
| 5458 | for ac_prog in egrep; do |
| 5459 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5460 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5461 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5462 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5463 | # Check for GNU $ac_path_EGREP |
| 5464 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5465 | *GNU*) |
| 5466 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5467 | *) |
| 5468 | ac_count=0 |
| 5469 | $as_echo_n 0123456789 >"conftest.in" |
| 5470 | while : |
| 5471 | do |
| 5472 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5473 | mv "conftest.tmp" "conftest.in" |
| 5474 | cp "conftest.in" "conftest.nl" |
| 5475 | $as_echo 'EGREP' >> "conftest.nl" |
| 5476 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5477 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5478 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5479 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5480 | # Best one so far, save it but keep looking for a better one |
| 5481 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5482 | ac_path_EGREP_max=$ac_count |
| 5483 | fi |
| 5484 | # 10*(2^10) chars as input seems more than enough |
| 5485 | test $ac_count -gt 10 && break |
| 5486 | done |
| 5487 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5488 | esac |
| 5489 | |
| 5490 | $ac_path_EGREP_found && break 3 |
| 5491 | done |
| 5492 | done |
| 5493 | done |
| 5494 | IFS=$as_save_IFS |
| 5495 | if test -z "$ac_cv_path_EGREP"; then |
| 5496 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5497 | fi |
| 5498 | else |
| 5499 | ac_cv_path_EGREP=$EGREP |
| 5500 | fi |
| 5501 | |
| 5502 | fi |
| 5503 | fi |
| 5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5505 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5506 | EGREP="$ac_cv_path_EGREP" |
| 5507 | |
| 5508 | |
| 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5510 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 5511 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 5512 | $as_echo_n "(cached) " >&6 |
| 5513 | else |
| 5514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5515 | /* end confdefs.h. */ |
| 5516 | #include <stdlib.h> |
| 5517 | #include <stdarg.h> |
| 5518 | #include <string.h> |
| 5519 | #include <float.h> |
| 5520 | |
| 5521 | int |
| 5522 | main () |
| 5523 | { |
| 5524 | |
| 5525 | ; |
| 5526 | return 0; |
| 5527 | } |
| 5528 | _ACEOF |
| 5529 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5530 | ac_cv_header_stdc=yes |
| 5531 | else |
| 5532 | ac_cv_header_stdc=no |
| 5533 | fi |
| 5534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5535 | |
| 5536 | if test $ac_cv_header_stdc = yes; then |
| 5537 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5539 | /* end confdefs.h. */ |
| 5540 | #include <string.h> |
| 5541 | |
| 5542 | _ACEOF |
| 5543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5544 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5545 | |
| 5546 | else |
| 5547 | ac_cv_header_stdc=no |
| 5548 | fi |
| 5549 | rm -f conftest* |
| 5550 | |
| 5551 | fi |
| 5552 | |
| 5553 | if test $ac_cv_header_stdc = yes; then |
| 5554 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5556 | /* end confdefs.h. */ |
| 5557 | #include <stdlib.h> |
| 5558 | |
| 5559 | _ACEOF |
| 5560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5561 | $EGREP "free" >/dev/null 2>&1; then : |
| 5562 | |
| 5563 | else |
| 5564 | ac_cv_header_stdc=no |
| 5565 | fi |
| 5566 | rm -f conftest* |
| 5567 | |
| 5568 | fi |
| 5569 | |
| 5570 | if test $ac_cv_header_stdc = yes; then |
| 5571 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5572 | if test "$cross_compiling" = yes; then : |
| 5573 | : |
| 5574 | else |
| 5575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5576 | /* end confdefs.h. */ |
| 5577 | #include <ctype.h> |
| 5578 | #include <stdlib.h> |
| 5579 | #if ((' ' & 0x0FF) == 0x020) |
| 5580 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5581 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5582 | #else |
| 5583 | # define ISLOWER(c) \ |
| 5584 | (('a' <= (c) && (c) <= 'i') \ |
| 5585 | || ('j' <= (c) && (c) <= 'r') \ |
| 5586 | || ('s' <= (c) && (c) <= 'z')) |
| 5587 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5588 | #endif |
| 5589 | |
| 5590 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5591 | int |
| 5592 | main () |
| 5593 | { |
| 5594 | int i; |
| 5595 | for (i = 0; i < 256; i++) |
| 5596 | if (XOR (islower (i), ISLOWER (i)) |
| 5597 | || toupper (i) != TOUPPER (i)) |
| 5598 | return 2; |
| 5599 | return 0; |
| 5600 | } |
| 5601 | _ACEOF |
| 5602 | if ac_fn_c_try_run "$LINENO"; then : |
| 5603 | |
| 5604 | else |
| 5605 | ac_cv_header_stdc=no |
| 5606 | fi |
| 5607 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5608 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5609 | fi |
| 5610 | |
| 5611 | fi |
| 5612 | fi |
| 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5614 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5615 | if test $ac_cv_header_stdc = yes; then |
| 5616 | |
| 5617 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5618 | |
| 5619 | fi |
| 5620 | |
| 5621 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5622 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5623 | inttypes.h stdint.h unistd.h |
| 5624 | do : |
| 5625 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5626 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5627 | " |
| 5628 | eval as_val=\$$as_ac_Header |
| 5629 | if test "x$as_val" = x""yes; then : |
| 5630 | cat >>confdefs.h <<_ACEOF |
| 5631 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5632 | _ACEOF |
| 5633 | |
| 5634 | fi |
| 5635 | |
| 5636 | done |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 5641 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 5642 | MINIX=yes |
| 5643 | else |
| 5644 | MINIX= |
| 5645 | fi |
| 5646 | |
| 5647 | |
| 5648 | if test "$MINIX" = yes; then |
| 5649 | |
| 5650 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5651 | |
| 5652 | |
| 5653 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5654 | |
| 5655 | |
| 5656 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5657 | |
| 5658 | fi |
| 5659 | |
| 5660 | |
| 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5662 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5663 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 5664 | $as_echo_n "(cached) " >&6 |
| 5665 | else |
| 5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5667 | /* end confdefs.h. */ |
| 5668 | |
| 5669 | # define __EXTENSIONS__ 1 |
| 5670 | $ac_includes_default |
| 5671 | int |
| 5672 | main () |
| 5673 | { |
| 5674 | |
| 5675 | ; |
| 5676 | return 0; |
| 5677 | } |
| 5678 | _ACEOF |
| 5679 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5680 | ac_cv_safe_to_define___extensions__=yes |
| 5681 | else |
| 5682 | ac_cv_safe_to_define___extensions__=no |
| 5683 | fi |
| 5684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5685 | fi |
| 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5687 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5688 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5689 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5690 | |
| 5691 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5692 | |
| 5693 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5694 | |
| 5695 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5696 | |
| 5697 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5698 | |
| 5699 | |
| 5700 | |
| 5701 | |
| 5702 | # If we haven't got the data from the intl directory, |
| 5703 | # assume NLS is disabled. |
| 5704 | USE_NLS=no |
| 5705 | LIBINTL= |
| 5706 | LIBINTL_DEP= |
| 5707 | INCINTL= |
| 5708 | XGETTEXT= |
| 5709 | GMSGFMT= |
| 5710 | POSUB= |
| 5711 | |
| 5712 | if test -f ../intl/config.intl; then |
| 5713 | . ../intl/config.intl |
| 5714 | fi |
| 5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 5716 | $as_echo_n "checking whether NLS is requested... " >&6; } |
| 5717 | if test x"$USE_NLS" != xyes; then |
| 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5719 | $as_echo "no" >&6; } |
| 5720 | else |
| 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5722 | $as_echo "yes" >&6; } |
| 5723 | |
| 5724 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
| 5725 | |
| 5726 | |
| 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
| 5728 | $as_echo_n "checking for catalogs to be installed... " >&6; } |
| 5729 | # Look for .po and .gmo files in the source directory. |
| 5730 | CATALOGS= |
| 5731 | XLINGUAS= |
| 5732 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 5733 | # If there aren't any .gmo files the shell will give us the |
| 5734 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 5735 | # weeded out. |
| 5736 | case "$cat" in *\**) |
| 5737 | continue;; |
| 5738 | esac |
| 5739 | # The quadruple backslash is collapsed to a double backslash |
| 5740 | # by the backticks, then collapsed again by the double quotes, |
| 5741 | # leaving us with one backslash in the sed expression (right |
| 5742 | # before the dot that mustn't act as a wildcard). |
| 5743 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 5744 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 5745 | # The user is allowed to set LINGUAS to a list of languages to |
| 5746 | # install catalogs for. If it's empty that means "all of them." |
| 5747 | if test "x$LINGUAS" = x; then |
| 5748 | CATALOGS="$CATALOGS $cat" |
| 5749 | XLINGUAS="$XLINGUAS $lang" |
| 5750 | else |
| 5751 | case "$LINGUAS" in *$lang*) |
| 5752 | CATALOGS="$CATALOGS $cat" |
| 5753 | XLINGUAS="$XLINGUAS $lang" |
| 5754 | ;; |
| 5755 | esac |
| 5756 | fi |
| 5757 | done |
| 5758 | LINGUAS="$XLINGUAS" |
| 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
| 5760 | $as_echo "$LINGUAS" >&6; } |
| 5761 | |
| 5762 | |
| 5763 | DATADIRNAME=share |
| 5764 | |
| 5765 | INSTOBJEXT=.mo |
| 5766 | |
| 5767 | GENCAT=gencat |
| 5768 | |
| 5769 | CATOBJEXT=.gmo |
| 5770 | |
| 5771 | fi |
| 5772 | |
| 5773 | MKINSTALLDIRS= |
| 5774 | if test -n "$ac_aux_dir"; then |
| 5775 | case "$ac_aux_dir" in |
| 5776 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5777 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5778 | esac |
| 5779 | fi |
| 5780 | if test -z "$MKINSTALLDIRS"; then |
| 5781 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5782 | fi |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 5787 | $as_echo_n "checking whether NLS is requested... " >&6; } |
| 5788 | # Check whether --enable-nls was given. |
| 5789 | if test "${enable_nls+set}" = set; then : |
| 5790 | enableval=$enable_nls; USE_NLS=$enableval |
| 5791 | else |
| 5792 | USE_NLS=yes |
| 5793 | fi |
| 5794 | |
| 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 5796 | $as_echo "$USE_NLS" >&6; } |
| 5797 | |
| 5798 | |
| 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
| 5803 | # Prepare PATH_SEPARATOR. |
| 5804 | # The user is always right. |
| 5805 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5806 | echo "#! /bin/sh" >conf$$.sh |
| 5807 | echo "exit 0" >>conf$$.sh |
| 5808 | chmod +x conf$$.sh |
| 5809 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5810 | PATH_SEPARATOR=';' |
| 5811 | else |
| 5812 | PATH_SEPARATOR=: |
| 5813 | fi |
| 5814 | rm -f conf$$.sh |
| 5815 | fi |
| 5816 | |
| 5817 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5818 | # as systems may use methods other than mode bits to determine executability. |
| 5819 | cat >conf$$.file <<_ASEOF |
| 5820 | #! /bin/sh |
| 5821 | exit 0 |
| 5822 | _ASEOF |
| 5823 | chmod +x conf$$.file |
| 5824 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5825 | ac_executable_p="test -x" |
| 5826 | else |
| 5827 | ac_executable_p="test -f" |
| 5828 | fi |
| 5829 | rm -f conf$$.file |
| 5830 | |
| 5831 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5832 | set dummy msgfmt; ac_word=$2 |
| 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5834 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5835 | if test "${ac_cv_path_MSGFMT+set}" = set; then : |
| 5836 | $as_echo_n "(cached) " >&6 |
| 5837 | else |
| 5838 | case "$MSGFMT" in |
| 5839 | [\\/]* | ?:[\\/]*) |
| 5840 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5841 | ;; |
| 5842 | *) |
| 5843 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5844 | for ac_dir in $PATH; do |
| 5845 | IFS="$ac_save_IFS" |
| 5846 | test -z "$ac_dir" && ac_dir=. |
| 5847 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5848 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5849 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5850 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5851 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5852 | break 2 |
| 5853 | fi |
| 5854 | fi |
| 5855 | done |
| 5856 | done |
| 5857 | IFS="$ac_save_IFS" |
| 5858 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5859 | ;; |
| 5860 | esac |
| 5861 | fi |
| 5862 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5863 | if test "$MSGFMT" != ":"; then |
| 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 5865 | $as_echo "$MSGFMT" >&6; } |
| 5866 | else |
| 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5868 | $as_echo "no" >&6; } |
| 5869 | fi |
| 5870 | |
| 5871 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5872 | set dummy gmsgfmt; ac_word=$2 |
| 5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5874 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5875 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : |
| 5876 | $as_echo_n "(cached) " >&6 |
| 5877 | else |
| 5878 | case $GMSGFMT in |
| 5879 | [\\/]* | ?:[\\/]*) |
| 5880 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5881 | ;; |
| 5882 | *) |
| 5883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5884 | for as_dir in $PATH |
| 5885 | do |
| 5886 | IFS=$as_save_IFS |
| 5887 | test -z "$as_dir" && as_dir=. |
| 5888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5890 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 5891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5892 | break 2 |
| 5893 | fi |
| 5894 | done |
| 5895 | done |
| 5896 | IFS=$as_save_IFS |
| 5897 | |
| 5898 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5899 | ;; |
| 5900 | esac |
| 5901 | fi |
| 5902 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 5903 | if test -n "$GMSGFMT"; then |
| 5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
| 5905 | $as_echo "$GMSGFMT" >&6; } |
| 5906 | else |
| 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5908 | $as_echo "no" >&6; } |
| 5909 | fi |
| 5910 | |
| 5911 | |
| 5912 | |
| 5913 | |
| 5914 | # Prepare PATH_SEPARATOR. |
| 5915 | # The user is always right. |
| 5916 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5917 | echo "#! /bin/sh" >conf$$.sh |
| 5918 | echo "exit 0" >>conf$$.sh |
| 5919 | chmod +x conf$$.sh |
| 5920 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5921 | PATH_SEPARATOR=';' |
| 5922 | else |
| 5923 | PATH_SEPARATOR=: |
| 5924 | fi |
| 5925 | rm -f conf$$.sh |
| 5926 | fi |
| 5927 | |
| 5928 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5929 | # as systems may use methods other than mode bits to determine executability. |
| 5930 | cat >conf$$.file <<_ASEOF |
| 5931 | #! /bin/sh |
| 5932 | exit 0 |
| 5933 | _ASEOF |
| 5934 | chmod +x conf$$.file |
| 5935 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5936 | ac_executable_p="test -x" |
| 5937 | else |
| 5938 | ac_executable_p="test -f" |
| 5939 | fi |
| 5940 | rm -f conf$$.file |
| 5941 | |
| 5942 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5943 | set dummy xgettext; ac_word=$2 |
| 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5945 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5946 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : |
| 5947 | $as_echo_n "(cached) " >&6 |
| 5948 | else |
| 5949 | case "$XGETTEXT" in |
| 5950 | [\\/]* | ?:[\\/]*) |
| 5951 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5952 | ;; |
| 5953 | *) |
| 5954 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5955 | for ac_dir in $PATH; do |
| 5956 | IFS="$ac_save_IFS" |
| 5957 | test -z "$ac_dir" && ac_dir=. |
| 5958 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5959 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5960 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5961 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5962 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5963 | break 2 |
| 5964 | fi |
| 5965 | fi |
| 5966 | done |
| 5967 | done |
| 5968 | IFS="$ac_save_IFS" |
| 5969 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5970 | ;; |
| 5971 | esac |
| 5972 | fi |
| 5973 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5974 | if test "$XGETTEXT" != ":"; then |
| 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
| 5976 | $as_echo "$XGETTEXT" >&6; } |
| 5977 | else |
| 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5979 | $as_echo "no" >&6; } |
| 5980 | fi |
| 5981 | |
| 5982 | rm -f messages.po |
| 5983 | |
| 5984 | |
| 5985 | # Prepare PATH_SEPARATOR. |
| 5986 | # The user is always right. |
| 5987 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5988 | echo "#! /bin/sh" >conf$$.sh |
| 5989 | echo "exit 0" >>conf$$.sh |
| 5990 | chmod +x conf$$.sh |
| 5991 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5992 | PATH_SEPARATOR=';' |
| 5993 | else |
| 5994 | PATH_SEPARATOR=: |
| 5995 | fi |
| 5996 | rm -f conf$$.sh |
| 5997 | fi |
| 5998 | |
| 5999 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6000 | # as systems may use methods other than mode bits to determine executability. |
| 6001 | cat >conf$$.file <<_ASEOF |
| 6002 | #! /bin/sh |
| 6003 | exit 0 |
| 6004 | _ASEOF |
| 6005 | chmod +x conf$$.file |
| 6006 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6007 | ac_executable_p="test -x" |
| 6008 | else |
| 6009 | ac_executable_p="test -f" |
| 6010 | fi |
| 6011 | rm -f conf$$.file |
| 6012 | |
| 6013 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6014 | set dummy msgmerge; ac_word=$2 |
| 6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6016 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6017 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : |
| 6018 | $as_echo_n "(cached) " >&6 |
| 6019 | else |
| 6020 | case "$MSGMERGE" in |
| 6021 | [\\/]* | ?:[\\/]*) |
| 6022 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6023 | ;; |
| 6024 | *) |
| 6025 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6026 | for ac_dir in $PATH; do |
| 6027 | IFS="$ac_save_IFS" |
| 6028 | test -z "$ac_dir" && ac_dir=. |
| 6029 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6030 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6031 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 6032 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6033 | break 2 |
| 6034 | fi |
| 6035 | fi |
| 6036 | done |
| 6037 | done |
| 6038 | IFS="$ac_save_IFS" |
| 6039 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6040 | ;; |
| 6041 | esac |
| 6042 | fi |
| 6043 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6044 | if test "$MSGMERGE" != ":"; then |
| 6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
| 6046 | $as_echo "$MSGMERGE" >&6; } |
| 6047 | else |
| 6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6049 | $as_echo "no" >&6; } |
| 6050 | fi |
| 6051 | |
| 6052 | |
| 6053 | if test "$GMSGFMT" != ":"; then |
| 6054 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6055 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6056 | : ; |
| 6057 | else |
| 6058 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 6060 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
| 6061 | GMSGFMT=":" |
| 6062 | fi |
| 6063 | fi |
| 6064 | |
| 6065 | if test "$XGETTEXT" != ":"; then |
| 6066 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6067 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6068 | : ; |
| 6069 | else |
| 6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 6071 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
| 6072 | XGETTEXT=":" |
| 6073 | fi |
| 6074 | rm -f messages.po |
| 6075 | fi |
| 6076 | |
| 6077 | ac_config_commands="$ac_config_commands default-1" |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 6082 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 6083 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 6084 | $as_echo_n "(cached) " >&6 |
| 6085 | else |
| 6086 | ac_cv_c_bigendian=unknown |
| 6087 | # See if we're dealing with a universal compiler. |
| 6088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6089 | /* end confdefs.h. */ |
| 6090 | #ifndef __APPLE_CC__ |
| 6091 | not a universal capable compiler |
| 6092 | #endif |
| 6093 | typedef int dummy; |
| 6094 | |
| 6095 | _ACEOF |
| 6096 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6097 | |
| 6098 | # Check for potential -arch flags. It is not universal unless |
| 6099 | # there are at least two -arch flags with different values. |
| 6100 | ac_arch= |
| 6101 | ac_prev= |
| 6102 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 6103 | if test -n "$ac_prev"; then |
| 6104 | case $ac_word in |
| 6105 | i?86 | x86_64 | ppc | ppc64) |
| 6106 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 6107 | ac_arch=$ac_word |
| 6108 | else |
| 6109 | ac_cv_c_bigendian=universal |
| 6110 | break |
| 6111 | fi |
| 6112 | ;; |
| 6113 | esac |
| 6114 | ac_prev= |
| 6115 | elif test "x$ac_word" = "x-arch"; then |
| 6116 | ac_prev=arch |
| 6117 | fi |
| 6118 | done |
| 6119 | fi |
| 6120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6121 | if test $ac_cv_c_bigendian = unknown; then |
| 6122 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 6123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6124 | /* end confdefs.h. */ |
| 6125 | #include <sys/types.h> |
| 6126 | #include <sys/param.h> |
| 6127 | |
| 6128 | int |
| 6129 | main () |
| 6130 | { |
| 6131 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 6132 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 6133 | && LITTLE_ENDIAN) |
| 6134 | bogus endian macros |
| 6135 | #endif |
| 6136 | |
| 6137 | ; |
| 6138 | return 0; |
| 6139 | } |
| 6140 | _ACEOF |
| 6141 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6142 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 6143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6144 | /* end confdefs.h. */ |
| 6145 | #include <sys/types.h> |
| 6146 | #include <sys/param.h> |
| 6147 | |
| 6148 | int |
| 6149 | main () |
| 6150 | { |
| 6151 | #if BYTE_ORDER != BIG_ENDIAN |
| 6152 | not big endian |
| 6153 | #endif |
| 6154 | |
| 6155 | ; |
| 6156 | return 0; |
| 6157 | } |
| 6158 | _ACEOF |
| 6159 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6160 | ac_cv_c_bigendian=yes |
| 6161 | else |
| 6162 | ac_cv_c_bigendian=no |
| 6163 | fi |
| 6164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6165 | fi |
| 6166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6167 | fi |
| 6168 | if test $ac_cv_c_bigendian = unknown; then |
| 6169 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 6170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6171 | /* end confdefs.h. */ |
| 6172 | #include <limits.h> |
| 6173 | |
| 6174 | int |
| 6175 | main () |
| 6176 | { |
| 6177 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 6178 | bogus endian macros |
| 6179 | #endif |
| 6180 | |
| 6181 | ; |
| 6182 | return 0; |
| 6183 | } |
| 6184 | _ACEOF |
| 6185 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6186 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 6187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6188 | /* end confdefs.h. */ |
| 6189 | #include <limits.h> |
| 6190 | |
| 6191 | int |
| 6192 | main () |
| 6193 | { |
| 6194 | #ifndef _BIG_ENDIAN |
| 6195 | not big endian |
| 6196 | #endif |
| 6197 | |
| 6198 | ; |
| 6199 | return 0; |
| 6200 | } |
| 6201 | _ACEOF |
| 6202 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6203 | ac_cv_c_bigendian=yes |
| 6204 | else |
| 6205 | ac_cv_c_bigendian=no |
| 6206 | fi |
| 6207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6208 | fi |
| 6209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6210 | fi |
| 6211 | if test $ac_cv_c_bigendian = unknown; then |
| 6212 | # Compile a test program. |
| 6213 | if test "$cross_compiling" = yes; then : |
| 6214 | # Try to guess by grepping values from an object file. |
| 6215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6216 | /* end confdefs.h. */ |
| 6217 | short int ascii_mm[] = |
| 6218 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 6219 | short int ascii_ii[] = |
| 6220 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 6221 | int use_ascii (int i) { |
| 6222 | return ascii_mm[i] + ascii_ii[i]; |
| 6223 | } |
| 6224 | short int ebcdic_ii[] = |
| 6225 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 6226 | short int ebcdic_mm[] = |
| 6227 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 6228 | int use_ebcdic (int i) { |
| 6229 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 6230 | } |
| 6231 | extern int foo; |
| 6232 | |
| 6233 | int |
| 6234 | main () |
| 6235 | { |
| 6236 | return use_ascii (foo) == use_ebcdic (foo); |
| 6237 | ; |
| 6238 | return 0; |
| 6239 | } |
| 6240 | _ACEOF |
| 6241 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6242 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 6243 | ac_cv_c_bigendian=yes |
| 6244 | fi |
| 6245 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 6246 | if test "$ac_cv_c_bigendian" = unknown; then |
| 6247 | ac_cv_c_bigendian=no |
| 6248 | else |
| 6249 | # finding both strings is unlikely to happen, but who knows? |
| 6250 | ac_cv_c_bigendian=unknown |
| 6251 | fi |
| 6252 | fi |
| 6253 | fi |
| 6254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6255 | else |
| 6256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6257 | /* end confdefs.h. */ |
| 6258 | $ac_includes_default |
| 6259 | int |
| 6260 | main () |
| 6261 | { |
| 6262 | |
| 6263 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6264 | union |
| 6265 | { |
| 6266 | long int l; |
| 6267 | char c[sizeof (long int)]; |
| 6268 | } u; |
| 6269 | u.l = 1; |
| 6270 | return u.c[sizeof (long int) - 1] == 1; |
| 6271 | |
| 6272 | ; |
| 6273 | return 0; |
| 6274 | } |
| 6275 | _ACEOF |
| 6276 | if ac_fn_c_try_run "$LINENO"; then : |
| 6277 | ac_cv_c_bigendian=no |
| 6278 | else |
| 6279 | ac_cv_c_bigendian=yes |
| 6280 | fi |
| 6281 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6282 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6283 | fi |
| 6284 | |
| 6285 | fi |
| 6286 | fi |
| 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 6288 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 6289 | case $ac_cv_c_bigendian in #( |
| 6290 | yes) |
| 6291 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 6292 | ;; #( |
| 6293 | no) |
| 6294 | ;; #( |
| 6295 | universal) |
| 6296 | |
| 6297 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 6298 | |
| 6299 | ;; #( |
| 6300 | *) |
| 6301 | as_fn_error "unknown endianness |
| 6302 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 6303 | esac |
| 6304 | |
| 6305 | |
| 6306 | |
| 6307 | |
| 6308 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then |
| 6309 | NATIVE_LINKER_TRUE= |
| 6310 | NATIVE_LINKER_FALSE='#' |
| 6311 | else |
| 6312 | NATIVE_LINKER_TRUE='#' |
| 6313 | NATIVE_LINKER_FALSE= |
| 6314 | fi |
| 6315 | |
| 6316 | if test "$GCC" = yes; then |
| 6317 | GCC_TRUE= |
| 6318 | GCC_FALSE='#' |
| 6319 | else |
| 6320 | GCC_TRUE='#' |
| 6321 | GCC_FALSE= |
| 6322 | fi |
| 6323 | |
| 6324 | |
| 6325 | if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then |
| 6326 | NATIVE_OR_CROSS_LINKER_TRUE= |
| 6327 | NATIVE_OR_CROSS_LINKER_FALSE='#' |
| 6328 | else |
| 6329 | NATIVE_OR_CROSS_LINKER_TRUE='#' |
| 6330 | NATIVE_OR_CROSS_LINKER_FALSE= |
| 6331 | fi |
| 6332 | |
| 6333 | |
| 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 |
| 6335 | $as_echo_n "checking whether static linking works... " >&6; } |
| 6336 | if test "${gold_cv_lib_static+set}" = set; then : |
| 6337 | $as_echo_n "(cached) " >&6 |
| 6338 | else |
| 6339 | LDFLAGS_hold=$LDFLAGS |
| 6340 | LDFLAGS="$LDFLAGS -static" |
| 6341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6342 | /* end confdefs.h. */ |
| 6343 | |
| 6344 | void f() { } |
| 6345 | int |
| 6346 | main () |
| 6347 | { |
| 6348 | |
| 6349 | ; |
| 6350 | return 0; |
| 6351 | } |
| 6352 | _ACEOF |
| 6353 | if ac_fn_c_try_link "$LINENO"; then : |
| 6354 | gold_cv_lib_static=yes |
| 6355 | else |
| 6356 | gold_cv_lib_static=no |
| 6357 | fi |
| 6358 | rm -f core conftest.err conftest.$ac_objext \ |
| 6359 | conftest$ac_exeext conftest.$ac_ext |
| 6360 | LDFLAGS=$LDFLAGS_hold |
| 6361 | fi |
| 6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 |
| 6363 | $as_echo "$gold_cv_lib_static" >&6; } |
| 6364 | if test "$gold_cv_lib_static" = "yes"; then |
| 6365 | HAVE_STATIC_TRUE= |
| 6366 | HAVE_STATIC_FALSE='#' |
| 6367 | else |
| 6368 | HAVE_STATIC_TRUE='#' |
| 6369 | HAVE_STATIC_FALSE= |
| 6370 | fi |
| 6371 | |
| 6372 | |
| 6373 | if |
| 6374 | case $target_cpu in |
| 6375 | powerpc*) false;; |
| 6376 | x86_64) false;; |
| 6377 | sparc64) false;; |
| 6378 | s390x) false;; |
| 6379 | *) true;; |
| 6380 | esac; then |
| 6381 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= |
| 6382 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' |
| 6383 | else |
| 6384 | FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' |
| 6385 | FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= |
| 6386 | fi |
| 6387 | |
| 6388 | |
| 6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 |
| 6390 | $as_echo_n "checking for gcc >= 4.1... " >&6; } |
| 6391 | if test "${gold_cv_prog_gcc41+set}" = set; then : |
| 6392 | $as_echo_n "(cached) " >&6 |
| 6393 | else |
| 6394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6395 | /* end confdefs.h. */ |
| 6396 | |
| 6397 | #if !defined __GNUC__ |
| 6398 | error |
| 6399 | #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) |
| 6400 | error |
| 6401 | #endif |
| 6402 | |
| 6403 | _ACEOF |
| 6404 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6405 | gold_cv_prog_gcc41=yes |
| 6406 | else |
| 6407 | gold_cv_prog_gcc41=no |
| 6408 | fi |
| 6409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6410 | fi |
| 6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 |
| 6412 | $as_echo "$gold_cv_prog_gcc41" >&6; } |
| 6413 | |
| 6414 | save_CFLAGS="$CFLAGS" |
| 6415 | CFLAGS="$CFLAGS -mcmodel=medium" |
| 6416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6417 | /* end confdefs.h. */ |
| 6418 | int i; |
| 6419 | _ACEOF |
| 6420 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6421 | have_mcmodel_medium=yes |
| 6422 | else |
| 6423 | have_mcmodel_medium=no |
| 6424 | fi |
| 6425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6426 | CFLAGS="$save_CFLAGS" |
| 6427 | if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then |
| 6428 | MCMODEL_MEDIUM_TRUE= |
| 6429 | MCMODEL_MEDIUM_FALSE='#' |
| 6430 | else |
| 6431 | MCMODEL_MEDIUM_TRUE='#' |
| 6432 | MCMODEL_MEDIUM_FALSE= |
| 6433 | fi |
| 6434 | |
| 6435 | |
| 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5 |
| 6437 | $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; } |
| 6438 | if test "${gold_cv_merge_constants+set}" = set; then : |
| 6439 | $as_echo_n "(cached) " >&6 |
| 6440 | else |
| 6441 | |
| 6442 | save_CFLAGS="$CFLAGS" |
| 6443 | CFLAGS="$CFLAGS -fmerge-constants" |
| 6444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6445 | /* end confdefs.h. */ |
| 6446 | const char *s = "foo"; |
| 6447 | _ACEOF |
| 6448 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6449 | gold_cv_merge_constants=yes |
| 6450 | else |
| 6451 | gold_cv_merge_constants=no |
| 6452 | fi |
| 6453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6454 | CFLAGS="$save_CFLAGS" |
| 6455 | fi |
| 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5 |
| 6457 | $as_echo "$gold_cv_merge_constants" >&6; } |
| 6458 | |
| 6459 | if test "$gold_cv_merge_constants" = yes; then : |
| 6460 | MERGE_CONSTANTS_FLAG=-fmerge-constants |
| 6461 | else |
| 6462 | MERGE_CONSTANTS_FLAG= |
| 6463 | fi |
| 6464 | |
| 6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 |
| 6466 | $as_echo_n "checking for thread support... " >&6; } |
| 6467 | if test "${gold_cv_c_thread+set}" = set; then : |
| 6468 | $as_echo_n "(cached) " >&6 |
| 6469 | else |
| 6470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6471 | /* end confdefs.h. */ |
| 6472 | __thread int i = 1; |
| 6473 | _ACEOF |
| 6474 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6475 | gold_cv_c_thread=yes |
| 6476 | else |
| 6477 | gold_cv_c_thread=no |
| 6478 | fi |
| 6479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6480 | fi |
| 6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 |
| 6482 | $as_echo "$gold_cv_c_thread" >&6; } |
| 6483 | |
| 6484 | if test "$gold_cv_c_thread" = "yes"; then |
| 6485 | TLS_TRUE= |
| 6486 | TLS_FALSE='#' |
| 6487 | else |
| 6488 | TLS_TRUE='#' |
| 6489 | TLS_FALSE= |
| 6490 | fi |
| 6491 | |
| 6492 | |
| 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 |
| 6494 | $as_echo_n "checking for glibc >= 2.4... " >&6; } |
| 6495 | if test "${gold_cv_lib_glibc24+set}" = set; then : |
| 6496 | $as_echo_n "(cached) " >&6 |
| 6497 | else |
| 6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6499 | /* end confdefs.h. */ |
| 6500 | |
| 6501 | #include <features.h> |
| 6502 | #if !defined __GLIBC__ |
| 6503 | error |
| 6504 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) |
| 6505 | error |
| 6506 | #endif |
| 6507 | |
| 6508 | _ACEOF |
| 6509 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6510 | gold_cv_lib_glibc24=yes |
| 6511 | else |
| 6512 | gold_cv_lib_glibc24=no |
| 6513 | fi |
| 6514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6515 | fi |
| 6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 |
| 6517 | $as_echo "$gold_cv_lib_glibc24" >&6; } |
| 6518 | |
| 6519 | if test "$gold_cv_lib_glibc24" = "yes"; then |
| 6520 | STATIC_TLS_TRUE= |
| 6521 | STATIC_TLS_FALSE='#' |
| 6522 | else |
| 6523 | STATIC_TLS_TRUE='#' |
| 6524 | STATIC_TLS_FALSE= |
| 6525 | fi |
| 6526 | |
| 6527 | |
| 6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 |
| 6529 | $as_echo_n "checking for omp support... " >&6; } |
| 6530 | if test "${gold_cv_c_threadprivate+set}" = set; then : |
| 6531 | $as_echo_n "(cached) " >&6 |
| 6532 | else |
| 6533 | save_CFLAGS="$CFLAGS" |
| 6534 | CFLAGS="$CFLAGS -fopenmp" |
| 6535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6536 | /* end confdefs.h. */ |
| 6537 | |
| 6538 | #include <omp.h> |
| 6539 | int i; |
| 6540 | #pragma omp threadprivate (i) |
| 6541 | |
| 6542 | _ACEOF |
| 6543 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6544 | gold_cv_c_threadprivate=yes |
| 6545 | else |
| 6546 | gold_cv_c_threadprivate=no |
| 6547 | fi |
| 6548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6549 | CFLAGS="$save_CFLAGS" |
| 6550 | fi |
| 6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 |
| 6552 | $as_echo "$gold_cv_c_threadprivate" >&6; } |
| 6553 | if test "$gold_cv_c_threadprivate" = "yes"; then |
| 6554 | |
| 6555 | $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h |
| 6556 | |
| 6557 | fi |
| 6558 | if test "$gold_cv_c_threadprivate" = "yes"; then |
| 6559 | OMP_SUPPORT_TRUE= |
| 6560 | OMP_SUPPORT_FALSE='#' |
| 6561 | else |
| 6562 | OMP_SUPPORT_TRUE='#' |
| 6563 | OMP_SUPPORT_FALSE= |
| 6564 | fi |
| 6565 | |
| 6566 | |
| 6567 | save_CFLAGS="$CFLAGS" |
| 6568 | CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" |
| 6569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6570 | /* end confdefs.h. */ |
| 6571 | |
| 6572 | __thread int i; |
| 6573 | void foo (void) |
| 6574 | { |
| 6575 | i = 10; |
| 6576 | } |
| 6577 | |
| 6578 | _ACEOF |
| 6579 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6580 | have_tls_gnu2=yes |
| 6581 | else |
| 6582 | have_tls_gnu2=no |
| 6583 | fi |
| 6584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6585 | CFLAGS="$save_CFLAGS" |
| 6586 | if test "$have_tls_gnu2" = "yes"; then |
| 6587 | TLS_GNU2_DIALECT_TRUE= |
| 6588 | TLS_GNU2_DIALECT_FALSE='#' |
| 6589 | else |
| 6590 | TLS_GNU2_DIALECT_TRUE='#' |
| 6591 | TLS_GNU2_DIALECT_FALSE= |
| 6592 | fi |
| 6593 | |
| 6594 | |
| 6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 |
| 6596 | $as_echo_n "checking for glibc >= 2.9... " >&6; } |
| 6597 | if test "${gold_cv_lib_glibc29+set}" = set; then : |
| 6598 | $as_echo_n "(cached) " >&6 |
| 6599 | else |
| 6600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6601 | /* end confdefs.h. */ |
| 6602 | |
| 6603 | #include <features.h> |
| 6604 | #if !defined __GLIBC__ |
| 6605 | error |
| 6606 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) |
| 6607 | error |
| 6608 | #endif |
| 6609 | |
| 6610 | _ACEOF |
| 6611 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6612 | gold_cv_lib_glibc29=yes |
| 6613 | else |
| 6614 | gold_cv_lib_glibc29=no |
| 6615 | fi |
| 6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6617 | fi |
| 6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 |
| 6619 | $as_echo "$gold_cv_lib_glibc29" >&6; } |
| 6620 | |
| 6621 | if test "$gold_cv_lib_glibc29" = "yes"; then |
| 6622 | TLS_DESCRIPTORS_TRUE= |
| 6623 | TLS_DESCRIPTORS_FALSE='#' |
| 6624 | else |
| 6625 | TLS_DESCRIPTORS_TRUE='#' |
| 6626 | TLS_DESCRIPTORS_FALSE= |
| 6627 | fi |
| 6628 | |
| 6629 | |
| 6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 |
| 6631 | $as_echo_n "checking for -frandom-seed support... " >&6; } |
| 6632 | if test "${gold_cv_c_random_seed+set}" = set; then : |
| 6633 | $as_echo_n "(cached) " >&6 |
| 6634 | else |
| 6635 | save_CFLAGS="$CFLAGS" |
| 6636 | CFLAGS="$CFLAGS -frandom-seed=foo" |
| 6637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6638 | /* end confdefs.h. */ |
| 6639 | int i; |
| 6640 | _ACEOF |
| 6641 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6642 | gold_cv_c_random_seed=yes |
| 6643 | else |
| 6644 | gold_cv_c_random_seed=no |
| 6645 | fi |
| 6646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6647 | CFLAGS="$save_CFLAGS" |
| 6648 | fi |
| 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 |
| 6650 | $as_echo "$gold_cv_c_random_seed" >&6; } |
| 6651 | if test "$gold_cv_c_random_seed" = "yes"; then |
| 6652 | # In Makefile, '$@' will be expanded to be the name of the file |
| 6653 | # being built, providing a unique seed for each file. |
| 6654 | RANDOM_SEED_CFLAGS=-frandom-seed=\$@ |
| 6655 | fi |
| 6656 | |
| 6657 | |
| 6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 |
| 6659 | $as_echo_n "checking for glibc ifunc support... " >&6; } |
| 6660 | if test "${gold_cv_lib_glibc_ifunc+set}" = set; then : |
| 6661 | $as_echo_n "(cached) " >&6 |
| 6662 | else |
| 6663 | save_LDFLAGS="$LDFLAGS" |
| 6664 | LDFLAGS="$LDFLAGS -static" |
| 6665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6666 | /* end confdefs.h. */ |
| 6667 | |
| 6668 | #include <features.h> |
| 6669 | #if !defined __GLIBC__ |
| 6670 | error |
| 6671 | #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) |
| 6672 | error |
| 6673 | #endif |
| 6674 | void func (void) { } |
| 6675 | void invoke (void); |
| 6676 | __asm__(".type invoke, %gnu_indirect_function"); |
| 6677 | typedef void (*funcptr) (void); |
| 6678 | funcptr dispatch (void) __asm__ ("invoke"); |
| 6679 | funcptr dispatch (void) { return &func; } |
| 6680 | int |
| 6681 | main () |
| 6682 | { |
| 6683 | invoke(); |
| 6684 | ; |
| 6685 | return 0; |
| 6686 | } |
| 6687 | |
| 6688 | _ACEOF |
| 6689 | if ac_fn_c_try_link "$LINENO"; then : |
| 6690 | |
| 6691 | if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then |
| 6692 | gold_cv_lib_glibc_ifunc=both |
| 6693 | else |
| 6694 | gold_cv_lib_glibc_ifunc=dyn |
| 6695 | fi |
| 6696 | else |
| 6697 | gold_cv_lib_glibc_ifunc=no |
| 6698 | fi |
| 6699 | rm -f core conftest.err conftest.$ac_objext \ |
| 6700 | conftest$ac_exeext conftest.$ac_ext |
| 6701 | LDFLAGS="$save_LDFLAGS" |
| 6702 | fi |
| 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 |
| 6704 | $as_echo "$gold_cv_lib_glibc_ifunc" >&6; } |
| 6705 | |
| 6706 | if test "$gold_cv_lib_glibc_ifunc" != "no"; then |
| 6707 | IFUNC_TRUE= |
| 6708 | IFUNC_FALSE='#' |
| 6709 | else |
| 6710 | IFUNC_TRUE='#' |
| 6711 | IFUNC_FALSE= |
| 6712 | fi |
| 6713 | |
| 6714 | if test "$gold_cv_lib_glibc_ifunc" = "both"; then |
| 6715 | IFUNC_STATIC_TRUE= |
| 6716 | IFUNC_STATIC_FALSE='#' |
| 6717 | else |
| 6718 | IFUNC_STATIC_TRUE='#' |
| 6719 | IFUNC_STATIC_FALSE= |
| 6720 | fi |
| 6721 | |
| 6722 | |
| 6723 | |
| 6724 | # Set the 'development' global. |
| 6725 | . $srcdir/../bfd/development.sh |
| 6726 | |
| 6727 | # Set acp_cpp_for_build variable |
| 6728 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" |
| 6729 | |
| 6730 | # Default set of GCC warnings to enable. |
| 6731 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
| 6732 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
| 6733 | |
| 6734 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. |
| 6735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6736 | /* end confdefs.h. */ |
| 6737 | __GNUC__ |
| 6738 | _ACEOF |
| 6739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6740 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : |
| 6741 | |
| 6742 | else |
| 6743 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" |
| 6744 | fi |
| 6745 | rm -f conftest* |
| 6746 | |
| 6747 | |
| 6748 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
| 6749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6750 | /* end confdefs.h. */ |
| 6751 | __GNUC__ |
| 6752 | _ACEOF |
| 6753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6754 | $EGREP "^[0-4]$" >/dev/null 2>&1; then : |
| 6755 | |
| 6756 | else |
| 6757 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" |
| 6758 | fi |
| 6759 | rm -f conftest* |
| 6760 | |
| 6761 | |
| 6762 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
| 6763 | WARN_WRITE_STRINGS="" |
| 6764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6765 | /* end confdefs.h. */ |
| 6766 | __GNUC__ |
| 6767 | _ACEOF |
| 6768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6769 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : |
| 6770 | |
| 6771 | else |
| 6772 | WARN_WRITE_STRINGS="-Wwrite-strings" |
| 6773 | fi |
| 6774 | rm -f conftest* |
| 6775 | |
| 6776 | |
| 6777 | # Verify CC_FOR_BUILD to be compatible with warning flags |
| 6778 | |
| 6779 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. |
| 6780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6781 | /* end confdefs.h. */ |
| 6782 | __GNUC__ |
| 6783 | _ACEOF |
| 6784 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | |
| 6785 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : |
| 6786 | |
| 6787 | else |
| 6788 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" |
| 6789 | fi |
| 6790 | rm -f conftest* |
| 6791 | |
| 6792 | |
| 6793 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
| 6794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6795 | /* end confdefs.h. */ |
| 6796 | __GNUC__ |
| 6797 | _ACEOF |
| 6798 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | |
| 6799 | $EGREP "^[0-4]$" >/dev/null 2>&1; then : |
| 6800 | |
| 6801 | else |
| 6802 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" |
| 6803 | fi |
| 6804 | rm -f conftest* |
| 6805 | |
| 6806 | |
| 6807 | # Check whether --enable-werror was given. |
| 6808 | if test "${enable_werror+set}" = set; then : |
| 6809 | enableval=$enable_werror; case "${enableval}" in |
| 6810 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 6811 | no | n) ERROR_ON_WARNING="no" ;; |
| 6812 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
| 6813 | esac |
| 6814 | fi |
| 6815 | |
| 6816 | |
| 6817 | # Disable -Wformat by default when using gcc on mingw |
| 6818 | case "${host}" in |
| 6819 | *-*-mingw32*) |
| 6820 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 6821 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" |
| 6822 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
| 6823 | fi |
| 6824 | ;; |
| 6825 | *) ;; |
| 6826 | esac |
| 6827 | |
| 6828 | # Enable -Werror by default when using gcc. Turn it off for releases. |
| 6829 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then |
| 6830 | ERROR_ON_WARNING=yes |
| 6831 | fi |
| 6832 | |
| 6833 | NO_WERROR= |
| 6834 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 6835 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
| 6836 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
| 6837 | NO_WERROR="-Wno-error" |
| 6838 | fi |
| 6839 | |
| 6840 | if test "${GCC}" = yes ; then |
| 6841 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
| 6842 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
| 6843 | fi |
| 6844 | |
| 6845 | # Check whether --enable-build-warnings was given. |
| 6846 | if test "${enable_build_warnings+set}" = set; then : |
| 6847 | enableval=$enable_build_warnings; case "${enableval}" in |
| 6848 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
| 6849 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; |
| 6850 | no) if test "${GCC}" = yes ; then |
| 6851 | WARN_CFLAGS="-w" |
| 6852 | WARN_CFLAGS_FOR_BUILD="-w" |
| 6853 | fi;; |
| 6854 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 6855 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
| 6856 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; |
| 6857 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 6858 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
| 6859 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; |
| 6860 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 6861 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 6862 | esac |
| 6863 | fi |
| 6864 | |
| 6865 | |
| 6866 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
| 6867 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 |
| 6868 | fi |
| 6869 | |
| 6870 | |
| 6871 | |
| 6872 | |
| 6873 | |
| 6874 | |
| 6875 | |
| 6876 | WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` |
| 6877 | |
| 6878 | |
| 6879 | |
| 6880 | # Check whether --with-gold-ldflags was given. |
| 6881 | if test "${with_gold_ldflags+set}" = set; then : |
| 6882 | withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then |
| 6883 | GOLD_LDFLAGS= |
| 6884 | else |
| 6885 | GOLD_LDFLAGS=$withval |
| 6886 | fi |
| 6887 | else |
| 6888 | GOLD_LDFLAGS= |
| 6889 | fi |
| 6890 | |
| 6891 | |
| 6892 | |
| 6893 | |
| 6894 | # Check whether --with-gold-ldadd was given. |
| 6895 | if test "${with_gold_ldadd+set}" = set; then : |
| 6896 | withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then |
| 6897 | GOLD_LDADD= |
| 6898 | else |
| 6899 | GOLD_LDADD=$withval |
| 6900 | fi |
| 6901 | else |
| 6902 | GOLD_LDADD= |
| 6903 | fi |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
| 6908 | |
| 6909 | |
| 6910 | for ac_header in sys/mman.h |
| 6911 | do : |
| 6912 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| 6913 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : |
| 6914 | cat >>confdefs.h <<_ACEOF |
| 6915 | #define HAVE_SYS_MMAN_H 1 |
| 6916 | _ACEOF |
| 6917 | |
| 6918 | fi |
| 6919 | |
| 6920 | done |
| 6921 | |
| 6922 | for ac_func in chsize mmap |
| 6923 | do : |
| 6924 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6925 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6926 | eval as_val=\$$as_ac_var |
| 6927 | if test "x$as_val" = x""yes; then : |
| 6928 | cat >>confdefs.h <<_ACEOF |
| 6929 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6930 | _ACEOF |
| 6931 | |
| 6932 | fi |
| 6933 | done |
| 6934 | |
| 6935 | for ac_func in pread ftruncate ffsll |
| 6936 | do : |
| 6937 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6938 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6939 | eval as_val=\$$as_ac_var |
| 6940 | if test "x$as_val" = x""yes; then : |
| 6941 | cat >>confdefs.h <<_ACEOF |
| 6942 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6943 | _ACEOF |
| 6944 | |
| 6945 | else |
| 6946 | case " $LIBOBJS " in |
| 6947 | *" $ac_func.$ac_objext "* ) ;; |
| 6948 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 6949 | ;; |
| 6950 | esac |
| 6951 | |
| 6952 | fi |
| 6953 | done |
| 6954 | |
| 6955 | |
| 6956 | |
| 6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 |
| 6958 | $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } |
| 6959 | if test "${gold_cv_lib_mremap_maymove+set}" = set; then : |
| 6960 | $as_echo_n "(cached) " >&6 |
| 6961 | else |
| 6962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6963 | /* end confdefs.h. */ |
| 6964 | |
| 6965 | |
| 6966 | #include <sys/mman.h> |
| 6967 | void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } |
| 6968 | |
| 6969 | int |
| 6970 | main () |
| 6971 | { |
| 6972 | |
| 6973 | ; |
| 6974 | return 0; |
| 6975 | } |
| 6976 | _ACEOF |
| 6977 | if ac_fn_c_try_link "$LINENO"; then : |
| 6978 | gold_cv_lib_mremap_maymove=yes |
| 6979 | else |
| 6980 | gold_cv_lib_mremap_maymove=no |
| 6981 | fi |
| 6982 | rm -f core conftest.err conftest.$ac_objext \ |
| 6983 | conftest$ac_exeext conftest.$ac_ext |
| 6984 | fi |
| 6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 |
| 6986 | $as_echo "$gold_cv_lib_mremap_maymove" >&6; } |
| 6987 | if test "$gold_cv_lib_mremap_maymove" = "yes"; then |
| 6988 | |
| 6989 | $as_echo "#define HAVE_MREMAP 1" >>confdefs.h |
| 6990 | |
| 6991 | else |
| 6992 | case " $LIBOBJS " in |
| 6993 | *" mremap.$ac_objext "* ) ;; |
| 6994 | *) LIBOBJS="$LIBOBJS mremap.$ac_objext" |
| 6995 | ;; |
| 6996 | esac |
| 6997 | |
| 6998 | fi |
| 6999 | |
| 7000 | # Link in zlib if we can. This allows us to write compressed sections. |
| 7001 | |
| 7002 | # Use the system's zlib library. |
| 7003 | zlibdir="-L\$(top_builddir)/../zlib" |
| 7004 | zlibinc="-I\$(top_srcdir)/../zlib" |
| 7005 | |
| 7006 | # Check whether --with-system-zlib was given. |
| 7007 | if test "${with_system_zlib+set}" = set; then : |
| 7008 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
| 7009 | zlibdir= |
| 7010 | zlibinc= |
| 7011 | fi |
| 7012 | |
| 7013 | fi |
| 7014 | |
| 7015 | |
| 7016 | |
| 7017 | |
| 7018 | |
| 7019 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" |
| 7020 | if test "x$ac_cv_have_decl_basename" = x""yes; then : |
| 7021 | ac_have_decl=1 |
| 7022 | else |
| 7023 | ac_have_decl=0 |
| 7024 | fi |
| 7025 | |
| 7026 | cat >>confdefs.h <<_ACEOF |
| 7027 | #define HAVE_DECL_BASENAME $ac_have_decl |
| 7028 | _ACEOF |
| 7029 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
| 7030 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : |
| 7031 | ac_have_decl=1 |
| 7032 | else |
| 7033 | ac_have_decl=0 |
| 7034 | fi |
| 7035 | |
| 7036 | cat >>confdefs.h <<_ACEOF |
| 7037 | #define HAVE_DECL_FFS $ac_have_decl |
| 7038 | _ACEOF |
| 7039 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
| 7040 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : |
| 7041 | ac_have_decl=1 |
| 7042 | else |
| 7043 | ac_have_decl=0 |
| 7044 | fi |
| 7045 | |
| 7046 | cat >>confdefs.h <<_ACEOF |
| 7047 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
| 7048 | _ACEOF |
| 7049 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
| 7050 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : |
| 7051 | ac_have_decl=1 |
| 7052 | else |
| 7053 | ac_have_decl=0 |
| 7054 | fi |
| 7055 | |
| 7056 | cat >>confdefs.h <<_ACEOF |
| 7057 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
| 7058 | _ACEOF |
| 7059 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
| 7060 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : |
| 7061 | ac_have_decl=1 |
| 7062 | else |
| 7063 | ac_have_decl=0 |
| 7064 | fi |
| 7065 | |
| 7066 | cat >>confdefs.h <<_ACEOF |
| 7067 | #define HAVE_DECL_SNPRINTF $ac_have_decl |
| 7068 | _ACEOF |
| 7069 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
| 7070 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : |
| 7071 | ac_have_decl=1 |
| 7072 | else |
| 7073 | ac_have_decl=0 |
| 7074 | fi |
| 7075 | |
| 7076 | cat >>confdefs.h <<_ACEOF |
| 7077 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| 7078 | _ACEOF |
| 7079 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
| 7080 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : |
| 7081 | ac_have_decl=1 |
| 7082 | else |
| 7083 | ac_have_decl=0 |
| 7084 | fi |
| 7085 | |
| 7086 | cat >>confdefs.h <<_ACEOF |
| 7087 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
| 7088 | _ACEOF |
| 7089 | |
| 7090 | |
| 7091 | save_CFLAGS="$CFLAGS" |
| 7092 | CFLAGS="$CFLAGS -Werror -gpubnames" |
| 7093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7094 | /* end confdefs.h. */ |
| 7095 | int i; |
| 7096 | _ACEOF |
| 7097 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7098 | have_pubnames=yes |
| 7099 | else |
| 7100 | have_pubnames=no |
| 7101 | fi |
| 7102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7103 | CFLAGS="$save_CFLAGS" |
| 7104 | if test "$have_pubnames" = "yes"; then |
| 7105 | HAVE_PUBNAMES_TRUE= |
| 7106 | HAVE_PUBNAMES_FALSE='#' |
| 7107 | else |
| 7108 | HAVE_PUBNAMES_TRUE='#' |
| 7109 | HAVE_PUBNAMES_FALSE= |
| 7110 | fi |
| 7111 | |
| 7112 | |
| 7113 | save_CFLAGS="$CFLAGS" |
| 7114 | CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin" |
| 7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7116 | /* end confdefs.h. */ |
| 7117 | int i; |
| 7118 | _ACEOF |
| 7119 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7120 | have_no_use_linker_plugin=yes |
| 7121 | else |
| 7122 | have_no_use_linker_plugin=no |
| 7123 | fi |
| 7124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7125 | CFLAGS="$save_CFLAGS" |
| 7126 | if test "$have_no_use_linker_plugin" = "yes"; then |
| 7127 | HAVE_NO_USE_LINKER_PLUGIN_TRUE= |
| 7128 | HAVE_NO_USE_LINKER_PLUGIN_FALSE='#' |
| 7129 | else |
| 7130 | HAVE_NO_USE_LINKER_PLUGIN_TRUE='#' |
| 7131 | HAVE_NO_USE_LINKER_PLUGIN_FALSE= |
| 7132 | fi |
| 7133 | |
| 7134 | |
| 7135 | ac_ext=cpp |
| 7136 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7140 | |
| 7141 | |
| 7142 | |
| 7143 | ac_ext=cpp |
| 7144 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7145 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7146 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7147 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7149 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7150 | if test -z "$CXXCPP"; then |
| 7151 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7152 | $as_echo_n "(cached) " >&6 |
| 7153 | else |
| 7154 | # Double quotes because CXXCPP needs to be expanded |
| 7155 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7156 | do |
| 7157 | ac_preproc_ok=false |
| 7158 | for ac_cxx_preproc_warn_flag in '' yes |
| 7159 | do |
| 7160 | # Use a header file that comes with gcc, so configuring glibc |
| 7161 | # with a fresh cross-compiler works. |
| 7162 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7163 | # <limits.h> exists even on freestanding compilers. |
| 7164 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7165 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7167 | /* end confdefs.h. */ |
| 7168 | #ifdef __STDC__ |
| 7169 | # include <limits.h> |
| 7170 | #else |
| 7171 | # include <assert.h> |
| 7172 | #endif |
| 7173 | Syntax error |
| 7174 | _ACEOF |
| 7175 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7176 | |
| 7177 | else |
| 7178 | # Broken: fails on valid input. |
| 7179 | continue |
| 7180 | fi |
| 7181 | rm -f conftest.err conftest.$ac_ext |
| 7182 | |
| 7183 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7184 | # can be detected and how. |
| 7185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7186 | /* end confdefs.h. */ |
| 7187 | #include <ac_nonexistent.h> |
| 7188 | _ACEOF |
| 7189 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7190 | # Broken: success on invalid input. |
| 7191 | continue |
| 7192 | else |
| 7193 | # Passes both tests. |
| 7194 | ac_preproc_ok=: |
| 7195 | break |
| 7196 | fi |
| 7197 | rm -f conftest.err conftest.$ac_ext |
| 7198 | |
| 7199 | done |
| 7200 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7201 | rm -f conftest.err conftest.$ac_ext |
| 7202 | if $ac_preproc_ok; then : |
| 7203 | break |
| 7204 | fi |
| 7205 | |
| 7206 | done |
| 7207 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7208 | |
| 7209 | fi |
| 7210 | CXXCPP=$ac_cv_prog_CXXCPP |
| 7211 | else |
| 7212 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7213 | fi |
| 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7215 | $as_echo "$CXXCPP" >&6; } |
| 7216 | ac_preproc_ok=false |
| 7217 | for ac_cxx_preproc_warn_flag in '' yes |
| 7218 | do |
| 7219 | # Use a header file that comes with gcc, so configuring glibc |
| 7220 | # with a fresh cross-compiler works. |
| 7221 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7222 | # <limits.h> exists even on freestanding compilers. |
| 7223 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7224 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7226 | /* end confdefs.h. */ |
| 7227 | #ifdef __STDC__ |
| 7228 | # include <limits.h> |
| 7229 | #else |
| 7230 | # include <assert.h> |
| 7231 | #endif |
| 7232 | Syntax error |
| 7233 | _ACEOF |
| 7234 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7235 | |
| 7236 | else |
| 7237 | # Broken: fails on valid input. |
| 7238 | continue |
| 7239 | fi |
| 7240 | rm -f conftest.err conftest.$ac_ext |
| 7241 | |
| 7242 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7243 | # can be detected and how. |
| 7244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7245 | /* end confdefs.h. */ |
| 7246 | #include <ac_nonexistent.h> |
| 7247 | _ACEOF |
| 7248 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7249 | # Broken: success on invalid input. |
| 7250 | continue |
| 7251 | else |
| 7252 | # Passes both tests. |
| 7253 | ac_preproc_ok=: |
| 7254 | break |
| 7255 | fi |
| 7256 | rm -f conftest.err conftest.$ac_ext |
| 7257 | |
| 7258 | done |
| 7259 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7260 | rm -f conftest.err conftest.$ac_ext |
| 7261 | if $ac_preproc_ok; then : |
| 7262 | |
| 7263 | else |
| 7264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7266 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 7267 | See \`config.log' for more details." "$LINENO" 5; } |
| 7268 | fi |
| 7269 | |
| 7270 | ac_ext=cpp |
| 7271 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7272 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7273 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7274 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7275 | |
| 7276 | |
| 7277 | for ac_header in unordered_set unordered_map |
| 7278 | do : |
| 7279 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7280 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7281 | eval as_val=\$$as_ac_Header |
| 7282 | if test "x$as_val" = x""yes; then : |
| 7283 | cat >>confdefs.h <<_ACEOF |
| 7284 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7285 | _ACEOF |
| 7286 | |
| 7287 | fi |
| 7288 | |
| 7289 | done |
| 7290 | |
| 7291 | for ac_header in tr1/unordered_set tr1/unordered_map |
| 7292 | do : |
| 7293 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7294 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7295 | eval as_val=\$$as_ac_Header |
| 7296 | if test "x$as_val" = x""yes; then : |
| 7297 | cat >>confdefs.h <<_ACEOF |
| 7298 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7299 | _ACEOF |
| 7300 | |
| 7301 | fi |
| 7302 | |
| 7303 | done |
| 7304 | |
| 7305 | for ac_header in ext/hash_map ext/hash_set |
| 7306 | do : |
| 7307 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7308 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7309 | eval as_val=\$$as_ac_Header |
| 7310 | if test "x$as_val" = x""yes; then : |
| 7311 | cat >>confdefs.h <<_ACEOF |
| 7312 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7313 | _ACEOF |
| 7314 | |
| 7315 | fi |
| 7316 | |
| 7317 | done |
| 7318 | |
| 7319 | for ac_header in byteswap.h |
| 7320 | do : |
| 7321 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" |
| 7322 | if test "x$ac_cv_header_byteswap_h" = x""yes; then : |
| 7323 | cat >>confdefs.h <<_ACEOF |
| 7324 | #define HAVE_BYTESWAP_H 1 |
| 7325 | _ACEOF |
| 7326 | |
| 7327 | fi |
| 7328 | |
| 7329 | done |
| 7330 | |
| 7331 | |
| 7332 | for ac_header in windows.h |
| 7333 | do : |
| 7334 | ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 7335 | if test "x$ac_cv_header_windows_h" = x""yes; then : |
| 7336 | cat >>confdefs.h <<_ACEOF |
| 7337 | #define HAVE_WINDOWS_H 1 |
| 7338 | _ACEOF |
| 7339 | |
| 7340 | fi |
| 7341 | |
| 7342 | done |
| 7343 | |
| 7344 | for ac_header in dlfcn.h |
| 7345 | do : |
| 7346 | ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 7347 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7348 | cat >>confdefs.h <<_ACEOF |
| 7349 | #define HAVE_DLFCN_H 1 |
| 7350 | _ACEOF |
| 7351 | |
| 7352 | fi |
| 7353 | |
| 7354 | done |
| 7355 | |
| 7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 7357 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| 7358 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 7359 | $as_echo_n "(cached) " >&6 |
| 7360 | else |
| 7361 | ac_func_search_save_LIBS=$LIBS |
| 7362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7363 | /* end confdefs.h. */ |
| 7364 | |
| 7365 | /* Override any GCC internal prototype to avoid an error. |
| 7366 | Use char because int might match the return type of a GCC |
| 7367 | builtin and then its argument prototype would still apply. */ |
| 7368 | #ifdef __cplusplus |
| 7369 | extern "C" |
| 7370 | #endif |
| 7371 | char dlopen (); |
| 7372 | int |
| 7373 | main () |
| 7374 | { |
| 7375 | return dlopen (); |
| 7376 | ; |
| 7377 | return 0; |
| 7378 | } |
| 7379 | _ACEOF |
| 7380 | for ac_lib in '' dl dld; do |
| 7381 | if test -z "$ac_lib"; then |
| 7382 | ac_res="none required" |
| 7383 | else |
| 7384 | ac_res=-l$ac_lib |
| 7385 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7386 | fi |
| 7387 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 7388 | ac_cv_search_dlopen=$ac_res |
| 7389 | fi |
| 7390 | rm -f core conftest.err conftest.$ac_objext \ |
| 7391 | conftest$ac_exeext |
| 7392 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 7393 | break |
| 7394 | fi |
| 7395 | done |
| 7396 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 7397 | |
| 7398 | else |
| 7399 | ac_cv_search_dlopen=no |
| 7400 | fi |
| 7401 | rm conftest.$ac_ext |
| 7402 | LIBS=$ac_func_search_save_LIBS |
| 7403 | fi |
| 7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 7405 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 7406 | ac_res=$ac_cv_search_dlopen |
| 7407 | if test "$ac_res" != no; then : |
| 7408 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7409 | |
| 7410 | fi |
| 7411 | |
| 7412 | case "$ac_cv_search_dlopen" in |
| 7413 | no*) DLOPEN_LIBS="";; |
| 7414 | *) DLOPEN_LIBS="$ac_cv_search_dlopen";; |
| 7415 | esac |
| 7416 | |
| 7417 | |
| 7418 | for ac_func in mallinfo posix_fallocate fallocate readv sysconf times |
| 7419 | do : |
| 7420 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7421 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7422 | eval as_val=\$$as_ac_var |
| 7423 | if test "x$as_val" = x""yes; then : |
| 7424 | cat >>confdefs.h <<_ACEOF |
| 7425 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7426 | _ACEOF |
| 7427 | |
| 7428 | fi |
| 7429 | done |
| 7430 | |
| 7431 | ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" |
| 7432 | if test "x$ac_cv_have_decl_basename" = x""yes; then : |
| 7433 | ac_have_decl=1 |
| 7434 | else |
| 7435 | ac_have_decl=0 |
| 7436 | fi |
| 7437 | |
| 7438 | cat >>confdefs.h <<_ACEOF |
| 7439 | #define HAVE_DECL_BASENAME $ac_have_decl |
| 7440 | _ACEOF |
| 7441 | ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
| 7442 | if test "x$ac_cv_have_decl_ffs" = x""yes; then : |
| 7443 | ac_have_decl=1 |
| 7444 | else |
| 7445 | ac_have_decl=0 |
| 7446 | fi |
| 7447 | |
| 7448 | cat >>confdefs.h <<_ACEOF |
| 7449 | #define HAVE_DECL_FFS $ac_have_decl |
| 7450 | _ACEOF |
| 7451 | ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
| 7452 | if test "x$ac_cv_have_decl_asprintf" = x""yes; then : |
| 7453 | ac_have_decl=1 |
| 7454 | else |
| 7455 | ac_have_decl=0 |
| 7456 | fi |
| 7457 | |
| 7458 | cat >>confdefs.h <<_ACEOF |
| 7459 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
| 7460 | _ACEOF |
| 7461 | ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
| 7462 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : |
| 7463 | ac_have_decl=1 |
| 7464 | else |
| 7465 | ac_have_decl=0 |
| 7466 | fi |
| 7467 | |
| 7468 | cat >>confdefs.h <<_ACEOF |
| 7469 | #define HAVE_DECL_VASPRINTF $ac_have_decl |
| 7470 | _ACEOF |
| 7471 | ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
| 7472 | if test "x$ac_cv_have_decl_snprintf" = x""yes; then : |
| 7473 | ac_have_decl=1 |
| 7474 | else |
| 7475 | ac_have_decl=0 |
| 7476 | fi |
| 7477 | |
| 7478 | cat >>confdefs.h <<_ACEOF |
| 7479 | #define HAVE_DECL_SNPRINTF $ac_have_decl |
| 7480 | _ACEOF |
| 7481 | ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
| 7482 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : |
| 7483 | ac_have_decl=1 |
| 7484 | else |
| 7485 | ac_have_decl=0 |
| 7486 | fi |
| 7487 | |
| 7488 | cat >>confdefs.h <<_ACEOF |
| 7489 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| 7490 | _ACEOF |
| 7491 | ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
| 7492 | if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : |
| 7493 | ac_have_decl=1 |
| 7494 | else |
| 7495 | ac_have_decl=0 |
| 7496 | fi |
| 7497 | |
| 7498 | cat >>confdefs.h <<_ACEOF |
| 7499 | #define HAVE_DECL_STRVERSCMP $ac_have_decl |
| 7500 | _ACEOF |
| 7501 | ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" |
| 7502 | if test "x$ac_cv_have_decl_strndup" = x""yes; then : |
| 7503 | ac_have_decl=1 |
| 7504 | else |
| 7505 | ac_have_decl=0 |
| 7506 | fi |
| 7507 | |
| 7508 | cat >>confdefs.h <<_ACEOF |
| 7509 | #define HAVE_DECL_STRNDUP $ac_have_decl |
| 7510 | _ACEOF |
| 7511 | ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" |
| 7512 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : |
| 7513 | ac_have_decl=1 |
| 7514 | else |
| 7515 | ac_have_decl=0 |
| 7516 | fi |
| 7517 | |
| 7518 | cat >>confdefs.h <<_ACEOF |
| 7519 | #define HAVE_DECL_MEMMEM $ac_have_decl |
| 7520 | _ACEOF |
| 7521 | |
| 7522 | |
| 7523 | # Use of ::std::tr1::unordered_map::rehash causes undefined symbols |
| 7524 | # at link time with some versions of GCC. |
| 7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 |
| 7526 | $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } |
| 7527 | if test "${gold_cv_unordered_map_rehash+set}" = set; then : |
| 7528 | $as_echo_n "(cached) " >&6 |
| 7529 | else |
| 7530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7531 | /* end confdefs.h. */ |
| 7532 | |
| 7533 | #include <tr1/unordered_map> |
| 7534 | void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } |
| 7535 | |
| 7536 | int |
| 7537 | main () |
| 7538 | { |
| 7539 | |
| 7540 | ; |
| 7541 | return 0; |
| 7542 | } |
| 7543 | _ACEOF |
| 7544 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 7545 | gold_cv_unordered_map_rehash=yes |
| 7546 | else |
| 7547 | gold_cv_unordered_map_rehash=no |
| 7548 | fi |
| 7549 | rm -f core conftest.err conftest.$ac_objext \ |
| 7550 | conftest$ac_exeext conftest.$ac_ext |
| 7551 | fi |
| 7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 |
| 7553 | $as_echo "$gold_cv_unordered_map_rehash" >&6; } |
| 7554 | if test "$gold_cv_unordered_map_rehash" = "yes"; then |
| 7555 | |
| 7556 | $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h |
| 7557 | |
| 7558 | fi |
| 7559 | |
| 7560 | # Use of tr1/unordered_map with off_t as a key is not supported on GCC |
| 7561 | # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type. |
| 7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5 |
| 7563 | $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; } |
| 7564 | if test "${gold_cv_hash_off_t+set}" = set; then : |
| 7565 | $as_echo_n "(cached) " >&6 |
| 7566 | else |
| 7567 | CXXFLAGS_hold=$CXXFLAGS |
| 7568 | CXXFLAGS="$CXXFLAGS $LFS_CFLAGS" |
| 7569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7570 | /* end confdefs.h. */ |
| 7571 | |
| 7572 | #include <sys/types.h> |
| 7573 | #include <tr1/unordered_map> |
| 7574 | std::tr1::hash<off_t> h; |
| 7575 | |
| 7576 | _ACEOF |
| 7577 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7578 | gold_cv_hash_off_t=yes |
| 7579 | else |
| 7580 | gold_cv_hash_off_t=no |
| 7581 | fi |
| 7582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7583 | CXXFLAGS=$CXXFLAGS_hold |
| 7584 | fi |
| 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5 |
| 7586 | $as_echo "$gold_cv_hash_off_t" >&6; } |
| 7587 | if test "$gold_cv_hash_off_t" = "yes"; then |
| 7588 | |
| 7589 | $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h |
| 7590 | |
| 7591 | fi |
| 7592 | |
| 7593 | # gcc 4.3.0 doesn't recognize the printf attribute on a template |
| 7594 | # function. Check for that. This is gcc bug 35546. This test can |
| 7595 | # probably be removed after the bug has been fixed for a while. |
| 7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 |
| 7597 | $as_echo_n "checking whether we can use attributes with template functions... " >&6; } |
| 7598 | if test "${gold_cv_template_attribute+set}" = set; then : |
| 7599 | $as_echo_n "(cached) " >&6 |
| 7600 | else |
| 7601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7602 | /* end confdefs.h. */ |
| 7603 | |
| 7604 | template<typename T> extern void foo(const char*, ...) |
| 7605 | __attribute__ ((__format__ (__printf__, 1, 2))); |
| 7606 | template<typename T> void foo(const char* format, ...) {} |
| 7607 | void bar() { foo<int>("%s\n", "foo"); } |
| 7608 | |
| 7609 | _ACEOF |
| 7610 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7611 | gold_cv_template_attribute=yes |
| 7612 | else |
| 7613 | gold_cv_template_attribute=no |
| 7614 | fi |
| 7615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7616 | fi |
| 7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 |
| 7618 | $as_echo "$gold_cv_template_attribute" >&6; } |
| 7619 | if test "$gold_cv_template_attribute" = "yes"; then |
| 7620 | |
| 7621 | $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h |
| 7622 | |
| 7623 | fi |
| 7624 | |
| 7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 |
| 7626 | $as_echo_n "checking for struct stat::st_mtim.... " >&6; } |
| 7627 | if test "${gold_cv_stat_st_mtim+set}" = set; then : |
| 7628 | $as_echo_n "(cached) " >&6 |
| 7629 | else |
| 7630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7631 | /* end confdefs.h. */ |
| 7632 | |
| 7633 | #include <sys/stat.h> |
| 7634 | long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} |
| 7635 | |
| 7636 | int |
| 7637 | main () |
| 7638 | { |
| 7639 | |
| 7640 | ; |
| 7641 | return 0; |
| 7642 | } |
| 7643 | _ACEOF |
| 7644 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7645 | gold_cv_stat_st_mtim=yes |
| 7646 | else |
| 7647 | gold_cv_stat_st_mtim=no |
| 7648 | fi |
| 7649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7650 | fi |
| 7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 |
| 7652 | $as_echo "$gold_cv_stat_st_mtim" >&6; } |
| 7653 | if test "$gold_cv_stat_st_mtim" = "yes"; then |
| 7654 | |
| 7655 | $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h |
| 7656 | |
| 7657 | fi |
| 7658 | |
| 7659 | ac_ext=c |
| 7660 | ac_cpp='$CPP $CPPFLAGS' |
| 7661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7664 | |
| 7665 | |
| 7666 | for ac_header in locale.h |
| 7667 | do : |
| 7668 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
| 7669 | if test "x$ac_cv_header_locale_h" = x""yes; then : |
| 7670 | cat >>confdefs.h <<_ACEOF |
| 7671 | #define HAVE_LOCALE_H 1 |
| 7672 | _ACEOF |
| 7673 | |
| 7674 | fi |
| 7675 | |
| 7676 | done |
| 7677 | |
| 7678 | for ac_func in setlocale |
| 7679 | do : |
| 7680 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
| 7681 | if test "x$ac_cv_func_setlocale" = x""yes; then : |
| 7682 | cat >>confdefs.h <<_ACEOF |
| 7683 | #define HAVE_SETLOCALE 1 |
| 7684 | _ACEOF |
| 7685 | |
| 7686 | fi |
| 7687 | done |
| 7688 | |
| 7689 | |
| 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 7691 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 7692 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : |
| 7693 | $as_echo_n "(cached) " >&6 |
| 7694 | else |
| 7695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7696 | /* end confdefs.h. */ |
| 7697 | #include <locale.h> |
| 7698 | int |
| 7699 | main () |
| 7700 | { |
| 7701 | return LC_MESSAGES |
| 7702 | ; |
| 7703 | return 0; |
| 7704 | } |
| 7705 | _ACEOF |
| 7706 | if ac_fn_c_try_link "$LINENO"; then : |
| 7707 | am_cv_val_LC_MESSAGES=yes |
| 7708 | else |
| 7709 | am_cv_val_LC_MESSAGES=no |
| 7710 | fi |
| 7711 | rm -f core conftest.err conftest.$ac_objext \ |
| 7712 | conftest$ac_exeext conftest.$ac_ext |
| 7713 | fi |
| 7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
| 7715 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
| 7716 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 7717 | |
| 7718 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 7719 | |
| 7720 | fi |
| 7721 | |
| 7722 | |
| 7723 | |
| 7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 7725 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 7726 | # Check whether --enable-maintainer-mode was given. |
| 7727 | if test "${enable_maintainer_mode+set}" = set; then : |
| 7728 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 7729 | else |
| 7730 | USE_MAINTAINER_MODE=no |
| 7731 | fi |
| 7732 | |
| 7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 7734 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 7735 | if test $USE_MAINTAINER_MODE = yes; then |
| 7736 | MAINTAINER_MODE_TRUE= |
| 7737 | MAINTAINER_MODE_FALSE='#' |
| 7738 | else |
| 7739 | MAINTAINER_MODE_TRUE='#' |
| 7740 | MAINTAINER_MODE_FALSE= |
| 7741 | fi |
| 7742 | |
| 7743 | MAINT=$MAINTAINER_MODE_TRUE |
| 7744 | |
| 7745 | |
| 7746 | |
| 7747 | ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" |
| 7748 | |
| 7749 | cat >confcache <<\_ACEOF |
| 7750 | # This file is a shell script that caches the results of configure |
| 7751 | # tests run on this system so they can be shared between configure |
| 7752 | # scripts and configure runs, see configure's option --config-cache. |
| 7753 | # It is not useful on other systems. If it contains results you don't |
| 7754 | # want to keep, you may remove or edit it. |
| 7755 | # |
| 7756 | # config.status only pays attention to the cache file if you give it |
| 7757 | # the --recheck option to rerun configure. |
| 7758 | # |
| 7759 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 7760 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7761 | # following values. |
| 7762 | |
| 7763 | _ACEOF |
| 7764 | |
| 7765 | # The following way of writing the cache mishandles newlines in values, |
| 7766 | # but we know of no workaround that is simple, portable, and efficient. |
| 7767 | # So, we kill variables containing newlines. |
| 7768 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7769 | # and sets the high bit in the cache file unless we assign to the vars. |
| 7770 | ( |
| 7771 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7772 | eval ac_val=\$$ac_var |
| 7773 | case $ac_val in #( |
| 7774 | *${as_nl}*) |
| 7775 | case $ac_var in #( |
| 7776 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7777 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 7778 | esac |
| 7779 | case $ac_var in #( |
| 7780 | _ | IFS | as_nl) ;; #( |
| 7781 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7782 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 7783 | esac ;; |
| 7784 | esac |
| 7785 | done |
| 7786 | |
| 7787 | (set) 2>&1 | |
| 7788 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7789 | *${as_nl}ac_space=\ *) |
| 7790 | # `set' does not quote correctly, so add quotes: double-quote |
| 7791 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 7792 | sed -n \ |
| 7793 | "s/'/'\\\\''/g; |
| 7794 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7795 | ;; #( |
| 7796 | *) |
| 7797 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7798 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 7799 | ;; |
| 7800 | esac | |
| 7801 | sort |
| 7802 | ) | |
| 7803 | sed ' |
| 7804 | /^ac_cv_env_/b end |
| 7805 | t clear |
| 7806 | :clear |
| 7807 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7808 | t end |
| 7809 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7810 | :end' >>confcache |
| 7811 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7812 | if test -w "$cache_file"; then |
| 7813 | test "x$cache_file" != "x/dev/null" && |
| 7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7815 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 7816 | cat confcache >$cache_file |
| 7817 | else |
| 7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7819 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 7820 | fi |
| 7821 | fi |
| 7822 | rm -f confcache |
| 7823 | |
| 7824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7825 | # Let make expand exec_prefix. |
| 7826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7827 | |
| 7828 | DEFS=-DHAVE_CONFIG_H |
| 7829 | |
| 7830 | ac_libobjs= |
| 7831 | ac_ltlibobjs= |
| 7832 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7833 | # 1. Remove the extension, and $U if already installed. |
| 7834 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 7835 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 7836 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7837 | # will be set to the directory where LIBOBJS objects are built. |
| 7838 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7839 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 7840 | done |
| 7841 | LIBOBJS=$ac_libobjs |
| 7842 | |
| 7843 | LTLIBOBJS=$ac_ltlibobjs |
| 7844 | |
| 7845 | |
| 7846 | if test -n "$EXEEXT"; then |
| 7847 | am__EXEEXT_TRUE= |
| 7848 | am__EXEEXT_FALSE='#' |
| 7849 | else |
| 7850 | am__EXEEXT_TRUE='#' |
| 7851 | am__EXEEXT_FALSE= |
| 7852 | fi |
| 7853 | |
| 7854 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then |
| 7855 | as_fn_error "conditional \"THREADS\" was never defined. |
| 7856 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7857 | fi |
| 7858 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
| 7859 | as_fn_error "conditional \"PLUGINS\" was never defined. |
| 7860 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7861 | fi |
| 7862 | if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then |
| 7863 | as_fn_error "conditional \"DEFAULT_TARGET_AARCH64\" was never defined. |
| 7864 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7865 | fi |
| 7866 | if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then |
| 7867 | as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined. |
| 7868 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7869 | fi |
| 7870 | if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then |
| 7871 | as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined. |
| 7872 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7873 | fi |
| 7874 | if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then |
| 7875 | as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. |
| 7876 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7877 | fi |
| 7878 | if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then |
| 7879 | as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined. |
| 7880 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7881 | fi |
| 7882 | if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then |
| 7883 | as_fn_error "conditional \"DEFAULT_TARGET_S390\" was never defined. |
| 7884 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7885 | fi |
| 7886 | if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then |
| 7887 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined. |
| 7888 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7889 | fi |
| 7890 | if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then |
| 7891 | as_fn_error "conditional \"DEFAULT_TARGET_X32\" was never defined. |
| 7892 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7893 | fi |
| 7894 | if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then |
| 7895 | as_fn_error "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined. |
| 7896 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7897 | fi |
| 7898 | if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then |
| 7899 | as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined. |
| 7900 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7901 | fi |
| 7902 | if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then |
| 7903 | as_fn_error "conditional \"DEFAULT_TARGET_MIPS\" was never defined. |
| 7904 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7905 | fi |
| 7906 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 7907 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 7908 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7909 | fi |
| 7910 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 7911 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 7912 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7913 | fi |
| 7914 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 7915 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 7916 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7917 | fi |
| 7918 | |
| 7919 | if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then |
| 7920 | as_fn_error "conditional \"NATIVE_LINKER\" was never defined. |
| 7921 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7922 | fi |
| 7923 | if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then |
| 7924 | as_fn_error "conditional \"GCC\" was never defined. |
| 7925 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7926 | fi |
| 7927 | if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then |
| 7928 | as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. |
| 7929 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7930 | fi |
| 7931 | if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then |
| 7932 | as_fn_error "conditional \"HAVE_STATIC\" was never defined. |
| 7933 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7934 | fi |
| 7935 | if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then |
| 7936 | as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. |
| 7937 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7938 | fi |
| 7939 | if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then |
| 7940 | as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined. |
| 7941 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7942 | fi |
| 7943 | if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then |
| 7944 | as_fn_error "conditional \"TLS\" was never defined. |
| 7945 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7946 | fi |
| 7947 | if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then |
| 7948 | as_fn_error "conditional \"STATIC_TLS\" was never defined. |
| 7949 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7950 | fi |
| 7951 | if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then |
| 7952 | as_fn_error "conditional \"OMP_SUPPORT\" was never defined. |
| 7953 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7954 | fi |
| 7955 | if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then |
| 7956 | as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined. |
| 7957 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7958 | fi |
| 7959 | if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then |
| 7960 | as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined. |
| 7961 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7962 | fi |
| 7963 | if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then |
| 7964 | as_fn_error "conditional \"IFUNC\" was never defined. |
| 7965 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7966 | fi |
| 7967 | if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then |
| 7968 | as_fn_error "conditional \"IFUNC_STATIC\" was never defined. |
| 7969 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7970 | fi |
| 7971 | if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then |
| 7972 | as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined. |
| 7973 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7974 | fi |
| 7975 | if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then |
| 7976 | as_fn_error "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined. |
| 7977 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7978 | fi |
| 7979 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 7980 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
| 7981 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7982 | fi |
| 7983 | |
| 7984 | : ${CONFIG_STATUS=./config.status} |
| 7985 | ac_write_fail=0 |
| 7986 | ac_clean_files_save=$ac_clean_files |
| 7987 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7989 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7990 | as_write_fail=0 |
| 7991 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 7992 | #! $SHELL |
| 7993 | # Generated by $as_me. |
| 7994 | # Run this file to recreate the current configuration. |
| 7995 | # Compiler output produced by configure, useful for debugging |
| 7996 | # configure, is in config.log if it exists. |
| 7997 | |
| 7998 | debug=false |
| 7999 | ac_cs_recheck=false |
| 8000 | ac_cs_silent=false |
| 8001 | |
| 8002 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 8003 | export SHELL |
| 8004 | _ASEOF |
| 8005 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 8006 | ## -------------------- ## |
| 8007 | ## M4sh Initialization. ## |
| 8008 | ## -------------------- ## |
| 8009 | |
| 8010 | # Be more Bourne compatible |
| 8011 | DUALCASE=1; export DUALCASE # for MKS sh |
| 8012 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 8013 | emulate sh |
| 8014 | NULLCMD=: |
| 8015 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 8016 | # is contrary to our usage. Disable this feature. |
| 8017 | alias -g '${1+"$@"}'='"$@"' |
| 8018 | setopt NO_GLOB_SUBST |
| 8019 | else |
| 8020 | case `(set -o) 2>/dev/null` in #( |
| 8021 | *posix*) : |
| 8022 | set -o posix ;; #( |
| 8023 | *) : |
| 8024 | ;; |
| 8025 | esac |
| 8026 | fi |
| 8027 | |
| 8028 | |
| 8029 | as_nl=' |
| 8030 | ' |
| 8031 | export as_nl |
| 8032 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 8033 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 8034 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 8035 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 8036 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 8037 | # but without wasting forks for bash or zsh. |
| 8038 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 8039 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 8040 | as_echo='print -r --' |
| 8041 | as_echo_n='print -rn --' |
| 8042 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 8043 | as_echo='printf %s\n' |
| 8044 | as_echo_n='printf %s' |
| 8045 | else |
| 8046 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 8047 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 8048 | as_echo_n='/usr/ucb/echo -n' |
| 8049 | else |
| 8050 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 8051 | as_echo_n_body='eval |
| 8052 | arg=$1; |
| 8053 | case $arg in #( |
| 8054 | *"$as_nl"*) |
| 8055 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 8056 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 8057 | esac; |
| 8058 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 8059 | ' |
| 8060 | export as_echo_n_body |
| 8061 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 8062 | fi |
| 8063 | export as_echo_body |
| 8064 | as_echo='sh -c $as_echo_body as_echo' |
| 8065 | fi |
| 8066 | |
| 8067 | # The user is always right. |
| 8068 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8069 | PATH_SEPARATOR=: |
| 8070 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 8071 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 8072 | PATH_SEPARATOR=';' |
| 8073 | } |
| 8074 | fi |
| 8075 | |
| 8076 | |
| 8077 | # IFS |
| 8078 | # We need space, tab and new line, in precisely that order. Quoting is |
| 8079 | # there to prevent editors from complaining about space-tab. |
| 8080 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 8081 | # splitting by setting IFS to empty value.) |
| 8082 | IFS=" "" $as_nl" |
| 8083 | |
| 8084 | # Find who we are. Look in the path if we contain no directory separator. |
| 8085 | case $0 in #(( |
| 8086 | *[\\/]* ) as_myself=$0 ;; |
| 8087 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8088 | for as_dir in $PATH |
| 8089 | do |
| 8090 | IFS=$as_save_IFS |
| 8091 | test -z "$as_dir" && as_dir=. |
| 8092 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 8093 | done |
| 8094 | IFS=$as_save_IFS |
| 8095 | |
| 8096 | ;; |
| 8097 | esac |
| 8098 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 8099 | # in which case we are not to be found in the path. |
| 8100 | if test "x$as_myself" = x; then |
| 8101 | as_myself=$0 |
| 8102 | fi |
| 8103 | if test ! -f "$as_myself"; then |
| 8104 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 8105 | exit 1 |
| 8106 | fi |
| 8107 | |
| 8108 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 8109 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 8110 | # suppresses any "Segmentation fault" message there. '((' could |
| 8111 | # trigger a bug in pdksh 5.2.14. |
| 8112 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 8113 | do eval test x\${$as_var+set} = xset \ |
| 8114 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 8115 | done |
| 8116 | PS1='$ ' |
| 8117 | PS2='> ' |
| 8118 | PS4='+ ' |
| 8119 | |
| 8120 | # NLS nuisances. |
| 8121 | LC_ALL=C |
| 8122 | export LC_ALL |
| 8123 | LANGUAGE=C |
| 8124 | export LANGUAGE |
| 8125 | |
| 8126 | # CDPATH. |
| 8127 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 8128 | |
| 8129 | |
| 8130 | # as_fn_error ERROR [LINENO LOG_FD] |
| 8131 | # --------------------------------- |
| 8132 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 8133 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 8134 | # script with status $?, using 1 if that was 0. |
| 8135 | as_fn_error () |
| 8136 | { |
| 8137 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 8138 | if test "$3"; then |
| 8139 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 8140 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 8141 | fi |
| 8142 | $as_echo "$as_me: error: $1" >&2 |
| 8143 | as_fn_exit $as_status |
| 8144 | } # as_fn_error |
| 8145 | |
| 8146 | |
| 8147 | # as_fn_set_status STATUS |
| 8148 | # ----------------------- |
| 8149 | # Set $? to STATUS, without forking. |
| 8150 | as_fn_set_status () |
| 8151 | { |
| 8152 | return $1 |
| 8153 | } # as_fn_set_status |
| 8154 | |
| 8155 | # as_fn_exit STATUS |
| 8156 | # ----------------- |
| 8157 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 8158 | as_fn_exit () |
| 8159 | { |
| 8160 | set +e |
| 8161 | as_fn_set_status $1 |
| 8162 | exit $1 |
| 8163 | } # as_fn_exit |
| 8164 | |
| 8165 | # as_fn_unset VAR |
| 8166 | # --------------- |
| 8167 | # Portably unset VAR. |
| 8168 | as_fn_unset () |
| 8169 | { |
| 8170 | { eval $1=; unset $1;} |
| 8171 | } |
| 8172 | as_unset=as_fn_unset |
| 8173 | # as_fn_append VAR VALUE |
| 8174 | # ---------------------- |
| 8175 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 8176 | # advantage of any shell optimizations that allow amortized linear growth over |
| 8177 | # repeated appends, instead of the typical quadratic growth present in naive |
| 8178 | # implementations. |
| 8179 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 8180 | eval 'as_fn_append () |
| 8181 | { |
| 8182 | eval $1+=\$2 |
| 8183 | }' |
| 8184 | else |
| 8185 | as_fn_append () |
| 8186 | { |
| 8187 | eval $1=\$$1\$2 |
| 8188 | } |
| 8189 | fi # as_fn_append |
| 8190 | |
| 8191 | # as_fn_arith ARG... |
| 8192 | # ------------------ |
| 8193 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 8194 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 8195 | # must be portable across $(()) and expr. |
| 8196 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 8197 | eval 'as_fn_arith () |
| 8198 | { |
| 8199 | as_val=$(( $* )) |
| 8200 | }' |
| 8201 | else |
| 8202 | as_fn_arith () |
| 8203 | { |
| 8204 | as_val=`expr "$@" || test $? -eq 1` |
| 8205 | } |
| 8206 | fi # as_fn_arith |
| 8207 | |
| 8208 | |
| 8209 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 8210 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 8211 | as_expr=expr |
| 8212 | else |
| 8213 | as_expr=false |
| 8214 | fi |
| 8215 | |
| 8216 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 8217 | as_basename=basename |
| 8218 | else |
| 8219 | as_basename=false |
| 8220 | fi |
| 8221 | |
| 8222 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 8223 | as_dirname=dirname |
| 8224 | else |
| 8225 | as_dirname=false |
| 8226 | fi |
| 8227 | |
| 8228 | as_me=`$as_basename -- "$0" || |
| 8229 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8230 | X"$0" : 'X\(//\)$' \| \ |
| 8231 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 8232 | $as_echo X/"$0" | |
| 8233 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 8234 | s//\1/ |
| 8235 | q |
| 8236 | } |
| 8237 | /^X\/\(\/\/\)$/{ |
| 8238 | s//\1/ |
| 8239 | q |
| 8240 | } |
| 8241 | /^X\/\(\/\).*/{ |
| 8242 | s//\1/ |
| 8243 | q |
| 8244 | } |
| 8245 | s/.*/./; q'` |
| 8246 | |
| 8247 | # Avoid depending upon Character Ranges. |
| 8248 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8249 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8250 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8251 | as_cr_digits='0123456789' |
| 8252 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 8253 | |
| 8254 | ECHO_C= ECHO_N= ECHO_T= |
| 8255 | case `echo -n x` in #((((( |
| 8256 | -n*) |
| 8257 | case `echo 'xy\c'` in |
| 8258 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 8259 | xy) ECHO_C='\c';; |
| 8260 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 8261 | ECHO_T=' ';; |
| 8262 | esac;; |
| 8263 | *) |
| 8264 | ECHO_N='-n';; |
| 8265 | esac |
| 8266 | |
| 8267 | rm -f conf$$ conf$$.exe conf$$.file |
| 8268 | if test -d conf$$.dir; then |
| 8269 | rm -f conf$$.dir/conf$$.file |
| 8270 | else |
| 8271 | rm -f conf$$.dir |
| 8272 | mkdir conf$$.dir 2>/dev/null |
| 8273 | fi |
| 8274 | if (echo >conf$$.file) 2>/dev/null; then |
| 8275 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 8276 | as_ln_s='ln -s' |
| 8277 | # ... but there are two gotchas: |
| 8278 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 8279 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 8280 | # In both cases, we have to default to `cp -p'. |
| 8281 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 8282 | as_ln_s='cp -p' |
| 8283 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 8284 | as_ln_s=ln |
| 8285 | else |
| 8286 | as_ln_s='cp -p' |
| 8287 | fi |
| 8288 | else |
| 8289 | as_ln_s='cp -p' |
| 8290 | fi |
| 8291 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 8292 | rmdir conf$$.dir 2>/dev/null |
| 8293 | |
| 8294 | |
| 8295 | # as_fn_mkdir_p |
| 8296 | # ------------- |
| 8297 | # Create "$as_dir" as a directory, including parents if necessary. |
| 8298 | as_fn_mkdir_p () |
| 8299 | { |
| 8300 | |
| 8301 | case $as_dir in #( |
| 8302 | -*) as_dir=./$as_dir;; |
| 8303 | esac |
| 8304 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 8305 | as_dirs= |
| 8306 | while :; do |
| 8307 | case $as_dir in #( |
| 8308 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 8309 | *) as_qdir=$as_dir;; |
| 8310 | esac |
| 8311 | as_dirs="'$as_qdir' $as_dirs" |
| 8312 | as_dir=`$as_dirname -- "$as_dir" || |
| 8313 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8314 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 8315 | X"$as_dir" : 'X\(//\)$' \| \ |
| 8316 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 8317 | $as_echo X"$as_dir" | |
| 8318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8319 | s//\1/ |
| 8320 | q |
| 8321 | } |
| 8322 | /^X\(\/\/\)[^/].*/{ |
| 8323 | s//\1/ |
| 8324 | q |
| 8325 | } |
| 8326 | /^X\(\/\/\)$/{ |
| 8327 | s//\1/ |
| 8328 | q |
| 8329 | } |
| 8330 | /^X\(\/\).*/{ |
| 8331 | s//\1/ |
| 8332 | q |
| 8333 | } |
| 8334 | s/.*/./; q'` |
| 8335 | test -d "$as_dir" && break |
| 8336 | done |
| 8337 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 8338 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 8339 | |
| 8340 | |
| 8341 | } # as_fn_mkdir_p |
| 8342 | if mkdir -p . 2>/dev/null; then |
| 8343 | as_mkdir_p='mkdir -p "$as_dir"' |
| 8344 | else |
| 8345 | test -d ./-p && rmdir ./-p |
| 8346 | as_mkdir_p=false |
| 8347 | fi |
| 8348 | |
| 8349 | if test -x / >/dev/null 2>&1; then |
| 8350 | as_test_x='test -x' |
| 8351 | else |
| 8352 | if ls -dL / >/dev/null 2>&1; then |
| 8353 | as_ls_L_option=L |
| 8354 | else |
| 8355 | as_ls_L_option= |
| 8356 | fi |
| 8357 | as_test_x=' |
| 8358 | eval sh -c '\'' |
| 8359 | if test -d "$1"; then |
| 8360 | test -d "$1/."; |
| 8361 | else |
| 8362 | case $1 in #( |
| 8363 | -*)set "./$1";; |
| 8364 | esac; |
| 8365 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 8366 | ???[sx]*):;;*)false;;esac;fi |
| 8367 | '\'' sh |
| 8368 | ' |
| 8369 | fi |
| 8370 | as_executable_p=$as_test_x |
| 8371 | |
| 8372 | # Sed expression to map a string onto a valid CPP name. |
| 8373 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 8374 | |
| 8375 | # Sed expression to map a string onto a valid variable name. |
| 8376 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 8377 | |
| 8378 | |
| 8379 | exec 6>&1 |
| 8380 | ## ----------------------------------- ## |
| 8381 | ## Main body of $CONFIG_STATUS script. ## |
| 8382 | ## ----------------------------------- ## |
| 8383 | _ASEOF |
| 8384 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 8385 | |
| 8386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8387 | # Save the log message, to keep $0 and so on meaningful, and to |
| 8388 | # report actual input values of CONFIG_FILES etc. instead of their |
| 8389 | # values after options handling. |
| 8390 | ac_log=" |
| 8391 | This file was extended by gold $as_me 0.1, which was |
| 8392 | generated by GNU Autoconf 2.64. Invocation command line was |
| 8393 | |
| 8394 | CONFIG_FILES = $CONFIG_FILES |
| 8395 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 8396 | CONFIG_LINKS = $CONFIG_LINKS |
| 8397 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8398 | $ $0 $@ |
| 8399 | |
| 8400 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 8401 | " |
| 8402 | |
| 8403 | _ACEOF |
| 8404 | |
| 8405 | case $ac_config_files in *" |
| 8406 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 8407 | esac |
| 8408 | |
| 8409 | case $ac_config_headers in *" |
| 8410 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 8411 | esac |
| 8412 | |
| 8413 | |
| 8414 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8415 | # Files that config.status was made for. |
| 8416 | config_files="$ac_config_files" |
| 8417 | config_headers="$ac_config_headers" |
| 8418 | config_commands="$ac_config_commands" |
| 8419 | |
| 8420 | _ACEOF |
| 8421 | |
| 8422 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8423 | ac_cs_usage="\ |
| 8424 | \`$as_me' instantiates files and other configuration actions |
| 8425 | from templates according to the current configuration. Unless the files |
| 8426 | and actions are specified as TAGs, all are instantiated by default. |
| 8427 | |
| 8428 | Usage: $0 [OPTION]... [TAG]... |
| 8429 | |
| 8430 | -h, --help print this help, then exit |
| 8431 | -V, --version print version number and configuration settings, then exit |
| 8432 | -q, --quiet, --silent |
| 8433 | do not print progress messages |
| 8434 | -d, --debug don't remove temporary files |
| 8435 | --recheck update $as_me by reconfiguring in the same conditions |
| 8436 | --file=FILE[:TEMPLATE] |
| 8437 | instantiate the configuration file FILE |
| 8438 | --header=FILE[:TEMPLATE] |
| 8439 | instantiate the configuration header FILE |
| 8440 | |
| 8441 | Configuration files: |
| 8442 | $config_files |
| 8443 | |
| 8444 | Configuration headers: |
| 8445 | $config_headers |
| 8446 | |
| 8447 | Configuration commands: |
| 8448 | $config_commands |
| 8449 | |
| 8450 | Report bugs to the package provider." |
| 8451 | |
| 8452 | _ACEOF |
| 8453 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8454 | ac_cs_version="\\ |
| 8455 | gold config.status 0.1 |
| 8456 | configured by $0, generated by GNU Autoconf 2.64, |
| 8457 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 8458 | |
| 8459 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 8460 | This config.status script is free software; the Free Software Foundation |
| 8461 | gives unlimited permission to copy, distribute and modify it." |
| 8462 | |
| 8463 | ac_pwd='$ac_pwd' |
| 8464 | srcdir='$srcdir' |
| 8465 | INSTALL='$INSTALL' |
| 8466 | MKDIR_P='$MKDIR_P' |
| 8467 | AWK='$AWK' |
| 8468 | test -n "\$AWK" || AWK=awk |
| 8469 | _ACEOF |
| 8470 | |
| 8471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8472 | # The default lists apply if the user does not specify any file. |
| 8473 | ac_need_defaults=: |
| 8474 | while test $# != 0 |
| 8475 | do |
| 8476 | case $1 in |
| 8477 | --*=*) |
| 8478 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8479 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 8480 | ac_shift=: |
| 8481 | ;; |
| 8482 | *) |
| 8483 | ac_option=$1 |
| 8484 | ac_optarg=$2 |
| 8485 | ac_shift=shift |
| 8486 | ;; |
| 8487 | esac |
| 8488 | |
| 8489 | case $ac_option in |
| 8490 | # Handling of the options. |
| 8491 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8492 | ac_cs_recheck=: ;; |
| 8493 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 8494 | $as_echo "$ac_cs_version"; exit ;; |
| 8495 | --debug | --debu | --deb | --de | --d | -d ) |
| 8496 | debug=: ;; |
| 8497 | --file | --fil | --fi | --f ) |
| 8498 | $ac_shift |
| 8499 | case $ac_optarg in |
| 8500 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 8501 | esac |
| 8502 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 8503 | ac_need_defaults=false;; |
| 8504 | --header | --heade | --head | --hea ) |
| 8505 | $ac_shift |
| 8506 | case $ac_optarg in |
| 8507 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 8508 | esac |
| 8509 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 8510 | ac_need_defaults=false;; |
| 8511 | --he | --h) |
| 8512 | # Conflict between --help and --header |
| 8513 | as_fn_error "ambiguous option: \`$1' |
| 8514 | Try \`$0 --help' for more information.";; |
| 8515 | --help | --hel | -h ) |
| 8516 | $as_echo "$ac_cs_usage"; exit ;; |
| 8517 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 8518 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 8519 | ac_cs_silent=: ;; |
| 8520 | |
| 8521 | # This is an error. |
| 8522 | -*) as_fn_error "unrecognized option: \`$1' |
| 8523 | Try \`$0 --help' for more information." ;; |
| 8524 | |
| 8525 | *) as_fn_append ac_config_targets " $1" |
| 8526 | ac_need_defaults=false ;; |
| 8527 | |
| 8528 | esac |
| 8529 | shift |
| 8530 | done |
| 8531 | |
| 8532 | ac_configure_extra_args= |
| 8533 | |
| 8534 | if $ac_cs_silent; then |
| 8535 | exec 6>/dev/null |
| 8536 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 8537 | fi |
| 8538 | |
| 8539 | _ACEOF |
| 8540 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8541 | if \$ac_cs_recheck; then |
| 8542 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 8543 | shift |
| 8544 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 8545 | CONFIG_SHELL='$SHELL' |
| 8546 | export CONFIG_SHELL |
| 8547 | exec "\$@" |
| 8548 | fi |
| 8549 | |
| 8550 | _ACEOF |
| 8551 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8552 | exec 5>>config.log |
| 8553 | { |
| 8554 | echo |
| 8555 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8556 | ## Running $as_me. ## |
| 8557 | _ASBOX |
| 8558 | $as_echo "$ac_log" |
| 8559 | } >&5 |
| 8560 | |
| 8561 | _ACEOF |
| 8562 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8563 | # |
| 8564 | # INIT-COMMANDS |
| 8565 | # |
| 8566 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 8567 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 8568 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 8569 | # from automake. |
| 8570 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 8571 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 8572 | LINGUAS="${LINGUAS-%UNSET%}" |
| 8573 | |
| 8574 | |
| 8575 | _ACEOF |
| 8576 | |
| 8577 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8578 | |
| 8579 | # Handling of arguments. |
| 8580 | for ac_config_target in $ac_config_targets |
| 8581 | do |
| 8582 | case $ac_config_target in |
| 8583 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 8584 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 8585 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 8586 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 8587 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; |
| 8588 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; |
| 8589 | |
| 8590 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 8591 | esac |
| 8592 | done |
| 8593 | |
| 8594 | |
| 8595 | # If the user did not use the arguments to specify the items to instantiate, |
| 8596 | # then the envvar interface is used. Set only those that are not. |
| 8597 | # We use the long form for the default assignment because of an extremely |
| 8598 | # bizarre bug on SunOS 4.1.3. |
| 8599 | if $ac_need_defaults; then |
| 8600 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 8601 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 8602 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 8603 | fi |
| 8604 | |
| 8605 | # Have a temporary directory for convenience. Make it in the build tree |
| 8606 | # simply because there is no reason against having it here, and in addition, |
| 8607 | # creating and moving files from /tmp can sometimes cause problems. |
| 8608 | # Hook for its removal unless debugging. |
| 8609 | # Note that there is a small window in which the directory will not be cleaned: |
| 8610 | # after its creation but before its name has been assigned to `$tmp'. |
| 8611 | $debug || |
| 8612 | { |
| 8613 | tmp= |
| 8614 | trap 'exit_status=$? |
| 8615 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 8616 | ' 0 |
| 8617 | trap 'as_fn_exit 1' 1 2 13 15 |
| 8618 | } |
| 8619 | # Create a (secure) tmp directory for tmp files. |
| 8620 | |
| 8621 | { |
| 8622 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 8623 | test -n "$tmp" && test -d "$tmp" |
| 8624 | } || |
| 8625 | { |
| 8626 | tmp=./conf$$-$RANDOM |
| 8627 | (umask 077 && mkdir "$tmp") |
| 8628 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 8629 | |
| 8630 | # Set up the scripts for CONFIG_FILES section. |
| 8631 | # No need to generate them if there are no CONFIG_FILES. |
| 8632 | # This happens for instance with `./config.status config.h'. |
| 8633 | if test -n "$CONFIG_FILES"; then |
| 8634 | |
| 8635 | |
| 8636 | ac_cr=`echo X | tr X '\015'` |
| 8637 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 8638 | # But we know of no other shell where ac_cr would be empty at this |
| 8639 | # point, so we can use a bashism as a fallback. |
| 8640 | if test "x$ac_cr" = x; then |
| 8641 | eval ac_cr=\$\'\\r\' |
| 8642 | fi |
| 8643 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 8644 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 8645 | ac_cs_awk_cr='\r' |
| 8646 | else |
| 8647 | ac_cs_awk_cr=$ac_cr |
| 8648 | fi |
| 8649 | |
| 8650 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 8651 | _ACEOF |
| 8652 | |
| 8653 | |
| 8654 | { |
| 8655 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 8656 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 8657 | echo "_ACEOF" |
| 8658 | } >conf$$subs.sh || |
| 8659 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8660 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 8661 | ac_delim='%!_!# ' |
| 8662 | for ac_last_try in false false false false false :; do |
| 8663 | . ./conf$$subs.sh || |
| 8664 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8665 | |
| 8666 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 8667 | if test $ac_delim_n = $ac_delim_num; then |
| 8668 | break |
| 8669 | elif $ac_last_try; then |
| 8670 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8671 | else |
| 8672 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8673 | fi |
| 8674 | done |
| 8675 | rm -f conf$$subs.sh |
| 8676 | |
| 8677 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8678 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 8679 | _ACEOF |
| 8680 | sed -n ' |
| 8681 | h |
| 8682 | s/^/S["/; s/!.*/"]=/ |
| 8683 | p |
| 8684 | g |
| 8685 | s/^[^!]*!// |
| 8686 | :repl |
| 8687 | t repl |
| 8688 | s/'"$ac_delim"'$// |
| 8689 | t delim |
| 8690 | :nl |
| 8691 | h |
| 8692 | s/\(.\{148\}\).*/\1/ |
| 8693 | t more1 |
| 8694 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 8695 | p |
| 8696 | n |
| 8697 | b repl |
| 8698 | :more1 |
| 8699 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8700 | p |
| 8701 | g |
| 8702 | s/.\{148\}// |
| 8703 | t nl |
| 8704 | :delim |
| 8705 | h |
| 8706 | s/\(.\{148\}\).*/\1/ |
| 8707 | t more2 |
| 8708 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 8709 | p |
| 8710 | b |
| 8711 | :more2 |
| 8712 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8713 | p |
| 8714 | g |
| 8715 | s/.\{148\}// |
| 8716 | t delim |
| 8717 | ' <conf$$subs.awk | sed ' |
| 8718 | /^[^""]/{ |
| 8719 | N |
| 8720 | s/\n// |
| 8721 | } |
| 8722 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8723 | rm -f conf$$subs.awk |
| 8724 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8725 | _ACAWK |
| 8726 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 8727 | for (key in S) S_is_set[key] = 1 |
| 8728 | FS = "\a" |
| 8729 | |
| 8730 | } |
| 8731 | { |
| 8732 | line = $ 0 |
| 8733 | nfields = split(line, field, "@") |
| 8734 | substed = 0 |
| 8735 | len = length(field[1]) |
| 8736 | for (i = 2; i < nfields; i++) { |
| 8737 | key = field[i] |
| 8738 | keylen = length(key) |
| 8739 | if (S_is_set[key]) { |
| 8740 | value = S[key] |
| 8741 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 8742 | len += length(value) + length(field[++i]) |
| 8743 | substed = 1 |
| 8744 | } else |
| 8745 | len += 1 + keylen |
| 8746 | } |
| 8747 | |
| 8748 | print line |
| 8749 | } |
| 8750 | |
| 8751 | _ACAWK |
| 8752 | _ACEOF |
| 8753 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8754 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 8755 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 8756 | else |
| 8757 | cat |
| 8758 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 8759 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 8760 | _ACEOF |
| 8761 | |
| 8762 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 8763 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 8764 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8765 | # (actually we leave an empty line to preserve line numbers). |
| 8766 | if test "x$srcdir" = x.; then |
| 8767 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 8768 | s/:*\$(srcdir):*/:/ |
| 8769 | s/:*\${srcdir}:*/:/ |
| 8770 | s/:*@srcdir@:*/:/ |
| 8771 | s/^\([^=]*=[ ]*\):*/\1/ |
| 8772 | s/:*$// |
| 8773 | s/^[^=]*=[ ]*$// |
| 8774 | }' |
| 8775 | fi |
| 8776 | |
| 8777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8778 | fi # test -n "$CONFIG_FILES" |
| 8779 | |
| 8780 | # Set up the scripts for CONFIG_HEADERS section. |
| 8781 | # No need to generate them if there are no CONFIG_HEADERS. |
| 8782 | # This happens for instance with `./config.status Makefile'. |
| 8783 | if test -n "$CONFIG_HEADERS"; then |
| 8784 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 8785 | BEGIN { |
| 8786 | _ACEOF |
| 8787 | |
| 8788 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 8789 | # here-document in config.status, that substitutes the proper values into |
| 8790 | # config.h.in to produce config.h. |
| 8791 | |
| 8792 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 8793 | # handling of long lines. |
| 8794 | ac_delim='%!_!# ' |
| 8795 | for ac_last_try in false false :; do |
| 8796 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 8797 | if test -z "$ac_t"; then |
| 8798 | break |
| 8799 | elif $ac_last_try; then |
| 8800 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 8801 | else |
| 8802 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8803 | fi |
| 8804 | done |
| 8805 | |
| 8806 | # For the awk script, D is an array of macro values keyed by name, |
| 8807 | # likewise P contains macro parameters if any. Preserve backslash |
| 8808 | # newline sequences. |
| 8809 | |
| 8810 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 8811 | sed -n ' |
| 8812 | s/.\{148\}/&'"$ac_delim"'/g |
| 8813 | t rset |
| 8814 | :rset |
| 8815 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 8816 | t def |
| 8817 | d |
| 8818 | :def |
| 8819 | s/\\$// |
| 8820 | t bsnl |
| 8821 | s/["\\]/\\&/g |
| 8822 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8823 | D["\1"]=" \3"/p |
| 8824 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 8825 | d |
| 8826 | :bsnl |
| 8827 | s/["\\]/\\&/g |
| 8828 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8829 | D["\1"]=" \3\\\\\\n"\\/p |
| 8830 | t cont |
| 8831 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 8832 | t cont |
| 8833 | d |
| 8834 | :cont |
| 8835 | n |
| 8836 | s/.\{148\}/&'"$ac_delim"'/g |
| 8837 | t clear |
| 8838 | :clear |
| 8839 | s/\\$// |
| 8840 | t bsnlc |
| 8841 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 8842 | d |
| 8843 | :bsnlc |
| 8844 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 8845 | b cont |
| 8846 | ' <confdefs.h | sed ' |
| 8847 | s/'"$ac_delim"'/"\\\ |
| 8848 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8849 | |
| 8850 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8851 | for (key in D) D_is_set[key] = 1 |
| 8852 | FS = "\a" |
| 8853 | } |
| 8854 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 8855 | line = \$ 0 |
| 8856 | split(line, arg, " ") |
| 8857 | if (arg[1] == "#") { |
| 8858 | defundef = arg[2] |
| 8859 | mac1 = arg[3] |
| 8860 | } else { |
| 8861 | defundef = substr(arg[1], 2) |
| 8862 | mac1 = arg[2] |
| 8863 | } |
| 8864 | split(mac1, mac2, "(") #) |
| 8865 | macro = mac2[1] |
| 8866 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 8867 | if (D_is_set[macro]) { |
| 8868 | # Preserve the white space surrounding the "#". |
| 8869 | print prefix "define", macro P[macro] D[macro] |
| 8870 | next |
| 8871 | } else { |
| 8872 | # Replace #undef with comments. This is necessary, for example, |
| 8873 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 8874 | # on some systems where configure will not decide to define it. |
| 8875 | if (defundef == "undef") { |
| 8876 | print "/*", prefix defundef, macro, "*/" |
| 8877 | next |
| 8878 | } |
| 8879 | } |
| 8880 | } |
| 8881 | { print } |
| 8882 | _ACAWK |
| 8883 | _ACEOF |
| 8884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8885 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 8886 | fi # test -n "$CONFIG_HEADERS" |
| 8887 | |
| 8888 | |
| 8889 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 8890 | shift |
| 8891 | for ac_tag |
| 8892 | do |
| 8893 | case $ac_tag in |
| 8894 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8895 | esac |
| 8896 | case $ac_mode$ac_tag in |
| 8897 | :[FHL]*:*);; |
| 8898 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 8899 | :[FH]-) ac_tag=-:-;; |
| 8900 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8901 | esac |
| 8902 | ac_save_IFS=$IFS |
| 8903 | IFS=: |
| 8904 | set x $ac_tag |
| 8905 | IFS=$ac_save_IFS |
| 8906 | shift |
| 8907 | ac_file=$1 |
| 8908 | shift |
| 8909 | |
| 8910 | case $ac_mode in |
| 8911 | :L) ac_source=$1;; |
| 8912 | :[FH]) |
| 8913 | ac_file_inputs= |
| 8914 | for ac_f |
| 8915 | do |
| 8916 | case $ac_f in |
| 8917 | -) ac_f="$tmp/stdin";; |
| 8918 | *) # Look for the file first in the build tree, then in the source tree |
| 8919 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8920 | # because $ac_f cannot contain `:'. |
| 8921 | test -f "$ac_f" || |
| 8922 | case $ac_f in |
| 8923 | [\\/$]*) false;; |
| 8924 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8925 | esac || |
| 8926 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 8927 | esac |
| 8928 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8929 | as_fn_append ac_file_inputs " '$ac_f'" |
| 8930 | done |
| 8931 | |
| 8932 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8933 | # use $as_me), people would be surprised to read: |
| 8934 | # /* config.h. Generated by config.status. */ |
| 8935 | configure_input='Generated from '` |
| 8936 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8937 | `' by configure.' |
| 8938 | if test x"$ac_file" != x-; then |
| 8939 | configure_input="$ac_file. $configure_input" |
| 8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8941 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 8942 | fi |
| 8943 | # Neutralize special characters interpreted by sed in replacement strings. |
| 8944 | case $configure_input in #( |
| 8945 | *\&* | *\|* | *\\* ) |
| 8946 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 8947 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8948 | *) ac_sed_conf_input=$configure_input;; |
| 8949 | esac |
| 8950 | |
| 8951 | case $ac_tag in |
| 8952 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 8953 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 8954 | esac |
| 8955 | ;; |
| 8956 | esac |
| 8957 | |
| 8958 | ac_dir=`$as_dirname -- "$ac_file" || |
| 8959 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8960 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8961 | X"$ac_file" : 'X\(//\)$' \| \ |
| 8962 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 8963 | $as_echo X"$ac_file" | |
| 8964 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8965 | s//\1/ |
| 8966 | q |
| 8967 | } |
| 8968 | /^X\(\/\/\)[^/].*/{ |
| 8969 | s//\1/ |
| 8970 | q |
| 8971 | } |
| 8972 | /^X\(\/\/\)$/{ |
| 8973 | s//\1/ |
| 8974 | q |
| 8975 | } |
| 8976 | /^X\(\/\).*/{ |
| 8977 | s//\1/ |
| 8978 | q |
| 8979 | } |
| 8980 | s/.*/./; q'` |
| 8981 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 8982 | ac_builddir=. |
| 8983 | |
| 8984 | case "$ac_dir" in |
| 8985 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8986 | *) |
| 8987 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 8988 | # A ".." for each directory in $ac_dir_suffix. |
| 8989 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 8990 | case $ac_top_builddir_sub in |
| 8991 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8992 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8993 | esac ;; |
| 8994 | esac |
| 8995 | ac_abs_top_builddir=$ac_pwd |
| 8996 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8997 | # for backward compatibility: |
| 8998 | ac_top_builddir=$ac_top_build_prefix |
| 8999 | |
| 9000 | case $srcdir in |
| 9001 | .) # We are building in place. |
| 9002 | ac_srcdir=. |
| 9003 | ac_top_srcdir=$ac_top_builddir_sub |
| 9004 | ac_abs_top_srcdir=$ac_pwd ;; |
| 9005 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 9006 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9007 | ac_top_srcdir=$srcdir |
| 9008 | ac_abs_top_srcdir=$srcdir ;; |
| 9009 | *) # Relative name. |
| 9010 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 9011 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 9012 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 9013 | esac |
| 9014 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 9015 | |
| 9016 | |
| 9017 | case $ac_mode in |
| 9018 | :F) |
| 9019 | # |
| 9020 | # CONFIG_FILE |
| 9021 | # |
| 9022 | |
| 9023 | case $INSTALL in |
| 9024 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 9025 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 9026 | esac |
| 9027 | ac_MKDIR_P=$MKDIR_P |
| 9028 | case $MKDIR_P in |
| 9029 | [\\/$]* | ?:[\\/]* ) ;; |
| 9030 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 9031 | esac |
| 9032 | _ACEOF |
| 9033 | |
| 9034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9035 | # If the template does not know about datarootdir, expand it. |
| 9036 | # FIXME: This hack should be removed a few years after 2.60. |
| 9037 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 9038 | ac_sed_dataroot=' |
| 9039 | /datarootdir/ { |
| 9040 | p |
| 9041 | q |
| 9042 | } |
| 9043 | /@datadir@/p |
| 9044 | /@docdir@/p |
| 9045 | /@infodir@/p |
| 9046 | /@localedir@/p |
| 9047 | /@mandir@/p' |
| 9048 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 9049 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 9050 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 9052 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 9053 | _ACEOF |
| 9054 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9055 | ac_datarootdir_hack=' |
| 9056 | s&@datadir@&$datadir&g |
| 9057 | s&@docdir@&$docdir&g |
| 9058 | s&@infodir@&$infodir&g |
| 9059 | s&@localedir@&$localedir&g |
| 9060 | s&@mandir@&$mandir&g |
| 9061 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 9062 | esac |
| 9063 | _ACEOF |
| 9064 | |
| 9065 | # Neutralize VPATH when `$srcdir' = `.'. |
| 9066 | # Shell code in configure.ac might set extrasub. |
| 9067 | # FIXME: do we really want to maintain this feature? |
| 9068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9069 | ac_sed_extra="$ac_vpsub |
| 9070 | $extrasub |
| 9071 | _ACEOF |
| 9072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9073 | :t |
| 9074 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 9075 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 9076 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 9077 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 9078 | s&@srcdir@&$ac_srcdir&;t t |
| 9079 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 9080 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 9081 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 9082 | s&@builddir@&$ac_builddir&;t t |
| 9083 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 9084 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 9085 | s&@INSTALL@&$ac_INSTALL&;t t |
| 9086 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 9087 | $ac_datarootdir_hack |
| 9088 | " |
| 9089 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 9090 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 9091 | |
| 9092 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 9093 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 9094 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 9096 | which seems to be undefined. Please make sure it is defined." >&5 |
| 9097 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 9098 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 9099 | |
| 9100 | rm -f "$tmp/stdin" |
| 9101 | case $ac_file in |
| 9102 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 9103 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 9104 | esac \ |
| 9105 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 9106 | ;; |
| 9107 | :H) |
| 9108 | # |
| 9109 | # CONFIG_HEADER |
| 9110 | # |
| 9111 | if test x"$ac_file" != x-; then |
| 9112 | { |
| 9113 | $as_echo "/* $configure_input */" \ |
| 9114 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 9115 | } >"$tmp/config.h" \ |
| 9116 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 9117 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 9119 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 9120 | else |
| 9121 | rm -f "$ac_file" |
| 9122 | mv "$tmp/config.h" "$ac_file" \ |
| 9123 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 9124 | fi |
| 9125 | else |
| 9126 | $as_echo "/* $configure_input */" \ |
| 9127 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 9128 | || as_fn_error "could not create -" "$LINENO" 5 |
| 9129 | fi |
| 9130 | # Compute "$ac_file"'s index in $config_headers. |
| 9131 | _am_arg="$ac_file" |
| 9132 | _am_stamp_count=1 |
| 9133 | for _am_header in $config_headers :; do |
| 9134 | case $_am_header in |
| 9135 | $_am_arg | $_am_arg:* ) |
| 9136 | break ;; |
| 9137 | * ) |
| 9138 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 9139 | esac |
| 9140 | done |
| 9141 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 9142 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9143 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 9144 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 9145 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 9146 | $as_echo X"$_am_arg" | |
| 9147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9148 | s//\1/ |
| 9149 | q |
| 9150 | } |
| 9151 | /^X\(\/\/\)[^/].*/{ |
| 9152 | s//\1/ |
| 9153 | q |
| 9154 | } |
| 9155 | /^X\(\/\/\)$/{ |
| 9156 | s//\1/ |
| 9157 | q |
| 9158 | } |
| 9159 | /^X\(\/\).*/{ |
| 9160 | s//\1/ |
| 9161 | q |
| 9162 | } |
| 9163 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 9164 | ;; |
| 9165 | |
| 9166 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 9167 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 9168 | ;; |
| 9169 | esac |
| 9170 | |
| 9171 | |
| 9172 | case $ac_file$ac_mode in |
| 9173 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 9174 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 9175 | # are listed without --file. Let's play safe and only enable the eval |
| 9176 | # if we detect the quoting. |
| 9177 | case $CONFIG_FILES in |
| 9178 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 9179 | *) set x $CONFIG_FILES ;; |
| 9180 | esac |
| 9181 | shift |
| 9182 | for mf |
| 9183 | do |
| 9184 | # Strip MF so we end up with the name of the file. |
| 9185 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 9186 | # Check whether this is an Automake generated Makefile or not. |
| 9187 | # We used to match only the files named `Makefile.in', but |
| 9188 | # some people rename them; so instead we look at the file content. |
| 9189 | # Grep'ing the first line is not enough: some people post-process |
| 9190 | # each Makefile.in and add a new line on top of each file to say so. |
| 9191 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 9192 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 9193 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 9194 | dirpart=`$as_dirname -- "$mf" || |
| 9195 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9196 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 9197 | X"$mf" : 'X\(//\)$' \| \ |
| 9198 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 9199 | $as_echo X"$mf" | |
| 9200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9201 | s//\1/ |
| 9202 | q |
| 9203 | } |
| 9204 | /^X\(\/\/\)[^/].*/{ |
| 9205 | s//\1/ |
| 9206 | q |
| 9207 | } |
| 9208 | /^X\(\/\/\)$/{ |
| 9209 | s//\1/ |
| 9210 | q |
| 9211 | } |
| 9212 | /^X\(\/\).*/{ |
| 9213 | s//\1/ |
| 9214 | q |
| 9215 | } |
| 9216 | s/.*/./; q'` |
| 9217 | else |
| 9218 | continue |
| 9219 | fi |
| 9220 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 9221 | # from the Makefile without running `make'. |
| 9222 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 9223 | test -z "$DEPDIR" && continue |
| 9224 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 9225 | test -z "am__include" && continue |
| 9226 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 9227 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 9228 | U=`sed -n 's/^U = //p' < "$mf"` |
| 9229 | # Find all dependency output files, they are included files with |
| 9230 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 9231 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 9232 | # expansion. |
| 9233 | for file in `sed -n " |
| 9234 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 9235 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 9236 | # Make sure the directory exists. |
| 9237 | test -f "$dirpart/$file" && continue |
| 9238 | fdir=`$as_dirname -- "$file" || |
| 9239 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9240 | X"$file" : 'X\(//\)[^/]' \| \ |
| 9241 | X"$file" : 'X\(//\)$' \| \ |
| 9242 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 9243 | $as_echo X"$file" | |
| 9244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9245 | s//\1/ |
| 9246 | q |
| 9247 | } |
| 9248 | /^X\(\/\/\)[^/].*/{ |
| 9249 | s//\1/ |
| 9250 | q |
| 9251 | } |
| 9252 | /^X\(\/\/\)$/{ |
| 9253 | s//\1/ |
| 9254 | q |
| 9255 | } |
| 9256 | /^X\(\/\).*/{ |
| 9257 | s//\1/ |
| 9258 | q |
| 9259 | } |
| 9260 | s/.*/./; q'` |
| 9261 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 9262 | # echo "creating $dirpart/$file" |
| 9263 | echo '# dummy' > "$dirpart/$file" |
| 9264 | done |
| 9265 | done |
| 9266 | } |
| 9267 | ;; |
| 9268 | "default-1":C) |
| 9269 | for ac_file in $CONFIG_FILES; do |
| 9270 | # Support "outfile[:infile[:infile...]]" |
| 9271 | case "$ac_file" in |
| 9272 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 9273 | esac |
| 9274 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 9275 | case "$ac_file" in */Makefile.in) |
| 9276 | # Adjust a relative srcdir. |
| 9277 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 9278 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
| 9279 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 9280 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 9281 | # In autoconf-2.50 it is called $srcdir. |
| 9282 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 9283 | case "$ac_given_srcdir" in |
| 9284 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 9285 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 9286 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 9287 | esac |
| 9288 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 9289 | rm -f "$ac_dir/POTFILES" |
| 9290 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 9291 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 9292 | POMAKEFILEDEPS="POTFILES.in" |
| 9293 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 9294 | # on $ac_dir but don't depend on user-specified configuration |
| 9295 | # parameters. |
| 9296 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 9297 | # The LINGUAS file contains the set of available languages. |
| 9298 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 9299 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
| 9300 | fi |
| 9301 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 9302 | # Hide the ALL_LINGUAS assigment from automake. |
| 9303 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 9304 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 9305 | else |
| 9306 | # The set of available languages was given in configure.ac. |
| 9307 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 9308 | fi |
| 9309 | case "$ac_given_srcdir" in |
| 9310 | .) srcdirpre= ;; |
| 9311 | *) srcdirpre='$(srcdir)/' ;; |
| 9312 | esac |
| 9313 | POFILES= |
| 9314 | GMOFILES= |
| 9315 | UPDATEPOFILES= |
| 9316 | DUMMYPOFILES= |
| 9317 | for lang in $ALL_LINGUAS; do |
| 9318 | POFILES="$POFILES $srcdirpre$lang.po" |
| 9319 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 9320 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 9321 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 9322 | done |
| 9323 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 9324 | # environment variable. |
| 9325 | INST_LINGUAS= |
| 9326 | if test -n "$ALL_LINGUAS"; then |
| 9327 | for presentlang in $ALL_LINGUAS; do |
| 9328 | useit=no |
| 9329 | if test "%UNSET%" != "$LINGUAS"; then |
| 9330 | desiredlanguages="$LINGUAS" |
| 9331 | else |
| 9332 | desiredlanguages="$ALL_LINGUAS" |
| 9333 | fi |
| 9334 | for desiredlang in $desiredlanguages; do |
| 9335 | # Use the presentlang catalog if desiredlang is |
| 9336 | # a. equal to presentlang, or |
| 9337 | # b. a variant of presentlang (because in this case, |
| 9338 | # presentlang can be used as a fallback for messages |
| 9339 | # which are not translated in the desiredlang catalog). |
| 9340 | case "$desiredlang" in |
| 9341 | "$presentlang"*) useit=yes;; |
| 9342 | esac |
| 9343 | done |
| 9344 | if test $useit = yes; then |
| 9345 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 9346 | fi |
| 9347 | done |
| 9348 | fi |
| 9349 | CATALOGS= |
| 9350 | if test -n "$INST_LINGUAS"; then |
| 9351 | for lang in $INST_LINGUAS; do |
| 9352 | CATALOGS="$CATALOGS $lang.gmo" |
| 9353 | done |
| 9354 | fi |
| 9355 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 9356 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 9357 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 9358 | if test -f "$f"; then |
| 9359 | case "$f" in |
| 9360 | *.orig | *.bak | *~) ;; |
| 9361 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 9362 | esac |
| 9363 | fi |
| 9364 | done |
| 9365 | fi |
| 9366 | ;; |
| 9367 | esac |
| 9368 | done ;; |
| 9369 | |
| 9370 | esac |
| 9371 | done # for ac_tag |
| 9372 | |
| 9373 | |
| 9374 | as_fn_exit 0 |
| 9375 | _ACEOF |
| 9376 | ac_clean_files=$ac_clean_files_save |
| 9377 | |
| 9378 | test $ac_write_fail = 0 || |
| 9379 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 9380 | |
| 9381 | |
| 9382 | # configure is writing to config.log, and then calls config.status. |
| 9383 | # config.status does its own redirection, appending to config.log. |
| 9384 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 9385 | # by configure, so config.status won't be able to write to it; its |
| 9386 | # output is simply discarded. So we exec the FD to /dev/null, |
| 9387 | # effectively closing config.log, so it can be properly (re)opened and |
| 9388 | # appended to by config.status. When coming back to configure, we |
| 9389 | # need to make the FD available again. |
| 9390 | if test "$no_create" != yes; then |
| 9391 | ac_cs_success=: |
| 9392 | ac_config_status_args= |
| 9393 | test "$silent" = yes && |
| 9394 | ac_config_status_args="$ac_config_status_args --quiet" |
| 9395 | exec 5>/dev/null |
| 9396 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 9397 | exec 5>>config.log |
| 9398 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 9399 | # would make configure fail if this is the last instruction. |
| 9400 | $ac_cs_success || as_fn_exit $? |
| 9401 | fi |
| 9402 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 9404 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 9405 | fi |
| 9406 | |