1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 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 16DUALCASE=1; export DUALCASE # for MKS sh 17if 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 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_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. 43if 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 --' 47elif (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' 50else 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' 70fi 71 72# The user is always right. 73if 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 } 79fi 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.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="pr/include/nspr.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624MT 625NEXT_ROOT 626MACOS_SDK_DIR 627WRAP_SYSTEM_INCLUDES 628VISIBILITY_FLAGS 629CYGWIN_WRAPPER 630OS_DLLFLAGS 631EXEFLAGS 632DLLFLAGS 633RCFLAGS 634RC 635OPTIMIZER 636NSINSTALL 637RELEASE_OBJDIR_NAME 638OBJDIR_NAME 639OBJDIR 640ULTRASPARC_LIBRARY 641MOZ_OBJFORMAT 642NOSUCHFILE 643AIX_LINK_OPTS 644RESOLVE_LINK_SYMBOLS 645OS_LIBS 646PROFILE_USE_LDFLAGS 647PROFILE_USE_CFLAGS 648PROFILE_GEN_LDFLAGS 649PROFILE_GEN_CFLAGS 650IMPLIB 651FILTER 652ASFLAGS 653AR_FLAGS 654DEFINES 655MACOSX_DEPLOYMENT_TARGET 656OS_TEST 657OS_RELEASE 658OS_ARCH 659OS_TARGET 660DSO_LDOPTS 661DSO_CFLAGS 662MKSHLIB 663WRAP_LDFLAGS 664ASM_SUFFIX 665DLL_SUFFIX 666LIB_SUFFIX 667OBJ_SUFFIX 668CPU_ARCH 669PR_MD_ARCH_DIR 670PR_MD_ASFILES 671PR_MD_CSRCS 672MDCPUCFG_H 673NSPR_MODNAME 674MOD_PATCH_VERSION 675MOD_MINOR_VERSION 676MOD_MAJOR_VERSION 677LIBPLC 678LIBNSPR 679USE_NSPR_THREADS 680USE_USER_PTHREADS 681USE_BTHREADS 682USE_PTHREADS 683ENABLE_STRIP 684OBJECT_MODE 685USE_64 686USE_X32 687USE_N32 688USE_IPV6 689USE_CPLUS 690MOZ_DEBUG_SYMBOLS 691MOZ_DEBUG 692MOZ_OPTIMIZE 693CROSS_COMPILE 694MSC_VER 695GCC_USE_GNU_LD 696GNU_CC 697HOST_LDFLAGS 698HOST_CFLAGS 699MOZILLA_CLIENT 700SHELL_OVERRIDE 701CCACHE 702EGREP 703GREP 704PERL 705CPP 706HOST_CC 707WINDRES 708STRIP 709LD 710AS 711AR 712RANLIB 713ac_ct_CXX 714CXXFLAGS 715CXX 716OBJEXT 717EXEEXT 718ac_ct_CC 719CPPFLAGS 720LDFLAGS 721CFLAGS 722WHOAMI 723dist_libdir 724dist_includedir 725dist_bindir 726dist_prefix 727CC 728target_os 729target_vendor 730target_cpu 731target 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782with_android_ndk 783with_android_toolchain 784with_android_version 785with_android_platform 786with_dist_prefix 787with_dist_bindir 788with_dist_includedir 789with_dist_libdir 790with_mozilla 791enable_optimize 792enable_debug 793enable_debug_symbols 794enable_win32_target 795enable_debug_rtl 796enable_static_rtl 797enable_x32 798enable_64bit 799enable_mdupdate 800enable_cplus 801with_arm_kuser 802with_macos_sdk 803enable_macos_target 804enable_os2_high_mem 805enable_thumb2 806with_thumb 807with_thumb_interwork 808with_arch 809with_fpu 810with_float_abi 811with_soft_float 812with_ccache 813enable_strip 814with_pthreads 815enable_user_pthreads 816enable_nspr_threads 817enable_ipv6 818enable_wrap_malloc 819with_wrap_malloc 820' 821 ac_precious_vars='build_alias 822host_alias 823target_alias 824CC 825CFLAGS 826LDFLAGS 827LIBS 828CPPFLAGS 829CXX 830CXXFLAGS 831CCC 832CPP' 833 834 835# Initialize some variables set by options. 836ac_init_help= 837ac_init_version=false 838ac_unrecognized_opts= 839ac_unrecognized_sep= 840# The variables have the same names as the options, with 841# dashes changed to underlines. 842cache_file=/dev/null 843exec_prefix=NONE 844no_create= 845no_recursion= 846prefix=NONE 847program_prefix=NONE 848program_suffix=NONE 849program_transform_name=s,x,x, 850silent= 851site= 852srcdir= 853verbose= 854x_includes=NONE 855x_libraries=NONE 856 857# Installation directory options. 858# These are left unexpanded so users can "make install exec_prefix=/foo" 859# and all the variables that are supposed to be based on exec_prefix 860# by default will actually change. 861# Use braces instead of parens because sh, perl, etc. also accept them. 862# (The list follows the same order as the GNU Coding Standards.) 863bindir='${exec_prefix}/bin' 864sbindir='${exec_prefix}/sbin' 865libexecdir='${exec_prefix}/libexec' 866datarootdir='${prefix}/share' 867datadir='${datarootdir}' 868sysconfdir='${prefix}/etc' 869sharedstatedir='${prefix}/com' 870localstatedir='${prefix}/var' 871runstatedir='${localstatedir}/run' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1125 | --runstate | --runstat | --runsta | --runst | --runs \ 1126 | --run | --ru | --r) 1127 ac_prev=runstatedir ;; 1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1130 | --run=* | --ru=* | --r=*) 1131 runstatedir=$ac_optarg ;; 1132 1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1134 ac_prev=sbindir ;; 1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1136 | --sbi=* | --sb=*) 1137 sbindir=$ac_optarg ;; 1138 1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1141 | --sharedst | --shareds | --shared | --share | --shar \ 1142 | --sha | --sh) 1143 ac_prev=sharedstatedir ;; 1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1147 | --sha=* | --sh=*) 1148 sharedstatedir=$ac_optarg ;; 1149 1150 -site | --site | --sit) 1151 ac_prev=site ;; 1152 -site=* | --site=* | --sit=*) 1153 site=$ac_optarg ;; 1154 1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1156 ac_prev=srcdir ;; 1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1158 srcdir=$ac_optarg ;; 1159 1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1161 | --syscon | --sysco | --sysc | --sys | --sy) 1162 ac_prev=sysconfdir ;; 1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1165 sysconfdir=$ac_optarg ;; 1166 1167 -target | --target | --targe | --targ | --tar | --ta | --t) 1168 ac_prev=target_alias ;; 1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1170 target_alias=$ac_optarg ;; 1171 1172 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1173 verbose=yes ;; 1174 1175 -version | --version | --versio | --versi | --vers | -V) 1176 ac_init_version=: ;; 1177 1178 -with-* | --with-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error $? "invalid package name: $ac_useropt" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187"with_$ac_useropt" 1188"*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=\$ac_optarg ;; 1193 1194 -without-* | --without-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid package name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=no ;; 1209 1210 --x) 1211 # Obsolete; use --with-x. 1212 with_x=yes ;; 1213 1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1215 | --x-incl | --x-inc | --x-in | --x-i) 1216 ac_prev=x_includes ;; 1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1219 x_includes=$ac_optarg ;; 1220 1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1223 ac_prev=x_libraries ;; 1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1226 x_libraries=$ac_optarg ;; 1227 1228 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1229Try \`$0 --help' for more information" 1230 ;; 1231 1232 *=*) 1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1234 # Reject names that are not valid shell variable names. 1235 case $ac_envvar in #( 1236 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1238 esac 1239 eval $ac_envvar=\$ac_optarg 1240 export $ac_envvar ;; 1241 1242 *) 1243 # FIXME: should be removed in autoconf 3.0. 1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1248 ;; 1249 1250 esac 1251done 1252 1253if test -n "$ac_prev"; then 1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1255 as_fn_error $? "missing argument to $ac_option" 1256fi 1257 1258if test -n "$ac_unrecognized_opts"; then 1259 case $enable_option_checking in 1260 no) ;; 1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1263 esac 1264fi 1265 1266# Check all directory arguments for consistency. 1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1268 datadir sysconfdir sharedstatedir localstatedir includedir \ 1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1270 libdir localedir mandir runstatedir 1271do 1272 eval ac_val=\$$ac_var 1273 # Remove trailing slashes. 1274 case $ac_val in 1275 */ ) 1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1277 eval $ac_var=\$ac_val;; 1278 esac 1279 # Be sure to have absolute directory names. 1280 case $ac_val in 1281 [\\/$]* | ?:[\\/]* ) continue;; 1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1283 esac 1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1285done 1286 1287# There might be people who depend on the old broken behavior: `$host' 1288# used to hold the argument of --host etc. 1289# FIXME: To remove some day. 1290build=$build_alias 1291host=$host_alias 1292target=$target_alias 1293 1294# FIXME: To remove some day. 1295if test "x$host_alias" != x; then 1296 if test "x$build_alias" = x; then 1297 cross_compiling=maybe 1298 elif test "x$build_alias" != "x$host_alias"; then 1299 cross_compiling=yes 1300 fi 1301fi 1302 1303ac_tool_prefix= 1304test -n "$host_alias" && ac_tool_prefix=$host_alias- 1305 1306test "$silent" = yes && exec 6>/dev/null 1307 1308 1309ac_pwd=`pwd` && test -n "$ac_pwd" && 1310ac_ls_di=`ls -di .` && 1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1312 as_fn_error $? "working directory cannot be determined" 1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1314 as_fn_error $? "pwd does not report name of working directory" 1315 1316 1317# Find the source files, if location was not specified. 1318if test -z "$srcdir"; then 1319 ac_srcdir_defaulted=yes 1320 # Try the directory containing this script, then the parent directory. 1321 ac_confdir=`$as_dirname -- "$as_myself" || 1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1323 X"$as_myself" : 'X\(//\)[^/]' \| \ 1324 X"$as_myself" : 'X\(//\)$' \| \ 1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1326$as_echo X"$as_myself" | 1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\/\)[^/].*/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)$/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\).*/{ 1340 s//\1/ 1341 q 1342 } 1343 s/.*/./; q'` 1344 srcdir=$ac_confdir 1345 if test ! -r "$srcdir/$ac_unique_file"; then 1346 srcdir=.. 1347 fi 1348else 1349 ac_srcdir_defaulted=no 1350fi 1351if test ! -r "$srcdir/$ac_unique_file"; then 1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1354fi 1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1356ac_abs_confdir=`( 1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1358 pwd)` 1359# When building in place, set srcdir=. 1360if test "$ac_abs_confdir" = "$ac_pwd"; then 1361 srcdir=. 1362fi 1363# Remove unnecessary trailing slashes from srcdir. 1364# Double slashes in file names in object file debugging info 1365# mess up M-x gdb in Emacs. 1366case $srcdir in 1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1368esac 1369for ac_var in $ac_precious_vars; do 1370 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_env_${ac_var}_value=\$${ac_var} 1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1373 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1374done 1375 1376# 1377# Report the --help message. 1378# 1379if test "$ac_init_help" = "long"; then 1380 # Omit some internal or obsolete options to make the list less imposing. 1381 # This message is too long to be a string in the A/UX 3.1 sh. 1382 cat <<_ACEOF 1383\`configure' configures this package to adapt to many kinds of systems. 1384 1385Usage: $0 [OPTION]... [VAR=VALUE]... 1386 1387To assign environment variables (e.g., CC, CFLAGS...), specify them as 1388VAR=VALUE. See below for descriptions of some of the useful variables. 1389 1390Defaults for the options are specified in brackets. 1391 1392Configuration: 1393 -h, --help display this help and exit 1394 --help=short display options specific to this package 1395 --help=recursive display the short help of all the included packages 1396 -V, --version display version information and exit 1397 -q, --quiet, --silent do not print \`checking ...' messages 1398 --cache-file=FILE cache test results in FILE [disabled] 1399 -C, --config-cache alias for \`--cache-file=config.cache' 1400 -n, --no-create do not create output files 1401 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1402 1403Installation directories: 1404 --prefix=PREFIX install architecture-independent files in PREFIX 1405 [$ac_default_prefix] 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1407 [PREFIX] 1408 1409By default, \`make install' will install all the files in 1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1411an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1412for instance \`--prefix=\$HOME'. 1413 1414For better control, use the options below. 1415 1416Fine tuning of the installation directories: 1417 --bindir=DIR user executables [EPREFIX/bin] 1418 --sbindir=DIR system admin executables [EPREFIX/sbin] 1419 --libexecdir=DIR program executables [EPREFIX/libexec] 1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1424 --libdir=DIR object code libraries [EPREFIX/lib] 1425 --includedir=DIR C header files [PREFIX/include] 1426 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1429 --infodir=DIR info documentation [DATAROOTDIR/info] 1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1431 --mandir=DIR man documentation [DATAROOTDIR/man] 1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1433 --htmldir=DIR html documentation [DOCDIR] 1434 --dvidir=DIR dvi documentation [DOCDIR] 1435 --pdfdir=DIR pdf documentation [DOCDIR] 1436 --psdir=DIR ps documentation [DOCDIR] 1437_ACEOF 1438 1439 cat <<\_ACEOF 1440 1441System types: 1442 --build=BUILD configure for building on BUILD [guessed] 1443 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1444 --target=TARGET configure for building compilers for TARGET [HOST] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 1450 cat <<\_ACEOF 1451 1452Optional Features: 1453 --disable-option-checking ignore unrecognized --enable/--with options 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1456 --enable-optimize=OPT Enable code optimizations (ie. -O2) 1457 --enable-debug=DBG Enable debugging (using compiler flags DBG) 1458 --enable-debug-symbols=DBG Enable debugging symbols 1459 (using compiler flags DBG) 1460 --enable-win32-target=\$t 1461 Specify win32 flavor. (WIN95 or WINNT) 1462 --enable-debug-rtl Use the MSVC debug runtime library 1463 --enable-static-rtl Use the MSVC static runtime library 1464 --enable-x32 Enable x32 ABI support (x86_64 only) 1465 --enable-64bit Enable 64-bit support (on certain platforms) 1466 --enable-mdupdate Enable use of certain compilers' mdupdate feature 1467 --enable-cplus Enable some c++ api routines 1468 --enable-macos-target=VER 1469 Set the minimum MacOS version needed at runtime 1470 10.3 for ppc, 10.4 for x86 1471 --disable-os2-high-mem Disable high-memory support on OS/2 1472 1473 --enable-strip Enable stripping of shared libs and programs 1474 --enable-user-pthreads Build using userland pthreads 1475 --enable-nspr-threads Build using classic nspr threads 1476 --enable-ipv6 Compile ipv6 support 1477 --enable-wrap-malloc Wrap malloc calls (gnu linker only) 1478 1479Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-android-ndk=DIR 1483 location where the Android NDK can be found 1484 --with-android-toolchain=DIR 1485 location of the Android toolchain 1486 --with-android-version=VER 1487 Android platform version, default 5 for arm, 9 for x86/mips 1488 --with-android-platform=DIR 1489 location of platform dir 1490 --with-dist-prefix=DIST_PREFIX 1491 place build files in DIST_PREFIX dist 1492 --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin 1493 --with-dist-includedir=DIR 1494 build include files in DIR DIST_PREFIX/include/nspr 1495 --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib 1496 --with-mozilla Compile NSPR with Mozilla support 1497 --with-arm-kuser Use kuser helpers (Linux/ARM only) 1498 (Requires kernel 2.6.13 or later) 1499 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only) 1500 --with-thumb[=yes|no|toolchain-default] 1501 Use Thumb instruction set (-mthumb) 1502 --with-thumb-interwork[=yes|no|toolchain-default] 1503 Use Thumb/ARM instuctions interwork (-mthumb-interwork) 1504 --with-arch=[type|toolchain-default] 1505 Use specific CPU features (-march=type) 1506 --with-fpu=[type|toolchain-default] 1507 Use specific FPU type (-mfpu=type) 1508 --with-float-abi=[type|toolchain-default] 1509 Use specific arm float ABI (-mfloat-abi=type) 1510 --with-soft-float[=yes|no|toolchain-default] 1511 Use soft float library (-msoft-float) 1512 --with-ccache=path/to/ccache 1513 Enable compiling with ccache 1514 --with-pthreads Use system pthreads library as thread subsystem 1515 --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library 1516 1517Some influential environment variables: 1518 CC C compiler command 1519 CFLAGS C compiler flags 1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1521 nonstandard directory <lib dir> 1522 LIBS libraries to pass to the linker, e.g. -l<library> 1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1524 you have headers in a nonstandard directory <include dir> 1525 CXX C++ compiler command 1526 CXXFLAGS C++ compiler flags 1527 CPP C preprocessor 1528 1529Use these variables to override the choices made by `configure' or to help 1530it to find libraries and programs with nonstandard names/locations. 1531 1532Report bugs to the package provider. 1533_ACEOF 1534ac_status=$? 1535fi 1536 1537if test "$ac_init_help" = "recursive"; then 1538 # If there are subdirs, report their specific --help. 1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1540 test -d "$ac_dir" || 1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1542 continue 1543 ac_builddir=. 1544 1545case "$ac_dir" in 1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1547*) 1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1549 # A ".." for each directory in $ac_dir_suffix. 1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1551 case $ac_top_builddir_sub in 1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1554 esac ;; 1555esac 1556ac_abs_top_builddir=$ac_pwd 1557ac_abs_builddir=$ac_pwd$ac_dir_suffix 1558# for backward compatibility: 1559ac_top_builddir=$ac_top_build_prefix 1560 1561case $srcdir in 1562 .) # We are building in place. 1563 ac_srcdir=. 1564 ac_top_srcdir=$ac_top_builddir_sub 1565 ac_abs_top_srcdir=$ac_pwd ;; 1566 [\\/]* | ?:[\\/]* ) # Absolute name. 1567 ac_srcdir=$srcdir$ac_dir_suffix; 1568 ac_top_srcdir=$srcdir 1569 ac_abs_top_srcdir=$srcdir ;; 1570 *) # Relative name. 1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1572 ac_top_srcdir=$ac_top_build_prefix$srcdir 1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1574esac 1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1576 1577 cd "$ac_dir" || { ac_status=$?; continue; } 1578 # Check for guested configure. 1579 if test -f "$ac_srcdir/configure.gnu"; then 1580 echo && 1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1582 elif test -f "$ac_srcdir/configure"; then 1583 echo && 1584 $SHELL "$ac_srcdir/configure" --help=recursive 1585 else 1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1587 fi || ac_status=$? 1588 cd "$ac_pwd" || { ac_status=$?; break; } 1589 done 1590fi 1591 1592test -n "$ac_init_help" && exit $ac_status 1593if $ac_init_version; then 1594 cat <<\_ACEOF 1595configure 1596generated by GNU Autoconf 2.69 1597 1598Copyright (C) 2012 Free Software Foundation, Inc. 1599This configure script is free software; the Free Software Foundation 1600gives unlimited permission to copy, distribute and modify it. 1601_ACEOF 1602 exit 1603fi 1604 1605## ------------------------ ## 1606## Autoconf initialization. ## 1607## ------------------------ ## 1608 1609# ac_fn_c_try_compile LINENO 1610# -------------------------- 1611# Try to compile conftest.$ac_ext, and return whether this succeeded. 1612ac_fn_c_try_compile () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 rm -f conftest.$ac_objext 1616 if { { ac_try="$ac_compile" 1617case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620esac 1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622$as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_compile") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } && { 1632 test -z "$ac_c_werror_flag" || 1633 test ! -s conftest.err 1634 } && test -s conftest.$ac_objext; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_compile 1646 1647# ac_fn_cxx_try_compile LINENO 1648# ---------------------------- 1649# Try to compile conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_cxx_try_compile () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext 1654 if { { ac_try="$ac_compile" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_compile") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_cxx_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest.$ac_objext; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_cxx_try_compile 1684 1685# ac_fn_c_try_cpp LINENO 1686# ---------------------- 1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_cpp () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_cpp conftest.$ac_ext" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } > conftest.i && { 1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 }; then : 1710 ac_retval=0 1711else 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716fi 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_cpp 1721 1722# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1723# ------------------------------------------------------- 1724# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1725# the include files in INCLUDES and setting the cache variable VAR 1726# accordingly. 1727ac_fn_c_check_header_mongrel () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 if eval \${$3+:} false; then : 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1732$as_echo_n "checking for $2... " >&6; } 1733if eval \${$3+:} false; then : 1734 $as_echo_n "(cached) " >&6 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739else 1740 # Is the header compilable? 1741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1742$as_echo_n "checking $2 usability... " >&6; } 1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745$4 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_compile "$LINENO"; then : 1749 ac_header_compiler=yes 1750else 1751 ac_header_compiler=no 1752fi 1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1755$as_echo "$ac_header_compiler" >&6; } 1756 1757# Is the header present? 1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1759$as_echo_n "checking $2 presence... " >&6; } 1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762#include <$2> 1763_ACEOF 1764if ac_fn_c_try_cpp "$LINENO"; then : 1765 ac_header_preproc=yes 1766else 1767 ac_header_preproc=no 1768fi 1769rm -f conftest.err conftest.i conftest.$ac_ext 1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1771$as_echo "$ac_header_preproc" >&6; } 1772 1773# So? What about this header? 1774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1775 yes:no: ) 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1777$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1780 ;; 1781 no:yes:* ) 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1783$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1785$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1787$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1789$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1792 ;; 1793esac 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 eval "$3=\$ac_header_compiler" 1800fi 1801eval ac_res=\$$3 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803$as_echo "$ac_res" >&6; } 1804fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 1807} # ac_fn_c_check_header_mongrel 1808 1809# ac_fn_c_try_run LINENO 1810# ---------------------- 1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1812# that executables *can* be run. 1813ac_fn_c_try_run () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 if { { ac_try="$ac_link" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_link") 2>&5 1824 ac_status=$? 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1827 { { case "(($ac_try" in 1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1829 *) ac_try_echo=$ac_try;; 1830esac 1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1832$as_echo "$ac_try_echo"; } >&5 1833 (eval "$ac_try") 2>&5 1834 ac_status=$? 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; }; }; then : 1837 ac_retval=0 1838else 1839 $as_echo "$as_me: program exited with status $ac_status" >&5 1840 $as_echo "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=$ac_status 1844fi 1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_c_try_run 1850 1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1852# ------------------------------------------------------- 1853# Tests whether HEADER exists and can be compiled using the include files in 1854# INCLUDES, setting the cache variable VAR accordingly. 1855ac_fn_c_check_header_compile () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if eval \${$3+:} false; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865$4 1866#include <$2> 1867_ACEOF 1868if ac_fn_c_try_compile "$LINENO"; then : 1869 eval "$3=yes" 1870else 1871 eval "$3=no" 1872fi 1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1874fi 1875eval ac_res=\$$3 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1877$as_echo "$ac_res" >&6; } 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 1880} # ac_fn_c_check_header_compile 1881 1882# ac_fn_c_try_link LINENO 1883# ----------------------- 1884# Try to link conftest.$ac_ext, and return whether this succeeded. 1885ac_fn_c_try_link () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 rm -f conftest.$ac_objext conftest$ac_exeext 1889 if { { ac_try="$ac_link" 1890case "(($ac_try" in 1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1892 *) ac_try_echo=$ac_try;; 1893esac 1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1895$as_echo "$ac_try_echo"; } >&5 1896 (eval "$ac_link") 2>conftest.err 1897 ac_status=$? 1898 if test -s conftest.err; then 1899 grep -v '^ *+' conftest.err >conftest.er1 1900 cat conftest.er1 >&5 1901 mv -f conftest.er1 conftest.err 1902 fi 1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1904 test $ac_status = 0; } && { 1905 test -z "$ac_c_werror_flag" || 1906 test ! -s conftest.err 1907 } && test -s conftest$ac_exeext && { 1908 test "$cross_compiling" = yes || 1909 test -x conftest$ac_exeext 1910 }; then : 1911 ac_retval=0 1912else 1913 $as_echo "$as_me: failed program was:" >&5 1914sed 's/^/| /' conftest.$ac_ext >&5 1915 1916 ac_retval=1 1917fi 1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1920 # interfere with the next link command; also delete a directory that is 1921 # left behind by Apple's compiler. We do this before executing the actions. 1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 as_fn_set_status $ac_retval 1925 1926} # ac_fn_c_try_link 1927 1928# ac_fn_c_check_func LINENO FUNC VAR 1929# ---------------------------------- 1930# Tests whether FUNC exists, setting the cache variable VAR accordingly 1931ac_fn_c_check_func () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1935$as_echo_n "checking for $2... " >&6; } 1936if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1943#define $2 innocuous_$2 1944 1945/* System header to define __stub macros and hopefully few prototypes, 1946 which can conflict with char $2 (); below. 1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1948 <limits.h> exists even on freestanding compilers. */ 1949 1950#ifdef __STDC__ 1951# include <limits.h> 1952#else 1953# include <assert.h> 1954#endif 1955 1956#undef $2 1957 1958/* Override any GCC internal prototype to avoid an error. 1959 Use char because int might match the return type of a GCC 1960 builtin and then its argument prototype would still apply. */ 1961#ifdef __cplusplus 1962extern "C" 1963#endif 1964char $2 (); 1965/* The GNU C library defines this for functions which it implements 1966 to always fail with ENOSYS. Some functions are actually named 1967 something starting with __ and the normal name is an alias. */ 1968#if defined __stub_$2 || defined __stub___$2 1969choke me 1970#endif 1971 1972int 1973main () 1974{ 1975return $2 (); 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980if ac_fn_c_try_link "$LINENO"; then : 1981 eval "$3=yes" 1982else 1983 eval "$3=no" 1984fi 1985rm -f core conftest.err conftest.$ac_objext \ 1986 conftest$ac_exeext conftest.$ac_ext 1987fi 1988eval ac_res=\$$3 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1990$as_echo "$ac_res" >&6; } 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 1993} # ac_fn_c_check_func 1994cat >config.log <<_ACEOF 1995This file contains any messages produced by compilers while 1996running configure, to aid debugging if configure makes a mistake. 1997 1998It was created by $as_me, which was 1999generated by GNU Autoconf 2.69. Invocation command line was 2000 2001 $ $0 $@ 2002 2003_ACEOF 2004exec 5>>config.log 2005{ 2006cat <<_ASUNAME 2007## --------- ## 2008## Platform. ## 2009## --------- ## 2010 2011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2012uname -m = `(uname -m) 2>/dev/null || echo unknown` 2013uname -r = `(uname -r) 2>/dev/null || echo unknown` 2014uname -s = `(uname -s) 2>/dev/null || echo unknown` 2015uname -v = `(uname -v) 2>/dev/null || echo unknown` 2016 2017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2019 2020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2023/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2027 2028_ASUNAME 2029 2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031for as_dir in $PATH 2032do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 $as_echo "PATH: $as_dir" 2036 done 2037IFS=$as_save_IFS 2038 2039} >&5 2040 2041cat >&5 <<_ACEOF 2042 2043 2044## ----------- ## 2045## Core tests. ## 2046## ----------- ## 2047 2048_ACEOF 2049 2050 2051# Keep a trace of the command line. 2052# Strip out --no-create and --no-recursion so they do not pile up. 2053# Strip out --silent because we don't want to record it for future runs. 2054# Also quote any args containing shell meta-characters. 2055# Make two passes to allow for proper duplicate-argument suppression. 2056ac_configure_args= 2057ac_configure_args0= 2058ac_configure_args1= 2059ac_must_keep_next=false 2060for ac_pass in 1 2 2061do 2062 for ac_arg 2063 do 2064 case $ac_arg in 2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2067 | -silent | --silent | --silen | --sile | --sil) 2068 continue ;; 2069 *\'*) 2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2071 esac 2072 case $ac_pass in 2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2074 2) 2075 as_fn_append ac_configure_args1 " '$ac_arg'" 2076 if test $ac_must_keep_next = true; then 2077 ac_must_keep_next=false # Got value, back to normal. 2078 else 2079 case $ac_arg in 2080 *=* | --config-cache | -C | -disable-* | --disable-* \ 2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2083 | -with-* | --with-* | -without-* | --without-* | --x) 2084 case "$ac_configure_args0 " in 2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2086 esac 2087 ;; 2088 -* ) ac_must_keep_next=true ;; 2089 esac 2090 fi 2091 as_fn_append ac_configure_args " '$ac_arg'" 2092 ;; 2093 esac 2094 done 2095done 2096{ ac_configure_args0=; unset ac_configure_args0;} 2097{ ac_configure_args1=; unset ac_configure_args1;} 2098 2099# When interrupted or exit'd, cleanup temporary files, and complete 2100# config.log. We remove comments because anyway the quotes in there 2101# would cause problems or look ugly. 2102# WARNING: Use '\'' to represent an apostrophe within the trap. 2103# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2104trap 'exit_status=$? 2105 # Save into config.log some information that might help in debugging. 2106 { 2107 echo 2108 2109 $as_echo "## ---------------- ## 2110## Cache variables. ## 2111## ---------------- ##" 2112 echo 2113 # The following way of writing the cache mishandles newlines in values, 2114( 2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2116 eval ac_val=\$$ac_var 2117 case $ac_val in #( 2118 *${as_nl}*) 2119 case $ac_var in #( 2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2121$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2122 esac 2123 case $ac_var in #( 2124 _ | IFS | as_nl) ;; #( 2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2126 *) { eval $ac_var=; unset $ac_var;} ;; 2127 esac ;; 2128 esac 2129 done 2130 (set) 2>&1 | 2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2132 *${as_nl}ac_space=\ *) 2133 sed -n \ 2134 "s/'\''/'\''\\\\'\'''\''/g; 2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2136 ;; #( 2137 *) 2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2139 ;; 2140 esac | 2141 sort 2142) 2143 echo 2144 2145 $as_echo "## ----------------- ## 2146## Output variables. ## 2147## ----------------- ##" 2148 echo 2149 for ac_var in $ac_subst_vars 2150 do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in 2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2154 esac 2155 $as_echo "$ac_var='\''$ac_val'\''" 2156 done | sort 2157 echo 2158 2159 if test -n "$ac_subst_files"; then 2160 $as_echo "## ------------------- ## 2161## File substitutions. ## 2162## ------------------- ##" 2163 echo 2164 for ac_var in $ac_subst_files 2165 do 2166 eval ac_val=\$$ac_var 2167 case $ac_val in 2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2169 esac 2170 $as_echo "$ac_var='\''$ac_val'\''" 2171 done | sort 2172 echo 2173 fi 2174 2175 if test -s confdefs.h; then 2176 $as_echo "## ----------- ## 2177## confdefs.h. ## 2178## ----------- ##" 2179 echo 2180 cat confdefs.h 2181 echo 2182 fi 2183 test "$ac_signal" != 0 && 2184 $as_echo "$as_me: caught signal $ac_signal" 2185 $as_echo "$as_me: exit $exit_status" 2186 } >&5 2187 rm -f core *.core core.conftest.* && 2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2189 exit $exit_status 2190' 0 2191for ac_signal in 1 2 13 15; do 2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2193done 2194ac_signal=0 2195 2196# confdefs.h avoids OS command line length limits that DEFS can exceed. 2197rm -f -r conftest* confdefs.h 2198 2199$as_echo "/* confdefs.h */" > confdefs.h 2200 2201# Predefined preprocessor variables. 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_NAME "$PACKAGE_NAME" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_VERSION "$PACKAGE_VERSION" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_STRING "$PACKAGE_STRING" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_URL "$PACKAGE_URL" 2225_ACEOF 2226 2227 2228# Let the site file select an alternate cache file if it wants to. 2229# Prefer an explicitly selected file to automatically selected ones. 2230ac_site_file1=NONE 2231ac_site_file2=NONE 2232if test -n "$CONFIG_SITE"; then 2233 # We do not want a PATH search for config.site. 2234 case $CONFIG_SITE in #(( 2235 -*) ac_site_file1=./$CONFIG_SITE;; 2236 */*) ac_site_file1=$CONFIG_SITE;; 2237 *) ac_site_file1=./$CONFIG_SITE;; 2238 esac 2239elif test "x$prefix" != xNONE; then 2240 ac_site_file1=$prefix/share/config.site 2241 ac_site_file2=$prefix/etc/config.site 2242else 2243 ac_site_file1=$ac_default_prefix/share/config.site 2244 ac_site_file2=$ac_default_prefix/etc/config.site 2245fi 2246for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2247do 2248 test "x$ac_site_file" = xNONE && continue 2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2251$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2252 sed 's/^/| /' "$ac_site_file" >&5 2253 . "$ac_site_file" \ 2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2256as_fn_error $? "failed to load site script $ac_site_file 2257See \`config.log' for more details" "$LINENO" 5; } 2258 fi 2259done 2260 2261if test -r "$cache_file"; then 2262 # Some versions of bash will fail to source /dev/null (special files 2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2266$as_echo "$as_me: loading cache $cache_file" >&6;} 2267 case $cache_file in 2268 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2269 *) . "./$cache_file";; 2270 esac 2271 fi 2272else 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2274$as_echo "$as_me: creating cache $cache_file" >&6;} 2275 >$cache_file 2276fi 2277 2278# Check that the precious variables saved in the cache have kept the same 2279# value. 2280ac_cache_corrupted=false 2281for ac_var in $ac_precious_vars; do 2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2283 eval ac_new_set=\$ac_env_${ac_var}_set 2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2285 eval ac_new_val=\$ac_env_${ac_var}_value 2286 case $ac_old_set,$ac_new_set in 2287 set,) 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2289$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2290 ac_cache_corrupted=: ;; 2291 ,set) 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2293$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2294 ac_cache_corrupted=: ;; 2295 ,);; 2296 *) 2297 if test "x$ac_old_val" != "x$ac_new_val"; then 2298 # differences in whitespace do not lead to failure. 2299 ac_old_val_w=`echo x $ac_old_val` 2300 ac_new_val_w=`echo x $ac_new_val` 2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2303$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2304 ac_cache_corrupted=: 2305 else 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2307$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2308 eval $ac_var=\$ac_old_val 2309 fi 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2311$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2313$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2314 fi;; 2315 esac 2316 # Pass precious variables to config.status. 2317 if test "$ac_new_set" = set; then 2318 case $ac_new_val in 2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2320 *) ac_arg=$ac_var=$ac_new_val ;; 2321 esac 2322 case " $ac_configure_args " in 2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2325 esac 2326 fi 2327done 2328if $ac_cache_corrupted; then 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2332$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2334fi 2335## -------------------- ## 2336## Main body of script. ## 2337## -------------------- ## 2338 2339ac_ext=c 2340ac_cpp='$CPP $CPPFLAGS' 2341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2343ac_compiler_gnu=$ac_cv_c_compiler_gnu 2344 2345 2346 2347 2348ac_aux_dir= 2349for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do 2350 if test -f "$ac_dir/install-sh"; then 2351 ac_aux_dir=$ac_dir 2352 ac_install_sh="$ac_aux_dir/install-sh -c" 2353 break 2354 elif test -f "$ac_dir/install.sh"; then 2355 ac_aux_dir=$ac_dir 2356 ac_install_sh="$ac_aux_dir/install.sh -c" 2357 break 2358 elif test -f "$ac_dir/shtool"; then 2359 ac_aux_dir=$ac_dir 2360 ac_install_sh="$ac_aux_dir/shtool install -c" 2361 break 2362 fi 2363done 2364if test -z "$ac_aux_dir"; then 2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5 2366fi 2367 2368# These three variables are undocumented and unsupported, 2369# and are intended to be withdrawn in a future Autoconf release. 2370# They can cause serious problems if a builder's source tree is in a directory 2371# whose full name contains unusual characters. 2372ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2373ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2374ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2375 2376 2377# Make sure we can run config.sub. 2378$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2380 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2382$as_echo_n "checking build system type... " >&6; } 2383if ${ac_cv_build+:} false; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 ac_build_alias=$build_alias 2387test "x$ac_build_alias" = x && 2388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2389test "x$ac_build_alias" = x && 2390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2391ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2393 2394fi 2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2396$as_echo "$ac_cv_build" >&6; } 2397case $ac_cv_build in 2398*-*-*) ;; 2399*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2400esac 2401build=$ac_cv_build 2402ac_save_IFS=$IFS; IFS='-' 2403set x $ac_cv_build 2404shift 2405build_cpu=$1 2406build_vendor=$2 2407shift; shift 2408# Remember, the first character of IFS is used to create $*, 2409# except with old shells: 2410build_os=$* 2411IFS=$ac_save_IFS 2412case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2413 2414 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2416$as_echo_n "checking host system type... " >&6; } 2417if ${ac_cv_host+:} false; then : 2418 $as_echo_n "(cached) " >&6 2419else 2420 if test "x$host_alias" = x; then 2421 ac_cv_host=$ac_cv_build 2422else 2423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2424 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2425fi 2426 2427fi 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2429$as_echo "$ac_cv_host" >&6; } 2430case $ac_cv_host in 2431*-*-*) ;; 2432*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2433esac 2434host=$ac_cv_host 2435ac_save_IFS=$IFS; IFS='-' 2436set x $ac_cv_host 2437shift 2438host_cpu=$1 2439host_vendor=$2 2440shift; shift 2441# Remember, the first character of IFS is used to create $*, 2442# except with old shells: 2443host_os=$* 2444IFS=$ac_save_IFS 2445case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2446 2447 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2449$as_echo_n "checking target system type... " >&6; } 2450if ${ac_cv_target+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 if test "x$target_alias" = x; then 2454 ac_cv_target=$ac_cv_host 2455else 2456 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2458fi 2459 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2462$as_echo "$ac_cv_target" >&6; } 2463case $ac_cv_target in 2464*-*-*) ;; 2465*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2466esac 2467target=$ac_cv_target 2468ac_save_IFS=$IFS; IFS='-' 2469set x $ac_cv_target 2470shift 2471target_cpu=$1 2472target_vendor=$2 2473shift; shift 2474# Remember, the first character of IFS is used to create $*, 2475# except with old shells: 2476target_os=$* 2477IFS=$ac_save_IFS 2478case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2479 2480 2481# The aliases save the names the user supplied, while $host etc. 2482# will get canonicalized. 2483test -n "$target_alias" && 2484 test "$program_prefix$program_suffix$program_transform_name" = \ 2485 NONENONEs,x,x, && 2486 program_prefix=${target_alias}- 2487 2488MOD_MAJOR_VERSION=4 2489MOD_MINOR_VERSION=33 2490MOD_PATCH_VERSION=0 2491NSPR_MODNAME=nspr20 2492_HAVE_PTHREADS= 2493USE_PTHREADS= 2494USE_USER_PTHREADS= 2495USE_NSPR_THREADS= 2496USE_N32= 2497USE_X32= 2498USE_64= 2499USE_CPLUS= 2500USE_IPV6= 2501USE_MDUPDATE= 2502_MACOSX_DEPLOYMENT_TARGET= 2503_OPTIMIZE_FLAGS=-O 2504_DEBUG_FLAGS=-g 2505MOZ_DEBUG=1 2506MOZ_OPTIMIZE= 2507OBJDIR='$(OBJDIR_NAME)' 2508OBJDIR_NAME=. 2509OBJDIR_SUFFIX=OBJ 2510NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' 2511NOSUCHFILE=/no-such-file 2512LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' 2513LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)' 2514CYGWIN_WRAPPER= 2515MACOS_SDK_DIR= 2516NEXT_ROOT= 2517MT= 2518MOZ_OS2_HIGH_MEMORY=1 2519PROFILE_GEN_CFLAGS= 2520PROFILE_GEN_LDFLAGS= 2521PROFILE_USE_CFLAGS= 2522PROFILE_USE_LDFLAGS= 2523 2524RESOLVE_LINK_SYMBOLS= 2525 2526CFLAGS="${CFLAGS=}" 2527CXXFLAGS="${CXXFLAGS=}" 2528LDFLAGS="${LDFLAGS=}" 2529DLLFLAGS="${DLLFLAGS=}" 2530HOST_CFLAGS="${HOST_CFLAGS=}" 2531HOST_LDFLAGS="${HOST_LDFLAGS=}" 2532 2533case "$target" in 2534*-cygwin*|*-mingw*|*-msys*) 2535 # Check to see if we are really running in a msvc environemnt 2536 _WIN32_MSVC= 2537 for ac_prog in cl 2538do 2539 # Extract the first word of "$ac_prog", so it can be a program name with args. 2540set dummy $ac_prog; ac_word=$2 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2542$as_echo_n "checking for $ac_word... " >&6; } 2543if ${ac_cv_prog_CC+:} false; then : 2544 $as_echo_n "(cached) " >&6 2545else 2546 if test -n "$CC"; then 2547 ac_cv_prog_CC="$CC" # Let the user override the test. 2548else 2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550for as_dir in $PATH 2551do 2552 IFS=$as_save_IFS 2553 test -z "$as_dir" && as_dir=. 2554 for ac_exec_ext in '' $ac_executable_extensions; do 2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2556 ac_cv_prog_CC="$ac_prog" 2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2558 break 2 2559 fi 2560done 2561 done 2562IFS=$as_save_IFS 2563 2564fi 2565fi 2566CC=$ac_cv_prog_CC 2567if test -n "$CC"; then 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2569$as_echo "$CC" >&6; } 2570else 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2572$as_echo "no" >&6; } 2573fi 2574 2575 2576 test -n "$CC" && break 2577done 2578 2579 cat > conftest.c <<EOF 2580#ifdef _MSC_VER 2581COMPILER IS MSVC 2582#endif 2583EOF 2584 read dummy <<EOF 2585$($CC -E conftest.c 2>/dev/null | grep COMPILER) 2586EOF 2587 if test -n "$dummy"; then 2588 _WIN32_MSVC=1 2589 CXX=$CC 2590 fi 2591 rm -f conftest.c 2592 ;; 2593*-mks*) 2594 _WIN32_MSVC=1 2595 ;; 2596esac 2597 2598if test -n "$_WIN32_MSVC"; then 2599 SKIP_PATH_CHECKS=1 2600 SKIP_COMPILER_CHECKS=1 2601 SKIP_LIBRARY_CHECKS=1 2602fi 2603 2604 2605 2606# Check whether --with-android-ndk was given. 2607if test "${with_android_ndk+set}" = set; then : 2608 withval=$with_android_ndk; android_ndk=$withval 2609fi 2610 2611 2612 2613# Check whether --with-android-toolchain was given. 2614if test "${with_android_toolchain+set}" = set; then : 2615 withval=$with_android_toolchain; android_toolchain=$withval 2616fi 2617 2618 2619case "$target_cpu" in 2620arm) 2621 android_version=5 2622 ;; 2623i?86|mipsel) 2624 android_version=9 2625 ;; 2626esac 2627 2628 2629# Check whether --with-android-version was given. 2630if test "${with_android_version+set}" = set; then : 2631 withval=$with_android_version; android_version=$withval 2632fi 2633 2634 2635 2636# Check whether --with-android-platform was given. 2637if test "${with_android_platform+set}" = set; then : 2638 withval=$with_android_platform; android_platform=$withval 2639fi 2640 2641 2642case "$target" in 2643x86_64-linux*-android*) 2644 android_tool_prefix="x86_64-linux-android" 2645 ;; 2646aarch64-linux*-android*) 2647 android_tool_prefix="aarch64-linux-android" 2648 ;; 2649arm-linux*-android*|*-linuxandroid*) 2650 android_tool_prefix="arm-linux-androideabi" 2651 ;; 2652i?86-*android*) 2653 android_tool_prefix="i686-linux-android" 2654 ;; 2655mipsel-*android*) 2656 android_tool_prefix="mipsel-linux-android" 2657 ;; 2658*) 2659 android_tool_prefix="$target_os" 2660 ;; 2661esac 2662 2663case "$target" in 2664*-android*|*-linuxandroid*) 2665 if test -z "$android_ndk" ; then 2666 as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5 2667 fi 2668 2669 if test -z "$android_toolchain" ; then 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5 2671$as_echo_n "checking for android toolchain directory... " >&6; } 2672 2673 kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` 2674 2675 case "$target_cpu" in 2676 arm) 2677 target_name=arm-linux-androideabi-4.4.3 2678 ;; 2679 i?86) 2680 target_name=x86-4.4.3 2681 ;; 2682 mipsel) 2683 target_name=mipsel-linux-android-4.4.3 2684 ;; 2685 esac 2686 android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 2687 2688 if test -d "$android_toolchain" ; then 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5 2690$as_echo "$android_toolchain" >&6; } 2691 else 2692 as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5 2693 fi 2694 fi 2695 2696 if test -z "$android_platform" ; then 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5 2698$as_echo_n "checking for android platform directory... " >&6; } 2699 2700 case "$target_cpu" in 2701 arm) 2702 target_name=arm 2703 ;; 2704 i?86) 2705 target_name=x86 2706 ;; 2707 mipsel) 2708 target_name=mips 2709 ;; 2710 esac 2711 2712 android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name" 2713 2714 if test -d "$android_platform" ; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5 2716$as_echo "$android_platform" >&6; } 2717 else 2718 as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5 2719 fi 2720 fi 2721 2722 case "$target_cpu" in 2723 i?86) 2724 if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then 2725 android_tool_prefix="i686-android-linux" 2726 fi 2727 ;; 2728 esac 2729 2730 AS="$android_toolchain"/bin/"$android_tool_prefix"-as 2731 CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc 2732 CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++ 2733 CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp 2734 LD="$android_toolchain"/bin/"$android_tool_prefix"-ld 2735 AR="$android_toolchain"/bin/"$android_tool_prefix"-ar 2736 RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib 2737 STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip 2738 2739 CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS" 2740 CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS" 2741 CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS" 2742 LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS" 2743 2744 $as_echo "#define ANDROID 1" >>confdefs.h 2745 2746 ;; 2747esac 2748 2749dist_prefix='${MOD_DEPTH}/dist' 2750dist_bindir='${dist_prefix}/bin' 2751dist_includedir='${dist_prefix}/include/nspr' 2752dist_libdir='${dist_prefix}/lib' 2753if test "${includedir}" = '${prefix}/include'; then 2754 includedir='${prefix}/include/nspr' 2755fi 2756 2757 2758# Check whether --with-dist-prefix was given. 2759if test "${with_dist_prefix+set}" = set; then : 2760 withval=$with_dist_prefix; dist_prefix=$withval 2761fi 2762 2763 2764 2765# Check whether --with-dist-bindir was given. 2766if test "${with_dist_bindir+set}" = set; then : 2767 withval=$with_dist_bindir; dist_bindir=$withval 2768fi 2769 2770 2771 2772# Check whether --with-dist-includedir was given. 2773if test "${with_dist_includedir+set}" = set; then : 2774 withval=$with_dist_includedir; dist_includedir=$withval 2775fi 2776 2777 2778 2779# Check whether --with-dist-libdir was given. 2780if test "${with_dist_libdir+set}" = set; then : 2781 withval=$with_dist_libdir; dist_libdir=$withval 2782fi 2783 2784 2785 2786 2787 2788 2789 2790 2791# Check whether --with-mozilla was given. 2792if test "${with_mozilla+set}" = set; then : 2793 withval=$with_mozilla; if test "$withval" = "yes"; then 2794 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h 2795 2796 MOZILLA_CLIENT=1 2797 else 2798 MOZILLA_CLIENT= 2799 fi 2800else 2801 if test -n "$MOZILLA_CLIENT"; then 2802 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h 2803 2804 fi 2805fi 2806 2807 2808# Check whether --enable-optimize was given. 2809if test "${enable_optimize+set}" = set; then : 2810 enableval=$enable_optimize; if test "$enableval" != "no"; then 2811 MOZ_OPTIMIZE=1 2812 if test -n "$enableval" -a "$enableval" != "yes"; then 2813 _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` 2814 _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS 2815 fi 2816 else 2817 MOZ_OPTIMIZE= 2818 fi 2819fi 2820 2821 2822# Check whether --enable-debug was given. 2823if test "${enable_debug+set}" = set; then : 2824 enableval=$enable_debug; if test "$enableval" != "no"; then 2825 MOZ_DEBUG=1 2826 MOZ_DEBUG_SYMBOLS=1 2827 if test -n "$enableval" -a "$enableval" != "yes"; then 2828 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` 2829 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS 2830 fi 2831 else 2832 MOZ_DEBUG= 2833 fi 2834else 2835 MOZ_DEBUG_SYMBOLS=1 2836fi 2837 2838 2839# Check whether --enable-debug-symbols was given. 2840if test "${enable_debug_symbols+set}" = set; then : 2841 enableval=$enable_debug_symbols; if test "$enableval" != "no"; then 2842 MOZ_DEBUG_SYMBOLS=1 2843 if test -n "$enableval" -a "$enableval" != "yes"; then 2844 if test -z "$_SAVE_DEBUG_FLAGS"; then 2845 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` 2846 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS 2847 else 2848 as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5 2849 fi 2850 fi 2851 else 2852 MOZ_DEBUG_SYMBOLS= 2853 fi 2854fi 2855 2856 2857# Check whether --enable-win32-target was given. 2858if test "${enable_win32_target+set}" = set; then : 2859 enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z` 2860fi 2861 2862 2863 2864# Check whether --enable-debug-rtl was given. 2865if test "${enable_debug_rtl+set}" = set; then : 2866 enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then 2867 USE_DEBUG_RTL=1 2868 else 2869 USE_DEBUG_RTL=0 2870 fi 2871fi 2872 2873 2874# Check whether --enable-static-rtl was given. 2875if test "${enable_static_rtl+set}" = set; then : 2876 enableval=$enable_static_rtl; if test "$enableval" = "yes"; then 2877 USE_STATIC_RTL=1 2878 fi 2879fi 2880 2881 2882# Check whether --enable-x32 was given. 2883if test "${enable_x32+set}" = set; then : 2884 enableval=$enable_x32; if test "$enableval" = "yes"; then 2885 USE_X32=1 2886 else if test "$enableval" = "no"; then 2887 USE_X32= 2888 fi 2889 fi 2890fi 2891 2892 2893# Check whether --enable-64bit was given. 2894if test "${enable_64bit+set}" = set; then : 2895 enableval=$enable_64bit; if test "$enableval" = "yes"; then 2896 USE_64=1 2897 fi 2898fi 2899 2900 2901# Check whether --enable-mdupdate was given. 2902if test "${enable_mdupdate+set}" = set; then : 2903 enableval=$enable_mdupdate; if test "$enableval" = "yes"; then 2904 USE_MDUPDATE=1 2905 fi 2906fi 2907 2908 2909# Check whether --enable-cplus was given. 2910if test "${enable_cplus+set}" = set; then : 2911 enableval=$enable_cplus; if test "$enableval" = "yes"; then 2912 USE_CPLUS=1 2913 fi 2914fi 2915 2916 2917 2918# Check whether --with-arm-kuser was given. 2919if test "${with_arm_kuser+set}" = set; then : 2920 withval=$with_arm_kuser; if test "$withval" = "yes"; then 2921 $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h 2922 2923 fi 2924fi 2925 2926 2927 2928# Check whether --with-macos-sdk was given. 2929if test "${with_macos_sdk+set}" = set; then : 2930 withval=$with_macos_sdk; MACOS_SDK_DIR=$withval 2931fi 2932 2933 2934# Check whether --enable-macos-target was given. 2935if test "${enable_macos_target+set}" = set; then : 2936 enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval 2937fi 2938 2939 2940case "$target" in 2941 2942*-aix*) 2943 case "${target_os}" in 2944 aix3.2*) 2945 USE_NSPR_THREADS=1 2946 ;; 2947 *) 2948 USE_PTHREADS=1 2949 ;; 2950 esac 2951 ;; 2952 2953esac 2954 2955if test -z "$CC"; then 2956 case "$target" in 2957 2958 *-aix*) 2959 if test -z "$USE_NSPR_THREADS"; then 2960 CC=xlc_r 2961 else 2962 CC=xlc 2963 fi 2964 ;; 2965 2966 *-hpux*) 2967 CC=cc 2968 ;; 2969 2970 *-solaris*) 2971 CC=cc 2972 ;; 2973 2974 esac 2975fi 2976 2977if test -z "$CXX"; then 2978 case "$target" in 2979 2980 *-aix*) 2981 if test -z "$USE_NSPR_THREADS"; then 2982 CXX=xlC_r 2983 else 2984 CXX=xlC 2985 fi 2986 ;; 2987 2988 *-hpux*) 2989 case "${target_os}" in 2990 hpux10.30) 2991 CXX=aCC 2992 ;; 2993 hpux11.*) 2994 CXX=aCC 2995 ;; 2996 *) 2997 CXX=CC 2998 ;; 2999 esac 3000 ;; 3001 3002 *-solaris*) 3003 CXX=CC 3004 ;; 3005 3006 esac 3007fi 3008 3009if test -z "$SKIP_PATH_CHECKS"; then 3010 # Extract the first word of "$WHOAMI whoami", so it can be a program name with args. 3011set dummy $WHOAMI whoami; ac_word=$2 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3013$as_echo_n "checking for $ac_word... " >&6; } 3014if ${ac_cv_path_WHOAMI+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016else 3017 case $WHOAMI in 3018 [\\/]* | ?:[\\/]*) 3019 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. 3020 ;; 3021 *) 3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023for as_dir in $PATH 3024do 3025 IFS=$as_save_IFS 3026 test -z "$as_dir" && as_dir=. 3027 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3029 ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami" 3038 ;; 3039esac 3040fi 3041WHOAMI=$ac_cv_path_WHOAMI 3042if test -n "$WHOAMI"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5 3044$as_echo "$WHOAMI" >&6; } 3045else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047$as_echo "no" >&6; } 3048fi 3049 3050 3051fi 3052 3053if test -n "$MOZ_DEBUG"; then 3054 $as_echo "#define DEBUG 1" >>confdefs.h 3055 3056 DEFINES="$DEFINES -UNDEBUG" 3057 3058 case "${target_os}" in 3059 mks*|cygwin*|mingw*|msys*|os2*) 3060 DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" 3061 ;; 3062 *) 3063 DEFINES="$DEFINES -DDEBUG_`$WHOAMI`" 3064 ;; 3065 esac 3066else 3067 $as_echo "#define NDEBUG 1" >>confdefs.h 3068 3069 DEFINES="$DEFINES -UDEBUG" 3070fi 3071 3072if test -z "$SKIP_COMPILER_CHECKS"; then 3073if test "$target" != "$host"; then 3074 echo "cross compiling from $host to $target" 3075 cross_compiling=yes 3076 3077 case "$build:$target" in 3078 powerpc-apple-darwin8*:i?86-apple-darwin*) 3079 _SAVE_CFLAGS=$CFLAGS 3080 _SAVE_CXXFLAGS=$CXXFLAGS 3081 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" 3082 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" 3083 ;; 3084 esac 3085 3086 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" 3087do 3088 # Extract the first word of "$ac_prog", so it can be a program name with args. 3089set dummy $ac_prog; ac_word=$2 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3091$as_echo_n "checking for $ac_word... " >&6; } 3092if ${ac_cv_prog_CC+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -n "$CC"; then 3096 ac_cv_prog_CC="$CC" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_CC="$ac_prog" 3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115CC=$ac_cv_prog_CC 3116if test -n "$CC"; then 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3118$as_echo "$CC" >&6; } 3119else 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121$as_echo "no" >&6; } 3122fi 3123 3124 3125 test -n "$CC" && break 3126done 3127test -n "$CC" || CC="echo" 3128 3129 unset ac_cv_prog_CC 3130 fi 3131 3132ac_ext=c 3133ac_cpp='$CPP $CPPFLAGS' 3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3136ac_compiler_gnu=$ac_cv_c_compiler_gnu 3137if test -n "$ac_tool_prefix"; then 3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3139set dummy ${ac_tool_prefix}gcc; ac_word=$2 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141$as_echo_n "checking for $ac_word... " >&6; } 3142if ${ac_cv_prog_CC+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 if test -n "$CC"; then 3146 ac_cv_prog_CC="$CC" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3155 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160 done 3161IFS=$as_save_IFS 3162 3163fi 3164fi 3165CC=$ac_cv_prog_CC 3166if test -n "$CC"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3168$as_echo "$CC" >&6; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172fi 3173 3174 3175fi 3176if test -z "$ac_cv_prog_CC"; then 3177 ac_ct_CC=$CC 3178 # Extract the first word of "gcc", so it can be a program name with args. 3179set dummy gcc; ac_word=$2 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3181$as_echo_n "checking for $ac_word... " >&6; } 3182if ${ac_cv_prog_ac_ct_CC+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test -n "$ac_ct_CC"; then 3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3187else 3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3189for as_dir in $PATH 3190do 3191 IFS=$as_save_IFS 3192 test -z "$as_dir" && as_dir=. 3193 for ac_exec_ext in '' $ac_executable_extensions; do 3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3195 ac_cv_prog_ac_ct_CC="gcc" 3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3197 break 2 3198 fi 3199done 3200 done 3201IFS=$as_save_IFS 3202 3203fi 3204fi 3205ac_ct_CC=$ac_cv_prog_ac_ct_CC 3206if test -n "$ac_ct_CC"; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3208$as_echo "$ac_ct_CC" >&6; } 3209else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211$as_echo "no" >&6; } 3212fi 3213 3214 if test "x$ac_ct_CC" = x; then 3215 CC="" 3216 else 3217 case $cross_compiling:$ac_tool_warned in 3218yes:) 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3221ac_tool_warned=yes ;; 3222esac 3223 CC=$ac_ct_CC 3224 fi 3225else 3226 CC="$ac_cv_prog_CC" 3227fi 3228 3229if test -z "$CC"; then 3230 if test -n "$ac_tool_prefix"; then 3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3232set dummy ${ac_tool_prefix}cc; ac_word=$2 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234$as_echo_n "checking for $ac_word... " >&6; } 3235if ${ac_cv_prog_CC+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 if test -n "$CC"; then 3239 ac_cv_prog_CC="$CC" # Let the user override the test. 3240else 3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3248 ac_cv_prog_CC="${ac_tool_prefix}cc" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252done 3253 done 3254IFS=$as_save_IFS 3255 3256fi 3257fi 3258CC=$ac_cv_prog_CC 3259if test -n "$CC"; then 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3261$as_echo "$CC" >&6; } 3262else 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3264$as_echo "no" >&6; } 3265fi 3266 3267 3268 fi 3269fi 3270if test -z "$CC"; then 3271 # Extract the first word of "cc", so it can be a program name with args. 3272set dummy cc; ac_word=$2 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274$as_echo_n "checking for $ac_word... " >&6; } 3275if ${ac_cv_prog_CC+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 if test -n "$CC"; then 3279 ac_cv_prog_CC="$CC" # Let the user override the test. 3280else 3281 ac_prog_rejected=no 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3290 ac_prog_rejected=yes 3291 continue 3292 fi 3293 ac_cv_prog_CC="cc" 3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3295 break 2 3296 fi 3297done 3298 done 3299IFS=$as_save_IFS 3300 3301if test $ac_prog_rejected = yes; then 3302 # We found a bogon in the path, so make sure we never use it. 3303 set dummy $ac_cv_prog_CC 3304 shift 3305 if test $# != 0; then 3306 # We chose a different compiler from the bogus one. 3307 # However, it has the same basename, so the bogon will be chosen 3308 # first if we set CC to just the basename; use the full file name. 3309 shift 3310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3311 fi 3312fi 3313fi 3314fi 3315CC=$ac_cv_prog_CC 3316if test -n "$CC"; then 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3318$as_echo "$CC" >&6; } 3319else 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3321$as_echo "no" >&6; } 3322fi 3323 3324 3325fi 3326if test -z "$CC"; then 3327 if test -n "$ac_tool_prefix"; then 3328 for ac_prog in cl.exe 3329 do 3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3331set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3333$as_echo_n "checking for $ac_word... " >&6; } 3334if ${ac_cv_prog_CC+:} false; then : 3335 $as_echo_n "(cached) " >&6 3336else 3337 if test -n "$CC"; then 3338 ac_cv_prog_CC="$CC" # Let the user override the test. 3339else 3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3341for as_dir in $PATH 3342do 3343 IFS=$as_save_IFS 3344 test -z "$as_dir" && as_dir=. 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351done 3352 done 3353IFS=$as_save_IFS 3354 3355fi 3356fi 3357CC=$ac_cv_prog_CC 3358if test -n "$CC"; then 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3360$as_echo "$CC" >&6; } 3361else 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363$as_echo "no" >&6; } 3364fi 3365 3366 3367 test -n "$CC" && break 3368 done 3369fi 3370if test -z "$CC"; then 3371 ac_ct_CC=$CC 3372 for ac_prog in cl.exe 3373do 3374 # Extract the first word of "$ac_prog", so it can be a program name with args. 3375set dummy $ac_prog; ac_word=$2 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3377$as_echo_n "checking for $ac_word... " >&6; } 3378if ${ac_cv_prog_ac_ct_CC+:} false; then : 3379 $as_echo_n "(cached) " >&6 3380else 3381 if test -n "$ac_ct_CC"; then 3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3383else 3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3385for as_dir in $PATH 3386do 3387 IFS=$as_save_IFS 3388 test -z "$as_dir" && as_dir=. 3389 for ac_exec_ext in '' $ac_executable_extensions; do 3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3391 ac_cv_prog_ac_ct_CC="$ac_prog" 3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3393 break 2 3394 fi 3395done 3396 done 3397IFS=$as_save_IFS 3398 3399fi 3400fi 3401ac_ct_CC=$ac_cv_prog_ac_ct_CC 3402if test -n "$ac_ct_CC"; then 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3404$as_echo "$ac_ct_CC" >&6; } 3405else 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407$as_echo "no" >&6; } 3408fi 3409 3410 3411 test -n "$ac_ct_CC" && break 3412done 3413 3414 if test "x$ac_ct_CC" = x; then 3415 CC="" 3416 else 3417 case $cross_compiling:$ac_tool_warned in 3418yes:) 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3421ac_tool_warned=yes ;; 3422esac 3423 CC=$ac_ct_CC 3424 fi 3425fi 3426 3427fi 3428 3429 3430test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3432as_fn_error $? "no acceptable C compiler found in \$PATH 3433See \`config.log' for more details" "$LINENO" 5; } 3434 3435# Provide some information about the compiler. 3436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3437set X $ac_compile 3438ac_compiler=$2 3439for ac_option in --version -v -V -qversion; do 3440 { { ac_try="$ac_compiler $ac_option >&5" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3446$as_echo "$ac_try_echo"; } >&5 3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3448 ac_status=$? 3449 if test -s conftest.err; then 3450 sed '10a\ 3451... rest of stderr output deleted ... 3452 10q' conftest.err >conftest.er1 3453 cat conftest.er1 >&5 3454 fi 3455 rm -f conftest.er1 conftest.err 3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3457 test $ac_status = 0; } 3458done 3459 3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461/* end confdefs.h. */ 3462 3463int 3464main () 3465{ 3466 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471ac_clean_files_save=$ac_clean_files 3472ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3473# Try to create an executable without -o first, disregard a.out. 3474# It will help us diagnose broken compilers, and finding out an intuition 3475# of exeext. 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3477$as_echo_n "checking whether the C compiler works... " >&6; } 3478ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3479 3480# The possible output files: 3481ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3482 3483ac_rmfiles= 3484for ac_file in $ac_files 3485do 3486 case $ac_file in 3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3489 esac 3490done 3491rm -f $ac_rmfiles 3492 3493if { { ac_try="$ac_link_default" 3494case "(($ac_try" in 3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3496 *) ac_try_echo=$ac_try;; 3497esac 3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3499$as_echo "$ac_try_echo"; } >&5 3500 (eval "$ac_link_default") 2>&5 3501 ac_status=$? 3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3503 test $ac_status = 0; }; then : 3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3505# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3506# in a Makefile. We should not override ac_cv_exeext if it was cached, 3507# so that the user can short-circuit this test for compilers unknown to 3508# Autoconf. 3509for ac_file in $ac_files '' 3510do 3511 test -f "$ac_file" || continue 3512 case $ac_file in 3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3514 ;; 3515 [ab].out ) 3516 # We found the default executable, but exeext='' is most 3517 # certainly right. 3518 break;; 3519 *.* ) 3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3521 then :; else 3522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3523 fi 3524 # We set ac_cv_exeext here because the later test for it is not 3525 # safe: cross compilers may not add the suffix if given an `-o' 3526 # argument, so we may need to know it at that point already. 3527 # Even if this section looks crufty: it has the advantage of 3528 # actually working. 3529 break;; 3530 * ) 3531 break;; 3532 esac 3533done 3534test "$ac_cv_exeext" = no && ac_cv_exeext= 3535 3536else 3537 ac_file='' 3538fi 3539if test -z "$ac_file"; then : 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3541$as_echo "no" >&6; } 3542$as_echo "$as_me: failed program was:" >&5 3543sed 's/^/| /' conftest.$ac_ext >&5 3544 3545{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3547as_fn_error 77 "C compiler cannot create executables 3548See \`config.log' for more details" "$LINENO" 5; } 3549else 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3551$as_echo "yes" >&6; } 3552fi 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3554$as_echo_n "checking for C compiler default output file name... " >&6; } 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3556$as_echo "$ac_file" >&6; } 3557ac_exeext=$ac_cv_exeext 3558 3559rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3560ac_clean_files=$ac_clean_files_save 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3562$as_echo_n "checking for suffix of executables... " >&6; } 3563if { { ac_try="$ac_link" 3564case "(($ac_try" in 3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566 *) ac_try_echo=$ac_try;; 3567esac 3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3569$as_echo "$ac_try_echo"; } >&5 3570 (eval "$ac_link") 2>&5 3571 ac_status=$? 3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3573 test $ac_status = 0; }; then : 3574 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3575# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3576# work properly (i.e., refer to `conftest.exe'), while it won't with 3577# `rm'. 3578for ac_file in conftest.exe conftest conftest.*; do 3579 test -f "$ac_file" || continue 3580 case $ac_file in 3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3583 break;; 3584 * ) break;; 3585 esac 3586done 3587else 3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3590as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3591See \`config.log' for more details" "$LINENO" 5; } 3592fi 3593rm -f conftest conftest$ac_cv_exeext 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3595$as_echo "$ac_cv_exeext" >&6; } 3596 3597rm -f conftest.$ac_ext 3598EXEEXT=$ac_cv_exeext 3599ac_exeext=$EXEEXT 3600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602#include <stdio.h> 3603int 3604main () 3605{ 3606FILE *f = fopen ("conftest.out", "w"); 3607 return ferror (f) || fclose (f) != 0; 3608 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613ac_clean_files="$ac_clean_files conftest.out" 3614# Check that the compiler produces executables we can run. If not, either 3615# the compiler is broken, or we cross compile. 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3617$as_echo_n "checking whether we are cross compiling... " >&6; } 3618if test "$cross_compiling" != yes; then 3619 { { ac_try="$ac_link" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625$as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_link") 2>&5 3627 ac_status=$? 3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3629 test $ac_status = 0; } 3630 if { ac_try='./conftest$ac_cv_exeext' 3631 { { case "(($ac_try" in 3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3633 *) ac_try_echo=$ac_try;; 3634esac 3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3636$as_echo "$ac_try_echo"; } >&5 3637 (eval "$ac_try") 2>&5 3638 ac_status=$? 3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3640 test $ac_status = 0; }; }; then 3641 cross_compiling=no 3642 else 3643 if test "$cross_compiling" = maybe; then 3644 cross_compiling=yes 3645 else 3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3648as_fn_error $? "cannot run C compiled programs. 3649If you meant to cross compile, use \`--host'. 3650See \`config.log' for more details" "$LINENO" 5; } 3651 fi 3652 fi 3653fi 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3655$as_echo "$cross_compiling" >&6; } 3656 3657rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3658ac_clean_files=$ac_clean_files_save 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3660$as_echo_n "checking for suffix of object files... " >&6; } 3661if ${ac_cv_objext+:} false; then : 3662 $as_echo_n "(cached) " >&6 3663else 3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665/* end confdefs.h. */ 3666 3667int 3668main () 3669{ 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675rm -f conftest.o conftest.obj 3676if { { ac_try="$ac_compile" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3682$as_echo "$ac_try_echo"; } >&5 3683 (eval "$ac_compile") 2>&5 3684 ac_status=$? 3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3686 test $ac_status = 0; }; then : 3687 for ac_file in conftest.o conftest.obj conftest.*; do 3688 test -f "$ac_file" || continue; 3689 case $ac_file in 3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3692 break;; 3693 esac 3694done 3695else 3696 $as_echo "$as_me: failed program was:" >&5 3697sed 's/^/| /' conftest.$ac_ext >&5 3698 3699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3701as_fn_error $? "cannot compute suffix of object files: cannot compile 3702See \`config.log' for more details" "$LINENO" 5; } 3703fi 3704rm -f conftest.$ac_cv_objext conftest.$ac_ext 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3707$as_echo "$ac_cv_objext" >&6; } 3708OBJEXT=$ac_cv_objext 3709ac_objext=$OBJEXT 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3712if ${ac_cv_c_compiler_gnu+:} false; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716/* end confdefs.h. */ 3717 3718int 3719main () 3720{ 3721#ifndef __GNUC__ 3722 choke me 3723#endif 3724 3725 ; 3726 return 0; 3727} 3728_ACEOF 3729if ac_fn_c_try_compile "$LINENO"; then : 3730 ac_compiler_gnu=yes 3731else 3732 ac_compiler_gnu=no 3733fi 3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3735ac_cv_c_compiler_gnu=$ac_compiler_gnu 3736 3737fi 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3739$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3740if test $ac_compiler_gnu = yes; then 3741 GCC=yes 3742else 3743 GCC= 3744fi 3745ac_test_CFLAGS=${CFLAGS+set} 3746ac_save_CFLAGS=$CFLAGS 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3748$as_echo_n "checking whether $CC accepts -g... " >&6; } 3749if ${ac_cv_prog_cc_g+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 ac_save_c_werror_flag=$ac_c_werror_flag 3753 ac_c_werror_flag=yes 3754 ac_cv_prog_cc_g=no 3755 CFLAGS="-g" 3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3757/* end confdefs.h. */ 3758 3759int 3760main () 3761{ 3762 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767if ac_fn_c_try_compile "$LINENO"; then : 3768 ac_cv_prog_cc_g=yes 3769else 3770 CFLAGS="" 3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3772/* end confdefs.h. */ 3773 3774int 3775main () 3776{ 3777 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782if ac_fn_c_try_compile "$LINENO"; then : 3783 3784else 3785 ac_c_werror_flag=$ac_save_c_werror_flag 3786 CFLAGS="-g" 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788/* end confdefs.h. */ 3789 3790int 3791main () 3792{ 3793 3794 ; 3795 return 0; 3796} 3797_ACEOF 3798if ac_fn_c_try_compile "$LINENO"; then : 3799 ac_cv_prog_cc_g=yes 3800fi 3801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3802fi 3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3804fi 3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3806 ac_c_werror_flag=$ac_save_c_werror_flag 3807fi 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3809$as_echo "$ac_cv_prog_cc_g" >&6; } 3810if test "$ac_test_CFLAGS" = set; then 3811 CFLAGS=$ac_save_CFLAGS 3812elif test $ac_cv_prog_cc_g = yes; then 3813 if test "$GCC" = yes; then 3814 CFLAGS="-g -O2" 3815 else 3816 CFLAGS="-g" 3817 fi 3818else 3819 if test "$GCC" = yes; then 3820 CFLAGS="-O2" 3821 else 3822 CFLAGS= 3823 fi 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3827if ${ac_cv_prog_cc_c89+:} false; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 ac_cv_prog_cc_c89=no 3831ac_save_CC=$CC 3832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834#include <stdarg.h> 3835#include <stdio.h> 3836struct stat; 3837/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3838struct buf { int x; }; 3839FILE * (*rcsopen) (struct buf *, struct stat *, int); 3840static char *e (p, i) 3841 char **p; 3842 int i; 3843{ 3844 return p[i]; 3845} 3846static char *f (char * (*g) (char **, int), char **p, ...) 3847{ 3848 char *s; 3849 va_list v; 3850 va_start (v,p); 3851 s = g (p, va_arg (v,int)); 3852 va_end (v); 3853 return s; 3854} 3855 3856/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3857 function prototypes and stuff, but not '\xHH' hex character constants. 3858 These don't provoke an error unfortunately, instead are silently treated 3859 as 'x'. The following induces an error, until -std is added to get 3860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3861 array size at least. It's necessary to write '\x00'==0 to get something 3862 that's true only with -std. */ 3863int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3864 3865/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3866 inside strings and character constants. */ 3867#define FOO(x) 'x' 3868int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3869 3870int test (int i, double x); 3871struct s1 {int (*f) (int a);}; 3872struct s2 {int (*f) (double a);}; 3873int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3874int argc; 3875char **argv; 3876int 3877main () 3878{ 3879return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3880 ; 3881 return 0; 3882} 3883_ACEOF 3884for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3886do 3887 CC="$ac_save_CC $ac_arg" 3888 if ac_fn_c_try_compile "$LINENO"; then : 3889 ac_cv_prog_cc_c89=$ac_arg 3890fi 3891rm -f core conftest.err conftest.$ac_objext 3892 test "x$ac_cv_prog_cc_c89" != "xno" && break 3893done 3894rm -f conftest.$ac_ext 3895CC=$ac_save_CC 3896 3897fi 3898# AC_CACHE_VAL 3899case "x$ac_cv_prog_cc_c89" in 3900 x) 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3902$as_echo "none needed" >&6; } ;; 3903 xno) 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3905$as_echo "unsupported" >&6; } ;; 3906 *) 3907 CC="$CC $ac_cv_prog_cc_c89" 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3909$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3910esac 3911if test "x$ac_cv_prog_cc_c89" != xno; then : 3912 3913fi 3914 3915ac_ext=c 3916ac_cpp='$CPP $CPPFLAGS' 3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3919ac_compiler_gnu=$ac_cv_c_compiler_gnu 3920 3921 3922if test "$target" != "$host"; then 3923 if test -n "$USE_CPLUS"; then 3924 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" 3925do 3926 # Extract the first word of "$ac_prog", so it can be a program name with args. 3927set dummy $ac_prog; ac_word=$2 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3929$as_echo_n "checking for $ac_word... " >&6; } 3930if ${ac_cv_prog_CXX+:} false; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 if test -n "$CXX"; then 3934 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3935else 3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3937for as_dir in $PATH 3938do 3939 IFS=$as_save_IFS 3940 test -z "$as_dir" && as_dir=. 3941 for ac_exec_ext in '' $ac_executable_extensions; do 3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3943 ac_cv_prog_CXX="$ac_prog" 3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3945 break 2 3946 fi 3947done 3948 done 3949IFS=$as_save_IFS 3950 3951fi 3952fi 3953CXX=$ac_cv_prog_CXX 3954if test -n "$CXX"; then 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3956$as_echo "$CXX" >&6; } 3957else 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3959$as_echo "no" >&6; } 3960fi 3961 3962 3963 test -n "$CXX" && break 3964done 3965test -n "$CXX" || CXX="echo" 3966 3967 unset ac_cv_prog_CXX 3968 ac_ext=cpp 3969ac_cpp='$CXXCPP $CPPFLAGS' 3970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3973if test -z "$CXX"; then 3974 if test -n "$CCC"; then 3975 CXX=$CCC 3976 else 3977 if test -n "$ac_tool_prefix"; then 3978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3979 do 3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3981set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3983$as_echo_n "checking for $ac_word... " >&6; } 3984if ${ac_cv_prog_CXX+:} false; then : 3985 $as_echo_n "(cached) " >&6 3986else 3987 if test -n "$CXX"; then 3988 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3989else 3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_exec_ext in '' $ac_executable_extensions; do 3996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3999 break 2 4000 fi 4001done 4002 done 4003IFS=$as_save_IFS 4004 4005fi 4006fi 4007CXX=$ac_cv_prog_CXX 4008if test -n "$CXX"; then 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4010$as_echo "$CXX" >&6; } 4011else 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4013$as_echo "no" >&6; } 4014fi 4015 4016 4017 test -n "$CXX" && break 4018 done 4019fi 4020if test -z "$CXX"; then 4021 ac_ct_CXX=$CXX 4022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4023do 4024 # Extract the first word of "$ac_prog", so it can be a program name with args. 4025set dummy $ac_prog; ac_word=$2 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4027$as_echo_n "checking for $ac_word... " >&6; } 4028if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4029 $as_echo_n "(cached) " >&6 4030else 4031 if test -n "$ac_ct_CXX"; then 4032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4033else 4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4035for as_dir in $PATH 4036do 4037 IFS=$as_save_IFS 4038 test -z "$as_dir" && as_dir=. 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4041 ac_cv_prog_ac_ct_CXX="$ac_prog" 4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4043 break 2 4044 fi 4045done 4046 done 4047IFS=$as_save_IFS 4048 4049fi 4050fi 4051ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4052if test -n "$ac_ct_CXX"; then 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4054$as_echo "$ac_ct_CXX" >&6; } 4055else 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4057$as_echo "no" >&6; } 4058fi 4059 4060 4061 test -n "$ac_ct_CXX" && break 4062done 4063 4064 if test "x$ac_ct_CXX" = x; then 4065 CXX="g++" 4066 else 4067 case $cross_compiling:$ac_tool_warned in 4068yes:) 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4071ac_tool_warned=yes ;; 4072esac 4073 CXX=$ac_ct_CXX 4074 fi 4075fi 4076 4077 fi 4078fi 4079# Provide some information about the compiler. 4080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4081set X $ac_compile 4082ac_compiler=$2 4083for ac_option in --version -v -V -qversion; do 4084 { { ac_try="$ac_compiler $ac_option >&5" 4085case "(($ac_try" in 4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4087 *) ac_try_echo=$ac_try;; 4088esac 4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4090$as_echo "$ac_try_echo"; } >&5 4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4092 ac_status=$? 4093 if test -s conftest.err; then 4094 sed '10a\ 4095... rest of stderr output deleted ... 4096 10q' conftest.err >conftest.er1 4097 cat conftest.er1 >&5 4098 fi 4099 rm -f conftest.er1 conftest.err 4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4101 test $ac_status = 0; } 4102done 4103 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4105$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4106if ${ac_cv_cxx_compiler_gnu+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111 4112int 4113main () 4114{ 4115#ifndef __GNUC__ 4116 choke me 4117#endif 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_cxx_try_compile "$LINENO"; then : 4124 ac_compiler_gnu=yes 4125else 4126 ac_compiler_gnu=no 4127fi 4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4129ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4130 4131fi 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4133$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4134if test $ac_compiler_gnu = yes; then 4135 GXX=yes 4136else 4137 GXX= 4138fi 4139ac_test_CXXFLAGS=${CXXFLAGS+set} 4140ac_save_CXXFLAGS=$CXXFLAGS 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4142$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4143if ${ac_cv_prog_cxx_g+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4147 ac_cxx_werror_flag=yes 4148 ac_cv_prog_cxx_g=no 4149 CXXFLAGS="-g" 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152 4153int 4154main () 4155{ 4156 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161if ac_fn_cxx_try_compile "$LINENO"; then : 4162 ac_cv_prog_cxx_g=yes 4163else 4164 CXXFLAGS="" 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167 4168int 4169main () 4170{ 4171 4172 ; 4173 return 0; 4174} 4175_ACEOF 4176if ac_fn_cxx_try_compile "$LINENO"; then : 4177 4178else 4179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4180 CXXFLAGS="-g" 4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183 4184int 4185main () 4186{ 4187 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192if ac_fn_cxx_try_compile "$LINENO"; then : 4193 ac_cv_prog_cxx_g=yes 4194fi 4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4196fi 4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4198fi 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4201fi 4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4203$as_echo "$ac_cv_prog_cxx_g" >&6; } 4204if test "$ac_test_CXXFLAGS" = set; then 4205 CXXFLAGS=$ac_save_CXXFLAGS 4206elif test $ac_cv_prog_cxx_g = yes; then 4207 if test "$GXX" = yes; then 4208 CXXFLAGS="-g -O2" 4209 else 4210 CXXFLAGS="-g" 4211 fi 4212else 4213 if test "$GXX" = yes; then 4214 CXXFLAGS="-O2" 4215 else 4216 CXXFLAGS= 4217 fi 4218fi 4219ac_ext=c 4220ac_cpp='$CPP $CPPFLAGS' 4221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4223ac_compiler_gnu=$ac_cv_c_compiler_gnu 4224 4225 fi 4226 4227 case "$build:$target" in 4228 powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*) 4229 CFLAGS=$_SAVE_CFLAGS 4230 CXXFLAGS=$_SAVE_CXXFLAGS 4231 ;; 4232 esac 4233 4234 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" 4235do 4236 # Extract the first word of "$ac_prog", so it can be a program name with args. 4237set dummy $ac_prog; ac_word=$2 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4239$as_echo_n "checking for $ac_word... " >&6; } 4240if ${ac_cv_prog_RANLIB+:} false; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 if test -n "$RANLIB"; then 4244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4245else 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4253 ac_cv_prog_RANLIB="$ac_prog" 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257done 4258 done 4259IFS=$as_save_IFS 4260 4261fi 4262fi 4263RANLIB=$ac_cv_prog_RANLIB 4264if test -n "$RANLIB"; then 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4266$as_echo "$RANLIB" >&6; } 4267else 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4269$as_echo "no" >&6; } 4270fi 4271 4272 4273 test -n "$RANLIB" && break 4274done 4275test -n "$RANLIB" || RANLIB="echo" 4276 4277 for ac_prog in $AR "${target_alias}-ar" "${target}-ar" 4278do 4279 # Extract the first word of "$ac_prog", so it can be a program name with args. 4280set dummy $ac_prog; ac_word=$2 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4282$as_echo_n "checking for $ac_word... " >&6; } 4283if ${ac_cv_prog_AR+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285else 4286 if test -n "$AR"; then 4287 ac_cv_prog_AR="$AR" # Let the user override the test. 4288else 4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4290for as_dir in $PATH 4291do 4292 IFS=$as_save_IFS 4293 test -z "$as_dir" && as_dir=. 4294 for ac_exec_ext in '' $ac_executable_extensions; do 4295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4296 ac_cv_prog_AR="$ac_prog" 4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4298 break 2 4299 fi 4300done 4301 done 4302IFS=$as_save_IFS 4303 4304fi 4305fi 4306AR=$ac_cv_prog_AR 4307if test -n "$AR"; then 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4309$as_echo "$AR" >&6; } 4310else 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4312$as_echo "no" >&6; } 4313fi 4314 4315 4316 test -n "$AR" && break 4317done 4318test -n "$AR" || AR="echo" 4319 4320 for ac_prog in $AS "${target_alias}-as" "${target}-as" 4321do 4322 # Extract the first word of "$ac_prog", so it can be a program name with args. 4323set dummy $ac_prog; ac_word=$2 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4325$as_echo_n "checking for $ac_word... " >&6; } 4326if ${ac_cv_prog_AS+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 if test -n "$AS"; then 4330 ac_cv_prog_AS="$AS" # Let the user override the test. 4331else 4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4333for as_dir in $PATH 4334do 4335 IFS=$as_save_IFS 4336 test -z "$as_dir" && as_dir=. 4337 for ac_exec_ext in '' $ac_executable_extensions; do 4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4339 ac_cv_prog_AS="$ac_prog" 4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4341 break 2 4342 fi 4343done 4344 done 4345IFS=$as_save_IFS 4346 4347fi 4348fi 4349AS=$ac_cv_prog_AS 4350if test -n "$AS"; then 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4352$as_echo "$AS" >&6; } 4353else 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4355$as_echo "no" >&6; } 4356fi 4357 4358 4359 test -n "$AS" && break 4360done 4361test -n "$AS" || AS="echo" 4362 4363 for ac_prog in $LD "${target_alias}-ld" "${target}-ld" 4364do 4365 # Extract the first word of "$ac_prog", so it can be a program name with args. 4366set dummy $ac_prog; ac_word=$2 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4368$as_echo_n "checking for $ac_word... " >&6; } 4369if ${ac_cv_prog_LD+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if test -n "$LD"; then 4373 ac_cv_prog_LD="$LD" # Let the user override the test. 4374else 4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376for as_dir in $PATH 4377do 4378 IFS=$as_save_IFS 4379 test -z "$as_dir" && as_dir=. 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4382 ac_cv_prog_LD="$ac_prog" 4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4384 break 2 4385 fi 4386done 4387 done 4388IFS=$as_save_IFS 4389 4390fi 4391fi 4392LD=$ac_cv_prog_LD 4393if test -n "$LD"; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4395$as_echo "$LD" >&6; } 4396else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4398$as_echo "no" >&6; } 4399fi 4400 4401 4402 test -n "$LD" && break 4403done 4404test -n "$LD" || LD="echo" 4405 4406 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" 4407do 4408 # Extract the first word of "$ac_prog", so it can be a program name with args. 4409set dummy $ac_prog; ac_word=$2 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4411$as_echo_n "checking for $ac_word... " >&6; } 4412if ${ac_cv_prog_STRIP+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 if test -n "$STRIP"; then 4416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4417else 4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH 4420do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_exec_ext in '' $ac_executable_extensions; do 4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4425 ac_cv_prog_STRIP="$ac_prog" 4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4427 break 2 4428 fi 4429done 4430 done 4431IFS=$as_save_IFS 4432 4433fi 4434fi 4435STRIP=$ac_cv_prog_STRIP 4436if test -n "$STRIP"; then 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4438$as_echo "$STRIP" >&6; } 4439else 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4441$as_echo "no" >&6; } 4442fi 4443 4444 4445 test -n "$STRIP" && break 4446done 4447test -n "$STRIP" || STRIP="echo" 4448 4449 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" 4450do 4451 # Extract the first word of "$ac_prog", so it can be a program name with args. 4452set dummy $ac_prog; ac_word=$2 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4454$as_echo_n "checking for $ac_word... " >&6; } 4455if ${ac_cv_prog_WINDRES+:} false; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 if test -n "$WINDRES"; then 4459 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 4460else 4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4462for as_dir in $PATH 4463do 4464 IFS=$as_save_IFS 4465 test -z "$as_dir" && as_dir=. 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4468 ac_cv_prog_WINDRES="$ac_prog" 4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4470 break 2 4471 fi 4472done 4473 done 4474IFS=$as_save_IFS 4475 4476fi 4477fi 4478WINDRES=$ac_cv_prog_WINDRES 4479if test -n "$WINDRES"; then 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 4481$as_echo "$WINDRES" >&6; } 4482else 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4484$as_echo "no" >&6; } 4485fi 4486 4487 4488 test -n "$WINDRES" && break 4489done 4490test -n "$WINDRES" || WINDRES="echo" 4491 4492 4493 _SAVE_CC="$CC" 4494 _SAVE_CFLAGS="$CFLAGS" 4495 _SAVE_LDFLAGS="$LDFLAGS" 4496 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5 4498$as_echo_n "checking for $host compiler... " >&6; } 4499 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc 4500do 4501 # Extract the first word of "$ac_prog", so it can be a program name with args. 4502set dummy $ac_prog; ac_word=$2 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4504$as_echo_n "checking for $ac_word... " >&6; } 4505if ${ac_cv_prog_HOST_CC+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test -n "$HOST_CC"; then 4509 ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. 4510else 4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4512for as_dir in $PATH 4513do 4514 IFS=$as_save_IFS 4515 test -z "$as_dir" && as_dir=. 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4518 ac_cv_prog_HOST_CC="$ac_prog" 4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4520 break 2 4521 fi 4522done 4523 done 4524IFS=$as_save_IFS 4525 4526fi 4527fi 4528HOST_CC=$ac_cv_prog_HOST_CC 4529if test -n "$HOST_CC"; then 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 4531$as_echo "$HOST_CC" >&6; } 4532else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534$as_echo "no" >&6; } 4535fi 4536 4537 4538 test -n "$HOST_CC" && break 4539done 4540test -n "$HOST_CC" || HOST_CC="""" 4541 4542 if test -z "$HOST_CC"; then 4543 as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 4544 fi 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 4546$as_echo "$HOST_CC" >&6; } 4547 4548 CC="$HOST_CC" 4549 CFLAGS="$HOST_CFLAGS" 4550 LDFLAGS="$HOST_LDFLAGS" 4551 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 4553$as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; } 4554 4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557 4558int 4559main () 4560{ 4561return 0; 4562 ; 4563 return 0; 4564} 4565_ACEOF 4566if ac_fn_c_try_compile "$LINENO"; then : 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4568$as_echo "yes" >&6; } 4569else 4570 as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5 4571fi 4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4573 4574 CC=$_SAVE_CC 4575 CFLAGS=$_SAVE_CFLAGS 4576 LDFLAGS=$_SAVE_LDFLAGS 4577else 4578 if test -n "$USE_CPLUS"; then 4579 if test "$CC" = "cl" -a -z "$CXX"; then 4580 CXX=$CC 4581 else 4582 ac_ext=cpp 4583ac_cpp='$CXXCPP $CPPFLAGS' 4584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4587if test -z "$CXX"; then 4588 if test -n "$CCC"; then 4589 CXX=$CCC 4590 else 4591 if test -n "$ac_tool_prefix"; then 4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4593 do 4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4595set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4597$as_echo_n "checking for $ac_word... " >&6; } 4598if ${ac_cv_prog_CXX+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 if test -n "$CXX"; then 4602 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4603else 4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4605for as_dir in $PATH 4606do 4607 IFS=$as_save_IFS 4608 test -z "$as_dir" && as_dir=. 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4613 break 2 4614 fi 4615done 4616 done 4617IFS=$as_save_IFS 4618 4619fi 4620fi 4621CXX=$ac_cv_prog_CXX 4622if test -n "$CXX"; then 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4624$as_echo "$CXX" >&6; } 4625else 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4627$as_echo "no" >&6; } 4628fi 4629 4630 4631 test -n "$CXX" && break 4632 done 4633fi 4634if test -z "$CXX"; then 4635 ac_ct_CXX=$CXX 4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4637do 4638 # Extract the first word of "$ac_prog", so it can be a program name with args. 4639set dummy $ac_prog; ac_word=$2 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4641$as_echo_n "checking for $ac_word... " >&6; } 4642if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 if test -n "$ac_ct_CXX"; then 4646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4647else 4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4649for as_dir in $PATH 4650do 4651 IFS=$as_save_IFS 4652 test -z "$as_dir" && as_dir=. 4653 for ac_exec_ext in '' $ac_executable_extensions; do 4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4655 ac_cv_prog_ac_ct_CXX="$ac_prog" 4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4657 break 2 4658 fi 4659done 4660 done 4661IFS=$as_save_IFS 4662 4663fi 4664fi 4665ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4666if test -n "$ac_ct_CXX"; then 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4668$as_echo "$ac_ct_CXX" >&6; } 4669else 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4671$as_echo "no" >&6; } 4672fi 4673 4674 4675 test -n "$ac_ct_CXX" && break 4676done 4677 4678 if test "x$ac_ct_CXX" = x; then 4679 CXX="g++" 4680 else 4681 case $cross_compiling:$ac_tool_warned in 4682yes:) 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4685ac_tool_warned=yes ;; 4686esac 4687 CXX=$ac_ct_CXX 4688 fi 4689fi 4690 4691 fi 4692fi 4693# Provide some information about the compiler. 4694$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4695set X $ac_compile 4696ac_compiler=$2 4697for ac_option in --version -v -V -qversion; do 4698 { { ac_try="$ac_compiler $ac_option >&5" 4699case "(($ac_try" in 4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4701 *) ac_try_echo=$ac_try;; 4702esac 4703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4704$as_echo "$ac_try_echo"; } >&5 4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4706 ac_status=$? 4707 if test -s conftest.err; then 4708 sed '10a\ 4709... rest of stderr output deleted ... 4710 10q' conftest.err >conftest.er1 4711 cat conftest.er1 >&5 4712 fi 4713 rm -f conftest.er1 conftest.err 4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4715 test $ac_status = 0; } 4716done 4717 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4719$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4720if ${ac_cv_cxx_compiler_gnu+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725 4726int 4727main () 4728{ 4729#ifndef __GNUC__ 4730 choke me 4731#endif 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_cxx_try_compile "$LINENO"; then : 4738 ac_compiler_gnu=yes 4739else 4740 ac_compiler_gnu=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4743ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4744 4745fi 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4747$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4748if test $ac_compiler_gnu = yes; then 4749 GXX=yes 4750else 4751 GXX= 4752fi 4753ac_test_CXXFLAGS=${CXXFLAGS+set} 4754ac_save_CXXFLAGS=$CXXFLAGS 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4756$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4757if ${ac_cv_prog_cxx_g+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4761 ac_cxx_werror_flag=yes 4762 ac_cv_prog_cxx_g=no 4763 CXXFLAGS="-g" 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765/* end confdefs.h. */ 4766 4767int 4768main () 4769{ 4770 4771 ; 4772 return 0; 4773} 4774_ACEOF 4775if ac_fn_cxx_try_compile "$LINENO"; then : 4776 ac_cv_prog_cxx_g=yes 4777else 4778 CXXFLAGS="" 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781 4782int 4783main () 4784{ 4785 4786 ; 4787 return 0; 4788} 4789_ACEOF 4790if ac_fn_cxx_try_compile "$LINENO"; then : 4791 4792else 4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4794 CXXFLAGS="-g" 4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4796/* end confdefs.h. */ 4797 4798int 4799main () 4800{ 4801 4802 ; 4803 return 0; 4804} 4805_ACEOF 4806if ac_fn_cxx_try_compile "$LINENO"; then : 4807 ac_cv_prog_cxx_g=yes 4808fi 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4810fi 4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4815fi 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4817$as_echo "$ac_cv_prog_cxx_g" >&6; } 4818if test "$ac_test_CXXFLAGS" = set; then 4819 CXXFLAGS=$ac_save_CXXFLAGS 4820elif test $ac_cv_prog_cxx_g = yes; then 4821 if test "$GXX" = yes; then 4822 CXXFLAGS="-g -O2" 4823 else 4824 CXXFLAGS="-g" 4825 fi 4826else 4827 if test "$GXX" = yes; then 4828 CXXFLAGS="-O2" 4829 else 4830 CXXFLAGS= 4831 fi 4832fi 4833ac_ext=c 4834ac_cpp='$CPP $CPPFLAGS' 4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4837ac_compiler_gnu=$ac_cv_c_compiler_gnu 4838 4839 fi 4840 fi 4841 if test -n "$ac_tool_prefix"; then 4842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4843set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4845$as_echo_n "checking for $ac_word... " >&6; } 4846if ${ac_cv_prog_RANLIB+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 if test -n "$RANLIB"; then 4850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4851else 4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853for as_dir in $PATH 4854do 4855 IFS=$as_save_IFS 4856 test -z "$as_dir" && as_dir=. 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4861 break 2 4862 fi 4863done 4864 done 4865IFS=$as_save_IFS 4866 4867fi 4868fi 4869RANLIB=$ac_cv_prog_RANLIB 4870if test -n "$RANLIB"; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4872$as_echo "$RANLIB" >&6; } 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876fi 4877 4878 4879fi 4880if test -z "$ac_cv_prog_RANLIB"; then 4881 ac_ct_RANLIB=$RANLIB 4882 # Extract the first word of "ranlib", so it can be a program name with args. 4883set dummy ranlib; ac_word=$2 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4885$as_echo_n "checking for $ac_word... " >&6; } 4886if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 if test -n "$ac_ct_RANLIB"; then 4890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4891else 4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH 4894do 4895 IFS=$as_save_IFS 4896 test -z "$as_dir" && as_dir=. 4897 for ac_exec_ext in '' $ac_executable_extensions; do 4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4899 ac_cv_prog_ac_ct_RANLIB="ranlib" 4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4901 break 2 4902 fi 4903done 4904 done 4905IFS=$as_save_IFS 4906 4907fi 4908fi 4909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4910if test -n "$ac_ct_RANLIB"; then 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4912$as_echo "$ac_ct_RANLIB" >&6; } 4913else 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4915$as_echo "no" >&6; } 4916fi 4917 4918 if test "x$ac_ct_RANLIB" = x; then 4919 RANLIB=":" 4920 else 4921 case $cross_compiling:$ac_tool_warned in 4922yes:) 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4925ac_tool_warned=yes ;; 4926esac 4927 RANLIB=$ac_ct_RANLIB 4928 fi 4929else 4930 RANLIB="$ac_cv_prog_RANLIB" 4931fi 4932 4933 for ac_prog in as 4934do 4935 # Extract the first word of "$ac_prog", so it can be a program name with args. 4936set dummy $ac_prog; ac_word=$2 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4938$as_echo_n "checking for $ac_word... " >&6; } 4939if ${ac_cv_path_AS+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 case $AS in 4943 [\\/]* | ?:[\\/]*) 4944 ac_cv_path_AS="$AS" # Let the user override the test with a path. 4945 ;; 4946 *) 4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948for as_dir in $PATH 4949do 4950 IFS=$as_save_IFS 4951 test -z "$as_dir" && as_dir=. 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4954 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4956 break 2 4957 fi 4958done 4959 done 4960IFS=$as_save_IFS 4961 4962 ;; 4963esac 4964fi 4965AS=$ac_cv_path_AS 4966if test -n "$AS"; then 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4968$as_echo "$AS" >&6; } 4969else 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4971$as_echo "no" >&6; } 4972fi 4973 4974 4975 test -n "$AS" && break 4976done 4977test -n "$AS" || AS="$CC" 4978 4979 for ac_prog in ar 4980do 4981 # Extract the first word of "$ac_prog", so it can be a program name with args. 4982set dummy $ac_prog; ac_word=$2 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984$as_echo_n "checking for $ac_word... " >&6; } 4985if ${ac_cv_path_AR+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 case $AR in 4989 [\\/]* | ?:[\\/]*) 4990 ac_cv_path_AR="$AR" # Let the user override the test with a path. 4991 ;; 4992 *) 4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4994for as_dir in $PATH 4995do 4996 IFS=$as_save_IFS 4997 test -z "$as_dir" && as_dir=. 4998 for ac_exec_ext in '' $ac_executable_extensions; do 4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5000 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5002 break 2 5003 fi 5004done 5005 done 5006IFS=$as_save_IFS 5007 5008 ;; 5009esac 5010fi 5011AR=$ac_cv_path_AR 5012if test -n "$AR"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5014$as_echo "$AR" >&6; } 5015else 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5017$as_echo "no" >&6; } 5018fi 5019 5020 5021 test -n "$AR" && break 5022done 5023test -n "$AR" || AR="echo not_ar" 5024 5025 for ac_prog in ld link 5026do 5027 # Extract the first word of "$ac_prog", so it can be a program name with args. 5028set dummy $ac_prog; ac_word=$2 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5030$as_echo_n "checking for $ac_word... " >&6; } 5031if ${ac_cv_path_LD+:} false; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 case $LD in 5035 [\\/]* | ?:[\\/]*) 5036 ac_cv_path_LD="$LD" # Let the user override the test with a path. 5037 ;; 5038 *) 5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5040for as_dir in $PATH 5041do 5042 IFS=$as_save_IFS 5043 test -z "$as_dir" && as_dir=. 5044 for ac_exec_ext in '' $ac_executable_extensions; do 5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5046 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5048 break 2 5049 fi 5050done 5051 done 5052IFS=$as_save_IFS 5053 5054 ;; 5055esac 5056fi 5057LD=$ac_cv_path_LD 5058if test -n "$LD"; then 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5060$as_echo "$LD" >&6; } 5061else 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5063$as_echo "no" >&6; } 5064fi 5065 5066 5067 test -n "$LD" && break 5068done 5069test -n "$LD" || LD="echo not_ld" 5070 5071 for ac_prog in strip 5072do 5073 # Extract the first word of "$ac_prog", so it can be a program name with args. 5074set dummy $ac_prog; ac_word=$2 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5076$as_echo_n "checking for $ac_word... " >&6; } 5077if ${ac_cv_path_STRIP+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079else 5080 case $STRIP in 5081 [\\/]* | ?:[\\/]*) 5082 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 5083 ;; 5084 *) 5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5092 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100 ;; 5101esac 5102fi 5103STRIP=$ac_cv_path_STRIP 5104if test -n "$STRIP"; then 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5106$as_echo "$STRIP" >&6; } 5107else 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5109$as_echo "no" >&6; } 5110fi 5111 5112 5113 test -n "$STRIP" && break 5114done 5115test -n "$STRIP" || STRIP="echo not_strip" 5116 5117 for ac_prog in windres 5118do 5119 # Extract the first word of "$ac_prog", so it can be a program name with args. 5120set dummy $ac_prog; ac_word=$2 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5122$as_echo_n "checking for $ac_word... " >&6; } 5123if ${ac_cv_path_WINDRES+:} false; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 case $WINDRES in 5127 [\\/]* | ?:[\\/]*) 5128 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path. 5129 ;; 5130 *) 5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5132for as_dir in $PATH 5133do 5134 IFS=$as_save_IFS 5135 test -z "$as_dir" && as_dir=. 5136 for ac_exec_ext in '' $ac_executable_extensions; do 5137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5138 ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext" 5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5140 break 2 5141 fi 5142done 5143 done 5144IFS=$as_save_IFS 5145 5146 ;; 5147esac 5148fi 5149WINDRES=$ac_cv_path_WINDRES 5150if test -n "$WINDRES"; then 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 5152$as_echo "$WINDRES" >&6; } 5153else 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5155$as_echo "no" >&6; } 5156fi 5157 5158 5159 test -n "$WINDRES" && break 5160done 5161test -n "$WINDRES" || WINDRES="echo not_windres" 5162 5163 if test -z "$HOST_CC"; then 5164 HOST_CC="$CC" 5165 fi 5166 if test -z "$HOST_CFLAGS"; then 5167 HOST_CFLAGS="$CFLAGS" 5168 fi 5169fi 5170 5171ac_ext=c 5172ac_cpp='$CPP $CPPFLAGS' 5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5175ac_compiler_gnu=$ac_cv_c_compiler_gnu 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5177$as_echo_n "checking how to run the C preprocessor... " >&6; } 5178# On Suns, sometimes $CPP names a directory. 5179if test -n "$CPP" && test -d "$CPP"; then 5180 CPP= 5181fi 5182if test -z "$CPP"; then 5183 if ${ac_cv_prog_CPP+:} false; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 # Double quotes because CPP needs to be expanded 5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5188 do 5189 ac_preproc_ok=false 5190for ac_c_preproc_warn_flag in '' yes 5191do 5192 # Use a header file that comes with gcc, so configuring glibc 5193 # with a fresh cross-compiler works. 5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5195 # <limits.h> exists even on freestanding compilers. 5196 # On the NeXT, cc -E runs the code through the compiler's parser, 5197 # not just through cpp. "Syntax error" is here to catch this case. 5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5199/* end confdefs.h. */ 5200#ifdef __STDC__ 5201# include <limits.h> 5202#else 5203# include <assert.h> 5204#endif 5205 Syntax error 5206_ACEOF 5207if ac_fn_c_try_cpp "$LINENO"; then : 5208 5209else 5210 # Broken: fails on valid input. 5211continue 5212fi 5213rm -f conftest.err conftest.i conftest.$ac_ext 5214 5215 # OK, works on sane cases. Now check whether nonexistent headers 5216 # can be detected and how. 5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5218/* end confdefs.h. */ 5219#include <ac_nonexistent.h> 5220_ACEOF 5221if ac_fn_c_try_cpp "$LINENO"; then : 5222 # Broken: success on invalid input. 5223continue 5224else 5225 # Passes both tests. 5226ac_preproc_ok=: 5227break 5228fi 5229rm -f conftest.err conftest.i conftest.$ac_ext 5230 5231done 5232# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5233rm -f conftest.i conftest.err conftest.$ac_ext 5234if $ac_preproc_ok; then : 5235 break 5236fi 5237 5238 done 5239 ac_cv_prog_CPP=$CPP 5240 5241fi 5242 CPP=$ac_cv_prog_CPP 5243else 5244 ac_cv_prog_CPP=$CPP 5245fi 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5247$as_echo "$CPP" >&6; } 5248ac_preproc_ok=false 5249for ac_c_preproc_warn_flag in '' yes 5250do 5251 # Use a header file that comes with gcc, so configuring glibc 5252 # with a fresh cross-compiler works. 5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5254 # <limits.h> exists even on freestanding compilers. 5255 # On the NeXT, cc -E runs the code through the compiler's parser, 5256 # not just through cpp. "Syntax error" is here to catch this case. 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258/* end confdefs.h. */ 5259#ifdef __STDC__ 5260# include <limits.h> 5261#else 5262# include <assert.h> 5263#endif 5264 Syntax error 5265_ACEOF 5266if ac_fn_c_try_cpp "$LINENO"; then : 5267 5268else 5269 # Broken: fails on valid input. 5270continue 5271fi 5272rm -f conftest.err conftest.i conftest.$ac_ext 5273 5274 # OK, works on sane cases. Now check whether nonexistent headers 5275 # can be detected and how. 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278#include <ac_nonexistent.h> 5279_ACEOF 5280if ac_fn_c_try_cpp "$LINENO"; then : 5281 # Broken: success on invalid input. 5282continue 5283else 5284 # Passes both tests. 5285ac_preproc_ok=: 5286break 5287fi 5288rm -f conftest.err conftest.i conftest.$ac_ext 5289 5290done 5291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5292rm -f conftest.i conftest.err conftest.$ac_ext 5293if $ac_preproc_ok; then : 5294 5295else 5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5298as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5299See \`config.log' for more details" "$LINENO" 5; } 5300fi 5301 5302ac_ext=c 5303ac_cpp='$CPP $CPPFLAGS' 5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5306ac_compiler_gnu=$ac_cv_c_compiler_gnu 5307 5308 5309if test "$GCC" = "yes"; then 5310 GNU_CC=1 5311fi 5312if test "$GXX" = "yes"; then 5313 GNU_CXX=1 5314fi 5315if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then 5316 GNU_AS=1 5317fi 5318rm -f a.out 5319 5320case "$build:$target" in 5321 i?86-apple-darwin*:powerpc-apple-darwin*) 5322 cross_compiling=yes 5323 ;; 5324esac 5325 5326if test "$cross_compiling" = "yes"; then 5327 CROSS_COMPILE=1 5328else 5329 CROSS_COMPILE= 5330fi 5331 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5 5333$as_echo_n "checking for gcc -pipe support... " >&6; } 5334if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then 5335 echo '#include <stdio.h>' > dummy-hello.c 5336 echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c 5337 ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 5338 cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 5339 if test $? = 0; then 5340 _res_as_stdin="yes" 5341 else 5342 _res_as_stdin="no" 5343 fi 5344 if test "$_res_as_stdin" = "yes"; then 5345 _SAVE_CFLAGS=$CFLAGS 5346 CFLAGS="$CFLAGS -pipe" 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349 #include <stdio.h> 5350int 5351main () 5352{ 5353printf("Hello World\n"); 5354 ; 5355 return 0; 5356} 5357_ACEOF 5358if ac_fn_c_try_compile "$LINENO"; then : 5359 _res_gcc_pipe="yes" 5360else 5361 _res_gcc_pipe="no" 5362fi 5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5364 CFLAGS=$_SAVE_CFLAGS 5365 fi 5366 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then 5367 _res="yes"; 5368 CFLAGS="$CFLAGS -pipe" 5369 CXXFLAGS="$CXXFLAGS -pipe" 5370 else 5371 _res="no" 5372 fi 5373 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 5375$as_echo "$_res" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pragma diagnostic" >&5 5383$as_echo_n "checking for pragma diagnostic... " >&6; } 5384if test "$GNU_CC" = "1"; then 5385 cat >dummy-hello.c <<EOF 5386#ifdef _PR_HAS_PRAGMA_DIAGNOSTIC 5387#pragma GCC diagnostic push 5388#pragma GCC diagnostic ignored "-Wunused-but-set-variable" 5389#endif 5390int main() { 5391 char *dummy = ""; 5392 return 0; 5393} 5394EOF 5395 ${CC} -Werror=unused-but-set-variable -S dummy-hello.c -o dummy-hello.s 2>&5 5396 if test $? != 0; then 5397 ${CC} -Werror=unused-but-set-variable -D_PR_HAS_PRAGMA_DIAGNOSTIC -S dummy-hello.c -o dummy-hello.s 2>&5 5398 if test $? = 0; then 5399 CFLAGS="$CFLAGS -D_PR_HAS_PRAGMA_DIAGNOSTIC=1" 5400 _res=yes 5401 else 5402 _res=no 5403 fi 5404 else 5405 _res=no 5406 fi 5407 rm -f dummy-hello.c dummy-hello.s 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 5409$as_echo "$_res" >&6; } 5410else 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5412$as_echo "no" >&6; } 5413fi 5414 5415 5416_SAVE_CFLAGS="$CFLAGS" 5417CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction" 5418 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5 5420$as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; } 5421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423 5424int 5425main () 5426{ 5427return 0; 5428 ; 5429 return 0; 5430} 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO"; then : 5433 PROFILE_GEN_CFLAGS="-fprofile-generate" 5434 result="yes" 5435else 5436 result="no" 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 5440$as_echo "$result" >&6; } 5441 5442if test $result = "yes"; then 5443 PROFILE_GEN_LDFLAGS="-fprofile-generate" 5444 PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch" 5445 PROFILE_USE_LDFLAGS="-fprofile-use" 5446fi 5447 5448CFLAGS="$_SAVE_CFLAGS" 5449 5450if test "$GNU_CC"; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5 5452$as_echo_n "checking for visibility(hidden) attribute... " >&6; } 5453if ${ac_cv_visibility_hidden+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 cat > conftest.c <<EOF 5457 int foo __attribute__ ((visibility ("hidden"))) = 1; 5458EOF 5459 ac_cv_visibility_hidden=no 5460 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then 5461 if grep '\.hidden.*foo' conftest.s >/dev/null; then 5462 ac_cv_visibility_hidden=yes 5463 fi 5464 fi 5465 rm -f conftest.cs 5466 5467fi 5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5 5469$as_echo "$ac_cv_visibility_hidden" >&6; } 5470 if test "$ac_cv_visibility_hidden" = "yes"; then 5471 $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h 5472 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5 5474$as_echo_n "checking for visibility pragma support... " >&6; } 5475if ${ac_cv_visibility_pragma+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 cat > conftest.c <<EOF 5479#pragma GCC visibility push(hidden) 5480 int foo_hidden = 1; 5481#pragma GCC visibility push(default) 5482 int foo_default = 1; 5483EOF 5484 ac_cv_visibility_pragma=no 5485 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then 5486 if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then 5487 if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then 5488 ac_cv_visibility_pragma=yes 5489 fi 5490 fi 5491 fi 5492 rm -f conftest.cs 5493 5494fi 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5 5496$as_echo "$ac_cv_visibility_pragma" >&6; } 5497 if test "$ac_cv_visibility_pragma" = "yes"; then 5498 $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h 5499 5500 # To work around a build problem on Linux x86-64 (Bugzilla bug 5501 # 293438), we use the -fvisibility=hidden flag. This flag is less 5502 # optimal than #pragma GCC visibility push(hidden) because the flag 5503 # assumes that symbols defined outside the current source file have 5504 # the default visibility. This has the advantage that we don't need 5505 # to wrap system header files, but has the disadvantage that calls 5506 # to hidden symbols defined in other source files cannot be 5507 # optimized by the compiler. The -fvisibility=hidden flag does 5508 # hide and export symbols correctly. 5509 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h' 5510 #WRAP_SYSTEM_INCLUDES=1 5511 VISIBILITY_FLAGS="-fvisibility=hidden" 5512 WRAP_SYSTEM_INCLUDES= 5513 fi 5514 fi 5515fi # GNU_CC 5516 5517fi # SKIP_COMPILER_CHECKS 5518 5519if test -z "$SKIP_PATH_CHECKS"; then 5520 for ac_prog in perl5 perl 5521do 5522 # Extract the first word of "$ac_prog", so it can be a program name with args. 5523set dummy $ac_prog; ac_word=$2 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525$as_echo_n "checking for $ac_word... " >&6; } 5526if ${ac_cv_path_PERL+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 case $PERL in 5530 [\\/]* | ?:[\\/]*) 5531 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 5532 ;; 5533 *) 5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5535for as_dir in $PATH 5536do 5537 IFS=$as_save_IFS 5538 test -z "$as_dir" && as_dir=. 5539 for ac_exec_ext in '' $ac_executable_extensions; do 5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5541 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 break 2 5544 fi 5545done 5546 done 5547IFS=$as_save_IFS 5548 5549 ;; 5550esac 5551fi 5552PERL=$ac_cv_path_PERL 5553if test -n "$PERL"; then 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 5555$as_echo "$PERL" >&6; } 5556else 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5558$as_echo "no" >&6; } 5559fi 5560 5561 5562 test -n "$PERL" && break 5563done 5564test -n "$PERL" || PERL="echo not_perl" 5565 5566elif test -z "$PERL"; then 5567 PERL=perl 5568fi 5569 5570OBJ_SUFFIX=o 5571LIB_SUFFIX=a 5572DLL_SUFFIX=so 5573ASM_SUFFIX=s 5574MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' 5575PR_MD_ASFILES= 5576PR_MD_CSRCS= 5577PR_MD_ARCH_DIR=unix 5578AR_FLAGS='cr $@' 5579AS='$(CC)' 5580ASFLAGS='$(CFLAGS)' 5581 5582if test -n "$CROSS_COMPILE"; then 5583 OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` 5584 OS_RELEASE= 5585 OS_TEST="${target_cpu}" 5586 case "${target_os}" in 5587 linux*) OS_ARCH=Linux ;; 5588 solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; 5589 mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;; 5590 cygwin*) OS_ARCH=WINNT ;; 5591 darwin*) OS_ARCH=Darwin ;; 5592 riscos*) OS_ARCH=RISCOS ;; 5593 esac 5594else 5595 OS_ARCH=`uname -s | sed -e 's|/|_|g'` 5596 OS_RELEASE=`uname -r` 5597 OS_TEST=`uname -m` 5598fi 5599 5600if test "$OS_ARCH" = "AIX"; then 5601 OS_RELEASE=`uname -v`.`uname -r` 5602fi 5603 5604if test "$OS_ARCH" = "FreeBSD"; then 5605 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` 5606fi 5607 5608if test "$OS_ARCH" = "Linux"; then 5609 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` 5610 OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'` 5611fi 5612 5613####################################################################### 5614# Master "Core Components" macros for getting the OS target # 5615####################################################################### 5616 5617# 5618# Note: OS_TARGET should be specified on the command line for gmake. 5619# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. 5620# The difference between the Win95 target and the WinNT target is that 5621# the WinNT target uses Windows NT specific features not available 5622# in Windows 95. The Win95 target will run on Windows NT, but (supposedly) 5623# at lesser performance (the Win95 target uses threads; the WinNT target 5624# uses fibers). 5625# 5626# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no 5627# cross-compilation. 5628# 5629 5630# 5631# The following hack allows one to build on a WIN95 machine (as if 5632# s/he were cross-compiling on a WINNT host for a WIN95 target). 5633# It also accomodates for MKS's uname.exe. If you never intend 5634# to do development on a WIN95 machine, you don't need this hack. 5635# 5636case "$OS_ARCH" in 5637Windows_95) 5638 OS_ARCH=Windows_NT 5639 OS_TARGET=WIN95 5640 ;; 5641Windows_98) 5642 OS_ARCH=Windows_NT 5643 OS_TARGET=WIN95 5644 ;; 5645CYGWIN_9*|CYGWIN_ME*) 5646 OS_ARCH='CYGWIN_NT-4.0' 5647 OS_TARGET=WIN95 5648 ;; 5649OS_2) 5650 OS_ARCH=OS2 5651 OS_TARGET=OS2 5652 ;; 5653esac 5654 5655# 5656# On WIN32, we also define the variable CPU_ARCH. 5657# 5658 5659case "$OS_ARCH" in 5660Windows_NT) 5661# 5662# If uname -s returns "Windows_NT", we assume that we are using 5663# the uname.exe in MKS toolkit. 5664# 5665# The -r option of MKS uname only returns the major version number. 5666# So we need to use its -v option to get the minor version number. 5667# Moreover, it doesn't have the -p option, so we need to use uname -m. 5668# 5669 OS_ARCH=WINNT 5670 OS_MINOR_RELEASE=`uname -v` 5671 if test "$OS_MINOR_RELEASE" = "00"; then 5672 OS_MINOR_RELEASE=0 5673 fi 5674 OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" 5675 CPU_ARCH=`uname -m` 5676 # 5677 # MKS's uname -m returns "586" on a Pentium machine. 5678 # 5679 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then 5680 CPU_ARCH=x86 5681 fi 5682 ;; 5683CYGWIN_NT*|MINGW*_NT*|MSYS_NT*) 5684# 5685# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using 5686# the uname.exe in the Cygwin tools. 5687# If uname -s returns "MINGW32_NT-5.1", we assume that we are using 5688# the uname.exe in the MSYS tools. 5689# If uname -s returns "MSYS_NT-6.3", we assume that we are using 5690# the uname.exe in the MSYS2 tools. 5691# 5692 OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` 5693 OS_ARCH=WINNT 5694 CPU_ARCH=`uname -m` 5695 # 5696 # Cygwin's uname -m returns "i686" on a Pentium Pro machine. 5697 # 5698 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then 5699 CPU_ARCH=x86 5700 fi 5701 ;; 5702esac 5703 5704if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then 5705 OS_TARGET=WIN95 5706 if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then 5707 USE_DEBUG_RTL=1 5708 fi 5709fi 5710if test -z "$OS_TARGET"; then 5711 OS_TARGET=$OS_ARCH 5712fi 5713if test "$OS_TARGET" = "WIN95"; then 5714 OS_RELEASE="4.0" 5715fi 5716OS_CONFIG="${OS_TARGET}${OS_RELEASE}" 5717 5718# Check whether --enable-os2-high-mem was given. 5719if test "${enable_os2_high_mem+set}" = set; then : 5720 enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then 5721 MOZ_OS2_HIGH_MEMORY= 5722 else 5723 MOZ_OS2_HIGH_MEMORY=1 5724 fi 5725fi 5726 5727 5728 5729MOZ_ALIGN=toolchain-default 5730 5731case "$target" in 5732arm*-android*|arm*-linuxandroid*) 5733 MOZ_THUMB=yes 5734 MOZ_ARCH=armv7-a 5735 MOZ_FPU=vfp 5736 MOZ_FLOAT_ABI=softfp 5737 MOZ_SOFT_FLOAT=yes 5738 MOZ_ALIGN=no 5739 ;; 5740arm*-*) 5741 if test -n "$MOZ_PLATFORM_MAEMO"; then 5742 MOZ_THUMB=no 5743 MOZ_ARCH=armv7-a 5744 MOZ_FLOAT_ABI=softfp 5745 fi 5746 if test "$MOZ_PLATFORM_MAEMO" = 6; then 5747 MOZ_THUMB=yes 5748 fi 5749 ;; 5750esac 5751 5752# Check whether --enable-thumb2 was given. 5753if test "${enable_thumb2+set}" = set; then : 5754 enableval=$enable_thumb2; MOZ_THUMB=$enableval 5755fi 5756 5757 5758 5759# Check whether --with-thumb was given. 5760if test "${with_thumb+set}" = set; then : 5761 withval=$with_thumb; if test -z "$GNU_CC"; then 5762 as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5763 fi 5764 MOZ_THUMB=$withval 5765fi 5766 5767 5768 5769# Check whether --with-thumb-interwork was given. 5770if test "${with_thumb_interwork+set}" = set; then : 5771 withval=$with_thumb_interwork; if test -z "$GNU_CC"; then 5772 as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5773 fi 5774 MOZ_THUMB_INTERWORK=$withval 5775fi 5776 5777 5778 5779# Check whether --with-arch was given. 5780if test "${with_arch+set}" = set; then : 5781 withval=$with_arch; if test -z "$GNU_CC"; then 5782 as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5783 fi 5784 MOZ_ARCH=$withval 5785fi 5786 5787 5788 5789# Check whether --with-fpu was given. 5790if test "${with_fpu+set}" = set; then : 5791 withval=$with_fpu; if test -z "$GNU_CC"; then 5792 as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5793 fi 5794 MOZ_FPU=$withval 5795fi 5796 5797 5798 5799# Check whether --with-float-abi was given. 5800if test "${with_float_abi+set}" = set; then : 5801 withval=$with_float_abi; if test -z "$GNU_CC"; then 5802 as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5803 fi 5804 MOZ_FLOAT_ABI=$withval 5805fi 5806 5807 5808 5809# Check whether --with-soft-float was given. 5810if test "${with_soft_float+set}" = set; then : 5811 withval=$with_soft_float; if test -z "$GNU_CC"; then 5812 as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5813 fi 5814 MOZ_SOFT_FLOAT=$withval 5815fi 5816 5817 5818case "$MOZ_ARCH" in 5819toolchain-default|"") 5820 arch_flag="" 5821 ;; 5822*) 5823 arch_flag="-march=$MOZ_ARCH" 5824 ;; 5825esac 5826 5827case "$MOZ_THUMB" in 5828yes) 5829 MOZ_THUMB2=1 5830 thumb_flag="-mthumb" 5831 ;; 5832no) 5833 MOZ_THUMB2= 5834 thumb_flag="-marm" 5835 ;; 5836*) 5837 _SAVE_CFLAGS="$CFLAGS" 5838 CFLAGS="$arch_flag" 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841 5842int 5843main () 5844{ 5845return sizeof(__thumb2__); 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_compile "$LINENO"; then : 5851 MOZ_THUMB2=1 5852else 5853 MOZ_THUMB2= 5854fi 5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5856 CFLAGS="$_SAVE_CFLAGS" 5857 thumb_flag="" 5858 ;; 5859esac 5860 5861case "$MOZ_THUMB_INTERWORK" in 5862yes) 5863 thumb_interwork_flag="-mthumb-interwork" 5864 ;; 5865no) 5866 thumb_interwork_flag="-mno-thumb-interwork" 5867 ;; 5868*) # toolchain-default 5869 thumb_interwork_flag="" 5870 ;; 5871esac 5872 5873case "$MOZ_FPU" in 5874toolchain-default|"") 5875 fpu_flag="" 5876 ;; 5877*) 5878 fpu_flag="-mfpu=$MOZ_FPU" 5879 ;; 5880esac 5881 5882case "$MOZ_FLOAT_ABI" in 5883toolchain-default|"") 5884 float_abi_flag="" 5885 ;; 5886*) 5887 float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI" 5888 ;; 5889esac 5890 5891case "$MOZ_SOFT_FLOAT" in 5892yes) 5893 soft_float_flag="-msoft-float" 5894 ;; 5895no) 5896 soft_float_flag="-mno-soft-float" 5897 ;; 5898*) # toolchain-default 5899 soft_float_flag="" 5900 ;; 5901esac 5902 5903case "$MOZ_ALIGN" in 5904toolchain-default|"") 5905 align_flag="" 5906 ;; 5907no) 5908 align_flag="-mno-unaligned-access" 5909 ;; 5910yes) 5911 align_flag="-munaligned-access" 5912 ;; 5913*) 5914 align_flag="" 5915 ;; 5916esac 5917 5918if test -n "$align_flag"; then 5919 _SAVE_CFLAGS="$CFLAGS" 5920 CFLAGS="$CFLAGS $align_flag" 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5 5922$as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; } 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924/* end confdefs.h. */ 5925 5926int 5927main () 5928{ 5929 5930 ; 5931 return 0; 5932} 5933_ACEOF 5934if ac_fn_c_try_compile "$LINENO"; then : 5935 5936else 5937 align_flag="" 5938fi 5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5940 CFLAGS="$_SAVE_CFLAGS" 5941fi 5942 5943all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` 5944if test -n "$all_flags"; then 5945 _SAVE_CFLAGS="$CFLAGS" 5946 CFLAGS="$all_flags" 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5 5948$as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; } 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951 5952int 5953main () 5954{ 5955return 0; 5956 ; 5957 return 0; 5958} 5959_ACEOF 5960if ac_fn_c_try_compile "$LINENO"; then : 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5962$as_echo "yes" >&6; } 5963else 5964 as_fn_error $? "no" "$LINENO" 5 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967 5968 CFLAGS="$_SAVE_CFLAGS $all_flags" 5969 CXXFLAGS="$CXXFLAGS $all_flags" 5970 ASFLAGS="$ASFLAGS $all_flags" 5971 if test -n "$thumb_flag"; then 5972 LDFLAGS="$LDFLAGS $thumb_flag" 5973 fi 5974fi 5975 5976case "$host" in 5977*-mingw*|*-msys*) 5978 NSINSTALL=nsinstall 5979 ;; 5980*-cygwin*|*-mks*) 5981 NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' 5982 if test `echo "${PATH}" | grep -c \;` = 0; then 5983 CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' 5984 fi 5985 ;; 5986*os2*) 5987 ;; 5988*) 5989 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" 5990 ;; 5991esac 5992 5993case "$target" in 5994 5995*-aix*) 5996 $as_echo "#define XP_UNIX 1" >>confdefs.h 5997 5998 $as_echo "#define AIX 1" >>confdefs.h 5999 6000 $as_echo "#define SYSV 1" >>confdefs.h 6001 6002 DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' 6003 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6005$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6006if ${ac_cv_path_GREP+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 if test -z "$GREP"; then 6010 ac_path_GREP_found=false 6011 # Loop through the user's path and test for each of PROGNAME-LIST 6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_prog in grep ggrep; do 6018 for ac_exec_ext in '' $ac_executable_extensions; do 6019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6020 as_fn_executable_p "$ac_path_GREP" || continue 6021# Check for GNU ac_path_GREP and select it if it is found. 6022 # Check for GNU $ac_path_GREP 6023case `"$ac_path_GREP" --version 2>&1` in 6024*GNU*) 6025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6026*) 6027 ac_count=0 6028 $as_echo_n 0123456789 >"conftest.in" 6029 while : 6030 do 6031 cat "conftest.in" "conftest.in" >"conftest.tmp" 6032 mv "conftest.tmp" "conftest.in" 6033 cp "conftest.in" "conftest.nl" 6034 $as_echo 'GREP' >> "conftest.nl" 6035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6037 as_fn_arith $ac_count + 1 && ac_count=$as_val 6038 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6039 # Best one so far, save it but keep looking for a better one 6040 ac_cv_path_GREP="$ac_path_GREP" 6041 ac_path_GREP_max=$ac_count 6042 fi 6043 # 10*(2^10) chars as input seems more than enough 6044 test $ac_count -gt 10 && break 6045 done 6046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6047esac 6048 6049 $ac_path_GREP_found && break 3 6050 done 6051 done 6052 done 6053IFS=$as_save_IFS 6054 if test -z "$ac_cv_path_GREP"; then 6055 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6056 fi 6057else 6058 ac_cv_path_GREP=$GREP 6059fi 6060 6061fi 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6063$as_echo "$ac_cv_path_GREP" >&6; } 6064 GREP="$ac_cv_path_GREP" 6065 6066 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6068$as_echo_n "checking for egrep... " >&6; } 6069if ${ac_cv_path_EGREP+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6073 then ac_cv_path_EGREP="$GREP -E" 6074 else 6075 if test -z "$EGREP"; then 6076 ac_path_EGREP_found=false 6077 # Loop through the user's path and test for each of PROGNAME-LIST 6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6080do 6081 IFS=$as_save_IFS 6082 test -z "$as_dir" && as_dir=. 6083 for ac_prog in egrep; do 6084 for ac_exec_ext in '' $ac_executable_extensions; do 6085 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6086 as_fn_executable_p "$ac_path_EGREP" || continue 6087# Check for GNU ac_path_EGREP and select it if it is found. 6088 # Check for GNU $ac_path_EGREP 6089case `"$ac_path_EGREP" --version 2>&1` in 6090*GNU*) 6091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6092*) 6093 ac_count=0 6094 $as_echo_n 0123456789 >"conftest.in" 6095 while : 6096 do 6097 cat "conftest.in" "conftest.in" >"conftest.tmp" 6098 mv "conftest.tmp" "conftest.in" 6099 cp "conftest.in" "conftest.nl" 6100 $as_echo 'EGREP' >> "conftest.nl" 6101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6103 as_fn_arith $ac_count + 1 && ac_count=$as_val 6104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6105 # Best one so far, save it but keep looking for a better one 6106 ac_cv_path_EGREP="$ac_path_EGREP" 6107 ac_path_EGREP_max=$ac_count 6108 fi 6109 # 10*(2^10) chars as input seems more than enough 6110 test $ac_count -gt 10 && break 6111 done 6112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6113esac 6114 6115 $ac_path_EGREP_found && break 3 6116 done 6117 done 6118 done 6119IFS=$as_save_IFS 6120 if test -z "$ac_cv_path_EGREP"; then 6121 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6122 fi 6123else 6124 ac_cv_path_EGREP=$EGREP 6125fi 6126 6127 fi 6128fi 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6130$as_echo "$ac_cv_path_EGREP" >&6; } 6131 EGREP="$ac_cv_path_EGREP" 6132 6133 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6135$as_echo_n "checking for ANSI C header files... " >&6; } 6136if ${ac_cv_header_stdc+:} false; then : 6137 $as_echo_n "(cached) " >&6 6138else 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141#include <stdlib.h> 6142#include <stdarg.h> 6143#include <string.h> 6144#include <float.h> 6145 6146int 6147main () 6148{ 6149 6150 ; 6151 return 0; 6152} 6153_ACEOF 6154if ac_fn_c_try_compile "$LINENO"; then : 6155 ac_cv_header_stdc=yes 6156else 6157 ac_cv_header_stdc=no 6158fi 6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6160 6161if test $ac_cv_header_stdc = yes; then 6162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164/* end confdefs.h. */ 6165#include <string.h> 6166 6167_ACEOF 6168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6169 $EGREP "memchr" >/dev/null 2>&1; then : 6170 6171else 6172 ac_cv_header_stdc=no 6173fi 6174rm -f conftest* 6175 6176fi 6177 6178if test $ac_cv_header_stdc = yes; then 6179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182#include <stdlib.h> 6183 6184_ACEOF 6185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6186 $EGREP "free" >/dev/null 2>&1; then : 6187 6188else 6189 ac_cv_header_stdc=no 6190fi 6191rm -f conftest* 6192 6193fi 6194 6195if test $ac_cv_header_stdc = yes; then 6196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6197 if test "$cross_compiling" = yes; then : 6198 : 6199else 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202#include <ctype.h> 6203#include <stdlib.h> 6204#if ((' ' & 0x0FF) == 0x020) 6205# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6206# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6207#else 6208# define ISLOWER(c) \ 6209 (('a' <= (c) && (c) <= 'i') \ 6210 || ('j' <= (c) && (c) <= 'r') \ 6211 || ('s' <= (c) && (c) <= 'z')) 6212# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6213#endif 6214 6215#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6216int 6217main () 6218{ 6219 int i; 6220 for (i = 0; i < 256; i++) 6221 if (XOR (islower (i), ISLOWER (i)) 6222 || toupper (i) != TOUPPER (i)) 6223 return 2; 6224 return 0; 6225} 6226_ACEOF 6227if ac_fn_c_try_run "$LINENO"; then : 6228 6229else 6230 ac_cv_header_stdc=no 6231fi 6232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6233 conftest.$ac_objext conftest.beam conftest.$ac_ext 6234fi 6235 6236fi 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6239$as_echo "$ac_cv_header_stdc" >&6; } 6240if test $ac_cv_header_stdc = yes; then 6241 6242$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6243 6244fi 6245 6246# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6247for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6248 inttypes.h stdint.h unistd.h 6249do : 6250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6251ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6252" 6253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6254 cat >>confdefs.h <<_ACEOF 6255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6256_ACEOF 6257 6258fi 6259 6260done 6261 6262 6263ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default" 6264if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then : 6265 $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h 6266 6267fi 6268 6269 6270 case "${target_os}" in 6271 aix3.2*) 6272 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h 6273 6274 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 6275 6276 AIX_LINK_OPTS='-bnso -berok' 6277 PR_MD_ASFILES=os_AIX.s 6278 ;; 6279 aix4.1*) 6280 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6281 6282 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 6283 6284 $as_echo "#define AIX4_1 1" >>confdefs.h 6285 6286 MKSHLIB= 6287 DSO_LDOPTS= 6288 AIX_LINK_OPTS='-bnso -berok' 6289 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr' 6290 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr' 6291 ;; 6292 aix4.2*) 6293 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6294 6295 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6296 6297 AIX_LINK_OPTS='-brtl -bnso -berok' 6298 ;; 6299 aix4.3*) 6300 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6301 6302 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6303 6304 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h 6305 6306 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6307 6308 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6309 6310 USE_IPV6=1 6311 AIX_LINK_OPTS='-brtl -bnso -berok' 6312 ;; 6313 *) 6314 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6315 6316 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6317 6318 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h 6319 6320 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6321 6322 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6323 6324 USE_IPV6=1 6325 AIX_LINK_OPTS='-brtl -bnso -berok' 6326 ;; 6327 esac 6328 CFLAGS="$CFLAGS -qro -qroconst" 6329 AIX_WRAP='$(DIST)/lib/aixwrap.o' 6330 AIX_TMP='./_aix_tmp.o' 6331 if test -n "$USE_64"; then 6332 MDCPUCFG_H=_aix64.cfg 6333 OBJECT_MODE=64 6334 else 6335 MDCPUCFG_H=_aix32.cfg 6336 fi 6337 PR_MD_CSRCS=aix.c 6338 RESOLVE_LINK_SYMBOLS=1 6339 ;; 6340 6341*-bsdi*) 6342 $as_echo "#define XP_UNIX 1" >>confdefs.h 6343 6344 $as_echo "#define BSDI 1" >>confdefs.h 6345 6346 $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h 6347 6348 6349 CFLAGS="$CFLAGS -Wall -Wno-format" 6350 CXXFLAGS="$CXXFLAGS -Wall -Wno-format" 6351 6352 if echo "$OS_TEST" | grep -c 86 >/dev/null; then 6353 CPU_ARCH=x86 6354 elif echo "$OS_TEST" | grep -c sparc >/dev/null; then 6355 CPU_ARCH=sparc 6356 fi 6357 6358 MDCPUCFG_H=_bsdi.cfg 6359 PR_MD_CSRCS=bsdi.c 6360 6361 DSO_LDOPTS=-r 6362 6363 case "$target_os" in 6364 bsdi1.1*) 6365 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h 6366 6367 $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h 6368 6369 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 6370 6371 MKSHLIB= 6372 DSO_CFLAGS= 6373 DSO_LDOPTS= 6374 ;; 6375 6376 bsdi2.1*) 6377 $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h 6378 6379 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h 6380 6381 $as_echo "#define HAVE_DLL 1" >>confdefs.h 6382 6383 $as_echo "#define USE_DLFCN 1" >>confdefs.h 6384 6385 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h 6386 6387 PR_MD_ASFILES=os_BSD_OS_386_2.s 6388 ;; 6389 6390 bsdi4.* | bsdi5.*) 6391 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h 6392 6393 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h 6394 6395 $as_echo "#define HAVE_DLL 1" >>confdefs.h 6396 6397 $as_echo "#define USE_DLFCN 1" >>confdefs.h 6398 6399 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h 6400 6401 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' 6402 DSO_CFLAGS=-fPIC 6403 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)' 6404 STRIP="$STRIP -d" 6405 case "$target_os" in 6406 bsdi4.2* | bsdi4.3* | bsdi5.*) 6407 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h 6408 6409 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h 6410 6411 ;; 6412 esac 6413 ;; 6414 *) 6415 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h 6416 6417 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h 6418 6419 $as_echo "#define HAVE_DLL 1" >>confdefs.h 6420 6421 $as_echo "#define USE_DLFCN 1" >>confdefs.h 6422 6423 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h 6424 6425 ;; 6426 esac 6427 6428 ;; 6429 6430*-darwin*) 6431 $as_echo "#define XP_UNIX 1" >>confdefs.h 6432 6433 $as_echo "#define DARWIN 1" >>confdefs.h 6434 6435 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 6436 6437 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6438 6439 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6440 6441 6442 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` 6443 6444 if test "$HOST_DARWIN_MAJOR" -ge 15 ; then 6445 $as_echo "#define HAS_CONNECTX 1" >>confdefs.h 6446 6447 fi 6448 AS='$(CC) -x assembler-with-cpp' 6449 CFLAGS="$CFLAGS -Wall -fno-common" 6450 case "${target_cpu}" in 6451 arm*) 6452 CPU_ARCH=arm 6453 ;; 6454 i*86*|x86_64) 6455 if test -n "$USE_64"; then 6456 CPU_ARCH=x86_64 6457 else 6458 CPU_ARCH=i386 6459 fi 6460 ;; 6461 aarch64) 6462 CPU_ARCH=aarch64 6463 ;; 6464 *) 6465 CPU_ARCH=ppc 6466 ;; 6467 esac 6468 if test "`echo $CC | grep -c '\-arch '`" = "0"; then 6469 case "$CPU_ARCH" in 6470 aarch64) 6471 CC="$CC -arch arm64" 6472 ;; 6473 *) 6474 CC="$CC -arch $CPU_ARCH" 6475 ;; 6476 esac 6477 fi 6478 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default" 6479if test "x$ac_cv_header_crt_externs_h" = xyes; then : 6480 $as_echo "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h 6481 6482fi 6483 6484 6485 DSO_CFLAGS=-fPIC 6486 DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names' 6487 _OPTIMIZE_FLAGS=-O2 6488 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 6489 STRIP="$STRIP -x -S" 6490 DLL_SUFFIX=dylib 6491 USE_PTHREADS=1 6492 MDCPUCFG_H=_darwin.cfg 6493 PR_MD_CSRCS=darwin.c 6494 PR_MD_ASFILES=os_Darwin.s 6495 6496 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then 6497 export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET 6498 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then 6499 case "${target_cpu}" in 6500 powerpc*) 6501 export MACOSX_DEPLOYMENT_TARGET=10.3 6502 ;; 6503 i*86*) 6504 export MACOSX_DEPLOYMENT_TARGET=10.4 6505 ;; 6506 esac 6507 fi 6508 6509 6510 if test "$MACOS_SDK_DIR"; then 6511 6512 if test ! -d "$MACOS_SDK_DIR"; then 6513 as_fn_error $? "SDK not found. When using --with-macos-sdk, you must 6514specify a valid SDK. SDKs are installed when the optional cross-development 6515tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5 6516 fi 6517 6518 6519 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` 6520 GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` 6521 GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` 6522 6523 GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` 6524 if test "$GCC_VERSION_MAJOR" -lt "4" ; then 6525 SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" 6526 if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then 6527 SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" 6528 fi 6529 6530 SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" 6531 6532 CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" 6533 6534 CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" 6535 6536 6537 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` 6538 6539 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then 6540 MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}" 6541 else 6542 MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}" 6543 fi 6544 6545 LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" 6546 export NEXT_ROOT=$MACOS_SDK_DIR 6547 6548 if test -n "$CROSS_COMPILE" ; then 6549 HOST_CC="NEXT_ROOT= $HOST_CC" 6550 HOST_CXX="NEXT_ROOT= $HOST_CXX" 6551 fi 6552 else 6553 CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" 6554 6555 CPP="$CPP -isysroot ${MACOS_SDK_DIR}" 6556 6557 if test "$GCC_VERSION_FULL" != "4.0.0" ; then 6558 LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" 6559 else 6560 LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" 6561 fi 6562 fi 6563 fi 6564 ;; 6565 6566*-dragonfly*) 6567 if test -z "$USE_NSPR_THREADS"; then 6568 USE_PTHREADS=1 6569 fi 6570 $as_echo "#define XP_UNIX 1" >>confdefs.h 6571 6572 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 6573 6574 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6575 6576 CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" 6577 6578 6579 6580 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 6581 DSO_CFLAGS=-fPIC 6582 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 6583 MDCPUCFG_H=_dragonfly.cfg 6584 PR_MD_CSRCS=freebsd.c 6585 ;; 6586 6587*-freebsd*) 6588 if test -z "$USE_NSPR_THREADS"; then 6589 USE_PTHREADS=1 6590 fi 6591 $as_echo "#define XP_UNIX 1" >>confdefs.h 6592 6593 $as_echo "#define FREEBSD 1" >>confdefs.h 6594 6595 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 6596 6597 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6598 6599 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6600 6601 CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" 6602 MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` 6603 if test "$MOZ_OBJFORMAT" = "elf"; then 6604 DLL_SUFFIX=so 6605 else 6606 DLL_SUFFIX=so.1.0 6607 fi 6608 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 6609 DSO_CFLAGS=-fPIC 6610 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 6611 MDCPUCFG_H=_freebsd.cfg 6612 PR_MD_CSRCS=freebsd.c 6613 ;; 6614 6615*-hpux*) 6616 $as_echo "#define XP_UNIX 1" >>confdefs.h 6617 6618 $as_echo "#define HPUX 1" >>confdefs.h 6619 6620 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 6621 6622 # HPUX report the POLLHUP event for a socket when the 6623 # shutdown(SHUT_WR) operation is called for the remote end, even though 6624 # the socket is still writeable. Use select(), instead of poll(), to 6625 # workaround this problem. 6626 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h 6627 6628 $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h 6629 6630 DSO_LDOPTS='-b +h $(notdir $@)' 6631 PR_MD_CSRCS=hpux.c 6632 if test "$OS_TEST" = "ia64"; then 6633 DLL_SUFFIX=so 6634 DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'" 6635 CPU_ARCH_TAG=_$OS_TEST 6636 if test -z "$USE_64"; then 6637 COMPILER_TAG=_32 6638 fi 6639 PR_MD_ASFILES=os_HPUX_ia64.s 6640 else 6641 $as_echo "#define hppa 1" >>confdefs.h 6642 6643 DLL_SUFFIX=sl 6644 PR_MD_ASFILES=os_HPUX.s 6645 fi 6646 if test -n "$USE_64"; then 6647 MDCPUCFG_H=_hpux64.cfg 6648 else 6649 MDCPUCFG_H=_hpux32.cfg 6650 fi 6651 if test -z "$GNU_CC"; then 6652 CC="$CC -Ae" 6653 CXX="$CXX -ext" 6654 DSO_CFLAGS=+Z 6655 else 6656 DSO_CFLAGS=-fPIC 6657 ASFLAGS="$ASFLAGS -x assembler-with-cpp" 6658 fi 6659 6660 if test -n "$MOZILLA_CLIENT"; then 6661 DEFAULT_IMPL_STRATEGY=_EMU 6662 fi 6663 6664 if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then 6665 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 6666 6667 $as_echo "#define HPUX9 1" >>confdefs.h 6668 6669 DEFAULT_IMPL_STRATEGY=_EMU 6670 USE_NSPR_THREADS=1 6671 fi 6672 6673 if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then 6674 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 6675 6676 fi 6677 6678 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then 6679 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 6680 6681 fi 6682 6683 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then 6684 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h 6685 6686 fi 6687 6688 if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then 6689 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6690 6691 fi 6692 6693 # HP-UX 11i v2 (B.11.23) or higher 6694 6695 case "$OS_RELEASE" in 6696 [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*) 6697 USE_IPV6=1 6698 ;; 6699 esac 6700 6701 6702 if test "$OS_RELEASE" = "B.10.01"; then 6703 $as_echo "#define HPUX10 1" >>confdefs.h 6704 6705 DEFAULT_IMPL_STRATEGY=_EMU 6706 fi 6707 6708 if test "$OS_RELEASE" = "B.10.10"; then 6709 $as_echo "#define HPUX10 1" >>confdefs.h 6710 6711 $as_echo "#define HPUX10_10 1" >>confdefs.h 6712 6713 DEFAULT_IMPL_STRATEGY=_PTH 6714 fi 6715 6716 if test "$OS_RELEASE" = "B.10.20"; then 6717 $as_echo "#define HPUX10 1" >>confdefs.h 6718 6719 $as_echo "#define HPUX10_20 1" >>confdefs.h 6720 6721 if test -z "$GNU_CC"; then 6722 CFLAGS="$CFLAGS +DAportable +DS1.1" 6723 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" 6724 fi 6725 DEFAULT_IMPL_STRATEGY=_PTH 6726 fi 6727 6728 if test "$OS_RELEASE" = "B.10.30"; then 6729 $as_echo "#define HPUX10 1" >>confdefs.h 6730 6731 $as_echo "#define HPUX10_30 1" >>confdefs.h 6732 6733 if test -z "$GNU_CC"; then 6734 CFLAGS="$CFLAGS +DAportable +DS1.1" 6735 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" 6736 fi 6737 DEFAULT_IMPL_STRATEGY=_PTH 6738 fi 6739 6740 if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then 6741 $as_echo "#define HPUX10 1" >>confdefs.h 6742 6743 $as_echo "#define HPUX11 1" >>confdefs.h 6744 6745 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 6746 6747 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6748 6749 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6750 6751 if test -z "$GNU_CC"; then 6752 if test -z "$USE_64"; then 6753 if test "$OS_TEST" = "ia64"; then 6754 CFLAGS="$CFLAGS +DD32" 6755 CXXFLAGS="$CXXFLAGS +DD32" 6756 else 6757 CFLAGS="$CFLAGS +DAportable +DS2.0" 6758 CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" 6759 fi 6760 else 6761 if test "$OS_TEST" = "ia64"; then 6762 CFLAGS="$CFLAGS +DD64" 6763 CXXFLAGS="$CXXFLAGS +DD64" 6764 else 6765 CFLAGS="$CFLAGS +DA2.0W +DS2.0" 6766 CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" 6767 fi 6768 fi 6769 fi 6770 DEFAULT_IMPL_STRATEGY=_PTH 6771 fi 6772 6773 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then 6774 USE_NSPR_THREADS=1 6775 USE_PTHREADS= 6776 USE_USER_PTHREADS= 6777 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then 6778 USE_PTHREADS=1 6779 if test "$USE_NSPR_THREADS"; then 6780 USE_PTHREADS= 6781 fi 6782 if test "$USE_USER_PTHREADS"; then 6783 USE_PTHREADS= 6784 fi 6785 fi 6786 ;; 6787 6788*-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*) 6789 if test -z "$USE_NSPR_THREADS"; then 6790 USE_PTHREADS=1 6791 IMPL_STRATEGY=_PTH 6792 fi 6793 $as_echo "#define XP_UNIX 1" >>confdefs.h 6794 6795 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6796 6797 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6798 6799 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6800 6801 case "${target}" in 6802 *-android*|*-linuxandroid*) 6803 OS_TARGET=Android 6804 $as_echo "#define LINUX 1" >>confdefs.h 6805 6806 ;; 6807 *-linux*) 6808 $as_echo "#define LINUX 1" >>confdefs.h 6809 6810 ;; 6811 esac 6812 CFLAGS="$CFLAGS -Wall" 6813 CXXFLAGS="$CXXFLAGS -Wall" 6814 MDCPUCFG_H=_linux.cfg 6815 PR_MD_CSRCS=linux.c 6816 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 6817 DSO_CFLAGS=-fPIC 6818 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 6819 _OPTIMIZE_FLAGS=-O2 6820 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that 6821 # combo is not yet good at debugging inlined 6822 # functions (even when using DWARF2 as the 6823 # debugging format) 6824 COMPILER_TAG=_glibc 6825 if echo "$OS_TEST" | grep -c 86 >/dev/null; then 6826 CPU_ARCH=x86 6827 else 6828 CPU_ARCH=$OS_TEST 6829 fi 6830 CPU_ARCH_TAG=_${CPU_ARCH} 6831 case "${target_cpu}" in 6832 alpha) 6833 $as_echo "#define _ALPHA_ 1" >>confdefs.h 6834 6835 $as_echo "#define __alpha 1" >>confdefs.h 6836 6837 CFLAGS="$CFLAGS -mieee" 6838 CXXFLAGS="$CXXFLAGS -mieee" 6839 ;; 6840 i*86) 6841 $as_echo "#define i386 1" >>confdefs.h 6842 6843 PR_MD_ASFILES=os_Linux_x86.s 6844 ;; 6845 ia64) 6846 PR_MD_ASFILES=os_Linux_ia64.s 6847 ;; 6848 x86_64) 6849 if test -n "$USE_64"; then 6850 PR_MD_ASFILES=os_Linux_x86_64.s 6851 elif test -n "$USE_X32"; then 6852 PR_MD_ASFILES=os_Linux_x86_64.s 6853 CC="$CC -mx32" 6854 CXX="$CXX -mx32" 6855 else 6856 $as_echo "#define i386 1" >>confdefs.h 6857 6858 PR_MD_ASFILES=os_Linux_x86.s 6859 CC="$CC -m32" 6860 CXX="$CXX -m32" 6861 fi 6862 ;; 6863 ppc|powerpc) 6864 PR_MD_ASFILES=os_Linux_ppc.s 6865 ;; 6866 powerpc64) 6867 if test -n "$USE_64"; then 6868 CC="$CC -m64" 6869 CXX="$CXX -m64" 6870 else 6871 PR_MD_ASFILES=os_Linux_ppc.s 6872 fi 6873 ;; 6874 esac 6875 ;; 6876 6877*-mingw*|*-msys*|*-cygwin*|*-mks*) 6878 $as_echo "#define XP_PC 1" >>confdefs.h 6879 6880 $as_echo "#define WIN32 1" >>confdefs.h 6881 6882 PR_MD_ARCH_DIR=windows 6883 RESOLVE_LINK_SYMBOLS=1 6884 6885 if test -n "$GNU_CC"; then 6886 CC="$CC -mwindows" 6887 CXX="$CXX -mwindows" 6888 DLL_SUFFIX=dll 6889 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))' 6890 RC=$WINDRES 6891 # Use temp file for windres (bug 213281) 6892 RCFLAGS='-O coff --use-temp-file' 6893 else 6894 LD=link 6895 AR='lib -NOLOGO -OUT:"$@"' 6896 AR_FLAGS= 6897 RANLIB='echo not_ranlib' 6898 STRIP='echo not_strip' 6899 RC=rc.exe 6900 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' 6901 OBJ_SUFFIX=obj 6902 LIB_SUFFIX=lib 6903 DLL_SUFFIX=dll 6904 6905 # Determine compiler version 6906 6907 _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' 6908 6909 CC_VERSION=`${CC} -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` 6910 if test -z "$CC_VERSION"; then 6911 as_fn_error $? "Could not determine MSC version." "$LINENO" 5 6912 fi 6913 6914 _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` 6915 _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` 6916 _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` 6917 _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` 6918 MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} 6919 6920 if test "$_CC_MAJOR_VERSION" -eq "14"; then 6921 if test $_CC_RELEASE -gt 50727; then 6922 _USE_DYNAMICBASE=1 6923 elif test $_CC_BUILD -ge 762; then 6924 _USE_DYNAMICBASE=1 6925 fi 6926 $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h 6927 6928 $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h 6929 6930 elif test $_CC_MAJOR_VERSION -ge 15; then 6931 _USE_DYNAMICBASE=1 6932 $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h 6933 6934 $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h 6935 6936 fi 6937 6938 if test -n "$_USE_DYNAMICBASE"; then 6939 DLLFLAGS="$DLLFLAGS -DYNAMICBASE" 6940 fi 6941 6942 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic 6943 # tape manipulation utility (or something else) 6944 if test "$MSC_VER" -ge "1400"; then 6945 6946 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' 6947 6948 6949 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` 6950 if test -n "$MSMT_TOOL"; then 6951 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` 6952 if test -z "$MSMANIFEST_TOOL_VERSION"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5 6954$as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;} 6955 fi 6956 MT=mt 6957 unset MSMT_TOOL 6958 else 6959 as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5 6960 fi 6961 fi 6962 6963 CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" 6964 DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" 6965 _DEBUG_FLAGS=-Zi 6966 _OPTIMIZE_FLAGS=-O2 6967 6968 PROFILE_GEN_CFLAGS="-GL" 6969 PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" 6970 PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" 6971 PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" 6972 6973 if test "$MSC_VER" -ge "1800"; then 6974 CFLAGS="$CFLAGS -FS" 6975 PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" 6976 PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" 6977 fi 6978 6979 if test -z "$MOZ_OPTIMIZE"; then 6980 CFLAGS="$CFLAGS -Od" 6981 fi 6982 6983 if test "$USE_DEBUG_RTL" = 1; then 6984 if test -n "$USE_STATIC_RTL"; then 6985 CFLAGS="$CFLAGS -MTd" 6986 else 6987 CFLAGS="$CFLAGS -MDd" 6988 fi 6989 else 6990 if test -n "$USE_STATIC_RTL"; then 6991 CFLAGS="$CFLAGS -MT" 6992 else 6993 CFLAGS="$CFLAGS -MD" 6994 fi 6995 fi 6996 6997 if test -n "$MOZ_DEBUG"; then 6998 $as_echo "#define _DEBUG 1" >>confdefs.h 6999 7000 else 7001 DEFINES="$DEFINES -U_DEBUG" 7002 fi 7003 7004 if test -n "$MOZ_DEBUG_SYMBOLS"; then 7005 if test -n "$MOZ_OPTIMIZE"; then 7006 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" 7007 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" 7008 else 7009 DLLFLAGS="$DLLFLAGS -DEBUG" 7010 LDFLAGS="$LDFLAGS -DEBUG" 7011 fi 7012 fi 7013 7014 OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS" 7015 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then 7016 OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" 7017 fi 7018 7019 if test "$OS_TARGET" = "WINNT"; then 7020 CFLAGS="$CFLAGS -GT" 7021 LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7022 LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7023 else 7024 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7025 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7026 fi 7027 fi # GNU_CC 7028 7029 if test -n "$USE_STATIC_TLS"; then 7030 $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h 7031 7032 fi 7033 7034 if test "$OS_TARGET" = "WINNT"; then 7035 $as_echo "#define WINNT 1" >>confdefs.h 7036 7037 else 7038 $as_echo "#define WIN95 1" >>confdefs.h 7039 7040 # undefine WINNT as some versions of mingw gcc define it by default 7041 DEFINES="$DEFINES -UWINNT" 7042 $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h 7043 7044 fi 7045 7046 if test "$CPU_ARCH" = "x86"; then 7047 CPU_ARCH_TAG= 7048 else 7049 CPU_ARCH_TAG=$CPU_ARCH 7050 fi 7051 7052 if test "$USE_DEBUG_RTL" = 1; then 7053 OBJDIR_SUFFIX=OBJD 7054 fi 7055 7056 case "$OS_TARGET" in 7057 WINNT) 7058 MDCPUCFG_H=_winnt.cfg 7059 ;; 7060 WIN95) 7061 MDCPUCFG_H=_win95.cfg 7062 ;; 7063 *) 7064 as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5 7065 ;; 7066 esac 7067 7068 case "$target_cpu" in 7069 i*86) 7070 if test -n "$USE_64"; then 7071 $as_echo "#define _AMD64_ 1" >>confdefs.h 7072 7073 else 7074 $as_echo "#define _X86_ 1" >>confdefs.h 7075 7076 if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then 7077 CFLAGS="$CFLAGS -arch:IA32" 7078 fi 7079 fi 7080 ;; 7081 x86_64) 7082 $as_echo "#define _AMD64_ 1" >>confdefs.h 7083 7084 USE_64=1 7085 ;; 7086 aarch64) 7087 $as_echo "#define _ARM64_ 1" >>confdefs.h 7088 7089 USE_64=1 7090 ;; 7091 ia64) 7092 $as_echo "#define _IA64_ 1" >>confdefs.h 7093 7094 USE_64=1 7095 ;; 7096 *) 7097 $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h 7098 7099 ;; 7100 esac 7101 ;; 7102 7103*-netbsd*) 7104 $as_echo "#define XP_UNIX 1" >>confdefs.h 7105 7106 $as_echo "#define NETBSD 1" >>confdefs.h 7107 7108 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 7109 7110 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 7111 7112 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7113 7114 if test -z "$USE_NSPR_THREADS"; then 7115 USE_PTHREADS=1 7116 fi 7117 MDCPUCFG_H=_netbsd.cfg 7118 PR_MD_CSRCS=netbsd.c 7119 7120 DSO_CFLAGS='-fPIC -DPIC' 7121 CFLAGS="$CFLAGS -ansi -Wall" 7122 CXXFLAGS="$CXXFLAGS -ansi -Wall" 7123 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' 7124 7125 if test -z "$OBJECT_FMT"; then 7126 if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then 7127 OBJECT_FMT=a.out 7128 DLL_SUFFIX=so.1.0 7129 DSO_LDOPTS='-shared' 7130 else 7131 OBJECT_FMT=ELF 7132 DLL_SUFFIX=so 7133 DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' 7134 fi 7135 fi 7136 7137 if test "$LIBRUNPATH"; then 7138 DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" 7139 fi 7140 ;; 7141 7142*-nto*) 7143 $as_echo "#define XP_UNIX 1" >>confdefs.h 7144 7145 $as_echo "#define NTO 1" >>confdefs.h 7146 7147 $as_echo "#define _QNX_SOURCE 1" >>confdefs.h 7148 7149 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7150 7151 MDCPUCFG_H=_nto.cfg 7152 PR_MD_CSRCS=nto.c 7153 MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' 7154 DSO_CFLAGS=-fPIC 7155 DSO_LDOPTS=-shared 7156 OS_LIBS="$OS_LIBS -lsocket" 7157 _OPTIMIZE_FLAGS="-O1" 7158 _DEBUG_FLAGS="-gstabs" 7159 ;; 7160 7161*-openbsd*) 7162 $as_echo "#define XP_UNIX 1" >>confdefs.h 7163 7164 $as_echo "#define OPENBSD 1" >>confdefs.h 7165 7166 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 7167 7168 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 7169 7170 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7171 7172 CFLAGS="$CFLAGS -ansi -Wall" 7173 CXXFLAGS="$CXXFLAGS -ansi -Wall" 7174 DLL_SUFFIX=so.1.0 7175 DSO_CFLAGS=-fPIC 7176 MDCPUCFG_H=_openbsd.cfg 7177 PR_MD_CSRCS=openbsd.c 7178 OS_LIBS="-lc" 7179 if test -z "$USE_NSPR_THREADS"; then 7180 USE_PTHREADS=1 7181 fi 7182 DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)' 7183 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7184 ;; 7185 7186*-qnx*) 7187 $as_echo "#define XP_UNIX 1" >>confdefs.h 7188 7189 $as_echo "#define QNX 1" >>confdefs.h 7190 7191 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 7192 7193 USE_NSPR_THREADS=1 7194 MDCPUCFG_H=_qnx.cfg 7195 PR_MD_CSRCS=qnx.c 7196 ;; 7197 7198*-riscos*) 7199 $as_echo "#define XP_UNIX 1" >>confdefs.h 7200 7201 $as_echo "#define RISCOS 1" >>confdefs.h 7202 7203 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 7204 7205 USE_PTHREADS=1 7206 MDCPUCFG_H=_riscos.cfg 7207 PR_MD_CSRCS=riscos.c 7208 DSO_CFLAGS=-fPIC 7209 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 7210 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7211 ;; 7212 7213*-*-sco*) 7214 $as_echo "#define XP_UNIX 1" >>confdefs.h 7215 7216 $as_echo "#define SCO 1" >>confdefs.h 7217 7218 $as_echo "#define sco 1" >>confdefs.h 7219 7220 $as_echo "#define SYSV 1" >>confdefs.h 7221 7222 $as_echo "#define _SVID3 1" >>confdefs.h 7223 7224 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 7225 7226 CC='cc -b elf -KPIC' 7227 CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' 7228 USE_NSPR_THREADS=1 7229 CPU_ARCH=x86 7230 DSO_LDOPTS='-b elf -G' 7231 MDCPUCFG_H=_scoos.cfg 7232 PR_MD_SRCS=scoos.c 7233 ;; 7234 7235*-solaris*) 7236 if test -z "$USE_NSPR_THREADS"; then 7237 USE_PTHREADS=1 7238 fi 7239 $as_echo "#define XP_UNIX 1" >>confdefs.h 7240 7241 $as_echo "#define SVR4 1" >>confdefs.h 7242 7243 $as_echo "#define SYSV 1" >>confdefs.h 7244 7245 $as_echo "#define __svr4 1" >>confdefs.h 7246 7247 $as_echo "#define __svr4__ 1" >>confdefs.h 7248 7249 $as_echo "#define SOLARIS 1" >>confdefs.h 7250 7251 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 7252 7253 CPU_ARCH=`uname -p` 7254 MDCPUCFG_H=_solaris.cfg 7255 PR_MD_CSRCS=solaris.c 7256 LD=/usr/ccs/bin/ld 7257 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7258 RESOLVE_LINK_SYMBOLS=1 7259 case "${OS_RELEASE}" in 7260 5.8|5.9) 7261 ;; 7262 *) 7263 # It is safe to use the -Bdirect linker flag on Solaris 10 or later. 7264 USE_B_DIRECT=1 7265 ;; 7266 esac 7267 if test -n "$GNU_CC"; then 7268 DSO_CFLAGS=-fPIC 7269 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then 7270 GCC_USE_GNU_LD=1 7271 fi 7272 DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore' 7273 if test -n "$USE_B_DIRECT"; then 7274 DSO_LDOPTS="$DSO_LDOPTS,-Bdirect" 7275 fi 7276 else 7277 DSO_CFLAGS=-KPIC 7278 DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore' 7279 if test -n "$USE_B_DIRECT"; then 7280 DSO_LDOPTS="$DSO_LDOPTS -Bdirect" 7281 fi 7282 fi 7283 if test -n "$GNU_CC"; then 7284 CFLAGS="$CFLAGS -Wall" 7285 CXXFLAGS="$CXXFLAGS -Wall" 7286 if test -n "$USE_MDUPDATE"; then 7287 CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" 7288 CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" 7289 fi 7290 GCC_AS=`$CC -print-prog-name=as` 7291 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then 7292 GNU_AS=1 7293 fi 7294 else 7295 CFLAGS="$CFLAGS -xstrconst" 7296 CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife" 7297 if test -z "$MOZ_OPTIMIZE"; then 7298 CFLAGS="$CFLAGS -xs" 7299 CXXFLAGS="$CXXFLAGS -xs" 7300 fi 7301 _OPTIMIZE_FLAGS=-xO4 7302 fi 7303 if test -z "$GNU_AS"; then 7304 ASFLAGS="$ASFLAGS -Wa,-P" 7305 fi 7306 if test -n "$USE_64"; then 7307 if test -n "$GNU_CC"; then 7308 CC="$CC -m64" 7309 CXX="$CXX -m64" 7310 else 7311 if test "$OS_TEST" = "i86pc"; then 7312 CC="$CC -xarch=amd64" 7313 CXX="$CXX -xarch=amd64" 7314 else 7315 CC="$CC -xarch=v9" 7316 CXX="$CXX -xarch=v9" 7317 fi 7318 fi 7319 fi 7320 if test "$OS_TEST" = "i86pc"; then 7321 if test -z "$USE_64"; then 7322 $as_echo "#define i386 1" >>confdefs.h 7323 7324 fi 7325 CPU_ARCH_TAG=_$OS_TEST 7326 # The default debug format, DWARF (-g), is not supported by gcc 7327 # on i386-ANY-sysv4/solaris, but the stabs format is. It is 7328 # assumed that the Solaris assembler /usr/ccs/bin/as is used. 7329 # If your gcc uses GNU as, you do not need the -Wa,-s option. 7330 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then 7331 _DEBUG_FLAGS=-gstabs 7332 if test -z "$GNU_AS"; then 7333 _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" 7334 fi 7335 fi 7336 fi 7337 case "${target_os}" in 7338 solaris2.3*) 7339 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 7340 7341 ;; 7342 solaris2.4*) 7343 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 7344 7345 ;; 7346 solaris2.5*) 7347 $as_echo "#define SOLARIS2_5 1" >>confdefs.h 7348 7349 ;; 7350 *) 7351 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 7352 7353 # The lfcompile64(5) man page on Solaris 2.6 says: 7354 # For applications that do not wish to conform to the POSIX or 7355 # X/Open specifications, the 64-bit transitional interfaces 7356 # are available by default. No compile-time flags need to be 7357 # set. 7358 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. 7359 # The native compiler, gcc 2.8.x, and egcs don't have this problem. 7360 if test -n "$GNU_CC"; then 7361 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 7362 7363 fi 7364 ;; 7365 esac 7366 case "${target_os}" in 7367 solaris2.3*) 7368 ;; 7369 solaris2.4*) 7370 ;; 7371 solaris2.5*) 7372 ;; 7373 solaris2.6*) 7374 ;; 7375 solaris2.7*) 7376 ;; 7377 *) 7378 # Solaris 8 or higher has IPv6. 7379 $as_echo "#define _PR_INET6 1" >>confdefs.h 7380 7381 ;; 7382 esac 7383 if test "$CPU_ARCH" = "sparc"; then 7384 # 64-bit Solaris SPARC requires V9 architecture, so the following 7385 # is not needed. 7386 if test -z "$USE_64"; then 7387 ULTRASPARC_LIBRARY=nspr_flt 7388 fi 7389 fi 7390 # Purify requires that binaries linked against nspr also 7391 # be linked against -lrt (or -lposix4) so add it to OS_LIBS 7392 _rev=`uname -r` 7393 _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'` 7394 OS_LIBS="$OS_LIBS $_librt" 7395 ;; 7396 7397*-sco-sysv5*) 7398 $as_echo "#define XP_UNIX 1" >>confdefs.h 7399 7400 $as_echo "#define UNIXWARE 1" >>confdefs.h 7401 7402 $as_echo "#define SVR4 1" >>confdefs.h 7403 7404 $as_echo "#define SYSV 1" >>confdefs.h 7405 7406 USE_NSPR_THREADS=1 7407 if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then 7408 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 7409 7410 CC='$(NSDEPTH)/build/hcc cc' 7411 CXX='$(NSDEPTH)/build/hcpp CC' 7412 MDCPUCFG_H=_unixware.cfg 7413 else 7414 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 7415 7416 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 7417 7418 $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h 7419 7420 MDCPUCFG_H=_unixware7.cfg 7421 fi 7422 PR_MD_CSRCS=unixware.c 7423 DSO_LDOPTS=-G 7424 CPU_ARCH=x86 7425 ;; 7426 7427*-os2*) 7428 $as_echo "#define XP_OS2 1" >>confdefs.h 7429 7430 $as_echo "#define XP_PC 1" >>confdefs.h 7431 7432 $as_echo "#define BSD_SELECT 1" >>confdefs.h 7433 7434 $as_echo "#define TCPV40HDRS 1" >>confdefs.h 7435 7436 LIB_SUFFIX=lib 7437 DLL_SUFFIX=dll 7438 RC=rc.exe 7439 PR_MD_ARCH_DIR=os2 7440 PROG_SUFFIX=.exe 7441 NSINSTALL=nsinstall 7442 MDCPUCFG_H=_os2.cfg 7443 RESOLVE_LINK_SYMBOLS=1 7444 7445 $as_echo "#define OS2 1" >>confdefs.h 7446 7447 AR=emxomfar 7448 AR_FLAGS='r $@' 7449 CFLAGS="$CFLAGS -Wall -Zomf" 7450 CXXFLAGS="$CFLAGS -Wall -Zomf" 7451 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7452 DSO_CFLAGS= 7453 DSO_LDOPTS='-Zomf -Zdll' 7454 LDFLAGS='-Zmap' 7455 _OPTIMIZE_FLAGS="-O2 -s" 7456 _DEBUG_FLAGS="-g -fno-inline" 7457 if test -n "$MOZ_OPTIMIZE"; then 7458 DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" 7459 fi 7460 IMPLIB='emximp -o' 7461 FILTER='emxexp -o' 7462 if test -n "$MOZ_OS2_HIGH_MEMORY"; then 7463 LDFLAGS="$LDFLAGS -Zhigh-mem" 7464 $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h 7465 7466 fi 7467 7468 # GCC for OS/2 currently predefines these, but we don't want them 7469 DEFINES="$DEFINES -Uunix -U__unix -U__unix__" 7470 ;; 7471 7472*) 7473 $as_echo "#define XP_UNIX 1" >>confdefs.h 7474 7475 ;; 7476 7477esac 7478 7479if test -z "$SKIP_LIBRARY_CHECKS"; then 7480 7481 7482 7483case $target in 7484*-darwin*|*-os2*) 7485 ;; 7486*) 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7488$as_echo_n "checking for dlopen in -ldl... " >&6; } 7489if ${ac_cv_lib_dl_dlopen+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 ac_check_lib_save_LIBS=$LIBS 7493LIBS="-ldl $LIBS" 7494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496 7497/* Override any GCC internal prototype to avoid an error. 7498 Use char because int might match the return type of a GCC 7499 builtin and then its argument prototype would still apply. */ 7500#ifdef __cplusplus 7501extern "C" 7502#endif 7503char dlopen (); 7504int 7505main () 7506{ 7507return dlopen (); 7508 ; 7509 return 0; 7510} 7511_ACEOF 7512if ac_fn_c_try_link "$LINENO"; then : 7513 ac_cv_lib_dl_dlopen=yes 7514else 7515 ac_cv_lib_dl_dlopen=no 7516fi 7517rm -f core conftest.err conftest.$ac_objext \ 7518 conftest$ac_exeext conftest.$ac_ext 7519LIBS=$ac_check_lib_save_LIBS 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7522$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7523if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7524 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 7525if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7526 OS_LIBS="-ldl $OS_LIBS" 7527fi 7528 7529 7530fi 7531 7532 ;; 7533esac 7534 7535 7536 7537 7538if test $ac_cv_c_compiler_gnu = yes; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 7540$as_echo_n "checking whether $CC needs -traditional... " >&6; } 7541if ${ac_cv_prog_gcc_traditional+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 ac_pattern="Autoconf.*'x'" 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547#include <sgtty.h> 7548Autoconf TIOCGETP 7549_ACEOF 7550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7551 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7552 ac_cv_prog_gcc_traditional=yes 7553else 7554 ac_cv_prog_gcc_traditional=no 7555fi 7556rm -f conftest* 7557 7558 7559 if test $ac_cv_prog_gcc_traditional = no; then 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561/* end confdefs.h. */ 7562#include <termio.h> 7563Autoconf TCGETA 7564_ACEOF 7565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7566 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7567 ac_cv_prog_gcc_traditional=yes 7568fi 7569rm -f conftest* 7570 7571 fi 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 7574$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 7575 if test $ac_cv_prog_gcc_traditional = yes; then 7576 CC="$CC -traditional" 7577 fi 7578fi 7579 7580_SAVE_LIBS="$LIBS" 7581LIBS="$LIBS $OS_LIBS" 7582for ac_func in dladdr gettid lchown setpriority strerror syscall secure_getenv __secure_getenv 7583do : 7584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7585ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7586if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7587 cat >>confdefs.h <<_ACEOF 7588#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7589_ACEOF 7590 7591fi 7592done 7593 7594LIBS="$_SAVE_LIBS" 7595 7596 7597 7598# Check whether --with-ccache was given. 7599if test "${with_ccache+set}" = set; then : 7600 withval=$with_ccache; CCACHE=$withval 7601else 7602 CCACHE="no" 7603fi 7604 7605 7606if test "$CCACHE" != "no"; then 7607 if test -n "$CCACHE"; then 7608 if test "$CCACHE" = "yes"; then 7609 CCACHE= 7610 else 7611 if test ! -e "$CCACHE"; then 7612 as_fn_error $? "$CCACHE not found" "$LINENO" 5 7613 fi 7614 fi 7615 fi 7616 for ac_prog in $CCACHE ccache 7617do 7618 # Extract the first word of "$ac_prog", so it can be a program name with args. 7619set dummy $ac_prog; ac_word=$2 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7621$as_echo_n "checking for $ac_word... " >&6; } 7622if ${ac_cv_path_CCACHE+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 case $CCACHE in 7626 [\\/]* | ?:[\\/]*) 7627 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 7628 ;; 7629 *) 7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7631for as_dir in $PATH 7632do 7633 IFS=$as_save_IFS 7634 test -z "$as_dir" && as_dir=. 7635 for ac_exec_ext in '' $ac_executable_extensions; do 7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7637 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7639 break 2 7640 fi 7641done 7642 done 7643IFS=$as_save_IFS 7644 7645 ;; 7646esac 7647fi 7648CCACHE=$ac_cv_path_CCACHE 7649if test -n "$CCACHE"; then 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 7651$as_echo "$CCACHE" >&6; } 7652else 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654$as_echo "no" >&6; } 7655fi 7656 7657 7658 test -n "$CCACHE" && break 7659done 7660 7661 if test -z "$CCACHE" -o "$CCACHE" = ":"; then 7662 as_fn_error $? "ccache not found" "$LINENO" 5 7663 elif test -x "$CCACHE"; then 7664 CC="$CCACHE $CC" 7665 CXX="$CCACHE $CXX" 7666 else 7667 as_fn_error $? "$CCACHE is not executable" "$LINENO" 5 7668 fi 7669fi 7670 7671# Check whether --enable-strip was given. 7672if test "${enable_strip+set}" = set; then : 7673 enableval=$enable_strip; if test "$enableval" = "yes"; then 7674 ENABLE_STRIP=1 7675 fi 7676fi 7677 7678 7679case "${target_os}" in 7680hpux*) 7681if test -z "$GNU_CC"; then 7682 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5 7684$as_echo_n "checking for +Olit support... " >&6; } 7685if ${ac_cv_hpux_usable_olit_option+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 ac_cv_hpux_usable_olit_option=no 7689 rm -f conftest* 7690 echo 'int main() { return 0; }' | cat > conftest.c 7691 ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1 7692 if test $? -eq 0; then 7693 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then 7694 ac_cv_hpux_usable_olit_option=yes 7695 fi 7696 fi 7697 rm -f conftest* 7698 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5 7701$as_echo "$ac_cv_hpux_usable_olit_option" >&6; } 7702 7703 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then 7704 CFLAGS="$CFLAGS +Olit=all" 7705 CXXFLAGS="$CXXFLAGS +Olit=all" 7706 else 7707 CFLAGS="$CFLAGS +ESlit" 7708 CXXFLAGS="$CXXFLAGS +ESlit" 7709 fi 7710fi 7711;; 7712esac 7713 7714case "$target_os" in 7715darwin*) 7716 _HAVE_PTHREADS=1 7717 ;; 7718*) 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 7720$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 7721if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 ac_check_lib_save_LIBS=$LIBS 7725LIBS="-lpthreads $LIBS" 7726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728 7729/* Override any GCC internal prototype to avoid an error. 7730 Use char because int might match the return type of a GCC 7731 builtin and then its argument prototype would still apply. */ 7732#ifdef __cplusplus 7733extern "C" 7734#endif 7735char pthread_create (); 7736int 7737main () 7738{ 7739return pthread_create (); 7740 ; 7741 return 0; 7742} 7743_ACEOF 7744if ac_fn_c_try_link "$LINENO"; then : 7745 ac_cv_lib_pthreads_pthread_create=yes 7746else 7747 ac_cv_lib_pthreads_pthread_create=no 7748fi 7749rm -f core conftest.err conftest.$ac_objext \ 7750 conftest$ac_exeext conftest.$ac_ext 7751LIBS=$ac_check_lib_save_LIBS 7752fi 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 7754$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 7755if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 7756 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" 7757else 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 7759$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 7760if ${ac_cv_lib_pthread_pthread_create+:} false; then : 7761 $as_echo_n "(cached) " >&6 7762else 7763 ac_check_lib_save_LIBS=$LIBS 7764LIBS="-lpthread $LIBS" 7765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767 7768/* Override any GCC internal prototype to avoid an error. 7769 Use char because int might match the return type of a GCC 7770 builtin and then its argument prototype would still apply. */ 7771#ifdef __cplusplus 7772extern "C" 7773#endif 7774char pthread_create (); 7775int 7776main () 7777{ 7778return pthread_create (); 7779 ; 7780 return 0; 7781} 7782_ACEOF 7783if ac_fn_c_try_link "$LINENO"; then : 7784 ac_cv_lib_pthread_pthread_create=yes 7785else 7786 ac_cv_lib_pthread_pthread_create=no 7787fi 7788rm -f core conftest.err conftest.$ac_objext \ 7789 conftest$ac_exeext conftest.$ac_ext 7790LIBS=$ac_check_lib_save_LIBS 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 7793$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 7794if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 7795 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" 7796else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 7798$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 7799if ${ac_cv_lib_c_r_pthread_create+:} false; then : 7800 $as_echo_n "(cached) " >&6 7801else 7802 ac_check_lib_save_LIBS=$LIBS 7803LIBS="-lc_r $LIBS" 7804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806 7807/* Override any GCC internal prototype to avoid an error. 7808 Use char because int might match the return type of a GCC 7809 builtin and then its argument prototype would still apply. */ 7810#ifdef __cplusplus 7811extern "C" 7812#endif 7813char pthread_create (); 7814int 7815main () 7816{ 7817return pthread_create (); 7818 ; 7819 return 0; 7820} 7821_ACEOF 7822if ac_fn_c_try_link "$LINENO"; then : 7823 ac_cv_lib_c_r_pthread_create=yes 7824else 7825 ac_cv_lib_c_r_pthread_create=no 7826fi 7827rm -f core conftest.err conftest.$ac_objext \ 7828 conftest$ac_exeext conftest.$ac_ext 7829LIBS=$ac_check_lib_save_LIBS 7830fi 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 7832$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 7833if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 7834 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" 7835else 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 7837$as_echo_n "checking for pthread_create in -lc... " >&6; } 7838if ${ac_cv_lib_c_pthread_create+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 ac_check_lib_save_LIBS=$LIBS 7842LIBS="-lc $LIBS" 7843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845 7846/* Override any GCC internal prototype to avoid an error. 7847 Use char because int might match the return type of a GCC 7848 builtin and then its argument prototype would still apply. */ 7849#ifdef __cplusplus 7850extern "C" 7851#endif 7852char pthread_create (); 7853int 7854main () 7855{ 7856return pthread_create (); 7857 ; 7858 return 0; 7859} 7860_ACEOF 7861if ac_fn_c_try_link "$LINENO"; then : 7862 ac_cv_lib_c_pthread_create=yes 7863else 7864 ac_cv_lib_c_pthread_create=no 7865fi 7866rm -f core conftest.err conftest.$ac_objext \ 7867 conftest$ac_exeext conftest.$ac_ext 7868LIBS=$ac_check_lib_save_LIBS 7869fi 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 7871$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 7872if test "x$ac_cv_lib_c_pthread_create" = xyes; then : 7873 _HAVE_PTHREADS=1 7874 7875fi 7876 7877 7878fi 7879 7880 7881fi 7882 7883 7884fi 7885 7886 ;; 7887esac 7888 7889 7890# Check whether --with-pthreads was given. 7891if test "${with_pthreads+set}" = set; then : 7892 withval=$with_pthreads; if test "$withval" = "yes"; then 7893 if test -n "$_HAVE_PTHREADS"; then 7894 USE_PTHREADS=1 7895 USE_USER_PTHREADS= 7896 USE_NSPR_THREADS= 7897 else 7898 as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5; 7899 fi 7900 else 7901 USE_PTHREADS= 7902 _PTHREAD_LDFLAGS= 7903 fi 7904else 7905 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then 7906 USE_PTHREADS=1 7907 USE_USER_PTHREADS= 7908 USE_NSPR_THREADS= 7909 fi 7910fi 7911 7912 7913# Check whether --enable-user-pthreads was given. 7914if test "${enable_user_pthreads+set}" = set; then : 7915 enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then 7916 if test -n "$_HAVE_PTHREADS"; then 7917 USE_PTHREADS= 7918 USE_USER_PTHREADS=1 7919 USE_NSPR_THREADS= 7920 else 7921 as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5; 7922 fi 7923 fi 7924fi 7925 7926 7927# Check whether --enable-nspr-threads was given. 7928if test "${enable_nspr_threads+set}" = set; then : 7929 enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then 7930 USE_PTHREADS= 7931 USE_USER_PTHREADS= 7932 USE_NSPR_THREADS=1 7933 fi 7934fi 7935 7936 7937fi # SKIP_LIBRARY_CHECKS 7938 7939# Check whether --enable-ipv6 was given. 7940if test "${enable_ipv6+set}" = set; then : 7941 enableval=$enable_ipv6; if test "$enableval" = "yes"; then 7942 USE_IPV6=1 7943 else 7944 USE_IPV6= 7945 fi 7946fi 7947 7948 7949if test -n "$USE_PTHREADS"; then 7950 rm -f conftest* 7951 ac_cv_have_dash_pthread=no 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5 7953$as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; } 7954 echo 'int main() { return 0; }' | cat > conftest.c 7955 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 7956 if test $? -eq 0; then 7957 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 7958 ac_cv_have_dash_pthread=yes 7959 case "$target_os" in 7960 freebsd*|dragonfly*) 7961# Freebsd doesn't use -pthread for compiles, it uses them for linking 7962 ;; 7963 *) 7964 CFLAGS="$CFLAGS -pthread" 7965 CXXFLAGS="$CXXFLAGS -pthread" 7966 ;; 7967 esac 7968 fi 7969 fi 7970 rm -f conftest* 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5 7972$as_echo "$ac_cv_have_dash_pthread" >&6; } 7973 7974 ac_cv_have_dash_pthreads=no 7975 if test "$ac_cv_have_dash_pthread" = "no"; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5 7977$as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; } 7978 echo 'int main() { return 0; }' | cat > conftest.c 7979 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 7980 if test $? -eq 0; then 7981 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 7982 ac_cv_have_dash_pthreads=yes 7983 CFLAGS="$CFLAGS -pthreads" 7984 CXXFLAGS="$CXXFLAGS -pthreads" 7985 fi 7986 fi 7987 rm -f conftest* 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5 7989$as_echo "$ac_cv_have_dash_pthreads" >&6; } 7990 fi 7991 7992 case "$target" in 7993 *-solaris*) 7994 if test "$ac_cv_have_dash_pthreads" = "yes"; then 7995 _PTHREAD_LDFLAGS= 7996 fi 7997 ;; 7998 *-freebsd*|*-dragonfly*) 7999 $as_echo "#define _REENTRANT 1" >>confdefs.h 8000 8001 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h 8002 8003 if test "$ac_cv_have_dash_pthread" = "yes"; then 8004 _PTHREAD_LDFLAGS="-pthread" 8005 else 8006 _PTHREAD_LDFLAGS="-lc_r" 8007 fi 8008 ;; 8009 *-netbsd*) 8010 if test "$ac_cv_have_dash_pthread" = "yes"; then 8011 _PTHREAD_LDFLAGS="-pthread" 8012 fi 8013 ;; 8014 *-bsdi*) 8015 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h 8016 8017 if test "$ac_cv_have_dash_pthread" = "yes"; then 8018 _PTHREAD_LDFLAGS= 8019 fi 8020 ;; 8021 *-openbsd*) 8022 if test "$ac_cv_have_dash_pthread" = "yes"; then 8023 _PTHREAD_LDFLAGS=-pthread 8024 fi 8025 ;; 8026 *-linux*|*-gnu*|*-k*bsd*-gnu) 8027 $as_echo "#define _REENTRANT 1" >>confdefs.h 8028 8029 ;; 8030 esac 8031 8032else 8033 if test -n "$USE_USER_PTHREADS"; then 8034 USE_PTHREADS= 8035 USE_NSPR_THREADS= 8036 else 8037 _PTHREAD_LDFLAGS= 8038 fi 8039fi 8040 8041case "$target" in 8042*-aix*) 8043 if test -n "$USE_NSPR_THREADS"; then 8044 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8045 8046 fi 8047 case "$target_os" in 8048 aix4.1*) 8049 if test -z "$USE_PTHREADS"; then 8050 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h 8051 8052 fi 8053 ;; 8054 aix4.2*) 8055 if test -z "$USE_NSPR_THREADS"; then 8056 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8057 8058 fi 8059 ;; 8060 aix4.3*) 8061 if test -z "$USE_NSPR_THREADS"; then 8062 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8063 8064 fi 8065 if test -n "$USE_PTHREADS"; then 8066 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8067 8068 fi 8069 ;; 8070 *) 8071 if test -z "$USE_NSPR_THREADS"; then 8072 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8073 8074 fi 8075 if test -n "$USE_PTHREADS"; then 8076 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8077 8078 fi 8079 ;; 8080 esac 8081 ;; 8082*-bsdi*) 8083 if test -n "$USE_PTHREADS"; then 8084 $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h 8085 8086 fi 8087 ;; 8088*-freebsd*|*dragonfly*) 8089 if test -n "$USE_NSPR_THREADS"; then 8090 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8091 8092 fi 8093 ;; 8094*-hpux*) 8095 if test -n "$USE_NSPR_THREADS"; then 8096 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8097 8098 fi 8099 if test "$USE_PTHREADS"; then 8100 cat >>confdefs.h <<_ACEOF 8101#define _POSIX_C_SOURCE 199506L 8102_ACEOF 8103 8104 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8105 8106 fi 8107 if test "$USE_USER_PTHREADS"; then 8108 cat >>confdefs.h <<_ACEOF 8109#define _POSIX_C_SOURCE 199506L 8110_ACEOF 8111 8112 fi 8113 ;; 8114*-linux*|*-gnu*|*-k*bsd*-gnu) 8115 if test -n "$USE_NSPR_THREADS"; then 8116 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8117 8118 fi 8119 ;; 8120*-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*) 8121 USE_PTHREADS= 8122 _PTHREAD_LDFLAGS= 8123 USE_USER_PTHREADS= 8124 ;; 8125*-netbsd*|*-openbsd*) 8126 if test -n "$USE_NSPR_THREADS"; then 8127 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8128 8129 fi 8130 ;; 8131*-solaris*) 8132 if test -n "$USE_NSPR_THREADS"; then 8133 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8134 8135 fi 8136 if test -n "$USE_PTHREADS"; then 8137 $as_echo "#define _REENTRANT 1" >>confdefs.h 8138 8139 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8140 8141 if test "$OS_TEST" = "i86pc"; then 8142 if test -n "$USE_64"; then 8143 PR_MD_ASFILES=os_SunOS_x86_64.s 8144 else 8145 PR_MD_ASFILES=os_SunOS_x86.s 8146 fi 8147 else 8148 if test -n "$USE_64"; then 8149 PR_MD_ASFILES=os_SunOS_sparcv9.s 8150 fi 8151 fi 8152 fi 8153 ;; 8154*-nto*) 8155 if test -n "$USE_PTHREADS"; then 8156 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h 8157 8158 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h 8159 8160 fi 8161 ;; 8162esac 8163 8164OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" 8165 8166if test -n "$_SAVE_OPTIMIZE_FLAGS"; then 8167 _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" 8168fi 8169 8170if test -n "$_SAVE_DEBUG_FLAGS"; then 8171 _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" 8172fi 8173 8174if test -n "$MOZ_OPTIMIZE"; then 8175 CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" 8176 CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" 8177fi 8178 8179if test -n "$MOZ_DEBUG_SYMBOLS"; then 8180 CFLAGS="$CFLAGS $_DEBUG_FLAGS" 8181 CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" 8182fi 8183 8184if test -n "$MOZ_OPTIMIZE"; then 8185 OBJDIR_TAG=_OPT 8186else 8187 OBJDIR_TAG=_DBG 8188fi 8189 8190if test -n "$USE_64"; then 8191 COMPILER_TAG=_64 8192fi 8193 8194RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}" 8195 8196case "$target_os" in 8197cygwin*|mks*) 8198 CC="\$(CYGWIN_WRAPPER) $CC" 8199 CXX="\$(CYGWIN_WRAPPER) $CXX" 8200 RC="\$(CYGWIN_WRAPPER) $RC" 8201 ;; 8202esac 8203 8204# Check whether --enable-wrap-malloc was given. 8205if test "${enable_wrap_malloc+set}" = set; then : 8206 enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then 8207 _WRAP_MALLOC=1 8208 fi 8209fi 8210 8211 8212if test -n "$_WRAP_MALLOC"; then 8213 if test -n "$GNU_CC"; then 8214 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign" 8215 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete" 8216 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup" 8217 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size" 8218 else 8219 as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5 8220 fi 8221fi 8222 8223 8224# Check whether --with-wrap-malloc was given. 8225if test "${with_wrap_malloc+set}" = set; then : 8226 withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval" 8227fi 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334MAKEFILES=" 8335 Makefile 8336 config/Makefile 8337 config/autoconf.mk 8338 config/nsprincl.mk 8339 config/nsprincl.sh 8340 config/nspr-config 8341 config/nspr.pc 8342 lib/Makefile 8343 lib/ds/Makefile 8344 lib/libc/Makefile 8345 lib/libc/include/Makefile 8346 lib/libc/src/Makefile 8347 lib/tests/Makefile 8348 pkg/Makefile 8349 pr/Makefile 8350 pr/include/Makefile 8351 pr/include/md/Makefile 8352 pr/include/obsolete/Makefile 8353 pr/include/private/Makefile 8354 pr/src/Makefile 8355 pr/src/io/Makefile 8356 pr/src/linking/Makefile 8357 pr/src/malloc/Makefile 8358 pr/src/md/Makefile 8359 pr/src/md/${PR_MD_ARCH_DIR}/Makefile 8360 pr/src/memory/Makefile 8361 pr/src/misc/Makefile 8362 pr/src/threads/Makefile 8363 pr/tests/Makefile 8364 pr/tests/dll/Makefile 8365" 8366 8367if test "$OS_TARGET" = "Linux"; then 8368 MAKEFILES="$MAKEFILES 8369 pkg/linux/Makefile 8370 " 8371elif test "$OS_TARGET" = "SunOS"; then 8372 MAKEFILES="$MAKEFILES 8373 pkg/solaris/Makefile 8374 pkg/solaris/SUNWpr/Makefile 8375 pkg/solaris/SUNWprd/Makefile 8376 " 8377fi 8378 8379if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then 8380 MAKEFILES="$MAKEFILES 8381 pr/src/threads/combined/Makefile 8382 " 8383elif test -n "$USE_PTHREADS"; then 8384 MAKEFILES="$MAKEFILES 8385 pr/src/pthreads/Makefile 8386 " 8387elif test -n "$USE_BTHREADS"; then 8388 MAKEFILES="$MAKEFILES 8389 pr/src/bthreads/Makefile 8390 " 8391fi 8392 8393if test -n "$USE_CPLUS"; then 8394 MAKEFILES="$MAKEFILES 8395 pr/src/cplus/Makefile 8396 pr/src/cplus/tests/Makefile 8397 " 8398fi 8399 8400echo $MAKEFILES > unallmakefiles 8401 8402ac_config_files="$ac_config_files $MAKEFILES" 8403 8404ac_config_commands="$ac_config_commands default" 8405 8406cat >confcache <<\_ACEOF 8407# This file is a shell script that caches the results of configure 8408# tests run on this system so they can be shared between configure 8409# scripts and configure runs, see configure's option --config-cache. 8410# It is not useful on other systems. If it contains results you don't 8411# want to keep, you may remove or edit it. 8412# 8413# config.status only pays attention to the cache file if you give it 8414# the --recheck option to rerun configure. 8415# 8416# `ac_cv_env_foo' variables (set or unset) will be overridden when 8417# loading this file, other *unset* `ac_cv_foo' will be assigned the 8418# following values. 8419 8420_ACEOF 8421 8422# The following way of writing the cache mishandles newlines in values, 8423# but we know of no workaround that is simple, portable, and efficient. 8424# So, we kill variables containing newlines. 8425# Ultrix sh set writes to stderr and can't be redirected directly, 8426# and sets the high bit in the cache file unless we assign to the vars. 8427( 8428 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8429 eval ac_val=\$$ac_var 8430 case $ac_val in #( 8431 *${as_nl}*) 8432 case $ac_var in #( 8433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8435 esac 8436 case $ac_var in #( 8437 _ | IFS | as_nl) ;; #( 8438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8439 *) { eval $ac_var=; unset $ac_var;} ;; 8440 esac ;; 8441 esac 8442 done 8443 8444 (set) 2>&1 | 8445 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8446 *${as_nl}ac_space=\ *) 8447 # `set' does not quote correctly, so add quotes: double-quote 8448 # substitution turns \\\\ into \\, and sed turns \\ into \. 8449 sed -n \ 8450 "s/'/'\\\\''/g; 8451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8452 ;; #( 8453 *) 8454 # `set' quotes correctly as required by POSIX, so do not add quotes. 8455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8456 ;; 8457 esac | 8458 sort 8459) | 8460 sed ' 8461 /^ac_cv_env_/b end 8462 t clear 8463 :clear 8464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8465 t end 8466 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8467 :end' >>confcache 8468if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8469 if test -w "$cache_file"; then 8470 if test "x$cache_file" != "x/dev/null"; then 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8472$as_echo "$as_me: updating cache $cache_file" >&6;} 8473 if test ! -f "$cache_file" || test -h "$cache_file"; then 8474 cat confcache >"$cache_file" 8475 else 8476 case $cache_file in #( 8477 */* | ?:*) 8478 mv -f confcache "$cache_file"$$ && 8479 mv -f "$cache_file"$$ "$cache_file" ;; #( 8480 *) 8481 mv -f confcache "$cache_file" ;; 8482 esac 8483 fi 8484 fi 8485 else 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8487$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8488 fi 8489fi 8490rm -f confcache 8491 8492test "x$prefix" = xNONE && prefix=$ac_default_prefix 8493# Let make expand exec_prefix. 8494test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8495 8496# Transform confdefs.h into DEFS. 8497# Protect against shell expansion while executing Makefile rules. 8498# Protect against Makefile macro expansion. 8499# 8500# If the first sed substitution is executed (which looks for macros that 8501# take arguments), then branch to the quote section. Otherwise, 8502# look for a macro that doesn't take arguments. 8503ac_script=' 8504:mline 8505/\\$/{ 8506 N 8507 s,\\\n,, 8508 b mline 8509} 8510t clear 8511:clear 8512s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 8513t quote 8514s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 8515t quote 8516b any 8517:quote 8518s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 8519s/\[/\\&/g 8520s/\]/\\&/g 8521s/\$/$$/g 8522H 8523:any 8524${ 8525 g 8526 s/^\n// 8527 s/\n/ /g 8528 p 8529} 8530' 8531DEFS=`sed -n "$ac_script" confdefs.h` 8532 8533 8534ac_libobjs= 8535ac_ltlibobjs= 8536U= 8537for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8538 # 1. Remove the extension, and $U if already installed. 8539 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8540 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8541 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8542 # will be set to the directory where LIBOBJS objects are built. 8543 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8544 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8545done 8546LIBOBJS=$ac_libobjs 8547 8548LTLIBOBJS=$ac_ltlibobjs 8549 8550 8551 8552: "${CONFIG_STATUS=./config.status}" 8553ac_write_fail=0 8554ac_clean_files_save=$ac_clean_files 8555ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8557$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8558as_write_fail=0 8559cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8560#! $SHELL 8561# Generated by $as_me. 8562# Run this file to recreate the current configuration. 8563# Compiler output produced by configure, useful for debugging 8564# configure, is in config.log if it exists. 8565 8566debug=false 8567ac_cs_recheck=false 8568ac_cs_silent=false 8569 8570SHELL=\${CONFIG_SHELL-$SHELL} 8571export SHELL 8572_ASEOF 8573cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8574## -------------------- ## 8575## M4sh Initialization. ## 8576## -------------------- ## 8577 8578# Be more Bourne compatible 8579DUALCASE=1; export DUALCASE # for MKS sh 8580if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8581 emulate sh 8582 NULLCMD=: 8583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8584 # is contrary to our usage. Disable this feature. 8585 alias -g '${1+"$@"}'='"$@"' 8586 setopt NO_GLOB_SUBST 8587else 8588 case `(set -o) 2>/dev/null` in #( 8589 *posix*) : 8590 set -o posix ;; #( 8591 *) : 8592 ;; 8593esac 8594fi 8595 8596 8597as_nl=' 8598' 8599export as_nl 8600# Printing a long string crashes Solaris 7 /usr/bin/printf. 8601as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8604# Prefer a ksh shell builtin over an external printf program on Solaris, 8605# but without wasting forks for bash or zsh. 8606if test -z "$BASH_VERSION$ZSH_VERSION" \ 8607 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8608 as_echo='print -r --' 8609 as_echo_n='print -rn --' 8610elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8611 as_echo='printf %s\n' 8612 as_echo_n='printf %s' 8613else 8614 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8615 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8616 as_echo_n='/usr/ucb/echo -n' 8617 else 8618 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8619 as_echo_n_body='eval 8620 arg=$1; 8621 case $arg in #( 8622 *"$as_nl"*) 8623 expr "X$arg" : "X\\(.*\\)$as_nl"; 8624 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8625 esac; 8626 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8627 ' 8628 export as_echo_n_body 8629 as_echo_n='sh -c $as_echo_n_body as_echo' 8630 fi 8631 export as_echo_body 8632 as_echo='sh -c $as_echo_body as_echo' 8633fi 8634 8635# The user is always right. 8636if test "${PATH_SEPARATOR+set}" != set; then 8637 PATH_SEPARATOR=: 8638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8640 PATH_SEPARATOR=';' 8641 } 8642fi 8643 8644 8645# IFS 8646# We need space, tab and new line, in precisely that order. Quoting is 8647# there to prevent editors from complaining about space-tab. 8648# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8649# splitting by setting IFS to empty value.) 8650IFS=" "" $as_nl" 8651 8652# Find who we are. Look in the path if we contain no directory separator. 8653as_myself= 8654case $0 in #(( 8655 *[\\/]* ) as_myself=$0 ;; 8656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8657for as_dir in $PATH 8658do 8659 IFS=$as_save_IFS 8660 test -z "$as_dir" && as_dir=. 8661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8662 done 8663IFS=$as_save_IFS 8664 8665 ;; 8666esac 8667# We did not find ourselves, most probably we were run as `sh COMMAND' 8668# in which case we are not to be found in the path. 8669if test "x$as_myself" = x; then 8670 as_myself=$0 8671fi 8672if test ! -f "$as_myself"; then 8673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8674 exit 1 8675fi 8676 8677# Unset variables that we do not need and which cause bugs (e.g. in 8678# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8679# suppresses any "Segmentation fault" message there. '((' could 8680# trigger a bug in pdksh 5.2.14. 8681for as_var in BASH_ENV ENV MAIL MAILPATH 8682do eval test x\${$as_var+set} = xset \ 8683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8684done 8685PS1='$ ' 8686PS2='> ' 8687PS4='+ ' 8688 8689# NLS nuisances. 8690LC_ALL=C 8691export LC_ALL 8692LANGUAGE=C 8693export LANGUAGE 8694 8695# CDPATH. 8696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8697 8698 8699# as_fn_error STATUS ERROR [LINENO LOG_FD] 8700# ---------------------------------------- 8701# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8702# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8703# script with STATUS, using 1 if that was 0. 8704as_fn_error () 8705{ 8706 as_status=$1; test $as_status -eq 0 && as_status=1 8707 if test "$4"; then 8708 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8710 fi 8711 $as_echo "$as_me: error: $2" >&2 8712 as_fn_exit $as_status 8713} # as_fn_error 8714 8715 8716# as_fn_set_status STATUS 8717# ----------------------- 8718# Set $? to STATUS, without forking. 8719as_fn_set_status () 8720{ 8721 return $1 8722} # as_fn_set_status 8723 8724# as_fn_exit STATUS 8725# ----------------- 8726# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8727as_fn_exit () 8728{ 8729 set +e 8730 as_fn_set_status $1 8731 exit $1 8732} # as_fn_exit 8733 8734# as_fn_unset VAR 8735# --------------- 8736# Portably unset VAR. 8737as_fn_unset () 8738{ 8739 { eval $1=; unset $1;} 8740} 8741as_unset=as_fn_unset 8742# as_fn_append VAR VALUE 8743# ---------------------- 8744# Append the text in VALUE to the end of the definition contained in VAR. Take 8745# advantage of any shell optimizations that allow amortized linear growth over 8746# repeated appends, instead of the typical quadratic growth present in naive 8747# implementations. 8748if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8749 eval 'as_fn_append () 8750 { 8751 eval $1+=\$2 8752 }' 8753else 8754 as_fn_append () 8755 { 8756 eval $1=\$$1\$2 8757 } 8758fi # as_fn_append 8759 8760# as_fn_arith ARG... 8761# ------------------ 8762# Perform arithmetic evaluation on the ARGs, and store the result in the 8763# global $as_val. Take advantage of shells that can avoid forks. The arguments 8764# must be portable across $(()) and expr. 8765if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8766 eval 'as_fn_arith () 8767 { 8768 as_val=$(( $* )) 8769 }' 8770else 8771 as_fn_arith () 8772 { 8773 as_val=`expr "$@" || test $? -eq 1` 8774 } 8775fi # as_fn_arith 8776 8777 8778if expr a : '\(a\)' >/dev/null 2>&1 && 8779 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8780 as_expr=expr 8781else 8782 as_expr=false 8783fi 8784 8785if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8786 as_basename=basename 8787else 8788 as_basename=false 8789fi 8790 8791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8792 as_dirname=dirname 8793else 8794 as_dirname=false 8795fi 8796 8797as_me=`$as_basename -- "$0" || 8798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8799 X"$0" : 'X\(//\)$' \| \ 8800 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8801$as_echo X/"$0" | 8802 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8803 s//\1/ 8804 q 8805 } 8806 /^X\/\(\/\/\)$/{ 8807 s//\1/ 8808 q 8809 } 8810 /^X\/\(\/\).*/{ 8811 s//\1/ 8812 q 8813 } 8814 s/.*/./; q'` 8815 8816# Avoid depending upon Character Ranges. 8817as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8819as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8820as_cr_digits='0123456789' 8821as_cr_alnum=$as_cr_Letters$as_cr_digits 8822 8823ECHO_C= ECHO_N= ECHO_T= 8824case `echo -n x` in #((((( 8825-n*) 8826 case `echo 'xy\c'` in 8827 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8828 xy) ECHO_C='\c';; 8829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8830 ECHO_T=' ';; 8831 esac;; 8832*) 8833 ECHO_N='-n';; 8834esac 8835 8836rm -f conf$$ conf$$.exe conf$$.file 8837if test -d conf$$.dir; then 8838 rm -f conf$$.dir/conf$$.file 8839else 8840 rm -f conf$$.dir 8841 mkdir conf$$.dir 2>/dev/null 8842fi 8843if (echo >conf$$.file) 2>/dev/null; then 8844 if ln -s conf$$.file conf$$ 2>/dev/null; then 8845 as_ln_s='ln -s' 8846 # ... but there are two gotchas: 8847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8849 # In both cases, we have to default to `cp -pR'. 8850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8851 as_ln_s='cp -pR' 8852 elif ln conf$$.file conf$$ 2>/dev/null; then 8853 as_ln_s=ln 8854 else 8855 as_ln_s='cp -pR' 8856 fi 8857else 8858 as_ln_s='cp -pR' 8859fi 8860rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8861rmdir conf$$.dir 2>/dev/null 8862 8863 8864# as_fn_mkdir_p 8865# ------------- 8866# Create "$as_dir" as a directory, including parents if necessary. 8867as_fn_mkdir_p () 8868{ 8869 8870 case $as_dir in #( 8871 -*) as_dir=./$as_dir;; 8872 esac 8873 test -d "$as_dir" || eval $as_mkdir_p || { 8874 as_dirs= 8875 while :; do 8876 case $as_dir in #( 8877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8878 *) as_qdir=$as_dir;; 8879 esac 8880 as_dirs="'$as_qdir' $as_dirs" 8881 as_dir=`$as_dirname -- "$as_dir" || 8882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8883 X"$as_dir" : 'X\(//\)[^/]' \| \ 8884 X"$as_dir" : 'X\(//\)$' \| \ 8885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8886$as_echo X"$as_dir" | 8887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8888 s//\1/ 8889 q 8890 } 8891 /^X\(\/\/\)[^/].*/{ 8892 s//\1/ 8893 q 8894 } 8895 /^X\(\/\/\)$/{ 8896 s//\1/ 8897 q 8898 } 8899 /^X\(\/\).*/{ 8900 s//\1/ 8901 q 8902 } 8903 s/.*/./; q'` 8904 test -d "$as_dir" && break 8905 done 8906 test -z "$as_dirs" || eval "mkdir $as_dirs" 8907 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8908 8909 8910} # as_fn_mkdir_p 8911if mkdir -p . 2>/dev/null; then 8912 as_mkdir_p='mkdir -p "$as_dir"' 8913else 8914 test -d ./-p && rmdir ./-p 8915 as_mkdir_p=false 8916fi 8917 8918 8919# as_fn_executable_p FILE 8920# ----------------------- 8921# Test if FILE is an executable regular file. 8922as_fn_executable_p () 8923{ 8924 test -f "$1" && test -x "$1" 8925} # as_fn_executable_p 8926as_test_x='test -x' 8927as_executable_p=as_fn_executable_p 8928 8929# Sed expression to map a string onto a valid CPP name. 8930as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8931 8932# Sed expression to map a string onto a valid variable name. 8933as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8934 8935 8936exec 6>&1 8937## ----------------------------------- ## 8938## Main body of $CONFIG_STATUS script. ## 8939## ----------------------------------- ## 8940_ASEOF 8941test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8942 8943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8944# Save the log message, to keep $0 and so on meaningful, and to 8945# report actual input values of CONFIG_FILES etc. instead of their 8946# values after options handling. 8947ac_log=" 8948This file was extended by $as_me, which was 8949generated by GNU Autoconf 2.69. Invocation command line was 8950 8951 CONFIG_FILES = $CONFIG_FILES 8952 CONFIG_HEADERS = $CONFIG_HEADERS 8953 CONFIG_LINKS = $CONFIG_LINKS 8954 CONFIG_COMMANDS = $CONFIG_COMMANDS 8955 $ $0 $@ 8956 8957on `(hostname || uname -n) 2>/dev/null | sed 1q` 8958" 8959 8960_ACEOF 8961 8962case $ac_config_files in *" 8963"*) set x $ac_config_files; shift; ac_config_files=$*;; 8964esac 8965 8966 8967 8968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8969# Files that config.status was made for. 8970config_files="$ac_config_files" 8971config_commands="$ac_config_commands" 8972 8973_ACEOF 8974 8975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8976ac_cs_usage="\ 8977\`$as_me' instantiates files and other configuration actions 8978from templates according to the current configuration. Unless the files 8979and actions are specified as TAGs, all are instantiated by default. 8980 8981Usage: $0 [OPTION]... [TAG]... 8982 8983 -h, --help print this help, then exit 8984 -V, --version print version number and configuration settings, then exit 8985 --config print configuration, then exit 8986 -q, --quiet, --silent 8987 do not print progress messages 8988 -d, --debug don't remove temporary files 8989 --recheck update $as_me by reconfiguring in the same conditions 8990 --file=FILE[:TEMPLATE] 8991 instantiate the configuration file FILE 8992 8993Configuration files: 8994$config_files 8995 8996Configuration commands: 8997$config_commands 8998 8999Report bugs to the package provider." 9000 9001_ACEOF 9002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9003ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9004ac_cs_version="\\ 9005config.status 9006configured by $0, generated by GNU Autoconf 2.69, 9007 with options \\"\$ac_cs_config\\" 9008 9009Copyright (C) 2012 Free Software Foundation, Inc. 9010This config.status script is free software; the Free Software Foundation 9011gives unlimited permission to copy, distribute and modify it." 9012 9013ac_pwd='$ac_pwd' 9014srcdir='$srcdir' 9015test -n "\$AWK" || AWK=awk 9016_ACEOF 9017 9018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9019# The default lists apply if the user does not specify any file. 9020ac_need_defaults=: 9021while test $# != 0 9022do 9023 case $1 in 9024 --*=?*) 9025 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9027 ac_shift=: 9028 ;; 9029 --*=) 9030 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9031 ac_optarg= 9032 ac_shift=: 9033 ;; 9034 *) 9035 ac_option=$1 9036 ac_optarg=$2 9037 ac_shift=shift 9038 ;; 9039 esac 9040 9041 case $ac_option in 9042 # Handling of the options. 9043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9044 ac_cs_recheck=: ;; 9045 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9046 $as_echo "$ac_cs_version"; exit ;; 9047 --config | --confi | --conf | --con | --co | --c ) 9048 $as_echo "$ac_cs_config"; exit ;; 9049 --debug | --debu | --deb | --de | --d | -d ) 9050 debug=: ;; 9051 --file | --fil | --fi | --f ) 9052 $ac_shift 9053 case $ac_optarg in 9054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9055 '') as_fn_error $? "missing file argument" ;; 9056 esac 9057 as_fn_append CONFIG_FILES " '$ac_optarg'" 9058 ac_need_defaults=false;; 9059 --he | --h | --help | --hel | -h ) 9060 $as_echo "$ac_cs_usage"; exit ;; 9061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9062 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9063 ac_cs_silent=: ;; 9064 9065 # This is an error. 9066 -*) as_fn_error $? "unrecognized option: \`$1' 9067Try \`$0 --help' for more information." ;; 9068 9069 *) as_fn_append ac_config_targets " $1" 9070 ac_need_defaults=false ;; 9071 9072 esac 9073 shift 9074done 9075 9076ac_configure_extra_args= 9077 9078if $ac_cs_silent; then 9079 exec 6>/dev/null 9080 ac_configure_extra_args="$ac_configure_extra_args --silent" 9081fi 9082 9083_ACEOF 9084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9085if \$ac_cs_recheck; then 9086 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9087 shift 9088 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9089 CONFIG_SHELL='$SHELL' 9090 export CONFIG_SHELL 9091 exec "\$@" 9092fi 9093 9094_ACEOF 9095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9096exec 5>>config.log 9097{ 9098 echo 9099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9100## Running $as_me. ## 9101_ASBOX 9102 $as_echo "$ac_log" 9103} >&5 9104 9105_ACEOF 9106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9107_ACEOF 9108 9109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9110 9111# Handling of arguments. 9112for ac_config_target in $ac_config_targets 9113do 9114 case $ac_config_target in 9115 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; 9116 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 9117 9118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9119 esac 9120done 9121 9122 9123# If the user did not use the arguments to specify the items to instantiate, 9124# then the envvar interface is used. Set only those that are not. 9125# We use the long form for the default assignment because of an extremely 9126# bizarre bug on SunOS 4.1.3. 9127if $ac_need_defaults; then 9128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9130fi 9131 9132# Have a temporary directory for convenience. Make it in the build tree 9133# simply because there is no reason against having it here, and in addition, 9134# creating and moving files from /tmp can sometimes cause problems. 9135# Hook for its removal unless debugging. 9136# Note that there is a small window in which the directory will not be cleaned: 9137# after its creation but before its name has been assigned to `$tmp'. 9138$debug || 9139{ 9140 tmp= ac_tmp= 9141 trap 'exit_status=$? 9142 : "${ac_tmp:=$tmp}" 9143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9144' 0 9145 trap 'as_fn_exit 1' 1 2 13 15 9146} 9147# Create a (secure) tmp directory for tmp files. 9148 9149{ 9150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9151 test -d "$tmp" 9152} || 9153{ 9154 tmp=./conf$$-$RANDOM 9155 (umask 077 && mkdir "$tmp") 9156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9157ac_tmp=$tmp 9158 9159# Set up the scripts for CONFIG_FILES section. 9160# No need to generate them if there are no CONFIG_FILES. 9161# This happens for instance with `./config.status config.h'. 9162if test -n "$CONFIG_FILES"; then 9163 9164 9165ac_cr=`echo X | tr X '\015'` 9166# On cygwin, bash can eat \r inside `` if the user requested igncr. 9167# But we know of no other shell where ac_cr would be empty at this 9168# point, so we can use a bashism as a fallback. 9169if test "x$ac_cr" = x; then 9170 eval ac_cr=\$\'\\r\' 9171fi 9172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9174 ac_cs_awk_cr='\\r' 9175else 9176 ac_cs_awk_cr=$ac_cr 9177fi 9178 9179echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9180_ACEOF 9181 9182 9183{ 9184 echo "cat >conf$$subs.awk <<_ACEOF" && 9185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9186 echo "_ACEOF" 9187} >conf$$subs.sh || 9188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9190ac_delim='%!_!# ' 9191for ac_last_try in false false false false false :; do 9192 . ./conf$$subs.sh || 9193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9194 9195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9196 if test $ac_delim_n = $ac_delim_num; then 9197 break 9198 elif $ac_last_try; then 9199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9200 else 9201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9202 fi 9203done 9204rm -f conf$$subs.sh 9205 9206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9208_ACEOF 9209sed -n ' 9210h 9211s/^/S["/; s/!.*/"]=/ 9212p 9213g 9214s/^[^!]*!// 9215:repl 9216t repl 9217s/'"$ac_delim"'$// 9218t delim 9219:nl 9220h 9221s/\(.\{148\}\)..*/\1/ 9222t more1 9223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9224p 9225n 9226b repl 9227:more1 9228s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9229p 9230g 9231s/.\{148\}// 9232t nl 9233:delim 9234h 9235s/\(.\{148\}\)..*/\1/ 9236t more2 9237s/["\\]/\\&/g; s/^/"/; s/$/"/ 9238p 9239b 9240:more2 9241s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9242p 9243g 9244s/.\{148\}// 9245t delim 9246' <conf$$subs.awk | sed ' 9247/^[^""]/{ 9248 N 9249 s/\n// 9250} 9251' >>$CONFIG_STATUS || ac_write_fail=1 9252rm -f conf$$subs.awk 9253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9254_ACAWK 9255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9256 for (key in S) S_is_set[key] = 1 9257 FS = "" 9258 9259} 9260{ 9261 line = $ 0 9262 nfields = split(line, field, "@") 9263 substed = 0 9264 len = length(field[1]) 9265 for (i = 2; i < nfields; i++) { 9266 key = field[i] 9267 keylen = length(key) 9268 if (S_is_set[key]) { 9269 value = S[key] 9270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9271 len += length(value) + length(field[++i]) 9272 substed = 1 9273 } else 9274 len += 1 + keylen 9275 } 9276 9277 print line 9278} 9279 9280_ACAWK 9281_ACEOF 9282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9285else 9286 cat 9287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9289_ACEOF 9290 9291# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9293# trailing colons and then remove the whole line if VPATH becomes empty 9294# (actually we leave an empty line to preserve line numbers). 9295if test "x$srcdir" = x.; then 9296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9297h 9298s/// 9299s/^/:/ 9300s/[ ]*$/:/ 9301s/:\$(srcdir):/:/g 9302s/:\${srcdir}:/:/g 9303s/:@srcdir@:/:/g 9304s/^:*// 9305s/:*$// 9306x 9307s/\(=[ ]*\).*/\1/ 9308G 9309s/\n// 9310s/^[^=]*=[ ]*$// 9311}' 9312fi 9313 9314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9315fi # test -n "$CONFIG_FILES" 9316 9317 9318eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 9319shift 9320for ac_tag 9321do 9322 case $ac_tag in 9323 :[FHLC]) ac_mode=$ac_tag; continue;; 9324 esac 9325 case $ac_mode$ac_tag in 9326 :[FHL]*:*);; 9327 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9328 :[FH]-) ac_tag=-:-;; 9329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9330 esac 9331 ac_save_IFS=$IFS 9332 IFS=: 9333 set x $ac_tag 9334 IFS=$ac_save_IFS 9335 shift 9336 ac_file=$1 9337 shift 9338 9339 case $ac_mode in 9340 :L) ac_source=$1;; 9341 :[FH]) 9342 ac_file_inputs= 9343 for ac_f 9344 do 9345 case $ac_f in 9346 -) ac_f="$ac_tmp/stdin";; 9347 *) # Look for the file first in the build tree, then in the source tree 9348 # (if the path is not absolute). The absolute path cannot be DOS-style, 9349 # because $ac_f cannot contain `:'. 9350 test -f "$ac_f" || 9351 case $ac_f in 9352 [\\/$]*) false;; 9353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9354 esac || 9355 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9356 esac 9357 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9358 as_fn_append ac_file_inputs " '$ac_f'" 9359 done 9360 9361 # Let's still pretend it is `configure' which instantiates (i.e., don't 9362 # use $as_me), people would be surprised to read: 9363 # /* config.h. Generated by config.status. */ 9364 configure_input='Generated from '` 9365 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9366 `' by configure.' 9367 if test x"$ac_file" != x-; then 9368 configure_input="$ac_file. $configure_input" 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9370$as_echo "$as_me: creating $ac_file" >&6;} 9371 fi 9372 # Neutralize special characters interpreted by sed in replacement strings. 9373 case $configure_input in #( 9374 *\&* | *\|* | *\\* ) 9375 ac_sed_conf_input=`$as_echo "$configure_input" | 9376 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9377 *) ac_sed_conf_input=$configure_input;; 9378 esac 9379 9380 case $ac_tag in 9381 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9383 esac 9384 ;; 9385 esac 9386 9387 ac_dir=`$as_dirname -- "$ac_file" || 9388$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9389 X"$ac_file" : 'X\(//\)[^/]' \| \ 9390 X"$ac_file" : 'X\(//\)$' \| \ 9391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9392$as_echo X"$ac_file" | 9393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9394 s//\1/ 9395 q 9396 } 9397 /^X\(\/\/\)[^/].*/{ 9398 s//\1/ 9399 q 9400 } 9401 /^X\(\/\/\)$/{ 9402 s//\1/ 9403 q 9404 } 9405 /^X\(\/\).*/{ 9406 s//\1/ 9407 q 9408 } 9409 s/.*/./; q'` 9410 as_dir="$ac_dir"; as_fn_mkdir_p 9411 ac_builddir=. 9412 9413case "$ac_dir" in 9414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9415*) 9416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9417 # A ".." for each directory in $ac_dir_suffix. 9418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9419 case $ac_top_builddir_sub in 9420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9422 esac ;; 9423esac 9424ac_abs_top_builddir=$ac_pwd 9425ac_abs_builddir=$ac_pwd$ac_dir_suffix 9426# for backward compatibility: 9427ac_top_builddir=$ac_top_build_prefix 9428 9429case $srcdir in 9430 .) # We are building in place. 9431 ac_srcdir=. 9432 ac_top_srcdir=$ac_top_builddir_sub 9433 ac_abs_top_srcdir=$ac_pwd ;; 9434 [\\/]* | ?:[\\/]* ) # Absolute name. 9435 ac_srcdir=$srcdir$ac_dir_suffix; 9436 ac_top_srcdir=$srcdir 9437 ac_abs_top_srcdir=$srcdir ;; 9438 *) # Relative name. 9439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9440 ac_top_srcdir=$ac_top_build_prefix$srcdir 9441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9442esac 9443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9444 9445 9446 case $ac_mode in 9447 :F) 9448 # 9449 # CONFIG_FILE 9450 # 9451 9452_ACEOF 9453 9454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9455# If the template does not know about datarootdir, expand it. 9456# FIXME: This hack should be removed a few years after 2.60. 9457ac_datarootdir_hack=; ac_datarootdir_seen= 9458ac_sed_dataroot=' 9459/datarootdir/ { 9460 p 9461 q 9462} 9463/@datadir@/p 9464/@docdir@/p 9465/@infodir@/p 9466/@localedir@/p 9467/@mandir@/p' 9468case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9469*datarootdir*) ac_datarootdir_seen=yes;; 9470*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9472$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9473_ACEOF 9474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9475 ac_datarootdir_hack=' 9476 s&@datadir@&$datadir&g 9477 s&@docdir@&$docdir&g 9478 s&@infodir@&$infodir&g 9479 s&@localedir@&$localedir&g 9480 s&@mandir@&$mandir&g 9481 s&\\\${datarootdir}&$datarootdir&g' ;; 9482esac 9483_ACEOF 9484 9485# Neutralize VPATH when `$srcdir' = `.'. 9486# Shell code in configure.ac might set extrasub. 9487# FIXME: do we really want to maintain this feature? 9488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9489ac_sed_extra="$ac_vpsub 9490$extrasub 9491_ACEOF 9492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9493:t 9494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9495s|@configure_input@|$ac_sed_conf_input|;t t 9496s&@top_builddir@&$ac_top_builddir_sub&;t t 9497s&@top_build_prefix@&$ac_top_build_prefix&;t t 9498s&@srcdir@&$ac_srcdir&;t t 9499s&@abs_srcdir@&$ac_abs_srcdir&;t t 9500s&@top_srcdir@&$ac_top_srcdir&;t t 9501s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9502s&@builddir@&$ac_builddir&;t t 9503s&@abs_builddir@&$ac_abs_builddir&;t t 9504s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9505$ac_datarootdir_hack 9506" 9507eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9508 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9509 9510test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9511 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9513 "$ac_tmp/out"`; test -z "$ac_out"; } && 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9515which seems to be undefined. Please make sure it is defined" >&5 9516$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9517which seems to be undefined. Please make sure it is defined" >&2;} 9518 9519 rm -f "$ac_tmp/stdin" 9520 case $ac_file in 9521 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9522 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9523 esac \ 9524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9525 ;; 9526 9527 9528 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9529$as_echo "$as_me: executing $ac_file commands" >&6;} 9530 ;; 9531 esac 9532 9533 9534 case $ac_file$ac_mode in 9535 "default":C) chmod +x config/nspr-config ;; 9536 9537 esac 9538done # for ac_tag 9539 9540 9541as_fn_exit 0 9542_ACEOF 9543ac_clean_files=$ac_clean_files_save 9544 9545test $ac_write_fail = 0 || 9546 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9547 9548 9549# configure is writing to config.log, and then calls config.status. 9550# config.status does its own redirection, appending to config.log. 9551# Unfortunately, on DOS this fails, as config.log is still kept open 9552# by configure, so config.status won't be able to write to it; its 9553# output is simply discarded. So we exec the FD to /dev/null, 9554# effectively closing config.log, so it can be properly (re)opened and 9555# appended to by config.status. When coming back to configure, we 9556# need to make the FD available again. 9557if test "$no_create" != yes; then 9558 ac_cs_success=: 9559 ac_config_status_args= 9560 test "$silent" = yes && 9561 ac_config_status_args="$ac_config_status_args --quiet" 9562 exec 5>/dev/null 9563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9564 exec 5>>config.log 9565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9566 # would make configure fail if this is the last instruction. 9567 $ac_cs_success || as_fn_exit 1 9568fi 9569if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9571$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9572fi 9573 9574