source: trunk/packages/vizservers/configure @ 1309

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