Debian Codegraph @

nsprpub/configure

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