source: branches/r9/pkgs/configure @ 5079

Last change on this file since 5079 was 4917, checked in by gah, 9 years ago
  • Property svn:executable set to *
File size: 255.4 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.5.
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.5'
584PACKAGE_STRING='Rappture 1.5'
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
626WITH_TCL
627WITH_RUBY_SITELIBDIR
628WITH_RUBY
629WITH_PYTHON
630WITH_PERL
631WITH_OCTAVE
632WITH_MKOCTFILE3
633WITH_MKOCTFILE2
634WITH_MATLAB
635WITH_JAVA
636WITH_R
637WITH_VTK
638RAPPTURE_VERSION
639RAPPTURE_RELEASE_SERIAL
640RAPPTURE_MINOR_VERSION
641RAPPTURE_MAJOR_VERSION
642WORDSIZE
643X_LIBRARIES
644X_INCLUDES
645VTK_VERSION
646VTK_TCL_DIR
647TK_VERSION
648TK_XLIBSW
649TK_LIB_SPEC
650TK_INC_SPEC
651TCL_SHLIB_SUFFIX
652TCL_SHLIB_LDFLAGS
653TCL_SHLIB_LD
654TCL_SHLIB_CFLAGS
655TCL_CFLAGS_OPTIMIZE
656TCL_CFLAGS_DEBUG
657TCL_LIB_SPEC
658TCL_INC_SPEC
659SIZEOF_VOID_P
660SIZEOF_LONG_LONG
661SIZEOF_LONG
662SIZEOF_INT
663SHLIB_LDFLAGS
664SVN_VERSION
665MAKE
666LIB_SEARCH_DIRS
667INSTALL_PREFIX
668HAVE_LIBNCURSES
669HAVE_LIBVTKDICOM
670HAVE_INTTYPES_H
671LDFLAGS_DEFAULT
672CFLAGS_DEFAULT
673INSTALL_STUB_LIB
674INSTALL_LIB
675MAKE_STUB_LIB
676MAKE_LIB
677SHLIB_SUFFIX
678SHLIB_CFLAGS
679SHLIB_LD_LIBS
680TK_SHLIB_LD_EXTRAS
681TCL_SHLIB_LD_EXTRAS
682SHLIB_LD
683STLIB_LD
684LD_SEARCH_FLAGS
685CC_SEARCH_FLAGS
686LDFLAGS_OPTIMIZE
687LDFLAGS_DEBUG
688CFLAGS_WARNING
689CFLAGS_OPTIMIZE
690CFLAGS_DEBUG
691PLAT_SRCS
692PLAT_OBJS
693DL_OBJS
694DL_LIBS
695AR
696CXXCPP
697XMKMF
698EGREP
699GREP
700CPP
701ac_ct_F77
702FFLAGS
703F77
704ac_ct_CXX
705CXXFLAGS
706CXX
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714SET_MAKE
715MKDIR_P
716LN_S
717RANLIB
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762with_x
763enable_64bit
764enable_64bit_vis
765enable_corefoundation
766enable_load
767enable_symbols
768'
769      ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
777CXX
778CXXFLAGS
779CCC
780F77
781FFLAGS
782CPP
783XMKMF
784CXXCPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839  # If the previous option needs an argument, assign it.
840  if test -n "$ac_prev"; then
841    eval $ac_prev=\$ac_option
842    ac_prev=
843    continue
844  fi
845
846  case $ac_option in
847  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848  *=)   ac_optarg= ;;
849  *)    ac_optarg=yes ;;
850  esac
851
852  # Accept the important Cygnus configure options, so we can diagnose typos.
853
854  case $ac_dashdash$ac_option in
855  --)
856    ac_dashdash=yes ;;
857
858  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859    ac_prev=bindir ;;
860  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861    bindir=$ac_optarg ;;
862
863  -build | --build | --buil | --bui | --bu)
864    ac_prev=build_alias ;;
865  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866    build_alias=$ac_optarg ;;
867
868  -cache-file | --cache-file | --cache-fil | --cache-fi \
869  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870    ac_prev=cache_file ;;
871  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873    cache_file=$ac_optarg ;;
874
875  --config-cache | -C)
876    cache_file=config.cache ;;
877
878  -datadir | --datadir | --datadi | --datad)
879    ac_prev=datadir ;;
880  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881    datadir=$ac_optarg ;;
882
883  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884  | --dataroo | --dataro | --datar)
885    ac_prev=datarootdir ;;
886  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888    datarootdir=$ac_optarg ;;
889
890  -disable-* | --disable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902         ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=no ;;
905
906  -docdir | --docdir | --docdi | --doc | --do)
907    ac_prev=docdir ;;
908  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909    docdir=$ac_optarg ;;
910
911  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912    ac_prev=dvidir ;;
913  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914    dvidir=$ac_optarg ;;
915
916  -enable-* | --enable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928         ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=\$ac_optarg ;;
931
932  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934  | --exec | --exe | --ex)
935    ac_prev=exec_prefix ;;
936  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938  | --exec=* | --exe=* | --ex=*)
939    exec_prefix=$ac_optarg ;;
940
941  -gas | --gas | --ga | --g)
942    # Obsolete; use --with-gas.
943    with_gas=yes ;;
944
945  -help | --help | --hel | --he | -h)
946    ac_init_help=long ;;
947  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948    ac_init_help=recursive ;;
949  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950    ac_init_help=short ;;
951
952  -host | --host | --hos | --ho)
953    ac_prev=host_alias ;;
954  -host=* | --host=* | --hos=* | --ho=*)
955    host_alias=$ac_optarg ;;
956
957  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958    ac_prev=htmldir ;;
959  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960  | --ht=*)
961    htmldir=$ac_optarg ;;
962
963  -includedir | --includedir | --includedi | --included | --include \
964  | --includ | --inclu | --incl | --inc)
965    ac_prev=includedir ;;
966  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967  | --includ=* | --inclu=* | --incl=* | --inc=*)
968    includedir=$ac_optarg ;;
969
970  -infodir | --infodir | --infodi | --infod | --info | --inf)
971    ac_prev=infodir ;;
972  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973    infodir=$ac_optarg ;;
974
975  -libdir | --libdir | --libdi | --libd)
976    ac_prev=libdir ;;
977  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978    libdir=$ac_optarg ;;
979
980  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981  | --libexe | --libex | --libe)
982    ac_prev=libexecdir ;;
983  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984  | --libexe=* | --libex=* | --libe=*)
985    libexecdir=$ac_optarg ;;
986
987  -localedir | --localedir | --localedi | --localed | --locale)
988    ac_prev=localedir ;;
989  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990    localedir=$ac_optarg ;;
991
992  -localstatedir | --localstatedir | --localstatedi | --localstated \
993  | --localstate | --localstat | --localsta | --localst | --locals)
994    ac_prev=localstatedir ;;
995  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997    localstatedir=$ac_optarg ;;
998
999  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000    ac_prev=mandir ;;
1001  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002    mandir=$ac_optarg ;;
1003
1004  -nfp | --nfp | --nf)
1005    # Obsolete; use --without-fp.
1006    with_fp=no ;;
1007
1008  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009  | --no-cr | --no-c | -n)
1010    no_create=yes ;;
1011
1012  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014    no_recursion=yes ;;
1015
1016  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018  | --oldin | --oldi | --old | --ol | --o)
1019    ac_prev=oldincludedir ;;
1020  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023    oldincludedir=$ac_optarg ;;
1024
1025  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026    ac_prev=prefix ;;
1027  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028    prefix=$ac_optarg ;;
1029
1030  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031  | --program-pre | --program-pr | --program-p)
1032    ac_prev=program_prefix ;;
1033  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035    program_prefix=$ac_optarg ;;
1036
1037  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038  | --program-suf | --program-su | --program-s)
1039    ac_prev=program_suffix ;;
1040  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042    program_suffix=$ac_optarg ;;
1043
1044  -program-transform-name | --program-transform-name \
1045  | --program-transform-nam | --program-transform-na \
1046  | --program-transform-n | --program-transform- \
1047  | --program-transform | --program-transfor \
1048  | --program-transfo | --program-transf \
1049  | --program-trans | --program-tran \
1050  | --progr-tra | --program-tr | --program-t)
1051    ac_prev=program_transform_name ;;
1052  -program-transform-name=* | --program-transform-name=* \
1053  | --program-transform-nam=* | --program-transform-na=* \
1054  | --program-transform-n=* | --program-transform-=* \
1055  | --program-transform=* | --program-transfor=* \
1056  | --program-transfo=* | --program-transf=* \
1057  | --program-trans=* | --program-tran=* \
1058  | --progr-tra=* | --program-tr=* | --program-t=*)
1059    program_transform_name=$ac_optarg ;;
1060
1061  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062    ac_prev=pdfdir ;;
1063  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064    pdfdir=$ac_optarg ;;
1065
1066  -psdir | --psdir | --psdi | --psd | --ps)
1067    ac_prev=psdir ;;
1068  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069    psdir=$ac_optarg ;;
1070
1071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072  | -silent | --silent | --silen | --sile | --sil)
1073    silent=yes ;;
1074
1075  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076    ac_prev=sbindir ;;
1077  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078  | --sbi=* | --sb=*)
1079    sbindir=$ac_optarg ;;
1080
1081  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083  | --sharedst | --shareds | --shared | --share | --shar \
1084  | --sha | --sh)
1085    ac_prev=sharedstatedir ;;
1086  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089  | --sha=* | --sh=*)
1090    sharedstatedir=$ac_optarg ;;
1091
1092  -site | --site | --sit)
1093    ac_prev=site ;;
1094  -site=* | --site=* | --sit=*)
1095    site=$ac_optarg ;;
1096
1097  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098    ac_prev=srcdir ;;
1099  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100    srcdir=$ac_optarg ;;
1101
1102  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103  | --syscon | --sysco | --sysc | --sys | --sy)
1104    ac_prev=sysconfdir ;;
1105  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107    sysconfdir=$ac_optarg ;;
1108
1109  -target | --target | --targe | --targ | --tar | --ta | --t)
1110    ac_prev=target_alias ;;
1111  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112    target_alias=$ac_optarg ;;
1113
1114  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115    verbose=yes ;;
1116
1117  -version | --version | --versio | --versi | --vers | -V)
1118    ac_init_version=: ;;
1119
1120  -with-* | --with-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132         ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=\$ac_optarg ;;
1135
1136  -without-* | --without-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148         ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=no ;;
1151
1152  --x)
1153    # Obsolete; use --with-x.
1154    with_x=yes ;;
1155
1156  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157  | --x-incl | --x-inc | --x-in | --x-i)
1158    ac_prev=x_includes ;;
1159  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161    x_includes=$ac_optarg ;;
1162
1163  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165    ac_prev=x_libraries ;;
1166  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168    x_libraries=$ac_optarg ;;
1169
1170  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information"
1172    ;;
1173
1174  *=*)
1175    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176    # Reject names that are not valid shell variable names.
1177    case $ac_envvar in #(
1178      '' | [0-9]* | *[!_$as_cr_alnum]* )
1179      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180    esac
1181    eval $ac_envvar=\$ac_optarg
1182    export $ac_envvar ;;
1183
1184  *)
1185    # FIXME: should be removed in autoconf 3.0.
1186    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190    ;;
1191
1192  esac
1193done
1194
1195if test -n "$ac_prev"; then
1196  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197  as_fn_error $? "missing argument to $ac_option"
1198fi
1199
1200if test -n "$ac_unrecognized_opts"; then
1201  case $enable_option_checking in
1202    no) ;;
1203    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205  esac
1206fi
1207
1208# Check all directory arguments for consistency.
1209for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                datadir sysconfdir sharedstatedir localstatedir includedir \
1211                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                libdir localedir mandir
1213do
1214  eval ac_val=\$$ac_var
1215  # Remove trailing slashes.
1216  case $ac_val in
1217    */ )
1218      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219      eval $ac_var=\$ac_val;;
1220  esac
1221  # Be sure to have absolute directory names.
1222  case $ac_val in
1223    [\\/$]* | ?:[\\/]* )  continue;;
1224    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225  esac
1226  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238  if test "x$build_alias" = x; then
1239    cross_compiling=maybe
1240  elif test "x$build_alias" != "x$host_alias"; then
1241    cross_compiling=yes
1242  fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254  as_fn_error $? "working directory cannot be determined"
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256  as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261  ac_srcdir_defaulted=yes
1262  # Try the directory containing this script, then the parent directory.
1263  ac_confdir=`$as_dirname -- "$as_myself" ||
1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265         X"$as_myself" : 'X\(//\)[^/]' \| \
1266         X"$as_myself" : 'X\(//\)$' \| \
1267         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268$as_echo X"$as_myself" |
1269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270            s//\1/
1271            q
1272          }
1273          /^X\(\/\/\)[^/].*/{
1274            s//\1/
1275            q
1276          }
1277          /^X\(\/\/\)$/{
1278            s//\1/
1279            q
1280          }
1281          /^X\(\/\).*/{
1282            s//\1/
1283            q
1284          }
1285          s/.*/./; q'`
1286  srcdir=$ac_confdir
1287  if test ! -r "$srcdir/$ac_unique_file"; then
1288    srcdir=..
1289  fi
1290else
1291  ac_srcdir_defaulted=no
1292fi
1293if test ! -r "$srcdir/$ac_unique_file"; then
1294  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296fi
1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298ac_abs_confdir=`(
1299        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300        pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303  srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_env_${ac_var}_value=\$${ac_var}
1314  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
1317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322  # Omit some internal or obsolete options to make the list less imposing.
1323  # This message is too long to be a string in the A/UX 3.1 sh.
1324  cat <<_ACEOF
1325\`configure' configures Rappture 1.5 to adapt to many kinds of systems.
1326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335  -h, --help              display this help and exit
1336      --help=short        display options specific to this package
1337      --help=recursive    display the short help of all the included packages
1338  -V, --version           display version information and exit
1339  -q, --quiet, --silent   do not print \`checking ...' messages
1340      --cache-file=FILE   cache test results in FILE [disabled]
1341  -C, --config-cache      alias for \`--cache-file=config.cache'
1342  -n, --no-create         do not create output files
1343      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345Installation directories:
1346  --prefix=PREFIX         install architecture-independent files in PREFIX
1347                          [$ac_default_prefix]
1348  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                          [PREFIX]
1350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
1359  --bindir=DIR            user executables [EPREFIX/bin]
1360  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1361  --libexecdir=DIR        program executables [EPREFIX/libexec]
1362  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1363  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1364  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1365  --libdir=DIR            object code libraries [EPREFIX/lib]
1366  --includedir=DIR        C header files [PREFIX/include]
1367  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1368  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1369  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1370  --infodir=DIR           info documentation [DATAROOTDIR/info]
1371  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1372  --mandir=DIR            man documentation [DATAROOTDIR/man]
1373  --docdir=DIR            documentation root [DATAROOTDIR/doc/rappture]
1374  --htmldir=DIR           html documentation [DOCDIR]
1375  --dvidir=DIR            dvi documentation [DOCDIR]
1376  --pdfdir=DIR            pdf documentation [DOCDIR]
1377  --psdir=DIR             ps documentation [DOCDIR]
1378_ACEOF
1379
1380  cat <<\_ACEOF
1381
1382X features:
1383  --x-includes=DIR    X include files are in DIR
1384  --x-libraries=DIR   X library files are in DIR
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389  case $ac_init_help in
1390     short | recursive ) echo "Configuration of Rappture 1.5:";;
1391   esac
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-64bit          enable 64bit support (where applicable)
1399  --enable-64bit-vis      enable 64bit Sparc VIS support
1400  --enable-corefoundation use CoreFoundation API --enable-corefoundation
1401  --disable-load          disallow dynamic loading and "load" command
1402  --enable-symbols        build with debugging symbols --disable-symbols
1403
1404Optional Packages:
1405  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1406  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1407  --with-x                use the X Window System
1408
1409Some influential environment variables:
1410  CC          C compiler command
1411  CFLAGS      C compiler flags
1412  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1413              nonstandard directory <lib dir>
1414  LIBS        libraries to pass to the linker, e.g. -l<library>
1415  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416              you have headers in a nonstandard directory <include dir>
1417  CXX         C++ compiler command
1418  CXXFLAGS    C++ compiler flags
1419  F77         Fortran 77 compiler command
1420  FFLAGS      Fortran 77 compiler flags
1421  CPP         C preprocessor
1422  XMKMF       Path to xmkmf, Makefile generator for X Window System
1423  CXXCPP      C++ preprocessor
1424
1425Use these variables to override the choices made by `configure' or to help
1426it to find libraries and programs with nonstandard names/locations.
1427
1428Report bugs to <rappture@nanohub.org>.
1429_ACEOF
1430ac_status=$?
1431fi
1432
1433if test "$ac_init_help" = "recursive"; then
1434  # If there are subdirs, report their specific --help.
1435  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436    test -d "$ac_dir" ||
1437      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438      continue
1439    ac_builddir=.
1440
1441case "$ac_dir" in
1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443*)
1444  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445  # A ".." for each directory in $ac_dir_suffix.
1446  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447  case $ac_top_builddir_sub in
1448  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450  esac ;;
1451esac
1452ac_abs_top_builddir=$ac_pwd
1453ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454# for backward compatibility:
1455ac_top_builddir=$ac_top_build_prefix
1456
1457case $srcdir in
1458  .)  # We are building in place.
1459    ac_srcdir=.
1460    ac_top_srcdir=$ac_top_builddir_sub
1461    ac_abs_top_srcdir=$ac_pwd ;;
1462  [\\/]* | ?:[\\/]* )  # Absolute name.
1463    ac_srcdir=$srcdir$ac_dir_suffix;
1464    ac_top_srcdir=$srcdir
1465    ac_abs_top_srcdir=$srcdir ;;
1466  *) # Relative name.
1467    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468    ac_top_srcdir=$ac_top_build_prefix$srcdir
1469    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470esac
1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473    cd "$ac_dir" || { ac_status=$?; continue; }
1474    # Check for guested configure.
1475    if test -f "$ac_srcdir/configure.gnu"; then
1476      echo &&
1477      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478    elif test -f "$ac_srcdir/configure"; then
1479      echo &&
1480      $SHELL "$ac_srcdir/configure" --help=recursive
1481    else
1482      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483    fi || ac_status=$?
1484    cd "$ac_pwd" || { ac_status=$?; break; }
1485  done
1486fi
1487
1488test -n "$ac_init_help" && exit $ac_status
1489if $ac_init_version; then
1490  cat <<\_ACEOF
1491Rappture configure 1.5
1492generated by GNU Autoconf 2.69
1493
1494Copyright (C) 2012 Free Software Foundation, Inc.
1495This configure script is free software; the Free Software Foundation
1496gives unlimited permission to copy, distribute and modify it.
1497_ACEOF
1498  exit
1499fi
1500
1501## ------------------------ ##
1502## Autoconf initialization. ##
1503## ------------------------ ##
1504
1505# ac_fn_c_try_compile LINENO
1506# --------------------------
1507# Try to compile conftest.$ac_ext, and return whether this succeeded.
1508ac_fn_c_try_compile ()
1509{
1510  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511  rm -f conftest.$ac_objext
1512  if { { ac_try="$ac_compile"
1513case "(($ac_try" in
1514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515  *) ac_try_echo=$ac_try;;
1516esac
1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518$as_echo "$ac_try_echo"; } >&5
1519  (eval "$ac_compile") 2>conftest.err
1520  ac_status=$?
1521  if test -s conftest.err; then
1522    grep -v '^ *+' conftest.err >conftest.er1
1523    cat conftest.er1 >&5
1524    mv -f conftest.er1 conftest.err
1525  fi
1526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527  test $ac_status = 0; } && {
1528         test -z "$ac_c_werror_flag" ||
1529         test ! -s conftest.err
1530       } && test -s conftest.$ac_objext; then :
1531  ac_retval=0
1532else
1533  $as_echo "$as_me: failed program was:" >&5
1534sed 's/^/| /' conftest.$ac_ext >&5
1535
1536        ac_retval=1
1537fi
1538  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539  as_fn_set_status $ac_retval
1540
1541} # ac_fn_c_try_compile
1542
1543# ac_fn_cxx_try_compile LINENO
1544# ----------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_cxx_try_compile ()
1547{
1548  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549  rm -f conftest.$ac_objext
1550  if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553  *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557  (eval "$ac_compile") 2>conftest.err
1558  ac_status=$?
1559  if test -s conftest.err; then
1560    grep -v '^ *+' conftest.err >conftest.er1
1561    cat conftest.er1 >&5
1562    mv -f conftest.er1 conftest.err
1563  fi
1564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565  test $ac_status = 0; } && {
1566         test -z "$ac_cxx_werror_flag" ||
1567         test ! -s conftest.err
1568       } && test -s conftest.$ac_objext; then :
1569  ac_retval=0
1570else
1571  $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574        ac_retval=1
1575fi
1576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577  as_fn_set_status $ac_retval
1578
1579} # ac_fn_cxx_try_compile
1580
1581# ac_fn_f77_try_compile LINENO
1582# ----------------------------
1583# Try to compile conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_f77_try_compile ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  rm -f conftest.$ac_objext
1588  if { { ac_try="$ac_compile"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_compile") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } && {
1604         test -z "$ac_f77_werror_flag" ||
1605         test ! -s conftest.err
1606       } && test -s conftest.$ac_objext; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612        ac_retval=1
1613fi
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_f77_try_compile
1618
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } > conftest.i && {
1641         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642         test ! -s conftest.err
1643       }; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649    ac_retval=1
1650fi
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674  { { case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_try") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; }; }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: program exited with status $ac_status" >&5
1687       $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690       ac_retval=$ac_status
1691fi
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_run
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext conftest$ac_exeext
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721         test -z "$ac_c_werror_flag" ||
1722         test ! -s conftest.err
1723       } && test -s conftest$ac_exeext && {
1724         test "$cross_compiling" = yes ||
1725         test -x conftest$ac_exeext
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732        ac_retval=1
1733fi
1734  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736  # interfere with the next link command; also delete a directory that is
1737  # left behind by Apple's compiler.  We do this before executing the actions.
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762    which can conflict with char $2 (); below.
1763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764    <limits.h> exists even on freestanding compilers.  */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802    conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810
1811# ac_fn_cxx_try_cpp LINENO
1812# ------------------------
1813# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_cxx_try_cpp ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  if { { ac_try="$ac_cpp conftest.$ac_ext"
1818case "(($ac_try" in
1819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820  *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825  ac_status=$?
1826  if test -s conftest.err; then
1827    grep -v '^ *+' conftest.err >conftest.er1
1828    cat conftest.er1 >&5
1829    mv -f conftest.er1 conftest.err
1830  fi
1831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } > conftest.i && {
1833         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1834         test ! -s conftest.err
1835       }; then :
1836  ac_retval=0
1837else
1838  $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841    ac_retval=1
1842fi
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_cxx_try_cpp
1847
1848# ac_fn_cxx_try_link LINENO
1849# -------------------------
1850# Try to link conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_cxx_try_link ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  rm -f conftest.$ac_objext conftest$ac_exeext
1855  if { { ac_try="$ac_link"
1856case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_link") 2>conftest.err
1863  ac_status=$?
1864  if test -s conftest.err; then
1865    grep -v '^ *+' conftest.err >conftest.er1
1866    cat conftest.er1 >&5
1867    mv -f conftest.er1 conftest.err
1868  fi
1869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870  test $ac_status = 0; } && {
1871         test -z "$ac_cxx_werror_flag" ||
1872         test ! -s conftest.err
1873       } && test -s conftest$ac_exeext && {
1874         test "$cross_compiling" = yes ||
1875         test -x conftest$ac_exeext
1876       }; then :
1877  ac_retval=0
1878else
1879  $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882        ac_retval=1
1883fi
1884  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886  # interfere with the next link command; also delete a directory that is
1887  # left behind by Apple's compiler.  We do this before executing the actions.
1888  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890  as_fn_set_status $ac_retval
1891
1892} # ac_fn_cxx_try_link
1893
1894# ac_fn_cxx_try_run LINENO
1895# ------------------------
1896# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1897# that executables *can* be run.
1898ac_fn_cxx_try_run ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  if { { ac_try="$ac_link"
1902case "(($ac_try" in
1903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904  *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908  (eval "$ac_link") 2>&5
1909  ac_status=$?
1910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1912  { { case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_try") 2>&5
1919  ac_status=$?
1920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; }; }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: program exited with status $ac_status" >&5
1925       $as_echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
1928       ac_retval=$ac_status
1929fi
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_run
1935
1936# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1937# ---------------------------------------------------------
1938# Tests whether HEADER exists and can be compiled using the include files in
1939# INCLUDES, setting the cache variable VAR accordingly.
1940ac_fn_cxx_check_header_compile ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$4
1951#include <$2>
1952_ACEOF
1953if ac_fn_cxx_try_compile "$LINENO"; then :
1954  eval "$3=yes"
1955else
1956  eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_cxx_check_header_compile
1966
1967# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1968# ----------------------------------------------
1969# Tries to find the compile-time value of EXPR in a program that includes
1970# INCLUDES, setting VAR accordingly. Returns whether the value could be
1971# computed
1972ac_fn_cxx_compute_int ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  if test "$cross_compiling" = yes; then
1976    # Depending upon the size, compute the lo and hi bounds.
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980int
1981main ()
1982{
1983static int test_array [1 - 2 * !(($2) >= 0)];
1984test_array [0] = 0;
1985return test_array [0];
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_cxx_try_compile "$LINENO"; then :
1992  ac_lo=0 ac_mid=0
1993  while :; do
1994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001test_array [0] = 0;
2002return test_array [0];
2003
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_cxx_try_compile "$LINENO"; then :
2009  ac_hi=$ac_mid; break
2010else
2011  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2012                        if test $ac_lo -le $ac_mid; then
2013                          ac_lo= ac_hi=
2014                          break
2015                        fi
2016                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019  done
2020else
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027static int test_array [1 - 2 * !(($2) < 0)];
2028test_array [0] = 0;
2029return test_array [0];
2030
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_cxx_try_compile "$LINENO"; then :
2036  ac_hi=-1 ac_mid=-1
2037  while :; do
2038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2045test_array [0] = 0;
2046return test_array [0];
2047
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_cxx_try_compile "$LINENO"; then :
2053  ac_lo=$ac_mid; break
2054else
2055  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2056                        if test $ac_mid -le $ac_hi; then
2057                          ac_lo= ac_hi=
2058                          break
2059                        fi
2060                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063  done
2064else
2065  ac_lo= ac_hi=
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070# Binary search between lo and hi bounds.
2071while test "x$ac_lo" != "x$ac_hi"; do
2072  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080test_array [0] = 0;
2081return test_array [0];
2082
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_cxx_try_compile "$LINENO"; then :
2088  ac_hi=$ac_mid
2089else
2090  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093done
2094case $ac_lo in #((
2095?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2096'') ac_retval=1 ;;
2097esac
2098  else
2099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102static long int longval () { return $2; }
2103static unsigned long int ulongval () { return $2; }
2104#include <stdio.h>
2105#include <stdlib.h>
2106int
2107main ()
2108{
2109
2110  FILE *f = fopen ("conftest.val", "w");
2111  if (! f)
2112    return 1;
2113  if (($2) < 0)
2114    {
2115      long int i = longval ();
2116      if (i != ($2))
2117        return 1;
2118      fprintf (f, "%ld", i);
2119    }
2120  else
2121    {
2122      unsigned long int i = ulongval ();
2123      if (i != ($2))
2124        return 1;
2125      fprintf (f, "%lu", i);
2126    }
2127  /* Do not output a trailing newline, as this causes \r\n confusion
2128     on some platforms.  */
2129  return ferror (f) || fclose (f) != 0;
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_cxx_try_run "$LINENO"; then :
2136  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2137else
2138  ac_retval=1
2139fi
2140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2141  conftest.$ac_objext conftest.beam conftest.$ac_ext
2142rm -f conftest.val
2143
2144  fi
2145  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146  as_fn_set_status $ac_retval
2147
2148} # ac_fn_cxx_compute_int
2149
2150# ac_fn_cxx_check_func LINENO FUNC VAR
2151# ------------------------------------
2152# Tests whether FUNC exists, setting the cache variable VAR accordingly
2153ac_fn_cxx_check_func ()
2154{
2155  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
2158if eval \${$3+:} false; then :
2159  $as_echo_n "(cached) " >&6
2160else
2161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h.  */
2163/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2165#define $2 innocuous_$2
2166
2167/* System header to define __stub macros and hopefully few prototypes,
2168    which can conflict with char $2 (); below.
2169    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170    <limits.h> exists even on freestanding compilers.  */
2171
2172#ifdef __STDC__
2173# include <limits.h>
2174#else
2175# include <assert.h>
2176#endif
2177
2178#undef $2
2179
2180/* Override any GCC internal prototype to avoid an error.
2181   Use char because int might match the return type of a GCC
2182   builtin and then its argument prototype would still apply.  */
2183#ifdef __cplusplus
2184extern "C"
2185#endif
2186char $2 ();
2187/* The GNU C library defines this for functions which it implements
2188    to always fail with ENOSYS.  Some functions are actually named
2189    something starting with __ and the normal name is an alias.  */
2190#if defined __stub_$2 || defined __stub___$2
2191choke me
2192#endif
2193
2194int
2195main ()
2196{
2197return $2 ();
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202if ac_fn_cxx_try_link "$LINENO"; then :
2203  eval "$3=yes"
2204else
2205  eval "$3=no"
2206fi
2207rm -f core conftest.err conftest.$ac_objext \
2208    conftest$ac_exeext conftest.$ac_ext
2209fi
2210eval ac_res=\$$3
2211               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215} # ac_fn_cxx_check_func
2216
2217# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2218# ---------------------------------------------------------
2219# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2220# the include files in INCLUDES and setting the cache variable VAR
2221# accordingly.
2222ac_fn_cxx_check_header_mongrel ()
2223{
2224  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225  if eval \${$3+:} false; then :
2226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
2228if eval \${$3+:} false; then :
2229  $as_echo_n "(cached) " >&6
2230fi
2231eval ac_res=\$$3
2232               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234else
2235  # Is the header compilable?
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2237$as_echo_n "checking $2 usability... " >&6; }
2238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h.  */
2240$4
2241#include <$2>
2242_ACEOF
2243if ac_fn_cxx_try_compile "$LINENO"; then :
2244  ac_header_compiler=yes
2245else
2246  ac_header_compiler=no
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2250$as_echo "$ac_header_compiler" >&6; }
2251
2252# Is the header present?
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2254$as_echo_n "checking $2 presence... " >&6; }
2255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h.  */
2257#include <$2>
2258_ACEOF
2259if ac_fn_cxx_try_cpp "$LINENO"; then :
2260  ac_header_preproc=yes
2261else
2262  ac_header_preproc=no
2263fi
2264rm -f conftest.err conftest.i conftest.$ac_ext
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2266$as_echo "$ac_header_preproc" >&6; }
2267
2268# So?  What about this header?
2269case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2270  yes:no: )
2271    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2272$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2274$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275    ;;
2276  no:yes:* )
2277    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2278$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2280$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2281    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2282$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2284$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2286$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287( $as_echo "## ----------------------------------- ##
2288## Report this to rappture@nanohub.org ##
2289## ----------------------------------- ##"
2290     ) | sed "s/^/$as_me: WARNING:     /" >&2
2291    ;;
2292esac
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294$as_echo_n "checking for $2... " >&6; }
2295if eval \${$3+:} false; then :
2296  $as_echo_n "(cached) " >&6
2297else
2298  eval "$3=\$ac_header_compiler"
2299fi
2300eval ac_res=\$$3
2301               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302$as_echo "$ac_res" >&6; }
2303fi
2304  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306} # ac_fn_cxx_check_header_mongrel
2307cat >config.log <<_ACEOF
2308This file contains any messages produced by compilers while
2309running configure, to aid debugging if configure makes a mistake.
2310
2311It was created by Rappture $as_me 1.5, which was
2312generated by GNU Autoconf 2.69.  Invocation command line was
2313
2314  $ $0 $@
2315
2316_ACEOF
2317exec 5>>config.log
2318{
2319cat <<_ASUNAME
2320## --------- ##
2321## Platform. ##
2322## --------- ##
2323
2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329
2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2332
2333/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2334/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2337/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2338/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2339/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2340
2341_ASUNAME
2342
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346  IFS=$as_save_IFS
2347  test -z "$as_dir" && as_dir=.
2348    $as_echo "PATH: $as_dir"
2349  done
2350IFS=$as_save_IFS
2351
2352} >&5
2353
2354cat >&5 <<_ACEOF
2355
2356
2357## ----------- ##
2358## Core tests. ##
2359## ----------- ##
2360
2361_ACEOF
2362
2363
2364# Keep a trace of the command line.
2365# Strip out --no-create and --no-recursion so they do not pile up.
2366# Strip out --silent because we don't want to record it for future runs.
2367# Also quote any args containing shell meta-characters.
2368# Make two passes to allow for proper duplicate-argument suppression.
2369ac_configure_args=
2370ac_configure_args0=
2371ac_configure_args1=
2372ac_must_keep_next=false
2373for ac_pass in 1 2
2374do
2375  for ac_arg
2376  do
2377    case $ac_arg in
2378    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380    | -silent | --silent | --silen | --sile | --sil)
2381      continue ;;
2382    *\'*)
2383      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384    esac
2385    case $ac_pass in
2386    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387    2)
2388      as_fn_append ac_configure_args1 " '$ac_arg'"
2389      if test $ac_must_keep_next = true; then
2390        ac_must_keep_next=false # Got value, back to normal.
2391      else
2392        case $ac_arg in
2393          *=* | --config-cache | -C | -disable-* | --disable-* \
2394          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396          | -with-* | --with-* | -without-* | --without-* | --x)
2397            case "$ac_configure_args0 " in
2398              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399            esac
2400            ;;
2401          -* ) ac_must_keep_next=true ;;
2402        esac
2403      fi
2404      as_fn_append ac_configure_args " '$ac_arg'"
2405      ;;
2406    esac
2407  done
2408done
2409{ ac_configure_args0=; unset ac_configure_args0;}
2410{ ac_configure_args1=; unset ac_configure_args1;}
2411
2412# When interrupted or exit'd, cleanup temporary files, and complete
2413# config.log.  We remove comments because anyway the quotes in there
2414# would cause problems or look ugly.
2415# WARNING: Use '\'' to represent an apostrophe within the trap.
2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417trap 'exit_status=$?
2418  # Save into config.log some information that might help in debugging.
2419  {
2420    echo
2421
2422    $as_echo "## ---------------- ##
2423## Cache variables. ##
2424## ---------------- ##"
2425    echo
2426    # The following way of writing the cache mishandles newlines in values,
2427(
2428  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429    eval ac_val=\$$ac_var
2430    case $ac_val in #(
2431    *${as_nl}*)
2432      case $ac_var in #(
2433      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435      esac
2436      case $ac_var in #(
2437      _ | IFS | as_nl) ;; #(
2438      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439      *) { eval $ac_var=; unset $ac_var;} ;;
2440      esac ;;
2441    esac
2442  done
2443  (set) 2>&1 |
2444    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445    *${as_nl}ac_space=\ *)
2446      sed -n \
2447        "s/'\''/'\''\\\\'\'''\''/g;
2448          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449      ;; #(
2450    *)
2451      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452      ;;
2453    esac |
2454    sort
2455)
2456    echo
2457
2458    $as_echo "## ----------------- ##
2459## Output variables. ##
2460## ----------------- ##"
2461    echo
2462    for ac_var in $ac_subst_vars
2463    do
2464      eval ac_val=\$$ac_var
2465      case $ac_val in
2466      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467      esac
2468      $as_echo "$ac_var='\''$ac_val'\''"
2469    done | sort
2470    echo
2471
2472    if test -n "$ac_subst_files"; then
2473      $as_echo "## ------------------- ##
2474## File substitutions. ##
2475## ------------------- ##"
2476      echo
2477      for ac_var in $ac_subst_files
2478      do
2479        eval ac_val=\$$ac_var
2480        case $ac_val in
2481        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482        esac
2483        $as_echo "$ac_var='\''$ac_val'\''"
2484      done | sort
2485      echo
2486    fi
2487
2488    if test -s confdefs.h; then
2489      $as_echo "## ----------- ##
2490## confdefs.h. ##
2491## ----------- ##"
2492      echo
2493      cat confdefs.h
2494      echo
2495    fi
2496    test "$ac_signal" != 0 &&
2497      $as_echo "$as_me: caught signal $ac_signal"
2498    $as_echo "$as_me: exit $exit_status"
2499  } >&5
2500  rm -f core *.core core.conftest.* &&
2501    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502    exit $exit_status
2503' 0
2504for ac_signal in 1 2 13 15; do
2505  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506done
2507ac_signal=0
2508
2509# confdefs.h avoids OS command line length limits that DEFS can exceed.
2510rm -f -r conftest* confdefs.h
2511
2512$as_echo "/* confdefs.h */" > confdefs.h
2513
2514# Predefined preprocessor variables.
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_NAME "$PACKAGE_NAME"
2518_ACEOF
2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522_ACEOF
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_VERSION "$PACKAGE_VERSION"
2526_ACEOF
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_STRING "$PACKAGE_STRING"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_URL "$PACKAGE_URL"
2538_ACEOF
2539
2540
2541# Let the site file select an alternate cache file if it wants to.
2542# Prefer an explicitly selected file to automatically selected ones.
2543ac_site_file1=NONE
2544ac_site_file2=NONE
2545if test -n "$CONFIG_SITE"; then
2546  # We do not want a PATH search for config.site.
2547  case $CONFIG_SITE in #((
2548    -*)  ac_site_file1=./$CONFIG_SITE;;
2549    */*) ac_site_file1=$CONFIG_SITE;;
2550    *)   ac_site_file1=./$CONFIG_SITE;;
2551  esac
2552elif test "x$prefix" != xNONE; then
2553  ac_site_file1=$prefix/share/config.site
2554  ac_site_file2=$prefix/etc/config.site
2555else
2556  ac_site_file1=$ac_default_prefix/share/config.site
2557  ac_site_file2=$ac_default_prefix/etc/config.site
2558fi
2559for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560do
2561  test "x$ac_site_file" = xNONE && continue
2562  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565    sed 's/^/| /' "$ac_site_file" >&5
2566    . "$ac_site_file" \
2567      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569as_fn_error $? "failed to load site script $ac_site_file
2570See \`config.log' for more details" "$LINENO" 5; }
2571  fi
2572done
2573
2574if test -r "$cache_file"; then
2575  # Some versions of bash will fail to source /dev/null (special files
2576  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2577  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579$as_echo "$as_me: loading cache $cache_file" >&6;}
2580    case $cache_file in
2581      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582      *)                      . "./$cache_file";;
2583    esac
2584  fi
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587$as_echo "$as_me: creating cache $cache_file" >&6;}
2588  >$cache_file
2589fi
2590
2591# Check that the precious variables saved in the cache have kept the same
2592# value.
2593ac_cache_corrupted=false
2594for ac_var in $ac_precious_vars; do
2595  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596  eval ac_new_set=\$ac_env_${ac_var}_set
2597  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598  eval ac_new_val=\$ac_env_${ac_var}_value
2599  case $ac_old_set,$ac_new_set in
2600    set,)
2601      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603      ac_cache_corrupted=: ;;
2604    ,set)
2605      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607      ac_cache_corrupted=: ;;
2608    ,);;
2609    *)
2610      if test "x$ac_old_val" != "x$ac_new_val"; then
2611        # differences in whitespace do not lead to failure.
2612        ac_old_val_w=`echo x $ac_old_val`
2613        ac_new_val_w=`echo x $ac_new_val`
2614        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617          ac_cache_corrupted=:
2618        else
2619          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621          eval $ac_var=\$ac_old_val
2622        fi
2623        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2624$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2625        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2626$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2627      fi;;
2628  esac
2629  # Pass precious variables to config.status.
2630  if test "$ac_new_set" = set; then
2631    case $ac_new_val in
2632    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633    *) ac_arg=$ac_var=$ac_new_val ;;
2634    esac
2635    case " $ac_configure_args " in
2636      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2637      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638    esac
2639  fi
2640done
2641if $ac_cache_corrupted; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647fi
2648## -------------------- ##
2649## Main body of script. ##
2650## -------------------- ##
2651
2652ac_ext=c
2653ac_cpp='$CPP $CPPFLAGS'
2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659ac_aux_dir=
2660for ac_dir in cf "$srcdir"/cf; do
2661  if test -f "$ac_dir/install-sh"; then
2662    ac_aux_dir=$ac_dir
2663    ac_install_sh="$ac_aux_dir/install-sh -c"
2664    break
2665  elif test -f "$ac_dir/install.sh"; then
2666    ac_aux_dir=$ac_dir
2667    ac_install_sh="$ac_aux_dir/install.sh -c"
2668    break
2669  elif test -f "$ac_dir/shtool"; then
2670    ac_aux_dir=$ac_dir
2671    ac_install_sh="$ac_aux_dir/shtool install -c"
2672    break
2673  fi
2674done
2675if test -z "$ac_aux_dir"; then
2676  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2677fi
2678
2679# These three variables are undocumented and unsupported,
2680# and are intended to be withdrawn in a future Autoconf release.
2681# They can cause serious problems if a builder's source tree is in a directory
2682# whose full name contains unusual characters.
2683ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2684ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2685ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2686
2687
2688ac_config_headers="$ac_config_headers config.h"
2689
2690
2691# Find a good install program.  We prefer a C program (faster),
2692# so one script is as good as another.  But avoid the broken or
2693# incompatible versions:
2694# SysV /etc/install, /usr/sbin/install
2695# SunOS /usr/etc/install
2696# IRIX /sbin/install
2697# AIX /bin/install
2698# AmigaOS /C/install, which installs bootblocks on floppy discs
2699# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2700# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2701# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2702# OS/2's system install, which has a completely different semantic
2703# ./install, which can be erroneously created by make from ./install.sh.
2704# Reject install programs that cannot install multiple files.
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2706$as_echo_n "checking for a BSD-compatible install... " >&6; }
2707if test -z "$INSTALL"; then
2708if ${ac_cv_path_install+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  test -z "$as_dir" && as_dir=.
2716    # Account for people who put trailing slashes in PATH elements.
2717case $as_dir/ in #((
2718  ./ | .// | /[cC]/* | \
2719  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2720  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2721  /usr/ucb/* ) ;;
2722  *)
2723    # OSF1 and SCO ODT 3.0 have their own names for install.
2724    # Don't use installbsd from OSF since it installs stuff as root
2725    # by default.
2726    for ac_prog in ginstall scoinst install; do
2727      for ac_exec_ext in '' $ac_executable_extensions; do
2728        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2729          if test $ac_prog = install &&
2730            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731            # AIX install.  It has an incompatible calling convention.
2732            :
2733          elif test $ac_prog = install &&
2734            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735            # program-specific install script used by HP pwplus--don't use.
2736            :
2737          else
2738            rm -rf conftest.one conftest.two conftest.dir
2739            echo one > conftest.one
2740            echo two > conftest.two
2741            mkdir conftest.dir
2742            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2743              test -s conftest.one && test -s conftest.two &&
2744              test -s conftest.dir/conftest.one &&
2745              test -s conftest.dir/conftest.two
2746            then
2747              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2748              break 3
2749            fi
2750          fi
2751        fi
2752      done
2753    done
2754    ;;
2755esac
2756
2757  done
2758IFS=$as_save_IFS
2759
2760rm -rf conftest.one conftest.two conftest.dir
2761
2762fi
2763  if test "${ac_cv_path_install+set}" = set; then
2764    INSTALL=$ac_cv_path_install
2765  else
2766    # As a last resort, use the slow shell script.  Don't cache a
2767    # value for INSTALL within a source directory, because that will
2768    # break other packages using the cache if that directory is
2769    # removed, or if the value is a relative name.
2770    INSTALL=$ac_install_sh
2771  fi
2772fi
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2774$as_echo "$INSTALL" >&6; }
2775
2776# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2777# It thinks the first close brace ends the variable substitution.
2778test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2779
2780test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2781
2782test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2783
2784if test -n "$ac_tool_prefix"; then
2785  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if ${ac_cv_prog_RANLIB+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$RANLIB"; then
2793  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812RANLIB=$ac_cv_prog_RANLIB
2813if test -n "$RANLIB"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2815$as_echo "$RANLIB" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822fi
2823if test -z "$ac_cv_prog_RANLIB"; then
2824  ac_ct_RANLIB=$RANLIB
2825  # Extract the first word of "ranlib", so it can be a program name with args.
2826set dummy ranlib; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$ac_ct_RANLIB"; then
2833  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842    ac_cv_prog_ac_ct_RANLIB="ranlib"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2853if test -n "$ac_ct_RANLIB"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2855$as_echo "$ac_ct_RANLIB" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861  if test "x$ac_ct_RANLIB" = x; then
2862    RANLIB=":"
2863  else
2864    case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870    RANLIB=$ac_ct_RANLIB
2871  fi
2872else
2873  RANLIB="$ac_cv_prog_RANLIB"
2874fi
2875
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2877$as_echo_n "checking whether ln -s works... " >&6; }
2878LN_S=$as_ln_s
2879if test "$LN_S" = "ln -s"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2884$as_echo "no, using $LN_S" >&6; }
2885fi
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2888$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2889if test -z "$MKDIR_P"; then
2890  if ${ac_cv_path_mkdir+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898    for ac_prog in mkdir gmkdir; do
2899         for ac_exec_ext in '' $ac_executable_extensions; do
2900           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2901           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2902             'mkdir (GNU coreutils) '* | \
2903             'mkdir (coreutils) '* | \
2904             'mkdir (fileutils) '4.1*)
2905               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2906               break 3;;
2907           esac
2908         done
2909       done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914
2915  test -d ./--version && rmdir ./--version
2916  if test "${ac_cv_path_mkdir+set}" = set; then
2917    MKDIR_P="$ac_cv_path_mkdir -p"
2918  else
2919    # As a last resort, use the slow shell script.  Don't cache a
2920    # value for MKDIR_P within a source directory, because that will
2921    # break other packages using the cache if that directory is
2922    # removed, or if the value is a relative name.
2923    MKDIR_P="$ac_install_sh -d"
2924  fi
2925fi
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2927$as_echo "$MKDIR_P" >&6; }
2928
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2931set x ${MAKE-make}
2932ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  cat >conftest.make <<\_ACEOF
2937SHELL = /bin/sh
2938all:
2939        @echo '@@@%%%=$(MAKE)=@@@%%%'
2940_ACEOF
2941# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2942case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943  *@@@%%%=?*=@@@%%%*)
2944    eval ac_cv_prog_make_${ac_make}_set=yes;;
2945  *)
2946    eval ac_cv_prog_make_${ac_make}_set=no;;
2947esac
2948rm -f conftest.make
2949fi
2950if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952$as_echo "yes" >&6; }
2953  SET_MAKE=
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957  SET_MAKE="MAKE=${MAKE-make}"
2958fi
2959
2960
2961# Check for C, C++, and FORTRAN
2962ac_ext=c
2963ac_cpp='$CPP $CPPFLAGS'
2964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967if test -n "$ac_tool_prefix"; then
2968  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_CC+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$CC"; then
2976  ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998$as_echo "$CC" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004
3005fi
3006if test -z "$ac_cv_prog_CC"; then
3007  ac_ct_CC=$CC
3008  # Extract the first word of "gcc", so it can be a program name with args.
3009set dummy gcc; ac_word=$2
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011$as_echo_n "checking for $ac_word... " >&6; }
3012if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013  $as_echo_n "(cached) " >&6
3014else
3015  if test -n "$ac_ct_CC"; then
3016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  test -z "$as_dir" && as_dir=.
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_ac_ct_CC="gcc"
3026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi
3034fi
3035ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036if test -n "$ac_ct_CC"; then
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038$as_echo "$ac_ct_CC" >&6; }
3039else
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041$as_echo "no" >&6; }
3042fi
3043
3044  if test "x$ac_ct_CC" = x; then
3045    CC=""
3046  else
3047    case $cross_compiling:$ac_tool_warned in
3048yes:)
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051ac_tool_warned=yes ;;
3052esac
3053    CC=$ac_ct_CC
3054  fi
3055else
3056  CC="$ac_cv_prog_CC"
3057fi
3058
3059if test -z "$CC"; then
3060          if test -n "$ac_tool_prefix"; then
3061    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}cc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="${ac_tool_prefix}cc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098  fi
3099fi
3100if test -z "$CC"; then
3101  # Extract the first word of "cc", so it can be a program name with args.
3102set dummy cc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111  ac_prog_rejected=no
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120       ac_prog_rejected=yes
3121       continue
3122     fi
3123    ac_cv_prog_CC="cc"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131if test $ac_prog_rejected = yes; then
3132  # We found a bogon in the path, so make sure we never use it.
3133  set dummy $ac_cv_prog_CC
3134  shift
3135  if test $# != 0; then
3136    # We chose a different compiler from the bogus one.
3137    # However, it has the same basename, so the bogon will be chosen
3138    # first if we set CC to just the basename; use the full file name.
3139    shift
3140    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141  fi
3142fi
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155fi
3156if test -z "$CC"; then
3157  if test -n "$ac_tool_prefix"; then
3158  for ac_prog in cl.exe
3159  do
3160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
3164if ${ac_cv_prog_CC+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  if test -n "$CC"; then
3168  ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175    for ac_exec_ext in '' $ac_executable_extensions; do
3176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182  done
3183IFS=$as_save_IFS
3184
3185fi
3186fi
3187CC=$ac_cv_prog_CC
3188if test -n "$CC"; then
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190$as_echo "$CC" >&6; }
3191else
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
3194fi
3195
3196
3197    test -n "$CC" && break
3198  done
3199fi
3200if test -z "$CC"; then
3201  ac_ct_CC=$CC
3202  for ac_prog in cl.exe
3203do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205set dummy $ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$ac_ct_CC"; then
3212  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221    ac_cv_prog_ac_ct_CC="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232if test -n "$ac_ct_CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234$as_echo "$ac_ct_CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241  test -n "$ac_ct_CC" && break
3242done
3243
3244  if test "x$ac_ct_CC" = x; then
3245    CC=""
3246  else
3247    case $cross_compiling:$ac_tool_warned in
3248yes:)
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251ac_tool_warned=yes ;;
3252esac
3253    CC=$ac_ct_CC
3254  fi
3255fi
3256
3257fi
3258
3259
3260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "no acceptable C compiler found in \$PATH
3263See \`config.log' for more details" "$LINENO" 5; }
3264
3265# Provide some information about the compiler.
3266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3267set X $ac_compile
3268ac_compiler=$2
3269for ac_option in --version -v -V -qversion; do
3270  { { ac_try="$ac_compiler $ac_option >&5"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278  ac_status=$?
3279  if test -s conftest.err; then
3280    sed '10a\
3281... rest of stderr output deleted ...
3282         10q' conftest.err >conftest.er1
3283    cat conftest.er1 >&5
3284  fi
3285  rm -f conftest.er1 conftest.err
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }
3288done
3289
3290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292
3293int
3294main ()
3295{
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301ac_clean_files_save=$ac_clean_files
3302ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303# Try to create an executable without -o first, disregard a.out.
3304# It will help us diagnose broken compilers, and finding out an intuition
3305# of exeext.
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307$as_echo_n "checking whether the C compiler works... " >&6; }
3308ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310# The possible output files:
3311ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
3313ac_rmfiles=
3314for ac_file in $ac_files
3315do
3316  case $ac_file in
3317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319  esac
3320done
3321rm -f $ac_rmfiles
3322
3323if { { ac_try="$ac_link_default"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330  (eval "$ac_link_default") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }; then :
3334  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3337# so that the user can short-circuit this test for compilers unknown to
3338# Autoconf.
3339for ac_file in $ac_files ''
3340do
3341  test -f "$ac_file" || continue
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344        ;;
3345    [ab].out )
3346        # We found the default executable, but exeext='' is most
3347        # certainly right.
3348        break;;
3349    *.* )
3350        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351        then :; else
3352           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353        fi
3354        # We set ac_cv_exeext here because the later test for it is not
3355        # safe: cross compilers may not add the suffix if given an `-o'
3356        # argument, so we may need to know it at that point already.
3357        # Even if this section looks crufty: it has the advantage of
3358        # actually working.
3359        break;;
3360    * )
3361        break;;
3362  esac
3363done
3364test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366else
3367  ac_file=''
3368fi
3369if test -z "$ac_file"; then :
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372$as_echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377as_fn_error 77 "C compiler cannot create executables
3378See \`config.log' for more details" "$LINENO" 5; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381$as_echo "yes" >&6; }
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384$as_echo_n "checking for C compiler default output file name... " >&6; }
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386$as_echo "$ac_file" >&6; }
3387ac_exeext=$ac_cv_exeext
3388
3389rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390ac_clean_files=$ac_clean_files_save
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392$as_echo_n "checking for suffix of executables... " >&6; }
3393if { { ac_try="$ac_link"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_link") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }; then :
3404  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3406# work properly (i.e., refer to `conftest.exe'), while it won't with
3407# `rm'.
3408for ac_file in conftest.exe conftest conftest.*; do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413          break;;
3414    * ) break;;
3415  esac
3416done
3417else
3418  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421See \`config.log' for more details" "$LINENO" 5; }
3422fi
3423rm -f conftest conftest$ac_cv_exeext
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425$as_echo "$ac_cv_exeext" >&6; }
3426
3427rm -f conftest.$ac_ext
3428EXEEXT=$ac_cv_exeext
3429ac_exeext=$EXEEXT
3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#include <stdio.h>
3433int
3434main ()
3435{
3436FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443ac_clean_files="$ac_clean_files conftest.out"
3444# Check that the compiler produces executables we can run.  If not, either
3445# the compiler is broken, or we cross compile.
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447$as_echo_n "checking whether we are cross compiling... " >&6; }
3448if test "$cross_compiling" != yes; then
3449  { { ac_try="$ac_link"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
3456  (eval "$ac_link") 2>&5
3457  ac_status=$?
3458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459  test $ac_status = 0; }
3460  if { ac_try='./conftest$ac_cv_exeext'
3461  { { case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467  (eval "$ac_try") 2>&5
3468  ac_status=$?
3469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470  test $ac_status = 0; }; }; then
3471    cross_compiling=no
3472  else
3473    if test "$cross_compiling" = maybe; then
3474        cross_compiling=yes
3475    else
3476        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478as_fn_error $? "cannot run C compiled programs.
3479If you meant to cross compile, use \`--host'.
3480See \`config.log' for more details" "$LINENO" 5; }
3481    fi
3482  fi
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485$as_echo "$cross_compiling" >&6; }
3486
3487rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488ac_clean_files=$ac_clean_files_save
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490$as_echo_n "checking for suffix of object files... " >&6; }
3491if ${ac_cv_objext+:} false; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505rm -f conftest.o conftest.obj
3506if { { ac_try="$ac_compile"
3507case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_compile") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }; then :
3517  for ac_file in conftest.o conftest.obj conftest.*; do
3518  test -f "$ac_file" || continue;
3519  case $ac_file in
3520    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522       break;;
3523  esac
3524done
3525else
3526  $as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "cannot compute suffix of object files: cannot compile
3532See \`config.log' for more details" "$LINENO" 5; }
3533fi
3534rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537$as_echo "$ac_cv_objext" >&6; }
3538OBJEXT=$ac_cv_objext
3539ac_objext=$OBJEXT
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542if ${ac_cv_c_compiler_gnu+:} false; then :
3543  $as_echo_n "(cached) " >&6
3544else
3545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551#ifndef __GNUC__
3552       choke me
3553#endif
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559if ac_fn_c_try_compile "$LINENO"; then :
3560  ac_compiler_gnu=yes
3561else
3562  ac_compiler_gnu=no
3563fi
3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570if test $ac_compiler_gnu = yes; then
3571  GCC=yes
3572else
3573  GCC=
3574fi
3575ac_test_CFLAGS=${CFLAGS+set}
3576ac_save_CFLAGS=$CFLAGS
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578$as_echo_n "checking whether $CC accepts -g... " >&6; }
3579if ${ac_cv_prog_cc_g+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  ac_save_c_werror_flag=$ac_c_werror_flag
3583   ac_c_werror_flag=yes
3584   ac_cv_prog_cc_g=no
3585   CFLAGS="-g"
3586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598  ac_cv_prog_cc_g=yes
3599else
3600  CFLAGS=""
3601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613
3614else
3615  ac_c_werror_flag=$ac_save_c_werror_flag
3616         CFLAGS="-g"
3617         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h.  */
3619
3620int
3621main ()
3622{
3623
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628if ac_fn_c_try_compile "$LINENO"; then :
3629  ac_cv_prog_cc_g=yes
3630fi
3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636   ac_c_werror_flag=$ac_save_c_werror_flag
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639$as_echo "$ac_cv_prog_cc_g" >&6; }
3640if test "$ac_test_CFLAGS" = set; then
3641  CFLAGS=$ac_save_CFLAGS
3642elif test $ac_cv_prog_cc_g = yes; then
3643  if test "$GCC" = yes; then
3644    CFLAGS="-g -O2"
3645  else
3646    CFLAGS="-g"
3647  fi
3648else
3649  if test "$GCC" = yes; then
3650    CFLAGS="-O2"
3651  else
3652    CFLAGS=
3653  fi
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657if ${ac_cv_prog_cc_c89+:} false; then :
3658  $as_echo_n "(cached) " >&6
3659else
3660  ac_cv_prog_cc_c89=no
3661ac_save_CC=$CC
3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664#include <stdarg.h>
3665#include <stdio.h>
3666struct stat;
3667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3668struct buf { int x; };
3669FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670static char *e (p, i)
3671     char **p;
3672     int i;
3673{
3674  return p[i];
3675}
3676static char *f (char * (*g) (char **, int), char **p, ...)
3677{
3678  char *s;
3679  va_list v;
3680  va_start (v,p);
3681  s = g (p, va_arg (v,int));
3682  va_end (v);
3683  return s;
3684}
3685
3686/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3687   function prototypes and stuff, but not '\xHH' hex character constants.
3688   These don't provoke an error unfortunately, instead are silently treated
3689   as 'x'.  The following induces an error, until -std is added to get
3690   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3691   array size at least.  It's necessary to write '\x00'==0 to get something
3692   that's true only with -std.  */
3693int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
3695/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696   inside strings and character constants.  */
3697#define FOO(x) 'x'
3698int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
3700int test (int i, double x);
3701struct s1 {int (*f) (int a);};
3702struct s2 {int (*f) (double a);};
3703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704int argc;
3705char **argv;
3706int
3707main ()
3708{
3709return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716do
3717  CC="$ac_save_CC $ac_arg"
3718  if ac_fn_c_try_compile "$LINENO"; then :
3719  ac_cv_prog_cc_c89=$ac_arg
3720fi
3721rm -f core conftest.err conftest.$ac_objext
3722  test "x$ac_cv_prog_cc_c89" != "xno" && break
3723done
3724rm -f conftest.$ac_ext
3725CC=$ac_save_CC
3726
3727fi
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c89" in
3730  x)
3731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732$as_echo "none needed" >&6; } ;;
3733  xno)
3734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735$as_echo "unsupported" >&6; } ;;
3736  *)
3737    CC="$CC $ac_cv_prog_cc_c89"
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740esac
3741if test "x$ac_cv_prog_cc_c89" != xno; then :
3742
3743fi
3744
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
3751ac_ext=cpp
3752ac_cpp='$CXXCPP $CPPFLAGS'
3753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3756if test -z "$CXX"; then
3757  if test -n "$CCC"; then
3758    CXX=$CCC
3759  else
3760    if test -n "$ac_tool_prefix"; then
3761  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3762  do
3763    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766$as_echo_n "checking for $ac_word... " >&6; }
3767if ${ac_cv_prog_CXX+:} false; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  if test -n "$CXX"; then
3771  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
3775do
3776  IFS=$as_save_IFS
3777  test -z "$as_dir" && as_dir=.
3778    for ac_exec_ext in '' $ac_executable_extensions; do
3779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782    break 2
3783  fi
3784done
3785  done
3786IFS=$as_save_IFS
3787
3788fi
3789fi
3790CXX=$ac_cv_prog_CXX
3791if test -n "$CXX"; then
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3793$as_echo "$CXX" >&6; }
3794else
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797fi
3798
3799
3800    test -n "$CXX" && break
3801  done
3802fi
3803if test -z "$CXX"; then
3804  ac_ct_CXX=$CXX
3805  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3806do
3807  # Extract the first word of "$ac_prog", so it can be a program name with args.
3808set dummy $ac_prog; ac_word=$2
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810$as_echo_n "checking for $ac_word... " >&6; }
3811if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  if test -n "$ac_ct_CXX"; then
3815  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820  IFS=$as_save_IFS
3821  test -z "$as_dir" && as_dir=.
3822    for ac_exec_ext in '' $ac_executable_extensions; do
3823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824    ac_cv_prog_ac_ct_CXX="$ac_prog"
3825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826    break 2
3827  fi
3828done
3829  done
3830IFS=$as_save_IFS
3831
3832fi
3833fi
3834ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3835if test -n "$ac_ct_CXX"; then
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3837$as_echo "$ac_ct_CXX" >&6; }
3838else
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
3841fi
3842
3843
3844  test -n "$ac_ct_CXX" && break
3845done
3846
3847  if test "x$ac_ct_CXX" = x; then
3848    CXX="g++"
3849  else
3850    case $cross_compiling:$ac_tool_warned in
3851yes:)
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3854ac_tool_warned=yes ;;
3855esac
3856    CXX=$ac_ct_CXX
3857  fi
3858fi
3859
3860  fi
3861fi
3862# Provide some information about the compiler.
3863$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3864set X $ac_compile
3865ac_compiler=$2
3866for ac_option in --version -v -V -qversion; do
3867  { { ac_try="$ac_compiler $ac_option >&5"
3868case "(($ac_try" in
3869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870  *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873$as_echo "$ac_try_echo"; } >&5
3874  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3875  ac_status=$?
3876  if test -s conftest.err; then
3877    sed '10a\
3878... rest of stderr output deleted ...
3879         10q' conftest.err >conftest.er1
3880    cat conftest.er1 >&5
3881  fi
3882  rm -f conftest.er1 conftest.err
3883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885done
3886
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3888$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3889if ${ac_cv_cxx_compiler_gnu+:} false; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894
3895int
3896main ()
3897{
3898#ifndef __GNUC__
3899       choke me
3900#endif
3901
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906if ac_fn_cxx_try_compile "$LINENO"; then :
3907  ac_compiler_gnu=yes
3908else
3909  ac_compiler_gnu=no
3910fi
3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3913
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3916$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3917if test $ac_compiler_gnu = yes; then
3918  GXX=yes
3919else
3920  GXX=
3921fi
3922ac_test_CXXFLAGS=${CXXFLAGS+set}
3923ac_save_CXXFLAGS=$CXXFLAGS
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3925$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3926if ${ac_cv_prog_cxx_g+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3930   ac_cxx_werror_flag=yes
3931   ac_cv_prog_cxx_g=no
3932   CXXFLAGS="-g"
3933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935
3936int
3937main ()
3938{
3939
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944if ac_fn_cxx_try_compile "$LINENO"; then :
3945  ac_cv_prog_cxx_g=yes
3946else
3947  CXXFLAGS=""
3948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951int
3952main ()
3953{
3954
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959if ac_fn_cxx_try_compile "$LINENO"; then :
3960
3961else
3962  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3963         CXXFLAGS="-g"
3964         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966
3967int
3968main ()
3969{
3970
3971  ;
3972  return 0;
3973}
3974_ACEOF
3975if ac_fn_cxx_try_compile "$LINENO"; then :
3976  ac_cv_prog_cxx_g=yes
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981fi
3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3986$as_echo "$ac_cv_prog_cxx_g" >&6; }
3987if test "$ac_test_CXXFLAGS" = set; then
3988  CXXFLAGS=$ac_save_CXXFLAGS
3989elif test $ac_cv_prog_cxx_g = yes; then
3990  if test "$GXX" = yes; then
3991    CXXFLAGS="-g -O2"
3992  else
3993    CXXFLAGS="-g"
3994  fi
3995else
3996  if test "$GXX" = yes; then
3997    CXXFLAGS="-O2"
3998  else
3999    CXXFLAGS=
4000  fi
4001fi
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008# Avoid g95
4009ac_ext=f
4010ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4011ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4013if test -n "$ac_tool_prefix"; then
4014  for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
4015  do
4016    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
4020if ${ac_cv_prog_F77+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  if test -n "$F77"; then
4024  ac_cv_prog_F77="$F77" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043F77=$ac_cv_prog_F77
4044if test -n "$F77"; then
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4046$as_echo "$F77" >&6; }
4047else
4048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
4050fi
4051
4052
4053    test -n "$F77" && break
4054  done
4055fi
4056if test -z "$F77"; then
4057  ac_ct_F77=$F77
4058  for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
4059do
4060  # Extract the first word of "$ac_prog", so it can be a program name with args.
4061set dummy $ac_prog; ac_word=$2
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063$as_echo_n "checking for $ac_word... " >&6; }
4064if ${ac_cv_prog_ac_ct_F77+:} false; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  if test -n "$ac_ct_F77"; then
4068  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077    ac_cv_prog_ac_ct_F77="$ac_prog"
4078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082  done
4083IFS=$as_save_IFS
4084
4085fi
4086fi
4087ac_ct_F77=$ac_cv_prog_ac_ct_F77
4088if test -n "$ac_ct_F77"; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4090$as_echo "$ac_ct_F77" >&6; }
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096
4097  test -n "$ac_ct_F77" && break
4098done
4099
4100  if test "x$ac_ct_F77" = x; then
4101    F77=""
4102  else
4103    case $cross_compiling:$ac_tool_warned in
4104yes:)
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4107ac_tool_warned=yes ;;
4108esac
4109    F77=$ac_ct_F77
4110  fi
4111fi
4112
4113
4114# Provide some information about the compiler.
4115$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4116set X $ac_compile
4117ac_compiler=$2
4118for ac_option in --version -v -V -qversion; do
4119  { { ac_try="$ac_compiler $ac_option >&5"
4120case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4127  ac_status=$?
4128  if test -s conftest.err; then
4129    sed '10a\
4130... rest of stderr output deleted ...
4131         10q' conftest.err >conftest.er1
4132    cat conftest.er1 >&5
4133  fi
4134  rm -f conftest.er1 conftest.err
4135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136  test $ac_status = 0; }
4137done
4138rm -f a.out
4139
4140# If we don't use `.F' as extension, the preprocessor is not run on the
4141# input file.  (Note that this only needs to work for GNU compilers.)
4142ac_save_ext=$ac_ext
4143ac_ext=F
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4145$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4146if ${ac_cv_f77_compiler_gnu+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  cat > conftest.$ac_ext <<_ACEOF
4150      program main
4151#ifndef __GNUC__
4152       choke me
4153#endif
4154
4155      end
4156_ACEOF
4157if ac_fn_f77_try_compile "$LINENO"; then :
4158  ac_compiler_gnu=yes
4159else
4160  ac_compiler_gnu=no
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4164
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4167$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4168ac_ext=$ac_save_ext
4169ac_test_FFLAGS=${FFLAGS+set}
4170ac_save_FFLAGS=$FFLAGS
4171FFLAGS=
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4173$as_echo_n "checking whether $F77 accepts -g... " >&6; }
4174if ${ac_cv_prog_f77_g+:} false; then :
4175  $as_echo_n "(cached) " >&6
4176else
4177  FFLAGS=-g
4178cat > conftest.$ac_ext <<_ACEOF
4179      program main
4180
4181      end
4182_ACEOF
4183if ac_fn_f77_try_compile "$LINENO"; then :
4184  ac_cv_prog_f77_g=yes
4185else
4186  ac_cv_prog_f77_g=no
4187fi
4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4192$as_echo "$ac_cv_prog_f77_g" >&6; }
4193if test "$ac_test_FFLAGS" = set; then
4194  FFLAGS=$ac_save_FFLAGS
4195elif test $ac_cv_prog_f77_g = yes; then
4196  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4197    FFLAGS="-g -O2"
4198  else
4199    FFLAGS="-g"
4200  fi
4201else
4202  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4203    FFLAGS="-O2"
4204  else
4205    FFLAGS=
4206  fi
4207fi
4208
4209if test $ac_compiler_gnu = yes; then
4210  G77=yes
4211else
4212  G77=
4213fi
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
4221ac_ext=c
4222ac_cpp='$CPP $CPPFLAGS'
4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227
4228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4235$as_echo_n "checking how to run the C preprocessor... " >&6; }
4236# On Suns, sometimes $CPP names a directory.
4237if test -n "$CPP" && test -d "$CPP"; then
4238  CPP=
4239fi
4240if test -z "$CPP"; then
4241  if ${ac_cv_prog_CPP+:} false; then :
4242  $as_echo_n "(cached) " >&6
4243else
4244      # Double quotes because CPP needs to be expanded
4245    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4246    do
4247      ac_preproc_ok=false
4248for ac_c_preproc_warn_flag in '' yes
4249do
4250  # Use a header file that comes with gcc, so configuring glibc
4251  # with a fresh cross-compiler works.
4252  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253  # <limits.h> exists even on freestanding compilers.
4254  # On the NeXT, cc -E runs the code through the compiler's parser,
4255  # not just through cpp. "Syntax error" is here to catch this case.
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#ifdef __STDC__
4259# include <limits.h>
4260#else
4261# include <assert.h>
4262#endif
4263                     Syntax error
4264_ACEOF
4265if ac_fn_c_try_cpp "$LINENO"; then :
4266
4267else
4268  # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.i conftest.$ac_ext
4272
4273  # OK, works on sane cases.  Now check whether nonexistent headers
4274  # can be detected and how.
4275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277#include <ac_nonexistent.h>
4278_ACEOF
4279if ac_fn_c_try_cpp "$LINENO"; then :
4280  # Broken: success on invalid input.
4281continue
4282else
4283  # Passes both tests.
4284ac_preproc_ok=:
4285break
4286fi
4287rm -f conftest.err conftest.i conftest.$ac_ext
4288
4289done
4290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4291rm -f conftest.i conftest.err conftest.$ac_ext
4292if $ac_preproc_ok; then :
4293  break
4294fi
4295
4296    done
4297    ac_cv_prog_CPP=$CPP
4298
4299fi
4300  CPP=$ac_cv_prog_CPP
4301else
4302  ac_cv_prog_CPP=$CPP
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4305$as_echo "$CPP" >&6; }
4306ac_preproc_ok=false
4307for ac_c_preproc_warn_flag in '' yes
4308do
4309  # Use a header file that comes with gcc, so configuring glibc
4310  # with a fresh cross-compiler works.
4311  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312  # <limits.h> exists even on freestanding compilers.
4313  # On the NeXT, cc -E runs the code through the compiler's parser,
4314  # not just through cpp. "Syntax error" is here to catch this case.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#ifdef __STDC__
4318# include <limits.h>
4319#else
4320# include <assert.h>
4321#endif
4322                     Syntax error
4323_ACEOF
4324if ac_fn_c_try_cpp "$LINENO"; then :
4325
4326else
4327  # Broken: fails on valid input.
4328continue
4329fi
4330rm -f conftest.err conftest.i conftest.$ac_ext
4331
4332  # OK, works on sane cases.  Now check whether nonexistent headers
4333  # can be detected and how.
4334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336#include <ac_nonexistent.h>
4337_ACEOF
4338if ac_fn_c_try_cpp "$LINENO"; then :
4339  # Broken: success on invalid input.
4340continue
4341else
4342  # Passes both tests.
4343ac_preproc_ok=:
4344break
4345fi
4346rm -f conftest.err conftest.i conftest.$ac_ext
4347
4348done
4349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350rm -f conftest.i conftest.err conftest.$ac_ext
4351if $ac_preproc_ok; then :
4352
4353else
4354  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4357See \`config.log' for more details" "$LINENO" 5; }
4358fi
4359
4360ac_ext=c
4361ac_cpp='$CPP $CPPFLAGS'
4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4368$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4369if ${ac_cv_path_GREP+:} false; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if test -z "$GREP"; then
4373  ac_path_GREP_found=false
4374  # Loop through the user's path and test for each of PROGNAME-LIST
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380    for ac_prog in grep ggrep; do
4381    for ac_exec_ext in '' $ac_executable_extensions; do
4382      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4383      as_fn_executable_p "$ac_path_GREP" || continue
4384# Check for GNU ac_path_GREP and select it if it is found.
4385  # Check for GNU $ac_path_GREP
4386case `"$ac_path_GREP" --version 2>&1` in
4387*GNU*)
4388  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4389*)
4390  ac_count=0
4391  $as_echo_n 0123456789 >"conftest.in"
4392  while :
4393  do
4394    cat "conftest.in" "conftest.in" >"conftest.tmp"
4395    mv "conftest.tmp" "conftest.in"
4396    cp "conftest.in" "conftest.nl"
4397    $as_echo 'GREP' >> "conftest.nl"
4398    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400    as_fn_arith $ac_count + 1 && ac_count=$as_val
4401    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4402      # Best one so far, save it but keep looking for a better one
4403      ac_cv_path_GREP="$ac_path_GREP"
4404      ac_path_GREP_max=$ac_count
4405    fi
4406    # 10*(2^10) chars as input seems more than enough
4407    test $ac_count -gt 10 && break
4408  done
4409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410esac
4411
4412      $ac_path_GREP_found && break 3
4413    done
4414  done
4415  done
4416IFS=$as_save_IFS
4417  if test -z "$ac_cv_path_GREP"; then
4418    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419  fi
4420else
4421  ac_cv_path_GREP=$GREP
4422fi
4423
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4426$as_echo "$ac_cv_path_GREP" >&6; }
4427 GREP="$ac_cv_path_GREP"
4428
4429
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4431$as_echo_n "checking for egrep... " >&6; }
4432if ${ac_cv_path_EGREP+:} false; then :
4433  $as_echo_n "(cached) " >&6
4434else
4435  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4436   then ac_cv_path_EGREP="$GREP -E"
4437   else
4438     if test -z "$EGREP"; then
4439  ac_path_EGREP_found=false
4440  # Loop through the user's path and test for each of PROGNAME-LIST
4441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443do
4444  IFS=$as_save_IFS
4445  test -z "$as_dir" && as_dir=.
4446    for ac_prog in egrep; do
4447    for ac_exec_ext in '' $ac_executable_extensions; do
4448      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4449      as_fn_executable_p "$ac_path_EGREP" || continue
4450# Check for GNU ac_path_EGREP and select it if it is found.
4451  # Check for GNU $ac_path_EGREP
4452case `"$ac_path_EGREP" --version 2>&1` in
4453*GNU*)
4454  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4455*)
4456  ac_count=0
4457  $as_echo_n 0123456789 >"conftest.in"
4458  while :
4459  do
4460    cat "conftest.in" "conftest.in" >"conftest.tmp"
4461    mv "conftest.tmp" "conftest.in"
4462    cp "conftest.in" "conftest.nl"
4463    $as_echo 'EGREP' >> "conftest.nl"
4464    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466    as_fn_arith $ac_count + 1 && ac_count=$as_val
4467    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4468      # Best one so far, save it but keep looking for a better one
4469      ac_cv_path_EGREP="$ac_path_EGREP"
4470      ac_path_EGREP_max=$ac_count
4471    fi
4472    # 10*(2^10) chars as input seems more than enough
4473    test $ac_count -gt 10 && break
4474  done
4475  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476esac
4477
4478      $ac_path_EGREP_found && break 3
4479    done
4480  done
4481  done
4482IFS=$as_save_IFS
4483  if test -z "$ac_cv_path_EGREP"; then
4484    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485  fi
4486else
4487  ac_cv_path_EGREP=$EGREP
4488fi
4489
4490   fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4493$as_echo "$ac_cv_path_EGREP" >&6; }
4494 EGREP="$ac_cv_path_EGREP"
4495
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4498$as_echo_n "checking for ANSI C header files... " >&6; }
4499if ${ac_cv_header_stdc+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504#include <stdlib.h>
4505#include <stdarg.h>
4506#include <string.h>
4507#include <float.h>
4508
4509int
4510main ()
4511{
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517if ac_fn_c_try_compile "$LINENO"; then :
4518  ac_cv_header_stdc=yes
4519else
4520  ac_cv_header_stdc=no
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523
4524if test $ac_cv_header_stdc = yes; then
4525  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528#include <string.h>
4529
4530_ACEOF
4531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532  $EGREP "memchr" >/dev/null 2>&1; then :
4533
4534else
4535  ac_cv_header_stdc=no
4536fi
4537rm -f conftest*
4538
4539fi
4540
4541if test $ac_cv_header_stdc = yes; then
4542  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545#include <stdlib.h>
4546
4547_ACEOF
4548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549  $EGREP "free" >/dev/null 2>&1; then :
4550
4551else
4552  ac_cv_header_stdc=no
4553fi
4554rm -f conftest*
4555
4556fi
4557
4558if test $ac_cv_header_stdc = yes; then
4559  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4560  if test "$cross_compiling" = yes; then :
4561  :
4562else
4563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h.  */
4565#include <ctype.h>
4566#include <stdlib.h>
4567#if ((' ' & 0x0FF) == 0x020)
4568# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4569# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570#else
4571# define ISLOWER(c) \
4572                   (('a' <= (c) && (c) <= 'i') \
4573                     || ('j' <= (c) && (c) <= 'r') \
4574                     || ('s' <= (c) && (c) <= 'z'))
4575# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4576#endif
4577
4578#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4579int
4580main ()
4581{
4582  int i;
4583  for (i = 0; i < 256; i++)
4584    if (XOR (islower (i), ISLOWER (i))
4585        || toupper (i) != TOUPPER (i))
4586      return 2;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_run "$LINENO"; then :
4591
4592else
4593  ac_cv_header_stdc=no
4594fi
4595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4596  conftest.$ac_objext conftest.beam conftest.$ac_ext
4597fi
4598
4599fi
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4602$as_echo "$ac_cv_header_stdc" >&6; }
4603if test $ac_cv_header_stdc = yes; then
4604
4605$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4606
4607fi
4608
4609ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
4610if test "x$ac_cv_func_atol" = xyes; then :
4611
4612else
4613  as_fn_error $? "oops! no atol ?!?" "$LINENO" 5
4614fi
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
4623
4624ac_ext=cpp
4625ac_cpp='$CXXCPP $CPPFLAGS'
4626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4630$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4631if test -z "$CXXCPP"; then
4632  if ${ac_cv_prog_CXXCPP+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635      # Double quotes because CXXCPP needs to be expanded
4636    for CXXCPP in "$CXX -E" "/lib/cpp"
4637    do
4638      ac_preproc_ok=false
4639for ac_cxx_preproc_warn_flag in '' yes
4640do
4641  # Use a header file that comes with gcc, so configuring glibc
4642  # with a fresh cross-compiler works.
4643  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644  # <limits.h> exists even on freestanding compilers.
4645  # On the NeXT, cc -E runs the code through the compiler's parser,
4646  # not just through cpp. "Syntax error" is here to catch this case.
4647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649#ifdef __STDC__
4650# include <limits.h>
4651#else
4652# include <assert.h>
4653#endif
4654                     Syntax error
4655_ACEOF
4656if ac_fn_cxx_try_cpp "$LINENO"; then :
4657
4658else
4659  # Broken: fails on valid input.
4660continue
4661fi
4662rm -f conftest.err conftest.i conftest.$ac_ext
4663
4664  # OK, works on sane cases.  Now check whether nonexistent headers
4665  # can be detected and how.
4666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h.  */
4668#include <ac_nonexistent.h>
4669_ACEOF
4670if ac_fn_cxx_try_cpp "$LINENO"; then :
4671  # Broken: success on invalid input.
4672continue
4673else
4674  # Passes both tests.
4675ac_preproc_ok=:
4676break
4677fi
4678rm -f conftest.err conftest.i conftest.$ac_ext
4679
4680done
4681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682rm -f conftest.i conftest.err conftest.$ac_ext
4683if $ac_preproc_ok; then :
4684  break
4685fi
4686
4687    done
4688    ac_cv_prog_CXXCPP=$CXXCPP
4689
4690fi
4691  CXXCPP=$ac_cv_prog_CXXCPP
4692else
4693  ac_cv_prog_CXXCPP=$CXXCPP
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4696$as_echo "$CXXCPP" >&6; }
4697ac_preproc_ok=false
4698for ac_cxx_preproc_warn_flag in '' yes
4699do
4700  # Use a header file that comes with gcc, so configuring glibc
4701  # with a fresh cross-compiler works.
4702  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703  # <limits.h> exists even on freestanding compilers.
4704  # On the NeXT, cc -E runs the code through the compiler's parser,
4705  # not just through cpp. "Syntax error" is here to catch this case.
4706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708#ifdef __STDC__
4709# include <limits.h>
4710#else
4711# include <assert.h>
4712#endif
4713                     Syntax error
4714_ACEOF
4715if ac_fn_cxx_try_cpp "$LINENO"; then :
4716
4717else
4718  # Broken: fails on valid input.
4719continue
4720fi
4721rm -f conftest.err conftest.i conftest.$ac_ext
4722
4723  # OK, works on sane cases.  Now check whether nonexistent headers
4724  # can be detected and how.
4725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727#include <ac_nonexistent.h>
4728_ACEOF
4729if ac_fn_cxx_try_cpp "$LINENO"; then :
4730  # Broken: success on invalid input.
4731continue
4732else
4733  # Passes both tests.
4734ac_preproc_ok=:
4735break
4736fi
4737rm -f conftest.err conftest.i conftest.$ac_ext
4738
4739done
4740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4741rm -f conftest.i conftest.err conftest.$ac_ext
4742if $ac_preproc_ok; then :
4743
4744else
4745  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4747as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4748See \`config.log' for more details" "$LINENO" 5; }
4749fi
4750
4751ac_ext=cpp
4752ac_cpp='$CXXCPP $CPPFLAGS'
4753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4759$as_echo_n "checking for X... " >&6; }
4760
4761
4762# Check whether --with-x was given.
4763if test "${with_x+set}" = set; then :
4764  withval=$with_x;
4765fi
4766
4767# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4768if test "x$with_x" = xno; then
4769  # The user explicitly disabled X.
4770  have_x=disabled
4771else
4772  case $x_includes,$x_libraries in #(
4773    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4774    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  # One or both of the vars are not set, and there is no cached value.
4778ac_x_includes=no ac_x_libraries=no
4779rm -f -r conftest.dir
4780if mkdir conftest.dir; then
4781  cd conftest.dir
4782  cat >Imakefile <<'_ACEOF'
4783incroot:
4784        @echo incroot='${INCROOT}'
4785usrlibdir:
4786        @echo usrlibdir='${USRLIBDIR}'
4787libdir:
4788        @echo libdir='${LIBDIR}'
4789_ACEOF
4790  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4791    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4792    for ac_var in incroot usrlibdir libdir; do
4793      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4794    done
4795    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4796    for ac_extension in a so sl dylib la dll; do
4797      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4798         test -f "$ac_im_libdir/libX11.$ac_extension"; then
4799        ac_im_usrlibdir=$ac_im_libdir; break
4800      fi
4801    done
4802    # Screen out bogus values from the imake configuration.  They are
4803    # bogus both because they are the default anyway, and because
4804    # using them would break gcc on systems where it needs fixed includes.
4805    case $ac_im_incroot in
4806        /usr/include) ac_x_includes= ;;
4807        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4808    esac
4809    case $ac_im_usrlibdir in
4810        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4811        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4812    esac
4813  fi
4814  cd ..
4815  rm -f -r conftest.dir
4816fi
4817
4818# Standard set of common directories for X headers.
4819# Check X11 before X11Rn because it is often a symlink to the current release.
4820ac_x_header_dirs='
4821/usr/X11/include
4822/usr/X11R7/include
4823/usr/X11R6/include
4824/usr/X11R5/include
4825/usr/X11R4/include
4826
4827/usr/include/X11
4828/usr/include/X11R7
4829/usr/include/X11R6
4830/usr/include/X11R5
4831/usr/include/X11R4
4832
4833/usr/local/X11/include
4834/usr/local/X11R7/include
4835/usr/local/X11R6/include
4836/usr/local/X11R5/include
4837/usr/local/X11R4/include
4838
4839/usr/local/include/X11
4840/usr/local/include/X11R7
4841/usr/local/include/X11R6
4842/usr/local/include/X11R5
4843/usr/local/include/X11R4
4844
4845/usr/X386/include
4846/usr/x386/include
4847/usr/XFree86/include/X11
4848
4849/usr/include
4850/usr/local/include
4851/usr/unsupported/include
4852/usr/athena/include
4853/usr/local/x11r5/include
4854/usr/lpp/Xamples/include
4855
4856/usr/openwin/include
4857/usr/openwin/share/include'
4858
4859if test "$ac_x_includes" = no; then
4860  # Guess where to find include files, by looking for Xlib.h.
4861  # First, try using that file with no special directory specified.
4862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h.  */
4864#include <X11/Xlib.h>
4865_ACEOF
4866if ac_fn_cxx_try_cpp "$LINENO"; then :
4867  # We can compile using X headers with no special include directory.
4868ac_x_includes=
4869else
4870  for ac_dir in $ac_x_header_dirs; do
4871  if test -r "$ac_dir/X11/Xlib.h"; then
4872    ac_x_includes=$ac_dir
4873    break
4874  fi
4875done
4876fi
4877rm -f conftest.err conftest.i conftest.$ac_ext
4878fi # $ac_x_includes = no
4879
4880if test "$ac_x_libraries" = no; then
4881  # Check for the libraries.
4882  # See if we find them without any special options.
4883  # Don't add to $LIBS permanently.
4884  ac_save_LIBS=$LIBS
4885  LIBS="-lX11 $LIBS"
4886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888#include <X11/Xlib.h>
4889int
4890main ()
4891{
4892XrmInitialize ()
4893  ;
4894  return 0;
4895}
4896_ACEOF
4897if ac_fn_cxx_try_link "$LINENO"; then :
4898  LIBS=$ac_save_LIBS
4899# We can link X programs with no special library path.
4900ac_x_libraries=
4901else
4902  LIBS=$ac_save_LIBS
4903for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4904do
4905  # Don't even attempt the hair of trying to link an X program!
4906  for ac_extension in a so sl dylib la dll; do
4907    if test -r "$ac_dir/libX11.$ac_extension"; then
4908      ac_x_libraries=$ac_dir
4909      break 2
4910    fi
4911  done
4912done
4913fi
4914rm -f core conftest.err conftest.$ac_objext \
4915    conftest$ac_exeext conftest.$ac_ext
4916fi # $ac_x_libraries = no
4917
4918case $ac_x_includes,$ac_x_libraries in #(
4919  no,* | *,no | *\'*)
4920    # Didn't find X, or a directory has "'" in its name.
4921    ac_cv_have_x="have_x=no";; #(
4922  *)
4923    # Record where we found X for the cache.
4924    ac_cv_have_x="have_x=yes\
4925        ac_x_includes='$ac_x_includes'\
4926        ac_x_libraries='$ac_x_libraries'"
4927esac
4928fi
4929;; #(
4930    *) have_x=yes;;
4931  esac
4932  eval "$ac_cv_have_x"
4933fi # $with_x != no
4934
4935if test "$have_x" != yes; then
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4937$as_echo "$have_x" >&6; }
4938  no_x=yes
4939else
4940  # If each of the values was on the command line, it overrides each guess.
4941  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4942  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4943  # Update the cache value to reflect the command line values.
4944  ac_cv_have_x="have_x=yes\
4945        ac_x_includes='$x_includes'\
4946        ac_x_libraries='$x_libraries'"
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4948$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4949fi
4950
4951
4952# -----------------------------------------------------------------------
4953#
4954# Compiler characteristics:
4955#   Check for existence of types of size_t and pid_t
4956#
4957# -----------------------------------------------------------------------
4958
4959# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4960for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4961                  inttypes.h stdint.h unistd.h
4962do :
4963  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4965"
4966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4967  cat >>confdefs.h <<_ACEOF
4968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969_ACEOF
4970
4971fi
4972
4973done
4974
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4977$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4978if ${ac_cv_c_bigendian+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  ac_cv_c_bigendian=unknown
4982    # See if we're dealing with a universal compiler.
4983    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985#ifndef __APPLE_CC__
4986               not a universal capable compiler
4987             #endif
4988             typedef int dummy;
4989
4990_ACEOF
4991if ac_fn_cxx_try_compile "$LINENO"; then :
4992
4993        # Check for potential -arch flags.  It is not universal unless
4994        # there are at least two -arch flags with different values.
4995        ac_arch=
4996        ac_prev=
4997        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4998         if test -n "$ac_prev"; then
4999           case $ac_word in
5000             i?86 | x86_64 | ppc | ppc64)
5001               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5002                 ac_arch=$ac_word
5003               else
5004                 ac_cv_c_bigendian=universal
5005                 break
5006               fi
5007               ;;
5008           esac
5009           ac_prev=
5010         elif test "x$ac_word" = "x-arch"; then
5011           ac_prev=arch
5012         fi
5013       done
5014fi
5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016    if test $ac_cv_c_bigendian = unknown; then
5017      # See if sys/param.h defines the BYTE_ORDER macro.
5018      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020#include <sys/types.h>
5021             #include <sys/param.h>
5022
5023int
5024main ()
5025{
5026#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5027                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5028                     && LITTLE_ENDIAN)
5029              bogus endian macros
5030             #endif
5031
5032  ;
5033  return 0;
5034}
5035_ACEOF
5036if ac_fn_cxx_try_compile "$LINENO"; then :
5037  # It does; now see whether it defined to BIG_ENDIAN or not.
5038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040#include <sys/types.h>
5041                #include <sys/param.h>
5042
5043int
5044main ()
5045{
5046#if BYTE_ORDER != BIG_ENDIAN
5047                 not big endian
5048                #endif
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054if ac_fn_cxx_try_compile "$LINENO"; then :
5055  ac_cv_c_bigendian=yes
5056else
5057  ac_cv_c_bigendian=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062    fi
5063    if test $ac_cv_c_bigendian = unknown; then
5064      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067#include <limits.h>
5068
5069int
5070main ()
5071{
5072#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5073              bogus endian macros
5074             #endif
5075
5076  ;
5077  return 0;
5078}
5079_ACEOF
5080if ac_fn_cxx_try_compile "$LINENO"; then :
5081  # It does; now see whether it defined to _BIG_ENDIAN or not.
5082         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084#include <limits.h>
5085
5086int
5087main ()
5088{
5089#ifndef _BIG_ENDIAN
5090                 not big endian
5091                #endif
5092
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_cxx_try_compile "$LINENO"; then :
5098  ac_cv_c_bigendian=yes
5099else
5100  ac_cv_c_bigendian=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105    fi
5106    if test $ac_cv_c_bigendian = unknown; then
5107      # Compile a test program.
5108      if test "$cross_compiling" = yes; then :
5109  # Try to guess by grepping values from an object file.
5110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112short int ascii_mm[] =
5113                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5114                short int ascii_ii[] =
5115                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5116                int use_ascii (int i) {
5117                  return ascii_mm[i] + ascii_ii[i];
5118                }
5119                short int ebcdic_ii[] =
5120                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5121                short int ebcdic_mm[] =
5122                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5123                int use_ebcdic (int i) {
5124                  return ebcdic_mm[i] + ebcdic_ii[i];
5125                }
5126                extern int foo;
5127
5128int
5129main ()
5130{
5131return use_ascii (foo) == use_ebcdic (foo);
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_cxx_try_compile "$LINENO"; then :
5137  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5138              ac_cv_c_bigendian=yes
5139            fi
5140            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5141              if test "$ac_cv_c_bigendian" = unknown; then
5142                ac_cv_c_bigendian=no
5143              else
5144                # finding both strings is unlikely to happen, but who knows?
5145                ac_cv_c_bigendian=unknown
5146              fi
5147            fi
5148fi
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150else
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153$ac_includes_default
5154int
5155main ()
5156{
5157
5158             /* Are we little or big endian?  From Harbison&Steele.  */
5159             union
5160             {
5161               long int l;
5162               char c[sizeof (long int)];
5163             } u;
5164             u.l = 1;
5165             return u.c[sizeof (long int) - 1] == 1;
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_cxx_try_run "$LINENO"; then :
5172  ac_cv_c_bigendian=no
5173else
5174  ac_cv_c_bigendian=yes
5175fi
5176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5177  conftest.$ac_objext conftest.beam conftest.$ac_ext
5178fi
5179
5180    fi
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5183$as_echo "$ac_cv_c_bigendian" >&6; }
5184 case $ac_cv_c_bigendian in #(
5185   yes)
5186     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5187;; #(
5188   no)
5189      ;; #(
5190   universal)
5191
5192$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5193
5194     ;; #(
5195   *)
5196     as_fn_error $? "unknown endianness
5197 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5198 esac
5199
5200# The cast to long int works around a bug in the HP C Compiler
5201# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5202# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5203# This bug is HP SR number 8606223364.
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5205$as_echo_n "checking size of int... " >&6; }
5206if ${ac_cv_sizeof_int+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5210
5211else
5212  if test "$ac_cv_type_int" = yes; then
5213     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215as_fn_error 77 "cannot compute sizeof (int)
5216See \`config.log' for more details" "$LINENO" 5; }
5217   else
5218     ac_cv_sizeof_int=0
5219   fi
5220fi
5221
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5224$as_echo "$ac_cv_sizeof_int" >&6; }
5225
5226
5227
5228cat >>confdefs.h <<_ACEOF
5229#define SIZEOF_INT $ac_cv_sizeof_int
5230_ACEOF
5231
5232
5233# The cast to long int works around a bug in the HP C Compiler
5234# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5235# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5236# This bug is HP SR number 8606223364.
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5238$as_echo_n "checking size of long... " >&6; }
5239if ${ac_cv_sizeof_long+:} false; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5243
5244else
5245  if test "$ac_cv_type_long" = yes; then
5246     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5248as_fn_error 77 "cannot compute sizeof (long)
5249See \`config.log' for more details" "$LINENO" 5; }
5250   else
5251     ac_cv_sizeof_long=0
5252   fi
5253fi
5254
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5257$as_echo "$ac_cv_sizeof_long" >&6; }
5258
5259
5260
5261cat >>confdefs.h <<_ACEOF
5262#define SIZEOF_LONG $ac_cv_sizeof_long
5263_ACEOF
5264
5265
5266# The cast to long int works around a bug in the HP C Compiler
5267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269# This bug is HP SR number 8606223364.
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5271$as_echo_n "checking size of long long... " >&6; }
5272if ${ac_cv_sizeof_long_long+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5276
5277else
5278  if test "$ac_cv_type_long_long" = yes; then
5279     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5281as_fn_error 77 "cannot compute sizeof (long long)
5282See \`config.log' for more details" "$LINENO" 5; }
5283   else
5284     ac_cv_sizeof_long_long=0
5285   fi
5286fi
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5290$as_echo "$ac_cv_sizeof_long_long" >&6; }
5291
5292
5293
5294cat >>confdefs.h <<_ACEOF
5295#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5296_ACEOF
5297
5298
5299# The cast to long int works around a bug in the HP C Compiler
5300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5302# This bug is HP SR number 8606223364.
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5304$as_echo_n "checking size of void *... " >&6; }
5305if ${ac_cv_sizeof_void_p+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5309
5310else
5311  if test "$ac_cv_type_void_p" = yes; then
5312     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5314as_fn_error 77 "cannot compute sizeof (void *)
5315See \`config.log' for more details" "$LINENO" 5; }
5316   else
5317     ac_cv_sizeof_void_p=0
5318   fi
5319fi
5320
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5323$as_echo "$ac_cv_sizeof_void_p" >&6; }
5324
5325
5326
5327cat >>confdefs.h <<_ACEOF
5328#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5329_ACEOF
5330
5331
5332
5333SIZEOF_LONG="${ac_cv_sizeof_long}"
5334SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
5335SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
5336SIZEOF_INT="${ac_cv_sizeof_int}"
5337
5338
5339for ac_func in sysinfo
5340do :
5341  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
5342if test "x$ac_cv_func_sysinfo" = xyes; then :
5343  cat >>confdefs.h <<_ACEOF
5344#define HAVE_SYSINFO 1
5345_ACEOF
5346
5347fi
5348done
5349
5350for ac_func in gettimeofday
5351do :
5352  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5353if test "x$ac_cv_func_gettimeofday" = xyes; then :
5354  cat >>confdefs.h <<_ACEOF
5355#define HAVE_GETTIMEOFDAY 1
5356_ACEOF
5357
5358fi
5359done
5360
5361ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
5362if test "x$ac_cv_func_localtime" = xyes; then :
5363
5364else
5365  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
5366fi
5367
5368ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
5369if test "x$ac_cv_func_getenv" = xyes; then :
5370
5371else
5372  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
5373fi
5374
5375
5376for ac_header in sys/sysinfo.h
5377do :
5378  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
5379if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
5380  cat >>confdefs.h <<_ACEOF
5381#define HAVE_SYS_SYSINFO_H 1
5382_ACEOF
5383
5384fi
5385
5386done
5387
5388
5389HAVE_LIBNCURSES=no
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
5391$as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
5392if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  ac_check_lib_save_LIBS=$LIBS
5396LIBS="-lncurses  $LIBS"
5397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399
5400/* Override any GCC internal prototype to avoid an error.
5401   Use char because int might match the return type of a GCC
5402   builtin and then its argument prototype would still apply.  */
5403#ifdef __cplusplus
5404extern "C"
5405#endif
5406char clrtoeol ();
5407int
5408main ()
5409{
5410return clrtoeol ();
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_cxx_try_link "$LINENO"; then :
5416  ac_cv_lib_ncurses_clrtoeol=yes
5417else
5418  ac_cv_lib_ncurses_clrtoeol=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext \
5421    conftest$ac_exeext conftest.$ac_ext
5422LIBS=$ac_check_lib_save_LIBS
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
5425$as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
5426if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
5427  HAVE_LIBNCURSES=yes
5428else
5429  as_fn_error $? "ncurses library missing?" "$LINENO" 5
5430fi
5431
5432for ac_header in ncurses.h
5433do :
5434  ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
5435if test "x$ac_cv_header_ncurses_h" = xyes; then :
5436  cat >>confdefs.h <<_ACEOF
5437#define HAVE_NCURSES_H 1
5438_ACEOF
5439
5440else
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
5442$as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
5443fi
5444
5445done
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
5449$as_echo_n "checking for main in -lstdc++... " >&6; }
5450if ${ac_cv_lib_stdcpp_main+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  ac_check_lib_save_LIBS=$LIBS
5454LIBS="-lstdc++  $LIBS"
5455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457
5458
5459int
5460main ()
5461{
5462return main ();
5463  ;
5464  return 0;
5465}
5466_ACEOF
5467if ac_fn_cxx_try_link "$LINENO"; then :
5468  ac_cv_lib_stdcpp_main=yes
5469else
5470  ac_cv_lib_stdcpp_main=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext \
5473    conftest$ac_exeext conftest.$ac_ext
5474LIBS=$ac_check_lib_save_LIBS
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
5477$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
5478if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
5479  cat >>confdefs.h <<_ACEOF
5480#define HAVE_LIBSTDC__ 1
5481_ACEOF
5482
5483  LIBS="-lstdc++ $LIBS"
5484
5485else
5486  as_fn_error $? "librappture requires libstdc++" "$LINENO" 5
5487fi
5488
5489for ac_header in algorithm
5490do :
5491  ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
5492if test "x$ac_cv_header_algorithm" = xyes; then :
5493  cat >>confdefs.h <<_ACEOF
5494#define HAVE_ALGORITHM 1
5495_ACEOF
5496
5497else
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5499$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5500fi
5501
5502done
5503
5504for ac_header in cctype
5505do :
5506  ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"
5507if test "x$ac_cv_header_cctype" = xyes; then :
5508  cat >>confdefs.h <<_ACEOF
5509#define HAVE_CCTYPE 1
5510_ACEOF
5511
5512else
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5514$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5515fi
5516
5517done
5518
5519for ac_header in cfloat
5520do :
5521  ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"
5522if test "x$ac_cv_header_cfloat" = xyes; then :
5523  cat >>confdefs.h <<_ACEOF
5524#define HAVE_CFLOAT 1
5525_ACEOF
5526
5527else
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5529$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5530fi
5531
5532done
5533
5534for ac_header in cmath
5535do :
5536  ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
5537if test "x$ac_cv_header_cmath" = xyes; then :
5538  cat >>confdefs.h <<_ACEOF
5539#define HAVE_CMATH 1
5540_ACEOF
5541
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5544$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5545fi
5546
5547done
5548
5549for ac_header in cstdio
5550do :
5551  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"
5552if test "x$ac_cv_header_cstdio" = xyes; then :
5553  cat >>confdefs.h <<_ACEOF
5554#define HAVE_CSTDIO 1
5555_ACEOF
5556
5557else
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5559$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5560fi
5561
5562done
5563
5564for ac_header in cstdlib
5565do :
5566  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"
5567if test "x$ac_cv_header_cstdlib" = xyes; then :
5568  cat >>confdefs.h <<_ACEOF
5569#define HAVE_CSTDLIB 1
5570_ACEOF
5571
5572else
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5574$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5575fi
5576
5577done
5578
5579for ac_header in cstring
5580do :
5581  ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"
5582if test "x$ac_cv_header_cstring" = xyes; then :
5583  cat >>confdefs.h <<_ACEOF
5584#define HAVE_CSTRING 1
5585_ACEOF
5586
5587else
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5589$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5590fi
5591
5592done
5593
5594for ac_header in fstream
5595do :
5596  ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
5597if test "x$ac_cv_header_fstream" = xyes; then :
5598  cat >>confdefs.h <<_ACEOF
5599#define HAVE_FSTREAM 1
5600_ACEOF
5601
5602else
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5604$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5605fi
5606
5607done
5608
5609for ac_header in list
5610do :
5611  ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"
5612if test "x$ac_cv_header_list" = xyes; then :
5613  cat >>confdefs.h <<_ACEOF
5614#define HAVE_LIST 1
5615_ACEOF
5616
5617else
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5619$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5620fi
5621
5622done
5623
5624for ac_header in iostream
5625do :
5626  ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
5627if test "x$ac_cv_header_iostream" = xyes; then :
5628  cat >>confdefs.h <<_ACEOF
5629#define HAVE_IOSTREAM 1
5630_ACEOF
5631
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5634$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5635fi
5636
5637done
5638
5639for ac_header in iterator
5640do :
5641  ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"
5642if test "x$ac_cv_header_iterator" = xyes; then :
5643  cat >>confdefs.h <<_ACEOF
5644#define HAVE_ITERATOR 1
5645_ACEOF
5646
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5649$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5650fi
5651
5652done
5653
5654for ac_header in sstream
5655do :
5656  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
5657if test "x$ac_cv_header_sstream" = xyes; then :
5658  cat >>confdefs.h <<_ACEOF
5659#define HAVE_SSTREAM 1
5660_ACEOF
5661
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5664$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5665fi
5666
5667done
5668
5669for ac_header in stack
5670do :
5671  ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"
5672if test "x$ac_cv_header_stack" = xyes; then :
5673  cat >>confdefs.h <<_ACEOF
5674#define HAVE_STACK 1
5675_ACEOF
5676
5677else
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5679$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5680fi
5681
5682done
5683
5684for ac_header in string
5685do :
5686  ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
5687if test "x$ac_cv_header_string" = xyes; then :
5688  cat >>confdefs.h <<_ACEOF
5689#define HAVE_STRING 1
5690_ACEOF
5691
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5694$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5695fi
5696
5697done
5698
5699for ac_header in vector
5700do :
5701  ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
5702if test "x$ac_cv_header_vector" = xyes; then :
5703  cat >>confdefs.h <<_ACEOF
5704#define HAVE_VECTOR 1
5705_ACEOF
5706
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5709$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5710fi
5711
5712done
5713
5714
5715for ac_header in assert.h
5716do :
5717  ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
5718if test "x$ac_cv_header_assert_h" = xyes; then :
5719  cat >>confdefs.h <<_ACEOF
5720#define HAVE_ASSERT_H 1
5721_ACEOF
5722
5723else
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5725$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5726fi
5727
5728done
5729
5730for ac_header in ctype.h
5731do :
5732  ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
5733if test "x$ac_cv_header_ctype_h" = xyes; then :
5734  cat >>confdefs.h <<_ACEOF
5735#define HAVE_CTYPE_H 1
5736_ACEOF
5737
5738else
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5740$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5741fi
5742
5743done
5744
5745for ac_header in errno.h
5746do :
5747  ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5748if test "x$ac_cv_header_errno_h" = xyes; then :
5749  cat >>confdefs.h <<_ACEOF
5750#define HAVE_ERRNO_H 1
5751_ACEOF
5752
5753else
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5755$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5756fi
5757
5758done
5759
5760for ac_header in limits.h
5761do :
5762  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5763if test "x$ac_cv_header_limits_h" = xyes; then :
5764  cat >>confdefs.h <<_ACEOF
5765#define HAVE_LIMITS_H 1
5766_ACEOF
5767
5768else
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5770$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5771fi
5772
5773done
5774
5775for ac_header in string.h
5776do :
5777  ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5778if test "x$ac_cv_header_string_h" = xyes; then :
5779  cat >>confdefs.h <<_ACEOF
5780#define HAVE_STRING_H 1
5781_ACEOF
5782
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5785$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5786fi
5787
5788done
5789
5790for ac_header in stdlib.h
5791do :
5792  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5793if test "x$ac_cv_header_stdlib_h" = xyes; then :
5794  cat >>confdefs.h <<_ACEOF
5795#define HAVE_STDLIB_H 1
5796_ACEOF
5797
5798else
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5800$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5801fi
5802
5803done
5804
5805for ac_header in stddef.h
5806do :
5807  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5808if test "x$ac_cv_header_stddef_h" = xyes; then :
5809  cat >>confdefs.h <<_ACEOF
5810#define HAVE_STDDEF_H 1
5811_ACEOF
5812
5813else
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5815$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5816fi
5817
5818done
5819
5820for ac_header in float.h
5821do :
5822  ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5823if test "x$ac_cv_header_float_h" = xyes; then :
5824  cat >>confdefs.h <<_ACEOF
5825#define HAVE_FLOAT_H 1
5826_ACEOF
5827
5828else
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5830$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5831fi
5832
5833done
5834
5835for ac_header in math.h
5836do :
5837  ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
5838if test "x$ac_cv_header_math_h" = xyes; then :
5839  cat >>confdefs.h <<_ACEOF
5840#define HAVE_MATH_H 1
5841_ACEOF
5842
5843else
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5845$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5846fi
5847
5848done
5849
5850for ac_header in malloc.h
5851do :
5852  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5853if test "x$ac_cv_header_malloc_h" = xyes; then :
5854  cat >>confdefs.h <<_ACEOF
5855#define HAVE_MALLOC_H 1
5856_ACEOF
5857
5858else
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5860$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5861fi
5862
5863done
5864
5865for ac_header in memory.h
5866do :
5867  ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
5868if test "x$ac_cv_header_memory_h" = xyes; then :
5869  cat >>confdefs.h <<_ACEOF
5870#define HAVE_MEMORY_H 1
5871_ACEOF
5872
5873else
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5875$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5876fi
5877
5878done
5879
5880for ac_header in unistd.h
5881do :
5882  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5883if test "x$ac_cv_header_unistd_h" = xyes; then :
5884  cat >>confdefs.h <<_ACEOF
5885#define HAVE_UNISTD_H 1
5886_ACEOF
5887
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5890$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5891fi
5892
5893done
5894
5895
5896for ac_header in inttypes.h
5897do :
5898  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5899if test "x$ac_cv_header_inttypes_h" = xyes; then :
5900  cat >>confdefs.h <<_ACEOF
5901#define HAVE_INTTYPES_H 1
5902_ACEOF
5903
5904else
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5906$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5907fi
5908
5909done
5910
5911if test "${ac_cv_header_inttypes_h}" = "yes" ; then
5912  HAVE_INTTYPES_H=1
5913else
5914  HAVE_INTTYPES_H=0
5915fi
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkDICOM" >&5
5918$as_echo_n "checking for main in -lvtkDICOM... " >&6; }
5919if ${ac_cv_lib_vtkDICOM_main+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  ac_check_lib_save_LIBS=$LIBS
5923LIBS="-lvtkDICOM  $LIBS"
5924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926
5927
5928int
5929main ()
5930{
5931return main ();
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_cxx_try_link "$LINENO"; then :
5937  ac_cv_lib_vtkDICOM_main=yes
5938else
5939  ac_cv_lib_vtkDICOM_main=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext \
5942    conftest$ac_exeext conftest.$ac_ext
5943LIBS=$ac_check_lib_save_LIBS
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkDICOM_main" >&5
5946$as_echo "$ac_cv_lib_vtkDICOM_main" >&6; }
5947if test "x$ac_cv_lib_vtkDICOM_main" = xyes; then :
5948  HAVE_LIBVTKDICOM=yes
5949else
5950  HAVE_LIBVTKDICOM=no
5951fi
5952
5953
5954if test "$with_install" != "yes"; then
5955    INSTALL_PREFIX=$with_install
5956else
5957    INSTALL_PREFIX=$prefix
5958fi
5959
5960if test "${libdir}" != "${prefix}/lib"; then
5961    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
5962else
5963    LIB_SEARCH_DIRS="-L${libdir}"
5964fi
5965
5966VTK_VERSION=0.0
5967
5968. ${exec_prefix}/lib/rapptureConfig.sh
5969. ${exec_prefix}/lib/tclConfig.sh
5970. ${exec_prefix}/lib/tkConfig.sh
5971. ${exec_prefix}/lib/vtkConfig.sh
5972
5973#--------------------------------------------------------------------
5974# Set the default compiler switches based on the --enable-symbols
5975# option.
5976#--------------------------------------------------------------------
5977
5978
5979
5980    # Step 0.a: Enable 64 bit support?
5981
5982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
5983$as_echo_n "checking if 64bit support is requested... " >&6; }
5984    # Check whether --enable-64bit was given.
5985if test "${enable_64bit+set}" = set; then :
5986  enableval=$enable_64bit; do64bit=$enableval
5987else
5988  do64bit=no
5989fi
5990
5991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
5992$as_echo "$do64bit" >&6; }
5993
5994    # Step 0.b: Enable Solaris 64 bit VIS support?
5995
5996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
5997$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
5998    # Check whether --enable-64bit-vis was given.
5999if test "${enable_64bit_vis+set}" = set; then :
6000  enableval=$enable_64bit_vis; do64bitVIS=$enableval
6001else
6002  do64bitVIS=no
6003fi
6004
6005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6006$as_echo "$do64bitVIS" >&6; }
6007
6008    if test "$do64bitVIS" = "yes"; then
6009        # Force 64bit on with VIS
6010        do64bit=yes
6011    fi
6012
6013    # Step 1: set the variable "system" to hold the name and version number
6014    # for the system.
6015
6016
6017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6018$as_echo_n "checking system version... " >&6; }
6019if ${tcl_cv_sys_version+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022
6023        if test -f /usr/lib/NextStep/software_version; then
6024            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
6025        else
6026            tcl_cv_sys_version=`uname -s`-`uname -r`
6027            if test "$?" -ne 0 ; then
6028                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6029$as_echo "$as_me: WARNING: can't find uname command" >&2;}
6030                tcl_cv_sys_version=unknown
6031            else
6032                # Special check for weird MP-RAS system (uname returns weird
6033                # results, and the version is kept in special file).
6034
6035                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
6036                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
6037                fi
6038                if test "`uname -s`" = "AIX" ; then
6039                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6040                fi
6041            fi
6042        fi
6043
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6046$as_echo "$tcl_cv_sys_version" >&6; }
6047    system=$tcl_cv_sys_version
6048
6049
6050    # Step 2: check for existence of -ldl library.  This is needed because
6051    # Linux can use either -ldl or -ldld for dynamic loading.
6052
6053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6054$as_echo_n "checking for dlopen in -ldl... " >&6; }
6055if ${ac_cv_lib_dl_dlopen+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  ac_check_lib_save_LIBS=$LIBS
6059LIBS="-ldl  $LIBS"
6060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062
6063/* Override any GCC internal prototype to avoid an error.
6064   Use char because int might match the return type of a GCC
6065   builtin and then its argument prototype would still apply.  */
6066#ifdef __cplusplus
6067extern "C"
6068#endif
6069char dlopen ();
6070int
6071main ()
6072{
6073return dlopen ();
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078if ac_fn_cxx_try_link "$LINENO"; then :
6079  ac_cv_lib_dl_dlopen=yes
6080else
6081  ac_cv_lib_dl_dlopen=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext \
6084    conftest$ac_exeext conftest.$ac_ext
6085LIBS=$ac_check_lib_save_LIBS
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6088$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6089if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6090  have_dl=yes
6091else
6092  have_dl=no
6093fi
6094
6095
6096    # Require ranlib early so we can override it in special cases below.
6097
6098
6099
6100    # Step 3: set configuration options based on system name and version.
6101
6102    do64bit_ok=no
6103    LDFLAGS_ORIG="$LDFLAGS"
6104    TCL_EXPORT_FILE_SUFFIX=""
6105    UNSHARED_LIB_SUFFIX=""
6106    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
6107    ECHO_VERSION='`echo ${VERSION}`'
6108    TCL_LIB_VERSIONS_OK=ok
6109    CFLAGS_DEBUG=-g
6110    CFLAGS_OPTIMIZE=-O
6111    if test "$GCC" = "yes" ; then
6112        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
6113    else
6114        CFLAGS_WARNING=""
6115    fi
6116    TCL_NEEDS_EXP_FILE=0
6117    TCL_BUILD_EXP_FILE=""
6118    TCL_EXP_FILE=""
6119    # Extract the first word of "ar", so it can be a program name with args.
6120set dummy ar; ac_word=$2
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if ${ac_cv_prog_AR+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  if test -n "$AR"; then
6127  ac_cv_prog_AR="$AR" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134    for ac_exec_ext in '' $ac_executable_extensions; do
6135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136    ac_cv_prog_AR="ar"
6137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138    break 2
6139  fi
6140done
6141  done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146AR=$ac_cv_prog_AR
6147if test -n "$AR"; then
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6149$as_echo "$AR" >&6; }
6150else
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
6153fi
6154
6155
6156    if test "${AR}" = "" ; then
6157        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
6158    fi
6159    STLIB_LD='${AR} cr'
6160    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6161    PLAT_OBJS=""
6162    PLAT_SRCS=""
6163    case $system in
6164        AIX-*)
6165            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
6166                # AIX requires the _r compiler when gcc isn't being used
6167                case "${CC}" in
6168                    *_r)
6169                        # ok ...
6170                        ;;
6171                    *)
6172                        CC=${CC}_r
6173                        ;;
6174                esac
6175                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6176$as_echo "Using $CC for compiling with threads" >&6; }
6177            fi
6178            LIBS="$LIBS -lc"
6179            SHLIB_CFLAGS=""
6180            # Note: need the LIBS below, otherwise Tk won't find Tcl's
6181            # symbols when dynamically loaded into tclsh.
6182            SHLIB_LD_LIBS='${LIBS}'
6183            SHLIB_SUFFIX=".so"
6184
6185            DL_OBJS="tclLoadDl.o"
6186            LD_LIBRARY_PATH_VAR="LIBPATH"
6187
6188            # Check to enable 64-bit flags for compiler/linker on AIX 4+
6189            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
6190                if test "$GCC" = "yes" ; then
6191                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6192$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6193                else
6194                    do64bit_ok=yes
6195                    CFLAGS="$CFLAGS -q64"
6196                    LDFLAGS="$LDFLAGS -q64"
6197                    RANLIB="${RANLIB} -X64"
6198                    AR="${AR} -X64"
6199                    SHLIB_LD_FLAGS="-b64"
6200                fi
6201            fi
6202
6203            if test "`uname -m`" = "ia64" ; then
6204                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6205                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6206                # AIX-5 has dl* in libc.so
6207                DL_LIBS=""
6208                if test "$GCC" = "yes" ; then
6209                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6210                else
6211                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
6212                fi
6213                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6214            else
6215                if test "$GCC" = "yes" ; then
6216                    SHLIB_LD="gcc -shared"
6217                else
6218                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
6219                fi
6220                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6221                DL_LIBS="-ldl"
6222                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6223                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6224                TCL_NEEDS_EXP_FILE=1
6225                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
6226            fi
6227
6228            # AIX v<=4.1 has some different flags than 4.2+
6229            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
6230                LIBOBJS="$LIBOBJS tclLoadAix.o"
6231                DL_LIBS="-lld"
6232            fi
6233
6234            # On AIX <=v4 systems, libbsd.a has to be linked in to support
6235            # non-blocking file IO.  This library has to be linked in after
6236            # the MATH_LIBS or it breaks the pow() function.  The way to
6237            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
6238            # This library also supplies gettimeofday.
6239            #
6240            # AIX does not have a timezone field in struct tm. When the AIX
6241            # bsd library is used, the timezone global and the gettimeofday
6242            # methods are to be avoided for timezone deduction instead, we
6243            # deduce the timezone by comparing the localtime result on a
6244            # known GMT value.
6245
6246            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
6247$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
6248if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  ac_check_lib_save_LIBS=$LIBS
6252LIBS="-lbsd  $LIBS"
6253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255
6256/* Override any GCC internal prototype to avoid an error.
6257   Use char because int might match the return type of a GCC
6258   builtin and then its argument prototype would still apply.  */
6259#ifdef __cplusplus
6260extern "C"
6261#endif
6262char gettimeofday ();
6263int
6264main ()
6265{
6266return gettimeofday ();
6267  ;
6268  return 0;
6269}
6270_ACEOF
6271if ac_fn_cxx_try_link "$LINENO"; then :
6272  ac_cv_lib_bsd_gettimeofday=yes
6273else
6274  ac_cv_lib_bsd_gettimeofday=no
6275fi
6276rm -f core conftest.err conftest.$ac_objext \
6277    conftest$ac_exeext conftest.$ac_ext
6278LIBS=$ac_check_lib_save_LIBS
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
6281$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
6282if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
6283  libbsd=yes
6284else
6285  libbsd=no
6286fi
6287
6288            if test $libbsd = yes; then
6289                MATH_LIBS="$MATH_LIBS -lbsd"
6290                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
6291
6292            fi
6293            ;;
6294        BeOS*)
6295            SHLIB_CFLAGS="-fPIC"
6296            SHLIB_LD="${CC} -nostart"
6297            SHLIB_LD_LIBS='${LIBS}'
6298            SHLIB_SUFFIX=".so"
6299            DL_OBJS="tclLoadDl.o"
6300            DL_LIBS="-ldl"
6301
6302            #-----------------------------------------------------------
6303            # Check for inet_ntoa in -lbind, for BeOS (which also needs
6304            # -lsocket, even if the network functions are in -lnet which
6305            # is always linked to, for compatibility.
6306            #-----------------------------------------------------------
6307            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
6308$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
6309if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  ac_check_lib_save_LIBS=$LIBS
6313LIBS="-lbind  $LIBS"
6314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316
6317/* Override any GCC internal prototype to avoid an error.
6318   Use char because int might match the return type of a GCC
6319   builtin and then its argument prototype would still apply.  */
6320#ifdef __cplusplus
6321extern "C"
6322#endif
6323char inet_ntoa ();
6324int
6325main ()
6326{
6327return inet_ntoa ();
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332if ac_fn_cxx_try_link "$LINENO"; then :
6333  ac_cv_lib_bind_inet_ntoa=yes
6334else
6335  ac_cv_lib_bind_inet_ntoa=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext \
6338    conftest$ac_exeext conftest.$ac_ext
6339LIBS=$ac_check_lib_save_LIBS
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
6342$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
6343if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
6344  LIBS="$LIBS -lbind -lsocket"
6345fi
6346
6347            ;;
6348        BSD/OS-2.1*|BSD/OS-3*)
6349            SHLIB_CFLAGS=""
6350            SHLIB_LD="shlicc -r"
6351            SHLIB_LD_LIBS='${LIBS}'
6352            SHLIB_SUFFIX=".so"
6353            DL_OBJS="tclLoadDl.o"
6354            DL_LIBS="-ldl"
6355            CC_SEARCH_FLAGS=""
6356            LD_SEARCH_FLAGS=""
6357            ;;
6358        BSD/OS-4.*)
6359            SHLIB_CFLAGS="-export-dynamic -fPIC"
6360            SHLIB_LD="cc -shared"
6361            SHLIB_LD_LIBS='${LIBS}'
6362            SHLIB_SUFFIX=".so"
6363            DL_OBJS="tclLoadDl.o"
6364            DL_LIBS="-ldl"
6365            LDFLAGS="$LDFLAGS -export-dynamic"
6366            CC_SEARCH_FLAGS=""
6367            LD_SEARCH_FLAGS=""
6368            ;;
6369        dgux*)
6370            SHLIB_CFLAGS="-K PIC"
6371            SHLIB_LD="cc -G"
6372            SHLIB_LD_LIBS=""
6373            SHLIB_SUFFIX=".so"
6374            DL_OBJS="tclLoadDl.o"
6375            DL_LIBS="-ldl"
6376            CC_SEARCH_FLAGS=""
6377            LD_SEARCH_FLAGS=""
6378            ;;
6379        HP-UX-*.11.*)
6380            # Use updated header definitions where possible
6381            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
6382          # Use the XOPEN network library
6383            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6384 # Use the XOPEN network library
6385            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
6386
6387            if test "`uname -m`" = "ia64" ; then
6388                SHLIB_SUFFIX=".so"
6389            else
6390                SHLIB_SUFFIX=".sl"
6391            fi
6392            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6393$as_echo_n "checking for shl_load in -ldld... " >&6; }
6394if ${ac_cv_lib_dld_shl_load+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  ac_check_lib_save_LIBS=$LIBS
6398LIBS="-ldld  $LIBS"
6399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401
6402/* Override any GCC internal prototype to avoid an error.
6403   Use char because int might match the return type of a GCC
6404   builtin and then its argument prototype would still apply.  */
6405#ifdef __cplusplus
6406extern "C"
6407#endif
6408char shl_load ();
6409int
6410main ()
6411{
6412return shl_load ();
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_cxx_try_link "$LINENO"; then :
6418  ac_cv_lib_dld_shl_load=yes
6419else
6420  ac_cv_lib_dld_shl_load=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext \
6423    conftest$ac_exeext conftest.$ac_ext
6424LIBS=$ac_check_lib_save_LIBS
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6427$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6428if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6429  tcl_ok=yes
6430else
6431  tcl_ok=no
6432fi
6433
6434            if test "$tcl_ok" = yes; then
6435                SHLIB_CFLAGS="+z"
6436                SHLIB_LD="ld -b"
6437                SHLIB_LD_LIBS='${LIBS}'
6438                DL_OBJS="tclLoadShl.o"
6439                DL_LIBS="-ldld"
6440                LDFLAGS="$LDFLAGS -Wl,-E"
6441                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
6442                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
6443                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
6444            fi
6445            if test "$GCC" = "yes" ; then
6446                SHLIB_LD="gcc -shared"
6447                SHLIB_LD_LIBS='${LIBS}'
6448                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6449            fi
6450
6451            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
6452            #CFLAGS="$CFLAGS +DAportable"
6453
6454            # Check to enable 64-bit flags for compiler/linker
6455            if test "$do64bit" = "yes" ; then
6456                if test "$GCC" = "yes" ; then
6457                    hpux_arch=`${CC} -dumpmachine`
6458                    case $hpux_arch in
6459                        hppa64*)
6460                            # 64-bit gcc in use.  Fix flags for GNU ld.
6461                            do64bit_ok=yes
6462                            SHLIB_LD="${CC} -shared"
6463                            SHLIB_LD_LIBS='${LIBS}'
6464                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6465                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6466                            ;;
6467                        *)
6468                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6469$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6470                            ;;
6471                    esac
6472                else
6473                    do64bit_ok=yes
6474                    CFLAGS="$CFLAGS +DD64"
6475                    LDFLAGS="$LDFLAGS +DD64"
6476                fi
6477            fi
6478            ;;
6479        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
6480            SHLIB_SUFFIX=".sl"
6481            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6482$as_echo_n "checking for shl_load in -ldld... " >&6; }
6483if ${ac_cv_lib_dld_shl_load+:} false; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486  ac_check_lib_save_LIBS=$LIBS
6487LIBS="-ldld  $LIBS"
6488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h.  */
6490
6491/* Override any GCC internal prototype to avoid an error.
6492   Use char because int might match the return type of a GCC
6493   builtin and then its argument prototype would still apply.  */
6494#ifdef __cplusplus
6495extern "C"
6496#endif
6497char shl_load ();
6498int
6499main ()
6500{
6501return shl_load ();
6502  ;
6503  return 0;
6504}
6505_ACEOF
6506if ac_fn_cxx_try_link "$LINENO"; then :
6507  ac_cv_lib_dld_shl_load=yes
6508else
6509  ac_cv_lib_dld_shl_load=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext \
6512    conftest$ac_exeext conftest.$ac_ext
6513LIBS=$ac_check_lib_save_LIBS
6514fi
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6516$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6517if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6518  tcl_ok=yes
6519else
6520  tcl_ok=no
6521fi
6522
6523            if test "$tcl_ok" = yes; then
6524                SHLIB_CFLAGS="+z"
6525                SHLIB_LD="ld -b"
6526                SHLIB_LD_LIBS=""
6527                DL_OBJS="tclLoadShl.o"
6528                DL_LIBS="-ldld"
6529                LDFLAGS="$LDFLAGS -Wl,-E"
6530                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
6531                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
6532                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
6533            fi
6534            ;;
6535        IRIX-4.*)
6536            SHLIB_CFLAGS="-G 0"
6537            SHLIB_SUFFIX=".a"
6538            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
6539            SHLIB_LD_LIBS='${LIBS}'
6540            DL_OBJS="tclLoadAout.o"
6541            DL_LIBS=""
6542            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
6543            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6544            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6545            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
6546            ;;
6547        IRIX-5.*)
6548            SHLIB_CFLAGS=""
6549            SHLIB_LD="ld -shared -rdata_shared"
6550            SHLIB_LD_LIBS='${LIBS}'
6551            SHLIB_SUFFIX=".so"
6552            DL_OBJS="tclLoadDl.o"
6553            DL_LIBS=""
6554            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6555            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6556            ;;
6557        IRIX-6.*)
6558            SHLIB_CFLAGS=""
6559            SHLIB_LD="ld -n32 -shared -rdata_shared"
6560            SHLIB_LD_LIBS='${LIBS}'
6561            SHLIB_SUFFIX=".so"
6562            DL_OBJS="tclLoadDl.o"
6563            DL_LIBS=""
6564            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6565            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6566            if test "$GCC" = "yes" ; then
6567                CFLAGS="$CFLAGS -mabi=n32"
6568                LDFLAGS="$LDFLAGS -mabi=n32"
6569            else
6570                case $system in
6571                    IRIX-6.3)
6572                        # Use to build 6.2 compatible binaries on 6.3.
6573                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
6574                        ;;
6575                    *)
6576                        CFLAGS="$CFLAGS -n32"
6577                        ;;
6578                esac
6579                LDFLAGS="$LDFLAGS -n32"
6580            fi
6581            ;;
6582        IRIX64-6.*)
6583            SHLIB_CFLAGS=""
6584            SHLIB_LD="ld -n32 -shared -rdata_shared"
6585            SHLIB_LD_LIBS='${LIBS}'
6586            SHLIB_SUFFIX=".so"
6587            DL_OBJS="tclLoadDl.o"
6588            DL_LIBS=""
6589            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6590            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6591
6592            # Check to enable 64-bit flags for compiler/linker
6593
6594            if test "$do64bit" = "yes" ; then
6595                if test "$GCC" = "yes" ; then
6596                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
6597$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
6598                else
6599                    do64bit_ok=yes
6600                    SHLIB_LD="ld -64 -shared -rdata_shared"
6601                    CFLAGS="$CFLAGS -64"
6602                    LDFLAGS="$LDFLAGS -64"
6603                fi
6604            fi
6605            ;;
6606        Linux*)
6607            SHLIB_CFLAGS="-fPIC"
6608            SHLIB_LD_LIBS='${LIBS}'
6609            SHLIB_SUFFIX=".so"
6610
6611            CFLAGS_OPTIMIZE=-O2
6612            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
6613            # when you inline the string and math operations.  Turn this off to
6614            # get rid of the warnings.
6615            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
6616
6617            if test "$have_dl" = yes; then
6618                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
6619                DL_OBJS="tclLoadDl.o"
6620                DL_LIBS="-ldl"
6621                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6622                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6623                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6624            else
6625                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
6626if test "x$ac_cv_header_dld_h" = xyes; then :
6627
6628                    SHLIB_LD="ld -shared"
6629                    DL_OBJS="tclLoadDld.o"
6630                    DL_LIBS="-ldld"
6631                    CC_SEARCH_FLAGS=""
6632                    LD_SEARCH_FLAGS=""
6633fi
6634
6635
6636            fi
6637            if test "`uname -m`" = "alpha" ; then
6638                CFLAGS="$CFLAGS -mieee"
6639            fi
6640            if test $do64bit = yes; then
6641                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
6642$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
6643if ${tcl_cv_cc_m64+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646
6647                    hold_cflags=$CFLAGS
6648                    CFLAGS="$CFLAGS -m64"
6649                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h.  */
6651
6652int
6653main ()
6654{
6655
6656  ;
6657  return 0;
6658}
6659_ACEOF
6660if ac_fn_cxx_try_link "$LINENO"; then :
6661  tcl_cv_cc_m64=yes
6662else
6663  tcl_cv_cc_m64=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext \
6666    conftest$ac_exeext conftest.$ac_ext
6667                    CFLAGS=$hold_cflags
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
6670$as_echo "$tcl_cv_cc_m64" >&6; }
6671                if test $tcl_cv_cc_m64 = yes; then
6672                    CFLAGS="$CFLAGS -m64"
6673                    do64bit_ok=yes
6674                fi
6675            fi
6676
6677            # The combo of gcc + glibc has a bug related
6678            # to inlining of functions like strtod(). The
6679            # -fno-builtin flag should address this problem
6680            # but it does not work. The -fno-inline flag
6681            # is kind of overkill but it works.
6682            # Disable inlining only when one of the
6683            # files in compat/*.c is being linked in.
6684            if test x"${LIBOBJS}" != x ; then
6685                CFLAGS="$CFLAGS -fno-inline"
6686            fi
6687
6688            # XIM peeking works under XFree86.
6689            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
6690
6691
6692            ;;
6693        GNU*)
6694            SHLIB_CFLAGS="-fPIC"
6695            SHLIB_LD_LIBS='${LIBS}'
6696            SHLIB_SUFFIX=".so"
6697
6698            if test "$have_dl" = yes; then
6699                SHLIB_LD="${CC} -shared"
6700                DL_OBJS=""
6701                DL_LIBS="-ldl"
6702                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6703                CC_SEARCH_FLAGS=""
6704                LD_SEARCH_FLAGS=""
6705            else
6706                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
6707if test "x$ac_cv_header_dld_h" = xyes; then :
6708
6709                    SHLIB_LD="ld -shared"
6710                    DL_OBJS=""
6711                    DL_LIBS="-ldld"
6712                    CC_SEARCH_FLAGS=""
6713                    LD_SEARCH_FLAGS=""
6714fi
6715
6716
6717            fi
6718            if test "`uname -m`" = "alpha" ; then
6719                CFLAGS="$CFLAGS -mieee"
6720            fi
6721            ;;
6722        Lynx*)
6723            SHLIB_CFLAGS="-fPIC"
6724            SHLIB_LD_LIBS='${LIBS}'
6725            SHLIB_SUFFIX=".so"
6726            CFLAGS_OPTIMIZE=-02
6727            SHLIB_LD="${CC} -shared "
6728            DL_OBJS="tclLoadDl.o"
6729            DL_LIBS="-mshared -ldl"
6730            LD_FLAGS="-Wl,--export-dynamic"
6731            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6732            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6733            ;;
6734        MP-RAS-02*)
6735            SHLIB_CFLAGS="-K PIC"
6736            SHLIB_LD="cc -G"
6737            SHLIB_LD_LIBS=""
6738            SHLIB_SUFFIX=".so"
6739            DL_OBJS="tclLoadDl.o"
6740            DL_LIBS="-ldl"
6741            CC_SEARCH_FLAGS=""
6742            LD_SEARCH_FLAGS=""
6743            ;;
6744        MP-RAS-*)
6745            SHLIB_CFLAGS="-K PIC"
6746            SHLIB_LD="cc -G"
6747            SHLIB_LD_LIBS=""
6748            SHLIB_SUFFIX=".so"
6749            DL_OBJS="tclLoadDl.o"
6750            DL_LIBS="-ldl"
6751            LDFLAGS="$LDFLAGS -Wl,-Bexport"
6752            CC_SEARCH_FLAGS=""
6753            LD_SEARCH_FLAGS=""
6754            ;;
6755        NetBSD-*|FreeBSD-[1-2].*)
6756            # Not available on all versions:  check for include file.
6757            ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6758if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6759
6760                # NetBSD/SPARC needs -fPIC, -fpic will not do.
6761                SHLIB_CFLAGS="-fPIC"
6762                SHLIB_LD="ld -Bshareable -x"
6763                SHLIB_LD_LIBS='${LIBS}'
6764                SHLIB_SUFFIX=".so"
6765                DL_OBJS="tclLoadDl.o"
6766                DL_LIBS=""
6767                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6768                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6769                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
6770$as_echo_n "checking for ELF... " >&6; }
6771if ${tcl_cv_ld_elf+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774
6775                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777
6778#ifdef __ELF__
6779        yes
6780#endif
6781
6782_ACEOF
6783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784  $EGREP "yes" >/dev/null 2>&1; then :
6785  tcl_cv_ld_elf=yes
6786else
6787  tcl_cv_ld_elf=no
6788fi
6789rm -f conftest*
6790
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
6793$as_echo "$tcl_cv_ld_elf" >&6; }
6794                if test $tcl_cv_ld_elf = yes; then
6795                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
6796                else
6797                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
6798                fi
6799
6800else
6801
6802                SHLIB_CFLAGS=""
6803                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
6804                SHLIB_LD_LIBS='${LIBS}'
6805                SHLIB_SUFFIX=".a"
6806                DL_OBJS="tclLoadAout.o"
6807                DL_LIBS=""
6808                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6809                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6810                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6811
6812fi
6813
6814
6815
6816            # FreeBSD doesn't handle version numbers with dots.
6817
6818            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6819            TCL_LIB_VERSIONS_OK=nodots
6820            ;;
6821        OpenBSD-*)
6822            case `arch -s` in
6823            m88k|vax)
6824                SHLIB_CFLAGS=""
6825                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
6826                SHLIB_LD_LIBS='${LIBS}'
6827                SHLIB_SUFFIX=".a"
6828                DL_OBJS="tclLoadAout.o"
6829                DL_LIBS=""
6830                LDFLAGS=""
6831                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6832                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6833                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6834                ;;
6835            *)
6836                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
6837                case `machine` in
6838                sparc|sparc64)
6839                    SHLIB_CFLAGS="-fPIC";;
6840                *)
6841                    SHLIB_CFLAGS="-fpic";;
6842                esac
6843                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
6844                SHLIB_LD_LIBS='${LIBS}'
6845                SHLIB_SUFFIX=".so"
6846                DL_OBJS="tclLoadDl.o"
6847                DL_LIBS=""
6848                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6849                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6850                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
6851                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
6852$as_echo_n "checking for ELF... " >&6; }
6853if ${tcl_cv_ld_elf+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856
6857                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859
6860#ifdef __ELF__
6861        yes
6862#endif
6863
6864_ACEOF
6865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6866  $EGREP "yes" >/dev/null 2>&1; then :
6867  tcl_cv_ld_elf=yes
6868else
6869  tcl_cv_ld_elf=no
6870fi
6871rm -f conftest*
6872
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
6875$as_echo "$tcl_cv_ld_elf" >&6; }
6876                if test $tcl_cv_ld_elf = yes; then
6877                    LDFLAGS=-Wl,-export-dynamic
6878                else
6879                    LDFLAGS=""
6880                fi
6881                ;;
6882            esac
6883
6884            # OpenBSD doesn't do version numbers with dots.
6885            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6886            TCL_LIB_VERSIONS_OK=nodots
6887            ;;
6888        FreeBSD-*)
6889            # FreeBSD 3.* and greater have ELF.
6890            SHLIB_CFLAGS="-fPIC"
6891            SHLIB_LD="ld -Bshareable -x"
6892            SHLIB_LD_LIBS='${LIBS}'
6893            SHLIB_SUFFIX=".so"
6894            DL_OBJS="tclLoadDl.o"
6895            DL_LIBS=""
6896            LDFLAGS="$LDFLAGS -export-dynamic"
6897            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6898            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6899            if test "${TCL_THREADS}" = "1" ; then
6900                # The -pthread needs to go in the CFLAGS, not LIBS
6901                LIBS=`echo $LIBS | sed s/-pthread//`
6902                CFLAGS="$CFLAGS -pthread"
6903                LDFLAGS="$LDFLAGS -pthread"
6904            fi
6905            case $system in
6906            FreeBSD-3.*)
6907                # FreeBSD-3 doesn't handle version numbers with dots.
6908                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6909                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
6910                TCL_LIB_VERSIONS_OK=nodots
6911                ;;
6912            esac
6913            ;;
6914        Darwin-*)
6915            CFLAGS_OPTIMIZE="-Os"
6916            SHLIB_CFLAGS="-fno-common"
6917            # To avoid discrepancies between what headers configure sees during
6918            # preprocessing tests and compiling tests, move any -isysroot and
6919            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
6920            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
6921                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
6922                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
6923            CFLAGS="`echo " ${CFLAGS}" | \
6924                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
6925                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
6926            if test $do64bit = yes; then
6927                case `arch` in
6928                    ppc)
6929                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
6930$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
6931if ${tcl_cv_cc_arch_ppc64+:} false; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934
6935                            hold_cflags=$CFLAGS
6936                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
6937                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939
6940int
6941main ()
6942{
6943
6944  ;
6945  return 0;
6946}
6947_ACEOF
6948if ac_fn_cxx_try_link "$LINENO"; then :
6949  tcl_cv_cc_arch_ppc64=yes
6950else
6951  tcl_cv_cc_arch_ppc64=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext \
6954    conftest$ac_exeext conftest.$ac_ext
6955                            CFLAGS=$hold_cflags
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
6958$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
6959                        if test $tcl_cv_cc_arch_ppc64 = yes; then
6960                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
6961                            do64bit_ok=yes
6962                        fi;;
6963                    i386)
6964                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
6965$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
6966if ${tcl_cv_cc_arch_x86_64+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969
6970                            hold_cflags=$CFLAGS
6971                            CFLAGS="$CFLAGS -arch x86_64"
6972                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974
6975int
6976main ()
6977{
6978
6979  ;
6980  return 0;
6981}
6982_ACEOF
6983if ac_fn_cxx_try_link "$LINENO"; then :
6984  tcl_cv_cc_arch_x86_64=yes
6985else
6986  tcl_cv_cc_arch_x86_64=no
6987fi
6988rm -f core conftest.err conftest.$ac_objext \
6989    conftest$ac_exeext conftest.$ac_ext
6990                            CFLAGS=$hold_cflags
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
6993$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
6994                        if test $tcl_cv_cc_arch_x86_64 = yes; then
6995                            CFLAGS="$CFLAGS -arch x86_64"
6996                            do64bit_ok=yes
6997                        fi;;
6998                    *)
6999                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7000$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7001                esac
7002            else
7003                # Check for combined 32-bit and 64-bit fat build
7004                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
7005                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
7006                    fat_32_64=yes
7007            fi
7008            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
7009            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7010$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
7011if ${tcl_cv_ld_single_module+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014
7015                hold_ldflags=$LDFLAGS
7016                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7017                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019
7020int
7021main ()
7022{
7023int i;
7024  ;
7025  return 0;
7026}
7027_ACEOF
7028if ac_fn_cxx_try_link "$LINENO"; then :
7029  tcl_cv_ld_single_module=yes
7030else
7031  tcl_cv_ld_single_module=no
7032fi
7033rm -f core conftest.err conftest.$ac_objext \
7034    conftest$ac_exeext conftest.$ac_ext
7035                LDFLAGS=$hold_ldflags
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7038$as_echo "$tcl_cv_ld_single_module" >&6; }
7039            if test $tcl_cv_ld_single_module = yes; then
7040                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7041            fi
7042            SHLIB_LD_LIBS='${LIBS}'
7043            SHLIB_SUFFIX=".dylib"
7044            DL_OBJS="tclLoadDyld.o"
7045            DL_LIBS=""
7046            # Don't use -prebind when building for Mac OS X 10.4 or later only:
7047            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
7048                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
7049                LDFLAGS="$LDFLAGS -prebind"
7050            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7051            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7052$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
7053if ${tcl_cv_ld_search_paths_first+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056
7057                hold_ldflags=$LDFLAGS
7058                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7059                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061
7062int
7063main ()
7064{
7065int i;
7066  ;
7067  return 0;
7068}
7069_ACEOF
7070if ac_fn_cxx_try_link "$LINENO"; then :
7071  tcl_cv_ld_search_paths_first=yes
7072else
7073  tcl_cv_ld_search_paths_first=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext \
7076    conftest$ac_exeext conftest.$ac_ext
7077                LDFLAGS=$hold_ldflags
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7080$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
7081            if test $tcl_cv_ld_search_paths_first = yes; then
7082                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7083            fi
7084            CC_SEARCH_FLAGS=""
7085            LD_SEARCH_FLAGS=""
7086            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7087            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
7088            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
7089            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
7090$as_echo_n "checking whether to use CoreFoundation... " >&6; }
7091            # Check whether --enable-corefoundation was given.
7092if test "${enable_corefoundation+set}" = set; then :
7093  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
7094else
7095  tcl_corefoundation=yes
7096fi
7097
7098            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
7099$as_echo "$tcl_corefoundation" >&6; }
7100            if test $tcl_corefoundation = yes; then
7101                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
7102$as_echo_n "checking for CoreFoundation.framework... " >&6; }
7103if ${tcl_cv_lib_corefoundation+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106
7107                    hold_libs=$LIBS
7108                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
7109                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
7110                        # from CFLAGS et al. while testing for presence of CF.
7111                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
7112                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7113                    done; fi
7114                    LIBS="$LIBS -framework CoreFoundation"
7115                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117#include <CoreFoundation/CoreFoundation.h>
7118int
7119main ()
7120{
7121CFBundleRef b = CFBundleGetMainBundle();
7122  ;
7123  return 0;
7124}
7125_ACEOF
7126if ac_fn_cxx_try_link "$LINENO"; then :
7127  tcl_cv_lib_corefoundation=yes
7128else
7129  tcl_cv_lib_corefoundation=no
7130fi
7131rm -f core conftest.err conftest.$ac_objext \
7132    conftest$ac_exeext conftest.$ac_ext
7133                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
7134                        eval $v'="$hold_'$v'"'
7135                    done; fi; LIBS=$hold_libs
7136fi
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
7138$as_echo "$tcl_cv_lib_corefoundation" >&6; }
7139                if test $tcl_cv_lib_corefoundation = yes; then
7140                    LIBS="$LIBS -framework CoreFoundation"
7141                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
7142
7143                else
7144                    tcl_corefoundation=no
7145                fi
7146                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
7147                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
7148$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
7149if ${tcl_cv_lib_corefoundation_64+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152
7153                        for v in CFLAGS CPPFLAGS LDFLAGS; do
7154                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7155                        done
7156                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h.  */
7158#include <CoreFoundation/CoreFoundation.h>
7159int
7160main ()
7161{
7162CFBundleRef b = CFBundleGetMainBundle();
7163  ;
7164  return 0;
7165}
7166_ACEOF
7167if ac_fn_cxx_try_link "$LINENO"; then :
7168  tcl_cv_lib_corefoundation_64=yes
7169else
7170  tcl_cv_lib_corefoundation_64=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext \
7173    conftest$ac_exeext conftest.$ac_ext
7174                        for v in CFLAGS CPPFLAGS LDFLAGS; do
7175                            eval $v'="$hold_'$v'"'
7176                        done
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
7179$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
7180                    if test $tcl_cv_lib_corefoundation_64 = no; then
7181                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
7182
7183                    fi
7184                fi
7185            fi
7186            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
7187
7188            ;;
7189        NEXTSTEP-*)
7190            SHLIB_CFLAGS=""
7191            SHLIB_LD="cc -nostdlib -r"
7192            SHLIB_LD_LIBS=""
7193            SHLIB_SUFFIX=".so"
7194            DL_OBJS="tclLoadNext.o"
7195            DL_LIBS=""
7196            CC_SEARCH_FLAGS=""
7197            LD_SEARCH_FLAGS=""
7198            ;;
7199        OS/390-*)
7200            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
7201            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
7202        # needed in sys/socket.h
7203            ;;
7204        OSF1-1.0|OSF1-1.1|OSF1-1.2)
7205            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
7206            SHLIB_CFLAGS=""
7207            # Hack: make package name same as library name
7208            SHLIB_LD='ld -R -export :'
7209            SHLIB_LD_LIBS=""
7210            SHLIB_SUFFIX=".so"
7211            DL_OBJS="tclLoadOSF.o"
7212            DL_LIBS=""
7213            CC_SEARCH_FLAGS=""
7214            LD_SEARCH_FLAGS=""
7215            ;;
7216        OSF1-1.*)
7217            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
7218            SHLIB_CFLAGS="-fPIC"
7219            if test "$SHARED_BUILD" = "1" ; then
7220                SHLIB_LD="ld -shared"
7221            else
7222                SHLIB_LD="ld -non_shared"
7223            fi
7224            SHLIB_LD_LIBS=""
7225            SHLIB_SUFFIX=".so"
7226            DL_OBJS="tclLoadDl.o"
7227            DL_LIBS=""
7228            CC_SEARCH_FLAGS=""
7229            LD_SEARCH_FLAGS=""
7230            ;;
7231        OSF1-V*)
7232            # Digital OSF/1
7233            SHLIB_CFLAGS=""
7234            if test "$SHARED_BUILD" = "1" ; then
7235                SHLIB_LD='ld -shared -expect_unresolved "*"'
7236            else
7237                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7238            fi
7239            SHLIB_LD_LIBS=""
7240            SHLIB_SUFFIX=".so"
7241            DL_OBJS="tclLoadDl.o"
7242            DL_LIBS=""
7243            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7244            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7245            if test "$GCC" = "yes" ; then
7246                CFLAGS="$CFLAGS -mieee"
7247            else
7248                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
7249            fi
7250            # see pthread_intro(3) for pthread support on osf1, k.furukawa
7251            if test "${TCL_THREADS}" = "1" ; then
7252                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7253                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7254                LIBS=`echo $LIBS | sed s/-lpthreads//`
7255                if test "$GCC" = "yes" ; then
7256                    LIBS="$LIBS -lpthread -lmach -lexc"
7257                else
7258                    CFLAGS="$CFLAGS -pthread"
7259                    LDFLAGS="$LDFLAGS -pthread"
7260                fi
7261            fi
7262
7263            ;;
7264        QNX-6*)
7265            # QNX RTP
7266            # This may work for all QNX, but it was only reported for v6.
7267            SHLIB_CFLAGS="-fPIC"
7268            SHLIB_LD="ld -Bshareable -x"
7269            SHLIB_LD_LIBS=""
7270            SHLIB_SUFFIX=".so"
7271            DL_OBJS="tclLoadDl.o"
7272            # dlopen is in -lc on QNX
7273            DL_LIBS=""
7274            CC_SEARCH_FLAGS=""
7275            LD_SEARCH_FLAGS=""
7276            ;;
7277        RISCos-*)
7278            SHLIB_CFLAGS="-G 0"
7279            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7280            SHLIB_LD_LIBS='${LIBS}'
7281            SHLIB_SUFFIX=".a"
7282            DL_OBJS="tclLoadAout.o"
7283            DL_LIBS=""
7284            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
7285            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7286            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7287            ;;
7288        SCO_SV-3.2*)
7289            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
7290            # this test works, since "uname -s" was non-standard in 3.2.4 and
7291            # below.
7292            if test "$GCC" = "yes" ; then
7293                SHLIB_CFLAGS="-fPIC -melf"
7294                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7295            else
7296                SHLIB_CFLAGS="-Kpic -belf"
7297                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7298            fi
7299            SHLIB_LD="ld -G"
7300            SHLIB_LD_LIBS=""
7301            SHLIB_SUFFIX=".so"
7302            DL_OBJS="tclLoadDl.o"
7303            DL_LIBS=""
7304            CC_SEARCH_FLAGS=""
7305            LD_SEARCH_FLAGS=""
7306            ;;
7307        SINIX*5.4*)
7308            SHLIB_CFLAGS="-K PIC"
7309            SHLIB_LD="cc -G"
7310            SHLIB_LD_LIBS=""
7311            SHLIB_SUFFIX=".so"
7312            DL_OBJS="tclLoadDl.o"
7313            DL_LIBS="-ldl"
7314            CC_SEARCH_FLAGS=""
7315            LD_SEARCH_FLAGS=""
7316            ;;
7317        SunOS-4*)
7318            SHLIB_CFLAGS="-PIC"
7319            SHLIB_LD="ld"
7320            SHLIB_LD_LIBS=""
7321            SHLIB_SUFFIX=".so"
7322            DL_OBJS="tclLoadDl.o"
7323            DL_LIBS="-ldl"
7324            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7325            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7326
7327            # SunOS can't handle version numbers with dots in them in library
7328            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
7329            # requires an extra version number at the end of .so file names.
7330            # So, the library has to have a name like libtcl75.so.1.0
7331
7332            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
7333            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
7334            TCL_LIB_VERSIONS_OK=nodots
7335            ;;
7336        SunOS-5.[0-6])
7337            # Careful to not let 5.10+ fall into this case
7338
7339            # Note: If _REENTRANT isn't defined, then Solaris
7340            # won't define thread-safe library routines.
7341
7342            $as_echo "#define _REENTRANT 1" >>confdefs.h
7343
7344            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7345
7346
7347            SHLIB_CFLAGS="-KPIC"
7348
7349            # Note: need the LIBS below, otherwise Tk won't find Tcl's
7350            # symbols when dynamically loaded into tclsh.
7351
7352            SHLIB_LD_LIBS='${LIBS}'
7353            SHLIB_SUFFIX=".so"
7354            DL_OBJS="tclLoadDl.o"
7355            DL_LIBS="-ldl"
7356            if test "$GCC" = "yes" ; then
7357                SHLIB_LD="$CC -shared"
7358                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7359                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7360            else
7361                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7362                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7363                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7364            fi
7365            ;;
7366        SunOS-5*)
7367            # Note: If _REENTRANT isn't defined, then Solaris
7368            # won't define thread-safe library routines.
7369
7370            $as_echo "#define _REENTRANT 1" >>confdefs.h
7371
7372            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7373
7374
7375            SHLIB_CFLAGS="-KPIC"
7376
7377            # Check to enable 64-bit flags for compiler/linker
7378            if test "$do64bit" = "yes" ; then
7379                arch=`isainfo`
7380                if test "$arch" = "sparcv9 sparc" ; then
7381                        if test "$GCC" = "yes" ; then
7382                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
7383                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
7384$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
7385                            else
7386                                do64bit_ok=yes
7387                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
7388                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
7389                                SHLIB_CFLAGS="-fPIC"
7390                            fi
7391                        else
7392                            do64bit_ok=yes
7393                            if test "$do64bitVIS" = "yes" ; then
7394                                CFLAGS="$CFLAGS -xarch=v9a"
7395                                LDFLAGS="$LDFLAGS -xarch=v9a"
7396                            else
7397                                CFLAGS="$CFLAGS -xarch=v9"
7398                                LDFLAGS="$LDFLAGS -xarch=v9"
7399                            fi
7400                            # Solaris 64 uses this as well
7401                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
7402                        fi
7403                elif test "$arch" = "amd64 i386" ; then
7404                    if test "$GCC" = "yes" ; then
7405                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7406$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7407                    else
7408                        do64bit_ok=yes
7409                        CFLAGS="$CFLAGS -xarch=amd64"
7410                        LDFLAGS="$LDFLAGS -xarch=amd64"
7411                    fi
7412                else
7413                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
7414$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
7415                fi
7416            fi
7417
7418            # Note: need the LIBS below, otherwise Tk won't find Tcl's
7419            # symbols when dynamically loaded into tclsh.
7420
7421            SHLIB_LD_LIBS='${LIBS}'
7422            SHLIB_SUFFIX=".so"
7423            DL_OBJS="tclLoadDl.o"
7424            DL_LIBS="-ldl"
7425            if test "$GCC" = "yes" ; then
7426                SHLIB_LD="$CC -shared"
7427                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7428                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7429                if test "$do64bit_ok" = "yes" ; then
7430                    # We need to specify -static-libgcc or we need to
7431                    # add the path to the sparv9 libgcc.
7432                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
7433                    # for finding sparcv9 libgcc, get the regular libgcc
7434                    # path, remove so name and append 'sparcv9'
7435                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
7436                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
7437                fi
7438            else
7439                case $system in
7440                    SunOS-5.[1-9][0-9]*)
7441                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
7442                    *)
7443                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
7444                esac
7445                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7446                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7447            fi
7448            ;;
7449        ULTRIX-4.*)
7450            SHLIB_CFLAGS="-G 0"
7451            SHLIB_SUFFIX=".a"
7452            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7453            SHLIB_LD_LIBS='${LIBS}'
7454            DL_OBJS="tclLoadAout.o"
7455            DL_LIBS=""
7456            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
7457            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7458            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7459            if test "$GCC" != "yes" ; then
7460                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
7461            fi
7462            ;;
7463        UNIX_SV* | UnixWare-5*)
7464            SHLIB_CFLAGS="-KPIC"
7465            SHLIB_LD="cc -G"
7466            SHLIB_LD_LIBS=""
7467            SHLIB_SUFFIX=".so"
7468            DL_OBJS="tclLoadDl.o"
7469            DL_LIBS="-ldl"
7470            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7471            # that don't grok the -Bexport option.  Test that it does.
7472            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
7473$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
7474if ${tcl_cv_ld_Bexport+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477
7478                hold_ldflags=$LDFLAGS
7479                LDFLAGS="$LDFLAGS -Wl,-Bexport"
7480                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482
7483int
7484main ()
7485{
7486int i;
7487  ;
7488  return 0;
7489}
7490_ACEOF
7491if ac_fn_cxx_try_link "$LINENO"; then :
7492  tcl_cv_ld_Bexport=yes
7493else
7494  tcl_cv_ld_Bexport=no
7495fi
7496rm -f core conftest.err conftest.$ac_objext \
7497    conftest$ac_exeext conftest.$ac_ext
7498                LDFLAGS=$hold_ldflags
7499fi
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
7501$as_echo "$tcl_cv_ld_Bexport" >&6; }
7502            if test $tcl_cv_ld_Bexport = yes; then
7503                LDFLAGS="$LDFLAGS -Wl,-Bexport"
7504            fi
7505            CC_SEARCH_FLAGS=""
7506            LD_SEARCH_FLAGS=""
7507            ;;
7508    esac
7509
7510    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
7511        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
7512$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
7513    fi
7514
7515
7516
7517
7518    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
7519    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
7520    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
7521    # to determine which of several header files defines the a.out file
7522    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
7523    # support only a file format that is more or less version-7-compatible.
7524    # In particular,
7525    #   - a.out files must begin with `struct exec'.
7526    #   - the N_TXTOFF on the `struct exec' must compute the seek address
7527    #     of the text segment
7528    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
7529    #     and a_entry fields.
7530    # The following compilation should succeed if and only if either sys/exec.h
7531    # or a.out.h is usable for the purpose.
7532    #
7533    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
7534    # `struct exec' includes a second header that contains information that
7535    # duplicates the v7 fields that are needed.
7536
7537    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
7538        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
7539$as_echo_n "checking sys/exec.h... " >&6; }
7540if ${tcl_cv_sysexec_h+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543
7544        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546#include <sys/exec.h>
7547int
7548main ()
7549{
7550
7551            struct exec foo;
7552            unsigned long seek;
7553            int flag;
7554#if defined(__mips) || defined(mips)
7555            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
7556#else
7557            seek = N_TXTOFF (foo);
7558#endif
7559            flag = (foo.a_magic == OMAGIC);
7560            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
7561
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566if ac_fn_cxx_try_compile "$LINENO"; then :
7567  tcl_cv_sysexec_h=usable
7568else
7569  tcl_cv_sysexec_h=unusable
7570fi
7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
7574$as_echo "$tcl_cv_sysexec_h" >&6; }
7575        if test $tcl_cv_sysexec_h = usable; then
7576            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
7577
7578        else
7579            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
7580$as_echo_n "checking a.out.h... " >&6; }
7581if ${tcl_cv_aout_h+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584
7585            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587#include <a.out.h>
7588int
7589main ()
7590{
7591
7592                struct exec foo;
7593                unsigned long seek;
7594                int flag;
7595#if defined(__mips) || defined(mips)
7596                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
7597#else
7598                seek = N_TXTOFF (foo);
7599#endif
7600                flag = (foo.a_magic == OMAGIC);
7601                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
7602
7603  ;
7604  return 0;
7605}
7606_ACEOF
7607if ac_fn_cxx_try_compile "$LINENO"; then :
7608  tcl_cv_aout_h=usable
7609else
7610  tcl_cv_aout_h=unusable
7611fi
7612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613fi
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
7615$as_echo "$tcl_cv_aout_h" >&6; }
7616            if test $tcl_cv_aout_h = usable; then
7617                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
7618
7619            else
7620                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
7621$as_echo_n "checking sys/exec_aout.h... " >&6; }
7622if ${tcl_cv_sysexecaout_h+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625
7626                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628#include <sys/exec_aout.h>
7629int
7630main ()
7631{
7632
7633                    struct exec foo;
7634                    unsigned long seek;
7635                    int flag;
7636#if defined(__mips) || defined(mips)
7637                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
7638#else
7639                    seek = N_TXTOFF (foo);
7640#endif
7641                    flag = (foo.a_midmag == OMAGIC);
7642                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_cxx_try_compile "$LINENO"; then :
7649  tcl_cv_sysexecaout_h=usable
7650else
7651  tcl_cv_sysexecaout_h=unusable
7652fi
7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
7656$as_echo "$tcl_cv_sysexecaout_h" >&6; }
7657                if test $tcl_cv_sysexecaout_h = usable; then
7658                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
7659
7660                else
7661                    DL_OBJS=""
7662                fi
7663            fi
7664        fi
7665    fi
7666
7667    # Step 5: disable dynamic loading if requested via a command-line switch.
7668
7669    # Check whether --enable-load was given.
7670if test "${enable_load+set}" = set; then :
7671  enableval=$enable_load; tcl_ok=$enableval
7672else
7673  tcl_ok=yes
7674fi
7675
7676    if test "$tcl_ok" = "no"; then
7677        DL_OBJS=""
7678    fi
7679
7680    if test "x$DL_OBJS" != "x" ; then
7681        BUILD_DLTEST="\$(DLTEST_TARGETS)"
7682    else
7683        echo "Can't figure out how to do dynamic loading or shared libraries"
7684        echo "on this system."
7685        SHLIB_CFLAGS=""
7686        SHLIB_LD=""
7687        SHLIB_SUFFIX=""
7688        DL_OBJS="tclLoadNone.o"
7689        DL_LIBS=""
7690        LDFLAGS="$LDFLAGS_ORIG"
7691        CC_SEARCH_FLAGS=""
7692        LD_SEARCH_FLAGS=""
7693        BUILD_DLTEST=""
7694    fi
7695
7696    # If we're running gcc, then change the C flags for compiling shared
7697    # libraries to the right flags for gcc, instead of those for the
7698    # standard manufacturer compiler.
7699
7700    if test "$DL_OBJS" != "tclLoadNone.o" ; then
7701        if test "$GCC" = "yes" ; then
7702            case $system in
7703                AIX-*)
7704                    ;;
7705                BSD/OS*)
7706                    ;;
7707                IRIX*)
7708                    ;;
7709                NetBSD-*|FreeBSD-*|OpenBSD-*)
7710                    ;;
7711                Darwin-*)
7712                    ;;
7713                RISCos-*)
7714                    ;;
7715                SCO_SV-3.2*)
7716                    ;;
7717                ULTRIX-4.*)
7718                    ;;
7719                *)
7720                    SHLIB_CFLAGS="-fPIC"
7721                    ;;
7722            esac
7723        fi
7724    fi
7725
7726    if test "$SHARED_LIB_SUFFIX" = "" ; then
7727        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
7728    fi
7729    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
7730        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
7731    fi
7732
7733    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
7734        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
7735        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
7736        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
7737    else
7738        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
7739
7740        if test "$RANLIB" = "" ; then
7741            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
7742            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
7743        else
7744            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
7745            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
7746        fi
7747
7748    fi
7749
7750
7751    # Stub lib does not depend on shared/static configuration
7752    if test "$RANLIB" = "" ; then
7753        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
7754        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
7755    else
7756        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
7757        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
7758    fi
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
7793$as_echo_n "checking for build with symbols... " >&6; }
7794    # Check whether --enable-symbols was given.
7795if test "${enable_symbols+set}" = set; then :
7796  enableval=$enable_symbols; tcl_ok=$enableval
7797else
7798  tcl_ok=no
7799fi
7800
7801# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
7802    if test "$tcl_ok" = "no"; then
7803        CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
7804        LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
7805        DBGX=""
7806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
7808    else
7809        CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
7810        LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
7811        DBGX=g
7812        if test "$tcl_ok" = "yes"; then
7813            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
7814$as_echo "yes (standard debugging)" >&6; }
7815        fi
7816    fi
7817
7818
7819
7820    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
7821        $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7822
7823    fi
7824
7825    if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
7826        $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h
7827
7828        $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h
7829
7830    fi
7831
7832    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
7833        if test "$tcl_ok" = "all"; then
7834            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5
7835$as_echo "enabled symbols mem compile debugging" >&6; }
7836        else
7837            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
7838$as_echo "enabled $tcl_ok debugging" >&6; }
7839        fi
7840    fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850MAKE=${make_command}
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902ac_config_files="$ac_config_files DicomToVtk/Makefile DicomToVtk/pkgIndex.tcl DxToVtk/Makefile DxToVtk/pkgIndex.tcl Makefile PdbToVtk/Makefile PdbToVtk/pkgIndex.tcl builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile diffview/Makefile diffview/pkgIndex.tcl hotspot/Makefile hotspot/pkgIndex.tcl listbox/Makefile listbox/pkgIndex.tcl objects/Makefile p2p/Makefile placard/Makefile placard/pkgIndex.tcl readpoints/Makefile readpoints/pkgIndex.tcl runner/Makefile runner/pkgIndex.tcl runner/scripts/Makefile squeezer/Makefile squeezer/pkgIndex.tcl system/Makefile system/pkgIndex.tcl tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile"
7903
7904cat >confcache <<\_ACEOF
7905# This file is a shell script that caches the results of configure
7906# tests run on this system so they can be shared between configure
7907# scripts and configure runs, see configure's option --config-cache.
7908# It is not useful on other systems.  If it contains results you don't
7909# want to keep, you may remove or edit it.
7910#
7911# config.status only pays attention to the cache file if you give it
7912# the --recheck option to rerun configure.
7913#
7914# `ac_cv_env_foo' variables (set or unset) will be overridden when
7915# loading this file, other *unset* `ac_cv_foo' will be assigned the
7916# following values.
7917
7918_ACEOF
7919
7920# The following way of writing the cache mishandles newlines in values,
7921# but we know of no workaround that is simple, portable, and efficient.
7922# So, we kill variables containing newlines.
7923# Ultrix sh set writes to stderr and can't be redirected directly,
7924# and sets the high bit in the cache file unless we assign to the vars.
7925(
7926  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7927    eval ac_val=\$$ac_var
7928    case $ac_val in #(
7929    *${as_nl}*)
7930      case $ac_var in #(
7931      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7932$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7933      esac
7934      case $ac_var in #(
7935      _ | IFS | as_nl) ;; #(
7936      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7937      *) { eval $ac_var=; unset $ac_var;} ;;
7938      esac ;;
7939    esac
7940  done
7941
7942  (set) 2>&1 |
7943    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7944    *${as_nl}ac_space=\ *)
7945      # `set' does not quote correctly, so add quotes: double-quote
7946      # substitution turns \\\\ into \\, and sed turns \\ into \.
7947      sed -n \
7948        "s/'/'\\\\''/g;
7949          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7950      ;; #(
7951    *)
7952      # `set' quotes correctly as required by POSIX, so do not add quotes.
7953      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7954      ;;
7955    esac |
7956    sort
7957) |
7958  sed '
7959     /^ac_cv_env_/b end
7960     t clear
7961     :clear
7962     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7963     t end
7964     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7965     :end' >>confcache
7966if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7967  if test -w "$cache_file"; then
7968    if test "x$cache_file" != "x/dev/null"; then
7969      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7970$as_echo "$as_me: updating cache $cache_file" >&6;}
7971      if test ! -f "$cache_file" || test -h "$cache_file"; then
7972        cat confcache >"$cache_file"
7973      else
7974        case $cache_file in #(
7975        */* | ?:*)
7976          mv -f confcache "$cache_file"$$ &&
7977          mv -f "$cache_file"$$ "$cache_file" ;; #(
7978        *)
7979          mv -f confcache "$cache_file" ;;
7980        esac
7981      fi
7982    fi
7983  else
7984    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7985$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7986  fi
7987fi
7988rm -f confcache
7989
7990test "x$prefix" = xNONE && prefix=$ac_default_prefix
7991# Let make expand exec_prefix.
7992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7993
7994DEFS=-DHAVE_CONFIG_H
7995
7996ac_libobjs=
7997ac_ltlibobjs=
7998U=
7999for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8000  # 1. Remove the extension, and $U if already installed.
8001  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8002  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8003  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8004  #    will be set to the directory where LIBOBJS objects are built.
8005  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8006  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8007done
8008LIBOBJS=$ac_libobjs
8009
8010LTLIBOBJS=$ac_ltlibobjs
8011
8012
8013
8014
8015: "${CONFIG_STATUS=./config.status}"
8016ac_write_fail=0
8017ac_clean_files_save=$ac_clean_files
8018ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8020$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8021as_write_fail=0
8022cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8023#! $SHELL
8024# Generated by $as_me.
8025# Run this file to recreate the current configuration.
8026# Compiler output produced by configure, useful for debugging
8027# configure, is in config.log if it exists.
8028
8029debug=false
8030ac_cs_recheck=false
8031ac_cs_silent=false
8032
8033SHELL=\${CONFIG_SHELL-$SHELL}
8034export SHELL
8035_ASEOF
8036cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8037## -------------------- ##
8038## M4sh Initialization. ##
8039## -------------------- ##
8040
8041# Be more Bourne compatible
8042DUALCASE=1; export DUALCASE # for MKS sh
8043if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8044  emulate sh
8045  NULLCMD=:
8046  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8047  # is contrary to our usage.  Disable this feature.
8048  alias -g '${1+"$@"}'='"$@"'
8049  setopt NO_GLOB_SUBST
8050else
8051  case `(set -o) 2>/dev/null` in #(
8052  *posix*) :
8053    set -o posix ;; #(
8054  *) :
8055     ;;
8056esac
8057fi
8058
8059
8060as_nl='
8061'
8062export as_nl
8063# Printing a long string crashes Solaris 7 /usr/bin/printf.
8064as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8065as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8066as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8067# Prefer a ksh shell builtin over an external printf program on Solaris,
8068# but without wasting forks for bash or zsh.
8069if test -z "$BASH_VERSION$ZSH_VERSION" \
8070    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8071  as_echo='print -r --'
8072  as_echo_n='print -rn --'
8073elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8074  as_echo='printf %s\n'
8075  as_echo_n='printf %s'
8076else
8077  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8078    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8079    as_echo_n='/usr/ucb/echo -n'
8080  else
8081    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8082    as_echo_n_body='eval
8083      arg=$1;
8084      case $arg in #(
8085      *"$as_nl"*)
8086        expr "X$arg" : "X\\(.*\\)$as_nl";
8087        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8088      esac;
8089      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8090    '
8091    export as_echo_n_body
8092    as_echo_n='sh -c $as_echo_n_body as_echo'
8093  fi
8094  export as_echo_body
8095  as_echo='sh -c $as_echo_body as_echo'
8096fi
8097
8098# The user is always right.
8099if test "${PATH_SEPARATOR+set}" != set; then
8100  PATH_SEPARATOR=:
8101  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8102    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8103      PATH_SEPARATOR=';'
8104  }
8105fi
8106
8107
8108# IFS
8109# We need space, tab and new line, in precisely that order.  Quoting is
8110# there to prevent editors from complaining about space-tab.
8111# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8112# splitting by setting IFS to empty value.)
8113IFS=" ""        $as_nl"
8114
8115# Find who we are.  Look in the path if we contain no directory separator.
8116as_myself=
8117case $0 in #((
8118  *[\\/]* ) as_myself=$0 ;;
8119  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122  IFS=$as_save_IFS
8123  test -z "$as_dir" && as_dir=.
8124    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8125  done
8126IFS=$as_save_IFS
8127
8128     ;;
8129esac
8130# We did not find ourselves, most probably we were run as `sh COMMAND'
8131# in which case we are not to be found in the path.
8132if test "x$as_myself" = x; then
8133  as_myself=$0
8134fi
8135if test ! -f "$as_myself"; then
8136  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8137  exit 1
8138fi
8139
8140# Unset variables that we do not need and which cause bugs (e.g. in
8141# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8142# suppresses any "Segmentation fault" message there.  '((' could
8143# trigger a bug in pdksh 5.2.14.
8144for as_var in BASH_ENV ENV MAIL MAILPATH
8145do eval test x\${$as_var+set} = xset \
8146  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8147done
8148PS1='$ '
8149PS2='> '
8150PS4='+ '
8151
8152# NLS nuisances.
8153LC_ALL=C
8154export LC_ALL
8155LANGUAGE=C
8156export LANGUAGE
8157
8158# CDPATH.
8159(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8160
8161
8162# as_fn_error STATUS ERROR [LINENO LOG_FD]
8163# ----------------------------------------
8164# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8165# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8166# script with STATUS, using 1 if that was 0.
8167as_fn_error ()
8168{
8169  as_status=$1; test $as_status -eq 0 && as_status=1
8170  if test "$4"; then
8171    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8172    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8173  fi
8174  $as_echo "$as_me: error: $2" >&2
8175  as_fn_exit $as_status
8176} # as_fn_error
8177
8178
8179# as_fn_set_status STATUS
8180# -----------------------
8181# Set $? to STATUS, without forking.
8182as_fn_set_status ()
8183{
8184  return $1
8185} # as_fn_set_status
8186
8187# as_fn_exit STATUS
8188# -----------------
8189# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8190as_fn_exit ()
8191{
8192  set +e
8193  as_fn_set_status $1
8194  exit $1
8195} # as_fn_exit
8196
8197# as_fn_unset VAR
8198# ---------------
8199# Portably unset VAR.
8200as_fn_unset ()
8201{
8202  { eval $1=; unset $1;}
8203}
8204as_unset=as_fn_unset
8205# as_fn_append VAR VALUE
8206# ----------------------
8207# Append the text in VALUE to the end of the definition contained in VAR. Take
8208# advantage of any shell optimizations that allow amortized linear growth over
8209# repeated appends, instead of the typical quadratic growth present in naive
8210# implementations.
8211if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8212  eval 'as_fn_append ()
8213  {
8214    eval $1+=\$2
8215  }'
8216else
8217  as_fn_append ()
8218  {
8219    eval $1=\$$1\$2
8220  }
8221fi # as_fn_append
8222
8223# as_fn_arith ARG...
8224# ------------------
8225# Perform arithmetic evaluation on the ARGs, and store the result in the
8226# global $as_val. Take advantage of shells that can avoid forks. The arguments
8227# must be portable across $(()) and expr.
8228if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8229  eval 'as_fn_arith ()
8230  {
8231    as_val=$(( $* ))
8232  }'
8233else
8234  as_fn_arith ()
8235  {
8236    as_val=`expr "$@" || test $? -eq 1`
8237  }
8238fi # as_fn_arith
8239
8240
8241if expr a : '\(a\)' >/dev/null 2>&1 &&
8242   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8243  as_expr=expr
8244else
8245  as_expr=false
8246fi
8247
8248if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8249  as_basename=basename
8250else
8251  as_basename=false
8252fi
8253
8254if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8255  as_dirname=dirname
8256else
8257  as_dirname=false
8258fi
8259
8260as_me=`$as_basename -- "$0" ||
8261$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8262         X"$0" : 'X\(//\)$' \| \
8263         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8264$as_echo X/"$0" |
8265    sed '/^.*\/\([^/][^/]*\)\/*$/{
8266            s//\1/
8267            q
8268          }
8269          /^X\/\(\/\/\)$/{
8270            s//\1/
8271            q
8272          }
8273          /^X\/\(\/\).*/{
8274            s//\1/
8275            q
8276          }
8277          s/.*/./; q'`
8278
8279# Avoid depending upon Character Ranges.
8280as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8282as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8283as_cr_digits='0123456789'
8284as_cr_alnum=$as_cr_Letters$as_cr_digits
8285
8286ECHO_C= ECHO_N= ECHO_T=
8287case `echo -n x` in #(((((
8288-n*)
8289  case `echo 'xy\c'` in
8290  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8291  xy)  ECHO_C='\c';;
8292  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8293       ECHO_T=' ';;
8294  esac;;
8295*)
8296  ECHO_N='-n';;
8297esac
8298
8299rm -f conf$$ conf$$.exe conf$$.file
8300if test -d conf$$.dir; then
8301  rm -f conf$$.dir/conf$$.file
8302else
8303  rm -f conf$$.dir
8304  mkdir conf$$.dir 2>/dev/null
8305fi
8306if (echo >conf$$.file) 2>/dev/null; then
8307  if ln -s conf$$.file conf$$ 2>/dev/null; then
8308    as_ln_s='ln -s'
8309    # ... but there are two gotchas:
8310    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8311    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8312    # In both cases, we have to default to `cp -pR'.
8313    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8314      as_ln_s='cp -pR'
8315  elif ln conf$$.file conf$$ 2>/dev/null; then
8316    as_ln_s=ln
8317  else
8318    as_ln_s='cp -pR'
8319  fi
8320else
8321  as_ln_s='cp -pR'
8322fi
8323rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8324rmdir conf$$.dir 2>/dev/null
8325
8326
8327# as_fn_mkdir_p
8328# -------------
8329# Create "$as_dir" as a directory, including parents if necessary.
8330as_fn_mkdir_p ()
8331{
8332
8333  case $as_dir in #(
8334  -*) as_dir=./$as_dir;;
8335  esac
8336  test -d "$as_dir" || eval $as_mkdir_p || {
8337    as_dirs=
8338    while :; do
8339      case $as_dir in #(
8340      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8341      *) as_qdir=$as_dir;;
8342      esac
8343      as_dirs="'$as_qdir' $as_dirs"
8344      as_dir=`$as_dirname -- "$as_dir" ||
8345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8346         X"$as_dir" : 'X\(//\)[^/]' \| \
8347         X"$as_dir" : 'X\(//\)$' \| \
8348         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8349$as_echo X"$as_dir" |
8350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8351            s//\1/
8352            q
8353          }
8354          /^X\(\/\/\)[^/].*/{
8355            s//\1/
8356            q
8357          }
8358          /^X\(\/\/\)$/{
8359            s//\1/
8360            q
8361          }
8362          /^X\(\/\).*/{
8363            s//\1/
8364            q
8365          }
8366          s/.*/./; q'`
8367      test -d "$as_dir" && break
8368    done
8369    test -z "$as_dirs" || eval "mkdir $as_dirs"
8370  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8371
8372
8373} # as_fn_mkdir_p
8374if mkdir -p . 2>/dev/null; then
8375  as_mkdir_p='mkdir -p "$as_dir"'
8376else
8377  test -d ./-p && rmdir ./-p
8378  as_mkdir_p=false
8379fi
8380
8381
8382# as_fn_executable_p FILE
8383# -----------------------
8384# Test if FILE is an executable regular file.
8385as_fn_executable_p ()
8386{
8387  test -f "$1" && test -x "$1"
8388} # as_fn_executable_p
8389as_test_x='test -x'
8390as_executable_p=as_fn_executable_p
8391
8392# Sed expression to map a string onto a valid CPP name.
8393as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8394
8395# Sed expression to map a string onto a valid variable name.
8396as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8397
8398
8399exec 6>&1
8400## ----------------------------------- ##
8401## Main body of $CONFIG_STATUS script. ##
8402## ----------------------------------- ##
8403_ASEOF
8404test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8405
8406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8407# Save the log message, to keep $0 and so on meaningful, and to
8408# report actual input values of CONFIG_FILES etc. instead of their
8409# values after options handling.
8410ac_log="
8411This file was extended by Rappture $as_me 1.5, which was
8412generated by GNU Autoconf 2.69.  Invocation command line was
8413
8414  CONFIG_FILES    = $CONFIG_FILES
8415  CONFIG_HEADERS  = $CONFIG_HEADERS
8416  CONFIG_LINKS    = $CONFIG_LINKS
8417  CONFIG_COMMANDS = $CONFIG_COMMANDS
8418  $ $0 $@
8419
8420on `(hostname || uname -n) 2>/dev/null | sed 1q`
8421"
8422
8423_ACEOF
8424
8425case $ac_config_files in *"
8426"*) set x $ac_config_files; shift; ac_config_files=$*;;
8427esac
8428
8429case $ac_config_headers in *"
8430"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8431esac
8432
8433
8434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8435# Files that config.status was made for.
8436config_files="$ac_config_files"
8437config_headers="$ac_config_headers"
8438
8439_ACEOF
8440
8441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8442ac_cs_usage="\
8443\`$as_me' instantiates files and other configuration actions
8444from templates according to the current configuration.  Unless the files
8445and actions are specified as TAGs, all are instantiated by default.
8446
8447Usage: $0 [OPTION]... [TAG]...
8448
8449  -h, --help       print this help, then exit
8450  -V, --version    print version number and configuration settings, then exit
8451      --config     print configuration, then exit
8452  -q, --quiet, --silent
8453                   do not print progress messages
8454  -d, --debug      don't remove temporary files
8455      --recheck    update $as_me by reconfiguring in the same conditions
8456      --file=FILE[:TEMPLATE]
8457                   instantiate the configuration file FILE
8458      --header=FILE[:TEMPLATE]
8459                   instantiate the configuration header FILE
8460
8461Configuration files:
8462$config_files
8463
8464Configuration headers:
8465$config_headers
8466
8467Report bugs to <rappture@nanohub.org>."
8468
8469_ACEOF
8470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8471ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8472ac_cs_version="\\
8473Rappture config.status 1.5
8474configured by $0, generated by GNU Autoconf 2.69,
8475  with options \\"\$ac_cs_config\\"
8476
8477Copyright (C) 2012 Free Software Foundation, Inc.
8478This config.status script is free software; the Free Software Foundation
8479gives unlimited permission to copy, distribute and modify it."
8480
8481ac_pwd='$ac_pwd'
8482srcdir='$srcdir'
8483INSTALL='$INSTALL'
8484MKDIR_P='$MKDIR_P'
8485test -n "\$AWK" || AWK=awk
8486_ACEOF
8487
8488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8489# The default lists apply if the user does not specify any file.
8490ac_need_defaults=:
8491while test $# != 0
8492do
8493  case $1 in
8494  --*=?*)
8495    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8496    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8497    ac_shift=:
8498    ;;
8499  --*=)
8500    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8501    ac_optarg=
8502    ac_shift=:
8503    ;;
8504  *)
8505    ac_option=$1
8506    ac_optarg=$2
8507    ac_shift=shift
8508    ;;
8509  esac
8510
8511  case $ac_option in
8512  # Handling of the options.
8513  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8514    ac_cs_recheck=: ;;
8515  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8516    $as_echo "$ac_cs_version"; exit ;;
8517  --config | --confi | --conf | --con | --co | --c )
8518    $as_echo "$ac_cs_config"; exit ;;
8519  --debug | --debu | --deb | --de | --d | -d )
8520    debug=: ;;
8521  --file | --fil | --fi | --f )
8522    $ac_shift
8523    case $ac_optarg in
8524    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8525    '') as_fn_error $? "missing file argument" ;;
8526    esac
8527    as_fn_append CONFIG_FILES " '$ac_optarg'"
8528    ac_need_defaults=false;;
8529  --header | --heade | --head | --hea )
8530    $ac_shift
8531    case $ac_optarg in
8532    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8533    esac
8534    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8535    ac_need_defaults=false;;
8536  --he | --h)
8537    # Conflict between --help and --header
8538    as_fn_error $? "ambiguous option: \`$1'
8539Try \`$0 --help' for more information.";;
8540  --help | --hel | -h )
8541    $as_echo "$ac_cs_usage"; exit ;;
8542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8543  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8544    ac_cs_silent=: ;;
8545
8546  # This is an error.
8547  -*) as_fn_error $? "unrecognized option: \`$1'
8548Try \`$0 --help' for more information." ;;
8549
8550  *) as_fn_append ac_config_targets " $1"
8551     ac_need_defaults=false ;;
8552
8553  esac
8554  shift
8555done
8556
8557ac_configure_extra_args=
8558
8559if $ac_cs_silent; then
8560  exec 6>/dev/null
8561  ac_configure_extra_args="$ac_configure_extra_args --silent"
8562fi
8563
8564_ACEOF
8565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8566if \$ac_cs_recheck; then
8567  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8568  shift
8569  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8570  CONFIG_SHELL='$SHELL'
8571  export CONFIG_SHELL
8572  exec "\$@"
8573fi
8574
8575_ACEOF
8576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8577exec 5>>config.log
8578{
8579  echo
8580  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8581## Running $as_me. ##
8582_ASBOX
8583  $as_echo "$ac_log"
8584} >&5
8585
8586_ACEOF
8587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8588_ACEOF
8589
8590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8591
8592# Handling of arguments.
8593for ac_config_target in $ac_config_targets
8594do
8595  case $ac_config_target in
8596    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8597    "DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES DicomToVtk/Makefile" ;;
8598    "DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES DicomToVtk/pkgIndex.tcl" ;;
8599    "DxToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES DxToVtk/Makefile" ;;
8600    "DxToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES DxToVtk/pkgIndex.tcl" ;;
8601    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8602    "PdbToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES PdbToVtk/Makefile" ;;
8603    "PdbToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES PdbToVtk/pkgIndex.tcl" ;;
8604    "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;;
8605    "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
8606    "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;
8607    "diffview/Makefile") CONFIG_FILES="$CONFIG_FILES diffview/Makefile" ;;
8608    "diffview/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES diffview/pkgIndex.tcl" ;;
8609    "hotspot/Makefile") CONFIG_FILES="$CONFIG_FILES hotspot/Makefile" ;;
8610    "hotspot/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES hotspot/pkgIndex.tcl" ;;
8611    "listbox/Makefile") CONFIG_FILES="$CONFIG_FILES listbox/Makefile" ;;
8612    "listbox/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES listbox/pkgIndex.tcl" ;;
8613    "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
8614    "p2p/Makefile") CONFIG_FILES="$CONFIG_FILES p2p/Makefile" ;;
8615    "placard/Makefile") CONFIG_FILES="$CONFIG_FILES placard/Makefile" ;;
8616    "placard/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES placard/pkgIndex.tcl" ;;
8617    "readpoints/Makefile") CONFIG_FILES="$CONFIG_FILES readpoints/Makefile" ;;
8618    "readpoints/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES readpoints/pkgIndex.tcl" ;;
8619    "runner/Makefile") CONFIG_FILES="$CONFIG_FILES runner/Makefile" ;;
8620    "runner/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES runner/pkgIndex.tcl" ;;
8621    "runner/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES runner/scripts/Makefile" ;;
8622    "squeezer/Makefile") CONFIG_FILES="$CONFIG_FILES squeezer/Makefile" ;;
8623    "squeezer/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES squeezer/pkgIndex.tcl" ;;
8624    "system/Makefile") CONFIG_FILES="$CONFIG_FILES system/Makefile" ;;
8625    "system/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES system/pkgIndex.tcl" ;;
8626    "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;
8627    "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;
8628    "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;;
8629
8630  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8631  esac
8632done
8633
8634
8635# If the user did not use the arguments to specify the items to instantiate,
8636# then the envvar interface is used.  Set only those that are not.
8637# We use the long form for the default assignment because of an extremely
8638# bizarre bug on SunOS 4.1.3.
8639if $ac_need_defaults; then
8640  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8641  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8642fi
8643
8644# Have a temporary directory for convenience.  Make it in the build tree
8645# simply because there is no reason against having it here, and in addition,
8646# creating and moving files from /tmp can sometimes cause problems.
8647# Hook for its removal unless debugging.
8648# Note that there is a small window in which the directory will not be cleaned:
8649# after its creation but before its name has been assigned to `$tmp'.
8650$debug ||
8651{
8652  tmp= ac_tmp=
8653  trap 'exit_status=$?
8654  : "${ac_tmp:=$tmp}"
8655  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8656' 0
8657  trap 'as_fn_exit 1' 1 2 13 15
8658}
8659# Create a (secure) tmp directory for tmp files.
8660
8661{
8662  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8663  test -d "$tmp"
8664}  ||
8665{
8666  tmp=./conf$$-$RANDOM
8667  (umask 077 && mkdir "$tmp")
8668} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8669ac_tmp=$tmp
8670
8671# Set up the scripts for CONFIG_FILES section.
8672# No need to generate them if there are no CONFIG_FILES.
8673# This happens for instance with `./config.status config.h'.
8674if test -n "$CONFIG_FILES"; then
8675
8676
8677ac_cr=`echo X | tr X '\015'`
8678# On cygwin, bash can eat \r inside `` if the user requested igncr.
8679# But we know of no other shell where ac_cr would be empty at this
8680# point, so we can use a bashism as a fallback.
8681if test "x$ac_cr" = x; then
8682  eval ac_cr=\$\'\\r\'
8683fi
8684ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8685if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8686  ac_cs_awk_cr='\\r'
8687else
8688  ac_cs_awk_cr=$ac_cr
8689fi
8690
8691echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8692_ACEOF
8693
8694
8695{
8696  echo "cat >conf$$subs.awk <<_ACEOF" &&
8697  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8698  echo "_ACEOF"
8699} >conf$$subs.sh ||
8700  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8701ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8702ac_delim='%!_!# '
8703for ac_last_try in false false false false false :; do
8704  . ./conf$$subs.sh ||
8705    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8706
8707  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8708  if test $ac_delim_n = $ac_delim_num; then
8709    break
8710  elif $ac_last_try; then
8711    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8712  else
8713    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8714  fi
8715done
8716rm -f conf$$subs.sh
8717
8718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8719cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8720_ACEOF
8721sed -n '
8722h
8723s/^/S["/; s/!.*/"]=/
8724p
8725g
8726s/^[^!]*!//
8727:repl
8728t repl
8729s/'"$ac_delim"'$//
8730t delim
8731:nl
8732h
8733s/\(.\{148\}\)..*/\1/
8734t more1
8735s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8736p
8737n
8738b repl
8739:more1
8740s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8741p
8742g
8743s/.\{148\}//
8744t nl
8745:delim
8746h
8747s/\(.\{148\}\)..*/\1/
8748t more2
8749s/["\\]/\\&/g; s/^/"/; s/$/"/
8750p
8751b
8752:more2
8753s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8754p
8755g
8756s/.\{148\}//
8757t delim
8758' <conf$$subs.awk | sed '
8759/^[^""]/{
8760  N
8761  s/\n//
8762}
8763' >>$CONFIG_STATUS || ac_write_fail=1
8764rm -f conf$$subs.awk
8765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8766_ACAWK
8767cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8768  for (key in S) S_is_set[key] = 1
8769  FS = ""
8770
8771}
8772{
8773  line = $ 0
8774  nfields = split(line, field, "@")
8775  substed = 0
8776  len = length(field[1])
8777  for (i = 2; i < nfields; i++) {
8778    key = field[i]
8779    keylen = length(key)
8780    if (S_is_set[key]) {
8781      value = S[key]
8782      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8783      len += length(value) + length(field[++i])
8784      substed = 1
8785    } else
8786      len += 1 + keylen
8787  }
8788
8789  print line
8790}
8791
8792_ACAWK
8793_ACEOF
8794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8795if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8796  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8797else
8798  cat
8799fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8800  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8801_ACEOF
8802
8803# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8804# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8805# trailing colons and then remove the whole line if VPATH becomes empty
8806# (actually we leave an empty line to preserve line numbers).
8807if test "x$srcdir" = x.; then
8808  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8809h
8810s///
8811s/^/:/
8812s/[      ]*$/:/
8813s/:\$(srcdir):/:/g
8814s/:\${srcdir}:/:/g
8815s/:@srcdir@:/:/g
8816s/^:*//
8817s/:*$//
8818x
8819s/\(=[   ]*\).*/\1/
8820G
8821s/\n//
8822s/^[^=]*=[       ]*$//
8823}'
8824fi
8825
8826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8827fi # test -n "$CONFIG_FILES"
8828
8829# Set up the scripts for CONFIG_HEADERS section.
8830# No need to generate them if there are no CONFIG_HEADERS.
8831# This happens for instance with `./config.status Makefile'.
8832if test -n "$CONFIG_HEADERS"; then
8833cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8834BEGIN {
8835_ACEOF
8836
8837# Transform confdefs.h into an awk script `defines.awk', embedded as
8838# here-document in config.status, that substitutes the proper values into
8839# config.h.in to produce config.h.
8840
8841# Create a delimiter string that does not exist in confdefs.h, to ease
8842# handling of long lines.
8843ac_delim='%!_!# '
8844for ac_last_try in false false :; do
8845  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8846  if test -z "$ac_tt"; then
8847    break
8848  elif $ac_last_try; then
8849    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8850  else
8851    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8852  fi
8853done
8854
8855# For the awk script, D is an array of macro values keyed by name,
8856# likewise P contains macro parameters if any.  Preserve backslash
8857# newline sequences.
8858
8859ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8860sed -n '
8861s/.\{148\}/&'"$ac_delim"'/g
8862t rset
8863:rset
8864s/^[     ]*#[    ]*define[       ][      ]*/ /
8865t def
8866d
8867:def
8868s/\\$//
8869t bsnl
8870s/["\\]/\\&/g
8871s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8872D["\1"]=" \3"/p
8873s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8874d
8875:bsnl
8876s/["\\]/\\&/g
8877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8878D["\1"]=" \3\\\\\\n"\\/p
8879t cont
8880s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8881t cont
8882d
8883:cont
8884n
8885s/.\{148\}/&'"$ac_delim"'/g
8886t clear
8887:clear
8888s/\\$//
8889t bsnlc
8890s/["\\]/\\&/g; s/^/"/; s/$/"/p
8891d
8892:bsnlc
8893s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8894b cont
8895' <confdefs.h | sed '
8896s/'"$ac_delim"'/"\\\
8897"/g' >>$CONFIG_STATUS || ac_write_fail=1
8898
8899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8900  for (key in D) D_is_set[key] = 1
8901  FS = ""
8902}
8903/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8904  line = \$ 0
8905  split(line, arg, " ")
8906  if (arg[1] == "#") {
8907    defundef = arg[2]
8908    mac1 = arg[3]
8909  } else {
8910    defundef = substr(arg[1], 2)
8911    mac1 = arg[2]
8912  }
8913  split(mac1, mac2, "(") #)
8914  macro = mac2[1]
8915  prefix = substr(line, 1, index(line, defundef) - 1)
8916  if (D_is_set[macro]) {
8917    # Preserve the white space surrounding the "#".
8918    print prefix "define", macro P[macro] D[macro]
8919    next
8920  } else {
8921    # Replace #undef with comments.  This is necessary, for example,
8922    # in the case of _POSIX_SOURCE, which is predefined and required
8923    # on some systems where configure will not decide to define it.
8924    if (defundef == "undef") {
8925      print "/*", prefix defundef, macro, "*/"
8926      next
8927    }
8928  }
8929}
8930{ print }
8931_ACAWK
8932_ACEOF
8933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8934  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8935fi # test -n "$CONFIG_HEADERS"
8936
8937
8938eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8939shift
8940for ac_tag
8941do
8942  case $ac_tag in
8943  :[FHLC]) ac_mode=$ac_tag; continue;;
8944  esac
8945  case $ac_mode$ac_tag in
8946  :[FHL]*:*);;
8947  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8948  :[FH]-) ac_tag=-:-;;
8949  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8950  esac
8951  ac_save_IFS=$IFS
8952  IFS=:
8953  set x $ac_tag
8954  IFS=$ac_save_IFS
8955  shift
8956  ac_file=$1
8957  shift
8958
8959  case $ac_mode in
8960  :L) ac_source=$1;;
8961  :[FH])
8962    ac_file_inputs=
8963    for ac_f
8964    do
8965      case $ac_f in
8966      -) ac_f="$ac_tmp/stdin";;
8967      *) # Look for the file first in the build tree, then in the source tree
8968         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8969         # because $ac_f cannot contain `:'.
8970         test -f "$ac_f" ||
8971           case $ac_f in
8972           [\\/$]*) false;;
8973           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8974           esac ||
8975           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8976      esac
8977      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8978      as_fn_append ac_file_inputs " '$ac_f'"
8979    done
8980
8981    # Let's still pretend it is `configure' which instantiates (i.e., don't
8982    # use $as_me), people would be surprised to read:
8983    #    /* config.h.  Generated by config.status.  */
8984    configure_input='Generated from '`
8985          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8986        `' by configure.'
8987    if test x"$ac_file" != x-; then
8988      configure_input="$ac_file.  $configure_input"
8989      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8990$as_echo "$as_me: creating $ac_file" >&6;}
8991    fi
8992    # Neutralize special characters interpreted by sed in replacement strings.
8993    case $configure_input in #(
8994    *\&* | *\|* | *\\* )
8995       ac_sed_conf_input=`$as_echo "$configure_input" |
8996       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8997    *) ac_sed_conf_input=$configure_input;;
8998    esac
8999
9000    case $ac_tag in
9001    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9002      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9003    esac
9004    ;;
9005  esac
9006
9007  ac_dir=`$as_dirname -- "$ac_file" ||
9008$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9009         X"$ac_file" : 'X\(//\)[^/]' \| \
9010         X"$ac_file" : 'X\(//\)$' \| \
9011         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9012$as_echo X"$ac_file" |
9013    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9014            s//\1/
9015            q
9016          }
9017          /^X\(\/\/\)[^/].*/{
9018            s//\1/
9019            q
9020          }
9021          /^X\(\/\/\)$/{
9022            s//\1/
9023            q
9024          }
9025          /^X\(\/\).*/{
9026            s//\1/
9027            q
9028          }
9029          s/.*/./; q'`
9030  as_dir="$ac_dir"; as_fn_mkdir_p
9031  ac_builddir=.
9032
9033case "$ac_dir" in
9034.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9035*)
9036  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9037  # A ".." for each directory in $ac_dir_suffix.
9038  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9039  case $ac_top_builddir_sub in
9040  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9041  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9042  esac ;;
9043esac
9044ac_abs_top_builddir=$ac_pwd
9045ac_abs_builddir=$ac_pwd$ac_dir_suffix
9046# for backward compatibility:
9047ac_top_builddir=$ac_top_build_prefix
9048
9049case $srcdir in
9050  .)  # We are building in place.
9051    ac_srcdir=.
9052    ac_top_srcdir=$ac_top_builddir_sub
9053    ac_abs_top_srcdir=$ac_pwd ;;
9054  [\\/]* | ?:[\\/]* )  # Absolute name.
9055    ac_srcdir=$srcdir$ac_dir_suffix;
9056    ac_top_srcdir=$srcdir
9057    ac_abs_top_srcdir=$srcdir ;;
9058  *) # Relative name.
9059    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9060    ac_top_srcdir=$ac_top_build_prefix$srcdir
9061    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9062esac
9063ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9064
9065
9066  case $ac_mode in
9067  :F)
9068  #
9069  # CONFIG_FILE
9070  #
9071
9072  case $INSTALL in
9073  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9074  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9075  esac
9076  ac_MKDIR_P=$MKDIR_P
9077  case $MKDIR_P in
9078  [\\/$]* | ?:[\\/]* ) ;;
9079  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9080  esac
9081_ACEOF
9082
9083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9084# If the template does not know about datarootdir, expand it.
9085# FIXME: This hack should be removed a few years after 2.60.
9086ac_datarootdir_hack=; ac_datarootdir_seen=
9087ac_sed_dataroot='
9088/datarootdir/ {
9089  p
9090  q
9091}
9092/@datadir@/p
9093/@docdir@/p
9094/@infodir@/p
9095/@localedir@/p
9096/@mandir@/p'
9097case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9098*datarootdir*) ac_datarootdir_seen=yes;;
9099*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9101$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9102_ACEOF
9103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9104  ac_datarootdir_hack='
9105  s&@datadir@&$datadir&g
9106  s&@docdir@&$docdir&g
9107  s&@infodir@&$infodir&g
9108  s&@localedir@&$localedir&g
9109  s&@mandir@&$mandir&g
9110  s&\\\${datarootdir}&$datarootdir&g' ;;
9111esac
9112_ACEOF
9113
9114# Neutralize VPATH when `$srcdir' = `.'.
9115# Shell code in configure.ac might set extrasub.
9116# FIXME: do we really want to maintain this feature?
9117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9118ac_sed_extra="$ac_vpsub
9119$extrasub
9120_ACEOF
9121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9122:t
9123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9124s|@configure_input@|$ac_sed_conf_input|;t t
9125s&@top_builddir@&$ac_top_builddir_sub&;t t
9126s&@top_build_prefix@&$ac_top_build_prefix&;t t
9127s&@srcdir@&$ac_srcdir&;t t
9128s&@abs_srcdir@&$ac_abs_srcdir&;t t
9129s&@top_srcdir@&$ac_top_srcdir&;t t
9130s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9131s&@builddir@&$ac_builddir&;t t
9132s&@abs_builddir@&$ac_abs_builddir&;t t
9133s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9134s&@INSTALL@&$ac_INSTALL&;t t
9135s&@MKDIR_P@&$ac_MKDIR_P&;t t
9136$ac_datarootdir_hack
9137"
9138eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9139  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9140
9141test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9142  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9143  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9144      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9145  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9146which seems to be undefined.  Please make sure it is defined" >&5
9147$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9148which seems to be undefined.  Please make sure it is defined" >&2;}
9149
9150  rm -f "$ac_tmp/stdin"
9151  case $ac_file in
9152  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9153  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9154  esac \
9155  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9156 ;;
9157  :H)
9158  #
9159  # CONFIG_HEADER
9160  #
9161  if test x"$ac_file" != x-; then
9162    {
9163      $as_echo "/* $configure_input  */" \
9164      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9165    } >"$ac_tmp/config.h" \
9166      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9167    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9168      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9169$as_echo "$as_me: $ac_file is unchanged" >&6;}
9170    else
9171      rm -f "$ac_file"
9172      mv "$ac_tmp/config.h" "$ac_file" \
9173        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9174    fi
9175  else
9176    $as_echo "/* $configure_input  */" \
9177      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9178      || as_fn_error $? "could not create -" "$LINENO" 5
9179  fi
9180 ;;
9181
9182
9183  esac
9184
9185done # for ac_tag
9186
9187
9188as_fn_exit 0
9189_ACEOF
9190ac_clean_files=$ac_clean_files_save
9191
9192test $ac_write_fail = 0 ||
9193  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9194
9195
9196# configure is writing to config.log, and then calls config.status.
9197# config.status does its own redirection, appending to config.log.
9198# Unfortunately, on DOS this fails, as config.log is still kept open
9199# by configure, so config.status won't be able to write to it; its
9200# output is simply discarded.  So we exec the FD to /dev/null,
9201# effectively closing config.log, so it can be properly (re)opened and
9202# appended to by config.status.  When coming back to configure, we
9203# need to make the FD available again.
9204if test "$no_create" != yes; then
9205  ac_cs_success=:
9206  ac_config_status_args=
9207  test "$silent" = yes &&
9208    ac_config_status_args="$ac_config_status_args --quiet"
9209  exec 5>/dev/null
9210  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9211  exec 5>>config.log
9212  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9213  # would make configure fail if this is the last instruction.
9214  $ac_cs_success || as_fn_exit 1
9215fi
9216if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9218$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9219fi
9220
9221
Note: See TracBrowser for help on using the repository browser.