source: branches/r9/configure @ 4870

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