1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599#  include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604#  include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_subst_vars='LTLIBOBJS
622LIBOBJS
623DED_OSTYPE
624DED_THR_DEFS
625DED_LIBS
626DED_WERRORFLAGS
627DED_WARN_FLAGS
628DED_STATIC_CFLAGS
629DED_CFLAGS
630DED_BASIC_CFLAGS
631DED_INCLUDE
632DED_SYS_INCLUDE
633DED_EXT
634DED_GCC
635DED_CC
636EGREP
637GREP
638NATIVE_LIBS_ENABLED
639DEFAULT_VERBOSITY
640OTP_VSN
641OTP_REL
642ERTS_VSN
643PERL
644LN_S
645INSTALL_DATA
646INSTALL_SCRIPT
647INSTALL_PROGRAM
648MAKE_PROG
649ENV
650MIXED_MINGW
651MIXED_VC
652ac_ct_CXX
653OBJEXT
654EXEEXT
655ac_ct_CC
656BOOTSTRAP_ONLY
657CROSS_COMPILING
658TARGET
659host_os
660host_vendor
661host_cpu
662host
663build_os
664build_vendor
665build_cpu
666build
667erl_xcomp_dlsym_brk_wrappers
668erl_xcomp_after_morecore_hook
669erl_xcomp_clock_gettime_cpu_time
670erl_xcomp_gethrvtime_procfs_ioctl
671erl_xcomp_getaddrinfo
672erl_xcomp_reliable_fpe
673erl_xcomp_putenv_copy
674erl_xcomp_kqueue
675erl_xcomp_poll
676erl_xcomp_linux_usable_sigaltstack
677erl_xcomp_linux_usable_sigusrx
678erl_xcomp_linux_nptl
679erl_xcomp_double_middle_endian
680erl_xcomp_bigendian
681erl_xcomp_isysroot
682erl_xcomp_sysroot
683GETCONF
684AR
685RANLIB
686LFS_LIBS
687LFS_LDFLAGS
688LFS_CFLAGS
689DED_LD_FLAG_RUNTIME_LIBRARY_PATH
690DED_LDFLAGS
691DED_LD
692LDFLAGS
693LD
694CXXFLAGS
695CXX
696CPPFLAGS
697CPP
698CFLAG_RUNTIME_LIBRARY_PATH
699STATIC_CFLAGS
700CFLAGS
701CC
702ERL_TOP
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722runstatedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files=''
743ac_user_opts='
744enable_option_checking
745enable_bootstrap_only
746enable_parallel_configure
747enable_dirty_schedulers
748enable_plain_emulator
749with_termcap
750enable_kernel_poll
751enable_sctp
752enable_hipe
753enable_native_libs
754with_dynamic_trace
755enable_vm_probes
756with_javac
757enable_megaco_flex_scanner_lineno
758enable_megaco_reentrant_flex_scanner
759with_ssl
760with_ssl_incl
761with_ssl_rpath
762enable_dynamic_ssl_lib
763enable_fips
764enable_builtin_zlib
765enable_esock
766enable_sharing_preserving
767enable_m64_build
768enable_m32_build
769enable_pie
770with_libatomic_ops
771enable_sanitizers
772enable_silent_rules
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777ERL_TOP
778CC
779CFLAGS
780STATIC_CFLAGS
781CFLAG_RUNTIME_LIBRARY_PATH
782CPP
783CPPFLAGS
784CXX
785CXXFLAGS
786LD
787LDFLAGS
788LIBS
789DED_LD
790DED_LDFLAGS
791DED_LD_FLAG_RUNTIME_LIBRARY_PATH
792LFS_CFLAGS
793LFS_LDFLAGS
794LFS_LIBS
795RANLIB
796AR
797GETCONF
798erl_xcomp_sysroot
799erl_xcomp_isysroot
800erl_xcomp_bigendian
801erl_xcomp_double_middle_endian
802erl_xcomp_linux_nptl
803erl_xcomp_linux_usable_sigusrx
804erl_xcomp_linux_usable_sigaltstack
805erl_xcomp_poll
806erl_xcomp_kqueue
807erl_xcomp_putenv_copy
808erl_xcomp_reliable_fpe
809erl_xcomp_getaddrinfo
810erl_xcomp_gethrvtime_procfs_ioctl
811erl_xcomp_clock_gettime_cpu_time
812erl_xcomp_after_morecore_hook
813erl_xcomp_dlsym_brk_wrappers
814CCC'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853runstatedir='${localstatedir}/run'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -runstatedir | --runstatedir | --runstatedi | --runstated \
1107  | --runstate | --runstat | --runsta | --runst | --runs \
1108  | --run | --ru | --r)
1109    ac_prev=runstatedir ;;
1110  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1111  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1112  | --run=* | --ru=* | --r=*)
1113    runstatedir=$ac_optarg ;;
1114
1115  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116    ac_prev=sbindir ;;
1117  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118  | --sbi=* | --sb=*)
1119    sbindir=$ac_optarg ;;
1120
1121  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123  | --sharedst | --shareds | --shared | --share | --shar \
1124  | --sha | --sh)
1125    ac_prev=sharedstatedir ;;
1126  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129  | --sha=* | --sh=*)
1130    sharedstatedir=$ac_optarg ;;
1131
1132  -site | --site | --sit)
1133    ac_prev=site ;;
1134  -site=* | --site=* | --sit=*)
1135    site=$ac_optarg ;;
1136
1137  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138    ac_prev=srcdir ;;
1139  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140    srcdir=$ac_optarg ;;
1141
1142  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143  | --syscon | --sysco | --sysc | --sys | --sy)
1144    ac_prev=sysconfdir ;;
1145  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147    sysconfdir=$ac_optarg ;;
1148
1149  -target | --target | --targe | --targ | --tar | --ta | --t)
1150    ac_prev=target_alias ;;
1151  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152    target_alias=$ac_optarg ;;
1153
1154  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155    verbose=yes ;;
1156
1157  -version | --version | --versio | --versi | --vers | -V)
1158    ac_init_version=: ;;
1159
1160  -with-* | --with-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=\$ac_optarg ;;
1175
1176  -without-* | --without-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=no ;;
1191
1192  --x)
1193    # Obsolete; use --with-x.
1194    with_x=yes ;;
1195
1196  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197  | --x-incl | --x-inc | --x-in | --x-i)
1198    ac_prev=x_includes ;;
1199  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201    x_includes=$ac_optarg ;;
1202
1203  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205    ac_prev=x_libraries ;;
1206  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208    x_libraries=$ac_optarg ;;
1209
1210  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information"
1212    ;;
1213
1214  *=*)
1215    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216    # Reject names that are not valid shell variable names.
1217    case $ac_envvar in #(
1218      '' | [0-9]* | *[!_$as_cr_alnum]* )
1219      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220    esac
1221    eval $ac_envvar=\$ac_optarg
1222    export $ac_envvar ;;
1223
1224  *)
1225    # FIXME: should be removed in autoconf 3.0.
1226    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230    ;;
1231
1232  esac
1233done
1234
1235if test -n "$ac_prev"; then
1236  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237  as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if test -n "$ac_unrecognized_opts"; then
1241  case $enable_option_checking in
1242    no) ;;
1243    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245  esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250		datadir sysconfdir sharedstatedir localstatedir includedir \
1251		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252		libdir localedir mandir runstatedir
1253do
1254  eval ac_val=\$$ac_var
1255  # Remove trailing slashes.
1256  case $ac_val in
1257    */ )
1258      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259      eval $ac_var=\$ac_val;;
1260  esac
1261  # Be sure to have absolute directory names.
1262  case $ac_val in
1263    [\\/$]* | ?:[\\/]* )  continue;;
1264    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265  esac
1266  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267done
1268
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
1271# FIXME: To remove some day.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if test "x$host_alias" != x; then
1278  if test "x$build_alias" = x; then
1279    cross_compiling=maybe
1280  elif test "x$build_alias" != "x$host_alias"; then
1281    cross_compiling=yes
1282  fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294  as_fn_error $? "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296  as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301  ac_srcdir_defaulted=yes
1302  # Try the directory containing this script, then the parent directory.
1303  ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305	 X"$as_myself" : 'X\(//\)[^/]' \| \
1306	 X"$as_myself" : 'X\(//\)$' \| \
1307	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)[^/].*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\).*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  s/.*/./; q'`
1326  srcdir=$ac_confdir
1327  if test ! -r "$srcdir/$ac_unique_file"; then
1328    srcdir=..
1329  fi
1330else
1331  ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340	pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343  srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_env_${ac_var}_value=\$${ac_var}
1354  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362  # Omit some internal or obsolete options to make the list less imposing.
1363  # This message is too long to be a string in the A/UX 3.1 sh.
1364  cat <<_ACEOF
1365\`configure' configures this package to adapt to many kinds of systems.
1366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375  -h, --help              display this help and exit
1376      --help=short        display options specific to this package
1377      --help=recursive    display the short help of all the included packages
1378  -V, --version           display version information and exit
1379  -q, --quiet, --silent   do not print \`checking ...' messages
1380      --cache-file=FILE   cache test results in FILE [disabled]
1381  -C, --config-cache      alias for \`--cache-file=config.cache'
1382  -n, --no-create         do not create output files
1383      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386  --prefix=PREFIX         install architecture-independent files in PREFIX
1387                          [$ac_default_prefix]
1388  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                          [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399  --bindir=DIR            user executables [EPREFIX/bin]
1400  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401  --libexecdir=DIR        program executables [EPREFIX/libexec]
1402  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1406  --libdir=DIR            object code libraries [EPREFIX/lib]
1407  --includedir=DIR        C header files [PREFIX/include]
1408  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411  --infodir=DIR           info documentation [DATAROOTDIR/info]
1412  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413  --mandir=DIR            man documentation [DATAROOTDIR/man]
1414  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1415  --htmldir=DIR           html documentation [DOCDIR]
1416  --dvidir=DIR            dvi documentation [DOCDIR]
1417  --pdfdir=DIR            pdf documentation [DOCDIR]
1418  --psdir=DIR             ps documentation [DOCDIR]
1419_ACEOF
1420
1421  cat <<\_ACEOF
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-bootstrap-only enable bootstrap only configuration
1438  --disable-parallel-configure
1439                          disable parallel execution of configure scripts
1440  --enable-dirty-schedulers
1441                          enable dirty scheduler support
1442  --enable-plain-emulator enable threaded non-smp emulator
1443  --disable-plain-emulator
1444                          disable threaded non-smp emulator
1445  --enable-kernel-poll    enable kernel poll support
1446  --disable-kernel-poll   disable kernel poll support
1447  --enable-sctp           enable sctp support (default) to on demand load the
1448                          SCTP library in runtime
1449  --enable-sctp=lib       enable sctp support to link against the SCTP library
1450  --disable-sctp          disable sctp support
1451  --enable-hipe           enable hipe support
1452  --disable-hipe          disable hipe support
1453  --enable-native-libs    compile Erlang libraries to native code
1454  --enable-vm-probes      add dynamic trace probes to the Beam VM (only
1455                          possible if --with-dynamic-trace is enabled, and
1456                          then default)
1457  --disable-megaco-flex-scanner-lineno
1458                          disable megaco flex scanner lineno
1459  --disable-megaco-reentrant-flex-scanner
1460                          disable reentrant megaco flex scanner
1461  --disable-dynamic-ssl-lib
1462                          disable using dynamic openssl libraries
1463  --enable-fips           enable OpenSSL FIPS mode support
1464  --disable-fips          disable OpenSSL FIPS mode support (default)
1465  --enable-builtin-zlib   force use of our own built-in zlib
1466  --enable-esock          enable builtin experimental socket (as a nif)
1467                          support (default)
1468  --disable-esock         disable builtin experimental socket (as a nif)
1469                          support
1470  --enable-sharing-preserving
1471                          enable copying of terms without destroying sharing
1472  --enable-m64-build      build 64bit binaries using the -m64 flag to (g)cc
1473  --enable-m32-build      build 32bit binaries using the -m32 flag to (g)cc
1474  --enable-pie            build position independent executables
1475  --disable-pie           do no build position independent executables
1476  --enable-sanitizers[=comma-separated list of sanitizers]
1477                          Default=address,undefined
1478  --enable-silent-rules   less verbose build output (undo: "make V=1")
1479  --disable-silent-rules  verbose build output (undo: "make V=0")
1480
1481Optional Packages:
1482  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484  --with-termcap          use termcap (default)
1485  --without-termcap       do not use any termcap libraries
1486                          (ncurses,curses,termcap,termlib)
1487  --with-dynamic-trace={dtrace|lttng|systemtap}
1488                          specify use of dynamic trace framework, dtrace,
1489                          lttng or systemtap
1490  --without-dynamic-trace don't enable any dynamic tracing (default)
1491  --with-javac=JAVAC      specify Java compiler to use
1492  --with-javac            use a Java compiler if found (default)
1493  --without-javac         don't use any Java compiler
1494  --with-ssl=PATH         specify location of OpenSSL include and lib
1495  --with-ssl              use SSL (default)
1496  --without-ssl           don't use SSL
1497  --with-ssl-incl=PATH    location of OpenSSL include dir, if different than
1498                          specified by --with-ssl=PATH
1499  --with-ssl-rpath=yes|no|PATHS
1500                          runtime library path for OpenSSL. Default is 'yes',
1501                          which equates to a number of standard locations. If
1502                          'no', then no runtime library paths will be used.
1503                          Anything else should be a comma separated list of
1504                          paths.
1505  --with-libatomic_ops=PATH
1506                          specify and prefer usage of libatomic_ops in the
1507                          ethread library
1508
1509Some influential environment variables:
1510  ERL_TOP     Erlang/OTP top source directory
1511  CC          C compiler
1512  CFLAGS      C compiler flags
1513  STATIC_CFLAGS
1514              C compiler static flags
1515  CFLAG_RUNTIME_LIBRARY_PATH
1516              runtime library path linker flag passed via C compiler
1517  CPP         C/C++ preprocessor
1518  CPPFLAGS    C/C++ preprocessor flags
1519  CXX         C++ compiler
1520  CXXFLAGS    C++ compiler flags
1521  LD          linker (is often overridden by configure)
1522  LDFLAGS     linker flags (can be risky to set since LD may be overriden by
1523              configure)
1524  LIBS        libraries
1525  DED_LD      linker for Dynamic Erlang Drivers (set all DED_LD* variables or
1526              none)
1527  DED_LDFLAGS linker flags for Dynamic Erlang Drivers (set all DED_LD*
1528              variables or none)
1529  DED_LD_FLAG_RUNTIME_LIBRARY_PATH
1530              runtime library path linker flag for Dynamic Erlang Drivers (set
1531              all DED_LD* variables or none)
1532  LFS_CFLAGS  large file support C compiler flags (set all LFS_* variables or
1533              none)
1534  LFS_LDFLAGS large file support linker flags (set all LFS_* variables or
1535              none)
1536  LFS_LIBS    large file support libraries (set all LFS_* variables or none)
1537  RANLIB      ranlib
1538  AR          ar
1539  GETCONF     getconf
1540  erl_xcomp_sysroot
1541              Absolute cross system root path (only used when cross compiling)
1542  erl_xcomp_isysroot
1543              Absolute cross system root include path (only used when cross
1544              compiling)
1545  erl_xcomp_bigendian
1546              big endian system: yes|no (only used when cross compiling)
1547  erl_xcomp_double_middle_endian
1548              double-middle-endian system: yes|no (only used when cross
1549              compiling)
1550  erl_xcomp_linux_nptl
1551              have Native POSIX Thread Library: yes|no (only used when cross
1552              compiling)
1553  erl_xcomp_linux_usable_sigusrx
1554              SIGUSR1 and SIGUSR2 can be used: yes|no (only used when cross
1555              compiling)
1556  erl_xcomp_linux_usable_sigaltstack
1557              have working sigaltstack(): yes|no (only used when cross
1558              compiling)
1559  erl_xcomp_poll
1560              have working poll(): yes|no (only used when cross compiling)
1561  erl_xcomp_kqueue
1562              have working kqueue(): yes|no (only used when cross compiling)
1563  erl_xcomp_putenv_copy
1564              putenv() stores key-value copy: yes|no (only used when cross
1565              compiling)
1566  erl_xcomp_reliable_fpe
1567              have reliable floating point exceptions: yes|no (only used when
1568              cross compiling)
1569  erl_xcomp_getaddrinfo
1570              have working getaddrinfo() for both IPv4 and IPv6: yes|no (only
1571              used when cross compiling)
1572  erl_xcomp_gethrvtime_procfs_ioctl
1573              have working gethrvtime() which can be used with procfs ioctl():
1574              yes|no (only used when cross compiling)
1575  erl_xcomp_clock_gettime_cpu_time
1576              clock_gettime() can be used for retrieving process CPU time:
1577              yes|no (only used when cross compiling)
1578  erl_xcomp_after_morecore_hook
1579              __after_morecore_hook can track malloc()s core memory usage:
1580              yes|no (only used when cross compiling)
1581  erl_xcomp_dlsym_brk_wrappers
1582              dlsym(RTLD_NEXT, _) brk wrappers can track malloc()s core memory
1583              usage: yes|no (only used when cross compiling)
1584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
1588Report bugs to the package provider.
1589_ACEOF
1590ac_status=$?
1591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594  # If there are subdirs, report their specific --help.
1595  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596    test -d "$ac_dir" ||
1597      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598      continue
1599    ac_builddir=.
1600
1601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605  # A ".." for each directory in $ac_dir_suffix.
1606  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607  case $ac_top_builddir_sub in
1608  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610  esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
1616
1617case $srcdir in
1618  .)  # We are building in place.
1619    ac_srcdir=.
1620    ac_top_srcdir=$ac_top_builddir_sub
1621    ac_abs_top_srcdir=$ac_pwd ;;
1622  [\\/]* | ?:[\\/]* )  # Absolute name.
1623    ac_srcdir=$srcdir$ac_dir_suffix;
1624    ac_top_srcdir=$srcdir
1625    ac_abs_top_srcdir=$srcdir ;;
1626  *) # Relative name.
1627    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628    ac_top_srcdir=$ac_top_build_prefix$srcdir
1629    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630esac
1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633    cd "$ac_dir" || { ac_status=$?; continue; }
1634    # Check for guested configure.
1635    if test -f "$ac_srcdir/configure.gnu"; then
1636      echo &&
1637      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638    elif test -f "$ac_srcdir/configure"; then
1639      echo &&
1640      $SHELL "$ac_srcdir/configure" --help=recursive
1641    else
1642      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643    fi || ac_status=$?
1644    cd "$ac_pwd" || { ac_status=$?; break; }
1645  done
1646fi
1647
1648test -n "$ac_init_help" && exit $ac_status
1649if $ac_init_version; then
1650  cat <<\_ACEOF
1651configure
1652generated by GNU Autoconf 2.69
1653
1654Copyright (C) 2012 Free Software Foundation, Inc.
1655This configure script is free software; the Free Software Foundation
1656gives unlimited permission to copy, distribute and modify it.
1657_ACEOF
1658  exit
1659fi
1660
1661## ------------------------ ##
1662## Autoconf initialization. ##
1663## ------------------------ ##
1664
1665# ac_fn_c_try_compile LINENO
1666# --------------------------
1667# Try to compile conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  rm -f conftest.$ac_objext
1672  if { { ac_try="$ac_compile"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_compile") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } && {
1688	 test -z "$ac_c_werror_flag" ||
1689	 test ! -s conftest.err
1690       } && test -s conftest.$ac_objext; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696	ac_retval=1
1697fi
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_compile
1702
1703# ac_fn_cxx_try_compile LINENO
1704# ----------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_cxx_try_compile ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  rm -f conftest.$ac_objext
1710  if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_compile") 2>conftest.err
1718  ac_status=$?
1719  if test -s conftest.err; then
1720    grep -v '^ *+' conftest.err >conftest.er1
1721    cat conftest.er1 >&5
1722    mv -f conftest.er1 conftest.err
1723  fi
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } && {
1726	 test -z "$ac_cxx_werror_flag" ||
1727	 test ! -s conftest.err
1728       } && test -s conftest.$ac_objext; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734	ac_retval=1
1735fi
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_cxx_try_compile
1740
1741# ac_fn_c_try_link LINENO
1742# -----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_link ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  rm -f conftest.$ac_objext conftest$ac_exeext
1748  if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751  *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755  (eval "$ac_link") 2>conftest.err
1756  ac_status=$?
1757  if test -s conftest.err; then
1758    grep -v '^ *+' conftest.err >conftest.er1
1759    cat conftest.er1 >&5
1760    mv -f conftest.er1 conftest.err
1761  fi
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; } && {
1764	 test -z "$ac_c_werror_flag" ||
1765	 test ! -s conftest.err
1766       } && test -s conftest$ac_exeext && {
1767	 test "$cross_compiling" = yes ||
1768	 test -x conftest$ac_exeext
1769       }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775	ac_retval=1
1776fi
1777  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779  # interfere with the next link command; also delete a directory that is
1780  # left behind by Apple's compiler.  We do this before executing the actions.
1781  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783  as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_link
1786
1787# ac_fn_c_check_func LINENO FUNC VAR
1788# ----------------------------------
1789# Tests whether FUNC exists, setting the cache variable VAR accordingly
1790ac_fn_c_check_func ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
1795if eval \${$3+:} false; then :
1796  $as_echo_n "(cached) " >&6
1797else
1798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1802#define $2 innocuous_$2
1803
1804/* System header to define __stub macros and hopefully few prototypes,
1805    which can conflict with char $2 (); below.
1806    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807    <limits.h> exists even on freestanding compilers.  */
1808
1809#ifdef __STDC__
1810# include <limits.h>
1811#else
1812# include <assert.h>
1813#endif
1814
1815#undef $2
1816
1817/* Override any GCC internal prototype to avoid an error.
1818   Use char because int might match the return type of a GCC
1819   builtin and then its argument prototype would still apply.  */
1820#ifdef __cplusplus
1821extern "C"
1822#endif
1823char $2 ();
1824/* The GNU C library defines this for functions which it implements
1825    to always fail with ENOSYS.  Some functions are actually named
1826    something starting with __ and the normal name is an alias.  */
1827#if defined __stub_$2 || defined __stub___$2
1828choke me
1829#endif
1830
1831int
1832main ()
1833{
1834return $2 ();
1835  ;
1836  return 0;
1837}
1838_ACEOF
1839if ac_fn_c_try_link "$LINENO"; then :
1840  eval "$3=yes"
1841else
1842  eval "$3=no"
1843fi
1844rm -f core conftest.err conftest.$ac_objext \
1845    conftest$ac_exeext conftest.$ac_ext
1846fi
1847eval ac_res=\$$3
1848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852} # ac_fn_c_check_func
1853
1854# ac_fn_c_try_cpp LINENO
1855# ----------------------
1856# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857ac_fn_c_try_cpp ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  if { { ac_try="$ac_cpp conftest.$ac_ext"
1861case "(($ac_try" in
1862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863  *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868  ac_status=$?
1869  if test -s conftest.err; then
1870    grep -v '^ *+' conftest.err >conftest.er1
1871    cat conftest.er1 >&5
1872    mv -f conftest.er1 conftest.err
1873  fi
1874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875  test $ac_status = 0; } > conftest.i && {
1876	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877	 test ! -s conftest.err
1878       }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884    ac_retval=1
1885fi
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887  as_fn_set_status $ac_retval
1888
1889} # ac_fn_c_try_cpp
1890
1891# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892# -------------------------------------------------------
1893# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894# the include files in INCLUDES and setting the cache variable VAR
1895# accordingly.
1896ac_fn_c_check_header_mongrel ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  if eval \${$3+:} false; then :
1900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903  $as_echo_n "(cached) " >&6
1904fi
1905eval ac_res=\$$3
1906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908else
1909  # Is the header compilable?
1910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911$as_echo_n "checking $2 usability... " >&6; }
1912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914$4
1915#include <$2>
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  ac_header_compiler=yes
1919else
1920  ac_header_compiler=no
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924$as_echo "$ac_header_compiler" >&6; }
1925
1926# Is the header present?
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928$as_echo_n "checking $2 presence... " >&6; }
1929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931#include <$2>
1932_ACEOF
1933if ac_fn_c_try_cpp "$LINENO"; then :
1934  ac_header_preproc=yes
1935else
1936  ac_header_preproc=no
1937fi
1938rm -f conftest.err conftest.i conftest.$ac_ext
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940$as_echo "$ac_header_preproc" >&6; }
1941
1942# So?  What about this header?
1943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944  yes:no: )
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949    ;;
1950  no:yes:* )
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1952$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1954$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1958$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961    ;;
1962esac
1963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966  $as_echo_n "(cached) " >&6
1967else
1968  eval "$3=\$ac_header_compiler"
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973fi
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_header_mongrel
1977
1978# ac_fn_c_try_run LINENO
1979# ----------------------
1980# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981# that executables *can* be run.
1982ac_fn_c_try_run ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  if { { ac_try="$ac_link"
1986case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_link") 2>&5
1993  ac_status=$?
1994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996  { { case "(($ac_try" in
1997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998  *) ac_try_echo=$ac_try;;
1999esac
2000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001$as_echo "$ac_try_echo"; } >&5
2002  (eval "$ac_try") 2>&5
2003  ac_status=$?
2004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005  test $ac_status = 0; }; }; then :
2006  ac_retval=0
2007else
2008  $as_echo "$as_me: program exited with status $ac_status" >&5
2009       $as_echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012       ac_retval=$ac_status
2013fi
2014  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016  as_fn_set_status $ac_retval
2017
2018} # ac_fn_c_try_run
2019
2020# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2021# -------------------------------------------------------
2022# Tests whether HEADER exists and can be compiled using the include files in
2023# INCLUDES, setting the cache variable VAR accordingly.
2024ac_fn_c_check_header_compile ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if eval \${$3+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035#include <$2>
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038  eval "$3=yes"
2039else
2040  eval "$3=no"
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$3
2045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049} # ac_fn_c_check_header_compile
2050
2051# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052# --------------------------------------------
2053# Tries to find the compile-time value of EXPR in a program that includes
2054# INCLUDES, setting VAR accordingly. Returns whether the value could be
2055# computed
2056ac_fn_c_compute_int ()
2057{
2058  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059  if test "$cross_compiling" = yes; then
2060    # Depending upon the size, compute the lo and hi bounds.
2061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) >= 0)];
2068test_array [0] = 0;
2069return test_array [0];
2070
2071  ;
2072  return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  ac_lo=0 ac_mid=0
2077  while :; do
2078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h.  */
2080$4
2081int
2082main ()
2083{
2084static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085test_array [0] = 0;
2086return test_array [0];
2087
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093  ac_hi=$ac_mid; break
2094else
2095  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096			if test $ac_lo -le $ac_mid; then
2097			  ac_lo= ac_hi=
2098			  break
2099			fi
2100			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103  done
2104else
2105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h.  */
2107$4
2108int
2109main ()
2110{
2111static int test_array [1 - 2 * !(($2) < 0)];
2112test_array [0] = 0;
2113return test_array [0];
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  ac_hi=-1 ac_mid=-1
2121  while :; do
2122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h.  */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129test_array [0] = 0;
2130return test_array [0];
2131
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137  ac_lo=$ac_mid; break
2138else
2139  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140			if test $ac_mid -le $ac_hi; then
2141			  ac_lo= ac_hi=
2142			  break
2143			fi
2144			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147  done
2148else
2149  ac_lo= ac_hi=
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154# Binary search between lo and hi bounds.
2155while test "x$ac_lo" != "x$ac_hi"; do
2156  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h.  */
2159$4
2160int
2161main ()
2162{
2163static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164test_array [0] = 0;
2165return test_array [0];
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  ac_hi=$ac_mid
2173else
2174  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177done
2178case $ac_lo in #((
2179?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180'') ac_retval=1 ;;
2181esac
2182  else
2183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185$4
2186static long int longval () { return $2; }
2187static unsigned long int ulongval () { return $2; }
2188#include <stdio.h>
2189#include <stdlib.h>
2190int
2191main ()
2192{
2193
2194  FILE *f = fopen ("conftest.val", "w");
2195  if (! f)
2196    return 1;
2197  if (($2) < 0)
2198    {
2199      long int i = longval ();
2200      if (i != ($2))
2201	return 1;
2202      fprintf (f, "%ld", i);
2203    }
2204  else
2205    {
2206      unsigned long int i = ulongval ();
2207      if (i != ($2))
2208	return 1;
2209      fprintf (f, "%lu", i);
2210    }
2211  /* Do not output a trailing newline, as this causes \r\n confusion
2212     on some platforms.  */
2213  return ferror (f) || fclose (f) != 0;
2214
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_run "$LINENO"; then :
2220  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221else
2222  ac_retval=1
2223fi
2224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225  conftest.$ac_objext conftest.beam conftest.$ac_ext
2226rm -f conftest.val
2227
2228  fi
2229  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230  as_fn_set_status $ac_retval
2231
2232} # ac_fn_c_compute_int
2233cat >config.log <<_ACEOF
2234This file contains any messages produced by compilers while
2235running configure, to aid debugging if configure makes a mistake.
2236
2237It was created by $as_me, which was
2238generated by GNU Autoconf 2.69.  Invocation command line was
2239
2240  $ $0 $@
2241
2242_ACEOF
2243exec 5>>config.log
2244{
2245cat <<_ASUNAME
2246## --------- ##
2247## Platform. ##
2248## --------- ##
2249
2250hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2251uname -m = `(uname -m) 2>/dev/null || echo unknown`
2252uname -r = `(uname -r) 2>/dev/null || echo unknown`
2253uname -s = `(uname -s) 2>/dev/null || echo unknown`
2254uname -v = `(uname -v) 2>/dev/null || echo unknown`
2255
2256/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2257/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2258
2259/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2260/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2261/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2262/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2263/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2264/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2265/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2266
2267_ASUNAME
2268
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272  IFS=$as_save_IFS
2273  test -z "$as_dir" && as_dir=.
2274    $as_echo "PATH: $as_dir"
2275  done
2276IFS=$as_save_IFS
2277
2278} >&5
2279
2280cat >&5 <<_ACEOF
2281
2282
2283## ----------- ##
2284## Core tests. ##
2285## ----------- ##
2286
2287_ACEOF
2288
2289
2290# Keep a trace of the command line.
2291# Strip out --no-create and --no-recursion so they do not pile up.
2292# Strip out --silent because we don't want to record it for future runs.
2293# Also quote any args containing shell meta-characters.
2294# Make two passes to allow for proper duplicate-argument suppression.
2295ac_configure_args=
2296ac_configure_args0=
2297ac_configure_args1=
2298ac_must_keep_next=false
2299for ac_pass in 1 2
2300do
2301  for ac_arg
2302  do
2303    case $ac_arg in
2304    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306    | -silent | --silent | --silen | --sile | --sil)
2307      continue ;;
2308    *\'*)
2309      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2310    esac
2311    case $ac_pass in
2312    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2313    2)
2314      as_fn_append ac_configure_args1 " '$ac_arg'"
2315      if test $ac_must_keep_next = true; then
2316	ac_must_keep_next=false # Got value, back to normal.
2317      else
2318	case $ac_arg in
2319	  *=* | --config-cache | -C | -disable-* | --disable-* \
2320	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322	  | -with-* | --with-* | -without-* | --without-* | --x)
2323	    case "$ac_configure_args0 " in
2324	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325	    esac
2326	    ;;
2327	  -* ) ac_must_keep_next=true ;;
2328	esac
2329      fi
2330      as_fn_append ac_configure_args " '$ac_arg'"
2331      ;;
2332    esac
2333  done
2334done
2335{ ac_configure_args0=; unset ac_configure_args0;}
2336{ ac_configure_args1=; unset ac_configure_args1;}
2337
2338# When interrupted or exit'd, cleanup temporary files, and complete
2339# config.log.  We remove comments because anyway the quotes in there
2340# would cause problems or look ugly.
2341# WARNING: Use '\'' to represent an apostrophe within the trap.
2342# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2343trap 'exit_status=$?
2344  # Save into config.log some information that might help in debugging.
2345  {
2346    echo
2347
2348    $as_echo "## ---------------- ##
2349## Cache variables. ##
2350## ---------------- ##"
2351    echo
2352    # The following way of writing the cache mishandles newlines in values,
2353(
2354  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355    eval ac_val=\$$ac_var
2356    case $ac_val in #(
2357    *${as_nl}*)
2358      case $ac_var in #(
2359      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2361      esac
2362      case $ac_var in #(
2363      _ | IFS | as_nl) ;; #(
2364      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365      *) { eval $ac_var=; unset $ac_var;} ;;
2366      esac ;;
2367    esac
2368  done
2369  (set) 2>&1 |
2370    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371    *${as_nl}ac_space=\ *)
2372      sed -n \
2373	"s/'\''/'\''\\\\'\'''\''/g;
2374	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2375      ;; #(
2376    *)
2377      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2378      ;;
2379    esac |
2380    sort
2381)
2382    echo
2383
2384    $as_echo "## ----------------- ##
2385## Output variables. ##
2386## ----------------- ##"
2387    echo
2388    for ac_var in $ac_subst_vars
2389    do
2390      eval ac_val=\$$ac_var
2391      case $ac_val in
2392      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393      esac
2394      $as_echo "$ac_var='\''$ac_val'\''"
2395    done | sort
2396    echo
2397
2398    if test -n "$ac_subst_files"; then
2399      $as_echo "## ------------------- ##
2400## File substitutions. ##
2401## ------------------- ##"
2402      echo
2403      for ac_var in $ac_subst_files
2404      do
2405	eval ac_val=\$$ac_var
2406	case $ac_val in
2407	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408	esac
2409	$as_echo "$ac_var='\''$ac_val'\''"
2410      done | sort
2411      echo
2412    fi
2413
2414    if test -s confdefs.h; then
2415      $as_echo "## ----------- ##
2416## confdefs.h. ##
2417## ----------- ##"
2418      echo
2419      cat confdefs.h
2420      echo
2421    fi
2422    test "$ac_signal" != 0 &&
2423      $as_echo "$as_me: caught signal $ac_signal"
2424    $as_echo "$as_me: exit $exit_status"
2425  } >&5
2426  rm -f core *.core core.conftest.* &&
2427    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2428    exit $exit_status
2429' 0
2430for ac_signal in 1 2 13 15; do
2431  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2432done
2433ac_signal=0
2434
2435# confdefs.h avoids OS command line length limits that DEFS can exceed.
2436rm -f -r conftest* confdefs.h
2437
2438$as_echo "/* confdefs.h */" > confdefs.h
2439
2440# Predefined preprocessor variables.
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_NAME "$PACKAGE_NAME"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_VERSION "$PACKAGE_VERSION"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_STRING "$PACKAGE_STRING"
2456_ACEOF
2457
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2460_ACEOF
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_URL "$PACKAGE_URL"
2464_ACEOF
2465
2466
2467# Let the site file select an alternate cache file if it wants to.
2468# Prefer an explicitly selected file to automatically selected ones.
2469ac_site_file1=NONE
2470ac_site_file2=NONE
2471if test -n "$CONFIG_SITE"; then
2472  # We do not want a PATH search for config.site.
2473  case $CONFIG_SITE in #((
2474    -*)  ac_site_file1=./$CONFIG_SITE;;
2475    */*) ac_site_file1=$CONFIG_SITE;;
2476    *)   ac_site_file1=./$CONFIG_SITE;;
2477  esac
2478elif test "x$prefix" != xNONE; then
2479  ac_site_file1=$prefix/share/config.site
2480  ac_site_file2=$prefix/etc/config.site
2481else
2482  ac_site_file1=$ac_default_prefix/share/config.site
2483  ac_site_file2=$ac_default_prefix/etc/config.site
2484fi
2485for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2486do
2487  test "x$ac_site_file" = xNONE && continue
2488  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2489    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2490$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2491    sed 's/^/| /' "$ac_site_file" >&5
2492    . "$ac_site_file" \
2493      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495as_fn_error $? "failed to load site script $ac_site_file
2496See \`config.log' for more details" "$LINENO" 5; }
2497  fi
2498done
2499
2500if test -r "$cache_file"; then
2501  # Some versions of bash will fail to source /dev/null (special files
2502  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2503  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2504    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2505$as_echo "$as_me: loading cache $cache_file" >&6;}
2506    case $cache_file in
2507      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2508      *)                      . "./$cache_file";;
2509    esac
2510  fi
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2513$as_echo "$as_me: creating cache $cache_file" >&6;}
2514  >$cache_file
2515fi
2516
2517# Check that the precious variables saved in the cache have kept the same
2518# value.
2519ac_cache_corrupted=false
2520for ac_var in $ac_precious_vars; do
2521  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2522  eval ac_new_set=\$ac_env_${ac_var}_set
2523  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2524  eval ac_new_val=\$ac_env_${ac_var}_value
2525  case $ac_old_set,$ac_new_set in
2526    set,)
2527      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2528$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2529      ac_cache_corrupted=: ;;
2530    ,set)
2531      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2532$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2533      ac_cache_corrupted=: ;;
2534    ,);;
2535    *)
2536      if test "x$ac_old_val" != "x$ac_new_val"; then
2537	# differences in whitespace do not lead to failure.
2538	ac_old_val_w=`echo x $ac_old_val`
2539	ac_new_val_w=`echo x $ac_new_val`
2540	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2541	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2542$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2543	  ac_cache_corrupted=:
2544	else
2545	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2546$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2547	  eval $ac_var=\$ac_old_val
2548	fi
2549	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2550$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2551	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2552$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2553      fi;;
2554  esac
2555  # Pass precious variables to config.status.
2556  if test "$ac_new_set" = set; then
2557    case $ac_new_val in
2558    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2559    *) ac_arg=$ac_var=$ac_new_val ;;
2560    esac
2561    case " $ac_configure_args " in
2562      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2563      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2564    esac
2565  fi
2566done
2567if $ac_cache_corrupted; then
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2571$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2572  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2573fi
2574## -------------------- ##
2575## Main body of script. ##
2576## -------------------- ##
2577
2578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631default_cache_file=./config.cache
2632
2633if test "x$no_recursion" != "xyes" -a "x$OVERRIDE_CONFIG_CACHE" = "x"; then
2634    # The no_recursion variable is not documented, but the only
2635    # action we take on it is disabling caching which is safe!
2636    if test "x$cache_file" != "x$default_cache_file"; then
2637	echo "Ignoring the --cache-file argument since it can cause the system to be erroneously configured"
2638    fi
2639    echo "Disabling caching"
2640    if test -f $cache_file; then
2641	echo "Removing cache file $cache_file"
2642	rm -f $cache_file
2643    fi
2644    cache_file=/dev/null
2645fi
2646
2647case "X$ERL_TOP" in
2648    X)
2649	;;
2650    X/*)
2651	test -f "$ERL_TOP/erts/emulator/beam/beam_emu.c" || {
2652	     as_fn_error $? "Invalid \$ERL_TOP" "$LINENO" 5
2653	}
2654	srcdir="$ERL_TOP";;
2655    *)
2656	as_fn_error $? "\$ERL_TOP needs to be absolute" "$LINENO" 5;;
2657esac
2658
2659#### Make srcdir absolute, if it isn't already.  It's important to
2660#### avoid running the path through pwd unnecessary, since pwd can
2661#### give you automounter prefixes, which can go away.
2662case "${srcdir}" in
2663  /* ) ;;
2664  . )
2665    ## We may be able to use the $PWD environment variable to make this
2666    ## absolute.  But sometimes PWD is inaccurate.
2667    ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2668    CDPATH=
2669    if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"  ;
2670    then
2671      srcdir="$PWD"
2672    else
2673      srcdir="`(cd ${srcdir}; pwd)`"
2674    fi
2675  ;;
2676  *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2677esac
2678
2679#
2680# Now srcdir is absolute and also the top of Erlang distribution, ERL_TOP.
2681#
2682test "X$ERL_TOP" != "X" || as_fn_error $? "ERL_TOP not set" "$LINENO" 5
2683
2684
2685ac_aux_dir=
2686for ac_dir in ${ERL_TOP}/erts/autoconf "$srcdir"/${ERL_TOP}/erts/autoconf; do
2687  if test -f "$ac_dir/install-sh"; then
2688    ac_aux_dir=$ac_dir
2689    ac_install_sh="$ac_aux_dir/install-sh -c"
2690    break
2691  elif test -f "$ac_dir/install.sh"; then
2692    ac_aux_dir=$ac_dir
2693    ac_install_sh="$ac_aux_dir/install.sh -c"
2694    break
2695  elif test -f "$ac_dir/shtool"; then
2696    ac_aux_dir=$ac_dir
2697    ac_install_sh="$ac_aux_dir/shtool install -c"
2698    break
2699  fi
2700done
2701if test -z "$ac_aux_dir"; then
2702  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${ERL_TOP}/erts/autoconf \"$srcdir\"/${ERL_TOP}/erts/autoconf" "$LINENO" 5
2703fi
2704
2705# These three variables are undocumented and unsupported,
2706# and are intended to be withdrawn in a future Autoconf release.
2707# They can cause serious problems if a builder's source tree is in a directory
2708# whose full name contains unusual characters.
2709ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2710ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2711ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2712
2713
2714
2715
2716if test "X$host" != "Xfree_source" -a "X$host" != "Xwin32"; then
2717    # Make sure we can run config.sub.
2718$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2719  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2720
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2722$as_echo_n "checking build system type... " >&6; }
2723if ${ac_cv_build+:} false; then :
2724  $as_echo_n "(cached) " >&6
2725else
2726  ac_build_alias=$build_alias
2727test "x$ac_build_alias" = x &&
2728  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2729test "x$ac_build_alias" = x &&
2730  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2731ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2732  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2736$as_echo "$ac_cv_build" >&6; }
2737case $ac_cv_build in
2738*-*-*) ;;
2739*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2740esac
2741build=$ac_cv_build
2742ac_save_IFS=$IFS; IFS='-'
2743set x $ac_cv_build
2744shift
2745build_cpu=$1
2746build_vendor=$2
2747shift; shift
2748# Remember, the first character of IFS is used to create $*,
2749# except with old shells:
2750build_os=$*
2751IFS=$ac_save_IFS
2752case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753
2754
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2756$as_echo_n "checking host system type... " >&6; }
2757if ${ac_cv_host+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test "x$host_alias" = x; then
2761  ac_cv_host=$ac_cv_build
2762else
2763  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2764    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2765fi
2766
2767fi
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2769$as_echo "$ac_cv_host" >&6; }
2770case $ac_cv_host in
2771*-*-*) ;;
2772*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2773esac
2774host=$ac_cv_host
2775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_host
2777shift
2778host_cpu=$1
2779host_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783host_os=$*
2784IFS=$ac_save_IFS
2785case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786
2787
2788else
2789    host_os=$host
2790fi
2791
2792TARGET=$host
2793
2794
2795if test "$cross_compiling" = "yes"; then
2796    CROSS_COMPILING=yes
2797else
2798    CROSS_COMPILING=no
2799fi
2800
2801
2802# Check whether --enable-bootstrap-only was given.
2803if test "${enable_bootstrap_only+set}" = set; then :
2804  enableval=$enable_bootstrap_only;  if test "X$enableval" = "Xyes"; then
2805     BOOTSTRAP_ONLY=yes
2806  else
2807     BOOTSTRAP_ONLY=no
2808  fi
2809
2810else
2811  BOOTSTRAP_ONLY=no
2812fi
2813
2814
2815
2816
2817if test $CROSS_COMPILING = yes -a $BOOTSTRAP_ONLY = yes; then
2818    as_fn_error $? "Cannot both cross compile and build a bootstrap system" "$LINENO" 5
2819fi
2820
2821
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827if test -n "$ac_tool_prefix"; then
2828  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2829set dummy ${ac_tool_prefix}gcc; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if ${ac_cv_prog_CC+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865fi
2866if test -z "$ac_cv_prog_CC"; then
2867  ac_ct_CC=$CC
2868  # Extract the first word of "gcc", so it can be a program name with args.
2869set dummy gcc; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if ${ac_cv_prog_ac_ct_CC+:} false; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  if test -n "$ac_ct_CC"; then
2876  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881  IFS=$as_save_IFS
2882  test -z "$as_dir" && as_dir=.
2883    for ac_exec_ext in '' $ac_executable_extensions; do
2884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885    ac_cv_prog_ac_ct_CC="gcc"
2886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887    break 2
2888  fi
2889done
2890  done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896if test -n "$ac_ct_CC"; then
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2898$as_echo "$ac_ct_CC" >&6; }
2899else
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
2904  if test "x$ac_ct_CC" = x; then
2905    CC=""
2906  else
2907    case $cross_compiling:$ac_tool_warned in
2908yes:)
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911ac_tool_warned=yes ;;
2912esac
2913    CC=$ac_ct_CC
2914  fi
2915else
2916  CC="$ac_cv_prog_CC"
2917fi
2918
2919if test -z "$CC"; then
2920          if test -n "$ac_tool_prefix"; then
2921    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2922set dummy ${ac_tool_prefix}cc; ac_word=$2
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924$as_echo_n "checking for $ac_word... " >&6; }
2925if ${ac_cv_prog_CC+:} false; then :
2926  $as_echo_n "(cached) " >&6
2927else
2928  if test -n "$CC"; then
2929  ac_cv_prog_CC="$CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936    for ac_exec_ext in '' $ac_executable_extensions; do
2937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938    ac_cv_prog_CC="${ac_tool_prefix}cc"
2939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948CC=$ac_cv_prog_CC
2949if test -n "$CC"; then
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951$as_echo "$CC" >&6; }
2952else
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955fi
2956
2957
2958  fi
2959fi
2960if test -z "$CC"; then
2961  # Extract the first word of "cc", so it can be a program name with args.
2962set dummy cc; ac_word=$2
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964$as_echo_n "checking for $ac_word... " >&6; }
2965if ${ac_cv_prog_CC+:} false; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  if test -n "$CC"; then
2969  ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
2971  ac_prog_rejected=no
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2980       ac_prog_rejected=yes
2981       continue
2982     fi
2983    ac_cv_prog_CC="cc"
2984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991if test $ac_prog_rejected = yes; then
2992  # We found a bogon in the path, so make sure we never use it.
2993  set dummy $ac_cv_prog_CC
2994  shift
2995  if test $# != 0; then
2996    # We chose a different compiler from the bogus one.
2997    # However, it has the same basename, so the bogon will be chosen
2998    # first if we set CC to just the basename; use the full file name.
2999    shift
3000    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3001  fi
3002fi
3003fi
3004fi
3005CC=$ac_cv_prog_CC
3006if test -n "$CC"; then
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008$as_echo "$CC" >&6; }
3009else
3010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
3012fi
3013
3014
3015fi
3016if test -z "$CC"; then
3017  if test -n "$ac_tool_prefix"; then
3018  for ac_prog in cl.exe
3019  do
3020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
3024if ${ac_cv_prog_CC+:} false; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  if test -n "$CC"; then
3028  ac_cv_prog_CC="$CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035    for ac_exec_ext in '' $ac_executable_extensions; do
3036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047CC=$ac_cv_prog_CC
3048if test -n "$CC"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050$as_echo "$CC" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057    test -n "$CC" && break
3058  done
3059fi
3060if test -z "$CC"; then
3061  ac_ct_CC=$CC
3062  for ac_prog in cl.exe
3063do
3064  # Extract the first word of "$ac_prog", so it can be a program name with args.
3065set dummy $ac_prog; ac_word=$2
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
3068if ${ac_cv_prog_ac_ct_CC+:} false; then :
3069  $as_echo_n "(cached) " >&6
3070else
3071  if test -n "$ac_ct_CC"; then
3072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081    ac_cv_prog_ac_ct_CC="$ac_prog"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi
3090fi
3091ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092if test -n "$ac_ct_CC"; then
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3094$as_echo "$ac_ct_CC" >&6; }
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101  test -n "$ac_ct_CC" && break
3102done
3103
3104  if test "x$ac_ct_CC" = x; then
3105    CC=""
3106  else
3107    case $cross_compiling:$ac_tool_warned in
3108yes:)
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111ac_tool_warned=yes ;;
3112esac
3113    CC=$ac_ct_CC
3114  fi
3115fi
3116
3117fi
3118
3119
3120test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122as_fn_error $? "no acceptable C compiler found in \$PATH
3123See \`config.log' for more details" "$LINENO" 5; }
3124
3125# Provide some information about the compiler.
3126$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3127set X $ac_compile
3128ac_compiler=$2
3129for ac_option in --version -v -V -qversion; do
3130  { { ac_try="$ac_compiler $ac_option >&5"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136$as_echo "$ac_try_echo"; } >&5
3137  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3138  ac_status=$?
3139  if test -s conftest.err; then
3140    sed '10a\
3141... rest of stderr output deleted ...
3142         10q' conftest.err >conftest.er1
3143    cat conftest.er1 >&5
3144  fi
3145  rm -f conftest.er1 conftest.err
3146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147  test $ac_status = 0; }
3148done
3149
3150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151/* end confdefs.h.  */
3152
3153int
3154main ()
3155{
3156
3157  ;
3158  return 0;
3159}
3160_ACEOF
3161ac_clean_files_save=$ac_clean_files
3162ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3163# Try to create an executable without -o first, disregard a.out.
3164# It will help us diagnose broken compilers, and finding out an intuition
3165# of exeext.
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3167$as_echo_n "checking whether the C compiler works... " >&6; }
3168ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3169
3170# The possible output files:
3171ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3172
3173ac_rmfiles=
3174for ac_file in $ac_files
3175do
3176  case $ac_file in
3177    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3178    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3179  esac
3180done
3181rm -f $ac_rmfiles
3182
3183if { { ac_try="$ac_link_default"
3184case "(($ac_try" in
3185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186  *) ac_try_echo=$ac_try;;
3187esac
3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
3190  (eval "$ac_link_default") 2>&5
3191  ac_status=$?
3192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193  test $ac_status = 0; }; then :
3194  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3195# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3196# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3197# so that the user can short-circuit this test for compilers unknown to
3198# Autoconf.
3199for ac_file in $ac_files ''
3200do
3201  test -f "$ac_file" || continue
3202  case $ac_file in
3203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3204	;;
3205    [ab].out )
3206	# We found the default executable, but exeext='' is most
3207	# certainly right.
3208	break;;
3209    *.* )
3210	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3211	then :; else
3212	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213	fi
3214	# We set ac_cv_exeext here because the later test for it is not
3215	# safe: cross compilers may not add the suffix if given an `-o'
3216	# argument, so we may need to know it at that point already.
3217	# Even if this section looks crufty: it has the advantage of
3218	# actually working.
3219	break;;
3220    * )
3221	break;;
3222  esac
3223done
3224test "$ac_cv_exeext" = no && ac_cv_exeext=
3225
3226else
3227  ac_file=''
3228fi
3229if test -z "$ac_file"; then :
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232$as_echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error 77 "C compiler cannot create executables
3238See \`config.log' for more details" "$LINENO" 5; }
3239else
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3244$as_echo_n "checking for C compiler default output file name... " >&6; }
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3246$as_echo "$ac_file" >&6; }
3247ac_exeext=$ac_cv_exeext
3248
3249rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3250ac_clean_files=$ac_clean_files_save
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3252$as_echo_n "checking for suffix of executables... " >&6; }
3253if { { ac_try="$ac_link"
3254case "(($ac_try" in
3255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256  *) ac_try_echo=$ac_try;;
3257esac
3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259$as_echo "$ac_try_echo"; } >&5
3260  (eval "$ac_link") 2>&5
3261  ac_status=$?
3262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263  test $ac_status = 0; }; then :
3264  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3265# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3266# work properly (i.e., refer to `conftest.exe'), while it won't with
3267# `rm'.
3268for ac_file in conftest.exe conftest conftest.*; do
3269  test -f "$ac_file" || continue
3270  case $ac_file in
3271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273	  break;;
3274    * ) break;;
3275  esac
3276done
3277else
3278  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3281See \`config.log' for more details" "$LINENO" 5; }
3282fi
3283rm -f conftest conftest$ac_cv_exeext
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3285$as_echo "$ac_cv_exeext" >&6; }
3286
3287rm -f conftest.$ac_ext
3288EXEEXT=$ac_cv_exeext
3289ac_exeext=$EXEEXT
3290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292#include <stdio.h>
3293int
3294main ()
3295{
3296FILE *f = fopen ("conftest.out", "w");
3297 return ferror (f) || fclose (f) != 0;
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303ac_clean_files="$ac_clean_files conftest.out"
3304# Check that the compiler produces executables we can run.  If not, either
3305# the compiler is broken, or we cross compile.
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3307$as_echo_n "checking whether we are cross compiling... " >&6; }
3308if test "$cross_compiling" != yes; then
3309  { { ac_try="$ac_link"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315$as_echo "$ac_try_echo"; } >&5
3316  (eval "$ac_link") 2>&5
3317  ac_status=$?
3318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }
3320  if { ac_try='./conftest$ac_cv_exeext'
3321  { { case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327  (eval "$ac_try") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }; }; then
3331    cross_compiling=no
3332  else
3333    if test "$cross_compiling" = maybe; then
3334	cross_compiling=yes
3335    else
3336	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error $? "cannot run C compiled programs.
3339If you meant to cross compile, use \`--host'.
3340See \`config.log' for more details" "$LINENO" 5; }
3341    fi
3342  fi
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3345$as_echo "$cross_compiling" >&6; }
3346
3347rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3348ac_clean_files=$ac_clean_files_save
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3350$as_echo_n "checking for suffix of object files... " >&6; }
3351if ${ac_cv_objext+:} false; then :
3352  $as_echo_n "(cached) " >&6
3353else
3354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365rm -f conftest.o conftest.obj
3366if { { ac_try="$ac_compile"
3367case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_compile") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }; then :
3377  for ac_file in conftest.o conftest.obj conftest.*; do
3378  test -f "$ac_file" || continue;
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3381    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382       break;;
3383  esac
3384done
3385else
3386  $as_echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error $? "cannot compute suffix of object files: cannot compile
3392See \`config.log' for more details" "$LINENO" 5; }
3393fi
3394rm -f conftest.$ac_cv_objext conftest.$ac_ext
3395fi
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3397$as_echo "$ac_cv_objext" >&6; }
3398OBJEXT=$ac_cv_objext
3399ac_objext=$OBJEXT
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3401$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3402if ${ac_cv_c_compiler_gnu+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407
3408int
3409main ()
3410{
3411#ifndef __GNUC__
3412       choke me
3413#endif
3414
3415  ;
3416  return 0;
3417}
3418_ACEOF
3419if ac_fn_c_try_compile "$LINENO"; then :
3420  ac_compiler_gnu=yes
3421else
3422  ac_compiler_gnu=no
3423fi
3424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3429$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3430if test $ac_compiler_gnu = yes; then
3431  GCC=yes
3432else
3433  GCC=
3434fi
3435ac_test_CFLAGS=${CFLAGS+set}
3436ac_save_CFLAGS=$CFLAGS
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3438$as_echo_n "checking whether $CC accepts -g... " >&6; }
3439if ${ac_cv_prog_cc_g+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  ac_save_c_werror_flag=$ac_c_werror_flag
3443   ac_c_werror_flag=yes
3444   ac_cv_prog_cc_g=no
3445   CFLAGS="-g"
3446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457if ac_fn_c_try_compile "$LINENO"; then :
3458  ac_cv_prog_cc_g=yes
3459else
3460  CFLAGS=""
3461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463
3464int
3465main ()
3466{
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472if ac_fn_c_try_compile "$LINENO"; then :
3473
3474else
3475  ac_c_werror_flag=$ac_save_c_werror_flag
3476	 CFLAGS="-g"
3477	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488if ac_fn_c_try_compile "$LINENO"; then :
3489  ac_cv_prog_cc_g=yes
3490fi
3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492fi
3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494fi
3495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496   ac_c_werror_flag=$ac_save_c_werror_flag
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3499$as_echo "$ac_cv_prog_cc_g" >&6; }
3500if test "$ac_test_CFLAGS" = set; then
3501  CFLAGS=$ac_save_CFLAGS
3502elif test $ac_cv_prog_cc_g = yes; then
3503  if test "$GCC" = yes; then
3504    CFLAGS="-g -O2"
3505  else
3506    CFLAGS="-g"
3507  fi
3508else
3509  if test "$GCC" = yes; then
3510    CFLAGS="-O2"
3511  else
3512    CFLAGS=
3513  fi
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3516$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3517if ${ac_cv_prog_cc_c89+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  ac_cv_prog_cc_c89=no
3521ac_save_CC=$CC
3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524#include <stdarg.h>
3525#include <stdio.h>
3526struct stat;
3527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3528struct buf { int x; };
3529FILE * (*rcsopen) (struct buf *, struct stat *, int);
3530static char *e (p, i)
3531     char **p;
3532     int i;
3533{
3534  return p[i];
3535}
3536static char *f (char * (*g) (char **, int), char **p, ...)
3537{
3538  char *s;
3539  va_list v;
3540  va_start (v,p);
3541  s = g (p, va_arg (v,int));
3542  va_end (v);
3543  return s;
3544}
3545
3546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3547   function prototypes and stuff, but not '\xHH' hex character constants.
3548   These don't provoke an error unfortunately, instead are silently treated
3549   as 'x'.  The following induces an error, until -std is added to get
3550   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3551   array size at least.  It's necessary to write '\x00'==0 to get something
3552   that's true only with -std.  */
3553int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3554
3555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3556   inside strings and character constants.  */
3557#define FOO(x) 'x'
3558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3559
3560int test (int i, double x);
3561struct s1 {int (*f) (int a);};
3562struct s2 {int (*f) (double a);};
3563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3564int argc;
3565char **argv;
3566int
3567main ()
3568{
3569return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3575	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3576do
3577  CC="$ac_save_CC $ac_arg"
3578  if ac_fn_c_try_compile "$LINENO"; then :
3579  ac_cv_prog_cc_c89=$ac_arg
3580fi
3581rm -f core conftest.err conftest.$ac_objext
3582  test "x$ac_cv_prog_cc_c89" != "xno" && break
3583done
3584rm -f conftest.$ac_ext
3585CC=$ac_save_CC
3586
3587fi
3588# AC_CACHE_VAL
3589case "x$ac_cv_prog_cc_c89" in
3590  x)
3591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3592$as_echo "none needed" >&6; } ;;
3593  xno)
3594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3595$as_echo "unsupported" >&6; } ;;
3596  *)
3597    CC="$CC $ac_cv_prog_cc_c89"
3598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3599$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3600esac
3601if test "x$ac_cv_prog_cc_c89" != xno; then :
3602
3603fi
3604
3605ac_ext=c
3606ac_cpp='$CPP $CPPFLAGS'
3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
3611ac_ext=cpp
3612ac_cpp='$CXXCPP $CPPFLAGS'
3613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3616if test -z "$CXX"; then
3617  if test -n "$CCC"; then
3618    CXX=$CCC
3619  else
3620    if test -n "$ac_tool_prefix"; then
3621  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3622  do
3623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if ${ac_cv_prog_CXX+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$CXX"; then
3631  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650CXX=$ac_cv_prog_CXX
3651if test -n "$CXX"; then
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3653$as_echo "$CXX" >&6; }
3654else
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660    test -n "$CXX" && break
3661  done
3662fi
3663if test -z "$CXX"; then
3664  ac_ct_CXX=$CXX
3665  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3666do
3667  # Extract the first word of "$ac_prog", so it can be a program name with args.
3668set dummy $ac_prog; ac_word=$2
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670$as_echo_n "checking for $ac_word... " >&6; }
3671if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  if test -n "$ac_ct_CXX"; then
3675  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3676else
3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680  IFS=$as_save_IFS
3681  test -z "$as_dir" && as_dir=.
3682    for ac_exec_ext in '' $ac_executable_extensions; do
3683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684    ac_cv_prog_ac_ct_CXX="$ac_prog"
3685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686    break 2
3687  fi
3688done
3689  done
3690IFS=$as_save_IFS
3691
3692fi
3693fi
3694ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3695if test -n "$ac_ct_CXX"; then
3696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3697$as_echo "$ac_ct_CXX" >&6; }
3698else
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700$as_echo "no" >&6; }
3701fi
3702
3703
3704  test -n "$ac_ct_CXX" && break
3705done
3706
3707  if test "x$ac_ct_CXX" = x; then
3708    CXX="g++"
3709  else
3710    case $cross_compiling:$ac_tool_warned in
3711yes:)
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714ac_tool_warned=yes ;;
3715esac
3716    CXX=$ac_ct_CXX
3717  fi
3718fi
3719
3720  fi
3721fi
3722# Provide some information about the compiler.
3723$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3724set X $ac_compile
3725ac_compiler=$2
3726for ac_option in --version -v -V -qversion; do
3727  { { ac_try="$ac_compiler $ac_option >&5"
3728case "(($ac_try" in
3729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730  *) ac_try_echo=$ac_try;;
3731esac
3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733$as_echo "$ac_try_echo"; } >&5
3734  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3735  ac_status=$?
3736  if test -s conftest.err; then
3737    sed '10a\
3738... rest of stderr output deleted ...
3739         10q' conftest.err >conftest.er1
3740    cat conftest.er1 >&5
3741  fi
3742  rm -f conftest.er1 conftest.err
3743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744  test $ac_status = 0; }
3745done
3746
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3748$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3749if ${ac_cv_cxx_compiler_gnu+:} false; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758#ifndef __GNUC__
3759       choke me
3760#endif
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766if ac_fn_cxx_try_compile "$LINENO"; then :
3767  ac_compiler_gnu=yes
3768else
3769  ac_compiler_gnu=no
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3773
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3776$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3777if test $ac_compiler_gnu = yes; then
3778  GXX=yes
3779else
3780  GXX=
3781fi
3782ac_test_CXXFLAGS=${CXXFLAGS+set}
3783ac_save_CXXFLAGS=$CXXFLAGS
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3785$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3786if ${ac_cv_prog_cxx_g+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3790   ac_cxx_werror_flag=yes
3791   ac_cv_prog_cxx_g=no
3792   CXXFLAGS="-g"
3793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h.  */
3795
3796int
3797main ()
3798{
3799
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804if ac_fn_cxx_try_compile "$LINENO"; then :
3805  ac_cv_prog_cxx_g=yes
3806else
3807  CXXFLAGS=""
3808      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810
3811int
3812main ()
3813{
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819if ac_fn_cxx_try_compile "$LINENO"; then :
3820
3821else
3822  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3823	 CXXFLAGS="-g"
3824	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827int
3828main ()
3829{
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835if ac_fn_cxx_try_compile "$LINENO"; then :
3836  ac_cv_prog_cxx_g=yes
3837fi
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839fi
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3846$as_echo "$ac_cv_prog_cxx_g" >&6; }
3847if test "$ac_test_CXXFLAGS" = set; then
3848  CXXFLAGS=$ac_save_CXXFLAGS
3849elif test $ac_cv_prog_cxx_g = yes; then
3850  if test "$GXX" = yes; then
3851    CXXFLAGS="-g -O2"
3852  else
3853    CXXFLAGS="-g"
3854  fi
3855else
3856  if test "$GXX" = yes; then
3857    CXXFLAGS="-O2"
3858  else
3859    CXXFLAGS=
3860  fi
3861fi
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868if test -n "$ac_tool_prefix"; then
3869  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3870set dummy ${ac_tool_prefix}ld; ac_word=$2
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if ${ac_cv_prog_LD+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  if test -n "$LD"; then
3877  ac_cv_prog_LD="$LD" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886    ac_cv_prog_LD="${ac_tool_prefix}ld"
3887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888    break 2
3889  fi
3890done
3891  done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896LD=$ac_cv_prog_LD
3897if test -n "$LD"; then
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3899$as_echo "$LD" >&6; }
3900else
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906fi
3907if test -z "$ac_cv_prog_LD"; then
3908  ac_ct_LD=$LD
3909  # Extract the first word of "ld", so it can be a program name with args.
3910set dummy ld; ac_word=$2
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
3913if ${ac_cv_prog_ac_ct_LD+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if test -n "$ac_ct_LD"; then
3917  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922  IFS=$as_save_IFS
3923  test -z "$as_dir" && as_dir=.
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_ac_ct_LD="ld"
3927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928    break 2
3929  fi
3930done
3931  done
3932IFS=$as_save_IFS
3933
3934fi
3935fi
3936ac_ct_LD=$ac_cv_prog_ac_ct_LD
3937if test -n "$ac_ct_LD"; then
3938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
3939$as_echo "$ac_ct_LD" >&6; }
3940else
3941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942$as_echo "no" >&6; }
3943fi
3944
3945  if test "x$ac_ct_LD" = x; then
3946    LD=""
3947  else
3948    case $cross_compiling:$ac_tool_warned in
3949yes:)
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3952ac_tool_warned=yes ;;
3953esac
3954    LD=$ac_ct_LD
3955  fi
3956else
3957  LD="$ac_cv_prog_LD"
3958fi
3959
3960
3961
3962
3963if test "X$windows_environment_" != "Xchecked"; then
3964windows_environment_=checked
3965MIXED_CYGWIN=no
3966MIXED_MSYS=no
3967MIXED_VSL=no
3968
3969MIXED_VC=no
3970MIXED_MINGW=no
3971
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed mingw-gcc and native VC++ environment" >&5
3973$as_echo_n "checking for mixed mingw-gcc and native VC++ environment... " >&6; }
3974if test "X$host" = "Xwin32" -a "x$GCC" != "xyes"; then
3975	if test -x /usr/bin/msys-?.0.dll; then
3976	        CFLAGS="$CFLAGS -O2"
3977		MIXED_MSYS=yes
3978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MSYS and VC" >&5
3979$as_echo "MSYS and VC" >&6; }
3980		MIXED_VC=yes
3981		CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC"
3982	elif test -x /usr/bin/cygpath; then
3983		CFLAGS="$CFLAGS -O2"
3984		MIXED_CYGWIN=yes
3985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin and VC" >&5
3986$as_echo "Cygwin and VC" >&6; }
3987		MIXED_VC=yes
3988		CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC"
3989        elif test -x /bin/wslpath; then
3990		CFLAGS="$CFLAGS -O2"
3991		MIXED_WSL=yes
3992		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: WSL and VC" >&5
3993$as_echo "WSL and VC" >&6; }
3994		MIXED_VC=yes
3995		CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC"
3996	else
3997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
3998$as_echo "undeterminable" >&6; }
3999		as_fn_error cannot handle this! "Seems to be mixed windows but not within any known env" "$LINENO" 5
4000	fi
4001else
4002	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
4004fi
4005
4006
4007
4008if test "x$MIXED_MSYS" != "xyes"; then
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed cygwin and native MinGW environment" >&5
4010$as_echo_n "checking for mixed cygwin and native MinGW environment... " >&6; }
4011   if test "X$host" = "Xwin32" -a "x$GCC" = x"yes"; then
4012	if test -x /usr/bin/cygpath; then
4013		CFLAGS="$CFLAGS -O2"
4014		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015$as_echo "yes" >&6; }
4016		MIXED_MINGW=yes
4017		CPPFLAGS="$CPPFLAGS -DERTS_MIXED_MINGW"
4018	else
4019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
4020$as_echo "undeterminable" >&6; }
4021		as_fn_error cannot handle this! "Seems to be mixed windows but not with cygwin" "$LINENO" 5
4022	fi
4023    else
4024	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
4026    fi
4027else
4028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed MSYS and native MinGW environment" >&5
4029$as_echo_n "checking for mixed MSYS and native MinGW environment... " >&6; }
4030   if test "x$GCC" = x"yes"; then
4031    	if test -x /usr/bin/msys-=.0.dll; then
4032		CFLAGS="$CFLAGS -O2"
4033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034$as_echo "yes" >&6; }
4035		MIXED_MINGW=yes
4036		CPPFLAGS="$CPPFLAGS -DERTS_MIXED_MINGW"
4037	else
4038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
4039$as_echo "undeterminable" >&6; }
4040		as_fn_error cannot handle this! "Seems to be mixed windows but not with msys" "$LINENO" 5
4041	fi
4042    else
4043	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044$as_echo "no" >&6; }
4045    fi
4046fi
4047
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix cygwin with any native compiler" >&5
4050$as_echo_n "checking if we mix cygwin with any native compiler... " >&6; }
4051if test "X$MIXED_CYGWIN" = "Xyes"; then
4052	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053$as_echo "yes" >&6; }
4054else
4055	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
4057fi
4058
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix msys with another native compiler" >&5
4060$as_echo_n "checking if we mix msys with another native compiler... " >&6; }
4061if test "X$MIXED_MSYS" = "Xyes" ; then
4062	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063$as_echo "yes" >&6; }
4064else
4065	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix WSL with another native compiler" >&5
4070$as_echo_n "checking if we mix WSL with another native compiler... " >&6; }
4071if test "X$MIXED_WSL" = "Xyes" ; then
4072	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4073$as_echo "yes" >&6; }
4074else
4075	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076$as_echo "no" >&6; }
4077fi
4078
4079fi
4080
4081
4082_search_path=/bin:/usr/bin:/usr/local/bin:$PATH
4083
4084# Extract the first word of "env", so it can be a program name with args.
4085set dummy env; ac_word=$2
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if ${ac_cv_path_ENV+:} false; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091  case $ENV in
4092  [\\/]* | ?:[\\/]*)
4093  ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4094  ;;
4095  *)
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $_search_path
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_exec_ext in '' $ac_executable_extensions; do
4102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103    ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105    break 2
4106  fi
4107done
4108  done
4109IFS=$as_save_IFS
4110
4111  test -z "$ac_cv_path_ENV" && ac_cv_path_ENV="false"
4112  ;;
4113esac
4114fi
4115ENV=$ac_cv_path_ENV
4116if test -n "$ENV"; then
4117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
4118$as_echo "$ENV" >&6; }
4119else
4120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121$as_echo "no" >&6; }
4122fi
4123
4124
4125if test "$ac_cv_path_ENV" = false; then
4126  as_fn_error $? "No 'env' command found" "$LINENO" 5
4127fi
4128
4129#
4130# We need GNU make, complain if we can't find it
4131#
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4133$as_echo_n "checking for GNU make... " >&6; }
4134# If there is a Makefile created we don't want make to start making, run
4135# in a subdirectory and -f /dev/null
4136MAKE_PROG=x
4137if test X"$CLEARCASE_MAKE_COMPAT" = X"gnu" -a X"$CLEARCASE_ROOT" != X"" ; then
4138  eval clearmake -version 2>&1 | grep clearmake > /dev/null 2>&1
4139  case $? in
4140	0) MAKE_PROG="clearmake -V";;
4141	*);;
4142  esac
4143fi
4144if test X"$MAKE_PROG" = X"x"; then
4145  mkdir conftestmake
4146  if test -d conftestmake; then
4147    cd conftestmake
4148    for m in make gmake ggmake; do
4149      eval $m --version -f /dev/null 2>&1 | grep GNU > /dev/null 2>&1
4150      case $? in
4151        0) MAKE_PROG=$m ; break ;;
4152        *) ;;
4153      esac
4154    done
4155    cd ..
4156  else
4157    as_fn_error $? "could not create subdirectory" "$LINENO" 5
4158  fi
4159fi
4160rm -rf conftestmake
4161case $MAKE_PROG in
4162    x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
4164       as_fn_error $? "GNU make is required!" "$LINENO" 5
4165       ;;
4166    *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($MAKE_PROG)" >&5
4167$as_echo "yes ($MAKE_PROG)" >&6; }
4168
4169       ;;
4170esac
4171
4172# Find a good install program.  We prefer a C program (faster),
4173# so one script is as good as another.  But avoid the broken or
4174# incompatible versions:
4175# SysV /etc/install, /usr/sbin/install
4176# SunOS /usr/etc/install
4177# IRIX /sbin/install
4178# AIX /bin/install
4179# AmigaOS /C/install, which installs bootblocks on floppy discs
4180# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4181# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4182# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4183# OS/2's system install, which has a completely different semantic
4184# ./install, which can be erroneously created by make from ./install.sh.
4185# Reject install programs that cannot install multiple files.
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4187$as_echo_n "checking for a BSD-compatible install... " >&6; }
4188if test -z "$INSTALL"; then
4189if ${ac_cv_path_install+:} false; then :
4190  $as_echo_n "(cached) " >&6
4191else
4192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195  IFS=$as_save_IFS
4196  test -z "$as_dir" && as_dir=.
4197    # Account for people who put trailing slashes in PATH elements.
4198case $as_dir/ in #((
4199  ./ | .// | /[cC]/* | \
4200  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4201  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4202  /usr/ucb/* ) ;;
4203  *)
4204    # OSF1 and SCO ODT 3.0 have their own names for install.
4205    # Don't use installbsd from OSF since it installs stuff as root
4206    # by default.
4207    for ac_prog in ginstall scoinst install; do
4208      for ac_exec_ext in '' $ac_executable_extensions; do
4209	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4210	  if test $ac_prog = install &&
4211	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4212	    # AIX install.  It has an incompatible calling convention.
4213	    :
4214	  elif test $ac_prog = install &&
4215	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4216	    # program-specific install script used by HP pwplus--don't use.
4217	    :
4218	  else
4219	    rm -rf conftest.one conftest.two conftest.dir
4220	    echo one > conftest.one
4221	    echo two > conftest.two
4222	    mkdir conftest.dir
4223	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4224	      test -s conftest.one && test -s conftest.two &&
4225	      test -s conftest.dir/conftest.one &&
4226	      test -s conftest.dir/conftest.two
4227	    then
4228	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4229	      break 3
4230	    fi
4231	  fi
4232	fi
4233      done
4234    done
4235    ;;
4236esac
4237
4238  done
4239IFS=$as_save_IFS
4240
4241rm -rf conftest.one conftest.two conftest.dir
4242
4243fi
4244  if test "${ac_cv_path_install+set}" = set; then
4245    INSTALL=$ac_cv_path_install
4246  else
4247    # As a last resort, use the slow shell script.  Don't cache a
4248    # value for INSTALL within a source directory, because that will
4249    # break other packages using the cache if that directory is
4250    # removed, or if the value is a relative name.
4251    INSTALL=$ac_install_sh
4252  fi
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4255$as_echo "$INSTALL" >&6; }
4256
4257# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4258# It thinks the first close brace ends the variable substitution.
4259test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4260
4261test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4262
4263test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4264
4265if test X"${INSTALL}" = "X${ac_aux_dir}/install-sh -c" && test -f /usr/ucb/install ; then
4266   case $host_os in
4267      osf*) ;;
4268      *) INSTALL="/usr/ucb/install -c" ;;
4269   esac
4270fi
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4273$as_echo_n "checking whether ln -s works... " >&6; }
4274LN_S=$as_ln_s
4275if test "$LN_S" = "ln -s"; then
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4277$as_echo "yes" >&6; }
4278else
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4280$as_echo "no, using $LN_S" >&6; }
4281fi
4282
4283if test -n "$ac_tool_prefix"; then
4284  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4285set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287$as_echo_n "checking for $ac_word... " >&6; }
4288if ${ac_cv_prog_RANLIB+:} false; then :
4289  $as_echo_n "(cached) " >&6
4290else
4291  if test -n "$RANLIB"; then
4292  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4293else
4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297  IFS=$as_save_IFS
4298  test -z "$as_dir" && as_dir=.
4299    for ac_exec_ext in '' $ac_executable_extensions; do
4300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303    break 2
4304  fi
4305done
4306  done
4307IFS=$as_save_IFS
4308
4309fi
4310fi
4311RANLIB=$ac_cv_prog_RANLIB
4312if test -n "$RANLIB"; then
4313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4314$as_echo "$RANLIB" >&6; }
4315else
4316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317$as_echo "no" >&6; }
4318fi
4319
4320
4321fi
4322if test -z "$ac_cv_prog_RANLIB"; then
4323  ac_ct_RANLIB=$RANLIB
4324  # Extract the first word of "ranlib", so it can be a program name with args.
4325set dummy ranlib; ac_word=$2
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327$as_echo_n "checking for $ac_word... " >&6; }
4328if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test -n "$ac_ct_RANLIB"; then
4332  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4333else
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_exec_ext in '' $ac_executable_extensions; do
4340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341    ac_cv_prog_ac_ct_RANLIB="ranlib"
4342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343    break 2
4344  fi
4345done
4346  done
4347IFS=$as_save_IFS
4348
4349fi
4350fi
4351ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4352if test -n "$ac_ct_RANLIB"; then
4353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4354$as_echo "$ac_ct_RANLIB" >&6; }
4355else
4356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357$as_echo "no" >&6; }
4358fi
4359
4360  if test "x$ac_ct_RANLIB" = x; then
4361    RANLIB=":"
4362  else
4363    case $cross_compiling:$ac_tool_warned in
4364yes:)
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367ac_tool_warned=yes ;;
4368esac
4369    RANLIB=$ac_ct_RANLIB
4370  fi
4371else
4372  RANLIB="$ac_cv_prog_RANLIB"
4373fi
4374
4375for ac_prog in perl5 perl
4376do
4377  # Extract the first word of "$ac_prog", so it can be a program name with args.
4378set dummy $ac_prog; ac_word=$2
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380$as_echo_n "checking for $ac_word... " >&6; }
4381if ${ac_cv_path_PERL+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  case $PERL in
4385  [\\/]* | ?:[\\/]*)
4386  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4387  ;;
4388  *)
4389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390as_dummy="/usr/local/bin:/opt/local/bin:/usr/local/gnu/bin:${PATH}"
4391for as_dir in $as_dummy
4392do
4393  IFS=$as_save_IFS
4394  test -z "$as_dir" && as_dir=.
4395    for ac_exec_ext in '' $ac_executable_extensions; do
4396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399    break 2
4400  fi
4401done
4402  done
4403IFS=$as_save_IFS
4404
4405  ;;
4406esac
4407fi
4408PERL=$ac_cv_path_PERL
4409if test -n "$PERL"; then
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4411$as_echo "$PERL" >&6; }
4412else
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414$as_echo "no" >&6; }
4415fi
4416
4417
4418  test -n "$PERL" && break
4419done
4420test -n "$PERL" || PERL="false"
4421
4422if test "$PERL" = "false" || $PERL -e 'exit ($] >= 5)'; then
4423  ac_cv_path_PERL=false
4424  PERL=false
4425fi
4426
4427if test "$ac_cv_path_PERL" = false; then
4428  as_fn_error $? "Perl version 5 is required!" "$LINENO" 5
4429fi
4430
4431#
4432# Get erts version from erts/vsn.mk
4433#
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ERTS version" >&5
4435$as_echo_n "checking ERTS version... " >&6; }
4436ERTS_VSN=`sed -n "s/^VSN[	 ]*=[	 ]*\(.*\)/\1/p" < $ERL_TOP/erts/vsn.mk`
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERTS_VSN" >&5
4438$as_echo "$ERTS_VSN" >&6; }
4439
4440
4441#
4442# Get OTP release and OTP version from $ERL_TOP/OTP_VERSION
4443#
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP release" >&5
4445$as_echo_n "checking OTP release... " >&6; }
4446OTP_REL=`cat $ERL_TOP/OTP_VERSION | sed "s|\([0-9]*\).*|\1|"`
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTP_REL" >&5
4448$as_echo "$OTP_REL" >&6; }
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP version" >&5
4452$as_echo_n "checking OTP version... " >&6; }
4453OTP_VSN=`cat $ERL_TOP/OTP_VERSION`
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTP_VSN" >&5
4455$as_echo "$OTP_VSN" >&6; }
4456
4457
4458# Check whether --enable-parallel-configure was given.
4459if test "${enable_parallel_configure+set}" = set; then :
4460  enableval=$enable_parallel_configure;
4461fi
4462
4463
4464# Check whether --enable-dirty-schedulers was given.
4465if test "${enable_dirty_schedulers+set}" = set; then :
4466  enableval=$enable_dirty_schedulers;
4467fi
4468
4469
4470# Check whether --enable-plain-emulator was given.
4471if test "${enable_plain_emulator+set}" = set; then :
4472  enableval=$enable_plain_emulator;
4473fi
4474
4475
4476
4477# Check whether --with-termcap was given.
4478if test "${with_termcap+set}" = set; then :
4479  withval=$with_termcap;
4480fi
4481
4482
4483# Check whether --enable-kernel-poll was given.
4484if test "${enable_kernel_poll+set}" = set; then :
4485  enableval=$enable_kernel_poll;
4486fi
4487
4488
4489# Check whether --enable-sctp was given.
4490if test "${enable_sctp+set}" = set; then :
4491  enableval=$enable_sctp;
4492fi
4493
4494
4495# Check whether --enable-hipe was given.
4496if test "${enable_hipe+set}" = set; then :
4497  enableval=$enable_hipe;
4498fi
4499
4500
4501# Check whether --enable-native-libs was given.
4502if test "${enable_native_libs+set}" = set; then :
4503  enableval=$enable_native_libs;
4504fi
4505
4506
4507
4508# Check whether --with-dynamic-trace was given.
4509if test "${with_dynamic_trace+set}" = set; then :
4510  withval=$with_dynamic_trace;
4511fi
4512
4513# Check whether --enable-vm-probes was given.
4514if test "${enable_vm_probes+set}" = set; then :
4515  enableval=$enable_vm_probes;
4516fi
4517
4518
4519# Check whether --with-javac was given.
4520if test "${with_javac+set}" = set; then :
4521  withval=$with_javac;
4522fi
4523
4524
4525# Check whether --enable-megaco_flex_scanner_lineno was given.
4526if test "${enable_megaco_flex_scanner_lineno+set}" = set; then :
4527  enableval=$enable_megaco_flex_scanner_lineno;
4528fi
4529
4530
4531# Check whether --enable-megaco_reentrant_flex_scanner was given.
4532if test "${enable_megaco_reentrant_flex_scanner+set}" = set; then :
4533  enableval=$enable_megaco_reentrant_flex_scanner;
4534fi
4535
4536
4537
4538# Check whether --with-ssl was given.
4539if test "${with_ssl+set}" = set; then :
4540  withval=$with_ssl;
4541fi
4542
4543
4544
4545# Check whether --with-ssl-incl was given.
4546if test "${with_ssl_incl+set}" = set; then :
4547  withval=$with_ssl_incl;
4548fi
4549
4550
4551
4552# Check whether --with-ssl-rpath was given.
4553if test "${with_ssl_rpath+set}" = set; then :
4554  withval=$with_ssl_rpath;
4555fi
4556
4557
4558# Check whether --enable-dynamic-ssl-lib was given.
4559if test "${enable_dynamic_ssl_lib+set}" = set; then :
4560  enableval=$enable_dynamic_ssl_lib;
4561fi
4562
4563
4564# Check whether --enable-fips was given.
4565if test "${enable_fips+set}" = set; then :
4566  enableval=$enable_fips;
4567fi
4568
4569
4570# Check whether --enable-builtin-zlib was given.
4571if test "${enable_builtin_zlib+set}" = set; then :
4572  enableval=$enable_builtin_zlib;
4573fi
4574
4575
4576# Check whether --enable-esock was given.
4577if test "${enable_esock+set}" = set; then :
4578  enableval=$enable_esock;
4579fi
4580
4581
4582# Check whether --enable-sharing-preserving was given.
4583if test "${enable_sharing_preserving+set}" = set; then :
4584  enableval=$enable_sharing_preserving;
4585fi
4586
4587
4588
4589# Check whether --enable-m64-build was given.
4590if test "${enable_m64_build+set}" = set; then :
4591  enableval=$enable_m64_build;  case "$enableval" in
4592    no) enable_m64_build=no ;;
4593    *)  enable_m64_build=yes ;;
4594  esac
4595
4596else
4597  enable_m64_build=no
4598fi
4599
4600
4601# Check whether --enable-m32-build was given.
4602if test "${enable_m32_build+set}" = set; then :
4603  enableval=$enable_m32_build;  case "$enableval" in
4604    no) enable_m32_build=no ;;
4605    *)	enable_m32_build=yes ;;
4606  esac
4607
4608else
4609  enable_m32_build=no
4610fi
4611
4612
4613# Check whether --enable-pie was given.
4614if test "${enable_pie+set}" = set; then :
4615  enableval=$enable_pie;
4616fi
4617
4618
4619
4620# Check whether --with-libatomic_ops was given.
4621if test "${with_libatomic_ops+set}" = set; then :
4622  withval=$with_libatomic_ops;
4623fi
4624
4625
4626
4627# Check whether --enable-sanitizers was given.
4628if test "${enable_sanitizers+set}" = set; then :
4629  enableval=$enable_sanitizers;
4630fi
4631
4632
4633# Check whether --enable-silent-rules was given.
4634if test "${enable_silent_rules+set}" = set; then :
4635  enableval=$enable_silent_rules;
4636fi
4637
4638
4639DEFAULT_VERBOSITY=0
4640if test X${enable_silent_rules} = Xno; then
4641  DEFAULT_VERBOSITY=1
4642fi
4643
4644
4645if test X${enable_m64_build} = Xyes; then
4646	CFLAGS="-m64 $CFLAGS"
4647	export CFLAGS
4648	LDFLAGS="-m64 $LDFLAGS"
4649	export LDFLAGS
4650fi
4651if test X${enable_m32_build} = Xyes; then
4652	CFLAGS="-m32 $CFLAGS"
4653	export CFLAGS
4654	LDFLAGS="-m32 $LDFLAGS"
4655	export LDFLAGS
4656fi
4657
4658NATIVE_LIBS_ENABLED=
4659if test X${enable_native_libs} = Xyes -a X${enable_hipe} != Xno; then
4660  NATIVE_LIBS_ENABLED=yes
4661fi
4662
4663
4664
4665ac_ext=c
4666ac_cpp='$CPP $CPPFLAGS'
4667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4671$as_echo_n "checking how to run the C preprocessor... " >&6; }
4672# On Suns, sometimes $CPP names a directory.
4673if test -n "$CPP" && test -d "$CPP"; then
4674  CPP=
4675fi
4676if test -z "$CPP"; then
4677  if ${ac_cv_prog_CPP+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680      # Double quotes because CPP needs to be expanded
4681    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4682    do
4683      ac_preproc_ok=false
4684for ac_c_preproc_warn_flag in '' yes
4685do
4686  # Use a header file that comes with gcc, so configuring glibc
4687  # with a fresh cross-compiler works.
4688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689  # <limits.h> exists even on freestanding compilers.
4690  # On the NeXT, cc -E runs the code through the compiler's parser,
4691  # not just through cpp. "Syntax error" is here to catch this case.
4692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694#ifdef __STDC__
4695# include <limits.h>
4696#else
4697# include <assert.h>
4698#endif
4699		     Syntax error
4700_ACEOF
4701if ac_fn_c_try_cpp "$LINENO"; then :
4702
4703else
4704  # Broken: fails on valid input.
4705continue
4706fi
4707rm -f conftest.err conftest.i conftest.$ac_ext
4708
4709  # OK, works on sane cases.  Now check whether nonexistent headers
4710  # can be detected and how.
4711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713#include <ac_nonexistent.h>
4714_ACEOF
4715if ac_fn_c_try_cpp "$LINENO"; then :
4716  # Broken: success on invalid input.
4717continue
4718else
4719  # Passes both tests.
4720ac_preproc_ok=:
4721break
4722fi
4723rm -f conftest.err conftest.i conftest.$ac_ext
4724
4725done
4726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4727rm -f conftest.i conftest.err conftest.$ac_ext
4728if $ac_preproc_ok; then :
4729  break
4730fi
4731
4732    done
4733    ac_cv_prog_CPP=$CPP
4734
4735fi
4736  CPP=$ac_cv_prog_CPP
4737else
4738  ac_cv_prog_CPP=$CPP
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4741$as_echo "$CPP" >&6; }
4742ac_preproc_ok=false
4743for ac_c_preproc_warn_flag in '' yes
4744do
4745  # Use a header file that comes with gcc, so configuring glibc
4746  # with a fresh cross-compiler works.
4747  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748  # <limits.h> exists even on freestanding compilers.
4749  # On the NeXT, cc -E runs the code through the compiler's parser,
4750  # not just through cpp. "Syntax error" is here to catch this case.
4751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h.  */
4753#ifdef __STDC__
4754# include <limits.h>
4755#else
4756# include <assert.h>
4757#endif
4758		     Syntax error
4759_ACEOF
4760if ac_fn_c_try_cpp "$LINENO"; then :
4761
4762else
4763  # Broken: fails on valid input.
4764continue
4765fi
4766rm -f conftest.err conftest.i conftest.$ac_ext
4767
4768  # OK, works on sane cases.  Now check whether nonexistent headers
4769  # can be detected and how.
4770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h.  */
4772#include <ac_nonexistent.h>
4773_ACEOF
4774if ac_fn_c_try_cpp "$LINENO"; then :
4775  # Broken: success on invalid input.
4776continue
4777else
4778  # Passes both tests.
4779ac_preproc_ok=:
4780break
4781fi
4782rm -f conftest.err conftest.i conftest.$ac_ext
4783
4784done
4785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786rm -f conftest.i conftest.err conftest.$ac_ext
4787if $ac_preproc_ok; then :
4788
4789else
4790  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4792as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4793See \`config.log' for more details" "$LINENO" 5; }
4794fi
4795
4796ac_ext=c
4797ac_cpp='$CPP $CPPFLAGS'
4798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801
4802
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4804$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4805if ${ac_cv_path_GREP+:} false; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808  if test -z "$GREP"; then
4809  ac_path_GREP_found=false
4810  # Loop through the user's path and test for each of PROGNAME-LIST
4811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813do
4814  IFS=$as_save_IFS
4815  test -z "$as_dir" && as_dir=.
4816    for ac_prog in grep ggrep; do
4817    for ac_exec_ext in '' $ac_executable_extensions; do
4818      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4819      as_fn_executable_p "$ac_path_GREP" || continue
4820# Check for GNU ac_path_GREP and select it if it is found.
4821  # Check for GNU $ac_path_GREP
4822case `"$ac_path_GREP" --version 2>&1` in
4823*GNU*)
4824  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4825*)
4826  ac_count=0
4827  $as_echo_n 0123456789 >"conftest.in"
4828  while :
4829  do
4830    cat "conftest.in" "conftest.in" >"conftest.tmp"
4831    mv "conftest.tmp" "conftest.in"
4832    cp "conftest.in" "conftest.nl"
4833    $as_echo 'GREP' >> "conftest.nl"
4834    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836    as_fn_arith $ac_count + 1 && ac_count=$as_val
4837    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4838      # Best one so far, save it but keep looking for a better one
4839      ac_cv_path_GREP="$ac_path_GREP"
4840      ac_path_GREP_max=$ac_count
4841    fi
4842    # 10*(2^10) chars as input seems more than enough
4843    test $ac_count -gt 10 && break
4844  done
4845  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846esac
4847
4848      $ac_path_GREP_found && break 3
4849    done
4850  done
4851  done
4852IFS=$as_save_IFS
4853  if test -z "$ac_cv_path_GREP"; then
4854    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855  fi
4856else
4857  ac_cv_path_GREP=$GREP
4858fi
4859
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4862$as_echo "$ac_cv_path_GREP" >&6; }
4863 GREP="$ac_cv_path_GREP"
4864
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4867$as_echo_n "checking for egrep... " >&6; }
4868if ${ac_cv_path_EGREP+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4872   then ac_cv_path_EGREP="$GREP -E"
4873   else
4874     if test -z "$EGREP"; then
4875  ac_path_EGREP_found=false
4876  # Loop through the user's path and test for each of PROGNAME-LIST
4877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4879do
4880  IFS=$as_save_IFS
4881  test -z "$as_dir" && as_dir=.
4882    for ac_prog in egrep; do
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4885      as_fn_executable_p "$ac_path_EGREP" || continue
4886# Check for GNU ac_path_EGREP and select it if it is found.
4887  # Check for GNU $ac_path_EGREP
4888case `"$ac_path_EGREP" --version 2>&1` in
4889*GNU*)
4890  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4891*)
4892  ac_count=0
4893  $as_echo_n 0123456789 >"conftest.in"
4894  while :
4895  do
4896    cat "conftest.in" "conftest.in" >"conftest.tmp"
4897    mv "conftest.tmp" "conftest.in"
4898    cp "conftest.in" "conftest.nl"
4899    $as_echo 'EGREP' >> "conftest.nl"
4900    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902    as_fn_arith $ac_count + 1 && ac_count=$as_val
4903    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4904      # Best one so far, save it but keep looking for a better one
4905      ac_cv_path_EGREP="$ac_path_EGREP"
4906      ac_path_EGREP_max=$ac_count
4907    fi
4908    # 10*(2^10) chars as input seems more than enough
4909    test $ac_count -gt 10 && break
4910  done
4911  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912esac
4913
4914      $ac_path_EGREP_found && break 3
4915    done
4916  done
4917  done
4918IFS=$as_save_IFS
4919  if test -z "$ac_cv_path_EGREP"; then
4920    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921  fi
4922else
4923  ac_cv_path_EGREP=$EGREP
4924fi
4925
4926   fi
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4929$as_echo "$ac_cv_path_EGREP" >&6; }
4930 EGREP="$ac_cv_path_EGREP"
4931
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4934$as_echo_n "checking for ANSI C header files... " >&6; }
4935if ${ac_cv_header_stdc+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940#include <stdlib.h>
4941#include <stdarg.h>
4942#include <string.h>
4943#include <float.h>
4944
4945int
4946main ()
4947{
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953if ac_fn_c_try_compile "$LINENO"; then :
4954  ac_cv_header_stdc=yes
4955else
4956  ac_cv_header_stdc=no
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959
4960if test $ac_cv_header_stdc = yes; then
4961  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964#include <string.h>
4965
4966_ACEOF
4967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968  $EGREP "memchr" >/dev/null 2>&1; then :
4969
4970else
4971  ac_cv_header_stdc=no
4972fi
4973rm -f conftest*
4974
4975fi
4976
4977if test $ac_cv_header_stdc = yes; then
4978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981#include <stdlib.h>
4982
4983_ACEOF
4984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985  $EGREP "free" >/dev/null 2>&1; then :
4986
4987else
4988  ac_cv_header_stdc=no
4989fi
4990rm -f conftest*
4991
4992fi
4993
4994if test $ac_cv_header_stdc = yes; then
4995  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4996  if test "$cross_compiling" = yes; then :
4997  :
4998else
4999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001#include <ctype.h>
5002#include <stdlib.h>
5003#if ((' ' & 0x0FF) == 0x020)
5004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5006#else
5007# define ISLOWER(c) \
5008		   (('a' <= (c) && (c) <= 'i') \
5009		     || ('j' <= (c) && (c) <= 'r') \
5010		     || ('s' <= (c) && (c) <= 'z'))
5011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5012#endif
5013
5014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5015int
5016main ()
5017{
5018  int i;
5019  for (i = 0; i < 256; i++)
5020    if (XOR (islower (i), ISLOWER (i))
5021	|| toupper (i) != TOUPPER (i))
5022      return 2;
5023  return 0;
5024}
5025_ACEOF
5026if ac_fn_c_try_run "$LINENO"; then :
5027
5028else
5029  ac_cv_header_stdc=no
5030fi
5031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5032  conftest.$ac_objext conftest.beam conftest.$ac_ext
5033fi
5034
5035fi
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5038$as_echo "$ac_cv_header_stdc" >&6; }
5039if test $ac_cv_header_stdc = yes; then
5040
5041$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5042
5043fi
5044
5045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5047		  inttypes.h stdint.h unistd.h
5048do :
5049  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5051"
5052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5053  cat >>confdefs.h <<_ACEOF
5054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5055_ACEOF
5056
5057fi
5058
5059done
5060
5061
5062
5063
5064USER_LD=$LD
5065USER_LDFLAGS="$LDFLAGS"
5066
5067
5068
5069NEED_NPTL_PTHREAD_H=no
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native win32 threads" >&5
5072$as_echo_n "checking for native win32 threads... " >&6; }
5073if test "X$host_os" = "Xwin32"; then
5074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075$as_echo "yes" >&6; }
5076    THR_DEFS="-DWIN32_THREADS"
5077    THR_LIBS=
5078    THR_LIB_NAME=win32_threads
5079    THR_LIB_TYPE=win32_threads
5080else
5081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082$as_echo "no" >&6; }
5083    THR_DEFS=
5084    THR_LIBS=
5085    THR_LIB_NAME=
5086    THR_LIB_TYPE=posix_unknown
5087
5088
5089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5090$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5091if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  ac_check_lib_save_LIBS=$LIBS
5095LIBS="-lpthread  $LIBS"
5096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098
5099/* Override any GCC internal prototype to avoid an error.
5100   Use char because int might match the return type of a GCC
5101   builtin and then its argument prototype would still apply.  */
5102#ifdef __cplusplus
5103extern "C"
5104#endif
5105char pthread_create ();
5106int
5107main ()
5108{
5109return pthread_create ();
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114if ac_fn_c_try_link "$LINENO"; then :
5115  ac_cv_lib_pthread_pthread_create=yes
5116else
5117  ac_cv_lib_pthread_pthread_create=no
5118fi
5119rm -f core conftest.err conftest.$ac_objext \
5120    conftest$ac_exeext conftest.$ac_ext
5121LIBS=$ac_check_lib_save_LIBS
5122fi
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5124$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5125if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5126  THR_LIBS="-lpthread"
5127fi
5128
5129
5130    if test "x$THR_LIBS" = "x"; then
5131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5132$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5133if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  ac_check_lib_save_LIBS=$LIBS
5137LIBS="-lc_r  $LIBS"
5138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140
5141/* Override any GCC internal prototype to avoid an error.
5142   Use char because int might match the return type of a GCC
5143   builtin and then its argument prototype would still apply.  */
5144#ifdef __cplusplus
5145extern "C"
5146#endif
5147char pthread_create ();
5148int
5149main ()
5150{
5151return pthread_create ();
5152  ;
5153  return 0;
5154}
5155_ACEOF
5156if ac_fn_c_try_link "$LINENO"; then :
5157  ac_cv_lib_c_r_pthread_create=yes
5158else
5159  ac_cv_lib_c_r_pthread_create=no
5160fi
5161rm -f core conftest.err conftest.$ac_objext \
5162    conftest$ac_exeext conftest.$ac_ext
5163LIBS=$ac_check_lib_save_LIBS
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5166$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5167if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5168  THR_LIBS="-lc_r"
5169fi
5170
5171    fi
5172
5173    if test "x$THR_LIBS" = "x"; then
5174	ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
5175if test "x$ac_cv_func_pthread_create" = xyes; then :
5176  THR_LIBS="none_needed"
5177fi
5178
5179    fi
5180
5181    if test "x$THR_LIBS" = "x"; then
5182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the '-pthread' switch can be used" >&5
5183$as_echo_n "checking if the '-pthread' switch can be used... " >&6; }
5184	saved_cflags=$CFLAGS
5185	CFLAGS="$CFLAGS -pthread"
5186	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188#include <pthread.h>
5189int
5190main ()
5191{
5192pthread_create((void*)0,(void*)0,(void*)0,(void*)0);
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197if ac_fn_c_try_link "$LINENO"; then :
5198  THR_DEFS="-pthread"
5199		     THR_LIBS="-pthread"
5200fi
5201rm -f core conftest.err conftest.$ac_objext \
5202    conftest$ac_exeext conftest.$ac_ext
5203	CFLAGS=$saved_cflags
5204	if test "x$THR_LIBS" != "x"; then
5205	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5206$as_echo "yes" >&6; }
5207	else
5208	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210	fi
5211    fi
5212
5213    if test "x$THR_LIBS" != "x"; then
5214	THR_DEFS="$THR_DEFS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS"
5215	THR_LIB_NAME=pthread
5216	if test "x$THR_LIBS" = "xnone_needed"; then
5217	    THR_LIBS=
5218	fi
5219	case $host_os in
5220	    solaris*)
5221		THR_DEFS="$THR_DEFS -D_POSIX_PTHREAD_SEMANTICS" ;;
5222	    linux*)
5223		THR_DEFS="$THR_DEFS -D_POSIX_THREAD_SAFE_FUNCTIONS"
5224
5225
5226if test "$cross_compiling" != "yes"; then
5227    # Extract the first word of "getconf", so it can be a program name with args.
5228set dummy getconf; ac_word=$2
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if ${ac_cv_prog_GETCONF+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  if test -n "$GETCONF"; then
5235  ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242    for ac_exec_ext in '' $ac_executable_extensions; do
5243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244    ac_cv_prog_GETCONF="getconf"
5245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249  done
5250IFS=$as_save_IFS
5251
5252  test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="false"
5253fi
5254fi
5255GETCONF=$ac_cv_prog_GETCONF
5256if test -n "$GETCONF"; then
5257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5258$as_echo "$GETCONF" >&6; }
5259else
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261$as_echo "no" >&6; }
5262fi
5263
5264
5265else
5266        host_getconf="$host_alias-getconf"
5267    # Extract the first word of "$host_getconf", so it can be a program name with args.
5268set dummy $host_getconf; ac_word=$2
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if ${ac_cv_prog_GETCONF+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$GETCONF"; then
5275  ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284    ac_cv_prog_GETCONF="$host_getconf"
5285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289  done
5290IFS=$as_save_IFS
5291
5292  test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="false"
5293fi
5294fi
5295GETCONF=$ac_cv_prog_GETCONF
5296if test -n "$GETCONF"; then
5297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5298$as_echo "$GETCONF" >&6; }
5299else
5300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }
5302fi
5303
5304
5305    if test "$GETCONF" = "false" && test "$erl_xcomp_sysroot" != ""; then
5306			    				GETCONF=
5307	prfx="$erl_xcomp_sysroot"
5308        if test -n "$ac_tool_prefix"; then
5309  # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
5310set dummy ${ac_tool_prefix}getconf; ac_word=$2
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312$as_echo_n "checking for $ac_word... " >&6; }
5313if ${ac_cv_path_GETCONF+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  case $GETCONF in
5317  [\\/]* | ?:[\\/]*)
5318  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
5319  ;;
5320  *)
5321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322as_dummy=""$prfx/usr/bin:$prfx/bin:$prfx/usr/local/bin""
5323for as_dir in $as_dummy
5324do
5325  IFS=$as_save_IFS
5326  test -z "$as_dir" && as_dir=.
5327    for ac_exec_ext in '' $ac_executable_extensions; do
5328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329    ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
5330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331    break 2
5332  fi
5333done
5334  done
5335IFS=$as_save_IFS
5336
5337  ;;
5338esac
5339fi
5340GETCONF=$ac_cv_path_GETCONF
5341if test -n "$GETCONF"; then
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
5343$as_echo "$GETCONF" >&6; }
5344else
5345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347fi
5348
5349
5350fi
5351if test -z "$ac_cv_path_GETCONF"; then
5352  ac_pt_GETCONF=$GETCONF
5353  # Extract the first word of "getconf", so it can be a program name with args.
5354set dummy getconf; ac_word=$2
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356$as_echo_n "checking for $ac_word... " >&6; }
5357if ${ac_cv_path_ac_pt_GETCONF+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  case $ac_pt_GETCONF in
5361  [\\/]* | ?:[\\/]*)
5362  ac_cv_path_ac_pt_GETCONF="$ac_pt_GETCONF" # Let the user override the test with a path.
5363  ;;
5364  *)
5365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366as_dummy=""$prfx/usr/bin:$prfx/bin:$prfx/usr/local/bin""
5367for as_dir in $as_dummy
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371    for ac_exec_ext in '' $ac_executable_extensions; do
5372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373    ac_cv_path_ac_pt_GETCONF="$as_dir/$ac_word$ac_exec_ext"
5374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378  done
5379IFS=$as_save_IFS
5380
5381  ;;
5382esac
5383fi
5384ac_pt_GETCONF=$ac_cv_path_ac_pt_GETCONF
5385if test -n "$ac_pt_GETCONF"; then
5386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GETCONF" >&5
5387$as_echo "$ac_pt_GETCONF" >&6; }
5388else
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390$as_echo "no" >&6; }
5391fi
5392
5393  if test "x$ac_pt_GETCONF" = x; then
5394    GETCONF="false"
5395  else
5396    case $cross_compiling:$ac_tool_warned in
5397yes:)
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400ac_tool_warned=yes ;;
5401esac
5402    GETCONF=$ac_pt_GETCONF
5403  fi
5404else
5405  GETCONF="$ac_cv_path_GETCONF"
5406fi
5407
5408    fi
5409fi
5410
5411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Native POSIX Thread Library" >&5
5412$as_echo_n "checking for Native POSIX Thread Library... " >&6; }
5413		libpthr_vsn=`$GETCONF GNU_LIBPTHREAD_VERSION 2>/dev/null`
5414		if test $? -eq 0; then
5415		    case "$libpthr_vsn" in
5416			*nptl*|*NPTL*) nptl=yes;;
5417			*) nptl=no;;
5418		    esac
5419		elif test "$cross_compiling" = "yes"; then
5420		    case "$erl_xcomp_linux_nptl" in
5421			"") nptl=cross;;
5422			yes|no) nptl=$erl_xcomp_linux_nptl;;
5423			*) as_fn_error $? "Bad erl_xcomp_linux_nptl value: $erl_xcomp_linux_nptl" "$LINENO" 5;;
5424		    esac
5425		else
5426		    nptl=no
5427		fi
5428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nptl" >&5
5429$as_echo "$nptl" >&6; }
5430		if test $nptl = cross; then
5431		    nptl=yes
5432		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result yes guessed because of cross compilation" >&5
5433$as_echo "$as_me: WARNING: result yes guessed because of cross compilation" >&2;}
5434		fi
5435		if test $nptl = yes; then
5436		    THR_LIB_TYPE=posix_nptl
5437		    need_nptl_incldir=no
5438		    ac_fn_c_check_header_mongrel "$LINENO" "nptl/pthread.h" "ac_cv_header_nptl_pthread_h" "$ac_includes_default"
5439if test "x$ac_cv_header_nptl_pthread_h" = xyes; then :
5440  need_nptl_incldir=yes
5441				     NEED_NPTL_PTHREAD_H=yes
5442fi
5443
5444
5445		    if test $need_nptl_incldir = yes; then
5446			# Ahh...
5447			nptl_path="$C_INCLUDE_PATH:$CPATH"
5448			if test X$cross_compiling != Xyes; then
5449			    nptl_path="$nptl_path:/usr/local/include:/usr/include"
5450			else
5451			    IROOT="$erl_xcomp_isysroot"
5452			    test "$IROOT" != "" || IROOT="$erl_xcomp_sysroot"
5453			    test "$IROOT" != "" || as_fn_error $? "Don't know where to search for includes! Please set erl_xcomp_isysroot" "$LINENO" 5
5454			    nptl_path="$nptl_path:$IROOT/usr/local/include:$IROOT/usr/include"
5455			fi
5456			nptl_ws_path=
5457			save_ifs="$IFS"; IFS=":"
5458			for dir in $nptl_path; do
5459			    if test "x$dir" != "x"; then
5460				nptl_ws_path="$nptl_ws_path $dir"
5461			    fi
5462			done
5463			IFS=$save_ifs
5464			nptl_incldir=
5465			for dir in $nptl_ws_path; do
5466		            as_ac_Header=`$as_echo "ac_cv_header_$dir/nptl/pthread.h" | $as_tr_sh`
5467ac_fn_c_check_header_mongrel "$LINENO" "$dir/nptl/pthread.h" "$as_ac_Header" "$ac_includes_default"
5468if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5469  nptl_incldir=$dir/nptl
5470fi
5471
5472
5473			    if test "x$nptl_incldir" != "x"; then
5474				THR_DEFS="$THR_DEFS -isystem $nptl_incldir"
5475				break
5476			    fi
5477			done
5478			if test "x$nptl_incldir" = "x"; then
5479			    as_fn_error $? "Failed to locate nptl system include directory" "$LINENO" 5
5480			fi
5481		    fi
5482		fi
5483		;;
5484	    *) ;;
5485	esac
5486
5487			saved_cppflags=$CPPFLAGS
5488	CPPFLAGS="$CPPFLAGS $THR_DEFS"
5489
5490
5491	ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5492if test "x$ac_cv_header_pthread_h" = xyes; then :
5493
5494$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
5495
5496fi
5497
5498
5499
5500		ac_fn_c_check_header_mongrel "$LINENO" "pthread/mit/pthread.h" "ac_cv_header_pthread_mit_pthread_h" "$ac_includes_default"
5501if test "x$ac_cv_header_pthread_mit_pthread_h" = xyes; then :
5502  \
5503
5504$as_echo "#define HAVE_MIT_PTHREAD_H 1" >>confdefs.h
5505
5506fi
5507
5508
5509
5510		CPPFLAGS=$saved_cppflags
5511
5512    fi
5513fi
5514
5515
5516
5517DED_CC=$CC
5518DED_GCC=$GCC
5519
5520DED_CFLAGS=
5521DED_OSTYPE=unix
5522case $host_os in
5523     linux*)
5524	DED_CFLAGS="-D_GNU_SOURCE" ;;
5525     win32)
5526	DED_CFLAGS="-D_WIN32_WINNT=0x0600 -DWINVER=0x0600"
5527        DED_OSTYPE=win32 ;;
5528     *)
5529        ;;
5530esac
5531
5532
5533DED_WARN_FLAGS="-Wall -Wstrict-prototypes"
5534case "$host_cpu" in
5535  tile*)
5536    # tile-gcc is a bit stricter with -Wmissing-prototypes than other gccs,
5537    # and too strict for our taste.
5538    ;;
5539  *)
5540    DED_WARN_FLAGS="$DED_WARN_FLAGS -Wmissing-prototypes";;
5541esac
5542
5543
5544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Wdeclaration-after-statement to DED_WARN_FLAGS (via CFLAGS)" >&5
5545$as_echo_n "checking if we can add -Wdeclaration-after-statement to DED_WARN_FLAGS (via CFLAGS)... " >&6; }
5546    saved_CFLAGS=$CFLAGS;
5547    CFLAGS="-Wdeclaration-after-statement $DED_WARN_FLAGS";
5548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550
5551int
5552main ()
5553{
5554return 0;
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559if ac_fn_c_try_compile "$LINENO"; then :
5560  can_enable_flag=true
5561else
5562  can_enable_flag=false
5563fi
5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565    CFLAGS=$saved_CFLAGS;
5566    if test "X$can_enable_flag" = "Xtrue"; then
5567        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5568$as_echo "yes" >&6; }
5569        DED_WARN_FLAGS="-Wdeclaration-after-statement $DED_WARN_FLAGS"
5570    else
5571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573    fi
5574
5575
5576
5577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=return-type to DED_WERRORFLAGS (via CFLAGS)" >&5
5578$as_echo_n "checking if we can add -Werror=return-type to DED_WERRORFLAGS (via CFLAGS)... " >&6; }
5579    saved_CFLAGS=$CFLAGS;
5580    CFLAGS="-Werror=return-type $DED_WERRORFLAGS";
5581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583
5584int
5585main ()
5586{
5587return 0;
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"; then :
5593  can_enable_flag=true
5594else
5595  can_enable_flag=false
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598    CFLAGS=$saved_CFLAGS;
5599    if test "X$can_enable_flag" = "Xtrue"; then
5600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5601$as_echo "yes" >&6; }
5602        DED_WERRORFLAGS="-Werror=return-type $DED_WERRORFLAGS"
5603    else
5604        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605$as_echo "no" >&6; }
5606    fi
5607
5608
5609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=implicit to DED_WERRORFLAGS (via CFLAGS)" >&5
5610$as_echo_n "checking if we can add -Werror=implicit to DED_WERRORFLAGS (via CFLAGS)... " >&6; }
5611    saved_CFLAGS=$CFLAGS;
5612    CFLAGS="-Werror=implicit $DED_WERRORFLAGS";
5613    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615
5616int
5617main ()
5618{
5619return 0;
5620  ;
5621  return 0;
5622}
5623_ACEOF
5624if ac_fn_c_try_compile "$LINENO"; then :
5625  can_enable_flag=true
5626else
5627  can_enable_flag=false
5628fi
5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630    CFLAGS=$saved_CFLAGS;
5631    if test "X$can_enable_flag" = "Xtrue"; then
5632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5633$as_echo "yes" >&6; }
5634        DED_WERRORFLAGS="-Werror=implicit $DED_WERRORFLAGS"
5635    else
5636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638    fi
5639
5640
5641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=undef to DED_WERRORFLAGS (via CFLAGS)" >&5
5642$as_echo_n "checking if we can add -Werror=undef to DED_WERRORFLAGS (via CFLAGS)... " >&6; }
5643    saved_CFLAGS=$CFLAGS;
5644    CFLAGS="-Werror=undef $DED_WERRORFLAGS";
5645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647
5648int
5649main ()
5650{
5651return 0;
5652  ;
5653  return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657  can_enable_flag=true
5658else
5659  can_enable_flag=false
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662    CFLAGS=$saved_CFLAGS;
5663    if test "X$can_enable_flag" = "Xtrue"; then
5664        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665$as_echo "yes" >&6; }
5666        DED_WERRORFLAGS="-Werror=undef $DED_WERRORFLAGS"
5667    else
5668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670    fi
5671
5672
5673DED_SYS_INCLUDE="-I${ERL_TOP}/erts/emulator/beam -I${ERL_TOP}/erts/include -I${ERL_TOP}/erts/include/$host -I${ERL_TOP}/erts/include/internal -I${ERL_TOP}/erts/include/internal/$host -I${ERL_TOP}/erts/emulator/sys/$DED_OSTYPE -I${ERL_TOP}/erts/emulator/sys/common"
5674DED_INCLUDE=$DED_SYS_INCLUDE
5675
5676if test "$THR_DEFS" = ""; then
5677    DED_THR_DEFS="-D_THREAD_SAFE -D_REENTRANT"
5678else
5679    DED_THR_DEFS="$THR_DEFS"
5680fi
5681# DED_EMU_THR_DEFS=$EMU_THR_DEFS
5682DED_CFLAGS="$CFLAGS $CPPFLAGS $DED_CFLAGS"
5683if test "x$GCC" = xyes; then
5684    # Use -fno-common for gcc, that is link error if multiple definitions of
5685    # global variables are encountered. This is ISO C compliant.
5686    # Until version 10, gcc has had -fcommon as default, which allows and merges
5687    # such dubious duplicates.
5688
5689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -fno-common to DED_CFLAGS (via CFLAGS)" >&5
5690$as_echo_n "checking if we can add -fno-common to DED_CFLAGS (via CFLAGS)... " >&6; }
5691    saved_CFLAGS=$CFLAGS;
5692    CFLAGS="-fno-common $DED_CFLAGS";
5693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695
5696int
5697main ()
5698{
5699return 0;
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_compile "$LINENO"; then :
5705  can_enable_flag=true
5706else
5707  can_enable_flag=false
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710    CFLAGS=$saved_CFLAGS;
5711    if test "X$can_enable_flag" = "Xtrue"; then
5712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713$as_echo "yes" >&6; }
5714        DED_CFLAGS="-fno-common $DED_CFLAGS"
5715    else
5716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718    fi
5719
5720
5721    DED_STATIC_CFLAGS="$DED_CFLAGS"
5722    DED_CFLAGS="$DED_CFLAGS -fPIC"
5723    # Remove -fPIE and -fno-PIE
5724    DED_CFLAGS=`echo $DED_CFLAGS | sed 's/-f\(no-\)\?PIE//g'`
5725fi
5726
5727DED_EXT=so
5728case $host_os in
5729    win32) DED_EXT=dll;;
5730    darwin*)
5731	DED_CFLAGS="$DED_CFLAGS -fno-common"
5732	DED_STATIC_CFLAGS="$DED_STATIC_CFLAGS -fno-common";;
5733    *)
5734	;;
5735esac
5736
5737DED_STATIC_CFLAGS="$DED_STATIC_CFLAGS -DSTATIC_ERLANG_NIF -DSTATIC_ERLANG_DRIVER"
5738
5739if test "$CFLAG_RUNTIME_LIBRARY_PATH" = ""; then
5740
5741  CFLAG_RUNTIME_LIBRARY_PATH="-Wl,-R"
5742  case $host_os in
5743    darwin*)
5744	CFLAG_RUNTIME_LIBRARY_PATH=
5745	;;
5746    win32)
5747	CFLAG_RUNTIME_LIBRARY_PATH=
5748	;;
5749    osf*)
5750	CFLAG_RUNTIME_LIBRARY_PATH="-Wl,-rpath,"
5751	;;
5752    *)
5753	;;
5754  esac
5755
5756fi
5757
5758# If DED_LD is set in environment, we expect all DED_LD* variables
5759# to be specified (cross compiling)
5760if test "x$DED_LD" = "x"; then
5761
5762DED_LD_FLAG_RUNTIME_LIBRARY_PATH="-R"
5763case $host_os in
5764	win32)
5765		DED_LD="ld.sh"
5766		DED_LDFLAGS="-dll"
5767		DED_LD_FLAG_RUNTIME_LIBRARY_PATH=
5768	;;
5769	solaris2*|sysv4*)
5770		DED_LDFLAGS="-G"
5771		if test X${enable_m64_build} = Xyes; then
5772			DED_LDFLAGS="-64 $DED_LDFLAGS"
5773		fi
5774	;;
5775	aix*|os400*)
5776		DED_LDFLAGS="-G -bnoentry -bexpall"
5777	;;
5778	freebsd2*)
5779		# Non-ELF GNU linker
5780		DED_LDFLAGS="-Bshareable"
5781	;;
5782	darwin*)
5783		# Mach-O linker: a shared lib and a loadable
5784		# object file is not the same thing.
5785		DED_LDFLAGS="-bundle -bundle_loader ${ERL_TOP}/bin/$host/beam.smp"
5786		if test X${enable_m64_build} = Xyes; then
5787		  DED_LDFLAGS="-m64 $DED_LDFLAGS"
5788		else
5789		  if test X${enable_m32_build} = Xyes; then
5790		    DED_LDFLAGS="-m32 $DED_LDFLAGS"
5791		  else
5792		    # The cast to long int works around a bug in the HP C Compiler
5793# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5794# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5795# This bug is HP SR number 8606223364.
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5797$as_echo_n "checking size of void *... " >&6; }
5798if ${ac_cv_sizeof_void_p+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5802
5803else
5804  if test "$ac_cv_type_void_p" = yes; then
5805     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5807as_fn_error 77 "cannot compute sizeof (void *)
5808See \`config.log' for more details" "$LINENO" 5; }
5809   else
5810     ac_cv_sizeof_void_p=0
5811   fi
5812fi
5813
5814fi
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5816$as_echo "$ac_cv_sizeof_void_p" >&6; }
5817
5818
5819
5820cat >>confdefs.h <<_ACEOF
5821#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5822_ACEOF
5823
5824
5825		    case "$ac_cv_sizeof_void_p" in
5826		      8)
5827			DED_LDFLAGS="-m64 $DED_LDFLAGS";;
5828		      *)
5829		        ;;
5830		    esac
5831		  fi
5832		fi
5833		DED_LD="$CC"
5834		DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH"
5835	;;
5836	linux*)
5837		DED_LD="$CC"
5838		DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH"
5839		DED_LDFLAGS="-shared -Wl,-Bsymbolic"
5840		if test X${enable_m64_build} = Xyes; then
5841			DED_LDFLAGS="-m64 $DED_LDFLAGS"
5842		fi;
5843		if test X${enable_m32_build} = Xyes; then
5844			DED_LDFLAGS="-m32 $DED_LDFLAGS"
5845		fi
5846	;;
5847	freebsd*)
5848		DED_LD="$CC"
5849		DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH"
5850		DED_LDFLAGS="-shared"
5851		if test X${enable_m64_build} = Xyes; then
5852			DED_LDFLAGS="-m64 $DED_LDFLAGS"
5853		fi;
5854		if test X${enable_m32_build} = Xyes; then
5855			DED_LDFLAGS="-m32 $DED_LDFLAGS"
5856		fi
5857	;;
5858	openbsd*)
5859		DED_LD="$CC"
5860		DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH"
5861		DED_LDFLAGS="-shared"
5862	;;
5863	osf*)
5864		# NOTE! Whitespace after -rpath is important.
5865		DED_LD_FLAG_RUNTIME_LIBRARY_PATH="-rpath "
5866		DED_LDFLAGS="-shared -expect_unresolved '*'"
5867	;;
5868	*)
5869		# assume GNU linker and ELF
5870		DED_LDFLAGS="-shared"
5871		# GNU linker has no option for 64bit build, should not propagate -m64
5872	;;
5873esac
5874
5875if test "$DED_LD" = "" && test "$USER_LD" != ""; then
5876    DED_LD="$USER_LD"
5877    DED_LDFLAGS="$USER_LDFLAGS $DED_LDFLAGS"
5878fi
5879
5880DED_LIBS=$LIBS
5881
5882fi # "x$DED_LD" = "x"
5883
5884if test -n "$ac_tool_prefix"; then
5885  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5886set dummy ${ac_tool_prefix}ld; ac_word=$2
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
5889if ${ac_cv_prog_DED_LD+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  if test -n "$DED_LD"; then
5893  ac_cv_prog_DED_LD="$DED_LD" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898  IFS=$as_save_IFS
5899  test -z "$as_dir" && as_dir=.
5900    for ac_exec_ext in '' $ac_executable_extensions; do
5901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902    ac_cv_prog_DED_LD="${ac_tool_prefix}ld"
5903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904    break 2
5905  fi
5906done
5907  done
5908IFS=$as_save_IFS
5909
5910fi
5911fi
5912DED_LD=$ac_cv_prog_DED_LD
5913if test -n "$DED_LD"; then
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LD" >&5
5915$as_echo "$DED_LD" >&6; }
5916else
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919fi
5920
5921
5922fi
5923if test -z "$ac_cv_prog_DED_LD"; then
5924  ac_ct_DED_LD=$DED_LD
5925  # Extract the first word of "ld", so it can be a program name with args.
5926set dummy ld; ac_word=$2
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if ${ac_cv_prog_ac_ct_DED_LD+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  if test -n "$ac_ct_DED_LD"; then
5933  ac_cv_prog_ac_ct_DED_LD="$ac_ct_DED_LD" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940    for ac_exec_ext in '' $ac_executable_extensions; do
5941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942    ac_cv_prog_ac_ct_DED_LD="ld"
5943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944    break 2
5945  fi
5946done
5947  done
5948IFS=$as_save_IFS
5949
5950fi
5951fi
5952ac_ct_DED_LD=$ac_cv_prog_ac_ct_DED_LD
5953if test -n "$ac_ct_DED_LD"; then
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DED_LD" >&5
5955$as_echo "$ac_ct_DED_LD" >&6; }
5956else
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958$as_echo "no" >&6; }
5959fi
5960
5961  if test "x$ac_ct_DED_LD" = x; then
5962    DED_LD="false"
5963  else
5964    case $cross_compiling:$ac_tool_warned in
5965yes:)
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968ac_tool_warned=yes ;;
5969esac
5970    DED_LD=$ac_ct_DED_LD
5971  fi
5972else
5973  DED_LD="$ac_cv_prog_DED_LD"
5974fi
5975
5976test "$DED_LD" != "false" || as_fn_error $? "No linker found" "$LINENO" 5
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static compiler flags" >&5
5979$as_echo_n "checking for static compiler flags... " >&6; }
5980DED_STATIC_CFLAGS="$DED_WERRORFLAGS $DED_WFLAGS $DED_THR_DEFS $DED_STATIC_CFLAGS"
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_STATIC_CFLAGS" >&5
5982$as_echo "$DED_STATIC_CFLAGS" >&6; }
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic compiler flags for loadable drivers" >&5
5984$as_echo_n "checking for basic compiler flags for loadable drivers... " >&6; }
5985DED_BASIC_CFLAGS=$DED_CFLAGS
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_CFLAGS" >&5
5987$as_echo "$DED_CFLAGS" >&6; }
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler flags for loadable drivers" >&5
5989$as_echo_n "checking for compiler flags for loadable drivers... " >&6; }
5990DED_CFLAGS="$DED_WERRORFLAGS $DED_WARN_FLAGS $DED_THR_DEFS $DED_CFLAGS"
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_CFLAGS" >&5
5992$as_echo "$DED_CFLAGS" >&6; }
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker for loadable drivers" >&5
5994$as_echo_n "checking for linker for loadable drivers... " >&6; }
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LD" >&5
5996$as_echo "$DED_LD" >&6; }
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker flags for loadable drivers" >&5
5998$as_echo_n "checking for linker flags for loadable drivers... " >&6; }
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LDFLAGS" >&5
6000$as_echo "$DED_LDFLAGS" >&6; }
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'runtime library path' linker flag" >&5
6002$as_echo_n "checking for 'runtime library path' linker flag... " >&6; }
6003if test "x$DED_LD_FLAG_RUNTIME_LIBRARY_PATH" != "x"; then
6004	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LD_FLAG_RUNTIME_LIBRARY_PATH" >&5
6005$as_echo "$DED_LD_FLAG_RUNTIME_LIBRARY_PATH" >&6; }
6006else
6007	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6008$as_echo "not found" >&6; }
6009fi
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030ac_config_files="$ac_config_files ../Makefile output.mk ../make/$host/otp_ded.mk:../make/otp_ded.mk.in"
6031
6032ac_config_files="$ac_config_files emd2exml"
6033
6034
6035cat >confcache <<\_ACEOF
6036# This file is a shell script that caches the results of configure
6037# tests run on this system so they can be shared between configure
6038# scripts and configure runs, see configure's option --config-cache.
6039# It is not useful on other systems.  If it contains results you don't
6040# want to keep, you may remove or edit it.
6041#
6042# config.status only pays attention to the cache file if you give it
6043# the --recheck option to rerun configure.
6044#
6045# `ac_cv_env_foo' variables (set or unset) will be overridden when
6046# loading this file, other *unset* `ac_cv_foo' will be assigned the
6047# following values.
6048
6049_ACEOF
6050
6051# The following way of writing the cache mishandles newlines in values,
6052# but we know of no workaround that is simple, portable, and efficient.
6053# So, we kill variables containing newlines.
6054# Ultrix sh set writes to stderr and can't be redirected directly,
6055# and sets the high bit in the cache file unless we assign to the vars.
6056(
6057  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6058    eval ac_val=\$$ac_var
6059    case $ac_val in #(
6060    *${as_nl}*)
6061      case $ac_var in #(
6062      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6064      esac
6065      case $ac_var in #(
6066      _ | IFS | as_nl) ;; #(
6067      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6068      *) { eval $ac_var=; unset $ac_var;} ;;
6069      esac ;;
6070    esac
6071  done
6072
6073  (set) 2>&1 |
6074    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6075    *${as_nl}ac_space=\ *)
6076      # `set' does not quote correctly, so add quotes: double-quote
6077      # substitution turns \\\\ into \\, and sed turns \\ into \.
6078      sed -n \
6079	"s/'/'\\\\''/g;
6080	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6081      ;; #(
6082    *)
6083      # `set' quotes correctly as required by POSIX, so do not add quotes.
6084      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6085      ;;
6086    esac |
6087    sort
6088) |
6089  sed '
6090     /^ac_cv_env_/b end
6091     t clear
6092     :clear
6093     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6094     t end
6095     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6096     :end' >>confcache
6097if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6098  if test -w "$cache_file"; then
6099    if test "x$cache_file" != "x/dev/null"; then
6100      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6101$as_echo "$as_me: updating cache $cache_file" >&6;}
6102      if test ! -f "$cache_file" || test -h "$cache_file"; then
6103	cat confcache >"$cache_file"
6104      else
6105        case $cache_file in #(
6106        */* | ?:*)
6107	  mv -f confcache "$cache_file"$$ &&
6108	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6109        *)
6110	  mv -f confcache "$cache_file" ;;
6111	esac
6112      fi
6113    fi
6114  else
6115    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6116$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6117  fi
6118fi
6119rm -f confcache
6120
6121test "x$prefix" = xNONE && prefix=$ac_default_prefix
6122# Let make expand exec_prefix.
6123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6124
6125# Transform confdefs.h into DEFS.
6126# Protect against shell expansion while executing Makefile rules.
6127# Protect against Makefile macro expansion.
6128#
6129# If the first sed substitution is executed (which looks for macros that
6130# take arguments), then branch to the quote section.  Otherwise,
6131# look for a macro that doesn't take arguments.
6132ac_script='
6133:mline
6134/\\$/{
6135 N
6136 s,\\\n,,
6137 b mline
6138}
6139t clear
6140:clear
6141s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
6142t quote
6143s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
6144t quote
6145b any
6146:quote
6147s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6148s/\[/\\&/g
6149s/\]/\\&/g
6150s/\$/$$/g
6151H
6152:any
6153${
6154	g
6155	s/^\n//
6156	s/\n/ /g
6157	p
6158}
6159'
6160DEFS=`sed -n "$ac_script" confdefs.h`
6161
6162
6163ac_libobjs=
6164ac_ltlibobjs=
6165U=
6166for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6167  # 1. Remove the extension, and $U if already installed.
6168  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6169  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6170  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6171  #    will be set to the directory where LIBOBJS objects are built.
6172  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6173  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6174done
6175LIBOBJS=$ac_libobjs
6176
6177LTLIBOBJS=$ac_ltlibobjs
6178
6179
6180
6181: "${CONFIG_STATUS=./config.status}"
6182ac_write_fail=0
6183ac_clean_files_save=$ac_clean_files
6184ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6186$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6187as_write_fail=0
6188cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6189#! $SHELL
6190# Generated by $as_me.
6191# Run this file to recreate the current configuration.
6192# Compiler output produced by configure, useful for debugging
6193# configure, is in config.log if it exists.
6194
6195debug=false
6196ac_cs_recheck=false
6197ac_cs_silent=false
6198
6199SHELL=\${CONFIG_SHELL-$SHELL}
6200export SHELL
6201_ASEOF
6202cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6203## -------------------- ##
6204## M4sh Initialization. ##
6205## -------------------- ##
6206
6207# Be more Bourne compatible
6208DUALCASE=1; export DUALCASE # for MKS sh
6209if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6210  emulate sh
6211  NULLCMD=:
6212  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6213  # is contrary to our usage.  Disable this feature.
6214  alias -g '${1+"$@"}'='"$@"'
6215  setopt NO_GLOB_SUBST
6216else
6217  case `(set -o) 2>/dev/null` in #(
6218  *posix*) :
6219    set -o posix ;; #(
6220  *) :
6221     ;;
6222esac
6223fi
6224
6225
6226as_nl='
6227'
6228export as_nl
6229# Printing a long string crashes Solaris 7 /usr/bin/printf.
6230as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6231as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6232as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6233# Prefer a ksh shell builtin over an external printf program on Solaris,
6234# but without wasting forks for bash or zsh.
6235if test -z "$BASH_VERSION$ZSH_VERSION" \
6236    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6237  as_echo='print -r --'
6238  as_echo_n='print -rn --'
6239elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6240  as_echo='printf %s\n'
6241  as_echo_n='printf %s'
6242else
6243  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6244    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6245    as_echo_n='/usr/ucb/echo -n'
6246  else
6247    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6248    as_echo_n_body='eval
6249      arg=$1;
6250      case $arg in #(
6251      *"$as_nl"*)
6252	expr "X$arg" : "X\\(.*\\)$as_nl";
6253	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6254      esac;
6255      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6256    '
6257    export as_echo_n_body
6258    as_echo_n='sh -c $as_echo_n_body as_echo'
6259  fi
6260  export as_echo_body
6261  as_echo='sh -c $as_echo_body as_echo'
6262fi
6263
6264# The user is always right.
6265if test "${PATH_SEPARATOR+set}" != set; then
6266  PATH_SEPARATOR=:
6267  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6268    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6269      PATH_SEPARATOR=';'
6270  }
6271fi
6272
6273
6274# IFS
6275# We need space, tab and new line, in precisely that order.  Quoting is
6276# there to prevent editors from complaining about space-tab.
6277# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6278# splitting by setting IFS to empty value.)
6279IFS=" ""	$as_nl"
6280
6281# Find who we are.  Look in the path if we contain no directory separator.
6282as_myself=
6283case $0 in #((
6284  *[\\/]* ) as_myself=$0 ;;
6285  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6291  done
6292IFS=$as_save_IFS
6293
6294     ;;
6295esac
6296# We did not find ourselves, most probably we were run as `sh COMMAND'
6297# in which case we are not to be found in the path.
6298if test "x$as_myself" = x; then
6299  as_myself=$0
6300fi
6301if test ! -f "$as_myself"; then
6302  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6303  exit 1
6304fi
6305
6306# Unset variables that we do not need and which cause bugs (e.g. in
6307# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6308# suppresses any "Segmentation fault" message there.  '((' could
6309# trigger a bug in pdksh 5.2.14.
6310for as_var in BASH_ENV ENV MAIL MAILPATH
6311do eval test x\${$as_var+set} = xset \
6312  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6313done
6314PS1='$ '
6315PS2='> '
6316PS4='+ '
6317
6318# NLS nuisances.
6319LC_ALL=C
6320export LC_ALL
6321LANGUAGE=C
6322export LANGUAGE
6323
6324# CDPATH.
6325(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6326
6327
6328# as_fn_error STATUS ERROR [LINENO LOG_FD]
6329# ----------------------------------------
6330# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6331# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6332# script with STATUS, using 1 if that was 0.
6333as_fn_error ()
6334{
6335  as_status=$1; test $as_status -eq 0 && as_status=1
6336  if test "$4"; then
6337    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6338    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6339  fi
6340  $as_echo "$as_me: error: $2" >&2
6341  as_fn_exit $as_status
6342} # as_fn_error
6343
6344
6345# as_fn_set_status STATUS
6346# -----------------------
6347# Set $? to STATUS, without forking.
6348as_fn_set_status ()
6349{
6350  return $1
6351} # as_fn_set_status
6352
6353# as_fn_exit STATUS
6354# -----------------
6355# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6356as_fn_exit ()
6357{
6358  set +e
6359  as_fn_set_status $1
6360  exit $1
6361} # as_fn_exit
6362
6363# as_fn_unset VAR
6364# ---------------
6365# Portably unset VAR.
6366as_fn_unset ()
6367{
6368  { eval $1=; unset $1;}
6369}
6370as_unset=as_fn_unset
6371# as_fn_append VAR VALUE
6372# ----------------------
6373# Append the text in VALUE to the end of the definition contained in VAR. Take
6374# advantage of any shell optimizations that allow amortized linear growth over
6375# repeated appends, instead of the typical quadratic growth present in naive
6376# implementations.
6377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6378  eval 'as_fn_append ()
6379  {
6380    eval $1+=\$2
6381  }'
6382else
6383  as_fn_append ()
6384  {
6385    eval $1=\$$1\$2
6386  }
6387fi # as_fn_append
6388
6389# as_fn_arith ARG...
6390# ------------------
6391# Perform arithmetic evaluation on the ARGs, and store the result in the
6392# global $as_val. Take advantage of shells that can avoid forks. The arguments
6393# must be portable across $(()) and expr.
6394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6395  eval 'as_fn_arith ()
6396  {
6397    as_val=$(( $* ))
6398  }'
6399else
6400  as_fn_arith ()
6401  {
6402    as_val=`expr "$@" || test $? -eq 1`
6403  }
6404fi # as_fn_arith
6405
6406
6407if expr a : '\(a\)' >/dev/null 2>&1 &&
6408   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6409  as_expr=expr
6410else
6411  as_expr=false
6412fi
6413
6414if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6415  as_basename=basename
6416else
6417  as_basename=false
6418fi
6419
6420if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6421  as_dirname=dirname
6422else
6423  as_dirname=false
6424fi
6425
6426as_me=`$as_basename -- "$0" ||
6427$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6428	 X"$0" : 'X\(//\)$' \| \
6429	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6430$as_echo X/"$0" |
6431    sed '/^.*\/\([^/][^/]*\)\/*$/{
6432	    s//\1/
6433	    q
6434	  }
6435	  /^X\/\(\/\/\)$/{
6436	    s//\1/
6437	    q
6438	  }
6439	  /^X\/\(\/\).*/{
6440	    s//\1/
6441	    q
6442	  }
6443	  s/.*/./; q'`
6444
6445# Avoid depending upon Character Ranges.
6446as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6447as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6448as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6449as_cr_digits='0123456789'
6450as_cr_alnum=$as_cr_Letters$as_cr_digits
6451
6452ECHO_C= ECHO_N= ECHO_T=
6453case `echo -n x` in #(((((
6454-n*)
6455  case `echo 'xy\c'` in
6456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6457  xy)  ECHO_C='\c';;
6458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6459       ECHO_T='	';;
6460  esac;;
6461*)
6462  ECHO_N='-n';;
6463esac
6464
6465rm -f conf$$ conf$$.exe conf$$.file
6466if test -d conf$$.dir; then
6467  rm -f conf$$.dir/conf$$.file
6468else
6469  rm -f conf$$.dir
6470  mkdir conf$$.dir 2>/dev/null
6471fi
6472if (echo >conf$$.file) 2>/dev/null; then
6473  if ln -s conf$$.file conf$$ 2>/dev/null; then
6474    as_ln_s='ln -s'
6475    # ... but there are two gotchas:
6476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6478    # In both cases, we have to default to `cp -pR'.
6479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6480      as_ln_s='cp -pR'
6481  elif ln conf$$.file conf$$ 2>/dev/null; then
6482    as_ln_s=ln
6483  else
6484    as_ln_s='cp -pR'
6485  fi
6486else
6487  as_ln_s='cp -pR'
6488fi
6489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6490rmdir conf$$.dir 2>/dev/null
6491
6492
6493# as_fn_mkdir_p
6494# -------------
6495# Create "$as_dir" as a directory, including parents if necessary.
6496as_fn_mkdir_p ()
6497{
6498
6499  case $as_dir in #(
6500  -*) as_dir=./$as_dir;;
6501  esac
6502  test -d "$as_dir" || eval $as_mkdir_p || {
6503    as_dirs=
6504    while :; do
6505      case $as_dir in #(
6506      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6507      *) as_qdir=$as_dir;;
6508      esac
6509      as_dirs="'$as_qdir' $as_dirs"
6510      as_dir=`$as_dirname -- "$as_dir" ||
6511$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6512	 X"$as_dir" : 'X\(//\)[^/]' \| \
6513	 X"$as_dir" : 'X\(//\)$' \| \
6514	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6515$as_echo X"$as_dir" |
6516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6517	    s//\1/
6518	    q
6519	  }
6520	  /^X\(\/\/\)[^/].*/{
6521	    s//\1/
6522	    q
6523	  }
6524	  /^X\(\/\/\)$/{
6525	    s//\1/
6526	    q
6527	  }
6528	  /^X\(\/\).*/{
6529	    s//\1/
6530	    q
6531	  }
6532	  s/.*/./; q'`
6533      test -d "$as_dir" && break
6534    done
6535    test -z "$as_dirs" || eval "mkdir $as_dirs"
6536  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6537
6538
6539} # as_fn_mkdir_p
6540if mkdir -p . 2>/dev/null; then
6541  as_mkdir_p='mkdir -p "$as_dir"'
6542else
6543  test -d ./-p && rmdir ./-p
6544  as_mkdir_p=false
6545fi
6546
6547
6548# as_fn_executable_p FILE
6549# -----------------------
6550# Test if FILE is an executable regular file.
6551as_fn_executable_p ()
6552{
6553  test -f "$1" && test -x "$1"
6554} # as_fn_executable_p
6555as_test_x='test -x'
6556as_executable_p=as_fn_executable_p
6557
6558# Sed expression to map a string onto a valid CPP name.
6559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6560
6561# Sed expression to map a string onto a valid variable name.
6562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6563
6564
6565exec 6>&1
6566## ----------------------------------- ##
6567## Main body of $CONFIG_STATUS script. ##
6568## ----------------------------------- ##
6569_ASEOF
6570test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6571
6572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6573# Save the log message, to keep $0 and so on meaningful, and to
6574# report actual input values of CONFIG_FILES etc. instead of their
6575# values after options handling.
6576ac_log="
6577This file was extended by $as_me, which was
6578generated by GNU Autoconf 2.69.  Invocation command line was
6579
6580  CONFIG_FILES    = $CONFIG_FILES
6581  CONFIG_HEADERS  = $CONFIG_HEADERS
6582  CONFIG_LINKS    = $CONFIG_LINKS
6583  CONFIG_COMMANDS = $CONFIG_COMMANDS
6584  $ $0 $@
6585
6586on `(hostname || uname -n) 2>/dev/null | sed 1q`
6587"
6588
6589_ACEOF
6590
6591case $ac_config_files in *"
6592"*) set x $ac_config_files; shift; ac_config_files=$*;;
6593esac
6594
6595
6596
6597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6598# Files that config.status was made for.
6599config_files="$ac_config_files"
6600
6601_ACEOF
6602
6603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6604ac_cs_usage="\
6605\`$as_me' instantiates files and other configuration actions
6606from templates according to the current configuration.  Unless the files
6607and actions are specified as TAGs, all are instantiated by default.
6608
6609Usage: $0 [OPTION]... [TAG]...
6610
6611  -h, --help       print this help, then exit
6612  -V, --version    print version number and configuration settings, then exit
6613      --config     print configuration, then exit
6614  -q, --quiet, --silent
6615                   do not print progress messages
6616  -d, --debug      don't remove temporary files
6617      --recheck    update $as_me by reconfiguring in the same conditions
6618      --file=FILE[:TEMPLATE]
6619                   instantiate the configuration file FILE
6620
6621Configuration files:
6622$config_files
6623
6624Report bugs to the package provider."
6625
6626_ACEOF
6627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6628ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6629ac_cs_version="\\
6630config.status
6631configured by $0, generated by GNU Autoconf 2.69,
6632  with options \\"\$ac_cs_config\\"
6633
6634Copyright (C) 2012 Free Software Foundation, Inc.
6635This config.status script is free software; the Free Software Foundation
6636gives unlimited permission to copy, distribute and modify it."
6637
6638ac_pwd='$ac_pwd'
6639srcdir='$srcdir'
6640INSTALL='$INSTALL'
6641test -n "\$AWK" || AWK=awk
6642_ACEOF
6643
6644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6645# The default lists apply if the user does not specify any file.
6646ac_need_defaults=:
6647while test $# != 0
6648do
6649  case $1 in
6650  --*=?*)
6651    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6652    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6653    ac_shift=:
6654    ;;
6655  --*=)
6656    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6657    ac_optarg=
6658    ac_shift=:
6659    ;;
6660  *)
6661    ac_option=$1
6662    ac_optarg=$2
6663    ac_shift=shift
6664    ;;
6665  esac
6666
6667  case $ac_option in
6668  # Handling of the options.
6669  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6670    ac_cs_recheck=: ;;
6671  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6672    $as_echo "$ac_cs_version"; exit ;;
6673  --config | --confi | --conf | --con | --co | --c )
6674    $as_echo "$ac_cs_config"; exit ;;
6675  --debug | --debu | --deb | --de | --d | -d )
6676    debug=: ;;
6677  --file | --fil | --fi | --f )
6678    $ac_shift
6679    case $ac_optarg in
6680    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6681    '') as_fn_error $? "missing file argument" ;;
6682    esac
6683    as_fn_append CONFIG_FILES " '$ac_optarg'"
6684    ac_need_defaults=false;;
6685  --he | --h |  --help | --hel | -h )
6686    $as_echo "$ac_cs_usage"; exit ;;
6687  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6688  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6689    ac_cs_silent=: ;;
6690
6691  # This is an error.
6692  -*) as_fn_error $? "unrecognized option: \`$1'
6693Try \`$0 --help' for more information." ;;
6694
6695  *) as_fn_append ac_config_targets " $1"
6696     ac_need_defaults=false ;;
6697
6698  esac
6699  shift
6700done
6701
6702ac_configure_extra_args=
6703
6704if $ac_cs_silent; then
6705  exec 6>/dev/null
6706  ac_configure_extra_args="$ac_configure_extra_args --silent"
6707fi
6708
6709_ACEOF
6710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6711if \$ac_cs_recheck; then
6712  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6713  shift
6714  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6715  CONFIG_SHELL='$SHELL'
6716  export CONFIG_SHELL
6717  exec "\$@"
6718fi
6719
6720_ACEOF
6721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6722exec 5>>config.log
6723{
6724  echo
6725  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6726## Running $as_me. ##
6727_ASBOX
6728  $as_echo "$ac_log"
6729} >&5
6730
6731_ACEOF
6732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6733_ACEOF
6734
6735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6736
6737# Handling of arguments.
6738for ac_config_target in $ac_config_targets
6739do
6740  case $ac_config_target in
6741    "../Makefile") CONFIG_FILES="$CONFIG_FILES ../Makefile" ;;
6742    "output.mk") CONFIG_FILES="$CONFIG_FILES output.mk" ;;
6743    "../make/$host/otp_ded.mk") CONFIG_FILES="$CONFIG_FILES ../make/$host/otp_ded.mk:../make/otp_ded.mk.in" ;;
6744    "emd2exml") CONFIG_FILES="$CONFIG_FILES emd2exml" ;;
6745
6746  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6747  esac
6748done
6749
6750
6751# If the user did not use the arguments to specify the items to instantiate,
6752# then the envvar interface is used.  Set only those that are not.
6753# We use the long form for the default assignment because of an extremely
6754# bizarre bug on SunOS 4.1.3.
6755if $ac_need_defaults; then
6756  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6757fi
6758
6759# Have a temporary directory for convenience.  Make it in the build tree
6760# simply because there is no reason against having it here, and in addition,
6761# creating and moving files from /tmp can sometimes cause problems.
6762# Hook for its removal unless debugging.
6763# Note that there is a small window in which the directory will not be cleaned:
6764# after its creation but before its name has been assigned to `$tmp'.
6765$debug ||
6766{
6767  tmp= ac_tmp=
6768  trap 'exit_status=$?
6769  : "${ac_tmp:=$tmp}"
6770  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6771' 0
6772  trap 'as_fn_exit 1' 1 2 13 15
6773}
6774# Create a (secure) tmp directory for tmp files.
6775
6776{
6777  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6778  test -d "$tmp"
6779}  ||
6780{
6781  tmp=./conf$$-$RANDOM
6782  (umask 077 && mkdir "$tmp")
6783} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6784ac_tmp=$tmp
6785
6786# Set up the scripts for CONFIG_FILES section.
6787# No need to generate them if there are no CONFIG_FILES.
6788# This happens for instance with `./config.status config.h'.
6789if test -n "$CONFIG_FILES"; then
6790
6791
6792ac_cr=`echo X | tr X '\015'`
6793# On cygwin, bash can eat \r inside `` if the user requested igncr.
6794# But we know of no other shell where ac_cr would be empty at this
6795# point, so we can use a bashism as a fallback.
6796if test "x$ac_cr" = x; then
6797  eval ac_cr=\$\'\\r\'
6798fi
6799ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6800if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6801  ac_cs_awk_cr='\\r'
6802else
6803  ac_cs_awk_cr=$ac_cr
6804fi
6805
6806echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6807_ACEOF
6808
6809
6810{
6811  echo "cat >conf$$subs.awk <<_ACEOF" &&
6812  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6813  echo "_ACEOF"
6814} >conf$$subs.sh ||
6815  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6816ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6817ac_delim='%!_!# '
6818for ac_last_try in false false false false false :; do
6819  . ./conf$$subs.sh ||
6820    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6821
6822  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6823  if test $ac_delim_n = $ac_delim_num; then
6824    break
6825  elif $ac_last_try; then
6826    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6827  else
6828    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6829  fi
6830done
6831rm -f conf$$subs.sh
6832
6833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6834cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6835_ACEOF
6836sed -n '
6837h
6838s/^/S["/; s/!.*/"]=/
6839p
6840g
6841s/^[^!]*!//
6842:repl
6843t repl
6844s/'"$ac_delim"'$//
6845t delim
6846:nl
6847h
6848s/\(.\{148\}\)..*/\1/
6849t more1
6850s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6851p
6852n
6853b repl
6854:more1
6855s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6856p
6857g
6858s/.\{148\}//
6859t nl
6860:delim
6861h
6862s/\(.\{148\}\)..*/\1/
6863t more2
6864s/["\\]/\\&/g; s/^/"/; s/$/"/
6865p
6866b
6867:more2
6868s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6869p
6870g
6871s/.\{148\}//
6872t delim
6873' <conf$$subs.awk | sed '
6874/^[^""]/{
6875  N
6876  s/\n//
6877}
6878' >>$CONFIG_STATUS || ac_write_fail=1
6879rm -f conf$$subs.awk
6880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6881_ACAWK
6882cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6883  for (key in S) S_is_set[key] = 1
6884  FS = ""
6885
6886}
6887{
6888  line = $ 0
6889  nfields = split(line, field, "@")
6890  substed = 0
6891  len = length(field[1])
6892  for (i = 2; i < nfields; i++) {
6893    key = field[i]
6894    keylen = length(key)
6895    if (S_is_set[key]) {
6896      value = S[key]
6897      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6898      len += length(value) + length(field[++i])
6899      substed = 1
6900    } else
6901      len += 1 + keylen
6902  }
6903
6904  print line
6905}
6906
6907_ACAWK
6908_ACEOF
6909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6910if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6911  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6912else
6913  cat
6914fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6915  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6916_ACEOF
6917
6918# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6919# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6920# trailing colons and then remove the whole line if VPATH becomes empty
6921# (actually we leave an empty line to preserve line numbers).
6922if test "x$srcdir" = x.; then
6923  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6924h
6925s///
6926s/^/:/
6927s/[	 ]*$/:/
6928s/:\$(srcdir):/:/g
6929s/:\${srcdir}:/:/g
6930s/:@srcdir@:/:/g
6931s/^:*//
6932s/:*$//
6933x
6934s/\(=[	 ]*\).*/\1/
6935G
6936s/\n//
6937s/^[^=]*=[	 ]*$//
6938}'
6939fi
6940
6941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6942fi # test -n "$CONFIG_FILES"
6943
6944
6945eval set X "  :F $CONFIG_FILES      "
6946shift
6947for ac_tag
6948do
6949  case $ac_tag in
6950  :[FHLC]) ac_mode=$ac_tag; continue;;
6951  esac
6952  case $ac_mode$ac_tag in
6953  :[FHL]*:*);;
6954  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6955  :[FH]-) ac_tag=-:-;;
6956  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6957  esac
6958  ac_save_IFS=$IFS
6959  IFS=:
6960  set x $ac_tag
6961  IFS=$ac_save_IFS
6962  shift
6963  ac_file=$1
6964  shift
6965
6966  case $ac_mode in
6967  :L) ac_source=$1;;
6968  :[FH])
6969    ac_file_inputs=
6970    for ac_f
6971    do
6972      case $ac_f in
6973      -) ac_f="$ac_tmp/stdin";;
6974      *) # Look for the file first in the build tree, then in the source tree
6975	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6976	 # because $ac_f cannot contain `:'.
6977	 test -f "$ac_f" ||
6978	   case $ac_f in
6979	   [\\/$]*) false;;
6980	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6981	   esac ||
6982	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6983      esac
6984      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6985      as_fn_append ac_file_inputs " '$ac_f'"
6986    done
6987
6988    # Let's still pretend it is `configure' which instantiates (i.e., don't
6989    # use $as_me), people would be surprised to read:
6990    #    /* config.h.  Generated by config.status.  */
6991    configure_input='Generated from '`
6992	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6993	`' by configure.'
6994    if test x"$ac_file" != x-; then
6995      configure_input="$ac_file.  $configure_input"
6996      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6997$as_echo "$as_me: creating $ac_file" >&6;}
6998    fi
6999    # Neutralize special characters interpreted by sed in replacement strings.
7000    case $configure_input in #(
7001    *\&* | *\|* | *\\* )
7002       ac_sed_conf_input=`$as_echo "$configure_input" |
7003       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7004    *) ac_sed_conf_input=$configure_input;;
7005    esac
7006
7007    case $ac_tag in
7008    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7009      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7010    esac
7011    ;;
7012  esac
7013
7014  ac_dir=`$as_dirname -- "$ac_file" ||
7015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7016	 X"$ac_file" : 'X\(//\)[^/]' \| \
7017	 X"$ac_file" : 'X\(//\)$' \| \
7018	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7019$as_echo X"$ac_file" |
7020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7021	    s//\1/
7022	    q
7023	  }
7024	  /^X\(\/\/\)[^/].*/{
7025	    s//\1/
7026	    q
7027	  }
7028	  /^X\(\/\/\)$/{
7029	    s//\1/
7030	    q
7031	  }
7032	  /^X\(\/\).*/{
7033	    s//\1/
7034	    q
7035	  }
7036	  s/.*/./; q'`
7037  as_dir="$ac_dir"; as_fn_mkdir_p
7038  ac_builddir=.
7039
7040case "$ac_dir" in
7041.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7042*)
7043  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7044  # A ".." for each directory in $ac_dir_suffix.
7045  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7046  case $ac_top_builddir_sub in
7047  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7048  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7049  esac ;;
7050esac
7051ac_abs_top_builddir=$ac_pwd
7052ac_abs_builddir=$ac_pwd$ac_dir_suffix
7053# for backward compatibility:
7054ac_top_builddir=$ac_top_build_prefix
7055
7056case $srcdir in
7057  .)  # We are building in place.
7058    ac_srcdir=.
7059    ac_top_srcdir=$ac_top_builddir_sub
7060    ac_abs_top_srcdir=$ac_pwd ;;
7061  [\\/]* | ?:[\\/]* )  # Absolute name.
7062    ac_srcdir=$srcdir$ac_dir_suffix;
7063    ac_top_srcdir=$srcdir
7064    ac_abs_top_srcdir=$srcdir ;;
7065  *) # Relative name.
7066    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7067    ac_top_srcdir=$ac_top_build_prefix$srcdir
7068    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7069esac
7070ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7071
7072
7073  case $ac_mode in
7074  :F)
7075  #
7076  # CONFIG_FILE
7077  #
7078
7079  case $INSTALL in
7080  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7081  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7082  esac
7083_ACEOF
7084
7085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7086# If the template does not know about datarootdir, expand it.
7087# FIXME: This hack should be removed a few years after 2.60.
7088ac_datarootdir_hack=; ac_datarootdir_seen=
7089ac_sed_dataroot='
7090/datarootdir/ {
7091  p
7092  q
7093}
7094/@datadir@/p
7095/@docdir@/p
7096/@infodir@/p
7097/@localedir@/p
7098/@mandir@/p'
7099case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7100*datarootdir*) ac_datarootdir_seen=yes;;
7101*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7103$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7104_ACEOF
7105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7106  ac_datarootdir_hack='
7107  s&@datadir@&$datadir&g
7108  s&@docdir@&$docdir&g
7109  s&@infodir@&$infodir&g
7110  s&@localedir@&$localedir&g
7111  s&@mandir@&$mandir&g
7112  s&\\\${datarootdir}&$datarootdir&g' ;;
7113esac
7114_ACEOF
7115
7116# Neutralize VPATH when `$srcdir' = `.'.
7117# Shell code in configure.ac might set extrasub.
7118# FIXME: do we really want to maintain this feature?
7119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7120ac_sed_extra="$ac_vpsub
7121$extrasub
7122_ACEOF
7123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7124:t
7125/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7126s|@configure_input@|$ac_sed_conf_input|;t t
7127s&@top_builddir@&$ac_top_builddir_sub&;t t
7128s&@top_build_prefix@&$ac_top_build_prefix&;t t
7129s&@srcdir@&$ac_srcdir&;t t
7130s&@abs_srcdir@&$ac_abs_srcdir&;t t
7131s&@top_srcdir@&$ac_top_srcdir&;t t
7132s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7133s&@builddir@&$ac_builddir&;t t
7134s&@abs_builddir@&$ac_abs_builddir&;t t
7135s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7136s&@INSTALL@&$ac_INSTALL&;t t
7137$ac_datarootdir_hack
7138"
7139eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7140  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7141
7142test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7143  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7144  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7145      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7147which seems to be undefined.  Please make sure it is defined" >&5
7148$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7149which seems to be undefined.  Please make sure it is defined" >&2;}
7150
7151  rm -f "$ac_tmp/stdin"
7152  case $ac_file in
7153  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7154  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7155  esac \
7156  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7157 ;;
7158
7159
7160
7161  esac
7162
7163
7164  case $ac_file$ac_mode in
7165    "emd2exml":F) chmod +x emd2exml ;;
7166
7167  esac
7168done # for ac_tag
7169
7170
7171as_fn_exit 0
7172_ACEOF
7173ac_clean_files=$ac_clean_files_save
7174
7175test $ac_write_fail = 0 ||
7176  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7177
7178
7179# configure is writing to config.log, and then calls config.status.
7180# config.status does its own redirection, appending to config.log.
7181# Unfortunately, on DOS this fails, as config.log is still kept open
7182# by configure, so config.status won't be able to write to it; its
7183# output is simply discarded.  So we exec the FD to /dev/null,
7184# effectively closing config.log, so it can be properly (re)opened and
7185# appended to by config.status.  When coming back to configure, we
7186# need to make the FD available again.
7187if test "$no_create" != yes; then
7188  ac_cs_success=:
7189  ac_config_status_args=
7190  test "$silent" = yes &&
7191    ac_config_status_args="$ac_config_status_args --quiet"
7192  exec 5>/dev/null
7193  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7194  exec 5>>config.log
7195  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7196  # would make configure fail if this is the last instruction.
7197  $ac_cs_success || as_fn_exit 1
7198fi
7199if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7201$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7202fi
7203
7204