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