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