tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

configure (276179B)


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