source: trunk/packages/vizservers/nanovis/configure @ 4158

Last change on this file since 4158 was 4158, checked in by ldelgass, 6 years ago

update nanovis to use VTK 6.1

  • Property svn:executable set to *
File size: 174.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for nanovis 1.2.
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='nanovis'
582PACKAGE_TARNAME='nanovis'
583PACKAGE_VERSION='1.2'
584PACKAGE_STRING='nanovis 1.2'
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
626VTK_LIB_DIR
627VTK_INC_DIR
628VTK_VERSION
629TCL_VERSION
630TCL_LIB_SPEC
631TCL_INC_SPEC
632STATSDIR
633RP_LIB_DIR
634RP_INC_SPEC
635RP_DIR
636LD_RPATH
637CG_LIB_SPEC
638CG_INC_SPEC
639FFMPEG
640EGREP
641GREP
642CXXCPP
643ac_ct_CXX
644CXXFLAGS
645CXX
646CPP
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
654MKDIR_P
655LN_S
656RANLIB
657INSTALL_DATA
658INSTALL_SCRIPT
659INSTALL_PROGRAM
660target_alias
661host_alias
662build_alias
663LIBS
664ECHO_T
665ECHO_N
666ECHO_C
667DEFS
668mandir
669localedir
670libdir
671psdir
672pdfdir
673dvidir
674htmldir
675infodir
676docdir
677oldincludedir
678includedir
679localstatedir
680sharedstatedir
681sysconfdir
682datadir
683datarootdir
684libexecdir
685sbindir
686bindir
687program_transform_name
688prefix
689exec_prefix
690PACKAGE_URL
691PACKAGE_BUGREPORT
692PACKAGE_STRING
693PACKAGE_VERSION
694PACKAGE_TARNAME
695PACKAGE_NAME
696PATH_SEPARATOR
697SHELL'
698ac_subst_files=''
699ac_user_opts='
700enable_option_checking
701with_tcllib
702with_rappture
703with_vtk_includes
704with_vtk_libs
705with_vtk
706with_ffmpeg
707with_statsdir
708'
709      ac_precious_vars='build_alias
710host_alias
711target_alias
712CC
713CFLAGS
714LDFLAGS
715LIBS
716CPPFLAGS
717CPP
718CXX
719CXXFLAGS
720CCC
721CXXCPP'
722
723
724# Initialize some variables set by options.
725ac_init_help=
726ac_init_version=false
727ac_unrecognized_opts=
728ac_unrecognized_sep=
729# The variables have the same names as the options, with
730# dashes changed to underlines.
731cache_file=/dev/null
732exec_prefix=NONE
733no_create=
734no_recursion=
735prefix=NONE
736program_prefix=NONE
737program_suffix=NONE
738program_transform_name=s,x,x,
739silent=
740site=
741srcdir=
742verbose=
743x_includes=NONE
744x_libraries=NONE
745
746# Installation directory options.
747# These are left unexpanded so users can "make install exec_prefix=/foo"
748# and all the variables that are supposed to be based on exec_prefix
749# by default will actually change.
750# Use braces instead of parens because sh, perl, etc. also accept them.
751# (The list follows the same order as the GNU Coding Standards.)
752bindir='${exec_prefix}/bin'
753sbindir='${exec_prefix}/sbin'
754libexecdir='${exec_prefix}/libexec'
755datarootdir='${prefix}/share'
756datadir='${datarootdir}'
757sysconfdir='${prefix}/etc'
758sharedstatedir='${prefix}/com'
759localstatedir='${prefix}/var'
760includedir='${prefix}/include'
761oldincludedir='/usr/include'
762docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763infodir='${datarootdir}/info'
764htmldir='${docdir}'
765dvidir='${docdir}'
766pdfdir='${docdir}'
767psdir='${docdir}'
768libdir='${exec_prefix}/lib'
769localedir='${datarootdir}/locale'
770mandir='${datarootdir}/man'
771
772ac_prev=
773ac_dashdash=
774for ac_option
775do
776  # If the previous option needs an argument, assign it.
777  if test -n "$ac_prev"; then
778    eval $ac_prev=\$ac_option
779    ac_prev=
780    continue
781  fi
782
783  case $ac_option in
784  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785  *=)   ac_optarg= ;;
786  *)    ac_optarg=yes ;;
787  esac
788
789  # Accept the important Cygnus configure options, so we can diagnose typos.
790
791  case $ac_dashdash$ac_option in
792  --)
793    ac_dashdash=yes ;;
794
795  -bindir | --bindir | --bindi | --bind | --bin | --bi)
796    ac_prev=bindir ;;
797  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798    bindir=$ac_optarg ;;
799
800  -build | --build | --buil | --bui | --bu)
801    ac_prev=build_alias ;;
802  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803    build_alias=$ac_optarg ;;
804
805  -cache-file | --cache-file | --cache-fil | --cache-fi \
806  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807    ac_prev=cache_file ;;
808  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810    cache_file=$ac_optarg ;;
811
812  --config-cache | -C)
813    cache_file=config.cache ;;
814
815  -datadir | --datadir | --datadi | --datad)
816    ac_prev=datadir ;;
817  -datadir=* | --datadir=* | --datadi=* | --datad=*)
818    datadir=$ac_optarg ;;
819
820  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821  | --dataroo | --dataro | --datar)
822    ac_prev=datarootdir ;;
823  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825    datarootdir=$ac_optarg ;;
826
827  -disable-* | --disable-*)
828    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829    # Reject names that are not valid shell variable names.
830    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831      as_fn_error $? "invalid feature name: $ac_useropt"
832    ac_useropt_orig=$ac_useropt
833    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834    case $ac_user_opts in
835      *"
836"enable_$ac_useropt"
837"*) ;;
838      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839         ac_unrecognized_sep=', ';;
840    esac
841    eval enable_$ac_useropt=no ;;
842
843  -docdir | --docdir | --docdi | --doc | --do)
844    ac_prev=docdir ;;
845  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846    docdir=$ac_optarg ;;
847
848  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849    ac_prev=dvidir ;;
850  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851    dvidir=$ac_optarg ;;
852
853  -enable-* | --enable-*)
854    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855    # Reject names that are not valid shell variable names.
856    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857      as_fn_error $? "invalid feature name: $ac_useropt"
858    ac_useropt_orig=$ac_useropt
859    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860    case $ac_user_opts in
861      *"
862"enable_$ac_useropt"
863"*) ;;
864      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865         ac_unrecognized_sep=', ';;
866    esac
867    eval enable_$ac_useropt=\$ac_optarg ;;
868
869  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871  | --exec | --exe | --ex)
872    ac_prev=exec_prefix ;;
873  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875  | --exec=* | --exe=* | --ex=*)
876    exec_prefix=$ac_optarg ;;
877
878  -gas | --gas | --ga | --g)
879    # Obsolete; use --with-gas.
880    with_gas=yes ;;
881
882  -help | --help | --hel | --he | -h)
883    ac_init_help=long ;;
884  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885    ac_init_help=recursive ;;
886  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887    ac_init_help=short ;;
888
889  -host | --host | --hos | --ho)
890    ac_prev=host_alias ;;
891  -host=* | --host=* | --hos=* | --ho=*)
892    host_alias=$ac_optarg ;;
893
894  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895    ac_prev=htmldir ;;
896  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897  | --ht=*)
898    htmldir=$ac_optarg ;;
899
900  -includedir | --includedir | --includedi | --included | --include \
901  | --includ | --inclu | --incl | --inc)
902    ac_prev=includedir ;;
903  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904  | --includ=* | --inclu=* | --incl=* | --inc=*)
905    includedir=$ac_optarg ;;
906
907  -infodir | --infodir | --infodi | --infod | --info | --inf)
908    ac_prev=infodir ;;
909  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910    infodir=$ac_optarg ;;
911
912  -libdir | --libdir | --libdi | --libd)
913    ac_prev=libdir ;;
914  -libdir=* | --libdir=* | --libdi=* | --libd=*)
915    libdir=$ac_optarg ;;
916
917  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918  | --libexe | --libex | --libe)
919    ac_prev=libexecdir ;;
920  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921  | --libexe=* | --libex=* | --libe=*)
922    libexecdir=$ac_optarg ;;
923
924  -localedir | --localedir | --localedi | --localed | --locale)
925    ac_prev=localedir ;;
926  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927    localedir=$ac_optarg ;;
928
929  -localstatedir | --localstatedir | --localstatedi | --localstated \
930  | --localstate | --localstat | --localsta | --localst | --locals)
931    ac_prev=localstatedir ;;
932  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934    localstatedir=$ac_optarg ;;
935
936  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937    ac_prev=mandir ;;
938  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939    mandir=$ac_optarg ;;
940
941  -nfp | --nfp | --nf)
942    # Obsolete; use --without-fp.
943    with_fp=no ;;
944
945  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946  | --no-cr | --no-c | -n)
947    no_create=yes ;;
948
949  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951    no_recursion=yes ;;
952
953  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955  | --oldin | --oldi | --old | --ol | --o)
956    ac_prev=oldincludedir ;;
957  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960    oldincludedir=$ac_optarg ;;
961
962  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963    ac_prev=prefix ;;
964  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965    prefix=$ac_optarg ;;
966
967  -program-prefix | --program-prefix | --program-prefi | --program-pref \
968  | --program-pre | --program-pr | --program-p)
969    ac_prev=program_prefix ;;
970  -program-prefix=* | --program-prefix=* | --program-prefi=* \
971  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972    program_prefix=$ac_optarg ;;
973
974  -program-suffix | --program-suffix | --program-suffi | --program-suff \
975  | --program-suf | --program-su | --program-s)
976    ac_prev=program_suffix ;;
977  -program-suffix=* | --program-suffix=* | --program-suffi=* \
978  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979    program_suffix=$ac_optarg ;;
980
981  -program-transform-name | --program-transform-name \
982  | --program-transform-nam | --program-transform-na \
983  | --program-transform-n | --program-transform- \
984  | --program-transform | --program-transfor \
985  | --program-transfo | --program-transf \
986  | --program-trans | --program-tran \
987  | --progr-tra | --program-tr | --program-t)
988    ac_prev=program_transform_name ;;
989  -program-transform-name=* | --program-transform-name=* \
990  | --program-transform-nam=* | --program-transform-na=* \
991  | --program-transform-n=* | --program-transform-=* \
992  | --program-transform=* | --program-transfor=* \
993  | --program-transfo=* | --program-transf=* \
994  | --program-trans=* | --program-tran=* \
995  | --progr-tra=* | --program-tr=* | --program-t=*)
996    program_transform_name=$ac_optarg ;;
997
998  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999    ac_prev=pdfdir ;;
1000  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001    pdfdir=$ac_optarg ;;
1002
1003  -psdir | --psdir | --psdi | --psd | --ps)
1004    ac_prev=psdir ;;
1005  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006    psdir=$ac_optarg ;;
1007
1008  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009  | -silent | --silent | --silen | --sile | --sil)
1010    silent=yes ;;
1011
1012  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013    ac_prev=sbindir ;;
1014  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015  | --sbi=* | --sb=*)
1016    sbindir=$ac_optarg ;;
1017
1018  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020  | --sharedst | --shareds | --shared | --share | --shar \
1021  | --sha | --sh)
1022    ac_prev=sharedstatedir ;;
1023  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026  | --sha=* | --sh=*)
1027    sharedstatedir=$ac_optarg ;;
1028
1029  -site | --site | --sit)
1030    ac_prev=site ;;
1031  -site=* | --site=* | --sit=*)
1032    site=$ac_optarg ;;
1033
1034  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035    ac_prev=srcdir ;;
1036  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037    srcdir=$ac_optarg ;;
1038
1039  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040  | --syscon | --sysco | --sysc | --sys | --sy)
1041    ac_prev=sysconfdir ;;
1042  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044    sysconfdir=$ac_optarg ;;
1045
1046  -target | --target | --targe | --targ | --tar | --ta | --t)
1047    ac_prev=target_alias ;;
1048  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049    target_alias=$ac_optarg ;;
1050
1051  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052    verbose=yes ;;
1053
1054  -version | --version | --versio | --versi | --vers | -V)
1055    ac_init_version=: ;;
1056
1057  -with-* | --with-*)
1058    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059    # Reject names that are not valid shell variable names.
1060    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061      as_fn_error $? "invalid package name: $ac_useropt"
1062    ac_useropt_orig=$ac_useropt
1063    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064    case $ac_user_opts in
1065      *"
1066"with_$ac_useropt"
1067"*) ;;
1068      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069         ac_unrecognized_sep=', ';;
1070    esac
1071    eval with_$ac_useropt=\$ac_optarg ;;
1072
1073  -without-* | --without-*)
1074    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075    # Reject names that are not valid shell variable names.
1076    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077      as_fn_error $? "invalid package name: $ac_useropt"
1078    ac_useropt_orig=$ac_useropt
1079    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080    case $ac_user_opts in
1081      *"
1082"with_$ac_useropt"
1083"*) ;;
1084      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085         ac_unrecognized_sep=', ';;
1086    esac
1087    eval with_$ac_useropt=no ;;
1088
1089  --x)
1090    # Obsolete; use --with-x.
1091    with_x=yes ;;
1092
1093  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094  | --x-incl | --x-inc | --x-in | --x-i)
1095    ac_prev=x_includes ;;
1096  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098    x_includes=$ac_optarg ;;
1099
1100  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102    ac_prev=x_libraries ;;
1103  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105    x_libraries=$ac_optarg ;;
1106
1107  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1108Try \`$0 --help' for more information"
1109    ;;
1110
1111  *=*)
1112    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113    # Reject names that are not valid shell variable names.
1114    case $ac_envvar in #(
1115      '' | [0-9]* | *[!_$as_cr_alnum]* )
1116      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1117    esac
1118    eval $ac_envvar=\$ac_optarg
1119    export $ac_envvar ;;
1120
1121  *)
1122    # FIXME: should be removed in autoconf 3.0.
1123    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1127    ;;
1128
1129  esac
1130done
1131
1132if test -n "$ac_prev"; then
1133  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134  as_fn_error $? "missing argument to $ac_option"
1135fi
1136
1137if test -n "$ac_unrecognized_opts"; then
1138  case $enable_option_checking in
1139    no) ;;
1140    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1141    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142  esac
1143fi
1144
1145# Check all directory arguments for consistency.
1146for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147                datadir sysconfdir sharedstatedir localstatedir includedir \
1148                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149                libdir localedir mandir
1150do
1151  eval ac_val=\$$ac_var
1152  # Remove trailing slashes.
1153  case $ac_val in
1154    */ )
1155      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156      eval $ac_var=\$ac_val;;
1157  esac
1158  # Be sure to have absolute directory names.
1159  case $ac_val in
1160    [\\/$]* | ?:[\\/]* )  continue;;
1161    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162  esac
1163  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1164done
1165
1166# There might be people who depend on the old broken behavior: `$host'
1167# used to hold the argument of --host etc.
1168# FIXME: To remove some day.
1169build=$build_alias
1170host=$host_alias
1171target=$target_alias
1172
1173# FIXME: To remove some day.
1174if test "x$host_alias" != x; then
1175  if test "x$build_alias" = x; then
1176    cross_compiling=maybe
1177  elif test "x$build_alias" != "x$host_alias"; then
1178    cross_compiling=yes
1179  fi
1180fi
1181
1182ac_tool_prefix=
1183test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184
1185test "$silent" = yes && exec 6>/dev/null
1186
1187
1188ac_pwd=`pwd` && test -n "$ac_pwd" &&
1189ac_ls_di=`ls -di .` &&
1190ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1191  as_fn_error $? "working directory cannot be determined"
1192test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193  as_fn_error $? "pwd does not report name of working directory"
1194
1195
1196# Find the source files, if location was not specified.
1197if test -z "$srcdir"; then
1198  ac_srcdir_defaulted=yes
1199  # Try the directory containing this script, then the parent directory.
1200  ac_confdir=`$as_dirname -- "$as_myself" ||
1201$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202         X"$as_myself" : 'X\(//\)[^/]' \| \
1203         X"$as_myself" : 'X\(//\)$' \| \
1204         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205$as_echo X"$as_myself" |
1206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207            s//\1/
1208            q
1209          }
1210          /^X\(\/\/\)[^/].*/{
1211            s//\1/
1212            q
1213          }
1214          /^X\(\/\/\)$/{
1215            s//\1/
1216            q
1217          }
1218          /^X\(\/\).*/{
1219            s//\1/
1220            q
1221          }
1222          s/.*/./; q'`
1223  srcdir=$ac_confdir
1224  if test ! -r "$srcdir/$ac_unique_file"; then
1225    srcdir=..
1226  fi
1227else
1228  ac_srcdir_defaulted=no
1229fi
1230if test ! -r "$srcdir/$ac_unique_file"; then
1231  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1233fi
1234ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235ac_abs_confdir=`(
1236        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1237        pwd)`
1238# When building in place, set srcdir=.
1239if test "$ac_abs_confdir" = "$ac_pwd"; then
1240  srcdir=.
1241fi
1242# Remove unnecessary trailing slashes from srcdir.
1243# Double slashes in file names in object file debugging info
1244# mess up M-x gdb in Emacs.
1245case $srcdir in
1246*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247esac
1248for ac_var in $ac_precious_vars; do
1249  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1250  eval ac_env_${ac_var}_value=\$${ac_var}
1251  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1252  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1253done
1254
1255#
1256# Report the --help message.
1257#
1258if test "$ac_init_help" = "long"; then
1259  # Omit some internal or obsolete options to make the list less imposing.
1260  # This message is too long to be a string in the A/UX 3.1 sh.
1261  cat <<_ACEOF
1262\`configure' configures nanovis 1.2 to adapt to many kinds of systems.
1263
1264Usage: $0 [OPTION]... [VAR=VALUE]...
1265
1266To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267VAR=VALUE.  See below for descriptions of some of the useful variables.
1268
1269Defaults for the options are specified in brackets.
1270
1271Configuration:
1272  -h, --help              display this help and exit
1273      --help=short        display options specific to this package
1274      --help=recursive    display the short help of all the included packages
1275  -V, --version           display version information and exit
1276  -q, --quiet, --silent   do not print \`checking ...' messages
1277      --cache-file=FILE   cache test results in FILE [disabled]
1278  -C, --config-cache      alias for \`--cache-file=config.cache'
1279  -n, --no-create         do not create output files
1280      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1281
1282Installation directories:
1283  --prefix=PREFIX         install architecture-independent files in PREFIX
1284                          [$ac_default_prefix]
1285  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1286                          [PREFIX]
1287
1288By default, \`make install' will install all the files in
1289\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1290an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291for instance \`--prefix=\$HOME'.
1292
1293For better control, use the options below.
1294
1295Fine tuning of the installation directories:
1296  --bindir=DIR            user executables [EPREFIX/bin]
1297  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1298  --libexecdir=DIR        program executables [EPREFIX/libexec]
1299  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1300  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1301  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1302  --libdir=DIR            object code libraries [EPREFIX/lib]
1303  --includedir=DIR        C header files [PREFIX/include]
1304  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1305  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1306  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1307  --infodir=DIR           info documentation [DATAROOTDIR/info]
1308  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1309  --mandir=DIR            man documentation [DATAROOTDIR/man]
1310  --docdir=DIR            documentation root [DATAROOTDIR/doc/nanovis]
1311  --htmldir=DIR           html documentation [DOCDIR]
1312  --dvidir=DIR            dvi documentation [DOCDIR]
1313  --pdfdir=DIR            pdf documentation [DOCDIR]
1314  --psdir=DIR             ps documentation [DOCDIR]
1315_ACEOF
1316
1317  cat <<\_ACEOF
1318_ACEOF
1319fi
1320
1321if test -n "$ac_init_help"; then
1322  case $ac_init_help in
1323     short | recursive ) echo "Configuration of nanovis 1.2:";;
1324   esac
1325  cat <<\_ACEOF
1326
1327Optional Packages:
1328  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1329  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1330  --with-tcllib=DIR       location of Tcl binary library libtclstubs.a
1331                          [default=/usr/lib]
1332  --with-rappture=DIR     location of rappture files lib/librappture.a and
1333                          include/rappture.h [default=/usr]
1334  --with-vtk-includes=DIR VTK include files are in DIR
1335  --with-vtk-libs=DIR     VTK libraries are in DIR
1336  --with-vtk=VERSION      Version of VTK required [default=6.1]
1337  --with-ffmpeg=DIR       location of ffmpeg [default=yes]
1338  --with-statsdir=DIR     Write statistics in DIR
1339
1340Some influential environment variables:
1341  CC          C compiler command
1342  CFLAGS      C compiler flags
1343  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1344              nonstandard directory <lib dir>
1345  LIBS        libraries to pass to the linker, e.g. -l<library>
1346  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1347              you have headers in a nonstandard directory <include dir>
1348  CPP         C preprocessor
1349  CXX         C++ compiler command
1350  CXXFLAGS    C++ compiler flags
1351  CXXCPP      C++ preprocessor
1352
1353Use these variables to override the choices made by `configure' or to help
1354it to find libraries and programs with nonstandard names/locations.
1355
1356Report bugs to <rappture@nanohub.org>.
1357_ACEOF
1358ac_status=$?
1359fi
1360
1361if test "$ac_init_help" = "recursive"; then
1362  # If there are subdirs, report their specific --help.
1363  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1364    test -d "$ac_dir" ||
1365      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1366      continue
1367    ac_builddir=.
1368
1369case "$ac_dir" in
1370.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371*)
1372  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1373  # A ".." for each directory in $ac_dir_suffix.
1374  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1375  case $ac_top_builddir_sub in
1376  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378  esac ;;
1379esac
1380ac_abs_top_builddir=$ac_pwd
1381ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382# for backward compatibility:
1383ac_top_builddir=$ac_top_build_prefix
1384
1385case $srcdir in
1386  .)  # We are building in place.
1387    ac_srcdir=.
1388    ac_top_srcdir=$ac_top_builddir_sub
1389    ac_abs_top_srcdir=$ac_pwd ;;
1390  [\\/]* | ?:[\\/]* )  # Absolute name.
1391    ac_srcdir=$srcdir$ac_dir_suffix;
1392    ac_top_srcdir=$srcdir
1393    ac_abs_top_srcdir=$srcdir ;;
1394  *) # Relative name.
1395    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396    ac_top_srcdir=$ac_top_build_prefix$srcdir
1397    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1398esac
1399ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400
1401    cd "$ac_dir" || { ac_status=$?; continue; }
1402    # Check for guested configure.
1403    if test -f "$ac_srcdir/configure.gnu"; then
1404      echo &&
1405      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406    elif test -f "$ac_srcdir/configure"; then
1407      echo &&
1408      $SHELL "$ac_srcdir/configure" --help=recursive
1409    else
1410      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411    fi || ac_status=$?
1412    cd "$ac_pwd" || { ac_status=$?; break; }
1413  done
1414fi
1415
1416test -n "$ac_init_help" && exit $ac_status
1417if $ac_init_version; then
1418  cat <<\_ACEOF
1419nanovis configure 1.2
1420generated by GNU Autoconf 2.69
1421
1422Copyright (C) 2012 Free Software Foundation, Inc.
1423This configure script is free software; the Free Software Foundation
1424gives unlimited permission to copy, distribute and modify it.
1425_ACEOF
1426  exit
1427fi
1428
1429## ------------------------ ##
1430## Autoconf initialization. ##
1431## ------------------------ ##
1432
1433# ac_fn_c_try_compile LINENO
1434# --------------------------
1435# Try to compile conftest.$ac_ext, and return whether this succeeded.
1436ac_fn_c_try_compile ()
1437{
1438  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439  rm -f conftest.$ac_objext
1440  if { { ac_try="$ac_compile"
1441case "(($ac_try" in
1442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443  *) ac_try_echo=$ac_try;;
1444esac
1445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446$as_echo "$ac_try_echo"; } >&5
1447  (eval "$ac_compile") 2>conftest.err
1448  ac_status=$?
1449  if test -s conftest.err; then
1450    grep -v '^ *+' conftest.err >conftest.er1
1451    cat conftest.er1 >&5
1452    mv -f conftest.er1 conftest.err
1453  fi
1454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455  test $ac_status = 0; } && {
1456         test -z "$ac_c_werror_flag" ||
1457         test ! -s conftest.err
1458       } && test -s conftest.$ac_objext; then :
1459  ac_retval=0
1460else
1461  $as_echo "$as_me: failed program was:" >&5
1462sed 's/^/| /' conftest.$ac_ext >&5
1463
1464        ac_retval=1
1465fi
1466  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1467  as_fn_set_status $ac_retval
1468
1469} # ac_fn_c_try_compile
1470
1471# ac_fn_c_try_cpp LINENO
1472# ----------------------
1473# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1474ac_fn_c_try_cpp ()
1475{
1476  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477  if { { ac_try="$ac_cpp conftest.$ac_ext"
1478case "(($ac_try" in
1479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480  *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1485  ac_status=$?
1486  if test -s conftest.err; then
1487    grep -v '^ *+' conftest.err >conftest.er1
1488    cat conftest.er1 >&5
1489    mv -f conftest.er1 conftest.err
1490  fi
1491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492  test $ac_status = 0; } > conftest.i && {
1493         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1494         test ! -s conftest.err
1495       }; then :
1496  ac_retval=0
1497else
1498  $as_echo "$as_me: failed program was:" >&5
1499sed 's/^/| /' conftest.$ac_ext >&5
1500
1501    ac_retval=1
1502fi
1503  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1504  as_fn_set_status $ac_retval
1505
1506} # ac_fn_c_try_cpp
1507
1508# ac_fn_cxx_try_compile LINENO
1509# ----------------------------
1510# Try to compile conftest.$ac_ext, and return whether this succeeded.
1511ac_fn_cxx_try_compile ()
1512{
1513  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514  rm -f conftest.$ac_objext
1515  if { { ac_try="$ac_compile"
1516case "(($ac_try" in
1517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518  *) ac_try_echo=$ac_try;;
1519esac
1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521$as_echo "$ac_try_echo"; } >&5
1522  (eval "$ac_compile") 2>conftest.err
1523  ac_status=$?
1524  if test -s conftest.err; then
1525    grep -v '^ *+' conftest.err >conftest.er1
1526    cat conftest.er1 >&5
1527    mv -f conftest.er1 conftest.err
1528  fi
1529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530  test $ac_status = 0; } && {
1531         test -z "$ac_cxx_werror_flag" ||
1532         test ! -s conftest.err
1533       } && test -s conftest.$ac_objext; then :
1534  ac_retval=0
1535else
1536  $as_echo "$as_me: failed program was:" >&5
1537sed 's/^/| /' conftest.$ac_ext >&5
1538
1539        ac_retval=1
1540fi
1541  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542  as_fn_set_status $ac_retval
1543
1544} # ac_fn_cxx_try_compile
1545
1546# ac_fn_cxx_try_cpp LINENO
1547# ------------------------
1548# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_cxx_try_cpp ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  if { { ac_try="$ac_cpp conftest.$ac_ext"
1553case "(($ac_try" in
1554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555  *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1559  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560  ac_status=$?
1561  if test -s conftest.err; then
1562    grep -v '^ *+' conftest.err >conftest.er1
1563    cat conftest.er1 >&5
1564    mv -f conftest.er1 conftest.err
1565  fi
1566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567  test $ac_status = 0; } > conftest.i && {
1568         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1569         test ! -s conftest.err
1570       }; then :
1571  ac_retval=0
1572else
1573  $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1576    ac_retval=1
1577fi
1578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579  as_fn_set_status $ac_retval
1580
1581} # ac_fn_cxx_try_cpp
1582
1583# ac_fn_cxx_try_run LINENO
1584# ------------------------
1585# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1586# that executables *can* be run.
1587ac_fn_cxx_try_run ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_link"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_link") 2>&5
1598  ac_status=$?
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1601  { { case "(($ac_try" in
1602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603  *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607  (eval "$ac_try") 2>&5
1608  ac_status=$?
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; }; }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: program exited with status $ac_status" >&5
1614       $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617       ac_retval=$ac_status
1618fi
1619  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621  as_fn_set_status $ac_retval
1622
1623} # ac_fn_cxx_try_run
1624
1625# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1626# ---------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_cxx_check_header_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633$as_echo_n "checking for $2... " >&6; }
1634if eval \${$3+:} false; then :
1635  $as_echo_n "(cached) " >&6
1636else
1637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h.  */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_cxx_try_compile "$LINENO"; then :
1643  eval "$3=yes"
1644else
1645  eval "$3=no"
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648fi
1649eval ac_res=\$$3
1650               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654} # ac_fn_cxx_check_header_compile
1655
1656# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1657# ---------------------------------------------------------
1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659# the include files in INCLUDES and setting the cache variable VAR
1660# accordingly.
1661ac_fn_cxx_check_header_mongrel ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  if eval \${$3+:} false; then :
1665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
1667if eval \${$3+:} false; then :
1668  $as_echo_n "(cached) " >&6
1669fi
1670eval ac_res=\$$3
1671               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673else
1674  # Is the header compilable?
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676$as_echo_n "checking $2 usability... " >&6; }
1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h.  */
1679$4
1680#include <$2>
1681_ACEOF
1682if ac_fn_cxx_try_compile "$LINENO"; then :
1683  ac_header_compiler=yes
1684else
1685  ac_header_compiler=no
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689$as_echo "$ac_header_compiler" >&6; }
1690
1691# Is the header present?
1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693$as_echo_n "checking $2 presence... " >&6; }
1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h.  */
1696#include <$2>
1697_ACEOF
1698if ac_fn_cxx_try_cpp "$LINENO"; then :
1699  ac_header_preproc=yes
1700else
1701  ac_header_preproc=no
1702fi
1703rm -f conftest.err conftest.i conftest.$ac_ext
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705$as_echo "$ac_header_preproc" >&6; }
1706
1707# So?  What about this header?
1708case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1709  yes:no: )
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714    ;;
1715  no:yes:* )
1716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1719$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1720    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1723$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1724    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726( $as_echo "## ----------------------------------- ##
1727## Report this to rappture@nanohub.org ##
1728## ----------------------------------- ##"
1729     ) | sed "s/^/$as_me: WARNING:     /" >&2
1730    ;;
1731esac
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  eval "$3=\$ac_header_compiler"
1738fi
1739eval ac_res=\$$3
1740               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742fi
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745} # ac_fn_cxx_check_header_mongrel
1746
1747# ac_fn_cxx_try_link LINENO
1748# -------------------------
1749# Try to link conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_cxx_try_link ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  rm -f conftest.$ac_objext conftest$ac_exeext
1754  if { { ac_try="$ac_link"
1755case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761  (eval "$ac_link") 2>conftest.err
1762  ac_status=$?
1763  if test -s conftest.err; then
1764    grep -v '^ *+' conftest.err >conftest.er1
1765    cat conftest.er1 >&5
1766    mv -f conftest.er1 conftest.err
1767  fi
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && {
1770         test -z "$ac_cxx_werror_flag" ||
1771         test ! -s conftest.err
1772       } && test -s conftest$ac_exeext && {
1773         test "$cross_compiling" = yes ||
1774         test -x conftest$ac_exeext
1775       }; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781        ac_retval=1
1782fi
1783  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785  # interfere with the next link command; also delete a directory that is
1786  # left behind by Apple's compiler.  We do this before executing the actions.
1787  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789  as_fn_set_status $ac_retval
1790
1791} # ac_fn_cxx_try_link
1792
1793# ac_fn_cxx_check_func LINENO FUNC VAR
1794# ------------------------------------
1795# Tests whether FUNC exists, setting the cache variable VAR accordingly
1796ac_fn_cxx_check_func ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1808#define $2 innocuous_$2
1809
1810/* System header to define __stub macros and hopefully few prototypes,
1811    which can conflict with char $2 (); below.
1812    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1813    <limits.h> exists even on freestanding compilers.  */
1814
1815#ifdef __STDC__
1816# include <limits.h>
1817#else
1818# include <assert.h>
1819#endif
1820
1821#undef $2
1822
1823/* Override any GCC internal prototype to avoid an error.
1824   Use char because int might match the return type of a GCC
1825   builtin and then its argument prototype would still apply.  */
1826#ifdef __cplusplus
1827extern "C"
1828#endif
1829char $2 ();
1830/* The GNU C library defines this for functions which it implements
1831    to always fail with ENOSYS.  Some functions are actually named
1832    something starting with __ and the normal name is an alias.  */
1833#if defined __stub_$2 || defined __stub___$2
1834choke me
1835#endif
1836
1837int
1838main ()
1839{
1840return $2 ();
1841  ;
1842  return 0;
1843}
1844_ACEOF
1845if ac_fn_cxx_try_link "$LINENO"; then :
1846  eval "$3=yes"
1847else
1848  eval "$3=no"
1849fi
1850rm -f core conftest.err conftest.$ac_objext \
1851    conftest$ac_exeext conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_cxx_check_func
1859cat >config.log <<_ACEOF
1860This file contains any messages produced by compilers while
1861running configure, to aid debugging if configure makes a mistake.
1862
1863It was created by nanovis $as_me 1.2, which was
1864generated by GNU Autoconf 2.69.  Invocation command line was
1865
1866  $ $0 $@
1867
1868_ACEOF
1869exec 5>>config.log
1870{
1871cat <<_ASUNAME
1872## --------- ##
1873## Platform. ##
1874## --------- ##
1875
1876hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881
1882/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1884
1885/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1886/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1887/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1889/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1890/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1891/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1892
1893_ASUNAME
1894
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900    $as_echo "PATH: $as_dir"
1901  done
1902IFS=$as_save_IFS
1903
1904} >&5
1905
1906cat >&5 <<_ACEOF
1907
1908
1909## ----------- ##
1910## Core tests. ##
1911## ----------- ##
1912
1913_ACEOF
1914
1915
1916# Keep a trace of the command line.
1917# Strip out --no-create and --no-recursion so they do not pile up.
1918# Strip out --silent because we don't want to record it for future runs.
1919# Also quote any args containing shell meta-characters.
1920# Make two passes to allow for proper duplicate-argument suppression.
1921ac_configure_args=
1922ac_configure_args0=
1923ac_configure_args1=
1924ac_must_keep_next=false
1925for ac_pass in 1 2
1926do
1927  for ac_arg
1928  do
1929    case $ac_arg in
1930    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1931    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1932    | -silent | --silent | --silen | --sile | --sil)
1933      continue ;;
1934    *\'*)
1935      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936    esac
1937    case $ac_pass in
1938    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939    2)
1940      as_fn_append ac_configure_args1 " '$ac_arg'"
1941      if test $ac_must_keep_next = true; then
1942        ac_must_keep_next=false # Got value, back to normal.
1943      else
1944        case $ac_arg in
1945          *=* | --config-cache | -C | -disable-* | --disable-* \
1946          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1947          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1948          | -with-* | --with-* | -without-* | --without-* | --x)
1949            case "$ac_configure_args0 " in
1950              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951            esac
1952            ;;
1953          -* ) ac_must_keep_next=true ;;
1954        esac
1955      fi
1956      as_fn_append ac_configure_args " '$ac_arg'"
1957      ;;
1958    esac
1959  done
1960done
1961{ ac_configure_args0=; unset ac_configure_args0;}
1962{ ac_configure_args1=; unset ac_configure_args1;}
1963
1964# When interrupted or exit'd, cleanup temporary files, and complete
1965# config.log.  We remove comments because anyway the quotes in there
1966# would cause problems or look ugly.
1967# WARNING: Use '\'' to represent an apostrophe within the trap.
1968# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1969trap 'exit_status=$?
1970  # Save into config.log some information that might help in debugging.
1971  {
1972    echo
1973
1974    $as_echo "## ---------------- ##
1975## Cache variables. ##
1976## ---------------- ##"
1977    echo
1978    # The following way of writing the cache mishandles newlines in values,
1979(
1980  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1981    eval ac_val=\$$ac_var
1982    case $ac_val in #(
1983    *${as_nl}*)
1984      case $ac_var in #(
1985      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1987      esac
1988      case $ac_var in #(
1989      _ | IFS | as_nl) ;; #(
1990      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1991      *) { eval $ac_var=; unset $ac_var;} ;;
1992      esac ;;
1993    esac
1994  done
1995  (set) 2>&1 |
1996    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1997    *${as_nl}ac_space=\ *)
1998      sed -n \
1999        "s/'\''/'\''\\\\'\'''\''/g;
2000          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001      ;; #(
2002    *)
2003      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004      ;;
2005    esac |
2006    sort
2007)
2008    echo
2009
2010    $as_echo "## ----------------- ##
2011## Output variables. ##
2012## ----------------- ##"
2013    echo
2014    for ac_var in $ac_subst_vars
2015    do
2016      eval ac_val=\$$ac_var
2017      case $ac_val in
2018      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019      esac
2020      $as_echo "$ac_var='\''$ac_val'\''"
2021    done | sort
2022    echo
2023
2024    if test -n "$ac_subst_files"; then
2025      $as_echo "## ------------------- ##
2026## File substitutions. ##
2027## ------------------- ##"
2028      echo
2029      for ac_var in $ac_subst_files
2030      do
2031        eval ac_val=\$$ac_var
2032        case $ac_val in
2033        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034        esac
2035        $as_echo "$ac_var='\''$ac_val'\''"
2036      done | sort
2037      echo
2038    fi
2039
2040    if test -s confdefs.h; then
2041      $as_echo "## ----------- ##
2042## confdefs.h. ##
2043## ----------- ##"
2044      echo
2045      cat confdefs.h
2046      echo
2047    fi
2048    test "$ac_signal" != 0 &&
2049      $as_echo "$as_me: caught signal $ac_signal"
2050    $as_echo "$as_me: exit $exit_status"
2051  } >&5
2052  rm -f core *.core core.conftest.* &&
2053    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054    exit $exit_status
2055' 0
2056for ac_signal in 1 2 13 15; do
2057  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2058done
2059ac_signal=0
2060
2061# confdefs.h avoids OS command line length limits that DEFS can exceed.
2062rm -f -r conftest* confdefs.h
2063
2064$as_echo "/* confdefs.h */" > confdefs.h
2065
2066# Predefined preprocessor variables.
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_NAME "$PACKAGE_NAME"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_VERSION "$PACKAGE_VERSION"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_STRING "$PACKAGE_STRING"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_URL "$PACKAGE_URL"
2090_ACEOF
2091
2092
2093# Let the site file select an alternate cache file if it wants to.
2094# Prefer an explicitly selected file to automatically selected ones.
2095ac_site_file1=NONE
2096ac_site_file2=NONE
2097if test -n "$CONFIG_SITE"; then
2098  # We do not want a PATH search for config.site.
2099  case $CONFIG_SITE in #((
2100    -*)  ac_site_file1=./$CONFIG_SITE;;
2101    */*) ac_site_file1=$CONFIG_SITE;;
2102    *)   ac_site_file1=./$CONFIG_SITE;;
2103  esac
2104elif test "x$prefix" != xNONE; then
2105  ac_site_file1=$prefix/share/config.site
2106  ac_site_file2=$prefix/etc/config.site
2107else
2108  ac_site_file1=$ac_default_prefix/share/config.site
2109  ac_site_file2=$ac_default_prefix/etc/config.site
2110fi
2111for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112do
2113  test "x$ac_site_file" = xNONE && continue
2114  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117    sed 's/^/| /' "$ac_site_file" >&5
2118    . "$ac_site_file" \
2119      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121as_fn_error $? "failed to load site script $ac_site_file
2122See \`config.log' for more details" "$LINENO" 5; }
2123  fi
2124done
2125
2126if test -r "$cache_file"; then
2127  # Some versions of bash will fail to source /dev/null (special files
2128  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2129  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131$as_echo "$as_me: loading cache $cache_file" >&6;}
2132    case $cache_file in
2133      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134      *)                      . "./$cache_file";;
2135    esac
2136  fi
2137else
2138  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139$as_echo "$as_me: creating cache $cache_file" >&6;}
2140  >$cache_file
2141fi
2142
2143# Check that the precious variables saved in the cache have kept the same
2144# value.
2145ac_cache_corrupted=false
2146for ac_var in $ac_precious_vars; do
2147  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2148  eval ac_new_set=\$ac_env_${ac_var}_set
2149  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2150  eval ac_new_val=\$ac_env_${ac_var}_value
2151  case $ac_old_set,$ac_new_set in
2152    set,)
2153      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2154$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2155      ac_cache_corrupted=: ;;
2156    ,set)
2157      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2158$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2159      ac_cache_corrupted=: ;;
2160    ,);;
2161    *)
2162      if test "x$ac_old_val" != "x$ac_new_val"; then
2163        # differences in whitespace do not lead to failure.
2164        ac_old_val_w=`echo x $ac_old_val`
2165        ac_new_val_w=`echo x $ac_new_val`
2166        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2167          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2168$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2169          ac_cache_corrupted=:
2170        else
2171          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2172$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2173          eval $ac_var=\$ac_old_val
2174        fi
2175        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2176$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2177        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2178$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2179      fi;;
2180  esac
2181  # Pass precious variables to config.status.
2182  if test "$ac_new_set" = set; then
2183    case $ac_new_val in
2184    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2185    *) ac_arg=$ac_var=$ac_new_val ;;
2186    esac
2187    case " $ac_configure_args " in
2188      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2189      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2190    esac
2191  fi
2192done
2193if $ac_cache_corrupted; then
2194  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2197$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2198  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2199fi
2200## -------------------- ##
2201## Main body of script. ##
2202## -------------------- ##
2203
2204ac_ext=c
2205ac_cpp='$CPP $CPPFLAGS'
2206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210
2211ac_aux_dir=
2212for ac_dir in cf "$srcdir"/cf; do
2213  if test -f "$ac_dir/install-sh"; then
2214    ac_aux_dir=$ac_dir
2215    ac_install_sh="$ac_aux_dir/install-sh -c"
2216    break
2217  elif test -f "$ac_dir/install.sh"; then
2218    ac_aux_dir=$ac_dir
2219    ac_install_sh="$ac_aux_dir/install.sh -c"
2220    break
2221  elif test -f "$ac_dir/shtool"; then
2222    ac_aux_dir=$ac_dir
2223    ac_install_sh="$ac_aux_dir/shtool install -c"
2224    break
2225  fi
2226done
2227if test -z "$ac_aux_dir"; then
2228  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2229fi
2230
2231# These three variables are undocumented and unsupported,
2232# and are intended to be withdrawn in a future Autoconf release.
2233# They can cause serious problems if a builder's source tree is in a directory
2234# whose full name contains unusual characters.
2235ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2236ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2237ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2238
2239
2240ac_config_headers="$ac_config_headers nvconf.h"
2241
2242
2243
2244# Check whether --with-tcllib was given.
2245if test "${with_tcllib+set}" = set; then :
2246  withval=$with_tcllib; with_tcllib=$withval
2247else
2248  with_tcllib=""
2249fi
2250
2251
2252
2253# Check whether --with-rappture was given.
2254if test "${with_rappture+set}" = set; then :
2255  withval=$with_rappture; with_rappture=$withval
2256else
2257  with_rappture=yes
2258fi
2259
2260
2261
2262# Check whether --with-vtk-includes was given.
2263if test "${with_vtk_includes+set}" = set; then :
2264  withval=$with_vtk_includes; with_vtk_includes=$withval
2265else
2266  with_vtk_includes=""
2267fi
2268
2269
2270
2271# Check whether --with-vtk-libs was given.
2272if test "${with_vtk_libs+set}" = set; then :
2273  withval=$with_vtk_libs; with_vtk_libs=$withval
2274else
2275  with_vtk_libs=""
2276fi
2277
2278
2279
2280# Check whether --with-vtk was given.
2281if test "${with_vtk+set}" = set; then :
2282  withval=$with_vtk; with_vtk=$withval
2283else
2284  with_vtk=""
2285fi
2286
2287
2288
2289# Check whether --with-ffmpeg was given.
2290if test "${with_ffmpeg+set}" = set; then :
2291  withval=$with_ffmpeg;
2292else
2293  with_ffmpeg=yes
2294fi
2295
2296
2297
2298# Check whether --with-statsdir was given.
2299if test "${with_statsdir+set}" = set; then :
2300  withval=$with_statsdir; STATSDIR=$withval
2301else
2302  STATSDIR="/var/tmp/visservers"
2303fi
2304
2305
2306#------------------------------------------------------------------------
2307# Handle the --prefix=... option
2308#------------------------------------------------------------------------
2309
2310if test "${prefix}" = "NONE"; then
2311    prefix=/usr/local
2312fi
2313if test "${exec_prefix}" = "NONE"; then
2314    exec_prefix=$prefix
2315fi
2316
2317if test "x${incdir}" == "x"; then
2318  incdir=${exec_prefix}/include
2319fi
2320libdir=${exec_prefix}/lib
2321
2322if test "${libdir}" != "${prefix}/lib"; then
2323    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
2324else
2325    LIB_SEARCH_DIRS="-L ${libdir}"
2326fi
2327
2328# Find a good install program.  We prefer a C program (faster),
2329# so one script is as good as another.  But avoid the broken or
2330# incompatible versions:
2331# SysV /etc/install, /usr/sbin/install
2332# SunOS /usr/etc/install
2333# IRIX /sbin/install
2334# AIX /bin/install
2335# AmigaOS /C/install, which installs bootblocks on floppy discs
2336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339# OS/2's system install, which has a completely different semantic
2340# ./install, which can be erroneously created by make from ./install.sh.
2341# Reject install programs that cannot install multiple files.
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343$as_echo_n "checking for a BSD-compatible install... " >&6; }
2344if test -z "$INSTALL"; then
2345if ${ac_cv_path_install+:} false; then :
2346  $as_echo_n "(cached) " >&6
2347else
2348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351  IFS=$as_save_IFS
2352  test -z "$as_dir" && as_dir=.
2353    # Account for people who put trailing slashes in PATH elements.
2354case $as_dir/ in #((
2355  ./ | .// | /[cC]/* | \
2356  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2358  /usr/ucb/* ) ;;
2359  *)
2360    # OSF1 and SCO ODT 3.0 have their own names for install.
2361    # Don't use installbsd from OSF since it installs stuff as root
2362    # by default.
2363    for ac_prog in ginstall scoinst install; do
2364      for ac_exec_ext in '' $ac_executable_extensions; do
2365        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366          if test $ac_prog = install &&
2367            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368            # AIX install.  It has an incompatible calling convention.
2369            :
2370          elif test $ac_prog = install &&
2371            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372            # program-specific install script used by HP pwplus--don't use.
2373            :
2374          else
2375            rm -rf conftest.one conftest.two conftest.dir
2376            echo one > conftest.one
2377            echo two > conftest.two
2378            mkdir conftest.dir
2379            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380              test -s conftest.one && test -s conftest.two &&
2381              test -s conftest.dir/conftest.one &&
2382              test -s conftest.dir/conftest.two
2383            then
2384              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385              break 3
2386            fi
2387          fi
2388        fi
2389      done
2390    done
2391    ;;
2392esac
2393
2394  done
2395IFS=$as_save_IFS
2396
2397rm -rf conftest.one conftest.two conftest.dir
2398
2399fi
2400  if test "${ac_cv_path_install+set}" = set; then
2401    INSTALL=$ac_cv_path_install
2402  else
2403    # As a last resort, use the slow shell script.  Don't cache a
2404    # value for INSTALL within a source directory, because that will
2405    # break other packages using the cache if that directory is
2406    # removed, or if the value is a relative name.
2407    INSTALL=$ac_install_sh
2408  fi
2409fi
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411$as_echo "$INSTALL" >&6; }
2412
2413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414# It thinks the first close brace ends the variable substitution.
2415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421if test -n "$ac_tool_prefix"; then
2422  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
2426if ${ac_cv_prog_RANLIB+:} false; then :
2427  $as_echo_n "(cached) " >&6
2428else
2429  if test -n "$RANLIB"; then
2430  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437    for ac_exec_ext in '' $ac_executable_extensions; do
2438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441    break 2
2442  fi
2443done
2444  done
2445IFS=$as_save_IFS
2446
2447fi
2448fi
2449RANLIB=$ac_cv_prog_RANLIB
2450if test -n "$RANLIB"; then
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2452$as_echo "$RANLIB" >&6; }
2453else
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455$as_echo "no" >&6; }
2456fi
2457
2458
2459fi
2460if test -z "$ac_cv_prog_RANLIB"; then
2461  ac_ct_RANLIB=$RANLIB
2462  # Extract the first word of "ranlib", so it can be a program name with args.
2463set dummy ranlib; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2467  $as_echo_n "(cached) " >&6
2468else
2469  if test -n "$ac_ct_RANLIB"; then
2470  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477    for ac_exec_ext in '' $ac_executable_extensions; do
2478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479    ac_cv_prog_ac_ct_RANLIB="ranlib"
2480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481    break 2
2482  fi
2483done
2484  done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2490if test -n "$ac_ct_RANLIB"; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2492$as_echo "$ac_ct_RANLIB" >&6; }
2493else
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
2496fi
2497
2498  if test "x$ac_ct_RANLIB" = x; then
2499    RANLIB=":"
2500  else
2501    case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505ac_tool_warned=yes ;;
2506esac
2507    RANLIB=$ac_ct_RANLIB
2508  fi
2509else
2510  RANLIB="$ac_cv_prog_RANLIB"
2511fi
2512
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2514$as_echo_n "checking whether ln -s works... " >&6; }
2515LN_S=$as_ln_s
2516if test "$LN_S" = "ln -s"; then
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2518$as_echo "yes" >&6; }
2519else
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2521$as_echo "no, using $LN_S" >&6; }
2522fi
2523
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2525$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2526if test -z "$MKDIR_P"; then
2527  if ${ac_cv_path_mkdir+:} false; then :
2528  $as_echo_n "(cached) " >&6
2529else
2530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535    for ac_prog in mkdir gmkdir; do
2536         for ac_exec_ext in '' $ac_executable_extensions; do
2537           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2538           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2539             'mkdir (GNU coreutils) '* | \
2540             'mkdir (coreutils) '* | \
2541             'mkdir (fileutils) '4.1*)
2542               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2543               break 3;;
2544           esac
2545         done
2546       done
2547  done
2548IFS=$as_save_IFS
2549
2550fi
2551
2552  test -d ./--version && rmdir ./--version
2553  if test "${ac_cv_path_mkdir+set}" = set; then
2554    MKDIR_P="$ac_cv_path_mkdir -p"
2555  else
2556    # As a last resort, use the slow shell script.  Don't cache a
2557    # value for MKDIR_P within a source directory, because that will
2558    # break other packages using the cache if that directory is
2559    # removed, or if the value is a relative name.
2560    MKDIR_P="$ac_install_sh -d"
2561  fi
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2564$as_echo "$MKDIR_P" >&6; }
2565
2566
2567ac_ext=c
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572if test -n "$ac_tool_prefix"; then
2573  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2574set dummy ${ac_tool_prefix}gcc; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_CC+:} false; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test -n "$CC"; then
2581  ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_exec_ext in '' $ac_executable_extensions; do
2589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592    break 2
2593  fi
2594done
2595  done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603$as_echo "$CC" >&6; }
2604else
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609
2610fi
2611if test -z "$ac_cv_prog_CC"; then
2612  ac_ct_CC=$CC
2613  # Extract the first word of "gcc", so it can be a program name with args.
2614set dummy gcc; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
2617if ${ac_cv_prog_ac_ct_CC+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  if test -n "$ac_ct_CC"; then
2621  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628    for ac_exec_ext in '' $ac_executable_extensions; do
2629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630    ac_cv_prog_ac_ct_CC="gcc"
2631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635  done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640ac_ct_CC=$ac_cv_prog_ac_ct_CC
2641if test -n "$ac_ct_CC"; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2643$as_echo "$ac_ct_CC" >&6; }
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649  if test "x$ac_ct_CC" = x; then
2650    CC=""
2651  else
2652    case $cross_compiling:$ac_tool_warned in
2653yes:)
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656ac_tool_warned=yes ;;
2657esac
2658    CC=$ac_ct_CC
2659  fi
2660else
2661  CC="$ac_cv_prog_CC"
2662fi
2663
2664if test -z "$CC"; then
2665          if test -n "$ac_tool_prefix"; then
2666    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2667set dummy ${ac_tool_prefix}cc; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if ${ac_cv_prog_CC+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  if test -n "$CC"; then
2674  ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683    ac_cv_prog_CC="${ac_tool_prefix}cc"
2684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685    break 2
2686  fi
2687done
2688  done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2696$as_echo "$CC" >&6; }
2697else
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703  fi
2704fi
2705if test -z "$CC"; then
2706  # Extract the first word of "cc", so it can be a program name with args.
2707set dummy cc; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
2710if ${ac_cv_prog_CC+:} false; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  if test -n "$CC"; then
2714  ac_cv_prog_CC="$CC" # Let the user override the test.
2715else
2716  ac_prog_rejected=no
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722    for ac_exec_ext in '' $ac_executable_extensions; do
2723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2725       ac_prog_rejected=yes
2726       continue
2727     fi
2728    ac_cv_prog_CC="cc"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736if test $ac_prog_rejected = yes; then
2737  # We found a bogon in the path, so make sure we never use it.
2738  set dummy $ac_cv_prog_CC
2739  shift
2740  if test $# != 0; then
2741    # We chose a different compiler from the bogus one.
2742    # However, it has the same basename, so the bogon will be chosen
2743    # first if we set CC to just the basename; use the full file name.
2744    shift
2745    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2746  fi
2747fi
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753$as_echo "$CC" >&6; }
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759
2760fi
2761if test -z "$CC"; then
2762  if test -n "$ac_tool_prefix"; then
2763  for ac_prog in cl.exe
2764  do
2765    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_CC+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$CC"; then
2773  ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795$as_echo "$CC" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802    test -n "$CC" && break
2803  done
2804fi
2805if test -z "$CC"; then
2806  ac_ct_CC=$CC
2807  for ac_prog in cl.exe
2808do
2809  # Extract the first word of "$ac_prog", so it can be a program name with args.
2810set dummy $ac_prog; ac_word=$2
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if ${ac_cv_prog_ac_ct_CC+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  if test -n "$ac_ct_CC"; then
2817  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824    for ac_exec_ext in '' $ac_executable_extensions; do
2825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826    ac_cv_prog_ac_ct_CC="$ac_prog"
2827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831  done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837if test -n "$ac_ct_CC"; then
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839$as_echo "$ac_ct_CC" >&6; }
2840else
2841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
2843fi
2844
2845
2846  test -n "$ac_ct_CC" && break
2847done
2848
2849  if test "x$ac_ct_CC" = x; then
2850    CC=""
2851  else
2852    case $cross_compiling:$ac_tool_warned in
2853yes:)
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856ac_tool_warned=yes ;;
2857esac
2858    CC=$ac_ct_CC
2859  fi
2860fi
2861
2862fi
2863
2864
2865test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867as_fn_error $? "no acceptable C compiler found in \$PATH
2868See \`config.log' for more details" "$LINENO" 5; }
2869
2870# Provide some information about the compiler.
2871$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2872set X $ac_compile
2873ac_compiler=$2
2874for ac_option in --version -v -V -qversion; do
2875  { { ac_try="$ac_compiler $ac_option >&5"
2876case "(($ac_try" in
2877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878  *) ac_try_echo=$ac_try;;
2879esac
2880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881$as_echo "$ac_try_echo"; } >&5
2882  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2883  ac_status=$?
2884  if test -s conftest.err; then
2885    sed '10a\
2886... rest of stderr output deleted ...
2887         10q' conftest.err >conftest.er1
2888    cat conftest.er1 >&5
2889  fi
2890  rm -f conftest.er1 conftest.err
2891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892  test $ac_status = 0; }
2893done
2894
2895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906ac_clean_files_save=$ac_clean_files
2907ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2908# Try to create an executable without -o first, disregard a.out.
2909# It will help us diagnose broken compilers, and finding out an intuition
2910# of exeext.
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2912$as_echo_n "checking whether the C compiler works... " >&6; }
2913ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2914
2915# The possible output files:
2916ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2917
2918ac_rmfiles=
2919for ac_file in $ac_files
2920do
2921  case $ac_file in
2922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2924  esac
2925done
2926rm -f $ac_rmfiles
2927
2928if { { ac_try="$ac_link_default"
2929case "(($ac_try" in
2930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931  *) ac_try_echo=$ac_try;;
2932esac
2933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934$as_echo "$ac_try_echo"; } >&5
2935  (eval "$ac_link_default") 2>&5
2936  ac_status=$?
2937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938  test $ac_status = 0; }; then :
2939  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2940# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2941# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2942# so that the user can short-circuit this test for compilers unknown to
2943# Autoconf.
2944for ac_file in $ac_files ''
2945do
2946  test -f "$ac_file" || continue
2947  case $ac_file in
2948    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2949        ;;
2950    [ab].out )
2951        # We found the default executable, but exeext='' is most
2952        # certainly right.
2953        break;;
2954    *.* )
2955        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2956        then :; else
2957           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2958        fi
2959        # We set ac_cv_exeext here because the later test for it is not
2960        # safe: cross compilers may not add the suffix if given an `-o'
2961        # argument, so we may need to know it at that point already.
2962        # Even if this section looks crufty: it has the advantage of
2963        # actually working.
2964        break;;
2965    * )
2966        break;;
2967  esac
2968done
2969test "$ac_cv_exeext" = no && ac_cv_exeext=
2970
2971else
2972  ac_file=''
2973fi
2974if test -z "$ac_file"; then :
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977$as_echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error 77 "C compiler cannot create executables
2983See \`config.log' for more details" "$LINENO" 5; }
2984else
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986$as_echo "yes" >&6; }
2987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2989$as_echo_n "checking for C compiler default output file name... " >&6; }
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2991$as_echo "$ac_file" >&6; }
2992ac_exeext=$ac_cv_exeext
2993
2994rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2995ac_clean_files=$ac_clean_files_save
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2997$as_echo_n "checking for suffix of executables... " >&6; }
2998if { { ac_try="$ac_link"
2999case "(($ac_try" in
3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001  *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005  (eval "$ac_link") 2>&5
3006  ac_status=$?
3007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008  test $ac_status = 0; }; then :
3009  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3011# work properly (i.e., refer to `conftest.exe'), while it won't with
3012# `rm'.
3013for ac_file in conftest.exe conftest conftest.*; do
3014  test -f "$ac_file" || continue
3015  case $ac_file in
3016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018          break;;
3019    * ) break;;
3020  esac
3021done
3022else
3023  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3026See \`config.log' for more details" "$LINENO" 5; }
3027fi
3028rm -f conftest conftest$ac_cv_exeext
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3030$as_echo "$ac_cv_exeext" >&6; }
3031
3032rm -f conftest.$ac_ext
3033EXEEXT=$ac_cv_exeext
3034ac_exeext=$EXEEXT
3035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h.  */
3037#include <stdio.h>
3038int
3039main ()
3040{
3041FILE *f = fopen ("conftest.out", "w");
3042 return ferror (f) || fclose (f) != 0;
3043
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048ac_clean_files="$ac_clean_files conftest.out"
3049# Check that the compiler produces executables we can run.  If not, either
3050# the compiler is broken, or we cross compile.
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3052$as_echo_n "checking whether we are cross compiling... " >&6; }
3053if test "$cross_compiling" != yes; then
3054  { { ac_try="$ac_link"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061  (eval "$ac_link") 2>&5
3062  ac_status=$?
3063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064  test $ac_status = 0; }
3065  if { ac_try='./conftest$ac_cv_exeext'
3066  { { case "(($ac_try" in
3067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068  *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071$as_echo "$ac_try_echo"; } >&5
3072  (eval "$ac_try") 2>&5
3073  ac_status=$?
3074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075  test $ac_status = 0; }; }; then
3076    cross_compiling=no
3077  else
3078    if test "$cross_compiling" = maybe; then
3079        cross_compiling=yes
3080    else
3081        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083as_fn_error $? "cannot run C compiled programs.
3084If you meant to cross compile, use \`--host'.
3085See \`config.log' for more details" "$LINENO" 5; }
3086    fi
3087  fi
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3090$as_echo "$cross_compiling" >&6; }
3091
3092rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3095$as_echo_n "checking for suffix of object files... " >&6; }
3096if ${ac_cv_objext+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h.  */
3101
3102int
3103main ()
3104{
3105
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110rm -f conftest.o conftest.obj
3111if { { ac_try="$ac_compile"
3112case "(($ac_try" in
3113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114  *) ac_try_echo=$ac_try;;
3115esac
3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
3118  (eval "$ac_compile") 2>&5
3119  ac_status=$?
3120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121  test $ac_status = 0; }; then :
3122  for ac_file in conftest.o conftest.obj conftest.*; do
3123  test -f "$ac_file" || continue;
3124  case $ac_file in
3125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3126    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127       break;;
3128  esac
3129done
3130else
3131  $as_echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136as_fn_error $? "cannot compute suffix of object files: cannot compile
3137See \`config.log' for more details" "$LINENO" 5; }
3138fi
3139rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3142$as_echo "$ac_cv_objext" >&6; }
3143OBJEXT=$ac_cv_objext
3144ac_objext=$OBJEXT
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3146$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3147if ${ac_cv_c_compiler_gnu+:} false; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151/* end confdefs.h.  */
3152
3153int
3154main ()
3155{
3156#ifndef __GNUC__
3157       choke me
3158#endif
3159
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164if ac_fn_c_try_compile "$LINENO"; then :
3165  ac_compiler_gnu=yes
3166else
3167  ac_compiler_gnu=no
3168fi
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171
3172fi
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3174$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3175if test $ac_compiler_gnu = yes; then
3176  GCC=yes
3177else
3178  GCC=
3179fi
3180ac_test_CFLAGS=${CFLAGS+set}
3181ac_save_CFLAGS=$CFLAGS
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3183$as_echo_n "checking whether $CC accepts -g... " >&6; }
3184if ${ac_cv_prog_cc_g+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  ac_save_c_werror_flag=$ac_c_werror_flag
3188   ac_c_werror_flag=yes
3189   ac_cv_prog_cc_g=no
3190   CFLAGS="-g"
3191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202if ac_fn_c_try_compile "$LINENO"; then :
3203  ac_cv_prog_cc_g=yes
3204else
3205  CFLAGS=""
3206      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217if ac_fn_c_try_compile "$LINENO"; then :
3218
3219else
3220  ac_c_werror_flag=$ac_save_c_werror_flag
3221         CFLAGS="-g"
3222         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223/* end confdefs.h.  */
3224
3225int
3226main ()
3227{
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233if ac_fn_c_try_compile "$LINENO"; then :
3234  ac_cv_prog_cc_g=yes
3235fi
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241   ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3244$as_echo "$ac_cv_prog_cc_g" >&6; }
3245if test "$ac_test_CFLAGS" = set; then
3246  CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248  if test "$GCC" = yes; then
3249    CFLAGS="-g -O2"
3250  else
3251    CFLAGS="-g"
3252  fi
3253else
3254  if test "$GCC" = yes; then
3255    CFLAGS="-O2"
3256  else
3257    CFLAGS=
3258  fi
3259fi
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3261$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3262if ${ac_cv_prog_cc_c89+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  ac_cv_prog_cc_c89=no
3266ac_save_CC=$CC
3267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268/* end confdefs.h.  */
3269#include <stdarg.h>
3270#include <stdio.h>
3271struct stat;
3272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276     char **p;
3277     int i;
3278{
3279  return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283  char *s;
3284  va_list v;
3285  va_start (v,p);
3286  s = g (p, va_arg (v,int));
3287  va_end (v);
3288  return s;
3289}
3290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3292   function prototypes and stuff, but not '\xHH' hex character constants.
3293   These don't provoke an error unfortunately, instead are silently treated
3294   as 'x'.  The following induces an error, until -std is added to get
3295   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3296   array size at least.  It's necessary to write '\x00'==0 to get something
3297   that's true only with -std.  */
3298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301   inside strings and character constants.  */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321do
3322  CC="$ac_save_CC $ac_arg"
3323  if ac_fn_c_try_compile "$LINENO"; then :
3324  ac_cv_prog_cc_c89=$ac_arg
3325fi
3326rm -f core conftest.err conftest.$ac_objext
3327  test "x$ac_cv_prog_cc_c89" != "xno" && break
3328done
3329rm -f conftest.$ac_ext
3330CC=$ac_save_CC
3331
3332fi
3333# AC_CACHE_VAL
3334case "x$ac_cv_prog_cc_c89" in
3335  x)
3336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3337$as_echo "none needed" >&6; } ;;
3338  xno)
3339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3340$as_echo "unsupported" >&6; } ;;
3341  *)
3342    CC="$CC $ac_cv_prog_cc_c89"
3343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3344$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3345esac
3346if test "x$ac_cv_prog_cc_c89" != xno; then :
3347
3348fi
3349
3350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3362$as_echo_n "checking how to run the C preprocessor... " >&6; }
3363# On Suns, sometimes $CPP names a directory.
3364if test -n "$CPP" && test -d "$CPP"; then
3365  CPP=
3366fi
3367if test -z "$CPP"; then
3368  if ${ac_cv_prog_CPP+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371      # Double quotes because CPP needs to be expanded
3372    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373    do
3374      ac_preproc_ok=false
3375for ac_c_preproc_warn_flag in '' yes
3376do
3377  # Use a header file that comes with gcc, so configuring glibc
3378  # with a fresh cross-compiler works.
3379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380  # <limits.h> exists even on freestanding compilers.
3381  # On the NeXT, cc -E runs the code through the compiler's parser,
3382  # not just through cpp. "Syntax error" is here to catch this case.
3383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384/* end confdefs.h.  */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
3390                     Syntax error
3391_ACEOF
3392if ac_fn_c_try_cpp "$LINENO"; then :
3393
3394else
3395  # Broken: fails on valid input.
3396continue
3397fi
3398rm -f conftest.err conftest.i conftest.$ac_ext
3399
3400  # OK, works on sane cases.  Now check whether nonexistent headers
3401  # can be detected and how.
3402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h.  */
3404#include <ac_nonexistent.h>
3405_ACEOF
3406if ac_fn_c_try_cpp "$LINENO"; then :
3407  # Broken: success on invalid input.
3408continue
3409else
3410  # Passes both tests.
3411ac_preproc_ok=:
3412break
3413fi
3414rm -f conftest.err conftest.i conftest.$ac_ext
3415
3416done
3417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3418rm -f conftest.i conftest.err conftest.$ac_ext
3419if $ac_preproc_ok; then :
3420  break
3421fi
3422
3423    done
3424    ac_cv_prog_CPP=$CPP
3425
3426fi
3427  CPP=$ac_cv_prog_CPP
3428else
3429  ac_cv_prog_CPP=$CPP
3430fi
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3432$as_echo "$CPP" >&6; }
3433ac_preproc_ok=false
3434for ac_c_preproc_warn_flag in '' yes
3435do
3436  # Use a header file that comes with gcc, so configuring glibc
3437  # with a fresh cross-compiler works.
3438  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3439  # <limits.h> exists even on freestanding compilers.
3440  # On the NeXT, cc -E runs the code through the compiler's parser,
3441  # not just through cpp. "Syntax error" is here to catch this case.
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444#ifdef __STDC__
3445# include <limits.h>
3446#else
3447# include <assert.h>
3448#endif
3449                     Syntax error
3450_ACEOF
3451if ac_fn_c_try_cpp "$LINENO"; then :
3452
3453else
3454  # Broken: fails on valid input.
3455continue
3456fi
3457rm -f conftest.err conftest.i conftest.$ac_ext
3458
3459  # OK, works on sane cases.  Now check whether nonexistent headers
3460  # can be detected and how.
3461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463#include <ac_nonexistent.h>
3464_ACEOF
3465if ac_fn_c_try_cpp "$LINENO"; then :
3466  # Broken: success on invalid input.
3467continue
3468else
3469  # Passes both tests.
3470ac_preproc_ok=:
3471break
3472fi
3473rm -f conftest.err conftest.i conftest.$ac_ext
3474
3475done
3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477rm -f conftest.i conftest.err conftest.$ac_ext
3478if $ac_preproc_ok; then :
3479
3480else
3481  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3484See \`config.log' for more details" "$LINENO" 5; }
3485fi
3486
3487ac_ext=c
3488ac_cpp='$CPP $CPPFLAGS'
3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493ac_ext=cpp
3494ac_cpp='$CXXCPP $CPPFLAGS'
3495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498if test -z "$CXX"; then
3499  if test -n "$CCC"; then
3500    CXX=$CCC
3501  else
3502    if test -n "$ac_tool_prefix"; then
3503  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3504  do
3505    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if ${ac_cv_prog_CXX+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  if test -n "$CXX"; then
3513  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  test -z "$as_dir" && as_dir=.
3520    for ac_exec_ext in '' $ac_executable_extensions; do
3521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524    break 2
3525  fi
3526done
3527  done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532CXX=$ac_cv_prog_CXX
3533if test -n "$CXX"; then
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3535$as_echo "$CXX" >&6; }
3536else
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542    test -n "$CXX" && break
3543  done
3544fi
3545if test -z "$CXX"; then
3546  ac_ct_CXX=$CXX
3547  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3548do
3549  # Extract the first word of "$ac_prog", so it can be a program name with args.
3550set dummy $ac_prog; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if test -n "$ac_ct_CXX"; then
3557  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562  IFS=$as_save_IFS
3563  test -z "$as_dir" && as_dir=.
3564    for ac_exec_ext in '' $ac_executable_extensions; do
3565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566    ac_cv_prog_ac_ct_CXX="$ac_prog"
3567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568    break 2
3569  fi
3570done
3571  done
3572IFS=$as_save_IFS
3573
3574fi
3575fi
3576ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3577if test -n "$ac_ct_CXX"; then
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3579$as_echo "$ac_ct_CXX" >&6; }
3580else
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585
3586  test -n "$ac_ct_CXX" && break
3587done
3588
3589  if test "x$ac_ct_CXX" = x; then
3590    CXX="g++"
3591  else
3592    case $cross_compiling:$ac_tool_warned in
3593yes:)
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596ac_tool_warned=yes ;;
3597esac
3598    CXX=$ac_ct_CXX
3599  fi
3600fi
3601
3602  fi
3603fi
3604# Provide some information about the compiler.
3605$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3606set X $ac_compile
3607ac_compiler=$2
3608for ac_option in --version -v -V -qversion; do
3609  { { ac_try="$ac_compiler $ac_option >&5"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3617  ac_status=$?
3618  if test -s conftest.err; then
3619    sed '10a\
3620... rest of stderr output deleted ...
3621         10q' conftest.err >conftest.er1
3622    cat conftest.er1 >&5
3623  fi
3624  rm -f conftest.er1 conftest.err
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }
3627done
3628
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3630$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3631if ${ac_cv_cxx_compiler_gnu+:} false; then :
3632  $as_echo_n "(cached) " >&6
3633else
3634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636
3637int
3638main ()
3639{
3640#ifndef __GNUC__
3641       choke me
3642#endif
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648if ac_fn_cxx_try_compile "$LINENO"; then :
3649  ac_compiler_gnu=yes
3650else
3651  ac_compiler_gnu=no
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3655
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3658$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3659if test $ac_compiler_gnu = yes; then
3660  GXX=yes
3661else
3662  GXX=
3663fi
3664ac_test_CXXFLAGS=${CXXFLAGS+set}
3665ac_save_CXXFLAGS=$CXXFLAGS
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3667$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3668if ${ac_cv_prog_cxx_g+:} false; then :
3669  $as_echo_n "(cached) " >&6
3670else
3671  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3672   ac_cxx_werror_flag=yes
3673   ac_cv_prog_cxx_g=no
3674   CXXFLAGS="-g"
3675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676/* end confdefs.h.  */
3677
3678int
3679main ()
3680{
3681
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686if ac_fn_cxx_try_compile "$LINENO"; then :
3687  ac_cv_prog_cxx_g=yes
3688else
3689  CXXFLAGS=""
3690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691/* end confdefs.h.  */
3692
3693int
3694main ()
3695{
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701if ac_fn_cxx_try_compile "$LINENO"; then :
3702
3703else
3704  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3705         CXXFLAGS="-g"
3706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708
3709int
3710main ()
3711{
3712
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717if ac_fn_cxx_try_compile "$LINENO"; then :
3718  ac_cv_prog_cxx_g=yes
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721fi
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723fi
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3728$as_echo "$ac_cv_prog_cxx_g" >&6; }
3729if test "$ac_test_CXXFLAGS" = set; then
3730  CXXFLAGS=$ac_save_CXXFLAGS
3731elif test $ac_cv_prog_cxx_g = yes; then
3732  if test "$GXX" = yes; then
3733    CXXFLAGS="-g -O2"
3734  else
3735    CXXFLAGS="-g"
3736  fi
3737else
3738  if test "$GXX" = yes; then
3739    CXXFLAGS="-O2"
3740  else
3741    CXXFLAGS=
3742  fi
3743fi
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750ac_ext=cpp
3751ac_cpp='$CXXCPP $CPPFLAGS'
3752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3756$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3757if test -z "$CXXCPP"; then
3758  if ${ac_cv_prog_CXXCPP+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761      # Double quotes because CXXCPP needs to be expanded
3762    for CXXCPP in "$CXX -E" "/lib/cpp"
3763    do
3764      ac_preproc_ok=false
3765for ac_cxx_preproc_warn_flag in '' yes
3766do
3767  # Use a header file that comes with gcc, so configuring glibc
3768  # with a fresh cross-compiler works.
3769  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770  # <limits.h> exists even on freestanding compilers.
3771  # On the NeXT, cc -E runs the code through the compiler's parser,
3772  # not just through cpp. "Syntax error" is here to catch this case.
3773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775#ifdef __STDC__
3776# include <limits.h>
3777#else
3778# include <assert.h>
3779#endif
3780                     Syntax error
3781_ACEOF
3782if ac_fn_cxx_try_cpp "$LINENO"; then :
3783
3784else
3785  # Broken: fails on valid input.
3786continue
3787fi
3788rm -f conftest.err conftest.i conftest.$ac_ext
3789
3790  # OK, works on sane cases.  Now check whether nonexistent headers
3791  # can be detected and how.
3792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794#include <ac_nonexistent.h>
3795_ACEOF
3796if ac_fn_cxx_try_cpp "$LINENO"; then :
3797  # Broken: success on invalid input.
3798continue
3799else
3800  # Passes both tests.
3801ac_preproc_ok=:
3802break
3803fi
3804rm -f conftest.err conftest.i conftest.$ac_ext
3805
3806done
3807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808rm -f conftest.i conftest.err conftest.$ac_ext
3809if $ac_preproc_ok; then :
3810  break
3811fi
3812
3813    done
3814    ac_cv_prog_CXXCPP=$CXXCPP
3815
3816fi
3817  CXXCPP=$ac_cv_prog_CXXCPP
3818else
3819  ac_cv_prog_CXXCPP=$CXXCPP
3820fi
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3822$as_echo "$CXXCPP" >&6; }
3823ac_preproc_ok=false
3824for ac_cxx_preproc_warn_flag in '' yes
3825do
3826  # Use a header file that comes with gcc, so configuring glibc
3827  # with a fresh cross-compiler works.
3828  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829  # <limits.h> exists even on freestanding compilers.
3830  # On the NeXT, cc -E runs the code through the compiler's parser,
3831  # not just through cpp. "Syntax error" is here to catch this case.
3832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834#ifdef __STDC__
3835# include <limits.h>
3836#else
3837# include <assert.h>
3838#endif
3839                     Syntax error
3840_ACEOF
3841if ac_fn_cxx_try_cpp "$LINENO"; then :
3842
3843else
3844  # Broken: fails on valid input.
3845continue
3846fi
3847rm -f conftest.err conftest.i conftest.$ac_ext
3848
3849  # OK, works on sane cases.  Now check whether nonexistent headers
3850  # can be detected and how.
3851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h.  */
3853#include <ac_nonexistent.h>
3854_ACEOF
3855if ac_fn_cxx_try_cpp "$LINENO"; then :
3856  # Broken: success on invalid input.
3857continue
3858else
3859  # Passes both tests.
3860ac_preproc_ok=:
3861break
3862fi
3863rm -f conftest.err conftest.i conftest.$ac_ext
3864
3865done
3866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867rm -f conftest.i conftest.err conftest.$ac_ext
3868if $ac_preproc_ok; then :
3869
3870else
3871  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3874See \`config.log' for more details" "$LINENO" 5; }
3875fi
3876
3877ac_ext=c
3878ac_cpp='$CPP $CPPFLAGS'
3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883ac_ext=cpp
3884ac_cpp='$CXXCPP $CPPFLAGS'
3885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3888if test -z "$CXX"; then
3889  if test -n "$CCC"; then
3890    CXX=$CCC
3891  else
3892    if test -n "$ac_tool_prefix"; then
3893  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3894  do
3895    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898$as_echo_n "checking for $ac_word... " >&6; }
3899if ${ac_cv_prog_CXX+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  if test -n "$CXX"; then
3903  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908  IFS=$as_save_IFS
3909  test -z "$as_dir" && as_dir=.
3910    for ac_exec_ext in '' $ac_executable_extensions; do
3911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914    break 2
3915  fi
3916done
3917  done
3918IFS=$as_save_IFS
3919
3920fi
3921fi
3922CXX=$ac_cv_prog_CXX
3923if test -n "$CXX"; then
3924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3925$as_echo "$CXX" >&6; }
3926else
3927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928$as_echo "no" >&6; }
3929fi
3930
3931
3932    test -n "$CXX" && break
3933  done
3934fi
3935if test -z "$CXX"; then
3936  ac_ct_CXX=$CXX
3937  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3938do
3939  # Extract the first word of "$ac_prog", so it can be a program name with args.
3940set dummy $ac_prog; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
3943if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  if test -n "$ac_ct_CXX"; then
3947  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952  IFS=$as_save_IFS
3953  test -z "$as_dir" && as_dir=.
3954    for ac_exec_ext in '' $ac_executable_extensions; do
3955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956    ac_cv_prog_ac_ct_CXX="$ac_prog"
3957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958    break 2
3959  fi
3960done
3961  done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3967if test -n "$ac_ct_CXX"; then
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3969$as_echo "$ac_ct_CXX" >&6; }
3970else
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976  test -n "$ac_ct_CXX" && break
3977done
3978
3979  if test "x$ac_ct_CXX" = x; then
3980    CXX="g++"
3981  else
3982    case $cross_compiling:$ac_tool_warned in
3983yes:)
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986ac_tool_warned=yes ;;
3987esac
3988    CXX=$ac_ct_CXX
3989  fi
3990fi
3991
3992  fi
3993fi
3994# Provide some information about the compiler.
3995$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3996set X $ac_compile
3997ac_compiler=$2
3998for ac_option in --version -v -V -qversion; do
3999  { { ac_try="$ac_compiler $ac_option >&5"
4000case "(($ac_try" in
4001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002  *) ac_try_echo=$ac_try;;
4003esac
4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005$as_echo "$ac_try_echo"; } >&5
4006  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4007  ac_status=$?
4008  if test -s conftest.err; then
4009    sed '10a\
4010... rest of stderr output deleted ...
4011         10q' conftest.err >conftest.er1
4012    cat conftest.er1 >&5
4013  fi
4014  rm -f conftest.er1 conftest.err
4015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016  test $ac_status = 0; }
4017done
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4020$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4021if ${ac_cv_cxx_compiler_gnu+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026
4027int
4028main ()
4029{
4030#ifndef __GNUC__
4031       choke me
4032#endif
4033
4034  ;
4035  return 0;
4036}
4037_ACEOF
4038if ac_fn_cxx_try_compile "$LINENO"; then :
4039  ac_compiler_gnu=yes
4040else
4041  ac_compiler_gnu=no
4042fi
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4045
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4048$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4049if test $ac_compiler_gnu = yes; then
4050  GXX=yes
4051else
4052  GXX=
4053fi
4054ac_test_CXXFLAGS=${CXXFLAGS+set}
4055ac_save_CXXFLAGS=$CXXFLAGS
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4057$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4058if ${ac_cv_prog_cxx_g+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4062   ac_cxx_werror_flag=yes
4063   ac_cv_prog_cxx_g=no
4064   CXXFLAGS="-g"
4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067
4068int
4069main ()
4070{
4071
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076if ac_fn_cxx_try_compile "$LINENO"; then :
4077  ac_cv_prog_cxx_g=yes
4078else
4079  CXXFLAGS=""
4080      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082
4083int
4084main ()
4085{
4086
4087  ;
4088  return 0;
4089}
4090_ACEOF
4091if ac_fn_cxx_try_compile "$LINENO"; then :
4092
4093else
4094  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4095         CXXFLAGS="-g"
4096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098
4099int
4100main ()
4101{
4102
4103  ;
4104  return 0;
4105}
4106_ACEOF
4107if ac_fn_cxx_try_compile "$LINENO"; then :
4108  ac_cv_prog_cxx_g=yes
4109fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113fi
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4118$as_echo "$ac_cv_prog_cxx_g" >&6; }
4119if test "$ac_test_CXXFLAGS" = set; then
4120  CXXFLAGS=$ac_save_CXXFLAGS
4121elif test $ac_cv_prog_cxx_g = yes; then
4122  if test "$GXX" = yes; then
4123    CXXFLAGS="-g -O2"
4124  else
4125    CXXFLAGS="-g"
4126  fi
4127else
4128  if test "$GXX" = yes; then
4129    CXXFLAGS="-O2"
4130  else
4131    CXXFLAGS=
4132  fi
4133fi
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140ac_ext=cpp
4141ac_cpp='$CXXCPP $CPPFLAGS'
4142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4145
4146
4147
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4150$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4151if ${ac_cv_path_GREP+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test -z "$GREP"; then
4155  ac_path_GREP_found=false
4156  # Loop through the user's path and test for each of PROGNAME-LIST
4157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159do
4160  IFS=$as_save_IFS
4161  test -z "$as_dir" && as_dir=.
4162    for ac_prog in grep ggrep; do
4163    for ac_exec_ext in '' $ac_executable_extensions; do
4164      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4165      as_fn_executable_p "$ac_path_GREP" || continue
4166# Check for GNU ac_path_GREP and select it if it is found.
4167  # Check for GNU $ac_path_GREP
4168case `"$ac_path_GREP" --version 2>&1` in
4169*GNU*)
4170  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4171*)
4172  ac_count=0
4173  $as_echo_n 0123456789 >"conftest.in"
4174  while :
4175  do
4176    cat "conftest.in" "conftest.in" >"conftest.tmp"
4177    mv "conftest.tmp" "conftest.in"
4178    cp "conftest.in" "conftest.nl"
4179    $as_echo 'GREP' >> "conftest.nl"
4180    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182    as_fn_arith $ac_count + 1 && ac_count=$as_val
4183    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4184      # Best one so far, save it but keep looking for a better one
4185      ac_cv_path_GREP="$ac_path_GREP"
4186      ac_path_GREP_max=$ac_count
4187    fi
4188    # 10*(2^10) chars as input seems more than enough
4189    test $ac_count -gt 10 && break
4190  done
4191  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192esac
4193
4194      $ac_path_GREP_found && break 3
4195    done
4196  done
4197  done
4198IFS=$as_save_IFS
4199  if test -z "$ac_cv_path_GREP"; then
4200    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201  fi
4202else
4203  ac_cv_path_GREP=$GREP
4204fi
4205
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4208$as_echo "$ac_cv_path_GREP" >&6; }
4209 GREP="$ac_cv_path_GREP"
4210
4211
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4213$as_echo_n "checking for egrep... " >&6; }
4214if ${ac_cv_path_EGREP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4218   then ac_cv_path_EGREP="$GREP -E"
4219   else
4220     if test -z "$EGREP"; then
4221  ac_path_EGREP_found=false
4222  # Loop through the user's path and test for each of PROGNAME-LIST
4223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225do
4226  IFS=$as_save_IFS
4227  test -z "$as_dir" && as_dir=.
4228    for ac_prog in egrep; do
4229    for ac_exec_ext in '' $ac_executable_extensions; do
4230      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4231      as_fn_executable_p "$ac_path_EGREP" || continue
4232# Check for GNU ac_path_EGREP and select it if it is found.
4233  # Check for GNU $ac_path_EGREP
4234case `"$ac_path_EGREP" --version 2>&1` in
4235*GNU*)
4236  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4237*)
4238  ac_count=0
4239  $as_echo_n 0123456789 >"conftest.in"
4240  while :
4241  do
4242    cat "conftest.in" "conftest.in" >"conftest.tmp"
4243    mv "conftest.tmp" "conftest.in"
4244    cp "conftest.in" "conftest.nl"
4245    $as_echo 'EGREP' >> "conftest.nl"
4246    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248    as_fn_arith $ac_count + 1 && ac_count=$as_val
4249    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4250      # Best one so far, save it but keep looking for a better one
4251      ac_cv_path_EGREP="$ac_path_EGREP"
4252      ac_path_EGREP_max=$ac_count
4253    fi
4254    # 10*(2^10) chars as input seems more than enough
4255    test $ac_count -gt 10 && break
4256  done
4257  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258esac
4259
4260      $ac_path_EGREP_found && break 3
4261    done
4262  done
4263  done
4264IFS=$as_save_IFS
4265  if test -z "$ac_cv_path_EGREP"; then
4266    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267  fi
4268else
4269  ac_cv_path_EGREP=$EGREP
4270fi
4271
4272   fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4275$as_echo "$ac_cv_path_EGREP" >&6; }
4276 EGREP="$ac_cv_path_EGREP"
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4280$as_echo_n "checking for ANSI C header files... " >&6; }
4281if ${ac_cv_header_stdc+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286#include <stdlib.h>
4287#include <stdarg.h>
4288#include <string.h>
4289#include <float.h>
4290
4291int
4292main ()
4293{
4294
4295  ;
4296  return 0;
4297}
4298_ACEOF
4299if ac_fn_cxx_try_compile "$LINENO"; then :
4300  ac_cv_header_stdc=yes
4301else
4302  ac_cv_header_stdc=no
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305
4306if test $ac_cv_header_stdc = yes; then
4307  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310#include <string.h>
4311
4312_ACEOF
4313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314  $EGREP "memchr" >/dev/null 2>&1; then :
4315
4316else
4317  ac_cv_header_stdc=no
4318fi
4319rm -f conftest*
4320
4321fi
4322
4323if test $ac_cv_header_stdc = yes; then
4324  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327#include <stdlib.h>
4328
4329_ACEOF
4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331  $EGREP "free" >/dev/null 2>&1; then :
4332
4333else
4334  ac_cv_header_stdc=no
4335fi
4336rm -f conftest*
4337
4338fi
4339
4340if test $ac_cv_header_stdc = yes; then
4341  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342  if test "$cross_compiling" = yes; then :
4343  :
4344else
4345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347#include <ctype.h>
4348#include <stdlib.h>
4349#if ((' ' & 0x0FF) == 0x020)
4350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352#else
4353# define ISLOWER(c) \
4354                   (('a' <= (c) && (c) <= 'i') \
4355                     || ('j' <= (c) && (c) <= 'r') \
4356                     || ('s' <= (c) && (c) <= 'z'))
4357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4358#endif
4359
4360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361int
4362main ()
4363{
4364  int i;
4365  for (i = 0; i < 256; i++)
4366    if (XOR (islower (i), ISLOWER (i))
4367        || toupper (i) != TOUPPER (i))
4368      return 2;
4369  return 0;
4370}
4371_ACEOF
4372if ac_fn_cxx_try_run "$LINENO"; then :
4373
4374else
4375  ac_cv_header_stdc=no
4376fi
4377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4378  conftest.$ac_objext conftest.beam conftest.$ac_ext
4379fi
4380
4381fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4384$as_echo "$ac_cv_header_stdc" >&6; }
4385if test $ac_cv_header_stdc = yes; then
4386
4387$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4388
4389fi
4390
4391# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393                  inttypes.h stdint.h unistd.h
4394do :
4395  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4397"
4398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4399  cat >>confdefs.h <<_ACEOF
4400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401_ACEOF
4402
4403fi
4404
4405done
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4409$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4410if ${ac_cv_c_bigendian+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413  ac_cv_c_bigendian=unknown
4414    # See if we're dealing with a universal compiler.
4415    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h.  */
4417#ifndef __APPLE_CC__
4418               not a universal capable compiler
4419             #endif
4420             typedef int dummy;
4421
4422_ACEOF
4423if ac_fn_cxx_try_compile "$LINENO"; then :
4424
4425        # Check for potential -arch flags.  It is not universal unless
4426        # there are at least two -arch flags with different values.
4427        ac_arch=
4428        ac_prev=
4429        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4430         if test -n "$ac_prev"; then
4431           case $ac_word in
4432             i?86 | x86_64 | ppc | ppc64)
4433               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4434                 ac_arch=$ac_word
4435               else
4436                 ac_cv_c_bigendian=universal
4437                 break
4438               fi
4439               ;;
4440           esac
4441           ac_prev=
4442         elif test "x$ac_word" = "x-arch"; then
4443           ac_prev=arch
4444         fi
4445       done
4446fi
4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448    if test $ac_cv_c_bigendian = unknown; then
4449      # See if sys/param.h defines the BYTE_ORDER macro.
4450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452#include <sys/types.h>
4453             #include <sys/param.h>
4454
4455int
4456main ()
4457{
4458#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4459                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4460                     && LITTLE_ENDIAN)
4461              bogus endian macros
4462             #endif
4463
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468if ac_fn_cxx_try_compile "$LINENO"; then :
4469  # It does; now see whether it defined to BIG_ENDIAN or not.
4470         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472#include <sys/types.h>
4473                #include <sys/param.h>
4474
4475int
4476main ()
4477{
4478#if BYTE_ORDER != BIG_ENDIAN
4479                 not big endian
4480                #endif
4481
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486if ac_fn_cxx_try_compile "$LINENO"; then :
4487  ac_cv_c_bigendian=yes
4488else
4489  ac_cv_c_bigendian=no
4490fi
4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492fi
4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494    fi
4495    if test $ac_cv_c_bigendian = unknown; then
4496      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4497      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499#include <limits.h>
4500
4501int
4502main ()
4503{
4504#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4505              bogus endian macros
4506             #endif
4507
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512if ac_fn_cxx_try_compile "$LINENO"; then :
4513  # It does; now see whether it defined to _BIG_ENDIAN or not.
4514         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h.  */
4516#include <limits.h>
4517
4518int
4519main ()
4520{
4521#ifndef _BIG_ENDIAN
4522                 not big endian
4523                #endif
4524
4525  ;
4526  return 0;
4527}
4528_ACEOF
4529if ac_fn_cxx_try_compile "$LINENO"; then :
4530  ac_cv_c_bigendian=yes
4531else
4532  ac_cv_c_bigendian=no
4533fi
4534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535fi
4536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537    fi
4538    if test $ac_cv_c_bigendian = unknown; then
4539      # Compile a test program.
4540      if test "$cross_compiling" = yes; then :
4541  # Try to guess by grepping values from an object file.
4542         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h.  */
4544short int ascii_mm[] =
4545                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4546                short int ascii_ii[] =
4547                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4548                int use_ascii (int i) {
4549                  return ascii_mm[i] + ascii_ii[i];
4550                }
4551                short int ebcdic_ii[] =
4552                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4553                short int ebcdic_mm[] =
4554                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4555                int use_ebcdic (int i) {
4556                  return ebcdic_mm[i] + ebcdic_ii[i];
4557                }
4558                extern int foo;
4559
4560int
4561main ()
4562{
4563return use_ascii (foo) == use_ebcdic (foo);
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568if ac_fn_cxx_try_compile "$LINENO"; then :
4569  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4570              ac_cv_c_bigendian=yes
4571            fi
4572            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4573              if test "$ac_cv_c_bigendian" = unknown; then
4574                ac_cv_c_bigendian=no
4575              else
4576                # finding both strings is unlikely to happen, but who knows?
4577                ac_cv_c_bigendian=unknown
4578              fi
4579            fi
4580fi
4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582else
4583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h.  */
4585$ac_includes_default
4586int
4587main ()
4588{
4589
4590             /* Are we little or big endian?  From Harbison&Steele.  */
4591             union
4592             {
4593               long int l;
4594               char c[sizeof (long int)];
4595             } u;
4596             u.l = 1;
4597             return u.c[sizeof (long int) - 1] == 1;
4598
4599  ;
4600  return 0;
4601}
4602_ACEOF
4603if ac_fn_cxx_try_run "$LINENO"; then :
4604  ac_cv_c_bigendian=no
4605else
4606  ac_cv_c_bigendian=yes
4607fi
4608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4609  conftest.$ac_objext conftest.beam conftest.$ac_ext
4610fi
4611
4612    fi
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4615$as_echo "$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in #(
4617   yes)
4618     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4619;; #(
4620   no)
4621      ;; #(
4622   universal)
4623
4624$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4625
4626     ;; #(
4627   *)
4628     as_fn_error $? "unknown endianness
4629 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4630 esac
4631
4632
4633# Save the values as shell variables so that we can substitute them
4634# into bltHash.h for situtations where there's no bltInt.h.
4635
4636
4637LD_RPATH="";
4638
4639#
4640# Need to check for the following dependencies:
4641#       Rappture headers and library (done)
4642#       Tcl headers and library (done)
4643#       GL headers and library
4644#       GLuT headers and library
4645#       GLEW header and library
4646#       Cg headers and library
4647#       CgGL headers and library
4648#       pthread library
4649#       ffmpeg headers and library (started)
4650#
4651
4652TCL_VERSION="8.4"
4653for dir in \
4654 ${exec_prefix} \
4655 ${exec_prefix}/lib \
4656 ${with_rappture} \
4657 ${with_rappture}/lib ; do
4658  tclconfig="${dir}/tclConfig.sh"
4659  if test -f "$tclconfig" ; then
4660    . $tclconfig
4661    break
4662  fi
4663done
4664TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
4665
4666if test "x$with_tcllib" != "x" ; then
4667   tclconfig="${with_tcllib}/tclConfig.sh"
4668   if test -f "$tclconfig" ; then
4669    . $tclconfig
4670   fi
4671   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
4672fi
4673if test "x$with_tclinclude" != "x" ; then
4674   TCL_INC_SPEC="-I${with_tclinclude}"
4675fi
4676
4677RP_DIR=""
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&5
4679$as_echo_n "checking for rappture... " >&6; }
4680if test "$with_rappture" == "yes" ; then
4681  for dir in "$exec_prefix" "/usr" ; do
4682    if test -r "$dir/include/rappture2/rappture2.h" -a \
4683     -r "$dir/lib/librappture.a"; then
4684      RP_DIR="$dir"
4685      RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2"
4686      RP_LIB_DIR="$dir/lib"
4687      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
4688$as_echo "$dir" >&6; }
4689      break
4690    fi
4691  done
4692else
4693  if test ! -d "$with_rappture" ; then
4694    as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 5
4695  fi
4696  RP_DIR=$with_rappture
4697  RP_INC_SPEC="-I$with_rappture/include -I$with_rappture/include/rappture2"
4698  RP_LIB_DIR="$with_rappture/lib"
4699fi
4700if test "x${RP_DIR}" = "x" ; then
4701  as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 5
4702else
4703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&5
4704$as_echo "$with_rappture" >&6; }
4705fi
4706
4707# We are assuming that we're using VTK 6.0
4708VTK_VERSION=6.1
4709VTK_LIB_DIR=${libdir}
4710VTK_INC_DIR=${incdir}
4711
4712if test "x$with_vtk_includes" != "x"; then
4713   VTK_INC_DIR=$with_vtk_includes
4714fi
4715
4716if test "x$with_vtk_libs" != "x"; then
4717   VTK_LIB_DIR=$with_vtk_libs
4718fi
4719
4720if test "x$with_vtk" != "x" ; then
4721   VTK_VERSION=$with_vtk
4722fi
4723
4724if ! test -d "$VTK_INC_DIR/vtk-${VTK_VERSION}" ; then
4725   as_fn_error $? "Couldn't find VTK includes" "$LINENO" 5
4726else
4727   VTK_INC_SPEC="-I${VTK_INC_DIR}/vtk-${VTK_VERSION}"
4728fi
4729
4730save_CPPFLAGS=$CPPFLAGS
4731CPPFLAGS=$VTK_INC_SPEC
4732for ac_header in vtkSmartPointer.h
4733do :
4734  ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default"
4735if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then :
4736  cat >>confdefs.h <<_ACEOF
4737#define HAVE_VTKSMARTPOINTER_H 1
4738_ACEOF
4739
4740else
4741  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&5
4742$as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}
4743fi
4744
4745done
4746
4747CPPFLAGS=$save_CPPFLAGS
4748
4749ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
4750if test "x$ac_cv_header_GL_glut_h" = xyes; then :
4751
4752fi
4753
4754
4755ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
4756if test "x$ac_cv_header_GL_glew_h" = xyes; then :
4757
4758fi
4759
4760
4761
4762for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
4763do :
4764  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4765ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4767  cat >>confdefs.h <<_ACEOF
4768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4769_ACEOF
4770
4771fi
4772
4773done
4774
4775for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
4776do :
4777  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4778ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4780  cat >>confdefs.h <<_ACEOF
4781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782_ACEOF
4783
4784fi
4785
4786done
4787
4788
4789for ac_func in accept4
4790do :
4791  ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
4792if test "x$ac_cv_func_accept4" = xyes; then :
4793  cat >>confdefs.h <<_ACEOF
4794#define HAVE_ACCEPT4 1
4795_ACEOF
4796
4797fi
4798done
4799
4800
4801#--------------------------------------------------------------------
4802# search for ffmpeg executable
4803#--------------------------------------------------------------------
4804if test "${with_ffmpeg}" != "no" ; then
4805  if test "${with_ffmpeg}" = "yes" ; then
4806    # Extract the first word of "ffmpeg", so it can be a program name with args.
4807set dummy ffmpeg; ac_word=$2
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if ${ac_cv_path_FFMPEG+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  case $FFMPEG in
4814  [\\/]* | ?:[\\/]*)
4815  ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
4816  ;;
4817  *)
4818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821  IFS=$as_save_IFS
4822  test -z "$as_dir" && as_dir=.
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825    ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
4826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827    break 2
4828  fi
4829done
4830  done
4831IFS=$as_save_IFS
4832
4833  ;;
4834esac
4835fi
4836FFMPEG=$ac_cv_path_FFMPEG
4837if test -n "$FFMPEG"; then
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
4839$as_echo "$FFMPEG" >&6; }
4840else
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
4846  else
4847    # Extract the first word of "ffmpeg", so it can be a program name with args.
4848set dummy ffmpeg; ac_word=$2
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if ${ac_cv_path_FFMPEG+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  case $FFMPEG in
4855  [\\/]* | ?:[\\/]*)
4856  ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
4857  ;;
4858  *)
4859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}"
4861for as_dir in $as_dummy
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865    for ac_exec_ext in '' $ac_executable_extensions; do
4866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867    ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
4868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869    break 2
4870  fi
4871done
4872  done
4873IFS=$as_save_IFS
4874
4875  ;;
4876esac
4877fi
4878FFMPEG=$ac_cv_path_FFMPEG
4879if test -n "$FFMPEG"; then
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
4881$as_echo "$FFMPEG" >&6; }
4882else
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887
4888  fi
4889  if test "${FFMPEG}x" != "x" ; then
4890
4891$as_echo "#define HAVE_FFMPEG 1" >>confdefs.h
4892
4893  fi
4894fi
4895
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5
4897$as_echo_n "checking for nVidia Cg installation... " >&6; }
4898CG_DIR=""
4899for dir in \
4900 /opt/nvidia-cg-toolkit \
4901 /usr/cg \
4902 /usr
4903do
4904  if test -r "$dir/include" ; then
4905    CG_DIR=$dir
4906    break
4907  fi
4908done
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5
4910$as_echo "${CG_DIR}" >&6; }
4911
4912CG_INC_SPEC="-I${CG_DIR}/include"
4913
4914save_CPPFLAGS=$CPPFLAGS
4915CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"
4916for ac_header in Cg/cgGL.h
4917do :
4918  ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default"
4919if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then :
4920  cat >>confdefs.h <<_ACEOF
4921#define HAVE_CG_CGGL_H 1
4922_ACEOF
4923
4924else
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find nVidia Cg headers" >&5
4926$as_echo "$as_me: WARNING: cannot find nVidia Cg headers" >&2;}
4927fi
4928
4929done
4930
4931CPPFLAGS=$save_CPPFLAGS
4932
4933CG_LIB_DIR=""
4934for dir in \
4935 /opt/nvidia-cg-toolkit \
4936 /usr/cg \
4937 /usr
4938do
4939  if test -r "$dir/lib" ; then
4940    CG_LIB_DIR=$dir/lib
4941    break
4942  fi
4943  if test -r "$dir/lib64" ; then
4944    CG_LIB_DIR=$dir/lib64
4945    break
4946  fi
4947done
4948
4949if test "${CG_LIB_DIR}" = "/usr/lib" ; then
4950  CG_INC_SPEC=""
4951  CG_LIB_SPEC="-lCg -lCgGL"
4952else
4953  CG_LIB_SPEC="-L${CG_LIB_DIR} -lCg -lCgGL"
4954  LD_RPATH="$loader_run_path:${CG_LIB_DIR}"
4955fi
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972ac_config_files="$ac_config_files Doxyfile Makefile graphics/Makefile imgLoaders/Makefile newmat11/Makefile util/Makefile vrmath/Makefile"
4973
4974cat >confcache <<\_ACEOF
4975# This file is a shell script that caches the results of configure
4976# tests run on this system so they can be shared between configure
4977# scripts and configure runs, see configure's option --config-cache.
4978# It is not useful on other systems.  If it contains results you don't
4979# want to keep, you may remove or edit it.
4980#
4981# config.status only pays attention to the cache file if you give it
4982# the --recheck option to rerun configure.
4983#
4984# `ac_cv_env_foo' variables (set or unset) will be overridden when
4985# loading this file, other *unset* `ac_cv_foo' will be assigned the
4986# following values.
4987
4988_ACEOF
4989
4990# The following way of writing the cache mishandles newlines in values,
4991# but we know of no workaround that is simple, portable, and efficient.
4992# So, we kill variables containing newlines.
4993# Ultrix sh set writes to stderr and can't be redirected directly,
4994# and sets the high bit in the cache file unless we assign to the vars.
4995(
4996  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4997    eval ac_val=\$$ac_var
4998    case $ac_val in #(
4999    *${as_nl}*)
5000      case $ac_var in #(
5001      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5003      esac
5004      case $ac_var in #(
5005      _ | IFS | as_nl) ;; #(
5006      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5007      *) { eval $ac_var=; unset $ac_var;} ;;
5008      esac ;;
5009    esac
5010  done
5011
5012  (set) 2>&1 |
5013    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5014    *${as_nl}ac_space=\ *)
5015      # `set' does not quote correctly, so add quotes: double-quote
5016      # substitution turns \\\\ into \\, and sed turns \\ into \.
5017      sed -n \
5018        "s/'/'\\\\''/g;
5019          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5020      ;; #(
5021    *)
5022      # `set' quotes correctly as required by POSIX, so do not add quotes.
5023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5024      ;;
5025    esac |
5026    sort
5027) |
5028  sed '
5029     /^ac_cv_env_/b end
5030     t clear
5031     :clear
5032     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5033     t end
5034     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5035     :end' >>confcache
5036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5037  if test -w "$cache_file"; then
5038    if test "x$cache_file" != "x/dev/null"; then
5039      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5040$as_echo "$as_me: updating cache $cache_file" >&6;}
5041      if test ! -f "$cache_file" || test -h "$cache_file"; then
5042        cat confcache >"$cache_file"
5043      else
5044        case $cache_file in #(
5045        */* | ?:*)
5046          mv -f confcache "$cache_file"$$ &&
5047          mv -f "$cache_file"$$ "$cache_file" ;; #(
5048        *)
5049          mv -f confcache "$cache_file" ;;
5050        esac
5051      fi
5052    fi
5053  else
5054    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5055$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5056  fi
5057fi
5058rm -f confcache
5059
5060test "x$prefix" = xNONE && prefix=$ac_default_prefix
5061# Let make expand exec_prefix.
5062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5063
5064DEFS=-DHAVE_CONFIG_H
5065
5066ac_libobjs=
5067ac_ltlibobjs=
5068U=
5069for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5070  # 1. Remove the extension, and $U if already installed.
5071  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5072  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5073  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5074  #    will be set to the directory where LIBOBJS objects are built.
5075  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5076  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5077done
5078LIBOBJS=$ac_libobjs
5079
5080LTLIBOBJS=$ac_ltlibobjs
5081
5082
5083
5084
5085: "${CONFIG_STATUS=./config.status}"
5086ac_write_fail=0
5087ac_clean_files_save=$ac_clean_files
5088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5090$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5091as_write_fail=0
5092cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5093#! $SHELL
5094# Generated by $as_me.
5095# Run this file to recreate the current configuration.
5096# Compiler output produced by configure, useful for debugging
5097# configure, is in config.log if it exists.
5098
5099debug=false
5100ac_cs_recheck=false
5101ac_cs_silent=false
5102
5103SHELL=\${CONFIG_SHELL-$SHELL}
5104export SHELL
5105_ASEOF
5106cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5107## -------------------- ##
5108## M4sh Initialization. ##
5109## -------------------- ##
5110
5111# Be more Bourne compatible
5112DUALCASE=1; export DUALCASE # for MKS sh
5113if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5114  emulate sh
5115  NULLCMD=:
5116  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5117  # is contrary to our usage.  Disable this feature.
5118  alias -g '${1+"$@"}'='"$@"'
5119  setopt NO_GLOB_SUBST
5120else
5121  case `(set -o) 2>/dev/null` in #(
5122  *posix*) :
5123    set -o posix ;; #(
5124  *) :
5125     ;;
5126esac
5127fi
5128
5129
5130as_nl='
5131'
5132export as_nl
5133# Printing a long string crashes Solaris 7 /usr/bin/printf.
5134as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5137# Prefer a ksh shell builtin over an external printf program on Solaris,
5138# but without wasting forks for bash or zsh.
5139if test -z "$BASH_VERSION$ZSH_VERSION" \
5140    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5141  as_echo='print -r --'
5142  as_echo_n='print -rn --'
5143elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5144  as_echo='printf %s\n'
5145  as_echo_n='printf %s'
5146else
5147  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5148    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5149    as_echo_n='/usr/ucb/echo -n'
5150  else
5151    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5152    as_echo_n_body='eval
5153      arg=$1;
5154      case $arg in #(
5155      *"$as_nl"*)
5156        expr "X$arg" : "X\\(.*\\)$as_nl";
5157        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5158      esac;
5159      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5160    '
5161    export as_echo_n_body
5162    as_echo_n='sh -c $as_echo_n_body as_echo'
5163  fi
5164  export as_echo_body
5165  as_echo='sh -c $as_echo_body as_echo'
5166fi
5167
5168# The user is always right.
5169if test "${PATH_SEPARATOR+set}" != set; then
5170  PATH_SEPARATOR=:
5171  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5172    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5173      PATH_SEPARATOR=';'
5174  }
5175fi
5176
5177
5178# IFS
5179# We need space, tab and new line, in precisely that order.  Quoting is
5180# there to prevent editors from complaining about space-tab.
5181# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5182# splitting by setting IFS to empty value.)
5183IFS=" ""        $as_nl"
5184
5185# Find who we are.  Look in the path if we contain no directory separator.
5186as_myself=
5187case $0 in #((
5188  *[\\/]* ) as_myself=$0 ;;
5189  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5195  done
5196IFS=$as_save_IFS
5197
5198     ;;
5199esac
5200# We did not find ourselves, most probably we were run as `sh COMMAND'
5201# in which case we are not to be found in the path.
5202if test "x$as_myself" = x; then
5203  as_myself=$0
5204fi
5205if test ! -f "$as_myself"; then
5206  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5207  exit 1
5208fi
5209
5210# Unset variables that we do not need and which cause bugs (e.g. in
5211# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5212# suppresses any "Segmentation fault" message there.  '((' could
5213# trigger a bug in pdksh 5.2.14.
5214for as_var in BASH_ENV ENV MAIL MAILPATH
5215do eval test x\${$as_var+set} = xset \
5216  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5217done
5218PS1='$ '
5219PS2='> '
5220PS4='+ '
5221
5222# NLS nuisances.
5223LC_ALL=C
5224export LC_ALL
5225LANGUAGE=C
5226export LANGUAGE
5227
5228# CDPATH.
5229(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5230
5231
5232# as_fn_error STATUS ERROR [LINENO LOG_FD]
5233# ----------------------------------------
5234# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5235# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5236# script with STATUS, using 1 if that was 0.
5237as_fn_error ()
5238{
5239  as_status=$1; test $as_status -eq 0 && as_status=1
5240  if test "$4"; then
5241    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5242    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5243  fi
5244  $as_echo "$as_me: error: $2" >&2
5245  as_fn_exit $as_status
5246} # as_fn_error
5247
5248
5249# as_fn_set_status STATUS
5250# -----------------------
5251# Set $? to STATUS, without forking.
5252as_fn_set_status ()
5253{
5254  return $1
5255} # as_fn_set_status
5256
5257# as_fn_exit STATUS
5258# -----------------
5259# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5260as_fn_exit ()
5261{
5262  set +e
5263  as_fn_set_status $1
5264  exit $1
5265} # as_fn_exit
5266
5267# as_fn_unset VAR
5268# ---------------
5269# Portably unset VAR.
5270as_fn_unset ()
5271{
5272  { eval $1=; unset $1;}
5273}
5274as_unset=as_fn_unset
5275# as_fn_append VAR VALUE
5276# ----------------------
5277# Append the text in VALUE to the end of the definition contained in VAR. Take
5278# advantage of any shell optimizations that allow amortized linear growth over
5279# repeated appends, instead of the typical quadratic growth present in naive
5280# implementations.
5281if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5282  eval 'as_fn_append ()
5283  {
5284    eval $1+=\$2
5285  }'
5286else
5287  as_fn_append ()
5288  {
5289    eval $1=\$$1\$2
5290  }
5291fi # as_fn_append
5292
5293# as_fn_arith ARG...
5294# ------------------
5295# Perform arithmetic evaluation on the ARGs, and store the result in the
5296# global $as_val. Take advantage of shells that can avoid forks. The arguments
5297# must be portable across $(()) and expr.
5298if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5299  eval 'as_fn_arith ()
5300  {
5301    as_val=$(( $* ))
5302  }'
5303else
5304  as_fn_arith ()
5305  {
5306    as_val=`expr "$@" || test $? -eq 1`
5307  }
5308fi # as_fn_arith
5309
5310
5311if expr a : '\(a\)' >/dev/null 2>&1 &&
5312   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5313  as_expr=expr
5314else
5315  as_expr=false
5316fi
5317
5318if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5319  as_basename=basename
5320else
5321  as_basename=false
5322fi
5323
5324if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5325  as_dirname=dirname
5326else
5327  as_dirname=false
5328fi
5329
5330as_me=`$as_basename -- "$0" ||
5331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5332         X"$0" : 'X\(//\)$' \| \
5333         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5334$as_echo X/"$0" |
5335    sed '/^.*\/\([^/][^/]*\)\/*$/{
5336            s//\1/
5337            q
5338          }
5339          /^X\/\(\/\/\)$/{
5340            s//\1/
5341            q
5342          }
5343          /^X\/\(\/\).*/{
5344            s//\1/
5345            q
5346          }
5347          s/.*/./; q'`
5348
5349# Avoid depending upon Character Ranges.
5350as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5351as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5352as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5353as_cr_digits='0123456789'
5354as_cr_alnum=$as_cr_Letters$as_cr_digits
5355
5356ECHO_C= ECHO_N= ECHO_T=
5357case `echo -n x` in #(((((
5358-n*)
5359  case `echo 'xy\c'` in
5360  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5361  xy)  ECHO_C='\c';;
5362  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5363       ECHO_T=' ';;
5364  esac;;
5365*)
5366  ECHO_N='-n';;
5367esac
5368
5369rm -f conf$$ conf$$.exe conf$$.file
5370if test -d conf$$.dir; then
5371  rm -f conf$$.dir/conf$$.file
5372else
5373  rm -f conf$$.dir
5374  mkdir conf$$.dir 2>/dev/null
5375fi
5376if (echo >conf$$.file) 2>/dev/null; then
5377  if ln -s conf$$.file conf$$ 2>/dev/null; then
5378    as_ln_s='ln -s'
5379    # ... but there are two gotchas:
5380    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5381    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5382    # In both cases, we have to default to `cp -pR'.
5383    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5384      as_ln_s='cp -pR'
5385  elif ln conf$$.file conf$$ 2>/dev/null; then
5386    as_ln_s=ln
5387  else
5388    as_ln_s='cp -pR'
5389  fi
5390else
5391  as_ln_s='cp -pR'
5392fi
5393rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5394rmdir conf$$.dir 2>/dev/null
5395
5396
5397# as_fn_mkdir_p
5398# -------------
5399# Create "$as_dir" as a directory, including parents if necessary.
5400as_fn_mkdir_p ()
5401{
5402
5403  case $as_dir in #(
5404  -*) as_dir=./$as_dir;;
5405  esac
5406  test -d "$as_dir" || eval $as_mkdir_p || {
5407    as_dirs=
5408    while :; do
5409      case $as_dir in #(
5410      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5411      *) as_qdir=$as_dir;;
5412      esac
5413      as_dirs="'$as_qdir' $as_dirs"
5414      as_dir=`$as_dirname -- "$as_dir" ||
5415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5416         X"$as_dir" : 'X\(//\)[^/]' \| \
5417         X"$as_dir" : 'X\(//\)$' \| \
5418         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5419$as_echo X"$as_dir" |
5420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5421            s//\1/
5422            q
5423          }
5424          /^X\(\/\/\)[^/].*/{
5425            s//\1/
5426            q
5427          }
5428          /^X\(\/\/\)$/{
5429            s//\1/
5430            q
5431          }
5432          /^X\(\/\).*/{
5433            s//\1/
5434            q
5435          }
5436          s/.*/./; q'`
5437      test -d "$as_dir" && break
5438    done
5439    test -z "$as_dirs" || eval "mkdir $as_dirs"
5440  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5441
5442
5443} # as_fn_mkdir_p
5444if mkdir -p . 2>/dev/null; then
5445  as_mkdir_p='mkdir -p "$as_dir"'
5446else
5447  test -d ./-p && rmdir ./-p
5448  as_mkdir_p=false
5449fi
5450
5451
5452# as_fn_executable_p FILE
5453# -----------------------
5454# Test if FILE is an executable regular file.
5455as_fn_executable_p ()
5456{
5457  test -f "$1" && test -x "$1"
5458} # as_fn_executable_p
5459as_test_x='test -x'
5460as_executable_p=as_fn_executable_p
5461
5462# Sed expression to map a string onto a valid CPP name.
5463as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5464
5465# Sed expression to map a string onto a valid variable name.
5466as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5467
5468
5469exec 6>&1
5470## ----------------------------------- ##
5471## Main body of $CONFIG_STATUS script. ##
5472## ----------------------------------- ##
5473_ASEOF
5474test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5475
5476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5477# Save the log message, to keep $0 and so on meaningful, and to
5478# report actual input values of CONFIG_FILES etc. instead of their
5479# values after options handling.
5480ac_log="
5481This file was extended by nanovis $as_me 1.2, which was
5482generated by GNU Autoconf 2.69.  Invocation command line was
5483
5484  CONFIG_FILES    = $CONFIG_FILES
5485  CONFIG_HEADERS  = $CONFIG_HEADERS
5486  CONFIG_LINKS    = $CONFIG_LINKS
5487  CONFIG_COMMANDS = $CONFIG_COMMANDS
5488  $ $0 $@
5489
5490on `(hostname || uname -n) 2>/dev/null | sed 1q`
5491"
5492
5493_ACEOF
5494
5495case $ac_config_files in *"
5496"*) set x $ac_config_files; shift; ac_config_files=$*;;
5497esac
5498
5499case $ac_config_headers in *"
5500"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5501esac
5502
5503
5504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5505# Files that config.status was made for.
5506config_files="$ac_config_files"
5507config_headers="$ac_config_headers"
5508
5509_ACEOF
5510
5511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5512ac_cs_usage="\
5513\`$as_me' instantiates files and other configuration actions
5514from templates according to the current configuration.  Unless the files
5515and actions are specified as TAGs, all are instantiated by default.
5516
5517Usage: $0 [OPTION]... [TAG]...
5518
5519  -h, --help       print this help, then exit
5520  -V, --version    print version number and configuration settings, then exit
5521      --config     print configuration, then exit
5522  -q, --quiet, --silent
5523                   do not print progress messages
5524  -d, --debug      don't remove temporary files
5525      --recheck    update $as_me by reconfiguring in the same conditions
5526      --file=FILE[:TEMPLATE]
5527                   instantiate the configuration file FILE
5528      --header=FILE[:TEMPLATE]
5529                   instantiate the configuration header FILE
5530
5531Configuration files:
5532$config_files
5533
5534Configuration headers:
5535$config_headers
5536
5537Report bugs to <rappture@nanohub.org>."
5538
5539_ACEOF
5540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5541ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5542ac_cs_version="\\
5543nanovis config.status 1.2
5544configured by $0, generated by GNU Autoconf 2.69,
5545  with options \\"\$ac_cs_config\\"
5546
5547Copyright (C) 2012 Free Software Foundation, Inc.
5548This config.status script is free software; the Free Software Foundation
5549gives unlimited permission to copy, distribute and modify it."
5550
5551ac_pwd='$ac_pwd'
5552srcdir='$srcdir'
5553INSTALL='$INSTALL'
5554MKDIR_P='$MKDIR_P'
5555test -n "\$AWK" || AWK=awk
5556_ACEOF
5557
5558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5559# The default lists apply if the user does not specify any file.
5560ac_need_defaults=:
5561while test $# != 0
5562do
5563  case $1 in
5564  --*=?*)
5565    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5566    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5567    ac_shift=:
5568    ;;
5569  --*=)
5570    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5571    ac_optarg=
5572    ac_shift=:
5573    ;;
5574  *)
5575    ac_option=$1
5576    ac_optarg=$2
5577    ac_shift=shift
5578    ;;
5579  esac
5580
5581  case $ac_option in
5582  # Handling of the options.
5583  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5584    ac_cs_recheck=: ;;
5585  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5586    $as_echo "$ac_cs_version"; exit ;;
5587  --config | --confi | --conf | --con | --co | --c )
5588    $as_echo "$ac_cs_config"; exit ;;
5589  --debug | --debu | --deb | --de | --d | -d )
5590    debug=: ;;
5591  --file | --fil | --fi | --f )
5592    $ac_shift
5593    case $ac_optarg in
5594    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5595    '') as_fn_error $? "missing file argument" ;;
5596    esac
5597    as_fn_append CONFIG_FILES " '$ac_optarg'"
5598    ac_need_defaults=false;;
5599  --header | --heade | --head | --hea )
5600    $ac_shift
5601    case $ac_optarg in
5602    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5603    esac
5604    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5605    ac_need_defaults=false;;
5606  --he | --h)
5607    # Conflict between --help and --header
5608    as_fn_error $? "ambiguous option: \`$1'
5609Try \`$0 --help' for more information.";;
5610  --help | --hel | -h )
5611    $as_echo "$ac_cs_usage"; exit ;;
5612  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5613  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5614    ac_cs_silent=: ;;
5615
5616  # This is an error.
5617  -*) as_fn_error $? "unrecognized option: \`$1'
5618Try \`$0 --help' for more information." ;;
5619
5620  *) as_fn_append ac_config_targets " $1"
5621     ac_need_defaults=false ;;
5622
5623  esac
5624  shift
5625done
5626
5627ac_configure_extra_args=
5628
5629if $ac_cs_silent; then
5630  exec 6>/dev/null
5631  ac_configure_extra_args="$ac_configure_extra_args --silent"
5632fi
5633
5634_ACEOF
5635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5636if \$ac_cs_recheck; then
5637  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5638  shift
5639  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5640  CONFIG_SHELL='$SHELL'
5641  export CONFIG_SHELL
5642  exec "\$@"
5643fi
5644
5645_ACEOF
5646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5647exec 5>>config.log
5648{
5649  echo
5650  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5651## Running $as_me. ##
5652_ASBOX
5653  $as_echo "$ac_log"
5654} >&5
5655
5656_ACEOF
5657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5658_ACEOF
5659
5660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5661
5662# Handling of arguments.
5663for ac_config_target in $ac_config_targets
5664do
5665  case $ac_config_target in
5666    "nvconf.h") CONFIG_HEADERS="$CONFIG_HEADERS nvconf.h" ;;
5667    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
5668    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5669    "graphics/Makefile") CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
5670    "imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES imgLoaders/Makefile" ;;
5671    "newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES newmat11/Makefile" ;;
5672    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
5673    "vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES vrmath/Makefile" ;;
5674
5675  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5676  esac
5677done
5678
5679
5680# If the user did not use the arguments to specify the items to instantiate,
5681# then the envvar interface is used.  Set only those that are not.
5682# We use the long form for the default assignment because of an extremely
5683# bizarre bug on SunOS 4.1.3.
5684if $ac_need_defaults; then
5685  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5686  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5687fi
5688
5689# Have a temporary directory for convenience.  Make it in the build tree
5690# simply because there is no reason against having it here, and in addition,
5691# creating and moving files from /tmp can sometimes cause problems.
5692# Hook for its removal unless debugging.
5693# Note that there is a small window in which the directory will not be cleaned:
5694# after its creation but before its name has been assigned to `$tmp'.
5695$debug ||
5696{
5697  tmp= ac_tmp=
5698  trap 'exit_status=$?
5699  : "${ac_tmp:=$tmp}"
5700  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5701' 0
5702  trap 'as_fn_exit 1' 1 2 13 15
5703}
5704# Create a (secure) tmp directory for tmp files.
5705
5706{
5707  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5708  test -d "$tmp"
5709}  ||
5710{
5711  tmp=./conf$$-$RANDOM
5712  (umask 077 && mkdir "$tmp")
5713} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5714ac_tmp=$tmp
5715
5716# Set up the scripts for CONFIG_FILES section.
5717# No need to generate them if there are no CONFIG_FILES.
5718# This happens for instance with `./config.status config.h'.
5719if test -n "$CONFIG_FILES"; then
5720
5721
5722ac_cr=`echo X | tr X '\015'`
5723# On cygwin, bash can eat \r inside `` if the user requested igncr.
5724# But we know of no other shell where ac_cr would be empty at this
5725# point, so we can use a bashism as a fallback.
5726if test "x$ac_cr" = x; then
5727  eval ac_cr=\$\'\\r\'
5728fi
5729ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5730if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5731  ac_cs_awk_cr='\\r'
5732else
5733  ac_cs_awk_cr=$ac_cr
5734fi
5735
5736echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5737_ACEOF
5738
5739
5740{
5741  echo "cat >conf$$subs.awk <<_ACEOF" &&
5742  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5743  echo "_ACEOF"
5744} >conf$$subs.sh ||
5745  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5746ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5747ac_delim='%!_!# '
5748for ac_last_try in false false false false false :; do
5749  . ./conf$$subs.sh ||
5750    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5751
5752  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5753  if test $ac_delim_n = $ac_delim_num; then
5754    break
5755  elif $ac_last_try; then
5756    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5757  else
5758    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5759  fi
5760done
5761rm -f conf$$subs.sh
5762
5763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5764cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5765_ACEOF
5766sed -n '
5767h
5768s/^/S["/; s/!.*/"]=/
5769p
5770g
5771s/^[^!]*!//
5772:repl
5773t repl
5774s/'"$ac_delim"'$//
5775t delim
5776:nl
5777h
5778s/\(.\{148\}\)..*/\1/
5779t more1
5780s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5781p
5782n
5783b repl
5784:more1
5785s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5786p
5787g
5788s/.\{148\}//
5789t nl
5790:delim
5791h
5792s/\(.\{148\}\)..*/\1/
5793t more2
5794s/["\\]/\\&/g; s/^/"/; s/$/"/
5795p
5796b
5797:more2
5798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5799p
5800g
5801s/.\{148\}//
5802t delim
5803' <conf$$subs.awk | sed '
5804/^[^""]/{
5805  N
5806  s/\n//
5807}
5808' >>$CONFIG_STATUS || ac_write_fail=1
5809rm -f conf$$subs.awk
5810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5811_ACAWK
5812cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5813  for (key in S) S_is_set[key] = 1
5814  FS = ""
5815
5816}
5817{
5818  line = $ 0
5819  nfields = split(line, field, "@")
5820  substed = 0
5821  len = length(field[1])
5822  for (i = 2; i < nfields; i++) {
5823    key = field[i]
5824    keylen = length(key)
5825    if (S_is_set[key]) {
5826      value = S[key]
5827      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5828      len += length(value) + length(field[++i])
5829      substed = 1
5830    } else
5831      len += 1 + keylen
5832  }
5833
5834  print line
5835}
5836
5837_ACAWK
5838_ACEOF
5839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5840if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5841  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5842else
5843  cat
5844fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5845  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5846_ACEOF
5847
5848# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5849# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5850# trailing colons and then remove the whole line if VPATH becomes empty
5851# (actually we leave an empty line to preserve line numbers).
5852if test "x$srcdir" = x.; then
5853  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5854h
5855s///
5856s/^/:/
5857s/[      ]*$/:/
5858s/:\$(srcdir):/:/g
5859s/:\${srcdir}:/:/g
5860s/:@srcdir@:/:/g
5861s/^:*//
5862s/:*$//
5863x
5864s/\(=[   ]*\).*/\1/
5865G
5866s/\n//
5867s/^[^=]*=[       ]*$//
5868}'
5869fi
5870
5871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5872fi # test -n "$CONFIG_FILES"
5873
5874# Set up the scripts for CONFIG_HEADERS section.
5875# No need to generate them if there are no CONFIG_HEADERS.
5876# This happens for instance with `./config.status Makefile'.
5877if test -n "$CONFIG_HEADERS"; then
5878cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5879BEGIN {
5880_ACEOF
5881
5882# Transform confdefs.h into an awk script `defines.awk', embedded as
5883# here-document in config.status, that substitutes the proper values into
5884# config.h.in to produce config.h.
5885
5886# Create a delimiter string that does not exist in confdefs.h, to ease
5887# handling of long lines.
5888ac_delim='%!_!# '
5889for ac_last_try in false false :; do
5890  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5891  if test -z "$ac_tt"; then
5892    break
5893  elif $ac_last_try; then
5894    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5895  else
5896    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5897  fi
5898done
5899
5900# For the awk script, D is an array of macro values keyed by name,
5901# likewise P contains macro parameters if any.  Preserve backslash
5902# newline sequences.
5903
5904ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5905sed -n '
5906s/.\{148\}/&'"$ac_delim"'/g
5907t rset
5908:rset
5909s/^[     ]*#[    ]*define[       ][      ]*/ /
5910t def
5911d
5912:def
5913s/\\$//
5914t bsnl
5915s/["\\]/\\&/g
5916s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5917D["\1"]=" \3"/p
5918s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5919d
5920:bsnl
5921s/["\\]/\\&/g
5922s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5923D["\1"]=" \3\\\\\\n"\\/p
5924t cont
5925s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5926t cont
5927d
5928:cont
5929n
5930s/.\{148\}/&'"$ac_delim"'/g
5931t clear
5932:clear
5933s/\\$//
5934t bsnlc
5935s/["\\]/\\&/g; s/^/"/; s/$/"/p
5936d
5937:bsnlc
5938s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5939b cont
5940' <confdefs.h | sed '
5941s/'"$ac_delim"'/"\\\
5942"/g' >>$CONFIG_STATUS || ac_write_fail=1
5943
5944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5945  for (key in D) D_is_set[key] = 1
5946  FS = ""
5947}
5948/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5949  line = \$ 0
5950  split(line, arg, " ")
5951  if (arg[1] == "#") {
5952    defundef = arg[2]
5953    mac1 = arg[3]
5954  } else {
5955    defundef = substr(arg[1], 2)
5956    mac1 = arg[2]
5957  }
5958  split(mac1, mac2, "(") #)
5959  macro = mac2[1]
5960  prefix = substr(line, 1, index(line, defundef) - 1)
5961  if (D_is_set[macro]) {
5962    # Preserve the white space surrounding the "#".
5963    print prefix "define", macro P[macro] D[macro]
5964    next
5965  } else {
5966    # Replace #undef with comments.  This is necessary, for example,
5967    # in the case of _POSIX_SOURCE, which is predefined and required
5968    # on some systems where configure will not decide to define it.
5969    if (defundef == "undef") {
5970      print "/*", prefix defundef, macro, "*/"
5971      next
5972    }
5973  }
5974}
5975{ print }
5976_ACAWK
5977_ACEOF
5978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5979  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5980fi # test -n "$CONFIG_HEADERS"
5981
5982
5983eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5984shift
5985for ac_tag
5986do
5987  case $ac_tag in
5988  :[FHLC]) ac_mode=$ac_tag; continue;;
5989  esac
5990  case $ac_mode$ac_tag in
5991  :[FHL]*:*);;
5992  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5993  :[FH]-) ac_tag=-:-;;
5994  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5995  esac
5996  ac_save_IFS=$IFS
5997  IFS=:
5998  set x $ac_tag
5999  IFS=$ac_save_IFS
6000  shift
6001  ac_file=$1
6002  shift
6003
6004  case $ac_mode in
6005  :L) ac_source=$1;;
6006  :[FH])
6007    ac_file_inputs=
6008    for ac_f
6009    do
6010      case $ac_f in
6011      -) ac_f="$ac_tmp/stdin";;
6012      *) # Look for the file first in the build tree, then in the source tree
6013         # (if the path is not absolute).  The absolute path cannot be DOS-style,
6014         # because $ac_f cannot contain `:'.
6015         test -f "$ac_f" ||
6016           case $ac_f in
6017           [\\/$]*) false;;
6018           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6019           esac ||
6020           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6021      esac
6022      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6023      as_fn_append ac_file_inputs " '$ac_f'"
6024    done
6025
6026    # Let's still pretend it is `configure' which instantiates (i.e., don't
6027    # use $as_me), people would be surprised to read:
6028    #    /* config.h.  Generated by config.status.  */
6029    configure_input='Generated from '`
6030          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6031        `' by configure.'
6032    if test x"$ac_file" != x-; then
6033      configure_input="$ac_file.  $configure_input"
6034      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6035$as_echo "$as_me: creating $ac_file" >&6;}
6036    fi
6037    # Neutralize special characters interpreted by sed in replacement strings.
6038    case $configure_input in #(
6039    *\&* | *\|* | *\\* )
6040       ac_sed_conf_input=`$as_echo "$configure_input" |
6041       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6042    *) ac_sed_conf_input=$configure_input;;
6043    esac
6044
6045    case $ac_tag in
6046    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6047      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6048    esac
6049    ;;
6050  esac
6051
6052  ac_dir=`$as_dirname -- "$ac_file" ||
6053$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6054         X"$ac_file" : 'X\(//\)[^/]' \| \
6055         X"$ac_file" : 'X\(//\)$' \| \
6056         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6057$as_echo X"$ac_file" |
6058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6059            s//\1/
6060            q
6061          }
6062          /^X\(\/\/\)[^/].*/{
6063            s//\1/
6064            q
6065          }
6066          /^X\(\/\/\)$/{
6067            s//\1/
6068            q
6069          }
6070          /^X\(\/\).*/{
6071            s//\1/
6072            q
6073          }
6074          s/.*/./; q'`
6075  as_dir="$ac_dir"; as_fn_mkdir_p
6076  ac_builddir=.
6077
6078case "$ac_dir" in
6079.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6080*)
6081  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6082  # A ".." for each directory in $ac_dir_suffix.
6083  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6084  case $ac_top_builddir_sub in
6085  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6086  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6087  esac ;;
6088esac
6089ac_abs_top_builddir=$ac_pwd
6090ac_abs_builddir=$ac_pwd$ac_dir_suffix
6091# for backward compatibility:
6092ac_top_builddir=$ac_top_build_prefix
6093
6094case $srcdir in
6095  .)  # We are building in place.
6096    ac_srcdir=.
6097    ac_top_srcdir=$ac_top_builddir_sub
6098    ac_abs_top_srcdir=$ac_pwd ;;
6099  [\\/]* | ?:[\\/]* )  # Absolute name.
6100    ac_srcdir=$srcdir$ac_dir_suffix;
6101    ac_top_srcdir=$srcdir
6102    ac_abs_top_srcdir=$srcdir ;;
6103  *) # Relative name.
6104    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6105    ac_top_srcdir=$ac_top_build_prefix$srcdir
6106    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6107esac
6108ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6109
6110
6111  case $ac_mode in
6112  :F)
6113  #
6114  # CONFIG_FILE
6115  #
6116
6117  case $INSTALL in
6118  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6119  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6120  esac
6121  ac_MKDIR_P=$MKDIR_P
6122  case $MKDIR_P in
6123  [\\/$]* | ?:[\\/]* ) ;;
6124  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6125  esac
6126_ACEOF
6127
6128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6129# If the template does not know about datarootdir, expand it.
6130# FIXME: This hack should be removed a few years after 2.60.
6131ac_datarootdir_hack=; ac_datarootdir_seen=
6132ac_sed_dataroot='
6133/datarootdir/ {
6134  p
6135  q
6136}
6137/@datadir@/p
6138/@docdir@/p
6139/@infodir@/p
6140/@localedir@/p
6141/@mandir@/p'
6142case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6143*datarootdir*) ac_datarootdir_seen=yes;;
6144*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6146$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6147_ACEOF
6148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6149  ac_datarootdir_hack='
6150  s&@datadir@&$datadir&g
6151  s&@docdir@&$docdir&g
6152  s&@infodir@&$infodir&g
6153  s&@localedir@&$localedir&g
6154  s&@mandir@&$mandir&g
6155  s&\\\${datarootdir}&$datarootdir&g' ;;
6156esac
6157_ACEOF
6158
6159# Neutralize VPATH when `$srcdir' = `.'.
6160# Shell code in configure.ac might set extrasub.
6161# FIXME: do we really want to maintain this feature?
6162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6163ac_sed_extra="$ac_vpsub
6164$extrasub
6165_ACEOF
6166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6167:t
6168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6169s|@configure_input@|$ac_sed_conf_input|;t t
6170s&@top_builddir@&$ac_top_builddir_sub&;t t
6171s&@top_build_prefix@&$ac_top_build_prefix&;t t
6172s&@srcdir@&$ac_srcdir&;t t
6173s&@abs_srcdir@&$ac_abs_srcdir&;t t
6174s&@top_srcdir@&$ac_top_srcdir&;t t
6175s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6176s&@builddir@&$ac_builddir&;t t
6177s&@abs_builddir@&$ac_abs_builddir&;t t
6178s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6179s&@INSTALL@&$ac_INSTALL&;t t
6180s&@MKDIR_P@&$ac_MKDIR_P&;t t
6181$ac_datarootdir_hack
6182"
6183eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6184  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6185
6186test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6187  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6188  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6189      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6190  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6191which seems to be undefined.  Please make sure it is defined" >&5
6192$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6193which seems to be undefined.  Please make sure it is defined" >&2;}
6194
6195  rm -f "$ac_tmp/stdin"
6196  case $ac_file in
6197  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6198  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6199  esac \
6200  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6201 ;;
6202  :H)
6203  #
6204  # CONFIG_HEADER
6205  #
6206  if test x"$ac_file" != x-; then
6207    {
6208      $as_echo "/* $configure_input  */" \
6209      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6210    } >"$ac_tmp/config.h" \
6211      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6212    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6213      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6214$as_echo "$as_me: $ac_file is unchanged" >&6;}
6215    else
6216      rm -f "$ac_file"
6217      mv "$ac_tmp/config.h" "$ac_file" \
6218        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6219    fi
6220  else
6221    $as_echo "/* $configure_input  */" \
6222      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6223      || as_fn_error $? "could not create -" "$LINENO" 5
6224  fi
6225 ;;
6226
6227
6228  esac
6229
6230done # for ac_tag
6231
6232
6233as_fn_exit 0
6234_ACEOF
6235ac_clean_files=$ac_clean_files_save
6236
6237test $ac_write_fail = 0 ||
6238  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6239
6240
6241# configure is writing to config.log, and then calls config.status.
6242# config.status does its own redirection, appending to config.log.
6243# Unfortunately, on DOS this fails, as config.log is still kept open
6244# by configure, so config.status won't be able to write to it; its
6245# output is simply discarded.  So we exec the FD to /dev/null,
6246# effectively closing config.log, so it can be properly (re)opened and
6247# appended to by config.status.  When coming back to configure, we
6248# need to make the FD available again.
6249if test "$no_create" != yes; then
6250  ac_cs_success=:
6251  ac_config_status_args=
6252  test "$silent" = yes &&
6253    ac_config_status_args="$ac_config_status_args --quiet"
6254  exec 5>/dev/null
6255  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6256  exec 5>>config.log
6257  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6258  # would make configure fail if this is the last instruction.
6259  $ac_cs_success || as_fn_exit 1
6260fi
6261if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6262  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6263$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6264fi
6265
Note: See TracBrowser for help on using the repository browser.