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