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