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