2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $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
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
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 :
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
238 if test "x$CONFIG_SHELL" != x
; then :
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $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
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."
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."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
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.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
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.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="pr/include/nspr.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
656 MACOSX_DEPLOYMENT_TARGET
768 program_transform_name
781 enable_option_checking
783 with_android_toolchain
785 with_android_platform
796 enable_symbian_target
826 ac_precious_vars
='build_alias
840 # Initialize some variables set by options.
842 ac_init_version
=false
843 ac_unrecognized_opts
=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name
=s
,x
,x
,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir
='${exec_prefix}/bin'
869 sbindir
='${exec_prefix}/sbin'
870 libexecdir
='${exec_prefix}/libexec'
871 datarootdir
='${prefix}/share'
872 datadir
='${datarootdir}'
873 sysconfdir
='${prefix}/etc'
874 sharedstatedir
='${prefix}/com'
875 localstatedir
='${prefix}/var'
876 includedir
='${prefix}/include'
877 oldincludedir
='/usr/include'
878 docdir
='${datarootdir}/doc/${PACKAGE}'
879 infodir
='${datarootdir}/info'
884 libdir
='${exec_prefix}/lib'
885 localedir
='${datarootdir}/locale'
886 mandir
='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\
$ac_option
900 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
913 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
916 -build |
--build |
--buil |
--bui |
--bu)
917 ac_prev
=build_alias
;;
918 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
919 build_alias
=$ac_optarg ;;
921 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
922 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
923 ac_prev
=cache_file
;;
924 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
925 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
926 cache_file
=$ac_optarg ;;
929 cache_file
=config.cache
;;
931 -datadir |
--datadir |
--datadi |
--datad)
933 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
934 datadir
=$ac_optarg ;;
936 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
937 |
--dataroo |
--dataro |
--datar)
938 ac_prev
=datarootdir
;;
939 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
940 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
941 datarootdir
=$ac_optarg ;;
943 -disable-* |
--disable-*)
944 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
947 as_fn_error $?
"invalid feature name: $ac_useropt"
948 ac_useropt_orig
=$ac_useropt
949 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep
=', ';;
957 eval enable_
$ac_useropt=no
;;
959 -docdir |
--docdir |
--docdi |
--doc |
--do)
961 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
964 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
966 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
969 -enable-* |
--enable-*)
970 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
973 as_fn_error $?
"invalid feature name: $ac_useropt"
974 ac_useropt_orig
=$ac_useropt
975 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep
=', ';;
983 eval enable_
$ac_useropt=\
$ac_optarg ;;
985 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
986 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
987 |
--exec |
--exe |
--ex)
988 ac_prev
=exec_prefix
;;
989 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
990 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
991 |
--exec=* |
--exe=* |
--ex=*)
992 exec_prefix
=$ac_optarg ;;
994 -gas |
--gas |
--ga |
--g)
995 # Obsolete; use --with-gas.
998 -help |
--help |
--hel |
--he |
-h)
1000 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1001 ac_init_help
=recursive
;;
1002 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1003 ac_init_help
=short
;;
1005 -host |
--host |
--hos |
--ho)
1006 ac_prev
=host_alias
;;
1007 -host=* |
--host=* |
--hos=* |
--ho=*)
1008 host_alias
=$ac_optarg ;;
1010 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1012 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1014 htmldir
=$ac_optarg ;;
1016 -includedir |
--includedir |
--includedi |
--included |
--include \
1017 |
--includ |
--inclu |
--incl |
--inc)
1018 ac_prev
=includedir
;;
1019 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1020 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1021 includedir
=$ac_optarg ;;
1023 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1025 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1026 infodir
=$ac_optarg ;;
1028 -libdir |
--libdir |
--libdi |
--libd)
1030 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1031 libdir
=$ac_optarg ;;
1033 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1034 |
--libexe |
--libex |
--libe)
1035 ac_prev
=libexecdir
;;
1036 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1037 |
--libexe=* |
--libex=* |
--libe=*)
1038 libexecdir
=$ac_optarg ;;
1040 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1041 ac_prev
=localedir
;;
1042 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1043 localedir
=$ac_optarg ;;
1045 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1046 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1047 ac_prev
=localstatedir
;;
1048 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1049 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1050 localstatedir
=$ac_optarg ;;
1052 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1054 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1055 mandir
=$ac_optarg ;;
1057 -nfp |
--nfp |
--nf)
1058 # Obsolete; use --without-fp.
1061 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1062 |
--no-cr |
--no-c |
-n)
1065 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1066 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1069 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1070 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1071 |
--oldin |
--oldi |
--old |
--ol |
--o)
1072 ac_prev
=oldincludedir
;;
1073 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1074 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1075 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1076 oldincludedir
=$ac_optarg ;;
1078 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1080 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1081 prefix
=$ac_optarg ;;
1083 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1084 |
--program-pre |
--program-pr |
--program-p)
1085 ac_prev
=program_prefix
;;
1086 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1087 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1088 program_prefix
=$ac_optarg ;;
1090 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1091 |
--program-suf |
--program-su |
--program-s)
1092 ac_prev
=program_suffix
;;
1093 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1094 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1095 program_suffix
=$ac_optarg ;;
1097 -program-transform-name |
--program-transform-name \
1098 |
--program-transform-nam |
--program-transform-na \
1099 |
--program-transform-n |
--program-transform- \
1100 |
--program-transform |
--program-transfor \
1101 |
--program-transfo |
--program-transf \
1102 |
--program-trans |
--program-tran \
1103 |
--progr-tra |
--program-tr |
--program-t)
1104 ac_prev
=program_transform_name
;;
1105 -program-transform-name=* |
--program-transform-name=* \
1106 |
--program-transform-nam=* |
--program-transform-na=* \
1107 |
--program-transform-n=* |
--program-transform-=* \
1108 |
--program-transform=* |
--program-transfor=* \
1109 |
--program-transfo=* |
--program-transf=* \
1110 |
--program-trans=* |
--program-tran=* \
1111 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1112 program_transform_name
=$ac_optarg ;;
1114 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1116 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1117 pdfdir
=$ac_optarg ;;
1119 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1121 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1124 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1125 |
-silent |
--silent |
--silen |
--sile |
--sil)
1128 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1130 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1132 sbindir
=$ac_optarg ;;
1134 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1135 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1136 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1138 ac_prev
=sharedstatedir
;;
1139 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1140 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1141 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1143 sharedstatedir
=$ac_optarg ;;
1145 -site |
--site |
--sit)
1147 -site=* |
--site=* |
--sit=*)
1150 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1152 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1153 srcdir
=$ac_optarg ;;
1155 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1156 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1157 ac_prev
=sysconfdir
;;
1158 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1159 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1160 sysconfdir
=$ac_optarg ;;
1162 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1163 ac_prev
=target_alias
;;
1164 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1165 target_alias
=$ac_optarg ;;
1167 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1170 -version |
--version |
--versio |
--versi |
--vers |
-V)
1171 ac_init_version
=: ;;
1174 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 as_fn_error $?
"invalid package name: $ac_useropt"
1178 ac_useropt_orig
=$ac_useropt
1179 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep
=', ';;
1187 eval with_
$ac_useropt=\
$ac_optarg ;;
1189 -without-* |
--without-*)
1190 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1193 as_fn_error $?
"invalid package name: $ac_useropt"
1194 ac_useropt_orig
=$ac_useropt
1195 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep
=', ';;
1203 eval with_
$ac_useropt=no
;;
1206 # Obsolete; use --with-x.
1209 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1210 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1211 ac_prev
=x_includes
;;
1212 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1213 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1214 x_includes
=$ac_optarg ;;
1216 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1217 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1218 ac_prev
=x_libraries
;;
1219 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1220 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1221 x_libraries
=$ac_optarg ;;
1223 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1228 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1232 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1234 eval $ac_envvar=\
$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 if test -n "$ac_prev"; then
1249 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $?
"missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 # Check all directory arguments for consistency.
1262 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val
=\$
$ac_var
1268 # Remove trailing slashes.
1271 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\
$ac_val;;
1274 # Be sure to have absolute directory names.
1276 [\\/$
]* | ?
:[\\/]* ) continue;;
1277 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1279 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target
=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x
; then
1291 if test "x$build_alias" = x
; then
1292 cross_compiling
=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1301 test "$silent" = yes && exec 6>/dev
/null
1304 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di
=`ls -di .` &&
1306 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $?
"working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $?
"pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted
=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir
=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted
=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1348 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var
in $ac_precious_vars; do
1365 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1367 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure
for building on BUILD
[guessed
]
1437 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1438 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1442 if test -n "$ac_init_help"; then
1447 --disable-option-checking ignore unrecognized
--enable/--with options
1448 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1449 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1450 --enable-optimize=OPT Enable code optimizations
(ie.
-O2)
1451 --enable-debug=DBG Enable debugging
(using compiler flags DBG
)
1452 --enable-debug-symbols=DBG Enable debugging symbols
1453 (using compiler flags DBG
)
1454 --enable-win32-target=\
$t
1455 Specify win32 flavor.
(WIN95 or WINNT
)
1456 --enable-symbian-target=\
$t
1457 Specify symbian flavor.
(WINSCW or GCCE
)
1458 --enable-debug-rtl Use the MSVC debug runtime library
1459 --enable-static-rtl Use the MSVC static runtime library
1460 --enable-n32 Enable n32 ABI support
(IRIX only
)
1461 --enable-x32 Enable x32 ABI support
(x86_64 only
)
1462 --enable-64bit Enable
64-bit support
(on certain platforms
)
1463 --enable-mdupdate Enable use of certain compilers
' mdupdate feature
1464 --enable-cplus Enable some c++ api routines
1465 --enable-macos-target=VER
1466 Set the minimum MacOS version needed at runtime
1467 10.2 for ppc, 10.4 for x86
1468 --disable-os2-high-mem Disable high-memory support on OS/2
1470 --enable-strip Enable stripping of shared libs and programs
1471 --enable-user-pthreads Build using userland pthreads
1472 --enable-nspr-threads Build using classic nspr threads
1473 --enable-ipv6 Compile ipv6 support
1474 --enable-wrap-malloc Wrap malloc calls (gnu linker only)
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-android-ndk=DIR
1480 location where the Android NDK can be found
1481 --with-android-toolchain=DIR
1482 location of the Android toolchain
1483 --with-android-version=VER
1484 Android platform version, default 5 for arm, 9 for x86/mips
1485 --with-android-platform=DIR
1486 location of platform dir
1487 --with-gonk=DIR location of gonk dir
1488 --with-dist-prefix=DIST_PREFIX
1489 place build files in DIST_PREFIX dist
1490 --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin
1491 --with-dist-includedir=DIR
1492 build include files in DIR DIST_PREFIX/include/nspr
1493 --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib
1494 --with-mozilla Compile NSPR with Mozilla support
1495 --with-arm-kuser Use kuser helpers (Linux/ARM only)
1496 (Requires kernel 2.6.13 or later)
1497 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)
1498 --with-thumb[=yes|no|toolchain-default]
1499 Use Thumb instruction set (-mthumb)
1500 --with-thumb-interwork[=yes|no|toolchain-default]
1501 Use Thumb/ARM instuctions interwork (-mthumb-interwork)
1502 --with-arch=[type|toolchain-default]
1503 Use specific CPU features (-march=type)
1504 --with-fpu=[type|toolchain-default]
1505 Use specific FPU type (-mfpu=type)
1506 --with-float-abi=[type|toolchain-default]
1507 Use specific arm float ABI (-mfloat-abi=type)
1508 --with-soft-float[=yes|no|toolchain-default]
1509 Use soft float library (-msoft-float)
1510 --with-symbian-sdk=SYMBIAN_SDK_DIR
1511 The path to the Symbian SDK
1512 --with-ccache=path/to/ccache
1513 Enable compiling with ccache
1514 --with-pthreads Use system pthreads library as thread subsystem
1515 --with-bthreads Use system bthreads library as thread subsystem
1517 --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
1531 Use these variables to override the choices made by `configure' or to
help
1532 it to
find libraries and programs with nonstandard names
/locations.
1534 Report bugs to the package provider.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1548 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1550 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1555 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1558 ac_abs_top_builddir
=$ac_pwd
1559 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir
=$ac_top_build_prefix
1564 .
) # We are building in place.
1566 ac_top_srcdir
=$ac_top_builddir_sub
1567 ac_abs_top_srcdir
=$ac_pwd ;;
1568 [\\/]* | ?
:[\\/]* ) # Absolute name.
1569 ac_srcdir
=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir
=$srcdir
1571 ac_abs_top_srcdir
=$srcdir ;;
1573 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1577 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1598 generated by GNU Autoconf
2.69
1600 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1601 This configure
script is free software
; the Free Software Foundation
1602 gives unlimited permission to copy
, distribute and modify it.
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile
()
1616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1617 rm -f conftest.
$ac_objext
1618 if { { ac_try
="$ac_compile"
1620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_cxx_try_compile LINENO
1650 # ----------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1659 *) ac_try_echo
=$ac_try;;
1661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1665 if test -s conftest.err
; then
1666 grep -v '^ *+' conftest.err
>conftest.er1
1667 cat conftest.er1
>&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_cxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.
$ac_objext; then :
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.
$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status
$ac_retval
1685 } # ac_fn_cxx_try_compile
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1729 ac_fn_c_check_header_mongrel ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if eval \${$3+:} false; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1753 ac_header_compiler=no
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1769 ac_header_preproc=no
1771 rm -f conftest.err conftest.i conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1801 eval "$3=\$ac_header_compiler"
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1821 *) ac_try_echo
=$ac_try;;
1823 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=$ac_status
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1894 *) ac_try_echo
=$ac_try;;
1896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err
; then
1901 grep -v '^ *+' conftest.err
>conftest.er1
1902 cat conftest.er1
>&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest
$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest
$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.
$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status
$ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func
()
1935 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \
${$3+:} false
; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1953 # include <limits.h>
1955 # include <assert.h>
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1982 if ac_fn_c_try_link
"$LINENO"; then :
1987 rm -f core conftest.err conftest.
$ac_objext \
1988 conftest
$ac_exeext conftest.
$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_func
1996 cat >config.log
<<_ACEOF
1997 This file contains any messages produced by compilers while
1998 running configure, to aid debugging if configure makes a mistake.
2000 It was created by $as_me, which was
2001 generated by GNU Autoconf 2.69. Invocation command line was
2013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2025 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir
=.
2037 $as_echo "PATH: $as_dir"
2053 # Keep a trace of the command line.
2054 # Strip out --no-create and --no-recursion so they do not pile up.
2055 # Strip out --silent because we don't want to record it for future runs.
2056 # Also quote any args containing shell meta-characters.
2057 # Make two passes to allow for proper duplicate-argument suppression.
2061 ac_must_keep_next
=false
2067 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2068 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2069 |
-silent |
--silent |
--silen |
--sile |
--sil)
2072 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2077 as_fn_append ac_configure_args1
" '$ac_arg'"
2078 if test $ac_must_keep_next = true
; then
2079 ac_must_keep_next
=false
# Got value, back to normal.
2082 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2083 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2084 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2085 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2086 case "$ac_configure_args0 " in
2087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2090 -* ) ac_must_keep_next
=true
;;
2093 as_fn_append ac_configure_args
" '$ac_arg'"
2098 { ac_configure_args0
=; unset ac_configure_args0
;}
2099 { ac_configure_args1
=; unset ac_configure_args1
;}
2101 # When interrupted or exit'd, cleanup temporary files, and complete
2102 # config.log. We remove comments because anyway the quotes in there
2103 # would cause problems or look ugly.
2104 # WARNING: Use '\'' to represent an apostrophe within the trap.
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2106 trap 'exit_status=$?
2107 # Save into config.log some information that might help in debugging.
2111 $as_echo "## ---------------- ##
2112 ## Cache variables. ##
2113 ## ---------------- ##"
2115 # The following way of writing the cache mishandles newlines in values,
2117 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2118 eval ac_val=\$$ac_var
2122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2126 _ | IFS | as_nl) ;; #(
2127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2128 *) { eval $ac_var=; unset $ac_var;} ;;
2133 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2134 *${as_nl}ac_space=\ *)
2136 "s/'\''/'\''\\\\'\'''\''/g;
2137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2147 $as_echo "## ----------------- ##
2148 ## Output variables. ##
2149 ## ----------------- ##"
2151 for ac_var in $ac_subst_vars
2153 eval ac_val=\$$ac_var
2155 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2161 if test -n "$ac_subst_files"; then
2162 $as_echo "## ------------------- ##
2163 ## File substitutions. ##
2164 ## ------------------- ##"
2166 for ac_var
in $ac_subst_files
2168 eval ac_val
=\$
$ac_var
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 $as_echo "$ac_var='\''$ac_val'\''"
2177 if test -s confdefs.h; then
2178 $as_echo "## ----------- ##
2185 test "$ac_signal" != 0 &&
2186 $as_echo "$as_me: caught signal $ac_signal"
2187 $as_echo "$as_me: exit $exit_status"
2189 rm -f core *.core core.conftest.* &&
2190 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193 for ac_signal
in 1 2 13 15; do
2194 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2199 rm -f -r conftest
* confdefs.h
2201 $as_echo "/* confdefs.h */" > confdefs.h
2203 # Predefined preprocessor variables.
2205 cat >>confdefs.h
<<_ACEOF
2206 #define PACKAGE_NAME "$PACKAGE_NAME"
2209 cat >>confdefs.h
<<_ACEOF
2210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2213 cat >>confdefs.h
<<_ACEOF
2214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2217 cat >>confdefs.h
<<_ACEOF
2218 #define PACKAGE_STRING "$PACKAGE_STRING"
2221 cat >>confdefs.h
<<_ACEOF
2222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2225 cat >>confdefs.h
<<_ACEOF
2226 #define PACKAGE_URL "$PACKAGE_URL"
2230 # Let the site file select an alternate cache file if it wants to.
2231 # Prefer an explicitly selected file to automatically selected ones.
2234 if test -n "$CONFIG_SITE"; then
2235 # We do not want a PATH search for config.site.
2236 case $CONFIG_SITE in #((
2237 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2238 */*) ac_site_file1
=$CONFIG_SITE;;
2239 *) ac_site_file1
=.
/$CONFIG_SITE;;
2241 elif test "x$prefix" != xNONE
; then
2242 ac_site_file1
=$prefix/share
/config.site
2243 ac_site_file2
=$prefix/etc
/config.site
2245 ac_site_file1
=$ac_default_prefix/share
/config.site
2246 ac_site_file2
=$ac_default_prefix/etc
/config.site
2248 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2250 test "x$ac_site_file" = xNONE
&& continue
2251 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2253 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2254 sed 's/^/| /' "$ac_site_file" >&5
2256 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error $?
"failed to load site script $ac_site_file
2259 See \`config.log' for more details" "$LINENO" 5; }
2263 if test -r "$cache_file"; then
2264 # Some versions of bash will fail to source /dev/null (special files
2265 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2266 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2271 *) .
"./$cache_file";;
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276 $as_echo "$as_me: creating cache $cache_file" >&6;}
2280 # Check that the precious variables saved in the cache have kept the same
2282 ac_cache_corrupted
=false
2283 for ac_var
in $ac_precious_vars; do
2284 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2285 eval ac_new_set
=\
$ac_env_${ac_var}_set
2286 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2287 eval ac_new_val
=\
$ac_env_${ac_var}_value
2288 case $ac_old_set,$ac_new_set in
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2292 ac_cache_corrupted
=: ;;
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2295 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2296 ac_cache_corrupted
=: ;;
2299 if test "x$ac_old_val" != "x$ac_new_val"; then
2300 # differences in whitespace do not lead to failure.
2301 ac_old_val_w
=`echo x $ac_old_val`
2302 ac_new_val_w
=`echo x $ac_new_val`
2303 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2305 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2306 ac_cache_corrupted
=:
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2309 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2310 eval $ac_var=\
$ac_old_val
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2313 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2315 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318 # Pass precious variables to config.status.
2319 if test "$ac_new_set" = set; then
2321 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 *) ac_arg
=$ac_var=$ac_new_val ;;
2324 case " $ac_configure_args " in
2325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2326 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2330 if $ac_cache_corrupted; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2334 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2335 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 ## -------------------- ##
2338 ## Main body of script. ##
2339 ## -------------------- ##
2342 ac_cpp
='$CPP $CPPFLAGS'
2343 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2351 for ac_dir
in ${srcdir}/build
/autoconf
"$srcdir"/${srcdir}/build
/autoconf
; do
2352 if test -f "$ac_dir/install-sh"; then
2354 ac_install_sh
="$ac_aux_dir/install-sh -c"
2356 elif test -f "$ac_dir/install.sh"; then
2358 ac_install_sh
="$ac_aux_dir/install.sh -c"
2360 elif test -f "$ac_dir/shtool"; then
2362 ac_install_sh
="$ac_aux_dir/shtool install -c"
2366 if test -z "$ac_aux_dir"; then
2367 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5
2370 # These three variables are undocumented and unsupported,
2371 # and are intended to be withdrawn in a future Autoconf release.
2372 # They can cause serious problems if a builder's source tree is in a directory
2373 # whose full name contains unusual characters.
2374 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2375 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2376 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2379 # Make sure we can run config.sub.
2380 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2381 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2384 $as_echo_n "checking build system type... " >&6; }
2385 if ${ac_cv_build+:} false
; then :
2386 $as_echo_n "(cached) " >&6
2388 ac_build_alias
=$build_alias
2389 test "x$ac_build_alias" = x
&&
2390 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2391 test "x$ac_build_alias" = x
&&
2392 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2393 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2394 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2398 $as_echo "$ac_cv_build" >&6; }
2399 case $ac_cv_build in
2401 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2404 ac_save_IFS
=$IFS; IFS
='-'
2410 # Remember, the first character of IFS is used to create $*,
2411 # except with old shells:
2414 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2418 $as_echo_n "checking host system type... " >&6; }
2419 if ${ac_cv_host+:} false
; then :
2420 $as_echo_n "(cached) " >&6
2422 if test "x$host_alias" = x
; then
2423 ac_cv_host
=$ac_cv_build
2425 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2426 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2431 $as_echo "$ac_cv_host" >&6; }
2434 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2437 ac_save_IFS
=$IFS; IFS
='-'
2443 # Remember, the first character of IFS is used to create $*,
2444 # except with old shells:
2447 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2451 $as_echo_n "checking target system type... " >&6; }
2452 if ${ac_cv_target+:} false
; then :
2453 $as_echo_n "(cached) " >&6
2455 if test "x$target_alias" = x
; then
2456 ac_cv_target
=$ac_cv_host
2458 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2459 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2464 $as_echo "$ac_cv_target" >&6; }
2465 case $ac_cv_target in
2467 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2469 target
=$ac_cv_target
2470 ac_save_IFS
=$IFS; IFS
='-'
2476 # Remember, the first character of IFS is used to create $*,
2477 # except with old shells:
2480 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2483 # The aliases save the names the user supplied, while $host etc.
2484 # will get canonicalized.
2485 test -n "$target_alias" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2488 program_prefix
=${target_alias}-
2491 MOD_MINOR_VERSION
=10
2492 MOD_PATCH_VERSION
=10
2504 _MACOSX_DEPLOYMENT_TARGET
=
2509 OBJDIR
='$(OBJDIR_NAME)'
2512 NSINSTALL
='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
2513 NOSUCHFILE
=/no-such-file
2514 LIBNSPR
='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
2515 LIBPLC
='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
2520 MOZ_OS2_HIGH_MEMORY
=1
2522 PROFILE_GEN_LDFLAGS
=
2524 PROFILE_USE_LDFLAGS
=
2526 RESOLVE_LINK_SYMBOLS
=
2529 CXXFLAGS
="${CXXFLAGS=}"
2530 LDFLAGS
="${LDFLAGS=}"
2531 DLLFLAGS
="${DLLFLAGS=}"
2532 HOST_CFLAGS
="${HOST_CFLAGS=}"
2533 HOST_LDFLAGS
="${HOST_LDFLAGS=}"
2536 *-cygwin*|
*-mingw*|
*-msys*)
2537 # Check to see if we are really running in a msvc environemnt
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy
$ac_prog; ac_word
=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if ${ac_cv_prog_CC+:} false
; then :
2546 $as_echo_n "(cached) " >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC
="$CC" # Let the user override the test.
2551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir
=.
2556 for ac_exec_ext
in '' $ac_executable_extensions; do
2557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_CC
="$ac_prog"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2578 test -n "$CC" && break
2581 cat > conftest.c
<<EOF
2587 $($CC -E conftest.c 2>/dev/null | grep COMPILER)
2589 if test -n "$dummy"; then
2600 if test -n "$_WIN32_MSVC"; then
2602 SKIP_COMPILER_CHECKS
=1
2603 SKIP_LIBRARY_CHECKS
=1
2608 # Check whether --with-android-ndk was given.
2609 if test "${with_android_ndk+set}" = set; then :
2610 withval
=$with_android_ndk; android_ndk
=$withval
2615 # Check whether --with-android-toolchain was given.
2616 if test "${with_android_toolchain+set}" = set; then :
2617 withval
=$with_android_toolchain; android_toolchain
=$withval
2621 case "$target_cpu" in
2631 # Check whether --with-android-version was given.
2632 if test "${with_android_version+set}" = set; then :
2633 withval
=$with_android_version; android_version
=$withval
2638 # Check whether --with-android-platform was given.
2639 if test "${with_android_platform+set}" = set; then :
2640 withval
=$with_android_platform; android_platform
=$withval
2645 arm-linux
*-android*|
*-linuxandroid*)
2646 android_tool_prefix
="arm-linux-androideabi"
2649 android_tool_prefix
="i686-linux-android"
2652 android_tool_prefix
="mipsel-linux-android"
2655 android_tool_prefix
="$target_os"
2661 # Check whether --with-gonk was given.
2662 if test "${with_gonk+set}" = set; then :
2663 withval
=$with_gonk; gonkdir
=$withval
2667 if test -n "$gonkdir" ; then
2669 $as_echo "#define ANDROID 1" >>confdefs.h
2673 *-android*|
*-linuxandroid*)
2674 if test -z "$android_ndk" ; then
2675 as_fn_error $?
"You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5
2678 if test -z "$android_toolchain" ; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5
2680 $as_echo_n "checking for android toolchain directory... " >&6; }
2682 kernel_name
=`uname -s | tr "[:upper:]" "[:lower:]"`
2684 case "$target_cpu" in
2686 target_name
=arm-linux-androideabi-4.4
.3
2689 target_name
=x86-4.4
.3
2692 target_name
=mipsel-linux-android-4.4
.3
2695 android_toolchain
="$android_ndk"/toolchains
/$target_name/prebuilt
/$kernel_name-x86
2697 if test -d "$android_toolchain" ; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5
2699 $as_echo "$android_toolchain" >&6; }
2701 as_fn_error $?
"not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5
2705 if test -z "$android_platform" ; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5
2707 $as_echo_n "checking for android platform directory... " >&6; }
2709 case "$target_cpu" in
2721 android_platform
="$android_ndk"/platforms
/android-
"$android_version"/arch-
"$target_name"
2723 if test -d "$android_platform" ; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5
2725 $as_echo "$android_platform" >&6; }
2727 as_fn_error $?
"not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5
2731 case "$target_cpu" in
2733 if ! test -e "$android_toolchain"/bin
/"$android_tool_prefix"-gcc; then
2734 android_tool_prefix
="i686-android-linux"
2739 AS
="$android_toolchain"/bin
/"$android_tool_prefix"-as
2740 CC
="$android_toolchain"/bin
/"$android_tool_prefix"-gcc
2741 CXX
="$android_toolchain"/bin
/"$android_tool_prefix"-g++
2742 CPP
="$android_toolchain"/bin
/"$android_tool_prefix"-cpp
2743 LD
="$android_toolchain"/bin
/"$android_tool_prefix"-ld
2744 AR
="$android_toolchain"/bin
/"$android_tool_prefix"-ar
2745 RANLIB
="$android_toolchain"/bin
/"$android_tool_prefix"-ranlib
2746 STRIP
="$android_toolchain"/bin
/"$android_tool_prefix"-strip
2748 CPPFLAGS
="-I$android_platform/usr/include $CPPFLAGS"
2749 CFLAGS
="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS"
2750 CXXFLAGS
="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS"
2751 LDFLAGS
="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS"
2753 $as_echo "#define ANDROID 1" >>confdefs.h
2759 dist_prefix
='${MOD_DEPTH}/dist'
2760 dist_bindir
='${dist_prefix}/bin'
2761 dist_includedir
='${dist_prefix}/include/nspr'
2762 dist_libdir
='${dist_prefix}/lib'
2763 if test "${includedir}" = '${prefix}/include'; then
2764 includedir
='${prefix}/include/nspr'
2768 # Check whether --with-dist-prefix was given.
2769 if test "${with_dist_prefix+set}" = set; then :
2770 withval
=$with_dist_prefix; dist_prefix
=$withval
2775 # Check whether --with-dist-bindir was given.
2776 if test "${with_dist_bindir+set}" = set; then :
2777 withval
=$with_dist_bindir; dist_bindir
=$withval
2782 # Check whether --with-dist-includedir was given.
2783 if test "${with_dist_includedir+set}" = set; then :
2784 withval
=$with_dist_includedir; dist_includedir
=$withval
2789 # Check whether --with-dist-libdir was given.
2790 if test "${with_dist_libdir+set}" = set; then :
2791 withval
=$with_dist_libdir; dist_libdir
=$withval
2801 # Check whether --with-mozilla was given.
2802 if test "${with_mozilla+set}" = set; then :
2803 withval
=$with_mozilla; if test "$withval" = "yes"; then
2804 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h
2811 if test -n "$MOZILLA_CLIENT"; then
2812 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h
2818 # Check whether --enable-optimize was given.
2819 if test "${enable_optimize+set}" = set; then :
2820 enableval
=$enable_optimize; if test "$enableval" != "no"; then
2822 if test -n "$enableval" -a "$enableval" != "yes"; then
2823 _OPTIMIZE_FLAGS
=`echo $enableval | sed -e 's|\\\ | |g'`
2824 _SAVE_OPTIMIZE_FLAGS
=$_OPTIMIZE_FLAGS
2832 # Check whether --enable-debug was given.
2833 if test "${enable_debug+set}" = set; then :
2834 enableval
=$enable_debug; if test "$enableval" != "no"; then
2837 if test -n "$enableval" -a "$enableval" != "yes"; then
2838 _DEBUG_FLAGS
=`echo $enableval | sed -e 's|\\\ | |g'`
2839 _SAVE_DEBUG_FLAGS
=$_DEBUG_FLAGS
2849 # Check whether --enable-debug-symbols was given.
2850 if test "${enable_debug_symbols+set}" = set; then :
2851 enableval
=$enable_debug_symbols; if test "$enableval" != "no"; then
2853 if test -n "$enableval" -a "$enableval" != "yes"; then
2854 if test -z "$_SAVE_DEBUG_FLAGS"; then
2855 _DEBUG_FLAGS
=`echo $enableval | sed -e 's|\\\ | |g'`
2856 _SAVE_DEBUG_FLAGS
=$_DEBUG_FLAGS
2858 as_fn_error $?
"--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5
2867 # Check whether --enable-win32-target was given.
2868 if test "${enable_win32_target+set}" = set; then :
2869 enableval
=$enable_win32_target; OS_TARGET
=`echo $enableval | tr a-z A-Z`
2873 # Check whether --enable-symbian-target was given.
2874 if test "${enable_symbian_target+set}" = set; then :
2875 enableval
=$enable_symbian_target; OS_TARGET
=`echo $enableval | tr a-z A-Z`
2879 # Check whether --enable-debug-rtl was given.
2880 if test "${enable_debug_rtl+set}" = set; then :
2881 enableval
=$enable_debug_rtl; if test "$enableval" = "yes"; then
2889 # Check whether --enable-static-rtl was given.
2890 if test "${enable_static_rtl+set}" = set; then :
2891 enableval
=$enable_static_rtl; if test "$enableval" = "yes"; then
2897 # Check whether --enable-n32 was given.
2898 if test "${enable_n32+set}" = set; then :
2899 enableval
=$enable_n32; if test "$enableval" = "yes"; then
2901 else if test "$enableval" = "no"; then
2908 # Check whether --enable-x32 was given.
2909 if test "${enable_x32+set}" = set; then :
2910 enableval
=$enable_x32; if test "$enableval" = "yes"; then
2912 else if test "$enableval" = "no"; then
2919 # Check whether --enable-64bit was given.
2920 if test "${enable_64bit+set}" = set; then :
2921 enableval
=$enable_64bit; if test "$enableval" = "yes"; then
2927 # Check whether --enable-mdupdate was given.
2928 if test "${enable_mdupdate+set}" = set; then :
2929 enableval
=$enable_mdupdate; if test "$enableval" = "yes"; then
2935 # Check whether --enable-cplus was given.
2936 if test "${enable_cplus+set}" = set; then :
2937 enableval
=$enable_cplus; if test "$enableval" = "yes"; then
2944 # Check whether --with-arm-kuser was given.
2945 if test "${with_arm_kuser+set}" = set; then :
2946 withval
=$with_arm_kuser; if test "$withval" = "yes"; then
2947 $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h
2954 # Check whether --with-macos-sdk was given.
2955 if test "${with_macos_sdk+set}" = set; then :
2956 withval
=$with_macos_sdk; MACOS_SDK_DIR
=$withval
2960 # Check whether --enable-macos-target was given.
2961 if test "${enable_macos_target+set}" = set; then :
2962 enableval
=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET
=$enableval
2969 case "${target_os}" in
2981 if test -z "$CC"; then
2985 if test -z "$USE_NSPR_THREADS"; then
3011 if test -z "$CXX"; then
3015 if test -z "$USE_NSPR_THREADS"; then
3023 case "${target_os}" in
3051 if test -z "$SKIP_PATH_CHECKS"; then
3052 # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
3053 set dummy
$WHOAMI whoami
; ac_word
=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_path_WHOAMI+:} false
; then :
3057 $as_echo_n "(cached) " >&6
3061 ac_cv_path_WHOAMI
="$WHOAMI" # Let the user override the test with a path.
3064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir
=.
3069 for ac_exec_ext
in '' $ac_executable_extensions; do
3070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_path_WHOAMI
="$as_dir/$ac_word$ac_exec_ext"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI
="echo not_whoami"
3083 WHOAMI
=$ac_cv_path_WHOAMI
3084 if test -n "$WHOAMI"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5
3086 $as_echo "$WHOAMI" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3095 if test -n "$MOZ_DEBUG"; then
3096 $as_echo "#define DEBUG 1" >>confdefs.h
3098 DEFINES
="$DEFINES -UNDEBUG"
3100 case "${target_os}" in
3102 DEFINES
="$DEFINES -DDEBUG_${USER}"
3104 mks
*|cygwin
*|mingw
*|msys
*|os2
*)
3105 DEFINES
="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
3108 DEFINES
="$DEFINES -DDEBUG_`$WHOAMI`"
3112 $as_echo "#define NDEBUG 1" >>confdefs.h
3114 DEFINES
="$DEFINES -UDEBUG"
3117 if test -z "$SKIP_COMPILER_CHECKS"; then
3118 if test "$target" != "$host"; then
3119 echo "cross compiling from $host to $target"
3122 case "$build:$target" in
3123 powerpc-apple-darwin8
*:i?
86-apple-darwin*)
3124 _SAVE_CFLAGS
=$CFLAGS
3125 _SAVE_CXXFLAGS
=$CXXFLAGS
3126 CFLAGS
="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS"
3127 CXXFLAGS
="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS"
3131 for ac_prog
in $CC "${target_alias}-gcc" "${target}-gcc"
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy
$ac_prog; ac_word
=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false
; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC
="$CC" # Let the user override the test.
3143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir
=.
3148 for ac_exec_ext
in '' $ac_executable_extensions; do
3149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CC
="$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$CC" && break
3172 test -n "$CC" || CC
="echo"
3178 ac_cpp
='$CPP $CPPFLAGS'
3179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3184 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false
; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC
="$CC" # Let the user override the test.
3193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir
=.
3198 for ac_exec_ext
in '' $ac_executable_extensions; do
3199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_CC"; then
3223 # Extract the first word of "gcc", so it can be a program name with args.
3224 set dummy gcc
; ac_word
=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_CC"; then
3231 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_CC
="gcc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_CC" = x
; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned
=yes ;;
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_CC+:} false
; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC
="$CC" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3315 if test -z "$CC"; then
3316 # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc
; ac_word
=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false
; then :
3321 $as_echo_n "(cached) " >&6
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC
="$CC" # Let the user override the test.
3327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir
=.
3332 for ac_exec_ext
in '' $ac_executable_extensions; do
3333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3334 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335 ac_prog_rejected
=yes
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test $ac_prog_rejected = yes; then
3347 # We found a bogon in the path, so make sure we never use it.
3348 set dummy
$ac_cv_prog_CC
3350 if test $# != 0; then
3351 # We chose a different compiler from the bogus one.
3352 # However, it has the same basename, so the bogon will be chosen
3353 # first if we set CC to just the basename; use the full file name.
3355 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3371 if test -z "$CC"; then
3372 if test -n "$ac_tool_prefix"; then
3373 for ac_prog
in cl.exe
3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC
="$CC" # Let the user override the test.
3385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir
=.
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$CC" && break
3415 if test -z "$CC"; then
3417 for ac_prog
in cl.exe
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy
$ac_prog; ac_word
=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$ac_ct_CC"; then
3427 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir
=.
3434 for ac_exec_ext
in '' $ac_executable_extensions; do
3435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_ac_ct_CC
="$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 $as_echo "$ac_ct_CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -n "$ac_ct_CC" && break
3459 if test "x$ac_ct_CC" = x
; then
3462 case $cross_compiling:$ac_tool_warned in
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned
=yes ;;
3475 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $?
"no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details" "$LINENO" 5; }
3480 # Provide some information about the compiler.
3481 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484 for ac_option
in --version -v -V -qversion; do
3485 { { ac_try
="$ac_compiler $ac_option >&5"
3487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494 if test -s conftest.err; then
3496 ... rest of stderr output deleted ...
3497 10q' conftest.err >conftest.er1
3498 cat conftest.er1 >&5
3500 rm -f conftest.er1 conftest.err
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 ac_clean_files_save=$ac_clean_files
3517 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3518 # Try to create an executable without -o first, disregard a.out.
3519 # It will help us diagnose broken compilers, and finding out an intuition
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3522 $as_echo_n "checking whether the C compiler works... " >&6; }
3523 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3525 # The possible output files:
3526 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529 for ac_file in $ac_files
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3538 if { { ac_try="$ac_link_default"
3540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3541 *) ac_try_echo
=$ac_try;;
3543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_link_default") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3550 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3551 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3552 # so that the user can short-circuit this test for compilers unknown to
3554 for ac_file
in $ac_files ''
3556 test -f "$ac_file" ||
continue
3558 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3561 # We found the default executable, but exeext='' is most
3565 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3567 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 # We set ac_cv_exeext here because the later test for it is not
3570 # safe: cross compilers may not add the suffix if given an `-o'
3571 # argument, so we may need to know it at that point already.
3572 # Even if this section looks crufty: it has the advantage of
3579 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3584 if test -z "$ac_file"; then :
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 $as_echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error
77 "C compiler cannot create executables
3593 See \`config.log' for more details" "$LINENO" 5; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3599 $as_echo_n "checking for C compiler default output file name... " >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3601 $as_echo "$ac_file" >&6; }
3602 ac_exeext
=$ac_cv_exeext
3604 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3605 ac_clean_files
=$ac_clean_files_save
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3607 $as_echo_n "checking for suffix of executables... " >&6; }
3608 if { { ac_try
="$ac_link"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link") 2>&5
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3620 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3621 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 for ac_file
in conftest.exe conftest conftest.
*; do
3624 test -f "$ac_file" ||
continue
3626 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3627 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3636 See \`config.log' for more details" "$LINENO" 5; }
3638 rm -f conftest conftest
$ac_cv_exeext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3640 $as_echo "$ac_cv_exeext" >&6; }
3642 rm -f conftest.
$ac_ext
3643 EXEEXT
=$ac_cv_exeext
3645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3651 FILE *f = fopen ("conftest.out", "w");
3652 return ferror (f) || fclose (f) != 0;
3658 ac_clean_files
="$ac_clean_files conftest.out"
3659 # Check that the compiler produces executables we can run. If not, either
3660 # the compiler is broken, or we cross compile.
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3662 $as_echo_n "checking whether we are cross compiling... " >&6; }
3663 if test "$cross_compiling" != yes; then
3664 { { ac_try
="$ac_link"
3666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3675 if { ac_try='./conftest$ac_cv_exeext'
3676 { { case "(($ac_try" in
3677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3678 *) ac_try_echo
=$ac_try;;
3680 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_try") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; }; then
3688 if test "$cross_compiling" = maybe
; then
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $?
"cannot run C compiled programs.
3694 If you meant to cross compile, use \`--host'.
3695 See \`config.log' for more details" "$LINENO" 5; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3700 $as_echo "$cross_compiling" >&6; }
3702 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3703 ac_clean_files
=$ac_clean_files_save
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3705 $as_echo_n "checking for suffix of object files... " >&6; }
3706 if ${ac_cv_objext+:} false
; then :
3707 $as_echo_n "(cached) " >&6
3709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3720 rm -f conftest.o conftest.obj
3721 if { { ac_try
="$ac_compile"
3723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compile") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; then :
3732 for ac_file in conftest.o conftest.obj conftest.*; do
3733 test -f "$ac_file" || continue;
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3747 See \
`config.log' for more details" "$LINENO" 5; }
3749 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3752 $as_echo "$ac_cv_objext" >&6; }
3753 OBJEXT=$ac_cv_objext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3756 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3757 if ${ac_cv_c_compiler_gnu+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3774 if ac_fn_c_try_compile "$LINENO"; then :
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3785 if test $ac_compiler_gnu = yes; then
3790 ac_test_CFLAGS=${CFLAGS+set}
3791 ac_save_CFLAGS=$CFLAGS
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3794 if ${ac_cv_prog_cc_g+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 ac_save_c_werror_flag=$ac_c_werror_flag
3798 ac_c_werror_flag=yes
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3812 if ac_fn_c_try_compile "$LINENO"; then :
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_c_werror_flag=$ac_save_c_werror_flag
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 if ac_fn_c_try_compile "$LINENO"; then :
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_c_werror_flag=$ac_save_c_werror_flag
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3854 $as_echo "$ac_cv_prog_cc_g" >&6; }
3855 if test "$ac_test_CFLAGS" = set; then
3856 CFLAGS=$ac_save_CFLAGS
3857 elif test $ac_cv_prog_cc_g = yes; then
3858 if test "$GCC" = yes; then
3864 if test "$GCC" = yes; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3871 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3872 if ${ac_cv_prog_cc_c89+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 ac_cv_prog_cc_c89=no
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3883 struct buf { int x; };
3884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3885 static char *e (p, i)
3891 static char *f (char * (*g) (char **, int), char **p, ...)
3896 s = g (p, va_arg (v,int));
3901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3902 function prototypes and stuff, but not '\xHH' hex character constants.
3903 These don't provoke an error unfortunately, instead are silently treated
3904 as 'x'. The following induces an error, until -std is added to get
3905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3906 array size at least. It's necessary to write '\x00'==0 to get something
3907 that's true only with -std. */
3908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3911 inside strings and character constants. */
3913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3915 int test (int i, double x);
3916 struct s1 {int (*f) (int a);};
3917 struct s2 {int (*f) (double a);};
3918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3932 CC="$ac_save_CC $ac_arg"
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934 ac_cv_prog_cc_c89=$ac_arg
3936 rm -f core conftest.err conftest.$ac_objext
3937 test "x$ac_cv_prog_cc_c89" != "xno" && break
3939 rm -f conftest.$ac_ext
3944 case "x$ac_cv_prog_cc_c89" in
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3947 $as_echo "none needed" >&6; } ;;
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 $as_echo "unsupported" >&6; } ;;
3952 CC="$CC $ac_cv_prog_cc_c89"
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3956 if test "x$ac_cv_prog_cc_c89" != xno; then :
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 if test "$target" != "$host"; then
3968 if test -n "$USE_CPLUS"; then
3969 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
3971 # Extract the first word of "$ac_prog", so it can be a program name with args.
3972 set dummy $ac_prog; ac_word=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if ${ac_cv_prog_CXX+:} false; then :
3976 $as_echo_n "(cached) " >&6
3978 if test -n "$CXX"; then
3979 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_CXX="$ac_prog"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 if test -n "$CXX"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4001 $as_echo "$CXX" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$CXX" && break
4010 test -n "$CXX" || CXX="echo"
4012 unset ac_cv_prog_CXX
4014 ac_cpp='$CXXCPP $CPPFLAGS'
4015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4018 if test -z "$CXX"; then
4019 if test -n "$CCC"; then
4022 if test -n "$ac_tool_prefix"; then
4023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_CXX+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$CXX"; then
4033 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 if test -n "$CXX"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4055 $as_echo "$CXX" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4062 test -n "$CXX" && break
4065 if test -z "$CXX"; then
4067 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070 set dummy $ac_prog; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 if test -n "$ac_ct_CXX"; then
4077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_ac_ct_CXX="$ac_prog"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4097 if test -n "$ac_ct_CXX"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4099 $as_echo "$ac_ct_CXX" >&6; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4106 test -n "$ac_ct_CXX" && break
4109 if test "x$ac_ct_CXX" = x; then
4112 case $cross_compiling:$ac_tool_warned in
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116 ac_tool_warned=yes ;;
4124 # Provide some information about the compiler.
4125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4128 for ac_option in --version -v -V -qversion; do
4129 { { ac_try="$ac_compiler $ac_option >&5"
4131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4132 *) ac_try_echo
=$ac_try;;
4134 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4138 if test -s conftest.err
; then
4140 ... rest of stderr output deleted ...
4141 10q' conftest.err
>conftest.er1
4142 cat conftest.er1
>&5
4144 rm -f conftest.er1 conftest.err
4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4150 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4151 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4152 $as_echo_n "(cached) " >&6
4154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4168 if ac_fn_cxx_try_compile
"$LINENO"; then :
4173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4174 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4178 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4179 if test $ac_compiler_gnu = yes; then
4184 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4185 ac_save_CXXFLAGS
=$CXXFLAGS
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4187 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4188 if ${ac_cv_prog_cxx_g+:} false
; then :
4189 $as_echo_n "(cached) " >&6
4191 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4192 ac_cxx_werror_flag
=yes
4195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 if ac_fn_cxx_try_compile
"$LINENO"; then :
4207 ac_cv_prog_cxx_g
=yes
4210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4221 if ac_fn_cxx_try_compile
"$LINENO"; then :
4224 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4237 if ac_fn_cxx_try_compile
"$LINENO"; then :
4238 ac_cv_prog_cxx_g
=yes
4240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4245 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4248 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4249 if test "$ac_test_CXXFLAGS" = set; then
4250 CXXFLAGS
=$ac_save_CXXFLAGS
4251 elif test $ac_cv_prog_cxx_g = yes; then
4252 if test "$GXX" = yes; then
4258 if test "$GXX" = yes; then
4265 ac_cpp
='$CPP $CPPFLAGS'
4266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4272 case "$build:$target" in
4273 powerpc-apple-darwin8
*:i?
86-apple-darwin*|
*:arm
*-apple-darwin*)
4274 CFLAGS
=$_SAVE_CFLAGS
4275 CXXFLAGS
=$_SAVE_CXXFLAGS
4279 for ac_prog
in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
4281 # Extract the first word of "$ac_prog", so it can be a program name with args.
4282 set dummy
$ac_prog; ac_word
=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_RANLIB+:} false
; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$RANLIB"; then
4289 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir
=.
4296 for ac_exec_ext
in '' $ac_executable_extensions; do
4297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_RANLIB
="$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 RANLIB
=$ac_cv_prog_RANLIB
4309 if test -n "$RANLIB"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4311 $as_echo "$RANLIB" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$RANLIB" && break
4320 test -n "$RANLIB" || RANLIB
="echo"
4322 for ac_prog
in $AR "${target_alias}-ar" "${target}-ar"
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy
$ac_prog; ac_word
=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_AR+:} false
; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -n "$AR"; then
4332 ac_cv_prog_AR
="$AR" # Let the user override the test.
4334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir
=.
4339 for ac_exec_ext
in '' $ac_executable_extensions; do
4340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_AR
="$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 if test -n "$AR"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4354 $as_echo "$AR" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 test -n "$AR" && break
4363 test -n "$AR" || AR
="echo"
4365 for ac_prog
in $AS "${target_alias}-as" "${target}-as"
4367 # Extract the first word of "$ac_prog", so it can be a program name with args.
4368 set dummy
$ac_prog; ac_word
=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_AS+:} false
; then :
4372 $as_echo_n "(cached) " >&6
4374 if test -n "$AS"; then
4375 ac_cv_prog_AS
="$AS" # Let the user override the test.
4377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir
=.
4382 for ac_exec_ext
in '' $ac_executable_extensions; do
4383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_AS
="$ac_prog"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 if test -n "$AS"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4397 $as_echo "$AS" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4404 test -n "$AS" && break
4406 test -n "$AS" || AS
="echo"
4408 for ac_prog
in $LD "${target_alias}-ld" "${target}-ld"
4410 # Extract the first word of "$ac_prog", so it can be a program name with args.
4411 set dummy
$ac_prog; ac_word
=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_prog_LD+:} false
; then :
4415 $as_echo_n "(cached) " >&6
4417 if test -n "$LD"; then
4418 ac_cv_prog_LD
="$LD" # Let the user override the test.
4420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir
=.
4425 for ac_exec_ext
in '' $ac_executable_extensions; do
4426 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_LD
="$ac_prog"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 if test -n "$LD"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4440 $as_echo "$LD" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4447 test -n "$LD" && break
4449 test -n "$LD" || LD
="echo"
4451 for ac_prog
in $STRIP "${target_alias}-strip" "${target}-strip"
4453 # Extract the first word of "$ac_prog", so it can be a program name with args.
4454 set dummy
$ac_prog; ac_word
=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_STRIP+:} false
; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -n "$STRIP"; then
4461 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir
=.
4468 for ac_exec_ext
in '' $ac_executable_extensions; do
4469 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_STRIP
="$ac_prog"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 STRIP
=$ac_cv_prog_STRIP
4481 if test -n "$STRIP"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4483 $as_echo "$STRIP" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4490 test -n "$STRIP" && break
4492 test -n "$STRIP" || STRIP
="echo"
4494 for ac_prog
in $WINDRES "${target_alias}-windres" "${target}-windres"
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy
$ac_prog; ac_word
=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_WINDRES+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$WINDRES"; then
4504 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_WINDRES
="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 WINDRES
=$ac_cv_prog_WINDRES
4524 if test -n "$WINDRES"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4526 $as_echo "$WINDRES" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$WINDRES" && break
4535 test -n "$WINDRES" || WINDRES
="echo"
4539 _SAVE_CFLAGS
="$CFLAGS"
4540 _SAVE_LDFLAGS
="$LDFLAGS"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5
4543 $as_echo_n "checking for $host compiler... " >&6; }
4544 for ac_prog
in $HOST_CC gcc cc
/usr
/ucb
/cc
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy
$ac_prog; ac_word
=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_HOST_CC+:} false
; then :
4551 $as_echo_n "(cached) " >&6
4553 if test -n "$HOST_CC"; then
4554 ac_cv_prog_HOST_CC
="$HOST_CC" # Let the user override the test.
4556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir
=.
4561 for ac_exec_ext
in '' $ac_executable_extensions; do
4562 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_HOST_CC
="$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 HOST_CC
=$ac_cv_prog_HOST_CC
4574 if test -n "$HOST_CC"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5
4576 $as_echo "$HOST_CC" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$HOST_CC" && break
4585 test -n "$HOST_CC" || HOST_CC
=""""
4587 if test -z "$HOST_CC"; then
4588 as_fn_error $?
"no acceptable cc found in \$PATH" "$LINENO" 5
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5
4591 $as_echo "$HOST_CC" >&6; }
4594 CFLAGS
="$HOST_CFLAGS"
4595 LDFLAGS
="$HOST_LDFLAGS"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
4598 $as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; }
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4611 if ac_fn_c_try_compile
"$LINENO"; then :
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613 $as_echo "yes" >&6; }
4615 as_fn_error $?
"installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5
4617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4620 CFLAGS
=$_SAVE_CFLAGS
4621 LDFLAGS
=$_SAVE_LDFLAGS
4623 if test -n "$USE_CPLUS"; then
4624 if test "$CC" = "cl" -a -z "$CXX"; then
4628 ac_cpp
='$CXXCPP $CPPFLAGS'
4629 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4632 if test -z "$CXX"; then
4633 if test -n "$CCC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_CXX+:} false
; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$CXX"; then
4647 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir
=.
4654 for ac_exec_ext
in '' $ac_executable_extensions; do
4655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CXX"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4669 $as_echo "$CXX" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$CXX" && break
4679 if test -z "$CXX"; then
4681 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy
$ac_prog; ac_word
=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_CXX"; then
4691 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir
=.
4698 for ac_exec_ext
in '' $ac_executable_extensions; do
4699 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4711 if test -n "$ac_ct_CXX"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4713 $as_echo "$ac_ct_CXX" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$ac_ct_CXX" && break
4723 if test "x$ac_ct_CXX" = x
; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned
=yes ;;
4738 # Provide some information about the compiler.
4739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4742 for ac_option
in --version -v -V -qversion; do
4743 { { ac_try
="$ac_compiler $ac_option >&5"
4745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4749 $as_echo "$ac_try_echo"; } >&5
4750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4752 if test -s conftest.err; then
4754 ... rest of stderr output deleted ...
4755 10q' conftest.err >conftest.er1
4756 cat conftest.er1 >&5
4758 rm -f conftest.er1 conftest.err
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4764 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4765 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4792 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4793 if test $ac_compiler_gnu = yes; then
4798 ac_test_CXXFLAGS=${CXXFLAGS+set}
4799 ac_save_CXXFLAGS=$CXXFLAGS
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4801 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4802 if ${ac_cv_prog_cxx_g+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4806 ac_cxx_werror_flag=yes
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4820 if ac_fn_cxx_try_compile "$LINENO"; then :
4821 ac_cv_prog_cxx_g=yes
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4835 if ac_fn_cxx_try_compile "$LINENO"; then :
4838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4851 if ac_fn_cxx_try_compile "$LINENO"; then :
4852 ac_cv_prog_cxx_g=yes
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4862 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4863 if test "$ac_test_CXXFLAGS" = set; then
4864 CXXFLAGS=$ac_save_CXXFLAGS
4865 elif test $ac_cv_prog_cxx_g = yes; then
4866 if test "$GXX" = yes; then
4872 if test "$GXX" = yes; then
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if ${ac_cv_prog_RANLIB+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if test -n "$RANLIB"; then
4895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 RANLIB=$ac_cv_prog_RANLIB
4915 if test -n "$RANLIB"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4917 $as_echo "$RANLIB" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4925 if test -z "$ac_cv_prog_RANLIB"; then
4926 ac_ct_RANLIB=$RANLIB
4927 # Extract the first word of "ranlib", so it can be a program name with args.
4928 set dummy ranlib; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 if test -n "$ac_ct_RANLIB"; then
4935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_ac_ct_RANLIB="ranlib"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4955 if test -n "$ac_ct_RANLIB"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4957 $as_echo "$ac_ct_RANLIB" >&6; }
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4963 if test "x$ac_ct_RANLIB" = x; then
4966 case $cross_compiling:$ac_tool_warned in
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970 ac_tool_warned=yes ;;
4972 RANLIB=$ac_ct_RANLIB
4975 RANLIB="$ac_cv_prog_RANLIB"
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_path_AS+:} false; then :
4985 $as_echo_n "(cached) " >&6
4989 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 if test -n "$AS"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5013 $as_echo "$AS" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 test -n "$AS" && break
5022 test -n "$AS" || AS="$CC"
5026 # Extract the first word of "$ac_prog", so it can be a program name with args.
5027 set dummy $ac_prog; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_AR+:} false; then :
5031 $as_echo_n "(cached) " >&6
5035 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 if test -n "$AR"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5059 $as_echo "$AR" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5066 test -n "$AR" && break
5068 test -n "$AR" || AR="echo not_ar"
5070 for ac_prog in ld link
5072 # Extract the first word of "$ac_prog", so it can be a program name with args.
5073 set dummy $ac_prog; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_LD+:} false; then :
5077 $as_echo_n "(cached) " >&6
5081 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 if test -n "$LD"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5105 $as_echo "$LD" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5112 test -n "$LD" && break
5114 test -n "$LD" || LD="echo not_ld"
5116 for ac_prog in strip
5118 # Extract the first word of "$ac_prog", so it can be a program name with args.
5119 set dummy $ac_prog; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_path_STRIP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5127 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 STRIP=$ac_cv_path_STRIP
5149 if test -n "$STRIP"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5151 $as_echo "$STRIP" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 test -n "$STRIP" && break
5160 test -n "$STRIP" || STRIP="echo not_strip"
5162 for ac_prog in windres
5164 # Extract the first word of "$ac_prog", so it can be a program name with args.
5165 set dummy $ac_prog; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_path_WINDRES+:} false; then :
5169 $as_echo_n "(cached) " >&6
5173 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 WINDRES=$ac_cv_path_WINDRES
5195 if test -n "$WINDRES"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
5197 $as_echo "$WINDRES" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 test -n "$WINDRES" && break
5206 test -n "$WINDRES" || WINDRES="echo not_windres"
5208 if test -z "$HOST_CC"; then
5211 if test -z "$HOST_CFLAGS"; then
5212 HOST_CFLAGS="$CFLAGS"
5217 ac_cpp='$CPP $CPPFLAGS'
5218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5222 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5223 # On Suns, sometimes $CPP names a directory.
5224 if test -n "$CPP" && test -d "$CPP"; then
5227 if test -z "$CPP"; then
5228 if ${ac_cv_prog_CPP+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 # Double quotes because CPP needs to be expanded
5232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5235 for ac_c_preproc_warn_flag in '' yes
5237 # Use a header file that comes with gcc, so configuring glibc
5238 # with a fresh cross-compiler works.
5239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 # <limits.h> exists even on freestanding compilers.
5241 # On the NeXT, cc -E runs the code through the compiler's parser,
5242 # not just through cpp. "Syntax error" is here to catch this case.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5246 # include <limits.h>
5248 # include <assert.h>
5252 if ac_fn_c_try_cpp "$LINENO"; then :
5255 # Broken: fails on valid input.
5258 rm -f conftest.err conftest.i conftest.$ac_ext
5260 # OK, works on sane cases. Now check whether nonexistent headers
5261 # can be detected and how.
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 #include <ac_nonexistent.h>
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5267 # Broken: success on invalid input.
5270 # Passes both tests.
5274 rm -f conftest.err conftest.i conftest.$ac_ext
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.i conftest.err conftest.
$ac_ext
5279 if $ac_preproc_ok; then :
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5292 $as_echo "$CPP" >&6; }
5294 for ac_c_preproc_warn_flag
in '' yes
5296 # Use a header file that comes with gcc, so configuring glibc
5297 # with a fresh cross-compiler works.
5298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5299 # <limits.h> exists even on freestanding compilers.
5300 # On the NeXT, cc -E runs the code through the compiler's parser,
5301 # not just through cpp. "Syntax error" is here to catch this case.
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5305 # include <limits.h>
5307 # include <assert.h>
5311 if ac_fn_c_try_cpp
"$LINENO"; then :
5314 # Broken: fails on valid input.
5317 rm -f conftest.err conftest.i conftest.
$ac_ext
5319 # OK, works on sane cases. Now check whether nonexistent headers
5320 # can be detected and how.
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <ac_nonexistent.h>
5325 if ac_fn_c_try_cpp
"$LINENO"; then :
5326 # Broken: success on invalid input.
5329 # Passes both tests.
5333 rm -f conftest.err conftest.i conftest.
$ac_ext
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.i conftest.err conftest.
$ac_ext
5338 if $ac_preproc_ok; then :
5341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5343 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5344 See \`config.log' for more details" "$LINENO" 5; }
5348 ac_cpp
='$CPP $CPPFLAGS'
5349 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5354 if test "$GCC" = "yes"; then
5357 if test "$GXX" = "yes"; then
5360 if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
5365 case "$build:$target" in
5366 i?
86-apple-darwin*:powerpc-apple-darwin
*)
5371 if test "$cross_compiling" = "yes"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5
5378 $as_echo_n "checking for gcc -pipe support... " >&6; }
5379 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
5380 echo '#include <stdio.h>' > dummy-hello.c
5381 echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
5382 ${CC} -S dummy-hello.c
-o dummy-hello.s
2>&5
5383 cat dummy-hello.s |
${AS} -o dummy-hello.S
- 2>&5
5384 if test $?
= 0; then
5389 if test "$_res_as_stdin" = "yes"; then
5390 _SAVE_CFLAGS
=$CFLAGS
5391 CFLAGS
="$CFLAGS -pipe"
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5398 printf("Hello World\n");
5403 if ac_fn_c_try_compile
"$LINENO"; then :
5408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5409 CFLAGS
=$_SAVE_CFLAGS
5411 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
5413 CFLAGS
="$CFLAGS -pipe"
5414 CXXFLAGS
="$CXXFLAGS -pipe"
5418 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5
5420 $as_echo "$_res" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5427 _SAVE_CFLAGS
="$CFLAGS"
5428 CFLAGS
="$CFLAGS -fprofile-generate -fprofile-correction"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5
5431 $as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; }
5432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5443 if ac_fn_c_try_compile
"$LINENO"; then :
5444 PROFILE_GEN_CFLAGS
="-fprofile-generate"
5449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
5451 $as_echo "$result" >&6; }
5453 if test $result = "yes"; then
5454 PROFILE_GEN_LDFLAGS
="-fprofile-generate"
5455 PROFILE_USE_CFLAGS
="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
5456 PROFILE_USE_LDFLAGS
="-fprofile-use"
5459 CFLAGS
="$_SAVE_CFLAGS"
5461 if test "$GNU_CC"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5
5463 $as_echo_n "checking for visibility(hidden) attribute... " >&6; }
5464 if ${ac_cv_visibility_hidden+:} false
; then :
5465 $as_echo_n "(cached) " >&6
5467 cat > conftest.c
<<EOF
5468 int foo __attribute__ ((visibility ("hidden"))) = 1;
5470 ac_cv_visibility_hidden
=no
5471 if ${CC-cc} -Werror -S conftest.c
-o conftest.s
>/dev
/null
2>&1; then
5472 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
5473 ac_cv_visibility_hidden
=yes
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5
5480 $as_echo "$ac_cv_visibility_hidden" >&6; }
5481 if test "$ac_cv_visibility_hidden" = "yes"; then
5482 $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5
5485 $as_echo_n "checking for visibility pragma support... " >&6; }
5486 if ${ac_cv_visibility_pragma+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 cat > conftest.c
<<EOF
5490 #pragma GCC visibility push(hidden)
5492 #pragma GCC visibility push(default)
5493 int foo_default = 1;
5495 ac_cv_visibility_pragma
=no
5496 if ${CC-cc} -Werror -S conftest.c
-o conftest.s
>/dev
/null
2>&1; then
5497 if grep '\.hidden.*foo_hidden' conftest.s
>/dev
/null
; then
5498 if ! grep '\.hidden.*foo_default' conftest.s
> /dev
/null
; then
5499 ac_cv_visibility_pragma
=yes
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5
5507 $as_echo "$ac_cv_visibility_pragma" >&6; }
5508 if test "$ac_cv_visibility_pragma" = "yes"; then
5509 $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h
5511 # To work around a build problem on Linux x86-64 (Bugzilla bug
5512 # 293438), we use the -fvisibility=hidden flag. This flag is less
5513 # optimal than #pragma GCC visibility push(hidden) because the flag
5514 # assumes that symbols defined outside the current source file have
5515 # the default visibility. This has the advantage that we don't need
5516 # to wrap system header files, but has the disadvantage that calls
5517 # to hidden symbols defined in other source files cannot be
5518 # optimized by the compiler. The -fvisibility=hidden flag does
5519 # hide and export symbols correctly.
5520 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
5521 #WRAP_SYSTEM_INCLUDES=1
5522 VISIBILITY_FLAGS
="-fvisibility=hidden"
5523 WRAP_SYSTEM_INCLUDES
=
5528 fi # SKIP_COMPILER_CHECKS
5530 if test -z "$SKIP_PATH_CHECKS"; then
5531 for ac_prog
in perl5 perl
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy
$ac_prog; ac_word
=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_path_PERL+:} false
; then :
5538 $as_echo_n "(cached) " >&6
5542 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
5545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir
=.
5550 for ac_exec_ext
in '' $ac_executable_extensions; do
5551 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 PERL
=$ac_cv_path_PERL
5564 if test -n "$PERL"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5566 $as_echo "$PERL" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 test -n "$PERL" && break
5575 test -n "$PERL" || PERL
="echo not_perl"
5577 elif test -z "$PERL"; then
5585 MKSHLIB
='$(LD) $(DSO_LDOPTS) -o $@'
5593 if test -n "$CROSS_COMPILE"; then
5594 OS_ARCH
=`echo $target_os | sed -e 's|/|_|g'`
5596 OS_TEST
="${target_cpu}"
5597 case "${target_os}" in
5598 linux
*) OS_ARCH
=Linux
;;
5599 solaris
*) OS_ARCH
=SunOS OS_RELEASE
=5 ;;
5600 mingw
*) OS_ARCH
=WINNT CPU_ARCH
=x86
;;
5601 darwin
*) OS_ARCH
=Darwin
;;
5602 riscos
*) OS_ARCH
=RISCOS
;;
5605 OS_ARCH
=`uname -s | sed -e 's|/|_|g'`
5606 OS_RELEASE
=`uname -r`
5610 if test "$OS_ARCH" = "IRIX64"; then
5614 if test "$OS_ARCH" = "AIX"; then
5615 OS_RELEASE
=`uname -v`.
`uname -r`
5618 if test "$OS_ARCH" = "FreeBSD"; then
5619 OS_RELEASE
=`echo $OS_RELEASE | sed 's/-.*//'`
5622 if test "$OS_ARCH" = "Linux"; then
5623 OS_RELEASE
=`echo $OS_RELEASE | sed 's/-.*//'`
5624 OS_RELEASE
=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'`
5627 #######################################################################
5628 # Master "Core Components" macros for getting the OS target #
5629 #######################################################################
5632 # Note: OS_TARGET should be specified on the command line for gmake.
5633 # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
5634 # The difference between the Win95 target and the WinNT target is that
5635 # the WinNT target uses Windows NT specific features not available
5636 # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
5637 # at lesser performance (the Win95 target uses threads; the WinNT target
5640 # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
5641 # cross-compilation.
5645 # The following hack allows one to build on a WIN95 machine (as if
5646 # s/he were cross-compiling on a WINNT host for a WIN95 target).
5647 # It also accomodates for MKS's uname.exe. If you never intend
5648 # to do development on a WIN95 machine, you don't need this hack.
5659 CYGWIN_9
*|CYGWIN_ME
*)
5660 OS_ARCH
='CYGWIN_NT-4.0'
5670 # On WIN32, we also define the variable CPU_ARCH.
5676 # If uname -s returns "Windows_NT", we assume that we are using
5677 # the uname.exe in MKS toolkit.
5679 # The -r option of MKS uname only returns the major version number.
5680 # So we need to use its -v option to get the minor version number.
5681 # Moreover, it doesn't have the -p option, so we need to use uname -m.
5684 OS_MINOR_RELEASE
=`uname -v`
5685 if test "$OS_MINOR_RELEASE" = "00"; then
5688 OS_RELEASE
="${OS_RELEASE}.${OS_MINOR_RELEASE}"
5691 # MKS's uname -m returns "586" on a Pentium machine.
5693 if echo "$CPU_ARCH" |
grep -c 86 >/dev
/null
; then
5697 CYGWIN_NT
*|MINGW
*_NT
*|MSYS_NT
*)
5699 # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
5700 # the uname.exe in the Cygwin tools.
5701 # If uname -s returns "MINGW32_NT-5.1", we assume that we are using
5702 # the uname.exe in the MSYS tools.
5703 # If uname -s returns "MSYS_NT-6.3", we assume that we are using
5704 # the uname.exe in the MSYS2 tools.
5706 OS_RELEASE
=`expr $OS_ARCH : '.*NT-\(.*\)'`
5710 # Cygwin's uname -m returns "i686" on a Pentium Pro machine.
5712 if echo "$CPU_ARCH" |
grep -c 86 >/dev
/null
; then
5718 if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then
5720 if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then
5724 if test -z "$OS_TARGET"; then
5727 if test "$OS_TARGET" = "WIN95"; then
5730 OS_CONFIG
="${OS_TARGET}${OS_RELEASE}"
5732 # Check whether --enable-os2-high-mem was given.
5733 if test "${enable_os2_high_mem+set}" = set; then :
5734 enableval
=$enable_os2_high_mem; if test "$enableval" = "no"; then
5735 MOZ_OS2_HIGH_MEMORY
=
5737 MOZ_OS2_HIGH_MEMORY
=1
5743 MOZ_ALIGN
=toolchain-default
5746 arm
*-android*|arm
*-linuxandroid*)
5750 MOZ_FLOAT_ABI
=softfp
5755 if test -n "$MOZ_PLATFORM_MAEMO"; then
5758 MOZ_FLOAT_ABI
=softfp
5760 if test "$MOZ_PLATFORM_MAEMO" = 6; then
5766 # Check whether --enable-thumb2 was given.
5767 if test "${enable_thumb2+set}" = set; then :
5768 enableval
=$enable_thumb2; MOZ_THUMB
=$enableval
5773 # Check whether --with-thumb was given.
5774 if test "${with_thumb+set}" = set; then :
5775 withval
=$with_thumb; if test -z "$GNU_CC"; then
5776 as_fn_error $?
"--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5783 # Check whether --with-thumb-interwork was given.
5784 if test "${with_thumb_interwork+set}" = set; then :
5785 withval
=$with_thumb_interwork; if test -z "$GNU_CC"; then
5786 as_fn_error $?
"--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5788 MOZ_THUMB_INTERWORK
=$withval
5793 # Check whether --with-arch was given.
5794 if test "${with_arch+set}" = set; then :
5795 withval
=$with_arch; if test -z "$GNU_CC"; then
5796 as_fn_error $?
"--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5803 # Check whether --with-fpu was given.
5804 if test "${with_fpu+set}" = set; then :
5805 withval
=$with_fpu; if test -z "$GNU_CC"; then
5806 as_fn_error $?
"--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5813 # Check whether --with-float-abi was given.
5814 if test "${with_float_abi+set}" = set; then :
5815 withval
=$with_float_abi; if test -z "$GNU_CC"; then
5816 as_fn_error $?
"--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5818 MOZ_FLOAT_ABI
=$withval
5823 # Check whether --with-soft-float was given.
5824 if test "${with_soft_float+set}" = set; then :
5825 withval
=$with_soft_float; if test -z "$GNU_CC"; then
5826 as_fn_error $?
"--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5828 MOZ_SOFT_FLOAT
=$withval
5833 toolchain-default|
"")
5837 arch_flag
="-march=$MOZ_ARCH"
5841 case "$MOZ_THUMB" in
5844 thumb_flag
="-mthumb"
5851 _SAVE_CFLAGS
="$CFLAGS"
5853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5859 return sizeof(__thumb2__);
5864 if ac_fn_c_try_compile
"$LINENO"; then :
5869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5870 CFLAGS
="$_SAVE_CFLAGS"
5875 case "$MOZ_THUMB_INTERWORK" in
5877 thumb_interwork_flag
="-mthumb-interwork"
5880 thumb_interwork_flag
="-mno-thumb-interwork"
5882 *) # toolchain-default
5883 thumb_interwork_flag
=""
5888 toolchain-default|
"")
5892 fpu_flag
="-mfpu=$MOZ_FPU"
5896 case "$MOZ_FLOAT_ABI" in
5897 toolchain-default|
"")
5901 float_abi_flag
="-mfloat-abi=$MOZ_FLOAT_ABI"
5905 case "$MOZ_SOFT_FLOAT" in
5907 soft_float_flag
="-msoft-float"
5910 soft_float_flag
="-mno-soft-float"
5912 *) # toolchain-default
5917 case "$MOZ_ALIGN" in
5918 toolchain-default|
"")
5922 align_flag
="-mno-unaligned-access"
5925 align_flag
="-munaligned-access"
5932 if test -n "$align_flag"; then
5933 _SAVE_CFLAGS
="$CFLAGS"
5934 CFLAGS
="$CFLAGS $align_flag"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5
5936 $as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; }
5937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5948 if ac_fn_c_try_compile
"$LINENO"; then :
5953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5954 CFLAGS
="$_SAVE_CFLAGS"
5957 all_flags
=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag`
5958 if test -n "$all_flags"; then
5959 _SAVE_CFLAGS
="$CFLAGS"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
5962 $as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; }
5963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5974 if ac_fn_c_try_compile
"$LINENO"; then :
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 $as_echo "yes" >&6; }
5978 as_fn_error $?
"no" "$LINENO" 5
5980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5982 CFLAGS
="$_SAVE_CFLAGS $all_flags"
5983 CXXFLAGS
="$CXXFLAGS $all_flags"
5984 ASFLAGS
="$ASFLAGS $all_flags"
5985 if test -n "$thumb_flag"; then
5986 LDFLAGS
="$LDFLAGS $thumb_flag"
5995 NSINSTALL
='$(CYGWIN_WRAPPER) nsinstall'
5996 if test `echo "${PATH}" | grep -c \;` = 0; then
5997 CYGWIN_WRAPPER
='sh $(topsrcdir)/build/cygwin-wrapper'
6001 HOST_CFLAGS
="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE"
6006 HOST_CFLAGS
="$HOST_CFLAGS -DXP_UNIX"
6013 $as_echo "#define XP_UNIX 1" >>confdefs.h
6015 $as_echo "#define AIX 1" >>confdefs.h
6017 $as_echo "#define SYSV 1" >>confdefs.h
6019 DSO_LDOPTS
='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6022 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6023 if ${ac_cv_path_GREP+:} false
; then :
6024 $as_echo_n "(cached) " >&6
6026 if test -z "$GREP"; then
6027 ac_path_GREP_found
=false
6028 # Loop through the user's path and test for each of PROGNAME-LIST
6029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6030 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6033 test -z "$as_dir" && as_dir
=.
6034 for ac_prog
in grep ggrep
; do
6035 for ac_exec_ext
in '' $ac_executable_extensions; do
6036 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6037 as_fn_executable_p
"$ac_path_GREP" ||
continue
6038 # Check for GNU ac_path_GREP and select it if it is found.
6039 # Check for GNU $ac_path_GREP
6040 case `"$ac_path_GREP" --version 2>&1` in
6042 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6045 $as_echo_n 0123456789 >"conftest.in"
6048 cat "conftest.in" "conftest.in" >"conftest.tmp"
6049 mv "conftest.tmp" "conftest.in"
6050 cp "conftest.in" "conftest.nl"
6051 $as_echo 'GREP' >> "conftest.nl"
6052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6053 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6054 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6056 # Best one so far, save it but keep looking for a better one
6057 ac_cv_path_GREP
="$ac_path_GREP"
6058 ac_path_GREP_max
=$ac_count
6060 # 10*(2^10) chars as input seems more than enough
6061 test $ac_count -gt 10 && break
6063 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6066 $ac_path_GREP_found && break 3
6071 if test -z "$ac_cv_path_GREP"; then
6072 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6075 ac_cv_path_GREP
=$GREP
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6080 $as_echo "$ac_cv_path_GREP" >&6; }
6081 GREP
="$ac_cv_path_GREP"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6085 $as_echo_n "checking for egrep... " >&6; }
6086 if ${ac_cv_path_EGREP+:} false
; then :
6087 $as_echo_n "(cached) " >&6
6089 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6090 then ac_cv_path_EGREP
="$GREP -E"
6092 if test -z "$EGREP"; then
6093 ac_path_EGREP_found
=false
6094 # Loop through the user's path and test for each of PROGNAME-LIST
6095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6096 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6099 test -z "$as_dir" && as_dir
=.
6100 for ac_prog
in egrep; do
6101 for ac_exec_ext
in '' $ac_executable_extensions; do
6102 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6103 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6104 # Check for GNU ac_path_EGREP and select it if it is found.
6105 # Check for GNU $ac_path_EGREP
6106 case `"$ac_path_EGREP" --version 2>&1` in
6108 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6111 $as_echo_n 0123456789 >"conftest.in"
6114 cat "conftest.in" "conftest.in" >"conftest.tmp"
6115 mv "conftest.tmp" "conftest.in"
6116 cp "conftest.in" "conftest.nl"
6117 $as_echo 'EGREP' >> "conftest.nl"
6118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6119 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6120 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6122 # Best one so far, save it but keep looking for a better one
6123 ac_cv_path_EGREP
="$ac_path_EGREP"
6124 ac_path_EGREP_max
=$ac_count
6126 # 10*(2^10) chars as input seems more than enough
6127 test $ac_count -gt 10 && break
6129 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6132 $ac_path_EGREP_found && break 3
6137 if test -z "$ac_cv_path_EGREP"; then
6138 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6141 ac_cv_path_EGREP
=$EGREP
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6147 $as_echo "$ac_cv_path_EGREP" >&6; }
6148 EGREP
="$ac_cv_path_EGREP"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6152 $as_echo_n "checking for ANSI C header files... " >&6; }
6153 if ${ac_cv_header_stdc+:} false
; then :
6154 $as_echo_n "(cached) " >&6
6156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6171 if ac_fn_c_try_compile
"$LINENO"; then :
6172 ac_cv_header_stdc
=yes
6174 ac_cv_header_stdc
=no
6176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 if test $ac_cv_header_stdc = yes; then
6179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 $EGREP "memchr" >/dev
/null
2>&1; then :
6189 ac_cv_header_stdc
=no
6195 if test $ac_cv_header_stdc = yes; then
6196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "free" >/dev
/null
2>&1; then :
6206 ac_cv_header_stdc
=no
6212 if test $ac_cv_header_stdc = yes; then
6213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6214 if test "$cross_compiling" = yes; then :
6217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6221 #if ((' ' & 0x0FF) == 0x020)
6222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6225 # define ISLOWER(c) \
6226 (('a' <= (c) && (c) <= 'i') \
6227 || ('j' <= (c) && (c) <= 'r') \
6228 || ('s' <= (c) && (c) <= 'z'))
6229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6237 for (i = 0; i < 256; i++)
6238 if (XOR (islower (i), ISLOWER (i))
6239 || toupper (i) != TOUPPER (i))
6244 if ac_fn_c_try_run
"$LINENO"; then :
6247 ac_cv_header_stdc
=no
6249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6256 $as_echo "$ac_cv_header_stdc" >&6; }
6257 if test $ac_cv_header_stdc = yes; then
6259 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6264 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6265 inttypes.h stdint.h unistd.h
6267 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6268 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6270 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6271 cat >>confdefs.h
<<_ACEOF
6272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6280 ac_fn_c_check_header_mongrel
"$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default"
6281 if test "x$ac_cv_header_sys_atomic_op_h" = xyes
; then :
6282 $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h
6287 case "${target_os}" in
6289 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h
6291 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
6293 AIX_LINK_OPTS
='-bnso -berok'
6294 PR_MD_ASFILES
=os_AIX.s
6297 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6299 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
6301 $as_echo "#define AIX4_1 1" >>confdefs.h
6305 AIX_LINK_OPTS
='-bnso -berok'
6306 LIBNSPR
='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
6307 LIBPLC
='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
6310 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6312 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6314 AIX_LINK_OPTS
='-brtl -bnso -berok'
6317 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6319 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6321 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h
6323 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6325 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6328 AIX_LINK_OPTS
='-brtl -bnso -berok'
6331 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6333 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6335 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h
6337 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6339 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6342 AIX_LINK_OPTS
='-brtl -bnso -berok'
6345 CFLAGS
="$CFLAGS -qro -qroconst"
6346 AIX_WRAP
='$(DIST)/lib/aixwrap.o'
6347 AIX_TMP
='./_aix_tmp.o'
6348 if test -n "$USE_64"; then
6349 MDCPUCFG_H
=_aix64.cfg
6352 MDCPUCFG_H
=_aix32.cfg
6355 RESOLVE_LINK_SYMBOLS
=1
6359 $as_echo "#define XP_BEOS 1" >>confdefs.h
6361 $as_echo "#define BeOS 1" >>confdefs.h
6363 $as_echo "#define BEOS 1" >>confdefs.h
6365 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6368 MDCPUCFG_H
=_beos.cfg
6371 RESOLVE_LINK_SYMBOLS
=1
6372 case "${target_cpu}" in
6375 _DEBUG_FLAGS
='-gdwarf-2 -O0'
6376 MKSHLIB
='$(CCC) $(DSO_LDOPTS) -o $@'
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5
6378 $as_echo_n "checking for gethostbyaddr in -lbind... " >&6; }
6379 if ${ac_cv_lib_bind_gethostbyaddr+:} false
; then :
6380 $as_echo_n "(cached) " >&6
6382 ac_check_lib_save_LIBS
=$LIBS
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6387 /* Override any GCC internal prototype to avoid an error.
6388 Use char because int might match the return type of a GCC
6389 builtin and then its argument prototype would still apply. */
6393 char gethostbyaddr ();
6397 return gethostbyaddr ();
6402 if ac_fn_c_try_link
"$LINENO"; then :
6403 ac_cv_lib_bind_gethostbyaddr
=yes
6405 ac_cv_lib_bind_gethostbyaddr
=no
6407 rm -f core conftest.err conftest.
$ac_objext \
6408 conftest
$ac_exeext conftest.
$ac_ext
6409 LIBS
=$ac_check_lib_save_LIBS
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5
6412 $as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; }
6413 if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes
; then :
6414 OS_LIBS
="$OS_LIBS -lbind -lsocket"
6422 DSO_LDOPTS
='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o'
6424 _DEBUG_FLAGS
='-g -O0'
6430 $as_echo "#define XP_UNIX 1" >>confdefs.h
6432 $as_echo "#define BSDI 1" >>confdefs.h
6434 $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h
6437 CFLAGS
="$CFLAGS -Wall -Wno-format"
6438 CXXFLAGS
="$CXXFLAGS -Wall -Wno-format"
6440 if echo "$OS_TEST" |
grep -c 86 >/dev
/null
; then
6442 elif echo "$OS_TEST" |
grep -c sparc
>/dev
/null
; then
6446 MDCPUCFG_H
=_bsdi.cfg
6451 case "$target_os" in
6453 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h
6455 $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h
6457 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
6465 $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h
6467 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h
6469 $as_echo "#define HAVE_DLL 1" >>confdefs.h
6471 $as_echo "#define USE_DLFCN 1" >>confdefs.h
6473 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
6475 PR_MD_ASFILES
=os_BSD_OS_386_2.s
6479 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h
6481 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h
6483 $as_echo "#define HAVE_DLL 1" >>confdefs.h
6485 $as_echo "#define USE_DLFCN 1" >>confdefs.h
6487 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
6489 MKSHLIB
='$(CC) -o $@ $(DSO_LDOPTS)'
6491 DSO_LDOPTS
='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
6493 case "$target_os" in
6494 bsdi4.2
* | bsdi4.3
* | bsdi5.
*)
6495 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h
6497 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h
6503 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h
6505 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h
6507 $as_echo "#define HAVE_DLL 1" >>confdefs.h
6509 $as_echo "#define USE_DLFCN 1" >>confdefs.h
6511 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
6519 $as_echo "#define XP_UNIX 1" >>confdefs.h
6521 $as_echo "#define DARWIN 1" >>confdefs.h
6523 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
6525 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6527 AS
='$(CC) -x assembler-with-cpp'
6528 CFLAGS
="$CFLAGS -Wall -fno-common"
6529 case "${target_cpu}" in
6534 if test -n "$USE_64"; then
6544 if test "`echo $CC | grep -c '\-arch '`" = "0"; then
6545 CC
="$CC -arch $CPU_ARCH"
6547 ac_fn_c_check_header_mongrel
"$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
6548 if test "x$ac_cv_header_crt_externs_h" = xyes
; then :
6549 $as_echo "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
6555 DSO_LDOPTS
='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
6557 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
6558 STRIP
="$STRIP -x -S"
6561 MDCPUCFG_H
=_darwin.cfg
6562 PR_MD_CSRCS
=darwin.c
6563 PR_MD_ASFILES
=os_Darwin.s
6565 # Add Mac OS X support for loading CFM & CFBundle plugins
6566 if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then
6567 $as_echo "#define XP_MACOSX 1" >>confdefs.h
6571 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
6572 export MACOSX_DEPLOYMENT_TARGET
=$_MACOSX_DEPLOYMENT_TARGET
6573 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
6574 case "${target_cpu}" in
6576 export MACOSX_DEPLOYMENT_TARGET
=10.2
6579 export MACOSX_DEPLOYMENT_TARGET
=10.4
6585 if test "$MACOS_SDK_DIR"; then
6587 if test ! -d "$MACOS_SDK_DIR"; then
6588 as_fn_error $?
"SDK not found. When using --with-macos-sdk, you must
6589 specify a valid SDK. SDKs are installed when the optional cross-development
6590 tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5
6594 CC_VERSION
=`$CC -v 2>&1 | grep 'gcc version'`
6595 GCC_VERSION_FULL
=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
6596 GCC_VERSION
=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
6598 GCC_VERSION_MAJOR
=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
6599 if test "$GCC_VERSION_MAJOR" -lt "4" ; then
6600 SDK_C_FRAMEWORK
="-F${MACOS_SDK_DIR}/System/Library/Frameworks"
6601 if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then
6602 SDK_C_FRAMEWORK
="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks"
6605 SDK_C_INCLUDE
="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}"
6607 CFLAGS
="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
6609 CPP
="$CPP -nostdinc ${SDK_C_INCLUDE}"
6612 HOST_DARWIN_MAJOR
=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
6614 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then
6615 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}"
6617 MACOS_SDK_LIBS
="-Wl,-syslibroot,${MACOS_SDK_DIR}"
6620 LDFLAGS
="${MACOS_SDK_LIBS} $LDFLAGS"
6621 export NEXT_ROOT
=$MACOS_SDK_DIR
6623 if test -n "$CROSS_COMPILE" ; then
6624 HOST_CC
="NEXT_ROOT= $HOST_CC"
6625 HOST_CXX
="NEXT_ROOT= $HOST_CXX"
6628 CFLAGS
="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
6630 CPP
="$CPP -isysroot ${MACOS_SDK_DIR}"
6632 if test "$GCC_VERSION_FULL" != "4.0.0" ; then
6633 LDFLAGS
="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
6635 LDFLAGS
="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
6643 $as_echo "#define XP_UNIX 1" >>confdefs.h
6645 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
6647 $as_echo "#define SVR4 1" >>confdefs.h
6649 $as_echo "#define SYSV 1" >>confdefs.h
6651 $as_echo "#define DGUX 1" >>confdefs.h
6653 $as_echo "#define _DGUX_SOURCE 1" >>confdefs.h
6655 $as_echo "#define _POSIX4A_DRAFT6_SOURCE 1" >>confdefs.h
6660 MDCPUCFG_H
=_dgux.cfg
6665 if test -z "$USE_NSPR_THREADS"; then
6668 $as_echo "#define XP_UNIX 1" >>confdefs.h
6670 $as_echo "#define FREEBSD 1" >>confdefs.h
6672 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
6674 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6676 CFLAGS
="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
6677 MOZ_OBJFORMAT
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
6678 if test "$MOZ_OBJFORMAT" = "elf"; then
6683 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
6685 DSO_LDOPTS
='-shared -Wl,-soname -Wl,$(notdir $@)'
6686 MDCPUCFG_H
=_freebsd.cfg
6687 PR_MD_CSRCS
=freebsd.c
6691 $as_echo "#define XP_UNIX 1" >>confdefs.h
6693 $as_echo "#define HPUX 1" >>confdefs.h
6695 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
6697 # OSF1 and HPUX report the POLLHUP event for a socket when the
6698 # shutdown(SHUT_WR) operation is called for the remote end, even though
6699 # the socket is still writeable. Use select(), instead of poll(), to
6700 # workaround this problem.
6701 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h
6703 $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h
6705 DSO_LDOPTS
='-b +h $(notdir $@)'
6707 if test "$OS_TEST" = "ia64"; then
6709 DSO_LDOPTS
="$DSO_LDOPTS +b '\$\$ORIGIN'"
6710 CPU_ARCH_TAG
=_
$OS_TEST
6711 if test -z "$USE_64"; then
6714 PR_MD_ASFILES
=os_HPUX_ia64.s
6716 $as_echo "#define hppa 1" >>confdefs.h
6719 PR_MD_ASFILES
=os_HPUX.s
6721 if test -n "$USE_64"; then
6722 MDCPUCFG_H
=_hpux64.cfg
6724 MDCPUCFG_H
=_hpux32.cfg
6726 if test -z "$GNU_CC"; then
6732 ASFLAGS
="$ASFLAGS -x assembler-with-cpp"
6735 if test -n "$MOZILLA_CLIENT"; then
6736 DEFAULT_IMPL_STRATEGY
=_EMU
6739 if echo "$OS_RELEASE" |
grep ^A
.09 >/dev
/null
; then
6740 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
6742 $as_echo "#define HPUX9 1" >>confdefs.h
6744 DEFAULT_IMPL_STRATEGY
=_EMU
6748 if echo "$OS_RELEASE" |
egrep '^(A.09|B.10)' >/dev
/null
; then
6749 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
6753 if echo "$OS_RELEASE" |
egrep '^(B.10.10|B.10.20)' >/dev
/null
; then
6754 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
6758 if echo "$OS_RELEASE" |
egrep '^(B.10.10|B.10.20)' >/dev
/null
; then
6759 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h
6763 if echo "$OS_RELEASE" |
egrep '^(B.10.30|B.11)' >/dev
/null
; then
6764 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
6768 # HP-UX 11i v2 (B.11.23) or higher
6770 case "$OS_RELEASE" in
6771 [C-Z
]*|B.
[2-9]*|B
.1[2-9]*|B
.11.
[3-9]*|B
.11.2[3-9]*)
6777 if test "$OS_RELEASE" = "B.10.01"; then
6778 $as_echo "#define HPUX10 1" >>confdefs.h
6780 DEFAULT_IMPL_STRATEGY
=_EMU
6783 if test "$OS_RELEASE" = "B.10.10"; then
6784 $as_echo "#define HPUX10 1" >>confdefs.h
6786 $as_echo "#define HPUX10_10 1" >>confdefs.h
6788 DEFAULT_IMPL_STRATEGY
=_PTH
6791 if test "$OS_RELEASE" = "B.10.20"; then
6792 $as_echo "#define HPUX10 1" >>confdefs.h
6794 $as_echo "#define HPUX10_20 1" >>confdefs.h
6796 if test -z "$GNU_CC"; then
6797 CFLAGS
="$CFLAGS +DAportable +DS1.1"
6798 CXXFLAGS
="$CXXFLAGS +DAportable +DS1.1"
6800 DEFAULT_IMPL_STRATEGY
=_PTH
6803 if test "$OS_RELEASE" = "B.10.30"; then
6804 $as_echo "#define HPUX10 1" >>confdefs.h
6806 $as_echo "#define HPUX10_30 1" >>confdefs.h
6808 if test -z "$GNU_CC"; then
6809 CFLAGS
="$CFLAGS +DAportable +DS1.1"
6810 CXXFLAGS
="$CXXFLAGS +DAportable +DS1.1"
6812 DEFAULT_IMPL_STRATEGY
=_PTH
6815 if echo "$OS_RELEASE" |
grep ^B
.11 >/dev
/null
; then
6816 $as_echo "#define HPUX10 1" >>confdefs.h
6818 $as_echo "#define HPUX11 1" >>confdefs.h
6820 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
6822 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6824 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6826 if test -z "$GNU_CC"; then
6827 if test -z "$USE_64"; then
6828 if test "$OS_TEST" = "ia64"; then
6829 CFLAGS
="$CFLAGS +DD32"
6830 CXXFLAGS
="$CXXFLAGS +DD32"
6832 CFLAGS
="$CFLAGS +DAportable +DS2.0"
6833 CXXFLAGS
="$CXXFLAGS +DAportable +DS2.0"
6836 if test "$OS_TEST" = "ia64"; then
6837 CFLAGS
="$CFLAGS +DD64"
6838 CXXFLAGS
="$CXXFLAGS +DD64"
6840 CFLAGS
="$CFLAGS +DA2.0W +DS2.0"
6841 CXXFLAGS
="$CXXFLAGS +DA2.0W +DS2.0"
6845 DEFAULT_IMPL_STRATEGY
=_PTH
6848 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then
6852 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then
6854 if test "$USE_NSPR_THREADS"; then
6857 if test "$USE_USER_PTHREADS"; then
6864 $as_echo "#define XP_UNIX 1" >>confdefs.h
6866 $as_echo "#define IRIX 1" >>confdefs.h
6868 $as_echo "#define SVR4 1" >>confdefs.h
6870 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
6872 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6875 PR_MD_ASFILES
=os_Irix.s
6876 MKSHLIB
='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@'
6878 RESOLVE_LINK_SYMBOLS
=1
6879 if test -n "$USE_64"; then
6880 MDCPUCFG_H
=_irix64.cfg
6882 MDCPUCFG_H
=_irix32.cfg
6884 case "${target_os}" in
6886 $as_echo "#define IRIX6 1" >>confdefs.h
6894 $as_echo "#define IRIX5 1" >>confdefs.h
6903 if test "$GNU_CC"; then
6904 AS
='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
6905 CFLAGS
="$CFLAGS -Wall -Wno-format"
6906 _OPTIMIZE_FLAGS
="-O6"
6908 if test -n "$USE_N32"; then
6909 AS
='as -D_ASM $(INCLUDES) -n32'
6911 AS
='as -D_ASM $(INCLUDES)'
6913 CFLAGS
="$CFLAGS -fullwarn -xansi"
6914 if test "$USE_N32"; then
6915 _OPTIMIZE_FLAGS
="-O -OPT:Olimit=4000"
6917 _OPTIMIZE_FLAGS
="-O -Olimit 4000"
6919 if test "$USE_MDUPDATE"; then
6920 CFLAGS
="$CFLAGS -MDupdate \$(DEPENDENCIES)"
6924 CFLAGS
="$CFLAGS -multigot"
6925 DSO_LDOPTS
="-no_unresolved"
6926 if test "$USE_N32"; then
6927 CFLAGS
="$CFLAGS -n32 -woff 1209"
6928 DSO_LDOPTS
="$DSO_LDOPTS -n32"
6930 if test "$USE_64"; then
6931 CFLAGS
="$CFLAGS -64"
6933 CFLAGS
="$CFLAGS -32"
6938 CFLAGS
="$CFLAGS -xgot"
6942 if test "${target_os}" = "irix5.3"; then
6943 $as_echo "#define IRIX5_3 1" >>confdefs.h
6946 case "${target_os}" in
6948 if test -z "$GNU_CC"; then
6949 CFLAGS
="$CFLAGS -mips3"
6951 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h
6953 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h
6955 $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h
6961 $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h
6967 *-linux*|
*-gnu*|
*-k*bsd
*-gnu|
*-android*|
*-linuxandroid*)
6968 if test -z "$USE_NSPR_THREADS"; then
6972 $as_echo "#define XP_UNIX 1" >>confdefs.h
6974 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6976 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6979 *-android*|
*-linuxandroid*)
6981 $as_echo "#define LINUX 1" >>confdefs.h
6985 $as_echo "#define LINUX 1" >>confdefs.h
6989 CFLAGS
="$CFLAGS -Wall"
6990 CXXFLAGS
="$CXXFLAGS -Wall"
6991 MDCPUCFG_H
=_linux.cfg
6993 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
6995 DSO_LDOPTS
='-shared -Wl,-soname -Wl,$(notdir $@)'
6997 _DEBUG_FLAGS
="-g -fno-inline" # most people on linux use gcc/gdb, and that
6998 # combo is not yet good at debugging inlined
6999 # functions (even when using DWARF2 as the
7002 if echo "$OS_TEST" |
grep -c 86 >/dev
/null
; then
7007 CPU_ARCH_TAG
=_
${CPU_ARCH}
7008 case "${target_cpu}" in
7010 $as_echo "#define _ALPHA_ 1" >>confdefs.h
7012 $as_echo "#define __alpha 1" >>confdefs.h
7014 CFLAGS
="$CFLAGS -mieee"
7015 CXXFLAGS
="$CXXFLAGS -mieee"
7018 $as_echo "#define i386 1" >>confdefs.h
7020 PR_MD_ASFILES
=os_Linux_x86.s
7023 PR_MD_ASFILES
=os_Linux_ia64.s
7026 if test -n "$USE_64"; then
7027 PR_MD_ASFILES
=os_Linux_x86_64.s
7028 elif test -n "$USE_X32"; then
7029 PR_MD_ASFILES
=os_Linux_x86_64.s
7033 $as_echo "#define i386 1" >>confdefs.h
7035 PR_MD_ASFILES
=os_Linux_x86.s
7041 PR_MD_ASFILES
=os_Linux_ppc.s
7044 if test -n "$USE_64"; then
7048 PR_MD_ASFILES
=os_Linux_ppc.s
7052 CFLAGS
="$CFLAGS -m68020-60"
7053 CXXFLAGS
="$CXXFLAGS -m68020-60"
7058 *-mingw*|
*-msys*|
*-cygwin*|
*-mks*)
7059 $as_echo "#define XP_PC 1" >>confdefs.h
7061 $as_echo "#define WIN32 1" >>confdefs.h
7063 PR_MD_ARCH_DIR
=windows
7064 RESOLVE_LINK_SYMBOLS
=1
7066 if test -n "$GNU_CC"; then
7068 CXX
="$CXX -mwindows"
7070 MKSHLIB
='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
7072 # Use temp file for windres (bug 213281)
7073 RCFLAGS
='-O coff --use-temp-file'
7076 AR
='lib -NOLOGO -OUT:"$@"'
7078 RANLIB
='echo not_ranlib'
7079 STRIP
='echo not_strip'
7081 GARBAGE
='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
7086 # Determine compiler version
7088 _MSVC_VER_FILTER
='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
7090 CC_VERSION
=`${CC} -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
7091 if test -z "$CC_VERSION"; then
7092 as_fn_error $?
"Could not determine MSC version." "$LINENO" 5
7095 _CC_MAJOR_VERSION
=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'`
7096 _CC_MINOR_VERSION
=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'`
7097 _CC_RELEASE
=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'`
7098 _CC_BUILD
=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'`
7099 MSC_VER
=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
7101 if test "$_CC_MAJOR_VERSION" -eq "14"; then
7102 if test $_CC_RELEASE -gt 50727; then
7104 elif test $_CC_BUILD -ge 762; then
7107 $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h
7109 $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h
7111 elif test $_CC_MAJOR_VERSION -ge 15; then
7113 $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h
7115 $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h
7119 if test -n "$_USE_DYNAMICBASE"; then
7120 DLLFLAGS
="$DLLFLAGS -DYNAMICBASE"
7123 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic
7124 # tape manipulation utility (or something else)
7125 if test "$MSC_VER" -ge "1400"; then
7127 _MSMT_VER_FILTER
='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
7130 MSMT_TOOL
=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
7131 if test -n "$MSMT_TOOL"; then
7132 MSMANIFEST_TOOL_VERSION
=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
7133 if test -z "$MSMANIFEST_TOOL_VERSION"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5
7135 $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;}
7140 as_fn_error $?
"Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5
7144 CFLAGS
="$CFLAGS -W3 -nologo -GF -Gy"
7145 DLLFLAGS
="$DLLFLAGS -OUT:\"\$@\""
7149 PROFILE_GEN_CFLAGS
="-GL"
7150 PROFILE_GEN_LDFLAGS
="-LTCG:PGINSTRUMENT"
7151 PROFILE_USE_CFLAGS
="-GL -wd4624 -wd4952"
7152 PROFILE_USE_LDFLAGS
="-LTCG:PGUPDATE"
7154 if test "$MSC_VER" -ge "1800"; then
7155 CFLAGS
="$CFLAGS -FS"
7156 PROFILE_GEN_CFLAGS
="$PROFILE_GEN_CFLAGS -Gw"
7157 PROFILE_USE_CFLAGS
="$PROFILE_USE_CFLAGS -Gw"
7160 if test -z "$MOZ_OPTIMIZE"; then
7161 CFLAGS
="$CFLAGS -Od"
7164 if test "$USE_DEBUG_RTL" = 1; then
7165 if test -n "$USE_STATIC_RTL"; then
7166 CFLAGS
="$CFLAGS -MTd"
7168 CFLAGS
="$CFLAGS -MDd"
7171 if test -n "$USE_STATIC_RTL"; then
7172 CFLAGS
="$CFLAGS -MT"
7174 CFLAGS
="$CFLAGS -MD"
7178 if test -n "$MOZ_DEBUG"; then
7179 $as_echo "#define _DEBUG 1" >>confdefs.h
7182 DEFINES
="$DEFINES -U_DEBUG"
7185 if test -n "$MOZ_DEBUG_SYMBOLS"; then
7186 if test -n "$MOZ_OPTIMIZE"; then
7187 DLLFLAGS
="$DLLFLAGS -DEBUG -OPT:REF"
7188 LDFLAGS
="$LDFLAGS -DEBUG -OPT:REF"
7190 DLLFLAGS
="$DLLFLAGS -DEBUG"
7191 LDFLAGS
="$LDFLAGS -DEBUG"
7195 OS_DLLFLAGS
="-nologo -DLL -SUBSYSTEM:WINDOWS"
7196 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
7197 OS_DLLFLAGS
="$OS_DLLFLAGS -PDB:NONE"
7200 if test "$OS_TARGET" = "WINNT"; then
7201 CFLAGS
="$CFLAGS -GT"
7202 LIBNSPR
='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
7203 LIBPLC
='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
7205 LIBNSPR
='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
7206 LIBPLC
='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
7210 if test -n "$USE_STATIC_TLS"; then
7211 $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h
7215 if test "$OS_TARGET" = "WINNT"; then
7216 $as_echo "#define WINNT 1" >>confdefs.h
7219 $as_echo "#define WIN95 1" >>confdefs.h
7221 # undefine WINNT as some versions of mingw gcc define it by default
7222 DEFINES
="$DEFINES -UWINNT"
7223 $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h
7227 if test "$CPU_ARCH" = "x86"; then
7230 CPU_ARCH_TAG
=$CPU_ARCH
7233 if test "$USE_DEBUG_RTL" = 1; then
7237 case "$OS_TARGET" in
7239 MDCPUCFG_H
=_winnt.cfg
7242 MDCPUCFG_H
=_win95.cfg
7245 as_fn_error $?
"Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5
7249 case "$target_cpu" in
7251 if test -n "$USE_64"; then
7252 $as_echo "#define _AMD64_ 1" >>confdefs.h
7255 $as_echo "#define _X86_ 1" >>confdefs.h
7257 if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then
7258 CFLAGS
="$CFLAGS -arch:IA32"
7263 $as_echo "#define _AMD64_ 1" >>confdefs.h
7268 $as_echo "#define _IA64_ 1" >>confdefs.h
7273 $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h
7280 $as_echo "#define XP_UNIX 1" >>confdefs.h
7282 $as_echo "#define NETBSD 1" >>confdefs.h
7284 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
7286 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7288 if test -z "$USE_NSPR_THREADS"; then
7291 MDCPUCFG_H
=_netbsd.cfg
7292 PR_MD_CSRCS
=netbsd.c
7294 DSO_CFLAGS
='-fPIC -DPIC'
7295 CFLAGS
="$CFLAGS -ansi -Wall"
7296 CXXFLAGS
="$CXXFLAGS -ansi -Wall"
7297 MKSHLIB
='$(CC) -o $@ $(DSO_LDOPTS)'
7299 if test -z "$OBJECT_FMT"; then
7300 if echo __ELF__ |
${CC-cc} -E - |
grep -q __ELF__
2>/dev
/null
; then
7303 DSO_LDOPTS
='-shared'
7307 DSO_LDOPTS
='-shared -Wl,-soname,$(notdir $@)'
7311 if test "$LIBRUNPATH"; then
7312 DSO_LDOPTS
="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
7317 $as_echo "#define XP_UNIX 1" >>confdefs.h
7319 $as_echo "#define NTO 1" >>confdefs.h
7321 $as_echo "#define _QNX_SOURCE 1" >>confdefs.h
7323 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
7327 MKSHLIB
='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
7330 OS_LIBS
="$OS_LIBS -lsocket"
7331 _OPTIMIZE_FLAGS
="-O1"
7332 _DEBUG_FLAGS
="-gstabs"
7336 $as_echo "#define XP_UNIX 1" >>confdefs.h
7338 $as_echo "#define OPENBSD 1" >>confdefs.h
7340 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
7342 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7344 CFLAGS
="$CFLAGS -ansi -Wall"
7345 CXXFLAGS
="$CXXFLAGS -ansi -Wall"
7348 MDCPUCFG_H
=_openbsd.cfg
7349 PR_MD_CSRCS
=openbsd.c
7351 if test -z "$USE_NSPR_THREADS"; then
7354 DSO_LDOPTS
='-shared -fPIC -Wl,-soname,$(notdir $@)'
7355 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
7359 SHELL_OVERRIDE
="SHELL = /usr/bin/ksh"
7360 $as_echo "#define XP_UNIX 1" >>confdefs.h
7362 $as_echo "#define OSF1 1" >>confdefs.h
7364 $as_echo "#define _REENTRANT 1" >>confdefs.h
7366 # OSF1 and HPUX report the POLLHUP event for a socket when the
7367 # shutdown(SHUT_WR) operation is called for the remote end, even though
7368 # the socket is still writeable. Use select(), instead of poll(), to
7369 # workaround this problem.
7370 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h
7373 if echo "$OS_RELEASE" |
egrep -c '(V2.0|V3.2)' 2>/dev
/null
; then
7377 if test -z "$GNU_CC"; then
7378 CC
="$CC -std1 -ieee_with_inexact"
7379 if test "$OS_RELEASE" != "V2.0"; then
7380 CC
="$CC -readonly_strings"
7382 _OPTIMIZE_FLAGS
="$_OPTIMIZE_FLAGS -Olimit 4000"
7383 ac_fn_c_check_header_mongrel
"$LINENO" "machine/builtins.h" "ac_cv_header_machine_builtins_h" "$ac_includes_default"
7384 if test "x$ac_cv_header_machine_builtins_h" = xyes
; then :
7385 $as_echo "#define OSF1_HAVE_MACHINE_BUILTINS_H 1" >>confdefs.h
7391 CFLAGS
="$CFLAGS -mieee"
7392 CXXFLAGS
="$CXXFLAGS -mieee"
7395 if echo $OS_RELEASE |
egrep -c '(V2.0|V3.2)' 2>/dev
/null
; then
7396 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h
7399 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
7401 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
7404 if echo $OS_RELEASE |
grep -c V4.0
>/dev
/null
; then
7405 $as_echo "#define OSF1V4_MAP_PRIVATE_BUG 1" >>confdefs.h
7408 DSO_LDOPTS
='-shared -all -expect_unresolved "*" -soname $(notdir $@)'
7409 MDCPUCFG_H
=_osf1.cfg
7414 $as_echo "#define XP_UNIX 1" >>confdefs.h
7416 $as_echo "#define QNX 1" >>confdefs.h
7418 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
7426 $as_echo "#define XP_UNIX 1" >>confdefs.h
7428 $as_echo "#define RISCOS 1" >>confdefs.h
7430 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
7433 MDCPUCFG_H
=_riscos.cfg
7434 PR_MD_CSRCS
=riscos.c
7436 DSO_LDOPTS
='-shared -Wl,-soname -Wl,$(notdir $@)'
7437 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
7441 $as_echo "#define XP_UNIX 1" >>confdefs.h
7443 $as_echo "#define SCO 1" >>confdefs.h
7445 $as_echo "#define sco 1" >>confdefs.h
7447 $as_echo "#define SYSV 1" >>confdefs.h
7449 $as_echo "#define _SVID3 1" >>confdefs.h
7451 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
7453 CC
='cc -b elf -KPIC'
7454 CXX
='$(NSDEPTH)/build/hcpp CC +.cpp +w'
7457 DSO_LDOPTS
='-b elf -G'
7458 MDCPUCFG_H
=_scoos.cfg
7463 if test -z "$USE_NSPR_THREADS"; then
7466 $as_echo "#define XP_UNIX 1" >>confdefs.h
7468 $as_echo "#define SVR4 1" >>confdefs.h
7470 $as_echo "#define SYSV 1" >>confdefs.h
7472 $as_echo "#define __svr4 1" >>confdefs.h
7474 $as_echo "#define __svr4__ 1" >>confdefs.h
7476 $as_echo "#define SOLARIS 1" >>confdefs.h
7478 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
7481 MDCPUCFG_H
=_solaris.cfg
7482 PR_MD_CSRCS
=solaris.c
7484 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
7485 RESOLVE_LINK_SYMBOLS
=1
7486 case "${OS_RELEASE}" in
7490 # It is safe to use the -Bdirect linker flag on Solaris 10 or later.
7494 if test -n "$GNU_CC"; then
7496 if `$CC -print-prog-name=ld` -v 2>&1 |
grep -c GNU
>/dev
/null
; then
7499 DSO_LDOPTS
='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore'
7500 if test -n "$USE_B_DIRECT"; then
7501 DSO_LDOPTS
="$DSO_LDOPTS,-Bdirect"
7505 DSO_LDOPTS
='-G -h $(notdir $@) -z combreloc -z defs -z ignore'
7506 if test -n "$USE_B_DIRECT"; then
7507 DSO_LDOPTS
="$DSO_LDOPTS -Bdirect"
7510 if test -n "$GNU_CC"; then
7511 CFLAGS
="$CFLAGS -Wall"
7512 CXXFLAGS
="$CXXFLAGS -Wall"
7513 if test -n "$USE_MDUPDATE"; then
7514 CFLAGS
="$CFLAGS -MDupdate \$(DEPENDENCIES)"
7515 CXXFLAGS
="$CXXFLAGS -MDupdate \$(DEPENDENCIES)"
7517 GCC_AS
=`$CC -print-prog-name=as`
7518 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then
7522 CFLAGS
="$CFLAGS -xstrconst"
7523 CXXFLAGS
="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife"
7524 if test -z "$MOZ_OPTIMIZE"; then
7525 CFLAGS
="$CFLAGS -xs"
7526 CXXFLAGS
="$CXXFLAGS -xs"
7528 _OPTIMIZE_FLAGS
=-xO4
7530 if test -z "$GNU_AS"; then
7531 ASFLAGS
="$ASFLAGS -Wa,-P"
7533 if test -n "$USE_64"; then
7534 if test -n "$GNU_CC"; then
7538 if test "$OS_TEST" = "i86pc"; then
7539 CC
="$CC -xarch=amd64"
7540 CXX
="$CXX -xarch=amd64"
7543 CXX
="$CXX -xarch=v9"
7547 if test "$OS_TEST" = "i86pc"; then
7548 if test -z "$USE_64"; then
7549 $as_echo "#define i386 1" >>confdefs.h
7552 CPU_ARCH_TAG
=_
$OS_TEST
7553 # The default debug format, DWARF (-g), is not supported by gcc
7554 # on i386-ANY-sysv4/solaris, but the stabs format is. It is
7555 # assumed that the Solaris assembler /usr/ccs/bin/as is used.
7556 # If your gcc uses GNU as, you do not need the -Wa,-s option.
7557 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
7558 _DEBUG_FLAGS
=-gstabs
7559 if test -z "$GNU_AS"; then
7560 _DEBUG_FLAGS
="$_DEBUG_FLAGS -Wa,-s"
7564 case "${target_os}" in
7566 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
7570 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
7574 $as_echo "#define SOLARIS2_5 1" >>confdefs.h
7578 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
7580 # The lfcompile64(5) man page on Solaris 2.6 says:
7581 # For applications that do not wish to conform to the POSIX or
7582 # X/Open specifications, the 64-bit transitional interfaces
7583 # are available by default. No compile-time flags need to be
7585 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
7586 # The native compiler, gcc 2.8.x, and egcs don't have this problem.
7587 if test -n "$GNU_CC"; then
7588 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
7593 case "${target_os}" in
7605 # Solaris 8 or higher has IPv6.
7606 $as_echo "#define _PR_INET6 1" >>confdefs.h
7610 if test "$CPU_ARCH" = "sparc"; then
7611 # 64-bit Solaris SPARC requires V9 architecture, so the following
7613 if test -z "$USE_64"; then
7614 ULTRASPARC_LIBRARY
=nspr_flt
7617 # Purify requires that binaries linked against nspr also
7618 # be linked against -lrt (or -lposix4) so add it to OS_LIBS
7620 _librt
=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'`
7621 OS_LIBS
="$OS_LIBS $_librt"
7625 $as_echo "#define XP_UNIX 1" >>confdefs.h
7627 $as_echo "#define UNIXWARE 1" >>confdefs.h
7629 $as_echo "#define SVR4 1" >>confdefs.h
7631 $as_echo "#define SYSV 1" >>confdefs.h
7634 if echo $OS_RELEASE |
grep -c 2.1 2>/dev
/null
; then
7635 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
7637 CC
='$(NSDEPTH)/build/hcc cc'
7638 CXX
='$(NSDEPTH)/build/hcpp CC'
7639 MDCPUCFG_H
=_unixware.cfg
7641 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
7643 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
7645 $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h
7647 MDCPUCFG_H
=_unixware7.cfg
7649 PR_MD_CSRCS
=unixware.c
7656 # Check whether --with-symbian-sdk was given.
7657 if test "${with_symbian_sdk+set}" = set; then :
7658 withval
=$with_symbian_sdk; SYMBIAN_SDK_DIR
=$withval
7662 echo -----------------------------------------------------------------------------
7663 echo Building with Symbian SDK
in: $SYMBIAN_SDK_DIR
7664 echo -----------------------------------------------------------------------------
7666 $as_echo "#define XP_UNIX 1" >>confdefs.h
7668 $as_echo "#define SYMBIAN 1" >>confdefs.h
7670 $as_echo "#define __arm__ 1" >>confdefs.h
7672 $as_echo "#define __SYMBIAN32__ 1" >>confdefs.h
7674 $as_echo "#define _UNICODE 1" >>confdefs.h
7676 $as_echo "#define NDEBUG 1" >>confdefs.h
7678 $as_echo "#define __SUPPORT_CPP_EXCEPTIONS__ 1" >>confdefs.h
7680 $as_echo "#define MOZ_STDERR_TO_STDOUT 1" >>confdefs.h
7682 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
7684 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7693 MDCPUCFG_H
=_symbian.cfg
7694 PR_MD_CSRCS
=symbian.c
7696 RANLIB
='echo no ranlib '
7699 OS_EXE_CFLAGS
="$OS_EXE_CFLAGS -D__EXE__"
7700 CFLAGS
="$CFLAGS -MD -nostdinc"
7701 SYMBIAN_SYS_INCLUDE
="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis"
7702 echo -------------------------------------------------------
7703 echo SYMBIAN_SYS_INCLUDE is
: $SYMBIAN_SYS_INCLUDE
7704 echo -------------------------------------------------------
7705 case "$OS_TARGET" in
7711 WINSCW_LD_DIR
="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB"
7712 CFLAGS
="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)"
7713 SYMBIAN_SYS_INCLUDE
="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh"
7714 AR_FLAGS
="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@"
7715 $as_echo "#define _DEBUG 1" >>confdefs.h
7717 $as_echo "#define __CW32__ 1" >>confdefs.h
7719 $as_echo "#define __WINS__ 1" >>confdefs.h
7721 $as_echo "#define __WINSCW__ 1" >>confdefs.h
7723 DEFINES
="$DEFINES -U_WIN32"
7726 CFLAGS
="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float"
7727 CXXFLAGS
="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy"
7728 SYMBIAN_SYS_INCLUDE
="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h"
7729 $as_echo "#define __GCCE__ 1" >>confdefs.h
7731 $as_echo "#define __EABI__ 1" >>confdefs.h
7733 DEFINES
="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh"
7736 as_fn_error $?
"Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." "$LINENO" 5
7739 CFLAGS
="$CFLAGS ${SYMBIAN_SYS_INCLUDE}"
7743 $as_echo "#define XP_OS2 1" >>confdefs.h
7745 $as_echo "#define XP_PC 1" >>confdefs.h
7747 $as_echo "#define BSD_SELECT 1" >>confdefs.h
7749 $as_echo "#define TCPV40HDRS 1" >>confdefs.h
7758 RESOLVE_LINK_SYMBOLS
=1
7760 $as_echo "#define OS2 1" >>confdefs.h
7764 CFLAGS
="$CFLAGS -Wall -Zomf"
7765 CXXFLAGS
="$CFLAGS -Wall -Zomf"
7766 MKSHLIB
='$(CC) $(DSO_LDOPTS) -o $@'
7768 DSO_LDOPTS
='-Zomf -Zdll'
7770 _OPTIMIZE_FLAGS
="-O2 -s"
7771 _DEBUG_FLAGS
="-g -fno-inline"
7772 if test -n "$MOZ_OPTIMIZE"; then
7773 DSO_LDOPTS
="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
7777 if test -n "$MOZ_OS2_HIGH_MEMORY"; then
7778 LDFLAGS
="$LDFLAGS -Zhigh-mem"
7779 $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h
7783 # GCC for OS/2 currently predefines these, but we don't want them
7784 DEFINES
="$DEFINES -Uunix -U__unix -U__unix__"
7788 $as_echo "#define XP_UNIX 1" >>confdefs.h
7794 if test -z "$SKIP_LIBRARY_CHECKS"; then
7799 *-darwin*|
*-beos*|
*-os2*)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7804 if ${ac_cv_lib_dl_dlopen+:} false
; then :
7805 $as_echo_n "(cached) " >&6
7807 ac_check_lib_save_LIBS
=$LIBS
7809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7812 /* Override any GCC internal prototype to avoid an error.
7813 Use char because int might match the return type of a GCC
7814 builtin and then its argument prototype would still apply. */
7827 if ac_fn_c_try_link
"$LINENO"; then :
7828 ac_cv_lib_dl_dlopen
=yes
7830 ac_cv_lib_dl_dlopen
=no
7832 rm -f core conftest.err conftest.
$ac_objext \
7833 conftest
$ac_exeext conftest.
$ac_ext
7834 LIBS
=$ac_check_lib_save_LIBS
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7838 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
7839 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7840 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7841 OS_LIBS
="-ldl $OS_LIBS"
7853 if test $ac_cv_c_compiler_gnu = yes; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7855 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7856 if ${ac_cv_prog_gcc_traditional+:} false
; then :
7857 $as_echo_n "(cached) " >&6
7859 ac_pattern
="Autoconf.*'x'"
7860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7866 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
7867 ac_cv_prog_gcc_traditional
=yes
7869 ac_cv_prog_gcc_traditional
=no
7874 if test $ac_cv_prog_gcc_traditional = no
; then
7875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7881 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
7882 ac_cv_prog_gcc_traditional
=yes
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7889 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7890 if test $ac_cv_prog_gcc_traditional = yes; then
7891 CC
="$CC -traditional"
7896 LIBS
="$LIBS $OS_LIBS"
7897 for ac_func
in dladdr gettid lchown setpriority strerror syscall
7899 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7900 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7901 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7902 cat >>confdefs.h
<<_ACEOF
7903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7913 # Check whether --with-ccache was given.
7914 if test "${with_ccache+set}" = set; then :
7915 withval
=$with_ccache; CCACHE
=$withval
7921 if test "$CCACHE" != "no"; then
7922 if test -n "$CCACHE"; then
7923 if test "$CCACHE" = "yes"; then
7926 if test ! -e "$CCACHE"; then
7927 as_fn_error $?
"$CCACHE not found" "$LINENO" 5
7931 for ac_prog
in $CCACHE ccache
7933 # Extract the first word of "$ac_prog", so it can be a program name with args.
7934 set dummy
$ac_prog; ac_word
=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_path_CCACHE+:} false
; then :
7938 $as_echo_n "(cached) " >&6
7942 ac_cv_path_CCACHE
="$CCACHE" # Let the user override the test with a path.
7945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir
=.
7950 for ac_exec_ext
in '' $ac_executable_extensions; do
7951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_path_CCACHE
="$as_dir/$ac_word$ac_exec_ext"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 CCACHE
=$ac_cv_path_CCACHE
7964 if test -n "$CCACHE"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7966 $as_echo "$CCACHE" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7973 test -n "$CCACHE" && break
7976 if test -z "$CCACHE" -o "$CCACHE" = ":"; then
7977 as_fn_error $?
"ccache not found" "$LINENO" 5
7978 elif test -x "$CCACHE"; then
7982 as_fn_error $?
"$CCACHE is not executable" "$LINENO" 5
7986 # Check whether --enable-strip was given.
7987 if test "${enable_strip+set}" = set; then :
7988 enableval
=$enable_strip; if test "$enableval" = "yes"; then
7994 case "${target_os}" in
7996 if test -z "$GNU_CC"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5
7999 $as_echo_n "checking for +Olit support... " >&6; }
8000 if ${ac_cv_hpux_usable_olit_option+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 ac_cv_hpux_usable_olit_option
=no
8005 echo 'int main() { return 0; }' |
cat > conftest.c
8006 ${CC-cc} ${CFLAGS} +Olit
=all
-o conftest conftest.c
> conftest.out
2>&1
8007 if test $?
-eq 0; then
8008 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then
8009 ac_cv_hpux_usable_olit_option
=yes
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5
8016 $as_echo "$ac_cv_hpux_usable_olit_option" >&6; }
8018 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
8019 CFLAGS
="$CFLAGS +Olit=all"
8020 CXXFLAGS
="$CXXFLAGS +Olit=all"
8022 CFLAGS
="$CFLAGS +ESlit"
8023 CXXFLAGS
="$CXXFLAGS +ESlit"
8029 case "$target_os" in
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
8035 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
8036 if ${ac_cv_lib_pthreads_pthread_create+:} false
; then :
8037 $as_echo_n "(cached) " >&6
8039 ac_check_lib_save_LIBS
=$LIBS
8040 LIBS
="-lpthreads $LIBS"
8041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 /* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
8050 char pthread_create ();
8054 return pthread_create ();
8059 if ac_fn_c_try_link
"$LINENO"; then :
8060 ac_cv_lib_pthreads_pthread_create
=yes
8062 ac_cv_lib_pthreads_pthread_create
=no
8064 rm -f core conftest.err conftest.
$ac_objext \
8065 conftest
$ac_exeext conftest.
$ac_ext
8066 LIBS
=$ac_check_lib_save_LIBS
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
8069 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
8070 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
; then :
8071 _HAVE_PTHREADS
=1 _PTHREAD_LDFLAGS
="-lpthreads"
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8074 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8075 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
8076 $as_echo_n "(cached) " >&6
8078 ac_check_lib_save_LIBS
=$LIBS
8079 LIBS
="-lpthread $LIBS"
8080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8083 /* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8089 char pthread_create ();
8093 return pthread_create ();
8098 if ac_fn_c_try_link
"$LINENO"; then :
8099 ac_cv_lib_pthread_pthread_create
=yes
8101 ac_cv_lib_pthread_pthread_create
=no
8103 rm -f core conftest.err conftest.
$ac_objext \
8104 conftest
$ac_exeext conftest.
$ac_ext
8105 LIBS
=$ac_check_lib_save_LIBS
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8108 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8109 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
8110 _HAVE_PTHREADS
=1 _PTHREAD_LDFLAGS
="-lpthread"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
8113 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
8114 if ${ac_cv_lib_c_r_pthread_create+:} false
; then :
8115 $as_echo_n "(cached) " >&6
8117 ac_check_lib_save_LIBS
=$LIBS
8119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8122 /* Override any GCC internal prototype to avoid an error.
8123 Use char because int might match the return type of a GCC
8124 builtin and then its argument prototype would still apply. */
8128 char pthread_create ();
8132 return pthread_create ();
8137 if ac_fn_c_try_link
"$LINENO"; then :
8138 ac_cv_lib_c_r_pthread_create
=yes
8140 ac_cv_lib_c_r_pthread_create
=no
8142 rm -f core conftest.err conftest.
$ac_objext \
8143 conftest
$ac_exeext conftest.
$ac_ext
8144 LIBS
=$ac_check_lib_save_LIBS
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
8147 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
8148 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
; then :
8149 _HAVE_PTHREADS
=1 _PTHREAD_LDFLAGS
="-lc_r"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
8152 $as_echo_n "checking for pthread_create in -lc... " >&6; }
8153 if ${ac_cv_lib_c_pthread_create+:} false
; then :
8154 $as_echo_n "(cached) " >&6
8156 ac_check_lib_save_LIBS
=$LIBS
8158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8167 char pthread_create ();
8171 return pthread_create ();
8176 if ac_fn_c_try_link
"$LINENO"; then :
8177 ac_cv_lib_c_pthread_create
=yes
8179 ac_cv_lib_c_pthread_create
=no
8181 rm -f core conftest.err conftest.
$ac_objext \
8182 conftest
$ac_exeext conftest.
$ac_ext
8183 LIBS
=$ac_check_lib_save_LIBS
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
8186 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
8187 if test "x$ac_cv_lib_c_pthread_create" = xyes
; then :
8205 # Check whether --with-pthreads was given.
8206 if test "${with_pthreads+set}" = set; then :
8207 withval
=$with_pthreads; if test "$withval" = "yes"; then
8208 if test -n "$_HAVE_PTHREADS"; then
8213 as_fn_error $?
" --with-pthreads specified for a system without pthread support " "$LINENO" 5;
8220 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
8228 # Check whether --enable-user-pthreads was given.
8229 if test "${enable_user_pthreads+set}" = set; then :
8230 enableval
=$enable_user_pthreads; if test "$enableval" = "yes"; then
8231 if test -n "$_HAVE_PTHREADS"; then
8236 as_fn_error $?
" --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5;
8242 # Check whether --enable-nspr-threads was given.
8243 if test "${enable_nspr_threads+set}" = set; then :
8244 enableval
=$enable_nspr_threads; if test "$enableval" = "yes"; then
8255 # Check whether --with-bthreads was given.
8256 if test "${with_bthreads+set}" = set; then :
8257 withval
=$with_bthreads; if test "$withval" = "yes"; then
8267 fi # SKIP_LIBRARY_CHECKS
8269 # Check whether --enable-ipv6 was given.
8270 if test "${enable_ipv6+set}" = set; then :
8271 enableval
=$enable_ipv6; if test "$enableval" = "yes"; then
8279 if test -n "$USE_PTHREADS"; then
8281 ac_cv_have_dash_pthread
=no
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5
8283 $as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; }
8284 echo 'int main() { return 0; }' |
cat > conftest.c
8285 ${CC-cc} -pthread -o conftest conftest.c
> conftest.out
2>&1
8286 if test $?
-eq 0; then
8287 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
8288 ac_cv_have_dash_pthread
=yes
8289 case "$target_os" in
8291 # Freebsd doesn't use -pthread for compiles, it uses them for linking
8294 CFLAGS
="$CFLAGS -pthread"
8295 CXXFLAGS
="$CXXFLAGS -pthread"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5
8302 $as_echo "$ac_cv_have_dash_pthread" >&6; }
8304 ac_cv_have_dash_pthreads
=no
8305 if test "$ac_cv_have_dash_pthread" = "no"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5
8307 $as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; }
8308 echo 'int main() { return 0; }' |
cat > conftest.c
8309 ${CC-cc} -pthreads -o conftest conftest.c
> conftest.out
2>&1
8310 if test $?
-eq 0; then
8311 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
8312 ac_cv_have_dash_pthreads
=yes
8313 CFLAGS
="$CFLAGS -pthreads"
8314 CXXFLAGS
="$CXXFLAGS -pthreads"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5
8319 $as_echo "$ac_cv_have_dash_pthreads" >&6; }
8324 if test "$ac_cv_have_dash_pthreads" = "yes"; then
8329 $as_echo "#define _REENTRANT 1" >>confdefs.h
8331 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
8333 if test "$ac_cv_have_dash_pthread" = "yes"; then
8334 _PTHREAD_LDFLAGS
="-pthread"
8336 _PTHREAD_LDFLAGS
="-lc_r"
8340 if test "$ac_cv_have_dash_pthread" = "yes"; then
8341 _PTHREAD_LDFLAGS
="-pthread"
8345 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
8347 if test "$ac_cv_have_dash_pthread" = "yes"; then
8352 if test "$ac_cv_have_dash_pthread" = "yes"; then
8353 _PTHREAD_LDFLAGS
=-pthread
8356 *-linux*|
*-gnu*|
*-k*bsd
*-gnu)
8357 $as_echo "#define _REENTRANT 1" >>confdefs.h
8363 if test -n "$USE_USER_PTHREADS"; then
8373 if test -n "$USE_NSPR_THREADS"; then
8374 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8377 case "$target_os" in
8379 if test -z "$USE_PTHREADS"; then
8380 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h
8385 if test -z "$USE_NSPR_THREADS"; then
8386 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8391 if test -z "$USE_NSPR_THREADS"; then
8392 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8395 if test -n "$USE_PTHREADS"; then
8396 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8401 if test -z "$USE_NSPR_THREADS"; then
8402 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8405 if test -n "$USE_PTHREADS"; then
8406 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8413 if test -n "$USE_PTHREADS"; then
8414 $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h
8419 if test -n "$USE_NSPR_THREADS"; then
8420 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8425 if test -n "$USE_NSPR_THREADS"; then
8426 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8429 if test "$USE_PTHREADS"; then
8430 if echo "$OS_RELEASE" |
egrep '^(B.10.10|B.10.20)' >/dev
/null
; then
8431 $as_echo "#define _REENTRANT 1" >>confdefs.h
8433 $as_echo "#define _PR_DCETHREADS 1" >>confdefs.h
8436 cat >>confdefs.h
<<_ACEOF
8437 #define _POSIX_C_SOURCE 199506L
8440 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8444 if test "$USE_USER_PTHREADS"; then
8445 cat >>confdefs.h
<<_ACEOF
8446 #define _POSIX_C_SOURCE 199506L
8452 if test "${target_os}" = "irix6.5"; then
8453 if test -n "$USE_PTHREADS"; then
8454 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h
8456 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h
8461 *-linux*|
*-gnu*|
*-k*bsd
*-gnu)
8462 if test -n "$USE_NSPR_THREADS"; then
8463 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8467 *-mingw*|
*-msys*|
*-cygwin*|
*-mks*|
*-os2*|
*-beos*)
8472 *-netbsd*|
*-openbsd*)
8473 if test -n "$USE_NSPR_THREADS"; then
8474 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8479 if test -n "$USE_NSPR_THREADS"; then
8480 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8483 if test -n "$USE_PTHREADS"; then
8484 if echo $OS_RELEASE |
egrep -c '(V2.0|V3.2)' 2>/dev
/null
; then
8487 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8493 if test -n "$USE_NSPR_THREADS"; then
8494 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8497 if test -n "$USE_PTHREADS"; then
8498 $as_echo "#define _REENTRANT 1" >>confdefs.h
8500 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8502 if test "$OS_TEST" = "i86pc"; then
8503 if test -n "$USE_64"; then
8504 PR_MD_ASFILES
=os_SunOS_x86_64.s
8506 PR_MD_ASFILES
=os_SunOS_x86.s
8509 if test -n "$USE_64"; then
8510 PR_MD_ASFILES
=os_SunOS_sparcv9.s
8516 if test -n "$USE_PTHREADS"; then
8517 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h
8519 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h
8525 OS_LIBS
="$_PTHREAD_LDFLAGS $OS_LIBS"
8527 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
8528 _OPTIMIZE_FLAGS
="$_SAVE_OPTIMIZE_FLAGS"
8531 if test -n "$_SAVE_DEBUG_FLAGS"; then
8532 _DEBUG_FLAGS
="$_SAVE_DEBUG_FLAGS"
8535 if test -n "$MOZ_OPTIMIZE"; then
8536 CFLAGS
="$CFLAGS $_OPTIMIZE_FLAGS"
8537 CXXFLAGS
="$CXXFLAGS $_OPTIMIZE_FLAGS"
8540 if test -n "$MOZ_DEBUG_SYMBOLS"; then
8541 CFLAGS
="$CFLAGS $_DEBUG_FLAGS"
8542 CXXFLAGS
="$CXXFLAGS $_DEBUG_FLAGS"
8545 if test -n "$MOZ_OPTIMIZE"; then
8551 if test -n "$USE_64"; then
8555 RELEASE_OBJDIR_NAME
="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
8557 case "$target_os" in
8559 CC
="\$(CYGWIN_WRAPPER) $CC"
8560 CXX
="\$(CYGWIN_WRAPPER) $CXX"
8561 RC
="\$(CYGWIN_WRAPPER) $RC"
8565 # Check whether --enable-wrap-malloc was given.
8566 if test "${enable_wrap_malloc+set}" = set; then :
8567 enableval
=$enable_wrap_malloc; if test "$enableval" = "yes"; then
8573 if test -n "$_WRAP_MALLOC"; then
8574 if test -n "$GNU_CC"; then
8575 WRAP_LDFLAGS
="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign"
8576 WRAP_LDFLAGS
="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete"
8577 WRAP_LDFLAGS
="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup"
8578 WRAP_LDFLAGS
="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size"
8580 as_fn_error $?
"--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5
8585 # Check whether --with-wrap-malloc was given.
8586 if test "${with_wrap_malloc+set}" = set; then :
8587 withval
=$with_wrap_malloc; WRAP_LDFLAGS
="${WRAP_LDFLAGS} $withval"
8707 lib/libc/include/Makefile
8708 lib/libc/src/Makefile
8713 pr/include/md/Makefile
8714 pr/include/obsolete/Makefile
8715 pr/include/private/Makefile
8718 pr/src/linking/Makefile
8719 pr/src/malloc/Makefile
8721 pr/src/md/${PR_MD_ARCH_DIR}/Makefile
8722 pr/src/memory/Makefile
8723 pr/src/misc/Makefile
8724 pr/src/threads/Makefile
8726 pr/tests/dll/Makefile
8729 if test "$OS_TARGET" = "Linux"; then
8730 MAKEFILES
="$MAKEFILES
8733 elif test "$OS_TARGET" = "SunOS"; then
8734 MAKEFILES
="$MAKEFILES
8735 pkg/solaris/Makefile
8736 pkg/solaris/SUNWpr/Makefile
8737 pkg/solaris/SUNWprd/Makefile
8741 if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
8742 MAKEFILES
="$MAKEFILES
8743 pr/src/threads/combined/Makefile
8745 elif test -n "$USE_PTHREADS"; then
8746 MAKEFILES
="$MAKEFILES
8747 pr/src/pthreads/Makefile
8749 elif test -n "$USE_BTHREADS"; then
8750 MAKEFILES
="$MAKEFILES
8751 pr/src/bthreads/Makefile
8755 if test -n "$USE_CPLUS"; then
8756 MAKEFILES
="$MAKEFILES
8757 pr/src/cplus/Makefile
8758 pr/src/cplus/tests/Makefile
8762 echo $MAKEFILES > unallmakefiles
8764 ac_config_files
="$ac_config_files $MAKEFILES"
8766 ac_config_commands
="$ac_config_commands default"
8768 cat >confcache
<<\_ACEOF
8769 # This file is a shell script that caches the results of configure
8770 # tests run on this system so they can be shared between configure
8771 # scripts and configure runs, see configure's option --config-cache.
8772 # It is not useful on other systems. If it contains results you don't
8773 # want to keep, you may remove or edit it.
8775 # config.status only pays attention to the cache file if you give it
8776 # the --recheck option to rerun configure.
8778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8784 # The following way of writing the cache mishandles newlines in values,
8785 # but we know of no workaround that is simple, portable, and efficient.
8786 # So, we kill variables containing newlines.
8787 # Ultrix sh set writes to stderr and can't be redirected directly,
8788 # and sets the high bit in the cache file unless we assign to the vars.
8790 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8791 eval ac_val
=\$
$ac_var
8795 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8799 _ | IFS | as_nl
) ;; #(
8800 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8801 *) { eval $ac_var=; unset $ac_var;} ;;
8807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8808 *${as_nl}ac_space
=\
*)
8809 # `set' does not quote correctly, so add quotes: double-quote
8810 # substitution turns \\\\ into \\, and sed turns \\ into \.
8813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8816 # `set' quotes correctly as required by POSIX, so do not add quotes.
8817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8830 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8831 if test -w "$cache_file"; then
8832 if test "x$cache_file" != "x/dev/null"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8834 $as_echo "$as_me: updating cache $cache_file" >&6;}
8835 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8836 cat confcache
>"$cache_file"
8838 case $cache_file in #(
8840 mv -f confcache
"$cache_file"$$
&&
8841 mv -f "$cache_file"$$
"$cache_file" ;; #(
8843 mv -f confcache
"$cache_file" ;;
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8854 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8855 # Let make expand exec_prefix.
8856 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8858 # Transform confdefs.h into DEFS.
8859 # Protect against shell expansion while executing Makefile rules.
8860 # Protect against Makefile macro expansion.
8862 # If the first sed substitution is executed (which looks for macros that
8863 # take arguments), then branch to the quote section. Otherwise,
8864 # look for a macro that doesn't take arguments.
8874 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8876 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8880 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8893 DEFS
=`sed -n "$ac_script" confdefs.h`
8899 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8900 # 1. Remove the extension, and $U if already installed.
8901 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8902 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8904 # will be set to the directory where LIBOBJS objects are built.
8905 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8906 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8910 LTLIBOBJS
=$ac_ltlibobjs
8914 : "${CONFIG_STATUS=./config.status}"
8916 ac_clean_files_save
=$ac_clean_files
8917 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8919 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8921 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8923 # Generated by $as_me.
8924 # Run this file to recreate the current configuration.
8925 # Compiler output produced by configure, useful for debugging
8926 # configure, is in config.log if it exists.
8932 SHELL=\${CONFIG_SHELL-$SHELL}
8935 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8936 ## -------------------- ##
8937 ## M4sh Initialization. ##
8938 ## -------------------- ##
8940 # Be more Bourne compatible
8941 DUALCASE
=1; export DUALCASE
# for MKS sh
8942 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8946 # is contrary to our usage. Disable this feature.
8947 alias -g '${1+"$@"}'='"$@"'
8948 setopt NO_GLOB_SUBST
8950 case `(set -o) 2>/dev/null` in #(
8962 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8963 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8966 # Prefer a ksh shell builtin over an external printf program on Solaris,
8967 # but without wasting forks for bash or zsh.
8968 if test -z "$BASH_VERSION$ZSH_VERSION" \
8969 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8970 as_echo='print
-r --'
8971 as_echo_n='print
-rn --'
8972 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8973 as_echo='printf %s
\n'
8974 as_echo_n='printf %s
'
8976 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8977 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8978 as_echo_n='/usr
/ucb
/echo -n'
8980 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8981 as_echo_n_body='eval
8985 expr "X$arg" : "X\\(.*\\)$as_nl";
8986 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8988 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8990 export as_echo_n_body
8991 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8994 as_echo='sh
-c $as_echo_body as_echo
'
8997 # The user is always right.
8998 if test "${PATH_SEPARATOR+set}" != set; then
9000 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9001 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9008 # We need space, tab and new line, in precisely that order. Quoting is
9009 # there to prevent editors from complaining about space-tab.
9010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9011 # splitting by setting IFS to empty value.)
9014 # Find who we are. Look in the path if we contain no directory separator.
9017 *[\\/]* ) as_myself=$0 ;;
9018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 test -z "$as_dir" && as_dir=.
9023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9029 # We did not find ourselves, most probably we were run as `sh COMMAND'
9030 # in which case we are not to be found in the path.
9031 if test "x$as_myself" = x
; then
9034 if test ! -f "$as_myself"; then
9035 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9039 # Unset variables that we do not need and which cause bugs (e.g. in
9040 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9041 # suppresses any "Segmentation fault" message there. '((' could
9042 # trigger a bug in pdksh 5.2.14.
9043 for as_var
in BASH_ENV ENV MAIL MAILPATH
9044 do eval test x\
${$as_var+set} = xset \
9045 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9058 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9061 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9062 # ----------------------------------------
9063 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9064 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9065 # script with STATUS, using 1 if that was 0.
9068 as_status
=$1; test $as_status -eq 0 && as_status
=1
9070 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9071 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9073 $as_echo "$as_me: error: $2" >&2
9074 as_fn_exit
$as_status
9078 # as_fn_set_status STATUS
9079 # -----------------------
9080 # Set $? to STATUS, without forking.
9084 } # as_fn_set_status
9088 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9098 # Portably unset VAR.
9101 { eval $1=; unset $1;}
9103 as_unset
=as_fn_unset
9104 # as_fn_append VAR VALUE
9105 # ----------------------
9106 # Append the text in VALUE to the end of the definition contained in VAR. Take
9107 # advantage of any shell optimizations that allow amortized linear growth over
9108 # repeated appends, instead of the typical quadratic growth present in naive
9110 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9111 eval 'as_fn_append ()
9122 # as_fn_arith ARG...
9123 # ------------------
9124 # Perform arithmetic evaluation on the ARGs, and store the result in the
9125 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9126 # must be portable across $(()) and expr.
9127 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9128 eval 'as_fn_arith ()
9135 as_val
=`expr "$@" || test $? -eq 1`
9140 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9141 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9147 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9148 as_basename
=basename
9153 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9159 as_me
=`$as_basename -- "$0" ||
9160 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9161 X"$0" : 'X\(//\)$' \| \
9162 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9164 sed '/^.*\/\([^/][^/]*\)\/*$/{
9178 # Avoid depending upon Character Ranges.
9179 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9180 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9181 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9182 as_cr_digits
='0123456789'
9183 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9185 ECHO_C
= ECHO_N
= ECHO_T
=
9186 case `echo -n x` in #(((((
9188 case `echo 'xy\c'` in
9189 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9191 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9198 rm -f conf$$ conf$$.exe conf$$.
file
9199 if test -d conf$$.dir
; then
9200 rm -f conf$$.dir
/conf$$.
file
9203 mkdir conf$$.dir
2>/dev
/null
9205 if (echo >conf$$.
file) 2>/dev
/null
; then
9206 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9208 # ... but there are two gotchas:
9209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9211 # In both cases, we have to default to `cp -pR'.
9212 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9222 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9223 rmdir conf$$.dir
2>/dev
/null
9228 # Create "$as_dir" as a directory, including parents if necessary.
9233 -*) as_dir
=.
/$as_dir;;
9235 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9239 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9240 *) as_qdir
=$as_dir;;
9242 as_dirs
="'$as_qdir' $as_dirs"
9243 as_dir
=`$as_dirname -- "$as_dir" ||
9244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9245 X"$as_dir" : 'X\(//\)[^/]' \| \
9246 X"$as_dir" : 'X\(//\)$' \| \
9247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9248 $as_echo X"$as_dir" |
9249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9266 test -d "$as_dir" && break
9268 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9269 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9273 if mkdir
-p .
2>/dev
/null
; then
9274 as_mkdir_p
='mkdir -p "$as_dir"'
9276 test -d .
/-p && rmdir .
/-p
9281 # as_fn_executable_p FILE
9282 # -----------------------
9283 # Test if FILE is an executable regular file.
9284 as_fn_executable_p
()
9286 test -f "$1" && test -x "$1"
9287 } # as_fn_executable_p
9289 as_executable_p
=as_fn_executable_p
9291 # Sed expression to map a string onto a valid CPP name.
9292 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9294 # Sed expression to map a string onto a valid variable name.
9295 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9299 ## ----------------------------------- ##
9300 ## Main body of $CONFIG_STATUS script. ##
9301 ## ----------------------------------- ##
9303 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9306 # Save the log message, to keep $0 and so on meaningful, and to
9307 # report actual input values of CONFIG_FILES etc. instead of their
9308 # values after options handling.
9310 This file was extended by $as_me, which was
9311 generated by GNU Autoconf 2.69. Invocation command line was
9313 CONFIG_FILES = $CONFIG_FILES
9314 CONFIG_HEADERS = $CONFIG_HEADERS
9315 CONFIG_LINKS = $CONFIG_LINKS
9316 CONFIG_COMMANDS = $CONFIG_COMMANDS
9319 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9324 case $ac_config_files in *"
9325 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9331 # Files that config.status was made for.
9332 config_files="$ac_config_files"
9333 config_commands="$ac_config_commands"
9337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9339 \`$as_me' instantiates files and other configuration actions
9340 from templates according to the current configuration. Unless the files
9341 and actions are specified as TAGs, all are instantiated by default.
9343 Usage: $0 [OPTION]... [TAG]...
9345 -h, --help print this help, then exit
9346 -V, --version print version number and configuration settings, then exit
9347 --config print configuration, then exit
9348 -q, --quiet, --silent
9349 do not print progress messages
9350 -d, --debug don't remove temporary files
9351 --recheck update $as_me by reconfiguring in the same conditions
9352 --file=FILE[:TEMPLATE]
9353 instantiate the configuration file FILE
9355 Configuration files:
9358 Configuration commands:
9361 Report bugs to the package provider."
9364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9365 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9368 configured by $0, generated by GNU Autoconf 2.69,
9369 with options \\"\$ac_cs_config\\"
9371 Copyright (C) 2012 Free Software Foundation, Inc.
9372 This config.status script is free software; the Free Software Foundation
9373 gives unlimited permission to copy, distribute and modify it."
9377 test -n "\$AWK" || AWK=awk
9380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9381 # The default lists apply if the user does not specify any file.
9387 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9388 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9392 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9404 # Handling of the options.
9405 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9407 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9408 $as_echo "$ac_cs_version"; exit ;;
9409 --config |
--confi |
--conf |
--con |
--co |
--c )
9410 $as_echo "$ac_cs_config"; exit ;;
9411 --debug |
--debu |
--deb |
--de |
--d |
-d )
9413 --file |
--fil |
--fi |
--f )
9416 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9417 '') as_fn_error $?
"missing file argument" ;;
9419 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9420 ac_need_defaults
=false
;;
9421 --he |
--h |
--help |
--hel |
-h )
9422 $as_echo "$ac_cs_usage"; exit ;;
9423 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9424 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9428 -*) as_fn_error $?
"unrecognized option: \`$1'
9429 Try \`$0 --help' for more information." ;;
9431 *) as_fn_append ac_config_targets
" $1"
9432 ac_need_defaults
=false
;;
9438 ac_configure_extra_args
=
9440 if $ac_cs_silent; then
9442 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9447 if \$ac_cs_recheck; then
9448 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9450 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9451 CONFIG_SHELL='$SHELL'
9457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9462 ## Running $as_me. ##
9468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9473 # Handling of arguments.
9474 for ac_config_target
in $ac_config_targets
9476 case $ac_config_target in
9477 "$MAKEFILES") CONFIG_FILES
="$CONFIG_FILES $MAKEFILES" ;;
9478 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9480 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9485 # If the user did not use the arguments to specify the items to instantiate,
9486 # then the envvar interface is used. Set only those that are not.
9487 # We use the long form for the default assignment because of an extremely
9488 # bizarre bug on SunOS 4.1.3.
9489 if $ac_need_defaults; then
9490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9494 # Have a temporary directory for convenience. Make it in the build tree
9495 # simply because there is no reason against having it here, and in addition,
9496 # creating and moving files from /tmp can sometimes cause problems.
9497 # Hook for its removal unless debugging.
9498 # Note that there is a small window in which the directory will not be cleaned:
9499 # after its creation but before its name has been assigned to `$tmp'.
9503 trap 'exit_status=$?
9505 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9507 trap 'as_fn_exit 1' 1 2 13 15
9509 # Create a (secure) tmp directory for tmp files.
9512 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9516 tmp
=.
/conf$$
-$RANDOM
9517 (umask 077 && mkdir
"$tmp")
9518 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9521 # Set up the scripts for CONFIG_FILES section.
9522 # No need to generate them if there are no CONFIG_FILES.
9523 # This happens for instance with `./config.status config.h'.
9524 if test -n "$CONFIG_FILES"; then
9527 ac_cr
=`echo X | tr X '\015'`
9528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9529 # But we know of no other shell where ac_cr would be empty at this
9530 # point, so we can use a bashism as a fallback.
9531 if test "x$ac_cr" = x
; then
9532 eval ac_cr
=\$
\'\\r
\'
9534 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9546 echo "cat >conf$$subs.awk <<_ACEOF" &&
9547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9550 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9551 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9553 for ac_last_try in false false false false false :; do
9554 . ./conf$$subs.sh ||
9555 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9557 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9558 if test $ac_delim_n = $ac_delim_num; then
9560 elif $ac_last_try; then
9561 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9563 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9569 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9573 s/^/S["/; s
/!.
*/"]=/
9583 s/\(.\{148\}\)..*/\1/
9585 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9590 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9597 s/\(.\{148\}\)..*/\1/
9599 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9603 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9608 ' <conf$$subs.awk | sed '
9613 ' >>$CONFIG_STATUS || ac_write_fail=1
9614 rm -f conf$$subs.awk
9615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9617 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9618 for (key in S) S_is_set[key] = 1
9624 nfields = split(line, field, "@
")
9626 len = length(field[1])
9627 for (i = 2; i < nfields; i++) {
9629 keylen = length(key)
9630 if (S_is_set[key]) {
9632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9633 len += length(value) + length(field[++i])
9644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9645 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9646 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9649 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9650 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9653 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9654 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9655 # trailing colons and then remove the whole line if VPATH becomes empty
9656 # (actually we leave an empty line to preserve line numbers).
9657 if test "x
$srcdir" = x.; then
9658 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9677 fi # test -n "$CONFIG_FILES"
9680 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
9685 :[FHLC]) ac_mode=$ac_tag; continue;;
9687 case $ac_mode$ac_tag in
9689 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
9690 :[FH]-) ac_tag=-:-;;
9691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9708 -) ac_f="$ac_tmp/stdin";;
9709 *) # Look for the file first in the build tree, then in the source tree
9710 # (if the path is not absolute). The absolute path cannot be DOS-style,
9711 # because $ac_f cannot contain `:'.
9715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9717 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
9720 as_fn_append ac_file_inputs " '$ac_f'"
9723 # Let's still pretend it is `configure' which instantiates (i.e., don't
9724 # use $as_me), people would be surprised to read:
9725 # /* config.h. Generated by config.status. */
9726 configure_input='Generated from '`
9727 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9729 if test x"$ac_file" != x-; then
9730 configure_input="$ac_file.
$configure_input"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
9732 $as_echo "$as_me: creating
$ac_file" >&6;}
9734 # Neutralize special characters interpreted by sed in replacement strings.
9735 case $configure_input in #(
9736 *\&* | *\|* | *\\* )
9737 ac_sed_conf_input=`$as_echo "$configure_input" |
9738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9739 *) ac_sed_conf_input=$configure_input;;
9743 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
9744 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
9749 ac_dir=`$as_dirname -- "$ac_file" ||
9750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9751 X"$ac_file" : 'X\(//\)[^/]' \| \
9752 X"$ac_file" : 'X\(//\)$' \| \
9753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9754 $as_echo X"$ac_file" |
9755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9772 as_dir="$ac_dir"; as_fn_mkdir_p
9776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9779 # A "..
" for each directory in $ac_dir_suffix.
9780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9781 case $ac_top_builddir_sub in
9782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9786 ac_abs_top_builddir=$ac_pwd
9787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9788 # for backward compatibility:
9789 ac_top_builddir=$ac_top_build_prefix
9792 .) # We are building in place.
9794 ac_top_srcdir=$ac_top_builddir_sub
9795 ac_abs_top_srcdir=$ac_pwd ;;
9796 [\\/]* | ?:[\\/]* ) # Absolute name.
9797 ac_srcdir=$srcdir$ac_dir_suffix;
9798 ac_top_srcdir=$srcdir
9799 ac_abs_top_srcdir=$srcdir ;;
9801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9802 ac_top_srcdir=$ac_top_build_prefix$srcdir
9803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9817 # If the template does not know about datarootdir, expand it.
9818 # FIXME: This hack should be removed a few years after 2.60.
9819 ac_datarootdir_hack=; ac_datarootdir_seen=
9830 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
9831 *datarootdir*) ac_datarootdir_seen=yes;;
9832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
9834 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
9836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9837 ac_datarootdir_hack='
9838 s&@datadir@&$datadir&g
9839 s&@docdir@&$docdir&g
9840 s&@infodir@&$infodir&g
9841 s&@localedir@&$localedir&g
9842 s&@mandir@&$mandir&g
9843 s&\\\${datarootdir}&$datarootdir&g' ;;
9847 # Neutralize VPATH when `$srcdir' = `.'.
9848 # Shell code in configure.ac might set extrasub.
9849 # FIXME: do we really want to maintain this feature?
9850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9851 ac_sed_extra="$ac_vpsub
9854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9856 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9857 s|@configure_input@|
$ac_sed_conf_input|
;t t
9858 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9859 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9860 s
&@srcdir@
&$ac_srcdir&;t t
9861 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9862 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9863 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9864 s
&@builddir@
&$ac_builddir&;t t
9865 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9866 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9867 $ac_datarootdir_hack
9869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9870 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9875 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9877 which seems to be undefined. Please make sure it is defined" >&5
9878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9879 which seems to be undefined. Please make sure it is defined" >&2;}
9881 rm -f "$ac_tmp/stdin"
9883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9890 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9891 $as_echo "$as_me: executing $ac_file commands" >&6;}
9896 case $ac_file$ac_mode in
9897 "default":C) chmod +x config/nspr-config ;;
9905 ac_clean_files=$ac_clean_files_save
9907 test $ac_write_fail = 0 ||
9908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9911 # configure is writing to config.log, and then calls config.status.
9912 # config.status does its own redirection, appending to config.log.
9913 # Unfortunately, on DOS this fails, as config.log is still kept open
9914 # by configure, so config.status won't be able to
write to it
; its
9915 # output is simply discarded. So we exec the FD to /dev/null,
9916 # effectively closing config.log, so it can be properly (re)opened and
9917 # appended to by config.status. When coming back to configure, we
9918 # need to make the FD available again.
9919 if test "$no_create" != yes; then
9921 ac_config_status_args
=
9922 test "$silent" = yes &&
9923 ac_config_status_args
="$ac_config_status_args --quiet"
9925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9928 # would make configure fail if this is the last instruction.
9929 $ac_cs_success || as_fn_exit
1
9931 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9933 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}