1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for runAs 0.1.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# 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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='runAs'
551PACKAGE_TARNAME='runas'
552PACKAGE_VERSION='0.1'
553PACKAGE_STRING='runAs 0.1'
554PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556
557ac_default_prefix=.
558ac_unique_file="main.c"
559# Factoring default headers for most tests.
560ac_includes_default="\
561#include <stdio.h>
562#ifdef HAVE_SYS_TYPES_H
563# include <sys/types.h>
564#endif
565#ifdef HAVE_SYS_STAT_H
566# include <sys/stat.h>
567#endif
568#ifdef STDC_HEADERS
569# include <stdlib.h>
570# include <stddef.h>
571#else
572# ifdef HAVE_STDLIB_H
573#  include <stdlib.h>
574# endif
575#endif
576#ifdef HAVE_STRING_H
577# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578#  include <memory.h>
579# endif
580# include <string.h>
581#endif
582#ifdef HAVE_STRINGS_H
583# include <strings.h>
584#endif
585#ifdef HAVE_INTTYPES_H
586# include <inttypes.h>
587#endif
588#ifdef HAVE_STDINT_H
589# include <stdint.h>
590#endif
591#ifdef HAVE_UNISTD_H
592# include <unistd.h>
593#endif"
594
595ac_subst_vars='SET_MAKE
596LTLIBOBJS
597LIBOBJS
598EGREP
599GREP
600CPP
601OBJEXT
602EXEEXT
603ac_ct_CC
604CPPFLAGS
605LDFLAGS
606CFLAGS
607CC
608target_alias
609host_alias
610build_alias
611LIBS
612ECHO_T
613ECHO_N
614ECHO_C
615DEFS
616mandir
617localedir
618libdir
619psdir
620pdfdir
621dvidir
622htmldir
623infodir
624docdir
625oldincludedir
626includedir
627localstatedir
628sharedstatedir
629sysconfdir
630datadir
631datarootdir
632libexecdir
633sbindir
634bindir
635program_transform_name
636prefix
637exec_prefix
638PACKAGE_URL
639PACKAGE_BUGREPORT
640PACKAGE_STRING
641PACKAGE_VERSION
642PACKAGE_TARNAME
643PACKAGE_NAME
644PATH_SEPARATOR
645SHELL'
646ac_subst_files=''
647ac_user_opts='
648enable_option_checking
649with_home
650'
651      ac_precious_vars='build_alias
652host_alias
653target_alias
654CC
655CFLAGS
656LDFLAGS
657LIBS
658CPPFLAGS
659CPP'
660
661
662# Initialize some variables set by options.
663ac_init_help=
664ac_init_version=false
665ac_unrecognized_opts=
666ac_unrecognized_sep=
667# The variables have the same names as the options, with
668# dashes changed to underlines.
669cache_file=/dev/null
670exec_prefix=NONE
671no_create=
672no_recursion=
673prefix=NONE
674program_prefix=NONE
675program_suffix=NONE
676program_transform_name=s,x,x,
677silent=
678site=
679srcdir=
680verbose=
681x_includes=NONE
682x_libraries=NONE
683
684# Installation directory options.
685# These are left unexpanded so users can "make install exec_prefix=/foo"
686# and all the variables that are supposed to be based on exec_prefix
687# by default will actually change.
688# Use braces instead of parens because sh, perl, etc. also accept them.
689# (The list follows the same order as the GNU Coding Standards.)
690bindir='${exec_prefix}/bin'
691sbindir='${exec_prefix}/sbin'
692libexecdir='${exec_prefix}/libexec'
693datarootdir='${prefix}/share'
694datadir='${datarootdir}'
695sysconfdir='${prefix}/etc'
696sharedstatedir='${prefix}/com'
697localstatedir='${prefix}/var'
698includedir='${prefix}/include'
699oldincludedir='/usr/include'
700docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
701infodir='${datarootdir}/info'
702htmldir='${docdir}'
703dvidir='${docdir}'
704pdfdir='${docdir}'
705psdir='${docdir}'
706libdir='${exec_prefix}/lib'
707localedir='${datarootdir}/locale'
708mandir='${datarootdir}/man'
709
710ac_prev=
711ac_dashdash=
712for ac_option
713do
714  # If the previous option needs an argument, assign it.
715  if test -n "$ac_prev"; then
716    eval $ac_prev=\$ac_option
717    ac_prev=
718    continue
719  fi
720
721  case $ac_option in
722  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
723  *)	ac_optarg=yes ;;
724  esac
725
726  # Accept the important Cygnus configure options, so we can diagnose typos.
727
728  case $ac_dashdash$ac_option in
729  --)
730    ac_dashdash=yes ;;
731
732  -bindir | --bindir | --bindi | --bind | --bin | --bi)
733    ac_prev=bindir ;;
734  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
735    bindir=$ac_optarg ;;
736
737  -build | --build | --buil | --bui | --bu)
738    ac_prev=build_alias ;;
739  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
740    build_alias=$ac_optarg ;;
741
742  -cache-file | --cache-file | --cache-fil | --cache-fi \
743  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
744    ac_prev=cache_file ;;
745  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
746  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
747    cache_file=$ac_optarg ;;
748
749  --config-cache | -C)
750    cache_file=config.cache ;;
751
752  -datadir | --datadir | --datadi | --datad)
753    ac_prev=datadir ;;
754  -datadir=* | --datadir=* | --datadi=* | --datad=*)
755    datadir=$ac_optarg ;;
756
757  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
758  | --dataroo | --dataro | --datar)
759    ac_prev=datarootdir ;;
760  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
761  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
762    datarootdir=$ac_optarg ;;
763
764  -disable-* | --disable-*)
765    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
768      as_fn_error "invalid feature name: $ac_useropt"
769    ac_useropt_orig=$ac_useropt
770    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
771    case $ac_user_opts in
772      *"
773"enable_$ac_useropt"
774"*) ;;
775      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
776	 ac_unrecognized_sep=', ';;
777    esac
778    eval enable_$ac_useropt=no ;;
779
780  -docdir | --docdir | --docdi | --doc | --do)
781    ac_prev=docdir ;;
782  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
783    docdir=$ac_optarg ;;
784
785  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
786    ac_prev=dvidir ;;
787  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
788    dvidir=$ac_optarg ;;
789
790  -enable-* | --enable-*)
791    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
792    # Reject names that are not valid shell variable names.
793    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794      as_fn_error "invalid feature name: $ac_useropt"
795    ac_useropt_orig=$ac_useropt
796    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797    case $ac_user_opts in
798      *"
799"enable_$ac_useropt"
800"*) ;;
801      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
802	 ac_unrecognized_sep=', ';;
803    esac
804    eval enable_$ac_useropt=\$ac_optarg ;;
805
806  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
807  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
808  | --exec | --exe | --ex)
809    ac_prev=exec_prefix ;;
810  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
811  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
812  | --exec=* | --exe=* | --ex=*)
813    exec_prefix=$ac_optarg ;;
814
815  -gas | --gas | --ga | --g)
816    # Obsolete; use --with-gas.
817    with_gas=yes ;;
818
819  -help | --help | --hel | --he | -h)
820    ac_init_help=long ;;
821  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
822    ac_init_help=recursive ;;
823  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
824    ac_init_help=short ;;
825
826  -host | --host | --hos | --ho)
827    ac_prev=host_alias ;;
828  -host=* | --host=* | --hos=* | --ho=*)
829    host_alias=$ac_optarg ;;
830
831  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
832    ac_prev=htmldir ;;
833  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
834  | --ht=*)
835    htmldir=$ac_optarg ;;
836
837  -includedir | --includedir | --includedi | --included | --include \
838  | --includ | --inclu | --incl | --inc)
839    ac_prev=includedir ;;
840  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
841  | --includ=* | --inclu=* | --incl=* | --inc=*)
842    includedir=$ac_optarg ;;
843
844  -infodir | --infodir | --infodi | --infod | --info | --inf)
845    ac_prev=infodir ;;
846  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
847    infodir=$ac_optarg ;;
848
849  -libdir | --libdir | --libdi | --libd)
850    ac_prev=libdir ;;
851  -libdir=* | --libdir=* | --libdi=* | --libd=*)
852    libdir=$ac_optarg ;;
853
854  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
855  | --libexe | --libex | --libe)
856    ac_prev=libexecdir ;;
857  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
858  | --libexe=* | --libex=* | --libe=*)
859    libexecdir=$ac_optarg ;;
860
861  -localedir | --localedir | --localedi | --localed | --locale)
862    ac_prev=localedir ;;
863  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
864    localedir=$ac_optarg ;;
865
866  -localstatedir | --localstatedir | --localstatedi | --localstated \
867  | --localstate | --localstat | --localsta | --localst | --locals)
868    ac_prev=localstatedir ;;
869  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
870  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
871    localstatedir=$ac_optarg ;;
872
873  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
874    ac_prev=mandir ;;
875  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
876    mandir=$ac_optarg ;;
877
878  -nfp | --nfp | --nf)
879    # Obsolete; use --without-fp.
880    with_fp=no ;;
881
882  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
883  | --no-cr | --no-c | -n)
884    no_create=yes ;;
885
886  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
887  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
888    no_recursion=yes ;;
889
890  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
891  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
892  | --oldin | --oldi | --old | --ol | --o)
893    ac_prev=oldincludedir ;;
894  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
895  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
896  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
897    oldincludedir=$ac_optarg ;;
898
899  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
900    ac_prev=prefix ;;
901  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
902    prefix=$ac_optarg ;;
903
904  -program-prefix | --program-prefix | --program-prefi | --program-pref \
905  | --program-pre | --program-pr | --program-p)
906    ac_prev=program_prefix ;;
907  -program-prefix=* | --program-prefix=* | --program-prefi=* \
908  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
909    program_prefix=$ac_optarg ;;
910
911  -program-suffix | --program-suffix | --program-suffi | --program-suff \
912  | --program-suf | --program-su | --program-s)
913    ac_prev=program_suffix ;;
914  -program-suffix=* | --program-suffix=* | --program-suffi=* \
915  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
916    program_suffix=$ac_optarg ;;
917
918  -program-transform-name | --program-transform-name \
919  | --program-transform-nam | --program-transform-na \
920  | --program-transform-n | --program-transform- \
921  | --program-transform | --program-transfor \
922  | --program-transfo | --program-transf \
923  | --program-trans | --program-tran \
924  | --progr-tra | --program-tr | --program-t)
925    ac_prev=program_transform_name ;;
926  -program-transform-name=* | --program-transform-name=* \
927  | --program-transform-nam=* | --program-transform-na=* \
928  | --program-transform-n=* | --program-transform-=* \
929  | --program-transform=* | --program-transfor=* \
930  | --program-transfo=* | --program-transf=* \
931  | --program-trans=* | --program-tran=* \
932  | --progr-tra=* | --program-tr=* | --program-t=*)
933    program_transform_name=$ac_optarg ;;
934
935  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
936    ac_prev=pdfdir ;;
937  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
938    pdfdir=$ac_optarg ;;
939
940  -psdir | --psdir | --psdi | --psd | --ps)
941    ac_prev=psdir ;;
942  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
943    psdir=$ac_optarg ;;
944
945  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
946  | -silent | --silent | --silen | --sile | --sil)
947    silent=yes ;;
948
949  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
950    ac_prev=sbindir ;;
951  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
952  | --sbi=* | --sb=*)
953    sbindir=$ac_optarg ;;
954
955  -sharedstatedir | --sharedstatedir | --sharedstatedi \
956  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
957  | --sharedst | --shareds | --shared | --share | --shar \
958  | --sha | --sh)
959    ac_prev=sharedstatedir ;;
960  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
961  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
962  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
963  | --sha=* | --sh=*)
964    sharedstatedir=$ac_optarg ;;
965
966  -site | --site | --sit)
967    ac_prev=site ;;
968  -site=* | --site=* | --sit=*)
969    site=$ac_optarg ;;
970
971  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
972    ac_prev=srcdir ;;
973  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
974    srcdir=$ac_optarg ;;
975
976  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
977  | --syscon | --sysco | --sysc | --sys | --sy)
978    ac_prev=sysconfdir ;;
979  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
980  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
981    sysconfdir=$ac_optarg ;;
982
983  -target | --target | --targe | --targ | --tar | --ta | --t)
984    ac_prev=target_alias ;;
985  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
986    target_alias=$ac_optarg ;;
987
988  -v | -verbose | --verbose | --verbos | --verbo | --verb)
989    verbose=yes ;;
990
991  -version | --version | --versio | --versi | --vers | -V)
992    ac_init_version=: ;;
993
994  -with-* | --with-*)
995    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
996    # Reject names that are not valid shell variable names.
997    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998      as_fn_error "invalid package name: $ac_useropt"
999    ac_useropt_orig=$ac_useropt
1000    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001    case $ac_user_opts in
1002      *"
1003"with_$ac_useropt"
1004"*) ;;
1005      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1006	 ac_unrecognized_sep=', ';;
1007    esac
1008    eval with_$ac_useropt=\$ac_optarg ;;
1009
1010  -without-* | --without-*)
1011    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1012    # Reject names that are not valid shell variable names.
1013    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014      as_fn_error "invalid package name: $ac_useropt"
1015    ac_useropt_orig=$ac_useropt
1016    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017    case $ac_user_opts in
1018      *"
1019"with_$ac_useropt"
1020"*) ;;
1021      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1022	 ac_unrecognized_sep=', ';;
1023    esac
1024    eval with_$ac_useropt=no ;;
1025
1026  --x)
1027    # Obsolete; use --with-x.
1028    with_x=yes ;;
1029
1030  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1031  | --x-incl | --x-inc | --x-in | --x-i)
1032    ac_prev=x_includes ;;
1033  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1034  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1035    x_includes=$ac_optarg ;;
1036
1037  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1038  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1039    ac_prev=x_libraries ;;
1040  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1041  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1042    x_libraries=$ac_optarg ;;
1043
1044  -*) as_fn_error "unrecognized option: \`$ac_option'
1045Try \`$0 --help' for more information."
1046    ;;
1047
1048  *=*)
1049    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1050    # Reject names that are not valid shell variable names.
1051    case $ac_envvar in #(
1052      '' | [0-9]* | *[!_$as_cr_alnum]* )
1053      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1054    esac
1055    eval $ac_envvar=\$ac_optarg
1056    export $ac_envvar ;;
1057
1058  *)
1059    # FIXME: should be removed in autoconf 3.0.
1060    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1061    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1063    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1064    ;;
1065
1066  esac
1067done
1068
1069if test -n "$ac_prev"; then
1070  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1071  as_fn_error "missing argument to $ac_option"
1072fi
1073
1074if test -n "$ac_unrecognized_opts"; then
1075  case $enable_option_checking in
1076    no) ;;
1077    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1078    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1079  esac
1080fi
1081
1082# Check all directory arguments for consistency.
1083for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1084		datadir sysconfdir sharedstatedir localstatedir includedir \
1085		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1086		libdir localedir mandir
1087do
1088  eval ac_val=\$$ac_var
1089  # Remove trailing slashes.
1090  case $ac_val in
1091    */ )
1092      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1093      eval $ac_var=\$ac_val;;
1094  esac
1095  # Be sure to have absolute directory names.
1096  case $ac_val in
1097    [\\/$]* | ?:[\\/]* )  continue;;
1098    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1099  esac
1100  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1101done
1102
1103# There might be people who depend on the old broken behavior: `$host'
1104# used to hold the argument of --host etc.
1105# FIXME: To remove some day.
1106build=$build_alias
1107host=$host_alias
1108target=$target_alias
1109
1110# FIXME: To remove some day.
1111if test "x$host_alias" != x; then
1112  if test "x$build_alias" = x; then
1113    cross_compiling=maybe
1114    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1115    If a cross compiler is detected then cross compile mode will be used." >&2
1116  elif test "x$build_alias" != "x$host_alias"; then
1117    cross_compiling=yes
1118  fi
1119fi
1120
1121ac_tool_prefix=
1122test -n "$host_alias" && ac_tool_prefix=$host_alias-
1123
1124test "$silent" = yes && exec 6>/dev/null
1125
1126
1127ac_pwd=`pwd` && test -n "$ac_pwd" &&
1128ac_ls_di=`ls -di .` &&
1129ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1130  as_fn_error "working directory cannot be determined"
1131test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1132  as_fn_error "pwd does not report name of working directory"
1133
1134
1135# Find the source files, if location was not specified.
1136if test -z "$srcdir"; then
1137  ac_srcdir_defaulted=yes
1138  # Try the directory containing this script, then the parent directory.
1139  ac_confdir=`$as_dirname -- "$as_myself" ||
1140$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1141	 X"$as_myself" : 'X\(//\)[^/]' \| \
1142	 X"$as_myself" : 'X\(//\)$' \| \
1143	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1144$as_echo X"$as_myself" |
1145    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1146	    s//\1/
1147	    q
1148	  }
1149	  /^X\(\/\/\)[^/].*/{
1150	    s//\1/
1151	    q
1152	  }
1153	  /^X\(\/\/\)$/{
1154	    s//\1/
1155	    q
1156	  }
1157	  /^X\(\/\).*/{
1158	    s//\1/
1159	    q
1160	  }
1161	  s/.*/./; q'`
1162  srcdir=$ac_confdir
1163  if test ! -r "$srcdir/$ac_unique_file"; then
1164    srcdir=..
1165  fi
1166else
1167  ac_srcdir_defaulted=no
1168fi
1169if test ! -r "$srcdir/$ac_unique_file"; then
1170  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1171  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1172fi
1173ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1174ac_abs_confdir=`(
1175	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1176	pwd)`
1177# When building in place, set srcdir=.
1178if test "$ac_abs_confdir" = "$ac_pwd"; then
1179  srcdir=.
1180fi
1181# Remove unnecessary trailing slashes from srcdir.
1182# Double slashes in file names in object file debugging info
1183# mess up M-x gdb in Emacs.
1184case $srcdir in
1185*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186esac
1187for ac_var in $ac_precious_vars; do
1188  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189  eval ac_env_${ac_var}_value=\$${ac_var}
1190  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1192done
1193
1194#
1195# Report the --help message.
1196#
1197if test "$ac_init_help" = "long"; then
1198  # Omit some internal or obsolete options to make the list less imposing.
1199  # This message is too long to be a string in the A/UX 3.1 sh.
1200  cat <<_ACEOF
1201\`configure' configures runAs 0.1 to adapt to many kinds of systems.
1202
1203Usage: $0 [OPTION]... [VAR=VALUE]...
1204
1205To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206VAR=VALUE.  See below for descriptions of some of the useful variables.
1207
1208Defaults for the options are specified in brackets.
1209
1210Configuration:
1211  -h, --help              display this help and exit
1212      --help=short        display options specific to this package
1213      --help=recursive    display the short help of all the included packages
1214  -V, --version           display version information and exit
1215  -q, --quiet, --silent   do not print \`checking...' messages
1216      --cache-file=FILE   cache test results in FILE [disabled]
1217  -C, --config-cache      alias for \`--cache-file=config.cache'
1218  -n, --no-create         do not create output files
1219      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1220
1221Installation directories:
1222  --prefix=PREFIX         install architecture-independent files in PREFIX
1223                          [$ac_default_prefix]
1224  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1225                          [PREFIX]
1226
1227By default, \`make install' will install all the files in
1228\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1229an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230for instance \`--prefix=\$HOME'.
1231
1232For better control, use the options below.
1233
1234Fine tuning of the installation directories:
1235  --bindir=DIR            user executables [EPREFIX/bin]
1236  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1237  --libexecdir=DIR        program executables [EPREFIX/libexec]
1238  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1239  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1240  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1241  --libdir=DIR            object code libraries [EPREFIX/lib]
1242  --includedir=DIR        C header files [PREFIX/include]
1243  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1244  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1245  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1246  --infodir=DIR           info documentation [DATAROOTDIR/info]
1247  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1248  --mandir=DIR            man documentation [DATAROOTDIR/man]
1249  --docdir=DIR            documentation root [DATAROOTDIR/doc/runas]
1250  --htmldir=DIR           html documentation [DOCDIR]
1251  --dvidir=DIR            dvi documentation [DOCDIR]
1252  --pdfdir=DIR            pdf documentation [DOCDIR]
1253  --psdir=DIR             ps documentation [DOCDIR]
1254_ACEOF
1255
1256  cat <<\_ACEOF
1257_ACEOF
1258fi
1259
1260if test -n "$ac_init_help"; then
1261  case $ac_init_help in
1262     short | recursive ) echo "Configuration of runAs 0.1:";;
1263   esac
1264  cat <<\_ACEOF
1265
1266Optional Packages:
1267  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1268  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1269--with-home path to hadoop home dir
1270
1271Some influential environment variables:
1272  CC          C compiler command
1273  CFLAGS      C compiler flags
1274  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1275              nonstandard directory <lib dir>
1276  LIBS        libraries to pass to the linker, e.g. -l<library>
1277  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1278              you have headers in a nonstandard directory <include dir>
1279  CPP         C preprocessor
1280
1281Use these variables to override the choices made by `configure' or to help
1282it to find libraries and programs with nonstandard names/locations.
1283
1284Report bugs to the package provider.
1285_ACEOF
1286ac_status=$?
1287fi
1288
1289if test "$ac_init_help" = "recursive"; then
1290  # If there are subdirs, report their specific --help.
1291  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292    test -d "$ac_dir" ||
1293      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1294      continue
1295    ac_builddir=.
1296
1297case "$ac_dir" in
1298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1299*)
1300  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1301  # A ".." for each directory in $ac_dir_suffix.
1302  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1303  case $ac_top_builddir_sub in
1304  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1306  esac ;;
1307esac
1308ac_abs_top_builddir=$ac_pwd
1309ac_abs_builddir=$ac_pwd$ac_dir_suffix
1310# for backward compatibility:
1311ac_top_builddir=$ac_top_build_prefix
1312
1313case $srcdir in
1314  .)  # We are building in place.
1315    ac_srcdir=.
1316    ac_top_srcdir=$ac_top_builddir_sub
1317    ac_abs_top_srcdir=$ac_pwd ;;
1318  [\\/]* | ?:[\\/]* )  # Absolute name.
1319    ac_srcdir=$srcdir$ac_dir_suffix;
1320    ac_top_srcdir=$srcdir
1321    ac_abs_top_srcdir=$srcdir ;;
1322  *) # Relative name.
1323    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1324    ac_top_srcdir=$ac_top_build_prefix$srcdir
1325    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1326esac
1327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1328
1329    cd "$ac_dir" || { ac_status=$?; continue; }
1330    # Check for guested configure.
1331    if test -f "$ac_srcdir/configure.gnu"; then
1332      echo &&
1333      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1334    elif test -f "$ac_srcdir/configure"; then
1335      echo &&
1336      $SHELL "$ac_srcdir/configure" --help=recursive
1337    else
1338      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1339    fi || ac_status=$?
1340    cd "$ac_pwd" || { ac_status=$?; break; }
1341  done
1342fi
1343
1344test -n "$ac_init_help" && exit $ac_status
1345if $ac_init_version; then
1346  cat <<\_ACEOF
1347runAs configure 0.1
1348generated by GNU Autoconf 2.65
1349
1350Copyright (C) 2009 Free Software Foundation, Inc.
1351This configure script is free software; the Free Software Foundation
1352gives unlimited permission to copy, distribute and modify it.
1353_ACEOF
1354  exit
1355fi
1356
1357## ------------------------ ##
1358## Autoconf initialization. ##
1359## ------------------------ ##
1360
1361# ac_fn_c_try_compile LINENO
1362# --------------------------
1363# Try to compile conftest.$ac_ext, and return whether this succeeded.
1364ac_fn_c_try_compile ()
1365{
1366  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1367  rm -f conftest.$ac_objext
1368  if { { ac_try="$ac_compile"
1369case "(($ac_try" in
1370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1371  *) ac_try_echo=$ac_try;;
1372esac
1373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1374$as_echo "$ac_try_echo"; } >&5
1375  (eval "$ac_compile") 2>conftest.err
1376  ac_status=$?
1377  if test -s conftest.err; then
1378    grep -v '^ *+' conftest.err >conftest.er1
1379    cat conftest.er1 >&5
1380    mv -f conftest.er1 conftest.err
1381  fi
1382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1383  test $ac_status = 0; } && {
1384	 test -z "$ac_c_werror_flag" ||
1385	 test ! -s conftest.err
1386       } && test -s conftest.$ac_objext; then :
1387  ac_retval=0
1388else
1389  $as_echo "$as_me: failed program was:" >&5
1390sed 's/^/| /' conftest.$ac_ext >&5
1391
1392	ac_retval=1
1393fi
1394  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1395  as_fn_set_status $ac_retval
1396
1397} # ac_fn_c_try_compile
1398
1399# ac_fn_c_try_cpp LINENO
1400# ----------------------
1401# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1402ac_fn_c_try_cpp ()
1403{
1404  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1405  if { { ac_try="$ac_cpp conftest.$ac_ext"
1406case "(($ac_try" in
1407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1408  *) ac_try_echo=$ac_try;;
1409esac
1410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1411$as_echo "$ac_try_echo"; } >&5
1412  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1413  ac_status=$?
1414  if test -s conftest.err; then
1415    grep -v '^ *+' conftest.err >conftest.er1
1416    cat conftest.er1 >&5
1417    mv -f conftest.er1 conftest.err
1418  fi
1419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1420  test $ac_status = 0; } >/dev/null && {
1421	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1422	 test ! -s conftest.err
1423       }; then :
1424  ac_retval=0
1425else
1426  $as_echo "$as_me: failed program was:" >&5
1427sed 's/^/| /' conftest.$ac_ext >&5
1428
1429    ac_retval=1
1430fi
1431  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1432  as_fn_set_status $ac_retval
1433
1434} # ac_fn_c_try_cpp
1435
1436# ac_fn_c_try_run LINENO
1437# ----------------------
1438# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1439# that executables *can* be run.
1440ac_fn_c_try_run ()
1441{
1442  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1443  if { { ac_try="$ac_link"
1444case "(($ac_try" in
1445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1446  *) ac_try_echo=$ac_try;;
1447esac
1448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1449$as_echo "$ac_try_echo"; } >&5
1450  (eval "$ac_link") 2>&5
1451  ac_status=$?
1452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1453  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1454  { { case "(($ac_try" in
1455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1456  *) ac_try_echo=$ac_try;;
1457esac
1458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459$as_echo "$ac_try_echo"; } >&5
1460  (eval "$ac_try") 2>&5
1461  ac_status=$?
1462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463  test $ac_status = 0; }; }; then :
1464  ac_retval=0
1465else
1466  $as_echo "$as_me: program exited with status $ac_status" >&5
1467       $as_echo "$as_me: failed program was:" >&5
1468sed 's/^/| /' conftest.$ac_ext >&5
1469
1470       ac_retval=$ac_status
1471fi
1472  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1473  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1474  as_fn_set_status $ac_retval
1475
1476} # ac_fn_c_try_run
1477
1478# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1479# -------------------------------------------------------
1480# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1481# the include files in INCLUDES and setting the cache variable VAR
1482# accordingly.
1483ac_fn_c_check_header_mongrel ()
1484{
1485  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1488$as_echo_n "checking for $2... " >&6; }
1489if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1490  $as_echo_n "(cached) " >&6
1491fi
1492eval ac_res=\$$3
1493	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1494$as_echo "$ac_res" >&6; }
1495else
1496  # Is the header compilable?
1497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1498$as_echo_n "checking $2 usability... " >&6; }
1499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1500/* end confdefs.h.  */
1501$4
1502#include <$2>
1503_ACEOF
1504if ac_fn_c_try_compile "$LINENO"; then :
1505  ac_header_compiler=yes
1506else
1507  ac_header_compiler=no
1508fi
1509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1511$as_echo "$ac_header_compiler" >&6; }
1512
1513# Is the header present?
1514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1515$as_echo_n "checking $2 presence... " >&6; }
1516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1517/* end confdefs.h.  */
1518#include <$2>
1519_ACEOF
1520if ac_fn_c_try_cpp "$LINENO"; then :
1521  ac_header_preproc=yes
1522else
1523  ac_header_preproc=no
1524fi
1525rm -f conftest.err conftest.$ac_ext
1526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1527$as_echo "$ac_header_preproc" >&6; }
1528
1529# So?  What about this header?
1530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1531  yes:no: )
1532    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1533$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1534    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1535$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1536    ;;
1537  no:yes:* )
1538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1539$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1540    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1541$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1542    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1543$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1544    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1545$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1546    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1548    ;;
1549esac
1550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551$as_echo_n "checking for $2... " >&6; }
1552if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1553  $as_echo_n "(cached) " >&6
1554else
1555  eval "$3=\$ac_header_compiler"
1556fi
1557eval ac_res=\$$3
1558	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559$as_echo "$ac_res" >&6; }
1560fi
1561  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562
1563} # ac_fn_c_check_header_mongrel
1564
1565# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1566# -------------------------------------------------------
1567# Tests whether HEADER exists and can be compiled using the include files in
1568# INCLUDES, setting the cache variable VAR accordingly.
1569ac_fn_c_check_header_compile ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573$as_echo_n "checking for $2... " >&6; }
1574if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575  $as_echo_n "(cached) " >&6
1576else
1577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578/* end confdefs.h.  */
1579$4
1580#include <$2>
1581_ACEOF
1582if ac_fn_c_try_compile "$LINENO"; then :
1583  eval "$3=yes"
1584else
1585  eval "$3=no"
1586fi
1587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588fi
1589eval ac_res=\$$3
1590	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591$as_echo "$ac_res" >&6; }
1592  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593
1594} # ac_fn_c_check_header_compile
1595
1596# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1597# -------------------------------------------
1598# Tests whether TYPE exists after having included INCLUDES, setting cache
1599# variable VAR accordingly.
1600ac_fn_c_check_type ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606  $as_echo_n "(cached) " >&6
1607else
1608  eval "$3=no"
1609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h.  */
1611$4
1612int
1613main ()
1614{
1615if (sizeof ($2))
1616	 return 0;
1617  ;
1618  return 0;
1619}
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"; then :
1622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624$4
1625int
1626main ()
1627{
1628if (sizeof (($2)))
1629	    return 0;
1630  ;
1631  return 0;
1632}
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635
1636else
1637  eval "$3=yes"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642fi
1643eval ac_res=\$$3
1644	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645$as_echo "$ac_res" >&6; }
1646  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647
1648} # ac_fn_c_check_type
1649
1650# ac_fn_c_try_link LINENO
1651# -----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_link ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext conftest$ac_exeext
1657  if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_link") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && {
1673	 test -z "$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       } && test -s conftest$ac_exeext && {
1676	 test "$cross_compiling" = yes ||
1677	 $as_test_x conftest$ac_exeext
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684	ac_retval=1
1685fi
1686  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688  # interfere with the next link command; also delete a directory that is
1689  # left behind by Apple's compiler.  We do this before executing the actions.
1690  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_link
1695
1696# ac_fn_c_check_func LINENO FUNC VAR
1697# ----------------------------------
1698# Tests whether FUNC exists, setting the cache variable VAR accordingly
1699ac_fn_c_check_func ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1705  $as_echo_n "(cached) " >&6
1706else
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1711#define $2 innocuous_$2
1712
1713/* System header to define __stub macros and hopefully few prototypes,
1714    which can conflict with char $2 (); below.
1715    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716    <limits.h> exists even on freestanding compilers.  */
1717
1718#ifdef __STDC__
1719# include <limits.h>
1720#else
1721# include <assert.h>
1722#endif
1723
1724#undef $2
1725
1726/* Override any GCC internal prototype to avoid an error.
1727   Use char because int might match the return type of a GCC
1728   builtin and then its argument prototype would still apply.  */
1729#ifdef __cplusplus
1730extern "C"
1731#endif
1732char $2 ();
1733/* The GNU C library defines this for functions which it implements
1734    to always fail with ENOSYS.  Some functions are actually named
1735    something starting with __ and the normal name is an alias.  */
1736#if defined __stub_$2 || defined __stub___$2
1737choke me
1738#endif
1739
1740int
1741main ()
1742{
1743return $2 ();
1744  ;
1745  return 0;
1746}
1747_ACEOF
1748if ac_fn_c_try_link "$LINENO"; then :
1749  eval "$3=yes"
1750else
1751  eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext \
1754    conftest$ac_exeext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
1761} # ac_fn_c_check_func
1762cat >config.log <<_ACEOF
1763This file contains any messages produced by compilers while
1764running configure, to aid debugging if configure makes a mistake.
1765
1766It was created by runAs $as_me 0.1, which was
1767generated by GNU Autoconf 2.65.  Invocation command line was
1768
1769  $ $0 $@
1770
1771_ACEOF
1772exec 5>>config.log
1773{
1774cat <<_ASUNAME
1775## --------- ##
1776## Platform. ##
1777## --------- ##
1778
1779hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1780uname -m = `(uname -m) 2>/dev/null || echo unknown`
1781uname -r = `(uname -r) 2>/dev/null || echo unknown`
1782uname -s = `(uname -s) 2>/dev/null || echo unknown`
1783uname -v = `(uname -v) 2>/dev/null || echo unknown`
1784
1785/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1786/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1787
1788/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1789/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1790/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1791/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1792/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1793/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1794/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1795
1796_ASUNAME
1797
1798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799for as_dir in $PATH
1800do
1801  IFS=$as_save_IFS
1802  test -z "$as_dir" && as_dir=.
1803    $as_echo "PATH: $as_dir"
1804  done
1805IFS=$as_save_IFS
1806
1807} >&5
1808
1809cat >&5 <<_ACEOF
1810
1811
1812## ----------- ##
1813## Core tests. ##
1814## ----------- ##
1815
1816_ACEOF
1817
1818
1819# Keep a trace of the command line.
1820# Strip out --no-create and --no-recursion so they do not pile up.
1821# Strip out --silent because we don't want to record it for future runs.
1822# Also quote any args containing shell meta-characters.
1823# Make two passes to allow for proper duplicate-argument suppression.
1824ac_configure_args=
1825ac_configure_args0=
1826ac_configure_args1=
1827ac_must_keep_next=false
1828for ac_pass in 1 2
1829do
1830  for ac_arg
1831  do
1832    case $ac_arg in
1833    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1834    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1835    | -silent | --silent | --silen | --sile | --sil)
1836      continue ;;
1837    *\'*)
1838      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1839    esac
1840    case $ac_pass in
1841    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1842    2)
1843      as_fn_append ac_configure_args1 " '$ac_arg'"
1844      if test $ac_must_keep_next = true; then
1845	ac_must_keep_next=false # Got value, back to normal.
1846      else
1847	case $ac_arg in
1848	  *=* | --config-cache | -C | -disable-* | --disable-* \
1849	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1850	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1851	  | -with-* | --with-* | -without-* | --without-* | --x)
1852	    case "$ac_configure_args0 " in
1853	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1854	    esac
1855	    ;;
1856	  -* ) ac_must_keep_next=true ;;
1857	esac
1858      fi
1859      as_fn_append ac_configure_args " '$ac_arg'"
1860      ;;
1861    esac
1862  done
1863done
1864{ ac_configure_args0=; unset ac_configure_args0;}
1865{ ac_configure_args1=; unset ac_configure_args1;}
1866
1867# When interrupted or exit'd, cleanup temporary files, and complete
1868# config.log.  We remove comments because anyway the quotes in there
1869# would cause problems or look ugly.
1870# WARNING: Use '\'' to represent an apostrophe within the trap.
1871# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1872trap 'exit_status=$?
1873  # Save into config.log some information that might help in debugging.
1874  {
1875    echo
1876
1877    cat <<\_ASBOX
1878## ---------------- ##
1879## Cache variables. ##
1880## ---------------- ##
1881_ASBOX
1882    echo
1883    # The following way of writing the cache mishandles newlines in values,
1884(
1885  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886    eval ac_val=\$$ac_var
1887    case $ac_val in #(
1888    *${as_nl}*)
1889      case $ac_var in #(
1890      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1891$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1892      esac
1893      case $ac_var in #(
1894      _ | IFS | as_nl) ;; #(
1895      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896      *) { eval $ac_var=; unset $ac_var;} ;;
1897      esac ;;
1898    esac
1899  done
1900  (set) 2>&1 |
1901    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902    *${as_nl}ac_space=\ *)
1903      sed -n \
1904	"s/'\''/'\''\\\\'\'''\''/g;
1905	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1906      ;; #(
1907    *)
1908      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909      ;;
1910    esac |
1911    sort
1912)
1913    echo
1914
1915    cat <<\_ASBOX
1916## ----------------- ##
1917## Output variables. ##
1918## ----------------- ##
1919_ASBOX
1920    echo
1921    for ac_var in $ac_subst_vars
1922    do
1923      eval ac_val=\$$ac_var
1924      case $ac_val in
1925      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926      esac
1927      $as_echo "$ac_var='\''$ac_val'\''"
1928    done | sort
1929    echo
1930
1931    if test -n "$ac_subst_files"; then
1932      cat <<\_ASBOX
1933## ------------------- ##
1934## File substitutions. ##
1935## ------------------- ##
1936_ASBOX
1937      echo
1938      for ac_var in $ac_subst_files
1939      do
1940	eval ac_val=\$$ac_var
1941	case $ac_val in
1942	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1943	esac
1944	$as_echo "$ac_var='\''$ac_val'\''"
1945      done | sort
1946      echo
1947    fi
1948
1949    if test -s confdefs.h; then
1950      cat <<\_ASBOX
1951## ----------- ##
1952## confdefs.h. ##
1953## ----------- ##
1954_ASBOX
1955      echo
1956      cat confdefs.h
1957      echo
1958    fi
1959    test "$ac_signal" != 0 &&
1960      $as_echo "$as_me: caught signal $ac_signal"
1961    $as_echo "$as_me: exit $exit_status"
1962  } >&5
1963  rm -f core *.core core.conftest.* &&
1964    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965    exit $exit_status
1966' 0
1967for ac_signal in 1 2 13 15; do
1968  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1969done
1970ac_signal=0
1971
1972# confdefs.h avoids OS command line length limits that DEFS can exceed.
1973rm -f -r conftest* confdefs.h
1974
1975$as_echo "/* confdefs.h */" > confdefs.h
1976
1977# Predefined preprocessor variables.
1978
1979cat >>confdefs.h <<_ACEOF
1980#define PACKAGE_NAME "$PACKAGE_NAME"
1981_ACEOF
1982
1983cat >>confdefs.h <<_ACEOF
1984#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1985_ACEOF
1986
1987cat >>confdefs.h <<_ACEOF
1988#define PACKAGE_VERSION "$PACKAGE_VERSION"
1989_ACEOF
1990
1991cat >>confdefs.h <<_ACEOF
1992#define PACKAGE_STRING "$PACKAGE_STRING"
1993_ACEOF
1994
1995cat >>confdefs.h <<_ACEOF
1996#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1997_ACEOF
1998
1999cat >>confdefs.h <<_ACEOF
2000#define PACKAGE_URL "$PACKAGE_URL"
2001_ACEOF
2002
2003
2004# Let the site file select an alternate cache file if it wants to.
2005# Prefer an explicitly selected file to automatically selected ones.
2006ac_site_file1=NONE
2007ac_site_file2=NONE
2008if test -n "$CONFIG_SITE"; then
2009  ac_site_file1=$CONFIG_SITE
2010elif test "x$prefix" != xNONE; then
2011  ac_site_file1=$prefix/share/config.site
2012  ac_site_file2=$prefix/etc/config.site
2013else
2014  ac_site_file1=$ac_default_prefix/share/config.site
2015  ac_site_file2=$ac_default_prefix/etc/config.site
2016fi
2017for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2018do
2019  test "x$ac_site_file" = xNONE && continue
2020  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2022$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2023    sed 's/^/| /' "$ac_site_file" >&5
2024    . "$ac_site_file"
2025  fi
2026done
2027
2028if test -r "$cache_file"; then
2029  # Some versions of bash will fail to source /dev/null (special files
2030  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2031  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2033$as_echo "$as_me: loading cache $cache_file" >&6;}
2034    case $cache_file in
2035      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2036      *)                      . "./$cache_file";;
2037    esac
2038  fi
2039else
2040  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2041$as_echo "$as_me: creating cache $cache_file" >&6;}
2042  >$cache_file
2043fi
2044
2045# Check that the precious variables saved in the cache have kept the same
2046# value.
2047ac_cache_corrupted=false
2048for ac_var in $ac_precious_vars; do
2049  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2050  eval ac_new_set=\$ac_env_${ac_var}_set
2051  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2052  eval ac_new_val=\$ac_env_${ac_var}_value
2053  case $ac_old_set,$ac_new_set in
2054    set,)
2055      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2056$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2057      ac_cache_corrupted=: ;;
2058    ,set)
2059      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2060$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2061      ac_cache_corrupted=: ;;
2062    ,);;
2063    *)
2064      if test "x$ac_old_val" != "x$ac_new_val"; then
2065	# differences in whitespace do not lead to failure.
2066	ac_old_val_w=`echo x $ac_old_val`
2067	ac_new_val_w=`echo x $ac_new_val`
2068	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2069	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2070$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2071	  ac_cache_corrupted=:
2072	else
2073	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2074$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2075	  eval $ac_var=\$ac_old_val
2076	fi
2077	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2078$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2079	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2080$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2081      fi;;
2082  esac
2083  # Pass precious variables to config.status.
2084  if test "$ac_new_set" = set; then
2085    case $ac_new_val in
2086    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2087    *) ac_arg=$ac_var=$ac_new_val ;;
2088    esac
2089    case " $ac_configure_args " in
2090      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2091      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2092    esac
2093  fi
2094done
2095if $ac_cache_corrupted; then
2096  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2099$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2100  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2101fi
2102## -------------------- ##
2103## Main body of script. ##
2104## -------------------- ##
2105
2106ac_ext=c
2107ac_cpp='$CPP $CPPFLAGS'
2108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113
2114#changing default prefix value to empty string, so that binary does not
2115#gets installed within system
2116
2117
2118#add new arguments --with-home
2119
2120# Check whether --with-home was given.
2121if test "${with_home+set}" = set; then :
2122  withval=$with_home;
2123fi
2124
2125
2126ac_config_headers="$ac_config_headers runAs.h"
2127
2128
2129# Checks for programs.
2130ac_ext=c
2131ac_cpp='$CPP $CPPFLAGS'
2132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135if test -n "$ac_tool_prefix"; then
2136  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2137set dummy ${ac_tool_prefix}gcc; ac_word=$2
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2139$as_echo_n "checking for $ac_word... " >&6; }
2140if test "${ac_cv_prog_CC+set}" = set; then :
2141  $as_echo_n "(cached) " >&6
2142else
2143  if test -n "$CC"; then
2144  ac_cv_prog_CC="$CC" # Let the user override the test.
2145else
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149  IFS=$as_save_IFS
2150  test -z "$as_dir" && as_dir=.
2151    for ac_exec_ext in '' $ac_executable_extensions; do
2152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2155    break 2
2156  fi
2157done
2158  done
2159IFS=$as_save_IFS
2160
2161fi
2162fi
2163CC=$ac_cv_prog_CC
2164if test -n "$CC"; then
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2166$as_echo "$CC" >&6; }
2167else
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2169$as_echo "no" >&6; }
2170fi
2171
2172
2173fi
2174if test -z "$ac_cv_prog_CC"; then
2175  ac_ct_CC=$CC
2176  # Extract the first word of "gcc", so it can be a program name with args.
2177set dummy gcc; ac_word=$2
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2179$as_echo_n "checking for $ac_word... " >&6; }
2180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2181  $as_echo_n "(cached) " >&6
2182else
2183  if test -n "$ac_ct_CC"; then
2184  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185else
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189  IFS=$as_save_IFS
2190  test -z "$as_dir" && as_dir=.
2191    for ac_exec_ext in '' $ac_executable_extensions; do
2192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193    ac_cv_prog_ac_ct_CC="gcc"
2194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2195    break 2
2196  fi
2197done
2198  done
2199IFS=$as_save_IFS
2200
2201fi
2202fi
2203ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204if test -n "$ac_ct_CC"; then
2205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2206$as_echo "$ac_ct_CC" >&6; }
2207else
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2209$as_echo "no" >&6; }
2210fi
2211
2212  if test "x$ac_ct_CC" = x; then
2213    CC=""
2214  else
2215    case $cross_compiling:$ac_tool_warned in
2216yes:)
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2219ac_tool_warned=yes ;;
2220esac
2221    CC=$ac_ct_CC
2222  fi
2223else
2224  CC="$ac_cv_prog_CC"
2225fi
2226
2227if test -z "$CC"; then
2228          if test -n "$ac_tool_prefix"; then
2229    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2230set dummy ${ac_tool_prefix}cc; ac_word=$2
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2232$as_echo_n "checking for $ac_word... " >&6; }
2233if test "${ac_cv_prog_CC+set}" = set; then :
2234  $as_echo_n "(cached) " >&6
2235else
2236  if test -n "$CC"; then
2237  ac_cv_prog_CC="$CC" # Let the user override the test.
2238else
2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242  IFS=$as_save_IFS
2243  test -z "$as_dir" && as_dir=.
2244    for ac_exec_ext in '' $ac_executable_extensions; do
2245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246    ac_cv_prog_CC="${ac_tool_prefix}cc"
2247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2248    break 2
2249  fi
2250done
2251  done
2252IFS=$as_save_IFS
2253
2254fi
2255fi
2256CC=$ac_cv_prog_CC
2257if test -n "$CC"; then
2258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2259$as_echo "$CC" >&6; }
2260else
2261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262$as_echo "no" >&6; }
2263fi
2264
2265
2266  fi
2267fi
2268if test -z "$CC"; then
2269  # Extract the first word of "cc", so it can be a program name with args.
2270set dummy cc; ac_word=$2
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272$as_echo_n "checking for $ac_word... " >&6; }
2273if test "${ac_cv_prog_CC+set}" = set; then :
2274  $as_echo_n "(cached) " >&6
2275else
2276  if test -n "$CC"; then
2277  ac_cv_prog_CC="$CC" # Let the user override the test.
2278else
2279  ac_prog_rejected=no
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283  IFS=$as_save_IFS
2284  test -z "$as_dir" && as_dir=.
2285    for ac_exec_ext in '' $ac_executable_extensions; do
2286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2288       ac_prog_rejected=yes
2289       continue
2290     fi
2291    ac_cv_prog_CC="cc"
2292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293    break 2
2294  fi
2295done
2296  done
2297IFS=$as_save_IFS
2298
2299if test $ac_prog_rejected = yes; then
2300  # We found a bogon in the path, so make sure we never use it.
2301  set dummy $ac_cv_prog_CC
2302  shift
2303  if test $# != 0; then
2304    # We chose a different compiler from the bogus one.
2305    # However, it has the same basename, so the bogon will be chosen
2306    # first if we set CC to just the basename; use the full file name.
2307    shift
2308    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2309  fi
2310fi
2311fi
2312fi
2313CC=$ac_cv_prog_CC
2314if test -n "$CC"; then
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2316$as_echo "$CC" >&6; }
2317else
2318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2319$as_echo "no" >&6; }
2320fi
2321
2322
2323fi
2324if test -z "$CC"; then
2325  if test -n "$ac_tool_prefix"; then
2326  for ac_prog in cl.exe
2327  do
2328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2331$as_echo_n "checking for $ac_word... " >&6; }
2332if test "${ac_cv_prog_CC+set}" = set; then :
2333  $as_echo_n "(cached) " >&6
2334else
2335  if test -n "$CC"; then
2336  ac_cv_prog_CC="$CC" # Let the user override the test.
2337else
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341  IFS=$as_save_IFS
2342  test -z "$as_dir" && as_dir=.
2343    for ac_exec_ext in '' $ac_executable_extensions; do
2344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2347    break 2
2348  fi
2349done
2350  done
2351IFS=$as_save_IFS
2352
2353fi
2354fi
2355CC=$ac_cv_prog_CC
2356if test -n "$CC"; then
2357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2358$as_echo "$CC" >&6; }
2359else
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2361$as_echo "no" >&6; }
2362fi
2363
2364
2365    test -n "$CC" && break
2366  done
2367fi
2368if test -z "$CC"; then
2369  ac_ct_CC=$CC
2370  for ac_prog in cl.exe
2371do
2372  # Extract the first word of "$ac_prog", so it can be a program name with args.
2373set dummy $ac_prog; ac_word=$2
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2377  $as_echo_n "(cached) " >&6
2378else
2379  if test -n "$ac_ct_CC"; then
2380  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    for ac_exec_ext in '' $ac_executable_extensions; do
2388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389    ac_cv_prog_ac_ct_CC="$ac_prog"
2390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394  done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399ac_ct_CC=$ac_cv_prog_ac_ct_CC
2400if test -n "$ac_ct_CC"; then
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2402$as_echo "$ac_ct_CC" >&6; }
2403else
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405$as_echo "no" >&6; }
2406fi
2407
2408
2409  test -n "$ac_ct_CC" && break
2410done
2411
2412  if test "x$ac_ct_CC" = x; then
2413    CC=""
2414  else
2415    case $cross_compiling:$ac_tool_warned in
2416yes:)
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2419ac_tool_warned=yes ;;
2420esac
2421    CC=$ac_ct_CC
2422  fi
2423fi
2424
2425fi
2426
2427
2428test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430as_fn_error "no acceptable C compiler found in \$PATH
2431See \`config.log' for more details." "$LINENO" 5; }
2432
2433# Provide some information about the compiler.
2434$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2435set X $ac_compile
2436ac_compiler=$2
2437for ac_option in --version -v -V -qversion; do
2438  { { ac_try="$ac_compiler $ac_option >&5"
2439case "(($ac_try" in
2440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441  *) ac_try_echo=$ac_try;;
2442esac
2443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2444$as_echo "$ac_try_echo"; } >&5
2445  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2446  ac_status=$?
2447  if test -s conftest.err; then
2448    sed '10a\
2449... rest of stderr output deleted ...
2450         10q' conftest.err >conftest.er1
2451    cat conftest.er1 >&5
2452  fi
2453  rm -f conftest.er1 conftest.err
2454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455  test $ac_status = 0; }
2456done
2457
2458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459/* end confdefs.h.  */
2460
2461int
2462main ()
2463{
2464
2465  ;
2466  return 0;
2467}
2468_ACEOF
2469ac_clean_files_save=$ac_clean_files
2470ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2471# Try to create an executable without -o first, disregard a.out.
2472# It will help us diagnose broken compilers, and finding out an intuition
2473# of exeext.
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2475$as_echo_n "checking whether the C compiler works... " >&6; }
2476ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2477
2478# The possible output files:
2479ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2480
2481ac_rmfiles=
2482for ac_file in $ac_files
2483do
2484  case $ac_file in
2485    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2486    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2487  esac
2488done
2489rm -f $ac_rmfiles
2490
2491if { { ac_try="$ac_link_default"
2492case "(($ac_try" in
2493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494  *) ac_try_echo=$ac_try;;
2495esac
2496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497$as_echo "$ac_try_echo"; } >&5
2498  (eval "$ac_link_default") 2>&5
2499  ac_status=$?
2500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2501  test $ac_status = 0; }; then :
2502  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2503# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2504# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2505# so that the user can short-circuit this test for compilers unknown to
2506# Autoconf.
2507for ac_file in $ac_files ''
2508do
2509  test -f "$ac_file" || continue
2510  case $ac_file in
2511    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2512	;;
2513    [ab].out )
2514	# We found the default executable, but exeext='' is most
2515	# certainly right.
2516	break;;
2517    *.* )
2518	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2519	then :; else
2520	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521	fi
2522	# We set ac_cv_exeext here because the later test for it is not
2523	# safe: cross compilers may not add the suffix if given an `-o'
2524	# argument, so we may need to know it at that point already.
2525	# Even if this section looks crufty: it has the advantage of
2526	# actually working.
2527	break;;
2528    * )
2529	break;;
2530  esac
2531done
2532test "$ac_cv_exeext" = no && ac_cv_exeext=
2533
2534else
2535  ac_file=''
2536fi
2537if test -z "$ac_file"; then :
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
2540$as_echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545{ as_fn_set_status 77
2546as_fn_error "C compiler cannot create executables
2547See \`config.log' for more details." "$LINENO" 5; }; }
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2550$as_echo "yes" >&6; }
2551fi
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2553$as_echo_n "checking for C compiler default output file name... " >&6; }
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2555$as_echo "$ac_file" >&6; }
2556ac_exeext=$ac_cv_exeext
2557
2558rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2559ac_clean_files=$ac_clean_files_save
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2561$as_echo_n "checking for suffix of executables... " >&6; }
2562if { { ac_try="$ac_link"
2563case "(($ac_try" in
2564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565  *) ac_try_echo=$ac_try;;
2566esac
2567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568$as_echo "$ac_try_echo"; } >&5
2569  (eval "$ac_link") 2>&5
2570  ac_status=$?
2571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572  test $ac_status = 0; }; then :
2573  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2574# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2575# work properly (i.e., refer to `conftest.exe'), while it won't with
2576# `rm'.
2577for ac_file in conftest.exe conftest conftest.*; do
2578  test -f "$ac_file" || continue
2579  case $ac_file in
2580    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2581    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2582	  break;;
2583    * ) break;;
2584  esac
2585done
2586else
2587  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589as_fn_error "cannot compute suffix of executables: cannot compile and link
2590See \`config.log' for more details." "$LINENO" 5; }
2591fi
2592rm -f conftest conftest$ac_cv_exeext
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2594$as_echo "$ac_cv_exeext" >&6; }
2595
2596rm -f conftest.$ac_ext
2597EXEEXT=$ac_cv_exeext
2598ac_exeext=$EXEEXT
2599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600/* end confdefs.h.  */
2601#include <stdio.h>
2602int
2603main ()
2604{
2605FILE *f = fopen ("conftest.out", "w");
2606 return ferror (f) || fclose (f) != 0;
2607
2608  ;
2609  return 0;
2610}
2611_ACEOF
2612ac_clean_files="$ac_clean_files conftest.out"
2613# Check that the compiler produces executables we can run.  If not, either
2614# the compiler is broken, or we cross compile.
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2616$as_echo_n "checking whether we are cross compiling... " >&6; }
2617if test "$cross_compiling" != yes; then
2618  { { ac_try="$ac_link"
2619case "(($ac_try" in
2620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621  *) ac_try_echo=$ac_try;;
2622esac
2623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624$as_echo "$ac_try_echo"; } >&5
2625  (eval "$ac_link") 2>&5
2626  ac_status=$?
2627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628  test $ac_status = 0; }
2629  if { ac_try='./conftest$ac_cv_exeext'
2630  { { case "(($ac_try" in
2631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632  *) ac_try_echo=$ac_try;;
2633esac
2634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635$as_echo "$ac_try_echo"; } >&5
2636  (eval "$ac_try") 2>&5
2637  ac_status=$?
2638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639  test $ac_status = 0; }; }; then
2640    cross_compiling=no
2641  else
2642    if test "$cross_compiling" = maybe; then
2643	cross_compiling=yes
2644    else
2645	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647as_fn_error "cannot run C compiled programs.
2648If you meant to cross compile, use \`--host'.
2649See \`config.log' for more details." "$LINENO" 5; }
2650    fi
2651  fi
2652fi
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2654$as_echo "$cross_compiling" >&6; }
2655
2656rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2657ac_clean_files=$ac_clean_files_save
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2659$as_echo_n "checking for suffix of object files... " >&6; }
2660if test "${ac_cv_objext+set}" = set; then :
2661  $as_echo_n "(cached) " >&6
2662else
2663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664/* end confdefs.h.  */
2665
2666int
2667main ()
2668{
2669
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674rm -f conftest.o conftest.obj
2675if { { ac_try="$ac_compile"
2676case "(($ac_try" in
2677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678  *) ac_try_echo=$ac_try;;
2679esac
2680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681$as_echo "$ac_try_echo"; } >&5
2682  (eval "$ac_compile") 2>&5
2683  ac_status=$?
2684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685  test $ac_status = 0; }; then :
2686  for ac_file in conftest.o conftest.obj conftest.*; do
2687  test -f "$ac_file" || continue;
2688  case $ac_file in
2689    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2690    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2691       break;;
2692  esac
2693done
2694else
2695  $as_echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700as_fn_error "cannot compute suffix of object files: cannot compile
2701See \`config.log' for more details." "$LINENO" 5; }
2702fi
2703rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2706$as_echo "$ac_cv_objext" >&6; }
2707OBJEXT=$ac_cv_objext
2708ac_objext=$OBJEXT
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2710$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2711if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720#ifndef __GNUC__
2721       choke me
2722#endif
2723
2724  ;
2725  return 0;
2726}
2727_ACEOF
2728if ac_fn_c_try_compile "$LINENO"; then :
2729  ac_compiler_gnu=yes
2730else
2731  ac_compiler_gnu=no
2732fi
2733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_cv_c_compiler_gnu=$ac_compiler_gnu
2735
2736fi
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2738$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2739if test $ac_compiler_gnu = yes; then
2740  GCC=yes
2741else
2742  GCC=
2743fi
2744ac_test_CFLAGS=${CFLAGS+set}
2745ac_save_CFLAGS=$CFLAGS
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2747$as_echo_n "checking whether $CC accepts -g... " >&6; }
2748if test "${ac_cv_prog_cc_g+set}" = set; then :
2749  $as_echo_n "(cached) " >&6
2750else
2751  ac_save_c_werror_flag=$ac_c_werror_flag
2752   ac_c_werror_flag=yes
2753   ac_cv_prog_cc_g=no
2754   CFLAGS="-g"
2755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756/* end confdefs.h.  */
2757
2758int
2759main ()
2760{
2761
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766if ac_fn_c_try_compile "$LINENO"; then :
2767  ac_cv_prog_cc_g=yes
2768else
2769  CFLAGS=""
2770      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771/* end confdefs.h.  */
2772
2773int
2774main ()
2775{
2776
2777  ;
2778  return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782
2783else
2784  ac_c_werror_flag=$ac_save_c_werror_flag
2785	 CFLAGS="-g"
2786	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798  ac_cv_prog_cc_g=yes
2799fi
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803fi
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805   ac_c_werror_flag=$ac_save_c_werror_flag
2806fi
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2808$as_echo "$ac_cv_prog_cc_g" >&6; }
2809if test "$ac_test_CFLAGS" = set; then
2810  CFLAGS=$ac_save_CFLAGS
2811elif test $ac_cv_prog_cc_g = yes; then
2812  if test "$GCC" = yes; then
2813    CFLAGS="-g -O2"
2814  else
2815    CFLAGS="-g"
2816  fi
2817else
2818  if test "$GCC" = yes; then
2819    CFLAGS="-O2"
2820  else
2821    CFLAGS=
2822  fi
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2825$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2826if test "${ac_cv_prog_cc_c89+set}" = set; then :
2827  $as_echo_n "(cached) " >&6
2828else
2829  ac_cv_prog_cc_c89=no
2830ac_save_CC=$CC
2831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h.  */
2833#include <stdarg.h>
2834#include <stdio.h>
2835#include <sys/types.h>
2836#include <sys/stat.h>
2837/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2838struct buf { int x; };
2839FILE * (*rcsopen) (struct buf *, struct stat *, int);
2840static char *e (p, i)
2841     char **p;
2842     int i;
2843{
2844  return p[i];
2845}
2846static char *f (char * (*g) (char **, int), char **p, ...)
2847{
2848  char *s;
2849  va_list v;
2850  va_start (v,p);
2851  s = g (p, va_arg (v,int));
2852  va_end (v);
2853  return s;
2854}
2855
2856/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2857   function prototypes and stuff, but not '\xHH' hex character constants.
2858   These don't provoke an error unfortunately, instead are silently treated
2859   as 'x'.  The following induces an error, until -std is added to get
2860   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2861   array size at least.  It's necessary to write '\x00'==0 to get something
2862   that's true only with -std.  */
2863int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2864
2865/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2866   inside strings and character constants.  */
2867#define FOO(x) 'x'
2868int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2869
2870int test (int i, double x);
2871struct s1 {int (*f) (int a);};
2872struct s2 {int (*f) (double a);};
2873int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2874int argc;
2875char **argv;
2876int
2877main ()
2878{
2879return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2885	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2886do
2887  CC="$ac_save_CC $ac_arg"
2888  if ac_fn_c_try_compile "$LINENO"; then :
2889  ac_cv_prog_cc_c89=$ac_arg
2890fi
2891rm -f core conftest.err conftest.$ac_objext
2892  test "x$ac_cv_prog_cc_c89" != "xno" && break
2893done
2894rm -f conftest.$ac_ext
2895CC=$ac_save_CC
2896
2897fi
2898# AC_CACHE_VAL
2899case "x$ac_cv_prog_cc_c89" in
2900  x)
2901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2902$as_echo "none needed" >&6; } ;;
2903  xno)
2904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2905$as_echo "unsupported" >&6; } ;;
2906  *)
2907    CC="$CC $ac_cv_prog_cc_c89"
2908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2909$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2910esac
2911if test "x$ac_cv_prog_cc_c89" != xno; then :
2912
2913fi
2914
2915ac_ext=c
2916ac_cpp='$CPP $CPPFLAGS'
2917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920
2921
2922# Checks for libraries.
2923
2924# Checks for header files.
2925
2926ac_ext=c
2927ac_cpp='$CPP $CPPFLAGS'
2928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2932$as_echo_n "checking how to run the C preprocessor... " >&6; }
2933# On Suns, sometimes $CPP names a directory.
2934if test -n "$CPP" && test -d "$CPP"; then
2935  CPP=
2936fi
2937if test -z "$CPP"; then
2938  if test "${ac_cv_prog_CPP+set}" = set; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941      # Double quotes because CPP needs to be expanded
2942    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2943    do
2944      ac_preproc_ok=false
2945for ac_c_preproc_warn_flag in '' yes
2946do
2947  # Use a header file that comes with gcc, so configuring glibc
2948  # with a fresh cross-compiler works.
2949  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950  # <limits.h> exists even on freestanding compilers.
2951  # On the NeXT, cc -E runs the code through the compiler's parser,
2952  # not just through cpp. "Syntax error" is here to catch this case.
2953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954/* end confdefs.h.  */
2955#ifdef __STDC__
2956# include <limits.h>
2957#else
2958# include <assert.h>
2959#endif
2960		     Syntax error
2961_ACEOF
2962if ac_fn_c_try_cpp "$LINENO"; then :
2963
2964else
2965  # Broken: fails on valid input.
2966continue
2967fi
2968rm -f conftest.err conftest.$ac_ext
2969
2970  # OK, works on sane cases.  Now check whether nonexistent headers
2971  # can be detected and how.
2972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h.  */
2974#include <ac_nonexistent.h>
2975_ACEOF
2976if ac_fn_c_try_cpp "$LINENO"; then :
2977  # Broken: success on invalid input.
2978continue
2979else
2980  # Passes both tests.
2981ac_preproc_ok=:
2982break
2983fi
2984rm -f conftest.err conftest.$ac_ext
2985
2986done
2987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988rm -f conftest.err conftest.$ac_ext
2989if $ac_preproc_ok; then :
2990  break
2991fi
2992
2993    done
2994    ac_cv_prog_CPP=$CPP
2995
2996fi
2997  CPP=$ac_cv_prog_CPP
2998else
2999  ac_cv_prog_CPP=$CPP
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3002$as_echo "$CPP" >&6; }
3003ac_preproc_ok=false
3004for ac_c_preproc_warn_flag in '' yes
3005do
3006  # Use a header file that comes with gcc, so configuring glibc
3007  # with a fresh cross-compiler works.
3008  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009  # <limits.h> exists even on freestanding compilers.
3010  # On the NeXT, cc -E runs the code through the compiler's parser,
3011  # not just through cpp. "Syntax error" is here to catch this case.
3012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h.  */
3014#ifdef __STDC__
3015# include <limits.h>
3016#else
3017# include <assert.h>
3018#endif
3019		     Syntax error
3020_ACEOF
3021if ac_fn_c_try_cpp "$LINENO"; then :
3022
3023else
3024  # Broken: fails on valid input.
3025continue
3026fi
3027rm -f conftest.err conftest.$ac_ext
3028
3029  # OK, works on sane cases.  Now check whether nonexistent headers
3030  # can be detected and how.
3031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032/* end confdefs.h.  */
3033#include <ac_nonexistent.h>
3034_ACEOF
3035if ac_fn_c_try_cpp "$LINENO"; then :
3036  # Broken: success on invalid input.
3037continue
3038else
3039  # Passes both tests.
3040ac_preproc_ok=:
3041break
3042fi
3043rm -f conftest.err conftest.$ac_ext
3044
3045done
3046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047rm -f conftest.err conftest.$ac_ext
3048if $ac_preproc_ok; then :
3049
3050else
3051  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053as_fn_error "C preprocessor \"$CPP\" fails sanity check
3054See \`config.log' for more details." "$LINENO" 5; }
3055fi
3056
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062
3063
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3065$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3066if test "${ac_cv_path_GREP+set}" = set; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -z "$GREP"; then
3070  ac_path_GREP_found=false
3071  # Loop through the user's path and test for each of PROGNAME-LIST
3072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_prog in grep ggrep; do
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3080      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3081# Check for GNU ac_path_GREP and select it if it is found.
3082  # Check for GNU $ac_path_GREP
3083case `"$ac_path_GREP" --version 2>&1` in
3084*GNU*)
3085  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3086*)
3087  ac_count=0
3088  $as_echo_n 0123456789 >"conftest.in"
3089  while :
3090  do
3091    cat "conftest.in" "conftest.in" >"conftest.tmp"
3092    mv "conftest.tmp" "conftest.in"
3093    cp "conftest.in" "conftest.nl"
3094    $as_echo 'GREP' >> "conftest.nl"
3095    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3096    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3097    as_fn_arith $ac_count + 1 && ac_count=$as_val
3098    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3099      # Best one so far, save it but keep looking for a better one
3100      ac_cv_path_GREP="$ac_path_GREP"
3101      ac_path_GREP_max=$ac_count
3102    fi
3103    # 10*(2^10) chars as input seems more than enough
3104    test $ac_count -gt 10 && break
3105  done
3106  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3107esac
3108
3109      $ac_path_GREP_found && break 3
3110    done
3111  done
3112  done
3113IFS=$as_save_IFS
3114  if test -z "$ac_cv_path_GREP"; then
3115    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3116  fi
3117else
3118  ac_cv_path_GREP=$GREP
3119fi
3120
3121fi
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3123$as_echo "$ac_cv_path_GREP" >&6; }
3124 GREP="$ac_cv_path_GREP"
3125
3126
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3128$as_echo_n "checking for egrep... " >&6; }
3129if test "${ac_cv_path_EGREP+set}" = set; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3133   then ac_cv_path_EGREP="$GREP -E"
3134   else
3135     if test -z "$EGREP"; then
3136  ac_path_EGREP_found=false
3137  # Loop through the user's path and test for each of PROGNAME-LIST
3138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3140do
3141  IFS=$as_save_IFS
3142  test -z "$as_dir" && as_dir=.
3143    for ac_prog in egrep; do
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3146      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3147# Check for GNU ac_path_EGREP and select it if it is found.
3148  # Check for GNU $ac_path_EGREP
3149case `"$ac_path_EGREP" --version 2>&1` in
3150*GNU*)
3151  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3152*)
3153  ac_count=0
3154  $as_echo_n 0123456789 >"conftest.in"
3155  while :
3156  do
3157    cat "conftest.in" "conftest.in" >"conftest.tmp"
3158    mv "conftest.tmp" "conftest.in"
3159    cp "conftest.in" "conftest.nl"
3160    $as_echo 'EGREP' >> "conftest.nl"
3161    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3162    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3163    as_fn_arith $ac_count + 1 && ac_count=$as_val
3164    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3165      # Best one so far, save it but keep looking for a better one
3166      ac_cv_path_EGREP="$ac_path_EGREP"
3167      ac_path_EGREP_max=$ac_count
3168    fi
3169    # 10*(2^10) chars as input seems more than enough
3170    test $ac_count -gt 10 && break
3171  done
3172  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3173esac
3174
3175      $ac_path_EGREP_found && break 3
3176    done
3177  done
3178  done
3179IFS=$as_save_IFS
3180  if test -z "$ac_cv_path_EGREP"; then
3181    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3182  fi
3183else
3184  ac_cv_path_EGREP=$EGREP
3185fi
3186
3187   fi
3188fi
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3190$as_echo "$ac_cv_path_EGREP" >&6; }
3191 EGREP="$ac_cv_path_EGREP"
3192
3193
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3195$as_echo_n "checking for ANSI C header files... " >&6; }
3196if test "${ac_cv_header_stdc+set}" = set; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h.  */
3201#include <stdlib.h>
3202#include <stdarg.h>
3203#include <string.h>
3204#include <float.h>
3205
3206int
3207main ()
3208{
3209
3210  ;
3211  return 0;
3212}
3213_ACEOF
3214if ac_fn_c_try_compile "$LINENO"; then :
3215  ac_cv_header_stdc=yes
3216else
3217  ac_cv_header_stdc=no
3218fi
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220
3221if test $ac_cv_header_stdc = yes; then
3222  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225#include <string.h>
3226
3227_ACEOF
3228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229  $EGREP "memchr" >/dev/null 2>&1; then :
3230
3231else
3232  ac_cv_header_stdc=no
3233fi
3234rm -f conftest*
3235
3236fi
3237
3238if test $ac_cv_header_stdc = yes; then
3239  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h.  */
3242#include <stdlib.h>
3243
3244_ACEOF
3245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246  $EGREP "free" >/dev/null 2>&1; then :
3247
3248else
3249  ac_cv_header_stdc=no
3250fi
3251rm -f conftest*
3252
3253fi
3254
3255if test $ac_cv_header_stdc = yes; then
3256  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3257  if test "$cross_compiling" = yes; then :
3258  :
3259else
3260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h.  */
3262#include <ctype.h>
3263#include <stdlib.h>
3264#if ((' ' & 0x0FF) == 0x020)
3265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3267#else
3268# define ISLOWER(c) \
3269		   (('a' <= (c) && (c) <= 'i') \
3270		     || ('j' <= (c) && (c) <= 'r') \
3271		     || ('s' <= (c) && (c) <= 'z'))
3272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3273#endif
3274
3275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3276int
3277main ()
3278{
3279  int i;
3280  for (i = 0; i < 256; i++)
3281    if (XOR (islower (i), ISLOWER (i))
3282	|| toupper (i) != TOUPPER (i))
3283      return 2;
3284  return 0;
3285}
3286_ACEOF
3287if ac_fn_c_try_run "$LINENO"; then :
3288
3289else
3290  ac_cv_header_stdc=no
3291fi
3292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3293  conftest.$ac_objext conftest.beam conftest.$ac_ext
3294fi
3295
3296fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3299$as_echo "$ac_cv_header_stdc" >&6; }
3300if test $ac_cv_header_stdc = yes; then
3301
3302$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3303
3304fi
3305
3306# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3307for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3308		  inttypes.h stdint.h unistd.h
3309do :
3310  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3311ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3312"
3313eval as_val=\$$as_ac_Header
3314   if test "x$as_val" = x""yes; then :
3315  cat >>confdefs.h <<_ACEOF
3316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3317_ACEOF
3318
3319fi
3320
3321done
3322
3323
3324for ac_header in stdlib.h string.h unistd.h fcntl.h
3325do :
3326  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3327ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3328eval as_val=\$$as_ac_Header
3329   if test "x$as_val" = x""yes; then :
3330  cat >>confdefs.h <<_ACEOF
3331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3332_ACEOF
3333
3334fi
3335
3336done
3337
3338
3339#check for HADOOP_HOME
3340if test "$with_home" != ""
3341then
3342cat >>confdefs.h <<_ACEOF
3343#define HADOOP_HOME "$with_home"
3344_ACEOF
3345
3346fi
3347
3348# Checks for typedefs, structures, and compiler characteristics.
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3350$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3351if test "${ac_cv_c_const+set}" = set; then :
3352  $as_echo_n "(cached) " >&6
3353else
3354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360/* FIXME: Include the comments suggested by Paul. */
3361#ifndef __cplusplus
3362  /* Ultrix mips cc rejects this.  */
3363  typedef int charset[2];
3364  const charset cs;
3365  /* SunOS 4.1.1 cc rejects this.  */
3366  char const *const *pcpcc;
3367  char **ppc;
3368  /* NEC SVR4.0.2 mips cc rejects this.  */
3369  struct point {int x, y;};
3370  static struct point const zero = {0,0};
3371  /* AIX XL C 1.02.0.0 rejects this.
3372     It does not let you subtract one const X* pointer from another in
3373     an arm of an if-expression whose if-part is not a constant
3374     expression */
3375  const char *g = "string";
3376  pcpcc = &g + (g ? g-g : 0);
3377  /* HPUX 7.0 cc rejects these. */
3378  ++pcpcc;
3379  ppc = (char**) pcpcc;
3380  pcpcc = (char const *const *) ppc;
3381  { /* SCO 3.2v4 cc rejects this.  */
3382    char *t;
3383    char const *s = 0 ? (char *) 0 : (char const *) 0;
3384
3385    *t++ = 0;
3386    if (s) return 0;
3387  }
3388  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3389    int x[] = {25, 17};
3390    const int *foo = &x[0];
3391    ++foo;
3392  }
3393  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3394    typedef const int *iptr;
3395    iptr p = 0;
3396    ++p;
3397  }
3398  { /* AIX XL C 1.02.0.0 rejects this saying
3399       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3400    struct s { int j; const int *ap[3]; };
3401    struct s *b; b->j = 5;
3402  }
3403  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3404    const int foo = 10;
3405    if (!foo) return 0;
3406  }
3407  return !cs[0] && !zero.x;
3408#endif
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"; then :
3415  ac_cv_c_const=yes
3416else
3417  ac_cv_c_const=no
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3422$as_echo "$ac_cv_c_const" >&6; }
3423if test $ac_cv_c_const = no; then
3424
3425$as_echo "#define const /**/" >>confdefs.h
3426
3427fi
3428
3429ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3430if test "x$ac_cv_type_pid_t" = x""yes; then :
3431
3432else
3433
3434cat >>confdefs.h <<_ACEOF
3435#define pid_t int
3436_ACEOF
3437
3438fi
3439
3440ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
3441if test "x$ac_cv_type_mode_t" = x""yes; then :
3442
3443else
3444
3445cat >>confdefs.h <<_ACEOF
3446#define mode_t int
3447_ACEOF
3448
3449fi
3450
3451ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3452if test "x$ac_cv_type_size_t" = x""yes; then :
3453
3454else
3455
3456cat >>confdefs.h <<_ACEOF
3457#define size_t unsigned int
3458_ACEOF
3459
3460fi
3461
3462
3463# Checks for library functions.
3464for ac_header in stdlib.h
3465do :
3466  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3467if test "x$ac_cv_header_stdlib_h" = x""yes; then :
3468  cat >>confdefs.h <<_ACEOF
3469#define HAVE_STDLIB_H 1
3470_ACEOF
3471
3472fi
3473
3474done
3475
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
3477$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
3478if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  if test "$cross_compiling" = yes; then :
3482  ac_cv_func_malloc_0_nonnull=no
3483else
3484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486#if defined STDC_HEADERS || defined HAVE_STDLIB_H
3487# include <stdlib.h>
3488#else
3489char *malloc ();
3490#endif
3491
3492int
3493main ()
3494{
3495return ! malloc (0);
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_run "$LINENO"; then :
3501  ac_cv_func_malloc_0_nonnull=yes
3502else
3503  ac_cv_func_malloc_0_nonnull=no
3504fi
3505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3506  conftest.$ac_objext conftest.beam conftest.$ac_ext
3507fi
3508
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
3511$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
3512if test $ac_cv_func_malloc_0_nonnull = yes; then :
3513
3514$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
3515
3516else
3517  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
3518
3519   case " $LIBOBJS " in
3520  *" malloc.$ac_objext "* ) ;;
3521  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3522 ;;
3523esac
3524
3525
3526$as_echo "#define malloc rpl_malloc" >>confdefs.h
3527
3528fi
3529
3530
3531for ac_header in stdlib.h
3532do :
3533  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3534if test "x$ac_cv_header_stdlib_h" = x""yes; then :
3535  cat >>confdefs.h <<_ACEOF
3536#define HAVE_STDLIB_H 1
3537_ACEOF
3538
3539fi
3540
3541done
3542
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
3544$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
3545if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
3546  $as_echo_n "(cached) " >&6
3547else
3548  if test "$cross_compiling" = yes; then :
3549  ac_cv_func_realloc_0_nonnull=no
3550else
3551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553#if defined STDC_HEADERS || defined HAVE_STDLIB_H
3554# include <stdlib.h>
3555#else
3556char *realloc ();
3557#endif
3558
3559int
3560main ()
3561{
3562return ! realloc (0, 0);
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567if ac_fn_c_try_run "$LINENO"; then :
3568  ac_cv_func_realloc_0_nonnull=yes
3569else
3570  ac_cv_func_realloc_0_nonnull=no
3571fi
3572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3573  conftest.$ac_objext conftest.beam conftest.$ac_ext
3574fi
3575
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
3578$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
3579if test $ac_cv_func_realloc_0_nonnull = yes; then :
3580
3581$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
3582
3583else
3584  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
3585
3586   case " $LIBOBJS " in
3587  *" realloc.$ac_objext "* ) ;;
3588  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
3589 ;;
3590esac
3591
3592
3593$as_echo "#define realloc rpl_realloc" >>confdefs.h
3594
3595fi
3596
3597
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
3599$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
3600if test "${ac_cv_type_uid_t+set}" = set; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <sys/types.h>
3606
3607_ACEOF
3608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3609  $EGREP "uid_t" >/dev/null 2>&1; then :
3610  ac_cv_type_uid_t=yes
3611else
3612  ac_cv_type_uid_t=no
3613fi
3614rm -f conftest*
3615
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
3618$as_echo "$ac_cv_type_uid_t" >&6; }
3619if test $ac_cv_type_uid_t = no; then
3620
3621$as_echo "#define uid_t int" >>confdefs.h
3622
3623
3624$as_echo "#define gid_t int" >>confdefs.h
3625
3626fi
3627
3628for ac_header in unistd.h
3629do :
3630  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
3631if test "x$ac_cv_header_unistd_h" = x""yes; then :
3632  cat >>confdefs.h <<_ACEOF
3633#define HAVE_UNISTD_H 1
3634_ACEOF
3635
3636fi
3637
3638done
3639
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
3641$as_echo_n "checking for working chown... " >&6; }
3642if test "${ac_cv_func_chown_works+set}" = set; then :
3643  $as_echo_n "(cached) " >&6
3644else
3645  if test "$cross_compiling" = yes; then :
3646  ac_cv_func_chown_works=no
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650$ac_includes_default
3651#include <fcntl.h>
3652
3653int
3654main ()
3655{
3656  char *f = "conftest.chown";
3657  struct stat before, after;
3658
3659  if (creat (f, 0600) < 0)
3660    return 1;
3661  if (stat (f, &before) < 0)
3662    return 1;
3663  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
3664    return 1;
3665  if (stat (f, &after) < 0)
3666    return 1;
3667  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_run "$LINENO"; then :
3674  ac_cv_func_chown_works=yes
3675else
3676  ac_cv_func_chown_works=no
3677fi
3678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3679  conftest.$ac_objext conftest.beam conftest.$ac_ext
3680fi
3681
3682rm -f conftest.chown
3683
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
3686$as_echo "$ac_cv_func_chown_works" >&6; }
3687if test $ac_cv_func_chown_works = yes; then
3688
3689$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
3690
3691fi
3692
3693for ac_func in strerror memset mkdir rmdir strdup
3694do :
3695  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3696ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3697eval as_val=\$$as_ac_var
3698   if test "x$as_val" = x""yes; then :
3699  cat >>confdefs.h <<_ACEOF
3700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3701_ACEOF
3702
3703fi
3704done
3705
3706
3707ac_config_files="$ac_config_files Makefile"
3708
3709cat >confcache <<\_ACEOF
3710# This file is a shell script that caches the results of configure
3711# tests run on this system so they can be shared between configure
3712# scripts and configure runs, see configure's option --config-cache.
3713# It is not useful on other systems.  If it contains results you don't
3714# want to keep, you may remove or edit it.
3715#
3716# config.status only pays attention to the cache file if you give it
3717# the --recheck option to rerun configure.
3718#
3719# `ac_cv_env_foo' variables (set or unset) will be overridden when
3720# loading this file, other *unset* `ac_cv_foo' will be assigned the
3721# following values.
3722
3723_ACEOF
3724
3725# The following way of writing the cache mishandles newlines in values,
3726# but we know of no workaround that is simple, portable, and efficient.
3727# So, we kill variables containing newlines.
3728# Ultrix sh set writes to stderr and can't be redirected directly,
3729# and sets the high bit in the cache file unless we assign to the vars.
3730(
3731  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3732    eval ac_val=\$$ac_var
3733    case $ac_val in #(
3734    *${as_nl}*)
3735      case $ac_var in #(
3736      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3737$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3738      esac
3739      case $ac_var in #(
3740      _ | IFS | as_nl) ;; #(
3741      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3742      *) { eval $ac_var=; unset $ac_var;} ;;
3743      esac ;;
3744    esac
3745  done
3746
3747  (set) 2>&1 |
3748    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3749    *${as_nl}ac_space=\ *)
3750      # `set' does not quote correctly, so add quotes: double-quote
3751      # substitution turns \\\\ into \\, and sed turns \\ into \.
3752      sed -n \
3753	"s/'/'\\\\''/g;
3754	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3755      ;; #(
3756    *)
3757      # `set' quotes correctly as required by POSIX, so do not add quotes.
3758      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3759      ;;
3760    esac |
3761    sort
3762) |
3763  sed '
3764     /^ac_cv_env_/b end
3765     t clear
3766     :clear
3767     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3768     t end
3769     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3770     :end' >>confcache
3771if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3772  if test -w "$cache_file"; then
3773    test "x$cache_file" != "x/dev/null" &&
3774      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3775$as_echo "$as_me: updating cache $cache_file" >&6;}
3776    cat confcache >$cache_file
3777  else
3778    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3779$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3780  fi
3781fi
3782rm -f confcache
3783
3784test "x$prefix" = xNONE && prefix=$ac_default_prefix
3785# Let make expand exec_prefix.
3786test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3787
3788DEFS=-DHAVE_CONFIG_H
3789
3790ac_libobjs=
3791ac_ltlibobjs=
3792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3793  # 1. Remove the extension, and $U if already installed.
3794  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3795  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3796  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3797  #    will be set to the directory where LIBOBJS objects are built.
3798  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3799  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3800done
3801LIBOBJS=$ac_libobjs
3802
3803LTLIBOBJS=$ac_ltlibobjs
3804
3805
3806
3807: ${CONFIG_STATUS=./config.status}
3808ac_write_fail=0
3809ac_clean_files_save=$ac_clean_files
3810ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3812$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3813as_write_fail=0
3814cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3815#! $SHELL
3816# Generated by $as_me.
3817# Run this file to recreate the current configuration.
3818# Compiler output produced by configure, useful for debugging
3819# configure, is in config.log if it exists.
3820
3821debug=false
3822ac_cs_recheck=false
3823ac_cs_silent=false
3824
3825SHELL=\${CONFIG_SHELL-$SHELL}
3826export SHELL
3827_ASEOF
3828cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3829## -------------------- ##
3830## M4sh Initialization. ##
3831## -------------------- ##
3832
3833# Be more Bourne compatible
3834DUALCASE=1; export DUALCASE # for MKS sh
3835if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3836  emulate sh
3837  NULLCMD=:
3838  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3839  # is contrary to our usage.  Disable this feature.
3840  alias -g '${1+"$@"}'='"$@"'
3841  setopt NO_GLOB_SUBST
3842else
3843  case `(set -o) 2>/dev/null` in #(
3844  *posix*) :
3845    set -o posix ;; #(
3846  *) :
3847     ;;
3848esac
3849fi
3850
3851
3852as_nl='
3853'
3854export as_nl
3855# Printing a long string crashes Solaris 7 /usr/bin/printf.
3856as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3857as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3858as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3859# Prefer a ksh shell builtin over an external printf program on Solaris,
3860# but without wasting forks for bash or zsh.
3861if test -z "$BASH_VERSION$ZSH_VERSION" \
3862    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3863  as_echo='print -r --'
3864  as_echo_n='print -rn --'
3865elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3866  as_echo='printf %s\n'
3867  as_echo_n='printf %s'
3868else
3869  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3870    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3871    as_echo_n='/usr/ucb/echo -n'
3872  else
3873    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3874    as_echo_n_body='eval
3875      arg=$1;
3876      case $arg in #(
3877      *"$as_nl"*)
3878	expr "X$arg" : "X\\(.*\\)$as_nl";
3879	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3880      esac;
3881      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3882    '
3883    export as_echo_n_body
3884    as_echo_n='sh -c $as_echo_n_body as_echo'
3885  fi
3886  export as_echo_body
3887  as_echo='sh -c $as_echo_body as_echo'
3888fi
3889
3890# The user is always right.
3891if test "${PATH_SEPARATOR+set}" != set; then
3892  PATH_SEPARATOR=:
3893  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3894    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3895      PATH_SEPARATOR=';'
3896  }
3897fi
3898
3899
3900# IFS
3901# We need space, tab and new line, in precisely that order.  Quoting is
3902# there to prevent editors from complaining about space-tab.
3903# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3904# splitting by setting IFS to empty value.)
3905IFS=" ""	$as_nl"
3906
3907# Find who we are.  Look in the path if we contain no directory separator.
3908case $0 in #((
3909  *[\\/]* ) as_myself=$0 ;;
3910  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3916  done
3917IFS=$as_save_IFS
3918
3919     ;;
3920esac
3921# We did not find ourselves, most probably we were run as `sh COMMAND'
3922# in which case we are not to be found in the path.
3923if test "x$as_myself" = x; then
3924  as_myself=$0
3925fi
3926if test ! -f "$as_myself"; then
3927  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3928  exit 1
3929fi
3930
3931# Unset variables that we do not need and which cause bugs (e.g. in
3932# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3933# suppresses any "Segmentation fault" message there.  '((' could
3934# trigger a bug in pdksh 5.2.14.
3935for as_var in BASH_ENV ENV MAIL MAILPATH
3936do eval test x\${$as_var+set} = xset \
3937  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3938done
3939PS1='$ '
3940PS2='> '
3941PS4='+ '
3942
3943# NLS nuisances.
3944LC_ALL=C
3945export LC_ALL
3946LANGUAGE=C
3947export LANGUAGE
3948
3949# CDPATH.
3950(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3951
3952
3953# as_fn_error ERROR [LINENO LOG_FD]
3954# ---------------------------------
3955# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3956# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3957# script with status $?, using 1 if that was 0.
3958as_fn_error ()
3959{
3960  as_status=$?; test $as_status -eq 0 && as_status=1
3961  if test "$3"; then
3962    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3963    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3964  fi
3965  $as_echo "$as_me: error: $1" >&2
3966  as_fn_exit $as_status
3967} # as_fn_error
3968
3969
3970# as_fn_set_status STATUS
3971# -----------------------
3972# Set $? to STATUS, without forking.
3973as_fn_set_status ()
3974{
3975  return $1
3976} # as_fn_set_status
3977
3978# as_fn_exit STATUS
3979# -----------------
3980# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3981as_fn_exit ()
3982{
3983  set +e
3984  as_fn_set_status $1
3985  exit $1
3986} # as_fn_exit
3987
3988# as_fn_unset VAR
3989# ---------------
3990# Portably unset VAR.
3991as_fn_unset ()
3992{
3993  { eval $1=; unset $1;}
3994}
3995as_unset=as_fn_unset
3996# as_fn_append VAR VALUE
3997# ----------------------
3998# Append the text in VALUE to the end of the definition contained in VAR. Take
3999# advantage of any shell optimizations that allow amortized linear growth over
4000# repeated appends, instead of the typical quadratic growth present in naive
4001# implementations.
4002if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4003  eval 'as_fn_append ()
4004  {
4005    eval $1+=\$2
4006  }'
4007else
4008  as_fn_append ()
4009  {
4010    eval $1=\$$1\$2
4011  }
4012fi # as_fn_append
4013
4014# as_fn_arith ARG...
4015# ------------------
4016# Perform arithmetic evaluation on the ARGs, and store the result in the
4017# global $as_val. Take advantage of shells that can avoid forks. The arguments
4018# must be portable across $(()) and expr.
4019if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4020  eval 'as_fn_arith ()
4021  {
4022    as_val=$(( $* ))
4023  }'
4024else
4025  as_fn_arith ()
4026  {
4027    as_val=`expr "$@" || test $? -eq 1`
4028  }
4029fi # as_fn_arith
4030
4031
4032if expr a : '\(a\)' >/dev/null 2>&1 &&
4033   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4034  as_expr=expr
4035else
4036  as_expr=false
4037fi
4038
4039if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4040  as_basename=basename
4041else
4042  as_basename=false
4043fi
4044
4045if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4046  as_dirname=dirname
4047else
4048  as_dirname=false
4049fi
4050
4051as_me=`$as_basename -- "$0" ||
4052$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4053	 X"$0" : 'X\(//\)$' \| \
4054	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4055$as_echo X/"$0" |
4056    sed '/^.*\/\([^/][^/]*\)\/*$/{
4057	    s//\1/
4058	    q
4059	  }
4060	  /^X\/\(\/\/\)$/{
4061	    s//\1/
4062	    q
4063	  }
4064	  /^X\/\(\/\).*/{
4065	    s//\1/
4066	    q
4067	  }
4068	  s/.*/./; q'`
4069
4070# Avoid depending upon Character Ranges.
4071as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4072as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4073as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4074as_cr_digits='0123456789'
4075as_cr_alnum=$as_cr_Letters$as_cr_digits
4076
4077ECHO_C= ECHO_N= ECHO_T=
4078case `echo -n x` in #(((((
4079-n*)
4080  case `echo 'xy\c'` in
4081  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4082  xy)  ECHO_C='\c';;
4083  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4084       ECHO_T='	';;
4085  esac;;
4086*)
4087  ECHO_N='-n';;
4088esac
4089
4090rm -f conf$$ conf$$.exe conf$$.file
4091if test -d conf$$.dir; then
4092  rm -f conf$$.dir/conf$$.file
4093else
4094  rm -f conf$$.dir
4095  mkdir conf$$.dir 2>/dev/null
4096fi
4097if (echo >conf$$.file) 2>/dev/null; then
4098  if ln -s conf$$.file conf$$ 2>/dev/null; then
4099    as_ln_s='ln -s'
4100    # ... but there are two gotchas:
4101    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4102    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4103    # In both cases, we have to default to `cp -p'.
4104    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4105      as_ln_s='cp -p'
4106  elif ln conf$$.file conf$$ 2>/dev/null; then
4107    as_ln_s=ln
4108  else
4109    as_ln_s='cp -p'
4110  fi
4111else
4112  as_ln_s='cp -p'
4113fi
4114rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4115rmdir conf$$.dir 2>/dev/null
4116
4117
4118# as_fn_mkdir_p
4119# -------------
4120# Create "$as_dir" as a directory, including parents if necessary.
4121as_fn_mkdir_p ()
4122{
4123
4124  case $as_dir in #(
4125  -*) as_dir=./$as_dir;;
4126  esac
4127  test -d "$as_dir" || eval $as_mkdir_p || {
4128    as_dirs=
4129    while :; do
4130      case $as_dir in #(
4131      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4132      *) as_qdir=$as_dir;;
4133      esac
4134      as_dirs="'$as_qdir' $as_dirs"
4135      as_dir=`$as_dirname -- "$as_dir" ||
4136$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4137	 X"$as_dir" : 'X\(//\)[^/]' \| \
4138	 X"$as_dir" : 'X\(//\)$' \| \
4139	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4140$as_echo X"$as_dir" |
4141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4142	    s//\1/
4143	    q
4144	  }
4145	  /^X\(\/\/\)[^/].*/{
4146	    s//\1/
4147	    q
4148	  }
4149	  /^X\(\/\/\)$/{
4150	    s//\1/
4151	    q
4152	  }
4153	  /^X\(\/\).*/{
4154	    s//\1/
4155	    q
4156	  }
4157	  s/.*/./; q'`
4158      test -d "$as_dir" && break
4159    done
4160    test -z "$as_dirs" || eval "mkdir $as_dirs"
4161  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4162
4163
4164} # as_fn_mkdir_p
4165if mkdir -p . 2>/dev/null; then
4166  as_mkdir_p='mkdir -p "$as_dir"'
4167else
4168  test -d ./-p && rmdir ./-p
4169  as_mkdir_p=false
4170fi
4171
4172if test -x / >/dev/null 2>&1; then
4173  as_test_x='test -x'
4174else
4175  if ls -dL / >/dev/null 2>&1; then
4176    as_ls_L_option=L
4177  else
4178    as_ls_L_option=
4179  fi
4180  as_test_x='
4181    eval sh -c '\''
4182      if test -d "$1"; then
4183	test -d "$1/.";
4184      else
4185	case $1 in #(
4186	-*)set "./$1";;
4187	esac;
4188	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4189	???[sx]*):;;*)false;;esac;fi
4190    '\'' sh
4191  '
4192fi
4193as_executable_p=$as_test_x
4194
4195# Sed expression to map a string onto a valid CPP name.
4196as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4197
4198# Sed expression to map a string onto a valid variable name.
4199as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4200
4201
4202exec 6>&1
4203## ----------------------------------- ##
4204## Main body of $CONFIG_STATUS script. ##
4205## ----------------------------------- ##
4206_ASEOF
4207test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4208
4209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4210# Save the log message, to keep $0 and so on meaningful, and to
4211# report actual input values of CONFIG_FILES etc. instead of their
4212# values after options handling.
4213ac_log="
4214This file was extended by runAs $as_me 0.1, which was
4215generated by GNU Autoconf 2.65.  Invocation command line was
4216
4217  CONFIG_FILES    = $CONFIG_FILES
4218  CONFIG_HEADERS  = $CONFIG_HEADERS
4219  CONFIG_LINKS    = $CONFIG_LINKS
4220  CONFIG_COMMANDS = $CONFIG_COMMANDS
4221  $ $0 $@
4222
4223on `(hostname || uname -n) 2>/dev/null | sed 1q`
4224"
4225
4226_ACEOF
4227
4228case $ac_config_files in *"
4229"*) set x $ac_config_files; shift; ac_config_files=$*;;
4230esac
4231
4232case $ac_config_headers in *"
4233"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4234esac
4235
4236
4237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4238# Files that config.status was made for.
4239config_files="$ac_config_files"
4240config_headers="$ac_config_headers"
4241
4242_ACEOF
4243
4244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4245ac_cs_usage="\
4246\`$as_me' instantiates files and other configuration actions
4247from templates according to the current configuration.  Unless the files
4248and actions are specified as TAGs, all are instantiated by default.
4249
4250Usage: $0 [OPTION]... [TAG]...
4251
4252  -h, --help       print this help, then exit
4253  -V, --version    print version number and configuration settings, then exit
4254      --config     print configuration, then exit
4255  -q, --quiet, --silent
4256                   do not print progress messages
4257  -d, --debug      don't remove temporary files
4258      --recheck    update $as_me by reconfiguring in the same conditions
4259      --file=FILE[:TEMPLATE]
4260                   instantiate the configuration file FILE
4261      --header=FILE[:TEMPLATE]
4262                   instantiate the configuration header FILE
4263
4264Configuration files:
4265$config_files
4266
4267Configuration headers:
4268$config_headers
4269
4270Report bugs to the package provider."
4271
4272_ACEOF
4273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4274ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4275ac_cs_version="\\
4276runAs config.status 0.1
4277configured by $0, generated by GNU Autoconf 2.65,
4278  with options \\"\$ac_cs_config\\"
4279
4280Copyright (C) 2009 Free Software Foundation, Inc.
4281This config.status script is free software; the Free Software Foundation
4282gives unlimited permission to copy, distribute and modify it."
4283
4284ac_pwd='$ac_pwd'
4285srcdir='$srcdir'
4286test -n "\$AWK" || AWK=awk
4287_ACEOF
4288
4289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4290# The default lists apply if the user does not specify any file.
4291ac_need_defaults=:
4292while test $# != 0
4293do
4294  case $1 in
4295  --*=*)
4296    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4297    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4298    ac_shift=:
4299    ;;
4300  *)
4301    ac_option=$1
4302    ac_optarg=$2
4303    ac_shift=shift
4304    ;;
4305  esac
4306
4307  case $ac_option in
4308  # Handling of the options.
4309  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4310    ac_cs_recheck=: ;;
4311  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4312    $as_echo "$ac_cs_version"; exit ;;
4313  --config | --confi | --conf | --con | --co | --c )
4314    $as_echo "$ac_cs_config"; exit ;;
4315  --debug | --debu | --deb | --de | --d | -d )
4316    debug=: ;;
4317  --file | --fil | --fi | --f )
4318    $ac_shift
4319    case $ac_optarg in
4320    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4321    esac
4322    as_fn_append CONFIG_FILES " '$ac_optarg'"
4323    ac_need_defaults=false;;
4324  --header | --heade | --head | --hea )
4325    $ac_shift
4326    case $ac_optarg in
4327    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4328    esac
4329    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4330    ac_need_defaults=false;;
4331  --he | --h)
4332    # Conflict between --help and --header
4333    as_fn_error "ambiguous option: \`$1'
4334Try \`$0 --help' for more information.";;
4335  --help | --hel | -h )
4336    $as_echo "$ac_cs_usage"; exit ;;
4337  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4338  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4339    ac_cs_silent=: ;;
4340
4341  # This is an error.
4342  -*) as_fn_error "unrecognized option: \`$1'
4343Try \`$0 --help' for more information." ;;
4344
4345  *) as_fn_append ac_config_targets " $1"
4346     ac_need_defaults=false ;;
4347
4348  esac
4349  shift
4350done
4351
4352ac_configure_extra_args=
4353
4354if $ac_cs_silent; then
4355  exec 6>/dev/null
4356  ac_configure_extra_args="$ac_configure_extra_args --silent"
4357fi
4358
4359_ACEOF
4360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4361if \$ac_cs_recheck; then
4362  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4363  shift
4364  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4365  CONFIG_SHELL='$SHELL'
4366  export CONFIG_SHELL
4367  exec "\$@"
4368fi
4369
4370_ACEOF
4371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4372exec 5>>config.log
4373{
4374  echo
4375  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4376## Running $as_me. ##
4377_ASBOX
4378  $as_echo "$ac_log"
4379} >&5
4380
4381_ACEOF
4382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4383_ACEOF
4384
4385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4386
4387# Handling of arguments.
4388for ac_config_target in $ac_config_targets
4389do
4390  case $ac_config_target in
4391    "runAs.h") CONFIG_HEADERS="$CONFIG_HEADERS runAs.h" ;;
4392    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4393
4394  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4395  esac
4396done
4397
4398
4399# If the user did not use the arguments to specify the items to instantiate,
4400# then the envvar interface is used.  Set only those that are not.
4401# We use the long form for the default assignment because of an extremely
4402# bizarre bug on SunOS 4.1.3.
4403if $ac_need_defaults; then
4404  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4405  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4406fi
4407
4408# Have a temporary directory for convenience.  Make it in the build tree
4409# simply because there is no reason against having it here, and in addition,
4410# creating and moving files from /tmp can sometimes cause problems.
4411# Hook for its removal unless debugging.
4412# Note that there is a small window in which the directory will not be cleaned:
4413# after its creation but before its name has been assigned to `$tmp'.
4414$debug ||
4415{
4416  tmp=
4417  trap 'exit_status=$?
4418  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4419' 0
4420  trap 'as_fn_exit 1' 1 2 13 15
4421}
4422# Create a (secure) tmp directory for tmp files.
4423
4424{
4425  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4426  test -n "$tmp" && test -d "$tmp"
4427}  ||
4428{
4429  tmp=./conf$$-$RANDOM
4430  (umask 077 && mkdir "$tmp")
4431} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4432
4433# Set up the scripts for CONFIG_FILES section.
4434# No need to generate them if there are no CONFIG_FILES.
4435# This happens for instance with `./config.status config.h'.
4436if test -n "$CONFIG_FILES"; then
4437
4438
4439ac_cr=`echo X | tr X '\015'`
4440# On cygwin, bash can eat \r inside `` if the user requested igncr.
4441# But we know of no other shell where ac_cr would be empty at this
4442# point, so we can use a bashism as a fallback.
4443if test "x$ac_cr" = x; then
4444  eval ac_cr=\$\'\\r\'
4445fi
4446ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4447if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4448  ac_cs_awk_cr='\r'
4449else
4450  ac_cs_awk_cr=$ac_cr
4451fi
4452
4453echo 'BEGIN {' >"$tmp/subs1.awk" &&
4454_ACEOF
4455
4456
4457{
4458  echo "cat >conf$$subs.awk <<_ACEOF" &&
4459  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4460  echo "_ACEOF"
4461} >conf$$subs.sh ||
4462  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4463ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4464ac_delim='%!_!# '
4465for ac_last_try in false false false false false :; do
4466  . ./conf$$subs.sh ||
4467    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4468
4469  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4470  if test $ac_delim_n = $ac_delim_num; then
4471    break
4472  elif $ac_last_try; then
4473    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4474  else
4475    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4476  fi
4477done
4478rm -f conf$$subs.sh
4479
4480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4481cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4482_ACEOF
4483sed -n '
4484h
4485s/^/S["/; s/!.*/"]=/
4486p
4487g
4488s/^[^!]*!//
4489:repl
4490t repl
4491s/'"$ac_delim"'$//
4492t delim
4493:nl
4494h
4495s/\(.\{148\}\)..*/\1/
4496t more1
4497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4498p
4499n
4500b repl
4501:more1
4502s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4503p
4504g
4505s/.\{148\}//
4506t nl
4507:delim
4508h
4509s/\(.\{148\}\)..*/\1/
4510t more2
4511s/["\\]/\\&/g; s/^/"/; s/$/"/
4512p
4513b
4514:more2
4515s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4516p
4517g
4518s/.\{148\}//
4519t delim
4520' <conf$$subs.awk | sed '
4521/^[^""]/{
4522  N
4523  s/\n//
4524}
4525' >>$CONFIG_STATUS || ac_write_fail=1
4526rm -f conf$$subs.awk
4527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4528_ACAWK
4529cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4530  for (key in S) S_is_set[key] = 1
4531  FS = ""
4532
4533}
4534{
4535  line = $ 0
4536  nfields = split(line, field, "@")
4537  substed = 0
4538  len = length(field[1])
4539  for (i = 2; i < nfields; i++) {
4540    key = field[i]
4541    keylen = length(key)
4542    if (S_is_set[key]) {
4543      value = S[key]
4544      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4545      len += length(value) + length(field[++i])
4546      substed = 1
4547    } else
4548      len += 1 + keylen
4549  }
4550
4551  print line
4552}
4553
4554_ACAWK
4555_ACEOF
4556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4558  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4559else
4560  cat
4561fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4562  || as_fn_error "could not setup config files machinery" "$LINENO" 5
4563_ACEOF
4564
4565# VPATH may cause trouble with some makes, so we remove $(srcdir),
4566# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4567# trailing colons and then remove the whole line if VPATH becomes empty
4568# (actually we leave an empty line to preserve line numbers).
4569if test "x$srcdir" = x.; then
4570  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4571s/:*\$(srcdir):*/:/
4572s/:*\${srcdir}:*/:/
4573s/:*@srcdir@:*/:/
4574s/^\([^=]*=[	 ]*\):*/\1/
4575s/:*$//
4576s/^[^=]*=[	 ]*$//
4577}'
4578fi
4579
4580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4581fi # test -n "$CONFIG_FILES"
4582
4583# Set up the scripts for CONFIG_HEADERS section.
4584# No need to generate them if there are no CONFIG_HEADERS.
4585# This happens for instance with `./config.status Makefile'.
4586if test -n "$CONFIG_HEADERS"; then
4587cat >"$tmp/defines.awk" <<\_ACAWK ||
4588BEGIN {
4589_ACEOF
4590
4591# Transform confdefs.h into an awk script `defines.awk', embedded as
4592# here-document in config.status, that substitutes the proper values into
4593# config.h.in to produce config.h.
4594
4595# Create a delimiter string that does not exist in confdefs.h, to ease
4596# handling of long lines.
4597ac_delim='%!_!# '
4598for ac_last_try in false false :; do
4599  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4600  if test -z "$ac_t"; then
4601    break
4602  elif $ac_last_try; then
4603    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
4604  else
4605    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4606  fi
4607done
4608
4609# For the awk script, D is an array of macro values keyed by name,
4610# likewise P contains macro parameters if any.  Preserve backslash
4611# newline sequences.
4612
4613ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4614sed -n '
4615s/.\{148\}/&'"$ac_delim"'/g
4616t rset
4617:rset
4618s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
4619t def
4620d
4621:def
4622s/\\$//
4623t bsnl
4624s/["\\]/\\&/g
4625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4626D["\1"]=" \3"/p
4627s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
4628d
4629:bsnl
4630s/["\\]/\\&/g
4631s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
4632D["\1"]=" \3\\\\\\n"\\/p
4633t cont
4634s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4635t cont
4636d
4637:cont
4638n
4639s/.\{148\}/&'"$ac_delim"'/g
4640t clear
4641:clear
4642s/\\$//
4643t bsnlc
4644s/["\\]/\\&/g; s/^/"/; s/$/"/p
4645d
4646:bsnlc
4647s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4648b cont
4649' <confdefs.h | sed '
4650s/'"$ac_delim"'/"\\\
4651"/g' >>$CONFIG_STATUS || ac_write_fail=1
4652
4653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4654  for (key in D) D_is_set[key] = 1
4655  FS = ""
4656}
4657/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4658  line = \$ 0
4659  split(line, arg, " ")
4660  if (arg[1] == "#") {
4661    defundef = arg[2]
4662    mac1 = arg[3]
4663  } else {
4664    defundef = substr(arg[1], 2)
4665    mac1 = arg[2]
4666  }
4667  split(mac1, mac2, "(") #)
4668  macro = mac2[1]
4669  prefix = substr(line, 1, index(line, defundef) - 1)
4670  if (D_is_set[macro]) {
4671    # Preserve the white space surrounding the "#".
4672    print prefix "define", macro P[macro] D[macro]
4673    next
4674  } else {
4675    # Replace #undef with comments.  This is necessary, for example,
4676    # in the case of _POSIX_SOURCE, which is predefined and required
4677    # on some systems where configure will not decide to define it.
4678    if (defundef == "undef") {
4679      print "/*", prefix defundef, macro, "*/"
4680      next
4681    }
4682  }
4683}
4684{ print }
4685_ACAWK
4686_ACEOF
4687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4688  as_fn_error "could not setup config headers machinery" "$LINENO" 5
4689fi # test -n "$CONFIG_HEADERS"
4690
4691
4692eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
4693shift
4694for ac_tag
4695do
4696  case $ac_tag in
4697  :[FHLC]) ac_mode=$ac_tag; continue;;
4698  esac
4699  case $ac_mode$ac_tag in
4700  :[FHL]*:*);;
4701  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4702  :[FH]-) ac_tag=-:-;;
4703  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4704  esac
4705  ac_save_IFS=$IFS
4706  IFS=:
4707  set x $ac_tag
4708  IFS=$ac_save_IFS
4709  shift
4710  ac_file=$1
4711  shift
4712
4713  case $ac_mode in
4714  :L) ac_source=$1;;
4715  :[FH])
4716    ac_file_inputs=
4717    for ac_f
4718    do
4719      case $ac_f in
4720      -) ac_f="$tmp/stdin";;
4721      *) # Look for the file first in the build tree, then in the source tree
4722	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4723	 # because $ac_f cannot contain `:'.
4724	 test -f "$ac_f" ||
4725	   case $ac_f in
4726	   [\\/$]*) false;;
4727	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4728	   esac ||
4729	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4730      esac
4731      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4732      as_fn_append ac_file_inputs " '$ac_f'"
4733    done
4734
4735    # Let's still pretend it is `configure' which instantiates (i.e., don't
4736    # use $as_me), people would be surprised to read:
4737    #    /* config.h.  Generated by config.status.  */
4738    configure_input='Generated from '`
4739	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4740	`' by configure.'
4741    if test x"$ac_file" != x-; then
4742      configure_input="$ac_file.  $configure_input"
4743      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4744$as_echo "$as_me: creating $ac_file" >&6;}
4745    fi
4746    # Neutralize special characters interpreted by sed in replacement strings.
4747    case $configure_input in #(
4748    *\&* | *\|* | *\\* )
4749       ac_sed_conf_input=`$as_echo "$configure_input" |
4750       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4751    *) ac_sed_conf_input=$configure_input;;
4752    esac
4753
4754    case $ac_tag in
4755    *:-:* | *:-) cat >"$tmp/stdin" \
4756      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4757    esac
4758    ;;
4759  esac
4760
4761  ac_dir=`$as_dirname -- "$ac_file" ||
4762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4763	 X"$ac_file" : 'X\(//\)[^/]' \| \
4764	 X"$ac_file" : 'X\(//\)$' \| \
4765	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4766$as_echo X"$ac_file" |
4767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4768	    s//\1/
4769	    q
4770	  }
4771	  /^X\(\/\/\)[^/].*/{
4772	    s//\1/
4773	    q
4774	  }
4775	  /^X\(\/\/\)$/{
4776	    s//\1/
4777	    q
4778	  }
4779	  /^X\(\/\).*/{
4780	    s//\1/
4781	    q
4782	  }
4783	  s/.*/./; q'`
4784  as_dir="$ac_dir"; as_fn_mkdir_p
4785  ac_builddir=.
4786
4787case "$ac_dir" in
4788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4789*)
4790  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4791  # A ".." for each directory in $ac_dir_suffix.
4792  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4793  case $ac_top_builddir_sub in
4794  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4795  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4796  esac ;;
4797esac
4798ac_abs_top_builddir=$ac_pwd
4799ac_abs_builddir=$ac_pwd$ac_dir_suffix
4800# for backward compatibility:
4801ac_top_builddir=$ac_top_build_prefix
4802
4803case $srcdir in
4804  .)  # We are building in place.
4805    ac_srcdir=.
4806    ac_top_srcdir=$ac_top_builddir_sub
4807    ac_abs_top_srcdir=$ac_pwd ;;
4808  [\\/]* | ?:[\\/]* )  # Absolute name.
4809    ac_srcdir=$srcdir$ac_dir_suffix;
4810    ac_top_srcdir=$srcdir
4811    ac_abs_top_srcdir=$srcdir ;;
4812  *) # Relative name.
4813    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4814    ac_top_srcdir=$ac_top_build_prefix$srcdir
4815    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4816esac
4817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4818
4819
4820  case $ac_mode in
4821  :F)
4822  #
4823  # CONFIG_FILE
4824  #
4825
4826_ACEOF
4827
4828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4829# If the template does not know about datarootdir, expand it.
4830# FIXME: This hack should be removed a few years after 2.60.
4831ac_datarootdir_hack=; ac_datarootdir_seen=
4832ac_sed_dataroot='
4833/datarootdir/ {
4834  p
4835  q
4836}
4837/@datadir@/p
4838/@docdir@/p
4839/@infodir@/p
4840/@localedir@/p
4841/@mandir@/p'
4842case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4843*datarootdir*) ac_datarootdir_seen=yes;;
4844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4846$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4847_ACEOF
4848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4849  ac_datarootdir_hack='
4850  s&@datadir@&$datadir&g
4851  s&@docdir@&$docdir&g
4852  s&@infodir@&$infodir&g
4853  s&@localedir@&$localedir&g
4854  s&@mandir@&$mandir&g
4855  s&\\\${datarootdir}&$datarootdir&g' ;;
4856esac
4857_ACEOF
4858
4859# Neutralize VPATH when `$srcdir' = `.'.
4860# Shell code in configure.ac might set extrasub.
4861# FIXME: do we really want to maintain this feature?
4862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4863ac_sed_extra="$ac_vpsub
4864$extrasub
4865_ACEOF
4866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4867:t
4868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4869s|@configure_input@|$ac_sed_conf_input|;t t
4870s&@top_builddir@&$ac_top_builddir_sub&;t t
4871s&@top_build_prefix@&$ac_top_build_prefix&;t t
4872s&@srcdir@&$ac_srcdir&;t t
4873s&@abs_srcdir@&$ac_abs_srcdir&;t t
4874s&@top_srcdir@&$ac_top_srcdir&;t t
4875s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4876s&@builddir@&$ac_builddir&;t t
4877s&@abs_builddir@&$ac_abs_builddir&;t t
4878s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4879$ac_datarootdir_hack
4880"
4881eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4882  || as_fn_error "could not create $ac_file" "$LINENO" 5
4883
4884test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4885  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4886  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4888which seems to be undefined.  Please make sure it is defined." >&5
4889$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4890which seems to be undefined.  Please make sure it is defined." >&2;}
4891
4892  rm -f "$tmp/stdin"
4893  case $ac_file in
4894  -) cat "$tmp/out" && rm -f "$tmp/out";;
4895  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4896  esac \
4897  || as_fn_error "could not create $ac_file" "$LINENO" 5
4898 ;;
4899  :H)
4900  #
4901  # CONFIG_HEADER
4902  #
4903  if test x"$ac_file" != x-; then
4904    {
4905      $as_echo "/* $configure_input  */" \
4906      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4907    } >"$tmp/config.h" \
4908      || as_fn_error "could not create $ac_file" "$LINENO" 5
4909    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4910      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4911$as_echo "$as_me: $ac_file is unchanged" >&6;}
4912    else
4913      rm -f "$ac_file"
4914      mv "$tmp/config.h" "$ac_file" \
4915	|| as_fn_error "could not create $ac_file" "$LINENO" 5
4916    fi
4917  else
4918    $as_echo "/* $configure_input  */" \
4919      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4920      || as_fn_error "could not create -" "$LINENO" 5
4921  fi
4922 ;;
4923
4924
4925  esac
4926
4927done # for ac_tag
4928
4929
4930as_fn_exit 0
4931_ACEOF
4932ac_clean_files=$ac_clean_files_save
4933
4934test $ac_write_fail = 0 ||
4935  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4936
4937
4938# configure is writing to config.log, and then calls config.status.
4939# config.status does its own redirection, appending to config.log.
4940# Unfortunately, on DOS this fails, as config.log is still kept open
4941# by configure, so config.status won't be able to write to it; its
4942# output is simply discarded.  So we exec the FD to /dev/null,
4943# effectively closing config.log, so it can be properly (re)opened and
4944# appended to by config.status.  When coming back to configure, we
4945# need to make the FD available again.
4946if test "$no_create" != yes; then
4947  ac_cs_success=:
4948  ac_config_status_args=
4949  test "$silent" = yes &&
4950    ac_config_status_args="$ac_config_status_args --quiet"
4951  exec 5>/dev/null
4952  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4953  exec 5>>config.log
4954  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4955  # would make configure fail if this is the last instruction.
4956  $ac_cs_success || as_fn_exit $?
4957fi
4958if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4960$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4961fi
4962
4963
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4965$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4966if test "${ac_cv_header_stdbool_h+set}" = set; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h.  */
4971
4972#include <stdbool.h>
4973#ifndef bool
4974 "error: bool is not defined"
4975#endif
4976#ifndef false
4977 "error: false is not defined"
4978#endif
4979#if false
4980 "error: false is not 0"
4981#endif
4982#ifndef true
4983 "error: true is not defined"
4984#endif
4985#if true != 1
4986 "error: true is not 1"
4987#endif
4988#ifndef __bool_true_false_are_defined
4989 "error: __bool_true_false_are_defined is not defined"
4990#endif
4991
4992	struct s { _Bool s: 1; _Bool t; } s;
4993
4994	char a[true == 1 ? 1 : -1];
4995	char b[false == 0 ? 1 : -1];
4996	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4997	char d[(bool) 0.5 == true ? 1 : -1];
4998	bool e = &s;
4999	char f[(_Bool) 0.0 == false ? 1 : -1];
5000	char g[true];
5001	char h[sizeof (_Bool)];
5002	char i[sizeof s.t];
5003	enum { j = false, k = true, l = false * true, m = true * 256 };
5004	/* The following fails for
5005	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5006	_Bool n[m];
5007	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5008	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5009#	if defined __xlc__ || defined __GNUC__
5010	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5011	    reported by James Lemley on 2005-10-05; see
5012	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5013	    This test is not quite right, since xlc is allowed to
5014	    reject this program, as the initializer for xlcbug is
5015	    not one of the forms that C requires support for.
5016	    However, doing the test right would require a runtime
5017	    test, and that would make cross-compilation harder.
5018	    Let us hope that IBM fixes the xlc bug, and also adds
5019	    support for this kind of constant expression.  In the
5020	    meantime, this test will reject xlc, which is OK, since
5021	    our stdbool.h substitute should suffice.  We also test
5022	    this with GCC, where it should work, to detect more
5023	    quickly whether someone messes up the test in the
5024	    future.  */
5025	 char digs[] = "0123456789";
5026	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5027#	endif
5028	/* Catch a bug in an HP-UX C compiler.  See
5029	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5030	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5031	 */
5032	_Bool q = true;
5033	_Bool *pq = &q;
5034
5035int
5036main ()
5037{
5038
5039	*pq |= q;
5040	*pq |= ! q;
5041	/* Refer to every declared value, to avoid compiler optimizations.  */
5042	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5043		+ !m + !n + !o + !p + !q + !pq);
5044
5045  ;
5046  return 0;
5047}
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"; then :
5050  ac_cv_header_stdbool_h=yes
5051else
5052  ac_cv_header_stdbool_h=no
5053fi
5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5057$as_echo "$ac_cv_header_stdbool_h" >&6; }
5058ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5059if test "x$ac_cv_type__Bool" = x""yes; then :
5060
5061cat >>confdefs.h <<_ACEOF
5062#define HAVE__BOOL 1
5063_ACEOF
5064
5065
5066fi
5067
5068if test $ac_cv_header_stdbool_h = yes; then
5069
5070$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5071
5072fi
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5075$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5076set x ${MAKE-make}
5077ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5078if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  cat >conftest.make <<\_ACEOF
5082SHELL = /bin/sh
5083all:
5084	@echo '@@@%%%=$(MAKE)=@@@%%%'
5085_ACEOF
5086# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5087case `${MAKE-make} -f conftest.make 2>/dev/null` in
5088  *@@@%%%=?*=@@@%%%*)
5089    eval ac_cv_prog_make_${ac_make}_set=yes;;
5090  *)
5091    eval ac_cv_prog_make_${ac_make}_set=no;;
5092esac
5093rm -f conftest.make
5094fi
5095if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097$as_echo "yes" >&6; }
5098  SET_MAKE=
5099else
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102  SET_MAKE="MAKE=${MAKE-make}"
5103fi
5104
5105