source: trunk/configure @ 108

Last change on this file since 108 was 108, checked in by Matthew Whiting, 18 years ago

Changed source tree structure: added a src/ directory that contains all the
code. Makefile.in and configure.ac changed to match.

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