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