michael@0: #! /bin/sh michael@0: # Guess values for system-dependent variables and create Makefiles. michael@0: # Generated by GNU Autoconf 2.69. michael@0: # michael@0: # michael@0: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. michael@0: # michael@0: # michael@0: # This configure script is free software; the Free Software Foundation michael@0: # gives unlimited permission to copy, distribute and modify it. michael@0: ## -------------------- ## michael@0: ## M4sh Initialization. ## michael@0: ## -------------------- ## michael@0: michael@0: # Be more Bourne compatible michael@0: DUALCASE=1; export DUALCASE # for MKS sh michael@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '${1+"$@"}'='"$@"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case `(set -o) 2>/dev/null` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: as_nl=' michael@0: ' michael@0: export as_nl michael@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. michael@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: # Prefer a ksh shell builtin over an external printf program on Solaris, michael@0: # but without wasting forks for bash or zsh. michael@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ michael@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='print -r --' michael@0: as_echo_n='print -rn --' michael@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='printf %s\n' michael@0: as_echo_n='printf %s' michael@0: else michael@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then michael@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' michael@0: as_echo_n='/usr/ucb/echo -n' michael@0: else michael@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' michael@0: as_echo_n_body='eval michael@0: arg=$1; michael@0: case $arg in #( michael@0: *"$as_nl"*) michael@0: expr "X$arg" : "X\\(.*\\)$as_nl"; michael@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; michael@0: esac; michael@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" michael@0: ' michael@0: export as_echo_n_body michael@0: as_echo_n='sh -c $as_echo_n_body as_echo' michael@0: fi michael@0: export as_echo_body michael@0: as_echo='sh -c $as_echo_body as_echo' michael@0: fi michael@0: michael@0: # The user is always right. michael@0: if test "${PATH_SEPARATOR+set}" != set; then michael@0: PATH_SEPARATOR=: michael@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { michael@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || michael@0: PATH_SEPARATOR=';' michael@0: } michael@0: fi michael@0: michael@0: michael@0: # IFS michael@0: # We need space, tab and new line, in precisely that order. Quoting is michael@0: # there to prevent editors from complaining about space-tab. michael@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word michael@0: # splitting by setting IFS to empty value.) michael@0: IFS=" "" $as_nl" michael@0: michael@0: # Find who we are. Look in the path if we contain no directory separator. michael@0: as_myself= michael@0: case $0 in #(( michael@0: *[\\/]* ) as_myself=$0 ;; michael@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: # We did not find ourselves, most probably we were run as `sh COMMAND' michael@0: # in which case we are not to be found in the path. michael@0: if test "x$as_myself" = x; then michael@0: as_myself=$0 michael@0: fi michael@0: if test ! -f "$as_myself"; then michael@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 michael@0: exit 1 michael@0: fi michael@0: michael@0: # Unset variables that we do not need and which cause bugs (e.g. in michael@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" michael@0: # suppresses any "Segmentation fault" message there. '((' could michael@0: # trigger a bug in pdksh 5.2.14. michael@0: for as_var in BASH_ENV ENV MAIL MAILPATH michael@0: do eval test x\${$as_var+set} = xset \ michael@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : michael@0: done michael@0: PS1='$ ' michael@0: PS2='> ' michael@0: PS4='+ ' michael@0: michael@0: # NLS nuisances. michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: LANGUAGE=C michael@0: export LANGUAGE michael@0: michael@0: # CDPATH. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: # Use a proper internal environment variable to ensure we don't fall michael@0: # into an infinite loop, continuously re-executing ourselves. michael@0: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then michael@0: _as_can_reexec=no; export _as_can_reexec; michael@0: # We cannot yet assume a decent shell, so we have to provide a michael@0: # neutralization value for shells without unset; and this also michael@0: # works around shells that cannot unset nonexistent variables. michael@0: # Preserve -v and -x to the replacement shell. michael@0: BASH_ENV=/dev/null michael@0: ENV=/dev/null michael@0: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV michael@0: case $- in # (((( michael@0: *v*x* | *x*v* ) as_opts=-vx ;; michael@0: *v* ) as_opts=-v ;; michael@0: *x* ) as_opts=-x ;; michael@0: * ) as_opts= ;; michael@0: esac michael@0: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} michael@0: # Admittedly, this is quite paranoid, since all the known shells bail michael@0: # out after a failed `exec'. michael@0: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 michael@0: as_fn_exit 255 michael@0: fi michael@0: # We don't want this to propagate to other subprocesses. michael@0: { _as_can_reexec=; unset _as_can_reexec;} michael@0: if test "x$CONFIG_SHELL" = x; then michael@0: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '\${1+\"\$@\"}'='\"\$@\"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case \`(set -o) 2>/dev/null\` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: " michael@0: as_required="as_fn_return () { (exit \$1); } michael@0: as_fn_success () { as_fn_return 0; } michael@0: as_fn_failure () { as_fn_return 1; } michael@0: as_fn_ret_success () { return 0; } michael@0: as_fn_ret_failure () { return 1; } michael@0: michael@0: exitcode=0 michael@0: as_fn_success || { exitcode=1; echo as_fn_success failed.; } michael@0: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } michael@0: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } michael@0: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } michael@0: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : michael@0: michael@0: else michael@0: exitcode=1; echo positional parameters were not saved. michael@0: fi michael@0: test x\$exitcode = x0 || exit 1 michael@0: test -x / || exit 1" michael@0: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO michael@0: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO michael@0: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && michael@0: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 michael@0: test \$(( 1 + 1 )) = 2 || exit 1" michael@0: if (eval "$as_required") 2>/dev/null; then : michael@0: as_have_required=yes michael@0: else michael@0: as_have_required=no michael@0: fi michael@0: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : michael@0: michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: as_found=false michael@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: as_found=: michael@0: case $as_dir in #( michael@0: /*) michael@0: for as_base in sh bash ksh sh5; do michael@0: # Try only shells that exist, to save several forks. michael@0: as_shell=$as_dir/$as_base michael@0: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && michael@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : michael@0: CONFIG_SHELL=$as_shell as_have_required=yes michael@0: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : michael@0: break 2 michael@0: fi michael@0: fi michael@0: done;; michael@0: esac michael@0: as_found=false michael@0: done michael@0: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && michael@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : michael@0: CONFIG_SHELL=$SHELL as_have_required=yes michael@0: fi; } michael@0: IFS=$as_save_IFS michael@0: michael@0: michael@0: if test "x$CONFIG_SHELL" != x; then : michael@0: export CONFIG_SHELL michael@0: # We cannot yet assume a decent shell, so we have to provide a michael@0: # neutralization value for shells without unset; and this also michael@0: # works around shells that cannot unset nonexistent variables. michael@0: # Preserve -v and -x to the replacement shell. michael@0: BASH_ENV=/dev/null michael@0: ENV=/dev/null michael@0: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV michael@0: case $- in # (((( michael@0: *v*x* | *x*v* ) as_opts=-vx ;; michael@0: *v* ) as_opts=-v ;; michael@0: *x* ) as_opts=-x ;; michael@0: * ) as_opts= ;; michael@0: esac michael@0: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} michael@0: # Admittedly, this is quite paranoid, since all the known shells bail michael@0: # out after a failed `exec'. michael@0: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 michael@0: exit 255 michael@0: fi michael@0: michael@0: if test x$as_have_required = xno; then : michael@0: $as_echo "$0: This script requires a shell more modern than all" michael@0: $as_echo "$0: the shells that I found on your system." michael@0: if test x${ZSH_VERSION+set} = xset ; then michael@0: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" michael@0: $as_echo "$0: be upgraded to zsh 4.3.4 or later." michael@0: else michael@0: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, michael@0: $0: including any error possibly output before this michael@0: $0: message. Then install a modern shell, or manually run michael@0: $0: the script under such a shell if you do have one." michael@0: fi michael@0: exit 1 michael@0: fi michael@0: fi michael@0: fi michael@0: SHELL=${CONFIG_SHELL-/bin/sh} michael@0: export SHELL michael@0: # Unset more variables known to interfere with behavior of common tools. michael@0: CLICOLOR_FORCE= GREP_OPTIONS= michael@0: unset CLICOLOR_FORCE GREP_OPTIONS michael@0: michael@0: ## --------------------- ## michael@0: ## M4sh Shell Functions. ## michael@0: ## --------------------- ## michael@0: # as_fn_unset VAR michael@0: # --------------- michael@0: # Portably unset VAR. michael@0: as_fn_unset () michael@0: { michael@0: { eval $1=; unset $1;} michael@0: } michael@0: as_unset=as_fn_unset michael@0: michael@0: # as_fn_set_status STATUS michael@0: # ----------------------- michael@0: # Set $? to STATUS, without forking. michael@0: as_fn_set_status () michael@0: { michael@0: return $1 michael@0: } # as_fn_set_status michael@0: michael@0: # as_fn_exit STATUS michael@0: # ----------------- michael@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. michael@0: as_fn_exit () michael@0: { michael@0: set +e michael@0: as_fn_set_status $1 michael@0: exit $1 michael@0: } # as_fn_exit michael@0: michael@0: # as_fn_mkdir_p michael@0: # ------------- michael@0: # Create "$as_dir" as a directory, including parents if necessary. michael@0: as_fn_mkdir_p () michael@0: { michael@0: michael@0: case $as_dir in #( michael@0: -*) as_dir=./$as_dir;; michael@0: esac michael@0: test -d "$as_dir" || eval $as_mkdir_p || { michael@0: as_dirs= michael@0: while :; do michael@0: case $as_dir in #( michael@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( michael@0: *) as_qdir=$as_dir;; michael@0: esac michael@0: as_dirs="'$as_qdir' $as_dirs" michael@0: as_dir=`$as_dirname -- "$as_dir" || michael@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_dir" : 'X\(//\)[^/]' \| \ michael@0: X"$as_dir" : 'X\(//\)$' \| \ michael@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_dir" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: test -d "$as_dir" && break michael@0: done michael@0: test -z "$as_dirs" || eval "mkdir $as_dirs" michael@0: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" michael@0: michael@0: michael@0: } # as_fn_mkdir_p michael@0: michael@0: # as_fn_executable_p FILE michael@0: # ----------------------- michael@0: # Test if FILE is an executable regular file. michael@0: as_fn_executable_p () michael@0: { michael@0: test -f "$1" && test -x "$1" michael@0: } # as_fn_executable_p michael@0: # as_fn_append VAR VALUE michael@0: # ---------------------- michael@0: # Append the text in VALUE to the end of the definition contained in VAR. Take michael@0: # advantage of any shell optimizations that allow amortized linear growth over michael@0: # repeated appends, instead of the typical quadratic growth present in naive michael@0: # implementations. michael@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : michael@0: eval 'as_fn_append () michael@0: { michael@0: eval $1+=\$2 michael@0: }' michael@0: else michael@0: as_fn_append () michael@0: { michael@0: eval $1=\$$1\$2 michael@0: } michael@0: fi # as_fn_append michael@0: michael@0: # as_fn_arith ARG... michael@0: # ------------------ michael@0: # Perform arithmetic evaluation on the ARGs, and store the result in the michael@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments michael@0: # must be portable across $(()) and expr. michael@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : michael@0: eval 'as_fn_arith () michael@0: { michael@0: as_val=$(( $* )) michael@0: }' michael@0: else michael@0: as_fn_arith () michael@0: { michael@0: as_val=`expr "$@" || test $? -eq 1` michael@0: } michael@0: fi # as_fn_arith michael@0: michael@0: michael@0: # as_fn_error STATUS ERROR [LINENO LOG_FD] michael@0: # ---------------------------------------- michael@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are michael@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the michael@0: # script with STATUS, using 1 if that was 0. michael@0: as_fn_error () michael@0: { michael@0: as_status=$1; test $as_status -eq 0 && as_status=1 michael@0: if test "$4"; then michael@0: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 michael@0: fi michael@0: $as_echo "$as_me: error: $2" >&2 michael@0: as_fn_exit $as_status michael@0: } # as_fn_error michael@0: michael@0: if expr a : '\(a\)' >/dev/null 2>&1 && michael@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then michael@0: as_expr=expr michael@0: else michael@0: as_expr=false michael@0: fi michael@0: michael@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then michael@0: as_basename=basename michael@0: else michael@0: as_basename=false michael@0: fi michael@0: michael@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then michael@0: as_dirname=dirname michael@0: else michael@0: as_dirname=false michael@0: fi michael@0: michael@0: as_me=`$as_basename -- "$0" || michael@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ michael@0: X"$0" : 'X\(//\)$' \| \ michael@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X/"$0" | michael@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: michael@0: # Avoid depending upon Character Ranges. michael@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' michael@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' michael@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS michael@0: as_cr_digits='0123456789' michael@0: as_cr_alnum=$as_cr_Letters$as_cr_digits michael@0: michael@0: michael@0: as_lineno_1=$LINENO as_lineno_1a=$LINENO michael@0: as_lineno_2=$LINENO as_lineno_2a=$LINENO michael@0: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && michael@0: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { michael@0: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) michael@0: sed -n ' michael@0: p michael@0: /[$]LINENO/= michael@0: ' <$as_myself | michael@0: sed ' michael@0: s/[$]LINENO.*/&-/ michael@0: t lineno michael@0: b michael@0: :lineno michael@0: N michael@0: :loop michael@0: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ michael@0: t loop michael@0: s/-\n.*// michael@0: ' >$as_me.lineno && michael@0: chmod +x "$as_me.lineno" || michael@0: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } michael@0: michael@0: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have michael@0: # already done that, so ensure we don't try to do so again and fall michael@0: # in an infinite loop. This has already happened in practice. michael@0: _as_can_reexec=no; export _as_can_reexec michael@0: # Don't try to exec as it changes $[0], causing all sort of problems michael@0: # (the dirname of $[0] is not the place where we might find the michael@0: # original and so on. Autoconf is especially sensitive to this). michael@0: . "./$as_me.lineno" michael@0: # Exit status is that of the last command. michael@0: exit michael@0: } michael@0: michael@0: ECHO_C= ECHO_N= ECHO_T= michael@0: case `echo -n x` in #((((( michael@0: -n*) michael@0: case `echo 'xy\c'` in michael@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. michael@0: xy) ECHO_C='\c';; michael@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null michael@0: ECHO_T=' ';; michael@0: esac;; michael@0: *) michael@0: ECHO_N='-n';; michael@0: esac michael@0: michael@0: rm -f conf$$ conf$$.exe conf$$.file michael@0: if test -d conf$$.dir; then michael@0: rm -f conf$$.dir/conf$$.file michael@0: else michael@0: rm -f conf$$.dir michael@0: mkdir conf$$.dir 2>/dev/null michael@0: fi michael@0: if (echo >conf$$.file) 2>/dev/null; then michael@0: if ln -s conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s='ln -s' michael@0: # ... but there are two gotchas: michael@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. michael@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. michael@0: # In both cases, we have to default to `cp -pR'. michael@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || michael@0: as_ln_s='cp -pR' michael@0: elif ln conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s=ln michael@0: else michael@0: as_ln_s='cp -pR' michael@0: fi michael@0: else michael@0: as_ln_s='cp -pR' michael@0: fi michael@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file michael@0: rmdir conf$$.dir 2>/dev/null michael@0: michael@0: if mkdir -p . 2>/dev/null; then michael@0: as_mkdir_p='mkdir -p "$as_dir"' michael@0: else michael@0: test -d ./-p && rmdir ./-p michael@0: as_mkdir_p=false michael@0: fi michael@0: michael@0: as_test_x='test -x' michael@0: as_executable_p=as_fn_executable_p michael@0: michael@0: # Sed expression to map a string onto a valid CPP name. michael@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: # Sed expression to map a string onto a valid variable name. michael@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: michael@0: test -n "$DJDIR" || exec 7<&0 &1 michael@0: michael@0: # Name of the host. michael@0: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, michael@0: # so uname gets run too. michael@0: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: michael@0: # michael@0: # Initializations. michael@0: # michael@0: ac_default_prefix=/usr/local michael@0: ac_clean_files= michael@0: ac_config_libobj_dir=. michael@0: LIBOBJS= michael@0: cross_compiling=no michael@0: subdirs= michael@0: MFLAGS= michael@0: MAKEFLAGS= michael@0: michael@0: # Identity of this package. michael@0: PACKAGE_NAME= michael@0: PACKAGE_TARNAME= michael@0: PACKAGE_VERSION= michael@0: PACKAGE_STRING= michael@0: PACKAGE_BUGREPORT= michael@0: PACKAGE_URL= michael@0: michael@0: ac_unique_file="pr/include/nspr.h" michael@0: # Factoring default headers for most tests. michael@0: ac_includes_default="\ michael@0: #include michael@0: #ifdef HAVE_SYS_TYPES_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_SYS_STAT_H michael@0: # include michael@0: #endif michael@0: #ifdef STDC_HEADERS michael@0: # include michael@0: # include michael@0: #else michael@0: # ifdef HAVE_STDLIB_H michael@0: # include michael@0: # endif michael@0: #endif michael@0: #ifdef HAVE_STRING_H michael@0: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H michael@0: # include michael@0: # endif michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_STRINGS_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_INTTYPES_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_STDINT_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_UNISTD_H michael@0: # include michael@0: #endif" michael@0: michael@0: ac_subst_vars='LTLIBOBJS michael@0: LIBOBJS michael@0: MT michael@0: NEXT_ROOT michael@0: SYMBIAN_SDK_DIR michael@0: MACOS_SDK_DIR michael@0: WRAP_SYSTEM_INCLUDES michael@0: VISIBILITY_FLAGS michael@0: CYGWIN_WRAPPER michael@0: OS_DLLFLAGS michael@0: EXEFLAGS michael@0: DLLFLAGS michael@0: RCFLAGS michael@0: RC michael@0: OPTIMIZER michael@0: NSINSTALL michael@0: RELEASE_OBJDIR_NAME michael@0: OBJDIR_NAME michael@0: OBJDIR michael@0: ULTRASPARC_LIBRARY michael@0: MOZ_OBJFORMAT michael@0: NOSUCHFILE michael@0: AIX_LINK_OPTS michael@0: RESOLVE_LINK_SYMBOLS michael@0: OS_LIBS michael@0: PROFILE_USE_LDFLAGS michael@0: PROFILE_USE_CFLAGS michael@0: PROFILE_GEN_LDFLAGS michael@0: PROFILE_GEN_CFLAGS michael@0: IMPLIB michael@0: FILTER michael@0: ASFLAGS michael@0: AR_FLAGS michael@0: DEFINES michael@0: MACOSX_DEPLOYMENT_TARGET michael@0: OS_TEST michael@0: OS_RELEASE michael@0: OS_ARCH michael@0: OS_TARGET michael@0: DSO_LDOPTS michael@0: DSO_CFLAGS michael@0: MKSHLIB michael@0: WRAP_LDFLAGS michael@0: ASM_SUFFIX michael@0: DLL_SUFFIX michael@0: LIB_SUFFIX michael@0: OBJ_SUFFIX michael@0: CPU_ARCH michael@0: PR_MD_ARCH_DIR michael@0: PR_MD_ASFILES michael@0: PR_MD_CSRCS michael@0: MDCPUCFG_H michael@0: NSPR_MODNAME michael@0: MOD_PATCH_VERSION michael@0: MOD_MINOR_VERSION michael@0: MOD_MAJOR_VERSION michael@0: LIBPLC michael@0: LIBNSPR michael@0: USE_NSPR_THREADS michael@0: USE_USER_PTHREADS michael@0: USE_BTHREADS michael@0: USE_PTHREADS michael@0: ENABLE_STRIP michael@0: OBJECT_MODE michael@0: USE_64 michael@0: USE_X32 michael@0: USE_N32 michael@0: USE_IPV6 michael@0: USE_CPLUS michael@0: MOZ_DEBUG_SYMBOLS michael@0: MOZ_DEBUG michael@0: MOZ_OPTIMIZE michael@0: CROSS_COMPILE michael@0: MSC_VER michael@0: GCC_USE_GNU_LD michael@0: GNU_CC michael@0: HOST_LDFLAGS michael@0: HOST_CFLAGS michael@0: MOZILLA_CLIENT michael@0: SHELL_OVERRIDE michael@0: CCACHE michael@0: EGREP michael@0: GREP michael@0: PERL michael@0: CPP michael@0: HOST_CC michael@0: WINDRES michael@0: STRIP michael@0: LD michael@0: AS michael@0: AR michael@0: RANLIB michael@0: ac_ct_CXX michael@0: CXXFLAGS michael@0: CXX michael@0: OBJEXT michael@0: EXEEXT michael@0: ac_ct_CC michael@0: CPPFLAGS michael@0: LDFLAGS michael@0: CFLAGS michael@0: WHOAMI michael@0: dist_libdir michael@0: dist_includedir michael@0: dist_bindir michael@0: dist_prefix michael@0: CC michael@0: target_os michael@0: target_vendor michael@0: target_cpu michael@0: target michael@0: host_os michael@0: host_vendor michael@0: host_cpu michael@0: host michael@0: build_os michael@0: build_vendor michael@0: build_cpu michael@0: build michael@0: target_alias michael@0: host_alias michael@0: build_alias michael@0: LIBS michael@0: ECHO_T michael@0: ECHO_N michael@0: ECHO_C michael@0: DEFS michael@0: mandir michael@0: localedir michael@0: libdir michael@0: psdir michael@0: pdfdir michael@0: dvidir michael@0: htmldir michael@0: infodir michael@0: docdir michael@0: oldincludedir michael@0: includedir michael@0: localstatedir michael@0: sharedstatedir michael@0: sysconfdir michael@0: datadir michael@0: datarootdir michael@0: libexecdir michael@0: sbindir michael@0: bindir michael@0: program_transform_name michael@0: prefix michael@0: exec_prefix michael@0: PACKAGE_URL michael@0: PACKAGE_BUGREPORT michael@0: PACKAGE_STRING michael@0: PACKAGE_VERSION michael@0: PACKAGE_TARNAME michael@0: PACKAGE_NAME michael@0: PATH_SEPARATOR michael@0: SHELL' michael@0: ac_subst_files='' michael@0: ac_user_opts=' michael@0: enable_option_checking michael@0: with_android_ndk michael@0: with_android_toolchain michael@0: with_android_version michael@0: with_android_platform michael@0: with_gonk michael@0: with_dist_prefix michael@0: with_dist_bindir michael@0: with_dist_includedir michael@0: with_dist_libdir michael@0: with_mozilla michael@0: enable_optimize michael@0: enable_debug michael@0: enable_debug_symbols michael@0: enable_win32_target michael@0: enable_symbian_target michael@0: enable_debug_rtl michael@0: enable_n32 michael@0: enable_x32 michael@0: enable_64bit michael@0: enable_mdupdate michael@0: enable_cplus michael@0: with_arm_kuser michael@0: with_macos_sdk michael@0: enable_macos_target michael@0: enable_os2_high_mem michael@0: enable_thumb2 michael@0: with_thumb michael@0: with_thumb_interwork michael@0: with_arch michael@0: with_fpu michael@0: with_float_abi michael@0: with_soft_float michael@0: with_symbian_sdk michael@0: with_ccache michael@0: enable_strip michael@0: with_pthreads michael@0: enable_user_pthreads michael@0: enable_nspr_threads michael@0: with_bthreads michael@0: enable_ipv6 michael@0: enable_wrap_malloc michael@0: with_wrap_malloc michael@0: ' michael@0: ac_precious_vars='build_alias michael@0: host_alias michael@0: target_alias michael@0: CC michael@0: CFLAGS michael@0: LDFLAGS michael@0: LIBS michael@0: CPPFLAGS michael@0: CXX michael@0: CXXFLAGS michael@0: CCC michael@0: CPP' michael@0: michael@0: michael@0: # Initialize some variables set by options. michael@0: ac_init_help= michael@0: ac_init_version=false michael@0: ac_unrecognized_opts= michael@0: ac_unrecognized_sep= michael@0: # The variables have the same names as the options, with michael@0: # dashes changed to underlines. michael@0: cache_file=/dev/null michael@0: exec_prefix=NONE michael@0: no_create= michael@0: no_recursion= michael@0: prefix=NONE michael@0: program_prefix=NONE michael@0: program_suffix=NONE michael@0: program_transform_name=s,x,x, michael@0: silent= michael@0: site= michael@0: srcdir= michael@0: verbose= michael@0: x_includes=NONE michael@0: x_libraries=NONE michael@0: michael@0: # Installation directory options. michael@0: # These are left unexpanded so users can "make install exec_prefix=/foo" michael@0: # and all the variables that are supposed to be based on exec_prefix michael@0: # by default will actually change. michael@0: # Use braces instead of parens because sh, perl, etc. also accept them. michael@0: # (The list follows the same order as the GNU Coding Standards.) michael@0: bindir='${exec_prefix}/bin' michael@0: sbindir='${exec_prefix}/sbin' michael@0: libexecdir='${exec_prefix}/libexec' michael@0: datarootdir='${prefix}/share' michael@0: datadir='${datarootdir}' michael@0: sysconfdir='${prefix}/etc' michael@0: sharedstatedir='${prefix}/com' michael@0: localstatedir='${prefix}/var' michael@0: includedir='${prefix}/include' michael@0: oldincludedir='/usr/include' michael@0: docdir='${datarootdir}/doc/${PACKAGE}' michael@0: infodir='${datarootdir}/info' michael@0: htmldir='${docdir}' michael@0: dvidir='${docdir}' michael@0: pdfdir='${docdir}' michael@0: psdir='${docdir}' michael@0: libdir='${exec_prefix}/lib' michael@0: localedir='${datarootdir}/locale' michael@0: mandir='${datarootdir}/man' michael@0: michael@0: ac_prev= michael@0: ac_dashdash= michael@0: for ac_option michael@0: do michael@0: # If the previous option needs an argument, assign it. michael@0: if test -n "$ac_prev"; then michael@0: eval $ac_prev=\$ac_option michael@0: ac_prev= michael@0: continue michael@0: fi michael@0: michael@0: case $ac_option in michael@0: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; michael@0: *=) ac_optarg= ;; michael@0: *) ac_optarg=yes ;; michael@0: esac michael@0: michael@0: # Accept the important Cygnus configure options, so we can diagnose typos. michael@0: michael@0: case $ac_dashdash$ac_option in michael@0: --) michael@0: ac_dashdash=yes ;; michael@0: michael@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) michael@0: ac_prev=bindir ;; michael@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) michael@0: bindir=$ac_optarg ;; michael@0: michael@0: -build | --build | --buil | --bui | --bu) michael@0: ac_prev=build_alias ;; michael@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) michael@0: build_alias=$ac_optarg ;; michael@0: michael@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ michael@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) michael@0: ac_prev=cache_file ;; michael@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ michael@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) michael@0: cache_file=$ac_optarg ;; michael@0: michael@0: --config-cache | -C) michael@0: cache_file=config.cache ;; michael@0: michael@0: -datadir | --datadir | --datadi | --datad) michael@0: ac_prev=datadir ;; michael@0: -datadir=* | --datadir=* | --datadi=* | --datad=*) michael@0: datadir=$ac_optarg ;; michael@0: michael@0: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ michael@0: | --dataroo | --dataro | --datar) michael@0: ac_prev=datarootdir ;; michael@0: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ michael@0: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) michael@0: datarootdir=$ac_optarg ;; michael@0: michael@0: -disable-* | --disable-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid feature name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "enable_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval enable_$ac_useropt=no ;; michael@0: michael@0: -docdir | --docdir | --docdi | --doc | --do) michael@0: ac_prev=docdir ;; michael@0: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) michael@0: docdir=$ac_optarg ;; michael@0: michael@0: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) michael@0: ac_prev=dvidir ;; michael@0: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) michael@0: dvidir=$ac_optarg ;; michael@0: michael@0: -enable-* | --enable-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid feature name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "enable_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval enable_$ac_useropt=\$ac_optarg ;; michael@0: michael@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ michael@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ michael@0: | --exec | --exe | --ex) michael@0: ac_prev=exec_prefix ;; michael@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ michael@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ michael@0: | --exec=* | --exe=* | --ex=*) michael@0: exec_prefix=$ac_optarg ;; michael@0: michael@0: -gas | --gas | --ga | --g) michael@0: # Obsolete; use --with-gas. michael@0: with_gas=yes ;; michael@0: michael@0: -help | --help | --hel | --he | -h) michael@0: ac_init_help=long ;; michael@0: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) michael@0: ac_init_help=recursive ;; michael@0: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) michael@0: ac_init_help=short ;; michael@0: michael@0: -host | --host | --hos | --ho) michael@0: ac_prev=host_alias ;; michael@0: -host=* | --host=* | --hos=* | --ho=*) michael@0: host_alias=$ac_optarg ;; michael@0: michael@0: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) michael@0: ac_prev=htmldir ;; michael@0: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ michael@0: | --ht=*) michael@0: htmldir=$ac_optarg ;; michael@0: michael@0: -includedir | --includedir | --includedi | --included | --include \ michael@0: | --includ | --inclu | --incl | --inc) michael@0: ac_prev=includedir ;; michael@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ michael@0: | --includ=* | --inclu=* | --incl=* | --inc=*) michael@0: includedir=$ac_optarg ;; michael@0: michael@0: -infodir | --infodir | --infodi | --infod | --info | --inf) michael@0: ac_prev=infodir ;; michael@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) michael@0: infodir=$ac_optarg ;; michael@0: michael@0: -libdir | --libdir | --libdi | --libd) michael@0: ac_prev=libdir ;; michael@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) michael@0: libdir=$ac_optarg ;; michael@0: michael@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ michael@0: | --libexe | --libex | --libe) michael@0: ac_prev=libexecdir ;; michael@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ michael@0: | --libexe=* | --libex=* | --libe=*) michael@0: libexecdir=$ac_optarg ;; michael@0: michael@0: -localedir | --localedir | --localedi | --localed | --locale) michael@0: ac_prev=localedir ;; michael@0: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) michael@0: localedir=$ac_optarg ;; michael@0: michael@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ michael@0: | --localstate | --localstat | --localsta | --localst | --locals) michael@0: ac_prev=localstatedir ;; michael@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ michael@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) michael@0: localstatedir=$ac_optarg ;; michael@0: michael@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) michael@0: ac_prev=mandir ;; michael@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) michael@0: mandir=$ac_optarg ;; michael@0: michael@0: -nfp | --nfp | --nf) michael@0: # Obsolete; use --without-fp. michael@0: with_fp=no ;; michael@0: michael@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ michael@0: | --no-cr | --no-c | -n) michael@0: no_create=yes ;; michael@0: michael@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ michael@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) michael@0: no_recursion=yes ;; michael@0: michael@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ michael@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ michael@0: | --oldin | --oldi | --old | --ol | --o) michael@0: ac_prev=oldincludedir ;; michael@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ michael@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ michael@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) michael@0: oldincludedir=$ac_optarg ;; michael@0: michael@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) michael@0: ac_prev=prefix ;; michael@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) michael@0: prefix=$ac_optarg ;; michael@0: michael@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ michael@0: | --program-pre | --program-pr | --program-p) michael@0: ac_prev=program_prefix ;; michael@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ michael@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) michael@0: program_prefix=$ac_optarg ;; michael@0: michael@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ michael@0: | --program-suf | --program-su | --program-s) michael@0: ac_prev=program_suffix ;; michael@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ michael@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) michael@0: program_suffix=$ac_optarg ;; michael@0: michael@0: -program-transform-name | --program-transform-name \ michael@0: | --program-transform-nam | --program-transform-na \ michael@0: | --program-transform-n | --program-transform- \ michael@0: | --program-transform | --program-transfor \ michael@0: | --program-transfo | --program-transf \ michael@0: | --program-trans | --program-tran \ michael@0: | --progr-tra | --program-tr | --program-t) michael@0: ac_prev=program_transform_name ;; michael@0: -program-transform-name=* | --program-transform-name=* \ michael@0: | --program-transform-nam=* | --program-transform-na=* \ michael@0: | --program-transform-n=* | --program-transform-=* \ michael@0: | --program-transform=* | --program-transfor=* \ michael@0: | --program-transfo=* | --program-transf=* \ michael@0: | --program-trans=* | --program-tran=* \ michael@0: | --progr-tra=* | --program-tr=* | --program-t=*) michael@0: program_transform_name=$ac_optarg ;; michael@0: michael@0: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) michael@0: ac_prev=pdfdir ;; michael@0: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) michael@0: pdfdir=$ac_optarg ;; michael@0: michael@0: -psdir | --psdir | --psdi | --psd | --ps) michael@0: ac_prev=psdir ;; michael@0: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) michael@0: psdir=$ac_optarg ;; michael@0: michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: silent=yes ;; michael@0: michael@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) michael@0: ac_prev=sbindir ;; michael@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ michael@0: | --sbi=* | --sb=*) michael@0: sbindir=$ac_optarg ;; michael@0: michael@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ michael@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ michael@0: | --sharedst | --shareds | --shared | --share | --shar \ michael@0: | --sha | --sh) michael@0: ac_prev=sharedstatedir ;; michael@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ michael@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ michael@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ michael@0: | --sha=* | --sh=*) michael@0: sharedstatedir=$ac_optarg ;; michael@0: michael@0: -site | --site | --sit) michael@0: ac_prev=site ;; michael@0: -site=* | --site=* | --sit=*) michael@0: site=$ac_optarg ;; michael@0: michael@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) michael@0: ac_prev=srcdir ;; michael@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) michael@0: srcdir=$ac_optarg ;; michael@0: michael@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ michael@0: | --syscon | --sysco | --sysc | --sys | --sy) michael@0: ac_prev=sysconfdir ;; michael@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ michael@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) michael@0: sysconfdir=$ac_optarg ;; michael@0: michael@0: -target | --target | --targe | --targ | --tar | --ta | --t) michael@0: ac_prev=target_alias ;; michael@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) michael@0: target_alias=$ac_optarg ;; michael@0: michael@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) michael@0: verbose=yes ;; michael@0: michael@0: -version | --version | --versio | --versi | --vers | -V) michael@0: ac_init_version=: ;; michael@0: michael@0: -with-* | --with-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid package name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "with_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval with_$ac_useropt=\$ac_optarg ;; michael@0: michael@0: -without-* | --without-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid package name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "with_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval with_$ac_useropt=no ;; michael@0: michael@0: --x) michael@0: # Obsolete; use --with-x. michael@0: with_x=yes ;; michael@0: michael@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ michael@0: | --x-incl | --x-inc | --x-in | --x-i) michael@0: ac_prev=x_includes ;; michael@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ michael@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) michael@0: x_includes=$ac_optarg ;; michael@0: michael@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ michael@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) michael@0: ac_prev=x_libraries ;; michael@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ michael@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) michael@0: x_libraries=$ac_optarg ;; michael@0: michael@0: -*) as_fn_error $? "unrecognized option: \`$ac_option' michael@0: Try \`$0 --help' for more information" michael@0: ;; michael@0: michael@0: *=*) michael@0: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` michael@0: # Reject names that are not valid shell variable names. michael@0: case $ac_envvar in #( michael@0: '' | [0-9]* | *[!_$as_cr_alnum]* ) michael@0: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; michael@0: esac michael@0: eval $ac_envvar=\$ac_optarg michael@0: export $ac_envvar ;; michael@0: michael@0: *) michael@0: # FIXME: should be removed in autoconf 3.0. michael@0: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 michael@0: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && michael@0: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 michael@0: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" michael@0: ;; michael@0: michael@0: esac michael@0: done michael@0: michael@0: if test -n "$ac_prev"; then michael@0: ac_option=--`echo $ac_prev | sed 's/_/-/g'` michael@0: as_fn_error $? "missing argument to $ac_option" michael@0: fi michael@0: michael@0: if test -n "$ac_unrecognized_opts"; then michael@0: case $enable_option_checking in michael@0: no) ;; michael@0: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; michael@0: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; michael@0: esac michael@0: fi michael@0: michael@0: # Check all directory arguments for consistency. michael@0: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ michael@0: datadir sysconfdir sharedstatedir localstatedir includedir \ michael@0: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ michael@0: libdir localedir mandir michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: # Remove trailing slashes. michael@0: case $ac_val in michael@0: */ ) michael@0: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` michael@0: eval $ac_var=\$ac_val;; michael@0: esac michael@0: # Be sure to have absolute directory names. michael@0: case $ac_val in michael@0: [\\/$]* | ?:[\\/]* ) continue;; michael@0: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; michael@0: esac michael@0: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" michael@0: done michael@0: michael@0: # There might be people who depend on the old broken behavior: `$host' michael@0: # used to hold the argument of --host etc. michael@0: # FIXME: To remove some day. michael@0: build=$build_alias michael@0: host=$host_alias michael@0: target=$target_alias michael@0: michael@0: # FIXME: To remove some day. michael@0: if test "x$host_alias" != x; then michael@0: if test "x$build_alias" = x; then michael@0: cross_compiling=maybe michael@0: elif test "x$build_alias" != "x$host_alias"; then michael@0: cross_compiling=yes michael@0: fi michael@0: fi michael@0: michael@0: ac_tool_prefix= michael@0: test -n "$host_alias" && ac_tool_prefix=$host_alias- michael@0: michael@0: test "$silent" = yes && exec 6>/dev/null michael@0: michael@0: michael@0: ac_pwd=`pwd` && test -n "$ac_pwd" && michael@0: ac_ls_di=`ls -di .` && michael@0: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || michael@0: as_fn_error $? "working directory cannot be determined" michael@0: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || michael@0: as_fn_error $? "pwd does not report name of working directory" michael@0: michael@0: michael@0: # Find the source files, if location was not specified. michael@0: if test -z "$srcdir"; then michael@0: ac_srcdir_defaulted=yes michael@0: # Try the directory containing this script, then the parent directory. michael@0: ac_confdir=`$as_dirname -- "$as_myself" || michael@0: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_myself" : 'X\(//\)[^/]' \| \ michael@0: X"$as_myself" : 'X\(//\)$' \| \ michael@0: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_myself" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: srcdir=$ac_confdir michael@0: if test ! -r "$srcdir/$ac_unique_file"; then michael@0: srcdir=.. michael@0: fi michael@0: else michael@0: ac_srcdir_defaulted=no michael@0: fi michael@0: if test ! -r "$srcdir/$ac_unique_file"; then michael@0: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." michael@0: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" michael@0: fi michael@0: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" michael@0: ac_abs_confdir=`( michael@0: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" michael@0: pwd)` michael@0: # When building in place, set srcdir=. michael@0: if test "$ac_abs_confdir" = "$ac_pwd"; then michael@0: srcdir=. michael@0: fi michael@0: # Remove unnecessary trailing slashes from srcdir. michael@0: # Double slashes in file names in object file debugging info michael@0: # mess up M-x gdb in Emacs. michael@0: case $srcdir in michael@0: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; michael@0: esac michael@0: for ac_var in $ac_precious_vars; do michael@0: eval ac_env_${ac_var}_set=\${${ac_var}+set} michael@0: eval ac_env_${ac_var}_value=\$${ac_var} michael@0: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} michael@0: eval ac_cv_env_${ac_var}_value=\$${ac_var} michael@0: done michael@0: michael@0: # michael@0: # Report the --help message. michael@0: # michael@0: if test "$ac_init_help" = "long"; then michael@0: # Omit some internal or obsolete options to make the list less imposing. michael@0: # This message is too long to be a string in the A/UX 3.1 sh. michael@0: cat <<_ACEOF michael@0: \`configure' configures this package to adapt to many kinds of systems. michael@0: michael@0: Usage: $0 [OPTION]... [VAR=VALUE]... michael@0: michael@0: To assign environment variables (e.g., CC, CFLAGS...), specify them as michael@0: VAR=VALUE. See below for descriptions of some of the useful variables. michael@0: michael@0: Defaults for the options are specified in brackets. michael@0: michael@0: Configuration: michael@0: -h, --help display this help and exit michael@0: --help=short display options specific to this package michael@0: --help=recursive display the short help of all the included packages michael@0: -V, --version display version information and exit michael@0: -q, --quiet, --silent do not print \`checking ...' messages michael@0: --cache-file=FILE cache test results in FILE [disabled] michael@0: -C, --config-cache alias for \`--cache-file=config.cache' michael@0: -n, --no-create do not create output files michael@0: --srcdir=DIR find the sources in DIR [configure dir or \`..'] michael@0: michael@0: Installation directories: michael@0: --prefix=PREFIX install architecture-independent files in PREFIX michael@0: [$ac_default_prefix] michael@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX michael@0: [PREFIX] michael@0: michael@0: By default, \`make install' will install all the files in michael@0: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify michael@0: an installation prefix other than \`$ac_default_prefix' using \`--prefix', michael@0: for instance \`--prefix=\$HOME'. michael@0: michael@0: For better control, use the options below. michael@0: michael@0: Fine tuning of the installation directories: michael@0: --bindir=DIR user executables [EPREFIX/bin] michael@0: --sbindir=DIR system admin executables [EPREFIX/sbin] michael@0: --libexecdir=DIR program executables [EPREFIX/libexec] michael@0: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] michael@0: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] michael@0: --localstatedir=DIR modifiable single-machine data [PREFIX/var] michael@0: --libdir=DIR object code libraries [EPREFIX/lib] michael@0: --includedir=DIR C header files [PREFIX/include] michael@0: --oldincludedir=DIR C header files for non-gcc [/usr/include] michael@0: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] michael@0: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] michael@0: --infodir=DIR info documentation [DATAROOTDIR/info] michael@0: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] michael@0: --mandir=DIR man documentation [DATAROOTDIR/man] michael@0: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] michael@0: --htmldir=DIR html documentation [DOCDIR] michael@0: --dvidir=DIR dvi documentation [DOCDIR] michael@0: --pdfdir=DIR pdf documentation [DOCDIR] michael@0: --psdir=DIR ps documentation [DOCDIR] michael@0: _ACEOF michael@0: michael@0: cat <<\_ACEOF michael@0: michael@0: System types: michael@0: --build=BUILD configure for building on BUILD [guessed] michael@0: --host=HOST cross-compile to build programs to run on HOST [BUILD] michael@0: --target=TARGET configure for building compilers for TARGET [HOST] michael@0: _ACEOF michael@0: fi michael@0: michael@0: if test -n "$ac_init_help"; then michael@0: michael@0: cat <<\_ACEOF michael@0: michael@0: Optional Features: michael@0: --disable-option-checking ignore unrecognized --enable/--with options michael@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) michael@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] michael@0: --enable-optimize=OPT Enable code optimizations (ie. -O2) michael@0: --enable-debug=DBG Enable debugging (using compiler flags DBG) michael@0: --enable-debug-symbols=DBG Enable debugging symbols michael@0: (using compiler flags DBG) michael@0: --enable-win32-target=\$t michael@0: Specify win32 flavor. (WIN95 or WINNT) michael@0: --enable-symbian-target=\$t michael@0: Specify symbian flavor. (WINSCW or GCCE) michael@0: --enable-debug-rtl Use the MSVC debug runtime library michael@0: --enable-n32 Enable n32 ABI support (IRIX only) michael@0: --enable-x32 Enable x32 ABI support (x86_64 only) michael@0: --enable-64bit Enable 64-bit support (on certain platforms) michael@0: --enable-mdupdate Enable use of certain compilers' mdupdate feature michael@0: --enable-cplus Enable some c++ api routines michael@0: --enable-macos-target=VER michael@0: Set the minimum MacOS version needed at runtime michael@0: 10.2 for ppc, 10.4 for x86 michael@0: --disable-os2-high-mem Disable high-memory support on OS/2 michael@0: michael@0: --enable-strip Enable stripping of shared libs and programs michael@0: --enable-user-pthreads Build using userland pthreads michael@0: --enable-nspr-threads Build using classic nspr threads michael@0: --enable-ipv6 Compile ipv6 support michael@0: --enable-wrap-malloc Wrap malloc calls (gnu linker only) michael@0: michael@0: Optional Packages: michael@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] michael@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) michael@0: --with-android-ndk=DIR michael@0: location where the Android NDK can be found michael@0: --with-android-toolchain=DIR michael@0: location of the Android toolchain michael@0: --with-android-version=VER michael@0: Android platform version, default 5 for arm, 9 for x86/mips michael@0: --with-android-platform=DIR michael@0: location of platform dir michael@0: --with-gonk=DIR location of gonk dir michael@0: --with-dist-prefix=DIST_PREFIX michael@0: place build files in DIST_PREFIX dist michael@0: --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin michael@0: --with-dist-includedir=DIR michael@0: build include files in DIR DIST_PREFIX/include/nspr michael@0: --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib michael@0: --with-mozilla Compile NSPR with Mozilla support michael@0: --with-arm-kuser Use kuser helpers (Linux/ARM only) michael@0: (Requires kernel 2.6.13 or later) michael@0: --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only) michael@0: --with-thumb[=yes|no|toolchain-default] michael@0: Use Thumb instruction set (-mthumb) michael@0: --with-thumb-interwork[=yes|no|toolchain-default] michael@0: Use Thumb/ARM instuctions interwork (-mthumb-interwork) michael@0: --with-arch=[type|toolchain-default] michael@0: Use specific CPU features (-march=type) michael@0: --with-fpu=[type|toolchain-default] michael@0: Use specific FPU type (-mfpu=type) michael@0: --with-float-abi=[type|toolchain-default] michael@0: Use specific arm float ABI (-mfloat-abi=type) michael@0: --with-soft-float[=yes|no|toolchain-default] michael@0: Use soft float library (-msoft-float) michael@0: --with-symbian-sdk=SYMBIAN_SDK_DIR michael@0: The path to the Symbian SDK michael@0: --with-ccache=path/to/ccache michael@0: Enable compiling with ccache michael@0: --with-pthreads Use system pthreads library as thread subsystem michael@0: --with-bthreads Use system bthreads library as thread subsystem michael@0: (BeOS only) michael@0: --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library michael@0: michael@0: Some influential environment variables: michael@0: CC C compiler command michael@0: CFLAGS C compiler flags michael@0: LDFLAGS linker flags, e.g. -L if you have libraries in a michael@0: nonstandard directory michael@0: LIBS libraries to pass to the linker, e.g. -l michael@0: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if michael@0: you have headers in a nonstandard directory michael@0: CXX C++ compiler command michael@0: CXXFLAGS C++ compiler flags michael@0: CPP C preprocessor michael@0: michael@0: Use these variables to override the choices made by `configure' or to help michael@0: it to find libraries and programs with nonstandard names/locations. michael@0: michael@0: Report bugs to the package provider. michael@0: _ACEOF michael@0: ac_status=$? michael@0: fi michael@0: michael@0: if test "$ac_init_help" = "recursive"; then michael@0: # If there are subdirs, report their specific --help. michael@0: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue michael@0: test -d "$ac_dir" || michael@0: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || michael@0: continue michael@0: ac_builddir=. michael@0: michael@0: case "$ac_dir" in michael@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) michael@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` michael@0: # A ".." for each directory in $ac_dir_suffix. michael@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` michael@0: case $ac_top_builddir_sub in michael@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; michael@0: esac ;; michael@0: esac michael@0: ac_abs_top_builddir=$ac_pwd michael@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix michael@0: # for backward compatibility: michael@0: ac_top_builddir=$ac_top_build_prefix michael@0: michael@0: case $srcdir in michael@0: .) # We are building in place. michael@0: ac_srcdir=. michael@0: ac_top_srcdir=$ac_top_builddir_sub michael@0: ac_abs_top_srcdir=$ac_pwd ;; michael@0: [\\/]* | ?:[\\/]* ) # Absolute name. michael@0: ac_srcdir=$srcdir$ac_dir_suffix; michael@0: ac_top_srcdir=$srcdir michael@0: ac_abs_top_srcdir=$srcdir ;; michael@0: *) # Relative name. michael@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix michael@0: ac_top_srcdir=$ac_top_build_prefix$srcdir michael@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; michael@0: esac michael@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix michael@0: michael@0: cd "$ac_dir" || { ac_status=$?; continue; } michael@0: # Check for guested configure. michael@0: if test -f "$ac_srcdir/configure.gnu"; then michael@0: echo && michael@0: $SHELL "$ac_srcdir/configure.gnu" --help=recursive michael@0: elif test -f "$ac_srcdir/configure"; then michael@0: echo && michael@0: $SHELL "$ac_srcdir/configure" --help=recursive michael@0: else michael@0: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 michael@0: fi || ac_status=$? michael@0: cd "$ac_pwd" || { ac_status=$?; break; } michael@0: done michael@0: fi michael@0: michael@0: test -n "$ac_init_help" && exit $ac_status michael@0: if $ac_init_version; then michael@0: cat <<\_ACEOF michael@0: configure michael@0: generated by GNU Autoconf 2.69 michael@0: michael@0: Copyright (C) 2012 Free Software Foundation, Inc. michael@0: This configure script is free software; the Free Software Foundation michael@0: gives unlimited permission to copy, distribute and modify it. michael@0: _ACEOF michael@0: exit michael@0: fi michael@0: michael@0: ## ------------------------ ## michael@0: ## Autoconf initialization. ## michael@0: ## ------------------------ ## michael@0: michael@0: # ac_fn_c_try_compile LINENO michael@0: # -------------------------- michael@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest.$ac_objext; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_compile michael@0: michael@0: # ac_fn_cxx_try_compile LINENO michael@0: # ---------------------------- michael@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_cxx_try_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_cxx_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest.$ac_objext; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_compile michael@0: michael@0: # ac_fn_c_try_cpp LINENO michael@0: # ---------------------- michael@0: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_cpp () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_cpp conftest.$ac_ext" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } > conftest.i && { michael@0: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_cpp michael@0: michael@0: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES michael@0: # ------------------------------------------------------- michael@0: # Tests whether HEADER exists, giving a warning if it cannot be compiled using michael@0: # the include files in INCLUDES and setting the cache variable VAR michael@0: # accordingly. michael@0: ac_fn_c_check_header_mongrel () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if eval \${$3+:} false; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: else michael@0: # Is the header compilable? michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 michael@0: $as_echo_n "checking $2 usability... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_header_compiler=yes michael@0: else michael@0: ac_header_compiler=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 michael@0: $as_echo "$ac_header_compiler" >&6; } michael@0: michael@0: # Is the header present? michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 michael@0: $as_echo_n "checking $2 presence... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: ac_header_preproc=yes michael@0: else michael@0: ac_header_preproc=no michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 michael@0: $as_echo "$ac_header_preproc" >&6; } michael@0: michael@0: # So? What about this header? michael@0: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( michael@0: yes:no: ) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 michael@0: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 michael@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} michael@0: ;; michael@0: no:yes:* ) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 michael@0: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 michael@0: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 michael@0: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 michael@0: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 michael@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: eval "$3=\$ac_header_compiler" michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_header_mongrel michael@0: michael@0: # ac_fn_c_try_run LINENO michael@0: # ---------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes michael@0: # that executables *can* be run. michael@0: ac_fn_c_try_run () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: program exited with status $ac_status" >&5 michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=$ac_status michael@0: fi michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_run michael@0: michael@0: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES michael@0: # ------------------------------------------------------- michael@0: # Tests whether HEADER exists and can be compiled using the include files in michael@0: # INCLUDES, setting the cache variable VAR accordingly. michael@0: ac_fn_c_check_header_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_header_compile michael@0: michael@0: # ac_fn_c_try_link LINENO michael@0: # ----------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_link () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext conftest$ac_exeext michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest$ac_exeext && { michael@0: test "$cross_compiling" = yes || michael@0: test -x conftest$ac_exeext michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information michael@0: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would michael@0: # interfere with the next link command; also delete a directory that is michael@0: # left behind by Apple's compiler. We do this before executing the actions. michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_link michael@0: michael@0: # ac_fn_c_check_func LINENO FUNC VAR michael@0: # ---------------------------------- michael@0: # Tests whether FUNC exists, setting the cache variable VAR accordingly michael@0: ac_fn_c_check_func () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: /* Define $2 to an innocuous variant, in case declares $2. michael@0: For example, HP-UX 11i declares gettimeofday. */ michael@0: #define $2 innocuous_$2 michael@0: michael@0: /* System header to define __stub macros and hopefully few prototypes, michael@0: which can conflict with char $2 (); below. michael@0: Prefer to if __STDC__ is defined, since michael@0: exists even on freestanding compilers. */ michael@0: michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: michael@0: #undef $2 michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char $2 (); michael@0: /* The GNU C library defines this for functions which it implements michael@0: to always fail with ENOSYS. Some functions are actually named michael@0: something starting with __ and the normal name is an alias. */ michael@0: #if defined __stub_$2 || defined __stub___$2 michael@0: choke me michael@0: #endif michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return $2 (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_func michael@0: cat >config.log <<_ACEOF michael@0: This file contains any messages produced by compilers while michael@0: running configure, to aid debugging if configure makes a mistake. michael@0: michael@0: It was created by $as_me, which was michael@0: generated by GNU Autoconf 2.69. Invocation command line was michael@0: michael@0: $ $0 $@ michael@0: michael@0: _ACEOF michael@0: exec 5>>config.log michael@0: { michael@0: cat <<_ASUNAME michael@0: ## --------- ## michael@0: ## Platform. ## michael@0: ## --------- ## michael@0: michael@0: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: uname -m = `(uname -m) 2>/dev/null || echo unknown` michael@0: uname -r = `(uname -r) 2>/dev/null || echo unknown` michael@0: uname -s = `(uname -s) 2>/dev/null || echo unknown` michael@0: uname -v = `(uname -v) 2>/dev/null || echo unknown` michael@0: michael@0: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` michael@0: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` michael@0: michael@0: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` michael@0: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` michael@0: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` michael@0: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` michael@0: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` michael@0: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` michael@0: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` michael@0: michael@0: _ASUNAME michael@0: michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: $as_echo "PATH: $as_dir" michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: } >&5 michael@0: michael@0: cat >&5 <<_ACEOF michael@0: michael@0: michael@0: ## ----------- ## michael@0: ## Core tests. ## michael@0: ## ----------- ## michael@0: michael@0: _ACEOF michael@0: michael@0: michael@0: # Keep a trace of the command line. michael@0: # Strip out --no-create and --no-recursion so they do not pile up. michael@0: # Strip out --silent because we don't want to record it for future runs. michael@0: # Also quote any args containing shell meta-characters. michael@0: # Make two passes to allow for proper duplicate-argument suppression. michael@0: ac_configure_args= michael@0: ac_configure_args0= michael@0: ac_configure_args1= michael@0: ac_must_keep_next=false michael@0: for ac_pass in 1 2 michael@0: do michael@0: for ac_arg michael@0: do michael@0: case $ac_arg in michael@0: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: continue ;; michael@0: *\'*) michael@0: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: esac michael@0: case $ac_pass in michael@0: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; michael@0: 2) michael@0: as_fn_append ac_configure_args1 " '$ac_arg'" michael@0: if test $ac_must_keep_next = true; then michael@0: ac_must_keep_next=false # Got value, back to normal. michael@0: else michael@0: case $ac_arg in michael@0: *=* | --config-cache | -C | -disable-* | --disable-* \ michael@0: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ michael@0: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ michael@0: | -with-* | --with-* | -without-* | --without-* | --x) michael@0: case "$ac_configure_args0 " in michael@0: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; michael@0: esac michael@0: ;; michael@0: -* ) ac_must_keep_next=true ;; michael@0: esac michael@0: fi michael@0: as_fn_append ac_configure_args " '$ac_arg'" michael@0: ;; michael@0: esac michael@0: done michael@0: done michael@0: { ac_configure_args0=; unset ac_configure_args0;} michael@0: { ac_configure_args1=; unset ac_configure_args1;} michael@0: michael@0: # When interrupted or exit'd, cleanup temporary files, and complete michael@0: # config.log. We remove comments because anyway the quotes in there michael@0: # would cause problems or look ugly. michael@0: # WARNING: Use '\'' to represent an apostrophe within the trap. michael@0: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. michael@0: trap 'exit_status=$? michael@0: # Save into config.log some information that might help in debugging. michael@0: { michael@0: echo michael@0: michael@0: $as_echo "## ---------------- ## michael@0: ## Cache variables. ## michael@0: ## ---------------- ##" michael@0: echo michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: ( michael@0: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in #( michael@0: *${as_nl}*) michael@0: case $ac_var in #( michael@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 michael@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; michael@0: esac michael@0: case $ac_var in #( michael@0: _ | IFS | as_nl) ;; #( michael@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( michael@0: *) { eval $ac_var=; unset $ac_var;} ;; michael@0: esac ;; michael@0: esac michael@0: done michael@0: (set) 2>&1 | michael@0: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( michael@0: *${as_nl}ac_space=\ *) michael@0: sed -n \ michael@0: "s/'\''/'\''\\\\'\'''\''/g; michael@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" michael@0: ;; #( michael@0: *) michael@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" michael@0: ;; michael@0: esac | michael@0: sort michael@0: ) michael@0: echo michael@0: michael@0: $as_echo "## ----------------- ## michael@0: ## Output variables. ## michael@0: ## ----------------- ##" michael@0: echo michael@0: for ac_var in $ac_subst_vars michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in michael@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; michael@0: esac michael@0: $as_echo "$ac_var='\''$ac_val'\''" michael@0: done | sort michael@0: echo michael@0: michael@0: if test -n "$ac_subst_files"; then michael@0: $as_echo "## ------------------- ## michael@0: ## File substitutions. ## michael@0: ## ------------------- ##" michael@0: echo michael@0: for ac_var in $ac_subst_files michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in michael@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; michael@0: esac michael@0: $as_echo "$ac_var='\''$ac_val'\''" michael@0: done | sort michael@0: echo michael@0: fi michael@0: michael@0: if test -s confdefs.h; then michael@0: $as_echo "## ----------- ## michael@0: ## confdefs.h. ## michael@0: ## ----------- ##" michael@0: echo michael@0: cat confdefs.h michael@0: echo michael@0: fi michael@0: test "$ac_signal" != 0 && michael@0: $as_echo "$as_me: caught signal $ac_signal" michael@0: $as_echo "$as_me: exit $exit_status" michael@0: } >&5 michael@0: rm -f core *.core core.conftest.* && michael@0: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && michael@0: exit $exit_status michael@0: ' 0 michael@0: for ac_signal in 1 2 13 15; do michael@0: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal michael@0: done michael@0: ac_signal=0 michael@0: michael@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. michael@0: rm -f -r conftest* confdefs.h michael@0: michael@0: $as_echo "/* confdefs.h */" > confdefs.h michael@0: michael@0: # Predefined preprocessor variables. michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_NAME "$PACKAGE_NAME" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_VERSION "$PACKAGE_VERSION" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_STRING "$PACKAGE_STRING" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_URL "$PACKAGE_URL" michael@0: _ACEOF michael@0: michael@0: michael@0: # Let the site file select an alternate cache file if it wants to. michael@0: # Prefer an explicitly selected file to automatically selected ones. michael@0: ac_site_file1=NONE michael@0: ac_site_file2=NONE michael@0: if test -n "$CONFIG_SITE"; then michael@0: # We do not want a PATH search for config.site. michael@0: case $CONFIG_SITE in #(( michael@0: -*) ac_site_file1=./$CONFIG_SITE;; michael@0: */*) ac_site_file1=$CONFIG_SITE;; michael@0: *) ac_site_file1=./$CONFIG_SITE;; michael@0: esac michael@0: elif test "x$prefix" != xNONE; then michael@0: ac_site_file1=$prefix/share/config.site michael@0: ac_site_file2=$prefix/etc/config.site michael@0: else michael@0: ac_site_file1=$ac_default_prefix/share/config.site michael@0: ac_site_file2=$ac_default_prefix/etc/config.site michael@0: fi michael@0: for ac_site_file in "$ac_site_file1" "$ac_site_file2" michael@0: do michael@0: test "x$ac_site_file" = xNONE && continue michael@0: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 michael@0: $as_echo "$as_me: loading site script $ac_site_file" >&6;} michael@0: sed 's/^/| /' "$ac_site_file" >&5 michael@0: . "$ac_site_file" \ michael@0: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "failed to load site script $ac_site_file michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: done michael@0: michael@0: if test -r "$cache_file"; then michael@0: # Some versions of bash will fail to source /dev/null (special files michael@0: # actually), so we avoid doing that. DJGPP emulates it as a regular file. michael@0: if test /dev/null != "$cache_file" && test -f "$cache_file"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 michael@0: $as_echo "$as_me: loading cache $cache_file" >&6;} michael@0: case $cache_file in michael@0: [\\/]* | ?:[\\/]* ) . "$cache_file";; michael@0: *) . "./$cache_file";; michael@0: esac michael@0: fi michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 michael@0: $as_echo "$as_me: creating cache $cache_file" >&6;} michael@0: >$cache_file michael@0: fi michael@0: michael@0: # Check that the precious variables saved in the cache have kept the same michael@0: # value. michael@0: ac_cache_corrupted=false michael@0: for ac_var in $ac_precious_vars; do michael@0: eval ac_old_set=\$ac_cv_env_${ac_var}_set michael@0: eval ac_new_set=\$ac_env_${ac_var}_set michael@0: eval ac_old_val=\$ac_cv_env_${ac_var}_value michael@0: eval ac_new_val=\$ac_env_${ac_var}_value michael@0: case $ac_old_set,$ac_new_set in michael@0: set,) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} michael@0: ac_cache_corrupted=: ;; michael@0: ,set) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} michael@0: ac_cache_corrupted=: ;; michael@0: ,);; michael@0: *) michael@0: if test "x$ac_old_val" != "x$ac_new_val"; then michael@0: # differences in whitespace do not lead to failure. michael@0: ac_old_val_w=`echo x $ac_old_val` michael@0: ac_new_val_w=`echo x $ac_new_val` michael@0: if test "$ac_old_val_w" != "$ac_new_val_w"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} michael@0: ac_cache_corrupted=: michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 michael@0: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} michael@0: eval $ac_var=\$ac_old_val michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 michael@0: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 michael@0: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} michael@0: fi;; michael@0: esac michael@0: # Pass precious variables to config.status. michael@0: if test "$ac_new_set" = set; then michael@0: case $ac_new_val in michael@0: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: *) ac_arg=$ac_var=$ac_new_val ;; michael@0: esac michael@0: case " $ac_configure_args " in michael@0: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. michael@0: *) as_fn_append ac_configure_args " '$ac_arg'" ;; michael@0: esac michael@0: fi michael@0: done michael@0: if $ac_cache_corrupted; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 michael@0: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} michael@0: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 michael@0: fi michael@0: ## -------------------- ## michael@0: ## Main body of script. ## michael@0: ## -------------------- ## michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: michael@0: michael@0: ac_aux_dir= michael@0: for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do michael@0: if test -f "$ac_dir/install-sh"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/install-sh -c" michael@0: break michael@0: elif test -f "$ac_dir/install.sh"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/install.sh -c" michael@0: break michael@0: elif test -f "$ac_dir/shtool"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/shtool install -c" michael@0: break michael@0: fi michael@0: done michael@0: if test -z "$ac_aux_dir"; then michael@0: as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5 michael@0: fi michael@0: michael@0: # These three variables are undocumented and unsupported, michael@0: # and are intended to be withdrawn in a future Autoconf release. michael@0: # They can cause serious problems if a builder's source tree is in a directory michael@0: # whose full name contains unusual characters. michael@0: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. michael@0: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. michael@0: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. michael@0: michael@0: michael@0: # Make sure we can run config.sub. michael@0: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || michael@0: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 michael@0: $as_echo_n "checking build system type... " >&6; } michael@0: if ${ac_cv_build+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_build_alias=$build_alias michael@0: test "x$ac_build_alias" = x && michael@0: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` michael@0: test "x$ac_build_alias" = x && michael@0: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 michael@0: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || michael@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 michael@0: $as_echo "$ac_cv_build" >&6; } michael@0: case $ac_cv_build in michael@0: *-*-*) ;; michael@0: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; michael@0: esac michael@0: build=$ac_cv_build michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_build michael@0: shift michael@0: build_cpu=$1 michael@0: build_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: build_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 michael@0: $as_echo_n "checking host system type... " >&6; } michael@0: if ${ac_cv_host+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test "x$host_alias" = x; then michael@0: ac_cv_host=$ac_cv_build michael@0: else michael@0: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || michael@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 michael@0: $as_echo "$ac_cv_host" >&6; } michael@0: case $ac_cv_host in michael@0: *-*-*) ;; michael@0: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; michael@0: esac michael@0: host=$ac_cv_host michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_host michael@0: shift michael@0: host_cpu=$1 michael@0: host_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: host_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 michael@0: $as_echo_n "checking target system type... " >&6; } michael@0: if ${ac_cv_target+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test "x$target_alias" = x; then michael@0: ac_cv_target=$ac_cv_host michael@0: else michael@0: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || michael@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 michael@0: $as_echo "$ac_cv_target" >&6; } michael@0: case $ac_cv_target in michael@0: *-*-*) ;; michael@0: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; michael@0: esac michael@0: target=$ac_cv_target michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_target michael@0: shift michael@0: target_cpu=$1 michael@0: target_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: target_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: # The aliases save the names the user supplied, while $host etc. michael@0: # will get canonicalized. michael@0: test -n "$target_alias" && michael@0: test "$program_prefix$program_suffix$program_transform_name" = \ michael@0: NONENONEs,x,x, && michael@0: program_prefix=${target_alias}- michael@0: michael@0: MOD_MAJOR_VERSION=4 michael@0: MOD_MINOR_VERSION=10 michael@0: MOD_PATCH_VERSION=6 michael@0: NSPR_MODNAME=nspr20 michael@0: _HAVE_PTHREADS= michael@0: USE_PTHREADS= michael@0: USE_USER_PTHREADS= michael@0: USE_NSPR_THREADS= michael@0: USE_N32= michael@0: USE_X32= michael@0: USE_64= michael@0: USE_CPLUS= michael@0: USE_IPV6= michael@0: USE_MDUPDATE= michael@0: _MACOSX_DEPLOYMENT_TARGET= michael@0: _OPTIMIZE_FLAGS=-O michael@0: _DEBUG_FLAGS=-g michael@0: MOZ_DEBUG=1 michael@0: MOZ_OPTIMIZE= michael@0: OBJDIR='$(OBJDIR_NAME)' michael@0: OBJDIR_NAME=. michael@0: OBJDIR_SUFFIX=OBJ michael@0: NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' michael@0: NOSUCHFILE=/no-such-file michael@0: LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' michael@0: LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)' michael@0: CYGWIN_WRAPPER= michael@0: MACOS_SDK_DIR= michael@0: NEXT_ROOT= michael@0: MT= michael@0: MOZ_OS2_HIGH_MEMORY=1 michael@0: PROFILE_GEN_CFLAGS= michael@0: PROFILE_GEN_LDFLAGS= michael@0: PROFILE_USE_CFLAGS= michael@0: PROFILE_USE_LDFLAGS= michael@0: michael@0: RESOLVE_LINK_SYMBOLS= michael@0: michael@0: CFLAGS="${CFLAGS=}" michael@0: CXXFLAGS="${CXXFLAGS=}" michael@0: LDFLAGS="${LDFLAGS=}" michael@0: DLLFLAGS="${DLLFLAGS=}" michael@0: HOST_CFLAGS="${HOST_CFLAGS=}" michael@0: HOST_LDFLAGS="${HOST_LDFLAGS=}" michael@0: michael@0: case "$target" in michael@0: *-cygwin*|*-mingw*|*-msys*) michael@0: # Check to see if we are really running in a msvc environemnt michael@0: _WIN32_MSVC= michael@0: for ac_prog in cl michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CC" && break michael@0: done michael@0: michael@0: if test "$CC" = "cl"; then michael@0: echo 'main() { return 0; }' > dummy.c michael@0: ${CC} -o dummy dummy.c >/dev/null 2>&1 michael@0: if test $? = 0; then michael@0: _WIN32_MSVC=1 michael@0: CXX=$CC michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $(CC) test failed. Using normal feature tests" >&5 michael@0: $as_echo "$as_me: WARNING: $(CC) test failed. Using normal feature tests" >&2;} michael@0: fi michael@0: rm -f dummy dummy.o dummy.obj dummy.exe dummy.c michael@0: fi michael@0: ;; michael@0: *-mks*) michael@0: _WIN32_MSVC=1 michael@0: ;; michael@0: esac michael@0: michael@0: if test -n "$_WIN32_MSVC"; then michael@0: SKIP_PATH_CHECKS=1 michael@0: SKIP_COMPILER_CHECKS=1 michael@0: SKIP_LIBRARY_CHECKS=1 michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-android-ndk was given. michael@0: if test "${with_android_ndk+set}" = set; then : michael@0: withval=$with_android_ndk; android_ndk=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-android-toolchain was given. michael@0: if test "${with_android_toolchain+set}" = set; then : michael@0: withval=$with_android_toolchain; android_toolchain=$withval michael@0: fi michael@0: michael@0: michael@0: case "$target_cpu" in michael@0: arm) michael@0: android_version=5 michael@0: ;; michael@0: i?86|mipsel) michael@0: android_version=9 michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: # Check whether --with-android-version was given. michael@0: if test "${with_android_version+set}" = set; then : michael@0: withval=$with_android_version; android_version=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-android-platform was given. michael@0: if test "${with_android_platform+set}" = set; then : michael@0: withval=$with_android_platform; android_platform=$withval michael@0: fi michael@0: michael@0: michael@0: case "$target" in michael@0: arm-linux*-android*|*-linuxandroid*) michael@0: android_tool_prefix="arm-linux-androideabi" michael@0: ;; michael@0: i?86-*android*) michael@0: android_tool_prefix="i686-linux-android" michael@0: ;; michael@0: mipsel-*android*) michael@0: android_tool_prefix="mipsel-linux-android" michael@0: ;; michael@0: *) michael@0: android_tool_prefix="$target_os" michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: # Check whether --with-gonk was given. michael@0: if test "${with_gonk+set}" = set; then : michael@0: withval=$with_gonk; gonkdir=$withval michael@0: fi michael@0: michael@0: michael@0: if test -n "$gonkdir" ; then michael@0: michael@0: if test -z "$HOST_CPPFLAGS" ; then michael@0: HOST_CPPFLAGS=" " michael@0: fi michael@0: if test -z "$HOST_CFLAGS" ; then michael@0: HOST_CFLAGS=" " michael@0: fi michael@0: if test -z "$HOST_CXXFLAGS" ; then michael@0: HOST_CXXFLAGS=" " michael@0: fi michael@0: if test -z "$HOST_LDFLAGS" ; then michael@0: HOST_LDFLAGS=" " michael@0: fi michael@0: michael@0: $as_echo "#define ANDROID 1" >>confdefs.h michael@0: michael@0: else michael@0: case "$target" in michael@0: *-android*|*-linuxandroid*) michael@0: if test -z "$android_ndk" ; then michael@0: as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5 michael@0: fi michael@0: michael@0: if test -z "$android_toolchain" ; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5 michael@0: $as_echo_n "checking for android toolchain directory... " >&6; } michael@0: michael@0: kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` michael@0: michael@0: case "$target_cpu" in michael@0: arm) michael@0: target_name=arm-linux-androideabi-4.4.3 michael@0: ;; michael@0: i?86) michael@0: target_name=x86-4.4.3 michael@0: ;; michael@0: mipsel) michael@0: target_name=mipsel-linux-android-4.4.3 michael@0: ;; michael@0: esac michael@0: android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 michael@0: michael@0: if test -d "$android_toolchain" ; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5 michael@0: $as_echo "$android_toolchain" >&6; } michael@0: else michael@0: as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: if test -z "$android_platform" ; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5 michael@0: $as_echo_n "checking for android platform directory... " >&6; } michael@0: michael@0: case "$target_cpu" in michael@0: arm) michael@0: target_name=arm michael@0: ;; michael@0: i?86) michael@0: target_name=x86 michael@0: ;; michael@0: mipsel) michael@0: target_name=mips michael@0: ;; michael@0: esac michael@0: michael@0: android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name" michael@0: michael@0: if test -d "$android_platform" ; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5 michael@0: $as_echo "$android_platform" >&6; } michael@0: else michael@0: as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: case "$target_cpu" in michael@0: i?86) michael@0: if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then michael@0: android_tool_prefix="i686-android-linux" michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: AS="$android_toolchain"/bin/"$android_tool_prefix"-as michael@0: CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc michael@0: CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++ michael@0: CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp michael@0: LD="$android_toolchain"/bin/"$android_tool_prefix"-ld michael@0: AR="$android_toolchain"/bin/"$android_tool_prefix"-ar michael@0: RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib michael@0: STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip michael@0: michael@0: CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS" michael@0: CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS" michael@0: CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS" michael@0: LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS" michael@0: michael@0: if test -z "$HOST_CPPFLAGS" ; then michael@0: HOST_CPPFLAGS=" " michael@0: fi michael@0: if test -z "$HOST_CFLAGS" ; then michael@0: HOST_CFLAGS=" " michael@0: fi michael@0: if test -z "$HOST_CXXFLAGS" ; then michael@0: HOST_CXXFLAGS=" " michael@0: fi michael@0: if test -z "$HOST_LDFLAGS" ; then michael@0: HOST_LDFLAGS=" " michael@0: fi michael@0: michael@0: $as_echo "#define ANDROID 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: dist_prefix='${MOD_DEPTH}/dist' michael@0: dist_bindir='${dist_prefix}/bin' michael@0: dist_includedir='${dist_prefix}/include/nspr' michael@0: dist_libdir='${dist_prefix}/lib' michael@0: if test "${includedir}" = '${prefix}/include'; then michael@0: includedir='${prefix}/include/nspr' michael@0: fi michael@0: michael@0: michael@0: # Check whether --with-dist-prefix was given. michael@0: if test "${with_dist_prefix+set}" = set; then : michael@0: withval=$with_dist_prefix; dist_prefix=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-dist-bindir was given. michael@0: if test "${with_dist_bindir+set}" = set; then : michael@0: withval=$with_dist_bindir; dist_bindir=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-dist-includedir was given. michael@0: if test "${with_dist_includedir+set}" = set; then : michael@0: withval=$with_dist_includedir; dist_includedir=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-dist-libdir was given. michael@0: if test "${with_dist_libdir+set}" = set; then : michael@0: withval=$with_dist_libdir; dist_libdir=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --with-mozilla was given. michael@0: if test "${with_mozilla+set}" = set; then : michael@0: withval=$with_mozilla; if test "$withval" = "yes"; then michael@0: $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h michael@0: michael@0: MOZILLA_CLIENT=1 michael@0: else michael@0: MOZILLA_CLIENT= michael@0: fi michael@0: else michael@0: if test -n "$MOZILLA_CLIENT"; then michael@0: $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h michael@0: michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-optimize was given. michael@0: if test "${enable_optimize+set}" = set; then : michael@0: enableval=$enable_optimize; if test "$enableval" != "no"; then michael@0: MOZ_OPTIMIZE=1 michael@0: if test -n "$enableval" -a "$enableval" != "yes"; then michael@0: _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` michael@0: _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS michael@0: fi michael@0: else michael@0: MOZ_OPTIMIZE= michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-debug was given. michael@0: if test "${enable_debug+set}" = set; then : michael@0: enableval=$enable_debug; if test "$enableval" != "no"; then michael@0: MOZ_DEBUG=1 michael@0: MOZ_DEBUG_SYMBOLS=1 michael@0: if test -n "$enableval" -a "$enableval" != "yes"; then michael@0: _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` michael@0: _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS michael@0: fi michael@0: else michael@0: MOZ_DEBUG= michael@0: fi michael@0: else michael@0: MOZ_DEBUG_SYMBOLS=1 michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-debug-symbols was given. michael@0: if test "${enable_debug_symbols+set}" = set; then : michael@0: enableval=$enable_debug_symbols; if test "$enableval" != "no"; then michael@0: MOZ_DEBUG_SYMBOLS=1 michael@0: if test -n "$enableval" -a "$enableval" != "yes"; then michael@0: if test -z "$_SAVE_DEBUG_FLAGS"; then michael@0: _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` michael@0: _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS michael@0: else michael@0: as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5 michael@0: fi michael@0: fi michael@0: else michael@0: MOZ_DEBUG_SYMBOLS= michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-win32-target was given. michael@0: if test "${enable_win32_target+set}" = set; then : michael@0: enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z` michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-symbian-target was given. michael@0: if test "${enable_symbian_target+set}" = set; then : michael@0: enableval=$enable_symbian_target; OS_TARGET=`echo $enableval | tr a-z A-Z` michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-debug-rtl was given. michael@0: if test "${enable_debug_rtl+set}" = set; then : michael@0: enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then michael@0: USE_DEBUG_RTL=1 michael@0: else michael@0: USE_DEBUG_RTL=0 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-n32 was given. michael@0: if test "${enable_n32+set}" = set; then : michael@0: enableval=$enable_n32; if test "$enableval" = "yes"; then michael@0: USE_N32=1 michael@0: else if test "$enableval" = "no"; then michael@0: USE_N32= michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-x32 was given. michael@0: if test "${enable_x32+set}" = set; then : michael@0: enableval=$enable_x32; if test "$enableval" = "yes"; then michael@0: USE_X32=1 michael@0: else if test "$enableval" = "no"; then michael@0: USE_X32= michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-64bit was given. michael@0: if test "${enable_64bit+set}" = set; then : michael@0: enableval=$enable_64bit; if test "$enableval" = "yes"; then michael@0: USE_64=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-mdupdate was given. michael@0: if test "${enable_mdupdate+set}" = set; then : michael@0: enableval=$enable_mdupdate; if test "$enableval" = "yes"; then michael@0: USE_MDUPDATE=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-cplus was given. michael@0: if test "${enable_cplus+set}" = set; then : michael@0: enableval=$enable_cplus; if test "$enableval" = "yes"; then michael@0: USE_CPLUS=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-arm-kuser was given. michael@0: if test "${with_arm_kuser+set}" = set; then : michael@0: withval=$with_arm_kuser; if test "$withval" = "yes"; then michael@0: $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h michael@0: michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-macos-sdk was given. michael@0: if test "${with_macos_sdk+set}" = set; then : michael@0: withval=$with_macos_sdk; MACOS_SDK_DIR=$withval michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-macos-target was given. michael@0: if test "${enable_macos_target+set}" = set; then : michael@0: enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval michael@0: fi michael@0: michael@0: michael@0: case "$target" in michael@0: michael@0: *-aix*) michael@0: case "${target_os}" in michael@0: aix3.2*) michael@0: USE_NSPR_THREADS=1 michael@0: ;; michael@0: *) michael@0: USE_PTHREADS=1 michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: esac michael@0: michael@0: if test -z "$CC"; then michael@0: case "$target" in michael@0: michael@0: *-aix*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: CC=xlc_r michael@0: else michael@0: CC=xlc michael@0: fi michael@0: ;; michael@0: michael@0: *-hpux*) michael@0: CC=cc michael@0: ;; michael@0: michael@0: *-irix*) michael@0: CC=cc michael@0: ;; michael@0: michael@0: *-osf*) michael@0: CC=cc michael@0: ;; michael@0: michael@0: *-solaris*) michael@0: CC=cc michael@0: ;; michael@0: michael@0: esac michael@0: fi michael@0: michael@0: if test -z "$CXX"; then michael@0: case "$target" in michael@0: michael@0: *-aix*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: CXX=xlC_r michael@0: else michael@0: CXX=xlC michael@0: fi michael@0: ;; michael@0: michael@0: *-hpux*) michael@0: case "${target_os}" in michael@0: hpux10.30) michael@0: CXX=aCC michael@0: ;; michael@0: hpux11.*) michael@0: CXX=aCC michael@0: ;; michael@0: *) michael@0: CXX=CC michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *-irix*) michael@0: CXX=CC michael@0: ;; michael@0: michael@0: *-osf*) michael@0: CXX=cxx michael@0: ;; michael@0: michael@0: *-solaris*) michael@0: CXX=CC michael@0: ;; michael@0: michael@0: esac michael@0: fi michael@0: michael@0: if test -z "$SKIP_PATH_CHECKS"; then michael@0: # Extract the first word of "$WHOAMI whoami", so it can be a program name with args. michael@0: set dummy $WHOAMI whoami; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_WHOAMI+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $WHOAMI in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami" michael@0: ;; michael@0: esac michael@0: fi michael@0: WHOAMI=$ac_cv_path_WHOAMI michael@0: if test -n "$WHOAMI"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5 michael@0: $as_echo "$WHOAMI" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: if test -n "$MOZ_DEBUG"; then michael@0: $as_echo "#define DEBUG 1" >>confdefs.h michael@0: michael@0: DEFINES="$DEFINES -UNDEBUG" michael@0: michael@0: case "${target_os}" in michael@0: beos*) michael@0: DEFINES="$DEFINES -DDEBUG_${USER}" michael@0: ;; michael@0: mks*|cygwin*|mingw*|msys*|os2*) michael@0: DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" michael@0: ;; michael@0: *) michael@0: DEFINES="$DEFINES -DDEBUG_`$WHOAMI`" michael@0: ;; michael@0: esac michael@0: else michael@0: $as_echo "#define NDEBUG 1" >>confdefs.h michael@0: michael@0: DEFINES="$DEFINES -UDEBUG" michael@0: fi michael@0: michael@0: if test -z "$SKIP_COMPILER_CHECKS"; then michael@0: if test "$target" != "$host"; then michael@0: echo "cross compiling from $host to $target" michael@0: cross_compiling=yes michael@0: michael@0: case "$build:$target" in michael@0: powerpc-apple-darwin8*:i?86-apple-darwin*) michael@0: _SAVE_CFLAGS=$CFLAGS michael@0: _SAVE_CXXFLAGS=$CXXFLAGS michael@0: CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" michael@0: CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" michael@0: ;; michael@0: *:arm*-apple-darwin*) michael@0: _SAVE_CFLAGS=$CFLAGS michael@0: _SAVE_CXXFLAGS=$CXXFLAGS michael@0: CFLAGS="-isysroot $MACOS_SDK_DIR $CFLAGS" michael@0: CXXFLAGS="-isysroot $MACOS_SDK_DIR $CXXFLAGS" michael@0: ;; michael@0: esac michael@0: michael@0: for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CC" && break michael@0: done michael@0: test -n "$CC" || CC="echo" michael@0: michael@0: unset ac_cv_prog_CC michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}gcc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CC="${ac_tool_prefix}gcc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_CC"; then michael@0: ac_ct_CC=$CC michael@0: # Extract the first word of "gcc", so it can be a program name with args. michael@0: set dummy gcc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CC"; then michael@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_ac_ct_CC="gcc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC michael@0: if test -n "$ac_ct_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 michael@0: $as_echo "$ac_ct_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_CC" = x; then michael@0: CC="" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CC=$ac_ct_CC michael@0: fi michael@0: else michael@0: CC="$ac_cv_prog_CC" michael@0: fi michael@0: michael@0: if test -z "$CC"; then michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}cc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CC="${ac_tool_prefix}cc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: fi michael@0: if test -z "$CC"; then michael@0: # Extract the first word of "cc", so it can be a program name with args. michael@0: set dummy cc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: ac_prog_rejected=no michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then michael@0: ac_prog_rejected=yes michael@0: continue michael@0: fi michael@0: ac_cv_prog_CC="cc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: if test $ac_prog_rejected = yes; then michael@0: # We found a bogon in the path, so make sure we never use it. michael@0: set dummy $ac_cv_prog_CC michael@0: shift michael@0: if test $# != 0; then michael@0: # We chose a different compiler from the bogus one. michael@0: # However, it has the same basename, so the bogon will be chosen michael@0: # first if we set CC to just the basename; use the full file name. michael@0: shift michael@0: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$CC"; then michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in cl.exe michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CC" && break michael@0: done michael@0: fi michael@0: if test -z "$CC"; then michael@0: ac_ct_CC=$CC michael@0: for ac_prog in cl.exe michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CC"; then michael@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_ac_ct_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC michael@0: if test -n "$ac_ct_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 michael@0: $as_echo "$ac_ct_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CC" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CC" = x; then michael@0: CC="" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CC=$ac_ct_CC michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: michael@0: michael@0: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "no acceptable C compiler found in \$PATH michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: ac_clean_files_save=$ac_clean_files michael@0: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" michael@0: # Try to create an executable without -o first, disregard a.out. michael@0: # It will help us diagnose broken compilers, and finding out an intuition michael@0: # of exeext. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 michael@0: $as_echo_n "checking whether the C compiler works... " >&6; } michael@0: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` michael@0: michael@0: # The possible output files: michael@0: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" michael@0: michael@0: ac_rmfiles= michael@0: for ac_file in $ac_files michael@0: do michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; michael@0: * ) ac_rmfiles="$ac_rmfiles $ac_file";; michael@0: esac michael@0: done michael@0: rm -f $ac_rmfiles michael@0: michael@0: if { { ac_try="$ac_link_default" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link_default") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. michael@0: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' michael@0: # in a Makefile. We should not override ac_cv_exeext if it was cached, michael@0: # so that the user can short-circuit this test for compilers unknown to michael@0: # Autoconf. michael@0: for ac_file in $ac_files '' michael@0: do michael@0: test -f "$ac_file" || continue michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) michael@0: ;; michael@0: [ab].out ) michael@0: # We found the default executable, but exeext='' is most michael@0: # certainly right. michael@0: break;; michael@0: *.* ) michael@0: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; michael@0: then :; else michael@0: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` michael@0: fi michael@0: # We set ac_cv_exeext here because the later test for it is not michael@0: # safe: cross compilers may not add the suffix if given an `-o' michael@0: # argument, so we may need to know it at that point already. michael@0: # Even if this section looks crufty: it has the advantage of michael@0: # actually working. michael@0: break;; michael@0: * ) michael@0: break;; michael@0: esac michael@0: done michael@0: test "$ac_cv_exeext" = no && ac_cv_exeext= michael@0: michael@0: else michael@0: ac_file='' michael@0: fi michael@0: if test -z "$ac_file"; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error 77 "C compiler cannot create executables michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 michael@0: $as_echo_n "checking for C compiler default output file name... " >&6; } michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 michael@0: $as_echo "$ac_file" >&6; } michael@0: ac_exeext=$ac_cv_exeext michael@0: michael@0: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out michael@0: ac_clean_files=$ac_clean_files_save michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 michael@0: $as_echo_n "checking for suffix of executables... " >&6; } michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: # If both `conftest.exe' and `conftest' are `present' (well, observable) michael@0: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will michael@0: # work properly (i.e., refer to `conftest.exe'), while it won't with michael@0: # `rm'. michael@0: for ac_file in conftest.exe conftest conftest.*; do michael@0: test -f "$ac_file" || continue michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; michael@0: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` michael@0: break;; michael@0: * ) break;; michael@0: esac michael@0: done michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "cannot compute suffix of executables: cannot compile and link michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: rm -f conftest conftest$ac_cv_exeext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 michael@0: $as_echo "$ac_cv_exeext" >&6; } michael@0: michael@0: rm -f conftest.$ac_ext michael@0: EXEEXT=$ac_cv_exeext michael@0: ac_exeext=$EXEEXT michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: FILE *f = fopen ("conftest.out", "w"); michael@0: return ferror (f) || fclose (f) != 0; michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: ac_clean_files="$ac_clean_files conftest.out" michael@0: # Check that the compiler produces executables we can run. If not, either michael@0: # the compiler is broken, or we cross compile. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 michael@0: $as_echo_n "checking whether we are cross compiling... " >&6; } michael@0: if test "$cross_compiling" != yes; then michael@0: { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: if { ac_try='./conftest$ac_cv_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then michael@0: cross_compiling=no michael@0: else michael@0: if test "$cross_compiling" = maybe; then michael@0: cross_compiling=yes michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "cannot run C compiled programs. michael@0: If you meant to cross compile, use \`--host'. michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 michael@0: $as_echo "$cross_compiling" >&6; } michael@0: michael@0: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out michael@0: ac_clean_files=$ac_clean_files_save michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 michael@0: $as_echo_n "checking for suffix of object files... " >&6; } michael@0: if ${ac_cv_objext+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: rm -f conftest.o conftest.obj michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: for ac_file in conftest.o conftest.obj conftest.*; do michael@0: test -f "$ac_file" || continue; michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; michael@0: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` michael@0: break;; michael@0: esac michael@0: done michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "cannot compute suffix of object files: cannot compile michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: rm -f conftest.$ac_cv_objext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 michael@0: $as_echo "$ac_cv_objext" >&6; } michael@0: OBJEXT=$ac_cv_objext michael@0: ac_objext=$OBJEXT michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } michael@0: if ${ac_cv_c_compiler_gnu+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_c_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GCC=yes michael@0: else michael@0: GCC= michael@0: fi michael@0: ac_test_CFLAGS=${CFLAGS+set} michael@0: ac_save_CFLAGS=$CFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 michael@0: $as_echo_n "checking whether $CC accepts -g... " >&6; } michael@0: if ${ac_cv_prog_cc_g+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_c_werror_flag=$ac_c_werror_flag michael@0: ac_c_werror_flag=yes michael@0: ac_cv_prog_cc_g=no michael@0: CFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_g=yes michael@0: else michael@0: CFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_c_werror_flag=$ac_save_c_werror_flag michael@0: CFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_c_werror_flag=$ac_save_c_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 michael@0: $as_echo "$ac_cv_prog_cc_g" >&6; } michael@0: if test "$ac_test_CFLAGS" = set; then michael@0: CFLAGS=$ac_save_CFLAGS michael@0: elif test $ac_cv_prog_cc_g = yes; then michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-g -O2" michael@0: else michael@0: CFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-O2" michael@0: else michael@0: CFLAGS= michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 michael@0: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } michael@0: if ${ac_cv_prog_cc_c89+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_cv_prog_cc_c89=no michael@0: ac_save_CC=$CC michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: struct stat; michael@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ michael@0: struct buf { int x; }; michael@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); michael@0: static char *e (p, i) michael@0: char **p; michael@0: int i; michael@0: { michael@0: return p[i]; michael@0: } michael@0: static char *f (char * (*g) (char **, int), char **p, ...) michael@0: { michael@0: char *s; michael@0: va_list v; michael@0: va_start (v,p); michael@0: s = g (p, va_arg (v,int)); michael@0: va_end (v); michael@0: return s; michael@0: } michael@0: michael@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has michael@0: function prototypes and stuff, but not '\xHH' hex character constants. michael@0: These don't provoke an error unfortunately, instead are silently treated michael@0: as 'x'. The following induces an error, until -std is added to get michael@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an michael@0: array size at least. It's necessary to write '\x00'==0 to get something michael@0: that's true only with -std. */ michael@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; michael@0: michael@0: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters michael@0: inside strings and character constants. */ michael@0: #define FOO(x) 'x' michael@0: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; michael@0: michael@0: int test (int i, double x); michael@0: struct s1 {int (*f) (int a);}; michael@0: struct s2 {int (*f) (double a);}; michael@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); michael@0: int argc; michael@0: char **argv; michael@0: int michael@0: main () michael@0: { michael@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ michael@0: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" michael@0: do michael@0: CC="$ac_save_CC $ac_arg" michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_c89=$ac_arg michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext michael@0: test "x$ac_cv_prog_cc_c89" != "xno" && break michael@0: done michael@0: rm -f conftest.$ac_ext michael@0: CC=$ac_save_CC michael@0: michael@0: fi michael@0: # AC_CACHE_VAL michael@0: case "x$ac_cv_prog_cc_c89" in michael@0: x) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 michael@0: $as_echo "none needed" >&6; } ;; michael@0: xno) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 michael@0: $as_echo "unsupported" >&6; } ;; michael@0: *) michael@0: CC="$CC $ac_cv_prog_cc_c89" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 michael@0: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; michael@0: esac michael@0: if test "x$ac_cv_prog_cc_c89" != xno; then : michael@0: michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: if test "$target" != "$host"; then michael@0: if test -n "$USE_CPLUS"; then michael@0: for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CXX"; then michael@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CXX="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CXX=$ac_cv_prog_CXX michael@0: if test -n "$CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 michael@0: $as_echo "$CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CXX" && break michael@0: done michael@0: test -n "$CXX" || CXX="echo" michael@0: michael@0: unset ac_cv_prog_CXX michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: if test -z "$CXX"; then michael@0: if test -n "$CCC"; then michael@0: CXX=$CCC michael@0: else michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CXX"; then michael@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CXX=$ac_cv_prog_CXX michael@0: if test -n "$CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 michael@0: $as_echo "$CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CXX" && break michael@0: done michael@0: fi michael@0: if test -z "$CXX"; then michael@0: ac_ct_CXX=$CXX michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CXX"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX michael@0: if test -n "$ac_ct_CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 michael@0: $as_echo "$ac_ct_CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CXX" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CXX" = x; then michael@0: CXX="g++" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CXX=$ac_ct_CXX michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } michael@0: if ${ac_cv_cxx_compiler_gnu+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GXX=yes michael@0: else michael@0: GXX= michael@0: fi michael@0: ac_test_CXXFLAGS=${CXXFLAGS+set} michael@0: ac_save_CXXFLAGS=$CXXFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 michael@0: $as_echo_n "checking whether $CXX accepts -g... " >&6; } michael@0: if ${ac_cv_prog_cxx_g+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_cxx_werror_flag=$ac_cxx_werror_flag michael@0: ac_cxx_werror_flag=yes michael@0: ac_cv_prog_cxx_g=no michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: else michael@0: CXXFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 michael@0: $as_echo "$ac_cv_prog_cxx_g" >&6; } michael@0: if test "$ac_test_CXXFLAGS" = set; then michael@0: CXXFLAGS=$ac_save_CXXFLAGS michael@0: elif test $ac_cv_prog_cxx_g = yes; then michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-g -O2" michael@0: else michael@0: CXXFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-O2" michael@0: else michael@0: CXXFLAGS= michael@0: fi michael@0: fi michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: fi michael@0: michael@0: case "$build:$target" in michael@0: powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*) michael@0: CFLAGS=$_SAVE_CFLAGS michael@0: CXXFLAGS=$_SAVE_CXXFLAGS michael@0: ;; michael@0: esac michael@0: michael@0: for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_RANLIB+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$RANLIB"; then michael@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_RANLIB="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: RANLIB=$ac_cv_prog_RANLIB michael@0: if test -n "$RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 michael@0: $as_echo "$RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$RANLIB" && break michael@0: done michael@0: test -n "$RANLIB" || RANLIB="echo" michael@0: michael@0: for ac_prog in $AR "${target_alias}-ar" "${target}-ar" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_AR+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$AR"; then michael@0: ac_cv_prog_AR="$AR" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_AR="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: AR=$ac_cv_prog_AR michael@0: if test -n "$AR"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 michael@0: $as_echo "$AR" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$AR" && break michael@0: done michael@0: test -n "$AR" || AR="echo" michael@0: michael@0: for ac_prog in $AS "${target_alias}-as" "${target}-as" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_AS+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$AS"; then michael@0: ac_cv_prog_AS="$AS" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_AS="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: AS=$ac_cv_prog_AS michael@0: if test -n "$AS"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 michael@0: $as_echo "$AS" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$AS" && break michael@0: done michael@0: test -n "$AS" || AS="echo" michael@0: michael@0: for ac_prog in $LD "${target_alias}-ld" "${target}-ld" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_LD+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$LD"; then michael@0: ac_cv_prog_LD="$LD" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_LD="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: LD=$ac_cv_prog_LD michael@0: if test -n "$LD"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 michael@0: $as_echo "$LD" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$LD" && break michael@0: done michael@0: test -n "$LD" || LD="echo" michael@0: michael@0: for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_STRIP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$STRIP"; then michael@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_STRIP="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: STRIP=$ac_cv_prog_STRIP michael@0: if test -n "$STRIP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 michael@0: $as_echo "$STRIP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$STRIP" && break michael@0: done michael@0: test -n "$STRIP" || STRIP="echo" michael@0: michael@0: for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_WINDRES+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$WINDRES"; then michael@0: ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_WINDRES="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: WINDRES=$ac_cv_prog_WINDRES michael@0: if test -n "$WINDRES"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 michael@0: $as_echo "$WINDRES" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$WINDRES" && break michael@0: done michael@0: test -n "$WINDRES" || WINDRES="echo" michael@0: michael@0: michael@0: _SAVE_CC="$CC" michael@0: _SAVE_CFLAGS="$CFLAGS" michael@0: _SAVE_LDFLAGS="$LDFLAGS" michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5 michael@0: $as_echo_n "checking for $host compiler... " >&6; } michael@0: for ac_prog in $HOST_CC gcc cc /usr/ucb/cc michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_HOST_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$HOST_CC"; then michael@0: ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_HOST_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: HOST_CC=$ac_cv_prog_HOST_CC michael@0: if test -n "$HOST_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 michael@0: $as_echo "$HOST_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$HOST_CC" && break michael@0: done michael@0: test -n "$HOST_CC" || HOST_CC="""" michael@0: michael@0: if test -z "$HOST_CC"; then michael@0: as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 michael@0: $as_echo "$HOST_CC" >&6; } michael@0: if test -z "$HOST_CFLAGS"; then michael@0: HOST_CFLAGS="$CFLAGS" michael@0: fi michael@0: if test -z "$HOST_LDFLAGS"; then michael@0: HOST_LDFLAGS="$LDFLAGS" michael@0: fi michael@0: michael@0: CC="$HOST_CC" michael@0: CFLAGS="$HOST_CFLAGS" michael@0: LDFLAGS="$HOST_LDFLAGS" michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 michael@0: $as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; } michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: else michael@0: as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: CC=$_SAVE_CC michael@0: CFLAGS=$_SAVE_CFLAGS michael@0: LDFLAGS=$_SAVE_LDFLAGS michael@0: else michael@0: if test -n "$USE_CPLUS"; then michael@0: if test "$CC" = "cl" -a -z "$CXX"; then michael@0: CXX=$CC michael@0: else michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: if test -z "$CXX"; then michael@0: if test -n "$CCC"; then michael@0: CXX=$CCC michael@0: else michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CXX"; then michael@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CXX=$ac_cv_prog_CXX michael@0: if test -n "$CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 michael@0: $as_echo "$CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CXX" && break michael@0: done michael@0: fi michael@0: if test -z "$CXX"; then michael@0: ac_ct_CXX=$CXX michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CXX"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX michael@0: if test -n "$ac_ct_CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 michael@0: $as_echo "$ac_ct_CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CXX" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CXX" = x; then michael@0: CXX="g++" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CXX=$ac_ct_CXX michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } michael@0: if ${ac_cv_cxx_compiler_gnu+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GXX=yes michael@0: else michael@0: GXX= michael@0: fi michael@0: ac_test_CXXFLAGS=${CXXFLAGS+set} michael@0: ac_save_CXXFLAGS=$CXXFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 michael@0: $as_echo_n "checking whether $CXX accepts -g... " >&6; } michael@0: if ${ac_cv_prog_cxx_g+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_cxx_werror_flag=$ac_cxx_werror_flag michael@0: ac_cxx_werror_flag=yes michael@0: ac_cv_prog_cxx_g=no michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: else michael@0: CXXFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 michael@0: $as_echo "$ac_cv_prog_cxx_g" >&6; } michael@0: if test "$ac_test_CXXFLAGS" = set; then michael@0: CXXFLAGS=$ac_save_CXXFLAGS michael@0: elif test $ac_cv_prog_cxx_g = yes; then michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-g -O2" michael@0: else michael@0: CXXFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-O2" michael@0: else michael@0: CXXFLAGS= michael@0: fi michael@0: fi michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: fi michael@0: fi michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_RANLIB+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$RANLIB"; then michael@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: RANLIB=$ac_cv_prog_RANLIB michael@0: if test -n "$RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 michael@0: $as_echo "$RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_RANLIB"; then michael@0: ac_ct_RANLIB=$RANLIB michael@0: # Extract the first word of "ranlib", so it can be a program name with args. michael@0: set dummy ranlib; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_RANLIB"; then michael@0: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_prog_ac_ct_RANLIB="ranlib" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB michael@0: if test -n "$ac_ct_RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 michael@0: $as_echo "$ac_ct_RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_RANLIB" = x; then michael@0: RANLIB=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: RANLIB=$ac_ct_RANLIB michael@0: fi michael@0: else michael@0: RANLIB="$ac_cv_prog_RANLIB" michael@0: fi michael@0: michael@0: for ac_prog in as michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_AS+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $AS in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_AS="$AS" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: AS=$ac_cv_path_AS michael@0: if test -n "$AS"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 michael@0: $as_echo "$AS" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$AS" && break michael@0: done michael@0: test -n "$AS" || AS="$CC" michael@0: michael@0: for ac_prog in ar michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_AR+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $AR in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_AR="$AR" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: AR=$ac_cv_path_AR michael@0: if test -n "$AR"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 michael@0: $as_echo "$AR" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$AR" && break michael@0: done michael@0: test -n "$AR" || AR="echo not_ar" michael@0: michael@0: for ac_prog in ld link michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_LD+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $LD in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_LD="$LD" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: LD=$ac_cv_path_LD michael@0: if test -n "$LD"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 michael@0: $as_echo "$LD" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$LD" && break michael@0: done michael@0: test -n "$LD" || LD="echo not_ld" michael@0: michael@0: for ac_prog in strip michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_STRIP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $STRIP in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: STRIP=$ac_cv_path_STRIP michael@0: if test -n "$STRIP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 michael@0: $as_echo "$STRIP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$STRIP" && break michael@0: done michael@0: test -n "$STRIP" || STRIP="echo not_strip" michael@0: michael@0: for ac_prog in windres michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_WINDRES+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $WINDRES in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: WINDRES=$ac_cv_path_WINDRES michael@0: if test -n "$WINDRES"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 michael@0: $as_echo "$WINDRES" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$WINDRES" && break michael@0: done michael@0: test -n "$WINDRES" || WINDRES="echo not_windres" michael@0: michael@0: if test -z "$HOST_CC"; then michael@0: HOST_CC="$CC" michael@0: fi michael@0: if test -z "$HOST_CFLAGS"; then michael@0: HOST_CFLAGS="$CFLAGS" michael@0: fi michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 michael@0: $as_echo_n "checking how to run the C preprocessor... " >&6; } michael@0: # On Suns, sometimes $CPP names a directory. michael@0: if test -n "$CPP" && test -d "$CPP"; then michael@0: CPP= michael@0: fi michael@0: if test -z "$CPP"; then michael@0: if ${ac_cv_prog_CPP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: # Double quotes because CPP needs to be expanded michael@0: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" michael@0: do michael@0: ac_preproc_ok=false michael@0: for ac_c_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.i conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: break michael@0: fi michael@0: michael@0: done michael@0: ac_cv_prog_CPP=$CPP michael@0: michael@0: fi michael@0: CPP=$ac_cv_prog_CPP michael@0: else michael@0: ac_cv_prog_CPP=$CPP michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 michael@0: $as_echo "$CPP" >&6; } michael@0: ac_preproc_ok=false michael@0: for ac_c_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.i conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: if test "$GCC" = "yes"; then michael@0: GNU_CC=1 michael@0: fi michael@0: if test "$GXX" = "yes"; then michael@0: GNU_CXX=1 michael@0: fi michael@0: if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then michael@0: GNU_AS=1 michael@0: fi michael@0: rm -f a.out michael@0: michael@0: case "$build:$target" in michael@0: i?86-apple-darwin*:powerpc-apple-darwin*) michael@0: cross_compiling=yes michael@0: ;; michael@0: esac michael@0: michael@0: if test "$cross_compiling" = "yes"; then michael@0: CROSS_COMPILE=1 michael@0: else michael@0: CROSS_COMPILE= michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5 michael@0: $as_echo_n "checking for gcc -pipe support... " >&6; } michael@0: if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then michael@0: echo '#include ' > dummy-hello.c michael@0: echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c michael@0: ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 michael@0: cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 michael@0: if test $? = 0; then michael@0: _res_as_stdin="yes" michael@0: else michael@0: _res_as_stdin="no" michael@0: fi michael@0: if test "$_res_as_stdin" = "yes"; then michael@0: _SAVE_CFLAGS=$CFLAGS michael@0: CFLAGS="$CFLAGS -pipe" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: printf("Hello World\n"); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: _res_gcc_pipe="yes" michael@0: else michael@0: _res_gcc_pipe="no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: CFLAGS=$_SAVE_CFLAGS michael@0: fi michael@0: if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then michael@0: _res="yes"; michael@0: CFLAGS="$CFLAGS -pipe" michael@0: CXXFLAGS="$CXXFLAGS -pipe" michael@0: else michael@0: _res="no" michael@0: fi michael@0: rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 michael@0: $as_echo "$_res" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: _SAVE_CFLAGS="$CFLAGS" michael@0: CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction" michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5 michael@0: $as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: PROFILE_GEN_CFLAGS="-fprofile-generate" michael@0: result="yes" michael@0: else michael@0: result="no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 michael@0: $as_echo "$result" >&6; } michael@0: michael@0: if test $result = "yes"; then michael@0: PROFILE_GEN_LDFLAGS="-fprofile-generate" michael@0: PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch" michael@0: PROFILE_USE_LDFLAGS="-fprofile-use" michael@0: fi michael@0: michael@0: CFLAGS="$_SAVE_CFLAGS" michael@0: michael@0: if test "$GNU_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5 michael@0: $as_echo_n "checking for visibility(hidden) attribute... " >&6; } michael@0: if ${ac_cv_visibility_hidden+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat > conftest.c </dev/null 2>&1; then michael@0: if grep '\.hidden.*foo' conftest.s >/dev/null; then michael@0: ac_cv_visibility_hidden=yes michael@0: fi michael@0: fi michael@0: rm -f conftest.cs michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5 michael@0: $as_echo "$ac_cv_visibility_hidden" >&6; } michael@0: if test "$ac_cv_visibility_hidden" = "yes"; then michael@0: $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5 michael@0: $as_echo_n "checking for visibility pragma support... " >&6; } michael@0: if ${ac_cv_visibility_pragma+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat > conftest.c </dev/null 2>&1; then michael@0: if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then michael@0: if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then michael@0: ac_cv_visibility_pragma=yes michael@0: fi michael@0: fi michael@0: fi michael@0: rm -f conftest.cs michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5 michael@0: $as_echo "$ac_cv_visibility_pragma" >&6; } michael@0: if test "$ac_cv_visibility_pragma" = "yes"; then michael@0: $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h michael@0: michael@0: # To work around a build problem on Linux x86-64 (Bugzilla bug michael@0: # 293438), we use the -fvisibility=hidden flag. This flag is less michael@0: # optimal than #pragma GCC visibility push(hidden) because the flag michael@0: # assumes that symbols defined outside the current source file have michael@0: # the default visibility. This has the advantage that we don't need michael@0: # to wrap system header files, but has the disadvantage that calls michael@0: # to hidden symbols defined in other source files cannot be michael@0: # optimized by the compiler. The -fvisibility=hidden flag does michael@0: # hide and export symbols correctly. michael@0: #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h' michael@0: #WRAP_SYSTEM_INCLUDES=1 michael@0: VISIBILITY_FLAGS="-fvisibility=hidden" michael@0: WRAP_SYSTEM_INCLUDES= michael@0: fi michael@0: fi michael@0: fi # GNU_CC michael@0: michael@0: fi # SKIP_COMPILER_CHECKS michael@0: michael@0: if test -z "$SKIP_PATH_CHECKS"; then michael@0: for ac_prog in perl5 perl michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_PERL+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $PERL in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_PERL="$PERL" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: PERL=$ac_cv_path_PERL michael@0: if test -n "$PERL"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 michael@0: $as_echo "$PERL" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$PERL" && break michael@0: done michael@0: test -n "$PERL" || PERL="echo not_perl" michael@0: michael@0: elif test -z "$PERL"; then michael@0: PERL=perl michael@0: fi michael@0: michael@0: OBJ_SUFFIX=o michael@0: LIB_SUFFIX=a michael@0: DLL_SUFFIX=so michael@0: ASM_SUFFIX=s michael@0: MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' michael@0: PR_MD_ASFILES= michael@0: PR_MD_CSRCS= michael@0: PR_MD_ARCH_DIR=unix michael@0: AR_FLAGS='cr $@' michael@0: AS='$(CC)' michael@0: ASFLAGS='$(CFLAGS)' michael@0: michael@0: if test -n "$CROSS_COMPILE"; then michael@0: OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` michael@0: OS_RELEASE= michael@0: OS_TEST="${target_cpu}" michael@0: case "${target_os}" in michael@0: linux*) OS_ARCH=Linux ;; michael@0: solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; michael@0: mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;; michael@0: darwin*) OS_ARCH=Darwin ;; michael@0: riscos*) OS_ARCH=RISCOS ;; michael@0: esac michael@0: else michael@0: OS_ARCH=`uname -s | sed -e 's|/|_|g'` michael@0: OS_RELEASE=`uname -r` michael@0: OS_TEST=`uname -m` michael@0: fi michael@0: michael@0: if test "$OS_ARCH" = "IRIX64"; then michael@0: OS_ARCH=IRIX michael@0: fi michael@0: michael@0: if test "$OS_ARCH" = "AIX"; then michael@0: OS_RELEASE=`uname -v`.`uname -r` michael@0: fi michael@0: michael@0: if test "$OS_ARCH" = "FreeBSD"; then michael@0: OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` michael@0: fi michael@0: michael@0: if test "$OS_ARCH" = "Linux"; then michael@0: OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` michael@0: OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'` michael@0: fi michael@0: michael@0: ####################################################################### michael@0: # Master "Core Components" macros for getting the OS target # michael@0: ####################################################################### michael@0: michael@0: # michael@0: # Note: OS_TARGET should be specified on the command line for gmake. michael@0: # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. michael@0: # The difference between the Win95 target and the WinNT target is that michael@0: # the WinNT target uses Windows NT specific features not available michael@0: # in Windows 95. The Win95 target will run on Windows NT, but (supposedly) michael@0: # at lesser performance (the Win95 target uses threads; the WinNT target michael@0: # uses fibers). michael@0: # michael@0: # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no michael@0: # cross-compilation. michael@0: # michael@0: michael@0: # michael@0: # The following hack allows one to build on a WIN95 machine (as if michael@0: # s/he were cross-compiling on a WINNT host for a WIN95 target). michael@0: # It also accomodates for MKS's uname.exe. If you never intend michael@0: # to do development on a WIN95 machine, you don't need this hack. michael@0: # michael@0: case "$OS_ARCH" in michael@0: Windows_95) michael@0: OS_ARCH=Windows_NT michael@0: OS_TARGET=WIN95 michael@0: ;; michael@0: Windows_98) michael@0: OS_ARCH=Windows_NT michael@0: OS_TARGET=WIN95 michael@0: ;; michael@0: CYGWIN_9*|CYGWIN_ME*) michael@0: OS_ARCH='CYGWIN_NT-4.0' michael@0: OS_TARGET=WIN95 michael@0: ;; michael@0: OS_2) michael@0: OS_ARCH=OS2 michael@0: OS_TARGET=OS2 michael@0: ;; michael@0: esac michael@0: michael@0: # michael@0: # On WIN32, we also define the variable CPU_ARCH. michael@0: # michael@0: michael@0: case "$OS_ARCH" in michael@0: Windows_NT) michael@0: # michael@0: # If uname -s returns "Windows_NT", we assume that we are using michael@0: # the uname.exe in MKS toolkit. michael@0: # michael@0: # The -r option of MKS uname only returns the major version number. michael@0: # So we need to use its -v option to get the minor version number. michael@0: # Moreover, it doesn't have the -p option, so we need to use uname -m. michael@0: # michael@0: OS_ARCH=WINNT michael@0: OS_MINOR_RELEASE=`uname -v` michael@0: if test "$OS_MINOR_RELEASE" = "00"; then michael@0: OS_MINOR_RELEASE=0 michael@0: fi michael@0: OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" michael@0: CPU_ARCH=`uname -m` michael@0: # michael@0: # MKS's uname -m returns "586" on a Pentium machine. michael@0: # michael@0: if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then michael@0: CPU_ARCH=x86 michael@0: fi michael@0: ;; michael@0: CYGWIN_NT*|MINGW*_NT*|MSYS_NT*) michael@0: # michael@0: # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using michael@0: # the uname.exe in the Cygwin tools. michael@0: # If uname -s returns "MINGW32_NT-5.1", we assume that we are using michael@0: # the uname.exe in the MSYS tools. michael@0: # If uname -s returns "MSYS_NT-6.3", we assume that we are using michael@0: # the uname.exe in the MSYS2 tools. michael@0: # michael@0: OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` michael@0: OS_ARCH=WINNT michael@0: CPU_ARCH=`uname -m` michael@0: # michael@0: # Cygwin's uname -m returns "i686" on a Pentium Pro machine. michael@0: # michael@0: if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then michael@0: CPU_ARCH=x86 michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then michael@0: OS_TARGET=WIN95 michael@0: if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then michael@0: USE_DEBUG_RTL=1 michael@0: fi michael@0: fi michael@0: if test -z "$OS_TARGET"; then michael@0: OS_TARGET=$OS_ARCH michael@0: fi michael@0: if test "$OS_TARGET" = "WIN95"; then michael@0: OS_RELEASE="4.0" michael@0: fi michael@0: OS_CONFIG="${OS_TARGET}${OS_RELEASE}" michael@0: michael@0: # Check whether --enable-os2-high-mem was given. michael@0: if test "${enable_os2_high_mem+set}" = set; then : michael@0: enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then michael@0: MOZ_OS2_HIGH_MEMORY= michael@0: else michael@0: MOZ_OS2_HIGH_MEMORY=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: MOZ_ALIGN=toolchain-default michael@0: michael@0: case "$target" in michael@0: arm*-android*|arm*-linuxandroid*) michael@0: MOZ_THUMB=yes michael@0: MOZ_ARCH=armv7-a michael@0: MOZ_FPU=vfp michael@0: MOZ_FLOAT_ABI=softfp michael@0: MOZ_SOFT_FLOAT=yes michael@0: MOZ_ALIGN=no michael@0: ;; michael@0: arm*-*) michael@0: if test -n "$MOZ_PLATFORM_MAEMO"; then michael@0: MOZ_THUMB=no michael@0: MOZ_ARCH=armv7-a michael@0: MOZ_FLOAT_ABI=softfp michael@0: fi michael@0: if test "$MOZ_PLATFORM_MAEMO" = 6; then michael@0: MOZ_THUMB=yes michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: # Check whether --enable-thumb2 was given. michael@0: if test "${enable_thumb2+set}" = set; then : michael@0: enableval=$enable_thumb2; MOZ_THUMB=$enableval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-thumb was given. michael@0: if test "${with_thumb+set}" = set; then : michael@0: withval=$with_thumb; if test -z "$GNU_CC"; then michael@0: as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5 michael@0: fi michael@0: MOZ_THUMB=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-thumb-interwork was given. michael@0: if test "${with_thumb_interwork+set}" = set; then : michael@0: withval=$with_thumb_interwork; if test -z "$GNU_CC"; then michael@0: as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5 michael@0: fi michael@0: MOZ_THUMB_INTERWORK=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-arch was given. michael@0: if test "${with_arch+set}" = set; then : michael@0: withval=$with_arch; if test -z "$GNU_CC"; then michael@0: as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5 michael@0: fi michael@0: MOZ_ARCH=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-fpu was given. michael@0: if test "${with_fpu+set}" = set; then : michael@0: withval=$with_fpu; if test -z "$GNU_CC"; then michael@0: as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5 michael@0: fi michael@0: MOZ_FPU=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-float-abi was given. michael@0: if test "${with_float_abi+set}" = set; then : michael@0: withval=$with_float_abi; if test -z "$GNU_CC"; then michael@0: as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5 michael@0: fi michael@0: MOZ_FLOAT_ABI=$withval michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check whether --with-soft-float was given. michael@0: if test "${with_soft_float+set}" = set; then : michael@0: withval=$with_soft_float; if test -z "$GNU_CC"; then michael@0: as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5 michael@0: fi michael@0: MOZ_SOFT_FLOAT=$withval michael@0: fi michael@0: michael@0: michael@0: case "$MOZ_ARCH" in michael@0: toolchain-default|"") michael@0: arch_flag="" michael@0: ;; michael@0: *) michael@0: arch_flag="-march=$MOZ_ARCH" michael@0: ;; michael@0: esac michael@0: michael@0: case "$MOZ_THUMB" in michael@0: yes) michael@0: MOZ_THUMB2=1 michael@0: thumb_flag="-mthumb" michael@0: ;; michael@0: no) michael@0: MOZ_THUMB2= michael@0: thumb_flag="-marm" michael@0: ;; michael@0: *) michael@0: _SAVE_CFLAGS="$CFLAGS" michael@0: CFLAGS="$arch_flag" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return sizeof(__thumb2__); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: MOZ_THUMB2=1 michael@0: else michael@0: MOZ_THUMB2= michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: CFLAGS="$_SAVE_CFLAGS" michael@0: thumb_flag="" michael@0: ;; michael@0: esac michael@0: michael@0: case "$MOZ_THUMB_INTERWORK" in michael@0: yes) michael@0: thumb_interwork_flag="-mthumb-interwork" michael@0: ;; michael@0: no) michael@0: thumb_interwork_flag="-mno-thumb-interwork" michael@0: ;; michael@0: *) # toolchain-default michael@0: thumb_interwork_flag="" michael@0: ;; michael@0: esac michael@0: michael@0: case "$MOZ_FPU" in michael@0: toolchain-default|"") michael@0: fpu_flag="" michael@0: ;; michael@0: *) michael@0: fpu_flag="-mfpu=$MOZ_FPU" michael@0: ;; michael@0: esac michael@0: michael@0: case "$MOZ_FLOAT_ABI" in michael@0: toolchain-default|"") michael@0: float_abi_flag="" michael@0: ;; michael@0: *) michael@0: float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI" michael@0: ;; michael@0: esac michael@0: michael@0: case "$MOZ_SOFT_FLOAT" in michael@0: yes) michael@0: soft_float_flag="-msoft-float" michael@0: ;; michael@0: no) michael@0: soft_float_flag="-mno-soft-float" michael@0: ;; michael@0: *) # toolchain-default michael@0: soft_float_flag="" michael@0: ;; michael@0: esac michael@0: michael@0: case "$MOZ_ALIGN" in michael@0: toolchain-default|"") michael@0: align_flag="" michael@0: ;; michael@0: no) michael@0: align_flag="-mno-unaligned-access" michael@0: ;; michael@0: yes) michael@0: align_flag="-munaligned-access" michael@0: ;; michael@0: *) michael@0: align_flag="" michael@0: ;; michael@0: esac michael@0: michael@0: if test -n "$align_flag"; then michael@0: _SAVE_CFLAGS="$CFLAGS" michael@0: CFLAGS="$CFLAGS $align_flag" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5 michael@0: $as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: align_flag="" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: CFLAGS="$_SAVE_CFLAGS" michael@0: fi michael@0: michael@0: all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` michael@0: if test -n "$all_flags"; then michael@0: _SAVE_CFLAGS="$CFLAGS" michael@0: CFLAGS="$all_flags" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5 michael@0: $as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: else michael@0: as_fn_error $? "no" "$LINENO" 5 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: CFLAGS="$_SAVE_CFLAGS $all_flags" michael@0: CXXFLAGS="$CXXFLAGS $all_flags" michael@0: ASFLAGS="$ASFLAGS $all_flags" michael@0: if test -n "$thumb_flag"; then michael@0: LDFLAGS="$LDFLAGS $thumb_flag" michael@0: fi michael@0: fi michael@0: michael@0: case "$host" in michael@0: *-mingw*|*-msys*) michael@0: NSINSTALL=nsinstall michael@0: ;; michael@0: *-cygwin*|*-mks*) michael@0: NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' michael@0: if test `echo "${PATH}" | grep -c \;` = 0; then michael@0: CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' michael@0: fi michael@0: ;; michael@0: *-beos*) michael@0: HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE" michael@0: ;; michael@0: *os2*) michael@0: ;; michael@0: *) michael@0: HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" michael@0: ;; michael@0: esac michael@0: michael@0: case "$target" in michael@0: michael@0: *-aix*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define AIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SYSV 1" >>confdefs.h michael@0: michael@0: DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 michael@0: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } michael@0: if ${ac_cv_path_GREP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$GREP"; then michael@0: ac_path_GREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in grep ggrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: as_fn_executable_p "$ac_path_GREP" || continue michael@0: # Check for GNU ac_path_GREP and select it if it is found. michael@0: # Check for GNU $ac_path_GREP michael@0: case `"$ac_path_GREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'GREP' >> "conftest.nl" michael@0: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_GREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_GREP="$ac_path_GREP" michael@0: ac_path_GREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_GREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_GREP"; then michael@0: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_GREP=$GREP michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 michael@0: $as_echo "$ac_cv_path_GREP" >&6; } michael@0: GREP="$ac_cv_path_GREP" michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 michael@0: $as_echo_n "checking for egrep... " >&6; } michael@0: if ${ac_cv_path_EGREP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 michael@0: then ac_cv_path_EGREP="$GREP -E" michael@0: else michael@0: if test -z "$EGREP"; then michael@0: ac_path_EGREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in egrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: as_fn_executable_p "$ac_path_EGREP" || continue michael@0: # Check for GNU ac_path_EGREP and select it if it is found. michael@0: # Check for GNU $ac_path_EGREP michael@0: case `"$ac_path_EGREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'EGREP' >> "conftest.nl" michael@0: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_EGREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_EGREP="$ac_path_EGREP" michael@0: ac_path_EGREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_EGREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_EGREP"; then michael@0: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_EGREP=$EGREP michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 michael@0: $as_echo "$ac_cv_path_EGREP" >&6; } michael@0: EGREP="$ac_cv_path_EGREP" michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 michael@0: $as_echo_n "checking for ANSI C header files... " >&6; } michael@0: if ${ac_cv_header_stdc+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_header_stdc=yes michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "memchr" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "free" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. michael@0: if test "$cross_compiling" = yes; then : michael@0: : michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #if ((' ' & 0x0FF) == 0x020) michael@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') michael@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) michael@0: #else michael@0: # define ISLOWER(c) \ michael@0: (('a' <= (c) && (c) <= 'i') \ michael@0: || ('j' <= (c) && (c) <= 'r') \ michael@0: || ('s' <= (c) && (c) <= 'z')) michael@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) michael@0: #endif michael@0: michael@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) michael@0: int michael@0: main () michael@0: { michael@0: int i; michael@0: for (i = 0; i < 256; i++) michael@0: if (XOR (islower (i), ISLOWER (i)) michael@0: || toupper (i) != TOUPPER (i)) michael@0: return 2; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 michael@0: $as_echo "$ac_cv_header_stdc" >&6; } michael@0: if test $ac_cv_header_stdc = yes; then michael@0: michael@0: $as_echo "#define STDC_HEADERS 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: # On IRIX 5.3, sys/types and inttypes.h are conflicting. michael@0: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ michael@0: inttypes.h stdint.h unistd.h michael@0: do : michael@0: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` michael@0: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default michael@0: " michael@0: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: michael@0: ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then : michael@0: $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: michael@0: case "${target_os}" in michael@0: aix3.2*) michael@0: $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h michael@0: michael@0: AIX_LINK_OPTS='-bnso -berok' michael@0: PR_MD_ASFILES=os_AIX.s michael@0: ;; michael@0: aix4.1*) michael@0: $as_echo "#define AIX_TIMERS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h michael@0: michael@0: $as_echo "#define AIX4_1 1" >>confdefs.h michael@0: michael@0: MKSHLIB= michael@0: DSO_LDOPTS= michael@0: AIX_LINK_OPTS='-bnso -berok' michael@0: LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr' michael@0: LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr' michael@0: ;; michael@0: aix4.2*) michael@0: $as_echo "#define AIX_TIMERS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h michael@0: michael@0: AIX_LINK_OPTS='-brtl -bnso -berok' michael@0: ;; michael@0: aix4.3*) michael@0: $as_echo "#define AIX_TIMERS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h michael@0: michael@0: $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: USE_IPV6=1 michael@0: AIX_LINK_OPTS='-brtl -bnso -berok' michael@0: ;; michael@0: *) michael@0: $as_echo "#define AIX_TIMERS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h michael@0: michael@0: $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: USE_IPV6=1 michael@0: AIX_LINK_OPTS='-brtl -bnso -berok' michael@0: ;; michael@0: esac michael@0: CFLAGS="$CFLAGS -qro -qroconst" michael@0: AIX_WRAP='$(DIST)/lib/aixwrap.o' michael@0: AIX_TMP='./_aix_tmp.o' michael@0: if test -n "$USE_64"; then michael@0: MDCPUCFG_H=_aix64.cfg michael@0: OBJECT_MODE=64 michael@0: else michael@0: MDCPUCFG_H=_aix32.cfg michael@0: fi michael@0: PR_MD_CSRCS=aix.c michael@0: RESOLVE_LINK_SYMBOLS=1 michael@0: ;; michael@0: michael@0: *-beos*) michael@0: $as_echo "#define XP_BEOS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define BeOS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define BEOS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h michael@0: michael@0: DSO_LDOPTS=-nostart michael@0: MDCPUCFG_H=_beos.cfg michael@0: USE_BTHREADS=1 michael@0: PR_MD_ARCH_DIR=beos michael@0: RESOLVE_LINK_SYMBOLS=1 michael@0: case "${target_cpu}" in michael@0: i*86) michael@0: _OPTIMIZE_FLAGS=-O2 michael@0: _DEBUG_FLAGS='-gdwarf-2 -O0' michael@0: MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@' michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 michael@0: $as_echo_n "checking for gethostbyaddr in -lbind... " >&6; } michael@0: if ${ac_cv_lib_bind_gethostbyaddr+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lbind $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char gethostbyaddr (); michael@0: int michael@0: main () michael@0: { michael@0: return gethostbyaddr (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_bind_gethostbyaddr=yes michael@0: else michael@0: ac_cv_lib_bind_gethostbyaddr=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 michael@0: $as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; } michael@0: if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then : michael@0: OS_LIBS="$OS_LIBS -lbind -lsocket" michael@0: fi michael@0: michael@0: ;; michael@0: powerpc) michael@0: CC=mwcc michael@0: CCC=mwcc michael@0: LD=mwld michael@0: DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o' michael@0: _OPTIMIZE_FLAGS=-O2 michael@0: _DEBUG_FLAGS='-g -O0' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *-bsdi*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define BSDI 1" >>confdefs.h michael@0: michael@0: $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h michael@0: michael@0: michael@0: CFLAGS="$CFLAGS -Wall -Wno-format" michael@0: CXXFLAGS="$CXXFLAGS -Wall -Wno-format" michael@0: michael@0: if echo "$OS_TEST" | grep -c 86 >/dev/null; then michael@0: CPU_ARCH=x86 michael@0: elif echo "$OS_TEST" | grep -c sparc >/dev/null; then michael@0: CPU_ARCH=sparc michael@0: fi michael@0: michael@0: MDCPUCFG_H=_bsdi.cfg michael@0: PR_MD_CSRCS=bsdi.c michael@0: michael@0: DSO_LDOPTS=-r michael@0: michael@0: case "$target_os" in michael@0: bsdi1.1*) michael@0: $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h michael@0: michael@0: MKSHLIB= michael@0: DSO_CFLAGS= michael@0: DSO_LDOPTS= michael@0: ;; michael@0: michael@0: bsdi2.1*) michael@0: $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_DLL 1" >>confdefs.h michael@0: michael@0: $as_echo "#define USE_DLFCN 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h michael@0: michael@0: PR_MD_ASFILES=os_BSD_OS_386_2.s michael@0: ;; michael@0: michael@0: bsdi4.* | bsdi5.*) michael@0: $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_DLL 1" >>confdefs.h michael@0: michael@0: $as_echo "#define USE_DLFCN 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h michael@0: michael@0: MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' michael@0: DSO_CFLAGS=-fPIC michael@0: DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)' michael@0: STRIP="$STRIP -d" michael@0: case "$target_os" in michael@0: bsdi4.2* | bsdi4.3* | bsdi5.*) michael@0: $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: ;; michael@0: *) michael@0: $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_DLL 1" >>confdefs.h michael@0: michael@0: $as_echo "#define USE_DLFCN 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: michael@0: ;; michael@0: michael@0: *-darwin*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define DARWIN 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h michael@0: michael@0: AS='$(CC) -x assembler-with-cpp' michael@0: CFLAGS="$CFLAGS -Wall -fno-common" michael@0: case "${target_cpu}" in michael@0: arm*) michael@0: CPU_ARCH=arm michael@0: ;; michael@0: i*86*|x86_64) michael@0: if test -n "$USE_64"; then michael@0: CPU_ARCH=x86_64 michael@0: else michael@0: CPU_ARCH=i386 michael@0: fi michael@0: ;; michael@0: *) michael@0: CPU_ARCH=ppc michael@0: ;; michael@0: esac michael@0: if test "`echo $CC | grep -c '\-arch '`" = "0"; then michael@0: CC="$CC -arch $CPU_ARCH" michael@0: fi michael@0: ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_crt_externs_h" = xyes; then : michael@0: michael@0: fi michael@0: michael@0: michael@0: DSO_CFLAGS=-fPIC michael@0: DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names' michael@0: _OPTIMIZE_FLAGS=-O2 michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: STRIP="$STRIP -x -S" michael@0: DLL_SUFFIX=dylib michael@0: USE_PTHREADS=1 michael@0: MDCPUCFG_H=_darwin.cfg michael@0: PR_MD_CSRCS=darwin.c michael@0: PR_MD_ASFILES=os_Darwin.s michael@0: michael@0: # Add Mac OS X support for loading CFM & CFBundle plugins michael@0: if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then michael@0: $as_echo "#define XP_MACOSX 1" >>confdefs.h michael@0: michael@0: OS_TARGET=MacOSX michael@0: michael@0: if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then michael@0: export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET michael@0: elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then michael@0: case "${target_cpu}" in michael@0: powerpc*) michael@0: export MACOSX_DEPLOYMENT_TARGET=10.2 michael@0: ;; michael@0: i*86*) michael@0: export MACOSX_DEPLOYMENT_TARGET=10.4 michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: if test "$MACOS_SDK_DIR"; then michael@0: michael@0: if test ! -d "$MACOS_SDK_DIR"; then michael@0: as_fn_error $? "SDK not found. When using --with-macos-sdk, you must michael@0: specify a valid SDK. SDKs are installed when the optional cross-development michael@0: tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5 michael@0: fi michael@0: michael@0: michael@0: CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` michael@0: GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` michael@0: GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` michael@0: michael@0: GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` michael@0: if test "$GCC_VERSION_MAJOR" -lt "4" ; then michael@0: SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" michael@0: if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then michael@0: SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" michael@0: fi michael@0: michael@0: SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" michael@0: michael@0: CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" michael@0: michael@0: CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" michael@0: michael@0: michael@0: HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` michael@0: michael@0: if test "$HOST_DARWIN_MAJOR" -lt 9 ; then michael@0: 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}" michael@0: else michael@0: MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}" michael@0: fi michael@0: michael@0: LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" michael@0: export NEXT_ROOT=$MACOS_SDK_DIR michael@0: michael@0: if test -n "$CROSS_COMPILE" ; then michael@0: HOST_CC="NEXT_ROOT= $HOST_CC" michael@0: HOST_CXX="NEXT_ROOT= $HOST_CXX" michael@0: fi michael@0: else michael@0: CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" michael@0: michael@0: CPP="$CPP -isysroot ${MACOS_SDK_DIR}" michael@0: michael@0: if test "$GCC_VERSION_FULL" != "4.0.0" ; then michael@0: LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" michael@0: else michael@0: LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: ;; michael@0: michael@0: *-dgux*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SVR4 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SYSV 1" >>confdefs.h michael@0: michael@0: $as_echo "#define DGUX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _DGUX_SOURCE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _POSIX4A_DRAFT6_SOURCE 1" >>confdefs.h michael@0: michael@0: DSO_LDOPTS=-G michael@0: _OPTIMIZE_FLAGS=-O2 michael@0: _DEBUG_FLAGS= michael@0: MDCPUCFG_H=_dgux.cfg michael@0: PR_MD_CSRCS=dgux.c michael@0: ;; michael@0: michael@0: *-freebsd*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS=1 michael@0: fi michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define FREEBSD 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h michael@0: michael@0: CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" michael@0: MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` michael@0: if test "$MOZ_OBJFORMAT" = "elf"; then michael@0: DLL_SUFFIX=so michael@0: else michael@0: DLL_SUFFIX=so.1.0 michael@0: fi michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: DSO_CFLAGS=-fPIC michael@0: DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' michael@0: MDCPUCFG_H=_freebsd.cfg michael@0: PR_MD_CSRCS=freebsd.c michael@0: ;; michael@0: michael@0: *-hpux*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HPUX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h michael@0: michael@0: # OSF1 and HPUX report the POLLHUP event for a socket when the michael@0: # shutdown(SHUT_WR) operation is called for the remote end, even though michael@0: # the socket is still writeable. Use select(), instead of poll(), to michael@0: # workaround this problem. michael@0: $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h michael@0: michael@0: DSO_LDOPTS='-b +h $(notdir $@)' michael@0: PR_MD_CSRCS=hpux.c michael@0: if test "$OS_TEST" = "ia64"; then michael@0: DLL_SUFFIX=so michael@0: DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'" michael@0: CPU_ARCH_TAG=_$OS_TEST michael@0: if test -z "$USE_64"; then michael@0: COMPILER_TAG=_32 michael@0: fi michael@0: PR_MD_ASFILES=os_HPUX_ia64.s michael@0: else michael@0: $as_echo "#define hppa 1" >>confdefs.h michael@0: michael@0: DLL_SUFFIX=sl michael@0: PR_MD_ASFILES=os_HPUX.s michael@0: fi michael@0: if test -n "$USE_64"; then michael@0: MDCPUCFG_H=_hpux64.cfg michael@0: else michael@0: MDCPUCFG_H=_hpux32.cfg michael@0: fi michael@0: if test -z "$GNU_CC"; then michael@0: CC="$CC -Ae" michael@0: CXX="$CXX -ext" michael@0: DSO_CFLAGS=+Z michael@0: else michael@0: DSO_CFLAGS=-fPIC michael@0: ASFLAGS="$ASFLAGS -x assembler-with-cpp" michael@0: fi michael@0: michael@0: if test -n "$MOZILLA_CLIENT"; then michael@0: DEFAULT_IMPL_STRATEGY=_EMU michael@0: fi michael@0: michael@0: if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then michael@0: $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HPUX9 1" >>confdefs.h michael@0: michael@0: DEFAULT_IMPL_STRATEGY=_EMU michael@0: USE_NSPR_THREADS=1 michael@0: fi michael@0: michael@0: if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then michael@0: $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then michael@0: $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then michael@0: $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: # HP-UX 11i v2 (B.11.23) or higher michael@0: michael@0: case "$OS_RELEASE" in michael@0: [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*) michael@0: USE_IPV6=1 michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: if test "$OS_RELEASE" = "B.10.01"; then michael@0: $as_echo "#define HPUX10 1" >>confdefs.h michael@0: michael@0: DEFAULT_IMPL_STRATEGY=_EMU michael@0: fi michael@0: michael@0: if test "$OS_RELEASE" = "B.10.10"; then michael@0: $as_echo "#define HPUX10 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HPUX10_10 1" >>confdefs.h michael@0: michael@0: DEFAULT_IMPL_STRATEGY=_PTH michael@0: fi michael@0: michael@0: if test "$OS_RELEASE" = "B.10.20"; then michael@0: $as_echo "#define HPUX10 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HPUX10_20 1" >>confdefs.h michael@0: michael@0: if test -z "$GNU_CC"; then michael@0: CFLAGS="$CFLAGS +DAportable +DS1.1" michael@0: CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" michael@0: fi michael@0: DEFAULT_IMPL_STRATEGY=_PTH michael@0: fi michael@0: michael@0: if test "$OS_RELEASE" = "B.10.30"; then michael@0: $as_echo "#define HPUX10 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HPUX10_30 1" >>confdefs.h michael@0: michael@0: if test -z "$GNU_CC"; then michael@0: CFLAGS="$CFLAGS +DAportable +DS1.1" michael@0: CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" michael@0: fi michael@0: DEFAULT_IMPL_STRATEGY=_PTH michael@0: fi michael@0: michael@0: if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then michael@0: $as_echo "#define HPUX10 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HPUX11 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: if test -z "$GNU_CC"; then michael@0: if test -z "$USE_64"; then michael@0: if test "$OS_TEST" = "ia64"; then michael@0: CFLAGS="$CFLAGS +DD32" michael@0: CXXFLAGS="$CXXFLAGS +DD32" michael@0: else michael@0: CFLAGS="$CFLAGS +DAportable +DS2.0" michael@0: CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" michael@0: fi michael@0: else michael@0: if test "$OS_TEST" = "ia64"; then michael@0: CFLAGS="$CFLAGS +DD64" michael@0: CXXFLAGS="$CXXFLAGS +DD64" michael@0: else michael@0: CFLAGS="$CFLAGS +DA2.0W +DS2.0" michael@0: CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" michael@0: fi michael@0: fi michael@0: fi michael@0: DEFAULT_IMPL_STRATEGY=_PTH michael@0: fi michael@0: michael@0: if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then michael@0: USE_NSPR_THREADS=1 michael@0: USE_PTHREADS= michael@0: USE_USER_PTHREADS= michael@0: elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then michael@0: USE_PTHREADS=1 michael@0: if test "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS= michael@0: fi michael@0: if test "$USE_USER_PTHREADS"; then michael@0: USE_PTHREADS= michael@0: fi michael@0: fi michael@0: ;; michael@0: michael@0: *-irix*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define IRIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SVR4 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: PR_MD_CSRCS=irix.c michael@0: PR_MD_ASFILES=os_Irix.s michael@0: MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@' michael@0: STRIP="$STRIP -f" michael@0: RESOLVE_LINK_SYMBOLS=1 michael@0: if test -n "$USE_64"; then michael@0: MDCPUCFG_H=_irix64.cfg michael@0: else michael@0: MDCPUCFG_H=_irix32.cfg michael@0: fi michael@0: case "${target_os}" in michael@0: irix6*) michael@0: $as_echo "#define IRIX6 1" >>confdefs.h michael@0: michael@0: USE_PTHREADS=1 michael@0: USE_N32=1 michael@0: COMPILER_TAG=_n32 michael@0: IMPL_STRATEGY=_PTH michael@0: ;; michael@0: irix5*) michael@0: $as_echo "#define IRIX5 1" >>confdefs.h michael@0: michael@0: USE_NSPR_THREADS=1 michael@0: ;; michael@0: *) michael@0: USE_PTHREADS=1 michael@0: USE_N32=1 michael@0: ;; michael@0: esac michael@0: if test "$GNU_CC"; then michael@0: AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)' michael@0: CFLAGS="$CFLAGS -Wall -Wno-format" michael@0: _OPTIMIZE_FLAGS="-O6" michael@0: else michael@0: if test -n "$USE_N32"; then michael@0: AS='as -D_ASM $(INCLUDES) -n32' michael@0: else michael@0: AS='as -D_ASM $(INCLUDES)' michael@0: fi michael@0: CFLAGS="$CFLAGS -fullwarn -xansi" michael@0: if test "$USE_N32"; then michael@0: _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000" michael@0: else michael@0: _OPTIMIZE_FLAGS="-O -Olimit 4000" michael@0: fi michael@0: if test "$USE_MDUPDATE"; then michael@0: CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" michael@0: fi michael@0: case "${target}" in michael@0: *-irix6.*) michael@0: CFLAGS="$CFLAGS -multigot" michael@0: DSO_LDOPTS="-no_unresolved" michael@0: if test "$USE_N32"; then michael@0: CFLAGS="$CFLAGS -n32 -woff 1209" michael@0: DSO_LDOPTS="$DSO_LDOPTS -n32" michael@0: else michael@0: if test "$USE_64"; then michael@0: CFLAGS="$CFLAGS -64" michael@0: else michael@0: CFLAGS="$CFLAGS -32" michael@0: fi michael@0: fi michael@0: ;; michael@0: *) michael@0: CFLAGS="$CFLAGS -xgot" michael@0: ;; michael@0: esac michael@0: fi michael@0: if test "${target_os}" = "irix5.3"; then michael@0: $as_echo "#define IRIX5_3 1" >>confdefs.h michael@0: michael@0: fi michael@0: case "${target_os}" in michael@0: irix6.5) michael@0: if test -z "$GNU_CC"; then michael@0: CFLAGS="$CFLAGS -mips3" michael@0: fi michael@0: $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h michael@0: michael@0: ;; michael@0: irix5*) michael@0: ;; michael@0: *) michael@0: $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS=1 michael@0: IMPL_STRATEGY=_PTH michael@0: fi michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: case "${target}" in michael@0: *-android*|*-linuxandroid*) michael@0: OS_TARGET=Android michael@0: $as_echo "#define LINUX 1" >>confdefs.h michael@0: michael@0: ;; michael@0: *-linux*) michael@0: $as_echo "#define LINUX 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: CFLAGS="$CFLAGS -Wall" michael@0: CXXFLAGS="$CXXFLAGS -Wall" michael@0: MDCPUCFG_H=_linux.cfg michael@0: PR_MD_CSRCS=linux.c michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: DSO_CFLAGS=-fPIC michael@0: DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' michael@0: _OPTIMIZE_FLAGS=-O2 michael@0: _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that michael@0: # combo is not yet good at debugging inlined michael@0: # functions (even when using DWARF2 as the michael@0: # debugging format) michael@0: COMPILER_TAG=_glibc michael@0: if echo "$OS_TEST" | grep -c 86 >/dev/null; then michael@0: CPU_ARCH=x86 michael@0: else michael@0: CPU_ARCH=$OS_TEST michael@0: fi michael@0: CPU_ARCH_TAG=_${CPU_ARCH} michael@0: case "${target_cpu}" in michael@0: alpha) michael@0: $as_echo "#define _ALPHA_ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __alpha 1" >>confdefs.h michael@0: michael@0: CFLAGS="$CFLAGS -mieee" michael@0: CXXFLAGS="$CXXFLAGS -mieee" michael@0: ;; michael@0: i*86) michael@0: $as_echo "#define i386 1" >>confdefs.h michael@0: michael@0: PR_MD_ASFILES=os_Linux_x86.s michael@0: ;; michael@0: ia64) michael@0: PR_MD_ASFILES=os_Linux_ia64.s michael@0: ;; michael@0: x86_64) michael@0: if test -n "$USE_64"; then michael@0: PR_MD_ASFILES=os_Linux_x86_64.s michael@0: elif test -n "$USE_X32"; then michael@0: PR_MD_ASFILES=os_Linux_x86_64.s michael@0: CC="$CC -mx32" michael@0: CXX="$CXX -mx32" michael@0: else michael@0: $as_echo "#define i386 1" >>confdefs.h michael@0: michael@0: PR_MD_ASFILES=os_Linux_x86.s michael@0: CC="$CC -m32" michael@0: CXX="$CXX -m32" michael@0: fi michael@0: ;; michael@0: ppc|powerpc) michael@0: PR_MD_ASFILES=os_Linux_ppc.s michael@0: ;; michael@0: powerpc64) michael@0: if test -n "$USE_64"; then michael@0: CC="$CC -m64" michael@0: CXX="$CXX -m64" michael@0: else michael@0: PR_MD_ASFILES=os_Linux_ppc.s michael@0: fi michael@0: ;; michael@0: m68k) michael@0: CFLAGS="$CFLAGS -m68020-60" michael@0: CXXFLAGS="$CXXFLAGS -m68020-60" michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *-mingw*|*-msys*|*-cygwin*|*-mks*) michael@0: $as_echo "#define XP_PC 1" >>confdefs.h michael@0: michael@0: $as_echo "#define WIN32 1" >>confdefs.h michael@0: michael@0: PR_MD_ARCH_DIR=windows michael@0: RESOLVE_LINK_SYMBOLS=1 michael@0: michael@0: if test -n "$GNU_CC"; then michael@0: CC="$CC -mwindows" michael@0: CXX="$CXX -mwindows" michael@0: DLL_SUFFIX=dll michael@0: MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))' michael@0: RC=$WINDRES michael@0: # Use temp file for windres (bug 213281) michael@0: RCFLAGS='-O coff --use-temp-file' michael@0: else michael@0: CC=cl michael@0: CXX=cl michael@0: LD=link michael@0: AR='lib -NOLOGO -OUT:"$@"' michael@0: AR_FLAGS= michael@0: RANLIB='echo not_ranlib' michael@0: STRIP='echo not_strip' michael@0: RC=rc.exe michael@0: GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' michael@0: OBJ_SUFFIX=obj michael@0: LIB_SUFFIX=lib michael@0: DLL_SUFFIX=dll michael@0: michael@0: # Determine compiler version michael@0: michael@0: _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' michael@0: michael@0: CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` michael@0: _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` michael@0: _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` michael@0: _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` michael@0: _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` michael@0: MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} michael@0: michael@0: if test "$_CC_MAJOR_VERSION" -eq "14"; then michael@0: if test $_CC_RELEASE -gt 50727; then michael@0: _USE_DYNAMICBASE=1 michael@0: elif test $_CC_BUILD -ge 762; then michael@0: _USE_DYNAMICBASE=1 michael@0: fi michael@0: $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h michael@0: michael@0: elif test $_CC_MAJOR_VERSION -ge 15; then michael@0: _USE_DYNAMICBASE=1 michael@0: $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: if test -n "$_USE_DYNAMICBASE"; then michael@0: DLLFLAGS="$DLLFLAGS -DYNAMICBASE" michael@0: fi michael@0: michael@0: # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic michael@0: # tape manipulation utility (or something else) michael@0: if test "$MSC_VER" -ge "1400"; then michael@0: michael@0: _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' michael@0: michael@0: michael@0: MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` michael@0: if test -n "$MSMT_TOOL"; then michael@0: MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` michael@0: if test -z "$MSMANIFEST_TOOL_VERSION"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5 michael@0: $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;} michael@0: fi michael@0: MT=mt michael@0: unset MSMT_TOOL michael@0: else michael@0: as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" michael@0: DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" michael@0: _DEBUG_FLAGS=-Zi michael@0: _OPTIMIZE_FLAGS=-O2 michael@0: michael@0: PROFILE_GEN_CFLAGS="-GL" michael@0: PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" michael@0: PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" michael@0: PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" michael@0: michael@0: if test "$MSC_VER" -ge "1800"; then michael@0: CFLAGS="$CFLAGS -FS" michael@0: PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" michael@0: PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" michael@0: fi michael@0: michael@0: if test -z "$MOZ_OPTIMIZE"; then michael@0: CFLAGS="$CFLAGS -Od" michael@0: fi michael@0: michael@0: if test "$USE_DEBUG_RTL" = 1; then michael@0: CFLAGS="$CFLAGS -MDd" michael@0: else michael@0: CFLAGS="$CFLAGS -MD" michael@0: fi michael@0: michael@0: if test -n "$MOZ_DEBUG"; then michael@0: $as_echo "#define _DEBUG 1" >>confdefs.h michael@0: michael@0: else michael@0: DEFINES="$DEFINES -U_DEBUG" michael@0: fi michael@0: michael@0: if test -n "$MOZ_DEBUG_SYMBOLS"; then michael@0: if test -n "$MOZ_OPTIMIZE"; then michael@0: DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" michael@0: LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" michael@0: else michael@0: DLLFLAGS="$DLLFLAGS -DEBUG" michael@0: LDFLAGS="$LDFLAGS -DEBUG" michael@0: fi michael@0: fi michael@0: michael@0: OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS" michael@0: if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then michael@0: OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" michael@0: fi michael@0: michael@0: if test "$OS_TARGET" = "WINNT"; then michael@0: CFLAGS="$CFLAGS -GT" michael@0: LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' michael@0: LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' michael@0: else michael@0: LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' michael@0: LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' michael@0: fi michael@0: fi # GNU_CC michael@0: michael@0: if test -n "$USE_STATIC_TLS"; then michael@0: $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: if test "$OS_TARGET" = "WINNT"; then michael@0: $as_echo "#define WINNT 1" >>confdefs.h michael@0: michael@0: else michael@0: $as_echo "#define WIN95 1" >>confdefs.h michael@0: michael@0: # undefine WINNT as some versions of mingw gcc define it by default michael@0: DEFINES="$DEFINES -UWINNT" michael@0: $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: if test "$CPU_ARCH" = "x86"; then michael@0: CPU_ARCH_TAG= michael@0: else michael@0: CPU_ARCH_TAG=$CPU_ARCH michael@0: fi michael@0: michael@0: if test "$USE_DEBUG_RTL" = 1; then michael@0: OBJDIR_SUFFIX=OBJD michael@0: fi michael@0: michael@0: case "$OS_TARGET" in michael@0: WINNT) michael@0: MDCPUCFG_H=_winnt.cfg michael@0: ;; michael@0: WIN95) michael@0: MDCPUCFG_H=_win95.cfg michael@0: ;; michael@0: *) michael@0: as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5 michael@0: ;; michael@0: esac michael@0: michael@0: case "$target_cpu" in michael@0: i*86) michael@0: if test -n "$USE_64"; then michael@0: $as_echo "#define _AMD64_ 1" >>confdefs.h michael@0: michael@0: else michael@0: $as_echo "#define _X86_ 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: x86_64) michael@0: $as_echo "#define _AMD64_ 1" >>confdefs.h michael@0: michael@0: USE_64=1 michael@0: ;; michael@0: ia64) michael@0: $as_echo "#define _IA64_ 1" >>confdefs.h michael@0: michael@0: USE_64=1 michael@0: ;; michael@0: *) michael@0: $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *-netbsd*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define NETBSD 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h michael@0: michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS=1 michael@0: fi michael@0: MDCPUCFG_H=_netbsd.cfg michael@0: PR_MD_CSRCS=netbsd.c michael@0: michael@0: DSO_CFLAGS='-fPIC -DPIC' michael@0: CFLAGS="$CFLAGS -ansi -Wall" michael@0: CXXFLAGS="$CXXFLAGS -ansi -Wall" michael@0: MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' michael@0: michael@0: if test -z "$OBJECT_FMT"; then michael@0: if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then michael@0: OBJECT_FMT=a.out michael@0: DLL_SUFFIX=so.1.0 michael@0: DSO_LDOPTS='-shared' michael@0: else michael@0: OBJECT_FMT=ELF michael@0: DLL_SUFFIX=so michael@0: DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' michael@0: fi michael@0: fi michael@0: michael@0: if test "$LIBRUNPATH"; then michael@0: DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" michael@0: fi michael@0: ;; michael@0: michael@0: *-nto*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define NTO 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _QNX_SOURCE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: MDCPUCFG_H=_nto.cfg michael@0: PR_MD_CSRCS=nto.c michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' michael@0: DSO_CFLAGS=-fPIC michael@0: DSO_LDOPTS=-shared michael@0: OS_LIBS="$OS_LIBS -lsocket" michael@0: _OPTIMIZE_FLAGS="-O1" michael@0: _DEBUG_FLAGS="-gstabs" michael@0: ;; michael@0: michael@0: *-openbsd*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define OPENBSD 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h michael@0: michael@0: CFLAGS="$CFLAGS -ansi -Wall" michael@0: CXXFLAGS="$CXXFLAGS -ansi -Wall" michael@0: DLL_SUFFIX=so.1.0 michael@0: DSO_CFLAGS=-fPIC michael@0: MDCPUCFG_H=_openbsd.cfg michael@0: PR_MD_CSRCS=openbsd.c michael@0: OS_LIBS="-lc" michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS=1 michael@0: fi michael@0: DSO_LDOPTS='-shared -fPIC' michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: ;; michael@0: michael@0: *-osf*) michael@0: SHELL_OVERRIDE="SHELL = /usr/bin/ksh" michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define OSF1 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _REENTRANT 1" >>confdefs.h michael@0: michael@0: # OSF1 and HPUX report the POLLHUP event for a socket when the michael@0: # shutdown(SHUT_WR) operation is called for the remote end, even though michael@0: # the socket is still writeable. Use select(), instead of poll(), to michael@0: # workaround this problem. michael@0: $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h michael@0: michael@0: michael@0: if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then michael@0: USE_NSPR_THREADS=1 michael@0: fi michael@0: michael@0: if test -z "$GNU_CC"; then michael@0: CC="$CC -std1 -ieee_with_inexact" michael@0: if test "$OS_RELEASE" != "V2.0"; then michael@0: CC="$CC -readonly_strings" michael@0: fi michael@0: _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" michael@0: ac_fn_c_check_header_mongrel "$LINENO" "machine/builtins.h" "ac_cv_header_machine_builtins_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_machine_builtins_h" = xyes; then : michael@0: $as_echo "#define OSF1_HAVE_MACHINE_BUILTINS_H 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: michael@0: else michael@0: CFLAGS="$CFLAGS -mieee" michael@0: CXXFLAGS="$CXXFLAGS -mieee" michael@0: fi michael@0: michael@0: if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then michael@0: $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: else michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: fi michael@0: if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then michael@0: $as_echo "#define OSF1V4_MAP_PRIVATE_BUG 1" >>confdefs.h michael@0: michael@0: fi michael@0: DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)' michael@0: MDCPUCFG_H=_osf1.cfg michael@0: PR_MD_CSRCS=osf1.c michael@0: ;; michael@0: michael@0: *-qnx*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define QNX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h michael@0: michael@0: USE_NSPR_THREADS=1 michael@0: MDCPUCFG_H=_qnx.cfg michael@0: PR_MD_CSRCS=qnx.c michael@0: ;; michael@0: michael@0: *-riscos*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define RISCOS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h michael@0: michael@0: USE_PTHREADS=1 michael@0: MDCPUCFG_H=_riscos.cfg michael@0: PR_MD_CSRCS=riscos.c michael@0: DSO_CFLAGS=-fPIC michael@0: DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: ;; michael@0: michael@0: *-*-sco*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SCO 1" >>confdefs.h michael@0: michael@0: $as_echo "#define sco 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SYSV 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _SVID3 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h michael@0: michael@0: CC='cc -b elf -KPIC' michael@0: CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' michael@0: USE_NSPR_THREADS=1 michael@0: CPU_ARCH=x86 michael@0: DSO_LDOPTS='-b elf -G' michael@0: MDCPUCFG_H=_scoos.cfg michael@0: PR_MD_SRCS=scoos.c michael@0: ;; michael@0: michael@0: *-solaris*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS=1 michael@0: fi michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SVR4 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SYSV 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __svr4 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __svr4__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SOLARIS 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: CPU_ARCH=`uname -p` michael@0: MDCPUCFG_H=_solaris.cfg michael@0: PR_MD_CSRCS=solaris.c michael@0: LD=/usr/ccs/bin/ld michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: RESOLVE_LINK_SYMBOLS=1 michael@0: case "${OS_RELEASE}" in michael@0: 5.8|5.9) michael@0: ;; michael@0: *) michael@0: # It is safe to use the -Bdirect linker flag on Solaris 10 or later. michael@0: USE_B_DIRECT=1 michael@0: ;; michael@0: esac michael@0: if test -n "$GNU_CC"; then michael@0: DSO_CFLAGS=-fPIC michael@0: if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then michael@0: GCC_USE_GNU_LD=1 michael@0: fi michael@0: DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore' michael@0: if test -n "$USE_B_DIRECT"; then michael@0: DSO_LDOPTS="$DSO_LDOPTS,-Bdirect" michael@0: fi michael@0: else michael@0: DSO_CFLAGS=-KPIC michael@0: DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore' michael@0: if test -n "$USE_B_DIRECT"; then michael@0: DSO_LDOPTS="$DSO_LDOPTS -Bdirect" michael@0: fi michael@0: fi michael@0: if test -n "$GNU_CC"; then michael@0: CFLAGS="$CFLAGS -Wall" michael@0: CXXFLAGS="$CXXFLAGS -Wall" michael@0: if test -n "$USE_MDUPDATE"; then michael@0: CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" michael@0: CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" michael@0: fi michael@0: GCC_AS=`$CC -print-prog-name=as` michael@0: if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then michael@0: GNU_AS=1 michael@0: fi michael@0: else michael@0: CFLAGS="$CFLAGS -xstrconst" michael@0: CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife" michael@0: if test -z "$MOZ_OPTIMIZE"; then michael@0: CFLAGS="$CFLAGS -xs" michael@0: CXXFLAGS="$CXXFLAGS -xs" michael@0: fi michael@0: _OPTIMIZE_FLAGS=-xO4 michael@0: fi michael@0: if test -z "$GNU_AS"; then michael@0: ASFLAGS="$ASFLAGS -Wa,-P" michael@0: fi michael@0: if test -n "$USE_64"; then michael@0: if test -n "$GNU_CC"; then michael@0: CC="$CC -m64" michael@0: CXX="$CXX -m64" michael@0: else michael@0: if test "$OS_TEST" = "i86pc"; then michael@0: CC="$CC -xarch=amd64" michael@0: CXX="$CXX -xarch=amd64" michael@0: else michael@0: CC="$CC -xarch=v9" michael@0: CXX="$CXX -xarch=v9" michael@0: fi michael@0: fi michael@0: fi michael@0: if test "$OS_TEST" = "i86pc"; then michael@0: if test -z "$USE_64"; then michael@0: $as_echo "#define i386 1" >>confdefs.h michael@0: michael@0: fi michael@0: CPU_ARCH_TAG=_$OS_TEST michael@0: # The default debug format, DWARF (-g), is not supported by gcc michael@0: # on i386-ANY-sysv4/solaris, but the stabs format is. It is michael@0: # assumed that the Solaris assembler /usr/ccs/bin/as is used. michael@0: # If your gcc uses GNU as, you do not need the -Wa,-s option. michael@0: if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then michael@0: _DEBUG_FLAGS=-gstabs michael@0: if test -z "$GNU_AS"; then michael@0: _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" michael@0: fi michael@0: fi michael@0: fi michael@0: case "${target_os}" in michael@0: solaris2.3*) michael@0: $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h michael@0: michael@0: ;; michael@0: solaris2.4*) michael@0: $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h michael@0: michael@0: ;; michael@0: solaris2.5*) michael@0: $as_echo "#define SOLARIS2_5 1" >>confdefs.h michael@0: michael@0: ;; michael@0: *) michael@0: $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h michael@0: michael@0: # The lfcompile64(5) man page on Solaris 2.6 says: michael@0: # For applications that do not wish to conform to the POSIX or michael@0: # X/Open specifications, the 64-bit transitional interfaces michael@0: # are available by default. No compile-time flags need to be michael@0: # set. michael@0: # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. michael@0: # The native compiler, gcc 2.8.x, and egcs don't have this problem. michael@0: if test -n "$GNU_CC"; then michael@0: $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: esac michael@0: case "${target_os}" in michael@0: solaris2.3*) michael@0: ;; michael@0: solaris2.4*) michael@0: ;; michael@0: solaris2.5*) michael@0: ;; michael@0: solaris2.6*) michael@0: ;; michael@0: solaris2.7*) michael@0: ;; michael@0: *) michael@0: # Solaris 8 or higher has IPv6. michael@0: $as_echo "#define _PR_INET6 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: if test "$CPU_ARCH" = "sparc"; then michael@0: # 64-bit Solaris SPARC requires V9 architecture, so the following michael@0: # is not needed. michael@0: if test -z "$USE_64"; then michael@0: ULTRASPARC_LIBRARY=nspr_flt michael@0: fi michael@0: fi michael@0: # Purify requires that binaries linked against nspr also michael@0: # be linked against -lrt (or -lposix4) so add it to OS_LIBS michael@0: _rev=`uname -r` michael@0: _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'` michael@0: OS_LIBS="$OS_LIBS $_librt" michael@0: ;; michael@0: michael@0: *-sco-sysv5*) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define UNIXWARE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SVR4 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SYSV 1" >>confdefs.h michael@0: michael@0: USE_NSPR_THREADS=1 michael@0: if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then michael@0: $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h michael@0: michael@0: CC='$(NSDEPTH)/build/hcc cc' michael@0: CXX='$(NSDEPTH)/build/hcpp CC' michael@0: MDCPUCFG_H=_unixware.cfg michael@0: else michael@0: $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h michael@0: michael@0: MDCPUCFG_H=_unixware7.cfg michael@0: fi michael@0: PR_MD_CSRCS=unixware.c michael@0: DSO_LDOPTS=-G michael@0: CPU_ARCH=x86 michael@0: ;; michael@0: michael@0: *-symbian*) michael@0: michael@0: # Check whether --with-symbian-sdk was given. michael@0: if test "${with_symbian_sdk+set}" = set; then : michael@0: withval=$with_symbian_sdk; SYMBIAN_SDK_DIR=$withval michael@0: fi michael@0: michael@0: michael@0: echo ----------------------------------------------------------------------------- michael@0: echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR michael@0: echo ----------------------------------------------------------------------------- michael@0: michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: $as_echo "#define SYMBIAN 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __arm__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __SYMBIAN32__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _UNICODE 1" >>confdefs.h michael@0: michael@0: $as_echo "#define NDEBUG 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __SUPPORT_CPP_EXCEPTIONS__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define MOZ_STDERR_TO_STDOUT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h michael@0: michael@0: USE_PTHREADS=1 michael@0: LIB_SUFFIX=lib michael@0: DLL_SUFFIX=dll michael@0: MKSHLIB= michael@0: DSO_LDOPTS= michael@0: DSO_CFLAGS= michael@0: VISIBILITY_FLAGS= michael@0: MDCPUCFG_H=_symbian.cfg michael@0: PR_MD_CSRCS=symbian.c michael@0: NSINSTALL=nsinstall michael@0: RANLIB='echo no ranlib ' michael@0: CPU_ARCH=ARM michael@0: OS_ARCH=SYMBIAN michael@0: OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__" michael@0: CFLAGS="$CFLAGS -MD -nostdinc" michael@0: SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis" michael@0: echo ------------------------------------------------------- michael@0: echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE michael@0: echo ------------------------------------------------------- michael@0: case "$OS_TARGET" in michael@0: WINSCW) michael@0: CC=mwccsym2.exe michael@0: CXX=mwccsym2.exe michael@0: LD=mwldsym2.exe michael@0: AR=mwldsym2.exe michael@0: WINSCW_LD_DIR="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB" michael@0: CFLAGS="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)" michael@0: SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh" michael@0: AR_FLAGS="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@" michael@0: $as_echo "#define _DEBUG 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __CW32__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __WINS__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __WINSCW__ 1" >>confdefs.h michael@0: michael@0: DEFINES="$DEFINES -U_WIN32" michael@0: ;; michael@0: GCCE) michael@0: CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float" michael@0: CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy" michael@0: SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h" michael@0: $as_echo "#define __GCCE__ 1" >>confdefs.h michael@0: michael@0: $as_echo "#define __EABI__ 1" >>confdefs.h michael@0: michael@0: DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh" michael@0: ;; michael@0: *) michael@0: as_fn_error $? "Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." "$LINENO" 5 michael@0: ;; michael@0: esac michael@0: CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}" michael@0: ;; michael@0: michael@0: *-os2*) michael@0: $as_echo "#define XP_OS2 1" >>confdefs.h michael@0: michael@0: $as_echo "#define XP_PC 1" >>confdefs.h michael@0: michael@0: $as_echo "#define BSD_SELECT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define TCPV40HDRS 1" >>confdefs.h michael@0: michael@0: LIB_SUFFIX=lib michael@0: DLL_SUFFIX=dll michael@0: RC=rc.exe michael@0: PR_MD_ARCH_DIR=os2 michael@0: PROG_SUFFIX=.exe michael@0: NSINSTALL=nsinstall michael@0: MDCPUCFG_H=_os2.cfg michael@0: RESOLVE_LINK_SYMBOLS=1 michael@0: michael@0: $as_echo "#define OS2 1" >>confdefs.h michael@0: michael@0: AR=emxomfar michael@0: AR_FLAGS='r $@' michael@0: CFLAGS="$CFLAGS -Wall -Zomf" michael@0: CXXFLAGS="$CFLAGS -Wall -Zomf" michael@0: MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' michael@0: DSO_CFLAGS= michael@0: DSO_LDOPTS='-Zomf -Zdll' michael@0: LDFLAGS='-Zmap' michael@0: _OPTIMIZE_FLAGS="-O2 -s" michael@0: _DEBUG_FLAGS="-g -fno-inline" michael@0: if test -n "$MOZ_OPTIMIZE"; then michael@0: DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" michael@0: fi michael@0: IMPLIB='emximp -o' michael@0: FILTER='emxexp -o' michael@0: if test -n "$MOZ_OS2_HIGH_MEMORY"; then michael@0: LDFLAGS="$LDFLAGS -Zhigh-mem" michael@0: $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: # GCC for OS/2 currently predefines these, but we don't want them michael@0: DEFINES="$DEFINES -Uunix -U__unix -U__unix__" michael@0: ;; michael@0: michael@0: *) michael@0: $as_echo "#define XP_UNIX 1" >>confdefs.h michael@0: michael@0: ;; michael@0: michael@0: esac michael@0: michael@0: if test -z "$SKIP_LIBRARY_CHECKS"; then michael@0: michael@0: michael@0: michael@0: case $target in michael@0: *-darwin*|*-beos*|*-os2*) michael@0: ;; michael@0: *) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 michael@0: $as_echo_n "checking for dlopen in -ldl... " >&6; } michael@0: if ${ac_cv_lib_dl_dlopen+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-ldl $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char dlopen (); michael@0: int michael@0: main () michael@0: { michael@0: return dlopen (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_dl_dlopen=yes michael@0: else michael@0: ac_cv_lib_dl_dlopen=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 michael@0: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } michael@0: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : michael@0: ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_dlfcn_h" = xyes; then : michael@0: OS_LIBS="-ldl $OS_LIBS" michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: michael@0: if test $ac_cv_c_compiler_gnu = yes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 michael@0: $as_echo_n "checking whether $CC needs -traditional... " >&6; } michael@0: if ${ac_cv_prog_gcc_traditional+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_pattern="Autoconf.*'x'" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: Autoconf TIOCGETP michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "$ac_pattern" >/dev/null 2>&1; then : michael@0: ac_cv_prog_gcc_traditional=yes michael@0: else michael@0: ac_cv_prog_gcc_traditional=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: michael@0: if test $ac_cv_prog_gcc_traditional = no; then michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: Autoconf TCGETA michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "$ac_pattern" >/dev/null 2>&1; then : michael@0: ac_cv_prog_gcc_traditional=yes michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 michael@0: $as_echo "$ac_cv_prog_gcc_traditional" >&6; } michael@0: if test $ac_cv_prog_gcc_traditional = yes; then michael@0: CC="$CC -traditional" michael@0: fi michael@0: fi michael@0: michael@0: _SAVE_LIBS="$LIBS" michael@0: LIBS="$LIBS $OS_LIBS" michael@0: for ac_func in dladdr gettid lchown setpriority strerror syscall michael@0: do : michael@0: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` michael@0: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" michael@0: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: done michael@0: michael@0: LIBS="$_SAVE_LIBS" michael@0: michael@0: michael@0: michael@0: # Check whether --with-ccache was given. michael@0: if test "${with_ccache+set}" = set; then : michael@0: withval=$with_ccache; CCACHE=$withval michael@0: else michael@0: CCACHE="no" michael@0: fi michael@0: michael@0: michael@0: if test "$CCACHE" != "no"; then michael@0: if test -n "$CCACHE"; then michael@0: if test "$CCACHE" = "yes"; then michael@0: CCACHE= michael@0: else michael@0: if test ! -e "$CCACHE"; then michael@0: as_fn_error $? "$CCACHE not found" "$LINENO" 5 michael@0: fi michael@0: fi michael@0: fi michael@0: for ac_prog in $CCACHE ccache michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_CCACHE+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $CCACHE in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then michael@0: ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: CCACHE=$ac_cv_path_CCACHE michael@0: if test -n "$CCACHE"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 michael@0: $as_echo "$CCACHE" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CCACHE" && break michael@0: done michael@0: michael@0: if test -z "$CCACHE" -o "$CCACHE" = ":"; then michael@0: as_fn_error $? "ccache not found" "$LINENO" 5 michael@0: elif test -x "$CCACHE"; then michael@0: CC="$CCACHE $CC" michael@0: CXX="$CCACHE $CXX" michael@0: else michael@0: as_fn_error $? "$CCACHE is not executable" "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: # Check whether --enable-strip was given. michael@0: if test "${enable_strip+set}" = set; then : michael@0: enableval=$enable_strip; if test "$enableval" = "yes"; then michael@0: ENABLE_STRIP=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: case "${target_os}" in michael@0: hpux*) michael@0: if test -z "$GNU_CC"; then michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5 michael@0: $as_echo_n "checking for +Olit support... " >&6; } michael@0: if ${ac_cv_hpux_usable_olit_option+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_cv_hpux_usable_olit_option=no michael@0: rm -f conftest* michael@0: echo 'int main() { return 0; }' | cat > conftest.c michael@0: ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1 michael@0: if test $? -eq 0; then michael@0: if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then michael@0: ac_cv_hpux_usable_olit_option=yes michael@0: fi michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5 michael@0: $as_echo "$ac_cv_hpux_usable_olit_option" >&6; } michael@0: michael@0: if test "$ac_cv_hpux_usable_olit_option" = "yes"; then michael@0: CFLAGS="$CFLAGS +Olit=all" michael@0: CXXFLAGS="$CXXFLAGS +Olit=all" michael@0: else michael@0: CFLAGS="$CFLAGS +ESlit" michael@0: CXXFLAGS="$CXXFLAGS +ESlit" michael@0: fi michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: case "$target_os" in michael@0: darwin*) michael@0: _HAVE_PTHREADS=1 michael@0: ;; michael@0: *) michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 michael@0: $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } michael@0: echo " michael@0: #include michael@0: void *foo(void *v) { return v; } michael@0: int main() { michael@0: pthread_t t; michael@0: if (!pthread_create(&t, 0, &foo, 0)) { michael@0: pthread_join(t, 0); michael@0: } michael@0: return 0; michael@0: }" > dummy.c ; michael@0: echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5; michael@0: ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5; michael@0: _res=$? ; michael@0: rm -f dummy.c dummy${ac_exeext} ; michael@0: if test "$_res" = "0"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 michael@0: $as_echo_n "checking for pthread_create in -lpthread... " >&6; } michael@0: echo " michael@0: #include michael@0: void *foo(void *v) { return v; } michael@0: int main() { michael@0: pthread_t t; michael@0: if (!pthread_create(&t, 0, &foo, 0)) { michael@0: pthread_join(t, 0); michael@0: } michael@0: return 0; michael@0: }" > dummy.c ; michael@0: echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5; michael@0: ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5; michael@0: _res=$? ; michael@0: rm -f dummy.c dummy${ac_exeext} ; michael@0: if test "$_res" = "0"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 michael@0: $as_echo_n "checking for pthread_create in -lc_r... " >&6; } michael@0: echo " michael@0: #include michael@0: void *foo(void *v) { return v; } michael@0: int main() { michael@0: pthread_t t; michael@0: if (!pthread_create(&t, 0, &foo, 0)) { michael@0: pthread_join(t, 0); michael@0: } michael@0: return 0; michael@0: }" > dummy.c ; michael@0: echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5; michael@0: ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5; michael@0: _res=$? ; michael@0: rm -f dummy.c dummy${ac_exeext} ; michael@0: if test "$_res" = "0"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 michael@0: $as_echo_n "checking for pthread_create in -lc... " >&6; } michael@0: echo " michael@0: #include michael@0: void *foo(void *v) { return v; } michael@0: int main() { michael@0: pthread_t t; michael@0: if (!pthread_create(&t, 0, &foo, 0)) { michael@0: pthread_join(t, 0); michael@0: } michael@0: return 0; michael@0: }" > dummy.c ; michael@0: echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5; michael@0: ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5; michael@0: _res=$? ; michael@0: rm -f dummy.c dummy${ac_exeext} ; michael@0: if test "$_res" = "0"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: _HAVE_PTHREADS=1 michael@0: michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: # Check whether --with-pthreads was given. michael@0: if test "${with_pthreads+set}" = set; then : michael@0: withval=$with_pthreads; if test "$withval" = "yes"; then michael@0: if test -n "$_HAVE_PTHREADS"; then michael@0: USE_PTHREADS=1 michael@0: USE_USER_PTHREADS= michael@0: USE_NSPR_THREADS= michael@0: else michael@0: as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5; michael@0: fi michael@0: else michael@0: USE_PTHREADS= michael@0: _PTHREAD_LDFLAGS= michael@0: fi michael@0: else michael@0: if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then michael@0: USE_PTHREADS=1 michael@0: USE_USER_PTHREADS= michael@0: USE_NSPR_THREADS= michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-user-pthreads was given. michael@0: if test "${enable_user_pthreads+set}" = set; then : michael@0: enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then michael@0: if test -n "$_HAVE_PTHREADS"; then michael@0: USE_PTHREADS= michael@0: USE_USER_PTHREADS=1 michael@0: USE_NSPR_THREADS= michael@0: else michael@0: as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5; michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --enable-nspr-threads was given. michael@0: if test "${enable_nspr_threads+set}" = set; then : michael@0: enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then michael@0: USE_PTHREADS= michael@0: USE_USER_PTHREADS= michael@0: USE_NSPR_THREADS=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: case "$target" in michael@0: *-beos*) michael@0: michael@0: # Check whether --with-bthreads was given. michael@0: if test "${with_bthreads+set}" = set; then : michael@0: withval=$with_bthreads; if test "$withval" = "yes"; then michael@0: USE_BTHREADS=1 michael@0: USE_USER_PTHREADS= michael@0: USE_PTHREADS= michael@0: fi michael@0: fi michael@0: michael@0: ;; michael@0: esac michael@0: michael@0: fi # SKIP_LIBRARY_CHECKS michael@0: michael@0: # Check whether --enable-ipv6 was given. michael@0: if test "${enable_ipv6+set}" = set; then : michael@0: enableval=$enable_ipv6; if test "$enableval" = "yes"; then michael@0: USE_IPV6=1 michael@0: else michael@0: USE_IPV6= michael@0: fi michael@0: fi michael@0: michael@0: michael@0: if test -n "$USE_PTHREADS"; then michael@0: rm -f conftest* michael@0: ac_cv_have_dash_pthread=no michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5 michael@0: $as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; } michael@0: echo 'int main() { return 0; }' | cat > conftest.c michael@0: ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 michael@0: if test $? -eq 0; then michael@0: if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then michael@0: ac_cv_have_dash_pthread=yes michael@0: case "$target_os" in michael@0: freebsd*) michael@0: # Freebsd doesn't use -pthread for compiles, it uses them for linking michael@0: ;; michael@0: *) michael@0: CFLAGS="$CFLAGS -pthread" michael@0: CXXFLAGS="$CXXFLAGS -pthread" michael@0: ;; michael@0: esac michael@0: fi michael@0: fi michael@0: rm -f conftest* michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5 michael@0: $as_echo "$ac_cv_have_dash_pthread" >&6; } michael@0: michael@0: ac_cv_have_dash_pthreads=no michael@0: if test "$ac_cv_have_dash_pthread" = "no"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5 michael@0: $as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; } michael@0: echo 'int main() { return 0; }' | cat > conftest.c michael@0: ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 michael@0: if test $? -eq 0; then michael@0: if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then michael@0: ac_cv_have_dash_pthreads=yes michael@0: CFLAGS="$CFLAGS -pthreads" michael@0: CXXFLAGS="$CXXFLAGS -pthreads" michael@0: fi michael@0: fi michael@0: rm -f conftest* michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5 michael@0: $as_echo "$ac_cv_have_dash_pthreads" >&6; } michael@0: fi michael@0: michael@0: case "$target" in michael@0: *-solaris*) michael@0: if test "$ac_cv_have_dash_pthreads" = "yes"; then michael@0: _PTHREAD_LDFLAGS= michael@0: fi michael@0: ;; michael@0: *-freebsd*) michael@0: $as_echo "#define _REENTRANT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _THREAD_SAFE 1" >>confdefs.h michael@0: michael@0: if test "$ac_cv_have_dash_pthread" = "yes"; then michael@0: _PTHREAD_LDFLAGS="-pthread" michael@0: else michael@0: _PTHREAD_LDFLAGS="-lc_r" michael@0: fi michael@0: ;; michael@0: *-netbsd*) michael@0: if test "$ac_cv_have_dash_pthread" = "yes"; then michael@0: _PTHREAD_LDFLAGS="-pthread" michael@0: fi michael@0: ;; michael@0: *-bsdi*) michael@0: $as_echo "#define _THREAD_SAFE 1" >>confdefs.h michael@0: michael@0: if test "$ac_cv_have_dash_pthread" = "yes"; then michael@0: _PTHREAD_LDFLAGS= michael@0: fi michael@0: ;; michael@0: *-openbsd*) michael@0: if test "$ac_cv_have_dash_pthread" = "yes"; then michael@0: _PTHREAD_LDFLAGS=-pthread michael@0: fi michael@0: ;; michael@0: *-linux*|*-gnu*|*-k*bsd*-gnu) michael@0: $as_echo "#define _REENTRANT 1" >>confdefs.h michael@0: michael@0: ;; michael@0: esac michael@0: michael@0: else michael@0: if test -n "$USE_USER_PTHREADS"; then michael@0: USE_PTHREADS= michael@0: USE_NSPR_THREADS= michael@0: else michael@0: _PTHREAD_LDFLAGS= michael@0: fi michael@0: fi michael@0: michael@0: case "$target" in michael@0: *-aix*) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: case "$target_os" in michael@0: aix4.1*) michael@0: if test -z "$USE_PTHREADS"; then michael@0: $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: aix4.2*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: aix4.3*) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: fi michael@0: if test -n "$USE_PTHREADS"; then michael@0: $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: *) michael@0: if test -z "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: fi michael@0: if test -n "$USE_PTHREADS"; then michael@0: $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: *-bsdi*) michael@0: if test -n "$USE_PTHREADS"; then michael@0: $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: *-freebsd*) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: *-hpux*) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: if test "$USE_PTHREADS"; then michael@0: if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then michael@0: $as_echo "#define _REENTRANT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_DCETHREADS 1" >>confdefs.h michael@0: michael@0: else michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define _POSIX_C_SOURCE 199506L michael@0: _ACEOF michael@0: michael@0: $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h michael@0: michael@0: fi michael@0: fi michael@0: if test "$USE_USER_PTHREADS"; then michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define _POSIX_C_SOURCE 199506L michael@0: _ACEOF michael@0: michael@0: fi michael@0: ;; michael@0: *-irix*) michael@0: if test "${target_os}" = "irix6.5"; then michael@0: if test -n "$USE_PTHREADS"; then michael@0: $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h michael@0: michael@0: fi michael@0: fi michael@0: ;; michael@0: *-linux*|*-gnu*|*-k*bsd*-gnu) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: *-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*|*-beos*) michael@0: USE_PTHREADS= michael@0: _PTHREAD_LDFLAGS= michael@0: USE_USER_PTHREADS= michael@0: ;; michael@0: *-netbsd*|*-openbsd*) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: *-osf*) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: if test -n "$USE_PTHREADS"; then michael@0: if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then michael@0: : michael@0: else michael@0: $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h michael@0: michael@0: fi michael@0: fi michael@0: ;; michael@0: *-solaris*) michael@0: if test -n "$USE_NSPR_THREADS"; then michael@0: $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h michael@0: michael@0: fi michael@0: if test -n "$USE_PTHREADS"; then michael@0: $as_echo "#define _REENTRANT 1" >>confdefs.h michael@0: michael@0: $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h michael@0: michael@0: if test "$OS_TEST" = "i86pc"; then michael@0: if test -n "$USE_64"; then michael@0: PR_MD_ASFILES=os_SunOS_x86_64.s michael@0: else michael@0: PR_MD_ASFILES=os_SunOS_x86.s michael@0: fi michael@0: else michael@0: if test -n "$USE_64"; then michael@0: PR_MD_ASFILES=os_SunOS_sparcv9.s michael@0: fi michael@0: fi michael@0: fi michael@0: ;; michael@0: *-nto*) michael@0: if test -n "$USE_PTHREADS"; then michael@0: $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h michael@0: michael@0: $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h michael@0: michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" michael@0: michael@0: if test -n "$_SAVE_OPTIMIZE_FLAGS"; then michael@0: _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" michael@0: fi michael@0: michael@0: if test -n "$_SAVE_DEBUG_FLAGS"; then michael@0: _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" michael@0: fi michael@0: michael@0: if test -n "$MOZ_OPTIMIZE"; then michael@0: CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" michael@0: CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" michael@0: fi michael@0: michael@0: if test -n "$MOZ_DEBUG_SYMBOLS"; then michael@0: CFLAGS="$CFLAGS $_DEBUG_FLAGS" michael@0: CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" michael@0: fi michael@0: michael@0: if test -n "$MOZ_OPTIMIZE"; then michael@0: OBJDIR_TAG=_OPT michael@0: else michael@0: OBJDIR_TAG=_DBG michael@0: fi michael@0: michael@0: if test -n "$USE_64"; then michael@0: COMPILER_TAG=_64 michael@0: fi michael@0: michael@0: RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}" michael@0: michael@0: case "$target_os" in michael@0: cygwin*|mks*) michael@0: CC="\$(CYGWIN_WRAPPER) $CC" michael@0: CXX="\$(CYGWIN_WRAPPER) $CXX" michael@0: RC="\$(CYGWIN_WRAPPER) $RC" michael@0: ;; michael@0: esac michael@0: michael@0: # Check whether --enable-wrap-malloc was given. michael@0: if test "${enable_wrap_malloc+set}" = set; then : michael@0: enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then michael@0: _WRAP_MALLOC=1 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: if test -n "$_WRAP_MALLOC"; then michael@0: if test -n "$GNU_CC"; then michael@0: WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign" michael@0: WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete" michael@0: WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup" michael@0: WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size" michael@0: else michael@0: as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether --with-wrap-malloc was given. michael@0: if test "${with_wrap_malloc+set}" = set; then : michael@0: withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: MAKEFILES=" michael@0: Makefile michael@0: config/Makefile michael@0: config/autoconf.mk michael@0: config/nsprincl.mk michael@0: config/nsprincl.sh michael@0: config/nspr-config michael@0: config/nspr.pc michael@0: lib/Makefile michael@0: lib/ds/Makefile michael@0: lib/libc/Makefile michael@0: lib/libc/include/Makefile michael@0: lib/libc/src/Makefile michael@0: lib/tests/Makefile michael@0: pkg/Makefile michael@0: pr/Makefile michael@0: pr/include/Makefile michael@0: pr/include/md/Makefile michael@0: pr/include/obsolete/Makefile michael@0: pr/include/private/Makefile michael@0: pr/src/Makefile michael@0: pr/src/io/Makefile michael@0: pr/src/linking/Makefile michael@0: pr/src/malloc/Makefile michael@0: pr/src/md/Makefile michael@0: pr/src/md/${PR_MD_ARCH_DIR}/Makefile michael@0: pr/src/memory/Makefile michael@0: pr/src/misc/Makefile michael@0: pr/src/threads/Makefile michael@0: pr/tests/Makefile michael@0: pr/tests/dll/Makefile michael@0: " michael@0: michael@0: if test "$OS_TARGET" = "Linux"; then michael@0: MAKEFILES="$MAKEFILES michael@0: pkg/linux/Makefile michael@0: " michael@0: elif test "$OS_TARGET" = "SunOS"; then michael@0: MAKEFILES="$MAKEFILES michael@0: pkg/solaris/Makefile michael@0: pkg/solaris/SUNWpr/Makefile michael@0: pkg/solaris/SUNWprd/Makefile michael@0: " michael@0: fi michael@0: michael@0: if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then michael@0: MAKEFILES="$MAKEFILES michael@0: pr/src/threads/combined/Makefile michael@0: " michael@0: elif test -n "$USE_PTHREADS"; then michael@0: MAKEFILES="$MAKEFILES michael@0: pr/src/pthreads/Makefile michael@0: " michael@0: elif test -n "$USE_BTHREADS"; then michael@0: MAKEFILES="$MAKEFILES michael@0: pr/src/bthreads/Makefile michael@0: " michael@0: fi michael@0: michael@0: if test -n "$USE_CPLUS"; then michael@0: MAKEFILES="$MAKEFILES michael@0: pr/src/cplus/Makefile michael@0: pr/src/cplus/tests/Makefile michael@0: " michael@0: fi michael@0: michael@0: echo $MAKEFILES > unallmakefiles michael@0: michael@0: ac_config_files="$ac_config_files $MAKEFILES" michael@0: michael@0: ac_config_commands="$ac_config_commands default" michael@0: michael@0: cat >confcache <<\_ACEOF michael@0: # This file is a shell script that caches the results of configure michael@0: # tests run on this system so they can be shared between configure michael@0: # scripts and configure runs, see configure's option --config-cache. michael@0: # It is not useful on other systems. If it contains results you don't michael@0: # want to keep, you may remove or edit it. michael@0: # michael@0: # config.status only pays attention to the cache file if you give it michael@0: # the --recheck option to rerun configure. michael@0: # michael@0: # `ac_cv_env_foo' variables (set or unset) will be overridden when michael@0: # loading this file, other *unset* `ac_cv_foo' will be assigned the michael@0: # following values. michael@0: michael@0: _ACEOF michael@0: michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: # but we know of no workaround that is simple, portable, and efficient. michael@0: # So, we kill variables containing newlines. michael@0: # Ultrix sh set writes to stderr and can't be redirected directly, michael@0: # and sets the high bit in the cache file unless we assign to the vars. michael@0: ( michael@0: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in #( michael@0: *${as_nl}*) michael@0: case $ac_var in #( michael@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 michael@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; michael@0: esac michael@0: case $ac_var in #( michael@0: _ | IFS | as_nl) ;; #( michael@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( michael@0: *) { eval $ac_var=; unset $ac_var;} ;; michael@0: esac ;; michael@0: esac michael@0: done michael@0: michael@0: (set) 2>&1 | michael@0: case $as_nl`(ac_space=' '; set) 2>&1` in #( michael@0: *${as_nl}ac_space=\ *) michael@0: # `set' does not quote correctly, so add quotes: double-quote michael@0: # substitution turns \\\\ into \\, and sed turns \\ into \. michael@0: sed -n \ michael@0: "s/'/'\\\\''/g; michael@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" michael@0: ;; #( michael@0: *) michael@0: # `set' quotes correctly as required by POSIX, so do not add quotes. michael@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" michael@0: ;; michael@0: esac | michael@0: sort michael@0: ) | michael@0: sed ' michael@0: /^ac_cv_env_/b end michael@0: t clear michael@0: :clear michael@0: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ michael@0: t end michael@0: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ michael@0: :end' >>confcache michael@0: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else michael@0: if test -w "$cache_file"; then michael@0: if test "x$cache_file" != "x/dev/null"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 michael@0: $as_echo "$as_me: updating cache $cache_file" >&6;} michael@0: if test ! -f "$cache_file" || test -h "$cache_file"; then michael@0: cat confcache >"$cache_file" michael@0: else michael@0: case $cache_file in #( michael@0: */* | ?:*) michael@0: mv -f confcache "$cache_file"$$ && michael@0: mv -f "$cache_file"$$ "$cache_file" ;; #( michael@0: *) michael@0: mv -f confcache "$cache_file" ;; michael@0: esac michael@0: fi michael@0: fi michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 michael@0: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} michael@0: fi michael@0: fi michael@0: rm -f confcache michael@0: michael@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix michael@0: # Let make expand exec_prefix. michael@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' michael@0: michael@0: # Transform confdefs.h into DEFS. michael@0: # Protect against shell expansion while executing Makefile rules. michael@0: # Protect against Makefile macro expansion. michael@0: # michael@0: # If the first sed substitution is executed (which looks for macros that michael@0: # take arguments), then branch to the quote section. Otherwise, michael@0: # look for a macro that doesn't take arguments. michael@0: ac_script=' michael@0: :mline michael@0: /\\$/{ michael@0: N michael@0: s,\\\n,, michael@0: b mline michael@0: } michael@0: t clear michael@0: :clear michael@0: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g michael@0: t quote michael@0: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g michael@0: t quote michael@0: b any michael@0: :quote michael@0: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g michael@0: s/\[/\\&/g michael@0: s/\]/\\&/g michael@0: s/\$/$$/g michael@0: H michael@0: :any michael@0: ${ michael@0: g michael@0: s/^\n// michael@0: s/\n/ /g michael@0: p michael@0: } michael@0: ' michael@0: DEFS=`sed -n "$ac_script" confdefs.h` michael@0: michael@0: michael@0: ac_libobjs= michael@0: ac_ltlibobjs= michael@0: U= michael@0: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue michael@0: # 1. Remove the extension, and $U if already installed. michael@0: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' michael@0: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` michael@0: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR michael@0: # will be set to the directory where LIBOBJS objects are built. michael@0: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" michael@0: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' michael@0: done michael@0: LIBOBJS=$ac_libobjs michael@0: michael@0: LTLIBOBJS=$ac_ltlibobjs michael@0: michael@0: michael@0: michael@0: : "${CONFIG_STATUS=./config.status}" michael@0: ac_write_fail=0 michael@0: ac_clean_files_save=$ac_clean_files michael@0: ac_clean_files="$ac_clean_files $CONFIG_STATUS" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 michael@0: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} michael@0: as_write_fail=0 michael@0: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 michael@0: #! $SHELL michael@0: # Generated by $as_me. michael@0: # Run this file to recreate the current configuration. michael@0: # Compiler output produced by configure, useful for debugging michael@0: # configure, is in config.log if it exists. michael@0: michael@0: debug=false michael@0: ac_cs_recheck=false michael@0: ac_cs_silent=false michael@0: michael@0: SHELL=\${CONFIG_SHELL-$SHELL} michael@0: export SHELL michael@0: _ASEOF michael@0: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 michael@0: ## -------------------- ## michael@0: ## M4sh Initialization. ## michael@0: ## -------------------- ## michael@0: michael@0: # Be more Bourne compatible michael@0: DUALCASE=1; export DUALCASE # for MKS sh michael@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '${1+"$@"}'='"$@"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case `(set -o) 2>/dev/null` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: as_nl=' michael@0: ' michael@0: export as_nl michael@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. michael@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: # Prefer a ksh shell builtin over an external printf program on Solaris, michael@0: # but without wasting forks for bash or zsh. michael@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ michael@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='print -r --' michael@0: as_echo_n='print -rn --' michael@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='printf %s\n' michael@0: as_echo_n='printf %s' michael@0: else michael@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then michael@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' michael@0: as_echo_n='/usr/ucb/echo -n' michael@0: else michael@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' michael@0: as_echo_n_body='eval michael@0: arg=$1; michael@0: case $arg in #( michael@0: *"$as_nl"*) michael@0: expr "X$arg" : "X\\(.*\\)$as_nl"; michael@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; michael@0: esac; michael@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" michael@0: ' michael@0: export as_echo_n_body michael@0: as_echo_n='sh -c $as_echo_n_body as_echo' michael@0: fi michael@0: export as_echo_body michael@0: as_echo='sh -c $as_echo_body as_echo' michael@0: fi michael@0: michael@0: # The user is always right. michael@0: if test "${PATH_SEPARATOR+set}" != set; then michael@0: PATH_SEPARATOR=: michael@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { michael@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || michael@0: PATH_SEPARATOR=';' michael@0: } michael@0: fi michael@0: michael@0: michael@0: # IFS michael@0: # We need space, tab and new line, in precisely that order. Quoting is michael@0: # there to prevent editors from complaining about space-tab. michael@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word michael@0: # splitting by setting IFS to empty value.) michael@0: IFS=" "" $as_nl" michael@0: michael@0: # Find who we are. Look in the path if we contain no directory separator. michael@0: as_myself= michael@0: case $0 in #(( michael@0: *[\\/]* ) as_myself=$0 ;; michael@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: # We did not find ourselves, most probably we were run as `sh COMMAND' michael@0: # in which case we are not to be found in the path. michael@0: if test "x$as_myself" = x; then michael@0: as_myself=$0 michael@0: fi michael@0: if test ! -f "$as_myself"; then michael@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 michael@0: exit 1 michael@0: fi michael@0: michael@0: # Unset variables that we do not need and which cause bugs (e.g. in michael@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" michael@0: # suppresses any "Segmentation fault" message there. '((' could michael@0: # trigger a bug in pdksh 5.2.14. michael@0: for as_var in BASH_ENV ENV MAIL MAILPATH michael@0: do eval test x\${$as_var+set} = xset \ michael@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : michael@0: done michael@0: PS1='$ ' michael@0: PS2='> ' michael@0: PS4='+ ' michael@0: michael@0: # NLS nuisances. michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: LANGUAGE=C michael@0: export LANGUAGE michael@0: michael@0: # CDPATH. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: michael@0: # as_fn_error STATUS ERROR [LINENO LOG_FD] michael@0: # ---------------------------------------- michael@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are michael@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the michael@0: # script with STATUS, using 1 if that was 0. michael@0: as_fn_error () michael@0: { michael@0: as_status=$1; test $as_status -eq 0 && as_status=1 michael@0: if test "$4"; then michael@0: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 michael@0: fi michael@0: $as_echo "$as_me: error: $2" >&2 michael@0: as_fn_exit $as_status michael@0: } # as_fn_error michael@0: michael@0: michael@0: # as_fn_set_status STATUS michael@0: # ----------------------- michael@0: # Set $? to STATUS, without forking. michael@0: as_fn_set_status () michael@0: { michael@0: return $1 michael@0: } # as_fn_set_status michael@0: michael@0: # as_fn_exit STATUS michael@0: # ----------------- michael@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. michael@0: as_fn_exit () michael@0: { michael@0: set +e michael@0: as_fn_set_status $1 michael@0: exit $1 michael@0: } # as_fn_exit michael@0: michael@0: # as_fn_unset VAR michael@0: # --------------- michael@0: # Portably unset VAR. michael@0: as_fn_unset () michael@0: { michael@0: { eval $1=; unset $1;} michael@0: } michael@0: as_unset=as_fn_unset michael@0: # as_fn_append VAR VALUE michael@0: # ---------------------- michael@0: # Append the text in VALUE to the end of the definition contained in VAR. Take michael@0: # advantage of any shell optimizations that allow amortized linear growth over michael@0: # repeated appends, instead of the typical quadratic growth present in naive michael@0: # implementations. michael@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : michael@0: eval 'as_fn_append () michael@0: { michael@0: eval $1+=\$2 michael@0: }' michael@0: else michael@0: as_fn_append () michael@0: { michael@0: eval $1=\$$1\$2 michael@0: } michael@0: fi # as_fn_append michael@0: michael@0: # as_fn_arith ARG... michael@0: # ------------------ michael@0: # Perform arithmetic evaluation on the ARGs, and store the result in the michael@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments michael@0: # must be portable across $(()) and expr. michael@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : michael@0: eval 'as_fn_arith () michael@0: { michael@0: as_val=$(( $* )) michael@0: }' michael@0: else michael@0: as_fn_arith () michael@0: { michael@0: as_val=`expr "$@" || test $? -eq 1` michael@0: } michael@0: fi # as_fn_arith michael@0: michael@0: michael@0: if expr a : '\(a\)' >/dev/null 2>&1 && michael@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then michael@0: as_expr=expr michael@0: else michael@0: as_expr=false michael@0: fi michael@0: michael@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then michael@0: as_basename=basename michael@0: else michael@0: as_basename=false michael@0: fi michael@0: michael@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then michael@0: as_dirname=dirname michael@0: else michael@0: as_dirname=false michael@0: fi michael@0: michael@0: as_me=`$as_basename -- "$0" || michael@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ michael@0: X"$0" : 'X\(//\)$' \| \ michael@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X/"$0" | michael@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: michael@0: # Avoid depending upon Character Ranges. michael@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' michael@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' michael@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS michael@0: as_cr_digits='0123456789' michael@0: as_cr_alnum=$as_cr_Letters$as_cr_digits michael@0: michael@0: ECHO_C= ECHO_N= ECHO_T= michael@0: case `echo -n x` in #((((( michael@0: -n*) michael@0: case `echo 'xy\c'` in michael@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. michael@0: xy) ECHO_C='\c';; michael@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null michael@0: ECHO_T=' ';; michael@0: esac;; michael@0: *) michael@0: ECHO_N='-n';; michael@0: esac michael@0: michael@0: rm -f conf$$ conf$$.exe conf$$.file michael@0: if test -d conf$$.dir; then michael@0: rm -f conf$$.dir/conf$$.file michael@0: else michael@0: rm -f conf$$.dir michael@0: mkdir conf$$.dir 2>/dev/null michael@0: fi michael@0: if (echo >conf$$.file) 2>/dev/null; then michael@0: if ln -s conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s='ln -s' michael@0: # ... but there are two gotchas: michael@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. michael@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. michael@0: # In both cases, we have to default to `cp -pR'. michael@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || michael@0: as_ln_s='cp -pR' michael@0: elif ln conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s=ln michael@0: else michael@0: as_ln_s='cp -pR' michael@0: fi michael@0: else michael@0: as_ln_s='cp -pR' michael@0: fi michael@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file michael@0: rmdir conf$$.dir 2>/dev/null michael@0: michael@0: michael@0: # as_fn_mkdir_p michael@0: # ------------- michael@0: # Create "$as_dir" as a directory, including parents if necessary. michael@0: as_fn_mkdir_p () michael@0: { michael@0: michael@0: case $as_dir in #( michael@0: -*) as_dir=./$as_dir;; michael@0: esac michael@0: test -d "$as_dir" || eval $as_mkdir_p || { michael@0: as_dirs= michael@0: while :; do michael@0: case $as_dir in #( michael@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( michael@0: *) as_qdir=$as_dir;; michael@0: esac michael@0: as_dirs="'$as_qdir' $as_dirs" michael@0: as_dir=`$as_dirname -- "$as_dir" || michael@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_dir" : 'X\(//\)[^/]' \| \ michael@0: X"$as_dir" : 'X\(//\)$' \| \ michael@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_dir" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: test -d "$as_dir" && break michael@0: done michael@0: test -z "$as_dirs" || eval "mkdir $as_dirs" michael@0: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" michael@0: michael@0: michael@0: } # as_fn_mkdir_p michael@0: if mkdir -p . 2>/dev/null; then michael@0: as_mkdir_p='mkdir -p "$as_dir"' michael@0: else michael@0: test -d ./-p && rmdir ./-p michael@0: as_mkdir_p=false michael@0: fi michael@0: michael@0: michael@0: # as_fn_executable_p FILE michael@0: # ----------------------- michael@0: # Test if FILE is an executable regular file. michael@0: as_fn_executable_p () michael@0: { michael@0: test -f "$1" && test -x "$1" michael@0: } # as_fn_executable_p michael@0: as_test_x='test -x' michael@0: as_executable_p=as_fn_executable_p michael@0: michael@0: # Sed expression to map a string onto a valid CPP name. michael@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: # Sed expression to map a string onto a valid variable name. michael@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: michael@0: exec 6>&1 michael@0: ## ----------------------------------- ## michael@0: ## Main body of $CONFIG_STATUS script. ## michael@0: ## ----------------------------------- ## michael@0: _ASEOF michael@0: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # Save the log message, to keep $0 and so on meaningful, and to michael@0: # report actual input values of CONFIG_FILES etc. instead of their michael@0: # values after options handling. michael@0: ac_log=" michael@0: This file was extended by $as_me, which was michael@0: generated by GNU Autoconf 2.69. Invocation command line was michael@0: michael@0: CONFIG_FILES = $CONFIG_FILES michael@0: CONFIG_HEADERS = $CONFIG_HEADERS michael@0: CONFIG_LINKS = $CONFIG_LINKS michael@0: CONFIG_COMMANDS = $CONFIG_COMMANDS michael@0: $ $0 $@ michael@0: michael@0: on `(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: " michael@0: michael@0: _ACEOF michael@0: michael@0: case $ac_config_files in *" michael@0: "*) set x $ac_config_files; shift; ac_config_files=$*;; michael@0: esac michael@0: michael@0: michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: # Files that config.status was made for. michael@0: config_files="$ac_config_files" michael@0: config_commands="$ac_config_commands" michael@0: michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: ac_cs_usage="\ michael@0: \`$as_me' instantiates files and other configuration actions michael@0: from templates according to the current configuration. Unless the files michael@0: and actions are specified as TAGs, all are instantiated by default. michael@0: michael@0: Usage: $0 [OPTION]... [TAG]... michael@0: michael@0: -h, --help print this help, then exit michael@0: -V, --version print version number and configuration settings, then exit michael@0: --config print configuration, then exit michael@0: -q, --quiet, --silent michael@0: do not print progress messages michael@0: -d, --debug don't remove temporary files michael@0: --recheck update $as_me by reconfiguring in the same conditions michael@0: --file=FILE[:TEMPLATE] michael@0: instantiate the configuration file FILE michael@0: michael@0: Configuration files: michael@0: $config_files michael@0: michael@0: Configuration commands: michael@0: $config_commands michael@0: michael@0: Report bugs to the package provider." michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" michael@0: ac_cs_version="\\ michael@0: config.status michael@0: configured by $0, generated by GNU Autoconf 2.69, michael@0: with options \\"\$ac_cs_config\\" michael@0: michael@0: Copyright (C) 2012 Free Software Foundation, Inc. michael@0: This config.status script is free software; the Free Software Foundation michael@0: gives unlimited permission to copy, distribute and modify it." michael@0: michael@0: ac_pwd='$ac_pwd' michael@0: srcdir='$srcdir' michael@0: test -n "\$AWK" || AWK=awk michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # The default lists apply if the user does not specify any file. michael@0: ac_need_defaults=: michael@0: while test $# != 0 michael@0: do michael@0: case $1 in michael@0: --*=?*) michael@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` michael@0: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` michael@0: ac_shift=: michael@0: ;; michael@0: --*=) michael@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` michael@0: ac_optarg= michael@0: ac_shift=: michael@0: ;; michael@0: *) michael@0: ac_option=$1 michael@0: ac_optarg=$2 michael@0: ac_shift=shift michael@0: ;; michael@0: esac michael@0: michael@0: case $ac_option in michael@0: # Handling of the options. michael@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) michael@0: ac_cs_recheck=: ;; michael@0: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) michael@0: $as_echo "$ac_cs_version"; exit ;; michael@0: --config | --confi | --conf | --con | --co | --c ) michael@0: $as_echo "$ac_cs_config"; exit ;; michael@0: --debug | --debu | --deb | --de | --d | -d ) michael@0: debug=: ;; michael@0: --file | --fil | --fi | --f ) michael@0: $ac_shift michael@0: case $ac_optarg in michael@0: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: '') as_fn_error $? "missing file argument" ;; michael@0: esac michael@0: as_fn_append CONFIG_FILES " '$ac_optarg'" michael@0: ac_need_defaults=false;; michael@0: --he | --h | --help | --hel | -h ) michael@0: $as_echo "$ac_cs_usage"; exit ;; michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil | --si | --s) michael@0: ac_cs_silent=: ;; michael@0: michael@0: # This is an error. michael@0: -*) as_fn_error $? "unrecognized option: \`$1' michael@0: Try \`$0 --help' for more information." ;; michael@0: michael@0: *) as_fn_append ac_config_targets " $1" michael@0: ac_need_defaults=false ;; michael@0: michael@0: esac michael@0: shift michael@0: done michael@0: michael@0: ac_configure_extra_args= michael@0: michael@0: if $ac_cs_silent; then michael@0: exec 6>/dev/null michael@0: ac_configure_extra_args="$ac_configure_extra_args --silent" michael@0: fi michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: if \$ac_cs_recheck; then michael@0: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion michael@0: shift michael@0: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 michael@0: CONFIG_SHELL='$SHELL' michael@0: export CONFIG_SHELL michael@0: exec "\$@" michael@0: fi michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: exec 5>>config.log michael@0: { michael@0: echo michael@0: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX michael@0: ## Running $as_me. ## michael@0: _ASBOX michael@0: $as_echo "$ac_log" michael@0: } >&5 michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: michael@0: # Handling of arguments. michael@0: for ac_config_target in $ac_config_targets michael@0: do michael@0: case $ac_config_target in michael@0: "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; michael@0: "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; michael@0: michael@0: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; michael@0: esac michael@0: done michael@0: michael@0: michael@0: # If the user did not use the arguments to specify the items to instantiate, michael@0: # then the envvar interface is used. Set only those that are not. michael@0: # We use the long form for the default assignment because of an extremely michael@0: # bizarre bug on SunOS 4.1.3. michael@0: if $ac_need_defaults; then michael@0: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files michael@0: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands michael@0: fi michael@0: michael@0: # Have a temporary directory for convenience. Make it in the build tree michael@0: # simply because there is no reason against having it here, and in addition, michael@0: # creating and moving files from /tmp can sometimes cause problems. michael@0: # Hook for its removal unless debugging. michael@0: # Note that there is a small window in which the directory will not be cleaned: michael@0: # after its creation but before its name has been assigned to `$tmp'. michael@0: $debug || michael@0: { michael@0: tmp= ac_tmp= michael@0: trap 'exit_status=$? michael@0: : "${ac_tmp:=$tmp}" michael@0: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status michael@0: ' 0 michael@0: trap 'as_fn_exit 1' 1 2 13 15 michael@0: } michael@0: # Create a (secure) tmp directory for tmp files. michael@0: michael@0: { michael@0: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && michael@0: test -d "$tmp" michael@0: } || michael@0: { michael@0: tmp=./conf$$-$RANDOM michael@0: (umask 077 && mkdir "$tmp") michael@0: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 michael@0: ac_tmp=$tmp michael@0: michael@0: # Set up the scripts for CONFIG_FILES section. michael@0: # No need to generate them if there are no CONFIG_FILES. michael@0: # This happens for instance with `./config.status config.h'. michael@0: if test -n "$CONFIG_FILES"; then michael@0: michael@0: michael@0: ac_cr=`echo X | tr X '\015'` michael@0: # On cygwin, bash can eat \r inside `` if the user requested igncr. michael@0: # But we know of no other shell where ac_cr would be empty at this michael@0: # point, so we can use a bashism as a fallback. michael@0: if test "x$ac_cr" = x; then michael@0: eval ac_cr=\$\'\\r\' michael@0: fi michael@0: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` michael@0: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then michael@0: ac_cs_awk_cr='\\r' michael@0: else michael@0: ac_cs_awk_cr=$ac_cr michael@0: fi michael@0: michael@0: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && michael@0: _ACEOF michael@0: michael@0: michael@0: { michael@0: echo "cat >conf$$subs.awk <<_ACEOF" && michael@0: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && michael@0: echo "_ACEOF" michael@0: } >conf$$subs.sh || michael@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` michael@0: ac_delim='%!_!# ' michael@0: for ac_last_try in false false false false false :; do michael@0: . ./conf$$subs.sh || michael@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: michael@0: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` michael@0: if test $ac_delim_n = $ac_delim_num; then michael@0: break michael@0: elif $ac_last_try; then michael@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: else michael@0: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " michael@0: fi michael@0: done michael@0: rm -f conf$$subs.sh michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && michael@0: _ACEOF michael@0: sed -n ' michael@0: h michael@0: s/^/S["/; s/!.*/"]=/ michael@0: p michael@0: g michael@0: s/^[^!]*!// michael@0: :repl michael@0: t repl michael@0: s/'"$ac_delim"'$// michael@0: t delim michael@0: :nl michael@0: h michael@0: s/\(.\{148\}\)..*/\1/ michael@0: t more1 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ michael@0: p michael@0: n michael@0: b repl michael@0: :more1 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ michael@0: p michael@0: g michael@0: s/.\{148\}// michael@0: t nl michael@0: :delim michael@0: h michael@0: s/\(.\{148\}\)..*/\1/ michael@0: t more2 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"/ michael@0: p michael@0: b michael@0: :more2 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ michael@0: p michael@0: g michael@0: s/.\{148\}// michael@0: t delim michael@0: ' >$CONFIG_STATUS || ac_write_fail=1 michael@0: rm -f conf$$subs.awk michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: _ACAWK michael@0: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && michael@0: for (key in S) S_is_set[key] = 1 michael@0: FS = "" michael@0: michael@0: } michael@0: { michael@0: line = $ 0 michael@0: nfields = split(line, field, "@") michael@0: substed = 0 michael@0: len = length(field[1]) michael@0: for (i = 2; i < nfields; i++) { michael@0: key = field[i] michael@0: keylen = length(key) michael@0: if (S_is_set[key]) { michael@0: value = S[key] michael@0: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) michael@0: len += length(value) + length(field[++i]) michael@0: substed = 1 michael@0: } else michael@0: len += 1 + keylen michael@0: } michael@0: michael@0: print line michael@0: } michael@0: michael@0: _ACAWK michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then michael@0: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" michael@0: else michael@0: cat michael@0: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ michael@0: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 michael@0: _ACEOF michael@0: michael@0: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), michael@0: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and michael@0: # trailing colons and then remove the whole line if VPATH becomes empty michael@0: # (actually we leave an empty line to preserve line numbers). michael@0: if test "x$srcdir" = x.; then michael@0: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ michael@0: h michael@0: s/// michael@0: s/^/:/ michael@0: s/[ ]*$/:/ michael@0: s/:\$(srcdir):/:/g michael@0: s/:\${srcdir}:/:/g michael@0: s/:@srcdir@:/:/g michael@0: s/^:*// michael@0: s/:*$// michael@0: x michael@0: s/\(=[ ]*\).*/\1/ michael@0: G michael@0: s/\n// michael@0: s/^[^=]*=[ ]*$// michael@0: }' michael@0: fi michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: fi # test -n "$CONFIG_FILES" michael@0: michael@0: michael@0: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" michael@0: shift michael@0: for ac_tag michael@0: do michael@0: case $ac_tag in michael@0: :[FHLC]) ac_mode=$ac_tag; continue;; michael@0: esac michael@0: case $ac_mode$ac_tag in michael@0: :[FHL]*:*);; michael@0: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; michael@0: :[FH]-) ac_tag=-:-;; michael@0: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; michael@0: esac michael@0: ac_save_IFS=$IFS michael@0: IFS=: michael@0: set x $ac_tag michael@0: IFS=$ac_save_IFS michael@0: shift michael@0: ac_file=$1 michael@0: shift michael@0: michael@0: case $ac_mode in michael@0: :L) ac_source=$1;; michael@0: :[FH]) michael@0: ac_file_inputs= michael@0: for ac_f michael@0: do michael@0: case $ac_f in michael@0: -) ac_f="$ac_tmp/stdin";; michael@0: *) # Look for the file first in the build tree, then in the source tree michael@0: # (if the path is not absolute). The absolute path cannot be DOS-style, michael@0: # because $ac_f cannot contain `:'. michael@0: test -f "$ac_f" || michael@0: case $ac_f in michael@0: [\\/$]*) false;; michael@0: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; michael@0: esac || michael@0: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; michael@0: esac michael@0: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac michael@0: as_fn_append ac_file_inputs " '$ac_f'" michael@0: done michael@0: michael@0: # Let's still pretend it is `configure' which instantiates (i.e., don't michael@0: # use $as_me), people would be surprised to read: michael@0: # /* config.h. Generated by config.status. */ michael@0: configure_input='Generated from '` michael@0: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' michael@0: `' by configure.' michael@0: if test x"$ac_file" != x-; then michael@0: configure_input="$ac_file. $configure_input" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 michael@0: $as_echo "$as_me: creating $ac_file" >&6;} michael@0: fi michael@0: # Neutralize special characters interpreted by sed in replacement strings. michael@0: case $configure_input in #( michael@0: *\&* | *\|* | *\\* ) michael@0: ac_sed_conf_input=`$as_echo "$configure_input" | michael@0: sed 's/[\\\\&|]/\\\\&/g'`;; #( michael@0: *) ac_sed_conf_input=$configure_input;; michael@0: esac michael@0: michael@0: case $ac_tag in michael@0: *:-:* | *:-) cat >"$ac_tmp/stdin" \ michael@0: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: michael@0: ac_dir=`$as_dirname -- "$ac_file" || michael@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$ac_file" : 'X\(//\)[^/]' \| \ michael@0: X"$ac_file" : 'X\(//\)$' \| \ michael@0: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$ac_file" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: as_dir="$ac_dir"; as_fn_mkdir_p michael@0: ac_builddir=. michael@0: michael@0: case "$ac_dir" in michael@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) michael@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` michael@0: # A ".." for each directory in $ac_dir_suffix. michael@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` michael@0: case $ac_top_builddir_sub in michael@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; michael@0: esac ;; michael@0: esac michael@0: ac_abs_top_builddir=$ac_pwd michael@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix michael@0: # for backward compatibility: michael@0: ac_top_builddir=$ac_top_build_prefix michael@0: michael@0: case $srcdir in michael@0: .) # We are building in place. michael@0: ac_srcdir=. michael@0: ac_top_srcdir=$ac_top_builddir_sub michael@0: ac_abs_top_srcdir=$ac_pwd ;; michael@0: [\\/]* | ?:[\\/]* ) # Absolute name. michael@0: ac_srcdir=$srcdir$ac_dir_suffix; michael@0: ac_top_srcdir=$srcdir michael@0: ac_abs_top_srcdir=$srcdir ;; michael@0: *) # Relative name. michael@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix michael@0: ac_top_srcdir=$ac_top_build_prefix$srcdir michael@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; michael@0: esac michael@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix michael@0: michael@0: michael@0: case $ac_mode in michael@0: :F) michael@0: # michael@0: # CONFIG_FILE michael@0: # michael@0: michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # If the template does not know about datarootdir, expand it. michael@0: # FIXME: This hack should be removed a few years after 2.60. michael@0: ac_datarootdir_hack=; ac_datarootdir_seen= michael@0: ac_sed_dataroot=' michael@0: /datarootdir/ { michael@0: p michael@0: q michael@0: } michael@0: /@datadir@/p michael@0: /@docdir@/p michael@0: /@infodir@/p michael@0: /@localedir@/p michael@0: /@mandir@/p' michael@0: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in michael@0: *datarootdir*) ac_datarootdir_seen=yes;; michael@0: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 michael@0: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_datarootdir_hack=' michael@0: s&@datadir@&$datadir&g michael@0: s&@docdir@&$docdir&g michael@0: s&@infodir@&$infodir&g michael@0: s&@localedir@&$localedir&g michael@0: s&@mandir@&$mandir&g michael@0: s&\\\${datarootdir}&$datarootdir&g' ;; michael@0: esac michael@0: _ACEOF michael@0: michael@0: # Neutralize VPATH when `$srcdir' = `.'. michael@0: # Shell code in configure.ac might set extrasub. michael@0: # FIXME: do we really want to maintain this feature? michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_sed_extra="$ac_vpsub michael@0: $extrasub michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: :t michael@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b michael@0: s|@configure_input@|$ac_sed_conf_input|;t t michael@0: s&@top_builddir@&$ac_top_builddir_sub&;t t michael@0: s&@top_build_prefix@&$ac_top_build_prefix&;t t michael@0: s&@srcdir@&$ac_srcdir&;t t michael@0: s&@abs_srcdir@&$ac_abs_srcdir&;t t michael@0: s&@top_srcdir@&$ac_top_srcdir&;t t michael@0: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t michael@0: s&@builddir@&$ac_builddir&;t t michael@0: s&@abs_builddir@&$ac_abs_builddir&;t t michael@0: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t michael@0: $ac_datarootdir_hack michael@0: " michael@0: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ michael@0: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 michael@0: michael@0: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && michael@0: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && michael@0: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ michael@0: "$ac_tmp/out"`; test -z "$ac_out"; } && michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' michael@0: which seems to be undefined. Please make sure it is defined" >&5 michael@0: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' michael@0: which seems to be undefined. Please make sure it is defined" >&2;} michael@0: michael@0: rm -f "$ac_tmp/stdin" michael@0: case $ac_file in michael@0: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; michael@0: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; michael@0: esac \ michael@0: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 michael@0: ;; michael@0: michael@0: michael@0: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 michael@0: $as_echo "$as_me: executing $ac_file commands" >&6;} michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: case $ac_file$ac_mode in michael@0: "default":C) chmod +x config/nspr-config ;; michael@0: michael@0: esac michael@0: done # for ac_tag michael@0: michael@0: michael@0: as_fn_exit 0 michael@0: _ACEOF michael@0: ac_clean_files=$ac_clean_files_save michael@0: michael@0: test $ac_write_fail = 0 || michael@0: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 michael@0: michael@0: michael@0: # configure is writing to config.log, and then calls config.status. michael@0: # config.status does its own redirection, appending to config.log. michael@0: # Unfortunately, on DOS this fails, as config.log is still kept open michael@0: # by configure, so config.status won't be able to write to it; its michael@0: # output is simply discarded. So we exec the FD to /dev/null, michael@0: # effectively closing config.log, so it can be properly (re)opened and michael@0: # appended to by config.status. When coming back to configure, we michael@0: # need to make the FD available again. michael@0: if test "$no_create" != yes; then michael@0: ac_cs_success=: michael@0: ac_config_status_args= michael@0: test "$silent" = yes && michael@0: ac_config_status_args="$ac_config_status_args --quiet" michael@0: exec 5>/dev/null michael@0: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false michael@0: exec 5>>config.log michael@0: # Use ||, not &&, to avoid exiting from the if with $? = 1, which michael@0: # would make configure fail if this is the last instruction. michael@0: $ac_cs_success || as_fn_exit 1 michael@0: fi michael@0: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 michael@0: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} michael@0: fi michael@0: