1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for muparser 2.2.4.
4#
5# Report bugs to <muparser@beltoforion.de>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201  if (eval "$as_required") 2>/dev/null; then :
202  as_have_required=yes
203else
204  as_have_required=no
205fi
206  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213  IFS=$as_save_IFS
214  test -z "$as_dir" && as_dir=.
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir/$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  CONFIG_SHELL=$as_shell as_have_required=yes
224		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239      if test "x$CONFIG_SHELL" != x; then :
240  export CONFIG_SHELL
241             # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249  *v*x* | *x*v* ) as_opts=-vx ;;
250  *v* ) as_opts=-v ;;
251  *x* ) as_opts=-x ;;
252  * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261    if test x$as_have_required = xno; then :
262  $as_echo "$0: This script requires a shell more modern than all"
263  $as_echo "$0: the shells that I found on your system."
264  if test x${ZSH_VERSION+set} = xset ; then
265    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267  else
268    $as_echo "$0: Please tell bug-autoconf@gnu.org and
269$0: muparser@beltoforion.de about your system, including
270$0: any error possibly output before this message. Then
271$0: install a modern shell, or manually run the script
272$0: under such a shell if you do have one."
273  fi
274  exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292  { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301  return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309  set +e
310  as_fn_set_status $1
311  exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320  case $as_dir in #(
321  -*) as_dir=./$as_dir;;
322  esac
323  test -d "$as_dir" || eval $as_mkdir_p || {
324    as_dirs=
325    while :; do
326      case $as_dir in #(
327      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328      *) as_qdir=$as_dir;;
329      esac
330      as_dirs="'$as_qdir' $as_dirs"
331      as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333	 X"$as_dir" : 'X\(//\)[^/]' \| \
334	 X"$as_dir" : 'X\(//\)$' \| \
335	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338	    s//\1/
339	    q
340	  }
341	  /^X\(\/\/\)[^/].*/{
342	    s//\1/
343	    q
344	  }
345	  /^X\(\/\/\)$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\).*/{
350	    s//\1/
351	    q
352	  }
353	  s/.*/./; q'`
354      test -d "$as_dir" && break
355    done
356    test -z "$as_dirs" || eval "mkdir $as_dirs"
357  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367  test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376  eval 'as_fn_append ()
377  {
378    eval $1+=\$2
379  }'
380else
381  as_fn_append ()
382  {
383    eval $1=\$$1\$2
384  }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393  eval 'as_fn_arith ()
394  {
395    as_val=$(( $* ))
396  }'
397else
398  as_fn_arith ()
399  {
400    as_val=`expr "$@" || test $? -eq 1`
401  }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412  as_status=$1; test $as_status -eq 0 && as_status=1
413  if test "$4"; then
414    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416  fi
417  $as_echo "$as_me: error: $2" >&2
418  as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422   test "X`expr 00001 : '.*\(...\)'`" = X001; then
423  as_expr=expr
424else
425  as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429  as_basename=basename
430else
431  as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435  as_dirname=dirname
436else
437  as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442	 X"$0" : 'X\(//\)$' \| \
443	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445    sed '/^.*\/\([^/][^/]*\)\/*$/{
446	    s//\1/
447	    q
448	  }
449	  /^X\/\(\/\/\)$/{
450	    s//\1/
451	    q
452	  }
453	  /^X\/\(\/\).*/{
454	    s//\1/
455	    q
456	  }
457	  s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467  as_lineno_1=$LINENO as_lineno_1a=$LINENO
468  as_lineno_2=$LINENO as_lineno_2a=$LINENO
469  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
472  sed -n '
473    p
474    /[$]LINENO/=
475  ' <$as_myself |
476    sed '
477      s/[$]LINENO.*/&-/
478      t lineno
479      b
480      :lineno
481      N
482      :loop
483      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484      t loop
485      s/-\n.*//
486    ' >$as_me.lineno &&
487  chmod +x "$as_me.lineno" ||
488    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491  # already done that, so ensure we don't try to do so again and fall
492  # in an infinite loop.  This has already happened in practice.
493  _as_can_reexec=no; export _as_can_reexec
494  # Don't try to exec as it changes $[0], causing all sort of problems
495  # (the dirname of $[0] is not the place where we might find the
496  # original and so on.  Autoconf is especially sensitive to this).
497  . "./$as_me.lineno"
498  # Exit status is that of the last command.
499  exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505  case `echo 'xy\c'` in
506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507  xy)  ECHO_C='\c';;
508  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509       ECHO_T='	';;
510  esac;;
511*)
512  ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517  rm -f conf$$.dir/conf$$.file
518else
519  rm -f conf$$.dir
520  mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523  if ln -s conf$$.file conf$$ 2>/dev/null; then
524    as_ln_s='ln -s'
525    # ... but there are two gotchas:
526    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528    # In both cases, we have to default to `cp -pR'.
529    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530      as_ln_s='cp -pR'
531  elif ln conf$$.file conf$$ 2>/dev/null; then
532    as_ln_s=ln
533  else
534    as_ln_s='cp -pR'
535  fi
536else
537  as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543  as_mkdir_p='mkdir -p "$as_dir"'
544else
545  test -d ./-p && rmdir ./-p
546  as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='muparser'
581PACKAGE_TARNAME='muparser'
582PACKAGE_VERSION='2.2.4'
583PACKAGE_STRING='muparser 2.2.4'
584PACKAGE_BUGREPORT='muparser@beltoforion.de'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589COND_WINDOWS_IMPLIB_1
590COND_USE_SOVERSOLARIS_1
591COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
592COND_USE_SOVERSION_0
593COND_USE_SOVERLINUX_1
594COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
595COND_USE_SOTWOSYMLINKS_1
596COND_SHARED_1
597COND_SHARED_0
598COND_SAMPLES_1
599COND_PLATFORM_OS2_1
600COND_PLATFORM_MAC_1
601COND_PLATFORM_MAC_0
602COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
603COND_PLATFORM_MACOSX_1
604COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
605COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
606COND_DEPS_TRACKING_1
607COND_DEPS_TRACKING_0
608COND_DEBUG_1
609COND_DEBUG_0
610OBJCXXFLAGS
611SETFILE
612REZ
613WINDRES
614BK_DEPS
615DEPS_TRACKING
616SONAME_FLAG
617USE_SOTWOSYMLINKS
618USE_MACVERSION
619USE_SOVERCYGWIN
620USE_SOVERSOLARIS
621USE_SOVERLINUX
622USE_SOVERSION
623WINDOWS_IMPLIB
624PIC_FLAG
625SHARED_LD_MODULE_CXX
626SHARED_LD_MODULE_CC
627SHARED_LD_CXX
628SHARED_LD_CC
629AIX_CXX_LD
630dlldir
631DLLPREFIX_MODULE
632DLLPREFIX
633LIBEXT
634LIBPREFIX
635DLLIMP_SUFFIX
636SO_SUFFIX_MODULE
637SO_SUFFIX
638PLATFORM_BEOS
639PLATFORM_OS2
640PLATFORM_MACOSX
641PLATFORM_MACOS
642PLATFORM_MAC
643PLATFORM_MSDOS
644PLATFORM_WIN32
645PLATFORM_UNIX
646IF_GNU_MAKE
647LDFLAGS_GUI
648INSTALL_DIR
649NM
650STRIP
651AROPTIONS
652AR
653MAKE_SET
654SET_MAKE
655CXXCPP
656ac_ct_CXX
657CXXFLAGS
658CXX
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666RANLIB
667LN_S
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
671AWK
672target_os
673target_vendor
674target_cpu
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
703localstatedir
704sharedstatedir
705sysconfdir
706datadir
707datarootdir
708libexecdir
709sbindir
710bindir
711program_transform_name
712prefix
713exec_prefix
714PACKAGE_URL
715PACKAGE_BUGREPORT
716PACKAGE_STRING
717PACKAGE_VERSION
718PACKAGE_TARNAME
719PACKAGE_NAME
720PATH_SEPARATOR
721SHELL'
722ac_subst_files=''
723ac_user_opts='
724enable_option_checking
725enable_debug
726enable_shared
727enable_samples
728enable_omf
729enable_dependency_tracking
730'
731      ac_precious_vars='build_alias
732host_alias
733target_alias
734CC
735CFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CXX
740CXXFLAGS
741CCC
742CXXCPP'
743
744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748ac_unrecognized_opts=
749ac_unrecognized_sep=
750# The variables have the same names as the options, with
751# dashes changed to underlines.
752cache_file=/dev/null
753exec_prefix=NONE
754no_create=
755no_recursion=
756prefix=NONE
757program_prefix=NONE
758program_suffix=NONE
759program_transform_name=s,x,x,
760silent=
761site=
762srcdir=
763verbose=
764x_includes=NONE
765x_libraries=NONE
766
767# Installation directory options.
768# These are left unexpanded so users can "make install exec_prefix=/foo"
769# and all the variables that are supposed to be based on exec_prefix
770# by default will actually change.
771# Use braces instead of parens because sh, perl, etc. also accept them.
772# (The list follows the same order as the GNU Coding Standards.)
773bindir='${exec_prefix}/bin'
774sbindir='${exec_prefix}/sbin'
775libexecdir='${exec_prefix}/libexec'
776datarootdir='${prefix}/share'
777datadir='${datarootdir}'
778sysconfdir='${prefix}/etc'
779sharedstatedir='${prefix}/com'
780localstatedir='${prefix}/var'
781includedir='${prefix}/include'
782oldincludedir='/usr/include'
783docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784infodir='${datarootdir}/info'
785htmldir='${docdir}'
786dvidir='${docdir}'
787pdfdir='${docdir}'
788psdir='${docdir}'
789libdir='${exec_prefix}/lib'
790localedir='${datarootdir}/locale'
791mandir='${datarootdir}/man'
792
793ac_prev=
794ac_dashdash=
795for ac_option
796do
797  # If the previous option needs an argument, assign it.
798  if test -n "$ac_prev"; then
799    eval $ac_prev=\$ac_option
800    ac_prev=
801    continue
802  fi
803
804  case $ac_option in
805  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806  *=)   ac_optarg= ;;
807  *)    ac_optarg=yes ;;
808  esac
809
810  # Accept the important Cygnus configure options, so we can diagnose typos.
811
812  case $ac_dashdash$ac_option in
813  --)
814    ac_dashdash=yes ;;
815
816  -bindir | --bindir | --bindi | --bind | --bin | --bi)
817    ac_prev=bindir ;;
818  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819    bindir=$ac_optarg ;;
820
821  -build | --build | --buil | --bui | --bu)
822    ac_prev=build_alias ;;
823  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824    build_alias=$ac_optarg ;;
825
826  -cache-file | --cache-file | --cache-fil | --cache-fi \
827  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828    ac_prev=cache_file ;;
829  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831    cache_file=$ac_optarg ;;
832
833  --config-cache | -C)
834    cache_file=config.cache ;;
835
836  -datadir | --datadir | --datadi | --datad)
837    ac_prev=datadir ;;
838  -datadir=* | --datadir=* | --datadi=* | --datad=*)
839    datadir=$ac_optarg ;;
840
841  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842  | --dataroo | --dataro | --datar)
843    ac_prev=datarootdir ;;
844  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846    datarootdir=$ac_optarg ;;
847
848  -disable-* | --disable-*)
849    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850    # Reject names that are not valid shell variable names.
851    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852      as_fn_error $? "invalid feature name: $ac_useropt"
853    ac_useropt_orig=$ac_useropt
854    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855    case $ac_user_opts in
856      *"
857"enable_$ac_useropt"
858"*) ;;
859      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860	 ac_unrecognized_sep=', ';;
861    esac
862    eval enable_$ac_useropt=no ;;
863
864  -docdir | --docdir | --docdi | --doc | --do)
865    ac_prev=docdir ;;
866  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867    docdir=$ac_optarg ;;
868
869  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870    ac_prev=dvidir ;;
871  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872    dvidir=$ac_optarg ;;
873
874  -enable-* | --enable-*)
875    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878      as_fn_error $? "invalid feature name: $ac_useropt"
879    ac_useropt_orig=$ac_useropt
880    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881    case $ac_user_opts in
882      *"
883"enable_$ac_useropt"
884"*) ;;
885      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886	 ac_unrecognized_sep=', ';;
887    esac
888    eval enable_$ac_useropt=\$ac_optarg ;;
889
890  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892  | --exec | --exe | --ex)
893    ac_prev=exec_prefix ;;
894  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896  | --exec=* | --exe=* | --ex=*)
897    exec_prefix=$ac_optarg ;;
898
899  -gas | --gas | --ga | --g)
900    # Obsolete; use --with-gas.
901    with_gas=yes ;;
902
903  -help | --help | --hel | --he | -h)
904    ac_init_help=long ;;
905  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906    ac_init_help=recursive ;;
907  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908    ac_init_help=short ;;
909
910  -host | --host | --hos | --ho)
911    ac_prev=host_alias ;;
912  -host=* | --host=* | --hos=* | --ho=*)
913    host_alias=$ac_optarg ;;
914
915  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916    ac_prev=htmldir ;;
917  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918  | --ht=*)
919    htmldir=$ac_optarg ;;
920
921  -includedir | --includedir | --includedi | --included | --include \
922  | --includ | --inclu | --incl | --inc)
923    ac_prev=includedir ;;
924  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925  | --includ=* | --inclu=* | --incl=* | --inc=*)
926    includedir=$ac_optarg ;;
927
928  -infodir | --infodir | --infodi | --infod | --info | --inf)
929    ac_prev=infodir ;;
930  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931    infodir=$ac_optarg ;;
932
933  -libdir | --libdir | --libdi | --libd)
934    ac_prev=libdir ;;
935  -libdir=* | --libdir=* | --libdi=* | --libd=*)
936    libdir=$ac_optarg ;;
937
938  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939  | --libexe | --libex | --libe)
940    ac_prev=libexecdir ;;
941  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942  | --libexe=* | --libex=* | --libe=*)
943    libexecdir=$ac_optarg ;;
944
945  -localedir | --localedir | --localedi | --localed | --locale)
946    ac_prev=localedir ;;
947  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948    localedir=$ac_optarg ;;
949
950  -localstatedir | --localstatedir | --localstatedi | --localstated \
951  | --localstate | --localstat | --localsta | --localst | --locals)
952    ac_prev=localstatedir ;;
953  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955    localstatedir=$ac_optarg ;;
956
957  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958    ac_prev=mandir ;;
959  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960    mandir=$ac_optarg ;;
961
962  -nfp | --nfp | --nf)
963    # Obsolete; use --without-fp.
964    with_fp=no ;;
965
966  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967  | --no-cr | --no-c | -n)
968    no_create=yes ;;
969
970  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972    no_recursion=yes ;;
973
974  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976  | --oldin | --oldi | --old | --ol | --o)
977    ac_prev=oldincludedir ;;
978  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981    oldincludedir=$ac_optarg ;;
982
983  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984    ac_prev=prefix ;;
985  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986    prefix=$ac_optarg ;;
987
988  -program-prefix | --program-prefix | --program-prefi | --program-pref \
989  | --program-pre | --program-pr | --program-p)
990    ac_prev=program_prefix ;;
991  -program-prefix=* | --program-prefix=* | --program-prefi=* \
992  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993    program_prefix=$ac_optarg ;;
994
995  -program-suffix | --program-suffix | --program-suffi | --program-suff \
996  | --program-suf | --program-su | --program-s)
997    ac_prev=program_suffix ;;
998  -program-suffix=* | --program-suffix=* | --program-suffi=* \
999  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000    program_suffix=$ac_optarg ;;
1001
1002  -program-transform-name | --program-transform-name \
1003  | --program-transform-nam | --program-transform-na \
1004  | --program-transform-n | --program-transform- \
1005  | --program-transform | --program-transfor \
1006  | --program-transfo | --program-transf \
1007  | --program-trans | --program-tran \
1008  | --progr-tra | --program-tr | --program-t)
1009    ac_prev=program_transform_name ;;
1010  -program-transform-name=* | --program-transform-name=* \
1011  | --program-transform-nam=* | --program-transform-na=* \
1012  | --program-transform-n=* | --program-transform-=* \
1013  | --program-transform=* | --program-transfor=* \
1014  | --program-transfo=* | --program-transf=* \
1015  | --program-trans=* | --program-tran=* \
1016  | --progr-tra=* | --program-tr=* | --program-t=*)
1017    program_transform_name=$ac_optarg ;;
1018
1019  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020    ac_prev=pdfdir ;;
1021  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022    pdfdir=$ac_optarg ;;
1023
1024  -psdir | --psdir | --psdi | --psd | --ps)
1025    ac_prev=psdir ;;
1026  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027    psdir=$ac_optarg ;;
1028
1029  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030  | -silent | --silent | --silen | --sile | --sil)
1031    silent=yes ;;
1032
1033  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034    ac_prev=sbindir ;;
1035  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036  | --sbi=* | --sb=*)
1037    sbindir=$ac_optarg ;;
1038
1039  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041  | --sharedst | --shareds | --shared | --share | --shar \
1042  | --sha | --sh)
1043    ac_prev=sharedstatedir ;;
1044  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047  | --sha=* | --sh=*)
1048    sharedstatedir=$ac_optarg ;;
1049
1050  -site | --site | --sit)
1051    ac_prev=site ;;
1052  -site=* | --site=* | --sit=*)
1053    site=$ac_optarg ;;
1054
1055  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056    ac_prev=srcdir ;;
1057  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058    srcdir=$ac_optarg ;;
1059
1060  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061  | --syscon | --sysco | --sysc | --sys | --sy)
1062    ac_prev=sysconfdir ;;
1063  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065    sysconfdir=$ac_optarg ;;
1066
1067  -target | --target | --targe | --targ | --tar | --ta | --t)
1068    ac_prev=target_alias ;;
1069  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070    target_alias=$ac_optarg ;;
1071
1072  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073    verbose=yes ;;
1074
1075  -version | --version | --versio | --versi | --vers | -V)
1076    ac_init_version=: ;;
1077
1078  -with-* | --with-*)
1079    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080    # Reject names that are not valid shell variable names.
1081    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082      as_fn_error $? "invalid package name: $ac_useropt"
1083    ac_useropt_orig=$ac_useropt
1084    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085    case $ac_user_opts in
1086      *"
1087"with_$ac_useropt"
1088"*) ;;
1089      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090	 ac_unrecognized_sep=', ';;
1091    esac
1092    eval with_$ac_useropt=\$ac_optarg ;;
1093
1094  -without-* | --without-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=no ;;
1109
1110  --x)
1111    # Obsolete; use --with-x.
1112    with_x=yes ;;
1113
1114  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115  | --x-incl | --x-inc | --x-in | --x-i)
1116    ac_prev=x_includes ;;
1117  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119    x_includes=$ac_optarg ;;
1120
1121  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123    ac_prev=x_libraries ;;
1124  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126    x_libraries=$ac_optarg ;;
1127
1128  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129Try \`$0 --help' for more information"
1130    ;;
1131
1132  *=*)
1133    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134    # Reject names that are not valid shell variable names.
1135    case $ac_envvar in #(
1136      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138    esac
1139    eval $ac_envvar=\$ac_optarg
1140    export $ac_envvar ;;
1141
1142  *)
1143    # FIXME: should be removed in autoconf 3.0.
1144    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148    ;;
1149
1150  esac
1151done
1152
1153if test -n "$ac_prev"; then
1154  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155  as_fn_error $? "missing argument to $ac_option"
1156fi
1157
1158if test -n "$ac_unrecognized_opts"; then
1159  case $enable_option_checking in
1160    no) ;;
1161    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163  esac
1164fi
1165
1166# Check all directory arguments for consistency.
1167for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168		datadir sysconfdir sharedstatedir localstatedir includedir \
1169		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170		libdir localedir mandir
1171do
1172  eval ac_val=\$$ac_var
1173  # Remove trailing slashes.
1174  case $ac_val in
1175    */ )
1176      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177      eval $ac_var=\$ac_val;;
1178  esac
1179  # Be sure to have absolute directory names.
1180  case $ac_val in
1181    [\\/$]* | ?:[\\/]* )  continue;;
1182    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183  esac
1184  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185done
1186
1187# There might be people who depend on the old broken behavior: `$host'
1188# used to hold the argument of --host etc.
1189# FIXME: To remove some day.
1190build=$build_alias
1191host=$host_alias
1192target=$target_alias
1193
1194# FIXME: To remove some day.
1195if test "x$host_alias" != x; then
1196  if test "x$build_alias" = x; then
1197    cross_compiling=maybe
1198  elif test "x$build_alias" != "x$host_alias"; then
1199    cross_compiling=yes
1200  fi
1201fi
1202
1203ac_tool_prefix=
1204test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205
1206test "$silent" = yes && exec 6>/dev/null
1207
1208
1209ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210ac_ls_di=`ls -di .` &&
1211ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212  as_fn_error $? "working directory cannot be determined"
1213test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214  as_fn_error $? "pwd does not report name of working directory"
1215
1216
1217# Find the source files, if location was not specified.
1218if test -z "$srcdir"; then
1219  ac_srcdir_defaulted=yes
1220  # Try the directory containing this script, then the parent directory.
1221  ac_confdir=`$as_dirname -- "$as_myself" ||
1222$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223	 X"$as_myself" : 'X\(//\)[^/]' \| \
1224	 X"$as_myself" : 'X\(//\)$' \| \
1225	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1226$as_echo X"$as_myself" |
1227    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228	    s//\1/
1229	    q
1230	  }
1231	  /^X\(\/\/\)[^/].*/{
1232	    s//\1/
1233	    q
1234	  }
1235	  /^X\(\/\/\)$/{
1236	    s//\1/
1237	    q
1238	  }
1239	  /^X\(\/\).*/{
1240	    s//\1/
1241	    q
1242	  }
1243	  s/.*/./; q'`
1244  srcdir=$ac_confdir
1245  if test ! -r "$srcdir/$ac_unique_file"; then
1246    srcdir=..
1247  fi
1248else
1249  ac_srcdir_defaulted=no
1250fi
1251if test ! -r "$srcdir/$ac_unique_file"; then
1252  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1254fi
1255ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256ac_abs_confdir=`(
1257	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258	pwd)`
1259# When building in place, set srcdir=.
1260if test "$ac_abs_confdir" = "$ac_pwd"; then
1261  srcdir=.
1262fi
1263# Remove unnecessary trailing slashes from srcdir.
1264# Double slashes in file names in object file debugging info
1265# mess up M-x gdb in Emacs.
1266case $srcdir in
1267*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268esac
1269for ac_var in $ac_precious_vars; do
1270  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271  eval ac_env_${ac_var}_value=\$${ac_var}
1272  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274done
1275
1276#
1277# Report the --help message.
1278#
1279if test "$ac_init_help" = "long"; then
1280  # Omit some internal or obsolete options to make the list less imposing.
1281  # This message is too long to be a string in the A/UX 3.1 sh.
1282  cat <<_ACEOF
1283\`configure' configures muparser 2.2.4 to adapt to many kinds of systems.
1284
1285Usage: $0 [OPTION]... [VAR=VALUE]...
1286
1287To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288VAR=VALUE.  See below for descriptions of some of the useful variables.
1289
1290Defaults for the options are specified in brackets.
1291
1292Configuration:
1293  -h, --help              display this help and exit
1294      --help=short        display options specific to this package
1295      --help=recursive    display the short help of all the included packages
1296  -V, --version           display version information and exit
1297  -q, --quiet, --silent   do not print \`checking ...' messages
1298      --cache-file=FILE   cache test results in FILE [disabled]
1299  -C, --config-cache      alias for \`--cache-file=config.cache'
1300  -n, --no-create         do not create output files
1301      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1302
1303Installation directories:
1304  --prefix=PREFIX         install architecture-independent files in PREFIX
1305                          [$ac_default_prefix]
1306  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1307                          [PREFIX]
1308
1309By default, \`make install' will install all the files in
1310\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1311an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312for instance \`--prefix=\$HOME'.
1313
1314For better control, use the options below.
1315
1316Fine tuning of the installation directories:
1317  --bindir=DIR            user executables [EPREFIX/bin]
1318  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1319  --libexecdir=DIR        program executables [EPREFIX/libexec]
1320  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1321  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1322  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1323  --libdir=DIR            object code libraries [EPREFIX/lib]
1324  --includedir=DIR        C header files [PREFIX/include]
1325  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1326  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1327  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1328  --infodir=DIR           info documentation [DATAROOTDIR/info]
1329  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1330  --mandir=DIR            man documentation [DATAROOTDIR/man]
1331  --docdir=DIR            documentation root [DATAROOTDIR/doc/muparser]
1332  --htmldir=DIR           html documentation [DOCDIR]
1333  --dvidir=DIR            dvi documentation [DOCDIR]
1334  --pdfdir=DIR            pdf documentation [DOCDIR]
1335  --psdir=DIR             ps documentation [DOCDIR]
1336_ACEOF
1337
1338  cat <<\_ACEOF
1339
1340System types:
1341  --build=BUILD     configure for building on BUILD [guessed]
1342  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1343  --target=TARGET   configure for building compilers for TARGET [HOST]
1344_ACEOF
1345fi
1346
1347if test -n "$ac_init_help"; then
1348  case $ac_init_help in
1349     short | recursive ) echo "Configuration of muparser 2.2.4:";;
1350   esac
1351  cat <<\_ACEOF
1352
1353Optional Features:
1354  --disable-option-checking  ignore unrecognized --enable/--with options
1355  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357  --enable-debug          Builds in debug mode
1358  --enable-shared         Builds in shared mode
1359  --enable-samples        Builds the library samples, too
1360  --enable-omf            use OMF object format (OS/2)
1361  --disable-dependency-tracking
1362                          don't use dependency tracking even if the compiler
1363                          can
1364
1365Some influential environment variables:
1366  CC          C compiler command
1367  CFLAGS      C compiler flags
1368  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1369              nonstandard directory <lib dir>
1370  LIBS        libraries to pass to the linker, e.g. -l<library>
1371  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372              you have headers in a nonstandard directory <include dir>
1373  CXX         C++ compiler command
1374  CXXFLAGS    C++ compiler flags
1375  CXXCPP      C++ preprocessor
1376
1377Use these variables to override the choices made by `configure' or to help
1378it to find libraries and programs with nonstandard names/locations.
1379
1380Report bugs to <muparser@beltoforion.de>.
1381_ACEOF
1382ac_status=$?
1383fi
1384
1385if test "$ac_init_help" = "recursive"; then
1386  # If there are subdirs, report their specific --help.
1387  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388    test -d "$ac_dir" ||
1389      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1390      continue
1391    ac_builddir=.
1392
1393case "$ac_dir" in
1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395*)
1396  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1397  # A ".." for each directory in $ac_dir_suffix.
1398  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1399  case $ac_top_builddir_sub in
1400  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402  esac ;;
1403esac
1404ac_abs_top_builddir=$ac_pwd
1405ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406# for backward compatibility:
1407ac_top_builddir=$ac_top_build_prefix
1408
1409case $srcdir in
1410  .)  # We are building in place.
1411    ac_srcdir=.
1412    ac_top_srcdir=$ac_top_builddir_sub
1413    ac_abs_top_srcdir=$ac_pwd ;;
1414  [\\/]* | ?:[\\/]* )  # Absolute name.
1415    ac_srcdir=$srcdir$ac_dir_suffix;
1416    ac_top_srcdir=$srcdir
1417    ac_abs_top_srcdir=$srcdir ;;
1418  *) # Relative name.
1419    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420    ac_top_srcdir=$ac_top_build_prefix$srcdir
1421    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422esac
1423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425    cd "$ac_dir" || { ac_status=$?; continue; }
1426    # Check for guested configure.
1427    if test -f "$ac_srcdir/configure.gnu"; then
1428      echo &&
1429      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430    elif test -f "$ac_srcdir/configure"; then
1431      echo &&
1432      $SHELL "$ac_srcdir/configure" --help=recursive
1433    else
1434      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435    fi || ac_status=$?
1436    cd "$ac_pwd" || { ac_status=$?; break; }
1437  done
1438fi
1439
1440test -n "$ac_init_help" && exit $ac_status
1441if $ac_init_version; then
1442  cat <<\_ACEOF
1443muparser configure 2.2.4
1444generated by GNU Autoconf 2.69
1445
1446Copyright (C) 2012 Free Software Foundation, Inc.
1447This configure script is free software; the Free Software Foundation
1448gives unlimited permission to copy, distribute and modify it.
1449_ACEOF
1450  exit
1451fi
1452
1453## ------------------------ ##
1454## Autoconf initialization. ##
1455## ------------------------ ##
1456
1457# ac_fn_c_try_compile LINENO
1458# --------------------------
1459# Try to compile conftest.$ac_ext, and return whether this succeeded.
1460ac_fn_c_try_compile ()
1461{
1462  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463  rm -f conftest.$ac_objext
1464  if { { ac_try="$ac_compile"
1465case "(($ac_try" in
1466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467  *) ac_try_echo=$ac_try;;
1468esac
1469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470$as_echo "$ac_try_echo"; } >&5
1471  (eval "$ac_compile") 2>conftest.err
1472  ac_status=$?
1473  if test -s conftest.err; then
1474    grep -v '^ *+' conftest.err >conftest.er1
1475    cat conftest.er1 >&5
1476    mv -f conftest.er1 conftest.err
1477  fi
1478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479  test $ac_status = 0; } && {
1480	 test -z "$ac_c_werror_flag" ||
1481	 test ! -s conftest.err
1482       } && test -s conftest.$ac_objext; then :
1483  ac_retval=0
1484else
1485  $as_echo "$as_me: failed program was:" >&5
1486sed 's/^/| /' conftest.$ac_ext >&5
1487
1488	ac_retval=1
1489fi
1490  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1491  as_fn_set_status $ac_retval
1492
1493} # ac_fn_c_try_compile
1494
1495# ac_fn_cxx_try_compile LINENO
1496# ----------------------------
1497# Try to compile conftest.$ac_ext, and return whether this succeeded.
1498ac_fn_cxx_try_compile ()
1499{
1500  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501  rm -f conftest.$ac_objext
1502  if { { ac_try="$ac_compile"
1503case "(($ac_try" in
1504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505  *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509  (eval "$ac_compile") 2>conftest.err
1510  ac_status=$?
1511  if test -s conftest.err; then
1512    grep -v '^ *+' conftest.err >conftest.er1
1513    cat conftest.er1 >&5
1514    mv -f conftest.er1 conftest.err
1515  fi
1516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517  test $ac_status = 0; } && {
1518	 test -z "$ac_cxx_werror_flag" ||
1519	 test ! -s conftest.err
1520       } && test -s conftest.$ac_objext; then :
1521  ac_retval=0
1522else
1523  $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526	ac_retval=1
1527fi
1528  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529  as_fn_set_status $ac_retval
1530
1531} # ac_fn_cxx_try_compile
1532
1533# ac_fn_cxx_try_cpp LINENO
1534# ------------------------
1535# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_cxx_try_cpp ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  if { { ac_try="$ac_cpp conftest.$ac_ext"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } > conftest.i && {
1555	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1556	 test ! -s conftest.err
1557       }; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563    ac_retval=1
1564fi
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_cxx_try_cpp
1569cat >config.log <<_ACEOF
1570This file contains any messages produced by compilers while
1571running configure, to aid debugging if configure makes a mistake.
1572
1573It was created by muparser $as_me 2.2.4, which was
1574generated by GNU Autoconf 2.69.  Invocation command line was
1575
1576  $ $0 $@
1577
1578_ACEOF
1579exec 5>>config.log
1580{
1581cat <<_ASUNAME
1582## --------- ##
1583## Platform. ##
1584## --------- ##
1585
1586hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591
1592/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1594
1595/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1596/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1597/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1599/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1600/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1601/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1602
1603_ASUNAME
1604
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608  IFS=$as_save_IFS
1609  test -z "$as_dir" && as_dir=.
1610    $as_echo "PATH: $as_dir"
1611  done
1612IFS=$as_save_IFS
1613
1614} >&5
1615
1616cat >&5 <<_ACEOF
1617
1618
1619## ----------- ##
1620## Core tests. ##
1621## ----------- ##
1622
1623_ACEOF
1624
1625
1626# Keep a trace of the command line.
1627# Strip out --no-create and --no-recursion so they do not pile up.
1628# Strip out --silent because we don't want to record it for future runs.
1629# Also quote any args containing shell meta-characters.
1630# Make two passes to allow for proper duplicate-argument suppression.
1631ac_configure_args=
1632ac_configure_args0=
1633ac_configure_args1=
1634ac_must_keep_next=false
1635for ac_pass in 1 2
1636do
1637  for ac_arg
1638  do
1639    case $ac_arg in
1640    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642    | -silent | --silent | --silen | --sile | --sil)
1643      continue ;;
1644    *\'*)
1645      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646    esac
1647    case $ac_pass in
1648    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1649    2)
1650      as_fn_append ac_configure_args1 " '$ac_arg'"
1651      if test $ac_must_keep_next = true; then
1652	ac_must_keep_next=false # Got value, back to normal.
1653      else
1654	case $ac_arg in
1655	  *=* | --config-cache | -C | -disable-* | --disable-* \
1656	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658	  | -with-* | --with-* | -without-* | --without-* | --x)
1659	    case "$ac_configure_args0 " in
1660	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661	    esac
1662	    ;;
1663	  -* ) ac_must_keep_next=true ;;
1664	esac
1665      fi
1666      as_fn_append ac_configure_args " '$ac_arg'"
1667      ;;
1668    esac
1669  done
1670done
1671{ ac_configure_args0=; unset ac_configure_args0;}
1672{ ac_configure_args1=; unset ac_configure_args1;}
1673
1674# When interrupted or exit'd, cleanup temporary files, and complete
1675# config.log.  We remove comments because anyway the quotes in there
1676# would cause problems or look ugly.
1677# WARNING: Use '\'' to represent an apostrophe within the trap.
1678# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679trap 'exit_status=$?
1680  # Save into config.log some information that might help in debugging.
1681  {
1682    echo
1683
1684    $as_echo "## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##"
1687    echo
1688    # The following way of writing the cache mishandles newlines in values,
1689(
1690  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691    eval ac_val=\$$ac_var
1692    case $ac_val in #(
1693    *${as_nl}*)
1694      case $ac_var in #(
1695      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1696$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1697      esac
1698      case $ac_var in #(
1699      _ | IFS | as_nl) ;; #(
1700      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1701      *) { eval $ac_var=; unset $ac_var;} ;;
1702      esac ;;
1703    esac
1704  done
1705  (set) 2>&1 |
1706    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707    *${as_nl}ac_space=\ *)
1708      sed -n \
1709	"s/'\''/'\''\\\\'\'''\''/g;
1710	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711      ;; #(
1712    *)
1713      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714      ;;
1715    esac |
1716    sort
1717)
1718    echo
1719
1720    $as_echo "## ----------------- ##
1721## Output variables. ##
1722## ----------------- ##"
1723    echo
1724    for ac_var in $ac_subst_vars
1725    do
1726      eval ac_val=\$$ac_var
1727      case $ac_val in
1728      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729      esac
1730      $as_echo "$ac_var='\''$ac_val'\''"
1731    done | sort
1732    echo
1733
1734    if test -n "$ac_subst_files"; then
1735      $as_echo "## ------------------- ##
1736## File substitutions. ##
1737## ------------------- ##"
1738      echo
1739      for ac_var in $ac_subst_files
1740      do
1741	eval ac_val=\$$ac_var
1742	case $ac_val in
1743	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744	esac
1745	$as_echo "$ac_var='\''$ac_val'\''"
1746      done | sort
1747      echo
1748    fi
1749
1750    if test -s confdefs.h; then
1751      $as_echo "## ----------- ##
1752## confdefs.h. ##
1753## ----------- ##"
1754      echo
1755      cat confdefs.h
1756      echo
1757    fi
1758    test "$ac_signal" != 0 &&
1759      $as_echo "$as_me: caught signal $ac_signal"
1760    $as_echo "$as_me: exit $exit_status"
1761  } >&5
1762  rm -f core *.core core.conftest.* &&
1763    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1764    exit $exit_status
1765' 0
1766for ac_signal in 1 2 13 15; do
1767  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1768done
1769ac_signal=0
1770
1771# confdefs.h avoids OS command line length limits that DEFS can exceed.
1772rm -f -r conftest* confdefs.h
1773
1774$as_echo "/* confdefs.h */" > confdefs.h
1775
1776# Predefined preprocessor variables.
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_NAME "$PACKAGE_NAME"
1780_ACEOF
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784_ACEOF
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_VERSION "$PACKAGE_VERSION"
1788_ACEOF
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_STRING "$PACKAGE_STRING"
1792_ACEOF
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796_ACEOF
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_URL "$PACKAGE_URL"
1800_ACEOF
1801
1802
1803# Let the site file select an alternate cache file if it wants to.
1804# Prefer an explicitly selected file to automatically selected ones.
1805ac_site_file1=NONE
1806ac_site_file2=NONE
1807if test -n "$CONFIG_SITE"; then
1808  # We do not want a PATH search for config.site.
1809  case $CONFIG_SITE in #((
1810    -*)  ac_site_file1=./$CONFIG_SITE;;
1811    */*) ac_site_file1=$CONFIG_SITE;;
1812    *)   ac_site_file1=./$CONFIG_SITE;;
1813  esac
1814elif test "x$prefix" != xNONE; then
1815  ac_site_file1=$prefix/share/config.site
1816  ac_site_file2=$prefix/etc/config.site
1817else
1818  ac_site_file1=$ac_default_prefix/share/config.site
1819  ac_site_file2=$ac_default_prefix/etc/config.site
1820fi
1821for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1822do
1823  test "x$ac_site_file" = xNONE && continue
1824  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1826$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1827    sed 's/^/| /' "$ac_site_file" >&5
1828    . "$ac_site_file" \
1829      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831as_fn_error $? "failed to load site script $ac_site_file
1832See \`config.log' for more details" "$LINENO" 5; }
1833  fi
1834done
1835
1836if test -r "$cache_file"; then
1837  # Some versions of bash will fail to source /dev/null (special files
1838  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1839  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1841$as_echo "$as_me: loading cache $cache_file" >&6;}
1842    case $cache_file in
1843      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844      *)                      . "./$cache_file";;
1845    esac
1846  fi
1847else
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1849$as_echo "$as_me: creating cache $cache_file" >&6;}
1850  >$cache_file
1851fi
1852
1853# Check that the precious variables saved in the cache have kept the same
1854# value.
1855ac_cache_corrupted=false
1856for ac_var in $ac_precious_vars; do
1857  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858  eval ac_new_set=\$ac_env_${ac_var}_set
1859  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860  eval ac_new_val=\$ac_env_${ac_var}_value
1861  case $ac_old_set,$ac_new_set in
1862    set,)
1863      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865      ac_cache_corrupted=: ;;
1866    ,set)
1867      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1868$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869      ac_cache_corrupted=: ;;
1870    ,);;
1871    *)
1872      if test "x$ac_old_val" != "x$ac_new_val"; then
1873	# differences in whitespace do not lead to failure.
1874	ac_old_val_w=`echo x $ac_old_val`
1875	ac_new_val_w=`echo x $ac_new_val`
1876	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1877	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1878$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879	  ac_cache_corrupted=:
1880	else
1881	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1882$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1883	  eval $ac_var=\$ac_old_val
1884	fi
1885	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1886$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1887	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1888$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1889      fi;;
1890  esac
1891  # Pass precious variables to config.status.
1892  if test "$ac_new_set" = set; then
1893    case $ac_new_val in
1894    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895    *) ac_arg=$ac_var=$ac_new_val ;;
1896    esac
1897    case " $ac_configure_args " in
1898      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1899      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1900    esac
1901  fi
1902done
1903if $ac_cache_corrupted; then
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1907$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1909fi
1910## -------------------- ##
1911## Main body of script. ##
1912## -------------------- ##
1913
1914ac_ext=c
1915ac_cpp='$CPP $CPPFLAGS'
1916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919
1920
1921
1922
1923ac_aux_dir=
1924for ac_dir in build/autoconf "$srcdir"/build/autoconf; do
1925  if test -f "$ac_dir/install-sh"; then
1926    ac_aux_dir=$ac_dir
1927    ac_install_sh="$ac_aux_dir/install-sh -c"
1928    break
1929  elif test -f "$ac_dir/install.sh"; then
1930    ac_aux_dir=$ac_dir
1931    ac_install_sh="$ac_aux_dir/install.sh -c"
1932    break
1933  elif test -f "$ac_dir/shtool"; then
1934    ac_aux_dir=$ac_dir
1935    ac_install_sh="$ac_aux_dir/shtool install -c"
1936    break
1937  fi
1938done
1939if test -z "$ac_aux_dir"; then
1940  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autoconf \"$srcdir\"/build/autoconf" "$LINENO" 5
1941fi
1942
1943# These three variables are undocumented and unsupported,
1944# and are intended to be withdrawn in a future Autoconf release.
1945# They can cause serious problems if a builder's source tree is in a directory
1946# whose full name contains unusual characters.
1947ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1948ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1949ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1950
1951
1952ac_ext=cpp
1953ac_cpp='$CXXCPP $CPPFLAGS'
1954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1957
1958
1959# some helpers
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981## CONFIGURE CHECKS
1982#####################################################################
1983
1984# Make sure we can run config.sub.
1985$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1986  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1987
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1989$as_echo_n "checking build system type... " >&6; }
1990if ${ac_cv_build+:} false; then :
1991  $as_echo_n "(cached) " >&6
1992else
1993  ac_build_alias=$build_alias
1994test "x$ac_build_alias" = x &&
1995  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1996test "x$ac_build_alias" = x &&
1997  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1998ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1999  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2000
2001fi
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2003$as_echo "$ac_cv_build" >&6; }
2004case $ac_cv_build in
2005*-*-*) ;;
2006*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2007esac
2008build=$ac_cv_build
2009ac_save_IFS=$IFS; IFS='-'
2010set x $ac_cv_build
2011shift
2012build_cpu=$1
2013build_vendor=$2
2014shift; shift
2015# Remember, the first character of IFS is used to create $*,
2016# except with old shells:
2017build_os=$*
2018IFS=$ac_save_IFS
2019case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2020
2021
2022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2023$as_echo_n "checking host system type... " >&6; }
2024if ${ac_cv_host+:} false; then :
2025  $as_echo_n "(cached) " >&6
2026else
2027  if test "x$host_alias" = x; then
2028  ac_cv_host=$ac_cv_build
2029else
2030  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2031    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2032fi
2033
2034fi
2035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2036$as_echo "$ac_cv_host" >&6; }
2037case $ac_cv_host in
2038*-*-*) ;;
2039*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2040esac
2041host=$ac_cv_host
2042ac_save_IFS=$IFS; IFS='-'
2043set x $ac_cv_host
2044shift
2045host_cpu=$1
2046host_vendor=$2
2047shift; shift
2048# Remember, the first character of IFS is used to create $*,
2049# except with old shells:
2050host_os=$*
2051IFS=$ac_save_IFS
2052case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2053
2054
2055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2056$as_echo_n "checking target system type... " >&6; }
2057if ${ac_cv_target+:} false; then :
2058  $as_echo_n "(cached) " >&6
2059else
2060  if test "x$target_alias" = x; then
2061  ac_cv_target=$ac_cv_host
2062else
2063  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2064    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2065fi
2066
2067fi
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2069$as_echo "$ac_cv_target" >&6; }
2070case $ac_cv_target in
2071*-*-*) ;;
2072*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2073esac
2074target=$ac_cv_target
2075ac_save_IFS=$IFS; IFS='-'
2076set x $ac_cv_target
2077shift
2078target_cpu=$1
2079target_vendor=$2
2080shift; shift
2081# Remember, the first character of IFS is used to create $*,
2082# except with old shells:
2083target_os=$*
2084IFS=$ac_save_IFS
2085case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2086
2087
2088# The aliases save the names the user supplied, while $host etc.
2089# will get canonicalized.
2090test -n "$target_alias" &&
2091  test "$program_prefix$program_suffix$program_transform_name" = \
2092    NONENONEs,x,x, &&
2093  program_prefix=${target_alias}-
2094
2095
2096# We want to inhibit AC_PROG_C* macros adding the default "-g -O2" flags.
2097# To do so, make sure that the variables are not unset - it is ok if they are
2098# empty. However, their value MUST be retained, since one may have
2099# called ./configure CFLAGS=-foobar.
2100CFLAGS="$CFLAGS"
2101CPPFLAGS="$CPPFLAGS"
2102CXXFLAGS="$CXXFLAGS"
2103
2104for ac_prog in gawk mawk nawk awk
2105do
2106  # Extract the first word of "$ac_prog", so it can be a program name with args.
2107set dummy $ac_prog; ac_word=$2
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2109$as_echo_n "checking for $ac_word... " >&6; }
2110if ${ac_cv_prog_AWK+:} false; then :
2111  $as_echo_n "(cached) " >&6
2112else
2113  if test -n "$AWK"; then
2114  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  test -z "$as_dir" && as_dir=.
2121    for ac_exec_ext in '' $ac_executable_extensions; do
2122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123    ac_cv_prog_AWK="$ac_prog"
2124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2125    break 2
2126  fi
2127done
2128  done
2129IFS=$as_save_IFS
2130
2131fi
2132fi
2133AWK=$ac_cv_prog_AWK
2134if test -n "$AWK"; then
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2136$as_echo "$AWK" >&6; }
2137else
2138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2139$as_echo "no" >&6; }
2140fi
2141
2142
2143  test -n "$AWK" && break
2144done
2145
2146# Find a good install program.  We prefer a C program (faster),
2147# so one script is as good as another.  But avoid the broken or
2148# incompatible versions:
2149# SysV /etc/install, /usr/sbin/install
2150# SunOS /usr/etc/install
2151# IRIX /sbin/install
2152# AIX /bin/install
2153# AmigaOS /C/install, which installs bootblocks on floppy discs
2154# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2155# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2156# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2157# OS/2's system install, which has a completely different semantic
2158# ./install, which can be erroneously created by make from ./install.sh.
2159# Reject install programs that cannot install multiple files.
2160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2161$as_echo_n "checking for a BSD-compatible install... " >&6; }
2162if test -z "$INSTALL"; then
2163if ${ac_cv_path_install+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165else
2166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171    # Account for people who put trailing slashes in PATH elements.
2172case $as_dir/ in #((
2173  ./ | .// | /[cC]/* | \
2174  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2175  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2176  /usr/ucb/* ) ;;
2177  *)
2178    # OSF1 and SCO ODT 3.0 have their own names for install.
2179    # Don't use installbsd from OSF since it installs stuff as root
2180    # by default.
2181    for ac_prog in ginstall scoinst install; do
2182      for ac_exec_ext in '' $ac_executable_extensions; do
2183	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2184	  if test $ac_prog = install &&
2185	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186	    # AIX install.  It has an incompatible calling convention.
2187	    :
2188	  elif test $ac_prog = install &&
2189	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2190	    # program-specific install script used by HP pwplus--don't use.
2191	    :
2192	  else
2193	    rm -rf conftest.one conftest.two conftest.dir
2194	    echo one > conftest.one
2195	    echo two > conftest.two
2196	    mkdir conftest.dir
2197	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2198	      test -s conftest.one && test -s conftest.two &&
2199	      test -s conftest.dir/conftest.one &&
2200	      test -s conftest.dir/conftest.two
2201	    then
2202	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2203	      break 3
2204	    fi
2205	  fi
2206	fi
2207      done
2208    done
2209    ;;
2210esac
2211
2212  done
2213IFS=$as_save_IFS
2214
2215rm -rf conftest.one conftest.two conftest.dir
2216
2217fi
2218  if test "${ac_cv_path_install+set}" = set; then
2219    INSTALL=$ac_cv_path_install
2220  else
2221    # As a last resort, use the slow shell script.  Don't cache a
2222    # value for INSTALL within a source directory, because that will
2223    # break other packages using the cache if that directory is
2224    # removed, or if the value is a relative name.
2225    INSTALL=$ac_install_sh
2226  fi
2227fi
2228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2229$as_echo "$INSTALL" >&6; }
2230
2231# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2232# It thinks the first close brace ends the variable substitution.
2233test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2234
2235test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2236
2237test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2238
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2240$as_echo_n "checking whether ln -s works... " >&6; }
2241LN_S=$as_ln_s
2242if test "$LN_S" = "ln -s"; then
2243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2244$as_echo "yes" >&6; }
2245else
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2247$as_echo "no, using $LN_S" >&6; }
2248fi
2249
2250if test -n "$ac_tool_prefix"; then
2251  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2252set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2254$as_echo_n "checking for $ac_word... " >&6; }
2255if ${ac_cv_prog_RANLIB+:} false; then :
2256  $as_echo_n "(cached) " >&6
2257else
2258  if test -n "$RANLIB"; then
2259  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260else
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266    for ac_exec_ext in '' $ac_executable_extensions; do
2267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2270    break 2
2271  fi
2272done
2273  done
2274IFS=$as_save_IFS
2275
2276fi
2277fi
2278RANLIB=$ac_cv_prog_RANLIB
2279if test -n "$RANLIB"; then
2280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2281$as_echo "$RANLIB" >&6; }
2282else
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2284$as_echo "no" >&6; }
2285fi
2286
2287
2288fi
2289if test -z "$ac_cv_prog_RANLIB"; then
2290  ac_ct_RANLIB=$RANLIB
2291  # Extract the first word of "ranlib", so it can be a program name with args.
2292set dummy ranlib; ac_word=$2
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294$as_echo_n "checking for $ac_word... " >&6; }
2295if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2296  $as_echo_n "(cached) " >&6
2297else
2298  if test -n "$ac_ct_RANLIB"; then
2299  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306    for ac_exec_ext in '' $ac_executable_extensions; do
2307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308    ac_cv_prog_ac_ct_RANLIB="ranlib"
2309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2310    break 2
2311  fi
2312done
2313  done
2314IFS=$as_save_IFS
2315
2316fi
2317fi
2318ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2319if test -n "$ac_ct_RANLIB"; then
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2321$as_echo "$ac_ct_RANLIB" >&6; }
2322else
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324$as_echo "no" >&6; }
2325fi
2326
2327  if test "x$ac_ct_RANLIB" = x; then
2328    RANLIB=":"
2329  else
2330    case $cross_compiling:$ac_tool_warned in
2331yes:)
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2334ac_tool_warned=yes ;;
2335esac
2336    RANLIB=$ac_ct_RANLIB
2337  fi
2338else
2339  RANLIB="$ac_cv_prog_RANLIB"
2340fi
2341
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347if test -n "$ac_tool_prefix"; then
2348  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349set dummy ${ac_tool_prefix}gcc; ac_word=$2
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351$as_echo_n "checking for $ac_word... " >&6; }
2352if ${ac_cv_prog_CC+:} false; then :
2353  $as_echo_n "(cached) " >&6
2354else
2355  if test -n "$CC"; then
2356  ac_cv_prog_CC="$CC" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361  IFS=$as_save_IFS
2362  test -z "$as_dir" && as_dir=.
2363    for ac_exec_ext in '' $ac_executable_extensions; do
2364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367    break 2
2368  fi
2369done
2370  done
2371IFS=$as_save_IFS
2372
2373fi
2374fi
2375CC=$ac_cv_prog_CC
2376if test -n "$CC"; then
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378$as_echo "$CC" >&6; }
2379else
2380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381$as_echo "no" >&6; }
2382fi
2383
2384
2385fi
2386if test -z "$ac_cv_prog_CC"; then
2387  ac_ct_CC=$CC
2388  # Extract the first word of "gcc", so it can be a program name with args.
2389set dummy gcc; ac_word=$2
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391$as_echo_n "checking for $ac_word... " >&6; }
2392if ${ac_cv_prog_ac_ct_CC+:} false; then :
2393  $as_echo_n "(cached) " >&6
2394else
2395  if test -n "$ac_ct_CC"; then
2396  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397else
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    for ac_exec_ext in '' $ac_executable_extensions; do
2404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405    ac_cv_prog_ac_ct_CC="gcc"
2406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407    break 2
2408  fi
2409done
2410  done
2411IFS=$as_save_IFS
2412
2413fi
2414fi
2415ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416if test -n "$ac_ct_CC"; then
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2418$as_echo "$ac_ct_CC" >&6; }
2419else
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421$as_echo "no" >&6; }
2422fi
2423
2424  if test "x$ac_ct_CC" = x; then
2425    CC=""
2426  else
2427    case $cross_compiling:$ac_tool_warned in
2428yes:)
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2431ac_tool_warned=yes ;;
2432esac
2433    CC=$ac_ct_CC
2434  fi
2435else
2436  CC="$ac_cv_prog_CC"
2437fi
2438
2439if test -z "$CC"; then
2440          if test -n "$ac_tool_prefix"; then
2441    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2442set dummy ${ac_tool_prefix}cc; ac_word=$2
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
2445if ${ac_cv_prog_CC+:} false; then :
2446  $as_echo_n "(cached) " >&6
2447else
2448  if test -n "$CC"; then
2449  ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    for ac_exec_ext in '' $ac_executable_extensions; do
2457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458    ac_cv_prog_CC="${ac_tool_prefix}cc"
2459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460    break 2
2461  fi
2462done
2463  done
2464IFS=$as_save_IFS
2465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471$as_echo "$CC" >&6; }
2472else
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474$as_echo "no" >&6; }
2475fi
2476
2477
2478  fi
2479fi
2480if test -z "$CC"; then
2481  # Extract the first word of "cc", so it can be a program name with args.
2482set dummy cc; ac_word=$2
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484$as_echo_n "checking for $ac_word... " >&6; }
2485if ${ac_cv_prog_CC+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487else
2488  if test -n "$CC"; then
2489  ac_cv_prog_CC="$CC" # Let the user override the test.
2490else
2491  ac_prog_rejected=no
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_exec_ext in '' $ac_executable_extensions; do
2498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500       ac_prog_rejected=yes
2501       continue
2502     fi
2503    ac_cv_prog_CC="cc"
2504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508  done
2509IFS=$as_save_IFS
2510
2511if test $ac_prog_rejected = yes; then
2512  # We found a bogon in the path, so make sure we never use it.
2513  set dummy $ac_cv_prog_CC
2514  shift
2515  if test $# != 0; then
2516    # We chose a different compiler from the bogus one.
2517    # However, it has the same basename, so the bogon will be chosen
2518    # first if we set CC to just the basename; use the full file name.
2519    shift
2520    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2521  fi
2522fi
2523fi
2524fi
2525CC=$ac_cv_prog_CC
2526if test -n "$CC"; then
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528$as_echo "$CC" >&6; }
2529else
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
2532fi
2533
2534
2535fi
2536if test -z "$CC"; then
2537  if test -n "$ac_tool_prefix"; then
2538  for ac_prog in cl.exe
2539  do
2540    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543$as_echo_n "checking for $ac_word... " >&6; }
2544if ${ac_cv_prog_CC+:} false; then :
2545  $as_echo_n "(cached) " >&6
2546else
2547  if test -n "$CC"; then
2548  ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553  IFS=$as_save_IFS
2554  test -z "$as_dir" && as_dir=.
2555    for ac_exec_ext in '' $ac_executable_extensions; do
2556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559    break 2
2560  fi
2561done
2562  done
2563IFS=$as_save_IFS
2564
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570$as_echo "$CC" >&6; }
2571else
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
2574fi
2575
2576
2577    test -n "$CC" && break
2578  done
2579fi
2580if test -z "$CC"; then
2581  ac_ct_CC=$CC
2582  for ac_prog in cl.exe
2583do
2584  # Extract the first word of "$ac_prog", so it can be a program name with args.
2585set dummy $ac_prog; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if ${ac_cv_prog_ac_ct_CC+:} false; then :
2589  $as_echo_n "(cached) " >&6
2590else
2591  if test -n "$ac_ct_CC"; then
2592  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  test -z "$as_dir" && as_dir=.
2599    for ac_exec_ext in '' $ac_executable_extensions; do
2600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601    ac_cv_prog_ac_ct_CC="$ac_prog"
2602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603    break 2
2604  fi
2605done
2606  done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612if test -n "$ac_ct_CC"; then
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2614$as_echo "$ac_ct_CC" >&6; }
2615else
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618fi
2619
2620
2621  test -n "$ac_ct_CC" && break
2622done
2623
2624  if test "x$ac_ct_CC" = x; then
2625    CC=""
2626  else
2627    case $cross_compiling:$ac_tool_warned in
2628yes:)
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631ac_tool_warned=yes ;;
2632esac
2633    CC=$ac_ct_CC
2634  fi
2635fi
2636
2637fi
2638
2639
2640test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642as_fn_error $? "no acceptable C compiler found in \$PATH
2643See \`config.log' for more details" "$LINENO" 5; }
2644
2645# Provide some information about the compiler.
2646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2647set X $ac_compile
2648ac_compiler=$2
2649for ac_option in --version -v -V -qversion; do
2650  { { ac_try="$ac_compiler $ac_option >&5"
2651case "(($ac_try" in
2652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653  *) ac_try_echo=$ac_try;;
2654esac
2655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656$as_echo "$ac_try_echo"; } >&5
2657  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2658  ac_status=$?
2659  if test -s conftest.err; then
2660    sed '10a\
2661... rest of stderr output deleted ...
2662         10q' conftest.err >conftest.er1
2663    cat conftest.er1 >&5
2664  fi
2665  rm -f conftest.er1 conftest.err
2666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667  test $ac_status = 0; }
2668done
2669
2670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671/* end confdefs.h.  */
2672
2673int
2674main ()
2675{
2676
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681ac_clean_files_save=$ac_clean_files
2682ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2683# Try to create an executable without -o first, disregard a.out.
2684# It will help us diagnose broken compilers, and finding out an intuition
2685# of exeext.
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2687$as_echo_n "checking whether the C compiler works... " >&6; }
2688ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2689
2690# The possible output files:
2691ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2692
2693ac_rmfiles=
2694for ac_file in $ac_files
2695do
2696  case $ac_file in
2697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2698    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2699  esac
2700done
2701rm -f $ac_rmfiles
2702
2703if { { ac_try="$ac_link_default"
2704case "(($ac_try" in
2705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706  *) ac_try_echo=$ac_try;;
2707esac
2708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709$as_echo "$ac_try_echo"; } >&5
2710  (eval "$ac_link_default") 2>&5
2711  ac_status=$?
2712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713  test $ac_status = 0; }; then :
2714  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2717# so that the user can short-circuit this test for compilers unknown to
2718# Autoconf.
2719for ac_file in $ac_files ''
2720do
2721  test -f "$ac_file" || continue
2722  case $ac_file in
2723    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2724	;;
2725    [ab].out )
2726	# We found the default executable, but exeext='' is most
2727	# certainly right.
2728	break;;
2729    *.* )
2730	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731	then :; else
2732	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733	fi
2734	# We set ac_cv_exeext here because the later test for it is not
2735	# safe: cross compilers may not add the suffix if given an `-o'
2736	# argument, so we may need to know it at that point already.
2737	# Even if this section looks crufty: it has the advantage of
2738	# actually working.
2739	break;;
2740    * )
2741	break;;
2742  esac
2743done
2744test "$ac_cv_exeext" = no && ac_cv_exeext=
2745
2746else
2747  ac_file=''
2748fi
2749if test -z "$ac_file"; then :
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
2752$as_echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757as_fn_error 77 "C compiler cannot create executables
2758See \`config.log' for more details" "$LINENO" 5; }
2759else
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761$as_echo "yes" >&6; }
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2764$as_echo_n "checking for C compiler default output file name... " >&6; }
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2766$as_echo "$ac_file" >&6; }
2767ac_exeext=$ac_cv_exeext
2768
2769rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2770ac_clean_files=$ac_clean_files_save
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2772$as_echo_n "checking for suffix of executables... " >&6; }
2773if { { ac_try="$ac_link"
2774case "(($ac_try" in
2775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776  *) ac_try_echo=$ac_try;;
2777esac
2778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779$as_echo "$ac_try_echo"; } >&5
2780  (eval "$ac_link") 2>&5
2781  ac_status=$?
2782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783  test $ac_status = 0; }; then :
2784  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2785# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2786# work properly (i.e., refer to `conftest.exe'), while it won't with
2787# `rm'.
2788for ac_file in conftest.exe conftest conftest.*; do
2789  test -f "$ac_file" || continue
2790  case $ac_file in
2791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2792    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793	  break;;
2794    * ) break;;
2795  esac
2796done
2797else
2798  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2801See \`config.log' for more details" "$LINENO" 5; }
2802fi
2803rm -f conftest conftest$ac_cv_exeext
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2805$as_echo "$ac_cv_exeext" >&6; }
2806
2807rm -f conftest.$ac_ext
2808EXEEXT=$ac_cv_exeext
2809ac_exeext=$EXEEXT
2810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811/* end confdefs.h.  */
2812#include <stdio.h>
2813int
2814main ()
2815{
2816FILE *f = fopen ("conftest.out", "w");
2817 return ferror (f) || fclose (f) != 0;
2818
2819  ;
2820  return 0;
2821}
2822_ACEOF
2823ac_clean_files="$ac_clean_files conftest.out"
2824# Check that the compiler produces executables we can run.  If not, either
2825# the compiler is broken, or we cross compile.
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2827$as_echo_n "checking whether we are cross compiling... " >&6; }
2828if test "$cross_compiling" != yes; then
2829  { { ac_try="$ac_link"
2830case "(($ac_try" in
2831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832  *) ac_try_echo=$ac_try;;
2833esac
2834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835$as_echo "$ac_try_echo"; } >&5
2836  (eval "$ac_link") 2>&5
2837  ac_status=$?
2838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839  test $ac_status = 0; }
2840  if { ac_try='./conftest$ac_cv_exeext'
2841  { { case "(($ac_try" in
2842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843  *) ac_try_echo=$ac_try;;
2844esac
2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846$as_echo "$ac_try_echo"; } >&5
2847  (eval "$ac_try") 2>&5
2848  ac_status=$?
2849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850  test $ac_status = 0; }; }; then
2851    cross_compiling=no
2852  else
2853    if test "$cross_compiling" = maybe; then
2854	cross_compiling=yes
2855    else
2856	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858as_fn_error $? "cannot run C compiled programs.
2859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details" "$LINENO" 5; }
2861    fi
2862  fi
2863fi
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2865$as_echo "$cross_compiling" >&6; }
2866
2867rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2868ac_clean_files=$ac_clean_files_save
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2870$as_echo_n "checking for suffix of object files... " >&6; }
2871if ${ac_cv_objext+:} false; then :
2872  $as_echo_n "(cached) " >&6
2873else
2874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885rm -f conftest.o conftest.obj
2886if { { ac_try="$ac_compile"
2887case "(($ac_try" in
2888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889  *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893  (eval "$ac_compile") 2>&5
2894  ac_status=$?
2895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896  test $ac_status = 0; }; then :
2897  for ac_file in conftest.o conftest.obj conftest.*; do
2898  test -f "$ac_file" || continue;
2899  case $ac_file in
2900    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2901    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2902       break;;
2903  esac
2904done
2905else
2906  $as_echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911as_fn_error $? "cannot compute suffix of object files: cannot compile
2912See \`config.log' for more details" "$LINENO" 5; }
2913fi
2914rm -f conftest.$ac_cv_objext conftest.$ac_ext
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2917$as_echo "$ac_cv_objext" >&6; }
2918OBJEXT=$ac_cv_objext
2919ac_objext=$OBJEXT
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2921$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2922if ${ac_cv_c_compiler_gnu+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931#ifndef __GNUC__
2932       choke me
2933#endif
2934
2935  ;
2936  return 0;
2937}
2938_ACEOF
2939if ac_fn_c_try_compile "$LINENO"; then :
2940  ac_compiler_gnu=yes
2941else
2942  ac_compiler_gnu=no
2943fi
2944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945ac_cv_c_compiler_gnu=$ac_compiler_gnu
2946
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2949$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2950if test $ac_compiler_gnu = yes; then
2951  GCC=yes
2952else
2953  GCC=
2954fi
2955ac_test_CFLAGS=${CFLAGS+set}
2956ac_save_CFLAGS=$CFLAGS
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2958$as_echo_n "checking whether $CC accepts -g... " >&6; }
2959if ${ac_cv_prog_cc_g+:} false; then :
2960  $as_echo_n "(cached) " >&6
2961else
2962  ac_save_c_werror_flag=$ac_c_werror_flag
2963   ac_c_werror_flag=yes
2964   ac_cv_prog_cc_g=no
2965   CFLAGS="-g"
2966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967/* end confdefs.h.  */
2968
2969int
2970main ()
2971{
2972
2973  ;
2974  return 0;
2975}
2976_ACEOF
2977if ac_fn_c_try_compile "$LINENO"; then :
2978  ac_cv_prog_cc_g=yes
2979else
2980  CFLAGS=""
2981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982/* end confdefs.h.  */
2983
2984int
2985main ()
2986{
2987
2988  ;
2989  return 0;
2990}
2991_ACEOF
2992if ac_fn_c_try_compile "$LINENO"; then :
2993
2994else
2995  ac_c_werror_flag=$ac_save_c_werror_flag
2996	 CFLAGS="-g"
2997	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h.  */
2999
3000int
3001main ()
3002{
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008if ac_fn_c_try_compile "$LINENO"; then :
3009  ac_cv_prog_cc_g=yes
3010fi
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012fi
3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014fi
3015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016   ac_c_werror_flag=$ac_save_c_werror_flag
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3019$as_echo "$ac_cv_prog_cc_g" >&6; }
3020if test "$ac_test_CFLAGS" = set; then
3021  CFLAGS=$ac_save_CFLAGS
3022elif test $ac_cv_prog_cc_g = yes; then
3023  if test "$GCC" = yes; then
3024    CFLAGS="-g -O2"
3025  else
3026    CFLAGS="-g"
3027  fi
3028else
3029  if test "$GCC" = yes; then
3030    CFLAGS="-O2"
3031  else
3032    CFLAGS=
3033  fi
3034fi
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3036$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3037if ${ac_cv_prog_cc_c89+:} false; then :
3038  $as_echo_n "(cached) " >&6
3039else
3040  ac_cv_prog_cc_c89=no
3041ac_save_CC=$CC
3042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h.  */
3044#include <stdarg.h>
3045#include <stdio.h>
3046struct stat;
3047/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3048struct buf { int x; };
3049FILE * (*rcsopen) (struct buf *, struct stat *, int);
3050static char *e (p, i)
3051     char **p;
3052     int i;
3053{
3054  return p[i];
3055}
3056static char *f (char * (*g) (char **, int), char **p, ...)
3057{
3058  char *s;
3059  va_list v;
3060  va_start (v,p);
3061  s = g (p, va_arg (v,int));
3062  va_end (v);
3063  return s;
3064}
3065
3066/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3067   function prototypes and stuff, but not '\xHH' hex character constants.
3068   These don't provoke an error unfortunately, instead are silently treated
3069   as 'x'.  The following induces an error, until -std is added to get
3070   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3071   array size at least.  It's necessary to write '\x00'==0 to get something
3072   that's true only with -std.  */
3073int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3074
3075/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3076   inside strings and character constants.  */
3077#define FOO(x) 'x'
3078int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3079
3080int test (int i, double x);
3081struct s1 {int (*f) (int a);};
3082struct s2 {int (*f) (double a);};
3083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3084int argc;
3085char **argv;
3086int
3087main ()
3088{
3089return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3095	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3096do
3097  CC="$ac_save_CC $ac_arg"
3098  if ac_fn_c_try_compile "$LINENO"; then :
3099  ac_cv_prog_cc_c89=$ac_arg
3100fi
3101rm -f core conftest.err conftest.$ac_objext
3102  test "x$ac_cv_prog_cc_c89" != "xno" && break
3103done
3104rm -f conftest.$ac_ext
3105CC=$ac_save_CC
3106
3107fi
3108# AC_CACHE_VAL
3109case "x$ac_cv_prog_cc_c89" in
3110  x)
3111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3112$as_echo "none needed" >&6; } ;;
3113  xno)
3114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3115$as_echo "unsupported" >&6; } ;;
3116  *)
3117    CC="$CC $ac_cv_prog_cc_c89"
3118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3119$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3120esac
3121if test "x$ac_cv_prog_cc_c89" != xno; then :
3122
3123fi
3124
3125ac_ext=cpp
3126ac_cpp='$CXXCPP $CPPFLAGS'
3127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3130
3131ac_ext=cpp
3132ac_cpp='$CXXCPP $CPPFLAGS'
3133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3136if test -z "$CXX"; then
3137  if test -n "$CCC"; then
3138    CXX=$CCC
3139  else
3140    if test -n "$ac_tool_prefix"; then
3141  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3142  do
3143    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if ${ac_cv_prog_CXX+:} false; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  if test -n "$CXX"; then
3151  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158    for ac_exec_ext in '' $ac_executable_extensions; do
3159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165  done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170CXX=$ac_cv_prog_CXX
3171if test -n "$CXX"; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3173$as_echo "$CXX" >&6; }
3174else
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179
3180    test -n "$CXX" && break
3181  done
3182fi
3183if test -z "$CXX"; then
3184  ac_ct_CXX=$CXX
3185  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3186do
3187  # Extract the first word of "$ac_prog", so it can be a program name with args.
3188set dummy $ac_prog; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$ac_ct_CXX"; then
3195  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202    for ac_exec_ext in '' $ac_executable_extensions; do
3203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    ac_cv_prog_ac_ct_CXX="$ac_prog"
3205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209  done
3210IFS=$as_save_IFS
3211
3212fi
3213fi
3214ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3215if test -n "$ac_ct_CXX"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3217$as_echo "$ac_ct_CXX" >&6; }
3218else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221fi
3222
3223
3224  test -n "$ac_ct_CXX" && break
3225done
3226
3227  if test "x$ac_ct_CXX" = x; then
3228    CXX="g++"
3229  else
3230    case $cross_compiling:$ac_tool_warned in
3231yes:)
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234ac_tool_warned=yes ;;
3235esac
3236    CXX=$ac_ct_CXX
3237  fi
3238fi
3239
3240  fi
3241fi
3242# Provide some information about the compiler.
3243$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3244set X $ac_compile
3245ac_compiler=$2
3246for ac_option in --version -v -V -qversion; do
3247  { { ac_try="$ac_compiler $ac_option >&5"
3248case "(($ac_try" in
3249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250  *) ac_try_echo=$ac_try;;
3251esac
3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253$as_echo "$ac_try_echo"; } >&5
3254  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3255  ac_status=$?
3256  if test -s conftest.err; then
3257    sed '10a\
3258... rest of stderr output deleted ...
3259         10q' conftest.err >conftest.er1
3260    cat conftest.er1 >&5
3261  fi
3262  rm -f conftest.er1 conftest.err
3263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264  test $ac_status = 0; }
3265done
3266
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3268$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3269if ${ac_cv_cxx_compiler_gnu+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278#ifndef __GNUC__
3279       choke me
3280#endif
3281
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286if ac_fn_cxx_try_compile "$LINENO"; then :
3287  ac_compiler_gnu=yes
3288else
3289  ac_compiler_gnu=no
3290fi
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3293
3294fi
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3296$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3297if test $ac_compiler_gnu = yes; then
3298  GXX=yes
3299else
3300  GXX=
3301fi
3302ac_test_CXXFLAGS=${CXXFLAGS+set}
3303ac_save_CXXFLAGS=$CXXFLAGS
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3305$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3306if ${ac_cv_prog_cxx_g+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3310   ac_cxx_werror_flag=yes
3311   ac_cv_prog_cxx_g=no
3312   CXXFLAGS="-g"
3313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324if ac_fn_cxx_try_compile "$LINENO"; then :
3325  ac_cv_prog_cxx_g=yes
3326else
3327  CXXFLAGS=""
3328      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339if ac_fn_cxx_try_compile "$LINENO"; then :
3340
3341else
3342  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3343	 CXXFLAGS="-g"
3344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346
3347int
3348main ()
3349{
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355if ac_fn_cxx_try_compile "$LINENO"; then :
3356  ac_cv_prog_cxx_g=yes
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3366$as_echo "$ac_cv_prog_cxx_g" >&6; }
3367if test "$ac_test_CXXFLAGS" = set; then
3368  CXXFLAGS=$ac_save_CXXFLAGS
3369elif test $ac_cv_prog_cxx_g = yes; then
3370  if test "$GXX" = yes; then
3371    CXXFLAGS="-g -O2"
3372  else
3373    CXXFLAGS="-g"
3374  fi
3375else
3376  if test "$GXX" = yes; then
3377    CXXFLAGS="-O2"
3378  else
3379    CXXFLAGS=
3380  fi
3381fi
3382ac_ext=cpp
3383ac_cpp='$CXXCPP $CPPFLAGS'
3384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3387
3388ac_ext=cpp
3389ac_cpp='$CXXCPP $CPPFLAGS'
3390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3394$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3395if test -z "$CXXCPP"; then
3396  if ${ac_cv_prog_CXXCPP+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399      # Double quotes because CXXCPP needs to be expanded
3400    for CXXCPP in "$CXX -E" "/lib/cpp"
3401    do
3402      ac_preproc_ok=false
3403for ac_cxx_preproc_warn_flag in '' yes
3404do
3405  # Use a header file that comes with gcc, so configuring glibc
3406  # with a fresh cross-compiler works.
3407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408  # <limits.h> exists even on freestanding compilers.
3409  # On the NeXT, cc -E runs the code through the compiler's parser,
3410  # not just through cpp. "Syntax error" is here to catch this case.
3411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413#ifdef __STDC__
3414# include <limits.h>
3415#else
3416# include <assert.h>
3417#endif
3418		     Syntax error
3419_ACEOF
3420if ac_fn_cxx_try_cpp "$LINENO"; then :
3421
3422else
3423  # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.i conftest.$ac_ext
3427
3428  # OK, works on sane cases.  Now check whether nonexistent headers
3429  # can be detected and how.
3430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#include <ac_nonexistent.h>
3433_ACEOF
3434if ac_fn_cxx_try_cpp "$LINENO"; then :
3435  # Broken: success on invalid input.
3436continue
3437else
3438  # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
3442rm -f conftest.err conftest.i conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.i conftest.err conftest.$ac_ext
3447if $ac_preproc_ok; then :
3448  break
3449fi
3450
3451    done
3452    ac_cv_prog_CXXCPP=$CXXCPP
3453
3454fi
3455  CXXCPP=$ac_cv_prog_CXXCPP
3456else
3457  ac_cv_prog_CXXCPP=$CXXCPP
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3460$as_echo "$CXXCPP" >&6; }
3461ac_preproc_ok=false
3462for ac_cxx_preproc_warn_flag in '' yes
3463do
3464  # Use a header file that comes with gcc, so configuring glibc
3465  # with a fresh cross-compiler works.
3466  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467  # <limits.h> exists even on freestanding compilers.
3468  # On the NeXT, cc -E runs the code through the compiler's parser,
3469  # not just through cpp. "Syntax error" is here to catch this case.
3470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h.  */
3472#ifdef __STDC__
3473# include <limits.h>
3474#else
3475# include <assert.h>
3476#endif
3477		     Syntax error
3478_ACEOF
3479if ac_fn_cxx_try_cpp "$LINENO"; then :
3480
3481else
3482  # Broken: fails on valid input.
3483continue
3484fi
3485rm -f conftest.err conftest.i conftest.$ac_ext
3486
3487  # OK, works on sane cases.  Now check whether nonexistent headers
3488  # can be detected and how.
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491#include <ac_nonexistent.h>
3492_ACEOF
3493if ac_fn_cxx_try_cpp "$LINENO"; then :
3494  # Broken: success on invalid input.
3495continue
3496else
3497  # Passes both tests.
3498ac_preproc_ok=:
3499break
3500fi
3501rm -f conftest.err conftest.i conftest.$ac_ext
3502
3503done
3504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3505rm -f conftest.i conftest.err conftest.$ac_ext
3506if $ac_preproc_ok; then :
3507
3508else
3509  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3512See \`config.log' for more details" "$LINENO" 5; }
3513fi
3514
3515ac_ext=cpp
3516ac_cpp='$CXXCPP $CPPFLAGS'
3517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3520
3521
3522
3523
3524    default="no"
3525    if [ -z "$default" ]; then
3526        default="no"
3527    fi
3528
3529    # Check whether --enable-debug was given.
3530if test "${enable_debug+set}" = set; then :
3531  enableval=$enable_debug;
3532else
3533  enableval="$default"
3534fi
3535
3536
3537
3538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --enable-debug option" >&5
3539$as_echo_n "checking for the --enable-debug option... " >&6; }
3540    if [ "x$enableval" = "xyes" ]; then
3541        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542$as_echo "yes" >&6; }
3543        DEBUG=1
3544    else
3545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547        DEBUG=0
3548    fi
3549
3550
3551        if [ "x$DEBUG" = "x1" ]; then
3552
3553                                                my_CXXFLAGS="$my_CXXFLAGS -g -O0 -Wall -Wundef -Wno-ctor-dtor-privacy"
3554        my_CFLAGS="$my_CFLAGS -g -O0 -Wall -Wundef"
3555    else
3556        my_CXXFLAGS="$my_CXXFLAGS -O2"
3557        my_CFLAGS="$my_CFLAGS -O2"
3558    fi
3559    # User-supplied CXXFLAGS must always take precedence.
3560    # This still sucks because using `make CFLAGS=-foobar` kills
3561    # the project-supplied flags again.
3562    CXXFLAGS="$my_CXXFLAGS $CXXFLAGS"
3563    CFLAGS="$my_CFLAGS $CFLAGS"
3564
3565
3566    default="yes"
3567    if [ -z "$default" ]; then
3568        default="no"
3569    fi
3570
3571    # Check whether --enable-shared was given.
3572if test "${enable_shared+set}" = set; then :
3573  enableval=$enable_shared;
3574else
3575  enableval="$default"
3576fi
3577
3578
3579
3580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --enable-shared option" >&5
3581$as_echo_n "checking for the --enable-shared option... " >&6; }
3582    if [ "x$enableval" = "xyes" ]; then
3583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3584$as_echo "yes" >&6; }
3585        SHARED=1
3586    else
3587        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589        SHARED=0
3590    fi
3591
3592
3593
3594# Check whether --enable-samples was given.
3595if test "${enable_samples+set}" = set; then :
3596  enableval=$enable_samples;
3597else
3598  enableval="yes"
3599fi
3600
3601
3602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --enable-samples option" >&5
3603$as_echo_n "checking for the --enable-samples option... " >&6; }
3604    if [ "x$enableval" = "xyes" ]; then
3605        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3606$as_echo "yes" >&6; }
3607        SAMPLES=1
3608    else
3609        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611        SAMPLES=0
3612    fi
3613
3614
3615as_dir=lib; as_fn_mkdir_p
3616as_dir=samples/example1; as_fn_mkdir_p
3617
3618
3619
3620
3621
3622
3623
3624
3625    ac_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
3631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C compiler" >&5
3632$as_echo_n "checking whether we are using the Intel C compiler... " >&6; }
3633if ${bakefile_cv_c_compiler___INTEL_COMPILER+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638
3639int
3640main ()
3641{
3642
3643             #ifndef __INTEL_COMPILER
3644                choke me
3645             #endif
3646
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651if ac_fn_c_try_compile "$LINENO"; then :
3652  bakefile_cv_c_compiler___INTEL_COMPILER=yes
3653else
3654  bakefile_cv_c_compiler___INTEL_COMPILER=no
3655
3656fi
3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658
3659
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
3662$as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
3663    if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
3664        :; INTELCC=yes
3665    else
3666        :;
3667    fi
3668    ac_ext=cpp
3669ac_cpp='$CXXCPP $CPPFLAGS'
3670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3673
3674
3675
3676
3677        if test "$INTELCC" = "yes"; then
3678
3679
3680    ac_ext=c
3681ac_cpp='$CPP $CPPFLAGS'
3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v8 or later" >&5
3687$as_echo_n "checking whether we are using Intel C compiler v8 or later... " >&6; }
3688if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h.  */
3693
3694int
3695main ()
3696{
3697
3698             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
3699                choke me
3700             #endif
3701
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706if ac_fn_c_try_compile "$LINENO"; then :
3707  bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
3708else
3709  bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
3710
3711fi
3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713
3714
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
3717$as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
3718    if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
3719        :; INTELCC8=yes
3720    else
3721        :;
3722    fi
3723    ac_ext=cpp
3724ac_cpp='$CXXCPP $CPPFLAGS'
3725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3728
3729
3730
3731
3732
3733    ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v10 or later" >&5
3740$as_echo_n "checking whether we are using Intel C compiler v10 or later... " >&6; }
3741if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+:} false; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
3752                choke me
3753             #endif
3754
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759if ac_fn_c_try_compile "$LINENO"; then :
3760  bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
3761else
3762  bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
3763
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766
3767
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
3770$as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
3771    if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
3772        :; INTELCC10=yes
3773    else
3774        :;
3775    fi
3776    ac_ext=cpp
3777ac_cpp='$CXXCPP $CPPFLAGS'
3778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3781
3782
3783
3784    fi
3785
3786        if test "x$GCC" != "xyes"; then
3787        if test "xCC" = "xC"; then
3788            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler requires -ext o" >&5
3789$as_echo_n "checking if the C++ compiler requires -ext o... " >&6; }
3790if ${bakefile_cv_cxx_exto+:} false; then :
3791  $as_echo_n "(cached) " >&6
3792else
3793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h.  */
3795
3796int
3797main ()
3798{
3799
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext conftest.$ac_ext.o
3805if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3806  (eval $ac_compile) 2>&5
3807  ac_status=$?
3808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809  test $ac_status = 0; }; then :
3810  for ac_file in `(ls conftest.* 2>/dev/null)`; do
3811    case $ac_file in
3812        conftest.$ac_ext.o)
3813            bakefile_cv_cxx_exto="-ext o"
3814            ;;
3815        *)
3816            ;;
3817    esac
3818done
3819else
3820  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot figure out if compiler needs -ext o: cannot compile
3823See \`config.log' for more details" "$LINENO" 5; }
3824
3825fi
3826rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
3827
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_exto" >&5
3830$as_echo "$bakefile_cv_cxx_exto" >&6; }
3831if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
3832    if test "cxx" = "c"; then
3833        CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
3834    fi
3835    if test "cxx" = "cxx"; then
3836        CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
3837    fi
3838fi
3839
3840            if test "x$bakefile_cv_c_exto" '!=' "x"; then
3841                unset ac_cv_prog_cc_g
3842                ac_test_CFLAGS=${CFLAGS+set}
3843ac_save_CFLAGS=$CFLAGS
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3845$as_echo_n "checking whether $CC accepts -g... " >&6; }
3846if ${ac_cv_prog_cc_g+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  ac_save_c_werror_flag=$ac_c_werror_flag
3850   ac_c_werror_flag=yes
3851   ac_cv_prog_cc_g=no
3852   CFLAGS="-g"
3853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h.  */
3855
3856int
3857main ()
3858{
3859
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864if ac_fn_cxx_try_compile "$LINENO"; then :
3865  ac_cv_prog_cc_g=yes
3866else
3867  CFLAGS=""
3868      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h.  */
3870
3871int
3872main ()
3873{
3874
3875  ;
3876  return 0;
3877}
3878_ACEOF
3879if ac_fn_cxx_try_compile "$LINENO"; then :
3880
3881else
3882  ac_c_werror_flag=$ac_save_c_werror_flag
3883	 CFLAGS="-g"
3884	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886
3887int
3888main ()
3889{
3890
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895if ac_fn_cxx_try_compile "$LINENO"; then :
3896  ac_cv_prog_cc_g=yes
3897fi
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903   ac_c_werror_flag=$ac_save_c_werror_flag
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3906$as_echo "$ac_cv_prog_cc_g" >&6; }
3907if test "$ac_test_CFLAGS" = set; then
3908  CFLAGS=$ac_save_CFLAGS
3909elif test $ac_cv_prog_cc_g = yes; then
3910  if test "$GCC" = yes; then
3911    CFLAGS="-g -O2"
3912  else
3913    CFLAGS="-g"
3914  fi
3915else
3916  if test "$GCC" = yes; then
3917    CFLAGS="-O2"
3918  else
3919    CFLAGS=
3920  fi
3921fi
3922            fi
3923        fi
3924
3925                        case `uname -s` in
3926            AIX*)
3927
3928
3929    ac_ext=c
3930ac_cpp='$CPP $CPPFLAGS'
3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934
3935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
3936$as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
3937if ${bakefile_cv_c_compiler___xlC__+:} false; then :
3938  $as_echo_n "(cached) " >&6
3939else
3940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h.  */
3942
3943int
3944main ()
3945{
3946
3947             #ifndef __xlC__
3948                choke me
3949             #endif
3950
3951  ;
3952  return 0;
3953}
3954_ACEOF
3955if ac_fn_c_try_compile "$LINENO"; then :
3956  bakefile_cv_c_compiler___xlC__=yes
3957else
3958  bakefile_cv_c_compiler___xlC__=no
3959
3960fi
3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962
3963
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
3966$as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
3967    if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
3968        :; XLCC=yes
3969    else
3970        :;
3971    fi
3972    ac_ext=cpp
3973ac_cpp='$CXXCPP $CPPFLAGS'
3974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3977
3978
3979
3980                ;;
3981
3982            Darwin)
3983
3984
3985    ac_ext=c
3986ac_cpp='$CPP $CPPFLAGS'
3987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990
3991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Metrowerks C compiler" >&5
3992$as_echo_n "checking whether we are using the Metrowerks C compiler... " >&6; }
3993if ${bakefile_cv_c_compiler___MWERKS__+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h.  */
3998
3999int
4000main ()
4001{
4002
4003             #ifndef __MWERKS__
4004                choke me
4005             #endif
4006
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011if ac_fn_c_try_compile "$LINENO"; then :
4012  bakefile_cv_c_compiler___MWERKS__=yes
4013else
4014  bakefile_cv_c_compiler___MWERKS__=no
4015
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018
4019
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___MWERKS__" >&5
4022$as_echo "$bakefile_cv_c_compiler___MWERKS__" >&6; }
4023    if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
4024        :; MWCC=yes
4025    else
4026        :;
4027    fi
4028    ac_ext=cpp
4029ac_cpp='$CXXCPP $CPPFLAGS'
4030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4033
4034
4035
4036                if test "$MWCC" != "yes"; then
4037
4038
4039    ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
4046$as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
4047if ${bakefile_cv_c_compiler___xlC__+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052
4053int
4054main ()
4055{
4056
4057             #ifndef __xlC__
4058                choke me
4059             #endif
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065if ac_fn_c_try_compile "$LINENO"; then :
4066  bakefile_cv_c_compiler___xlC__=yes
4067else
4068  bakefile_cv_c_compiler___xlC__=no
4069
4070fi
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072
4073
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
4076$as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
4077    if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
4078        :; XLCC=yes
4079    else
4080        :;
4081    fi
4082    ac_ext=cpp
4083ac_cpp='$CXXCPP $CPPFLAGS'
4084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4087
4088
4089
4090                fi
4091                ;;
4092
4093            IRIX*)
4094
4095
4096    ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C compiler" >&5
4103$as_echo_n "checking whether we are using the SGI C compiler... " >&6; }
4104if ${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+:} false; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109
4110int
4111main ()
4112{
4113
4114             #ifndef _SGI_COMPILER_VERSION
4115                choke me
4116             #endif
4117
4118  ;
4119  return 0;
4120}
4121_ACEOF
4122if ac_fn_c_try_compile "$LINENO"; then :
4123  bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
4124else
4125  bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
4126
4127fi
4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129
4130
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
4133$as_echo "$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
4134    if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
4135        :; SGICC=yes
4136    else
4137        :;
4138    fi
4139    ac_ext=cpp
4140ac_cpp='$CXXCPP $CPPFLAGS'
4141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4144
4145
4146
4147                ;;
4148
4149            Linux*)
4150                                                if test "$INTELCC" != "yes"; then
4151
4152
4153    ac_ext=c
4154ac_cpp='$CPP $CPPFLAGS'
4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158
4159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
4160$as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
4161if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166
4167int
4168main ()
4169{
4170
4171             #ifndef __SUNPRO_C
4172                choke me
4173             #endif
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180  bakefile_cv_c_compiler___SUNPRO_C=yes
4181else
4182  bakefile_cv_c_compiler___SUNPRO_C=no
4183
4184fi
4185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
4187
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
4190$as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
4191    if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
4192        :; SUNCC=yes
4193    else
4194        :;
4195    fi
4196    ac_ext=cpp
4197ac_cpp='$CXXCPP $CPPFLAGS'
4198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4201
4202
4203
4204                fi
4205                ;;
4206
4207            HP-UX*)
4208
4209
4210    ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C compiler" >&5
4217$as_echo_n "checking whether we are using the HP C compiler... " >&6; }
4218if ${bakefile_cv_c_compiler___HP_cc+:} false; then :
4219  $as_echo_n "(cached) " >&6
4220else
4221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222/* end confdefs.h.  */
4223
4224int
4225main ()
4226{
4227
4228             #ifndef __HP_cc
4229                choke me
4230             #endif
4231
4232  ;
4233  return 0;
4234}
4235_ACEOF
4236if ac_fn_c_try_compile "$LINENO"; then :
4237  bakefile_cv_c_compiler___HP_cc=yes
4238else
4239  bakefile_cv_c_compiler___HP_cc=no
4240
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243
4244
4245fi
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___HP_cc" >&5
4247$as_echo "$bakefile_cv_c_compiler___HP_cc" >&6; }
4248    if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
4249        :; HPCC=yes
4250    else
4251        :;
4252    fi
4253    ac_ext=cpp
4254ac_cpp='$CXXCPP $CPPFLAGS'
4255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4258
4259
4260
4261                ;;
4262
4263            OSF1)
4264
4265
4266    ac_ext=c
4267ac_cpp='$CPP $CPPFLAGS'
4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C compiler" >&5
4273$as_echo_n "checking whether we are using the Compaq C compiler... " >&6; }
4274if ${bakefile_cv_c_compiler___DECC+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279
4280int
4281main ()
4282{
4283
4284             #ifndef __DECC
4285                choke me
4286             #endif
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293  bakefile_cv_c_compiler___DECC=yes
4294else
4295  bakefile_cv_c_compiler___DECC=no
4296
4297fi
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299
4300
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___DECC" >&5
4303$as_echo "$bakefile_cv_c_compiler___DECC" >&6; }
4304    if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
4305        :; COMPAQCC=yes
4306    else
4307        :;
4308    fi
4309    ac_ext=cpp
4310ac_cpp='$CXXCPP $CPPFLAGS'
4311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4314
4315
4316
4317                ;;
4318
4319            SunOS)
4320
4321
4322    ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
4329$as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
4330if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335
4336int
4337main ()
4338{
4339
4340             #ifndef __SUNPRO_C
4341                choke me
4342             #endif
4343
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348if ac_fn_c_try_compile "$LINENO"; then :
4349  bakefile_cv_c_compiler___SUNPRO_C=yes
4350else
4351  bakefile_cv_c_compiler___SUNPRO_C=no
4352
4353fi
4354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356
4357fi
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
4359$as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
4360    if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
4361        :; SUNCC=yes
4362    else
4363        :;
4364    fi
4365    ac_ext=cpp
4366ac_cpp='$CXXCPP $CPPFLAGS'
4367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4370
4371
4372
4373                ;;
4374        esac
4375    fi
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385    ac_ext=cpp
4386ac_cpp='$CXXCPP $CPPFLAGS'
4387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4390
4391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C++ compiler" >&5
4392$as_echo_n "checking whether we are using the Intel C++ compiler... " >&6; }
4393if ${bakefile_cv_cxx_compiler___INTEL_COMPILER+:} false; then :
4394  $as_echo_n "(cached) " >&6
4395else
4396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h.  */
4398
4399int
4400main ()
4401{
4402
4403             #ifndef __INTEL_COMPILER
4404                choke me
4405             #endif
4406
4407  ;
4408  return 0;
4409}
4410_ACEOF
4411if ac_fn_cxx_try_compile "$LINENO"; then :
4412  bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
4413else
4414  bakefile_cv_cxx_compiler___INTEL_COMPILER=no
4415
4416fi
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418
4419
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
4422$as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
4423    if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
4424        :; INTELCXX=yes
4425    else
4426        :;
4427    fi
4428    ac_ext=cpp
4429ac_cpp='$CXXCPP $CPPFLAGS'
4430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4433
4434
4435
4436
4437        if test "$INTELCXX" = "yes"; then
4438
4439
4440    ac_ext=cpp
4441ac_cpp='$CXXCPP $CPPFLAGS'
4442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4445
4446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler v8 or later" >&5
4447$as_echo_n "checking whether we are using Intel C++ compiler v8 or later... " >&6; }
4448if ${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+:} false; then :
4449  $as_echo_n "(cached) " >&6
4450else
4451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453
4454int
4455main ()
4456{
4457
4458             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
4459                choke me
4460             #endif
4461
4462  ;
4463  return 0;
4464}
4465_ACEOF
4466if ac_fn_cxx_try_compile "$LINENO"; then :
4467  bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
4468else
4469  bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
4470
4471fi
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473
4474
4475fi
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
4477$as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
4478    if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
4479        :; INTELCXX8=yes
4480    else
4481        :;
4482    fi
4483    ac_ext=cpp
4484ac_cpp='$CXXCPP $CPPFLAGS'
4485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4488
4489
4490
4491
4492
4493    ac_ext=cpp
4494ac_cpp='$CXXCPP $CPPFLAGS'
4495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498
4499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler v10 or later" >&5
4500$as_echo_n "checking whether we are using Intel C++ compiler v10 or later... " >&6; }
4501if ${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+:} false; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h.  */
4506
4507int
4508main ()
4509{
4510
4511             #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
4512                choke me
4513             #endif
4514
4515  ;
4516  return 0;
4517}
4518_ACEOF
4519if ac_fn_cxx_try_compile "$LINENO"; then :
4520  bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
4521else
4522  bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
4523
4524fi
4525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526
4527
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
4530$as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
4531    if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
4532        :; INTELCXX10=yes
4533    else
4534        :;
4535    fi
4536    ac_ext=cpp
4537ac_cpp='$CXXCPP $CPPFLAGS'
4538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4541
4542
4543
4544    fi
4545
4546        if test "x$GCXX" != "xyes"; then
4547        if test "xCXX" = "xC"; then
4548            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler requires -ext o" >&5
4549$as_echo_n "checking if the C++ compiler requires -ext o... " >&6; }
4550if ${bakefile_cv_cxx_exto+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h.  */
4555
4556int
4557main ()
4558{
4559
4560  ;
4561  return 0;
4562}
4563_ACEOF
4564rm -f conftest.$ac_objext conftest.$ac_ext.o
4565if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4566  (eval $ac_compile) 2>&5
4567  ac_status=$?
4568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569  test $ac_status = 0; }; then :
4570  for ac_file in `(ls conftest.* 2>/dev/null)`; do
4571    case $ac_file in
4572        conftest.$ac_ext.o)
4573            bakefile_cv_cxx_exto="-ext o"
4574            ;;
4575        *)
4576            ;;
4577    esac
4578done
4579else
4580  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error $? "cannot figure out if compiler needs -ext o: cannot compile
4583See \`config.log' for more details" "$LINENO" 5; }
4584
4585fi
4586rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
4587
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_exto" >&5
4590$as_echo "$bakefile_cv_cxx_exto" >&6; }
4591if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
4592    if test "cxx" = "c"; then
4593        CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
4594    fi
4595    if test "cxx" = "cxx"; then
4596        CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
4597    fi
4598fi
4599
4600            if test "x$bakefile_cv_c_exto" '!=' "x"; then
4601                unset ac_cv_prog_cc_g
4602                ac_test_CFLAGS=${CFLAGS+set}
4603ac_save_CFLAGS=$CFLAGS
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4605$as_echo_n "checking whether $CC accepts -g... " >&6; }
4606if ${ac_cv_prog_cc_g+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  ac_save_c_werror_flag=$ac_c_werror_flag
4610   ac_c_werror_flag=yes
4611   ac_cv_prog_cc_g=no
4612   CFLAGS="-g"
4613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h.  */
4615
4616int
4617main ()
4618{
4619
4620  ;
4621  return 0;
4622}
4623_ACEOF
4624if ac_fn_cxx_try_compile "$LINENO"; then :
4625  ac_cv_prog_cc_g=yes
4626else
4627  CFLAGS=""
4628      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630
4631int
4632main ()
4633{
4634
4635  ;
4636  return 0;
4637}
4638_ACEOF
4639if ac_fn_cxx_try_compile "$LINENO"; then :
4640
4641else
4642  ac_c_werror_flag=$ac_save_c_werror_flag
4643	 CFLAGS="-g"
4644	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h.  */
4646
4647int
4648main ()
4649{
4650
4651  ;
4652  return 0;
4653}
4654_ACEOF
4655if ac_fn_cxx_try_compile "$LINENO"; then :
4656  ac_cv_prog_cc_g=yes
4657fi
4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659fi
4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663   ac_c_werror_flag=$ac_save_c_werror_flag
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4666$as_echo "$ac_cv_prog_cc_g" >&6; }
4667if test "$ac_test_CFLAGS" = set; then
4668  CFLAGS=$ac_save_CFLAGS
4669elif test $ac_cv_prog_cc_g = yes; then
4670  if test "$GCC" = yes; then
4671    CFLAGS="-g -O2"
4672  else
4673    CFLAGS="-g"
4674  fi
4675else
4676  if test "$GCC" = yes; then
4677    CFLAGS="-O2"
4678  else
4679    CFLAGS=
4680  fi
4681fi
4682            fi
4683        fi
4684
4685                        case `uname -s` in
4686            AIX*)
4687
4688
4689    ac_ext=cpp
4690ac_cpp='$CXXCPP $CPPFLAGS'
4691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4694
4695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C++ compiler" >&5
4696$as_echo_n "checking whether we are using the IBM xlC C++ compiler... " >&6; }
4697if ${bakefile_cv_cxx_compiler___xlC__+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702
4703int
4704main ()
4705{
4706
4707             #ifndef __xlC__
4708                choke me
4709             #endif
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715if ac_fn_cxx_try_compile "$LINENO"; then :
4716  bakefile_cv_cxx_compiler___xlC__=yes
4717else
4718  bakefile_cv_cxx_compiler___xlC__=no
4719
4720fi
4721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722
4723
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___xlC__" >&5
4726$as_echo "$bakefile_cv_cxx_compiler___xlC__" >&6; }
4727    if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
4728        :; XLCXX=yes
4729    else
4730        :;
4731    fi
4732    ac_ext=cpp
4733ac_cpp='$CXXCPP $CPPFLAGS'
4734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4737
4738
4739
4740                ;;
4741
4742            Darwin)
4743
4744
4745    ac_ext=cpp
4746ac_cpp='$CXXCPP $CPPFLAGS'
4747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4750
4751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Metrowerks C++ compiler" >&5
4752$as_echo_n "checking whether we are using the Metrowerks C++ compiler... " >&6; }
4753if ${bakefile_cv_cxx_compiler___MWERKS__+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h.  */
4758
4759int
4760main ()
4761{
4762
4763             #ifndef __MWERKS__
4764                choke me
4765             #endif
4766
4767  ;
4768  return 0;
4769}
4770_ACEOF
4771if ac_fn_cxx_try_compile "$LINENO"; then :
4772  bakefile_cv_cxx_compiler___MWERKS__=yes
4773else
4774  bakefile_cv_cxx_compiler___MWERKS__=no
4775
4776fi
4777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778
4779
4780fi
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
4782$as_echo "$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
4783    if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
4784        :; MWCXX=yes
4785    else
4786        :;
4787    fi
4788    ac_ext=cpp
4789ac_cpp='$CXXCPP $CPPFLAGS'
4790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4793
4794
4795
4796                if test "$MWCXX" != "yes"; then
4797
4798
4799    ac_ext=cpp
4800ac_cpp='$CXXCPP $CPPFLAGS'
4801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4804
4805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C++ compiler" >&5
4806$as_echo_n "checking whether we are using the IBM xlC C++ compiler... " >&6; }
4807if ${bakefile_cv_cxx_compiler___xlC__+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h.  */
4812
4813int
4814main ()
4815{
4816
4817             #ifndef __xlC__
4818                choke me
4819             #endif
4820
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_cxx_try_compile "$LINENO"; then :
4826  bakefile_cv_cxx_compiler___xlC__=yes
4827else
4828  bakefile_cv_cxx_compiler___xlC__=no
4829
4830fi
4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___xlC__" >&5
4836$as_echo "$bakefile_cv_cxx_compiler___xlC__" >&6; }
4837    if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
4838        :; XLCXX=yes
4839    else
4840        :;
4841    fi
4842    ac_ext=cpp
4843ac_cpp='$CXXCPP $CPPFLAGS'
4844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847
4848
4849
4850                fi
4851                ;;
4852
4853            IRIX*)
4854
4855
4856    ac_ext=cpp
4857ac_cpp='$CXXCPP $CPPFLAGS'
4858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4861
4862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C++ compiler" >&5
4863$as_echo_n "checking whether we are using the SGI C++ compiler... " >&6; }
4864if ${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868/* end confdefs.h.  */
4869
4870int
4871main ()
4872{
4873
4874             #ifndef _SGI_COMPILER_VERSION
4875                choke me
4876             #endif
4877
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882if ac_fn_cxx_try_compile "$LINENO"; then :
4883  bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
4884else
4885  bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
4886
4887fi
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889
4890
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
4893$as_echo "$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
4894    if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
4895        :; SGICXX=yes
4896    else
4897        :;
4898    fi
4899    ac_ext=cpp
4900ac_cpp='$CXXCPP $CPPFLAGS'
4901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4904
4905
4906
4907                ;;
4908
4909            Linux*)
4910                                                if test "$INTELCXX" != "yes"; then
4911
4912
4913    ac_ext=cpp
4914ac_cpp='$CXXCPP $CPPFLAGS'
4915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4918
4919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C++ compiler" >&5
4920$as_echo_n "checking whether we are using the Sun C++ compiler... " >&6; }
4921if ${bakefile_cv_cxx_compiler___SUNPRO_CC+:} false; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926
4927int
4928main ()
4929{
4930
4931             #ifndef __SUNPRO_CC
4932                choke me
4933             #endif
4934
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_cxx_try_compile "$LINENO"; then :
4940  bakefile_cv_cxx_compiler___SUNPRO_CC=yes
4941else
4942  bakefile_cv_cxx_compiler___SUNPRO_CC=no
4943
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946
4947
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
4950$as_echo "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
4951    if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
4952        :; SUNCXX=yes
4953    else
4954        :;
4955    fi
4956    ac_ext=cpp
4957ac_cpp='$CXXCPP $CPPFLAGS'
4958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961
4962
4963
4964                fi
4965                ;;
4966
4967            HP-UX*)
4968
4969
4970    ac_ext=cpp
4971ac_cpp='$CXXCPP $CPPFLAGS'
4972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4975
4976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C++ compiler" >&5
4977$as_echo_n "checking whether we are using the HP C++ compiler... " >&6; }
4978if ${bakefile_cv_cxx_compiler___HP_aCC+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h.  */
4983
4984int
4985main ()
4986{
4987
4988             #ifndef __HP_aCC
4989                choke me
4990             #endif
4991
4992  ;
4993  return 0;
4994}
4995_ACEOF
4996if ac_fn_cxx_try_compile "$LINENO"; then :
4997  bakefile_cv_cxx_compiler___HP_aCC=yes
4998else
4999  bakefile_cv_cxx_compiler___HP_aCC=no
5000
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003
5004
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
5007$as_echo "$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
5008    if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
5009        :; HPCXX=yes
5010    else
5011        :;
5012    fi
5013    ac_ext=cpp
5014ac_cpp='$CXXCPP $CPPFLAGS'
5015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5018
5019
5020
5021                ;;
5022
5023            OSF1)
5024
5025
5026    ac_ext=cpp
5027ac_cpp='$CXXCPP $CPPFLAGS'
5028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031
5032    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C++ compiler" >&5
5033$as_echo_n "checking whether we are using the Compaq C++ compiler... " >&6; }
5034if ${bakefile_cv_cxx_compiler___DECCXX+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039
5040int
5041main ()
5042{
5043
5044             #ifndef __DECCXX
5045                choke me
5046             #endif
5047
5048  ;
5049  return 0;
5050}
5051_ACEOF
5052if ac_fn_cxx_try_compile "$LINENO"; then :
5053  bakefile_cv_cxx_compiler___DECCXX=yes
5054else
5055  bakefile_cv_cxx_compiler___DECCXX=no
5056
5057fi
5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059
5060
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
5063$as_echo "$bakefile_cv_cxx_compiler___DECCXX" >&6; }
5064    if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
5065        :; COMPAQCXX=yes
5066    else
5067        :;
5068    fi
5069    ac_ext=cpp
5070ac_cpp='$CXXCPP $CPPFLAGS'
5071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5074
5075
5076
5077                ;;
5078
5079            SunOS)
5080
5081
5082    ac_ext=cpp
5083ac_cpp='$CXXCPP $CPPFLAGS'
5084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087
5088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C++ compiler" >&5
5089$as_echo_n "checking whether we are using the Sun C++ compiler... " >&6; }
5090if ${bakefile_cv_cxx_compiler___SUNPRO_CC+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095
5096int
5097main ()
5098{
5099
5100             #ifndef __SUNPRO_CC
5101                choke me
5102             #endif
5103
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108if ac_fn_cxx_try_compile "$LINENO"; then :
5109  bakefile_cv_cxx_compiler___SUNPRO_CC=yes
5110else
5111  bakefile_cv_cxx_compiler___SUNPRO_CC=no
5112
5113fi
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115
5116
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
5119$as_echo "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
5120    if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
5121        :; SUNCXX=yes
5122    else
5123        :;
5124    fi
5125    ac_ext=cpp
5126ac_cpp='$CXXCPP $CPPFLAGS'
5127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5130
5131
5132
5133                ;;
5134        esac
5135    fi
5136
5137
5138
5139
5140
5141
5142
5143
5144    if test "x$BAKEFILE_HOST" = "x"; then
5145               if test "x${host}" = "x" ; then
5146                       as_fn_error $? "You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." "$LINENO" 5
5147               fi
5148
5149        BAKEFILE_HOST="${host}"
5150    fi
5151
5152    if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
5153
5154    if test -n "$ac_tool_prefix"; then
5155  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5156set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
5159if ${ac_cv_prog_RANLIB+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  if test -n "$RANLIB"; then
5163  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170    for ac_exec_ext in '' $ac_executable_extensions; do
5171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174    break 2
5175  fi
5176done
5177  done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182RANLIB=$ac_cv_prog_RANLIB
5183if test -n "$RANLIB"; then
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5185$as_echo "$RANLIB" >&6; }
5186else
5187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189fi
5190
5191
5192fi
5193if test -z "$ac_cv_prog_RANLIB"; then
5194  ac_ct_RANLIB=$RANLIB
5195  # Extract the first word of "ranlib", so it can be a program name with args.
5196set dummy ranlib; ac_word=$2
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
5199if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  if test -n "$ac_ct_RANLIB"; then
5203  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208  IFS=$as_save_IFS
5209  test -z "$as_dir" && as_dir=.
5210    for ac_exec_ext in '' $ac_executable_extensions; do
5211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212    ac_cv_prog_ac_ct_RANLIB="ranlib"
5213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214    break 2
5215  fi
5216done
5217  done
5218IFS=$as_save_IFS
5219
5220fi
5221fi
5222ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5223if test -n "$ac_ct_RANLIB"; then
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5225$as_echo "$ac_ct_RANLIB" >&6; }
5226else
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229fi
5230
5231  if test "x$ac_ct_RANLIB" = x; then
5232    RANLIB=":"
5233  else
5234    case $cross_compiling:$ac_tool_warned in
5235yes:)
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238ac_tool_warned=yes ;;
5239esac
5240    RANLIB=$ac_ct_RANLIB
5241  fi
5242else
5243  RANLIB="$ac_cv_prog_RANLIB"
5244fi
5245
5246
5247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5248$as_echo_n "checking whether ln -s works... " >&6; }
5249LN_S=$as_ln_s
5250if test "$LN_S" = "ln -s"; then
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5252$as_echo "yes" >&6; }
5253else
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5255$as_echo "no, using $LN_S" >&6; }
5256fi
5257
5258
5259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5260$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5261set x ${MAKE-make}
5262ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5263if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  cat >conftest.make <<\_ACEOF
5267SHELL = /bin/sh
5268all:
5269	@echo '@@@%%%=$(MAKE)=@@@%%%'
5270_ACEOF
5271# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5272case `${MAKE-make} -f conftest.make 2>/dev/null` in
5273  *@@@%%%=?*=@@@%%%*)
5274    eval ac_cv_prog_make_${ac_make}_set=yes;;
5275  *)
5276    eval ac_cv_prog_make_${ac_make}_set=no;;
5277esac
5278rm -f conftest.make
5279fi
5280if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282$as_echo "yes" >&6; }
5283  SET_MAKE=
5284else
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287  SET_MAKE="MAKE=${MAKE-make}"
5288fi
5289
5290
5291
5292    if test "x$SUNCXX" = "xyes"; then
5293                                AR=$CXX
5294        AROPTIONS="-xar -o"
5295
5296    elif test "x$SGICC" = "xyes"; then
5297                AR=$CXX
5298        AROPTIONS="-ar -o"
5299
5300    else
5301        if test -n "$ac_tool_prefix"; then
5302  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5303set dummy ${ac_tool_prefix}ar; ac_word=$2
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
5306if ${ac_cv_prog_AR+:} false; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  if test -n "$AR"; then
5310  ac_cv_prog_AR="$AR" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315  IFS=$as_save_IFS
5316  test -z "$as_dir" && as_dir=.
5317    for ac_exec_ext in '' $ac_executable_extensions; do
5318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319    ac_cv_prog_AR="${ac_tool_prefix}ar"
5320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321    break 2
5322  fi
5323done
5324  done
5325IFS=$as_save_IFS
5326
5327fi
5328fi
5329AR=$ac_cv_prog_AR
5330if test -n "$AR"; then
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5332$as_echo "$AR" >&6; }
5333else
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
5336fi
5337
5338
5339fi
5340if test -z "$ac_cv_prog_AR"; then
5341  ac_ct_AR=$AR
5342  # Extract the first word of "ar", so it can be a program name with args.
5343set dummy ar; ac_word=$2
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if ${ac_cv_prog_ac_ct_AR+:} false; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349  if test -n "$ac_ct_AR"; then
5350  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355  IFS=$as_save_IFS
5356  test -z "$as_dir" && as_dir=.
5357    for ac_exec_ext in '' $ac_executable_extensions; do
5358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359    ac_cv_prog_ac_ct_AR="ar"
5360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361    break 2
5362  fi
5363done
5364  done
5365IFS=$as_save_IFS
5366
5367fi
5368fi
5369ac_ct_AR=$ac_cv_prog_ac_ct_AR
5370if test -n "$ac_ct_AR"; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5372$as_echo "$ac_ct_AR" >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378  if test "x$ac_ct_AR" = x; then
5379    AR="ar"
5380  else
5381    case $cross_compiling:$ac_tool_warned in
5382yes:)
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385ac_tool_warned=yes ;;
5386esac
5387    AR=$ac_ct_AR
5388  fi
5389else
5390  AR="$ac_cv_prog_AR"
5391fi
5392
5393        AROPTIONS=rcu
5394    fi
5395
5396
5397    if test -n "$ac_tool_prefix"; then
5398  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5399set dummy ${ac_tool_prefix}strip; ac_word=$2
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
5402if ${ac_cv_prog_STRIP+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  if test -n "$STRIP"; then
5406  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411  IFS=$as_save_IFS
5412  test -z "$as_dir" && as_dir=.
5413    for ac_exec_ext in '' $ac_executable_extensions; do
5414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417    break 2
5418  fi
5419done
5420  done
5421IFS=$as_save_IFS
5422
5423fi
5424fi
5425STRIP=$ac_cv_prog_STRIP
5426if test -n "$STRIP"; then
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5428$as_echo "$STRIP" >&6; }
5429else
5430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432fi
5433
5434
5435fi
5436if test -z "$ac_cv_prog_STRIP"; then
5437  ac_ct_STRIP=$STRIP
5438  # Extract the first word of "strip", so it can be a program name with args.
5439set dummy strip; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  if test -n "$ac_ct_STRIP"; then
5446  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451  IFS=$as_save_IFS
5452  test -z "$as_dir" && as_dir=.
5453    for ac_exec_ext in '' $ac_executable_extensions; do
5454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455    ac_cv_prog_ac_ct_STRIP="strip"
5456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457    break 2
5458  fi
5459done
5460  done
5461IFS=$as_save_IFS
5462
5463fi
5464fi
5465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5466if test -n "$ac_ct_STRIP"; then
5467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5468$as_echo "$ac_ct_STRIP" >&6; }
5469else
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
5472fi
5473
5474  if test "x$ac_ct_STRIP" = x; then
5475    STRIP=":"
5476  else
5477    case $cross_compiling:$ac_tool_warned in
5478yes:)
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481ac_tool_warned=yes ;;
5482esac
5483    STRIP=$ac_ct_STRIP
5484  fi
5485else
5486  STRIP="$ac_cv_prog_STRIP"
5487fi
5488
5489    if test -n "$ac_tool_prefix"; then
5490  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5491set dummy ${ac_tool_prefix}nm; ac_word=$2
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5494if ${ac_cv_prog_NM+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  if test -n "$NM"; then
5498  ac_cv_prog_NM="$NM" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503  IFS=$as_save_IFS
5504  test -z "$as_dir" && as_dir=.
5505    for ac_exec_ext in '' $ac_executable_extensions; do
5506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507    ac_cv_prog_NM="${ac_tool_prefix}nm"
5508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509    break 2
5510  fi
5511done
5512  done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517NM=$ac_cv_prog_NM
5518if test -n "$NM"; then
5519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5520$as_echo "$NM" >&6; }
5521else
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524fi
5525
5526
5527fi
5528if test -z "$ac_cv_prog_NM"; then
5529  ac_ct_NM=$NM
5530  # Extract the first word of "nm", so it can be a program name with args.
5531set dummy nm; ac_word=$2
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if ${ac_cv_prog_ac_ct_NM+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  if test -n "$ac_ct_NM"; then
5538  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547    ac_cv_prog_ac_ct_NM="nm"
5548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552  done
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557ac_ct_NM=$ac_cv_prog_ac_ct_NM
5558if test -n "$ac_ct_NM"; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5560$as_echo "$ac_ct_NM" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563$as_echo "no" >&6; }
5564fi
5565
5566  if test "x$ac_ct_NM" = x; then
5567    NM=":"
5568  else
5569    case $cross_compiling:$ac_tool_warned in
5570yes:)
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573ac_tool_warned=yes ;;
5574esac
5575    NM=$ac_ct_NM
5576  fi
5577else
5578  NM="$ac_cv_prog_NM"
5579fi
5580
5581
5582            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to install directories" >&5
5583$as_echo_n "checking for command to install directories... " >&6; }
5584    INSTALL_TEST_DIR=acbftest$$
5585    $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
5586    if test $? = 0 -a -d $INSTALL_TEST_DIR; then
5587        rmdir $INSTALL_TEST_DIR
5588                        INSTALL_DIR='$(INSTALL) -d'
5589        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL -d" >&5
5590$as_echo "$INSTALL -d" >&6; }
5591    else
5592        INSTALL_DIR="mkdir -p"
5593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdir -p" >&5
5594$as_echo "mkdir -p" >&6; }
5595    fi
5596
5597
5598    LDFLAGS_GUI=
5599    case ${BAKEFILE_HOST} in
5600        *-*-cygwin* | *-*-mingw32* )
5601        LDFLAGS_GUI="-mwindows"
5602    esac
5603
5604
5605    fi
5606
5607        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make is GNU make" >&5
5608$as_echo_n "checking if make is GNU make... " >&6; }
5609if ${bakefile_cv_prog_makeisgnu+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612
5613        if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
5614                egrep -s GNU > /dev/null); then
5615            bakefile_cv_prog_makeisgnu="yes"
5616        else
5617            bakefile_cv_prog_makeisgnu="no"
5618        fi
5619
5620fi
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_prog_makeisgnu" >&5
5622$as_echo "$bakefile_cv_prog_makeisgnu" >&6; }
5623
5624    if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
5625        IF_GNU_MAKE=""
5626    else
5627        IF_GNU_MAKE="#"
5628    fi
5629
5630
5631
5632    PLATFORM_UNIX=0
5633    PLATFORM_WIN32=0
5634    PLATFORM_MSDOS=0
5635    PLATFORM_MAC=0
5636    PLATFORM_MACOS=0
5637    PLATFORM_MACOSX=0
5638    PLATFORM_OS2=0
5639    PLATFORM_BEOS=0
5640
5641    if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
5642        case "${BAKEFILE_HOST}" in
5643            *-*-mingw32* )
5644                PLATFORM_WIN32=1
5645            ;;
5646            *-pc-msdosdjgpp )
5647                PLATFORM_MSDOS=1
5648            ;;
5649            *-pc-os2_emx | *-pc-os2-emx )
5650                PLATFORM_OS2=1
5651            ;;
5652            *-*-darwin* )
5653                PLATFORM_MAC=1
5654                PLATFORM_MACOSX=1
5655            ;;
5656            *-*-beos* )
5657                PLATFORM_BEOS=1
5658            ;;
5659            powerpc-apple-macos* )
5660                PLATFORM_MAC=1
5661                PLATFORM_MACOS=1
5662            ;;
5663            * )
5664                PLATFORM_UNIX=1
5665            ;;
5666        esac
5667    else
5668        case "$BAKEFILE_FORCE_PLATFORM" in
5669            win32 )
5670                PLATFORM_WIN32=1
5671            ;;
5672            msdos )
5673                PLATFORM_MSDOS=1
5674            ;;
5675            os2 )
5676                PLATFORM_OS2=1
5677            ;;
5678            darwin )
5679                PLATFORM_MAC=1
5680                PLATFORM_MACOSX=1
5681            ;;
5682            unix )
5683                PLATFORM_UNIX=1
5684            ;;
5685            beos )
5686                PLATFORM_BEOS=1
5687            ;;
5688            * )
5689                as_fn_error $? "Unknown platform: $BAKEFILE_FORCE_PLATFORM" "$LINENO" 5
5690            ;;
5691        esac
5692    fi
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704    # Check whether --enable-omf was given.
5705if test "${enable_omf+set}" = set; then :
5706  enableval=$enable_omf; bk_os2_use_omf="$enableval"
5707fi
5708
5709
5710    case "${BAKEFILE_HOST}" in
5711      *-*-darwin* )
5712                        if test "x$GCC" = "xyes"; then
5713            CFLAGS="$CFLAGS -fno-common"
5714            CXXFLAGS="$CXXFLAGS -fno-common"
5715        fi
5716        if test "x$XLCC" = "xyes"; then
5717            CFLAGS="$CFLAGS -qnocommon"
5718            CXXFLAGS="$CXXFLAGS -qnocommon"
5719        fi
5720        ;;
5721
5722      *-pc-os2_emx | *-pc-os2-emx )
5723        if test "x$bk_os2_use_omf" = "xyes" ; then
5724            AR=emxomfar
5725            RANLIB=:
5726            LDFLAGS="-Zomf $LDFLAGS"
5727            CFLAGS="-Zomf $CFLAGS"
5728            CXXFLAGS="-Zomf $CXXFLAGS"
5729            OS2_LIBEXT="lib"
5730        else
5731            OS2_LIBEXT="a"
5732        fi
5733        ;;
5734
5735      i*86-*-beos* )
5736        LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
5737        ;;
5738    esac
5739
5740
5741    SO_SUFFIX="so"
5742    SO_SUFFIX_MODULE="so"
5743    EXEEXT=""
5744    LIBPREFIX="lib"
5745    LIBEXT=".a"
5746    DLLPREFIX="lib"
5747    DLLPREFIX_MODULE=""
5748    DLLIMP_SUFFIX=""
5749    dlldir="$libdir"
5750
5751    case "${BAKEFILE_HOST}" in
5752                        ia64-hp-hpux* )
5753        ;;
5754        *-hp-hpux* )
5755            SO_SUFFIX="sl"
5756            SO_SUFFIX_MODULE="sl"
5757        ;;
5758        *-*-aix* )
5759                                                                        SO_SUFFIX="a"
5760            SO_SUFFIX_MODULE="a"
5761        ;;
5762        *-*-cygwin* )
5763            SO_SUFFIX="dll"
5764            SO_SUFFIX_MODULE="dll"
5765            DLLIMP_SUFFIX="dll.a"
5766            EXEEXT=".exe"
5767            DLLPREFIX="cyg"
5768            dlldir="$bindir"
5769        ;;
5770        *-*-mingw32* )
5771            SO_SUFFIX="dll"
5772            SO_SUFFIX_MODULE="dll"
5773            DLLIMP_SUFFIX="dll.a"
5774            EXEEXT=".exe"
5775            DLLPREFIX=""
5776            dlldir="$bindir"
5777        ;;
5778        *-pc-msdosdjgpp )
5779            EXEEXT=".exe"
5780            DLLPREFIX=""
5781            dlldir="$bindir"
5782        ;;
5783        *-pc-os2_emx | *-pc-os2-emx )
5784            SO_SUFFIX="dll"
5785            SO_SUFFIX_MODULE="dll"
5786            DLLIMP_SUFFIX=$OS2_LIBEXT
5787            EXEEXT=".exe"
5788            DLLPREFIX=""
5789            LIBPREFIX=""
5790            LIBEXT=".$OS2_LIBEXT"
5791            dlldir="$bindir"
5792        ;;
5793        *-*-darwin* )
5794            SO_SUFFIX="dylib"
5795            SO_SUFFIX_MODULE="bundle"
5796        ;;
5797    esac
5798
5799    if test "x$DLLIMP_SUFFIX" = "x" ; then
5800        DLLIMP_SUFFIX="$SO_SUFFIX"
5801    fi
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814        PIC_FLAG=""
5815    if test "x$GCC" = "xyes"; then
5816                PIC_FLAG="-fPIC"
5817    fi
5818
5819        SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
5820    SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
5821    WINDOWS_IMPLIB=0
5822
5823    case "${BAKEFILE_HOST}" in
5824      *-hp-hpux* )
5825                if test "x$GCC" != "xyes"; then
5826                        LDFLAGS="$LDFLAGS -L/usr/lib"
5827
5828            SHARED_LD_CC="${CC} -b -o"
5829            SHARED_LD_CXX="${CXX} -b -o"
5830            PIC_FLAG="+Z"
5831        fi
5832      ;;
5833
5834      *-*-linux* )
5835                        if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
5836            PIC_FLAG="-KPIC"
5837        elif test "x$SUNCXX" = "xyes"; then
5838            SHARED_LD_CC="${CC} -G -o"
5839            SHARED_LD_CXX="${CXX} -G -o"
5840            PIC_FLAG="-KPIC"
5841        fi
5842      ;;
5843
5844      *-*-solaris2* )
5845        if test "x$SUNCXX" = xyes ; then
5846            SHARED_LD_CC="${CC} -G -o"
5847            SHARED_LD_CXX="${CXX} -G -o"
5848            PIC_FLAG="-KPIC"
5849        fi
5850      ;;
5851
5852      *-*-darwin* )
5853
5854D='$'
5855cat <<EOF >shared-ld-sh
5856#!/bin/sh
5857#-----------------------------------------------------------------------------
5858#-- Name:        distrib/mac/shared-ld-sh
5859#-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
5860#-- Author:      Gilles Depeyrot
5861#-- Copyright:   (c) 2002 Gilles Depeyrot
5862#-- Licence:     any use permitted
5863#-----------------------------------------------------------------------------
5864
5865verbose=0
5866args=""
5867objects=""
5868linking_flag="-dynamiclib"
5869ldargs="-r -keep_private_externs -nostdlib"
5870
5871if test "x${D}CXX" = "x"; then
5872    CXX="c++"
5873fi
5874
5875while test ${D}# -gt 0; do
5876    case ${D}1 in
5877
5878       -v)
5879        verbose=1
5880        ;;
5881
5882       -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
5883        # collect these options and values
5884        args="${D}{args} ${D}1 ${D}2"
5885        shift
5886        ;;
5887
5888       -arch|-isysroot)
5889        # collect these options and values
5890        ldargs="${D}{ldargs} ${D}1 ${D}2"
5891        shift
5892        ;;
5893
5894       -s|-Wl,*)
5895        # collect these load args
5896        ldargs="${D}{ldargs} ${D}1"
5897        ;;
5898
5899       -l*|-L*|-flat_namespace|-headerpad_max_install_names)
5900        # collect these options
5901        args="${D}{args} ${D}1"
5902        ;;
5903
5904       -dynamiclib|-bundle)
5905        linking_flag="${D}1"
5906        ;;
5907
5908       -*)
5909        echo "shared-ld: unhandled option '${D}1'"
5910        exit 1
5911        ;;
5912
5913        *.o | *.a | *.dylib)
5914        # collect object files
5915        objects="${D}{objects} ${D}1"
5916        ;;
5917
5918        *)
5919        echo "shared-ld: unhandled argument '${D}1'"
5920        exit 1
5921        ;;
5922
5923    esac
5924    shift
5925done
5926
5927status=0
5928
5929#
5930# Link one module containing all the others
5931#
5932if test ${D}{verbose} = 1; then
5933    echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
5934fi
5935${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
5936status=${D}?
5937
5938#
5939# Link the shared library from the single module created, but only if the
5940# previous command didn't fail:
5941#
5942if test ${D}{status} = 0; then
5943    if test ${D}{verbose} = 1; then
5944        echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
5945    fi
5946    ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
5947    status=${D}?
5948fi
5949
5950#
5951# Remove intermediate module
5952#
5953rm -f master.${D}${D}.o
5954
5955exit ${D}status
5956EOF
5957
5958        chmod +x shared-ld-sh
5959
5960        SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
5961        SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
5962
5963
5964                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc 3.1 or later" >&5
5965$as_echo_n "checking for gcc 3.1 or later... " >&6; }
5966if ${bakefile_cv_gcc31+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969
5970           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972
5973int
5974main ()
5975{
5976
5977                   #if (__GNUC__ < 3) || \
5978                       ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
5979                       This is old gcc
5980                   #endif
5981
5982  ;
5983  return 0;
5984}
5985_ACEOF
5986if ac_fn_cxx_try_compile "$LINENO"; then :
5987
5988                   bakefile_cv_gcc31=yes
5989
5990else
5991
5992                   bakefile_cv_gcc31=no
5993
5994
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_gcc31" >&5
6000$as_echo "$bakefile_cv_gcc31" >&6; }
6001        if test "$bakefile_cv_gcc31" = "no"; then
6002                        SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
6003            SHARED_LD_CXX="$SHARED_LD_CC"
6004        else
6005                        SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
6006            SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
6007        fi
6008
6009        if test "x$GCC" == "xyes"; then
6010            PIC_FLAG="-dynamic -fPIC"
6011        fi
6012        if test "x$XLCC" = "xyes"; then
6013            PIC_FLAG="-dynamic -DPIC"
6014        fi
6015      ;;
6016
6017      *-*-aix* )
6018        if test "x$GCC" = "xyes"; then
6019                                                            PIC_FLAG=""
6020
6021                                                                                    case "${BAKEFILE_HOST}" in
6022                *-*-aix5* )
6023                    LD_EXPFULL="-Wl,-bexpfull"
6024                    ;;
6025            esac
6026
6027            SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
6028            SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
6029        else
6030                                    # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
6031set dummy makeC++SharedLib; ac_word=$2
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
6034if ${ac_cv_prog_AIX_CXX_LD+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037  if test -n "$AIX_CXX_LD"; then
6038  ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045    for ac_exec_ext in '' $ac_executable_extensions; do
6046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047    ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
6048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052  done
6053IFS=$as_save_IFS
6054
6055  test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
6056fi
6057fi
6058AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
6059if test -n "$AIX_CXX_LD"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_CXX_LD" >&5
6061$as_echo "$AIX_CXX_LD" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068            SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
6069            SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
6070        fi
6071      ;;
6072
6073      *-*-beos* )
6074                        SHARED_LD_CC="${LD} -nostart -o"
6075        SHARED_LD_CXX="${LD} -nostart -o"
6076      ;;
6077
6078      *-*-irix* )
6079                if test "x$GCC" != "xyes"; then
6080            PIC_FLAG="-KPIC"
6081        fi
6082      ;;
6083
6084      *-*-cygwin* | *-*-mingw32* )
6085        PIC_FLAG=""
6086        SHARED_LD_CC="\$(CC) -shared -o"
6087        SHARED_LD_CXX="\$(CXX) -shared -o"
6088        WINDOWS_IMPLIB=1
6089      ;;
6090
6091      *-pc-os2_emx | *-pc-os2-emx )
6092        SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
6093        SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
6094        PIC_FLAG=""
6095
6096D='$'
6097cat <<EOF >dllar.sh
6098#!/bin/sh
6099#
6100# dllar - a tool to build both a .dll and an .a file
6101# from a set of object (.o) files for EMX/OS2.
6102#
6103#  Written by Andrew Zabolotny, bit@freya.etu.ru
6104#  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
6105#
6106#  This script will accept a set of files on the command line.
6107#  All the public symbols from the .o files will be exported into
6108#  a .DEF file, then linker will be run (through gcc) against them to
6109#  build a shared library consisting of all given .o files. All libraries
6110#  (.a) will be first decompressed into component .o files then act as
6111#  described above. You can optionally give a description (-d "description")
6112#  which will be put into .DLL. To see the list of accepted options (as well
6113#  as command-line format) simply run this program without options. The .DLL
6114#  is built to be imported by name (there is no guarantee that new versions
6115#  of the library you build will have same ordinals for same symbols).
6116#
6117#  dllar is free software; you can redistribute it and/or modify
6118#  it under the terms of the GNU General Public License as published by
6119#  the Free Software Foundation; either version 2, or (at your option)
6120#  any later version.
6121#
6122#  dllar is distributed in the hope that it will be useful,
6123#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6124#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6125#  GNU General Public License for more details.
6126#
6127#  You should have received a copy of the GNU General Public License
6128#  along with dllar; see the file COPYING.  If not, write to the Free
6129#  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
6130#  02111-1307, USA.
6131
6132# To successfuly run this program you will need:
6133#  - Current drive should have LFN support (HPFS, ext2, network, etc)
6134#    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
6135#  - gcc
6136#    (used to build the .dll)
6137#  - emxexp
6138#    (used to create .def file from .o files)
6139#  - emximp
6140#    (used to create .a file from .def file)
6141#  - GNU text utilites (cat, sort, uniq)
6142#    used to process emxexp output
6143#  - GNU file utilities (mv, rm)
6144#  - GNU sed
6145#  - lxlite (optional, see flag below)
6146#    (used for general .dll cleanup)
6147#
6148
6149flag_USE_LXLITE=1;
6150
6151#
6152# helper functions
6153# basnam, variant of basename, which does _not_ remove the path, _iff_
6154#                              second argument (suffix to remove) is given
6155basnam(){
6156    case ${D}# in
6157    1)
6158        echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
6159        ;;
6160    2)
6161        echo ${D}1 | sed 's/'${D}2'${D}//'
6162        ;;
6163    *)
6164        echo "error in basnam ${D}*"
6165        exit 8
6166        ;;
6167    esac
6168}
6169
6170# Cleanup temporary files and output
6171CleanUp() {
6172    cd ${D}curDir
6173    for i in ${D}inputFiles ; do
6174        case ${D}i in
6175        *!)
6176            rm -rf \`basnam ${D}i !\`
6177            ;;
6178        *)
6179            ;;
6180        esac
6181    done
6182
6183    # Kill result in case of failure as there is just to many stupid make/nmake
6184    # things out there which doesn't do this.
6185    if [ ${D}# -eq 0 ]; then
6186        rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
6187    fi
6188}
6189
6190# Print usage and exit script with rc=1.
6191PrintHelp() {
6192 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
6193 echo '       [-name-mangler-script script.sh]'
6194 echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
6195 echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
6196 echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
6197 echo '       [*.o] [*.a]'
6198 echo '*> "output_file" should have no extension.'
6199 echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
6200 echo '   The import library name is derived from this and is set to "name".a,'
6201 echo '   unless overridden by -import'
6202 echo '*> "importlib_name" should have no extension.'
6203 echo '   If it has the .o, or .a extension, it is automatically removed.'
6204 echo '   This name is used as the import library name and may be longer and'
6205 echo '   more descriptive than the DLL name which has to follow the old '
6206 echo '   8.3 convention of FAT.'
6207 echo '*> "script.sh may be given to override the output_file name by a'
6208 echo '   different name. It is mainly useful if the regular make process'
6209 echo '   of some package does not take into account OS/2 restriction of'
6210 echo '   DLL name lengths. It takes the importlib name as input and is'
6211 echo '   supposed to procude a shorter name as output. The script should'
6212 echo '   expect to get importlib_name without extension and should produce'
6213 echo '   a (max.) 8 letter name without extension.'
6214 echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
6215 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
6216 echo '   These flags will be put at the start of GCC command line.'
6217 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
6218 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
6219 echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
6220 echo '   If the last character of a symbol is "*", all symbols beginning'
6221 echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
6222 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
6223 echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
6224 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
6225 echo '   C runtime DLLs.'
6226 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
6227 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
6228 echo '   unchanged to GCC at the end of command line.'
6229 echo '*> If you create a DLL from a library and you do not specify -o,'
6230 echo '   the basename for DLL and import library will be set to library name,'
6231 echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
6232 echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
6233 echo '   library will be renamed into gcc_s.a.'
6234 echo '--------'
6235 echo 'Example:'
6236 echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
6237 echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
6238 CleanUp
6239 exit 1
6240}
6241
6242# Execute a command.
6243# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
6244# @Uses    Whatever CleanUp() uses.
6245doCommand() {
6246    echo "${D}*"
6247    eval ${D}*
6248    rcCmd=${D}?
6249
6250    if [ ${D}rcCmd -ne 0 ]; then
6251        echo "command failed, exit code="${D}rcCmd
6252        CleanUp
6253        exit ${D}rcCmd
6254    fi
6255}
6256
6257# main routine
6258# setup globals
6259cmdLine=${D}*
6260outFile=""
6261outimpFile=""
6262inputFiles=""
6263renameScript=""
6264description=""
6265CC=gcc.exe
6266CFLAGS="-s -Zcrtdll"
6267EXTRA_CFLAGS=""
6268EXPORT_BY_ORDINALS=0
6269exclude_symbols=""
6270library_flags=""
6271curDir=\`pwd\`
6272curDirS=curDir
6273case ${D}curDirS in
6274*/)
6275  ;;
6276*)
6277  curDirS=${D}{curDirS}"/"
6278  ;;
6279esac
6280# Parse commandline
6281libsToLink=0
6282omfLinking=0
6283while [ ${D}1 ]; do
6284    case ${D}1 in
6285    -ord*)
6286        EXPORT_BY_ORDINALS=1;
6287        ;;
6288    -o*)
6289	shift
6290        outFile=${D}1
6291	;;
6292    -i*)
6293        shift
6294        outimpFile=${D}1
6295        ;;
6296    -name-mangler-script)
6297        shift
6298        renameScript=${D}1
6299        ;;
6300    -d*)
6301        shift
6302        description=${D}1
6303        ;;
6304    -f*)
6305        shift
6306        CFLAGS=${D}1
6307        ;;
6308    -c*)
6309        shift
6310        CC=${D}1
6311        ;;
6312    -h*)
6313        PrintHelp
6314        ;;
6315    -ex*)
6316        shift
6317        exclude_symbols=${D}{exclude_symbols}${D}1" "
6318        ;;
6319    -libf*)
6320        shift
6321        library_flags=${D}{library_flags}${D}1" "
6322        ;;
6323    -nocrt*)
6324        CFLAGS="-s"
6325        ;;
6326    -nolxl*)
6327        flag_USE_LXLITE=0
6328        ;;
6329    -* | /*)
6330        case ${D}1 in
6331        -L* | -l*)
6332            libsToLink=1
6333            ;;
6334        -Zomf)
6335            omfLinking=1
6336            ;;
6337        *)
6338            ;;
6339        esac
6340        EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
6341        ;;
6342    *.dll)
6343        EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
6344        if [ ${D}omfLinking -eq 1 ]; then
6345            EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
6346	else
6347            EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
6348        fi
6349        ;;
6350    *)
6351        found=0;
6352        if [ ${D}libsToLink -ne 0 ]; then
6353            EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
6354        else
6355            for file in ${D}1 ; do
6356                if [ -f ${D}file ]; then
6357                    inputFiles="${D}{inputFiles} ${D}file"
6358                    found=1
6359                fi
6360            done
6361            if [ ${D}found -eq 0 ]; then
6362                echo "ERROR: No file(s) found: "${D}1
6363                exit 8
6364            fi
6365        fi
6366      ;;
6367    esac
6368    shift
6369done # iterate cmdline words
6370
6371#
6372if [ -z "${D}inputFiles" ]; then
6373    echo "dllar: no input files"
6374    PrintHelp
6375fi
6376
6377# Now extract all .o files from .a files
6378newInputFiles=""
6379for file in ${D}inputFiles ; do
6380    case ${D}file in
6381    *.a | *.lib)
6382        case ${D}file in
6383        *.a)
6384            suffix=".a"
6385            AR="ar"
6386            ;;
6387        *.lib)
6388            suffix=".lib"
6389            AR="emxomfar"
6390            EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
6391            ;;
6392        *)
6393            ;;
6394        esac
6395        dirname=\`basnam ${D}file ${D}suffix\`"_%"
6396        mkdir ${D}dirname
6397        if [ ${D}? -ne 0 ]; then
6398            echo "Failed to create subdirectory ./${D}dirname"
6399            CleanUp
6400            exit 8;
6401        fi
6402        # Append '!' to indicate archive
6403        newInputFiles="${D}newInputFiles ${D}{dirname}!"
6404        doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
6405        cd ${D}curDir
6406        found=0;
6407        for subfile in ${D}dirname/*.o* ; do
6408            if [ -f ${D}subfile ]; then
6409                found=1
6410                if [ -s ${D}subfile ]; then
6411	            # FIXME: This should be: is file size > 32 byte, _not_ > 0!
6412                    newInputFiles="${D}newInputFiles ${D}subfile"
6413                fi
6414            fi
6415        done
6416        if [ ${D}found -eq 0 ]; then
6417            echo "WARNING: there are no files in archive \\'${D}file\\'"
6418        fi
6419        ;;
6420    *)
6421        newInputFiles="${D}{newInputFiles} ${D}file"
6422        ;;
6423    esac
6424done
6425inputFiles="${D}newInputFiles"
6426
6427# Output filename(s).
6428do_backup=0;
6429if [ -z ${D}outFile ]; then
6430    do_backup=1;
6431    set outFile ${D}inputFiles; outFile=${D}2
6432fi
6433
6434# If it is an archive, remove the '!' and the '_%' suffixes
6435case ${D}outFile in
6436*_%!)
6437    outFile=\`basnam ${D}outFile _%!\`
6438    ;;
6439*)
6440    ;;
6441esac
6442case ${D}outFile in
6443*.dll)
6444    outFile=\`basnam ${D}outFile .dll\`
6445    ;;
6446*.DLL)
6447    outFile=\`basnam ${D}outFile .DLL\`
6448    ;;
6449*.o)
6450    outFile=\`basnam ${D}outFile .o\`
6451    ;;
6452*.obj)
6453    outFile=\`basnam ${D}outFile .obj\`
6454    ;;
6455*.a)
6456    outFile=\`basnam ${D}outFile .a\`
6457    ;;
6458*.lib)
6459    outFile=\`basnam ${D}outFile .lib\`
6460    ;;
6461*)
6462    ;;
6463esac
6464case ${D}outimpFile in
6465*.a)
6466    outimpFile=\`basnam ${D}outimpFile .a\`
6467    ;;
6468*.lib)
6469    outimpFile=\`basnam ${D}outimpFile .lib\`
6470    ;;
6471*)
6472    ;;
6473esac
6474if [ -z ${D}outimpFile ]; then
6475    outimpFile=${D}outFile
6476fi
6477defFile="${D}{outFile}.def"
6478arcFile="${D}{outimpFile}.a"
6479arcFile2="${D}{outimpFile}.lib"
6480
6481#create ${D}dllFile as something matching 8.3 restrictions,
6482if [ -z ${D}renameScript ] ; then
6483    dllFile="${D}outFile"
6484else
6485    dllFile=\`${D}renameScript ${D}outimpFile\`
6486fi
6487
6488if [ ${D}do_backup -ne 0 ] ; then
6489    if [ -f ${D}arcFile ] ; then
6490        doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
6491    fi
6492    if [ -f ${D}arcFile2 ] ; then
6493        doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
6494    fi
6495fi
6496
6497# Extract public symbols from all the object files.
6498tmpdefFile=${D}{defFile}_%
6499rm -f ${D}tmpdefFile
6500for file in ${D}inputFiles ; do
6501    case ${D}file in
6502    *!)
6503        ;;
6504    *)
6505        doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
6506        ;;
6507    esac
6508done
6509
6510# Create the def file.
6511rm -f ${D}defFile
6512echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
6513dllFile="${D}{dllFile}.dll"
6514if [ ! -z ${D}description ]; then
6515    echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
6516fi
6517echo "EXPORTS" >> ${D}defFile
6518
6519doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
6520grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
6521
6522# Checks if the export is ok or not.
6523for word in ${D}exclude_symbols; do
6524    grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
6525    mv ${D}{tmpdefFile}% ${D}tmpdefFile
6526done
6527
6528
6529if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
6530    sed "=" < ${D}tmpdefFile | \\
6531    sed '
6532      N
6533      : loop
6534      s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
6535      t loop
6536    ' > ${D}{tmpdefFile}%
6537    grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
6538else
6539    rm -f ${D}{tmpdefFile}%
6540fi
6541cat ${D}tmpdefFile >> ${D}defFile
6542rm -f ${D}tmpdefFile
6543
6544# Do linking, create implib, and apply lxlite.
6545gccCmdl="";
6546for file in ${D}inputFiles ; do
6547    case ${D}file in
6548    *!)
6549        ;;
6550    *)
6551        gccCmdl="${D}gccCmdl ${D}file"
6552        ;;
6553    esac
6554done
6555doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
6556touch "${D}{outFile}.dll"
6557
6558doCommand "emximp -o ${D}arcFile ${D}defFile"
6559if [ ${D}flag_USE_LXLITE -ne 0 ]; then
6560    add_flags="";
6561    if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
6562        add_flags="-ynd"
6563    fi
6564    doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
6565fi
6566doCommand "emxomf -s -l ${D}arcFile"
6567
6568# Successful exit.
6569CleanUp 1
6570exit 0
6571EOF
6572
6573        chmod +x dllar.sh
6574      ;;
6575
6576      powerpc-apple-macos* | \
6577      *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
6578      *-*-mirbsd* | \
6579      *-*-sunos4* | \
6580      *-*-osf* | \
6581      *-*-dgux5* | \
6582      *-*-sysv5* | \
6583      *-pc-msdosdjgpp )
6584              ;;
6585
6586      *)
6587        as_fn_error $? "unknown system type $BAKEFILE_HOST." "$LINENO" 5
6588    esac
6589
6590    if test "x$PIC_FLAG" != "x" ; then
6591        PIC_FLAG="$PIC_FLAG -DPIC"
6592    fi
6593
6594    if test "x$SHARED_LD_MODULE_CC" = "x" ; then
6595        SHARED_LD_MODULE_CC="$SHARED_LD_CC"
6596    fi
6597    if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
6598        SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
6599    fi
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609    USE_SOVERSION=0
6610    USE_SOVERLINUX=0
6611    USE_SOVERSOLARIS=0
6612    USE_SOVERCYGWIN=0
6613    USE_SOTWOSYMLINKS=0
6614    USE_MACVERSION=0
6615    SONAME_FLAG=
6616
6617    case "${BAKEFILE_HOST}" in
6618      *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
6619      *-*-k*bsd*-gnu | *-*-mirbsd* )
6620        if test "x$SUNCXX" = "xyes"; then
6621            SONAME_FLAG="-h "
6622        else
6623            SONAME_FLAG="-Wl,-soname,"
6624        fi
6625        USE_SOVERSION=1
6626        USE_SOVERLINUX=1
6627        USE_SOTWOSYMLINKS=1
6628      ;;
6629
6630      *-*-solaris2* )
6631        SONAME_FLAG="-h "
6632        USE_SOVERSION=1
6633        USE_SOVERSOLARIS=1
6634      ;;
6635
6636      *-*-darwin* )
6637        USE_MACVERSION=1
6638        USE_SOVERSION=1
6639        USE_SOTWOSYMLINKS=1
6640      ;;
6641
6642      *-*-cygwin* )
6643        USE_SOVERSION=1
6644        USE_SOVERCYGWIN=1
6645      ;;
6646    esac
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657    # Check whether --enable-dependency-tracking was given.
6658if test "${enable_dependency_tracking+set}" = set; then :
6659  enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
6660fi
6661
6662
6663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dependency tracking method" >&5
6664$as_echo_n "checking for dependency tracking method... " >&6; }
6665
6666    BK_DEPS=""
6667    if test "x$bk_use_trackdeps" = "xno" ; then
6668        DEPS_TRACKING=0
6669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6670$as_echo "disabled" >&6; }
6671    else
6672        DEPS_TRACKING=1
6673
6674        if test "x$GCC" = "xyes"; then
6675            DEPSMODE=gcc
6676            case "${BAKEFILE_HOST}" in
6677                *-*-darwin* )
6678                                                            DEPSFLAG="-no-cpp-precomp -MMD"
6679                ;;
6680                * )
6681                    DEPSFLAG="-MMD"
6682                ;;
6683            esac
6684            { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
6685$as_echo "gcc" >&6; }
6686        elif test "x$MWCC" = "xyes"; then
6687            DEPSMODE=mwcc
6688            DEPSFLAG="-MM"
6689            { $as_echo "$as_me:${as_lineno-$LINENO}: result: mwcc" >&5
6690$as_echo "mwcc" >&6; }
6691        elif test "x$SUNCC" = "xyes"; then
6692            DEPSMODE=unixcc
6693            DEPSFLAG="-xM1"
6694            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun cc" >&5
6695$as_echo "Sun cc" >&6; }
6696        elif test "x$SGICC" = "xyes"; then
6697            DEPSMODE=unixcc
6698            DEPSFLAG="-M"
6699            { $as_echo "$as_me:${as_lineno-$LINENO}: result: SGI cc" >&5
6700$as_echo "SGI cc" >&6; }
6701        elif test "x$HPCC" = "xyes"; then
6702            DEPSMODE=unixcc
6703            DEPSFLAG="+make"
6704            { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP cc" >&5
6705$as_echo "HP cc" >&6; }
6706        elif test "x$COMPAQCC" = "xyes"; then
6707            DEPSMODE=gcc
6708            DEPSFLAG="-MD"
6709            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compaq cc" >&5
6710$as_echo "Compaq cc" >&6; }
6711        else
6712            DEPS_TRACKING=0
6713            { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6714$as_echo "none" >&6; }
6715        fi
6716
6717        if test $DEPS_TRACKING = 1 ; then
6718
6719D='$'
6720cat <<EOF >bk-deps
6721#!/bin/sh
6722
6723# This script is part of Bakefile (http://www.bakefile.org) autoconf
6724# script. It is used to track C/C++ files dependencies in portable way.
6725#
6726# Permission is given to use this file in any way.
6727
6728DEPSMODE=${DEPSMODE}
6729DEPSFLAG="${DEPSFLAG}"
6730DEPSDIRBASE=.deps
6731
6732if test ${D}DEPSMODE = gcc ; then
6733    ${D}* ${D}{DEPSFLAG}
6734    status=${D}?
6735
6736    # determine location of created files:
6737    while test ${D}# -gt 0; do
6738        case "${D}1" in
6739            -o )
6740                shift
6741                objfile=${D}1
6742            ;;
6743            -* )
6744            ;;
6745            * )
6746                srcfile=${D}1
6747            ;;
6748        esac
6749        shift
6750    done
6751    objfilebase=\`basename ${D}objfile\`
6752    builddir=\`dirname ${D}objfile\`
6753    depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
6754    depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
6755    depsdir=${D}builddir/${D}DEPSDIRBASE
6756    mkdir -p ${D}depsdir
6757
6758    # if the compiler failed, we're done:
6759    if test ${D}{status} != 0 ; then
6760        rm -f ${D}depfile
6761        exit ${D}{status}
6762    fi
6763
6764    # move created file to the location we want it in:
6765    if test -f ${D}depfile ; then
6766        sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
6767        rm -f ${D}depfile
6768    else
6769        # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
6770        depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
6771        if test ! -f ${D}depfile ; then
6772            # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
6773            depfile="${D}objfile.d"
6774        fi
6775        if test -f ${D}depfile ; then
6776            sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
6777            rm -f ${D}depfile
6778        fi
6779    fi
6780    exit 0
6781
6782elif test ${D}DEPSMODE = mwcc ; then
6783    ${D}* || exit ${D}?
6784    # Run mwcc again with -MM and redirect into the dep file we want
6785    # NOTE: We can't use shift here because we need ${D}* to be valid
6786    prevarg=
6787    for arg in ${D}* ; do
6788        if test "${D}prevarg" = "-o"; then
6789            objfile=${D}arg
6790        else
6791            case "${D}arg" in
6792                -* )
6793                ;;
6794                * )
6795                    srcfile=${D}arg
6796                ;;
6797            esac
6798        fi
6799        prevarg="${D}arg"
6800    done
6801
6802    objfilebase=\`basename ${D}objfile\`
6803    builddir=\`dirname ${D}objfile\`
6804    depsdir=${D}builddir/${D}DEPSDIRBASE
6805    mkdir -p ${D}depsdir
6806
6807    ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
6808    exit 0
6809
6810elif test ${D}DEPSMODE = unixcc; then
6811    ${D}* || exit ${D}?
6812    # Run compiler again with deps flag and redirect into the dep file.
6813    # It doesn't work if the '-o FILE' option is used, but without it the
6814    # dependency file will contain the wrong name for the object. So it is
6815    # removed from the command line, and the dep file is fixed with sed.
6816    cmd=""
6817    while test ${D}# -gt 0; do
6818        case "${D}1" in
6819            -o )
6820                shift
6821                objfile=${D}1
6822            ;;
6823            * )
6824                eval arg${D}#=\\${D}1
6825                cmd="${D}cmd \\${D}arg${D}#"
6826            ;;
6827        esac
6828        shift
6829    done
6830
6831    objfilebase=\`basename ${D}objfile\`
6832    builddir=\`dirname ${D}objfile\`
6833    depsdir=${D}builddir/${D}DEPSDIRBASE
6834    mkdir -p ${D}depsdir
6835
6836    eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
6837    exit 0
6838
6839else
6840    ${D}*
6841    exit ${D}?
6842fi
6843EOF
6844
6845            chmod +x bk-deps
6846                                    BK_DEPS="`pwd`/bk-deps"
6847        fi
6848    fi
6849
6850
6851
6852
6853
6854    case ${BAKEFILE_HOST} in
6855        *-*-cygwin* | *-*-mingw32* )
6856                        if test -n "$ac_tool_prefix"; then
6857  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6858set dummy ${ac_tool_prefix}windres; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_WINDRES+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$WINDRES"; then
6865  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884WINDRES=$ac_cv_prog_WINDRES
6885if test -n "$WINDRES"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6887$as_echo "$WINDRES" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893
6894fi
6895if test -z "$ac_cv_prog_WINDRES"; then
6896  ac_ct_WINDRES=$WINDRES
6897  # Extract the first word of "windres", so it can be a program name with args.
6898set dummy windres; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$ac_ct_WINDRES"; then
6905  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914    ac_cv_prog_ac_ct_WINDRES="windres"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6925if test -n "$ac_ct_WINDRES"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6927$as_echo "$ac_ct_WINDRES" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933  if test "x$ac_ct_WINDRES" = x; then
6934    WINDRES=""
6935  else
6936    case $cross_compiling:$ac_tool_warned in
6937yes:)
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940ac_tool_warned=yes ;;
6941esac
6942    WINDRES=$ac_ct_WINDRES
6943  fi
6944else
6945  WINDRES="$ac_cv_prog_WINDRES"
6946fi
6947
6948         ;;
6949
6950      *-*-darwin* | powerpc-apple-macos* )
6951            # Extract the first word of "Rez", so it can be a program name with args.
6952set dummy Rez; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_REZ+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$REZ"; then
6959  ac_cv_prog_REZ="$REZ" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968    ac_cv_prog_REZ="Rez"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976  test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
6977fi
6978fi
6979REZ=$ac_cv_prog_REZ
6980if test -n "$REZ"; then
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REZ" >&5
6982$as_echo "$REZ" >&6; }
6983else
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988
6989            # Extract the first word of "SetFile", so it can be a program name with args.
6990set dummy SetFile; ac_word=$2
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992$as_echo_n "checking for $ac_word... " >&6; }
6993if ${ac_cv_prog_SETFILE+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  if test -n "$SETFILE"; then
6997  ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002  IFS=$as_save_IFS
7003  test -z "$as_dir" && as_dir=.
7004    for ac_exec_ext in '' $ac_executable_extensions; do
7005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006    ac_cv_prog_SETFILE="SetFile"
7007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008    break 2
7009  fi
7010done
7011  done
7012IFS=$as_save_IFS
7013
7014  test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
7015fi
7016fi
7017SETFILE=$ac_cv_prog_SETFILE
7018if test -n "$SETFILE"; then
7019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
7020$as_echo "$SETFILE" >&6; }
7021else
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027        ;;
7028    esac
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038    BAKEFILE_BAKEFILE_M4_VERSION="0.2.9"
7039
7040
7041BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
7042
7043    COND_DEBUG_0="#"
7044    if test "x$DEBUG" = "x0" ; then
7045        COND_DEBUG_0=""
7046    fi
7047
7048    COND_DEBUG_1="#"
7049    if test "x$DEBUG" = "x1" ; then
7050        COND_DEBUG_1=""
7051    fi
7052
7053    COND_DEPS_TRACKING_0="#"
7054    if test "x$DEPS_TRACKING" = "x0" ; then
7055        COND_DEPS_TRACKING_0=""
7056    fi
7057
7058    COND_DEPS_TRACKING_1="#"
7059    if test "x$DEPS_TRACKING" = "x1" ; then
7060        COND_DEPS_TRACKING_1=""
7061    fi
7062
7063    COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
7064    if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
7065        COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
7066    fi
7067
7068    COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
7069    if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
7070        COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
7071    fi
7072
7073    COND_PLATFORM_MACOSX_1="#"
7074    if test "x$PLATFORM_MACOSX" = "x1" ; then
7075        COND_PLATFORM_MACOSX_1=""
7076    fi
7077
7078    COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
7079    if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
7080        COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
7081    fi
7082
7083    COND_PLATFORM_MAC_0="#"
7084    if test "x$PLATFORM_MAC" = "x0" ; then
7085        COND_PLATFORM_MAC_0=""
7086    fi
7087
7088    COND_PLATFORM_MAC_1="#"
7089    if test "x$PLATFORM_MAC" = "x1" ; then
7090        COND_PLATFORM_MAC_1=""
7091    fi
7092
7093    COND_PLATFORM_OS2_1="#"
7094    if test "x$PLATFORM_OS2" = "x1" ; then
7095        COND_PLATFORM_OS2_1=""
7096    fi
7097
7098    COND_SAMPLES_1="#"
7099    if test "x$SAMPLES" = "x1" ; then
7100        COND_SAMPLES_1=""
7101    fi
7102
7103    COND_SHARED_0="#"
7104    if test "x$SHARED" = "x0" ; then
7105        COND_SHARED_0=""
7106    fi
7107
7108    COND_SHARED_1="#"
7109    if test "x$SHARED" = "x1" ; then
7110        COND_SHARED_1=""
7111    fi
7112
7113    COND_USE_SOTWOSYMLINKS_1="#"
7114    if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
7115        COND_USE_SOTWOSYMLINKS_1=""
7116    fi
7117
7118    COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
7119    if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
7120        COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
7121    fi
7122
7123    COND_USE_SOVERLINUX_1="#"
7124    if test "x$USE_SOVERLINUX" = "x1" ; then
7125        COND_USE_SOVERLINUX_1=""
7126    fi
7127
7128    COND_USE_SOVERSION_0="#"
7129    if test "x$USE_SOVERSION" = "x0" ; then
7130        COND_USE_SOVERSION_0=""
7131    fi
7132
7133    COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
7134    if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
7135        COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
7136    fi
7137
7138    COND_USE_SOVERSOLARIS_1="#"
7139    if test "x$USE_SOVERSOLARIS" = "x1" ; then
7140        COND_USE_SOVERSOLARIS_1=""
7141    fi
7142
7143    COND_WINDOWS_IMPLIB_1="#"
7144    if test "x$WINDOWS_IMPLIB" = "x1" ; then
7145        COND_WINDOWS_IMPLIB_1=""
7146    fi
7147
7148
7149
7150    if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
7151        as_fn_error $? "No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" "$LINENO" 5
7152    fi
7153
7154    if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
7155        as_fn_error $? "Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." "$LINENO" 5
7156    fi
7157
7158ac_config_files="$ac_config_files Makefile build/autoconf/muparser.pc"
7159
7160cat >confcache <<\_ACEOF
7161# This file is a shell script that caches the results of configure
7162# tests run on this system so they can be shared between configure
7163# scripts and configure runs, see configure's option --config-cache.
7164# It is not useful on other systems.  If it contains results you don't
7165# want to keep, you may remove or edit it.
7166#
7167# config.status only pays attention to the cache file if you give it
7168# the --recheck option to rerun configure.
7169#
7170# `ac_cv_env_foo' variables (set or unset) will be overridden when
7171# loading this file, other *unset* `ac_cv_foo' will be assigned the
7172# following values.
7173
7174_ACEOF
7175
7176# The following way of writing the cache mishandles newlines in values,
7177# but we know of no workaround that is simple, portable, and efficient.
7178# So, we kill variables containing newlines.
7179# Ultrix sh set writes to stderr and can't be redirected directly,
7180# and sets the high bit in the cache file unless we assign to the vars.
7181(
7182  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7183    eval ac_val=\$$ac_var
7184    case $ac_val in #(
7185    *${as_nl}*)
7186      case $ac_var in #(
7187      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7189      esac
7190      case $ac_var in #(
7191      _ | IFS | as_nl) ;; #(
7192      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7193      *) { eval $ac_var=; unset $ac_var;} ;;
7194      esac ;;
7195    esac
7196  done
7197
7198  (set) 2>&1 |
7199    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7200    *${as_nl}ac_space=\ *)
7201      # `set' does not quote correctly, so add quotes: double-quote
7202      # substitution turns \\\\ into \\, and sed turns \\ into \.
7203      sed -n \
7204	"s/'/'\\\\''/g;
7205	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7206      ;; #(
7207    *)
7208      # `set' quotes correctly as required by POSIX, so do not add quotes.
7209      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7210      ;;
7211    esac |
7212    sort
7213) |
7214  sed '
7215     /^ac_cv_env_/b end
7216     t clear
7217     :clear
7218     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7219     t end
7220     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7221     :end' >>confcache
7222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7223  if test -w "$cache_file"; then
7224    if test "x$cache_file" != "x/dev/null"; then
7225      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7226$as_echo "$as_me: updating cache $cache_file" >&6;}
7227      if test ! -f "$cache_file" || test -h "$cache_file"; then
7228	cat confcache >"$cache_file"
7229      else
7230        case $cache_file in #(
7231        */* | ?:*)
7232	  mv -f confcache "$cache_file"$$ &&
7233	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7234        *)
7235	  mv -f confcache "$cache_file" ;;
7236	esac
7237      fi
7238    fi
7239  else
7240    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7241$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7242  fi
7243fi
7244rm -f confcache
7245
7246test "x$prefix" = xNONE && prefix=$ac_default_prefix
7247# Let make expand exec_prefix.
7248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7249
7250# Transform confdefs.h into DEFS.
7251# Protect against shell expansion while executing Makefile rules.
7252# Protect against Makefile macro expansion.
7253#
7254# If the first sed substitution is executed (which looks for macros that
7255# take arguments), then branch to the quote section.  Otherwise,
7256# look for a macro that doesn't take arguments.
7257ac_script='
7258:mline
7259/\\$/{
7260 N
7261 s,\\\n,,
7262 b mline
7263}
7264t clear
7265:clear
7266s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7267t quote
7268s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7269t quote
7270b any
7271:quote
7272s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7273s/\[/\\&/g
7274s/\]/\\&/g
7275s/\$/$$/g
7276H
7277:any
7278${
7279	g
7280	s/^\n//
7281	s/\n/ /g
7282	p
7283}
7284'
7285DEFS=`sed -n "$ac_script" confdefs.h`
7286
7287
7288ac_libobjs=
7289ac_ltlibobjs=
7290U=
7291for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7292  # 1. Remove the extension, and $U if already installed.
7293  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7294  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7295  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7296  #    will be set to the directory where LIBOBJS objects are built.
7297  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7298  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7299done
7300LIBOBJS=$ac_libobjs
7301
7302LTLIBOBJS=$ac_ltlibobjs
7303
7304
7305
7306: "${CONFIG_STATUS=./config.status}"
7307ac_write_fail=0
7308ac_clean_files_save=$ac_clean_files
7309ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7311$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7312as_write_fail=0
7313cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7314#! $SHELL
7315# Generated by $as_me.
7316# Run this file to recreate the current configuration.
7317# Compiler output produced by configure, useful for debugging
7318# configure, is in config.log if it exists.
7319
7320debug=false
7321ac_cs_recheck=false
7322ac_cs_silent=false
7323
7324SHELL=\${CONFIG_SHELL-$SHELL}
7325export SHELL
7326_ASEOF
7327cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7328## -------------------- ##
7329## M4sh Initialization. ##
7330## -------------------- ##
7331
7332# Be more Bourne compatible
7333DUALCASE=1; export DUALCASE # for MKS sh
7334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7335  emulate sh
7336  NULLCMD=:
7337  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7338  # is contrary to our usage.  Disable this feature.
7339  alias -g '${1+"$@"}'='"$@"'
7340  setopt NO_GLOB_SUBST
7341else
7342  case `(set -o) 2>/dev/null` in #(
7343  *posix*) :
7344    set -o posix ;; #(
7345  *) :
7346     ;;
7347esac
7348fi
7349
7350
7351as_nl='
7352'
7353export as_nl
7354# Printing a long string crashes Solaris 7 /usr/bin/printf.
7355as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7356as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7357as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7358# Prefer a ksh shell builtin over an external printf program on Solaris,
7359# but without wasting forks for bash or zsh.
7360if test -z "$BASH_VERSION$ZSH_VERSION" \
7361    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7362  as_echo='print -r --'
7363  as_echo_n='print -rn --'
7364elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7365  as_echo='printf %s\n'
7366  as_echo_n='printf %s'
7367else
7368  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7369    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7370    as_echo_n='/usr/ucb/echo -n'
7371  else
7372    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7373    as_echo_n_body='eval
7374      arg=$1;
7375      case $arg in #(
7376      *"$as_nl"*)
7377	expr "X$arg" : "X\\(.*\\)$as_nl";
7378	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7379      esac;
7380      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7381    '
7382    export as_echo_n_body
7383    as_echo_n='sh -c $as_echo_n_body as_echo'
7384  fi
7385  export as_echo_body
7386  as_echo='sh -c $as_echo_body as_echo'
7387fi
7388
7389# The user is always right.
7390if test "${PATH_SEPARATOR+set}" != set; then
7391  PATH_SEPARATOR=:
7392  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7393    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7394      PATH_SEPARATOR=';'
7395  }
7396fi
7397
7398
7399# IFS
7400# We need space, tab and new line, in precisely that order.  Quoting is
7401# there to prevent editors from complaining about space-tab.
7402# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7403# splitting by setting IFS to empty value.)
7404IFS=" ""	$as_nl"
7405
7406# Find who we are.  Look in the path if we contain no directory separator.
7407as_myself=
7408case $0 in #((
7409  *[\\/]* ) as_myself=$0 ;;
7410  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413  IFS=$as_save_IFS
7414  test -z "$as_dir" && as_dir=.
7415    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7416  done
7417IFS=$as_save_IFS
7418
7419     ;;
7420esac
7421# We did not find ourselves, most probably we were run as `sh COMMAND'
7422# in which case we are not to be found in the path.
7423if test "x$as_myself" = x; then
7424  as_myself=$0
7425fi
7426if test ! -f "$as_myself"; then
7427  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7428  exit 1
7429fi
7430
7431# Unset variables that we do not need and which cause bugs (e.g. in
7432# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7433# suppresses any "Segmentation fault" message there.  '((' could
7434# trigger a bug in pdksh 5.2.14.
7435for as_var in BASH_ENV ENV MAIL MAILPATH
7436do eval test x\${$as_var+set} = xset \
7437  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7438done
7439PS1='$ '
7440PS2='> '
7441PS4='+ '
7442
7443# NLS nuisances.
7444LC_ALL=C
7445export LC_ALL
7446LANGUAGE=C
7447export LANGUAGE
7448
7449# CDPATH.
7450(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7451
7452
7453# as_fn_error STATUS ERROR [LINENO LOG_FD]
7454# ----------------------------------------
7455# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7456# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7457# script with STATUS, using 1 if that was 0.
7458as_fn_error ()
7459{
7460  as_status=$1; test $as_status -eq 0 && as_status=1
7461  if test "$4"; then
7462    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7463    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7464  fi
7465  $as_echo "$as_me: error: $2" >&2
7466  as_fn_exit $as_status
7467} # as_fn_error
7468
7469
7470# as_fn_set_status STATUS
7471# -----------------------
7472# Set $? to STATUS, without forking.
7473as_fn_set_status ()
7474{
7475  return $1
7476} # as_fn_set_status
7477
7478# as_fn_exit STATUS
7479# -----------------
7480# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7481as_fn_exit ()
7482{
7483  set +e
7484  as_fn_set_status $1
7485  exit $1
7486} # as_fn_exit
7487
7488# as_fn_unset VAR
7489# ---------------
7490# Portably unset VAR.
7491as_fn_unset ()
7492{
7493  { eval $1=; unset $1;}
7494}
7495as_unset=as_fn_unset
7496# as_fn_append VAR VALUE
7497# ----------------------
7498# Append the text in VALUE to the end of the definition contained in VAR. Take
7499# advantage of any shell optimizations that allow amortized linear growth over
7500# repeated appends, instead of the typical quadratic growth present in naive
7501# implementations.
7502if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7503  eval 'as_fn_append ()
7504  {
7505    eval $1+=\$2
7506  }'
7507else
7508  as_fn_append ()
7509  {
7510    eval $1=\$$1\$2
7511  }
7512fi # as_fn_append
7513
7514# as_fn_arith ARG...
7515# ------------------
7516# Perform arithmetic evaluation on the ARGs, and store the result in the
7517# global $as_val. Take advantage of shells that can avoid forks. The arguments
7518# must be portable across $(()) and expr.
7519if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7520  eval 'as_fn_arith ()
7521  {
7522    as_val=$(( $* ))
7523  }'
7524else
7525  as_fn_arith ()
7526  {
7527    as_val=`expr "$@" || test $? -eq 1`
7528  }
7529fi # as_fn_arith
7530
7531
7532if expr a : '\(a\)' >/dev/null 2>&1 &&
7533   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7534  as_expr=expr
7535else
7536  as_expr=false
7537fi
7538
7539if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7540  as_basename=basename
7541else
7542  as_basename=false
7543fi
7544
7545if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7546  as_dirname=dirname
7547else
7548  as_dirname=false
7549fi
7550
7551as_me=`$as_basename -- "$0" ||
7552$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7553	 X"$0" : 'X\(//\)$' \| \
7554	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7555$as_echo X/"$0" |
7556    sed '/^.*\/\([^/][^/]*\)\/*$/{
7557	    s//\1/
7558	    q
7559	  }
7560	  /^X\/\(\/\/\)$/{
7561	    s//\1/
7562	    q
7563	  }
7564	  /^X\/\(\/\).*/{
7565	    s//\1/
7566	    q
7567	  }
7568	  s/.*/./; q'`
7569
7570# Avoid depending upon Character Ranges.
7571as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7572as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7573as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7574as_cr_digits='0123456789'
7575as_cr_alnum=$as_cr_Letters$as_cr_digits
7576
7577ECHO_C= ECHO_N= ECHO_T=
7578case `echo -n x` in #(((((
7579-n*)
7580  case `echo 'xy\c'` in
7581  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7582  xy)  ECHO_C='\c';;
7583  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7584       ECHO_T='	';;
7585  esac;;
7586*)
7587  ECHO_N='-n';;
7588esac
7589
7590rm -f conf$$ conf$$.exe conf$$.file
7591if test -d conf$$.dir; then
7592  rm -f conf$$.dir/conf$$.file
7593else
7594  rm -f conf$$.dir
7595  mkdir conf$$.dir 2>/dev/null
7596fi
7597if (echo >conf$$.file) 2>/dev/null; then
7598  if ln -s conf$$.file conf$$ 2>/dev/null; then
7599    as_ln_s='ln -s'
7600    # ... but there are two gotchas:
7601    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7602    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7603    # In both cases, we have to default to `cp -pR'.
7604    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7605      as_ln_s='cp -pR'
7606  elif ln conf$$.file conf$$ 2>/dev/null; then
7607    as_ln_s=ln
7608  else
7609    as_ln_s='cp -pR'
7610  fi
7611else
7612  as_ln_s='cp -pR'
7613fi
7614rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7615rmdir conf$$.dir 2>/dev/null
7616
7617
7618# as_fn_mkdir_p
7619# -------------
7620# Create "$as_dir" as a directory, including parents if necessary.
7621as_fn_mkdir_p ()
7622{
7623
7624  case $as_dir in #(
7625  -*) as_dir=./$as_dir;;
7626  esac
7627  test -d "$as_dir" || eval $as_mkdir_p || {
7628    as_dirs=
7629    while :; do
7630      case $as_dir in #(
7631      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7632      *) as_qdir=$as_dir;;
7633      esac
7634      as_dirs="'$as_qdir' $as_dirs"
7635      as_dir=`$as_dirname -- "$as_dir" ||
7636$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7637	 X"$as_dir" : 'X\(//\)[^/]' \| \
7638	 X"$as_dir" : 'X\(//\)$' \| \
7639	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7640$as_echo X"$as_dir" |
7641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7642	    s//\1/
7643	    q
7644	  }
7645	  /^X\(\/\/\)[^/].*/{
7646	    s//\1/
7647	    q
7648	  }
7649	  /^X\(\/\/\)$/{
7650	    s//\1/
7651	    q
7652	  }
7653	  /^X\(\/\).*/{
7654	    s//\1/
7655	    q
7656	  }
7657	  s/.*/./; q'`
7658      test -d "$as_dir" && break
7659    done
7660    test -z "$as_dirs" || eval "mkdir $as_dirs"
7661  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7662
7663
7664} # as_fn_mkdir_p
7665if mkdir -p . 2>/dev/null; then
7666  as_mkdir_p='mkdir -p "$as_dir"'
7667else
7668  test -d ./-p && rmdir ./-p
7669  as_mkdir_p=false
7670fi
7671
7672
7673# as_fn_executable_p FILE
7674# -----------------------
7675# Test if FILE is an executable regular file.
7676as_fn_executable_p ()
7677{
7678  test -f "$1" && test -x "$1"
7679} # as_fn_executable_p
7680as_test_x='test -x'
7681as_executable_p=as_fn_executable_p
7682
7683# Sed expression to map a string onto a valid CPP name.
7684as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7685
7686# Sed expression to map a string onto a valid variable name.
7687as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7688
7689
7690exec 6>&1
7691## ----------------------------------- ##
7692## Main body of $CONFIG_STATUS script. ##
7693## ----------------------------------- ##
7694_ASEOF
7695test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7696
7697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7698# Save the log message, to keep $0 and so on meaningful, and to
7699# report actual input values of CONFIG_FILES etc. instead of their
7700# values after options handling.
7701ac_log="
7702This file was extended by muparser $as_me 2.2.4, which was
7703generated by GNU Autoconf 2.69.  Invocation command line was
7704
7705  CONFIG_FILES    = $CONFIG_FILES
7706  CONFIG_HEADERS  = $CONFIG_HEADERS
7707  CONFIG_LINKS    = $CONFIG_LINKS
7708  CONFIG_COMMANDS = $CONFIG_COMMANDS
7709  $ $0 $@
7710
7711on `(hostname || uname -n) 2>/dev/null | sed 1q`
7712"
7713
7714_ACEOF
7715
7716case $ac_config_files in *"
7717"*) set x $ac_config_files; shift; ac_config_files=$*;;
7718esac
7719
7720
7721
7722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7723# Files that config.status was made for.
7724config_files="$ac_config_files"
7725
7726_ACEOF
7727
7728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7729ac_cs_usage="\
7730\`$as_me' instantiates files and other configuration actions
7731from templates according to the current configuration.  Unless the files
7732and actions are specified as TAGs, all are instantiated by default.
7733
7734Usage: $0 [OPTION]... [TAG]...
7735
7736  -h, --help       print this help, then exit
7737  -V, --version    print version number and configuration settings, then exit
7738      --config     print configuration, then exit
7739  -q, --quiet, --silent
7740                   do not print progress messages
7741  -d, --debug      don't remove temporary files
7742      --recheck    update $as_me by reconfiguring in the same conditions
7743      --file=FILE[:TEMPLATE]
7744                   instantiate the configuration file FILE
7745
7746Configuration files:
7747$config_files
7748
7749Report bugs to <muparser@beltoforion.de>."
7750
7751_ACEOF
7752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7753ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7754ac_cs_version="\\
7755muparser config.status 2.2.4
7756configured by $0, generated by GNU Autoconf 2.69,
7757  with options \\"\$ac_cs_config\\"
7758
7759Copyright (C) 2012 Free Software Foundation, Inc.
7760This config.status script is free software; the Free Software Foundation
7761gives unlimited permission to copy, distribute and modify it."
7762
7763ac_pwd='$ac_pwd'
7764srcdir='$srcdir'
7765INSTALL='$INSTALL'
7766AWK='$AWK'
7767test -n "\$AWK" || AWK=awk
7768_ACEOF
7769
7770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7771# The default lists apply if the user does not specify any file.
7772ac_need_defaults=:
7773while test $# != 0
7774do
7775  case $1 in
7776  --*=?*)
7777    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7778    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7779    ac_shift=:
7780    ;;
7781  --*=)
7782    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7783    ac_optarg=
7784    ac_shift=:
7785    ;;
7786  *)
7787    ac_option=$1
7788    ac_optarg=$2
7789    ac_shift=shift
7790    ;;
7791  esac
7792
7793  case $ac_option in
7794  # Handling of the options.
7795  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7796    ac_cs_recheck=: ;;
7797  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7798    $as_echo "$ac_cs_version"; exit ;;
7799  --config | --confi | --conf | --con | --co | --c )
7800    $as_echo "$ac_cs_config"; exit ;;
7801  --debug | --debu | --deb | --de | --d | -d )
7802    debug=: ;;
7803  --file | --fil | --fi | --f )
7804    $ac_shift
7805    case $ac_optarg in
7806    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7807    '') as_fn_error $? "missing file argument" ;;
7808    esac
7809    as_fn_append CONFIG_FILES " '$ac_optarg'"
7810    ac_need_defaults=false;;
7811  --he | --h |  --help | --hel | -h )
7812    $as_echo "$ac_cs_usage"; exit ;;
7813  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7814  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7815    ac_cs_silent=: ;;
7816
7817  # This is an error.
7818  -*) as_fn_error $? "unrecognized option: \`$1'
7819Try \`$0 --help' for more information." ;;
7820
7821  *) as_fn_append ac_config_targets " $1"
7822     ac_need_defaults=false ;;
7823
7824  esac
7825  shift
7826done
7827
7828ac_configure_extra_args=
7829
7830if $ac_cs_silent; then
7831  exec 6>/dev/null
7832  ac_configure_extra_args="$ac_configure_extra_args --silent"
7833fi
7834
7835_ACEOF
7836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7837if \$ac_cs_recheck; then
7838  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7839  shift
7840  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7841  CONFIG_SHELL='$SHELL'
7842  export CONFIG_SHELL
7843  exec "\$@"
7844fi
7845
7846_ACEOF
7847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7848exec 5>>config.log
7849{
7850  echo
7851  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7852## Running $as_me. ##
7853_ASBOX
7854  $as_echo "$ac_log"
7855} >&5
7856
7857_ACEOF
7858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7859_ACEOF
7860
7861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7862
7863# Handling of arguments.
7864for ac_config_target in $ac_config_targets
7865do
7866  case $ac_config_target in
7867    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7868    "build/autoconf/muparser.pc") CONFIG_FILES="$CONFIG_FILES build/autoconf/muparser.pc" ;;
7869
7870  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7871  esac
7872done
7873
7874
7875# If the user did not use the arguments to specify the items to instantiate,
7876# then the envvar interface is used.  Set only those that are not.
7877# We use the long form for the default assignment because of an extremely
7878# bizarre bug on SunOS 4.1.3.
7879if $ac_need_defaults; then
7880  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7881fi
7882
7883# Have a temporary directory for convenience.  Make it in the build tree
7884# simply because there is no reason against having it here, and in addition,
7885# creating and moving files from /tmp can sometimes cause problems.
7886# Hook for its removal unless debugging.
7887# Note that there is a small window in which the directory will not be cleaned:
7888# after its creation but before its name has been assigned to `$tmp'.
7889$debug ||
7890{
7891  tmp= ac_tmp=
7892  trap 'exit_status=$?
7893  : "${ac_tmp:=$tmp}"
7894  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7895' 0
7896  trap 'as_fn_exit 1' 1 2 13 15
7897}
7898# Create a (secure) tmp directory for tmp files.
7899
7900{
7901  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7902  test -d "$tmp"
7903}  ||
7904{
7905  tmp=./conf$$-$RANDOM
7906  (umask 077 && mkdir "$tmp")
7907} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7908ac_tmp=$tmp
7909
7910# Set up the scripts for CONFIG_FILES section.
7911# No need to generate them if there are no CONFIG_FILES.
7912# This happens for instance with `./config.status config.h'.
7913if test -n "$CONFIG_FILES"; then
7914
7915
7916ac_cr=`echo X | tr X '\015'`
7917# On cygwin, bash can eat \r inside `` if the user requested igncr.
7918# But we know of no other shell where ac_cr would be empty at this
7919# point, so we can use a bashism as a fallback.
7920if test "x$ac_cr" = x; then
7921  eval ac_cr=\$\'\\r\'
7922fi
7923ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7924if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7925  ac_cs_awk_cr='\\r'
7926else
7927  ac_cs_awk_cr=$ac_cr
7928fi
7929
7930echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7931_ACEOF
7932
7933
7934{
7935  echo "cat >conf$$subs.awk <<_ACEOF" &&
7936  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7937  echo "_ACEOF"
7938} >conf$$subs.sh ||
7939  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7940ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7941ac_delim='%!_!# '
7942for ac_last_try in false false false false false :; do
7943  . ./conf$$subs.sh ||
7944    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7945
7946  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7947  if test $ac_delim_n = $ac_delim_num; then
7948    break
7949  elif $ac_last_try; then
7950    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7951  else
7952    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7953  fi
7954done
7955rm -f conf$$subs.sh
7956
7957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7958cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7959_ACEOF
7960sed -n '
7961h
7962s/^/S["/; s/!.*/"]=/
7963p
7964g
7965s/^[^!]*!//
7966:repl
7967t repl
7968s/'"$ac_delim"'$//
7969t delim
7970:nl
7971h
7972s/\(.\{148\}\)..*/\1/
7973t more1
7974s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7975p
7976n
7977b repl
7978:more1
7979s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7980p
7981g
7982s/.\{148\}//
7983t nl
7984:delim
7985h
7986s/\(.\{148\}\)..*/\1/
7987t more2
7988s/["\\]/\\&/g; s/^/"/; s/$/"/
7989p
7990b
7991:more2
7992s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7993p
7994g
7995s/.\{148\}//
7996t delim
7997' <conf$$subs.awk | sed '
7998/^[^""]/{
7999  N
8000  s/\n//
8001}
8002' >>$CONFIG_STATUS || ac_write_fail=1
8003rm -f conf$$subs.awk
8004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8005_ACAWK
8006cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8007  for (key in S) S_is_set[key] = 1
8008  FS = ""
8009
8010}
8011{
8012  line = $ 0
8013  nfields = split(line, field, "@")
8014  substed = 0
8015  len = length(field[1])
8016  for (i = 2; i < nfields; i++) {
8017    key = field[i]
8018    keylen = length(key)
8019    if (S_is_set[key]) {
8020      value = S[key]
8021      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8022      len += length(value) + length(field[++i])
8023      substed = 1
8024    } else
8025      len += 1 + keylen
8026  }
8027
8028  print line
8029}
8030
8031_ACAWK
8032_ACEOF
8033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8034if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8035  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8036else
8037  cat
8038fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8039  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8040_ACEOF
8041
8042# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8043# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8044# trailing colons and then remove the whole line if VPATH becomes empty
8045# (actually we leave an empty line to preserve line numbers).
8046if test "x$srcdir" = x.; then
8047  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8048h
8049s///
8050s/^/:/
8051s/[	 ]*$/:/
8052s/:\$(srcdir):/:/g
8053s/:\${srcdir}:/:/g
8054s/:@srcdir@:/:/g
8055s/^:*//
8056s/:*$//
8057x
8058s/\(=[	 ]*\).*/\1/
8059G
8060s/\n//
8061s/^[^=]*=[	 ]*$//
8062}'
8063fi
8064
8065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8066fi # test -n "$CONFIG_FILES"
8067
8068
8069eval set X "  :F $CONFIG_FILES      "
8070shift
8071for ac_tag
8072do
8073  case $ac_tag in
8074  :[FHLC]) ac_mode=$ac_tag; continue;;
8075  esac
8076  case $ac_mode$ac_tag in
8077  :[FHL]*:*);;
8078  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8079  :[FH]-) ac_tag=-:-;;
8080  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8081  esac
8082  ac_save_IFS=$IFS
8083  IFS=:
8084  set x $ac_tag
8085  IFS=$ac_save_IFS
8086  shift
8087  ac_file=$1
8088  shift
8089
8090  case $ac_mode in
8091  :L) ac_source=$1;;
8092  :[FH])
8093    ac_file_inputs=
8094    for ac_f
8095    do
8096      case $ac_f in
8097      -) ac_f="$ac_tmp/stdin";;
8098      *) # Look for the file first in the build tree, then in the source tree
8099	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8100	 # because $ac_f cannot contain `:'.
8101	 test -f "$ac_f" ||
8102	   case $ac_f in
8103	   [\\/$]*) false;;
8104	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8105	   esac ||
8106	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8107      esac
8108      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8109      as_fn_append ac_file_inputs " '$ac_f'"
8110    done
8111
8112    # Let's still pretend it is `configure' which instantiates (i.e., don't
8113    # use $as_me), people would be surprised to read:
8114    #    /* config.h.  Generated by config.status.  */
8115    configure_input='Generated from '`
8116	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8117	`' by configure.'
8118    if test x"$ac_file" != x-; then
8119      configure_input="$ac_file.  $configure_input"
8120      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8121$as_echo "$as_me: creating $ac_file" >&6;}
8122    fi
8123    # Neutralize special characters interpreted by sed in replacement strings.
8124    case $configure_input in #(
8125    *\&* | *\|* | *\\* )
8126       ac_sed_conf_input=`$as_echo "$configure_input" |
8127       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8128    *) ac_sed_conf_input=$configure_input;;
8129    esac
8130
8131    case $ac_tag in
8132    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8133      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8134    esac
8135    ;;
8136  esac
8137
8138  ac_dir=`$as_dirname -- "$ac_file" ||
8139$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8140	 X"$ac_file" : 'X\(//\)[^/]' \| \
8141	 X"$ac_file" : 'X\(//\)$' \| \
8142	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8143$as_echo X"$ac_file" |
8144    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8145	    s//\1/
8146	    q
8147	  }
8148	  /^X\(\/\/\)[^/].*/{
8149	    s//\1/
8150	    q
8151	  }
8152	  /^X\(\/\/\)$/{
8153	    s//\1/
8154	    q
8155	  }
8156	  /^X\(\/\).*/{
8157	    s//\1/
8158	    q
8159	  }
8160	  s/.*/./; q'`
8161  as_dir="$ac_dir"; as_fn_mkdir_p
8162  ac_builddir=.
8163
8164case "$ac_dir" in
8165.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8166*)
8167  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8168  # A ".." for each directory in $ac_dir_suffix.
8169  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8170  case $ac_top_builddir_sub in
8171  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8172  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8173  esac ;;
8174esac
8175ac_abs_top_builddir=$ac_pwd
8176ac_abs_builddir=$ac_pwd$ac_dir_suffix
8177# for backward compatibility:
8178ac_top_builddir=$ac_top_build_prefix
8179
8180case $srcdir in
8181  .)  # We are building in place.
8182    ac_srcdir=.
8183    ac_top_srcdir=$ac_top_builddir_sub
8184    ac_abs_top_srcdir=$ac_pwd ;;
8185  [\\/]* | ?:[\\/]* )  # Absolute name.
8186    ac_srcdir=$srcdir$ac_dir_suffix;
8187    ac_top_srcdir=$srcdir
8188    ac_abs_top_srcdir=$srcdir ;;
8189  *) # Relative name.
8190    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8191    ac_top_srcdir=$ac_top_build_prefix$srcdir
8192    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8193esac
8194ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8195
8196
8197  case $ac_mode in
8198  :F)
8199  #
8200  # CONFIG_FILE
8201  #
8202
8203  case $INSTALL in
8204  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8205  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8206  esac
8207_ACEOF
8208
8209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8210# If the template does not know about datarootdir, expand it.
8211# FIXME: This hack should be removed a few years after 2.60.
8212ac_datarootdir_hack=; ac_datarootdir_seen=
8213ac_sed_dataroot='
8214/datarootdir/ {
8215  p
8216  q
8217}
8218/@datadir@/p
8219/@docdir@/p
8220/@infodir@/p
8221/@localedir@/p
8222/@mandir@/p'
8223case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8224*datarootdir*) ac_datarootdir_seen=yes;;
8225*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8226  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8227$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8228_ACEOF
8229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8230  ac_datarootdir_hack='
8231  s&@datadir@&$datadir&g
8232  s&@docdir@&$docdir&g
8233  s&@infodir@&$infodir&g
8234  s&@localedir@&$localedir&g
8235  s&@mandir@&$mandir&g
8236  s&\\\${datarootdir}&$datarootdir&g' ;;
8237esac
8238_ACEOF
8239
8240# Neutralize VPATH when `$srcdir' = `.'.
8241# Shell code in configure.ac might set extrasub.
8242# FIXME: do we really want to maintain this feature?
8243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8244ac_sed_extra="$ac_vpsub
8245$extrasub
8246_ACEOF
8247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8248:t
8249/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8250s|@configure_input@|$ac_sed_conf_input|;t t
8251s&@top_builddir@&$ac_top_builddir_sub&;t t
8252s&@top_build_prefix@&$ac_top_build_prefix&;t t
8253s&@srcdir@&$ac_srcdir&;t t
8254s&@abs_srcdir@&$ac_abs_srcdir&;t t
8255s&@top_srcdir@&$ac_top_srcdir&;t t
8256s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8257s&@builddir@&$ac_builddir&;t t
8258s&@abs_builddir@&$ac_abs_builddir&;t t
8259s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8260s&@INSTALL@&$ac_INSTALL&;t t
8261$ac_datarootdir_hack
8262"
8263eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8264  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8265
8266test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8267  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8268  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8269      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8271which seems to be undefined.  Please make sure it is defined" >&5
8272$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8273which seems to be undefined.  Please make sure it is defined" >&2;}
8274
8275  rm -f "$ac_tmp/stdin"
8276  case $ac_file in
8277  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8278  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8279  esac \
8280  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8281 ;;
8282
8283
8284
8285  esac
8286
8287done # for ac_tag
8288
8289
8290as_fn_exit 0
8291_ACEOF
8292ac_clean_files=$ac_clean_files_save
8293
8294test $ac_write_fail = 0 ||
8295  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8296
8297
8298# configure is writing to config.log, and then calls config.status.
8299# config.status does its own redirection, appending to config.log.
8300# Unfortunately, on DOS this fails, as config.log is still kept open
8301# by configure, so config.status won't be able to write to it; its
8302# output is simply discarded.  So we exec the FD to /dev/null,
8303# effectively closing config.log, so it can be properly (re)opened and
8304# appended to by config.status.  When coming back to configure, we
8305# need to make the FD available again.
8306if test "$no_create" != yes; then
8307  ac_cs_success=:
8308  ac_config_status_args=
8309  test "$silent" = yes &&
8310    ac_config_status_args="$ac_config_status_args --quiet"
8311  exec 5>/dev/null
8312  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8313  exec 5>>config.log
8314  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8315  # would make configure fail if this is the last instruction.
8316  $ac_cs_success || as_fn_exit 1
8317fi
8318if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8320$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8321fi
8322
8323
8324
8325
8326## CONFIGURE END MESSAGE
8327#####################################################################
8328
8329echo
8330echo " ----------------------------------------------------------------"
8331echo "  Configuration for $PACKAGE_NAME $PACKAGE_VERSION successfully completed."
8332echo "  Summary of main configuration settings for $PACKAGE_NAME:"
8333
8334    if [ "$SHARED" = "1" ]; then
8335        echo "  - SHARED mode"
8336    else
8337        echo "  - STATIC mode"
8338    fi
8339
8340
8341    if [ "$DEBUG" = "1" ]; then
8342        echo "  - DEBUG build"
8343    else
8344        echo "  - RELEASE build"
8345    fi
8346
8347if [ "$SAMPLES" = "1" ]; then
8348    echo "  - SAMPLES enabled"
8349else
8350    echo "  - SAMPLES disabled"
8351fi
8352echo "  Now, just run make."
8353echo " ----------------------------------------------------------------"
8354echo
8355